Java tutorial
//package com.java2s; //License from project: Apache License import android.support.annotation.NonNull; import java.util.UUID; public class Main { /** * Check if the specified UUID style is short style. * * @param src the UUID * @return true if the UUID is short style */ private static boolean isShortUuid(@NonNull final UUID src) { return ((src.getMostSignificantBits() & 0xffff0000ffffffffL) == 0L) && (src.getLeastSignificantBits() == 0L); } }