
com.almondtools.testrecorder.values.SerializedBigInteger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testrecorder Show documentation
Show all versions of testrecorder Show documentation
Recording test data from running program.
package com.almondtools.testrecorder.values;
import java.lang.reflect.Type;
import java.math.BigInteger;
import com.almondtools.testrecorder.SerializedImmutableVisitor;
import com.almondtools.testrecorder.SerializedValueVisitor;
public class SerializedBigInteger extends SerializedImmutable {
public SerializedBigInteger(Type type, Class> valueType) {
super(type, valueType);
}
@Override
public T accept(SerializedValueVisitor visitor) {
return visitor.as(SerializedImmutableVisitor.extend(visitor))
.map(v -> v.visitBigInteger(this))
.orElseGet(() -> visitor.visitUnknown(this));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy