it.tidalwave.util
Class Id

Package class diagram package Id
java.lang.Object
  extended by it.tidalwave.util.Id
All Implemented Interfaces:
StringValue, Serializable, Comparable<Id>

@Immutable
public class Id
extends Object
implements Serializable, Comparable<Id>, StringValue

An opaque wrapper for identifiers.

Version:
$Id$
Author:
Fabrizio Giudici
See Also:
Serialized Form
Status: stable API

Constructor Summary
Id()
           
 
Method Summary
 int compareTo(Id other)
          
 boolean equals(Object object)
          
 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

Id

public Id()
Method Detail

stringValue

@Nonnull
public String stringValue()
Returns the String value of this object.

Specified by:
stringValue in interface StringValue
Returns:
the string

equals

public boolean equals(@CheckForNull
                      Object object)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

compareTo

public int compareTo(Id other)

Specified by:
compareTo in interface Comparable<Id>

toString

@Nonnull
public String toString()

Overrides:
toString in class Object


Copyright © 2009-2012 Tidalwave s.a.s.. All Rights Reserved.