code: public boolean add(SpdData data) {
          if (data == null)
              return false;
          if (data instanceof SpdLong) {
              return super.add(data);
          } else {
              return false;
          }
      }
docs: Check data type and call super.add to add data - synchronized in super