com.google.common.collect.testing
Class BaseComparable

java.lang.Object
  extended by com.google.common.collect.testing.BaseComparable
All Implemented Interfaces:
Serializable, Comparable<BaseComparable>
Direct Known Subclasses:
DerivedComparable

public class BaseComparable
extends Object
implements Comparable<BaseComparable>, Serializable

Simple base class to verify that we handle generics correctly.

Author:
Kevin Bourrillion
See Also:
Serialized Form

Constructor Summary
BaseComparable(String s)
           
 
Method Summary
 int compareTo(BaseComparable o)
           
 boolean equals(Object other)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseComparable

public BaseComparable(String s)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

compareTo

public int compareTo(BaseComparable o)
Specified by:
compareTo in interface Comparable<BaseComparable>


Copyright © 2010-2011. All Rights Reserved.