Class GroupVersionForDiscovery

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class GroupVersionForDiscovery
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    GroupVersion contains the "group/version" and "version" string of a version. It is made a struct to keep extensibility.
    • Constructor Detail

      • GroupVersionForDiscovery

        public GroupVersionForDiscovery​(@NonNull
                                        @NonNull java.lang.String groupVersion,
                                        @NonNull
                                        @NonNull java.lang.String version)
      • GroupVersionForDiscovery

        public GroupVersionForDiscovery()
    • Method Detail

      • getGroupVersion

        @NonNull
        public @NonNull java.lang.String getGroupVersion()
        groupVersion specifies the API group and version in the form "group/version"
      • getVersion

        @NonNull
        public @NonNull java.lang.String getVersion()
        version specifies the version in the form of "version". This is to save the clients the trouble of splitting the GroupVersion.
      • setGroupVersion

        public void setGroupVersion​(@NonNull
                                    @NonNull java.lang.String groupVersion)
        groupVersion specifies the API group and version in the form "group/version"
      • setVersion

        public void setVersion​(@NonNull
                               @NonNull java.lang.String version)
        version specifies the version in the form of "version". This is to save the clients the trouble of splitting the GroupVersion.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

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