it.tidalwave.util
Class Key<T>
java.lang.Object
it.tidalwave.util.Key<T>
- All Implemented Interfaces:
- StringValue, Serializable, Comparable<Key<T>>
public final class Key<T>
- extends Object
- implements StringValue, Comparable<Key<T>>, Serializable
- Version:
- $Id: $
- Author:
- Fabrizio Giudici
- See Also:
- Serialized Form
Key
public Key(@Nonnull
String name)
Key
public Key(@Nonnull
StringValue stringValue)
stringValue
@Nonnull
public 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 Comparable<Key<T>>
equals
public boolean equals(@CheckForNull
Object other)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
@Nonnull
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012 Tidalwave s.a.s.. All Rights Reserved.