|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.mercury.StreamKey
class StreamKey
Class used as the key value for an associated LogStream object in a collection of type java.util.Map.
Field Summary | |
---|---|
private File |
file
Holds the File attribute for the associated stream. |
private int |
hash
Holds the cached value of the file field's hashCode. |
private StreamType |
type
Holds the "enumeration" type for the associated stream. |
Constructor Summary | |
---|---|
StreamKey(File file,
StreamType type)
Simple constructor that accepts File and StreamType arguments and then assigns them to the appropriate internal fields. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private File file
private StreamType type
private int hash
Constructor Detail |
---|
StreamKey(File file, StreamType type)
null
. The File
argument must represent an absolute pathname.
IllegalArgumentException
- thrown if either of the arguments are
null or if the file
argument does not represent an
absolute pathname.Method Detail |
---|
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |