|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.apple.mrj.MRJOSType
A wrapper around 4 byte character constants
| Field Summary | |
static MRJOSType |
kTypeGIFF
Commonly used OSType |
static MRJOSType |
kTypeHFS
Commonly used OSType |
static MRJOSType |
kTypeJPEG
Commonly used OSType |
static MRJOSType |
kTypeJser
Commonly used OSType |
static MRJOSType |
kTypeMoov
Commonly used OSType |
static MRJOSType |
kTypePICT
Commonly used OSType |
static MRJOSType |
kTypeStyl
Commonly used OSType |
static MRJOSType |
kTypeTEXT
Commonly used OSType |
static MRJOSType |
kTypeURL
Commonly used OSType |
static MRJOSType |
kTypeUstl
Commonly used OSType |
static MRJOSType |
kTypeUtxt
Commonly used OSType |
| Constructor Summary | |
MRJOSType(byte[] fromBytes)
Construct from a 4 byte array |
|
MRJOSType(int fromInt)
Construct from an integer |
|
MRJOSType(String fromString)
Construct from a String. |
|
| Method Summary | |
boolean |
equals(int type)
Equals to an integer? |
boolean |
equals(MRJOSType type)
Equals an MRJOSType? |
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
int |
hashCode()
Returns a hash code value for the object. |
int |
toInt()
Get the integer value |
String |
toString()
Return as a String |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final MRJOSType kTypeTEXT
public static final MRJOSType kTypeUtxt
public static final MRJOSType kTypeStyl
public static final MRJOSType kTypeUstl
public static final MRJOSType kTypePICT
public static final MRJOSType kTypeHFS
public static final MRJOSType kTypeURL
public static final MRJOSType kTypeGIFF
public static final MRJOSType kTypeJPEG
public static final MRJOSType kTypeMoov
public static final MRJOSType kTypeJser
| Constructor Detail |
public MRJOSType(String fromString)
public MRJOSType(int fromInt)
public MRJOSType(byte[] fromBytes)
| Method Detail |
public final boolean equals(MRJOSType type)
public final boolean equals(int type)
public final boolean equals(Object o)
Object
The equals method implements an equivalence relation:
x,
x.equals(x) should return true.
x and
y, x.equals(y) should return
true if and only if y.equals(x) returns
true.
x,
y, and z, if x.equals(y)
returns true and y.equals(z) returns
true, then x.equals(z) should return
true.
x
and y, multiple invocations of x.equals(y)
consistently return true or consistently return
false, provided no information used in
equals comparisons on the object is modified.
x,
x.equals(null) should return false.
The equals method for class Object implements
the most discriminating possible equivalence relation on objects;
that is, for any reference values x and y,
this method returns true if and only if x and
y refer to the same object (x==y has the
value true).
equals in class Objectjava.lang.Objectobj - the reference object with which to compare.true if this object is the same as the obj
argument; false otherwise.Boolean.hashCode(),
Hashtablepublic int hashCode()
Objectjava.util.Hashtable.
The general contract of hashCode is:
hashCode method on each of
the two objects must produce the same integer result.
Object.equals(java.lang.Object)
method, then calling the hashCode method on each of the
two objects must produce distinct integer results. However, the
programmer should be aware that producing distinct integer results
for unequal objects may improve the performance of hashtables.
As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.)
hashCode in class Objectjava.lang.ObjectObject.equals(java.lang.Object),
Hashtablepublic int toInt()
public String toString()
toString in class Objectjava.lang.Object
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.