Codota Logo
ParameterName.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.kie.dmn.feel.runtime.functions.ParameterName
constructor

Best Java code snippets using org.kie.dmn.feel.runtime.functions.ParameterName.<init> (Showing top 20 results out of 315)

Refine searchRefine arrow

  • FEELFnResult.ofResult
  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: org.kie/kie-dmn-feel

public FEELFnResult<Boolean> invoke(@ParameterName( "list" ) Boolean single) {
  if( single == null ) {
    single = Boolean.FALSE;
  }
  return FEELFnResult.ofResult( single );
}
origin: org.kie/kie-dmn-feel

public FEELFnResult<Boolean> invoke(@ParameterName( "list" ) Boolean single) {
  if( single == null ) {
    return FEELFnResult.ofResult( true );
  }
  return FEELFnResult.ofResult( Boolean.TRUE.equals( single ) );
}
origin: org.kie/kie-dmn-feel

public FEELFnResult<Object> invoke(@ParameterName("c") Object[] list) {
  if ( list == null || list.length == 0 ) {
    return FEELFnResult.ofResult( null );
  }
  
  return invoke( Arrays.asList( list ) );
}
origin: org.kie/kie-dmn-feel

  public FEELFnResult<BigDecimal> invoke(@ParameterName("n") Object[] list) {
    if ( list == null ) {
      return FEELFnResult.ofResult( null );
    }

    return invoke( Arrays.asList( list ) );
  }
}
origin: org.kie/kie-dmn-feel

  public FEELFnResult<String> invoke(@ParameterName("value") Object val) {
    if ( val == null ) {
      return FEELFnResult.ofResult( "null" );
    } else {
      return FEELFnResult.ofResult(TypeUtil.formatValue(val, true) );
    }
  }
}
origin: org.kie/kie-dmn-feel

public FEELFnResult<String> invoke(@ParameterName("from") Object val) {
  if ( val == null ) {
    return FEELFnResult.ofResult( null );
  } else {
    return FEELFnResult.ofResult( TypeUtil.formatValue(val, false) );
  }
}
origin: org.kie/kie-dmn-feel

  public FEELFnResult<Boolean> invoke(@ParameterName( "b" ) Object[] list) {
    if ( list == null ) {
      return FEELFnResult.ofResult( false );
    }
    
    return invoke( Arrays.asList( list ) );
  }
}
origin: org.kie/kie-dmn-feel

public FEELFnResult<Boolean> invoke(@ParameterName("list") List list, @ParameterName("element") Object element) {
  if ( list == null ) {
    return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null"));
  } else {
    return FEELFnResult.ofResult( list.contains( element ) );
  }
}
origin: org.kie/kie-dmn-feel

  public FEELFnResult<BigDecimal> invoke(@ParameterName("n") Object[] list) {
    if ( list == null ) { 
      return FEELFnResult.ofResult(null);
    }
    
    return invoke( Arrays.asList( list ) );
  }
}
origin: org.kie/kie-dmn-feel

  public FEELFnResult<String> invoke(@ParameterName( "mask" ) String mask, @ParameterName("p") Object[] params) {
    if ( mask == null ) {
      return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "mask", "cannot be null"));
    } else {
      return FEELFnResult.ofResult( String.format( mask, params ) );
    }
  }
}
origin: org.kie/kie-dmn-feel

  public FEELFnResult<BigDecimal> invoke(@ParameterName("n") Object[] list) {
    if ( list == null ) {
      return FEELFnResult.ofResult(null);
    }

    return invoke( Arrays.asList( list ) );
  }
}
origin: org.kie/kie-dmn-feel

  public FEELFnResult<BigDecimal> invoke(@ParameterName( "n" ) Object[] list) {
    if ( list == null ) { 
      return FEELFnResult.ofResult( null );
    }
    return invoke( Arrays.asList( list ) );
  }
}
origin: org.kie/kie-dmn-feel

public FEELFnResult<Object> invoke(@ParameterName("c") Object[] list) {
  if ( list == null || list.length == 0 ) {
    return FEELFnResult.ofResult( null );
  }
  
  return invoke( Arrays.asList( list ) );
}
origin: org.kie/kie-dmn-feel

  public FEELFnResult<List> invoke(@ParameterName("n") Object[] list) {
    if ( list == null ) {
      return FEELFnResult.ofResult( null );
    }
    return invoke( Arrays.asList( list ) );
  }
}
origin: org.kie/kie-dmn-feel

  public FEELFnResult<Boolean> invoke(@ParameterName( "b" ) Object[] list) {
    if ( list == null ) {
      return FEELFnResult.ofResult( true );
    }
    
    return invoke( Arrays.asList( list ) );
  }
}
origin: org.kie/kie-dmn-feel

  public FEELFnResult<BigDecimal> invoke(@ParameterName( "number" ) BigDecimal number) {
    if ( number == null ) {
      return FEELFnResult.ofError( new InvalidParametersEvent( FEELEvent.Severity.ERROR, "number", "cannot be null" ) );
    }
    return FEELFnResult.ofResult( new BigDecimal( Math.exp( number.doubleValue() ), MathContext.DECIMAL128 ) );
  }
}
origin: org.kie/kie-dmn-feel

  public FEELFnResult<List<Object>> invoke(@ParameterName("list") List list) {
    if ( list == null ) {
      return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null"));
    }
    // spec requires us to return a new list
    final List<Object> result = new ArrayList<>( list );
    Collections.reverse( result );
    return FEELFnResult.ofResult( result );
  }
}
origin: org.kie/kie-dmn-feel

public FEELFnResult<BigDecimal> invoke(@ParameterName( "list" ) List list) {
  if ( list == null ) {
    return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "list", "cannot be null"));
  }
  
  return FEELFnResult.ofResult( BigDecimal.valueOf( list.size() ) );
}
origin: org.kie/kie-dmn-feel

  public FEELFnResult<BigDecimal> invoke(@ParameterName( "n" ) BigDecimal n) {
    if ( n == null ) {
      return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "n", "cannot be null"));
    }
    return FEELFnResult.ofResult( n.setScale( 0, BigDecimal.ROUND_FLOOR ) );
  }
}
origin: org.kie/kie-dmn-feel

  public FEELFnResult<BigDecimal> invoke(@ParameterName( "n" ) BigDecimal n) {
    if ( n == null ) {
      return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "n", "cannot be null"));
    }
    return FEELFnResult.ofResult( n.setScale( 0, BigDecimal.ROUND_CEILING ) );
  }
}
org.kie.dmn.feel.runtime.functionsParameterName<init>

Popular methods of ParameterName

  • value

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JButton (javax.swing)
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