跳过导航链接
A B C D E F G I L M O P R S T W 

A

accept(T1, T2) - 接口 中的方法com.github.lokic.javaplus.func.consumer.Consumer2
 
accept(T1, T2, T3) - 接口 中的方法com.github.lokic.javaplus.func.consumer.Consumer3
 
accept(Map.Entry<K, V>) - 接口 中的方法com.github.lokic.javaplus.func.entry.EntryConsumer
 
accept(T) - 接口 中的方法com.github.lokic.javaplus.func.sneakythrows.SneakyThrowConsumer1
 
accept(Tuple2<T1, T2>) - 接口 中的方法com.github.lokic.javaplus.func.tuple.TupleConsumer2
 
accept(Tuple3<T1, T2, T3>) - 接口 中的方法com.github.lokic.javaplus.func.tuple.TupleConsumer3
 
accept(Optional<T>) - 类 中的方法com.github.lokic.javaplus.Optionals.OptionalConsumer
 
apply(Map.Entry<K, V>) - 接口 中的方法com.github.lokic.javaplus.func.entry.EntryFunction
 
apply(T1, T2) - 接口 中的方法com.github.lokic.javaplus.func.function.Function2
 
apply(T1, T2, T3) - 接口 中的方法com.github.lokic.javaplus.func.function.Function3
 
apply(T) - 接口 中的方法com.github.lokic.javaplus.func.sneakythrows.SneakyThrowFunction1
 
apply(T1, T2) - 接口 中的方法com.github.lokic.javaplus.func.sneakythrows.SneakyThrowFunction2
 
apply(T1, T2, T3) - 接口 中的方法com.github.lokic.javaplus.func.sneakythrows.SneakyThrowFunction3
 
apply(Tuple2<T1, T2>) - 接口 中的方法com.github.lokic.javaplus.func.tuple.TupleFunction2
 
apply(Tuple3<T1, T2, T3>) - 接口 中的方法com.github.lokic.javaplus.func.tuple.TupleFunction3
 

B

build() - 类 中的方法com.github.lokic.javaplus.Builder
 
Builder<T> - com.github.lokic.javaplus中的类
对POJO提供的通用builder,也可以作为对POJO提供fluent风格的setter

C

cast(Consumer2<K, V>) - 接口 中的静态方法com.github.lokic.javaplus.func.entry.EntryConsumer
 
cast(Function2<K, V, R>) - 接口 中的静态方法com.github.lokic.javaplus.func.entry.EntryFunction
 
cast(ThrowConsumer1<T>) - 接口 中的静态方法com.github.lokic.javaplus.func.sneakythrows.SneakyThrowConsumer1
 
cast(ThrowFunction1<T, R>) - 接口 中的静态方法com.github.lokic.javaplus.func.sneakythrows.SneakyThrowFunction1
 
cast(ThrowFunction2<T1, T2, R>) - 接口 中的静态方法com.github.lokic.javaplus.func.sneakythrows.SneakyThrowFunction2
 
cast(ThrowFunction3<T1, T2, T3, R>) - 接口 中的静态方法com.github.lokic.javaplus.func.sneakythrows.SneakyThrowFunction3
 
cast(ThrowRunnable) - 接口 中的静态方法com.github.lokic.javaplus.func.sneakythrows.SneakyThrowRunnable
 
cast(ThrowSupplier<T>) - 接口 中的静态方法com.github.lokic.javaplus.func.sneakythrows.SneakyThrowSupplier
 
cast(Consumer2<T1, T2>) - 接口 中的静态方法com.github.lokic.javaplus.func.tuple.TupleConsumer2
 
cast(Consumer3<T1, T2, T3>) - 接口 中的静态方法com.github.lokic.javaplus.func.tuple.TupleConsumer3
 
cast(Function2<T1, T2, R>) - 接口 中的静态方法com.github.lokic.javaplus.func.tuple.TupleFunction2
 
cast(Function3<T1, T2, T3, R>) - 接口 中的静态方法com.github.lokic.javaplus.func.tuple.TupleFunction3
 
cast(Object) - 类 中的静态方法com.github.lokic.javaplus.Types
更加优雅得进行类型转换。
Collectors - com.github.lokic.javaplus中的类
 
Collectors() - 类 的构造器com.github.lokic.javaplus.Collectors
 
Collectors.Distinct - com.github.lokic.javaplus中的类
 
Collectors.Reversed - com.github.lokic.javaplus中的类
 
