public class ImmutableValueModel extends BasicValueModel
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
comments, lineSeparator, separator, values| Constructor and Description |
|---|
ImmutableValueModel(List<String> comments,
List<String> values) |
ImmutableValueModel(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) |
asKeyValueRep, equals, getValue, hashCode, toString, toXML, toXMLCompatibilityModeprivate static final long serialVersionUID
public ImmutableValueModel(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-2014 David R. Smith. All Rights Reserved.