@Test public void testNullContext() { assertNull(provider.newInstance()); assertNull(provider.branch(null)); assertNull(provider.join(null, null)); assertNotNull(provider.serialize(null)); assertEquals(0, provider.serialize(null).length); assertNotNull(provider.serialize(null, 0)); assertEquals(0, provider.serialize(null, 0).length); assertNull(provider.deserialize(null)); assertNull(provider.deserialize(null, 0, 0)); assertTrue(provider.isValid(null)); BaggageContext invalidContext = new BaggageContext() {}; assertFalse(provider.isValid(invalidContext)); }
public AtomContext branch() { return new AtomContext(atoms); }
AtomContext implements BaggageContext { public AtomContext branch() { return new AtomContext(atoms); } }
AtomContext implements BaggageContext { public AtomContext branch() { return new AtomContext(atoms); } AtomContext();   AtomContext(List<ByteBuffer> atoms);   AtomContext(RefCount<List<ByteBuffer>> atoms); }
AtomContext implements BaggageContext { public AtomContext branch() { return new AtomContext(atoms); } AtomContext();   AtomContext(List<ByteBuffer> atoms);   AtomContext(RefCount<List<ByteBuffer>> atoms); AtomContext branch(); AtomContext merge(AtomContext other); int serializedSize(); List<ByteBuffer> getUnmodifiableAtoms(); List<ByteBuffer> getModifiableAtoms(); }
AtomContext implements BaggageContext { public AtomContext branch() { return new AtomContext(atoms); } AtomContext();   AtomContext(List<ByteBuffer> atoms);   AtomContext(RefCount<List<ByteBuffer>> atoms); AtomContext branch(); AtomContext merge(AtomContext other); int serializedSize(); List<ByteBuffer> getUnmodifiableAtoms(); List<ByteBuffer> getModifiableAtoms();  }