Examples of LongIterator


Examples of bak.pcj.LongIterator

        public boolean contains(long v) {
            return containsKey(v);
        }

        public LongIterator iterator() {
            return new LongIterator() {
                int nextEntry = nextEntry(0);
                int lastEntry = -1;

                int nextEntry(int index) {
                    while (index < keys.length && states[index] != OCCUPIED)
View Full Code Here

Examples of bak.pcj.LongIterator

        public boolean contains(long v) {
            return containsKey(v);
        }

        public LongIterator iterator() {
            return new LongIterator() {
                int nextEntry = nextEntry(0);
                int lastEntry = -1;

                int nextEntry(int index) {
                    while (index < keys.length && states[index] != OCCUPIED)
View Full Code Here

Examples of bak.pcj.LongIterator

        public boolean contains(long v) {
            return containsValue(v);
        }

        public LongIterator iterator() {
            return new LongIterator() {
                int nextEntry = nextEntry(0);
                int lastEntry = -1;

                int nextEntry(int index) {
                    while (index < keys.length && states[index] != OCCUPIED)
View Full Code Here

Examples of bak.pcj.LongIterator

        public boolean contains(long v) {
            return containsValue(v);
        }

        public LongIterator iterator() {
            return new LongIterator() {
                int nextEntry = nextEntry(0);
                int lastEntry = -1;

                int nextEntry(int index) {
                    while (index < keys.length && states[index] != OCCUPIED)
View Full Code Here

Examples of bak.pcj.LongIterator

        public boolean contains(long v) {
            return containsValue(v);
        }

        public LongIterator iterator() {
            return new LongIterator() {
                Entry currEntry = null;
                int nextList = nextList(0);
                Entry nextEntry = nextList == -1 ? null : data[nextList];

                int nextList(int index) {
View Full Code Here

Examples of bak.pcj.LongIterator

        public boolean contains(long v) {
            return containsKey(v);
        }

        public LongIterator iterator() {
            return new LongIterator() {
                int nextEntry = nextEntry(0);
                int lastEntry = -1;

                int nextEntry(int index) {
                    while (index < keys.length && states[index] != OCCUPIED)
View Full Code Here

Examples of bak.pcj.LongIterator

        public boolean contains(long v) {
            return containsValue(v);
        }

        public LongIterator iterator() {
            return new LongIterator() {
                Entry currEntry = null;
                int nextList = nextList(0);
                Entry nextEntry = nextList == -1 ? null : data[nextList];

                int nextList(int index) {
View Full Code Here

Examples of com.bergerkiller.bukkit.common.wrappers.LongHashSet.LongIterator

    }
    if (TrainCarts.keepChunksLoadedOnlyWhenMoving && !group.isMoving()) {
      return false;
    }
    // Load nearby chunks
    LongIterator iter = group.chunks.longIterator();
    long chunk;
    while (iter.hasNext()) {
      chunk = iter.next();
      world.getChunkAt(MathUtil.longHashMsw(chunk), MathUtil.longHashLsw(chunk));
    }
    return true;
  }
View Full Code Here

Examples of com.bergerkiller.bukkit.common.wrappers.LongHashSet.LongIterator

    return this.loadedChunks.size() == this.chunks.size();
  }

  public boolean updateLoadedChunks(World world) {
    this.loadedChunks.clear();
    final LongIterator iter = this.chunks.longIterator();
    while (iter.hasNext()) {
      long chunk = iter.next();
      if (WorldUtil.isLoaded(world, MathUtil.longHashMsw(chunk), MathUtil.longHashLsw(chunk))) {
        this.loadedChunks.add(chunk);
      }
    }
    if (OfflineGroupManager.lastUnloadChunk != null) {
View Full Code Here

Examples of com.gs.collections.api.iterator.LongIterator

    public ImmutableLongByteMap newWithoutAllKeys(LongIterable keys)
    {
        MutableLongByteMap map = new LongByteHashMap(this.size());
        map.putAll(this);
        LongIterator iterator = keys.longIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
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.