@Test public void testGetXconnects() { Set<XConnectStoreKey> xconnects = config.getXconnects(); assertThat(xconnects.size(), is(3)); assertTrue(xconnects.contains(KEY1)); assertTrue(xconnects.contains(KEY2)); assertTrue(xconnects.contains(KEY3)); assertFalse(xconnects.contains(KEY4)); }
public Set<XConnectStoreKey> getXconnects() { ImmutableSet.Builder<XConnectStoreKey> builder = ImmutableSet.builder(); object.fields().forEachRemaining(entry -> { DeviceId deviceId = DeviceId.deviceId(entry.getKey()); builder.addAll(getXconnects(deviceId)); }); return builder.build(); }
XConnectConfig extends Config<ApplicationId> { public Set<XConnectStoreKey> getXconnects() { ImmutableSet.Builder<XConnectStoreKey> builder = ImmutableSet.builder(); object.fields().forEachRemaining(entry -> { DeviceId deviceId = DeviceId.deviceId(entry.getKey()); builder.addAll(getXconnects(deviceId)); }); return builder.build(); } }
XConnectConfig extends Config<ApplicationId> { public Set<XConnectStoreKey> getXconnects() { ImmutableSet.Builder<XConnectStoreKey> builder = ImmutableSet.builder(); object.fields().forEachRemaining(entry -> { DeviceId deviceId = DeviceId.deviceId(entry.getKey()); builder.addAll(getXconnects(deviceId)); }); return builder.build(); }  }
XConnectConfig extends Config<ApplicationId> { public Set<XConnectStoreKey> getXconnects() { ImmutableSet.Builder<XConnectStoreKey> builder = ImmutableSet.builder(); object.fields().forEachRemaining(entry -> { DeviceId deviceId = DeviceId.deviceId(entry.getKey()); builder.addAll(getXconnects(deviceId)); }); return builder.build(); }  @Override boolean isValid(); Set<XConnectStoreKey> getXconnects(); Set<XConnectStoreKey> getXconnects(DeviceId deviceId); Set<PortNumber> getPorts(XConnectStoreKey xconnect); }
XConnectConfig extends Config<ApplicationId> { public Set<XConnectStoreKey> getXconnects() { ImmutableSet.Builder<XConnectStoreKey> builder = ImmutableSet.builder(); object.fields().forEachRemaining(entry -> { DeviceId deviceId = DeviceId.deviceId(entry.getKey()); builder.addAll(getXconnects(deviceId)); }); return builder.build(); }  @Override boolean isValid(); Set<XConnectStoreKey> getXconnects(); Set<XConnectStoreKey> getXconnects(DeviceId deviceId); Set<PortNumber> getPorts(XConnectStoreKey xconnect);  }