com.bestvike.collections.generic.ICollection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of linq Show documentation
Show all versions of linq Show documentation
LINQ to Objects for Java.
The newest version!
package com.bestvike.collections.generic;
import com.bestvike.linq.IEnumerable;
import java.util.Collection;
import java.util.List;
/**
* Created by 许崇雷 on 2017-09-30.
*/
public interface ICollection extends IEnumerable {
Collection getCollection();
int _getCount();
boolean _contains(T item);
void _copyTo(Object[] array, int arrayIndex);
T[] _toArray(Class clazz);
Object[] _toArray();
List _toList();
default int size() {
return this._getCount();
}
default boolean isEmpty() {
return this._getCount() == 0;
}
}