Lines Matching refs:defaultValue
137 * <var>defaultValue</var>.
140 * @param defaultValue the value to return if the tag is not available.
142 public int getAttributeInt(String tag, int defaultValue) {
144 if (value == null) return defaultValue;
148 return defaultValue;
155 * <var>defaultValue</var>.
158 * @param defaultValue the value to return if the tag is not available.
160 public double getAttributeDouble(String tag, double defaultValue) {
162 if (value == null) return defaultValue;
165 if (index == -1) return defaultValue;
167 if (denom == 0) return defaultValue;
171 return defaultValue;
316 * <var>defaultValue</var>.
318 * @param defaultValue the value to return if the tag is not available.
320 public double getAltitude(double defaultValue) {
327 return defaultValue;