org.jnetpcap
Class PcapInteger

java.lang.Object
  extended by org.jnetpcap.PcapInteger

public final class PcapInteger
extends java.lang.Object

An 32-bit integer reference that can be used to pass into pcap methods that require an integer pointer to be set as a return value. The object is not peered with any native structures, but is set using special JNI priviledges.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Constructor Summary
PcapInteger()
          Creates an 0 initialized integer object
PcapInteger(int value)
          Initializes the object with int value
 
Method Summary
 int getValue()
          Gets the current value
 void setValue(int value)
          Sets a new value
 java.lang.String toString()
          Returns string representation of the integer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PcapInteger

public PcapInteger(int value)
Initializes the object with int value

Parameters:
value - value to initialize the object with

PcapInteger

public PcapInteger()
Creates an 0 initialized integer object

Method Detail

getValue

public final int getValue()
Gets the current value

Returns:
the value

setValue

public final void setValue(int value)
Sets a new value

Parameters:
value - the value to set

toString

public java.lang.String toString()
Returns string representation of the integer

Overrides:
toString in class java.lang.Object