Changes lingering isMapContainer to isMap (#7747)

* Changes lingering isMapContainer to isMap

* Adds ensure up to date updates
This commit is contained in:
Justin Black
2020-10-18 20:07:33 -07:00
committed by GitHub
parent fed9d0637a
commit 2ee0913d4a
11 changed files with 314 additions and 2 deletions

View File

@@ -79,6 +79,14 @@ public class AdditionalPropertiesClass {
return this;
}
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
if (this.mapProperty == null) {
this.mapProperty = new HashMap<>();
}
this.mapProperty.put(key, mapPropertyItem);
return this;
}
/**
* Get mapProperty
* @return mapProperty
@@ -103,6 +111,14 @@ public class AdditionalPropertiesClass {
return this;
}
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
if (this.mapOfMapProperty == null) {
this.mapOfMapProperty = new HashMap<>();
}
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
return this;
}
/**
* Get mapOfMapProperty
* @return mapOfMapProperty
@@ -209,6 +225,14 @@ public class AdditionalPropertiesClass {
return this;
}
public AdditionalPropertiesClass putMapWithUndeclaredPropertiesAnytype3Item(String key, Object mapWithUndeclaredPropertiesAnytype3Item) {
if (this.mapWithUndeclaredPropertiesAnytype3 == null) {
this.mapWithUndeclaredPropertiesAnytype3 = new HashMap<>();
}
this.mapWithUndeclaredPropertiesAnytype3.put(key, mapWithUndeclaredPropertiesAnytype3Item);
return this;
}
/**
* Get mapWithUndeclaredPropertiesAnytype3
* @return mapWithUndeclaredPropertiesAnytype3
@@ -257,6 +281,14 @@ public class AdditionalPropertiesClass {
return this;
}
public AdditionalPropertiesClass putMapWithUndeclaredPropertiesStringItem(String key, String mapWithUndeclaredPropertiesStringItem) {
if (this.mapWithUndeclaredPropertiesString == null) {
this.mapWithUndeclaredPropertiesString = new HashMap<>();
}
this.mapWithUndeclaredPropertiesString.put(key, mapWithUndeclaredPropertiesStringItem);
return this;
}
/**
* Get mapWithUndeclaredPropertiesString
* @return mapWithUndeclaredPropertiesString

View File

@@ -95,6 +95,14 @@ public class MapTest {
return this;
}
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
if (this.mapMapOfString == null) {
this.mapMapOfString = new HashMap<>();
}
this.mapMapOfString.put(key, mapMapOfStringItem);
return this;
}
/**
* Get mapMapOfString
* @return mapMapOfString
@@ -119,6 +127,14 @@ public class MapTest {
return this;
}
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
if (this.mapOfEnumString == null) {
this.mapOfEnumString = new HashMap<>();
}
this.mapOfEnumString.put(key, mapOfEnumStringItem);
return this;
}
/**
* Get mapOfEnumString
* @return mapOfEnumString
@@ -143,6 +159,14 @@ public class MapTest {
return this;
}
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
if (this.directMap == null) {
this.directMap = new HashMap<>();
}
this.directMap.put(key, directMapItem);
return this;
}
/**
* Get directMap
* @return directMap
@@ -167,6 +191,14 @@ public class MapTest {
return this;
}
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
if (this.indirectMap == null) {
this.indirectMap = new HashMap<>();
}
this.indirectMap.put(key, indirectMapItem);
return this;
}
/**
* Get indirectMap
* @return indirectMap

View File

@@ -107,6 +107,14 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
return this;
}
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
if (this.map == null) {
this.map = new HashMap<>();
}
this.map.put(key, mapItem);
return this;
}
/**
* Get map
* @return map

View File

@@ -431,6 +431,18 @@ public class NullableClass extends HashMap<String, Object> {
return this;
}
public NullableClass putObjectNullablePropItem(String key, Object objectNullablePropItem) {
if (this.objectNullableProp == null || !this.objectNullableProp.isPresent()) {
this.objectNullableProp = JsonNullable.<Map<String, Object>>of(new HashMap<>());
}
try {
this.objectNullableProp.get().put(key, objectNullablePropItem);
} catch (java.util.NoSuchElementException e) {
// this can never happen, as we make sure above that the value is present
}
return this;
}
/**
* Get objectNullableProp
* @return objectNullableProp
@@ -465,6 +477,18 @@ public class NullableClass extends HashMap<String, Object> {
return this;
}
public NullableClass putObjectAndItemsNullablePropItem(String key, Object objectAndItemsNullablePropItem) {
if (this.objectAndItemsNullableProp == null || !this.objectAndItemsNullableProp.isPresent()) {
this.objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>of(new HashMap<>());
}
try {
this.objectAndItemsNullableProp.get().put(key, objectAndItemsNullablePropItem);
} catch (java.util.NoSuchElementException e) {
// this can never happen, as we make sure above that the value is present
}
return this;
}
/**
* Get objectAndItemsNullableProp
* @return objectAndItemsNullableProp
@@ -499,6 +523,14 @@ public class NullableClass extends HashMap<String, Object> {
return this;
}
public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNullableItem) {
if (this.objectItemsNullable == null) {
this.objectItemsNullable = new HashMap<>();
}
this.objectItemsNullable.put(key, objectItemsNullableItem);
return this;
}
/**
* Get objectItemsNullable
* @return objectItemsNullable