Code example for SetMultimap

Methods: put

0
    private static <T> T _register(T element, Hint<?> hintForThatElement) {
        if (element==null) {
            // can happen if being done in a static initializer in an inner class 
            log.error("Invalid null target for renderer hint "+hintForThatElement, new Throwable("Trace for invalid null target for renderer hint"));
        } 
        registry.put(element, hintForThatElement);
        return element;
    } 
 
    /** Returns all registered hints against the given element */ 
    public static Set<Hint<?>> getHintsFor(AttributeSensor<?> element) { return _getHintsFor(element, null); }
    /** as {@link #getHintsFor(AttributeSensor)} */ 
    public static Set<Hint<?>> getHintsFor(ConfigKey<?> element) { return _getHintsFor(element, null); }
    /** as {@link #getHintsFor(AttributeSensor)} */ 
    public static Set<Hint<?>> getHintsFor(Class<?> element) { return _getHintsFor(element, null); }
 
    @Deprecated /** @deprecated since 0.7.0 only supported for certain types */ 
    public static Set<Hint<?>> getHintsFor(Object element) { return getHintsFor(element, null); }
 
    @Deprecated /** @deprecated since 0.7.0 only supported for certain types */