Back to project page epgreader-android.
The source code is released under:
Apache License
If you think the Android project epgreader-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jeffpalm.android.util; /*from w w w . ja v a2 s . c o m*/ /** * A value with a settable expanded value. * * @type T The type of the underlying value. */ public final class ExpandableValue<T> { private final T value; private boolean isExpanded = false; public static <T> ExpandableValue<T> create(T value) { return new ExpandableValue<T>(value); } public ExpandableValue(T value) { this.value = value; } public T getValue() { return value; } public boolean isExpanded() { return isExpanded; } public void toggle() { isExpanded = !isExpanded; } }