Tabnine Logo
PartialFunction.orElse
Code IndexAdd Tabnine to your IDE (free)

How to use
orElse
method
in
scala.PartialFunction

Best Java code snippets using scala.PartialFunction.orElse (Showing top 20 results out of 315)

origin: com.typesafe.akka/akka-actor_2.10

protected void addStatement(PartialFunction<F, T> statement) {
 if (statements == null)
  statements = statement;
 else
  statements = statements.orElse(statement);
}
origin: com.typesafe.akka/akka-actor_2.11

protected void addStatement(PartialFunction<Object, BoxedUnit> statement) {
 if (statements == null) statements = statement;
 else statements = statements.orElse(statement);
}
origin: com.typesafe.akka/akka-actor_2.11

protected void addStatement(PartialFunction<F, T> statement) {
 if (statements == null) statements = statement;
 else statements = statements.orElse(statement);
}
origin: com.typesafe.akka/akka-actor_2.12

protected void addStatement(PartialFunction<Object, BoxedUnit> statement) {
 if (statements == null) statements = statement;
 else statements = statements.orElse(statement);
}
origin: com.typesafe.akka/akka-actor

protected void addStatement(PartialFunction<Object, BoxedUnit> statement) {
 if (statements == null) statements = statement;
 else statements = statements.orElse(statement);
}
origin: com.typesafe.akka/akka-actor_2.12

protected void addStatement(PartialFunction<F, T> statement) {
 if (statements == null) statements = statement;
 else statements = statements.orElse(statement);
}
origin: com.typesafe.akka/akka-actor

protected void addStatement(PartialFunction<F, T> statement) {
 if (statements == null) statements = statement;
 else statements = statements.orElse(statement);
}
origin: com.typesafe.akka/akka-actor

AbstractMatch(PartialFunction<I, R> statements) {
 PartialFunction<I, R> empty = CaseStatement.empty();
 if (statements == null) this.statements = empty;
 else this.statements = statements.orElse(empty);
}
origin: com.typesafe.akka/akka-actor_2.12

AbstractMatch(PartialFunction<I, R> statements) {
 PartialFunction<I, R> empty = CaseStatement.empty();
 if (statements == null) this.statements = empty;
 else this.statements = statements.orElse(empty);
}
origin: com.typesafe.akka/akka-actor_2.10

AbstractMatch(PartialFunction<I, R> statements) {
 PartialFunction<I, R> empty = CaseStatement.empty();
 if (statements == null)
  this.statements = empty;
 else
  this.statements = statements.orElse(empty);
}
origin: com.typesafe.akka/akka-actor_2.11

AbstractMatch(PartialFunction<I, R> statements) {
 PartialFunction<I, R> empty = CaseStatement.empty();
 if (statements == null) this.statements = empty;
 else this.statements = statements.orElse(empty);
}
origin: com.typesafe.akka/akka-actor_2.11

 /**
  * Build a {@link scala.PartialFunction} from this builder. After this call the builder will be
  * reset.
  *
  * @return a PartialFunction for this builder.
  */
 public PartialFunction<F, T> build() {
  PartialFunction<F, T> empty = CaseStatement.empty();
  PartialFunction<F, T> statements = this.statements;

  this.statements = null;
  if (statements == null) return empty;
  else return statements.orElse(empty);
 }
}
origin: com.typesafe.akka/akka-actor_2.12

 /**
  * Build a {@link scala.PartialFunction} from this builder. After this call the builder will be
  * reset.
  *
  * @return a PartialFunction for this builder.
  */
 public PartialFunction<F, T> build() {
  PartialFunction<F, T> empty = CaseStatement.empty();
  PartialFunction<F, T> statements = this.statements;

  this.statements = null;
  if (statements == null) return empty;
  else return statements.orElse(empty);
 }
}
origin: com.typesafe.akka/akka-actor

 /**
  * Build a {@link scala.PartialFunction} from this builder. After this call the builder will be
  * reset.
  *
  * @return a PartialFunction for this builder.
  */
 public PartialFunction<F, T> build() {
  PartialFunction<F, T> empty = CaseStatement.empty();
  PartialFunction<F, T> statements = this.statements;

  this.statements = null;
  if (statements == null) return empty;
  else return statements.orElse(empty);
 }
}
origin: com.typesafe.akka/akka-actor_2.10

 /**
  * Build a {@link scala.PartialFunction} from this builder.
  * After this call the builder will be reset.
  *
  * @return  a PartialFunction for this builder.
  */
 public PartialFunction<F, T> build() {
  PartialFunction<F, T> empty = CaseStatement.empty();
  PartialFunction<F, T> statements = this.statements;

  this.statements = null;
  if (statements == null)
   return empty;
  else
   return statements.orElse(empty);
 }
}
origin: com.typesafe.akka/akka-actor_2.11

/**
 * Build a {@link scala.PartialFunction} from this builder. After this call the builder will be
 * reset.
 *
 * @return a PartialFunction for this builder.
 */
public Receive build() {
 PartialFunction<Object, BoxedUnit> empty = CaseStatement.empty();
 if (statements == null) return new Receive(empty);
 else return new Receive(statements.orElse(empty)); // FIXME why no new Receive(statements)?
}
origin: com.typesafe.akka/akka-actor

/**
 * Build a {@link scala.PartialFunction} from this builder. After this call the builder will be
 * reset.
 *
 * @return a PartialFunction for this builder.
 */
public Receive build() {
 PartialFunction<Object, BoxedUnit> empty = CaseStatement.empty();
 if (statements == null) return new Receive(empty);
 else return new Receive(statements.orElse(empty)); // FIXME why no new Receive(statements)?
}
origin: com.typesafe.akka/akka-actor_2.12

/**
 * Build a {@link scala.PartialFunction} from this builder. After this call the builder will be
 * reset.
 *
 * @return a PartialFunction for this builder.
 */
public Receive build() {
 PartialFunction<Object, BoxedUnit> empty = CaseStatement.empty();
 if (statements == null) return new Receive(empty);
 else return new Receive(statements.orElse(empty)); // FIXME why no new Receive(statements)?
}
origin: org.spark-project.akka/akka-actor_2.10

AbstractMatch(PartialFunction<I, R> statements) {
 PartialFunction<I, R> empty = CaseStatement.empty();
 if (statements == null)
  this.statements = empty;
 else
  this.statements = statements.orElse(empty);
}
origin: com.data-artisans/flakka-actor_2.10

AbstractMatch(PartialFunction<I, R> statements) {
 PartialFunction<I, R> empty = CaseStatement.empty();
 if (statements == null)
  this.statements = empty;
 else
  this.statements = statements.orElse(empty);
}
scalaPartialFunctionorElse

Popular methods of PartialFunction

  • apply
  • isDefinedAt
  • andThen

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • 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