Tabnine Logo
IndirectMap.remove
Code IndexAdd Tabnine to your IDE (free)

How to use
remove
method
in
org.eclipse.persistence.indirection.IndirectMap

Best Java code snippets using org.eclipse.persistence.indirection.IndirectMap.remove (Showing top 7 results out of 315)

origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public boolean remove(Object o){
  return (IndirectMap.this.remove(o) != null);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public boolean remove(Object o){
  if (!(o instanceof Map.Entry)) {
    return false;
  }
  return (IndirectMap.this.remove(((Map.Entry)o).getKey()) != null);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public boolean removeAll(Collection c){
  boolean result = false;
  for (Iterator cs = c.iterator(); cs.hasNext(); ){
    if (IndirectMap.this.remove(cs.next()) != null ) {
      result = true;
    }
  }
  return result;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public boolean removeAll(Collection c){
  boolean result = false;
  for (Iterator cs = c.iterator(); cs.hasNext(); ){
    Object object = cs.next();
    if ( ! (object instanceof Map.Entry)){
      continue;
    }
    Object removed = IndirectMap.this.remove(((Map.Entry)object).getKey());
    if (removed != null){
      result = true;
    }
  }
  return result;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

@Override
public synchronized V merge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction) {
  // Must trigger add events if tracked or uow.
  if (hasTrackedPropertyChangeListener()) {
    V oldValue = get(key);
    V newValue = (oldValue == null) ? value : remappingFunction.apply(oldValue, value);
    if (newValue == null) {
      remove(key);
    } else {
      put(key, newValue);
    }
    return newValue;
  }
  return getDelegate().merge(key, value, remappingFunction);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

@Override
public synchronized V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction) {
  // Must trigger add events if tracked or uow.
  if (hasTrackedPropertyChangeListener()) {
    if (get(key) != null) {
      V oldValue = get(key);
      V newValue = remappingFunction.apply(key, oldValue);
      if (newValue != null) {
        put(key, newValue);
        return newValue;
      }
      remove(key);
    }
    return null;
  }
  return getDelegate().computeIfPresent(key, remappingFunction);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

@Override
public synchronized V compute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction) {
  // Must trigger add events if tracked or uow.
  if (hasTrackedPropertyChangeListener()) {
    V oldValue = get(key);
    V newValue = remappingFunction.apply(key, oldValue);
    if (oldValue != null ) {
      if (newValue != null) {
       put(key, newValue);
       return newValue;
      }
      remove(key);
    } else {
      if (newValue != null) {
       put(key, newValue);
       return newValue;
      }
    }
    return null;
  }
  return getDelegate().compute(key, remappingFunction);
}
org.eclipse.persistence.indirectionIndirectMapremove

Popular methods of IndirectMap

  • _persistence_getPropertyChangeListener
    Return the property change listener for change tracking.
  • buildDelegate
    Return the freshly-built delegate.
  • clear
  • get
  • getDelegate
    INTERNAL: Check whether the contents have been read from the database. If they have not, read them a
  • getTrackedAttributeName
    INTERNAL: Return the mapping attribute name, used to raise change events.
  • getValueHolder
    PUBLIC: Return the valueHolder. This method used to be synchronized, which caused deadlock.
  • hasTrackedPropertyChangeListener
    INTERNAL: Return if the collection has a property change listener for change tracking.
  • initialize
    Initialize the instance.
  • isInstantiated
    PUBLIC: Return whether the contents have been read from the database.
  • keySet
  • put
  • keySet,
  • put,
  • raiseAddChangeEvent,
  • raiseRemoveChangeEvent,
  • <init>,
  • entrySet

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • Permission (java.security)
    Legacy security code; do not use.
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • JButton (javax.swing)
  • JCheckBox (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • 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