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