Here you can find the source of sortedSetIsAssignableFrom(Class> aClass)
Parameter | Description |
---|---|
aClass | the Class to be checked |
public static boolean sortedSetIsAssignableFrom(Class<?> aClass)
//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); } }