/** * Binds a source until the next reasonable event occurs. * * @return a reusable {@link LifecycleTransformer} which unsubscribes at the correct time. */ @Nonnull @CheckReturnValue <T> LifecycleTransformer<T> bindToLifecycle(); }
/** * Attempts to create an adapter for {@code type} annotated with {@code annotations}. This * returns the adapter if one was created, or null if this factory isn't capable of creating * such an adapter. * * <p>Implementations may use {@link Moshi#adapter} to compose adapters of other types, or * {@link Moshi#nextAdapter} to delegate to the underlying adapter of the same type. */ @CheckReturnValue @Nullable JsonAdapter<?> create(Type type, Set<? extends Annotation> annotations, Moshi moshi); }
@ParametersAreNonnullByDefault @javax.annotation.Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableShimClass extends PluginDetail.ShimClass { private final Type type;
@ParametersAreNonnullByDefault @javax.annotation.Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableMixinClass extends PluginDetail.MixinClass { private final Type type; private final ImmutableList<Type> interfaces; private final Mixin mixin; private final @Nullable String initMethodName; private final byte[] bytes;
@CheckReturnValue public EncodingContext with(@Nonnull String key, @Nullable Object value) { Object nonNullValue = Optional.ofNullable(value).orElse(NONE); if (this.properties.containsKey(key) && this.properties.get(key).equals(value)) { return this; } Map<String, Object> map = new HashMap<>(this.properties); map.put(key, nonNullValue); return new EncodingContext(map); }
/** * will return false when this thread is not running anymore... * * @param runnable * @return */ @CheckReturnValue @SuppressFBWarnings("MDM_SIGNAL_NOT_SIGNALALL") // Only one thread will away on this condition private void runNext(final Runnable runnable) { toRun = runnable; submitCondition.signal(); }
@ParametersAreNonnullByDefault @javax.annotation.Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePointcutClass extends PluginDetail.PointcutClass { private final Type type; private final byte[] bytes; private final boolean collocateInClassLoader; private final @Nullable File pluginJar;
@Nonnull @CheckReturnValue public final HCLI addAndReturnItem (@Nullable final String... aChildren) { return addItem ().addChildren (aChildren); }
@CheckReturnValue public final @Nullable T fromJson(BufferedSource source) throws IOException { return fromJson(JsonReader.of(source)); }
/** * @return a sequence of lifecycle events */ @Nonnull @CheckReturnValue Observable<E> lifecycle();
@ParametersAreNonnullByDefault @javax.annotation.Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue final class ImmutableAdviceMatcher extends AdviceMatcher { private final Advice advice;
/** Returns a Comparison from the given result of a call to {@link Comparable#compareTo(Object)} or {@link Comparator#compare(Object, Object)}. */ @SuppressFBWarnings(value = "UC_USELESS_CONDITION", justification = "Throwing Unhandled keeps the full-enumeration more explicit.") @CheckReturnValue public static Comparison from(int compareToResult) { if (compareToResult == 0) { return Comparison.EQUAL; } else if (compareToResult < 0) { return Comparison.LESSER; } else if (compareToResult > 0) { return Comparison.GREATER; } else { throw Unhandled.integerException(compareToResult); } } }
@ParametersAreNonnullByDefault @javax.annotation.Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePluginDescriptor extends PluginDescriptor { private final String id; private final ImmutableList<InstrumentationConfig> instrumentationConfigs; private final ImmutableList<String> aspects; private final @Nullable File pluginJar;
@Nonnull @CheckReturnValue public final HCLI addAndReturnItem (@Nullable final IPredefinedLocaleTextProvider... aChildren) { return addItem ().addChildren (aChildren); }
/** * Decodes a Java value object from {@code value}, which must be comprised of maps, lists, * strings, numbers, booleans and nulls. */ @CheckReturnValue public final @Nullable T fromJsonValue(@Nullable Object value) { JsonValueReader reader = new JsonValueReader(value); try { return fromJson(reader); } catch (IOException e) { throw new AssertionError(e); // No I/O reading from an object. } }
/** * Binds a source until a specific event occurs. * * @param event the event that triggers unsubscription * @return a reusable {@link LifecycleTransformer} which unsubscribes when the event triggers. */ @Nonnull @CheckReturnValue <T> LifecycleTransformer<T> bindUntilEvent(@Nonnull E event);
@ParametersAreNonnullByDefault @javax.annotation.Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue final class ImmutableAdviceParameter implements Advice.AdviceParameter { private final Advice.ParameterKind kind;
@SuppressFBWarnings("UW_UNCOND_WAIT") @CheckReturnValue @Override public boolean tryAcquire(final int nrPermits, final long deadlineNanos)
@SuppressFBWarnings @ParametersAreNonnullByDefault @Generated({"Immutables.generator", "HttpQuery.LabelValue"}) @Immutable @CheckReturnValue public final class ImmutableLabelValue implements HttpQuery.LabelValue { private final String label;
@Nonnull @CheckReturnValue public final HCLI addAndReturnItem (@Nullable final IHCNode... aChildren) { final HCLI aItem = addItem (); aItem.addChildren (aChildren); return aItem; }