congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Properties.remove
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: gchq/Gaffer

public void remove(final Collection<String> propertiesToRemove) {
  if (null != propertiesToRemove) {
    for (final String property : propertiesToRemove) {
      remove(property);
    }
  }
}
origin: gchq/Gaffer

public Object removeProperty(final String propName) {
  return properties.remove(propName);
}
origin: gchq/Gaffer

@Override
public void remove(final Collection<String> propertiesToRemove) {
  properties.remove(propertiesToRemove);
  loadedProperties.removeAll(propertiesToRemove);
}
origin: gchq/Gaffer

@Override
public Object remove(final Object name) {
  final Object result = properties.remove(name);
  loadedProperties.remove(name.toString());
  return result;
}
origin: gchq/Gaffer

@Test
public void shouldRemoveProperties() {
  // Given
  final String property1 = "property 1";
  final String property2 = "property 2";
  final String property3 = "property 3";
  final String property4 = "property 4";
  final String propertyValue1 = "property value 1";
  final String propertyValue2 = "property value 2";
  final String propertyValue3 = "property value 3";
  final String propertyValue4 = "property value 4";
  final Collection<String> propertiesToRemove = Arrays.asList(property2, property4);
  final Properties properties = new Properties();
  properties.put(property1, propertyValue1);
  properties.put(property2, propertyValue2);
  properties.put(property3, propertyValue3);
  properties.put(property4, propertyValue4);
  // When
  properties.remove(propertiesToRemove);
  // Then
  assertEquals(2, properties.size());
  assertEquals(propertyValue1, properties.get(property1));
  assertEquals(propertyValue3, properties.get(property3));
}
origin: uk.gov.gchq.gaffer/data

public void remove(final Collection<String> propertiesToRemove) {
  if (null != propertiesToRemove) {
    for (final String property : propertiesToRemove) {
      remove(property);
    }
  }
}
origin: uk.gov.gchq.gaffer/data

public Object removeProperty(final String propName) {
  return properties.remove(propName);
}
origin: uk.gov.gchq.gaffer/data

@Override
public void remove(final Collection<String> propertiesToRemove) {
  properties.remove(propertiesToRemove);
  loadedProperties.removeAll(propertiesToRemove);
}
origin: uk.gov.gchq.gaffer/data

@Override
public Object remove(final Object name) {
  final Object result = properties.remove(name);
  loadedProperties.remove(name.toString());
  return result;
}
origin: uk.gov.gchq.gaffer/accumulo-store

if (null == groupBy) {
  if (null != schemaGroupBy) {
    properties.remove(schemaGroupBy);
  properties.remove(groupBy);
uk.gov.gchq.gaffer.data.elementPropertiesremove

Popular methods of Properties

  • get
  • <init>
  • put
  • clone
  • entrySet
  • 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

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • setScale (BigDecimal)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Reference (javax.naming)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now