/** * 要素数を取得する。 * @return 要素数 */ @Override public int getLength() { int length = super.getLength(); // 要素の値がnullの場合、要素数を1とする if (length == 0 && getBaseValue() == null) { return 1; } return length; }
/** * 要素数を取得する。 * @return 要素数 */ @Override public int getLength() { int length = super.getLength(); // 要素の値がnullの場合、要素数を1とする if (length == 0 && getBaseValue() == null) { return 1; } return length; }