类 FieldInfo

java.lang.Object
com.baidu.bjf.remoting.protobuf.utils.FieldInfo

public class FieldInfo extends Object
combined class of Field and @Protobuf annotation value.
从以下版本开始:
1.0.7
作者:
xiemalin
  • 构造器详细资料

    • FieldInfo

      public FieldInfo(Field field)
      Instantiates a new field info.
      参数:
      field - the field
  • 方法详细资料

    • setUseAsType

      public void setUseAsType(Class useAsType)
      Sets the use as type.
      参数:
      useAsType - the new use as type
    • getUseAsType

      public Class getUseAsType()
      Gets the use as type.
      返回:
      the use as type
    • setUseType

      public void setUseType(boolean useType)
      Sets the use type.
      参数:
      useType - the new use type
    • isUseType

      public boolean isUseType()
      Checks if is use type.
      返回:
      true, if is use type
    • isWildcardType

      public boolean isWildcardType()
      Checks if is wildcard type.
      返回:
      the wildcard type
    • isList

      public boolean isList()
      get the isList.
      返回:
      the isList
    • setList

      public void setList(boolean isList)
      set isList value to isList.
      参数:
      isList - the isList to set
    • isMap

      public boolean isMap()
      get the isMap.
      返回:
      the isMap
    • setMap

      public void setMap(boolean isMap)
      set isMap value to isMap.
      参数:
      isMap - the isMap to set
    • getField

      public Field getField()
      get the field.
      返回:
      the field
    • isRequired

      public boolean isRequired()
      get the required.
      返回:
      the required
    • setRequired

      public void setRequired(boolean required)
      set required value to required.
      参数:
      required - the required to set
    • getOrder

      public int getOrder()
      get the order.
      返回:
      the order
    • setOrder

      public void setOrder(int order)
      set order value to order.
      参数:
      order - the order to set
    • getFieldType

      public FieldType getFieldType()
      get the fieldType.
      返回:
      the fieldType
    • setFieldType

      public void setFieldType(FieldType fieldType)
      set fieldType value to fieldType.
      参数:
      fieldType - the fieldType to set
    • getDescription

      public String getDescription()
      get the description.
      返回:
      the description
    • setDescription

      public void setDescription(String description)
      set description value to description.
      参数:
      description - the description to set
    • hasDescription

      public boolean hasDescription()
      Checks for description.
      返回:
      true, if successful
    • getGenericKeyType

      public Class<?> getGenericKeyType()
      get the genericKeyType.
      返回:
      the genericKeyType
    • setGenericKeyType

      public void setGenericKeyType(Class<?> genericKeyType)
      set genericKeyType value to genericKeyType.
      参数:
      genericKeyType - the genericKeyType to set
    • getGenericeValueType

      public Class<?> getGenericeValueType()
      get the genericeValueType.
      返回:
      the genericeValueType
    • setGenericeValueType

      public void setGenericeValueType(Class<?> genericeValueType)
      set genericeValueType value to genericeValueType.
      参数:
      genericeValueType - the genericeValueType to set
    • isPacked

      public boolean isPacked()
      Checks if is packed.
      返回:
      the packed
    • setPacked

      public void setPacked(boolean packed)
      Sets the packed.
      参数:
      packed - the packed to set
    • isObjectType

      public boolean isObjectType()
      Checks if is object type.
      返回:
      true, if is object type
    • isEnumValueType

      public boolean isEnumValueType()
      Checks if is enum value type.
      返回:
      true, if is enum value type
    • isEnumKeyType

      public boolean isEnumKeyType()
      Checks if is enum key type.
      返回:
      true, if is enum key type
    • isPrimitiveType

      public static boolean isPrimitiveType(Class c)
      Checks if is primitive type.
      参数:
      c - the c
      返回:
      true, if is primitive type
    • isListType

      public static boolean isListType(Field field)
      Checks if is list type.
      参数:
      field - the field
      返回:
      true, if is list type
    • isSetType

      public static boolean isSetType(Field field)
      Checks if is set type.
      参数:
      field - the field
      返回:
      true, if is set type