Class DictValues

java.lang.Object
src.DictValues
All Implemented Interfaces:
Iterable<Object>

public class DictValues extends Object implements Iterable<Object>
DictValues is a class that represents a collection of values in a dictionary. It implements the Iterable interface, allowing iteration over the values in the collection.
  • Constructor Details

    • DictValues

      public DictValues(Object[] values)
  • Method Details

    • length

      public int length()
      Returns the number of values in the collection.
      Returns:
      the number of values
    • toArray

      public Object[] toArray()
      Returns a copied list of the dictionary values.
      Returns:
      a copy of the dictionary values
    • iterator

      public Iterator<Object> iterator()
      Returns an iterator over the values in the collection.
      Specified by:
      iterator in interface Iterable<Object>
      Returns:
      an iterator over the values
    • toString

      public String toString()
      Returns a string representation of the DictValues object.
      Overrides:
      toString in class Object
      Returns:
      the string representation of the DictValues object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object