JADE v6.1

com.dautelle.math.numbers
Class LargeInteger.Value

java.lang.Object
  extended bycom.dautelle.math.numbers.LargeInteger.Value
Enclosing class:
LargeInteger

public static final class LargeInteger.Value
extends java.lang.Object

This inner class represents a mutable image of an immutable LargeInteger. Instances of this class are typically used for inter-threads communication (e.g. system state). Updates/queries do not perform heap allocation (when executed in a pool context), but usually require synchronization.


Constructor Summary
LargeInteger.Value()
           
 
Method Summary
 LargeInteger get()
          Returns an immutable copy of this mutable value (allocated on the "stack" when the current thread execute in a pool context).
 void set(LargeInteger value)
          Sets the current value of this mutable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LargeInteger.Value

public LargeInteger.Value()
Method Detail

get

public LargeInteger get()
Returns an immutable copy of this mutable value (allocated on the "stack" when the current thread execute in a pool context).

Returns:
a local immutable copy of this value.

set

public void set(LargeInteger value)
Sets the current value of this mutable.

Parameters:
value - the new value.

JADE v6.1

Copyright © 2004 Jean-Marie Dautelle.