@Test public void testGetConditionally() throws Exception { assertNull(HoodUtil.getConditionally("hello", false)); assertEquals("hello", HoodUtil.getConditionally("hello", true)); }
public static <T> T getConditionally(T object, boolean shouldReturnEntry) { return shouldReturnEntry ? object : null; }
HoodUtil { public static <T> T getConditionally(T object, boolean shouldReturnEntry) { return shouldReturnEntry ? object : null; } }
HoodUtil { public static <T> T getConditionally(T object, boolean shouldReturnEntry) { return shouldReturnEntry ? object : null; } private  HoodUtil(); }
HoodUtil { public static <T> T getConditionally(T object, boolean shouldReturnEntry) { return shouldReturnEntry ? object : null; } private  HoodUtil(); static String byteToHex(byte[] bytes); static T getConditionally(T object, boolean shouldReturnEntry); static Locale getCurrentLocale(Context ctx); static String humanReadableByteCount(long bytes, boolean si); static String millisToDaysHoursMinString(long millis); static String toSimpleDateTimeFormat(long millisEpochUtc); static String obfuscateAndShorten(@Nullable String original, int maxCharLengthLeftOrRight,
                                             char obfuscationChar); }
HoodUtil { public static <T> T getConditionally(T object, boolean shouldReturnEntry) { return shouldReturnEntry ? object : null; } private  HoodUtil(); static String byteToHex(byte[] bytes); static T getConditionally(T object, boolean shouldReturnEntry); static Locale getCurrentLocale(Context ctx); static String humanReadableByteCount(long bytes, boolean si); static String millisToDaysHoursMinString(long millis); static String toSimpleDateTimeFormat(long millisEpochUtc); static String obfuscateAndShorten(@Nullable String original, int maxCharLengthLeftOrRight,
                                             char obfuscationChar);  }