Class VmSet

  • All Implemented Interfaces:
    java.lang.Iterable<java.lang.Object>

    public final class VmSet
    extends VmCollection
    • Field Detail

      • EMPTY

        public static final VmSet EMPTY
    • Method Detail

      • of

        public static VmSet of​(java.lang.Object value)
      • create

        public static VmSet create​(java.lang.Iterable<?> iterable)
      • createFromConstantNodes

        public static VmSet createFromConstantNodes​(ExpressionNode[] elements)
      • iterator

        public java.util.Iterator<java.lang.Object> iterator()
      • reverseIterator

        public java.util.Iterator<java.lang.Object> reverseIterator()
        Specified by:
        reverseIterator in class VmCollection
      • getFirst

        public java.lang.Object getFirst()
      • getFirstOrNull

        public java.lang.Object getFirstOrNull()
      • getRest

        public VmSet getRest()
      • getRestOrNull

        public java.lang.Object getRestOrNull()
      • getLast

        public java.lang.Object getLast()
      • getLastOrNull

        public java.lang.Object getLastOrNull()
      • getSingle

        public java.lang.Object getSingle()
      • getSingleOrNull

        public java.lang.Object getSingleOrNull()
      • contains

        public boolean contains​(java.lang.Object element)
      • split

        public VmPair split​(long index)
      • splitOrNull

        public java.lang.Object splitOrNull​(long index)
      • take

        public VmSet take​(long n)
      • takeLast

        public VmSet takeLast​(long n)
      • drop

        public VmSet drop​(long n)
      • dropLast

        public VmSet dropLast​(long n)
      • repeat

        public VmList repeat​(long n)
      • reverse

        public VmList reverse()
      • toArray

        public java.lang.Object[] toArray()
      • toList

        public VmList toList()
      • toSet

        public VmSet toSet()
      • force

        public void force​(boolean allowUndefinedValues)
        Description copied from class: VmValue
        Forces recursive (deep) evaluation of this value.
        Specified by:
        force in class VmValue
      • export

        public java.util.Set<java.lang.Object> export()
        Specified by:
        export in class VmValue
      • accept

        public <T> T accept​(VmValueConverter<T> converter,
                            java.lang.Iterable<java.lang.Object> path)
        Specified by:
        accept in class VmValue
      • equals

        public boolean equals​(@Nullable java.lang.Object other)
        Description copied from class: VmValue
        Enables calling `vmValue.equals()` when not behind a Truffle boundary.
        Specified by:
        equals in class VmValue
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object