Record Class Device
java.lang.Object
java.lang.Record
lol.trq.orpheus.source.Device
- Record Components:
id- identifies the device for transfername- a display nametype- a free-form kind such as "computer" or "speaker"; may be emptyactive- whether playback is on this device
@Experimental
public record Device(String id, String name, String type, boolean active)
extends Record
An output a source can play on.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()Returns the value of theactiverecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
name
-
type
-
active
-