Class ResultItems


  • public class ResultItems
    extends java.lang.Object
    Object contains extract results.
    It is contained in Page and will be processed in pipeline.
    Since:
    0.1.0
    Author:
    code4crafter@gmail.com
    See Also:
    Page, Pipeline
    • Constructor Summary

      Constructors 
      Constructor Description
      ResultItems()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T get​(java.lang.String key)  
      java.util.Map<java.lang.String,​java.lang.Object> getAll()  
      Request getRequest()  
      boolean isSkip()
      Whether to skip the result.
      Result which is skipped will not be processed by Pipeline.
      <T> ResultItems put​(java.lang.String key, T value)  
      ResultItems setRequest​(Request request)  
      ResultItems setSkip​(boolean skip)
      Set whether to skip the result.
      Result which is skipped will not be processed by Pipeline.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ResultItems

        public ResultItems()
    • Method Detail

      • get

        public <T> T get​(java.lang.String key)
      • getAll

        public java.util.Map<java.lang.String,​java.lang.Object> getAll()
      • put

        public <T> ResultItems put​(java.lang.String key,
                                   T value)
      • getRequest

        public Request getRequest()
      • isSkip

        public boolean isSkip()
        Whether to skip the result.
        Result which is skipped will not be processed by Pipeline.
        Returns:
        whether to skip the result
      • setSkip

        public ResultItems setSkip​(boolean skip)
        Set whether to skip the result.
        Result which is skipped will not be processed by Pipeline.
        Parameters:
        skip - whether to skip the result
        Returns:
        this
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object