Java tutorial
//package com.java2s; /** * Appcelerator Titanium Mobile * Copyright (c) 2009-2012 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ public class Main { public static final int DEFAULT_UPDATE_FREQUENCY = 5000; private static int buildUpdateFrequency(Integer frequency) { if (frequency != null) { return frequency.intValue() * 1000; } else { return DEFAULT_UPDATE_FREQUENCY; } } }