Examples of LongHashSet


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

  private OfflineGroup(int memberCount) {
    this.members = new OfflineMember[memberCount];
    // Obtain an average of the amount of elements to store for chunks
    // Assume that each member adds 5 chunks every 10 carts
    final int chunkCount = 25 + (int) ((double) (5 / 10) * (double) memberCount);
    this.chunks = new LongHashSet(chunkCount);
    this.loadedChunks = new LongHashSet(chunkCount);
  }
View Full Code Here

Examples of com.gs.collections.impl.set.mutable.primitive.LongHashSet

        return new LongArrayList();
    }

    public MutableLongSet toSet()
    {
        return new LongHashSet();
    }
View Full Code Here

Examples of com.gs.collections.impl.set.mutable.primitive.LongHashSet

            LongCharHashMap.this.clear();
        }

        public MutableLongSet select(LongPredicate predicate)
        {
            MutableLongSet result = new LongHashSet();
            if (LongCharHashMap.this.sentinelValues != null)
            {
                if (LongCharHashMap.this.sentinelValues.containsZeroKey && predicate.accept(EMPTY_KEY))
                {
                    result.add(EMPTY_KEY);
                }
                if (LongCharHashMap.this.sentinelValues.containsOneKey && predicate.accept(REMOVED_KEY))
                {
                    result.add(REMOVED_KEY);
                }
            }
            for (long key : LongCharHashMap.this.keys)
            {
                if (isNonSentinel(key) && predicate.accept(key))
                {
                    result.add(key);
                }
            }
            return result;
        }
View Full Code Here

Examples of com.gs.collections.impl.set.mutable.primitive.LongHashSet

            return result;
        }

        public MutableLongSet reject(LongPredicate predicate)
        {
            MutableLongSet result = new LongHashSet();
            if (LongCharHashMap.this.sentinelValues != null)
            {
                if (LongCharHashMap.this.sentinelValues.containsZeroKey && !predicate.accept(EMPTY_KEY))
                {
                    result.add(EMPTY_KEY);
                }
                if (LongCharHashMap.this.sentinelValues.containsOneKey && !predicate.accept(REMOVED_KEY))
                {
                    result.add(REMOVED_KEY);
                }
            }
            for (long key : LongCharHashMap.this.keys)
            {
                if (isNonSentinel(key) && !predicate.accept(key))
                {
                    result.add(key);
                }
            }
            return result;
        }
View Full Code Here

Examples of com.gs.collections.impl.set.mutable.primitive.LongHashSet

        return false;
    }

    public MutableLongSet keySet()
    {
        return UnmodifiableLongSet.of(new LongHashSet());
    }
View Full Code Here

Examples of com.gs.collections.impl.set.mutable.primitive.LongHashSet

        return new LongArrayList();
    }

    public MutableLongSet toSet()
    {
        return new LongHashSet();
    }
View Full Code Here

Examples of com.gs.collections.impl.set.mutable.primitive.LongHashSet

        return list;
    }

    public MutableLongSet toSet()
    {
        final MutableLongSet set = new LongHashSet();
        this.forEach(new LongProcedure()
        {
            public void value(long each)
            {
                set.add(each);
            }
        });
        return set;
    }
View Full Code Here

Examples of com.gs.collections.impl.set.mutable.primitive.LongHashSet

        return new LongArrayList();
    }

    public MutableLongSet toSet()
    {
        return new LongHashSet();
    }
View Full Code Here

Examples of com.gs.collections.impl.set.mutable.primitive.LongHashSet

        return modified;
    }

    public boolean removeAll(long... source)
    {
        LongHashSet set = LongHashSet.newSetWith(source);
        long[] newItems = new long[this.size];
        int count = 0;
        int oldSize = this.size;
        for (int index = 0; index < this.size; index++)
        {
            if (!set.contains(this.items[index]))
            {
                newItems[count] = this.items[index];
                count++;
            }
        }
View Full Code Here

Examples of com.gs.collections.impl.set.mutable.primitive.LongHashSet

        return 0;
    }

    public MutableLongSet toSet()
    {
        return new LongHashSet();
    }
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.