Class CompilerSpecID

  • All Implemented Interfaces:
    java.lang.Comparable<CompilerSpecID>

    public class CompilerSpecID
    extends java.lang.Object
    implements java.lang.Comparable<CompilerSpecID>
    Represents an opinion's compiler (gcc, borlandcpp, etc).
    • Constructor Summary

      Constructors 
      Constructor Description
      CompilerSpecID​(java.lang.String id)
      Creates a new compiler spec ID.
    • Constructor Detail

      • CompilerSpecID

        public CompilerSpecID​(java.lang.String id)
        Creates a new compiler spec ID.
        Parameters:
        id - The compiler ID (gcc, borlandcpp, etc).
    • Method Detail

      • getIdAsString

        public java.lang.String getIdAsString()
        Gets the compiler spec ID as a string.
        Returns:
        The compilers spec ID as a string.
        Throws:
        java.lang.IllegalArgumentException - if the compiler spec ID is null or empty.
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

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