From 2f39bc8edeb07f6096a513bd0bd6e4c228e0b028 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Tue, 22 Oct 2019 13:49:25 +0200 Subject: Fix comments in ZMI --- .../edu/mimuw/cloudatlas/model/AttributesMap.java | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/pl/edu/mimuw/cloudatlas/model/AttributesMap.java') diff --git a/src/pl/edu/mimuw/cloudatlas/model/AttributesMap.java b/src/pl/edu/mimuw/cloudatlas/model/AttributesMap.java index da13819..4065ad6 100644 --- a/src/pl/edu/mimuw/cloudatlas/model/AttributesMap.java +++ b/src/pl/edu/mimuw/cloudatlas/model/AttributesMap.java @@ -44,12 +44,12 @@ public class AttributesMap implements Iterable>, Cloneab } /** - * Adds to this map a new attribute mapping to the specified value. The - * attribute cannot already exist in the map. To overwrite an existing attribute, use method + * Adds a new attribute-value mapping. The + * attribute cannot already exist in the map. To overwrite an existing attribute, use * {@link #addOrChange(Attribute, Value)} instead. * * @param attribute the attribute to add - * @param value the value for the attribute + * @param value the value for attribute * @throws IllegalArgumentException if the attribute already exists in this map * @throws NullPointerException if either the attribute or the value is null; * for null value, create a Value object containing null @@ -122,7 +122,7 @@ public class AttributesMap implements Iterable>, Cloneab } /** - * Adds a new attribute< mapping to the specified value or overwrites an existing one. Convenient + * Adds a new attribute mapping to the specified value or overwrites an existing one. Convenient * version of {@link #addOrChange(Attribute, Value)}. * * @param name the attribute name @@ -165,13 +165,13 @@ public class AttributesMap implements Iterable>, Cloneab } /** - * Gets the value mapped to the specified attribute. If such mapping does not exist, this method throws - * an exception. If this is not an expected behavior, use method {@link #getOrNull(Attribute)} instead. + * Gets the value mapped to the specified attribute. If such a mapping does not exist, this method throws + * an exception. If this is not an expected behavior, use {@link #getOrNull(Attribute)} instead. * * @param attribute the attribute to obtain - * @return the value mapped to the attribute - * @throws IllegalArgumentException if no value is mapped to the attribute - * @throws NullPointerException if the attribute is null + * @return the value mapped to attribute + * @throws IllegalArgumentException if no value is mapped to attribute + * @throws NullPointerException if attribute is null * @see #getOrNull(Attribute) * @see #get(String) */ @@ -200,7 +200,7 @@ public class AttributesMap implements Iterable>, Cloneab * returns null if the requested mapping does not exist. * * @param attribute the attribute to obtain - * @return the value mapped to the attribute or null if it does not exist + * @return the value mapped to attribute or null if it does not exist * @throws NullPointerException if the attribute is null * @see #get(Attribute) * @see #getOrNull(String) @@ -223,11 +223,11 @@ public class AttributesMap implements Iterable>, Cloneab } /** - * Removes the specified attribute and its value from this map. If the attribute does not - * exist, this method performs nothing. + * Removes the specified attribute and its value from this map. If attribute does not + * exist, this method doesn't do anything. * * @param attribute the attribute to remove - * @throws NullPointerException if the attribute is null + * @throws NullPointerException if attribute is null * @see #remove(String) */ public void remove(Attribute attribute) { -- cgit v1.2.3