com.vinculumtech.platform.util
Class TernaryKey
java.lang.Object
com.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.
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
TernaryKey
public TernaryKey(java.lang.Object first,
java.lang.Object second,
java.lang.Object third)
- No values may be null.
- Parameters:
first
- second
- third
-
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.