Tabnine Logo
IBlock.execute
Code IndexAdd Tabnine to your IDE (free)

How to use
execute
method
in
net.anwiba.commons.lang.functional.IBlock

Best Java code snippets using net.anwiba.commons.lang.functional.IBlock.execute (Showing top 13 results out of 315)

origin: net.anwiba.commons/anwiba-commons-swing-core

 @Override
 public Void excecute(final IMessageCollector monitor, final ICanceler canceler, final Void value)
   throws InvocationTargetException,
   CanceledException {
  ActionConfigurationBuilder.this.task.execute();
  return null;
 }
}).build();
origin: net.anwiba.commons/anwiba-commons-core

@Override
public <E extends Exception> IIf or(final IBlock<E> block) throws E {
 if (!this.value) {
  block.execute();
 }
 return this;
}
origin: net.anwiba.commons/anwiba-commons-core

@Override
public <E extends Exception> IIf excecute(final IBlock<E> block) throws E {
 if (this.value) {
  block.execute();
 }
 return this;
}
origin: net.anwiba.commons/anwiba-commons-core

@Override
public IOptional<T, E> or(final IBlock<E> block) {
 try {
  block.execute();
  return this;
 } catch (final Exception exception) {
  return Optional.failed(this.exceptionClass, exception, null);
 }
}
origin: net.anwiba.commons/anwiba-commons-core

default IBlock<E> then(final IBlock<E> block) {
 Objects.requireNonNull(block);
 return () -> {
  execute();
  block.execute();
 };
}
origin: net.anwiba.commons/anwiba-commons-core

public void accept(final K key) throws E {
 if (this.functions.containsKey(key)) {
  this.functions.get(key).execute();
 } else if (this.defaultFunction == null) {
  this.defaultFunction.execute();
 }
}
origin: net.anwiba.commons/anwiba-commons-utilities

default <E extends Exception> void ifValid(final IBlock<E> block) throws E {
 if (isValid()) {
  block.execute();
 }
}
origin: net.anwiba.commons/anwiba-commons-core

default <E extends Exception> void isFalse(final IBlock<E> block) throws E {
 if (get()) {
  block.execute();
 }
}
origin: net.anwiba.commons/anwiba-commons-core

default <E extends Exception> void isTrue(final IBlock<E> block) throws E {
 if (get()) {
  block.execute();
 }
}
origin: net.anwiba.commons/anwiba-commons-core

default <E extends Exception> void ifValid(final IBlock<E> block) throws E {
 if (isValid()) {
  block.execute();
 }
}
origin: net.anwiba.commons/anwiba-commons-swing-core

private void execute(final IBlock<RuntimeException> block) {
 this.limitReachedActions.forEach(a -> remove(a));
 this.limitReachedActions.clear();
 block.execute();
 if (this.counter.get() >= this.limit) {
  this.limitReachedActions.add(limitReachedAction);
  add(limitReachedAction);
 }
}
origin: net.anwiba.commons/anwiba-commons-process

default <T, E extends Exception> IFactory<IBlock<RuntimeException>, IWatcher, RuntimeException> watcherFactory() {
 return closure -> {
  final ICancelerListener listener = () -> closure.execute();
  addCancelerListener(listener);
  return new IWatcher() {
   @Override
   public void check() throws InterruptedException {
    ICanceler.this.check();
   }
   @Override
   public void close() throws RuntimeException {
    removeCancelerListener(listener);
   }
  };
 };
}
origin: net.anwiba.commons/anwiba-commons-swing-core

  .setIcon(GuiIcons.EDIT_CLEAR_LOCATIONBAR_ICON)
  .setTooltip(tooltip)
  .setProcedure(value -> clearBlock.execute())
  .build();
setEnabled(document, enabledDistributor, action);
net.anwiba.commons.lang.functionalIBlockexecute

Popular methods of IBlock

    Popular in Java

    • Start an intent from android
    • getContentResolver (Context)
    • onCreateOptionsMenu (Activity)
    • setContentView (Activity)
    • FileReader (java.io)
      A specialized Reader that reads from a file in the file system. All read requests made by calling me
    • UnknownHostException (java.net)
      Thrown when a hostname can not be resolved.
    • JarFile (java.util.jar)
      JarFile is used to read jar entries and their associated data from jar files.
    • Loader (org.hibernate.loader)
      Abstract superclass of object loading (and querying) strategies. This class implements useful common
    • Table (org.hibernate.mapping)
      A relational table
    • Option (scala)
    • Top Vim plugins
    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