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

de.pfabulist.roast.collection.Listt Maven / Gradle / Ivy

The newest version!
//package de.pfabulist.roast.collection;
//
//import de.pfabulist.roast.FromRoast;
//import de.pfabulist.roast.Roast;
//
//import javax.annotation.Nullable;
//import java.util.ArrayList;
//import java.util.Arrays;
//import java.util.Iterator;
//import java.util.List;
//import java.util.Spliterator;
//import java.util.function.Consumer;
//import java.util.stream.Stream;
//
//import static de.pfabulist.roast.NonnullCheck._nn;
//
///**
// * Copyright (c) 2006 - 2016, Stephan Pfab
// * SPDX-License-Identifier: BSD-2-Clause
// */
//
//public interface Listt extends Roast>, Iterable {
//
//    static  Listt empty( Class type ) {
//        return new ListtStd<>( new ArrayList<>() );
//    }
//
//    int size_();
//
//    T get_( int i );
//
//
//    boolean add( T elem );
//
//    boolean isEmpty();
//
//    static  Listt r_( List l ) {
//        return FromRoast.r_( l, Listt.class, () -> new ListtStd<>( l ) );
//    }
//
////    static  Listt r_( T a, T ... bs ) {
////        Listt ret = new Listt<>( new ArrayList() );
////        ret.add( a );
////        ret.addAll( Arrays.asList( bs ));
////        return ret;
////    }
//
//    boolean addAll( List ts );
//
//    boolean addAll( Listt ts );
//
//    boolean contains( T s );
//
//    Stream stream();
//
//    Listt subList( int from, int to );
//
//    T remove( int idx );
//}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy