All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.jalokim.utils.collection.IndexedElement Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
package pl.jalokim.utils.collection;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * Class which wraps element at certain index, over iterate you can check that this first or last element.
 *
 * @param  generic type of stored object at certain index in some collection.
 */
@RequiredArgsConstructor
@Getter
public class IndexedElement {
    private final int index;
    private final T value;
    private final boolean isFirst;
    private final boolean isLast;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy