Record Class PubSubOption.TopicsOnly
java.lang.Object
java.lang.Record
org.wpilib.networktables.PubSubOption.TopicsOnly
- Record Components:
enabled- True to enable, false to disable
- All Implemented Interfaces:
PubSubOption
- Enclosing interface:
PubSubOption
public static record PubSubOption.TopicsOnly(boolean enabled)
extends Record
implements PubSubOption
If enabled on a subscription, does not request value changes. This option defaults to disabled.
-
Nested Class Summary
Nested classes/interfaces inherited from interface PubSubOption
PubSubOption.DisableLocal, PubSubOption.DisableRemote, PubSubOption.ExcludePublisher, PubSubOption.ExcludePublisherHandle, PubSubOption.ExcludeSelf, PubSubOption.Hidden, PubSubOption.KeepDuplicates, PubSubOption.Periodic, PubSubOption.PollStorage, PubSubOption.SendAll, PubSubOption.TopicsOnly -
Field Summary
Fields inherited from interface PubSubOption
DISABLE_LOCAL, DISABLE_REMOTE, ENABLE_LOCAL, ENABLE_REMOTE, EXCLUDE_SELF, HIDDEN, IGNORE_DUPLICATES, INCLUDE_SELF, KEEP_DUPLICATES, SEND_ALL, SEND_CHANGES, TOPICS_AND_VALUES, TOPICS_ONLY, VISIBLE -
Constructor Summary
ConstructorsConstructorDescriptionTopicsOnly(boolean enabled) Creates an instance of aTopicsOnlyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Returns the value of theenabledrecord component.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.
-
Constructor Details
-
TopicsOnly
Creates an instance of aTopicsOnlyrecord class.- Parameters:
enabled- the value for theenabledrecord component
-
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
enabled
-