Class RandomValue
- java.lang.Object
-
- ru.ispras.microtesk.utils.SharedObject<RandomValue>
-
- ru.ispras.microtesk.test.template.RandomValue
-
- All Implemented Interfaces:
Value
public final class RandomValue extends SharedObject<RandomValue> implements Value
-
-
Constructor Summary
Constructors Constructor Description RandomValue(java.math.BigInteger min, java.math.BigInteger max)
RandomValue(ru.ispras.fortress.randomizer.Variate<?> variate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Value
copy()
java.math.BigInteger
getValue()
RandomValue
newCopy()
Creates a new full copy of the object.java.lang.String
toString()
-
Methods inherited from class ru.ispras.microtesk.utils.SharedObject
copyAll, freeSharedCopies, getCopy, publishSharedCopy, sharedCopy, sharedCopyAll
-
-
-
-
Method Detail
-
newCopy
public RandomValue newCopy()
Description copied from class:SharedObject
Creates a new full copy of the object. This method must call theSharedObject(SharedObject)
copy constructor in order to publish a shared copy.- Specified by:
newCopy
in classSharedObject<RandomValue>
- Returns:
- New full copy of the object.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-