org.elasticsearch.common.trove
Class StringIdentityHashingStrategy

java.lang.Object
  extended by org.elasticsearch.common.trove.StringIdentityHashingStrategy
All Implemented Interfaces:
gnu.trove.strategy.HashingStrategy<String>, Serializable

public class StringIdentityHashingStrategy
extends Object
implements gnu.trove.strategy.HashingStrategy<String>

A string based hash code with identity equality.

See Also:
Serialized Form

Constructor Summary
StringIdentityHashingStrategy()
           
 
Method Summary
 int computeHashCode(String object)
           
 boolean equals(String o1, String o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringIdentityHashingStrategy

public StringIdentityHashingStrategy()
Method Detail

computeHashCode

public int computeHashCode(String object)
Specified by:
computeHashCode in interface gnu.trove.strategy.HashingStrategy<String>

equals

public boolean equals(String o1,
                      String o2)
Specified by:
equals in interface gnu.trove.strategy.HashingStrategy<String>


Copyright © 2009-2012. All Rights Reserved.