Java SortedSet Usage sortedSetIsAssignableFrom(Class aClass)

Here you can find the source of sortedSetIsAssignableFrom(Class aClass)

Description

Determines if the SortedSet interface is either the same as, or is a superinterface of, the class or interface represented by the specified Class parameter.

License

Apache License

Parameter

Parameter Description
aClass the Class to be checked

Return

the boolean value indicating whether objects of the type aClass can be assigned to objects of SortedSet interface

Declaration

public static boolean sortedSetIsAssignableFrom(Class<?> aClass) 

Method Source Code

//package com.java2s;
/**/* ww  w .  j  a v  a2  s . c om*/
 * Copyright (C) 2012 - 2015 Alessandro Vurro.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import java.util.SortedSet;

public class Main {
    /**
     * Determines if the SortedSet interface is either the same as, or is a superinterface of, 
     * the class or interface represented by the specified Class parameter. 
     * It returns true if so; otherwise it returns false.
     *  
     * @param aClass  the Class to be checked
     * @return the boolean value indicating whether objects of the type aClass can be assigned to objects of SortedSet interface
     */
    public static boolean sortedSetIsAssignableFrom(Class<?> aClass) {
        return SortedSet.class.isAssignableFrom(aClass);
    }
}

Related

  1. concatStringList(SortedSet sortedDependencies)
  2. findLT(SortedSet ss, T x)
  3. findPositionFor(final T item, final SortedSet values)
  4. firstOrNull(SortedSet set)
  5. nextValue(SortedSet valueSet, int startValue)
  6. sortedSetOf(final Object obj, final Class castTo)
  7. toDoubleArray(final int[] intArray)