org.omnaest.utils.structure.table.concrete.internal.helper
Class StripeDataHelper

java.lang.Object
  extended by org.omnaest.utils.structure.table.concrete.internal.helper.StripeDataHelper

public class StripeDataHelper
extends Object

Helper class for TableInternal.StripeData

Author:
Omnaest

Constructor Summary
StripeDataHelper()
           
 
Method Summary
static
<E> boolean
areStripeDataEqualByCellElements(TableInternal.StripeData<E> stripeData1, TableInternal.StripeData<E> stripeData2)
          Returns true, if two TableInternal.StripeData instances have the same Table.CellImmutable.getElement()s in the same order.
static
<E> TableInternal.StripeData<E>
createNewStripeDataFromExisting(TableInternal.StripeDataList<E> stripeDataList, Set<TableInternal.CellData<E>> cellDataSetFilter, TableInternal.StripeData<E>... stripeDatasOld)
          Creates a new TableInternal.StripeData instance which belongs to the given TableInternal.StripeDataList instance and contains the TableInternal.CellData elements from the given old TableInternal.StripeDatas.
static
<E> TableInternal.StripeData<E>
createNewStripeDataFromExisting(TableInternal.StripeDataList<E> stripeDataList, TableInternal.StripeData<E>... stripeDatasOld)
          Creates a new TableInternal.StripeData instance which belongs to the given TableInternal.StripeDataList instance and contains the TableInternal.CellData elements from the given old TableInternal.StripeDatas
static
<E> TableInternal.StripeData<E>
extractStripeDataFromStripe(Table.Stripe<E> stripe)
          Extracts the underlying TableInternal.StripeData from a given Table.Stripe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StripeDataHelper

public StripeDataHelper()
Method Detail

areStripeDataEqualByCellElements

public static <E> boolean areStripeDataEqualByCellElements(TableInternal.StripeData<E> stripeData1,
                                                           TableInternal.StripeData<E> stripeData2)
Returns true, if two TableInternal.StripeData instances have the same Table.CellImmutable.getElement()s in the same order.

Parameters:
stripeData1 -
stripeData2 -
Returns:

extractStripeDataFromStripe

public static <E> TableInternal.StripeData<E> extractStripeDataFromStripe(Table.Stripe<E> stripe)
Extracts the underlying TableInternal.StripeData from a given Table.Stripe

Parameters:
stripe -
Returns:

createNewStripeDataFromExisting

public static <E> TableInternal.StripeData<E> createNewStripeDataFromExisting(TableInternal.StripeDataList<E> stripeDataList,
                                                                              TableInternal.StripeData<E>... stripeDatasOld)
Creates a new TableInternal.StripeData instance which belongs to the given TableInternal.StripeDataList instance and contains the TableInternal.CellData elements from the given old TableInternal.StripeDatas

Parameters:
stripeDataList -
stripeDataOld -
Returns:

createNewStripeDataFromExisting

public static <E> TableInternal.StripeData<E> createNewStripeDataFromExisting(TableInternal.StripeDataList<E> stripeDataList,
                                                                              Set<TableInternal.CellData<E>> cellDataSetFilter,
                                                                              TableInternal.StripeData<E>... stripeDatasOld)
Creates a new TableInternal.StripeData instance which belongs to the given TableInternal.StripeDataList instance and contains the TableInternal.CellData elements from the given old TableInternal.StripeDatas. The TableInternal.CellDatas will be additionally filtered by the given Set of TableInternal.CellDatas, which means that only TableInternal.CellData instances will remain in the new created TableInternal.StripeData if they are contained within the given Set.

Parameters:
stripeDataList -
cellDataSetFilter -
stripeDataOld -
Returns:


Copyright © 2011. All Rights Reserved.