Record Class ObservableSwitchConfig
java.lang.Object
java.lang.Record
io.reactivex.rxjava4.core.config.ObservableSwitchConfig
- Record Components:
delayError- should the error propagation be delayed?bufferSize- the expected number of items to cache from the innerObservableSources
Configuration record for Observable.switchOnNext() operators.
- Since:
- 4.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObservableSwitchConfigThe default configuration with no error delays and bufferSize of Observable.bufferSize().static final ObservableSwitchConfigThe default configuration with error delays and bufferSize of Observable.bufferSize(). -
Constructor Summary
ConstructorsConstructorDescriptionObservableSwitchConfig(boolean delayError) Constructs a configuration record.ObservableSwitchConfig(boolean delayError, int bufferSize) Constructs a configuration record.ObservableSwitchConfig(int bufferSize) Constructs a configuration record. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebufferSizerecord component.booleanReturns the value of thedelayErrorrecord 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.
-
Field Details
-
DEFAULT
The default configuration with no error delays and bufferSize of Observable.bufferSize(). -
DELAY_ERROR
The default configuration with error delays and bufferSize of Observable.bufferSize().
-
-
Constructor Details
-
ObservableSwitchConfig
public ObservableSwitchConfig(boolean delayError) Constructs a configuration record.- Parameters:
delayError- should the error propagation be delayed?
-
ObservableSwitchConfig
public ObservableSwitchConfig(int bufferSize) Constructs a configuration record.- Parameters:
bufferSize- the expected number of row combination items to be buffered internally
-
ObservableSwitchConfig
public ObservableSwitchConfig(boolean delayError, int bufferSize) Constructs a configuration record.- Parameters:
delayError- should the error propagation be delayed?bufferSize- the expected number of row combination items to be buffered internally
-
-
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. -
delayError
public boolean delayError()Returns the value of thedelayErrorrecord component.- Returns:
- the value of the
delayErrorrecord component
-
bufferSize
public int bufferSize()Returns the value of thebufferSizerecord component.- Returns:
- the value of the
bufferSizerecord component
-