Class Entity<T>


  • public class Entity<T>
    extends java.lang.Object
    • Field Detail

      • entity

        private T entity
      • contentType

        private java.lang.String contentType
    • Constructor Detail

      • Entity

        public Entity​(T entity,
                      java.lang.String contentType)
    • Method Detail

      • json

        public static <T> Entity<T> json​(T entity)
      • stream

        public static <T> Entity<T> stream​(T entity)
      • getEntity

        public T getEntity()
        Returns:
        the entity
      • setEntity

        public void setEntity​(T entity)
        Parameters:
        entity - the entity to set
      • getContentType

        public java.lang.String getContentType()
        Returns:
        the contentType
      • setContentType

        public void setContentType​(java.lang.String contentType)
        Parameters:
        contentType - the contentType to set