1 package com.android.launcher3.util; 2 3 public interface FlagOp { 4 5 FlagOp NO_OP = i -> i; 6 apply(int flags)7 int apply(int flags); 8 addFlag(int flag)9 static FlagOp addFlag(int flag) { 10 return i -> i | flag; 11 } 12 removeFlag(int flag)13 static FlagOp removeFlag(int flag) { 14 return i -> i & ~flag; 15 } 16 } 17