@Test public void testCompareTo() { JmsSessionId id1 = new JmsSessionId(firstId, 1); JmsSessionId id2 = new JmsSessionId(secondId, 2); assertEquals(-1, id1.compareTo(id2)); assertEquals(0, id1.compareTo(id1)); assertEquals(1, id2.compareTo(id1)); }
@Override public int compareTo(JmsSessionId other) { return toString().compareTo(other.toString()); }
JmsSessionId extends JmsAbstractResourceId implements Comparable<JmsSessionId> { @Override public int compareTo(JmsSessionId other) { return toString().compareTo(other.toString()); } }
JmsSessionId extends JmsAbstractResourceId implements Comparable<JmsSessionId> { @Override public int compareTo(JmsSessionId other) { return toString().compareTo(other.toString()); } JmsSessionId(String connectionId, long value);  JmsSessionId(JmsConnectionId connectionId, long sessionId);  JmsSessionId(JmsSessionId id);  JmsSessionId(JmsProducerId id);  JmsSessionId(JmsConsumerId id); }
JmsSessionId extends JmsAbstractResourceId implements Comparable<JmsSessionId> { @Override public int compareTo(JmsSessionId other) { return toString().compareTo(other.toString()); } JmsSessionId(String connectionId, long value);  JmsSessionId(JmsConnectionId connectionId, long sessionId);  JmsSessionId(JmsSessionId id);  JmsSessionId(JmsProducerId id);  JmsSessionId(JmsConsumerId id); JmsConnectionId getParentId(); @Override int hashCode(); @Override boolean equals(Object o); String getConnectionId(); long getValue(); @Override String toString(); @Override int compareTo(JmsSessionId other); }
JmsSessionId extends JmsAbstractResourceId implements Comparable<JmsSessionId> { @Override public int compareTo(JmsSessionId other) { return toString().compareTo(other.toString()); } JmsSessionId(String connectionId, long value);  JmsSessionId(JmsConnectionId connectionId, long sessionId);  JmsSessionId(JmsSessionId id);  JmsSessionId(JmsProducerId id);  JmsSessionId(JmsConsumerId id); JmsConnectionId getParentId(); @Override int hashCode(); @Override boolean equals(Object o); String getConnectionId(); long getValue(); @Override String toString(); @Override int compareTo(JmsSessionId other);  }