summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/gdx/boardgame/utils/IterableSet.java
blob: 0d0cb95ee6164d46879f87f72f0c81af6b8972a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package ch.asynk.gdx.boardgame.utils;

public class IterableSet<E> extends IterableArray<E>
{
    public IterableSet(int n)
    {
        super(n);
    }

    @Override public boolean add(E e)
    {
        if (contains(e)) return false;
        super.add(e);
        return true;
    }
}