编写自己的接口api-做自己心中的大神

常用api注解

/**
 *
 * @param <E> 这是一个超级接口的泛型
 *
 * @author  谁写的
 * @author  Neal Gafter
 * @see     Set
 * @see     List
 * @see     Map
 * @see     SortedSet
 * @see     SortedMap
 * @see     HashSet
 * @see     TreeSet
 * @see     ArrayList
 * @see     LinkedList
 * @see     Vector
 * @see     Collections
 * @see     Arrays
 * @see     AbstractCollection
 * @since 1.2
 */

public interface Collection<E> extends Iterable<E> {

另请参阅:

  /**
     * Returns <tt>true</tt> if this collection contains all of the elements
     * in the specified collection.
     *
     * @param  传入参数
     * @return  返回参数
     * @throws 抛出异常
     * @throws  抛出异常2
     * @see    #contains(Object) 参照某个方法
     */
    boolean containsAll(java.util.Collection<?> c);

猜你喜欢

转载自www.cnblogs.com/q1359720840/p/10584693.html