Package Torello.HTML.Tools.Images
Interface TextCleaner
-
- All Superinterfaces:
java.util.function.ToIntFunction<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 TextCleaner extends java.util.function.ToIntFunction<java.util.Vector<HTMLNode>>
If there is 'HTML Clutter' surrounding the image-html, this functional-interface can be used to eliminate such clutter.
Should remove any extraneous text from an HTML Page. The returned integer should state exactly how many nodes were removed.
This interface inherits Java's SimpleToIntFunction<T>
. The lamda-target method is named'applyAsInt'
, and accepts a single parameter of typeVector<HTMLNode>
(a.k.a the Vectorized-HTML Section). This method should perform any cleaning on the Web-Page, and then it should return an integer stating how many nodes were removed (if any).
Hi-Lited Source-Code:- View Here: Torello/HTML/Tools/Images/TextCleaner.java
- Open New Browser-Tab: Torello/HTML/Tools/Images/TextCleaner.java
File Size: 1,014 Bytes Line Count: 24 '\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;
-
-