public class MutableMultiLabelInfo extends MultiLabelInfo implements MutableOutputInfo<MultiLabel>
labelCounts, labels, totalCount, unknownCount
Constructor and Description |
---|
MutableMultiLabelInfo(MultiLabelInfo info)
Construct a MutableMultiLabelInfo with it's state copied from another
MultiLabelInfo.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the OutputInfo, removing all things it's observed.
|
MutableMultiLabelInfo |
copy()
Generates a copy of this OutputInfo, including it's mutability.
|
void |
observe(MultiLabel output)
Throws IllegalStateException if the MultiLabel contains a Label which has a "," in it.
|
String |
toReadableString()
Generates a String form of this OutputInfo.
|
String |
toString() |
equals, generateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getLabelCount, getLabelCount, getUnknownCount, hashCode, outputCountsIterable, size
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
generateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getUnknownCount, outputCountsIterable, size
public MutableMultiLabelInfo(MultiLabelInfo info)
info
- The info to copy.public void observe(MultiLabel output)
Such labels are disallowed. There should be an exception thrown when one is constructed too.
observe
in interface MutableOutputInfo<MultiLabel>
output
- The observed output.public void clear()
MutableOutputInfo
clear
in interface MutableOutputInfo<MultiLabel>
public MutableMultiLabelInfo copy()
OutputInfo
copy
in interface OutputInfo<MultiLabel>
copy
in class MultiLabelInfo
public String toReadableString()
OutputInfo
This String can contain newlines, tabs and other formatting.
toReadableString
in interface OutputInfo<MultiLabel>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.