Returns the same throwing supplier.

@param supplier the supplier
@param <T> the output type
@param <E> the exception type
@return the supplier
425389
public static <T, E extends Throwable> @NonNull Supplier<T> rethrowSupplier(final @NonNull ThrowingSupplier<T, E> supplier) {
    return supplier;
  }
506599
ExecutionResult executeSync(Supplier<ExecutionResult> supplier) {
    for (PolicyExecutor<Policy<Object>> policyExecutor : policyExecutors)
      supplier = policyExecutor.supply(supplier);

    ExecutionResult result = supplier.get();
    completed = result.isComplete();
    executor.handleComplete(result, this);
    return result;
  }
1284144
public static <T> Supplier<T> synchronizedSupplier(Supplier<T> delegate) {
		return new ThreadSafeSupplier<>(Objects.requireNonNull(delegate));
	}
135076
public static <T> Lazy<T> get(Supplier<? extends T> supplier) {
        return new SuppliedLazy<T>(supplier);
    }
1035612
public <R> R wrapClassLoader(Supplier<R> supplier) {
		try (TemporaryClassLoaderContext tmpCl = new TemporaryClassLoaderContext(classLoader)){
			return supplier.get();
		}
	}
1327026
@Nonnull
	public final Supplier<T> build() {

		final Supplier<T> eventuallyFinal = this.eventually;

		Supplier<T> retval;

		final Case<LBoolSupplier, Supplier<T>>[] casesArray = cases.toArray(new Case[cases.size()]);
		retval = Function4U.<T> sup(() -> {
			try {
				for (Case<LBoolSupplier, Supplier<T>> aCase : casesArray) {
					if (aCase.casePredicate().getAsBool()) {
						return aCase.caseFunction().get();
					}
				}

				return eventuallyFinal.get();
			} catch (Error e) { // NOSONAR
					throw e;
				} catch (Throwable e) { // NOSONAR
					throw Handler.handleOrPropagate(e, handling);
				}
			});

		if (consumer != null) {
			consumer.accept(retval);
		}
		return retval;
	}
81228
public static <T, E extends Exception> T sneak(SneakySupplier<T, E> supplier) {
    return sneaked(supplier).get();
  }
775940
@Override
	public <R> R notSupported(final SQLSupplier<R> supplier) {
		return transactionManager.notSupported(supplier);
	}
1314299
public <T> Supplier<T> getConstructor(Class<? extends T> clazz) {
        return getConstructorAs(Supplier.class, "get", clazz);
    }
853262
public static ShortIterator generate(final ShortSupplier supplier) {
        N.checkArgNotNull(supplier);

        return new ShortIterator() {
            @Override
            public boolean hasNext() {
                return true;
            }

            @Override
            public short nextShort() {
                return supplier.getAsShort();
            }
        };
    }
940679
public static <R> R supplierIfNull(R target, Supplier<R> supplier) {
        return Optional.ofNullable(target).orElseGet(supplier);
    }
1221376
@Nonnull
	public static <T> SupplierBuilder<T> supplier(Consumer<Supplier<T>> consumer) {
		return new SupplierBuilder(consumer);
	}
802220
public static <T> Supplier<T> supplier(CheckedSupplier<T> supplier) {
        return Unchecked.supplier(supplier, Unchecked.RETHROW_ALL);
    }
252346
public I addPage(StringSupplierWithException<String> supplier) {
        try {
            addPage(supplier.get());
        } catch (Exception e) {
            sneakyThrow(e);
        }
        return getThis();
    }
543727
protected Supplier<CompletableFuture<ExecutionResult>> supplyAsync(
      Supplier<CompletableFuture<ExecutionResult>> supplier, Scheduler scheduler, FailsafeFuture<Object> future) {
    return () -> {
      ExecutionResult result = preExecute();
      if (result != null)
        return CompletableFuture.completedFuture(result);

      return supplier.get().thenCompose(s -> postExecuteAsync(s, scheduler, future));
    };
  }
266377
public <T extends Collection<Val>> T nextCollection(@NonNull Supplier<T> supplier) throws IOException {
      return nextCollection(supplier, StringUtils.EMPTY);
   }
1154655
public static <T, E extends Exception> Supplier<T> sneaked(SneakySupplier<T, E> supplier) {
    return () -> {
      @SuppressWarnings("unchecked")
      SneakySupplier<T, RuntimeException> castedSupplier =
          (SneakySupplier<T, RuntimeException>) supplier;
      return castedSupplier.get();
    };
  }