@Test public void testHasChunkByGUID() { final ChunkContainer container = createChunk(0, BigInteger.ZERO); final ChunkContainer container2 = createFilledChunk(); for (GUID curr : GUID.KNOWN_GUIDS) { Assert.assertFalse(container.hasChunkByGUID(curr)); Assert.assertTrue(container2.hasChunkByGUID(curr)); } }
public boolean hasChunkByGUID(final GUID lookFor) { return this.chunkTable.containsKey(lookFor); }
ChunkContainer extends Chunk { public boolean hasChunkByGUID(final GUID lookFor) { return this.chunkTable.containsKey(lookFor); } }
ChunkContainer extends Chunk { public boolean hasChunkByGUID(final GUID lookFor) { return this.chunkTable.containsKey(lookFor); } ChunkContainer(final GUID chunkGUID, final long pos, final BigInteger length); }
ChunkContainer extends Chunk { public boolean hasChunkByGUID(final GUID lookFor) { return this.chunkTable.containsKey(lookFor); } ChunkContainer(final GUID chunkGUID, final long pos, final BigInteger length); void addChunk(final Chunk toAdd); Collection<Chunk> getChunks(); boolean hasChunkByGUID(final GUID lookFor); @Override String prettyPrint(final String prefix); String prettyPrint(final String prefix, final String containerInfo); }
ChunkContainer extends Chunk { public boolean hasChunkByGUID(final GUID lookFor) { return this.chunkTable.containsKey(lookFor); } ChunkContainer(final GUID chunkGUID, final long pos, final BigInteger length); void addChunk(final Chunk toAdd); Collection<Chunk> getChunks(); boolean hasChunkByGUID(final GUID lookFor); @Override String prettyPrint(final String prefix); String prettyPrint(final String prefix, final String containerInfo);  }