Class SpeedLimitType<T>

    • Constructor Detail

      • SpeedLimitType

        public SpeedLimitType​(String id,
                              Class<T> infoClass)
        Constructor.
        Parameters:
        id - String; id of this speed limit type, which must be unique
        infoClass - Class<T>; class of the info related to this speed limit type
        Throws:
        NullPointerException - if id or info class is null
    • Method Detail

      • getId

        public final String getId()
        Returns the id.
        Specified by:
        getId in interface Identifiable
        Returns:
        the id
      • getInfoClass

        public final Class<T> getInfoClass()
        Returns the class of the info related to this speed limit type.
        Returns:
        class of the info related to this speed limit type
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object