Guava ImmutableTable - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Guava ImmutableTable class.

This code example shows how to use the following methods:row
		 */ 
	} 
 
	public Class<? extends Chunk> getChunkClass(final Integer contentCode)
	{ 
		return calculatedMap.row(contentCode).values().iterator().next();
		//return map.get(contentCode); 
	} 
 
	public Chunk newChunk(final int contentCode) throws ProtocolViolationException
	{ 
		final Class<? extends Chunk> clazz = getChunkClass(new Integer(contentCode));
		try 
		{ 
			return clazz.newInstance();
		} 
		catch(final Exception err)
		{ 
			throw new ProtocolViolationException("Content code: " + DmapUtil.toContentCodeString(contentCode) + " not found. Hash is 0x" + Integer.toHexString(new Integer(contentCode)), err);
		} 
3
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:get
      equivalentExpectations = equivalentExpectationsBuilder.build(); 
      hashExpectations = hashExpectationsBuilder.build(); 
    } 
 
    @Override protected boolean doEquivalent(Object a, Object b) { 
      return equivalentExpectations.get(a, b); 
    } 
 
    @Override protected int doHash(Object object) { 
      return hashExpectations.get(object); 
    } 
 
    void checkRecording() { 
      checkState(equivalentExpectations == null && hashExpectations == null);
    } 
  } 
} 
3
CodeRank
Experience pair programming with AI  Get Codota for Java
See Code Examples for Guava ImmutableTable Methods: