org.gnu.glib
Class Flags

java.lang.Object
  |
  +--org.gnu.glib.Flags
Direct Known Subclasses:
AccelFlags, AttachOptions, CalendarDisplayOptions, CellRendererState, DebugFlag, DestDefaults, DragAction, EventMask, FontMask, GrabStatus, InputCondition, ModifierType, ObjectFlags, RcFlags, SignalRunType, TargetFlags, WidgetFlags, WindowAttributesType, WindowHints, WindowState, WMDecoration, WMFunction

public class Flags
extends java.lang.Object

Base class for all classes resulting from a define-flags in a .defs file.


Method Summary
 boolean equals(java.lang.Object other)
          Compare this to another object.
 int getValue()
          Get the raw value of the object.
 int hashCode()
          Get the hash code for this instance.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getValue

public final int getValue()
Get the raw value of the object.

Returns:
the raw value.

hashCode

public final int hashCode()
Get the hash code for this instance. It is the same as its value.

Overrides:
hashCode in class java.lang.Object
Returns:
the hash code

equals

public final boolean equals(java.lang.Object other)
Compare this to another object. The comparison is only true when the other object is also a Flags and when the values match.

Overrides:
equals in class java.lang.Object
Parameters:
other - the object to compare to
Returns:
the result of comparison

Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net