com.google.common.collect.testing
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.
This class is GWT compatible.
- Author:
- Regina O'Dell
UnhashableObject
public UnhashableObject(int value)
equals
public boolean equals(Object object)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
compareTo
public int compareTo(UnhashableObject o)
- Specified by:
compareTo
in interface Comparable<UnhashableObject>
Copyright © 2010-2012. All Rights Reserved.