Merge branch 'develop' of https://git.royalpay.com.au/git/royalv2.manage into develop
commit
ab6c1dc34b
@ -0,0 +1,23 @@
|
|||||||
|
package au.com.royalpay.payment.manage.activities.app_index.beans;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by yuan on 2018/3/23.
|
||||||
|
*/
|
||||||
|
public enum ActAppShowPlaceEnum {
|
||||||
|
App(1),
|
||||||
|
Banner(10),
|
||||||
|
List(100);
|
||||||
|
private int place;
|
||||||
|
|
||||||
|
private ActAppShowPlaceEnum(int placeValue) {
|
||||||
|
this.place = placeValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getPlace() {
|
||||||
|
return this.place;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean hasPlace(int placeValue) {
|
||||||
|
return (this.place & placeValue) > 0;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue