/** * Returns the values used in this map as array. The values are returned in the insertation order. * * @return the array filled with the values. */ public Object[] values() { return values( new Object[ size ] ); }
/** * Returns the values used in this map as array. The values are returned in the insertation order. * * @return the array filled with the values. */ public Object[] values() { return values(new Object[size]); }
public synchronized StyleKey[] getKeys( final StyleKey[] input ) { return (StyleKey[]) knownStyleKeys.values( input ); }
/** * Returns an iterator over the entry list. The iterator returns AttributeList.AttributeEntry objects. * * @return the iterator over the entries contained in this list. * @deprecated use toArray instead. */ public Iterator iterator() { return Arrays.asList( entryList.values() ).iterator(); }
public synchronized StyleKey[] getKeys() { return (StyleKey[]) knownStyleKeys.values( new StyleKey[ knownStyleKeys.size() ] ); }
public AttributeEntry[] toArray() { if ( arrayCache == null ) { arrayCache = (AttributeEntry[]) entryList.values( new AttributeEntry[ entryList.size() ] ); } return (AttributeEntry[]) arrayCache.clone(); }
protected ParameterDataRow computeParameterData() { AbstractReportDefinition parent = getReport(); final ParameterDataRow parameterRow; if ( parent instanceof MasterReport ) { final MasterReport mr = (MasterReport) parent; final LinkedMap values = computeParameterValueMap( mr ); parameterRow = new ParameterDataRow( (String[]) values.keys( new String[values.size()] ), values.values() ); } else if ( parent instanceof SubReport ) { final SubReport sr = (SubReport) parent; final ParameterMapping[] inputMappings = sr.getInputMappings(); final Object[] values = new Object[inputMappings.length]; final String[] names = new String[inputMappings.length]; for ( int i = 0; i < inputMappings.length; i++ ) { final ParameterMapping inputMapping = inputMappings[i]; names[i] = inputMapping.getAlias(); } parameterRow = new ParameterDataRow( names, values ); } else { parameterRow = new ParameterDataRow(); } return parameterRow; }