Package io.helins.linux.i2c
Class I2CFlags
- java.lang.Object
-
- io.helins.linux.i2c.I2CFlags
-
public class I2CFlags extends Object
Class holding flags for describing an I2C message.- See Also:
I2CMessage
-
-
Constructor Summary
Constructors Constructor Description I2CFlags()Basic constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I2CFlagsclear()Unsets all flags.booleanequals(I2CFlags flags)Are those two sets of flags equal ?booleanequals(Object o)booleanisSet(I2CFlag flag)Is this flag set ?I2CFlagsset(I2CFlag flag)Sets this flag.I2CFlagsunset(I2CFlag flag)Unsets this flags.
-
-
-
Method Detail
-
isSet
public boolean isSet(I2CFlag flag)
Is this flag set ?- Parameters:
flag- Tested flag.- Returns:
- True if the flag is set.
-
set
public I2CFlags set(I2CFlag flag)
Sets this flag.- Parameters:
flag- Flag to be set.- Returns:
- This instance.
-
unset
public I2CFlags unset(I2CFlag flag)
Unsets this flags.- Parameters:
flag- Flag to be unset.- Returns:
- This instance.
-
clear
public I2CFlags clear()
Unsets all flags.- Returns:
- This instance.
-
equals
public boolean equals(I2CFlags flags)
Are those two sets of flags equal ?- Parameters:
flags- Another set of flags.- Returns:
- True of equal.
-
-