@Test public void equality () { val pid1 = ErlangPid.builder() .type(PID) .node("node1") .id(28) .serial(97) .creation(3) .build(); pid1.getDescriptor(); val pid2 = ErlangPid.builder() .type(NEW_PID) .node("node1") .id(28) .serial(97) .creation(3) .build(); val pid3 = ErlangPid.builder() .type(NEW_PID) .node("node1") .id(28) .serial(96) .creation(3) .build(); val pid4 = ErlangPid.builder() .type(NEW_PID) .node("node2") .id(28) .serial(96) .creation(3) .build(); assertThat(pid1).isEqualTo(pid2); assertThat(pid2).isNotEqualTo(pid3); assertThat(pid3).isNotEqualTo(pid4); }
public final NodeDescriptor getDescriptor () { if (descriptor == null) { descriptor = NodeDescriptor.from(node.asText()); } return descriptor; }
ErlangPid extends ErlangTerm { public final NodeDescriptor getDescriptor () { if (descriptor == null) { descriptor = NodeDescriptor.from(node.asText()); } return descriptor; } }
ErlangPid extends ErlangTerm { public final NodeDescriptor getDescriptor () { if (descriptor == null) { descriptor = NodeDescriptor.from(node.asText()); } return descriptor; } ErlangPid(TermType type, @NonNull ByteBuf buffer); @Builder private  ErlangPid(TermType type, @NonNull String node, int id, int serial, int creation); }
ErlangPid extends ErlangTerm { public final NodeDescriptor getDescriptor () { if (descriptor == null) { descriptor = NodeDescriptor.from(node.asText()); } return descriptor; } ErlangPid(TermType type, @NonNull ByteBuf buffer); @Builder private  ErlangPid(TermType type, @NonNull String node, int id, int serial, int creation); @Override String asText(String defaultValue); @Override ErlangPid asPid(); @Override String toString(); final NodeDescriptor getDescriptor(); }
ErlangPid extends ErlangTerm { public final NodeDescriptor getDescriptor () { if (descriptor == null) { descriptor = NodeDescriptor.from(node.asText()); } return descriptor; } ErlangPid(TermType type, @NonNull ByteBuf buffer); @Builder private  ErlangPid(TermType type, @NonNull String node, int id, int serial, int creation); @Override String asText(String defaultValue); @Override ErlangPid asPid(); @Override String toString(); final NodeDescriptor getDescriptor();  }