it.tidalwave.util
Class Key<T>
java.lang.Object
it.tidalwave.util.Key<T>
- All Implemented Interfaces:
- StringValue, java.io.Serializable, java.lang.Comparable<Key<T>>
public final class Key<T>
- extends java.lang.Object
- implements StringValue, java.lang.Comparable<Key<T>>, java.io.Serializable
- Version:
- $Id: $
- Author:
- Fabrizio Giudici
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Key
public Key(@Nonnull
java.lang.String name)
Key
public Key(@Nonnull
StringValue stringValue)
stringValue
@Nonnull
public java.lang.String stringValue()
- Description copied from interface:
StringValue
- Returns the
String
value of this object.
- Specified by:
stringValue
in interface StringValue
- Returns:
- the string
compareTo
public int compareTo(@Nonnull
Key<T> other)
- Specified by:
compareTo
in interface java.lang.Comparable<Key<T>>
equals
public boolean equals(@CheckForNull
java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
@Nonnull
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2009-2011 Tidalwave s.a.s.. All Rights Reserved.