PrimitiveLongSet.contains
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.neo4j.collection.primitive.PrimitiveLongSet.contains(Showing top 15 results out of 315)

origin: neo4j/neo4j

@Override
public boolean containsPropertyId( long id )
{
  return propertyIds.contains( id );
}
origin: neo4j/neo4j

@Test
public void copyPrimitiveSet()
{
  PrimitiveLongSet longSet = PrimitiveLongCollections.setOf( 1L, 3L, 5L );
  PrimitiveLongSet copySet = PrimitiveLongCollections.asSet( longSet );
  assertNotSame( copySet, longSet );
  assertTrue( copySet.contains( 1L ) );
  assertTrue( copySet.contains( 3L ) );
  assertTrue( copySet.contains( 5L ) );
  assertEquals( 3, copySet.size() );
}
origin: neo4j/neo4j

@Test
public void convertJavaCollectionToSetOfPrimitives()
{
  List<Long> longs = asList( 1L, 4L, 7L );
  PrimitiveLongSet longSet = PrimitiveLongCollections.asSet( longs );
  assertTrue( longSet.contains( 1L ) );
  assertTrue( longSet.contains( 4L ) );
  assertTrue( longSet.contains( 7L ) );
  assertEquals( 3, longSet.size() );
}
origin: neo4j/neo4j

@Test
public void shouldHandleEmptySet() throws Exception
{
  // GIVEN
  PrimitiveLongSet set = Primitive.longSet( 0 );
  // THEN
  assertFalse( set.contains( 564 ) );
}
origin: neo4j/neo4j

private void assertFoundNodesAndValue( NodeValueIndexCursor node, PrimitiveLongSet uniqueIds,
    IndexValueCapability expectValue,
    long... expected )
{
  assertFoundNodesAndValue( node, expected.length, uniqueIds, expectValue );
  for ( long expectedNode : expected )
  {
    assertTrue( "expected node " + expectedNode, uniqueIds.contains( expectedNode ) );
  }
}
origin: neo4j/neo4j

private void verifyResult( PrimitiveLongSet results )
{
  assertEquals(3, results.size());
  assertTrue( results.contains( 1 ) );
  assertTrue( results.contains( 2 ) );
  assertTrue( results.contains( 3 ) );
}
origin: neo4j/neo4j

@Override
public boolean containsRelationshipGroupId( long id )
{
  return relationshipGroupIds.contains( id );
}
origin: neo4j/neo4j

  @Override
  public boolean containsSchemaIndexId( long id )
  {
    return schemaIndexesIds.contains( id );
  }
}
origin: neo4j/neo4j

  private boolean wasRemoved( long id )
  {
    return (removedFromAdded != null && removedFromAdded.contains( id )) || super.isRemoved( id );
  }
}
origin: neo4j/neo4j

  private boolean wasRemoved( long id )
  {
    return (removedFromAdded != null && removedFromAdded.contains( id )) || super.isRemoved( id );
  }
}
origin: neo4j/neo4j

@Override
public boolean isAdded( long element )
{
  return addedElements.contains( element );
}
origin: neo4j/neo4j

@Override
public boolean containsNodeId( long id )
{
  return nodeIds.contains( id );
}
origin: neo4j/neo4j

@Override
public boolean containsRelationshipId( long id )
{
  return relationshipIds.contains( id );
}
origin: neo4j/neo4j

@Override
public boolean isRemoved( long element )
{
  return removedElements.contains( element );
}
origin: neo4j/neo4j

private boolean isRemoved( long reference )
{
  return removed.contains( reference );
}
org.neo4j.collection.primitivePrimitiveLongSetcontains

Popular methods of PrimitiveLongSet

  • add
  • size
  • iterator
  • remove
  • isEmpty
  • addAll
  • clear
  • visitKeys

Popular classes and methods

  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
    Compares this BigDecimal with val. Returns one of the three values 1, 0, or -1. The method behaves a
  • Component (java.awt)
  • Kernel (java.awt.image)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)