java.lang.Comparable<ResourceTypeInfo>public abstract class ResourceTypeInfo extends java.lang.Object implements java.lang.Comparable<ResourceTypeInfo>
| Constructor | Description |
|---|---|
ResourceTypeInfo() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(ResourceTypeInfo other) |
|
static void |
copy(ResourceTypeInfo src,
ResourceTypeInfo dst) |
Copies the content of the source ResourceTypeInfo object to the
destination object, overwriting all properties of the destination object.
|
boolean |
equals(java.lang.Object obj) |
|
abstract java.lang.String |
getDefaultUnit() |
Get units for the resource.
|
abstract java.lang.String |
getName() |
Get the name for the resource.
|
abstract ResourceTypes |
getResourceType() |
Get the resource type.
|
int |
hashCode() |
|
static ResourceTypeInfo |
newInstance(java.lang.String name) |
Create a new instance of ResourceTypeInfo from name.
|
static ResourceTypeInfo |
newInstance(java.lang.String name,
java.lang.String units) |
Create a new instance of ResourceTypeInfo from name, units.
|
static ResourceTypeInfo |
newInstance(java.lang.String name,
java.lang.String units,
ResourceTypes type) |
Create a new instance of ResourceTypeInfo from name, units and type.
|
static ResourceTypeInfo |
newInstance(ResourceTypeInfo other) |
Create a new instance of ResourceTypeInfo from another object.
|
abstract void |
setDefaultUnit(java.lang.String rUnits) |
Set the units for the resource.
|
abstract void |
setName(java.lang.String rName) |
Set the name for the resource.
|
abstract void |
setResourceType(ResourceTypes type) |
Set the resource type.
|
java.lang.String |
toString() |
public abstract java.lang.String getName()
public abstract void setName(java.lang.String rName)
rName - name for the resourcepublic abstract java.lang.String getDefaultUnit()
public abstract void setDefaultUnit(java.lang.String rUnits)
rUnits - units for the resourcepublic abstract ResourceTypes getResourceType()
public abstract void setResourceType(ResourceTypes type)
type - the resource type@Public @Unstable public static ResourceTypeInfo newInstance(ResourceTypeInfo other)
other - the object from which the new object should be created@Public @Unstable public static ResourceTypeInfo newInstance(java.lang.String name, java.lang.String units, ResourceTypes type)
name - name of resource typeunits - units of resource typetype - such as countable, etc.@Public @Unstable public static ResourceTypeInfo newInstance(java.lang.String name, java.lang.String units)
name - name of resource typeunits - units of resource type@Public @Unstable public static ResourceTypeInfo newInstance(java.lang.String name)
name - name of resource typepublic static void copy(ResourceTypeInfo src, ResourceTypeInfo dst)
src - Source ResourceTypeInfo objectdst - Destination ResourceTypeInfo objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(ResourceTypeInfo other)
compareTo in interface java.lang.Comparable<ResourceTypeInfo>Copyright © 2008–2025 Apache Software Foundation. All rights reserved.