congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
UndirectedMultiNetworkConnections.getReference
Code IndexAdd Tabnine to your IDE (free)

How to use
getReference
method
in
com.google.common.graph.UndirectedMultiNetworkConnections

Best Java code snippets using com.google.common.graph.UndirectedMultiNetworkConnections.getReference (Showing top 15 results out of 315)

origin: google/guava

private Multiset<N> adjacentNodesMultiset() {
 Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
 if (adjacentNodes == null) {
  adjacentNodes = HashMultiset.create(incidentEdgeMap.values());
  adjacentNodesReference = new SoftReference<>(adjacentNodes);
 }
 return adjacentNodes;
}
origin: google/guava

@Override
public void addOutEdge(E edge, N node) {
 super.addOutEdge(edge, node);
 Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
 if (adjacentNodes != null) {
  checkState(adjacentNodes.add(node));
 }
}
origin: google/j2objc

private Multiset<N> adjacentNodesMultiset() {
 Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
 if (adjacentNodes == null) {
  adjacentNodes = HashMultiset.create(incidentEdgeMap.values());
  adjacentNodesReference = new SoftReference<>(adjacentNodes);
 }
 return adjacentNodes;
}
origin: google/guava

@Override
public N removeOutEdge(E edge) {
 N node = super.removeOutEdge(edge);
 Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
 if (adjacentNodes != null) {
  checkState(adjacentNodes.remove(node));
 }
 return node;
}
origin: wildfly/wildfly

private Multiset<N> adjacentNodesMultiset() {
 Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
 if (adjacentNodes == null) {
  adjacentNodes = HashMultiset.create(incidentEdgeMap.values());
  adjacentNodesReference = new SoftReference<>(adjacentNodes);
 }
 return adjacentNodes;
}
origin: google/j2objc

@Override
public void addOutEdge(E edge, N node) {
 super.addOutEdge(edge, node);
 Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
 if (adjacentNodes != null) {
  checkState(adjacentNodes.add(node));
 }
}
origin: wildfly/wildfly

@Override
public void addOutEdge(E edge, N node) {
 super.addOutEdge(edge, node);
 Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
 if (adjacentNodes != null) {
  checkState(adjacentNodes.add(node));
 }
}
origin: google/j2objc

@Override
public N removeOutEdge(E edge) {
 N node = super.removeOutEdge(edge);
 Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
 if (adjacentNodes != null) {
  checkState(adjacentNodes.remove(node));
 }
 return node;
}
origin: wildfly/wildfly

@Override
public N removeOutEdge(E edge) {
 N node = super.removeOutEdge(edge);
 Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
 if (adjacentNodes != null) {
  checkState(adjacentNodes.remove(node));
 }
 return node;
}
origin: org.jboss.eap/wildfly-client-all

private Multiset<N> adjacentNodesMultiset() {
 Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
 if (adjacentNodes == null) {
  adjacentNodes = HashMultiset.create(incidentEdgeMap.values());
  adjacentNodesReference = new SoftReference<>(adjacentNodes);
 }
 return adjacentNodes;
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

private Multiset<N> adjacentNodesMultiset() {
 Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
 if (adjacentNodes == null) {
  adjacentNodes = HashMultiset.create(incidentEdgeMap.values());
  adjacentNodesReference = new SoftReference<>(adjacentNodes);
 }
 return adjacentNodes;
}
origin: org.jboss.eap/wildfly-client-all

@Override
public void addOutEdge(E edge, N node) {
 super.addOutEdge(edge, node);
 Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
 if (adjacentNodes != null) {
  checkState(adjacentNodes.add(node));
 }
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
public void addOutEdge(E edge, N node) {
 super.addOutEdge(edge, node);
 Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
 if (adjacentNodes != null) {
  checkState(adjacentNodes.add(node));
 }
}
origin: org.jboss.eap/wildfly-client-all

@Override
public N removeOutEdge(E edge) {
 N node = super.removeOutEdge(edge);
 Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
 if (adjacentNodes != null) {
  checkState(adjacentNodes.remove(node));
 }
 return node;
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
public N removeOutEdge(E edge) {
 N node = super.removeOutEdge(edge);
 Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
 if (adjacentNodes != null) {
  checkState(adjacentNodes.remove(node));
 }
 return node;
}
com.google.common.graphUndirectedMultiNetworkConnectionsgetReference

Popular methods of UndirectedMultiNetworkConnections

  • <init>
  • addOutEdge
  • adjacentNodesMultiset
  • of
  • ofImmutable
  • removeOutEdge

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • ImageIO (javax.imageio)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now