- java.lang.Object
-
- swim.avro.AvroNamespace
-
- All Implemented Interfaces:
Comparable<AvroNamespace>
,Iterable<String>
,Collection<String>
,Debug
,Display
public abstract class AvroNamespace extends Object implements Collection<String>, Comparable<AvroNamespace>, Debug, Display
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
add(String component)
boolean
addAll(Collection<? extends String> components)
AvroNamespace
appended(String component)
AvroNamespace
appended(String... components)
AvroNamespace
appended(Collection<? extends String> components)
static Builder<String,AvroNamespace>
builder()
void
clear()
int
compareTo(AvroNamespace that)
static AvroNamespace
component(String component)
boolean
contains(Object component)
boolean
containsAll(Collection<?> components)
abstract <T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.abstract <T> Output<T>
display(Output<T> output)
Writes a human readable, display-formatted string representation of this object tooutput
.static AvroNamespace
empty()
boolean
equals(Object other)
static AvroNamespace
from(Collection<? extends String> components)
int
hashCode()
abstract String
head()
abstract boolean
isDefined()
abstract boolean
isEmpty()
Iterator<String>
iterator()
static AvroNamespace
of(String... components)
static AvroNamespace
parse(String string)
AvroNamespace
prepended(String component)
AvroNamespace
prepended(String... components)
AvroNamespace
prepended(Collection<? extends String> components)
boolean
remove(Object component)
boolean
removeAll(Collection<?> components)
boolean
retainAll(Collection<?> components)
int
size()
abstract AvroNamespace
tail()
Object[]
toArray()
<T> T[]
toArray(T[] array)
abstract String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Method Detail
-
isDefined
public abstract boolean isDefined()
-
isEmpty
public abstract boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<String>
-
size
public int size()
- Specified by:
size
in interfaceCollection<String>
-
head
public abstract String head()
-
tail
public abstract AvroNamespace tail()
-
contains
public boolean contains(Object component)
- Specified by:
contains
in interfaceCollection<String>
-
containsAll
public boolean containsAll(Collection<?> components)
- Specified by:
containsAll
in interfaceCollection<String>
-
add
public boolean add(String component)
- Specified by:
add
in interfaceCollection<String>
-
addAll
public boolean addAll(Collection<? extends String> components)
- Specified by:
addAll
in interfaceCollection<String>
-
remove
public boolean remove(Object component)
- Specified by:
remove
in interfaceCollection<String>
-
removeAll
public boolean removeAll(Collection<?> components)
- Specified by:
removeAll
in interfaceCollection<String>
-
retainAll
public boolean retainAll(Collection<?> components)
- Specified by:
retainAll
in interfaceCollection<String>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<String>
-
appended
public AvroNamespace appended(String component)
-
appended
public AvroNamespace appended(Collection<? extends String> components)
-
appended
public AvroNamespace appended(String... components)
-
prepended
public AvroNamespace prepended(String component)
-
prepended
public AvroNamespace prepended(Collection<? extends String> components)
-
prepended
public AvroNamespace prepended(String... components)
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceCollection<String>
-
toArray
public <T> T[] toArray(T[] array)
- Specified by:
toArray
in interfaceCollection<String>
-
compareTo
public final int compareTo(AvroNamespace that)
- Specified by:
compareTo
in interfaceComparable<AvroNamespace>
-
equals
public final boolean equals(Object other)
- Specified by:
equals
in interfaceCollection<String>
- Overrides:
equals
in classObject
-
hashCode
public final int hashCode()
- Specified by:
hashCode
in interfaceCollection<String>
- Overrides:
hashCode
in classObject
-
debug
public abstract <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
display
public abstract <T> Output<T> display(Output<T> output)
Description copied from interface:Display
Writes a human readable, display-formatted string representation of this object tooutput
.
-
empty
public static AvroNamespace empty()
-
component
public static AvroNamespace component(String component)
-
of
public static AvroNamespace of(String... components)
-
from
public static AvroNamespace from(Collection<? extends String> components)
-
parse
public static AvroNamespace parse(String string)
-
builder
public static Builder<String,AvroNamespace> builder()
-
-