Examples of ByteValue


Examples of org.apache.flink.types.ByteValue

  protected ByteValue[] getTestData() {
    Random rnd = new Random(874597969123412341L);
    byte byteArray[] = new byte[1];
    rnd.nextBytes(byteArray);
   
    return new ByteValue[] {new ByteValue((byte) 0), new ByteValue((byte) 1), new ByteValue((byte) -1),
              new ByteValue(Byte.MAX_VALUE), new ByteValue(Byte.MIN_VALUE),
              new ByteValue(byteArray[0]), new ByteValue((byte) -byteArray[0])};
  }
View Full Code Here

Examples of org.drools.workbench.models.guided.dtree.shared.model.values.impl.ByteValue

                return null;
            }

        } else if ( DataType.TYPE_NUMERIC_BYTE.equals( dataType ) ) {
            try {
                return new ByteValue( new Byte( value ) );

            } catch ( NumberFormatException e ) {
                messages.add( new DataTypeConversionErrorParserMessage( value,
                                                                        Byte.class.getName() ) );
                return null;
View Full Code Here

Examples of org.drools.workbench.models.guided.dtree.shared.model.values.impl.ByteValue

    }

    @Test
    public void testByteValue() {
        final Byte tv = new Byte( "8" );
        final ByteValue v = new ByteValue( tv );
        assertEquals( tv,
                      v.getValue() );

        v.setValue( "8" );
        assertEquals( tv,
                      v.getValue() );

        v.setValue( "abc" );
        assertEquals( new Byte( "0" ),
                      v.getValue() );
    }
View Full Code Here

Examples of org.drools.workbench.models.guided.dtree.shared.model.values.impl.ByteValue

        final TypeNode type = new TypeNodeImpl( "Person" );
        final ConstraintNode c1 = new ConstraintNodeImpl( "Person",
                                                          "byteField",
                                                          "==",
                                                          new ByteValue( new Byte( "100" ) ) );
        model.setRoot( type );
        type.addChild( c1 );

        final String drl = GuidedDecisionTreeDRLPersistence.getInstance().marshal( model );
        assertEqualsIgnoreWhitespace( expected,
View Full Code Here

Examples of org.drools.workbench.models.guided.dtree.shared.model.values.impl.ByteValue

        final TypeNode type = new TypeNodeImpl( "Person" );
        final ConstraintNode c1 = new ConstraintNodeImpl( "Person",
                                                          "byteField",
                                                          "==",
                                                          new ByteValue( new Byte( "100" ) ) );
        expected.setRoot( type );
        type.addChild( c1 );

        addModelField( "Person",
                       "this",
View Full Code Here

Examples of org.drools.workbench.models.guided.dtree.shared.model.values.impl.ByteValue

        model.setTreeName( "test" );

        final TypeNode type = new TypeNodeImpl( "Person" );
        final ConstraintNode c1 = new ConstraintNodeImpl( "byteField",
                                                          "==",
                                                          new ByteValue( new Byte( "100" ) ) );
        model.setRoot( type );
        type.getChildren().add( c1 );

        final String drl = GuidedDecisionTreeDRLPersistence.getInstance().marshal( model );
        assertEqualsIgnoreWhitespace( expected,
View Full Code Here

Examples of org.jboss.errai.codegen.framework.literal.ByteValue

    return caseBlock(value);
  }
 
  @Override
  public BlockBuilder<CaseBlockBuilder> case_(byte value) {
    ByteValue val = (ByteValue) LiteralFactory.getLiteral(value);
    return case_(val);
  }
View Full Code Here

Examples of org.jboss.errai.codegen.framework.literal.ByteValue

    return caseBlock(value);
  }
 
  @Override
  public BlockBuilder<CaseBlockBuilder> case_(byte value) {
    ByteValue val = (ByteValue) LiteralFactory.getLiteral(value);
    return case_(val);
  }
View Full Code Here

Examples of org.jboss.errai.codegen.literal.ByteValue

    return caseBlock(value);
  }
 
  @Override
  public BlockBuilder<CaseBlockBuilder> case_(byte value) {
    ByteValue val = (ByteValue) LiteralFactory.getLiteral(value);
    return case_(val);
  }
View Full Code Here

Examples of org.jboss.errai.ioc.rebind.ioc.codegen.literal.ByteValue

    return caseBlock(value);
  }
 
  @Override
  public BlockBuilder<CaseBlockBuilder> case_(byte value) {
    ByteValue val = (ByteValue) LiteralFactory.getLiteral(value);
    return case_(val);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.