Exemplo n.º 1
0
 public Builder addSession(Session session) {
   boolean flag1 = true;
   boolean flag;
   if (!zzapJ) {
     flag = true;
   } else {
     flag = false;
   }
   zzx.zzb(
       flag,
       "All sessions already marked for deletion.  addSession() cannot be combined with deleteAllSessions()");
   if (session != null) {
     flag = true;
   } else {
     flag = false;
   }
   zzx.zzb(flag, "Must specify a valid session");
   if (session.getEndTime(TimeUnit.MILLISECONDS) > 0L) {
     flag = flag1;
   } else {
     flag = false;
   }
   zzx.zzb(
       flag, "Cannot delete an ongoing session. Please stop the session prior to deleting it");
   zzapH.add(session);
   return this;
 }
Exemplo n.º 2
0
 private void zzsf() {
   if (!zzapH.isEmpty()) {
     Iterator iterator = zzapH.iterator();
     while (iterator.hasNext()) {
       Session session = (Session) iterator.next();
       boolean flag;
       if (session.getStartTime(TimeUnit.MILLISECONDS) >= zzMS
           && session.getEndTime(TimeUnit.MILLISECONDS) <= zzann) {
         flag = true;
       } else {
         flag = false;
       }
       zzx.zza(
           flag,
           "Session %s is outside the time interval [%d, %d]",
           new Object[] {session, Long.valueOf(zzMS), Long.valueOf(zzann)});
     }
   }
 }