org.apache.shindig.protocol
Class HandlerPreconditions
java.lang.Object
org.apache.shindig.protocol.HandlerPreconditions
public final class HandlerPreconditions
- extends Object
Utility class for common API call preconditions
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.