Package com.jackmeng.stl.types
Class UInt_t
java.lang.Object
java.lang.Number
com.jackmeng.stl.types.UInt_t
- All Implemented Interfaces:
stl_type<UInt_t>,stl_type.type_Numerical<UInt_t>,java.io.Serializable,java.lang.Comparable<UInt_t>
public final class UInt_t extends java.lang.Number implements stl_type.type_Numerical<UInt_t>
Represents a standard Java 32 Bitness Unsigned Integer type.
This is not to be a wrapper class!!
- Author:
- Jack Meng
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jackmeng.stl.stl_type
stl_type.type_Numerical<E extends java.lang.Number> -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description privateUInt_t(int v) -
Method Summary
Modifier and Type Method Description UInt_tand(UInt_t e)Generic Bitwise AND.intcompareTo(UInt_t o)UInt_tdivide(UInt_t e)Generic Numerical Division.doubledoubleValue()booleanequals(java.lang.Object e)floatfloatValue()intintValue()UInt_tleft(UInt_t e)Generic Bitwise Left Shift.longlongValue()static UInt_tmake(long t)Turn a regular long into an unsigned integer.UInt_tminus(UInt_t e)Generic Numerical Subtraction.UInt_tmod(UInt_t e)Generic Numerical Modulo (Remainder Division).UInt_tnot()Generic Bitwise Negation.UInt_tor(UInt_t e)Generic Bitwise OR.UInt_tplus(UInt_t e)Generic Numerical Addition.UInt_tright(UInt_t e)Generic Bitwise Right Shift.UInt_tright_2(UInt_t e)Generic Bitwise Right Shift.UInt_ttimes(UInt_t e)Generic Numerical Multiplication.UInt_txor(UInt_t e)Generic Bitwise XOR.Methods inherited from class java.lang.Number
byteValue, shortValueMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
val
private final int val -
ZERO
ZERO = 0 -
ONE
ONE = 1 -
MAX_VALUE
MAX_VALUE = ?
-
-
Constructor Details
-
UInt_t
private UInt_t(int v)
-
-
Method Details
-
make
Turn a regular long into an unsigned integer.- Parameters:
t- A value- Returns:
- An
UInt_t(int)object
-
compareTo
- Specified by:
compareToin interfacejava.lang.Comparable<UInt_t>
-
equals
public boolean equals(java.lang.Object e)- Overrides:
equalsin classjava.lang.Object
-
intValue
public int intValue()- Specified by:
intValuein classjava.lang.Number
-
longValue
public long longValue()- Specified by:
longValuein classjava.lang.Number
-
floatValue
public float floatValue()- Specified by:
floatValuein classjava.lang.Number
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein classjava.lang.Number
-
plus
Description copied from interface:stl_type.type_NumericalGeneric Numerical Addition. Where it is "this + (param.value)"- Specified by:
plusin interfacestl_type.type_Numerical<UInt_t>- Parameters:
e- The other type to be added.- Returns:
- A new object instance that has the value of the final operation.
-
minus
Description copied from interface:stl_type.type_NumericalGeneric Numerical Subtraction. Where it is "this - (param.value)"- Specified by:
minusin interfacestl_type.type_Numerical<UInt_t>- Parameters:
e- The other type to be subtracted.- Returns:
- A new object instance that has the value of the final operation.
-
times
Description copied from interface:stl_type.type_NumericalGeneric Numerical Multiplication. Where it is "this * (param.value)"- Specified by:
timesin interfacestl_type.type_Numerical<UInt_t>- Parameters:
e- The other type to be multiplied by.- Returns:
- A new object instance that has the value of the final operation.
-
divide
Description copied from interface:stl_type.type_NumericalGeneric Numerical Division. Where it is "this / (param.value)"- Specified by:
dividein interfacestl_type.type_Numerical<UInt_t>- Parameters:
e- The other type to be divided by.- Returns:
- A new object instance that has the value of the final operation.
-
mod
Description copied from interface:stl_type.type_NumericalGeneric Numerical Modulo (Remainder Division). Where it is "this % (param.value)"- Specified by:
modin interfacestl_type.type_Numerical<UInt_t>- Parameters:
e- The other type to be modded.- Returns:
- A new object instance that has the value of the final operation.
-
not
Description copied from interface:stl_type.type_NumericalGeneric Bitwise Negation. Where it is "~this"- Specified by:
notin interfacestl_type.type_Numerical<UInt_t>- Returns:
- A new object instance that has the value of the final operation.
-
or
Description copied from interface:stl_type.type_NumericalGeneric Bitwise OR. Where it is "this | (param.value)"- Specified by:
orin interfacestl_type.type_Numerical<UInt_t>- Parameters:
e- The other type to be bitwise ORed.- Returns:
- A new object instance that has the value of the final operation.
-
xor
Description copied from interface:stl_type.type_NumericalGeneric Bitwise XOR. Where it is "this ^ (param.value)"- Specified by:
xorin interfacestl_type.type_Numerical<UInt_t>- Parameters:
e- The other type to be bitwise XORed.- Returns:
- A new object instance that has the value of the final operation.
-
and
Description copied from interface:stl_type.type_NumericalGeneric Bitwise AND. Where it is "this & (param.value)"- Specified by:
andin interfacestl_type.type_Numerical<UInt_t>- Parameters:
e- The other type to be bitwise ANDed.- Returns:
- A new object instance that has the value of the final operation.
-
left
Description copied from interface:stl_type.type_NumericalGeneric Bitwise Left Shift. Where it is "this << (param.value)"- Specified by:
leftin interfacestl_type.type_Numerical<UInt_t>- Parameters:
e- The other type to left shift by.- Returns:
- A new object instance that has the value of the final operation.
-
right
Description copied from interface:stl_type.type_NumericalGeneric Bitwise Right Shift. Where it is "this >> (param.value)"- Specified by:
rightin interfacestl_type.type_Numerical<UInt_t>- Parameters:
e- The other type to right shift by.- Returns:
- A new object instance that has the value of the final operation.
-
right_2
Description copied from interface:stl_type.type_NumericalGeneric Bitwise Right Shift. Where it is "this >>> (param.value)" with zero fill. Discarding bits and fill from the left with zeroes.- Specified by:
right_2in interfacestl_type.type_Numerical<UInt_t>- Parameters:
e- The other type to right shift by.- Returns:
- A new object instance that has the value of the final operation.
-