src/main/java/ca/jeb/protobuf/internal/ProtobufSerializerUtils.java
public static final ProtobufEntity getProtobufEntity(Class<?> clazz)
  {
    final ProtobufEntity protoBufEntity = clazz.getAnnotation(ProtobufEntity.class);

    if (protoBufEntity != null)
    {
      return protoBufEntity;
    }

    return null;
  }
public static final ProtobufEntity getProtobufEntity(Class<?> clazz)
  {
    final ProtobufEntity protoBufEntity = clazz.getAnnotation(ProtobufEntity.class);

    if (protoBufEntity != null)
    {
      return protoBufEntity;
    }

    return null;
  }
public static final ProtobufEntity getProtobufEntity ( Class < ? > clazz ) { final ProtobufEntity protoBufEntity = clazz . getAnnotation ( ProtobufEntity . class ) ; if ( protoBufEntity != null ) { return protoBufEntity ; } return null ; }
Return a ProtobufEntity annotation from any object sent, null if there is none.

@param clazz - any Class
@return ProtobufEntity annotation
@see ca.jeb.protobuf.ProtobufEntity
Return a ProtobufEntity annotation from any object sent null if there is none .