static boolean isParcelable ( Elements elements , Types types , TypeMirror type ) { TypeMirror parcelableType = elements . getTypeElement ( PARCELABLE_CLASS_NAME ) . asType ( ) ; return types . isAssignable ( type , parcelableType ) ; }
Returns true if a type implements Parcelable