org.gswing.components.input.importer
Class AliasKey

java.lang.Object
  extended by org.gswing.components.input.importer.AliasKey
All Implemented Interfaces:
Comparable

public class AliasKey
extends Object
implements Comparable

A two field key object for aliases.


Constructor Summary
AliasKey(String key1)
          Constructor.
AliasKey(String key1, String key2)
          Constructor.
 
Method Summary
 int compareTo(Object arg0)
          Compare this with another key.
 boolean equals(Object arg0)
          Test if this is equal to another key.
 String getKey1()
           
 String getKey2()
           
 int hashCode()
           
 void setKey1(String key1)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AliasKey

public AliasKey(String key1,
                String key2)
Constructor.

Parameters:
key1 - Primary key string.
key2 - Secondary key string.

AliasKey

public AliasKey(String key1)
Constructor.

Parameters:
key1 - Primary key string.
Method Detail

getKey1

public String getKey1()
Returns:
The primary key string.

getKey2

public String getKey2()
Returns:
The secondary key string.

setKey1

public void setKey1(String key1)

compareTo

public int compareTo(Object arg0)
Compare this with another key.

Specified by:
compareTo in interface Comparable
Parameters:
arg0 - The object to compare with this.
Returns:
0

equals

public boolean equals(Object arg0)
Test if this is equal to another key.

Overrides:
equals in class Object
Parameters:
arg0 - The object to compare with this.
Returns:
true if they are equal.

hashCode

public int hashCode()
Overrides:
hashCode in class Object
Returns:
Generate unique hashcode for this object.


Copyright © 2008. All Rights Reserved.