org.qi4j.library.rest.server.api.dci
Class Role<T>

java.lang.Object
  extended by org.qi4j.library.rest.server.api.dci.Role<T>
All Implemented Interfaces:
java.lang.Comparable<Role<T>>

public class Role<T>
extends java.lang.Object
implements java.lang.Comparable<Role<T>>

Base class for methodful roles


Field Summary
protected  T self
           
 
Constructor Summary
Role()
           
Role(T self)
           
 
Method Summary
 void bind(T newSelf)
           
 int compareTo(Role<T> role)
           
 boolean equals(java.lang.Object obj)
           
 T self()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

self

protected T self
Constructor Detail

Role

public Role()

Role

public Role(T self)
Method Detail

bind

public void bind(T newSelf)

self

public T self()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(Role<T> role)
Specified by:
compareTo in interface java.lang.Comparable<Role<T>>