Exemple #1
0
        public void set(APElement label, T to)
        {
            if (label.getBitSet() >= _arraySize)
            {
                throw new IndexOutOfBoundsException(""); //IndexOutOfBoundsException,
            }

            _storage[label.getBitSet()] = to;
        }
Exemple #2
0
        /** Get the target of the edge labeled with label*/
        public T get(APElement label)
        {
            if (label.getBitSet() >= _arraySize)
            {
                throw new IndexOutOfBoundsException(""); //,
            }

            return(_storage[label.getBitSet()]);
        }