From c60c4eb2566ecb069d0d19746bcd3072906ab1b1 Mon Sep 17 00:00:00 2001 From: Tomas Date: Fri, 23 Apr 2021 18:21:23 -0300 Subject: [PATCH] fix(qmp): renamed tipo to TipoPrenda #2 --- 01-lecture/quemepongo/src/main/java/quemepongo/Prenda.java | 6 +++--- .../src/main/java/quemepongo/{Tipo.java => TipoPrenda.java} | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename 01-lecture/quemepongo/src/main/java/quemepongo/{Tipo.java => TipoPrenda.java} (92%) diff --git a/01-lecture/quemepongo/src/main/java/quemepongo/Prenda.java b/01-lecture/quemepongo/src/main/java/quemepongo/Prenda.java index 048109b..c1e119a 100644 --- a/01-lecture/quemepongo/src/main/java/quemepongo/Prenda.java +++ b/01-lecture/quemepongo/src/main/java/quemepongo/Prenda.java @@ -16,7 +16,7 @@ public class Prenda { * * @since 1.0 */ - public final Tipo tipo; + public final TipoPrenda tipo; /** * El color primario @@ -57,7 +57,7 @@ public Categoria categoria() { * @author Tomás Sánchez * @since 1.1 */ - public Prenda(Tipo tipoPrenda, Color principal, Material matnr) { + public Prenda(TipoPrenda tipoPrenda, Color principal, Material matnr) { if (Objects.isNull(principal) || Objects.isNull(tipoPrenda) || Objects.isNull(matnr)) throw new IllegalArgumentException("El tipo, color principal y material son obligatorios"); @@ -77,7 +77,7 @@ public Prenda(Tipo tipoPrenda, Color principal, Material matnr) { * @author Tomás Sánchez * @since 1.1 */ - public Prenda(Tipo tipoPrenda, Color principal, Color secundario, Material matnr) { + public Prenda(TipoPrenda tipoPrenda, Color principal, Color secundario, Material matnr) { this(tipoPrenda, principal, matnr); color2 = secundario; } diff --git a/01-lecture/quemepongo/src/main/java/quemepongo/Tipo.java b/01-lecture/quemepongo/src/main/java/quemepongo/TipoPrenda.java similarity index 92% rename from 01-lecture/quemepongo/src/main/java/quemepongo/Tipo.java rename to 01-lecture/quemepongo/src/main/java/quemepongo/TipoPrenda.java index 7578f6e..b946080 100644 --- a/01-lecture/quemepongo/src/main/java/quemepongo/Tipo.java +++ b/01-lecture/quemepongo/src/main/java/quemepongo/TipoPrenda.java @@ -7,7 +7,7 @@ * @version 2.0 * @since 04.20.2021 */ -public enum Tipo { +public enum TipoPrenda { LENTES(Categoria.ACCESORIOS), REMERA_MANGAS_CORTAS(Categoria.SUPERIOR), CAMISA(Categoria.SUPERIOR), JEANS(Categoria.INFERIOR); @@ -37,7 +37,7 @@ Categoria categoria() { * * @since 2.0 */ - Tipo(Categoria cat) { + TipoPrenda(Categoria cat) { categoria = cat; } }