예제 #1
0
파일: Mode.java 프로젝트: luoli523/tachyon
 /**
  * Sets {@link Mode} bits using a digital representation.
  *
  * @param n the digital representation of a {@link Mode}
  */
 public void fromShort(short n) {
   Bits[] v = Bits.values();
   set(v[(n >>> 6) & 7], v[(n >>> 3) & 7], v[n & 7]);
 }
예제 #2
0
파일: Mode.java 프로젝트: luoli523/tachyon
 /**
  * @param mode the digital representation of a {@link Mode}
  * @return the group {@link Bits}
  */
 public static Bits extractGroupBits(short mode) {
   return Bits.values()[(mode >>> 3) & 7];
 }
예제 #3
0
파일: Mode.java 프로젝트: luoli523/tachyon
 /**
  * @param mode the digital representation of a {@link Mode}
  * @return the other {@link Bits}
  */
 public static Bits extractOtherBits(short mode) {
   return Bits.values()[mode & 7];
 }
예제 #4
0
파일: Mode.java 프로젝트: luoli523/tachyon
 /**
  * @param mode the digital representation of a {@link Mode}
  * @return the owner {@link Bits}
  */
 public static Bits extractOwnerBits(short mode) {
   return Bits.values()[(mode >>> 6) & 7];
 }