public override bool Equals(object other)
 {
     if (!(other is BooleanUserPreferenceArray))
     {
         return false;
     }
     BooleanUserPreferenceArray array = (BooleanUserPreferenceArray)other;
     return ((this.id == array.id) && this.ids.SequenceEqual<long>(array.ids));
 }
        public override PreferenceArray getPreferencesFromUser(long userID)
        {
            FastIDSet set = this.preferenceFromUsers.get(userID);

            if (set == null)
            {
                throw new NoSuchUserException(userID);
            }
            PreferenceArray    array      = new BooleanUserPreferenceArray(set.size());
            int                i          = 0;
            IEnumerator <long> enumerator = set.GetEnumerator();

            while (enumerator.MoveNext())
            {
                array.setUserID(i, userID);
                array.setItemID(i, enumerator.Current);
                i++;
            }
            return(array);
        }
 internal PreferenceView(BooleanUserPreferenceArray arr, int i)
 {
     this.i = i;
     this.arr = arr;
 }