Package net.kyori.examination
Class AbstractExaminer<R>
- java.lang.Object
-
- net.kyori.examination.AbstractExaminer<R>
-
-
Constructor Summary
Constructors Constructor Description AbstractExaminer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Rarray(int length, IntFunction<R> value)Examines an array.protected abstract <E> Rarray(E @NotNull [] array, @NotNull Stream<R> elements)Examines an array.protected abstract <E> Rcollection(@NotNull Collection<E> collection, @NotNull Stream<R> elements)Examines a collection.protected abstract Rexaminable(@NotNull String name, @NotNull Stream<Map.Entry<String,R>> properties)Examines an examinable.Rexamine(boolean @Nullable [] values)Examines.Rexamine(byte @Nullable [] values)Examines.Rexamine(char @Nullable [] values)Examines.Rexamine(double @Nullable [] values)Examines.Rexamine(float @Nullable [] values)Examines.Rexamine(int @Nullable [] values)Examines.Rexamine(long @Nullable [] values)Examines.Rexamine(short @Nullable [] values)Examines.Rexamine(@NotNull String name, @NotNull Stream<? extends ExaminableProperty> properties)Examines.Rexamine(@Nullable Object value)Examines.protected abstract <K,V>
Rmap(@NotNull Map<K,V> map, @NotNull Stream<Map.Entry<R,R>> entries)Examines a map.protected abstract Rnil()Examinesnull.protected abstract Rscalar(@NotNull Object value)Examines a scalar value.protected abstract Rstream(@NotNull DoubleStream stream)Examines a stream.protected abstract Rstream(@NotNull IntStream stream)Examines a stream.protected abstract Rstream(@NotNull LongStream stream)Examines a stream.protected abstract <T> Rstream(@NotNull Stream<T> stream)Examines a stream.
-
-
-
Method Detail
-
examine
@NotNull public R examine(@Nullable @Nullable Object value)
Description copied from interface:ExaminerExamines.
-
array
@NotNull protected abstract <E> R array(E @NotNull [] array, @NotNull @NotNull Stream<R> elements)
Examines an array.- Type Parameters:
E- the element type- Parameters:
array- the arrayelements- the array elements- Returns:
- the result from examining an array
-
collection
@NotNull protected abstract <E> R collection(@NotNull @NotNull Collection<E> collection, @NotNull @NotNull Stream<R> elements)
Examines a collection.- Type Parameters:
E- the element type- Parameters:
collection- the collectionelements- the collection elements- Returns:
- the result from examining a collection
-
examine
@NotNull public R examine(@NotNull @NotNull String name, @NotNull @NotNull Stream<? extends ExaminableProperty> properties)
Description copied from interface:ExaminerExamines.
-
examinable
@NotNull protected abstract R examinable(@NotNull @NotNull String name, @NotNull @NotNull Stream<Map.Entry<String,R>> properties)
Examines an examinable.- Parameters:
name- the examinable nameproperties- the examinable properties- Returns:
- the result from examining an examinable
-
map
@NotNull protected abstract <K,V> R map(@NotNull @NotNull Map<K,V> map, @NotNull @NotNull Stream<Map.Entry<R,R>> entries)
Examines a map.- Type Parameters:
K- the key typeV- the value type- Parameters:
map- the mapentries- the map entries- Returns:
- the result from examining a map
-
nil
@NotNull protected abstract R nil()
Examinesnull.- Returns:
- the result from examining
null
-
scalar
@NotNull protected abstract R scalar(@NotNull @NotNull Object value)
Examines a scalar value.- Parameters:
value- the scalar value- Returns:
- the result from examining a scalar
-
stream
@NotNull protected abstract <T> R stream(@NotNull @NotNull Stream<T> stream)
Examines a stream.- Type Parameters:
T- the type- Parameters:
stream- the stream- Returns:
- the result from examining a stream
-
stream
@NotNull protected abstract R stream(@NotNull @NotNull DoubleStream stream)
Examines a stream.- Parameters:
stream- the stream- Returns:
- the result from examining a stream
-
stream
@NotNull protected abstract R stream(@NotNull @NotNull IntStream stream)
Examines a stream.- Parameters:
stream- the stream- Returns:
- the result from examining a stream
-
stream
@NotNull protected abstract R stream(@NotNull @NotNull LongStream stream)
Examines a stream.- Parameters:
stream- the stream- Returns:
- the result from examining a stream
-
examine
@NotNull public R examine(boolean @Nullable [] values)
Description copied from interface:ExaminerExamines.
-
examine
@NotNull public R examine(byte @Nullable [] values)
Description copied from interface:ExaminerExamines.
-
examine
@NotNull public R examine(char @Nullable [] values)
Description copied from interface:ExaminerExamines.
-
examine
@NotNull public R examine(double @Nullable [] values)
Description copied from interface:ExaminerExamines.
-
examine
@NotNull public R examine(float @Nullable [] values)
Description copied from interface:ExaminerExamines.
-
examine
@NotNull public R examine(int @Nullable [] values)
Description copied from interface:ExaminerExamines.
-
examine
@NotNull public R examine(long @Nullable [] values)
Description copied from interface:ExaminerExamines.
-
examine
@NotNull public R examine(short @Nullable [] values)
Description copied from interface:ExaminerExamines.
-
array
@NotNull protected abstract R array(int length, IntFunction<R> value)
Examines an array.- Parameters:
length- the length of the arrayvalue- the index to examined value function- Returns:
- the result from examining the array
-
-