Record Class ObservableSequenceEqualConfig<T>
java.lang.Object
java.lang.Record
io.reactivex.rxjava4.core.config.ObservableSequenceEqualConfig<T>
- Type Parameters:
T- the element type of the sequences being compared- Record Components:
bufferSize- the expected number of items to cache from the innerObservableSourcesisEqual- the custom lambda to compare two elements
public record ObservableSequenceEqualConfig<T>(int bufferSize, BiPredicate<? super T, ? super T> isEqual)
extends Record
Configuration record for Observable.sequenceEqual() operators.
- Since:
- 4.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObservableSequenceEqualConfig<Object> The default configuration with bufferSize of Observable.bufferSize() and a default Objects.equals predicate. -
Constructor Summary
ConstructorsConstructorDescriptionObservableSequenceEqualConfig(int bufferSize) Constructs a configuration record.ObservableSequenceEqualConfig(int bufferSize, BiPredicate<? super T, ? super T> isEqual) Constructs a configuration record.ObservableSequenceEqualConfig(BiPredicate<? super T, ? super T> isEqual) Constructs a configuration record. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebufferSizerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.BiPredicate<? super T, ? super T> isEqual()Returns the value of theisEqualrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
The default configuration with bufferSize of Observable.bufferSize() and a default Objects.equals predicate.
-
-
Constructor Details
-
ObservableSequenceEqualConfig
public ObservableSequenceEqualConfig(int bufferSize) Constructs a configuration record.- Parameters:
bufferSize- the expected number of row combination items to be buffered internally
-
ObservableSequenceEqualConfig
Constructs a configuration record.- Parameters:
isEqual- the custom lambda to compare two elements
-
ObservableSequenceEqualConfig
Constructs a configuration record.- Parameters:
bufferSize- the expected number of items to cache from the innerObservableSourcesisEqual- the custom lambda to compare two elements
-
-
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. -
bufferSize
public int bufferSize()Returns the value of thebufferSizerecord component.- Returns:
- the value of the
bufferSizerecord component
-
isEqual
-