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

com.bestvike.collections.generic.ICollection Maven / Gradle / Ivy

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy