List of usage examples for java.util Set hashCode
int hashCode();
From source file:org.onosproject.p4runtime.ctl.P4RuntimeClientImpl.java
@Override public CompletableFuture<Collection<PiMeterCellConfig>> readMeterCells(Set<PiMeterCellId> cellIds, PiPipeconf pipeconf) {/*from w w w . ja v a 2 s . c o m*/ return supplyInContext(() -> doReadMeterCells(cellIds, pipeconf), "readMeterCells-" + cellIds.hashCode()); }
From source file:org.onosproject.p4runtime.ctl.P4RuntimeClientImpl.java
@Override public CompletableFuture<Collection<PiMeterCellConfig>> readAllMeterCells(Set<PiMeterId> meterIds, PiPipeconf pipeconf) {/*from w ww . j a v a 2 s . co m*/ return supplyInContext(() -> doReadAllMeterCells(meterIds, pipeconf), "readAllMeterCells-" + meterIds.hashCode()); }
From source file:sernet.verinice.report.service.impl.dynamictable.GraphReportDataModel.java
/** * Loads elements of a given type, //from w w w. java2s.c o m * relation and element using an instance of {@link VeriniceGraph}. * * @param element * @param operator * @param typeId * @return */ private Set<CnATreeElement> getElementsFromGraph(char operator, String typeId) { Set<CnATreeElement> resultSet = new HashSet<CnATreeElement>(0); switch (operator) { case CHILD_TYPE_DELIMITER: resultSet = graph.getChildren(element); break; case PARENT_TYPE_DELIMITER: resultSet.add(graph.getParent(element)); break; case LINK_TYPE_DELIMITER: resultSet = graph.getLinkTargetsByElementType(element, typeId); break; } if (LOG.isDebugEnabled()) { LOG.debug("returning " + resultSet.size() + " from graph, loaded for element " + element.getTitle() + "<" + element.getDbId() + "> and operator <" + operator + "> and typeId <" + typeId + ">"); } if (resultSet.size() == 0) { resultSet.hashCode(); } return resultSet; }
From source file:uniol.apt.util.EquivalenceRelation.java
@Override public int hashCode() { int result = 0; for (Set<E> set : this) result += set.hashCode(); return result; }