Inheritance: global::java.lang.Object, global::java.lang.Comparable
Example #1
0
        /// <summary>
        /// Compare this field with another <code>ObjectStreamField</code>.  Return
        /// -1 if this is smaller, 0 if equal, 1 if greater.  Types that are
        /// primitives are "smaller" than object types.  If equal, the field names
        /// are compared.
        /// </summary>
        // REMIND: deprecate?
        public virtual int CompareTo(Object obj)
        {
            ObjectStreamField other = (ObjectStreamField)obj;
            bool isPrim             = Primitive;

            if (isPrim != other.Primitive)
            {
                return(isPrim ? -1 : 1);
            }
            return(Name_Renamed.CompareTo(other.Name_Renamed));
        }
Example #2
0
 private static FieldWrapper GetFieldWrapper(java.io.ObjectStreamField field)
 {
     java.lang.reflect.Field f = field.getField();
     return(f == null ? null : FieldWrapper.FromField(f));
 }