Examples of LongArray


Examples of com.almworks.integers.LongArray

      myForest = forest.makeImmutable();
      myParentPath = parentPath;
      myAfter = after;
      long under = lastOrZero(parentPath);
      if (under > 0 || after > 0) {
        LongArray array = new LongArray();
        if (under > 0) array.add(under);
        if (after > 0) array.add(after);
        myAnchor = new LongListConcatenation(array, myForest.getIssues());
      } else {
        myAnchor = myForest.getIssues();
      }
    }
View Full Code Here

Examples of com.almworks.integers.LongArray

      myForest = forest.makeImmutable();
      myParentPath = parentPath;
      myAfter = after;
      long under = lastOrZero(parentPath);
      if (under > 0 || after > 0) {
        LongArray array = new LongArray();
        if (under > 0) array.add(under);
        if (after > 0) array.add(after);
        myAnchor = new LongListConcatenation(array, myForest.getIssues());
      } else {
        myAnchor = myForest.getIssues();
      }
    }
View Full Code Here

Examples of com.almworks.integers.LongArray

    int size = array.size();
    long[] longs = array.extractHostArray();
    for (int i = 0, m2 = size / 2; i < m2; i++) {
      LongCollections.swap(longs, i, size - 1 - i);
    }
    return new LongArray(longs, size);
  }
View Full Code Here

Examples of com.almworks.integers.LongArray

      assert forest.size() > 0 : forest + " " + under + " " + after;
      myForest = forest.makeImmutable();
      myUnder = under;
      myAfter = after;
      if (myUnder > 0 || myAfter > 0) {
        LongArray array = new LongArray();
        if (myUnder > 0) array.add(myUnder);
        if (myAfter > 0) array.add(myAfter);
        myAnchor = new LongListConcatenation(array, myForest.getIssues());
      } else {
        myAnchor = myForest.getIssues();
      }
    }
View Full Code Here

Examples of com.almworks.integers.LongArray

      myForest = forest.makeImmutable();
      myParentPath = parentPath;
      myAfter = after;
      long under = lastOrZero(parentPath);
      if (under > 0 || after > 0) {
        LongArray array = new LongArray();
        if (under > 0) array.add(under);
        if (after > 0) array.add(after);
        myAnchor = new LongListConcatenation(array, myForest.getIssues());
      } else {
        myAnchor = myForest.getIssues();
      }
    }
View Full Code Here

Examples of com.almworks.integers.LongArray

      assert forest.size() > 0 : forest + " " + under + " " + after;
      myForest = forest.makeImmutable();
      myUnder = under;
      myAfter = after;
      if (myUnder > 0 || myAfter > 0) {
        LongArray array = new LongArray();
        if (myUnder > 0) array.add(myUnder);
        if (myAfter > 0) array.add(myAfter);
        myAnchor = new LongListConcatenation(array, myForest.getIssues());
      } else {
        myAnchor = myForest.getIssues();
      }
    }
View Full Code Here

Examples of com.badlogic.gdx.utils.LongArray

        if (tile != null) {
          Element animationElement = tileElement.getChildByName("animation");
          if (animationElement != null) {

            Array<StaticTiledMapTile> staticTiles = new Array<StaticTiledMapTile>();
            LongArray intervals = new LongArray();
            for (Element frameElement: animationElement.getChildrenByName("frame")) {
              staticTiles.add((StaticTiledMapTile) tileset.getTile(firstgid + frameElement.getIntAttribute("tileid")));
              intervals.add(frameElement.getIntAttribute("duration"));
            }

            AnimatedTiledMapTile animatedTile = new AnimatedTiledMapTile(intervals, staticTiles);
            animatedTile.setId(tile.getId());
            animatedTiles.add(animatedTile);
View Full Code Here

Examples of com.linkedin.data.template.LongArray

  @Test(dataProvider = com.linkedin.restli.internal.common.TestConstants.RESTLI_PROTOCOL_1_2_PREFIX + "requestBuilderDataProvider")
  public void testGet(RootBuilderWrapper<ComplexResourceKey<ComplexArray, ComplexArray>, Greeting> builders) throws RemoteInvocationException, CloneNotSupportedException
  {
    // all array are singletons with single element
    LongArray singleton = new LongArray();
    singleton.add(1L);

    ComplexArray next = new ComplexArray().setArray(singleton);
    ComplexArray key = new ComplexArray().setArray(singleton).setNext(next);
    ComplexArray params = new ComplexArray().setArray(singleton).setNext(next);
    ComplexResourceKey<ComplexArray, ComplexArray> complexKey = new ComplexResourceKey<ComplexArray, ComplexArray>(key, params);
View Full Code Here

Examples of com.linkedin.data.template.LongArray

  }

  @Test(dataProvider = com.linkedin.restli.internal.common.TestConstants.RESTLI_PROTOCOL_1_2_PREFIX + "requestBuilderDataProvider")
  public void testFinder(RootBuilderWrapper<ComplexResourceKey<ComplexArray, ComplexArray>, Greeting> builders) throws RemoteInvocationException
  {
    LongArray singleton = new LongArray();
    singleton.add(1L);
    ComplexArray next = new ComplexArray().setArray(singleton);
    ComplexArray array = new ComplexArray().setArray(singleton).setNext(next);

    Request<CollectionResponse<Greeting>> request = builders.findBy("Finder").setQueryParam("array", array).build();
    REST_CLIENT.sendRequest(request).getResponse().getEntity();
View Full Code Here

Examples of com.linkedin.data.template.LongArray

  }

  @Test(dataProvider = com.linkedin.restli.internal.common.TestConstants.RESTLI_PROTOCOL_1_2_PREFIX + "requestBuilderDataProvider")
  public void testAction(RootBuilderWrapper<ComplexResourceKey<ComplexArray, ComplexArray>, Greeting> builders) throws RemoteInvocationException
  {
    LongArray singleton = new LongArray();
    singleton.add(1L);
    ComplexArray next = new ComplexArray().setArray(singleton);
    ComplexArray array = new ComplexArray().setArray(singleton).setNext(next);

    Request<Integer> request = builders.<Integer>action("Action").setActionParam("Array", array).build();
    REST_CLIENT.sendRequest(request).getResponse().getEntity();
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.