/** * Returns {@code true} if this collection contains the specified element. */ @Override public boolean contains(final Object object) { if (object instanceof Map.Entry<?,?>) { final Map.Entry<?,?> entry = (Map.Entry<?,?>) object; final Object key = entry.getKey(); if (key instanceof String) { final int index = accessor.indexOf((String) key, false); if (index >= 0) { return new Property(index).equals(entry); } } } return false; } }
/** * Returns {@code true} if this collection contains the specified element. */ @Override public boolean contains(final Object object) { if (object instanceof Map.Entry<?,?>) { final Map.Entry<?,?> entry = (Map.Entry<?,?>) object; final Object key = entry.getKey(); if (key instanceof String) { final int index = accessor.indexOf((String) key, false); if (index >= 0) { return new Property(index).equals(entry); } } } return false; } }
/** * 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; }