public static boolean equals(Annotation thisAnnotation, Annotation thatAnnotation) { if (thisAnnotation == null && thatAnnotation == null) { return true; } else if (thisAnnotation == null || thatAnnotation == null) { return false; } if (!thisAnnotation.annotationType().equals(thatAnnotation.annotationType())) { return false; } if (thisAnnotation instanceof io.swagger.v3.oas.annotations.media.Schema) { return equals((io.swagger.v3.oas.annotations.media.Schema) thisAnnotation, (io.swagger.v3.oas.annotations.media.Schema) thatAnnotation); } else if (thisAnnotation instanceof io.swagger.v3.oas.annotations.media.ArraySchema) { return equals((io.swagger.v3.oas.annotations.media.ArraySchema)thisAnnotation, (io.swagger.v3.oas.annotations.media.ArraySchema)thatAnnotation); } return true; }
public static boolean equals(io.swagger.v3.oas.annotations.media.ArraySchema thisArraySchema, io.swagger.v3.oas.annotations.media.ArraySchema thatArraySchema) { if (thisArraySchema == null && thatArraySchema == null) { return true; } else if (thisArraySchema == null || thatArraySchema == null) { return false; } if (thisArraySchema.maxItems() != thatArraySchema.maxItems()) { return false; } if (thisArraySchema.minItems() != thatArraySchema.minItems()) { return false; } if (thisArraySchema.uniqueItems() != thatArraySchema.uniqueItems()) { return false; } if (!Arrays.equals(thisArraySchema.extensions(), thatArraySchema.extensions())) { return false; } if (!equals(thisArraySchema.schema(), thatArraySchema.schema())) { return false; } return true; }
public static boolean equals(Annotation thisAnnotation, Annotation thatAnnotation) { if (thisAnnotation == null && thatAnnotation == null) { return true; } else if (thisAnnotation == null || thatAnnotation == null) { return false; } if (!thisAnnotation.annotationType().equals(thatAnnotation.annotationType())) { return false; } if (thisAnnotation instanceof io.swagger.v3.oas.annotations.media.Schema) { return equals((io.swagger.v3.oas.annotations.media.Schema) thisAnnotation, (io.swagger.v3.oas.annotations.media.Schema) thatAnnotation); } else if (thisAnnotation instanceof io.swagger.v3.oas.annotations.media.ArraySchema) { return equals((io.swagger.v3.oas.annotations.media.ArraySchema)thisAnnotation, (io.swagger.v3.oas.annotations.media.ArraySchema)thatAnnotation); } return true; }
public static boolean equals(io.swagger.v3.oas.annotations.media.ArraySchema thisArraySchema, io.swagger.v3.oas.annotations.media.ArraySchema thatArraySchema) { if (thisArraySchema == null && thatArraySchema == null) { return true; } else if (thisArraySchema == null || thatArraySchema == null) { return false; } if (thisArraySchema.maxItems() != thatArraySchema.maxItems()) { return false; } if (thisArraySchema.minItems() != thatArraySchema.minItems()) { return false; } if (thisArraySchema.uniqueItems() != thatArraySchema.uniqueItems()) { return false; } if (!Arrays.equals(thisArraySchema.extensions(), thatArraySchema.extensions())) { return false; } if (!equals(thisArraySchema.schema(), thatArraySchema.schema())) { return false; } return true; }