com.vinculumtech.platform.util
Class TernaryKey

java.lang.Object
  extended bycom.vinculumtech.platform.util.TernaryKey

public class TernaryKey
extends java.lang.Object

The TernaryKey is used where three Objects are needed to make a unique key value in a Map.

Version:
$Id: //depot/carrierwave/src/shared/com/vinculumtech/platform/util/TernaryKey.java#3 $

Constructor Summary
TernaryKey(java.lang.Object first, java.lang.Object second, java.lang.Object third)
          No values may be null.
 
Method Summary
 boolean equals(java.lang.Object object)
           
 java.lang.Object getFirst()
           
 java.lang.Object getSecond()
           
 java.lang.Object getThird()
           
 int hashCode()
           
 void setFirst(java.lang.Object first)
           
 void setSecond(java.lang.Object second)
           
 void setThird(java.lang.Object third)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TernaryKey

public TernaryKey(java.lang.Object first,
                  java.lang.Object second,
                  java.lang.Object third)
No values may be null.

Parameters:
first -
second -
third -
Method Detail

getFirst

public java.lang.Object getFirst()

setFirst

public void setFirst(java.lang.Object first)

getSecond

public java.lang.Object getSecond()

setSecond

public void setSecond(java.lang.Object second)

getThird

public java.lang.Object getThird()

setThird

public void setThird(java.lang.Object third)

equals

public boolean equals(java.lang.Object object)
Parameters:
object -
Returns:
true if the given object is a TernaryKey and all three values are equal

hashCode

public int hashCode()


Copyright (C) 2002 Vinculum Technologies, Inc. All Rights Reserved.