Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ public void visit(V element) {
});
}

default T accept(io.kubernetes.client.fluent.Visitor... visitors) {
default T accept(Visitor... visitors) {
return accept(Collections.emptyList(), visitors);
}

default T accept(List<Entry<String,Object>> path,io.kubernetes.client.fluent.Visitor... visitors) {
default T accept(List<Entry<String,Object>> path,Visitor... visitors) {
return accept(path, "", visitors);
}

default T accept(List<Entry<String,Object>> path,String currentKey,io.kubernetes.client.fluent.Visitor... visitors) {
default T accept(List<Entry<String,Object>> path,String currentKey,Visitor... visitors) {
List<Visitor> sortedVisitor = new ArrayList<>();
for (Visitor visitor : visitors) {
visitor = VisitorListener.wrap(visitor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private static Class<?> getClass(Type type) {
}
}

private static <T>Optional<Type> getMatchingInterface(Class<?> targetInterface,java.lang.reflect.Type... candidates) {
private static <T>Optional<Type> getMatchingInterface(Class<?> targetInterface,Type... candidates) {
if (candidates == null || candidates.length == 0) {
return Optional.empty();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package io.kubernetes.client.openapi.models;

import java.lang.StringBuilder;
import java.lang.SuppressWarnings;
import io.kubernetes.client.fluent.BaseFluent;
import java.util.Objects;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
Expand All @@ -10,7 +12,7 @@
* Generated
*/
@SuppressWarnings("unchecked")
public class AbstractOpenApiSchemaFluent<A extends AbstractOpenApiSchemaFluent<A>> extends BaseFluent<A>{
public class AbstractOpenApiSchemaFluent<A extends io.kubernetes.client.openapi.models.AbstractOpenApiSchemaFluent<A>> extends BaseFluent<A>{
public AbstractOpenApiSchemaFluent() {
}

Expand All @@ -22,8 +24,8 @@ public AbstractOpenApiSchemaFluent(AbstractOpenApiSchema instance) {

protected void copyInstance(AbstractOpenApiSchema instance) {
if (instance != null) {
this.withSchemaType(instance.getSchemaType());
}
this.withSchemaType(instance.getSchemaType());
}
}

public Boolean getIsNullable() {
Expand Down Expand Up @@ -53,24 +55,41 @@ public boolean hasSchemaType() {
}

public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
if (this == o) {
return true;
}
if (o == null || this.getClass() != o.getClass()) {
return false;
}
if (!(super.equals(o))) {
return false;
}
AbstractOpenApiSchemaFluent that = (AbstractOpenApiSchemaFluent) o;
if (!java.util.Objects.equals(isNullable, that.isNullable)) return false;
if (!java.util.Objects.equals(schemaType, that.schemaType)) return false;
if (!(Objects.equals(isNullable, that.isNullable))) {
return false;
}
if (!(Objects.equals(schemaType, that.schemaType))) {
return false;
}
return true;
}

public int hashCode() {
return java.util.Objects.hash(isNullable, schemaType, super.hashCode());
return Objects.hash(isNullable, schemaType);
}

public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (isNullable != null) { sb.append("isNullable:"); sb.append(isNullable + ","); }
if (schemaType != null) { sb.append("schemaType:"); sb.append(schemaType); }
if (!(isNullable == null)) {
sb.append("isNullable:");
sb.append(isNullable);
sb.append(",");
}
if (!(schemaType == null)) {
sb.append("schemaType:");
sb.append(schemaType);
}
sb.append("}");
return sb.toString();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
public class AdmissionregistrationV1ServiceReferenceBuilder extends AdmissionregistrationV1ServiceReferenceFluent<AdmissionregistrationV1ServiceReferenceBuilder> implements VisitableBuilder<AdmissionregistrationV1ServiceReference,AdmissionregistrationV1ServiceReferenceBuilder>{
public AdmissionregistrationV1ServiceReferenceBuilder() {
this(new AdmissionregistrationV1ServiceReference());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
package io.kubernetes.client.openapi.models;

import java.lang.Integer;
import java.lang.StringBuilder;
import java.lang.SuppressWarnings;
import io.kubernetes.client.fluent.BaseFluent;
import java.util.Objects;
import java.lang.Object;
import java.lang.String;

/**
* Generated
*/
@SuppressWarnings("unchecked")
public class AdmissionregistrationV1ServiceReferenceFluent<A extends AdmissionregistrationV1ServiceReferenceFluent<A>> extends BaseFluent<A>{
public class AdmissionregistrationV1ServiceReferenceFluent<A extends io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReferenceFluent<A>> extends BaseFluent<A>{
public AdmissionregistrationV1ServiceReferenceFluent() {
}

Expand All @@ -23,13 +25,13 @@ public AdmissionregistrationV1ServiceReferenceFluent(AdmissionregistrationV1Serv
private Integer port;

protected void copyInstance(AdmissionregistrationV1ServiceReference instance) {
instance = (instance != null ? instance : new AdmissionregistrationV1ServiceReference());
instance = instance != null ? instance : new AdmissionregistrationV1ServiceReference();
if (instance != null) {
this.withName(instance.getName());
this.withNamespace(instance.getNamespace());
this.withPath(instance.getPath());
this.withPort(instance.getPort());
}
this.withName(instance.getName());
this.withNamespace(instance.getNamespace());
this.withPath(instance.getPath());
this.withPort(instance.getPort());
}
}

public String getName() {
Expand Down Expand Up @@ -85,28 +87,57 @@ public boolean hasPort() {
}

public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
if (this == o) {
return true;
}
if (o == null || this.getClass() != o.getClass()) {
return false;
}
if (!(super.equals(o))) {
return false;
}
AdmissionregistrationV1ServiceReferenceFluent that = (AdmissionregistrationV1ServiceReferenceFluent) o;
if (!java.util.Objects.equals(name, that.name)) return false;
if (!java.util.Objects.equals(namespace, that.namespace)) return false;
if (!java.util.Objects.equals(path, that.path)) return false;
if (!java.util.Objects.equals(port, that.port)) return false;
if (!(Objects.equals(name, that.name))) {
return false;
}
if (!(Objects.equals(namespace, that.namespace))) {
return false;
}
if (!(Objects.equals(path, that.path))) {
return false;
}
if (!(Objects.equals(port, that.port))) {
return false;
}
return true;
}

public int hashCode() {
return java.util.Objects.hash(name, namespace, path, port, super.hashCode());
return Objects.hash(name, namespace, path, port);
}

public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (name != null) { sb.append("name:"); sb.append(name + ","); }
if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); }
if (path != null) { sb.append("path:"); sb.append(path + ","); }
if (port != null) { sb.append("port:"); sb.append(port); }
if (!(name == null)) {
sb.append("name:");
sb.append(name);
sb.append(",");
}
if (!(namespace == null)) {
sb.append("namespace:");
sb.append(namespace);
sb.append(",");
}
if (!(path == null)) {
sb.append("path:");
sb.append(path);
sb.append(",");
}
if (!(port == null)) {
sb.append("port:");
sb.append(port);
}
sb.append("}");
return sb.toString();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
public class AdmissionregistrationV1WebhookClientConfigBuilder extends AdmissionregistrationV1WebhookClientConfigFluent<AdmissionregistrationV1WebhookClientConfigBuilder> implements VisitableBuilder<AdmissionregistrationV1WebhookClientConfig,AdmissionregistrationV1WebhookClientConfigBuilder>{
public AdmissionregistrationV1WebhookClientConfigBuilder() {
this(new AdmissionregistrationV1WebhookClientConfig());
Expand Down
Loading
Loading