public R apply(final T from) { return delegate.get(from); } }
@Override public boolean apply(final ClauseHandler clauseHandler) { return getFieldId.get(clauseHandler) != null; } };
public GroupWithAttributes get(final GenericValue gv) { return withAttributes(TO_GROUP_FUNCTION.get(gv)); } };
@Override Writer doCreate(final Index.UpdateMode mode) { return writerFactory.get(mode); }
@Override public E get(final int index) { return transformer.get(list.get(index)); }
@Override public V get(final Object key) { return transformer.get(map.get(key)); }
public V getValue() { if (value == null) { value = transformer.get(entry.getValue()); } return value; }
@Override public void visit(final T element) { list.add(function.get(element)); } });
public R get(final T input) { R result = map.get(input); while (result == null) { map.putIfAbsent(input, function.get(input)); result = map.get(input); } return result; } };
@Override public void visit(final T element) { delegate.visit(function.get(element)); }
Query handleLessThan(final String fieldName, final T value) { return new TermRangeQuery(fieldName, null, valueFactory.get(value), true, false); }
Query handleGreaterThanEquals(final String fieldName, final T value) { return new TermRangeQuery(fieldName, valueFactory.get(value), null, true, true); }
public C allValues() { return unmodifiableTransformer.get(delegate.allValues()); }
/** * Get the thing mapped to this key for the specified reader. * * @param one the first one * @param two the second one * @param supplier to generate the value if not already there, only called if not already cached. * @return the cached value */ public T get(@Nonnull final R one, @Nonnull final S two, final Supplier<T> supplier) { return cache.get(one).get(new Key<S, T>(two, supplier)); }
/** * Get an {@link ArrayList} of the contents of the supplied {@link EnclosedIterable} * transformed by the supplied transform function into the new type O. * * @return a mutable {@link ArrayList} containing all elements of the iterable. */ public static <I, O> List<O> toList(final EnclosedIterable<I> iterable, final Function<I, O> transformer) { final List<O> result = new ArrayList<>(iterable.size()); iterable.foreach(element -> result.add(transformer.get(element))); return result; } }
public void foreach(final Consumer<O> sink) { delegate.foreach(element -> sink.consume(transformer.get(element))); }
public Clause visit(final NotClause notClause) { return new NotClause(optimizer.get(notClause.getSubClause())); }
public Map<Name, Manager> get() { final EnumMap<Name, Index.Manager> indexes = new EnumMap<Name, Index.Manager>(Name.class); for (final Name type : Name.values()) { indexes.put(type, mode.createIndexManager( type.name(), new DefaultConfiguration(directorySupplier.get(type), IssueIndexer.Analyzers.INDEXING), applicationProperties)); } return Collections.unmodifiableMap(indexes); }
Index.Manager get(final TypeDescriptor<?> type, final Create option) { Index.Manager result = managers.get(type); while ((result == null) && option.create()) { int maxQueueSize = PropertiesUtil.getIntProperty(applicationProperties, APKeys.JiraIndexConfiguration.SharedEntity.MAX_QUEUE_SIZE, 1000); managers.put(type, Indexes.createQueuedIndexManager(type.getName(), new DefaultConfiguration(directoryFactory.get(type), QueryBuilder.Analyzers.LOWERCASE), maxQueueSize)); result = managers.get(type); } return (result != null) ? result : NULL_MANAGER; }