@Test public void findKeysWithValue() { assertTrue(ImmutableSet.of(VALUE1, VALUE2, VALUE3).contains(metadata.find(KEY1, KEY2).get())); }
public Optional<String> find(String key) { Preconditions.checkNotNull(key); return findStream(key).findFirst(); }
JCasMetadata { public Optional<String> find(String key) { Preconditions.checkNotNull(key); return findStream(key).findFirst(); } }
JCasMetadata { public Optional<String> find(String key) { Preconditions.checkNotNull(key); return findStream(key).findFirst(); } JCasMetadata(JCas jCas); }
JCasMetadata { public Optional<String> find(String key) { Preconditions.checkNotNull(key); return findStream(key).findFirst(); } JCasMetadata(JCas jCas); Optional<String> find(String key); Optional<Metadata> findMetadata(String key); Optional<String> find(String key, String... more); Set<String> findAll(String key); Set<String> keys(); }
JCasMetadata { public Optional<String> find(String key) { Preconditions.checkNotNull(key); return findStream(key).findFirst(); } JCasMetadata(JCas jCas); Optional<String> find(String key); Optional<Metadata> findMetadata(String key); Optional<String> find(String key, String... more); Set<String> findAll(String key); Set<String> keys();  }