org.sakaiproject.tool.util
Class CaseBlindHashMap.CaseBlindString

java.lang.Object
  extended byorg.sakaiproject.tool.util.CaseBlindHashMap.CaseBlindString
Enclosing class:
CaseBlindHashMap

public static class CaseBlindHashMap.CaseBlindString
extends Object

A crude, case insensitive string - used internally to represent key values. Preserve the originl case, but compare for equality in a case blind fashion.


Constructor Summary
CaseBlindHashMap.CaseBlindString(String string)
           
 
Method Summary
 boolean equals(Object object)
          Case insensitive compare
 int hashCode()
          Get a hash code for this case insensitive string
 String toString()
          Fetch the original string
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CaseBlindHashMap.CaseBlindString

public CaseBlindHashMap.CaseBlindString(String string)
Method Detail

toString

public String toString()
Fetch the original string

Returns:
The original string

equals

public boolean equals(Object object)
Case insensitive compare

Returns:
True if the two strings match

hashCode

public int hashCode()
Get a hash code for this case insensitive string

Returns:
Hash code value