public DataBufferAdapter(Context paramContext, int paramInt1, int paramInt2, List<DataBuffer<T>> paramList) { this.mContext = paramContext; this.sn = paramInt1; this.sm = paramInt1; this.so = paramInt2; this.sp = paramList; this.sq = ((LayoutInflater)paramContext.getSystemService("layout_inflater")); }
public void clear() { Iterator localIterator = this.sp.iterator(); while (localIterator.hasNext()) ((DataBuffer)localIterator.next()).close(); this.sp.clear(); if (this.sr) notifyDataSetChanged(); }
public int getCount() { int i = 0; Iterator localIterator = this.sp.iterator(); while (localIterator.hasNext()) i += ((DataBuffer)localIterator.next()).getCount(); return i; }
public DataBufferAdapter(Context paramContext, int paramInt1, int paramInt2, DataBuffer<T>[] paramArrayOfDataBuffer) { this(paramContext, paramInt1, paramInt2, Arrays.asList(paramArrayOfDataBuffer)); }
public DataBufferAdapter(Context paramContext, int paramInt, List<DataBuffer<T>> paramList) { this(paramContext, paramInt, 0, paramList); }
public DataBufferAdapter(Context paramContext, int paramInt, DataBuffer<T>[] paramArrayOfDataBuffer) { this(paramContext, paramInt, 0, Arrays.asList(paramArrayOfDataBuffer)); }
public void append(DataBuffer<T> paramDataBuffer) { this.sp.add(paramDataBuffer); if (this.sr) notifyDataSetChanged(); }