Class ClassBasedComponentKey<T>

java.lang.Object
org.n52.janmayen.component.ClassBasedComponentKey<T>
Type Parameters:
T - the type the class of this key has to be a subtype of

public class ClassBasedComponentKey<T> extends Object
Generic Component key that is based on a single Class.
Since:
1.0.0
  • Constructor Details

    • ClassBasedComponentKey

      public ClassBasedComponentKey(Class<? extends T> type)
      Creates a new key.
      Parameters:
      type - the type associated with this key
  • Method Details

    • getType

      public Class<? extends T> getType()
      Gets the type associated with this key.
      Returns:
      the type
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object