@ Nonnull @ ReturnsMutableCopy public static PLTable createWithPercentage ( @ Nonnull @ Nonempty final float ... aPercentages ) { ValueEnforcer . notEmpty ( aPercentages , "Percentages" ) ; final ICommonsList < WidthSpec > aWidths = new CommonsArrayList <> ( aPercentages . length ) ; for ( final float fPercentage : aPercentages ) aWidths . ( WidthSpec . perc ( fPercentage ) ) ; return new PLTable ( aWidths ) ; }
Create a new table with the specified percentages .