/** * Equivalent to {@code NANOSECONDS.convert(duration, this)}. * @param duration the duration * @return the converted duration, * or {@code Long.MIN_VALUE} if conversion would negatively * overflow, or {@code Long.MAX_VALUE} if it would positively overflow. * @see #convert */ public long toNanos(long duration) { throw new AbstractMethodError(); }
/** * is called in onViewAttachedToWindow when the view is detached from the window * * @param viewHolder the viewHolder for the type at this position * @param position the position of this viewHolder */ @Override public void onViewAttachedToWindow(RecyclerView.ViewHolder viewHolder, int position) { IItem item = FastAdapter.getHolderAdapterItem(viewHolder, position); if (item != null) { try { item.attachToWindow(viewHolder); if (viewHolder instanceof FastAdapter.ViewHolder) { ((FastAdapter.ViewHolder) viewHolder).attachToWindow(item); } } catch (AbstractMethodError e) { Log.e("FastAdapter", e.toString()); } } }
sn = strategy.getShortName(arc); } catch (AbstractMethodError x) { LOGGER.log(WARNING, "JENKINS-12753 fix not active: {0}", x.getMessage()); p = strategy.createPluginWrapper(arc); sn = p.getShortName();
/** * Equivalent to {@code HOURS.convert(duration, this)}. * @param duration the duration * @return the converted duration, * or {@code Long.MIN_VALUE} if conversion would negatively * overflow, or {@code Long.MAX_VALUE} if it would positively overflow. * @see #convert */ public long toHours(long duration) { throw new AbstractMethodError(); }
/** * Equivalent to {@code MILLISECONDS.convert(duration, this)}. * @param duration the duration * @return the converted duration, * or {@code Long.MIN_VALUE} if conversion would negatively * overflow, or {@code Long.MAX_VALUE} if it would positively overflow. * @see #convert */ public long toMillis(long duration) { throw new AbstractMethodError(); }
/** * Equivalent to {@code MINUTES.convert(duration, this)}. * @param duration the duration * @return the converted duration, * or {@code Long.MIN_VALUE} if conversion would negatively * overflow, or {@code Long.MAX_VALUE} if it would positively overflow. * @see #convert */ public long toMinutes(long duration) { throw new AbstractMethodError(); }
/** * Equivalent to {@code DAYS.convert(duration, this)}. * @param duration the duration * @return the converted duration * @see #convert */ public long toDays(long duration) { throw new AbstractMethodError(); }
/** * Equivalent to {@code MICROSECONDS.convert(duration, this)}. * @param duration the duration * @return the converted duration, * or {@code Long.MIN_VALUE} if conversion would negatively * overflow, or {@code Long.MAX_VALUE} if it would positively overflow. * @see #convert */ public long toMicros(long duration) { throw new AbstractMethodError(); }
/** * Equivalent to {@code SECONDS.convert(duration, this)}. * @param duration the duration * @return the converted duration, * or {@code Long.MIN_VALUE} if conversion would negatively * overflow, or {@code Long.MAX_VALUE} if it would positively overflow. * @see #convert */ public long toSeconds(long duration) { throw new AbstractMethodError(); }
/** * Convert the given time duration in the given unit to this * unit. Conversions from finer to coarser granularities * truncate, so lose precision. For example converting * {@code 999} milliseconds to seconds results in * {@code 0}. Conversions from coarser to finer granularities * with arguments that would numerically overflow saturate to * {@code Long.MIN_VALUE} if negative or {@code Long.MAX_VALUE} * if positive. * * <p>For example, to convert 10 minutes to milliseconds, use: * {@code TimeUnit.MILLISECONDS.convert(10L, TimeUnit.MINUTES)} * * @param sourceDuration the time duration in the given {@code sourceUnit} * @param sourceUnit the unit of the {@code sourceDuration} argument * @return the converted duration in this unit, * or {@code Long.MIN_VALUE} if conversion would negatively * overflow, or {@code Long.MAX_VALUE} if it would positively overflow. */ public long convert(long sourceDuration, TimeUnit2 sourceUnit) { throw new AbstractMethodError(); }
/** * Convert the given time duration in the given unit to this * unit. Conversions from finer to coarser granularities * truncate, so lose precision. For example converting * {@code 999} milliseconds to seconds results in * {@code 0}. Conversions from coarser to finer granularities * with arguments that would numerically overflow saturate to * {@code Long.MIN_VALUE} if negative or {@code Long.MAX_VALUE} * if positive. * * <p>For example, to convert 10 minutes to milliseconds, use: * {@code TimeUnit.MILLISECONDS.convert(10L, TimeUnit.MINUTES)} * * @param sourceDuration the time duration in the given {@code sourceUnit} * @param sourceUnit the unit of the {@code sourceDuration} argument * @return the converted duration in this unit, * or {@code Long.MIN_VALUE} if conversion would negatively * overflow, or {@code Long.MAX_VALUE} if it would positively overflow. */ public long convert(long sourceDuration, TimeUnit sourceUnit) { throw new AbstractMethodError(); }
/** * Equivalent to {@code MICROSECONDS.convert(duration, this)}. * @param duration the duration * @return the converted duration, * or {@code Long.MIN_VALUE} if conversion would negatively * overflow, or {@code Long.MAX_VALUE} if it would positively overflow. * @see #convert */ public long toMicros(long duration) { throw new AbstractMethodError(); }
/** * Equivalent to {@code SECONDS.convert(duration, this)}. * @param duration the duration * @return the converted duration, * or {@code Long.MIN_VALUE} if conversion would negatively * overflow, or {@code Long.MAX_VALUE} if it would positively overflow. * @see #convert */ public long toSeconds(long duration) { throw new AbstractMethodError(); }
/** * Equivalent to {@code NANOSECONDS.convert(duration, this)}. * @param duration the duration * @return the converted duration, * or {@code Long.MIN_VALUE} if conversion would negatively * overflow, or {@code Long.MAX_VALUE} if it would positively overflow. * @see #convert */ public long toNanos(long duration) { throw new AbstractMethodError(); }
/** * Equivalent to {@code MINUTES.convert(duration, this)}. * @param duration the duration * @return the converted duration, * or {@code Long.MIN_VALUE} if conversion would negatively * overflow, or {@code Long.MAX_VALUE} if it would positively overflow. * @see #convert * @since 1.6 */ public long toMinutes(long duration) { throw new AbstractMethodError(); }
/** * Equivalent to {@code HOURS.convert(duration, this)}. * @param duration the duration * @return the converted duration, * or {@code Long.MIN_VALUE} if conversion would negatively * overflow, or {@code Long.MAX_VALUE} if it would positively overflow. * @see #convert * @since 1.6 */ public long toHours(long duration) { throw new AbstractMethodError(); }
/** * Equivalent to {@code MILLISECONDS.convert(duration, this)}. * @param duration the duration * @return the converted duration, * or {@code Long.MIN_VALUE} if conversion would negatively * overflow, or {@code Long.MAX_VALUE} if it would positively overflow. * @see #convert */ public long toMillis(long duration) { throw new AbstractMethodError(); }
/** * Equivalent to {@code DAYS.convert(duration, this)}. * @param duration the duration * @return the converted duration * @see #convert * @since 1.6 */ public long toDays(long duration) { throw new AbstractMethodError(); }
public double toB(double size) { throw new AbstractMethodError(); }
public double toTB(double size) { throw new AbstractMethodError(); }