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

org.danilopianini.lang.CollectionWithCurrentElement Maven / Gradle / Ivy

There is a newer version: 0.6.1
Show newest version
/*******************************************************************************
 * Copyright (C) 2009, 2015, Danilo Pianini and contributors
 * listed in the project's build.gradle or pom.xml file.
 *
 * This file is distributed under the terms of the Apache License, version 2.0
 *******************************************************************************/
package org.danilopianini.lang;

import java.util.Collection;
import java.util.NoSuchElementException;

/**
 * @param 
 */
public interface CollectionWithCurrentElement extends Collection {

    /**
     * @return the current active element
     */
    E getCurrent();

    /**
     * @param e the new active element
     * 
     * @throws NoSuchElementException if the Collection does not contain the new active element
     */
    void setCurrent(E e);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy