Package com.landawn.abacus.util
Class Wrapper<T>
java.lang.Object
com.landawn.abacus.util.Wrapper<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Immutable
- Since:
- 0.8
- Author:
- Haiyang Li
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static <T> Wrapper<T>
of
(T array) static <T> Wrapper<T>
of
(T value, ToIntFunction<? super T> hashFunction, BiPredicate<? super T, ? super T> equalsFunction) static <T> Wrapper<T>
of
(T value, ToIntFunction<? super T> hashFunction, BiPredicate<? super T, ? super T> equalsFunction, Function<? super T, String> toStringFunction) toString()
value()
-
Method Details
-
of
- Type Parameters:
T
-- Parameters:
array
-- Returns:
-
of
public static <T> Wrapper<T> of(T value, ToIntFunction<? super T> hashFunction, BiPredicate<? super T, ? super T> equalsFunction) - Type Parameters:
T
-- Parameters:
value
-hashFunction
-equalsFunction
-- Returns:
-
of
public static <T> Wrapper<T> of(T value, ToIntFunction<? super T> hashFunction, BiPredicate<? super T, ? super T> equalsFunction, Function<? super T, String> toStringFunction) - Type Parameters:
T
-- Parameters:
value
-hashFunction
-equalsFunction
-toStringFunction
-- Returns:
-
value
- Returns:
-
hashCode
public int hashCode() -
equals
-
toString
-