/** * Constructs a new object with keys and values initialized from the * specified hints (which may be null). * * @param hints A map of key/value pairs to initialize the hints, or * {@code null} if the object should be empty. * * @since 2.5 */ public Hints(final RenderingHints hints) { super(stripNonKeys(hints)); }
/** * Constructs a new object with keys and values initialized from the * specified map (which may be null). * * @param hints A map of key/value pairs to initialize the hints, or * {@code null} if the object should be empty. */ public Hints(final Map<? extends RenderingHints.Key, ?> hints) { super(stripNonKeys(hints)); }
/** * Constructs a new object with keys and values initialized from the * specified map (which may be null). * * @param hints A map of key/value pairs to initialize the hints, or * {@code null} if the object should be empty. */ public Hints(final Map hints) { super(stripNonKeys(hints)); }
implementationHints = Hints.stripNonKeys(factory.getImplementationHints()); } finally { if (!testingHints.remove(factory)) {
implementationHints = Hints.stripNonKeys(factory.getImplementationHints()); } finally { testingHints.removeAndCheck(factory);