org.apache.shindig.protocol
Class HandlerPreconditions

java.lang.Object
  extended by org.apache.shindig.protocol.HandlerPreconditions

public final class HandlerPreconditions
extends Object

Utility class for common API call preconditions


Method Summary
static void requireEmpty(Collection<?> coll, String message)
           
static void requireNotEmpty(Collection<?> coll, String message)
           
static void requirePlural(Collection<?> coll, String message)
           
static void requireSingular(Collection<?> coll, String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

requireNotEmpty

public static void requireNotEmpty(Collection<?> coll,
                                   String message)
                            throws ProtocolException
Throws:
ProtocolException

requireEmpty

public static void requireEmpty(Collection<?> coll,
                                String message)
                         throws ProtocolException
Throws:
ProtocolException

requireSingular

public static void requireSingular(Collection<?> coll,
                                   String message)
                            throws ProtocolException
Throws:
ProtocolException

requirePlural

public static void requirePlural(Collection<?> coll,
                                 String message)
                          throws ProtocolException
Throws:
ProtocolException


Copyright © 2007-2012. All Rights Reserved.