text stringlengths 3 1.18M |
|---|
/*
* Copyright 2011 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*
* Copyright 2011 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*
* Copyright 2011 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*
* Copyright 2011 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*
* Copyright 2011 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*
* Copyright 2012 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*
* Copyright 2011 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*
* Copyright 2011 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*
* Copyright 2011 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*
* Copyright 2011 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*
* Copyright 2011 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*
* Copyright 2011 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*
* Copyright 2011 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*
* Copyright 2011 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*
* Copyright 2011 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*
* Copyright (C) 2006 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
/*
* Copyright (C) 2006 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
/*
* Copyright (C) 2008 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
/*
* Copyright (C) 2008 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
/*
* Copyright (C) 2009 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
/*
* Copyright (C) 2008 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
/*
* Copyright (C) 2009 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
package org.sky.weather;
import java.util.ArrayList;
import java.util.HashMap;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.LauncherActivity.ListItem;
import android.content.Context;
import android.content.DialogInterface;
import android.content.... |
package org.sky.weather.service;
import org.sky.weather.include.Global;
import org.sky.weather.tool.ConfigUtil;
import org.sky.weather.tool.StaticUtil;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Context;
import android.content.Inten... |
package org.sky.weather.service;
import org.sky.weather.include.Global;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.os.Message;
import android.widget.Toast;
/***********************************
*
* @... |
package org.sky.weather.service;
import java.util.ArrayList;
import org.sky.weather.dao.WeatherDao;
import org.sky.weather.entity.WeatherEntity;
import org.sky.weather.include.Global;
import org.sky.weather.tool.WebServiceUtil;
import android.content.Context;
/**
* @描述 天气服务,提供统一的接口
* @author Alleo... |
package org.sky.weather.service;
import java.util.ArrayList;
import org.sky.weather.entity.WeatherEntity;
import org.sky.weather.include.Global;
import org.sky.weather.tool.ConfigUtil;
import org.sky.weather.tool.StaticUtil;
import android.app.AlarmManager;
import android.app.PendingIntent;
import androi... |
package org.sky.weather;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import org.sky.weather.entity.WeatherEntity;
import org.sky.weather.include.Global;
import org.sky.weather.service.ForecastService;
import org.sky.weather.service.TimeService;
import org.sky.wea... |
package org.sky.weather.entity;
/**
* @文件名 ForecastEntity.java
* @author Alleon
* @时间 2011-03-09 21:27:00
* @描述 预报的详细信息
*/
public class ForecastEntity {
/**
* id
*/
private int id;
/**
* 与WeatherEntity类的id对应
*/
private Integer weatherId;
/**
* 一周的第几天
*/
privat... |
package org.sky.weather.entity;
import java.util.ArrayList;
/**
* @文件名 WeatherEntity.java
* @作者 Alleon
* @时间 2011-03-09 21:25:00
* @描述 天气实体类
*/
public class WeatherEntity {
/**
* ID
*/
private int id;
/**
* 城市名
*/
private String city;
/**
* 城市编码
*/
private String ... |
package org.sky.weather.dao;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.provider.BaseColumns;
import android.util.Log;
import org.sky.weather.include.*;
public class DBHelper extends SQLiteOpenHelper{
pr... |
package org.sky.weather.dao;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import org.sky.weather.R;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.os.Envi... |
package org.sky.weather.dao;
import java.io.Serializable;
import java.util.ArrayList;
import org.sky.weather.entity.ForecastEntity;
import org.sky.weather.entity.WeatherEntity;
import org.sky.weather.include.Global;
import org.sky.weather.tool.StaticUtil;
import android.content.ContentValues;
import an... |
package org.sky.weather.dao;
import java.util.ArrayList;
import org.sky.weather.include.Global;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
public class CityDao {
private DBManager dbManager;
pr... |
package org.sky.weather;
import java.util.ArrayList;
import java.util.HashMap;
import org.sky.weather.dao.CityDao;
import org.sky.weather.service.WeatherService;
import android.app.Activity;
import android.content.Intent;
import android.widget.AdapterView;
import android.widget.Toast;
import android.widg... |
package org.sky.weather;
import java.util.ArrayList;
import java.util.HashMap;
import org.sky.weather.entity.WeatherEntity;
import org.sky.weather.include.Global;
import org.sky.weather.service.WeatherService;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Buil... |
package org.sky.weather.tool;
import java.util.Date;
import org.sky.weather.include.Global;
import android.content.Context;
import android.content.SharedPreferences;
/**
*
* @author Alleon
* @时间 2011-03-07 22:30:00
* @描述 配置信息工具类
*/
public class ConfigUtil {
/**
* 语言,默认为中文
*/
public s... |
package org.sky.weather.tool;
import org.sky.weather.entity.WeatherEntity;
import org.sky.weather.include.Global;
/**
*
* @author Alleon
* @描述 国际化相关
* @时间 2011-04-24 20:31:00
*/
public class i18n {
/**设置语言*/
public static String get_language_title()
{
if (ConfigUtil.HL.equals(Global.ENGL... |
package org.sky.weather.tool;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.regex.Pattern;
import org.sky.weather.entity.ForecastEntity;
import org.sky.weather.entity.WeatherEntity;
import org.sky.weather.include.Global;
import android.app.Activi... |
package org.sky.weather.tool;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.... |
package org.sky.weather.include;
/**
* @文件 Global.java
* @author Alleon
* @时间 2011-03-09 22:04:00
* @描述 提供数据源得常量信息及数据库访问URI
*/
public class Global {
/*
* 支持的最大城市数
*/
public static final int MAX_CITY_NUM = 5;
/**
* 天气预报联网API地址
*/
public static final String WEBSERVICE_URL = ... |
package org.sky.weather;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.content.ComponentName;
import android.content.Context;
import... |
package org.sky.weather;
import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import org.sky.weather.tool.*;
public class ConfigureActivity extends Activity{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanc... |
package org.sky.weather.service;
import org.sky.weather.include.Global;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.os.Message;
import android.widget.Toast;
/***********************************
*
* @... |
package org.sky.weather.service;
import java.util.ArrayList;
import org.sky.weather.dao.WeatherDao;
import org.sky.weather.entity.WeatherEntity;
import org.sky.weather.include.Global;
import org.sky.weather.tool.WebServiceUtil;
import android.content.Context;
/**
* @描述 天气服务,提供统一的接口
* @author Alleo... |
package org.sky.weather.service;
import java.util.ArrayList;
import org.sky.weather.entity.WeatherEntity;
import org.sky.weather.include.Global;
import org.sky.weather.tool.ConfigUtil;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Co... |
package org.sky.weather;
import org.sky.weather.include.Global;
import org.sky.weather.service.ForecastService;
import org.sky.weather.service.TimeService;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.ComponentName;
import android.content.Co... |
package org.sky.weather.entity;
/**
* @文件名 ForecastEntity.java
* @author Alleon
* @时间 2011-03-09 21:27:00
* @描述 预报的详细信息
*/
public class ForecastEntity {
/**
* id
*/
private int id;
/**
* 与WeatherEntity类的id对应
*/
private Integer weatherId;
/**
* 一周的第几天
*/
privat... |
package org.sky.weather.entity;
import java.util.ArrayList;
/**
* @文件名 WeatherEntity.java
* @作者 Alleon
* @时间 2011-03-09 21:25:00
* @描述 天气实体类
*/
public class WeatherEntity {
/**
* ID
*/
private int id;
/**
* 城市名
*/
private String city;
/**
* 城市编码
*/
private String ... |
package org.sky.weather.dao;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.provider.BaseColumns;
import android.util.Log;
import org.sky.weather.include.*;
public class DBHelper extends SQLiteOpenHelper{
pr... |
package org.sky.weather.dao;
import java.util.ArrayList;
import org.sky.weather.entity.ForecastEntity;
import org.sky.weather.entity.WeatherEntity;
import org.sky.weather.include.Global;
import org.sky.weather.tool.StaticUtil;
import android.content.ContentValues;
import android.content.Context;
import... |
package org.sky.weather.tool;
import java.util.Date;
import android.content.Context;
import android.content.SharedPreferences;
/**
*
* @author Alleon
* @时间 2011-03-07 22:30:00
* @描述 配置信息工具类
*/
public class ConfigUtil {
/**
* 语言,默认为中文
*/
public static String HL = "zh-cn";
private stat... |
package org.sky.weather.tool;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.regex.Pattern;
import android.text.format.Time;
/**
* @文件名 StaticUtil.java
* @author Alleon
* @时间 2011-03-09 21:40:00
* @描述 工具类,提供各种转换的静态方法
*/
public class StaticUtil {
/**
* ... |
package org.sky.weather.tool;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.UnsupportedEncodingException;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.StatusLine;
impo... |
package org.sky.weather.include;
/**
* @文件 Global.java
* @author Alleon
* @时间 2011-03-09 22:04:00
* @描述 提供数据源得常量信息及数据库访问URI
*/
public class Global {
/**
* 天气预报联网API地址
*/
public static final String WEBSERVICE_URL = "http://www.google.com/ig/api?weather=%s&hl=%s";
/**
* 数据库配置
... |
package org.sky.weather;
import java.util.ArrayList;
import android.app.Activity;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.DisplayMetrics;
import android.view.Window;
import android.view.Win... |
package com.active.validation.validators;
import java.util.Calendar;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import javax.validation.constraints.Past;
public class PastValidatorForCalendar implements ConstraintValidator<Past, Calendar> {
public void initia... |
package com.active.validation.validators;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import javax.validation.constraints.Size;
public class SizeValidatorForCharSequence implements ConstraintValidator<Size, CharSequence> {
private int min;
private int max;
... |
/*
* Copyright (c) 2013 Active Network Inc. All rights reserved.
*/
package com.active.validation.validators;
import java.math.BigDecimal;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import javax.validation.constraints.Max;
/**
* @author hhao
*
... |
package com.active.validation.validators;
import java.util.Date;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import javax.validation.constraints.Future;
public class FutureValidatorForDate implements ConstraintValidator<Future, Date> {
public void initialize( ... |
package com.active.validation.validators;
import java.util.Date;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import javax.validation.constraints.Past;
public class PastValidatorForDate implements ConstraintValidator<Past, Date> {
public void initialize( Past c... |
package com.active.validation.validators;
import java.util.Calendar;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import javax.validation.constraints.Future;
public class FutureValidatorForCalendar implements ConstraintValidator<Future, Calendar> {
public void ... |
/*
* Copyright (c) 2013 Active Network Inc. All rights reserved.
*/
package com.active.validation.validators;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import javax.validation.constraints.Null;
/**
* @author hhao
*
*/
public class NullValidato... |
package com.active.validation.validators;
import java.util.regex.Matcher;
import java.util.regex.PatternSyntaxException;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import javax.validation.ValidationException;
import javax.validation.constraints.Pattern;
public c... |
/*
* Copyright (c) 2013 Active Network Inc. All rights reserved.
*/
package com.active.validation.validators;
import java.math.BigDecimal;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import javax.validation.constraints.Min;
/**
* @author hhao
*
... |
package com.active.validation.validators;
import static java.util.regex.Pattern.CASE_INSENSITIVE;
import java.net.IDN;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import com.active.validation.constra... |
/*
* Copyright (c) 2013 Active Network Inc. All rights reserved.
*/
package com.active.validation.validators;
import java.math.BigDecimal;
import java.math.BigInteger;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import javax.validation.constraints.Min;
... |
/*
* Copyright (c) 2013 Active Network Inc. All rights reserved.
*/
package com.active.validation.validators;
import java.math.BigDecimal;
import java.math.BigInteger;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import javax.validation.constraints.Max;
... |
/*
* Copyright (c) 2013 Active Network Inc. All rights reserved.
*/
package com.active.validation.validators;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import javax.validation.constraints.NotNull;
/**
* @author hhao
*
*/
public class NotNullVa... |
/*
* Copyright (c) 2013 Active Network Inc. All rights reserved.
*/
package com.active.validation;
import javax.validation.ConstraintValidatorContext;
import javax.validation.metadata.ConstraintDescriptor;
/**
* @author hhao
*
*/
public class ConstraintValidatorContextImpl implements ConstraintVali... |
package com.active.validation.constraints;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementT... |
/*
* Copyright (c) 2013 Active Network Inc. All rights reserved.
*/
package com.active.validation;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorFactory;
import javax.validation.ValidationException;
/**
* @author hhao
*
*/
public class ConstraintValidatorF... |
/*
* Copyright (c) 2013 Active Network Inc. All rights reserved.
*/
package com.active.validation;
import java.util.concurrent.atomic.AtomicBoolean;
import javax.validation.ConstraintValidatorFactory;
import javax.validation.MessageInterpolator;
import javax.validation.ParameterNameProvider;
import javax.... |
package com.active.validation;
import javax.validation.Configuration;
import javax.validation.ValidatorFactory;
import javax.validation.spi.BootstrapState;
import javax.validation.spi.ConfigurationState;
import javax.validation.spi.ValidationProvider;
import com.active.validation.configuration.SimpleBeanConfiguration... |
package com.active.validation;
import java.lang.annotation.ElementType;
import javax.validation.ElementKind;
import javax.validation.Path;
import javax.validation.Path.Node;
import javax.validation.TraversableResolver;
public class DefaultTraversableResolver implements TraversableResolver {
/**
* all properti... |
/*
* Copyright (c) 2013 Active Network Inc. All rights reserved.
*/
package com.active.validation.configuration;
import java.util.Map;
/**
* @author hhao
*
*/
public enum PropertiesEnum {
INTERPOLATE_MESSAGE("InterpolateMessage", "True");
private String key;
private String value;
pri... |
package com.active.validation.configuration;
import java.io.InputStream;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import javax.validation.Bo... |
package com.active.validation.metadata;
import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import javax.validation.ConstraintValidator;
import javax.validation.constraints.AssertF... |
package com.active.validation.metadata;
import java.lang.annotation.ElementType;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.validation.groups.Default;
import javax.validation.metadata.Constraint... |
package com.active.validation.metadata;
import java.util.List;
import java.util.Set;
import javax.validation.metadata.GroupConversionDescriptor;
import javax.validation.metadata.PropertyDescriptor;
public class PropertyDescriptorImpl extends ElementDescriptorImpl implements PropertyDescriptor {
private final S... |
package com.active.validation.metadata;
import java.lang.annotation.Annotation;
import java.lang.annotation.ElementType;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import ... |
package com.active.validation.metadata;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import javax.validation.metadata.BeanDescriptor;
import ja... |
/*
* Copyright (c) 2013 Active Network Inc. All rights reserved.
*/
package com.active.validation.metadata;
import java.io.Serializable;
import java.lang.annotation.Annotation;
import java.lang.reflect.Array;
import java.lang.reflect.GenericArrayType;
import java.lang.reflect.MalformedParameterizedTypeExcep... |
package com.active.validation.metadata;
import java.util.concurrent.ConcurrentHashMap;
public class BeanMetaDataManager {
private static final ConcurrentHashMap<Class<?>, BeanDescriptorImpl<?>> beanDescriptorCache = new ConcurrentHashMap<Class<?>, BeanDescriptorImpl<?>>();
@SuppressWarnings("unchecked")
publ... |
package com.active.validation;
import java.util.Locale;
import java.util.ResourceBundle;
import javax.validation.MessageInterpolator;
import javax.validation.MessageInterpolator.Context;
import javax.validation.metadata.ConstraintDescriptor;
import com.active.validation.configuration.SimpleBeanConfiguration;
/**
... |
/*
* Copyright (c) 2013 Active Network Inc. All rights reserved.
*/
package com.active.validation;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.validation.ConstraintValidatorContext;
import javax.validation.ConstraintViolation;
import ja... |
/*
* Copyright (c) 2013 Active Network Inc. All rights reserved.
*/
package com.active.validation;
import javax.validation.Configuration;
import javax.validation.ConstraintValidatorFactory;
import javax.validation.MessageInterpolator;
import javax.validation.ParameterNameProvider;
import javax.validation.Tr... |
/*
* Copyright (c) 2013 Active Network Inc. All rights reserved.
*/
package com.active.validation;
import java.lang.annotation.Annotation;
import java.lang.annotation.ElementType;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java... |
/*
* Copyright (c) 2013 Active Network Inc. All rights reserved.
*/
package com.active.validation;
import javax.validation.ConstraintValidatorContext;
import javax.validation.ConstraintViolation;
import javax.validation.MessageInterpolator;
import javax.validation.Path;
import javax.validation.metadata.Cons... |
package com.active.validation.util;
import java.lang.annotation.Annotation;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
public class AnnotationUtil {
@SuppressWarnings("unc... |
package com.active.validation.util;
import java.util.ArrayList;
public class ColUtil {
public static <T> ArrayList<T> newArrayList() {
return new ArrayList<T>();
}
}
|
package com.active.validation.util;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import javax.validation.Constraint;
import javax.validation.GroupSequence;
import com.active.validatio... |
package com.active.validation;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import javax.validation.constraints.Size;
import com.active.validation.constraints.Email;
public class Address {
@NotNull
@Size(max = 30)
private String addressline1;
@Size(max = 30)
pri... |
/*
* Copyright (c) 2013 Active Network Inc. All rights reserved.
*/
package com.active.validation.meta;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import javax.validation.constraints.NotNull;
/**
* @author hhao
*
*/
public class NotNullConstrai... |
package com.example.androi_task_manager;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
... |
package org.anddev.andengine.examples;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.anddev.andengine.engine.Engine;
import org.anddev.andengine.engine.camera.Camera;
import org.anddev.andengine.engine.options.EngineOptions;
import org.anddev.andengin... |
package org.anddev.andengine.examples;
import javax.microedition.khronos.opengles.GL10;
import org.anddev.andengine.engine.Engine;
import org.anddev.andengine.engine.camera.Camera;
import org.anddev.andengine.engine.options.EngineOptions;
import org.anddev.andengine.engine.options.EngineOptions.ScreenOrientati... |
package org.anddev.andengine.examples.adt.card;
/**
* (c) 2010 Nicolas Gramlich
* (c) 2011 Zynga Inc.
*
* @author Nicolas Gramlich
* @since 18:59:33 - 18.06.2010
*/
public enum Color {
// ===========================================================
// Elements
// =================================... |
package org.anddev.andengine.examples.adt.card;
/**
* (c) 2010 Nicolas Gramlich
* (c) 2011 Zynga Inc.
*
* @author Nicolas Gramlich
* @since 18:59:46 - 18.06.2010
*/
public enum Value {
// ===========================================================
// Elements
// =================================... |
package org.anddev.andengine.examples.adt.card;
/**
* (c) 2010 Nicolas Gramlich
* (c) 2011 Zynga Inc.
*
* @author Nicolas Gramlich
* @since 18:59:13 - 18.06.2010
*/
public enum Card {
// ===========================================================
// Elements
// ==================================... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.