Class PInteger<R>

  • Type Parameters:
    R - the root query bean type

    public final class PInteger<R>
    extends PBaseNumber<R,​Integer>
    Integer property.
    • Constructor Detail

      • PInteger

        public PInteger​(String name,
                        R root)
        Construct with a property name and root instance.
        Parameters:
        name - property name
        root - the root query bean instance
      • PInteger

        public PInteger​(String name,
                        R root,
                        String prefix)
        Construct with additional path prefix.
    • Method Detail

      • bitwiseAnd

        public R bitwiseAnd​(int flags,
                            int mask)
        Add bitwise AND expression of the given bit flags to compare with the match/mask.

        
        
         // Flags Bulk + Size = Size
         // ... meaning Bulk is not set and Size is set
        
         int selectedFlags = BwFlags.HAS_BULK + BwFlags.HAS_SIZE;
         int mask = BwFlags.HAS_SIZE; // Only Size flag set
        
         bitwiseAnd(selectedFlags, mask)
        
         
        Parameters:
        flags - The flags we are looking for
      • bitwiseAll

        public R bitwiseAll​(int flags)
        Add expression for ALL of the given bit flags to be set.
        
        
         bitwiseAll(BwFlags.HAS_BULK + BwFlags.HAS_COLOUR)
        
         
        Parameters:
        flags - The flags we are looking for
      • bitwiseAny

        public R bitwiseAny​(int flags)
        Add expression for ANY of the given bit flags to be set.
        
        
         bitwiseAny(BwFlags.HAS_BULK + BwFlags.HAS_COLOUR)
        
         
        Parameters:
        flags - The flags we are looking for
      • bitwiseNot

        public R bitwiseNot​(int flags)
        Add expression for the given bit flags to be NOT set.
        
        
         bitwiseNot(BwFlags.HAS_COLOUR)
        
         
        Parameters:
        flags - The flags we are looking for