Tabnine Logo
Properties.clone
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: gchq/Gaffer

@SuppressWarnings("CloneDoesntCallSuperClone")
@SuppressFBWarnings(value = "CN_IDIOM_NO_SUPER_CALL", justification = "Doesn't use any properties in super class")
@Override
public LazyProperties clone() {
  return new LazyProperties(properties.clone(), valueLoader);
}
origin: gchq/Gaffer

public Element shallowClone() {
  final Element element = emptyClone();
  element.setProperties(getProperties().clone());
  return element;
}
origin: gchq/Gaffer

@Test
public void shouldCloneProperties() {
  // Given
  final String property1 = "property 1";
  final String property2 = "property 2";
  final String propertyValue1 = "property value 1";
  final String propertyValue2 = "property value 2";
  final Properties properties = new Properties();
  properties.put(property1, propertyValue1);
  properties.put(property2, propertyValue2);
  // When
  final Properties clone = properties.clone();
  // Then
  assertEquals(2, clone.size());
  assertNotSame(properties, clone);
  assertEquals(propertyValue1, clone.get(property1));
  assertEquals(propertyValue2, clone.get(property2));
}
origin: uk.gov.gchq.gaffer/data

@SuppressWarnings("CloneDoesntCallSuperClone")
@SuppressFBWarnings(value = "CN_IDIOM_NO_SUPER_CALL", justification = "Doesn't use any properties in super class")
@Override
public LazyProperties clone() {
  return new LazyProperties(properties.clone(), valueLoader);
}
origin: uk.gov.gchq.gaffer/data

public Element shallowClone() {
  final Element element = emptyClone();
  element.setProperties(getProperties().clone());
  return element;
}
uk.gov.gchq.gaffer.data.elementPropertiesclone

Popular methods of Properties

  • get
  • <init>
  • put
  • remove
  • 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
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • notifyDataSetChanged (ArrayAdapter)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best plugins for Eclipse
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