Record Class ObservableGroupByConfig
java.lang.Object
java.lang.Record
io.reactivex.rxjava4.core.config.ObservableGroupByConfig
- Record Components:
delayError- should the error propagation be delayed?bufferSize- the expected number of items to buffer until it can be processed
Configuration record for Observable.groupBy() operators.
- Since:
- 4.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObservableGroupByConfigThe default configuration with no error delays and bufferSize of Observable.bufferSize().static final ObservableGroupByConfigThe default configuration with error delays and bufferSize of Observable.bufferSize(). -
Constructor Summary
ConstructorsConstructorDescriptionObservableGroupByConfig(boolean delayError) Constructs a configuration record.ObservableGroupByConfig(boolean delayError, int bufferSize) Constructs a configuration record.ObservableGroupByConfig(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
-
ObservableGroupByConfig
public ObservableGroupByConfig(boolean delayError) Constructs a configuration record.- Parameters:
delayError- should the error propagation be delayed?
-
ObservableGroupByConfig
public ObservableGroupByConfig(int bufferSize) Constructs a configuration record.- Parameters:
bufferSize- the expected number of items to buffer until it can be processed
-
ObservableGroupByConfig
public ObservableGroupByConfig(boolean delayError, int bufferSize) Constructs a configuration record.- Parameters:
delayError- should the error propagation be delayed?bufferSize- the expected number of items to buffer until it can be processed
-
-
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
-