Class Version


  • public class Version
    extends Object
    A class representing a version URI parameter.
    • Constructor Detail

      • Version

        public Version​(Instant time)
        Create a Version parameter.
        Parameters:
        time - the version timestamp
    • Method Detail

      • getInstant

        public Instant getInstant()
        Retrieve the instant.
        Returns:
        the instant
      • valueOf

        public static Version valueOf​(String value)
        Create a Version object from a string value.
        Parameters:
        value - the header value
        Returns:
        a Version header or null if the value is not parseable