Changed formatting to have bracing on a new line
This commit is contained in:
parent
e5eddd6c45
commit
e48eedb874
189 changed files with 6092 additions and 4041 deletions
|
@ -8,11 +8,13 @@ import java.util.Arrays;
|
|||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
|
||||
public class PropertyString extends PropertyHelper {
|
||||
public class PropertyString extends PropertyHelper
|
||||
{
|
||||
|
||||
private final ImmutableSet allowedValues;
|
||||
|
||||
protected PropertyString(String name, String[] values) {
|
||||
protected PropertyString(String name, String[] values)
|
||||
{
|
||||
super(name, String.class);
|
||||
|
||||
HashSet<String> hashSet = Sets.newHashSet();
|
||||
|
@ -20,21 +22,25 @@ public class PropertyString extends PropertyHelper {
|
|||
allowedValues = ImmutableSet.copyOf(hashSet);
|
||||
}
|
||||
|
||||
public static PropertyString create(String name, String[] values) {
|
||||
public static PropertyString create(String name, String[] values)
|
||||
{
|
||||
return new PropertyString(name, values);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection getAllowedValues() {
|
||||
public Collection getAllowedValues()
|
||||
{
|
||||
return allowedValues;
|
||||
}
|
||||
|
||||
public String getName0(String value) {
|
||||
public String getName0(String value)
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName(Comparable value) {
|
||||
public String getName(Comparable value)
|
||||
{
|
||||
return this.getName0(value.toString());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue