it.tidalwave.role.spi
Class DefaultIdentifiable

Package class diagram package DefaultIdentifiable
java.lang.Object
  extended by it.tidalwave.role.spi.DefaultIdentifiable
All Implemented Interfaces:
Identifiable, Serializable

@Immutable
public class DefaultIdentifiable
extends Object
implements Identifiable, Serializable

A default implementation of Identifiable which wraps a given id.

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

Field Summary
 
Fields inherited from interface it.tidalwave.role.Identifiable
Identifiable
 
Constructor Summary
DefaultIdentifiable()
           
 
Method Summary
 Id getId()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultIdentifiable

public DefaultIdentifiable()
Method Detail

getId

@Nonnull
public Id getId()

Specified by:
getId in interface Identifiable

toString

@Nonnull
public String toString()

Overrides:
toString in class Object


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