public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static <T> void |
checkNotEmpty(Collection<T> items)
Check and throw an exception if the given collection is empty.
|
static String |
getNewQueryID()
Get a new unique query ID.
|
static boolean |
isDone(com.yahoo.bullet.pubsub.PubSubMessage message)
Check if this message signifies if a query is done or finished.
|
public static String getNewQueryID()
public static boolean isDone(com.yahoo.bullet.pubsub.PubSubMessage message)
message
- The PubSubMessage
to check.public static <T> void checkNotEmpty(Collection<T> items)
T
- The type of the item in the collection.items
- The Collection
to check.UnsupportedOperationException
- if the given collection was empty.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.