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 Simple ToIntFunction<T>. The lamda-target method is named 'applyAsInt', and accepts a single parameter of type Vector<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).


    • Method Summary

      • Methods inherited from interface java.util.function.ToIntFunction

        applyAsInt
    • Field Detail

      • serialVersionUID

          🗕  🗗  🗖
        static final long serialVersionUID
        This fulfils the SerialVersion UID requirement for all classes that implement Java's interface java.io.Serializable. Using the Serializable 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;