public final class Tables extends java.lang.Object implements java.lang.Iterable<CFMetaData>
| Modifier and Type | Class and Description |
|---|---|
static class |
Tables.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Tables.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
java.util.Optional<CFMetaData> |
get(java.lang.String name)
Get the table with the specified name
|
CFMetaData |
getNullable(java.lang.String name)
Get the table with the specified name
|
int |
hashCode() |
java.util.Iterator<CFMetaData> |
iterator() |
static Tables |
none() |
static Tables |
of(CFMetaData... tables) |
static Tables |
of(java.lang.Iterable<CFMetaData> tables) |
int |
size() |
java.lang.String |
toString() |
Tables |
with(CFMetaData table)
Create a Tables instance with the provided table added
|
Tables |
without(java.lang.String name)
Creates a Tables instance with the table with the provided name removed
|
public static Tables.Builder builder()
public static Tables none()
public static Tables of(CFMetaData... tables)
public static Tables of(java.lang.Iterable<CFMetaData> tables)
public java.util.Iterator<CFMetaData> iterator()
iterator in interface java.lang.Iterable<CFMetaData>public int size()
public java.util.Optional<CFMetaData> get(java.lang.String name)
name - a non-qualified table nameOptional if the table name is not found; a non-empty optional of CFMetaData otherwise@Nullable public CFMetaData getNullable(java.lang.String name)
name - a non-qualified table nameCFMetaData otherwisepublic Tables with(CFMetaData table)
public Tables without(java.lang.String name)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015 The Apache Software Foundation