Skip to content

Add List#addAll(int index, Collection c) based Factory method #16

@axkr

Description

@axkr

In CombinatoricsVector

    public CombinatoricsVector(int index, Collection<? extends T> vector) {
        _vector = new ArrayList<T>(vector.size()-index);
        _vector.addAll(index, vector);
    }

In Factory

    public static <T> ICombinatoricsVector<T> createVector(int index,
            Collection<? extends T> collection) {
        return new CombinatoricsVector<T>(index, collection);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions