
com.artemis.utils.ImmutableIntBag Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artemis-odb Show documentation
Show all versions of artemis-odb Show documentation
Fork of Artemis Entity System Framework.
The newest version!
package com.artemis.utils;
/**
* A non-modifiable intbag.
*/
public interface ImmutableIntBag {
/**
* Returns the element at the specified position in Bag.
*
* @param index index of the element to return
* @return the element at the specified position in bag
*/
int get(int index);
/**
* Returns the number of elements in this bag.
*
* @return the number of elements in this bag
*/
int size();
/**
* Returns true if this bag contains no elements.
*
* @return true if this bag contains no elements
*/
boolean isEmpty();
/**
* Check if bag contains this element.
*
* @param id
* @return true if the bag contains this element
*/
boolean contains(int id);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy