public class BinaryDomain extends SequenceDomain<byte[]>
Constructor and Description |
---|
BinaryDomain()
Creates a new BinaryDomain instance.
|
BinaryDomain(int maxLength)
Creates a new BinaryDomain instance.
|
Modifier and Type | Method and Description |
---|---|
protected Stream<byte[]> |
candidates(ResolverContext context)
Returns a random sequence of possible members of 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.
|
protected int |
getLength(byte[] value)
Returns the length of the given value.
|
void |
setExcludedStrings(Set<String> excluded)
Changes the values excluded from this domain.
|
void |
setFormat(String format)
Changes the format for values that belong to this domain.
|
protected boolean |
valuesEqual(byte[] value1,
byte[] value2)
Returns true if the given values are equal.
|
contains, getExcluded, getLengthRange, getMaxLength, getTypes, initLengthRange, isNotExcluded, setExcluded, setLengthRange, setLengthRange, setLengthRange, setLengthRange, toString, values
withFormat
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
arrayOf, arrayOf, arrayOf, contains, containsObject, getType, select, selectValue
public BinaryDomain()
public BinaryDomain(int maxLength)
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[]>
public void setExcludedStrings(Set<String> excluded)
setExcludedStrings
in class SequenceDomain<byte[]>
protected int getLength(byte[] value)
getLength
in class SequenceDomain<byte[]>
protected boolean valuesEqual(byte[] value1, byte[] value2)
valuesEqual
in class SequenceDomain<byte[]>
protected Stream<byte[]> candidates(ResolverContext context)
candidates
in class SequenceDomain<byte[]>
Copyright © 2024 The Cornutum Project. All rights reserved.