localPrefixes.putAll(cachedPrefixProps);
/** * Enforces the states referenced in the given EnumMap. */ public void enforceStates(final EnumMap<StateType, RenderState> states) { _enforcedStates.putAll(states); }
/** * Enforces the states referenced in the given EnumMap. */ public void enforceStates(final EnumMap<StateType, RenderState> states) { _enforcedStates.putAll(states); }
public void setDimensions(EnumMap<Direction, Double> dimensions) { this.dimensions.putAll(dimensions); facesAreOutOfDate = true; }
/** * Sets the metadata for the buffer. This is not available until the buffer * is about to be flushed. * * @param metadata the metadata */ public synchronized void setMetadata(EnumMap<Metadata, byte[]> metadata) { if (metadata != null) { this.metadata.putAll(metadata); } }
@Override public void close(EnumMap<Metadata, byte[]> meta) throws IOException { if (meta != null) { synchronized (metadata) { metadata.putAll(meta); } } }
@Nonnull public final SAXReaderSettings setFeatureValues (@Nullable final Map <EXMLParserFeature, Boolean> aValues) { if (aValues != null) m_aFeatures.putAll (aValues); return this; }
@Nonnull public final DOMReaderSettings setPropertyValues (@Nullable final Map <EXMLParserProperty, ?> aProperties) { if (aProperties != null) m_aProperties.putAll (aProperties); return this; }
@Nonnull public final SAXReaderSettings setPropertyValues (@Nullable final Map <EXMLParserProperty, ?> aProperties) { if (aProperties != null) m_aProperties.putAll (aProperties); return this; }
/** * Internally copies this configuaration object. * * @return The copied configuration */ private OWLOntologyLoaderConfiguration copyConfiguration() { OWLOntologyLoaderConfiguration copy = new OWLOntologyLoaderConfiguration(); copy.overrides.putAll(overrides); copy.ignoredImports.clear(); copy.ignoredImports.addAll(ignoredImports); return copy; }
private static Map<PropertyAccessor,Visibility> changeMap(Map<PropertyAccessor,Visibility> original, PropertyAccessor method, Visibility level) { EnumMap<PropertyAccessor, Visibility> levels = new EnumMap<PropertyAccessor, Visibility>(PropertyAccessor.class); if (method == PropertyAccessor.ALL) { return createMap(level, level, level, level, level); } levels.putAll(original); levels.put(method, level); return Collections.unmodifiableMap(levels); } }
private static Map<JsonMethod,Visibility> changeMap(Map<JsonMethod,Visibility> original, JsonMethod method, Visibility level) { EnumMap<JsonMethod, Visibility> levels = new EnumMap<JsonMethod, Visibility>(JsonMethod.class); if (method == JsonMethod.ALL) { return createMap(level, level, level, level, level); } levels.putAll(original); levels.put(method, level); return Collections.unmodifiableMap(levels); } }
private static Map<JsonMethod,Visibility> changeMap(Map<JsonMethod,Visibility> original, JsonMethod method, Visibility level) { EnumMap<JsonMethod, Visibility> levels = new EnumMap<JsonMethod, Visibility>(JsonMethod.class); if (method == JsonMethod.ALL) { return createMap(level, level, level, level, level); } levels.putAll(original); levels.put(method, level); return Collections.unmodifiableMap(levels); } }
/** * Internally copies this configuaration object. * * @return The copied configuration */ private OWLOntologyLoaderConfiguration copyConfiguration() { OWLOntologyLoaderConfiguration copy = new OWLOntologyLoaderConfiguration(); copy.overrides.putAll(overrides); copy.ignoredImports.clear(); copy.ignoredImports.addAll(ignoredImports); return copy; }
private static Map<PropertyAccessor,Visibility> changeMap(Map<PropertyAccessor,Visibility> original, PropertyAccessor method, Visibility level) { EnumMap<PropertyAccessor, Visibility> levels = new EnumMap<PropertyAccessor, Visibility>(PropertyAccessor.class); if (method == PropertyAccessor.ALL) { return createMap(level, level, level, level, level); } levels.putAll(original); levels.put(method, level); return Collections.unmodifiableMap(levels); } }
private FetchVector makeFetchVector(Consumer<EnumMap<Dimension, String>> mapModifier) { EnumMap<Dimension, String> mergedMap = new EnumMap<>(Dimension.class); mergedMap.putAll(map); mapModifier.accept(mergedMap); return new FetchVector(mergedMap); }
static final EnumMap<SignParam, Object> initParameter(Map<SignParam, Object> formated){ EnumMap<SignParam, Object> fullParam = defaultParameter(); if(null != formated){ fullParam.putAll(formated); } return fullParam; } }
/** * Internally copies this configuaration object. * * @return The copied configuration */ private OWLOntologyLoaderConfiguration copyConfiguration() { OWLOntologyLoaderConfiguration copy = new OWLOntologyLoaderConfiguration(); copy.overrides.putAll(overrides); copy.ignoredImports.clear(); copy.ignoredImports.addAll(ignoredImports); return copy; }
/** * Restores the enforced states from the stack. Any states enforced or cleared since the last push are reverted. * * @throws EmptyStackException * if this method is called without first calling {@link #pushEnforcedStates()} */ public void popEnforcedStates() { _enforcedStates.clear(); _enforcedStates.putAll(_enforcedBackStack.pop()); }
@Override public T readObject(InRawH3 is, InH3Amp in) { Class type = in.readObject(Class.class); Map map = (Map) in.readObject(); EnumMap enumMap = new EnumMap(type); enumMap.putAll(map); return (T) enumMap; }