congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Either.isLeft
Code IndexAdd Tabnine to your IDE (free)

How to use
isLeft
method
in
org.kie.dmn.feel.util.Either

Best Java code snippets using org.kie.dmn.feel.util.Either.isLeft (Showing top 8 results out of 315)

origin: org.kie/kie-dmn-feel

public boolean isRight() {
  return ! isLeft();
}

origin: org.kie/kie-dmn-feel

  public <X> X cata(Function<L,X> left, Function<R,X> right) {
    // warning: left.invoke, because of FEEL specs, could return null. The below is the safest way to implement cata over this Either.
    return isLeft() ? left.apply( this.left.get() ) : right.apply( this.right.orElse( null ) );
  }
}
origin: org.kie/kie-dmn-core

@Test
public void testLocateInNSnoModelNameWithAlias2() {
  final Import i = makeImport("nsA", "boh", null);
  final List<QName> available = Arrays.asList(new QName("nsA", "m1"),
                        new QName("nsA", "m2"),
                        new QName("nsB", "m3"));
  final Either<String, QName> result = ImportDMNResolverUtil.resolveImportDMN(i, available, Function.identity());
  assertTrue(result.isLeft());
}
origin: org.kie/kie-dmn-core

@Test
public void testLocateInNSnoModelNameWithAlias() {
  final Import i = makeImport("nsA", "m1", null);
  final List<QName> available = Arrays.asList(new QName("nsA", "m1"),
                        new QName("nsA", "m2"),
                        new QName("nsB", "m3"));
  final Either<String, QName> result = ImportDMNResolverUtil.resolveImportDMN(i, available, Function.identity());
  assertTrue(result.isLeft());
}
origin: org.kie/kie-dmn-core

@Test
public void testNSandUnexistentModelName() {
  final Import i = makeImport("ns1", null, "boh");
  final List<QName> available = Arrays.asList(new QName("ns1", "m1"),
                        new QName("ns2", "m2"),
                        new QName("ns3", "m3"));
  final Either<String, QName> result = ImportDMNResolverUtil.resolveImportDMN(i, available, Function.identity());
  assertTrue(result.isLeft());
}
origin: org.kie/kie-dmn-core

@Test
public void testLocateInNSunexistent() {
  final Import i = makeImport("nsA", null, "boh");
  final List<QName> available = Arrays.asList(new QName("nsA", "m1"),
                        new QName("nsA", "m2"),
                        new QName("nsB", "m3"));
  final Either<String, QName> result = ImportDMNResolverUtil.resolveImportDMN(i, available, Function.identity());
  assertTrue(result.isLeft());
}
origin: org.kie/kie-dmn-core

@Test
public void testLocateInNSAliasedBadScenario() {
  // this is a BAD scenario are in namespace `nsA` there are 2 models with the same name.
  final Import i = makeImport("nsA", "aliased", "mA");
  final List<QName> available = Arrays.asList(new QName("nsA", "mA"),
                        new QName("nsA", "mA"),
                        new QName("nsB", "m3"));
  final Either<String, QName> result = ImportDMNResolverUtil.resolveImportDMN(i, available, Function.identity());
  assertTrue(result.isLeft());
}
origin: org.kie/kie-dmn-feel

if ( actualInputMatch.isLeft() ) {
  return actualInputMatch.cata( e -> FEELFnResult.ofError(e), e -> FEELFnResult.ofError(null) );
org.kie.dmn.feel.utilEitherisLeft

Popular methods of Either

  • getOrElse
  • isRight
  • <init>
  • cata
  • ofLeft
  • ofRight

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • getSupportFragmentManager (FragmentActivity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Table (org.hibernate.mapping)
    A relational table
  • Top 12 Jupyter Notebook extensions
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