TinyLine
v2.0

com.tinyline.tiny2d
Class TinyNumber

java.lang.Object
  extended bycom.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

Author:
Andrew Girow

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

hashCode

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

Returns:
a hash code value for this object.

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.

Parameters:
obj - the object to compare with.
Returns:
true if the objects are the same; false otherwise.

TinyLine
v2.0

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