com.github.lokic.javaplus - 程序包 com.github.lokic.javaplus
对java提供一些有用的扩展 元组定义相关package:com.github.lokic.javaplus.tuple 偷偷抛异常相关函数的package:com.github.lokic.javaplus.func.sneakythrows 元组相关函数的package:com.github.lokic.javaplus.func.tuple Map.Entry 相关函数的package:com.github.lokic.javaplus.func.entry Supplier相关扩展: Lazy SneakyThrowSupplier Function相关扩展: Functions SneakyThrowFunction1 SneakyThrowFunction2 SneakyThrowFunction3 TupleFunction2 TupleFunction3 EntryFunction Consumer相关扩展: Consumers SneakyThrowConsumer1 TupleConsumer2 TupleConsumer3 EntryConsumer Runnable 相关扩展: SneakyThrowRunnable Optional 相关扩展: Optionals Stream 相关扩展: Streams Enum 相关扩展: Property Predicate 相关扩展: Predicates Collectors 相关扩展: Collectors.Reversed 倒序 Collectors.Distinct 去重 其他: Types 类型相关
com.github.lokic.javaplus.func.consumer - 程序包 com.github.lokic.javaplus.func.consumer
 
com.github.lokic.javaplus.func.entry - 程序包 com.github.lokic.javaplus.func.entry
EntryFunctionEntryConsumer, 旨在减少使用 Map.Entry 传递的时候, Map.Entry.getKey()Map.Entry.getValue() ()}的显性调用。
com.github.lokic.javaplus.func.function - 程序包 com.github.lokic.javaplus.func.function
 
com.github.lokic.javaplus.func.sneakythrows - 程序包 com.github.lokic.javaplus.func.sneakythrows
在函数式编程中,如果调用一些方法是会抛出受检异常的,又希望lambda在碰到异常的情况下直接结束, 就需要在lambda中强制try catch,然后转换成非受检异常抛出,这么做多了一层转换甚是繁琐。
com.github.lokic.javaplus.func.throwable - 程序包 com.github.lokic.javaplus.func.throwable
 
com.github.lokic.javaplus.func.tuple - 程序包 com.github.lokic.javaplus.func.tuple
在函数式编程中,有时可能需要在lambda中临时传递一些数据,如果重新创建一个类来传递就显得有些繁琐。
com.github.lokic.javaplus.tuple - 程序包 com.github.lokic.javaplus.tuple
 
Consumer2<T1,T2> - com.github.lokic.javaplus.func.consumer中的接口
 
Consumer3<T1,T2,T3> - com.github.lokic.javaplus.func.consumer中的接口
 
Consumers - com.github.lokic.javaplus中的类
 
Consumers() - 类 的构造器com.github.lokic.javaplus.Consumers
 

D

Dates - com.github.lokic.javaplus中的类
 
Dates() - 类 的构造器com.github.lokic.javaplus.Dates
 
dateToLocalDateTime(Date) - 类 中的静态方法com.github.lokic.javaplus.Dates
 
Distinct() - 类 的构造器com.github.lokic.javaplus.Collectors.Distinct
 
distinctByKey(Function<? super T, ?>) - 类 中的静态方法com.github.lokic.javaplus.Predicates
基于 keyExtractor, 来进行去重,只保存第一个值,之后的都忽略。
distinctFirstPut() - 类 中的静态方法com.github.lokic.javaplus.Collectors.Distinct
去重复,如果数据存在相同的rule,则保留最早配置的rule 如,before: A B A C after: A B C
distinctFirstPutByKey(Function<? super T, ?>) - 类 中的静态方法com.github.lokic.javaplus.Collectors.Distinct
基于 keyExtractor 进行去重,只保存第一个值,之后的都忽略。
distinctLastPut() - 类 中的静态方法com.github.lokic.javaplus.Collectors.Distinct
去重复,如果数据存在相同的rule,则保留最新配置的rule 如,before: A B A C after: B A C
distinctLastPutByKey(Function<? super T, ?>) - 类 中的静态方法com.github.lokic.javaplus.Collectors.Distinct
 

E

EntryConsumer<K,V> - com.github.lokic.javaplus.func.entry中的接口
 
EntryFunction<K,V,R> - com.github.lokic.javaplus.func.entry中的接口
 

F

Function2<T1,T2,R> - com.github.lokic.javaplus.func.function中的接口
 
Function3<T1,T2,T3,R> - com.github.lokic.javaplus.func.function中的接口
 
Functions - com.github.lokic.javaplus中的类
 
Functions() - 类 的构造器com.github.lokic.javaplus.Functions
 

G

get() - 接口 中的方法com.github.lokic.javaplus.func.sneakythrows.SneakyThrowSupplier
 
get() - 类 中的方法com.github.lokic.javaplus.Lazy
 
getClass(T) - 类 中的静态方法com.github.lokic.javaplus.Types
 
