- 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 booleanadd(String component)booleanaddAll(Collection<? extends String> components)AvroNamespaceappended(String component)AvroNamespaceappended(String... components)AvroNamespaceappended(Collection<? extends String> components)static Builder<String,AvroNamespace>builder()voidclear()intcompareTo(AvroNamespace that)static AvroNamespacecomponent(String component)booleancontains(Object component)booleancontainsAll(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 AvroNamespaceempty()booleanequals(Object other)static AvroNamespacefrom(Collection<? extends String> components)inthashCode()abstract Stringhead()abstract booleanisDefined()abstract booleanisEmpty()Iterator<String>iterator()static AvroNamespaceof(String... components)static AvroNamespaceparse(String string)AvroNamespaceprepended(String component)AvroNamespaceprepended(String... components)AvroNamespaceprepended(Collection<? extends String> components)booleanremove(Object component)booleanremoveAll(Collection<?> components)booleanretainAll(Collection<?> components)intsize()abstract AvroNamespacetail()Object[]toArray()<T> T[]toArray(T[] array)abstract StringtoString()-
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:
isEmptyin interfaceCollection<String>
-
size
public int size()
- Specified by:
sizein interfaceCollection<String>
-
head
public abstract String head()
-
tail
public abstract AvroNamespace tail()
-
contains
public boolean contains(Object component)
- Specified by:
containsin interfaceCollection<String>
-
containsAll
public boolean containsAll(Collection<?> components)
- Specified by:
containsAllin interfaceCollection<String>
-
add
public boolean add(String component)
- Specified by:
addin interfaceCollection<String>
-
addAll
public boolean addAll(Collection<? extends String> components)
- Specified by:
addAllin interfaceCollection<String>
-
remove
public boolean remove(Object component)
- Specified by:
removein interfaceCollection<String>
-
removeAll
public boolean removeAll(Collection<?> components)
- Specified by:
removeAllin interfaceCollection<String>
-
retainAll
public boolean retainAll(Collection<?> components)
- Specified by:
retainAllin interfaceCollection<String>
-
clear
public void clear()
- Specified by:
clearin 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:
toArrayin interfaceCollection<String>
-
toArray
public <T> T[] toArray(T[] array)
- Specified by:
toArrayin interfaceCollection<String>
-
compareTo
public final int compareTo(AvroNamespace that)
- Specified by:
compareToin interfaceComparable<AvroNamespace>
-
equals
public final boolean equals(Object other)
- Specified by:
equalsin interfaceCollection<String>- Overrides:
equalsin classObject
-
hashCode
public final int hashCode()
- Specified by:
hashCodein interfaceCollection<String>- Overrides:
hashCodein classObject
-
debug
public abstract <T> Output<T> debug(Output<T> output)
Description copied from interface:DebugWrites 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:DisplayWrites 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()
-
-