src/org/tiefaces/components/websheet/utility/ShiftFormulaUtility.java
public static Ptg[] convertSharedFormulas(final Ptg[] ptgs,
			final ShiftFormulaRef shiftFormulaRef) {

		List<Ptg> newPtgList = new ArrayList<>();
		Object ptg;
		for (int k = 0; k < ptgs.length; ++k) {
			ptg = ptgs[k];
			newPtgList.addAll(Arrays
					.asList(convertPtg(ptgs, k, shiftFormulaRef, ptg)));
		}

		return newPtgList.toArray(new Ptg[newPtgList.size()]);
	}
public static Ptg[] convertSharedFormulas(final Ptg[] ptgs,
			final ShiftFormulaRef shiftFormulaRef) {

		List<Ptg> newPtgList = new ArrayList<>();
		Object ptg;
		for (int k = 0; k < ptgs.length; ++k) {
			ptg = ptgs[k];
			newPtgList.addAll(Arrays
					.asList(convertPtg(ptgs, k, shiftFormulaRef, ptg)));
		}

		return newPtgList.toArray(new Ptg[newPtgList.size()]);
	}
public static Ptg [ ] convertSharedFormulas ( final Ptg [ ] ptgs , final ShiftFormulaRef shiftFormulaRef ) { List < Ptg > newPtgList = new ArrayList <> ( ) ; Object ptg ; for ( int k = 0 ; k < ptgs . length ; ++ k ) { ptg = ptgs [ k ] ; newPtgList . addAll ( Arrays . asList ( convertPtg ( ptgs , k , shiftFormulaRef , ptg ) ) ) ; } return newPtgList . toArray ( new Ptg [ newPtgList . size ( ) ] ) ; }
Convert shared formulas.

@param ptgs
the ptgs
@param shiftFormulaRef
the shift formula ref
@return the ptg[]
Convert shared formulas .