public <T> boolean contains(PropertyType<T> property) throws NullPointerException { Values values = get(property, true, false); return values != null && values.size > 0; } }
public <T> boolean contains(PropertyType<T> property) throws NullPointerException { Values values = get(property, true, false); return values != null && values.size > 0; } }
public <T> Iterable<T> getValues(PropertyType<T> property) throws NullPointerException { return (Iterable<T>)get(property, true, false); }
public <T> Iterable<T> getValues(PropertyType<T> property) throws NullPointerException { return (Iterable<T>)get(property, true, false); }
public <T> T getValue(PropertyType<T> property) { T value = null; Values values = get(property, true, false); if (values != null && values.size > 0) { value = property.cast(values.objects[0]); } return value; }
public <T> void addValues(PropertyType<T> property, T... values) throws NullPointerException { Values existing = get(property, true, true); for (T value : values) { existing.addValue(value); } }
public <T> void remove(PropertyType<T> property) throws NullPointerException { Values values = get(property, false, delegate != null); if (values != null) { values.clear(); } }
public <T> void addValues(PropertyType<T> property, T... values) throws NullPointerException { Values existing = get(property, true, true); for (T value : values) { existing.addValue(value); } }
public <T> void addValues(PropertyType<T> property, Iterable<? extends T> values) throws NullPointerException { Values existing = get(property, true, true); for (T value : values) { existing.addValue(value); } }
public <T> T getValue(PropertyType<T> property) { T value = null; Values values = get(property, true, false); if (values != null && values.size > 0) { value = property.cast(values.objects[0]); } return value; }
public <T> void addValues(PropertyType<T> property, Iterable<? extends T> values) throws NullPointerException { Values existing = get(property, true, true); for (T value : values) { existing.addValue(value); } }
public <T> void remove(PropertyType<T> property) throws NullPointerException { Values values = get(property, false, delegate != null); if (values != null) { values.clear(); } }
public <T> void addValue(PropertyType<T> property, T value) throws NullPointerException { get(property, true, true).addValue(value); }
public <T> void addValue(PropertyType<T> property, T value) throws NullPointerException { get(property, true, true).addValue(value); }
public <T> void setValues(PropertyType<T> property, Iterable<? extends T> values) throws NullPointerException { Values existing = get(property, false, true); existing.clear(); for (T value : values) { existing.addValue(value); } }
public <T> void setValues(PropertyType<T> property, T... values) throws NullPointerException { Values existing = get(property, false, true); existing.clear(); for (T value : values) { existing.addValue(value); } }
public <T> void setValues(PropertyType<T> property, Iterable<? extends T> values) throws NullPointerException { Values existing = get(property, false, true); existing.clear(); for (T value : values) { existing.addValue(value); } }
public <T> void setValues(PropertyType<T> property, T... values) throws NullPointerException { Values existing = get(property, false, true); existing.clear(); for (T value : values) { existing.addValue(value); } }
public <T> void setValue(PropertyType<T> property, T value) throws NullPointerException { if (value == null) { remove(property); } else { Values existing = get(property, false, true); existing.clear(); existing.addValue(value); } }
public <T> void setValue(PropertyType<T> property, T value) throws NullPointerException { if (value == null) { remove(property); } else { Values existing = get(property, false, true); existing.clear(); existing.addValue(value); } }