Module org.freedesktop.dbus
Package org.freedesktop.dbus.messages
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final List<Message.ConstructorArgType> The field for thearrayConvertrecord component.private final booleanThe field for thecontainedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionExtractOptions(boolean contained, List<Message.ConstructorArgType> arrayConvert) Creates an instance of aExtractOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thearrayConvertrecord component.booleanReturns the value of thecontainedrecord component.(package private) static Message.ExtractOptionscopyWithContainedFlag(Message.ExtractOptions _toCopy, boolean _containedFlag) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
contained
private final boolean containedThe field for thecontainedrecord component. -
arrayConvert
The field for thearrayConvertrecord component.
-
-
Constructor Details
-
ExtractOptions
ExtractOptions(boolean contained, List<Message.ConstructorArgType> arrayConvert) Creates an instance of aExtractOptionsrecord class.- Parameters:
contained- the value for thecontainedrecord componentarrayConvert- the value for thearrayConvertrecord component
-
-
Method Details
-
copyWithContainedFlag
static Message.ExtractOptions copyWithContainedFlag(Message.ExtractOptions _toCopy, boolean _containedFlag) -
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
contained
public boolean contained()Returns the value of thecontainedrecord component.- Returns:
- the value of the
containedrecord component
-
arrayConvert
Returns the value of thearrayConvertrecord component.- Returns:
- the value of the
arrayConvertrecord component
-