Lines Matching refs:defaultValue
118 * <var>defaultValue</var>.
121 * @param defaultValue the value to return if the tag is not available.
123 public int getAttributeInt(String tag, int defaultValue) {
125 if (value == null) return defaultValue;
129 return defaultValue;
136 * <var>defaultValue</var>.
139 * @param defaultValue the value to return if the tag is not available.
141 public double getAttributeDouble(String tag, double defaultValue) {
143 if (value == null) return defaultValue;
146 if (index == -1) return defaultValue;
148 if (denom == 0) return defaultValue;
152 return defaultValue;