Package Torello.Java.JSON
Class SettingsRec<T,U>
- java.lang.Object
-
- Torello.Java.JSON.SettingsRec<T,U>
-
public class SettingsRec<T,U> extends java.lang.Object
The purpose of this class is to conglomerate all Functional-Interface / Method-Pointers into a single Java-Class. This JSON-Package offers a suite ofJsonArray
Processing Methods, each of which begins with name / text "RJArr". The list of classes which are made available by this Json Helper-Package are listed, here, below:RJArrIntoStream
RJArrIntoBoxedStream
RJArrIntoPrimStream
RJArrIntoConsumer
RJArrIntoBoxedConsumer
RJArrIntoPrimConsumer
RJArrIntoJavaArray
RJArrIntoPrimArray
RJArrDimN
Note that every single method in each and every one of the above mentioned classes utilize & rely on the classProcessJsonArray
to actually extract the Json-Values that are present inside of theJsonArray
that is passed by the user when invoking one of these methods. This "Main Loop Class" (ProcessJsonArray
) actually has four variations for handling the data that is present inside of aJsonArray
. Inside this class the four methods can handle:
Data Kind ProcessJsonArray
Method-LinkNumeric-Data: numericToJava
String-Data: strToJava
Boolean-Data: booleanToJava
Object-Data: booleanToJava
What there is to know about this class'SettingsRec'
is that all of the User's Choices & Decisions, based on the input from theJFlag
Flag-Mask is converted, piece-meal, into a series of internally represented Lambda's & Function-Pointers - all of which are stored & saved, internallly, inside the fields of thisSettingsRec
class. By first converting all of these decisions regarding the specifics of what is actually inside of theJsonArray
that is to be processed are codified into these Functional-Interfaces. It is through the settings inside of this Record-Class that all processing of Json-Data is actually handled inside of the four methods provided byProcessJsonArray
.
Hi-Lited Source-Code:This File's Source Code:
- View Here: Torello/Java/JSON/SettingsRec.java
- Open New Browser-Tab: Torello/Java/JSON/SettingsRec.java
File Size: 11,126 Bytes Line Count: 264 '\n' Characters Found
Funtional-Interface Sources:
- View Here: BASIC_TYPES.java
- Open New Browser-Tab: BASIC_TYPES.java
File Size: 27,692 Bytes Line Count: 586 '\n' Characters Found
Funtional-Interface Sources:
- View Here: STREAM_BUILDER.java
- Open New Browser-Tab: STREAM_BUILDER.java
File Size: 10,057 Bytes Line Count: 191 '\n' Characters Found
Funtional-Interface Sources:
- View Here: PREDICATES.java
- Open New Browser-Tab: PREDICATES.java
File Size: 6,403 Bytes Line Count: 139 '\n' Characters Found
More Lambdas / Function-Pointers:
- View Here: Lambdas.java
- Open New Browser-Tab: Lambdas.java
File Size: 3,014 Bytes Line Count: 71 '\n' Characters Found
More Lambdas / Function-Pointers:
- View Here: TempFlags.java
- Open New Browser-Tab: TempFlags.java
File Size: 10,488 Bytes Line Count: 237 '\n' Characters Found
Select a Handler by User-Input:
- View Here: ChooseNumberHandler.java
- Open New Browser-Tab: ChooseNumberHandler.java
File Size: 9,193 Bytes Line Count: 224 '\n' Characters Found
Select a Handler by User-Input:
- View Here: ChooseStringHandler.java
- Open New Browser-Tab: ChooseStringHandler.java
File Size: 6,031 Bytes Line Count: 169 '\n' Characters Found