public int getLightSourceCount(int instrumentIndex) { for (Iterator iter = delegates.iterator(); iter.hasNext();) { Object o = iter.next(); if (o instanceof MetadataRetrieve) { MetadataRetrieve retrieve = (MetadataRetrieve) o; int result = retrieve.getLightSourceCount(instrumentIndex); if (result >= 0) return result; } } return -1; }
public int getLightSourceCount(int instrumentIndex) { for (Iterator iter = delegates.iterator(); iter.hasNext();) { Object o = iter.next(); if (o instanceof MetadataRetrieve) { MetadataRetrieve retrieve = (MetadataRetrieve) o; int result = retrieve.getLightSourceCount(instrumentIndex); if (result >= 0) return result; } } return -1; }
lightSourceCount = src.getLightSourceCount(instrumentIndex);