getT1() - 类 中的方法com.github.lokic.javaplus.tuple.Tuple2
 
getT1() - 类 中的方法com.github.lokic.javaplus.tuple.Tuple3
 
getT2() - 类 中的方法com.github.lokic.javaplus.tuple.Tuple2
 
getT2() - 类 中的方法com.github.lokic.javaplus.tuple.Tuple3
 
getT3() - 类 中的方法com.github.lokic.javaplus.tuple.Tuple3
 

I

ifPresentOrElse(Consumer<T>, Runnable) - 类 中的静态方法com.github.lokic.javaplus.Optionals
在java8中,Optional 只有 Optional.ifPresent(Consumer)Optional.orElseGet(Supplier), 其中 Optional.orElseGet(Supplier) 必须要有返回值,必要的时候只能返回 Void 类型,不够优雅且冗余。

L

Lazy<T> - com.github.lokic.javaplus中的类
带缓存功能的 Supplier Supplier 每一次执行 Supplier.get() 都会执行一次 Supplier.get() 内的业务逻辑。
localDateTimeToDate(LocalDateTime) - 类 中的静态方法com.github.lokic.javaplus.Dates
 

M

mapWithIndex(BiConsumer<Integer, T>) - 类 中的静态方法com.github.lokic.javaplus.Consumers
在遍历的场景,可以通过该方法,在 biConsumer 中拿到遍历的下标
mapWithIndex(BiFunction<Integer, T, R>) - 类 中的静态方法com.github.lokic.javaplus.Functions
在某些遍历的场景,可以通过该方法,在 biFunction 中拿到遍历的下标 List(...) .stream() .map(Functions.mapWithIndex((index, item) -> { ... })
Memoized - com.github.lokic.javaplus中的类
对执行的函数提供记忆化的功能,减少相同参数的重复调用
Memoized() - 类 的构造器com.github.lokic.javaplus.Memoized
 

O

of(Supplier<T>) - 类 中的静态方法com.github.lokic.javaplus.Builder
 
of(Supplier<T>) - 类 中的静态方法com.github.lokic.javaplus.Lazy
 
of(T) - 类 中的静态方法com.github.lokic.javaplus.Lazy
 
of(Function<T, R>) - 类 中的静态方法com.github.lokic.javaplus.Memoized
 
of(Function2<T1, T2, R>) - 类 中的静态方法com.github.lokic.javaplus.Memoized
 
of(Function3<T1, T2, T3, R>) - 类 中的静态方法com.github.lokic.javaplus.Memoized
 
of(K) - 类 中的方法com.github.lokic.javaplus.Property
 
of(T1, T2) - 接口 中的静态方法com.github.lokic.javaplus.tuple.Tuple
 
of(T1, T2, T3) - 接口 中的静态方法com.github.lokic.javaplus.tuple.Tuple
 
ofCollectionNullable(Function<T, Collection<R>>) - 类 中的静态方法com.github.lokic.javaplus.Streams
能在Stream中更加方便得使用方法引用, Function<T, Collection<R>> ==> Function<T,Stream<R>>
ofNullable(T...) - 类 中的静态方法com.github.lokic.javaplus.Streams
返回一个不包含null的Stream
ofNullable(Optional<T>...) - 类 中的静态方法com.github.lokic.javaplus.Streams
返回一个不包含 Optional.empty() 的Stream Note: optValues 中每一个Optional<T> 元素都不能为null
ofNullable(T) - 类 中的静态方法com.github.lokic.javaplus.Streams
返回一个不包含null的Stream,如果为null,则返回 Stream.empty()Stream<T> 的流中,Stream.flatMap(Function) 的方法上, 通过该方法 Streams.ofNullable(Object) )} 把 value 扁平化。
ofNullable(Optional<T>) - 类 中的静态方法com.github.lokic.javaplus.Streams
Optional 对象 option 转成流 Stream, 如果为 Optional.empty(),则转换成 Stream.empty()Stream<Optional<T>> 的流中,Stream.flatMap(Function) 的方法上, 通过该方法 Streams.ofNullable(Optional)option 扁平化。
ofNullable(Collection<T>) - 类 中的静态方法com.github.lokic.javaplus.Streams
Collection 转换成 Stream, 如果 Collection 为 null, 则返回 Stream.empty()
ofObjectNullable(Function<T, R>) - 类 中的静态方法com.github.lokic.javaplus.Streams
能在Stream中更加方便得使用方法引用, Function<T, R> ==> Function<T,Stream<R>>
Optionals - com.github.lokic.javaplus中的类
 
Optionals() - 类 的构造器com.github.lokic.javaplus.Optionals
 
Optionals.OptionalConsumer<T> - com.github.lokic.javaplus中的类
 
