Record Class MoreCollectorUtil.MinMax<T>
java.lang.Object
java.lang.Record
cloud.opencode.base.collections.transform.MoreCollectorUtil.MinMax<T>
- Type Parameters:
T- element type | 元素类型
- Enclosing class:
MoreCollectorUtil
MinMax result container.
MinMax 结果容器。
- Since:
- JDK 25, opencode-base-collections V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getMax()getMin()final inthashCode()Returns a hash code value for this object.booleanisEmpty()max()Returns the value of themaxrecord component.min()Returns the value of theminrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MinMax
-
-
Method Details
-
getMin
-
getMax
-
isEmpty
public boolean isEmpty() -
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 withObjects::equals(Object,Object). -
min
Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
max
Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-