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, java.lang.Comparable<Key<T>>

public final class Key<T>
extends java.lang.Object
implements StringValue, java.lang.Comparable<Key<T>>

Version:
$Id: $
Author:
Fabrizio Giudici

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

Constructor Detail

Key

public Key(@Nonnull
           java.lang.String name)

Key

public Key(@Nonnull
           StringValue stringValue)
Method Detail

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.