Class ContextKey<T>
- java.lang.Object
-
- net.minecraftforge.server.permission.context.ContextKey<T>
-
public final class ContextKey<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ContextKey(java.lang.String id, java.lang.Class<T> c)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <E> ContextKey<E>
create(java.lang.String id, java.lang.Class<E> c)
boolean
equals(java.lang.Object o)
java.lang.Class<T>
getTypeClass()
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
ID
private final java.lang.String ID
-
typeClass
private final java.lang.Class<T> typeClass
-
-
Constructor Detail
-
ContextKey
private ContextKey(java.lang.String id, java.lang.Class<T> c)
-
-
Method Detail
-
create
public static <E> ContextKey<E> create(java.lang.String id, java.lang.Class<E> c)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
getTypeClass
public java.lang.Class<T> getTypeClass()
-
-