it.tidalwave.util
Class Key<T>

Package class diagram package Key
java.lang.Object
  extended by 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

Constructor Summary
Key(String name)
           
Key(StringValue stringValue)
           
 
Method Summary
 int compareTo(Key<T> other)
           
 boolean equals(Object other)
           
 int hashCode()
           
 String stringValue()
          Returns the String value of this object.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Key

public Key(@Nonnull
           String name)

Key

public Key(@Nonnull
           StringValue stringValue)
Method Detail

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.