phrase nets
Public Member Functions | Protected Member Functions
pn::MutableInteger Class Reference

List of all members.

Public Member Functions

 MutableInteger ()
 MutableInteger (int value)
 MutableInteger (MutableInteger value)
int compareTo (MutableInteger o)
String toString ()
MutableInteger copy ()
int getValue ()
void setValue (int value)
void increment ()
void increment (int by)
void increment (MutableInteger by)
void decrement ()
void decrement (int by)
void decrement (MutableInteger by)

Protected Member Functions

Object clone () throws CloneNotSupportedException

Detailed Description

A mutable integer.


Constructor & Destructor Documentation

pn::MutableInteger::MutableInteger ( ) [inline]

Ctor.

Initializes this object with the value '0'.

pn::MutableInteger::MutableInteger ( int  value) [inline]

Ctor.

Parameters:
valueThe initial value
pn::MutableInteger::MutableInteger ( MutableInteger  value) [inline]

Ctor.

Parameters:
valueThe initial value

Member Function Documentation

MutableInteger pn::MutableInteger::copy ( ) [inline]
Returns:
A deep copy of this object
void pn::MutableInteger::decrement ( int  by) [inline]

Decrements the value.

Parameters:
byFactor
void pn::MutableInteger::decrement ( ) [inline]

Decrements the value.

void pn::MutableInteger::decrement ( MutableInteger  by) [inline]

Decrements the value.

Parameters:
byFactor
int pn::MutableInteger::getValue ( ) [inline]
Returns:
The value
void pn::MutableInteger::increment ( int  by) [inline]

Increments the value.

Parameters:
byFactor
void pn::MutableInteger::increment ( MutableInteger  by) [inline]

Increments the value.

Parameters:
byFactor
void pn::MutableInteger::increment ( ) [inline]

Increments the value.

void pn::MutableInteger::setValue ( int  value) [inline]

Sets the value.

Parameters:
valueThe new value

The documentation for this class was generated from the following file:
 All Classes Functions Variables