This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final class Preconditions { | |
private Preconditions() {} | |
/* | |
* Ensures the truth of an expression involving one or more parameters to the calling method. | |
* | |
* @param expression a boolean expression | |
* @throws IllegalArgumentException if {@code expression} is false | |
*/ | |
static void checkArgument(boolean expression) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AddToCartHelper { | |
@Inject | |
Context mContext; | |
/** | |
* @param v 移动对象 | |
* @param fromXDelta 开始位置X轴偏移 | |
* @param fromYDelta 开始位置Y轴偏移 | |
* @param fx 开始移动时 v 的x坐标 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.gson.Gson | |
apply plugin: 'com.android.application' | |
apply plugin: 'android-apt' | |
def verCode = 5 | |
def verName = "2.0" | |
def getBuildTime() { |