com.google.common.collect.testing
Class UnhashableObject

java.lang.Object
  extended by com.google.common.collect.testing.UnhashableObject
All Implemented Interfaces:
Comparable<UnhashableObject>

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

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

Constructor Detail

UnhashableObject

public UnhashableObject(int value)
Method Detail

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-2011. All Rights Reserved.