Top Constructors Methods
org.apache.sshd.common.util

public final Class ValidateUtils

extends Object
Class Inheritance
Imports
java.util.Collection, .Map, java.util.function.Function

Author
Apache MINA SSHD Project

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <T> T
checkInstanceOf(Object v, Class<T> expected, String message, long value)

public static <T> T
checkInstanceOf(Object v, Class<T> expected, String message)

public static <T> T
checkInstanceOf(Object v, Class<T> expected, String message, Object arg)

public static <T> T
checkInstanceOf(Object v, Class<T> expected, String message, Object... args)

public static <T> T
checkNotNull(T t, String message)

public static <T> T
checkNotNull(T t, String message, Object arg)

public static <T> T
checkNotNull(T t, String message, long value)

public static <T> T
checkNotNull(T t, String message, Object... args)

public static String
public static String
public static String
public static <K, V, M extends Map<K, V>> M
checkNotNullAndNotEmpty(M t, String message, Object... args)

public static <T, C extends Collection<T>> C
checkNotNullAndNotEmpty(C t, String message, Object... args)

public static <T, C extends Iterable<T>> C
checkNotNullAndNotEmpty(C t, String message, Object... args)

public static byte[]
checkNotNullAndNotEmpty(byte[] a, String message)

public static byte[]
checkNotNullAndNotEmpty(byte[] a, String message, Object... args)

public static char[]
checkNotNullAndNotEmpty(char[] a, String message)

public static char[]
checkNotNullAndNotEmpty(char[] a, String message, Object... args)

public static int[]
checkNotNullAndNotEmpty(int[] a, String message)

public static int[]
checkNotNullAndNotEmpty(int[] a, String message, Object... args)

public static <T> T[]
checkNotNullAndNotEmpty(T[] t, String message, Object... args)

public static void
checkState(boolean flag, String message)

public static void
checkState(boolean flag, String message, long value)

public static void
checkState(boolean flag, String message, Object arg)

public static void
checkState(boolean flag, String message, Object... args)

public static void
checkTrue(boolean flag, String message)

public static void
checkTrue(boolean flag, String message, long value)

public static void
checkTrue(boolean flag, String message, Object arg)

public static void
checkTrue(boolean flag, String message, Object... args)

public static <T extends Throwable> T
createFormattedException(Function<? super String, ? extends T> constructor, String format, Object... args)

public static String
hasContent(String t, String message)

public static String
hasContent(String t, String message, Object arg)

public static String
hasContent(String t, String message, Object... args)

public static <T extends Throwable> T
public static void
public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ValidateUtilsback to summary
private ValidateUtils()

Method Detail

checkInstanceOfback to summary
public static <T> T checkInstanceOf(Object v, Class<T> expected, String message, long value)
checkInstanceOfback to summary
public static <T> T checkInstanceOf(Object v, Class<T> expected, String message)
checkInstanceOfback to summary
public static <T> T checkInstanceOf(Object v, Class<T> expected, String message, Object arg)
checkInstanceOfback to summary
public static <T> T checkInstanceOf(Object v, Class<T> expected, String message, Object... args)
checkNotNullback to summary
public static <T> T checkNotNull(T t, String message)
checkNotNullback to summary
public static <T> T checkNotNull(T t, String message, Object arg)
checkNotNullback to summary
public static <T> T checkNotNull(T t, String message, long value)
checkNotNullback to summary
public static <T> T checkNotNull(T t, String message, Object... args)
checkNotNullAndNotEmptyback to summary
public static String checkNotNullAndNotEmpty(String t, String message)
checkNotNullAndNotEmptyback to summary
public static String checkNotNullAndNotEmpty(String t, String message, Object arg)
checkNotNullAndNotEmptyback to summary
public static String checkNotNullAndNotEmpty(String t, String message, Object... args)
checkNotNullAndNotEmptyback to summary
public static <K, V, M extends Map<K, V>> M checkNotNullAndNotEmpty(M t, String message, Object... args)
checkNotNullAndNotEmptyback to summary
public static <T, C extends Collection<T>> C checkNotNullAndNotEmpty(C t, String message, Object... args)
checkNotNullAndNotEmptyback to summary
public static <T, C extends Iterable<T>> C checkNotNullAndNotEmpty(C t, String message, Object... args)
checkNotNullAndNotEmptyback to summary
public static byte[] checkNotNullAndNotEmpty(byte[] a, String message)
checkNotNullAndNotEmptyback to summary
public static byte[] checkNotNullAndNotEmpty(byte[] a, String message, Object... args)
checkNotNullAndNotEmptyback to summary
public static char[] checkNotNullAndNotEmpty(char[] a, String message)
checkNotNullAndNotEmptyback to summary
public static char[] checkNotNullAndNotEmpty(char[] a, String message, Object... args)
checkNotNullAndNotEmptyback to summary
public static int[] checkNotNullAndNotEmpty(int[] a, String message)
checkNotNullAndNotEmptyback to summary
public static int[] checkNotNullAndNotEmpty(int[] a, String message, Object... args)
checkNotNullAndNotEmptyback to summary
public static <T> T[] checkNotNullAndNotEmpty(T[] t, String message, Object... args)
checkStateback to summary
public static void checkState(boolean flag, String message)
checkStateback to summary
public static void checkState(boolean flag, String message, long value)
checkStateback to summary
public static void checkState(boolean flag, String message, Object arg)
checkStateback to summary
public static void checkState(boolean flag, String message, Object... args)
checkTrueback to summary
public static void checkTrue(boolean flag, String message)
checkTrueback to summary
public static void checkTrue(boolean flag, String message, long value)
checkTrueback to summary
public static void checkTrue(boolean flag, String message, Object arg)
checkTrueback to summary
public static void checkTrue(boolean flag, String message, Object... args)
createFormattedExceptionback to summary
public static <T extends Throwable> T createFormattedException(Function<? super String, ? extends T> constructor, String format, Object... args)
hasContentback to summary
public static String hasContent(String t, String message)
hasContentback to summary
public static String hasContent(String t, String message, Object arg)
hasContentback to summary
public static String hasContent(String t, String message, Object... args)
initializeExceptionCauseback to summary
public static <T extends Throwable> T initializeExceptionCause(T err, Throwable cause)
throwIllegalArgumentExceptionback to summary
public static void throwIllegalArgumentException(String format, Object... args)
throwIllegalStateExceptionback to summary
public static void throwIllegalStateException(String format, Object... args)