public class BinaryConstant extends ConstantDomain<byte[]>
Constructor and Description |
---|
BinaryConstant(byte[] value)
Creates a new BinaryConstant instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(byte[] value)
Returns true if the given value belongs to this domain.
|
protected DataValue<byte[]> |
dataValueOf(byte[] value)
Returns a
DataValue for the given value in this domain. |
String |
getFormat()
Returns the format for values that belong to this domain.
|
void |
setFormat(String format)
Changes the format for values that belong to this domain.
|
getTypes, getValue, toString, values
withFormat
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
arrayOf, arrayOf, arrayOf, contains, containsObject, getType, select, selectValue
public BinaryConstant(byte[] value)
public boolean contains(byte[] value)
contains
in interface ValueDomain<byte[]>
contains
in class ConstantDomain<byte[]>
public void setFormat(String format)
setFormat
in class AbstractValueDomain<byte[]>
public String getFormat()
getFormat
in interface ValueDomain<byte[]>
getFormat
in class AbstractValueDomain<byte[]>
protected DataValue<byte[]> dataValueOf(byte[] value)
DataValue
for the given value in this domain.dataValueOf
in class AbstractValueDomain<byte[]>
Copyright © 2024 The Cornutum Project. All rights reserved.