public abstract class Tuple4b
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
byte |
w
The fourth value.
|
byte |
x
The first value.
|
byte |
y
The second value.
|
byte |
z
The third value.
|
| Constructor and Description |
|---|
Tuple4b()
Constructs and initializes a Tuple4b to (0,0,0,0).
|
Tuple4b(byte[] t)
Constructs and initializes a Tuple4b from the array of length 4.
|
Tuple4b(byte b1,
byte b2,
byte b3,
byte b4)
Constructs and initializes a Tuple4b from the specified four values.
|
Tuple4b(Tuple4b t1)
Constructs and initializes a Tuple4b from the specified Tuple4b.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a new object of the same class as this object.
|
boolean |
equals(java.lang.Object t1)
Returns true if the Object t1 is of type Tuple4b and all of the
data members of t1 are equal to the corresponding data members in
this Tuple4b.
|
boolean |
equals(Tuple4b t1)
Returns true if all of the data members of tuple t1 are equal to
the corresponding data members in this tuple.
|
void |
get(byte[] b)
Places the value of the x,y,z,w components of this Tuple4b
into the array of length 4.
|
void |
get(Tuple4b t1)
Places the value of the x,y,z,w components of this
Tuple4b into the tuple t1.
|
byte |
getW()
Get w, the fourth value.
|
byte |
getX()
Get x, the first value.
|
byte |
getY()
Get y, the second value.
|
byte |
getZ()
Get z, the third value.
|
int |
hashCode()
Returns a hash code value based on the data values in this
object.
|
void |
set(byte[] b)
Sets the value of the data members of this tuple to the value
of the array b of length 4.
|
void |
set(Tuple4b t1)
Sets the value of the data members of this tuple to the value
of the argument tuple t1.
|
void |
setW(byte w)
Set w, the fourth value.
|
void |
setX(byte x)
Set x, the first value.
|
void |
setY(byte y)
Set y, the second value.
|
void |
setZ(byte z)
Set z, the third value.
|
java.lang.String |
toString()
Returns a string that contains the values of this Tuple4b.
|
public byte x
public byte y
public byte z
public byte w
public Tuple4b(byte b1,
byte b2,
byte b3,
byte b4)
b1 - the first valueb2 - the second valueb3 - the third valueb4 - the fourth valuepublic Tuple4b(byte[] t)
t - the array of length 4 containing b1 b2 b3 b4 in orderpublic Tuple4b(Tuple4b t1)
t1 - the Tuple4b containing the initialization x y z w datapublic Tuple4b()
public java.lang.String toString()
toString in class java.lang.Objectpublic final void get(byte[] b)
b - array of length 4 into which the values are placedpublic final void get(Tuple4b t1)
t1 - tuple into which the values are placedpublic final void set(Tuple4b t1)
t1 - the source tuplepublic final void set(byte[] b)
b - the source array of length 4public boolean equals(Tuple4b t1)
t1 - the tuple with which the comparison is madepublic boolean equals(java.lang.Object t1)
equals in class java.lang.Objectt1 - the object with which the comparison is madepublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectjava.lang.OutOfMemoryError - if there is not enough memory.Cloneablepublic final byte getX()
public final void setX(byte x)
x - the first value.public final byte getY()
public final void setY(byte y)
y - the second value.public final byte getZ()
public final void setZ(byte z)
z - the third value.public final byte getW()
public final void setW(byte w)
w - the fourth value.