Class UnhashableObject
- java.lang.Object
-
- com.google.common.collect.testing.UnhashableObject
-
- All Implemented Interfaces:
Comparable<UnhashableObject>
@GwtCompatible public class UnhashableObject extends Object implements Comparable<UnhashableObject>
An unhashable object to be used in testing as values in our collections.- Author:
- Regina O'Dell
-
-
Constructor Summary
Constructors Constructor Description UnhashableObject(int value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(UnhashableObject o)
boolean
equals(Object object)
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
UnhashableObject
public UnhashableObject(int value)
-
-
Method Detail
-
compareTo
public int compareTo(UnhashableObject o)
- Specified by:
compareTo
in interfaceComparable<UnhashableObject>
-
-