com.github.bloodshura.sparkium.brainfxck.action.ActionSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sparkium-brainfxck Show documentation
Show all versions of sparkium-brainfxck Show documentation
A highly extensible, simple interpreter for the Brainfuck language.
The newest version!
package com.github.bloodshura.sparkium.brainfxck.action;
import com.github.bloodshura.ignitium.collection.set.impl.XArraySet;
import com.github.bloodshura.ignitium.collection.view.XBasicView;
import javax.annotation.Nonnull;
/**
* This class is responsible for storing the available actions for a Brainfuck interpreter.
* For consistency, after its creation, it is unmodifiable.
*/
public class ActionSet extends XBasicView {
/**
* Constructs a new action set with no action at all.
*/
public ActionSet() {
}
/**
* Constructs a new action set from the specified actions.
*
* @param values The actions to be added to this action set
*/
public ActionSet(@Nonnull Action... values) {
super(new XArraySet<>(values));
}
/**
* Constructs a new action set from the specified actions.
*
* @param values The actions to be added to this action set
*/
public ActionSet(@Nonnull Iterable values) {
super(new XArraySet<>(values));
}
}