diff --git a/src/FormGenerationAirbus.java b/src/FormGenerationAirbus.java index 03117cf..39f09ae 100644 --- a/src/FormGenerationAirbus.java +++ b/src/FormGenerationAirbus.java @@ -58,7 +58,7 @@ public class FormGenerationAirbus extends JFrame { new Color(rand.nextInt(0, 256), rand.nextInt(0, 256), rand.nextInt(0, 256)), rand.nextBoolean(), rand.nextBoolean()); } - generic.addAirbus(entity); + generic.add(entity); // генерация иллюминаторов IDrawningPortholes potholes; int n = rand.nextInt(3); @@ -69,7 +69,7 @@ public class FormGenerationAirbus extends JFrame { else potholes = new DrawningPortholesSquare(); potholes.SetCount(rand.nextInt(1,4)*10); - generic.addPortholes(potholes); + generic.add(potholes); // отрисовка _airbus = generic.randomDrawingObject(); diff --git a/src/Generics/GenericParametrized.java b/src/Generics/GenericParametrized.java index 0767a63..0512b93 100644 --- a/src/Generics/GenericParametrized.java +++ b/src/Generics/GenericParametrized.java @@ -28,7 +28,7 @@ public class GenericParametrized(); } - public boolean addAirbus(T airbus) + public boolean add(T airbus) { if (airbus == null || CountAirbus >= MaxCountAirbus) return false; @@ -37,7 +37,7 @@ public class GenericParametrized= MaxCountPortoles) return false;