1   /**
2    *  Copyright 2003-2007 Greg Luck
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   */
16  
17  package net.sf.ehcache.constructs.asynchronous;
18  
19  import java.io.Serializable;
20  
21  /**
22   * A class which is <code>Serializable</code> but has no other attributes.
23   * @author <a href="mailto:gluck@thoughtworks.com">Greg Luck</a>
24   * @version $Id: IsSerializable.java 512 2007-07-10 09:18:45Z gregluck $
25   */
26  public class IsSerializable implements Serializable {
27  
28      /**
29       * Returns a string representation of the object. In general, the
30       * <code>toString</code> method returns a string that
31       * "textually represents" this object. The result should
32       * be a concise but informative representation that is easy for a
33       * person to read.
34       * It is recommended that all subclasses override this method.
35       * <p/>
36       * The <code>toString</code> method for class <code>Object</code>
37       * returns a string consisting of the name of the class of which the
38       * object is an instance, the at-sign character `<code>@</code>', and
39       * the unsigned hexadecimal representation of the hash code of the
40       * object. In other words, this method returns a string equal to the
41       * value of:
42       * <blockquote>
43       * <pre>
44       * getClass().getName() + '@' + Integer.toHexString(hashCode())
45       * </pre></blockquote>
46       *
47       * @return a string representation of the object.
48       */
49      public String toString() {
50          return "This is a serializable class";
51      }
52  }