Modifier and Type | Class and Description |
---|---|
static class |
Types.Builder |
static class |
Types.RawBuilder |
Modifier and Type | Method and Description |
---|---|
static Types.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
java.util.Optional<UserType> |
get(java.nio.ByteBuffer name)
Get the type with the specified name
|
UserType |
getNullable(java.nio.ByteBuffer name)
Get the type with the specified name
|
int |
hashCode() |
java.util.Iterator<UserType> |
iterator() |
static Types |
none() |
static Types |
of(UserType... types) |
static Types.RawBuilder |
rawBuilder(java.lang.String keyspace) |
java.lang.String |
toString() |
Types |
with(UserType type)
Create a Types instance with the provided type added
|
Types |
without(java.nio.ByteBuffer name)
Creates a Types instance with the type with the provided name removed
|
public static Types.Builder builder()
public static Types.RawBuilder rawBuilder(java.lang.String keyspace)
public static Types none()
public java.util.Iterator<UserType> iterator()
iterator
in interface java.lang.Iterable<UserType>
public java.util.Optional<UserType> get(java.nio.ByteBuffer name)
name
- a non-qualified type nameOptional
if the type name is not found; a non-empty optional of UserType
otherwise@Nullable public UserType getNullable(java.nio.ByteBuffer name)
name
- a non-qualified type nameUserType
otherwisepublic Types without(java.nio.ByteBuffer name)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2020 The Apache Software Foundation