public class UnsettableValueModel extends BasicValueModel
A ValueModel in which the internals cannot be changed once the constructor is called.
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
comments, lineSeparator, separator, values| Constructor and Description |
|---|
UnsettableValueModel(List<String> comments,
List<String> values) |
UnsettableValueModel(String... value) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComment(String comment) |
void |
addValue(String value) |
void |
clearComments() |
List<String> |
getComments()
Return a copy only, do not expose our internals
|
char |
getSeparator() |
List<String> |
getValues() |
void |
setSeparator(char separator) |
addComments, addValues, asKeyValueRep, clearValues, cloneImmutable, equals, getValue, hashCode, toString, toXML, toXMLCompatibilityModeprivate static final long serialVersionUID
public UnsettableValueModel(String... value)
public char getSeparator()
getSeparator in interface ValueModelgetSeparator in class BasicValueModelpublic List<String> getComments()
getComments in interface ValueModelgetComments in class BasicValueModelpublic List<String> getValues()
getValues in interface ValueModelgetValues in class BasicValueModelpublic void setSeparator(char separator)
setSeparator in class BasicValueModelpublic void addValue(String value)
addValue in class BasicValueModelpublic void addComment(String comment)
addComment in class BasicValueModelpublic void clearComments()
clearComments in class BasicValueModelCopyright © 2011–2016 David R. Smith. All rights reserved.