net.sourceforge.cilib.util.selection.arrangement.ReverseArrangement Maven / Gradle / Ivy
/** __ __
* _____ _/ /_/ /_ Computational Intelligence Library (CIlib)
* / ___/ / / / __ \ (c) CIRG @ UP
* / /__/ / / / /_/ / http://cilib.net
* \___/_/_/_/_.___/
*/
package net.sourceforge.cilib.util.selection.arrangement;
import com.google.common.collect.Lists;
import java.util.Collections;
import java.util.List;
/**
*
*/
public class ReverseArrangement implements Arrangement {
@Override
public Iterable arrange(Iterable elements) {
List list = Lists.newArrayList(elements);
Collections.reverse(list);
return list;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy