/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
@SuppressWarnings("unchecked")
public class JRSUIState {
// static HashSet<JRSUIState> states = new HashSet<JRSUIState>();
final long encodedState;
long derivedEncodedState;
}
}
}
boolean isDerivationSame() {
return encodedState == derivedEncodedState;
}
if (isDerivationSame()) return (T)this;
final T derivation = (T)createDerivation();
// if (!states.add(derivation)) {
// System.out.println("dupe: " + states.size());
// }
return derivation;
}
return (T)new JRSUIState(derivedEncodedState);
}
public void reset() {
}
}
}
if (!(obj instanceof JRSUIState)) return false;
}
return (byte)((derivedEncodedState & property.encoding.mask) >> property.encoding.shift) == property.ordinal;
}
public int hashCode() {
}
final int animationFrame;
super(encodedState);
}
boolean isDerivationSame() {
}
}
public void reset() {
super.reset();
}
this.derivedAnimationFrame = frame;
}
}
if (!(obj instanceof AnimationFrameState)) return false;
}
public int hashCode() {
return super.hashCode() ^ animationFrame;
}
}
final double value;
double derivedValue;
super(encodedState);
}
boolean isDerivationSame() {
}
}
public void reset() {
super.reset();
}
}
}
if (!(obj instanceof ValueState)) return false;
}
public int hashCode() {
}
}
super(encodedState, value);
}
}
}
}
final double thumbProportion;
double derivedThumbProportion;
final double thumbStart;
double derivedThumbStart;
ScrollBarState(final long encodedState, final double value, final double thumbProportion, final double thumbStart) {
super(encodedState, value);
}
boolean isDerivationSame() {
return super.isDerivationSame() && (thumbProportion == derivedThumbProportion) && (thumbStart == derivedThumbStart);
}
return (T)new ScrollBarState(derivedEncodedState, derivedValue, derivedThumbProportion, derivedThumbStart);
}
public void reset() {
super.reset();
}
}
}
}
if (!(obj instanceof ScrollBarState)) return false;
return (thumbProportion == ((ScrollBarState)obj).thumbProportion) && (thumbStart == ((ScrollBarState)obj).thumbStart) && super.equals(obj);
}
public int hashCode() {
final long bits = Double.doubleToRawLongBits(thumbProportion) ^ Double.doubleToRawLongBits(thumbStart);
}
}
}