@Test public void shouldEqualsRelyOnAllArgument() { Assert.assertFalse(Window.of(WindowTest.DURATION_TWO).consolidatedBy(MaxConsolidator.class).equals(Window.of(WindowTest.DURATION_THREE).consolidatedBy(MaxConsolidator.class))); Assert.assertFalse(Window.of(WindowTest.DURATION_TWO).consolidatedBy(MaxConsolidator.class).equals(Window.of(WindowTest.DURATION_TWO).consolidatedBy(MinConsolidator.class))); Assert.assertFalse(Window.of(WindowTest.DURATION_TWO).listenedBy(Mockito.mock(ConsolidationListener.class)).consolidatedBy(MaxConsolidator.class).equals(Window.of(WindowTest.DURATION_TWO).consolidatedBy(MaxConsolidator.class))); }
public static Window.Builder of(final int size) { return new Window.Builder(size); }
Window { public static Window.Builder of(final int size) { return new Window.Builder(size); } }
Window { public static Window.Builder of(final int size) { return new Window.Builder(size); } Window(final int size, final List<? extends Class<? extends Consolidator>> consolidatorTypes, final List<? extends ConsolidationListener> consolidationListeners); }
Window { public static Window.Builder of(final int size) { return new Window.Builder(size); } Window(final int size, final List<? extends Class<? extends Consolidator>> consolidatorTypes, final List<? extends ConsolidationListener> consolidationListeners); static Window.Builder of(final int size); int getSize(); List<? extends Class<? extends Consolidator>> getConsolidatorTypes(); List<? extends ConsolidationListener> getConsolidationListeners(); }
Window { public static Window.Builder of(final int size) { return new Window.Builder(size); } Window(final int size, final List<? extends Class<? extends Consolidator>> consolidatorTypes, final List<? extends ConsolidationListener> consolidationListeners); static Window.Builder of(final int size); int getSize(); List<? extends Class<? extends Consolidator>> getConsolidatorTypes(); List<? extends ConsolidationListener> getConsolidationListeners();  }