All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nthportal.versions.ExtensionParser.scala Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
package com.nthportal.versions

/**
  * Something which parses a version extension from a string.
  *
  * @tparam E the type of the version extension
  */
trait ExtensionParser[E] {
  /**
    * Parses a version extension from the given string.
    *
    * @param extension the string representation of the extension
    * @throws IllegalArgumentException if the string provided does not
    *                                  represent a valid extension
    * @return the extension represented by the specified string
    */
  @throws[IllegalArgumentException]
  def parse(extension: String): E
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy