com.hazelcast.util
Class ValidationUtil

java.lang.Object
  extended by com.hazelcast.util.ValidationUtil

public final class ValidationUtil
extends Object

A utility class for validating arguments and state.


Method Summary
static void checkNotNull(Object argument, String message)
           
static String hasText(String argument, String argName)
           
static void isNotNegative(long value, String argumentName)
           
static
<E> E
isNotNull(E argument, String argName)
           
static void shouldBePositive(long value, String argumentName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkNotNull

public static void checkNotNull(Object argument,
                                String message)

hasText

public static String hasText(String argument,
                             String argName)

isNotNull

public static <E> E isNotNull(E argument,
                              String argName)

isNotNegative

public static void isNotNegative(long value,
                                 String argumentName)

shouldBePositive

public static void shouldBePositive(long value,
                                    String argumentName)


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.