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. |
protected int |
getLength(byte[] value)
Returns the length of the given value.
|
void |
setExcludedStrings(Set<String> excluded)
Changes the values excluded from this domain.
|
protected boolean |
valuesEqual(byte[] value1,
byte[] value2)
Returns true if the given values are equal.
|
contains, getExcluded, getLengthRange, getMaxLength, getTypes, initLengthRange, isNotExcluded, isRestrictedLength, setExcluded, setLengthRange, setLengthRange, setLengthRange, setLengthRange, toString, valuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitarrayOf, arrayOf, arrayOf, contains, containsObject, select, selectValue, valueOfpublic BinaryDomain()
public BinaryDomain(int maxLength)
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 © 2020 The Cornutum Project. All rights reserved.