com.jniwrapper.win32.automation.types
Class SafeArrayBound

java.lang.Object
  extended bycom.jniwrapper.Parameter
      extended bycom.jniwrapper.Structure
          extended bycom.jniwrapper.win32.automation.types.SafeArrayBound
All Implemented Interfaces:
AlignmentAwareParameter, CompositeParameter

public class SafeArrayBound
extends Structure

This structure contains bounds for dimension of an array and corresponds to SAFEARRAYBOUND native structure.

See Also:
Microsoft Automation SDK documentation

Field Summary
 
Fields inherited from class com.jniwrapper.Structure
f
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
SafeArrayBound()
          Creates new instance with 0 of elements in the array and 0 lower bound.
SafeArrayBound(int count)
          Creates new instance with specified number of elements in the array.
SafeArrayBound(int count, int lowerBound)
          Creates new instance with specified number of elements in the array and specified lower bound.
 
Method Summary
 java.lang.Object clone()
           
 int getCount()
          Returns number of elements in the array.
 int getLowerBound()
          Returns lower bound for the array.
 void setCount(long value)
          Sets new number of elements in the array.
 void setLowerBound(int value)
          Sets new lower bound for the array.
 
Methods inherited from class com.jniwrapper.Structure
a, a, acceptIOPerformer, addMembers, computeLength, equals, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getDataBuffer, getDataBufferOffset, hashCode, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SafeArrayBound

public SafeArrayBound()
Creates new instance with 0 of elements in the array and 0 lower bound.


SafeArrayBound

public SafeArrayBound(int count)
Creates new instance with specified number of elements in the array.

Parameters:
count - number of elements in the array.

SafeArrayBound

public SafeArrayBound(int count,
                      int lowerBound)
Creates new instance with specified number of elements in the array and specified lower bound.

Parameters:
count - number of elements in the array.
Method Detail

getCount

public int getCount()
Returns number of elements in the array.

Returns:
number of elements in the array.

setCount

public void setCount(long value)
Sets new number of elements in the array.

Parameters:
value - number of elements in the array.

getLowerBound

public int getLowerBound()
Returns lower bound for the array.

Returns:
lower bound for the array.

setLowerBound

public void setLowerBound(int value)
Sets new lower bound for the array.

Parameters:
value - new lower bound for the array.

clone

public java.lang.Object clone()