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

How to use
keySet
method
in
org.apache.sis.xml.IdentifierMap

Best Java code snippets using org.apache.sis.xml.IdentifierMap.keySet (Showing top 1 results out of 315)

origin: apache/sis

/**
 * Tests the handling of duplicated authorities.
 */
@Test
public void testDuplicatedAuthorities() {
  final List<Identifier> identifiers = new ArrayList<>();
  assertTrue(identifiers.add(new IdentifierMapEntry(ID,   "myID1")));
  assertTrue(identifiers.add(new IdentifierMapEntry(UUID, "myUUID")));
  assertTrue(identifiers.add(new IdentifierMapEntry(ID,   "myID2")));
  final IdentifierMap map = new ModifiableIdentifierMap(identifiers);
  assertEquals("Duplicated authorities shall be filtered.", 2, map.size());
  assertEquals("Duplicated authorities shall still exist.", 3, identifiers.size());
  assertEquals("myID1",  map.get(ID));
  assertEquals("myUUID", map.get(UUID));
  final Iterator<Citation> it = map.keySet().iterator();
  assertTrue(it.hasNext());
  assertSame(ID, it.next());
  it.remove();
  assertTrue(it.hasNext());
  assertSame(UUID, it.next());
  assertFalse("Duplicated authority shall have been removed.", it.hasNext());
  assertEquals(1, identifiers.size());
  assertEquals(1, map.size());
}
org.apache.sis.xmlIdentifierMapkeySet

Popular methods of IdentifierMap

  • putSpecialized
    Associates the given identifier with the given namespace in this map (optional operation). If the ma
  • get
  • getSpecialized
    Returns the identifier associated to the given namespace, or null if this map contains no mapping of
  • put
  • size

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JButton (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Top Vim plugins
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