Package org.apache.commons.lang3.tuple

Examples of org.apache.commons.lang3.tuple.ImmutablePair


    workGraph.remove(work);
    invertedWorkGraph.remove(work);
  }

  public EdgeType getEdgeType(BaseWork a, BaseWork b) {
    return edgeProperties.get(new ImmutablePair(a,b)).getEdgeType();
  }
View Full Code Here


  /**
   * returns the edge type connecting work a and b
   */
  public TezEdgeProperty getEdgeProperty(BaseWork a, BaseWork b) {
    return edgeProperties.get(new ImmutablePair(a,b));
  }
View Full Code Here

      TezEdgeProperty edgeProp) {
    workGraph.get(a).add(b);
    invertedWorkGraph.get(b).add(a);
    roots.remove(b);
    leaves.remove(a);
    ImmutablePair workPair = new ImmutablePair(a, b);
    edgeProperties.put(workPair, edgeProp);
  }
View Full Code Here

    }

    public static ImmutablePair b(int i) {
        switch (i) {
        case 1:
            return new ImmutablePair(Blocks.COBBLESTONE, Integer.valueOf(0));

        case 2:
            return new ImmutablePair(Blocks.SMOOTH_BRICK, Integer.valueOf(0));

        case 3:
            return new ImmutablePair(Blocks.SMOOTH_BRICK, Integer.valueOf(1));

        case 4:
            return new ImmutablePair(Blocks.SMOOTH_BRICK, Integer.valueOf(2));

        case 5:
            return new ImmutablePair(Blocks.SMOOTH_BRICK, Integer.valueOf(3));

        default:
            return new ImmutablePair(Blocks.STONE, Integer.valueOf(0));
        }
    }
View Full Code Here

                        for (l = 0; !flag && l <= 10 && l >= -10; l = l <= 0 ? 1 - l : 0 - l) {
                            for (int j1 = 0; !flag && j1 <= 10 && j1 >= -10; j1 = j1 <= 0 ? 1 - j1 : 0 - j1) {
                                if (this.world.getType(i + l, j + i1, k + j1) == Blocks.MONSTER_EGGS) {
                                    if (!this.world.getGameRules().getBoolean("mobGriefing")) {
                                        int k1 = this.world.getData(i + l, j + i1, k + j1);
                                        ImmutablePair immutablepair = BlockMonsterEggs.b(k1);

                                        this.world.setTypeAndData(i + l, j + i1, k + j1, (Block) immutablepair.getLeft(), ((Integer) immutablepair.getRight()).intValue(), 3);
                                    } else {
                                        this.world.setAir(i + l, j + i1, k + j1, false);
                                    }

                                    Blocks.MONSTER_EGGS.postBreak(this.world, i + l, j + i1, k + j1, 0);
View Full Code Here

    @Override
    public int compareTo(
        @NotNull(message = "other can't be NULL") final RepoCommit other
    ) {
        return new CompareToBuilder().append(
            this.repo().coordinates(),
            other.repo().coordinates()
        ).append(this.sha(), other.sha()).build();
    }
View Full Code Here

    @Override
    public int compareTo(
        @NotNull(message = "cont should not be NULL") final Content cont
    ) {
        return new CompareToBuilder()
            .append(this.path(), cont.path())
                .append(this.repo().coordinates(), cont.repo().coordinates())
            .build();
    }
View Full Code Here

        @Override
        public int compareTo(
            @NotNull(message = "label can't be NULL") final Label label
        ) {
            return new CompareToBuilder()
                .append(this.repo().coordinates(), label.repo().coordinates())
                .append(this.obj, label.name())
                .build();
        }
View Full Code Here

        }
        @Override
        public int compareTo(
            @NotNull(message = "other can't be NULL") final Coordinates other
        ) {
            return new CompareToBuilder()
                .append(this.usr, other.user())
                .append(this.rpo, other.repo())
                .build();
        }
View Full Code Here

    @Override
    public boolean equals(final Object other) {
      if (!(other instanceof RowColIndex))
        return false;
      RowColIndex castOther = (RowColIndex) other;
      return new EqualsBuilder().append(rowKey, castOther.rowKey).append(colIndex, castOther.colIndex)
          .isEquals();
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.lang3.tuple.ImmutablePair

Copyright © 2018 www.massapicom. 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.