TinyLine 2.3

com.tinyline.tiny2d
Class TinyNumber

java.lang.Object
  extended by com.tinyline.tiny2d.TinyNumber

public final class TinyNumber
extends java.lang.Object

The TinyNumber class wraps a value of the (double) fixed point type in an object.

Version:
1.11

Field Summary
static int INHERIT
          A constant holding the inherited constant value.
 int val
          The current number value.
 
Constructor Summary
TinyNumber(int i)
          Constructs a new TinyNumber object that represents the specified i value.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this object to the specified object.
 int hashCode()
          Returns a hashcode for this Integer.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INHERIT

public static final int INHERIT
A constant holding the inherited constant value.

See Also:
Constant Field Values

val

public int val
The current number value.

Constructor Detail

TinyNumber

public TinyNumber(int i)
Constructs a new TinyNumber object that represents the specified i value.

Method Detail

equals

public boolean equals(java.lang.Object obj)
Compares this object to the specified object. The result is true if and only if the argument is not null and is an Integer object that contains the same int value as this object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the object to compare with.
Returns:
true if the objects are the same; false otherwise.

hashCode

public int hashCode()
Returns a hashcode for this Integer.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this object.

TinyLine 2.3

Provided under the terms of the TinyLine License Agreement that has been included with this distribution.