com.jniwrapper
Class Bool

java.lang.Object
  extended by com.jniwrapper.Parameter
      extended by com.jniwrapper.DelegatingParameter
          extended by com.jniwrapper.Bool

public class Bool
extends DelegatingParameter

Represents a bool (boolean) value and type.


Field Summary
static Bool FALSE
          false bool value.
static Bool TRUE
          true bool value.
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
Bool()
          Constructs an instance with false value.
Bool(Bool that)
          Constructs an instance that has the same value as the passed Bool object.
Bool(boolean value)
          Constructs an instance with a specified value.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
          Compares this object with a passed one.
 java.lang.String getDebugInfo()
          Return debug info for JNIWrapper parameter.
 boolean getValue()
          Returns a boolean value.
 int hashCode()
           
 void setValue(boolean value)
          Sets a boolean value.
 java.lang.Boolean toBoolean()
           
 java.lang.String toString()
           
 
Methods inherited from class com.jniwrapper.DelegatingParameter
acceptIOPerformer, getDataBuffer, getDataBufferOffset, getLength, getValueObject, pop, push, read, setDataBuffer, setValueObject, write
 
Methods inherited from class com.jniwrapper.Parameter
asReturnValue, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FALSE

public static final Bool FALSE
false bool value.


TRUE

public static final Bool TRUE
true bool value.

Constructor Detail

Bool

public Bool()
Constructs an instance with false value.


Bool

public Bool(boolean value)
Constructs an instance with a specified value.


Bool

public Bool(Bool that)
Constructs an instance that has the same value as the passed Bool object.

Method Detail

toBoolean

public java.lang.Boolean toBoolean()

equals

public boolean equals(java.lang.Object obj)
Compares this object with a passed one. If the passed object is an instance of Bool, returns true if the values of both objects are equal.

If the passed object is an instance of IntegerParameter, the method compares its own state with a non-zero state of the passed integer. If its own value is true, then the result of the comparison would be true for non-zero values of the passed integer argument. If its own value is false, the result would be true only if the passed integer value is zero. Otherwise, false would be returned.

Overrides:
equals in class Parameter
Parameters:
obj - the object to compare with.
Returns:
true if two objects represent the same logical value; otherwise false.

hashCode

public int hashCode()
Overrides:
hashCode in class Parameter

getDebugInfo

public java.lang.String getDebugInfo()
Description copied from class: Parameter
Return debug info for JNIWrapper parameter.

Overrides:
getDebugInfo in class DelegatingParameter
Returns:
debug info

toString

public java.lang.String toString()
Overrides:
toString in class DelegatingParameter

setValue

public void setValue(boolean value)
Sets a boolean value.


getValue

public boolean getValue()
Returns a boolean value.


clone

public java.lang.Object clone()
Specified by:
clone in class Parameter