Package Torello.HTML.Tools.Images
Interface SectionGet
-
- All Superinterfaces:
java.util.function.Function<java.util.Vector<HTMLNode>,java.util.Vector<HTMLNode>>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SectionGet extends java.util.function.Function<java.util.Vector<HTMLNode>,java.util.Vector<HTMLNode>>
A functional-interface for returning the portion of the page that contains the list of images on the site - usually one line from the Node-Search Package classes.
Should retrieve a sub-portion or sub-section of an HTML Page. This interface inherits Java's SimpleFunction<T, U>
- where'T'
and'U'
are both of typeVector<HTMLNode>
. In the Java-HTML JAR Library, a variable of typeVector<HTMLNode>
is usually refered to as a Vectorized-HTML.
The lamda-target method is simply named'apply'
, and accepts a single Vectorized-HTML parameter. This method should then extract a sub-section of that web-page which contains photos or pictures so that they may be downloaded and extracted. This extracted section should be returned from the lambda-target method.
Hi-Lited Source-Code:- View Here: Torello/HTML/Tools/Images/SectionGet.java
- Open New Browser-Tab: Torello/HTML/Tools/Images/SectionGet.java
File Size: 1,234 Bytes Line Count: 26 '\n' Characters Found
-
-
Field Summary
Fields Modifier and Type Field static long
serialVersionUID
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable
. Using theSerializable
Implementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.
Functional Interfaces are usually not thought of as Data Objects that need to be saved, stored and retrieved; however, having the ability to store intermediate results along with the lambda-functions that helped get those results can make debugging easier.- See Also:
- Constant Field Values
- Code:
- Exact Field Declaration Expression:
public static final long serialVersionUID = 1;
-
-