/** * @param exceptions * must be not null */ protected <E extends AbstractUUID> void removeExceptions(final Collection<E> exceptions) { Misc.checkArgsNotNull(exceptions); if (this.exceptions != null && !this.exceptions.isEmpty()) { for (final AbstractUUID exception : exceptions) { this.exceptions.remove(exception.getValue()); } } }
protected AbstractUUID(AbstractUUID src) { Misc.checkArgsNotNull(src); this.value = src.getValue(); }
protected <E extends AbstractUUID> void setExceptions(final Set<E> exceptions) { Misc.checkArgsNotNull(exceptions); final Set<String> exceptionValues = new HashSet<String>(); for (final AbstractUUID exception : exceptions) { exceptionValues.add(exception.getValue()); } this.exceptions = exceptionValues; }
/** * @param exceptions * must be not null */ protected <E extends AbstractUUID> void removeExceptions(final Collection<E> exceptions) { Misc.checkArgsNotNull(exceptions); if (this.exceptions != null && !this.exceptions.isEmpty()) { for (final AbstractUUID exception : exceptions) { this.exceptions.remove(exception.getValue()); } } }
protected <E extends AbstractUUID> void setExceptions(final Set<E> exceptions) { Misc.checkArgsNotNull(exceptions); final Set<String> exceptionValues = new HashSet<String>(); for (final AbstractUUID exception : exceptions) { exceptionValues.add(exception.getValue()); } this.exceptions = exceptionValues; }
protected AbstractUUID(AbstractUUID src) { Misc.checkArgsNotNull(src); this.value = src.getValue(); }
public void set(String name, Object value, Document document, LuceneOptions luceneOptions) { AbstractUUID uuid = (AbstractUUID) value; luceneOptions.addFieldToDocument(name, uuid.getValue(), document); }
/** * @param exceptions * must be not null */ protected <E extends AbstractUUID> void addExceptions(final Collection<E> exceptions) { Misc.checkArgsNotNull(exceptions); if (this.exceptions == null) { this.exceptions = new HashSet<String>(); } for (final AbstractUUID exception : exceptions) { this.exceptions.add(exception.getValue()); } }
protected AbstractUUID(AbstractUUID src) { Misc.checkArgsNotNull(src); this.value = src.getValue(); }
/** * @param exceptions * must be not null */ protected <E extends AbstractUUID> void addExceptions(final Collection<E> exceptions) { Misc.checkArgsNotNull(exceptions); if (this.exceptions == null) { this.exceptions = new HashSet<String>(); } for (final AbstractUUID exception : exceptions) { this.exceptions.add(exception.getValue()); } }
protected RuleImpl(final String name, final String label, final String description, final RuleType type, final Set<? extends AbstractUUID> items) { super(); Misc.checkArgsNotNull(name, type); uuid = UUID.randomUUID().toString(); this.name = name; this.label = label; if (items != null) { exceptions = new HashSet<String>(); for (final AbstractUUID abstractUUID : items) { exceptions.add(abstractUUID.getValue()); } } else { exceptions = null; } this.type = type.name(); setDescription(description); }
protected RuleImpl(final String name, final String label, final String description, final RuleType type, final Set<? extends AbstractUUID> items) { super(); Misc.checkArgsNotNull(name, type); uuid = UUID.randomUUID().toString(); this.name = name; this.label = label; if (items != null) { exceptions = new HashSet<String>(); for (final AbstractUUID abstractUUID : items) { exceptions.add(abstractUUID.getValue()); } } else { exceptions = null; } this.type = type.name(); setDescription(description); }