org.xbig.base
Class CharPointer

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.xbig.base.NumberPointer<java.lang.Character>
          extended by org.xbig.base.CharPointer
All Implemented Interfaces:
INativeObject

public class CharPointer
extends NumberPointer<java.lang.Character>

Represents a pointer or reference to a native char value.

See Also:
NumberPointer

Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
CharPointer(char value)
          Create native variable and initialise it.
CharPointer(InstancePointer pInstance)
           
CharPointer(InstancePointer pointer, boolean b)
           
 
Method Summary
 void delete()
          Deletes the corresponding C++ object.
 double doubleValue()
          Returns the value of the specified number as a double.
 boolean equals(java.lang.Object obj)
           
 void finalize()
           
 float floatValue()
          Returns the value of the specified number as a float.
 java.lang.Character get()
           
 int hashCode()
           
 int intValue()
          Returns the value of the specified number as an int.
 long longValue()
          Returns the value of the specified number as a long.
 CharPointer next()
           
 void set(java.lang.Character value)
          Sets the value of the native number
 java.lang.String toString()
           
 
Methods inherited from class org.xbig.base.NumberPointer
byteValue, shortValue
 
Methods inherited from class org.xbig.base.NativeObject
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CharPointer

public CharPointer(InstancePointer pInstance)

CharPointer

public CharPointer(InstancePointer pointer,
                   boolean b)

CharPointer

public CharPointer(char value)
Create native variable and initialise it.

Parameters:
value - Value to initialise native value.
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
NativeObject.delete()

doubleValue

public double doubleValue()
Description copied from class: NumberPointer
Returns the value of the specified number as a double. This may involve rounding.

Specified by:
doubleValue in class NumberPointer<java.lang.Character>
Returns:
the numeric value represented by this object after conversion to type double.
See Also:
NumberPointer.doubleValue()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class NativeObject
See Also:
NativeObject.equals(java.lang.Object)

floatValue

public float floatValue()
Description copied from class: NumberPointer
Returns the value of the specified number as a float. This may involve rounding.

Specified by:
floatValue in class NumberPointer<java.lang.Character>
Returns:
the numeric value represented by this object after conversion to type float.
See Also:
NumberPointer.floatValue()

get

public java.lang.Character get()
Specified by:
get in class NumberPointer<java.lang.Character>
Returns:
The value of the native number.
See Also:
NumberPointer.get()

hashCode

public int hashCode()
Overrides:
hashCode in class NativeObject
See Also:
NativeObject.hashCode()

intValue

public int intValue()
Description copied from class: NumberPointer
Returns the value of the specified number as an int. This may involve rounding or truncation.

Specified by:
intValue in class NumberPointer<java.lang.Character>
Returns:
the numeric value represented by this object after conversion to type int.
See Also:
NumberPointer.intValue()

longValue

public long longValue()
Description copied from class: NumberPointer
Returns the value of the specified number as a long. This may involve rounding or truncation.

Specified by:
longValue in class NumberPointer<java.lang.Character>
Returns:
the numeric value represented by this object after conversion to type long.
See Also:
NumberPointer.longValue()

next

public CharPointer next()
Specified by:
next in class NumberPointer<java.lang.Character>
Returns:
The pointer to the next number in memory.
See Also:
NumberPointer.next()

set

public void set(java.lang.Character value)
Description copied from class: NumberPointer
Sets the value of the native number

Specified by:
set in class NumberPointer<java.lang.Character>
Parameters:
value - the value to set.
See Also:
NumberPointer.set(java.lang.Object)

toString

public java.lang.String toString()
Overrides:
toString in class NativeObject
See Also:
NativeObject.toString()

finalize

public void finalize()
Overrides:
finalize in class NativeObject


Copyright © 2007 netAllied GmbH. All Rights Reserved.