Class Schemas.PathImpl

  • All Implemented Interfaces:
    java.lang.Iterable<Pair<java.lang.String,​Schema>>, java.util.Collection<Pair<java.lang.String,​Schema>>, java.util.List<Pair<java.lang.String,​Schema>>, java.util.RandomAccess, Path
    Enclosing class:
    Schemas

    private static class Schemas.PathImpl
    extends java.util.AbstractList<Pair<java.lang.String,​Schema>>
    implements Path
    Implementation of Path.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static Schemas.PathImpl EMPTY  
      private com.google.common.collect.ImmutableList<Pair<java.lang.String,​Schema>> pairs  
      • Fields inherited from class java.util.AbstractList

        modCount
    • Constructor Summary

      Constructors 
      Constructor Description
      PathImpl​(com.google.common.collect.ImmutableList<Pair<java.lang.String,​Schema>> pairs)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      Pair<java.lang.String,​Schema> get​(int index)  
      int hashCode()  
      java.util.List<java.lang.String> names()
      Returns the names of this path, not including the name of the root.
      Path parent()
      Returns the parent path, or null if the path is empty.
      java.util.List<Schema> schemas()
      Returns the schemas of this path.
      int size()  
      • Methods inherited from class java.util.AbstractList

        add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
      • Methods inherited from class java.util.AbstractCollection

        addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, 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, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        add, add, addAll, addAll, clear, contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
    • Field Detail

      • pairs

        private final com.google.common.collect.ImmutableList<Pair<java.lang.String,​Schema>> pairs
    • Constructor Detail

      • PathImpl

        PathImpl​(com.google.common.collect.ImmutableList<Pair<java.lang.String,​Schema>> pairs)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.util.Collection<Pair<java.lang.String,​Schema>>
        Specified by:
        equals in interface java.util.List<Pair<java.lang.String,​Schema>>
        Overrides:
        equals in class java.util.AbstractList<Pair<java.lang.String,​Schema>>
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<Pair<java.lang.String,​Schema>>
        Specified by:
        hashCode in interface java.util.List<Pair<java.lang.String,​Schema>>
        Overrides:
        hashCode in class java.util.AbstractList<Pair<java.lang.String,​Schema>>
      • get

        public Pair<java.lang.String,​Schema> get​(int index)
        Specified by:
        get in interface java.util.List<Pair<java.lang.String,​Schema>>
        Specified by:
        get in class java.util.AbstractList<Pair<java.lang.String,​Schema>>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<Pair<java.lang.String,​Schema>>
        Specified by:
        size in interface java.util.List<Pair<java.lang.String,​Schema>>
        Specified by:
        size in class java.util.AbstractCollection<Pair<java.lang.String,​Schema>>
      • parent

        public Path parent()
        Description copied from interface: Path
        Returns the parent path, or null if the path is empty.
        Specified by:
        parent in interface Path
      • names

        public java.util.List<java.lang.String> names()
        Description copied from interface: Path
        Returns the names of this path, not including the name of the root.
        Specified by:
        names in interface Path
      • schemas

        public java.util.List<Schema> schemas()
        Description copied from interface: Path
        Returns the schemas of this path.
        Specified by:
        schemas in interface Path