@Test public void requireThatConstructorsWork() { FeatureSet node = new FeatureSet("key", "valueA", "valueB"); assertEquals("key", node.getKey()); assertValues(Arrays.asList("valueA", "valueB"), node); node = new FeatureSet("key", Arrays.asList("valueA", "valueB")); assertEquals("key", node.getKey()); assertValues(Arrays.asList("valueA", "valueB"), node); }
public String getKey() { return key; }
FeatureSet extends PredicateValue { public String getKey() { return key; } }
FeatureSet extends PredicateValue { public String getKey() { return key; } FeatureSet(String key, String... values);  FeatureSet(String key, Collection<String> values); }
FeatureSet extends PredicateValue { public String getKey() { return key; } FeatureSet(String key, String... values);  FeatureSet(String key, Collection<String> values); FeatureSet setKey(String key); String getKey(); FeatureSet addValue(String value); FeatureSet addValues(Collection<String> values); FeatureSet setValues(Collection<String> values); Set<String> getValues(); @Override FeatureSet clone(); @Override int hashCode(); @Override boolean equals(Object obj); }
FeatureSet extends PredicateValue { public String getKey() { return key; } FeatureSet(String key, String... values);  FeatureSet(String key, Collection<String> values); FeatureSet setKey(String key); String getKey(); FeatureSet addValue(String value); FeatureSet addValues(Collection<String> values); FeatureSet setValues(Collection<String> values); Set<String> getValues(); @Override FeatureSet clone(); @Override int hashCode(); @Override boolean equals(Object obj);  }