@Override
        public boolean equals (Object obj)
        {
            if (!(obj instanceof PollItem))
                return false;

            PollItem target = (PollItem) obj;
            if (socket != null && socket == target.socket)
                return true;

            if (getRawSocket () != null && getRawSocket () == target.getRawSocket ())
                return true;

            return false;
        }