Record Class DeviceList
java.lang.Object
java.lang.Record
com.mojang.blaze3d.audio.DeviceList
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theallDevicesrecord component.private final @Nullable StringThe field for thedefaultDevicerecord component.static final DeviceList -
Constructor Summary
ConstructorsConstructorDescriptionDeviceList(@Nullable String defaultDevice, List<String> allDevices) Creates an instance of aDeviceListrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallDevicesrecord component.@Nullable StringReturns the value of thedefaultDevicerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static DeviceListquery()final StringtoString()Returns a string representation of this record class.
-
Field Details
-
defaultDevice
The field for thedefaultDevicerecord component. -
allDevices
-
EMPTY
-
-
Constructor Details
-
DeviceList
-
-
Method Details
-
query
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
defaultDevice
Returns the value of thedefaultDevicerecord component.- Returns:
- the value of the
defaultDevicerecord component
-
allDevices
-