From 9d932766bd2c7102d60fcc701f94e5276f373ea7 Mon Sep 17 00:00:00 2001 From: Travis Keep Date: Wed, 30 Jan 2013 17:31:21 +0000 Subject: [PATCH] ICU-9628 Make comments regarding the meaning of gender styles more concise. X-SVN-Rev: 33095 --- .../core/src/com/ibm/icu/util/GenderInfo.java | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/icu4j/main/classes/core/src/com/ibm/icu/util/GenderInfo.java b/icu4j/main/classes/core/src/com/ibm/icu/util/GenderInfo.java index 757cc51aea0..d2de55cc1ec 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/util/GenderInfo.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/util/GenderInfo.java @@ -1,6 +1,6 @@ /* ******************************************************************************* - * Copyright (C) 2003-2012, Google, International Business Machines Corporation and * + * Copyright (C) 2003-2013, Google, International Business Machines Corporation and * * others. All Rights Reserved. * ******************************************************************************* */ @@ -58,17 +58,23 @@ public class GenderInfo { */ public enum ListGenderStyle { /** - * Always OTHER (if more than one). + * For an empty list, returns OTHER; + * For a single item, returns its gender; + * Otherwise always OTHER. */ NEUTRAL, /** - * gender(all male) = male, gender(all female) = female, otherwise gender(list) = other. - * In particular, any 'other' value makes the overall gender be 'other'. + * For an empty list, returns OTHER; + * For a single item, returns its gender; + * Otherwise gender(all male) = male, gender(all female) = female, otherwise gender(list) = other. + * So any 'other' value makes the overall gender be 'other'. */ MIXED_NEUTRAL, /** - * If more than one, gender(all female) = female, otherwise gender(list) = male. - * If more than one, any 'other' value makes the overall gender be 'male'. + * For an empty list, returns OTHER; + * For a single item, returns its gender; + * Otherwise, gender(all female) = female, otherwise gender(list) = male. + * So for more than one item, any 'other' value makes the overall gender be 'male'. */ MALE_TAINTS; -- 2.49.0