/** * {@inheritDoc} * * Note: If the descriptor with {@code key} does not exist in this set, the call is delegated to the base descriptors. */ @Override public boolean isStandardDescriptor(@NotNull String key) { return descriptors.containsKey(key) && descriptors.get(key).standard || base != null && base.isStandardDescriptor(key); }
/** * {@inheritDoc} * * Note: If the descriptor with {@code key} does not exist in this set, the call is delegated to the base descriptors. */ @Override public boolean isStandardDescriptor(@Nonnull String key) { return descriptors.containsKey(key) && descriptors.get(key).standard || base != null && base.isStandardDescriptor(key); }
@Override public boolean isStandardDescriptor(@Nonnull String key) { for (Iterator<Descriptors> it = getDescriptors().iterator(); it.hasNext();) { Descriptors descriptors = it.next(); if (descriptors.isStandardDescriptor(key)) { return true; } } return false; }
@Override public boolean isStandardDescriptor(@NotNull String key) { for (Iterator<Descriptors> it = getDescriptors().iterator(); it.hasNext();) { Descriptors descriptors = it.next(); if (descriptors.isStandardDescriptor(key)) { return true; } } return false; }
static DescriptorEntry fromKey(String key, Descriptors descriptors) { if (descriptors.isSingleValueDescriptor(key)) { return newSingleValuedEntry(key, descriptors.getValue(key), descriptors.isStandardDescriptor(key)); } else { return newMultiValuedEntry(key, descriptors.getValues(key), descriptors.isStandardDescriptor(key)); } }