/** * <p> * Converters value pair into a register pair. * </p> * * @param lhs <code>this</code> object * @param rhs the other object * * @return the pair */ static Pair<IDKey, IDKey> getRegisterPair(final Object lhs, final Object rhs) { final IDKey left = new IDKey(lhs); final IDKey right = new IDKey(rhs); return Pair.of(left, right); }
/** * <p> * Returns <code>true</code> if the registry contains the given object. Used by the reflection methods to avoid * infinite loops. * </p> * * @param value * The object to lookup in the registry. * @return boolean <code>true</code> if the registry contains the given object. * @since 2.3 */ static boolean isRegistered(final Object value) { final Set<IDKey> registry = getRegistry(); return registry != null && registry.contains(new IDKey(value)); }
/** * <p> * Registers the given object. Used by the reflection methods to avoid infinite loops. * </p> * * @param value * The object to register. */ private static void register(final Object value) { Set<IDKey> registry = getRegistry(); if (registry == null) { registry = new HashSet<>(); REGISTRY.set(registry); } registry.add(new IDKey(value)); }
/** * <p> * Unregisters the given object. * </p> * * <p> * Used by the reflection methods to avoid infinite loops. * * @param value * The object to unregister. * @since 2.3 */ private static void unregister(final Object value) { final Set<IDKey> registry = getRegistry(); if (registry != null) { registry.remove(new IDKey(value)); if (registry.isEmpty()) { REGISTRY.remove(); } } }
/** * <p> * Converters value pair into a register pair. * </p> * * @param lhs <code>this</code> object * @param rhs the other object * * @return the pair */ static Pair<IDKey, IDKey> getRegisterPair(final Object lhs, final Object rhs) { final IDKey left = new IDKey(lhs); final IDKey right = new IDKey(rhs); return Pair.of(left, right); }
/** * <p> * Converters value pair into a register pair. * </p> * * @param lhs <code>this</code> object * @param rhs the other object * * @return the pair */ static Pair<IDKey, IDKey> getRegisterPair(final Object lhs, final Object rhs) { final IDKey left = new IDKey(lhs); final IDKey right = new IDKey(rhs); return Pair.of(left, right); }
/** * <p> * Converters value pair into a register pair. * </p> * * @param lhs <code>this</code> object * @param rhs the other object * * @return the pair */ static Pair<IDKey, IDKey> getRegisterPair(final Object lhs, final Object rhs) { final IDKey left = new IDKey(lhs); final IDKey right = new IDKey(rhs); return Pair.of(left, right); }
/** * <p> * Returns <code>true</code> if the registry contains the given object. Used by the reflection methods to avoid * infinite loops. * </p> * * @param value * The object to lookup in the registry. * @return boolean <code>true</code> if the registry contains the given object. * @since 2.3 */ static boolean isRegistered(final Object value) { final Set<IDKey> registry = getRegistry(); return registry != null && registry.contains(new IDKey(value)); }
/** * <p> * Returns <code>true</code> if the registry contains the given object. Used by the reflection methods to avoid * infinite loops. * </p> * * @param value * The object to lookup in the registry. * @return boolean <code>true</code> if the registry contains the given object. * @since 2.3 */ static boolean isRegistered(final Object value) { final Set<IDKey> registry = getRegistry(); return registry != null && registry.contains(new IDKey(value)); }
/** * <p> * Registers the given object. Used by the reflection methods to avoid infinite loops. * </p> * * @param value * The object to register. */ private static void register(final Object value) { Set<IDKey> registry = getRegistry(); if (registry == null) { registry = new HashSet<>(); REGISTRY.set(registry); } registry.add(new IDKey(value)); }
/** * <p> * Registers the given object. Used by the reflection methods to avoid infinite loops. * </p> * * @param value * The object to register. */ private static void register(final Object value) { Set<IDKey> registry = getRegistry(); if (registry == null) { registry = new HashSet<>(); REGISTRY.set(registry); } registry.add(new IDKey(value)); }
/** * <p> * Unregisters the given object. * </p> * * <p> * Used by the reflection methods to avoid infinite loops. * * @param value * The object to unregister. * @since 2.3 */ private static void unregister(final Object value) { final Set<IDKey> registry = getRegistry(); if (registry != null) { registry.remove(new IDKey(value)); if (registry.isEmpty()) { REGISTRY.remove(); } } }
/** * <p> * Unregisters the given object. * </p> * * <p> * Used by the reflection methods to avoid infinite loops. * * @param value * The object to unregister. * @since 2.3 */ private static void unregister(final Object value) { final Set<IDKey> registry = getRegistry(); if (registry != null) { registry.remove(new IDKey(value)); if (registry.isEmpty()) { REGISTRY.remove(); } } }
/** * <p> * Registers the given object. Used by the reflection methods to avoid infinite loops. * </p> * * @param value * The object to register. */ @GwtIncompatible("incompatible method") private static void register(final Object value) { Set<IDKey> registry = getRegistry(); if (registry == null) { registry = new HashSet<>(); REGISTRY.set(registry); } registry.add(new IDKey(value)); }
/** * <p> * Returns <code>true</code> if the registry contains the given object. Used by the reflection methods to avoid * infinite loops. * </p> * * @param value * The object to lookup in the registry. * @return boolean <code>true</code> if the registry contains the given object. * @since 2.3 */ @GwtIncompatible("incompatible method") static boolean isRegistered(final Object value) { final Set<IDKey> registry = getRegistry(); return registry != null && registry.contains(new IDKey(value)); }
/** * <p> * Unregisters the given object. * </p> * * <p> * Used by the reflection methods to avoid infinite loops. * * @param value * The object to unregister. * @since 2.3 */ @GwtIncompatible("incompatible method") private static void unregister(final Object value) { final Set<IDKey> registry = getRegistry(); if (registry != null) { registry.remove(new IDKey(value)); if (registry.isEmpty()) { REGISTRY.remove(); } } }