public class ModuleProperty extends Object implements Comparable<ModuleProperty>
Constructor and Description |
---|
ModuleProperty() |
ModuleProperty(String key,
List<String> values) |
ModuleProperty(String key,
String... values) |
Modifier and Type | Method and Description |
---|---|
void |
addValues(String... values)
Adds values to this ModuleProperty
|
int |
compareTo(ModuleProperty other)
A comparison of keys first, then values.
|
boolean |
equals(Object other) |
String |
getKey()
Gets the value of the key property.
|
String |
getSingletonValue() |
List<String> |
getValues() |
int |
hashCode() |
boolean |
hasValues() |
void |
setKey(String key)
Sets the value of the key property.
|
void |
setValues(List<String> values)
Update the list holding the values for the property.
|
void |
setValues(String... values)
Sets the values of this ModuleProperty to the argument values.
|
String |
toString() |
public String getKey()
public void setKey(String key)
public void setValues(List<String> values)
values
- public void setValues(String... values)
values
- public void addValues(String... values)
values
- public String getSingletonValue()
IllegalStateException
- if this module property has multiple values.public boolean hasValues()
public int compareTo(ModuleProperty other)
compareTo
in interface Comparable<ModuleProperty>
Copyright © 2007, 2013, Oracle and/or its affiliates. All rights reserved.