Codota Logo
com.ochafik.util.listenable
Code IndexAdd Codota to your IDE (free)

How to use com.ochafik.util.listenable

Best Java code snippets using com.ochafik.util.listenable (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: com.nativelibs4java/ochafik-util

@Override
public ListenableCollection<V> values() {
  return ListenableCollections.unmodifiableCollection(listenableMap.values());
}
@Override
origin: com.nativelibs4java/ochafik-util

@Override
public ListenableSet<Entry<K, V>> entrySet() {
  synchronized (mutex) {
    return new SynchronizedListenableSet<Entry<K,V>>(super.entrySet(), mutex);
  }
}
@Override
origin: com.nativelibs4java/ochafik-util

public Object getSelectedItem() {
  if (selectedItem != null && !getList().contains(selectedItem))
    selectedItem = null;
  return selectedItem;
}
@SuppressWarnings("unchecked")
origin: com.nativelibs4java/ochafik-util

void propagateRemoved(Collection<Map.Entry<K, V>> entries) {
  if (keySet != null)
    keySet.collectionSupport.fireRemoved(keySet, new AdaptedCollection<Map.Entry<K,V>, K>(entries, entryToKeyAdapter));
  
  if (entrySet != null) {
    entrySet.collectionSupport.fireRemoved(entrySet, entries);
  }
    
  if (values != null) {
    valuesSupport.fireRemoved(values, new AdaptedCollection<Map.Entry<K,V>, V>(entries, entryToValueAdapter));
  }
}

origin: com.nativelibs4java/ochafik-util

public ListenableCollection<V> values() {
  if (values == null) {
    valuesSupport = new ListenableSupport<V>();
    values = ListenableCollections.unmodifiableCollection(new DefaultListenableCollection<V>(map.values(), valuesSupport));
   }
      return values;
}

origin: com.nativelibs4java/ochafik-util

@Override
public ListenableSet<K> listenableKeySet() {
  return new UnmodifiableListenableSet<K>(listenableMap.keySet());
}
@Override
origin: com.nativelibs4java/ochafik-util

@Override
public ListenableCollection<V> values() {
  synchronized (mutex) {
    return new SynchronizedListenableCollection<V>(super.values());
  }
}
origin: com.nativelibs4java/ochafik-util

@Override
public ListenableSet<Entry<K, V>> entrySet() {
  return ListenableCollections.unmodifiableSet(listenableMap.entrySet());
}
@Override
origin: com.nativelibs4java/ochafik-util

@Override
public ListenableSet<K> keySet() {
  synchronized (mutex) {
    return new SynchronizedListenableSet<K>(super.keySet());
  }
}
@Override
origin: com.nativelibs4java/ochafik-util

  public void removeCollectionListener(CollectionListener<V> l) {
    if (collectionSupport == null)
      return;
    
    collectionSupport.removeCollectionListener(l);
  }
}
origin: com.nativelibs4java/ochafik-util

public boolean remove(Object o) {
  int i = indexOf(o);
  return i >= 0 && remove(i) != null;
}
public void clear() {
origin: com.nativelibs4java/ochafik-util

@Override
public V remove(Object key) {
  synchronized (mutex) {
    return super.remove(key);
  }
}
@Override
origin: com.nativelibs4java/ochafik-util

@Override
public boolean isEmpty() {
  synchronized (mutex) {
    return super.isEmpty();
  }
}
origin: com.nativelibs4java/ochafik-util

@Override
public void clear() {
  synchronized (mutex) {
    super.clear();
  }
}
@Override
origin: com.nativelibs4java/ochafik-util

@Override
public boolean isEmpty() {
  synchronized (mutex) {
    return super.isEmpty();
  }
}

origin: com.nativelibs4java/ochafik-util

@Override
public Iterator<T> iterator() {
  synchronized (mutex) {
    return new SynchronizedListenableIterator();//super.iterator());
  }
}
@Override
origin: com.nativelibs4java/ochafik-util

@Override
public String toString() {
  synchronized (mutex) {
    return super.toString();
  }
}

origin: com.nativelibs4java/ochafik-util

public MapResult(Threads threads, ListenableList<V> out, ListenableList<Pair<U,Throwable>> errorsOut) {
  this.values = ListenableCollections.unmodifiableList(out);
  this.threads = threads;
  this.errors = ListenableCollections.unmodifiableList(errorsOut);
}
origin: com.nativelibs4java/ochafik-util

  @SuppressWarnings("unchecked")
  //@Override
  public void setSelectedItem(Object anItem) {
    if (getList().contains(anItem))
      selectedItem = (T)anItem;
    else
      selectedItem = null;
  }
}
origin: com.nativelibs4java/ochafik-util

@Override
public ListenableSet<K> keySet() {
  return new UnmodifiableListenableSet<K>(listenableMap.keySet());
  //return Collections.unmodifiableSet(listenableMap.keySet());
}
@Override
com.ochafik.util.listenable

Most used classes

  • Pair
  • Adapter
  • AdaptedCollection
  • CollectionEvent
  • Filter
  • ListenableComboModel,
  • ListenableList,
  • ListenableSupport,
  • AdaptedCollection$IteratorAdapter,
  • CollectionListener,
  • DefaultListenableCollection$ListenableIterator,
  • DefaultListenableCollection,
  • DefaultListenableList,
  • DefaultListenableMap$1,
  • DefaultListenableMap,
  • DefaultListenableSet,
  • DefaultListenableSortedSet,
  • FilteredListenableCollection$FilteredIterator,
  • ListenableCollections$1
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