当前位置: 首页>>代码示例>>Java>>正文


Java Tuple1类代码示例

本文整理汇总了Java中org.jooq.lambda.tuple.Tuple1的典型用法代码示例。如果您正苦于以下问题:Java Tuple1类的具体用法?Java Tuple1怎么用?Java Tuple1使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Tuple1类属于org.jooq.lambda.tuple包,在下文中一共展示了Tuple1类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: window

import org.jooq.lambda.tuple.Tuple1; //导入依赖的package包/类
/**
 * Map this stream to a windowed stream with 1 distinct windows.
 */
@Generated("This method was generated using jOOQ-tools")
default Seq<Tuple1<Window<T>>> window(
    WindowSpecification<T> specification1
) {
    List<Tuple2<T, Long>> buffer = zipWithIndex().toList();

    Map<?, Partition<T>> partitions1 = SeqUtils.partitions(specification1, buffer);

    return seq(buffer)
          .map(t -> tuple(
               (Window<T>) new WindowImpl<>(t, partitions1.get(specification1.partition().apply(t.v1)), specification1)
          ))
          .onClose(this::close);
}
 
开发者ID:jOOQ,项目名称:jOOL,代码行数:18,代码来源:Seq.java

示例2: applyPartially

import org.jooq.lambda.tuple.Tuple1; //导入依赖的package包/类
/**
 * Partially apply this function to the arguments.
 */
default Function13<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R> applyPartially(Tuple1<? extends T1> args) {
    return (v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> apply(args.v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14);
}
 
开发者ID:jOOQ,项目名称:jOOL,代码行数:7,代码来源:Function14.java

示例3: acceptPartially

import org.jooq.lambda.tuple.Tuple1; //导入依赖的package包/类
/**
 * Let this consumer partially accept the arguments.
 */
default Consumer5<T2, T3, T4, T5, T6> acceptPartially(Tuple1<? extends T1> args) {
    return (v2, v3, v4, v5, v6) -> accept(args.v1, v2, v3, v4, v5, v6);
}
 
开发者ID:jOOQ,项目名称:jOOL,代码行数:7,代码来源:Consumer6.java

示例4: acceptPartially

import org.jooq.lambda.tuple.Tuple1; //导入依赖的package包/类
/**
 * Let this consumer partially accept the arguments.
 */
default Consumer6<T2, T3, T4, T5, T6, T7> acceptPartially(Tuple1<? extends T1> args) {
    return (v2, v3, v4, v5, v6, v7) -> accept(args.v1, v2, v3, v4, v5, v6, v7);
}
 
开发者ID:jOOQ,项目名称:jOOL,代码行数:7,代码来源:Consumer7.java

示例5: applyPartially

import org.jooq.lambda.tuple.Tuple1; //导入依赖的package包/类
/**
 * Partially apply this function to the arguments.
 */
default Function0<R> applyPartially(Tuple1<? extends T1> args) {
    return () -> apply(args.v1);
}
 
开发者ID:jOOQ,项目名称:jOOL,代码行数:7,代码来源:Function1.java

示例6: applyPartially

import org.jooq.lambda.tuple.Tuple1; //导入依赖的package包/类
/**
 * Partially apply this function to the arguments.
 */
default Function8<T2, T3, T4, T5, T6, T7, T8, T9, R> applyPartially(Tuple1<? extends T1> args) {
    return (v2, v3, v4, v5, v6, v7, v8, v9) -> apply(args.v1, v2, v3, v4, v5, v6, v7, v8, v9);
}
 
开发者ID:jOOQ,项目名称:jOOL,代码行数:7,代码来源:Function9.java

示例7: applyPartially

import org.jooq.lambda.tuple.Tuple1; //导入依赖的package包/类
/**
 * Partially apply this function to the arguments.
 */
default Function3<T2, T3, T4, R> applyPartially(Tuple1<? extends T1> args) {
    return (v2, v3, v4) -> apply(args.v1, v2, v3, v4);
}
 
开发者ID:jOOQ,项目名称:jOOL,代码行数:7,代码来源:Function4.java

示例8: acceptPartially

import org.jooq.lambda.tuple.Tuple1; //导入依赖的package包/类
/**
 * Let this consumer partially accept the arguments.
 */
default Consumer15<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> acceptPartially(Tuple1<? extends T1> args) {
    return (v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) -> accept(args.v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16);
}
 
开发者ID:jOOQ,项目名称:jOOL,代码行数:7,代码来源:Consumer16.java

示例9: applyPartially

import org.jooq.lambda.tuple.Tuple1; //导入依赖的package包/类
/**
 * Partially apply this function to the arguments.
 */
default Function1<T2, R> applyPartially(Tuple1<? extends T1> args) {
    return (v2) -> apply(args.v1, v2);
}
 
开发者ID:jOOQ,项目名称:jOOL,代码行数:7,代码来源:Function2.java

示例10: applyPartially

import org.jooq.lambda.tuple.Tuple1; //导入依赖的package包/类
/**
 * Partially apply this function to the arguments.
 */
default Function9<T2, T3, T4, T5, T6, T7, T8, T9, T10, R> applyPartially(Tuple1<? extends T1> args) {
    return (v2, v3, v4, v5, v6, v7, v8, v9, v10) -> apply(args.v1, v2, v3, v4, v5, v6, v7, v8, v9, v10);
}
 
开发者ID:jOOQ,项目名称:jOOL,代码行数:7,代码来源:Function10.java

示例11: applyPartially

import org.jooq.lambda.tuple.Tuple1; //导入依赖的package包/类
/**
 * Partially apply this function to the arguments.
 */
default Function10<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, R> applyPartially(Tuple1<? extends T1> args) {
    return (v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> apply(args.v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11);
}
 
开发者ID:jOOQ,项目名称:jOOL,代码行数:7,代码来源:Function11.java

示例12: applyPartially

import org.jooq.lambda.tuple.Tuple1; //导入依赖的package包/类
/**
 * Partially apply this function to the arguments.
 */
default Function6<T2, T3, T4, T5, T6, T7, R> applyPartially(Tuple1<? extends T1> args) {
    return (v2, v3, v4, v5, v6, v7) -> apply(args.v1, v2, v3, v4, v5, v6, v7);
}
 
开发者ID:jOOQ,项目名称:jOOL,代码行数:7,代码来源:Function7.java

示例13: applyPartially

import org.jooq.lambda.tuple.Tuple1; //导入依赖的package包/类
/**
 * Partially apply this function to the arguments.
 */
default Function2<T2, T3, R> applyPartially(Tuple1<? extends T1> args) {
    return (v2, v3) -> apply(args.v1, v2, v3);
}
 
开发者ID:jOOQ,项目名称:jOOL,代码行数:7,代码来源:Function3.java

示例14: applyPartially

import org.jooq.lambda.tuple.Tuple1; //导入依赖的package包/类
/**
 * Partially apply this function to the arguments.
 */
default Function15<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R> applyPartially(Tuple1<? extends T1> args) {
    return (v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) -> apply(args.v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16);
}
 
开发者ID:jOOQ,项目名称:jOOL,代码行数:7,代码来源:Function16.java

示例15: acceptPartially

import org.jooq.lambda.tuple.Tuple1; //导入依赖的package包/类
/**
 * Let this consumer partially accept the arguments.
 */
default Consumer2<T2, T3> acceptPartially(Tuple1<? extends T1> args) {
    return (v2, v3) -> accept(args.v1, v2, v3);
}
 
开发者ID:jOOQ,项目名称:jOOL,代码行数:7,代码来源:Consumer3.java


注:本文中的org.jooq.lambda.tuple.Tuple1类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。