org.jnetpcap
Class PcapInteger

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

Deprecated. replaced by JNumber

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.
See Also:
JNumber

Constructor Summary
PcapInteger()
          Deprecated. Creates an 0 initialized integer object.
PcapInteger(int value)
          Deprecated. Initializes the object with int value.
 
Method Summary
 int getValue()
          Deprecated. Gets the current value
 void setValue(int value)
          Deprecated. Sets a new value
 java.lang.String toString()
          Deprecated. 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)
Deprecated. 
Initializes the object with int value.

Parameters:
value - value to initialize the object with

PcapInteger

public PcapInteger()
Deprecated. 
Creates an 0 initialized integer object.

Method Detail

getValue

public final int getValue()
Deprecated. 
Gets the current value

Returns:
the value

setValue

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

Parameters:
value - the value to set

toString

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

Overrides:
toString in class java.lang.Object
Returns:
integer as a string