Codota Logo
Properties.entrySet
Code IndexAdd Codota to your IDE (free)

How to use
entrySet
method
in
uk.gov.gchq.gaffer.data.element.Properties

Best Java code snippets using uk.gov.gchq.gaffer.data.element.Properties.entrySet (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: gchq/Gaffer

@Override
public Set<Map.Entry<String, Object>> entrySet() {
  return properties.entrySet();
}
origin: gchq/Gaffer

/**
 * Removes all properties with names that are not in the provided set.
 *
 * @param propertiesToKeep a set of properties to keep
 */
public void keepOnly(final Collection<String> propertiesToKeep) {
  entrySet().removeIf(entry -> !propertiesToKeep.contains(entry.getKey()));
}
origin: gchq/Gaffer

public void copyProperties(final Properties properties) {
  if (null != properties) {
    for (final Entry<String, Object> entry : properties.entrySet()) {
      putProperty(entry.getKey(), entry.getValue());
    }
  }
}
origin: gchq/Gaffer

  @Test
  public void shouldDelegateEntrySetMethodToPropertiesInstance() {
    // Given
    final Properties properties = mock(Properties.class);
    final LazyProperties lazyProperties =
        new LazyProperties(properties, null);
    final Set<Map.Entry<String, Object>> expectedEntrySet = mock(Set.class);
    given(properties.entrySet()).willReturn(expectedEntrySet);

    // When
    final Set<Map.Entry<String, Object>> entrySet = lazyProperties.entrySet();

    // Then
    assertSame(expectedEntrySet, entrySet);
  }
}
origin: uk.gov.gchq.gaffer/data

@Override
public Set<Map.Entry<String, Object>> entrySet() {
  return properties.entrySet();
}
origin: uk.gov.gchq.gaffer/data

/**
 * Removes all properties with names that are not in the provided set.
 *
 * @param propertiesToKeep a set of properties to keep
 */
public void keepOnly(final Collection<String> propertiesToKeep) {
  entrySet().removeIf(entry -> !propertiesToKeep.contains(entry.getKey()));
}
origin: uk.gov.gchq.gaffer/data

public void copyProperties(final Properties properties) {
  if (null != properties) {
    for (final Entry<String, Object> entry : properties.entrySet()) {
      putProperty(entry.getKey(), entry.getValue());
    }
  }
}
uk.gov.gchq.gaffer.data.elementPropertiesentrySet

Popular methods of Properties

  • get
  • <init>
  • put
  • remove
  • clone
  • isEmpty
  • keepOnly
    Removes all properties with names that are not in the provided set.
  • keySet
  • putAll
  • size
  • clear
  • containsKey
  • clear,
  • containsKey,
  • containsValue,
  • equals,
  • hashCode,
  • toString,
  • values

Popular in Java

  • Updating database using SQL prepared statement
  • getContentResolver (Context)
  • putExtra (Intent)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Table (org.hibernate.mapping)
    A relational table
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now