meyfa/scratchlib

View on GitHub
src/main/java/scratchlib/objects/fixed/collections/ScratchObjectSet.java

Summary

Maintainability
A
0 mins
Test Coverage
F
50%
package scratchlib.objects.fixed.collections;

import java.util.Collection;

import scratchlib.objects.ScratchObject;


/**
 * Fixed-format reference type that behaves roughly like a {@code List},
 * allowing other objects to be stored and accessed via indices.
 *
 * <p>
 * Functionally equivalent to every other subclass of
 * {@link ScratchObjectAbstractCollection}.
 */
public class ScratchObjectSet extends ScratchObjectAbstractCollection
{
    /**
     * Class ID in binary files.
     */
    public static final int CLASS_ID = 22;

    /**
     * Constructs a new array.
     */
    public ScratchObjectSet()
    {
        super(CLASS_ID);
    }

    /**
     * @param entries The entries to initialize this collection with.
     */
    public ScratchObjectSet(Collection<? extends ScratchObject> entries)
    {
        super(CLASS_ID, entries);
    }
}