Uses of Record Class
cloud.opencode.base.core.tuple.Pair

Packages that use Pair
Package
Description
 
  • Uses of Pair in cloud.opencode.base.core.tuple

    Methods in cloud.opencode.base.core.tuple that return Pair
    Modifier and Type
    Method
    Description
    static <L,R> Pair<L,R>
    Pair.empty()
    Creates an empty Pair 创建空二元组
    static <L,R> Pair<L,R>
    TupleUtil.emptyPair()
    Creates an empty Pair 创建空二元组
    static <K,V> Pair<K,V>
    Pair.fromEntry(Map.Entry<K,V> entry)
    Creates a Pair from Map.Entry 从 Map.Entry 创建二元组
    <T,U> Pair<T,U>
    Pair.map(Function<? super L, ? extends T> leftMapper, Function<? super R, ? extends U> rightMapper)
    Maps both left and right values 同时映射左右值
    <T> Pair<T,R>
    Pair.mapLeft(Function<? super L, ? extends T> mapper)
    Maps the left value 映射左值
    <T> Pair<L,T>
    Pair.mapRight(Function<? super R, ? extends T> mapper)
    Maps the right value 映射右值
    static <L,R> Pair<L,R>
    Pair.of(L left, R right)
    Creates a Pair 创建二元组
    static <K,V> Pair<K,V>
    TupleUtil.pair(Map.Entry<K,V> entry)
    Creates a Pair from Map.Entry 从 Map.Entry 创建二元组
    static <L,R> Pair<L,R>
    TupleUtil.pair(L left, R right)
    Creates a Pair 创建二元组
    Pair.swap()
    Swaps left and right values 交换左右值
    Quadruple.toFirstPair()
    Extracts the first two elements as a Pair 提取前两个元素为 Pair
    Triple.toFirstPair()
    Extracts the first two elements as a Pair 提取前两个元素为 Pair
    Quadruple.toLastPair()
    Extracts the last two elements as a Pair 提取后两个元素为 Pair
    Triple.toLastPair()
    Extracts the last two elements as a Pair 提取后两个元素为 Pair