@Override public void acceptAppOffer(Offer offer){
  int index=getIndex(offer,appOffers);
  if (index != -1) {
    appOffers.remove(index);
    appOfferStream.onNext(offer);
  }
  index=getIndex(offer,acceptedOffers);
  if (index == -1) {
    acceptedOffers.add(offer);
  }
}

@ Override public void acceptAppOffer ( Offer offer ) { int index = getIndex ( offer , appOffers ) ; if ( index != - 1 ) { appOffers . remove ( index ) ; appOfferStream . onNext ( offer ) ; } index = getIndex ( offer , acceptedOffers ) ; if ( index == - 1 ) { acceptedOffers . add ( offer ) ; } }
accept app offer remove from app offers list update corresponding app usage
