Tabnine Logo
ImmutableSet.of
Code IndexAdd Tabnine to your IDE (free)

How to use
of
method
in
org.apache.jena.ext.com.google.common.collect.ImmutableSet

Best Java code snippets using org.apache.jena.ext.com.google.common.collect.ImmutableSet.of (Showing top 12 results out of 315)

origin: apache/jena

@Override
default Set<Characteristics> characteristics() {
  return ImmutableSet.of(IDENTITY_FINISH);
}
origin: apache/jena

@Override
default Set<Characteristics> characteristics() {
  return ImmutableSet.of(CONCURRENT, UNORDERED, IDENTITY_FINISH);
}
origin: apache/jena

  @Override
  default Set<Characteristics> characteristics() {
    return ImmutableSet.of(UNORDERED, IDENTITY_FINISH);
  }
}
origin: org.apache.jena/jena-base

@Override
default Set<Characteristics> characteristics() {
  return ImmutableSet.of(CONCURRENT, UNORDERED, IDENTITY_FINISH);
}
origin: org.apache.jena/jena-base

  @Override
  default Set<Characteristics> characteristics() {
    return ImmutableSet.of(UNORDERED, IDENTITY_FINISH);
  }
}
origin: org.apache.jena/jena-base

@Override
default Set<Characteristics> characteristics() {
  return ImmutableSet.of(IDENTITY_FINISH);
}
origin: org.aksw.rdfunit/rdfunit-model

@Override
public Set<Resource> getRelatedOntologyResources() {
  if (node.isURIResource() && !targetType.equals(ShapeTargetType.NodeTarget)) {
    return ImmutableSet.of(node.asResource());
  } else {
    return ImmutableSet.of();
  }
}
origin: AKSW/RDFUnit

@Override
public Set<Resource> getRelatedOntologyResources() {
  if (node.isURIResource() && !targetType.equals(ShapeTargetType.NodeTarget)) {
    return ImmutableSet.of(node.asResource());
  } else {
    return ImmutableSet.of();
  }
}
origin: apache/jena

@Test
public void testCharacteristics() {
  Set<Characteristics> characteristics = ImmutableSet.of(UNORDERED, IDENTITY_FINISH);
  assertEquals(characteristics, new UnionModelCollector().characteristics());
  assertEquals(characteristics, new IntersectionModelCollector().characteristics());
  characteristics = ImmutableSet.of(CONCURRENT, UNORDERED, IDENTITY_FINISH);
  assertEquals(characteristics, new ConcurrentModelCollector(null).characteristics());
}
origin: org.apache.jena/jena-core

@Test
public void testCharacteristics() {
  Set<Characteristics> characteristics = ImmutableSet.of(UNORDERED, IDENTITY_FINISH);
  assertEquals(characteristics, new UnionModelCollector().characteristics());
  assertEquals(characteristics, new IntersectionModelCollector().characteristics());
  characteristics = ImmutableSet.of(CONCURRENT, UNORDERED, IDENTITY_FINISH);
  assertEquals(characteristics, new ConcurrentModelCollector(null).characteristics());
}
origin: apache/jena

@Test
public void checkConcreteQueries() {
  queryPatterns().filter(p -> !allWildcardQuery.equals(p)).map(TestHexTable::exampleFrom).forEach(testQuery -> {
    final HexTable index = new HexTable();
    index.begin(null);
    // add our sample quad
    index.add(testTuple());
    // add a noise quad from which our sample should be distinguished
    final Node node = createBlankNode();
    final Quad noiseQuad = Quad.create(node, node, node, node);
    index.add(noiseQuad);
    index.commit();
    index.begin(null);
    Set<Quad> contents = index
        .find(testQuery.getGraph(), testQuery.getSubject(), testQuery.getPredicate(), testQuery.getObject())
        .collect(toSet());
    assertEquals(of(testTuple()), contents);
    // both Node.ANY and null should work as wildcards
    contents = index.find(null, ANY, null, ANY).collect(toSet());
    assertEquals(of(testTuple(), noiseQuad), contents);
    index.end();
  });
}
origin: apache/jena

assertEquals(ImmutableSet.of(testTuple()), contents);
table().delete(testTuple());
assertEquals(ImmutableSet.of(testTuple()), contents);
table().abort();
assertEquals(1, rawCount()) ;
contents = tuples().collect(toSet());
assertEquals(ImmutableSet.of(testTuple()), contents);
table().commit();
org.apache.jena.ext.com.google.common.collectImmutableSetof

Popular methods of ImmutableSet

    Popular in Java

    • Finding current android device location
    • getExternalFilesDir (Context)
    • getResourceAsStream (ClassLoader)
    • runOnUiThread (Activity)
    • ObjectMapper (com.fasterxml.jackson.databind)
      ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
    • SecureRandom (java.security)
      This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
    • DecimalFormat (java.text)
      A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
    • Vector (java.util)
      Vector is an implementation of List, backed by an array and synchronized. All optional operations in
    • ReentrantLock (java.util.concurrent.locks)
      A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
    • JOptionPane (javax.swing)
    • Top plugins for Android Studio
    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