optOf(K) - 类 中的方法com.github.lokic.javaplus.Property
 

P

Predicates - com.github.lokic.javaplus中的类
 
Predicates() - 类 的构造器com.github.lokic.javaplus.Predicates
 
Property<T extends Enum<T>,K> - com.github.lokic.javaplus中的类
在定义枚举类之后,经常需要基于枚举类的某个字段作为key来查询枚举,抽象出这个模块来实现key到枚举的映射和转换逻辑。
Property(Class<T>, Function<T, K>) - 类 的构造器com.github.lokic.javaplus.Property
 

R

requireOf(K) - 类 中的方法com.github.lokic.javaplus.Property
 
Reversed() - 类 的构造器com.github.lokic.javaplus.Collectors.Reversed
 
reversed() - 类 中的静态方法com.github.lokic.javaplus.Collectors.Reversed
倒序
reversed(Function<List<T>, R>) - 类 中的静态方法com.github.lokic.javaplus.Collectors.Reversed
倒序,并对list进行 finisher 转换
run() - 接口 中的方法com.github.lokic.javaplus.func.sneakythrows.SneakyThrowRunnable
 

S

SneakyThrowConsumer1<T> - com.github.lokic.javaplus.func.sneakythrows中的接口
 
SneakyThrowFunction1<T,R> - com.github.lokic.javaplus.func.sneakythrows中的接口
 
SneakyThrowFunction2<T1,T2,R> - com.github.lokic.javaplus.func.sneakythrows中的接口
 
SneakyThrowFunction3<T1,T2,T3,R> - com.github.lokic.javaplus.func.sneakythrows中的接口
 
SneakyThrowRunnable - com.github.lokic.javaplus.func.sneakythrows中的接口
 
SneakyThrowSupplier<T> - com.github.lokic.javaplus.func.sneakythrows中的接口
 
Streams - com.github.lokic.javaplus中的类
Stream 进行的一些方法扩展
Streams() - 类 的构造器com.github.lokic.javaplus.Streams
 

T

throwableAccept(T) - 接口 中的方法com.github.lokic.javaplus.func.throwable.ThrowConsumer1
 
throwableApply(T) - 接口 中的方法com.github.lokic.javaplus.func.throwable.ThrowFunction1
 
throwableApply(T1, T2) - 接口 中的方法com.github.lokic.javaplus.func.throwable.ThrowFunction2
 
throwableApply(T1, T2, T3) - 接口 中的方法com.github.lokic.javaplus.func.throwable.ThrowFunction3
 
throwableGet() - 接口 中的方法com.github.lokic.javaplus.func.throwable.ThrowSupplier
 
throwableRun() - 接口 中的方法com.github.lokic.javaplus.func.throwable.ThrowRunnable
 
ThrowConsumer1<T> - com.github.lokic.javaplus.func.throwable中的接口
 
ThrowFunction1<T,R> - com.github.lokic.javaplus.func.throwable中的接口
 
ThrowFunction2<T1,T2,R> - com.github.lokic.javaplus.func.throwable中的接口
 
ThrowFunction3<T1,T2,T3,R> - com.github.lokic.javaplus.func.throwable中的接口
 
ThrowRunnable - com.github.lokic.javaplus.func.throwable中的接口
 
ThrowSupplier<T> - com.github.lokic.javaplus.func.throwable中的接口
 
toRunnable(Consumer<T>) - 类 中的静态方法com.github.lokic.javaplus.Consumers
Consumer<T> 转换 Function<T, Runnable>
Tuple - com.github.lokic.javaplus.tuple中的接口
 
Tuple2<T1,T2> - com.github.lokic.javaplus.tuple中的类
 
Tuple3<T1,T2,T3> - com.github.lokic.javaplus.tuple中的类
 
TupleConsumer2<T1,T2> - com.github.lokic.javaplus.func.tuple中的接口
 
TupleConsumer3<T1,T2,T3> - com.github.lokic.javaplus.func.tuple中的接口
 
TupleFunction2<T1,T2,R> - com.github.lokic.javaplus.func.tuple中的接口
 
TupleFunction3<T1,T2,T3,R> - com.github.lokic.javaplus.func.tuple中的接口
 
Types - com.github.lokic.javaplus中的类
 
Types() - 类 的构造器com.github.lokic.javaplus.Types
 

W

with(Consumer2<T, P1>, P1) - 类 中的方法com.github.lokic.javaplus.Builder
 
with(Consumer3<T, P1, P2>, P1, P2) - 类 中的方法com.github.lokic.javaplus.Builder
 
A B C D E F G I L M O P R S T W 
跳过导航链接

Copyright © 2021. All rights reserved.