Class ByteContentFormat

java.lang.Object
org.midheaven.io.ByteContentFormat

public final class ByteContentFormat extends Object
  • Method Details

    • of

      public static ByteContentFormat of(String extension, String contentType)
      Creates an instance from the provided value.
      Parameters:
      extension - the extension value
      contentType - the contentType value
      Returns:
      the result of of
    • equals

      public boolean equals(Object other)
      Performs equals.
      Overrides:
      equals in class Object
      Parameters:
      other - the other value
      Returns:
      the result of equals
    • hashCode

      public int hashCode()
      Checks whether hash Code.
      Overrides:
      hashCode in class Object
      Returns:
      the result of hashCode
    • toString

      public String toString()
      Returns to String.
      Overrides:
      toString in class Object
      Returns:
      the result of toString
    • extension

      public String extension()
      Performs extension.
      Returns:
      the result of extension
    • contentType

      public String contentType()
      Performs contentType.
      Returns:
      the result of contentType