com.rhi.architecture.resource
Class ResourceEntry

java.lang.Object
  extended bycom.rhi.architecture.resource.ResourceEntry
All Implemented Interfaces:
java.lang.Comparable

public class ResourceEntry
extends java.lang.Object
implements java.lang.Comparable

ResourceEntry.java

Version:
1.0
Author:
Pete McKinstry

Constructor Summary
ResourceEntry()
          Constructor for ResourceEntry.
 
Method Summary
 int compareTo(java.lang.Object o)
          priority comparison of ResourceEntries.
 java.lang.String getKey()
          Returns the key.
 int getPriority()
          Returns the priority.
 java.lang.String getType()
          Returns the type.
 void setKey(java.lang.String key)
          Sets the key.
 void setPriority(int priority)
          Sets the priority.
 void setType(java.lang.String type)
          Sets the type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceEntry

public ResourceEntry()
Constructor for ResourceEntry.

Method Detail

compareTo

public int compareTo(java.lang.Object o)
priority comparison of ResourceEntries. If priority of obj1 < priority of obj2, return -1 If priority of obj1 > priority of obj2, return 1 Otherwise (priority matches), return the results of getKey().compareTo()

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o -
Returns:
int
See Also:
Comparable.compareTo(Object)

getKey

public java.lang.String getKey()
Returns the key.

Returns:
String

setKey

public void setKey(java.lang.String key)
Sets the key.

Parameters:
key - The key to set

getPriority

public int getPriority()
Returns the priority.

Returns:
int

setPriority

public void setPriority(int priority)
Sets the priority.

Parameters:
priority - The priority to set

getType

public java.lang.String getType()
Returns the type.

Returns:
String

setType

public void setType(java.lang.String type)
Sets the type.

Parameters:
type - The type to set

toString

public java.lang.String toString()
Returns:
String
See Also:
Object.toString()


Copyright © 2002-2004 Robert Half International. All Rights Reserved.