Class UnlimitedWindow

    • Constructor Summary

      Constructors 
      Constructor Description
      UnlimitedWindow​(long startMs)
      Create a new window for the given start time (inclusive).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean overlap​(Window other)
      Returns true if the given window is of the same type, because all unlimited windows overlap with each other due to their infinite size.
      • Methods inherited from class java.lang.Object

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

      • UnlimitedWindow

        public UnlimitedWindow​(long startMs)
        Create a new window for the given start time (inclusive).
        Parameters:
        startMs - the start timestamp of the window (inclusive)
        Throws:
        java.lang.IllegalArgumentException - if start is negative
    • Method Detail

      • overlap

        public boolean overlap​(Window other)
        Returns true if the given window is of the same type, because all unlimited windows overlap with each other due to their infinite size.
        Specified by:
        overlap in class Window
        Parameters:
        other - another window
        Returns:
        true
        Throws:
        java.lang.IllegalArgumentException - if the other window has a different type than this window