- Common ways to obtain MemoryInformationData
private void myMethod () {}
/** * {@inheritDoc} */ @Override public MemoryInformationData getClone(MemoryInformationData memoryInformationData) { MemoryInformationData clone = new MemoryInformationData(); clone.setPlatformIdent(memoryInformationData.getPlatformIdent()); clone.setSensorTypeIdent(memoryInformationData.getSensorTypeIdent()); return clone; }
assertThat(memoryInformationData.getSensorTypeIdent(), is(2L)); assertThat(memoryInformationData.getCount(), is(3));
assertThat(memoryInformationData.getSensorTypeIdent(), is(2L)); assertThat(memoryInformationData.getCount(), is(0));
newMemoryInformationData.setSensorTypeIdent(this.memoryInformationData.getSensorTypeIdent()); newMemoryInformationData.setCount(this.memoryInformationData.getCount());