class PersistentSet implements Set<E> {

    @Override
    public Object[] toArray() {
        Object[] retArray = new Object[items.size()];
        int index = 0;
        Iterator<byte[]> iterator = items.iterator();
        while (iterator.hasNext()) {
            retArray[index] = serializer.decode(iterator.next());
            index++;
        }
        return retArray;
    }

    public  PersistentSet(org.onosproject.store.service.Serializer serializer, DB database, String name);

}