Record Class Message.ExtractOptions

java.lang.Object
java.lang.Record
org.freedesktop.dbus.messages.Message.ExtractOptions
Record Components:
contained - boolean to indicate if nested lists should be resolved (false usually)
arrayConvert - use Collection, array or array of primitives
Enclosing class:
Message

static record Message.ExtractOptions(boolean contained, List<Message.ConstructorArgType> arrayConvert) extends Record
Additional options to optimize value extraction.
Since:
5.1.0 - 2024-05-18
  • Field Details

  • Constructor Details

    • ExtractOptions

      ExtractOptions(boolean contained, List<Message.ConstructorArgType> arrayConvert)
      Creates an instance of a ExtractOptions record class.
      Parameters:
      contained - the value for the contained record component
      arrayConvert - the value for the arrayConvert record component
  • Method Details

    • copyWithContainedFlag

      static Message.ExtractOptions copyWithContainedFlag(Message.ExtractOptions _toCopy, boolean _containedFlag)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • contained

      public boolean contained()
      Returns the value of the contained record component.
      Returns:
      the value of the contained record component
    • arrayConvert

      public List<Message.ConstructorArgType> arrayConvert()
      Returns the value of the arrayConvert record component.
      Returns:
      the value of the arrayConvert record component