Port { @Value.Lazy public boolean greaterOrEqualsTo(Port port) { return value() >= port.value(); }  @Value.Parameter abstract int value(); @Value.Lazy boolean empty(); @Value.Lazy boolean greaterOrEqualsTo(Port port); @Value.Lazy boolean lessOrEqualsTo(Port port);  }
@Test public void greater_than() throws Exception { assertThat(ImmutablePort.of(8000).greaterOrEqualsTo(ImmutablePort.of(8000))).isTrue(); assertThat(ImmutablePort.of(8000).greaterOrEqualsTo(ImmutablePort.of(7999))).isTrue(); assertThat(ImmutablePort.of(8000).greaterOrEqualsTo(ImmutablePort.of(8001))).isFalse(); }