T
- Type of resourcepublic abstract class AbstractIoResource<T> extends java.lang.Object implements IoResource<T>
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<T> |
resourceType |
private T |
resourceValue |
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Modifier | Constructor and Description |
---|---|
protected |
AbstractIoResource(java.lang.Class<T> resourceType,
T resourceValue) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
java.lang.Class<T> |
getResourceType() |
T |
getResourceValue() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forResource
findByName, getNameList, getNames, ofName, removeByName
openInputStream
private final java.lang.Class<T> resourceType
private final T resourceValue
public java.lang.Class<T> getResourceType()
getResourceType
in interface IoResource<T>
public T getResourceValue()
getResourceValue
in interface IoResource<T>
public java.lang.String getName()
getName
in interface NamedResource
public java.lang.String toString()
toString
in class java.lang.Object