orca.shirako.common
Class ResourceType

java.lang.Object
  extended by orca.shirako.common.ResourceType

public class ResourceType
extends java.lang.Object

ResourceType is used to name a particular resource type. ResourceType consists of a single string describing the particular resource type. ResourceType is a read-only class: once created it cannot be modified.


Field Summary
protected  java.lang.String type
          The internal representation of the resource type.
 
Constructor Summary
ResourceType(int type)
          Creates a new instance.
ResourceType(java.lang.String type)
          Creates a new instance.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getType()
          Returns the string representation of this resource type name.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

type

protected java.lang.String type
The internal representation of the resource type.

Constructor Detail

ResourceType

public ResourceType(int type)
Creates a new instance.

Parameters:
type - type name

ResourceType

public ResourceType(java.lang.String type)
Creates a new instance.

Parameters:
type - type name
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getType

public java.lang.String getType()
Returns the string representation of this resource type name.

Returns:
string representation of the resource type name


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.