/** * Returns {@code true} if the give value shall be skipped by the iterators, * according the value policy. * * @param value the value to test. * @return {@code true} if the given value shall be skipped by the iterators. */ final boolean isSkipped(final Object value) { return parent.table.valuePolicy.isSkipped(value); }
/** * Returns {@code true} if the give value shall be skipped by the iterators, * according the value policy. * * @param value the value to test. * @return {@code true} if the given value shall be skipped by the iterators. */ final boolean isSkipped(final Object value) { return parent.table.valuePolicy.isSkipped(value); }
/** * Returns the value corresponding to this entry. */ @Override public Object getValue() { final Object value = accessor.get(index, metadata); return valuePolicy.isSkipped(value) ? null : value; }
/** * Returns the value corresponding to this entry. */ @Override public Object getValue() { final Object value = accessor.get(index, metadata); return valuePolicy.isSkipped(value) ? null : value; }
/** * Associates the specified value with the specified key in this map. * * @throws IllegalArgumentException if the given key is not the name of a property in the metadata. * @throws ClassCastException if the given value is not of the expected type. * @throws UnmodifiableMetadataException if the property for the given key is read-only. */ @Override public Object put(final String key, final Object value) { final Object old = accessor.set(accessor.indexOf(key, true), metadata, value, RETURN_PREVIOUS); return valuePolicy.isSkipped(old) ? null : old; }
/** * Associates the specified value with the specified key in this map. * * @throws IllegalArgumentException if the given key is not the name of a property in the metadata. * @throws ClassCastException if the given value is not of the expected type. * @throws UnmodifiableMetadataException if the property for the given key is read-only. */ @Override public Object put(final String key, final Object value) { final Object old = accessor.set(accessor.indexOf(key, true), metadata, value, RETURN_PREVIOUS); return valuePolicy.isSkipped(old) ? null : old; }
/** * Returns the value to which the specified key is mapped, or {@code null} * if this map contains no mapping for the key. */ @Override public Object get(final Object key) { if (key instanceof String) { final Object value = accessor.get(accessor.indexOf((String) key, false), metadata); if (!valuePolicy.isSkipped(value)) { return value; } } return null; }
/** * Removes the mapping for a key from this map if it is present. * * @throws UnmodifiableMetadataException if the property for the given key is read-only. */ @Override public Object remove(final Object key) throws UnsupportedOperationException { if (key instanceof String) { final Object old = accessor.set(accessor.indexOf((String) key, false), metadata, null, RETURN_PREVIOUS); if (!valuePolicy.isSkipped(old)) { return old; } } return null; }
/** * Returns the value to which the specified key is mapped, or {@code null} * if this map contains no mapping for the key. */ @Override public Object get(final Object key) { if (key instanceof String) { final Object value = accessor.get(accessor.indexOf((String) key, false), metadata); if (!valuePolicy.isSkipped(value)) { return value; } } return null; }
/** * Removes the mapping for a key from this map if it is present. * * @throws UnmodifiableMetadataException if the property for the given key is read-only. */ @Override public Object remove(final Object key) throws UnsupportedOperationException { if (key instanceof String) { final Object old = accessor.set(accessor.indexOf((String) key, false), metadata, null, RETURN_PREVIOUS); if (!valuePolicy.isSkipped(old)) { return old; } } return null; }
if (!valuePolicy.isSkipped(value)) { switch (mode) { case COUNT_FIRST:{
/** * Moves {@link #next} to the first property with a valid value, * starting at the specified index. */ private void move(int index) { final int count = accessor.count(); while (index < count) { if (!valuePolicy.isSkipped(accessor.get(index, metadata))) { next = new Property(index); return; } index++; } next = null; }
/** * Moves {@link #next} to the first property with a valid value, * starting at the specified index. */ private void move(int index) { final int count = accessor.count(); while (index < count) { if (!valuePolicy.isSkipped(accessor.get(index, metadata))) { next = new Property(index); return; } index++; } next = null; }
if (!valuePolicy.isSkipped(value)) { switch (mode) { case COUNT_FIRST:{