org.qi4j.library.rest.server.api.dci

## Class Role<T>

- java.lang.Object
- - org.qi4j.library.rest.server.api.dci.Role<T>

- All Implemented Interfaces:
    Comparable<Role<T>>

      public class Role<T>
      extends Object
      implements Comparable<Role<T>>

  Base class for methodful roles

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected T` | `self`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Role()`
    `Role(T self)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `bind(T newSelf)`
    `int` | `compareTo(Role<T> role)`
    `boolean` | `equals(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(Object obj)

      Overrides:
        `equals` in class `Object`

    - #### compareTo

          public int compareTo(Role<T> role)

      Specified by:
        `compareTo` in interface `Comparable<Role<T>>`