/** * Exposes the size of this collection as a value. */ public synchronized ValueView<Integer> sizeView () { if (_sizeView == null) { _sizeView = Value.create(size()); } return _sizeView; }
/** * Exposes the size of this collection as a value. */ public synchronized ValueView<Integer> sizeView () { if (_sizeView == null) { _sizeView = Value.create(size()); } return _sizeView; }
/** * Updates the reactive size value. The underlying collection need only call this method if it * changes the size of its collection <em>without</em> also calling {@link #notify}. */ protected void updateSize () { if (_sizeView != null) _sizeView.update(size()); }
/** * Updates the reactive size value. The underlying collection need only call this method if it * changes the size of its collection <em>without</em> also calling {@link #notify}. */ protected void updateSize () { if (_sizeView != null) _sizeView.update(size()); }