@Test void testObjectModificationTimeMessage() { ObjectModificationTimeMessage message = new ObjectModificationTimeMessage(buffer, flags); assertThat(message.getUnixEpocSecond(), is(equalTo(currentTimeEpocSeconds))); assertThat(message.getModifiedTime(), is(equalTo(currentTime))); }
ObjectModificationTimeMessage(ByteBuffer bb, BitSet flags) { super(flags); final byte version = bb.get(); if (version != 1) { throw new HdfException("Unrecognized version " + version); } bb.position(bb.position() + 3); unixEpocSecond = Utils.readBytesAsUnsignedLong(bb, 4); }
ObjectModificationTimeMessage extends Message { ObjectModificationTimeMessage(ByteBuffer bb, BitSet flags) { super(flags); final byte version = bb.get(); if (version != 1) { throw new HdfException("Unrecognized version " + version); } bb.position(bb.position() + 3); unixEpocSecond = Utils.readBytesAsUnsignedLong(bb, 4); } }
ObjectModificationTimeMessage extends Message { ObjectModificationTimeMessage(ByteBuffer bb, BitSet flags) { super(flags); final byte version = bb.get(); if (version != 1) { throw new HdfException("Unrecognized version " + version); } bb.position(bb.position() + 3); unixEpocSecond = Utils.readBytesAsUnsignedLong(bb, 4); } ObjectModificationTimeMessage(ByteBuffer bb, BitSet flags); }
ObjectModificationTimeMessage extends Message { ObjectModificationTimeMessage(ByteBuffer bb, BitSet flags) { super(flags); final byte version = bb.get(); if (version != 1) { throw new HdfException("Unrecognized version " + version); } bb.position(bb.position() + 3); unixEpocSecond = Utils.readBytesAsUnsignedLong(bb, 4); } ObjectModificationTimeMessage(ByteBuffer bb, BitSet flags); LocalDateTime getModifiedTime(); long getUnixEpocSecond(); }
ObjectModificationTimeMessage extends Message { ObjectModificationTimeMessage(ByteBuffer bb, BitSet flags) { super(flags); final byte version = bb.get(); if (version != 1) { throw new HdfException("Unrecognized version " + version); } bb.position(bb.position() + 3); unixEpocSecond = Utils.readBytesAsUnsignedLong(bb, 4); } ObjectModificationTimeMessage(ByteBuffer bb, BitSet flags); LocalDateTime getModifiedTime(); long getUnixEpocSecond();  }