List of usage examples for java.util.function Supplier interface-usage
From source file urls.CurlStore.java
/**
* Copyright 2016 Kunal Sheth
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
From source file org.llorllale.youtrack.api.http.Client.java
/** * Basic client. * @author George Aristy (george.aristy@gmail.com) * @since 1.1.0 */ public final class Client implements Supplier<HttpClientBuilder> {
From source file org.llorllale.youtrack.api.http.Pooled.java
/**
* Connection pooling.
*
* @author George Aristy (george.aristy@gmail.com)
* @since 1.1.0
*/
From source file fr.landel.utils.commons.function.BiSupplier.java
/**
* Represents a supplier of pair results.
*
* <p>
* There is no requirement that a new or distinct result be returned each time
* the supplier is invoked.
From source file fr.landel.utils.commons.function.TriSupplier.java
/**
* Represents a supplier of triple results.
*
* <p>
* There is no requirement that a new or distinct result be returned each time
* the supplier is invoked.
From source file com.addthis.bundle.util.ConstantTypedField.java
public class ConstantTypedField<T> implements TypedField<T>, Supplier<T> { private final T value; @JsonCreator public ConstantTypedField(T value) { this.value = value;
From source file com.joyent.manta.client.MetricReporterSupplier.java
/** * Helper class for building and starting a metric reporter given a {@link MantaClientMetricConfiguration}. * * @author <a href="https://github.com/tjcelaya">Tomas Celaya</a> */ final class MetricReporterSupplier implements Supplier<Closeable> {
From source file se.curity.examples.oauth.DefaultJwkHttpClientSupplier.java
final class DefaultJwkHttpClientSupplier implements Supplier<HttpClient> { private final CloseableHttpClient _httpClient = HttpClients.custom().disableAuthCaching() .disableAutomaticRetries().disableRedirectHandling().setConnectionTimeToLive(2, TimeUnit.SECONDS) .build();
From source file com.offbynull.voip.ui.SingleSupplier.java
final class SingleSupplier<T> implements Supplier<T> { private final ArrayBlockingQueue<T> reference; private final Supplier<T> backingSupplier; public SingleSupplier(Supplier<T> backingSupplier) { Validate.notNull(backingSupplier);
From source file com.addthis.bundle.util.ConstantField.java
public class ConstantField implements AutoField, Supplier<ValueObject> { private final ValueObject value; @JsonCreator public ConstantField(ValueObject value) { this.value = value;