dev.marksman.collectionviews.Primitive Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of collection-views Show documentation
Show all versions of collection-views Show documentation
Low overhead, protected views over Java collections
package dev.marksman.collectionviews;
/**
* A marker interface for indicating that a view is "primitive", i.e., it is not a transformation of another view.
*
* {@code Primitive} is only of concern to implementers of custom views.
*
* It is optional for custom views to mix in this trait.
* If present, internal copying routines in the collection-views library may use this as a hint for optimization.
*
* While presence of {@code Primitive} indicates that the view is not a transformation,
* you should not rely on the absence of {@code Primitive} to indicate that it is a transformation.
*/
public interface Primitive {
}