Examples of LongArray


Examples of com.linkedin.data.template.LongArray

    REST_CLIENT.sendRequest(request).getResponse().getEntity();
  }

  private static List<ComplexResourceKey<ComplexArray, ComplexArray>> getBatchCompleKeys()
  {
    LongArray singleton1 = new LongArray();
    singleton1.add(1L);
    ComplexArray next1 = new ComplexArray().setArray(singleton1);
    ComplexArray key1 = new ComplexArray().setArray(singleton1).setNext(next1);
    ComplexArray params1 = new ComplexArray().setArray(singleton1).setNext(next1);
    ComplexResourceKey<ComplexArray, ComplexArray> complexKey1 =
      new ComplexResourceKey<ComplexArray, ComplexArray>(key1, params1);

    LongArray singleton2 = new LongArray();
    singleton2.add(2L);
    ComplexArray next2 = new ComplexArray().setArray(singleton2);
    ComplexArray key2 = new ComplexArray().setArray(singleton2).setNext(next2);
    ComplexArray params2 = new ComplexArray().setArray(singleton2).setNext(next2);
    ComplexResourceKey<ComplexArray, ComplexArray> complexKey2 =
      new ComplexResourceKey<ComplexArray, ComplexArray>(key2, params2);
View Full Code Here

Examples of com.linkedin.data.template.LongArray

    result = test("[1.1, 2.2, 3.3]", IntegerArray.class);
    Assert.assertEquals(result, new IntegerArray(Arrays.asList(1, 2, 3)));
    Assert.assertSame(result.getClass(), IntegerArray.class);

    result = test("[2, 3, 4]", LongArray.class);
    Assert.assertEquals(result, new LongArray(Arrays.asList(2L, 3L, 4L)));
    Assert.assertSame(result.getClass(), LongArray.class);

    result = test("[1.1, 2.2, 3.3]", FloatArray.class);
    Assert.assertEquals(result, new FloatArray(Arrays.asList(1.1F, 2.2F, 3.3F)));
    Assert.assertSame(result.getClass(), FloatArray.class);
View Full Code Here

Examples of net.imglib2.img.basictypeaccess.array.LongArray

  // this is the constructor if you want it to be a variable
  public AbstractBit64Type( final long value, final int nBits )
  {
    this( ( NativeImg< T, ? extends LongAccess > )null, nBits );
    updateIndex( 0 );
    dataAccess = new LongArray( 1 );
    setBits( value );
  }
View Full Code Here

Examples of net.imglib2.img.basictypeaccess.array.LongArray

  // this is the constructor if you want it to be a variable
  public LongType( final long value )
  {
    img = null;
    dataAccess = new LongArray( 1 );
    set( value );
  }
View Full Code Here

Examples of net.imglib2.img.basictypeaccess.array.LongArray

  // this is the constructor if you want it to be a variable
  public Unsigned12BitType( final long value )
  {
    this( (NativeImg<Unsigned12BitType, ? extends LongAccess>)null );
    dataAccess = new LongArray( 1 );
    set( value );
  }
View Full Code Here

Examples of net.imglib2.img.basictypeaccess.array.LongArray

  // this is the constructor if you want it to be a variable
  public Unsigned2BitType( final long value )
  {
    this( (NativeImg<Unsigned2BitType, ? extends LongAccess>)null );
    dataAccess = new LongArray( 1 );
    set( value );
  }
View Full Code Here

Examples of net.imglib2.img.basictypeaccess.array.LongArray

  }

  @Override
  public CellImg< T, LongArray, DefaultCell< LongArray > > createLongInstance( final long[] dimensions, final Fraction entitiesPerPixel )
  {
    return createInstance( new LongArray( 1 ), dimensions, entitiesPerPixel );
  }
View Full Code Here

Examples of net.imglib2.img.basictypeaccess.array.LongArray

  // this is the constructor if you want it to be a variable
  public Unsigned4BitType( final long value )
  {
    this( (NativeImg<Unsigned4BitType, ? extends LongAccess>)null );
    dataAccess = new LongArray( 1 );
    set( value );
  }
View Full Code Here

Examples of net.imglib2.img.basictypeaccess.array.LongArray

  }

  @Override
  public NativeImg< T, LongArray > createLongInstance( final long[] dimensions, final Fraction entitiesPerPixel )
  {
    return new PlanarImg< T, LongArray >( new LongArray( 1 ), dimensions, entitiesPerPixel );
  }
View Full Code Here

Examples of net.imglib2.img.basictypeaccess.array.LongArray

  // this is the constructor if you want it to be a variable
  public Unsigned128BitType( final long lower, final long upper )
  {
    this( (NativeImg<Unsigned128BitType, ? extends LongAccess>)null );
    dataAccess = new LongArray( 2 );
    set( lower, upper );
  }
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.