org.abora.white.value
Class PrimFloatSpec

java.lang.Object
  |
  +--org.abora.white.xpp.basic.Heaper
        |
        +--org.abora.white.value.PrimSpec
              |
              +--org.abora.white.value.PrimFloatSpec

public class PrimFloatSpec
extends PrimSpec

Specifies different precisions and representations of floating point numbers.


Field Summary
protected  int myBitCount
           
 
Fields inherited from class org.abora.white.value.PrimSpec
arrayClass
 
Constructor Summary
protected PrimFloatSpec(java.lang.Class arrayClass, int bitCount)
           
 
Method Summary
 int actualHashForEqual()
          Defined by subclasses to produce the value returned by hashForEqual.
 PrimArray arrayFromBuffer(java.lang.Object buffer)
          Make an array with the values at the given address
 int bitCount()
          Return the total number of bits per value that meets the specification.
 boolean isEqual(Heaper other)
          Return true if the two objects are equal.
 PrimArray privateCopy(PrimArray array, int size, int start, int count, int offset)
          Make a copy of an array with a different representation size.
 PrimFloatValue value(double number)
          A boxed floating point value
 
Methods inherited from class org.abora.white.value.PrimSpec
array, array, arrayClass, arrayWith, arrayWithThree, arrayWithTwo, copy, copy, copy, copy, copy, copyGrow, iEEE, iEEE32, iEEE64, int16, int32, int64, int8, integerVar, pointer, sharedPointer, signedInteger, toHold, uInt16, uInt32, uInt8, unsignedInteger
 
Methods inherited from class org.abora.white.xpp.basic.Heaper
destroy, destruct, equals, hashForEqual, printContentsOn, printOn, sendSelfTo, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myBitCount

protected final int myBitCount
Constructor Detail

PrimFloatSpec

protected PrimFloatSpec(java.lang.Class arrayClass,
                        int bitCount)
Method Detail

bitCount

public int bitCount()
Return the total number of bits per value that meets the specification.

Returns:
total number of bits per value.

actualHashForEqual

public int actualHashForEqual()
Description copied from class: Heaper
Defined by subclasses to produce the value returned by hashForEqual.

Overrides:
actualHashForEqual in class PrimSpec

isEqual

public boolean isEqual(Heaper other)
Description copied from class: Heaper
Return true if the two objects are equal.

Specified by:
isEqual in class Heaper

privateCopy

public PrimArray privateCopy(PrimArray array,
                             int size,
                             int start,
                             int count,
                             int offset)
Make a copy of an array with a different representation size. The arguments are the same as in PrimArray::copy.

Specified by:
privateCopy in class PrimSpec

arrayFromBuffer

public PrimArray arrayFromBuffer(java.lang.Object buffer)
Make an array with the values at the given address

Specified by:
arrayFromBuffer in class PrimSpec
Parameters:
buffer - Java array containing elements meeting this specification.
Returns:
the array

value

public PrimFloatValue value(double number)
A boxed floating point value



Copyright © 2003 David G Jones. All Rights Reserved.
Original Udanax-Gold - Copyright © 1979-1999 Udanax.com. All rights reserved.