UnlimitedWindows extends Windows<UnlimitedWindow> { public static UnlimitedWindows of(String name) { return new UnlimitedWindows(name, DEFAULT_START_TIMESTAMP); } private  UnlimitedWindows(String name, long start); static UnlimitedWindows of(String name); UnlimitedWindows startOn(long start); @Override Map<Long, UnlimitedWindow> windowsFor(long timestamp); @Override final boolean equals(Object o); @Override int hashCode(); final long start; }
@Test(expected = IllegalArgumentException.class) public void nameMustNotBeEmpty() { UnlimitedWindows.of(""); }
@Test(expected = IllegalArgumentException.class) public void nameMustNotBeNull() { UnlimitedWindows.of(null); }