/** Removes the member from the specified index. <br> * * @param index */ public void removeMember(int index) { Object member = listOfMembers.remove(index); if (member instanceof JIArray) { //we need to remove it's max count values also. listOfMaxCounts.removeAll(((JIArray)member).getConformantMaxCounts()); } else if (member instanceof JIStruct && ((JIStruct)member).arrayAdded) { //we need to remove it's max count values also. listOfMaxCounts.removeAll(((JIStruct)member).getArrayMaxCounts()); } if (listOfMaxCounts.size() == 0) { arrayAdded = false; } }
/** * Removes the member from the specified index. <br> * * @param index */ public void removeMember ( final int index ) { final Object member = this.listOfMembers.remove ( index ); if ( member instanceof JIArray ) { //we need to remove it's max count values also. this.listOfMaxCounts.removeAll ( ( (JIArray)member ).getConformantMaxCounts () ); } else if ( member instanceof JIStruct && ( (JIStruct)member ).arrayAdded ) { //we need to remove it's max count values also. this.listOfMaxCounts.removeAll ( ( (JIStruct)member ).getArrayMaxCounts () ); } if ( this.listOfMaxCounts.size () == 0 ) { this.arrayAdded = false; } }
/** Removes the member from the specified index. <br> * * @param index */ public void removeMember(int index) { Object member = listOfMembers.remove(index); if (member instanceof JIArray) { //we need to remove it's max count values also. listOfMaxCounts.removeAll(((JIArray)member).getConformantMaxCounts()); } else if (member instanceof JIStruct && ((JIStruct)member).arrayAdded) { //we need to remove it's max count values also. listOfMaxCounts.removeAll(((JIStruct)member).getArrayMaxCounts()); } if (listOfMaxCounts.size() == 0) { arrayAdded = false; } }
listOfMaxCounts.addAll(((JIStruct)member).getArrayMaxCounts()); listOfMaxCounts.addAll(((JIStruct)member).getArrayMaxCounts());
listOfMaxCounts.addAll(((JIStruct)member).getArrayMaxCounts()); listOfMaxCounts.addAll(((JIStruct)member).getArrayMaxCounts());
this.listOfMaxCounts.addAll ( ( (JIStruct)member ).getArrayMaxCounts () ); this.listOfMaxCounts.addAll ( ( (JIStruct)member ).getArrayMaxCounts () );