Class LanguageProfile

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<LanguageProfile>

    public class LanguageProfile
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<LanguageProfile>
    The build identity of a source/target language: how the build system treats it. See https://github.com/CategoricalData/hydra/issues/559
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the hydra.build.format.LanguageProfile type.
      • NAME

        public static final Name NAME
        Name of the hydra.build.format.LanguageProfile.name field.
      • CODER_PACKAGE

        public static final Name CODER_PACKAGE
        Name of the hydra.build.format.LanguageProfile.coderPackage field.
      • FAMILY

        public static final Name FAMILY
        Name of the hydra.build.format.LanguageProfile.family field.
      • name

        public final java.lang.String name
        The canonical language token, e.g. "haskell", "java", "clojure"
      • coderPackage

        public final java.lang.String coderPackage
        The distribution package the language's coder lives in (the four Lisp dialects share hydra-lisp)
      • family

        public final java.lang.String family
        The build-treatment group the language belongs to, e.g. "jvm", "python", "lisp" (an open string: adding a host must not edit a type)
    • Constructor Detail

      • LanguageProfile

        public LanguageProfile​(java.lang.String name,
                               java.lang.String coderPackage,
                               java.lang.String family)
        Constructs an immutable LanguageProfile.
        Parameters:
        name - The canonical language token, e.g. "haskell", "java", "clojure"
        coderPackage - The distribution package the language's coder lives in (the four Lisp dialects share hydra-lisp)
        family - The build-treatment group the language belongs to, e.g. "jvm", "python", "lisp" (an open string: adding a host must not edit a type)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • withCoderPackage

        public LanguageProfile withCoderPackage​(java.lang.String coderPackage)
        Returns a copy of this LanguageProfile with coderPackage replaced.