public enum BigDecimalMarshaller extends Enum<BigDecimalMarshaller> implements ProtoStreamMarshaller<BigDecimal>, org.wildfly.common.function.ExceptionPredicate<BigInteger,IOException>
BigDecimal.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends BigDecimal> |
getJavaClass()
Returns the type of object handled by this marshallable instance.
|
BigDecimal |
readFrom(ProtoStreamReader reader)
Reads an object from the specified reader.
|
boolean |
test(BigInteger value) |
static BigDecimalMarshaller |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BigDecimalMarshaller[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(ProtoStreamWriter writer,
BigDecimal value)
Writes the specified object to the specified writer.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetTypeName, read, writepublic static final BigDecimalMarshaller INSTANCE
public static BigDecimalMarshaller[] values()
for (BigDecimalMarshaller c : BigDecimalMarshaller.values()) System.out.println(c);
public static BigDecimalMarshaller valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic BigDecimal readFrom(ProtoStreamReader reader) throws IOException
MarshallablereadFrom in interface Marshallable<BigDecimal>reader - a ProtoStream readerIOException - if the object could not be readpublic void writeTo(ProtoStreamWriter writer, BigDecimal value) throws IOException
MarshallablewriteTo in interface Marshallable<BigDecimal>writer - a ProtoStream writervalue - the object to be writtenIOException - if the object could not be writtenpublic Class<? extends BigDecimal> getJavaClass()
MarshallablegetJavaClass in interface org.infinispan.protostream.BaseMarshaller<BigDecimal>getJavaClass in interface Marshallable<BigDecimal>public boolean test(BigInteger value)
test in interface org.wildfly.common.function.ExceptionPredicate<BigInteger,IOException>Copyright © 2023 JBoss by Red Hat. All rights reserved.