public static class ResourceType.SharedResource<T extends ResourceType<?>> extends java.lang.Object implements ResourceType<ResourcePool>
ResourceType.Core, ResourceType.SharedResource<T extends ResourceType<?>>
Constructor and Description |
---|
SharedResource(T delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Class<ResourcePool> |
getResourcePoolClass()
Gets the
ResourcePool type associated with this ResourceType . |
ResourceType<?> |
getResourceType() |
int |
getTierHeight()
Indicates the level this resource sits in the tiering system.
|
int |
hashCode() |
boolean |
isPersistable()
Indicates whether this
ResourceType supports persistence. |
boolean |
requiresSerialization()
Indicates whether this
ResourceType requires serialization
support. |
java.lang.String |
toString() |
public SharedResource(T delegate)
public java.lang.Class<ResourcePool> getResourcePoolClass()
ResourceType
ResourcePool
type associated with this ResourceType
.getResourcePoolClass
in interface ResourceType<ResourcePool>
ResourcePool
type associated with this typepublic boolean isPersistable()
ResourceType
ResourceType
supports persistence.
Persistence in this context means that a ResourcePool
of this ResourceType
can be configured
so that data stored in it will survive a JVM restart.
isPersistable
in interface ResourceType<ResourcePool>
true
if it supports persistence, false
otherwisepublic boolean requiresSerialization()
ResourceType
ResourceType
requires serialization
support.requiresSerialization
in interface ResourceType<ResourcePool>
true
if serializers are required, false
otherwisepublic int getTierHeight()
ResourceType
Higher means resource is faster and less abundant, lower means resource is slower but potentially larger.
getTierHeight
in interface ResourceType<ResourcePool>
public ResourceType<?> getResourceType()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object