Class BaseKey<T>

  • Type Parameters:
    T - the type of object being stored in the Context.
    All Implemented Interfaces:
    Context.Key<T>

    public final class BaseKey<T>
    extends java.lang.Object
    implements Context.Key<T>
    Implementation of Context.Key suitable for storing instances of Session or StatelessSession, or really anything at all, in the Vert.x context.
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseKey​(java.lang.Class<T> type, java.lang.String id)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseKey

        public BaseKey​(java.lang.Class<T> type,
                       java.lang.String id)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object