Class TypeMirrorSet

  • All Implemented Interfaces:
    java.lang.Iterable<javax.lang.model.type.TypeMirror>, java.util.Collection<javax.lang.model.type.TypeMirror>, java.util.Set<javax.lang.model.type.TypeMirror>

    class TypeMirrorSet
    extends java.util.AbstractSet<javax.lang.model.type.TypeMirror>
    A set of TypeMirror objects.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Set<com.google.common.base.Equivalence.Wrapper<javax.lang.model.type.TypeMirror>> wrappers  
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeMirrorSet()  
      TypeMirrorSet​(java.util.Collection<? extends javax.lang.model.type.TypeMirror> types)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(javax.lang.model.type.TypeMirror typeMirror)  
      boolean contains​(java.lang.Object o)  
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.util.Iterator<javax.lang.model.type.TypeMirror> iterator()  
      (package private) static TypeMirrorSet of​(javax.lang.model.type.TypeMirror... types)  
      boolean remove​(java.lang.Object o)  
      int size()  
      private com.google.common.base.Equivalence.Wrapper<javax.lang.model.type.TypeMirror> wrap​(javax.lang.model.type.TypeMirror typeMirror)  
      • Methods inherited from class java.util.AbstractSet

        removeAll
      • Methods inherited from class java.util.AbstractCollection

        addAll, clear, containsAll, isEmpty, 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
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

        addAll, clear, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
    • Field Detail

      • wrappers

        private final java.util.Set<com.google.common.base.Equivalence.Wrapper<javax.lang.model.type.TypeMirror>> wrappers
    • Constructor Detail

      • TypeMirrorSet

        TypeMirrorSet()
      • TypeMirrorSet

        TypeMirrorSet​(java.util.Collection<? extends javax.lang.model.type.TypeMirror> types)
    • Method Detail

      • of

        static TypeMirrorSet of​(javax.lang.model.type.TypeMirror... types)
      • wrap

        private com.google.common.base.Equivalence.Wrapper<javax.lang.model.type.TypeMirror> wrap​(javax.lang.model.type.TypeMirror typeMirror)
      • add

        public boolean add​(javax.lang.model.type.TypeMirror typeMirror)
        Specified by:
        add in interface java.util.Collection<javax.lang.model.type.TypeMirror>
        Specified by:
        add in interface java.util.Set<javax.lang.model.type.TypeMirror>
        Overrides:
        add in class java.util.AbstractCollection<javax.lang.model.type.TypeMirror>
      • iterator

        public java.util.Iterator<javax.lang.model.type.TypeMirror> iterator()
        Specified by:
        iterator in interface java.util.Collection<javax.lang.model.type.TypeMirror>
        Specified by:
        iterator in interface java.lang.Iterable<javax.lang.model.type.TypeMirror>
        Specified by:
        iterator in interface java.util.Set<javax.lang.model.type.TypeMirror>
        Specified by:
        iterator in class java.util.AbstractCollection<javax.lang.model.type.TypeMirror>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<javax.lang.model.type.TypeMirror>
        Specified by:
        size in interface java.util.Set<javax.lang.model.type.TypeMirror>
        Specified by:
        size in class java.util.AbstractCollection<javax.lang.model.type.TypeMirror>
      • contains

        public boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<javax.lang.model.type.TypeMirror>
        Specified by:
        contains in interface java.util.Set<javax.lang.model.type.TypeMirror>
        Overrides:
        contains in class java.util.AbstractCollection<javax.lang.model.type.TypeMirror>
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<javax.lang.model.type.TypeMirror>
        Specified by:
        remove in interface java.util.Set<javax.lang.model.type.TypeMirror>
        Overrides:
        remove in class java.util.AbstractCollection<javax.lang.model.type.TypeMirror>
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.util.Collection<javax.lang.model.type.TypeMirror>
        Specified by:
        equals in interface java.util.Set<javax.lang.model.type.TypeMirror>
        Overrides:
        equals in class java.util.AbstractSet<javax.lang.model.type.TypeMirror>
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<javax.lang.model.type.TypeMirror>
        Specified by:
        hashCode in interface java.util.Set<javax.lang.model.type.TypeMirror>
        Overrides:
        hashCode in class java.util.AbstractSet<javax.lang.model.type.TypeMirror>