@Test public void testLspEntryAsBytes() throws Exception { channelBuffer = ChannelBuffers.copiedBuffer(entry); lspEntry.readFrom(channelBuffer); result3 = lspEntry.lspEntryAsBytes(); assertThat(lspEntry, is(notNullValue())); }
public byte[] lspEntryAsBytes() { List<Byte> bytes = new ArrayList<>(); bytes.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.remainingTime()))); bytes.addAll(IsisUtil.sourceAndLanIdToBytes(this.lspId())); bytes.addAll(Bytes.asList(IsisUtil.convertToFourBytes(this.lspSequenceNumber()))); bytes.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.lspChecksum()))); return Bytes.toArray(bytes); }
LspEntry { public byte[] lspEntryAsBytes() { List<Byte> bytes = new ArrayList<>(); bytes.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.remainingTime()))); bytes.addAll(IsisUtil.sourceAndLanIdToBytes(this.lspId())); bytes.addAll(Bytes.asList(IsisUtil.convertToFourBytes(this.lspSequenceNumber()))); bytes.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.lspChecksum()))); return Bytes.toArray(bytes); } }
LspEntry { public byte[] lspEntryAsBytes() { List<Byte> bytes = new ArrayList<>(); bytes.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.remainingTime()))); bytes.addAll(IsisUtil.sourceAndLanIdToBytes(this.lspId())); bytes.addAll(Bytes.asList(IsisUtil.convertToFourBytes(this.lspSequenceNumber()))); bytes.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.lspChecksum()))); return Bytes.toArray(bytes); }  }
LspEntry { public byte[] lspEntryAsBytes() { List<Byte> bytes = new ArrayList<>(); bytes.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.remainingTime()))); bytes.addAll(IsisUtil.sourceAndLanIdToBytes(this.lspId())); bytes.addAll(Bytes.asList(IsisUtil.convertToFourBytes(this.lspSequenceNumber()))); bytes.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.lspChecksum()))); return Bytes.toArray(bytes); }  int lspSequenceNumber(); void setLspSequenceNumber(int lspSequenceNumber); int lspChecksum(); void setLspChecksum(int lspChecksum); int remainingTime(); void setRemainingTime(int remainingTime); String lspId(); void setLspId(String lspId); void readFrom(ChannelBuffer channelBuffer); byte[] lspEntryAsBytes(); @Override String toString(); }
LspEntry { public byte[] lspEntryAsBytes() { List<Byte> bytes = new ArrayList<>(); bytes.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.remainingTime()))); bytes.addAll(IsisUtil.sourceAndLanIdToBytes(this.lspId())); bytes.addAll(Bytes.asList(IsisUtil.convertToFourBytes(this.lspSequenceNumber()))); bytes.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.lspChecksum()))); return Bytes.toArray(bytes); }  int lspSequenceNumber(); void setLspSequenceNumber(int lspSequenceNumber); int lspChecksum(); void setLspChecksum(int lspChecksum); int remainingTime(); void setRemainingTime(int remainingTime); String lspId(); void setLspId(String lspId); void readFrom(ChannelBuffer channelBuffer); byte[] lspEntryAsBytes(); @Override String toString();  }