Java 类com.google.android.gms.common.data.DataBuffer 实例源码

项目:QuizUpWinner    文件:DataBufferAdapter.java   
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"));
}
项目:QuizUpWinner    文件:DataBufferAdapter.java   
public void clear()
{
  Iterator localIterator = this.sp.iterator();
  while (localIterator.hasNext())
    ((DataBuffer)localIterator.next()).close();
  this.sp.clear();
  if (this.sr)
    notifyDataSetChanged();
}
项目:QuizUpWinner    文件:DataBufferAdapter.java   
public int getCount()
{
  int i = 0;
  Iterator localIterator = this.sp.iterator();
  while (localIterator.hasNext())
    i += ((DataBuffer)localIterator.next()).getCount();
  return i;
}
项目:QuizUpWinner    文件:DataBufferAdapter.java   
public DataBufferAdapter(Context paramContext, int paramInt1, int paramInt2, DataBuffer<T>[] paramArrayOfDataBuffer)
{
  this(paramContext, paramInt1, paramInt2, Arrays.asList(paramArrayOfDataBuffer));
}
项目:QuizUpWinner    文件:DataBufferAdapter.java   
public DataBufferAdapter(Context paramContext, int paramInt, List<DataBuffer<T>> paramList)
{
  this(paramContext, paramInt, 0, paramList);
}
项目:QuizUpWinner    文件:DataBufferAdapter.java   
public DataBufferAdapter(Context paramContext, int paramInt, DataBuffer<T>[] paramArrayOfDataBuffer)
{
  this(paramContext, paramInt, 0, Arrays.asList(paramArrayOfDataBuffer));
}
项目:QuizUpWinner    文件:DataBufferAdapter.java   
public void append(DataBuffer<T> paramDataBuffer)
{
  this.sp.add(paramDataBuffer);
  if (this.sr)
    notifyDataSetChanged();
}