blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 410 | content_id stringlengths 40 40 | detected_licenses listlengths 0 51 | license_type stringclasses 2 values | repo_name stringlengths 5 132 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 80 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 684M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 132 values | src_encoding stringclasses 34 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 3 9.45M | extension stringclasses 28 values | content stringlengths 3 9.45M | authors listlengths 1 1 | author_id stringlengths 0 352 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7f6762a2c74d74810bea5526cd7be5b997c1a711 | 9a71c570a7ecac9a4b42dcac21e21b9ab898320e | /CustomerManagementSystem/src/com/capg/cust/ui/User.java | 2ef302dc0f5454c5d239d7d00604f7bebb9f3096 | [] | no_license | ranadeepajay/demo | e6e497ddcdfc6cefd9c52f92f9999f66726e8819 | 9290cc3d105a171ad4ff5b619af9b64e1ff3b2f6 | refs/heads/master | 2021-01-05T13:49:06.374208 | 2020-02-17T07:23:15 | 2020-02-17T07:23:15 | 241,040,128 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,950 | java | package com.capg.cust.ui;
import java.sql.Date;
import java.util.Scanner;
import com.capg.cust.bean.Customer;
import com.capg.cust.service.CustomerService;
import com.capg.cust.service.ICustomerService;
public class User {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in=new Scanner(System.in);
ICustomerService service=new CustomerService();
while(true)
{
System.out.println("*****menu*****");
System.out.println("*1.add customer*");
System.out.println("*2.update customer*");
System.out.println("*3.select customer By id*");
System.out.println("*4.select customer by id*");
System.out.println("*5.select all customer *");
System.out.println("*6.exit*");
System.out.println();
System.out.println();
System.out.println();
System.out.println("enter ur choice");
int choice =in.nextInt();
switch (choice) {
case 1:
Customer customerBean=new Customer();
System.out.println("enter id");
int cid=in.nextInt();
in.nextLine();
System.out.println("enter name");
String cName=in.nextLine();
// in.nextLine();
System.out.println("enter amount");
double amount=in.nextDouble();
//Date doj= Date.valueOf(in.nextLine());
customerBean.setAmount(amount);
customerBean.setCid(cid);
customerBean.setcName(cName);
// customerBean.setDoj(doj);
boolean isvalid= CustomerService.userValidation(customerBean);
if(isvalid) {
int x =service.addCustomer(customerBean);
}
else
{
continue;
}
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
case 6:
break;
default:
System.err.println("invalid choice try again");
break;
}
}
}
}
| [
"ADMIN@ECE-LAB-193"
] | ADMIN@ECE-LAB-193 |
e7b4d778f6bdf446349a845b983ffee886e1333d | 8f4380708a8d92e52ce2ed80ee650aabe35ac749 | /testGit/src/main/java/domain/Person.java | f34b15a4847d05245c239b6a6991bd52da07ddf8 | [] | no_license | humenmiku/gittest | 88a3bc7d4427d3b451e5fdaea3b355703244f25f | 1226ffac5b63412d1701b46fd005c2fc7e0d6a4c | refs/heads/master | 2023-01-24T02:45:07.426572 | 2020-11-23T07:01:50 | 2020-11-23T07:01:50 | 315,185,043 | 0 | 0 | null | 2020-11-23T03:25:58 | 2020-11-23T02:58:45 | null | UTF-8 | Java | false | false | 113 | java | package domain;
public class Person {
private String name;
private Integer age;
private String id;
}
| [
"gkdxdmaoligei@163.com"
] | gkdxdmaoligei@163.com |
9758515e2805736d24803d6c1664e485292a455f | 3bf2529241103df0996440a4a50092822d45abc4 | /src/main/java/net/ninjacat/pop500/api/callbacks/OnBitmapListener.java | d373634b1e58a9ea2ade5b72bb1f0ce1327fece0 | [
"Apache-2.0"
] | permissive | uaraven/Pop500 | cea0951d3801dc904ccdd082425564643d2c5b18 | ae7e53756bcda1f073865c5c2e95e66d9badac03 | refs/heads/master | 2020-03-31T11:30:35.339077 | 2014-02-13T15:16:37 | 2014-02-13T15:16:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 208 | java | package net.ninjacat.pop500.api.callbacks;
import android.graphics.Bitmap;
public interface OnBitmapListener {
void bitmapAvailable(String key, Bitmap bitmap);
void bitmapFailed(Throwable fail);
}
| [
"ovoronin@gmail.com"
] | ovoronin@gmail.com |
36147909f90b57d7660e064aab94a2d2423c4cbf | 9329071c7a74c2bf206b7bdf7edd984748d205b3 | /src/main/java/io/sporkpgm/module/modules/region/exception/InvalidRegionException.java | d8f9ea28593204b556ae8c80e7cf45e80cd3d33d | [] | no_license | simba3rcks/SporkPGM | c102e0ee55dcab5ef59360b79d3e9caf39029942 | a32f017f579967e9ae66e11e2edf614bcce0d700 | refs/heads/master | 2021-01-18T06:05:10.373516 | 2014-06-10T21:49:24 | 2014-06-10T21:49:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 377 | java | package io.sporkpgm.module.modules.region.exception;
import io.sporkpgm.module.exceptions.ModuleBuildException;
import org.jdom2.Element;
public class InvalidRegionException extends ModuleBuildException {
private static final long serialVersionUID = -8988962714866893205L;
public InvalidRegionException(Element element, String message) {
super(element, message);
}
}
| [
"harry.fox.ic@icloud.com"
] | harry.fox.ic@icloud.com |
9867c79c2ae85ea7cadce8ea22497a56cbd9f087 | cd6c199441cbdb958797983cca67e3048faf9262 | /src/main/java/com/mana/spring/dao/PasswordResetDAO.java | d275dd37efcc1ec05b0bd6c002e0a7afef71307d | [] | no_license | nik8singh/blueberry | 9e0491d2f680a237ee2792f496eb6f7ca0543865 | 4e57e6419f2a141490a24b37ac711bceaae41115 | refs/heads/master | 2022-12-20T07:18:31.671313 | 2021-01-23T00:29:47 | 2021-01-23T00:29:47 | 148,213,464 | 1 | 0 | null | 2022-12-15T23:39:39 | 2018-09-10T20:15:08 | Java | UTF-8 | Java | false | false | 260 | java | package com.mana.spring.dao;
import com.mana.spring.domain.PasswordReset;
public interface PasswordResetDAO {
long savePasswordReset(PasswordReset passwordReset);
PasswordReset getPasswordReset(String token);
void deleteToken(String token);
}
| [
"nscoder8@gmail.com"
] | nscoder8@gmail.com |
eaa6278be3855e6952426fd4b5cc5be69649ddde | a0b58788f463fc324db4b2c8882f4e1ad2bb9334 | /app/src/main/java/com/shade/journey/base/MapLocationHelper.java | d6c1c48da0ca6e1f9fd0b7225386c86017b27a7a | [
"Apache-2.0"
] | permissive | 1210958801/Journey | 22fb6caa7a8bc0b39d0d5f7eb30efc7778f4291d | 832301801494bf0c669dd555a6cd91d20a7972c6 | refs/heads/master | 2020-04-22T19:51:22.694297 | 2019-02-14T04:09:56 | 2019-02-14T04:09:56 | 170,621,389 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,994 | java | package com.shade.journey.base;
import android.content.Context;
import android.util.Log;
import com.amap.api.location.AMapLocation;
import com.amap.api.location.AMapLocationClient;
import com.amap.api.location.AMapLocationClientOption;
import com.amap.api.location.AMapLocationListener;
public class MapLocationHelper implements AMapLocationListener {
/**
* 声明mlocationClient对象
*/
private AMapLocationClient mLocationClient;
/**
* 声明mLocationOption对象
*/
public AMapLocationClientOption mLocationOption = null;
private LocationCallBack mLocationCallBack;
private Context mContext;
public MapLocationHelper(Context context) {
mContext = context;
initLocation();
}
public MapLocationHelper(Context context, LocationCallBack locationCallback) {
mContext = context;
mLocationCallBack = locationCallback;
initLocation();
}
/**
* 初始化定位参数
*/
private void initLocation() {
mLocationClient = new AMapLocationClient(mContext);
mLocationOption = new AMapLocationClientOption();
// 设置定位监听
mLocationClient.setLocationListener(this);
// 设置定位模式为高精度模式,Battery_Saving为低功耗模式,Device_Sensors是仅设备模式
mLocationOption.setLocationMode(AMapLocationClientOption.AMapLocationMode.Hight_Accuracy);
// 设置定位间隔,单位毫秒,默认为2000ms
mLocationOption.setInterval(2000);
// 设置定位参数
mLocationClient.setLocationOption(mLocationOption);
}
/**
* 设置回调
* @param locationCallBack
*/
public void setLocationCallBack(LocationCallBack locationCallBack){
mLocationCallBack = locationCallBack;
}
/**
* 开启定位
*/
public void startMapLocation() {
if (!mLocationClient.isStarted()) {
mLocationClient.startLocation();
}
}
/**
* 停止定位服务
*/
public void stopMapLocation() {
if (mLocationClient.isStarted()) {
mLocationClient.stopLocation();
}
}
@Override
public void onLocationChanged(AMapLocation aMapLocation) {
if (aMapLocation != null) {
if (aMapLocation.getErrorCode() == 0) {
// 可在其中解析amapLocation获取相应内容。
mLocationCallBack.onCallLocationSuc(aMapLocation);
stopMapLocation();
} else {
//定位失败时,可通过ErrCode(错误码)信息来确定失败的原因,errInfo是错误信息,详见错误码表。
Log.e("AmapError", "location Error, ErrCode:"
+ aMapLocation.getErrorCode() + ", errInfo:"
+ aMapLocation.getErrorInfo());
stopMapLocation();
}
} else {
stopMapLocation();
}
}
} | [
"lzyBeyond86@163.com"
] | lzyBeyond86@163.com |
1bcde86b93c39d98a6f916d9322fd5c57a603756 | e9e167b19297e84b10b101d2e228d3e5be729a9f | /demo/src/main/java/com/example/demo/test/Test2.java | 06fa3aae2e4f04116c374adf3559551563d4c023 | [] | no_license | X-Yu/test | eb0b29ad2ae938d76681ca3a8c005b768cb3a378 | ca9aa5944ff6dcb14a8bd2e730a59da9913700e8 | refs/heads/master | 2023-07-11T01:30:05.719764 | 2021-08-12T03:35:43 | 2021-08-12T03:35:43 | 395,185,144 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 278 | java | package com.example.demo.test;
/**
* @ClassName : Test2 //类名
* @Description : //描述
* @Author : lhy //作者
* @Date: 2020-09-23 16:01 //时间
*/
public class Test2 extends AbstractTest
{
@Override
public boolean m2() {
return false;
}
}
| [
"lihanyu@xinyusoft.com"
] | lihanyu@xinyusoft.com |
066e160d9863ac127f8ab9b54c7044cb568ea2d3 | f6ece9edadc81fcebc236827480627346b692a9d | /lib/DevApp/src/main/java/dev/utils/common/ConvertUtils.java | 9173e931de55762f4b54b868e41363c1ba7e9d09 | [
"Apache-2.0"
] | permissive | ExpLife0011/DevUtils | 55d65c9b5195d5f9ecec662d2f7852b9a0533430 | ede5b8df6f3fb11f1c9a9ba9031fe1c8daf17664 | refs/heads/master | 2021-01-08T22:30:31.243973 | 2020-02-20T16:00:45 | 2020-02-20T16:00:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 56,664 | java | package dev.utils.common;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Arrays;
import dev.utils.JCLogUtils;
/**
* detail: 转换工具类 (Byte、Hex 等 )
* @author Ttt
* <pre>
* byte 是字节数据类型、有符号型的、占 1 个字节、大小范围为 [ -128 - 127]
* 当大于 127 时则开始缩进 127 = 127, 128 = -128, 129 = -127
* char 是字符数据类型、无符号型的、占 2 个字节 (unicode 码 )、大小范围为 [0 - 65535]
* <p></p>
* Binary( 二进制 ) toBinaryString
* Oct( 八进制 )
* Dec( 十进制 )
* Hex( 十六进制 ) 以 0x 开始的数据表示十六进制
* <p></p>
* 位移加密: bytesBitwiseAND(byte[] bytes)
* @see <a href="http://www.runoob.com/java/java-operators.html"/>
* </pre>
*/
public final class ConvertUtils {
private ConvertUtils() {
}
// 日志 TAG
private static final String TAG = ConvertUtils.class.getSimpleName();
// 用于建立十六进制字符的输出的小写字符数组
private static final char[] HEX_DIGITS = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
// 用于建立十六进制字符的输出的大写字符数组
private static final char[] HEX_DIGITS_UPPER = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
/**
* Object 转换所需类型对象
* @param object Object
* @param <T> 泛型
* @return Object convert T object
*/
public static <T> T convert(final Object object) {
if (object == null) return null;
try {
return (T) object;
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "convert");
}
return null;
}
/**
* Object 转 String
* @param data byte[]
* @return {@link String}
* @deprecated {@link #newString}
*/
@Deprecated
public static String toString(final byte[] data) throws Exception {
return newString(data, null);
}
/**
* Object 转 String
* @param data byte[]
* @param defaultStr 默认字符串
* @return {@link String} 如果转换失败则返回 defaultStr
* @deprecated {@link #newString}
*/
@Deprecated
public static String toString(final byte[] data, final String defaultStr) throws Exception {
return newString(data, defaultStr);
}
/**
* Object 转 String
* @param data char[]
* @return {@link String}
* @deprecated {@link #newString}
*/
@Deprecated
public static String toString(final char[] data) throws Exception {
return newString(data, null);
}
/**
* Object 转 String
* @param data char[]
* @param defaultStr 默认字符串
* @return {@link String} 如果转换失败则返回 defaultStr
* @deprecated {@link #newString}
*/
@Deprecated
public static String toString(final char[] data, final String defaultStr) throws Exception {
return newString(data, defaultStr);
}
/**
* Object 转 String
* @param value Value
* @return {@link String}
*/
public static String newString(final Object value) {
return newString(value, null);
}
/**
* Object 转 String
* @param value Value
* @param defaultStr 默认字符串
* @return {@link String} 如果转换失败则返回 defaultStr
*/
public static String newString(final Object value, final String defaultStr) {
if (value != null) {
try {
if (value instanceof byte[]) {
return new String((byte[]) value);
}
if (value instanceof char[]) {
return new String((char[]) value);
}
if (value instanceof String) {
return (String) value;
}
if (value instanceof StringBuffer) {
return new String((StringBuffer) value);
}
if (value instanceof StringBuilder) {
return new String((StringBuilder) value);
}
throw new Exception("can not new string, value : " + value);
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "newString");
}
}
return defaultStr;
}
/**
* Object 转 String
* @param object Object
* @return {@link String}
*/
public static String toString(final Object object) {
return toString(object, null);
}
/**
* Object 转 String
* @param object Object
* @param defaultStr 默认字符串
* @return {@link String} 如果转换失败则返回 defaultStr
*/
public static String toString(final Object object, final String defaultStr) {
if (object != null) {
try {
if (object instanceof String) {
return (String) object;
}
if (object instanceof Integer) {
return Integer.toString((Integer) object);
}
if (object instanceof Boolean) {
return Boolean.toString((Boolean) object);
}
if (object instanceof Long) {
return Long.toString((Long) object);
}
if (object instanceof Double) {
return Double.toString((Double) object);
}
if (object instanceof Float) {
return Float.toString((Float) object);
}
if (object instanceof Byte) {
return Byte.toString((Byte) object);
}
if (object instanceof Character) {
return Character.toString((Character) object);
}
if (object instanceof Short) {
return Short.toString((Short) object);
}
Class<?> clazz = object.getClass();
// 判断是否数组类型
if (clazz.isArray()) {
// = 基本数据类型 =
if (clazz.isAssignableFrom(int[].class)) {
return Arrays.toString((int[]) object);
} else if (clazz.isAssignableFrom(boolean[].class)) {
return Arrays.toString((boolean[]) object);
} else if (clazz.isAssignableFrom(long[].class)) {
return Arrays.toString((long[]) object);
} else if (clazz.isAssignableFrom(double[].class)) {
return Arrays.toString((double[]) object);
} else if (clazz.isAssignableFrom(float[].class)) {
return Arrays.toString((float[]) object);
} else if (clazz.isAssignableFrom(byte[].class)) {
return Arrays.toString((byte[]) object);
} else if (clazz.isAssignableFrom(char[].class)) {
return Arrays.toString((char[]) object);
} else if (clazz.isAssignableFrom(short[].class)) {
return Arrays.toString((short[]) object);
}
return Arrays.toString((Object[]) object);
}
return object.toString();
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toString");
}
}
return defaultStr;
}
/**
* Object 转 Integer
* @param value Value
* @return Integer
*/
public static Integer toInt(final Object value) {
return toInt(value, 0);
}
/**
* Object 转 Integer
* @param value Value
* @param defaultValue 默认值
* @return Integer, 如果转换失败则返回 defaultValue
*/
public static Integer toInt(final Object value, final Integer defaultValue) {
if (value == null) return defaultValue;
try {
if (value instanceof Integer) {
return (Integer) value;
}
if (value instanceof Number) {
return ((Number) value).intValue();
}
if (value instanceof String) {
String strVal = (String) value;
if (strVal.indexOf(',') != 0) {
strVal = strVal.replaceAll(",", "");
}
return Integer.parseInt(strVal);
}
if (value instanceof Boolean) {
return ((Boolean) value).booleanValue() ? 1 : 0;
}
throw new Exception("can not cast to int, value : " + value);
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toInt");
}
return defaultValue;
}
/**
* Object 转 Boolean
* @param value Value
* @return Boolean
*/
public static Boolean toBoolean(final Object value) {
return toBoolean(value, false);
}
/**
* Object 转 Boolean
* @param value Value
* @param defaultValue 默认值
* @return Boolean, 如果转换失败则返回 defaultValue
*/
public static Boolean toBoolean(final Object value, final Boolean defaultValue) {
if (value == null) return defaultValue;
try {
if (value instanceof Boolean) {
return (Boolean) value;
}
if (value instanceof Number) {
return ((Number) value).intValue() == 1;
}
if (value instanceof String) {
String strVal = (String) value;
if ("true".equalsIgnoreCase(strVal) || "1".equals(strVal)) {
return Boolean.TRUE;
}
if ("false".equalsIgnoreCase(strVal) || "0".equals(strVal)) {
return Boolean.FALSE;
}
// YES、TRUE
if ("Y".equalsIgnoreCase(strVal) || "T".equalsIgnoreCase(strVal)) {
return Boolean.TRUE;
}
// NO、FALSE
if ("N".equalsIgnoreCase(strVal) || "F".equalsIgnoreCase(strVal)) {
return Boolean.FALSE;
}
}
throw new Exception("can not cast to boolean, value : " + value);
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toBoolean");
}
return defaultValue;
}
/**
* Object 转 Float
* @param value Value
* @return Float
*/
public static Float toFloat(final Object value) {
return toFloat(value, 0f);
}
/**
* Object 转 Float
* @param value Value
* @param defaultValue 默认值
* @return Float, 如果转换失败则返回 defaultValue
*/
public static Float toFloat(final Object value, final Float defaultValue) {
if (value == null) return defaultValue;
try {
if (value instanceof Float) {
return (Float) value;
}
if (value instanceof Number) {
return ((Number) value).floatValue();
}
if (value instanceof String) {
String strVal = (String) value;
if (strVal.indexOf(',') != 0) {
strVal = strVal.replaceAll(",", "");
}
return Float.parseFloat(strVal);
}
throw new Exception("can not cast to float, value : " + value);
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toFloat");
}
return defaultValue;
}
/**
* Object 转 Double
* @param value Value
* @return Double
*/
public static Double toDouble(final Object value) {
return toDouble(value, 0d);
}
/**
* Object 转 Double
* @param value Value
* @param defaultValue 默认值
* @return Double, 如果转换失败则返回 defaultValue
*/
public static Double toDouble(final Object value, final Double defaultValue) {
if (value == null) return defaultValue;
try {
if (value instanceof Double) {
return (Double) value;
}
if (value instanceof Number) {
return ((Number) value).doubleValue();
}
if (value instanceof String) {
String strVal = (String) value;
if (strVal.indexOf(',') != 0) {
strVal = strVal.replaceAll(",", "");
}
return Double.parseDouble(strVal);
}
throw new Exception("can not cast to double, value : " + value);
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toDouble");
}
return defaultValue;
}
/**
* Object 转 Long
* @param value Value
* @return Long
*/
public static Long toLong(final Object value) {
return toLong(value, 0L);
}
/**
* Object 转 Long
* @param value Value
* @param defaultValue 默认值
* @return Long, 如果转换失败则返回 defaultValue
*/
public static Long toLong(final Object value, final Long defaultValue) {
if (value == null) return defaultValue;
try {
if (value instanceof Long) {
return (Long) value;
}
if (value instanceof Number) {
return ((Number) value).longValue();
}
if (value instanceof String) {
String strVal = (String) value;
if (strVal.indexOf(',') != 0) {
strVal = strVal.replaceAll(",", "");
}
return Long.parseLong(strVal);
}
throw new Exception("can not cast to long, value : " + value);
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toLong");
}
return defaultValue;
}
/**
* Object 转 Short
* @param value Value
* @return Short
*/
public static Short toShort(final Object value) {
return toShort(value, (short) 0);
}
/**
* Object 转 Short
* @param value Value
* @param defaultValue 默认值
* @return Short, 如果转换失败则返回 defaultValue
*/
public static Short toShort(final Object value, final Short defaultValue) {
if (value == null) return defaultValue;
try {
if (value instanceof Short) {
return (Short) value;
}
if (value instanceof Number) {
return ((Number) value).shortValue();
}
if (value instanceof String) {
String strVal = (String) value;
return Short.parseShort(strVal);
}
throw new Exception("can not cast to short, value : " + value);
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toShort");
}
return defaultValue;
}
/**
* Object 转 Character
* @param value Value
* @return Character
*/
public static Character toChar(final Object value) {
return toChar(value, (char) 0);
}
/**
* Object 转 Character
* @param value Value
* @param defaultValue 默认值
* @return Character, 如果转换失败则返回 defaultValue
*/
public static Character toChar(final Object value, final Character defaultValue) {
if (value == null) return defaultValue;
try {
if (value instanceof Character) {
return (Character) value;
}
if (value instanceof String) {
String strVal = (String) value;
if (strVal.length() == 1) {
return strVal.charAt(0);
}
}
throw new Exception("can not cast to char, value : " + value);
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toChar");
}
return defaultValue;
}
/**
* Object 转 Byte
* @param value Value
* @return Byte
*/
public static byte toByte(final Object value) {
return toByte(value, (byte) 0);
}
/**
* Object 转 Byte
* @param value Value
* @param defaultValue 默认值
* @return Byte, 如果转换失败则返回 defaultValue
*/
public static byte toByte(final Object value, final Byte defaultValue) {
if (value == null) return defaultValue;
try {
if (value instanceof Byte) {
return (Byte) value;
}
if (value instanceof Number) {
return ((Number) value).byteValue();
}
if (value instanceof String) {
String strVal = (String) value;
return Byte.parseByte(strVal);
}
throw new Exception("can not cast to byte, value : " + value);
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toByte");
}
return defaultValue;
}
/**
* Object 转 BigDecimal
* @param value Value
* @return BigDecimal
*/
public static BigDecimal toBigDecimal(final Object value) {
return toBigDecimal(value, new BigDecimal(0));
}
/**
* Object 转 BigDecimal
* @param value Value
* @param defaultValue 默认值
* @return BigDecimal, 如果转换失败则返回 defaultValue
*/
public static BigDecimal toBigDecimal(final Object value, final BigDecimal defaultValue) {
if (value == null) return defaultValue;
try {
if (value instanceof BigDecimal) {
return (BigDecimal) value;
}
if (value instanceof BigInteger) {
return new BigDecimal((BigInteger) value);
}
if (value instanceof String) {
String strVal = (String) value;
return new BigDecimal(strVal);
}
throw new Exception("can not cast to BigDecimal, value : " + value);
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toBigDecimal");
}
return defaultValue;
}
/**
* Object 转 BigInteger
* @param value Value
* @return BigInteger
*/
public static BigInteger toBigInteger(final Object value) {
return toBigInteger(value, BigInteger.valueOf(0L));
}
/**
* Object 转 BigInteger
* @param value Value
* @param defaultValue 默认值
* @return BigInteger, 如果转换失败则返回 defaultValue
*/
public static BigInteger toBigInteger(final Object value, final BigInteger defaultValue) {
if (value == null) return defaultValue;
try {
if (value instanceof BigInteger) {
return (BigInteger) value;
}
if (value instanceof Float || value instanceof Double) {
return BigInteger.valueOf(((Number) value).longValue());
}
if (value instanceof String) {
String strVal = (String) value;
return new BigInteger(strVal);
}
throw new Exception("can not cast to BigInteger, value : " + value);
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toBigInteger");
}
return defaultValue;
}
/**
* Object 获取 char[]
* @param value Value
* @return char[]
*/
public static char[] toChars(final Object value) {
try {
if (value instanceof char[]) {
return (char[]) value;
}
if (value instanceof String) {
return ((String) value).toCharArray();
}
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toChars");
}
return null;
}
/**
* Object 获取 byte[]
* @param value Value
* @return byte[]
*/
public static byte[] toBytes(final Object value) {
try {
if (value instanceof byte[]) {
return (byte[]) value;
}
if (value instanceof String) {
return ((String) value).getBytes();
}
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toBytes");
}
return null;
}
/**
* char 转换 unicode 编码
* @param value char
* @return int
*/
public static int toCharInt(final char value) {
return (int) value;
}
/**
* Object 获取 char ( 默认第一位 )
* @param value Value
* @param defaultValue 默认值
* @return 第一位值, 如果获取失败则返回 defaultValue
*/
public static char charAt(final Object value, final char defaultValue) {
return charAt(value, 0, defaultValue);
}
/**
* Object 获取 char
* @param value Value
* @param pos 索引
* @param defaultValue 默认值
* @return 指定索引的值, 如果获取失败则返回 defaultValue
*/
public static char charAt(final Object value, final int pos, final char defaultValue) {
if (value == null || pos < 0) return defaultValue;
try {
return toChars(value)[pos];
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "charAt");
}
return defaultValue;
}
// =
/**
* 字符串转换对应的进制
* <pre>
* 如: parseInt("1f603", 16) = 128515
* </pre>
* @param str String
* @param radix 进制
* @return 对应进制的值
*/
public static int parseInt(final String str, final int radix) {
if (str == null) return -1;
try {
return Integer.parseInt(str, radix);
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "parseInt");
}
return -1;
}
/**
* 字符串转换对应的进制
* @param str String
* @param radix 进制
* @return 对应进制的值
*/
public static long parseLong(final String str, final int radix) {
if (str == null) return -1;
try {
return Long.parseLong(str, radix);
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "parseLong");
}
return -1;
}
// =
/**
* 将 short 转换成字节数组
* @param data short
* @return byte[]
*/
public static byte[] valueOf(final short data) {
try {
byte[] bytes = new byte[2];
for (int i = 0; i < 2; i++) {
int offset = (bytes.length - 1 - i) * 8;
bytes[i] = (byte) ((data >>> offset) & 0xff);
}
return bytes;
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "valueOf");
}
return null;
}
/**
* 将 int 转换成字节数组
* @param data int
* @return byte[]
*/
public static byte[] valueOf(final int data) {
try {
byte[] bytes = new byte[4];
for (int i = 0; i < 4; i++) {
int offset = (bytes.length - 1 - i) * 8;
bytes[i] = (byte) ((data >>> offset) & 0xFF);
}
return bytes;
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "valueOf");
}
return null;
}
// =
/**
* byte[] 转为 Object
* @param bytes byte[]
* @return {@link Object}
*/
public static Object bytesToObject(final byte[] bytes) {
if (bytes == null) return null;
ObjectInputStream ois = null;
try {
ois = new ObjectInputStream(new ByteArrayInputStream(bytes));
return ois.readObject();
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "bytesToObject");
} finally {
if (ois != null) {
try {
ois.close();
} catch (Exception e) {
}
}
}
return null;
}
/**
* Object 转为 byte[]
* @param object Object
* @return byte[]
*/
public static byte[] objectToBytes(final Object object) {
if (object == null) return null;
ObjectOutputStream oos = null;
try {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
oos = new ObjectOutputStream(baos);
oos.writeObject(object);
return baos.toByteArray();
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "objectToBytes");
} finally {
if (oos != null) {
try {
oos.close();
} catch (Exception e) {
}
}
}
return null;
}
// =
/**
* byte[] 转换 char[], 并且进行补码
* @param data byte[]
* @return char[]
*/
public static char[] bytesToChars(final byte[] data) {
if (data == null) return null;
int len = data.length;
if (len == 0) return null;
try {
char[] chars = new char[len];
for (int i = 0; i < len; i++) {
chars[i] = (char) (data[i] & 0xff);
}
return chars;
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "bytesToChars");
}
return null;
}
/**
* char[] 转换 byte[]
* @param data char[]
* @return byte[]
*/
public static byte[] charsToBytes(final char[] data) {
if (data == null) return null;
int len = data.length;
if (len == 0) return null;
try {
byte[] bytes = new byte[len];
for (int i = 0; i < len; i++) {
bytes[i] = (byte) (data[i]);
}
return bytes;
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "charsToBytes");
}
return null;
}
// ==============================================
// = (int、double、long、float)[] 转换 String[] =
// ==============================================
/**
* int[] 转换 string[]
* @param datas int[]
* @return String[]
*/
public static String[] intsToStrings(final int[] datas) {
return intsToStrings(0, (datas != null) ? datas.length : 0, datas);
}
/**
* int[] 转换 string[]
* @param off 起始值
* @param datas int[]
* @return String[]
*/
public static String[] intsToStrings(final int off, final int[] datas) {
return intsToStrings(off, (datas != null) ? datas.length : 0, datas);
}
/**
* int[] 转换 string[]
* @param off 起始值
* @param length 所需长度
* @param datas int[]
* @return String[]
*/
public static String[] intsToStrings(final int off, final int length, final int[] datas) {
if (off < 0 || length < 1 || off >= length || datas == null || length > datas.length)
return null;
String[] strings = new String[length - off];
for (int i = 0, len = strings.length; i < len; i++) {
strings[i] = datas[off + i] + "";
}
return strings;
}
// =
/**
* double[] 转换 string[]
* @param datas double[]
* @return String[]
*/
public static String[] doublesToStrings(final double[] datas) {
return doublesToStrings(0, (datas != null) ? datas.length : 0, datas);
}
/**
* double[] 转换 string[]
* @param off 起始值
* @param datas double[]
* @return String[]
*/
public static String[] doublesToStrings(final int off, final double[] datas) {
return doublesToStrings(off, (datas != null) ? datas.length : 0, datas);
}
/**
* double[] 转换 string[]
* @param off 起始值
* @param length 所需长度
* @param datas double[]
* @return String[]
*/
public static String[] doublesToStrings(final int off, final int length, final double[] datas) {
if (off < 0 || length < 1 || off >= length || datas == null || length > datas.length)
return null;
String[] strings = new String[length - off];
for (int i = 0, len = strings.length; i < len; i++) {
strings[i] = datas[off + i] + "";
}
return strings;
}
// =
/**
* long[] 转换 string[]
* @param datas long[]
* @return String[]
*/
public static String[] longsToStrings(final long[] datas) {
return longsToStrings(0, (datas != null) ? datas.length : 0, datas);
}
/**
* long[] 转换 string[]
* @param off 起始值
* @param datas long[]
* @return String[]
*/
public static String[] longsToStrings(final int off, final long[] datas) {
return longsToStrings(off, (datas != null) ? datas.length : 0, datas);
}
/**
* long[] 转换 string[]
* @param off 起始值
* @param length 所需长度
* @param datas long[]
* @return String[]
*/
public static String[] longsToStrings(final int off, final int length, final long[] datas) {
if (off < 0 || length < 1 || off >= length || datas == null || length > datas.length)
return null;
String[] strings = new String[length - off];
for (int i = 0, len = strings.length; i < len; i++) {
strings[i] = datas[off + i] + "";
}
return strings;
}
// =
/**
* float[] 转换 string[]
* @param datas float[]
* @return String[]
*/
public static String[] floatsToStrings(final float[] datas) {
return floatsToStrings(0, (datas != null) ? datas.length : 0, datas);
}
/**
* float[] 转换 string[]
* @param off 起始值
* @param datas float[]
* @return String[]
*/
public static String[] floatsToStrings(final int off, final float[] datas) {
return floatsToStrings(off, (datas != null) ? datas.length : 0, datas);
}
/**
* float[] 转换 string[]
* @param off 起始值
* @param length 所需长度
* @param datas float[]
* @return String[]
*/
public static String[] floatsToStrings(final int off, final int length, final float[] datas) {
if (off < 0 || length < 1 || off >= length || datas == null || length > datas.length)
return null;
String[] strings = new String[length - off];
for (int i = 0, len = strings.length; i < len; i++) {
strings[i] = datas[off + i] + "";
}
return strings;
}
// ======================================
// = int[] 转换 (double、long、float)[] =
// ======================================
/**
* int[] 转换 double[]
* @param datas int[]
* @return double[]
*/
public static double[] intsToDoubles(final int[] datas) {
return intsToDoubles(0, (datas != null) ? datas.length : 0, datas);
}
/**
* int[] 转换 double[]
* @param off 起始值
* @param datas int[]
* @return double[]
*/
public static double[] intsToDoubles(final int off, final int[] datas) {
return intsToDoubles(off, (datas != null) ? datas.length : 0, datas);
}
/**
* int[] 转换 double[]
* @param off 起始值
* @param length 所需长度
* @param datas int[]
* @return double[]
*/
public static double[] intsToDoubles(final int off, final int length, final int[] datas) {
if (off < 0 || length < 1 || off >= length || datas == null || length > datas.length)
return null;
double[] doubles = new double[length - off];
for (int i = 0, len = doubles.length; i < len; i++) {
doubles[i] = datas[off + i];
}
return doubles;
}
// =
/**
* int[] 转换 long[]
* @param datas int[]
* @return long[]
*/
public static long[] intsToLongs(final int[] datas) {
return intsToLongs(0, (datas != null) ? datas.length : 0, datas);
}
/**
* int[] 转换 long[]
* @param off 起始值
* @param datas int[]
* @return long[]
*/
public static long[] intsToLongs(final int off, final int[] datas) {
return intsToLongs(off, (datas != null) ? datas.length : 0, datas);
}
/**
* int[] 转换 long[]
* @param off 起始值
* @param length 所需长度
* @param datas int[]
* @return long[]
*/
public static long[] intsToLongs(final int off, final int length, final int[] datas) {
if (off < 0 || length < 1 || off >= length || datas == null || length > datas.length)
return null;
long[] longs = new long[length - off];
for (int i = 0, len = longs.length; i < len; i++) {
longs[i] = datas[off + i];
}
return longs;
}
// =
/**
* int[] 转换 float[]
* @param datas int[]
* @return float[]
*/
public static float[] intsToFloats(final int[] datas) {
return intsToFloats(0, (datas != null) ? datas.length : 0, datas);
}
/**
* int[] 转换 float[]
* @param off 起始值
* @param datas int[]
* @return float[]
*/
public static float[] intsToFloats(final int off, final int[] datas) {
return intsToFloats(off, (datas != null) ? datas.length : 0, datas);
}
/**
* int[] 转换 float[]
* @param off 起始值
* @param length 所需长度
* @param datas int[]
* @return float[]
*/
public static float[] intsToFloats(final int off, final int length, final int[] datas) {
if (off < 0 || length < 1 || off >= length || datas == null || length > datas.length)
return null;
float[] floats = new float[length - off];
for (int i = 0, len = floats.length; i < len; i++) {
floats[i] = datas[off + i];
}
return floats;
}
// ==============================================
// = String[] 转换 (int、double、long、float)[] =
// ==============================================
/**
* string[] 转换 int[]
* @param datas String[]
* @return int[]
*/
public static int[] stringsToInts(final String... datas) {
return stringsToInts(0, (datas != null) ? datas.length : 0, -1, datas);
}
/**
* string[] 转换 int[]
* @param off 起始值
* @param datas String[]
* @return int[]
*/
public static int[] stringsToInts(final int off, final String... datas) {
return stringsToInts(off, (datas != null) ? datas.length : 0, -1, datas);
}
/**
* string[] 转换 int[]
* @param off 起始值
* @param length 所需长度
* @param datas String[]
* @return int[]
*/
public static int[] stringsToInts(final int off, final int length, final String... datas) {
return stringsToInts(off, length, -1, datas);
}
/**
* string[] 转换 int[]
* @param off 起始值
* @param length 所需长度
* @param errorValue 转换错误使用值
* @param datas String[]
* @return int[]
*/
public static int[] stringsToInts(final int off, final int length, final int errorValue, final String... datas) {
if (off < 0 || length < 1 || off >= length || datas == null || length > datas.length)
return null;
int[] ints = new int[length - off];
for (int i = 0, len = ints.length; i < len; i++) {
try {
ints[i] = Integer.parseInt(datas[off + i]);
} catch (Exception e) {
ints[i] = errorValue;
}
}
return ints;
}
// =
/**
* string[] 转换 double[]
* @param datas String[]
* @return double[]
*/
public static double[] stringsToDoubles(final String... datas) {
return stringsToDoubles(0, (datas != null) ? datas.length : 0, -1d, datas);
}
/**
* string[] 转换 double[]
* @param off 起始值
* @param datas String[]
* @return double[]
*/
public static double[] stringsToDoubles(final int off, final String... datas) {
return stringsToDoubles(off, (datas != null) ? datas.length : 0, -1d, datas);
}
/**
* string[] 转换 double[]
* @param off 起始值
* @param length 所需长度
* @param datas String[]
* @return double[]
*/
public static double[] stringsToDoubles(final int off, final int length, final String... datas) {
return stringsToDoubles(off, length, -1d, datas);
}
/**
* string[] 转换 double[]
* @param off 起始值
* @param length 所需长度
* @param errorValue 转换错误使用值
* @param datas String[]
* @return double[]
*/
public static double[] stringsToDoubles(final int off, final int length, final double errorValue, final String... datas) {
if (off < 0 || length < 1 || off >= length || datas == null || length > datas.length)
return null;
double[] doubles = new double[length - off];
for (int i = 0, len = doubles.length; i < len; i++) {
try {
doubles[i] = Double.parseDouble(datas[off + i]);
} catch (Exception e) {
doubles[i] = errorValue;
}
}
return doubles;
}
// =
/**
* string[] 转换 long[]
* @param datas String[]
* @return long[]
*/
public static long[] stringsToLongs(final String... datas) {
return stringsToLongs(0, (datas != null) ? datas.length : 0, -1L, datas);
}
/**
* string[] 转换 long[]
* @param off 起始值
* @param datas String[]
* @return long[]
*/
public static long[] stringsToLongs(final int off, final String... datas) {
return stringsToLongs(off, (datas != null) ? datas.length : 0, -1L, datas);
}
/**
* string[] 转换 long[]
* @param off 起始值
* @param length 所需长度
* @param datas String[]
* @return long[]
*/
public static long[] stringsToLongs(final int off, final int length, final String... datas) {
return stringsToLongs(off, length, -1L, datas);
}
/**
* string[] 转换 long[]
* @param off 起始值
* @param length 所需长度
* @param errorValue 转换错误使用值
* @param datas String[]
* @return long[]
*/
public static long[] stringsToLongs(final int off, final int length, final long errorValue, final String... datas) {
if (off < 0 || length < 1 || off >= length || datas == null || length > datas.length)
return null;
long[] longs = new long[length - off];
for (int i = 0, len = longs.length; i < len; i++) {
try {
longs[i] = Long.parseLong(datas[off + i]);
} catch (Exception e) {
longs[i] = errorValue;
}
}
return longs;
}
// =
/**
* string[] 转换 float[]
* @param datas String[]
* @return float[]
*/
public static float[] stringsToFloats(final String... datas) {
return stringsToFloats(0, (datas != null) ? datas.length : 0, -1f, datas);
}
/**
* string[] 转换 float[]
* @param off 起始值
* @param datas String[]
* @return float[]
*/
public static float[] stringsToFloats(final int off, final String... datas) {
return stringsToFloats(off, (datas != null) ? datas.length : 0, -1f, datas);
}
/**
* string[] 转换 float[]
* @param off 起始值
* @param length 所需长度
* @param datas String[]
* @return float[]
*/
public static float[] stringsToFloats(final int off, final int length, final String... datas) {
return stringsToFloats(off, length, -1f, datas);
}
/**
* string[] 转换 float[]
* @param off 起始值
* @param length 所需长度
* @param errorValue 转换错误使用值
* @param datas String[]
* @return float[]
*/
public static float[] stringsToFloats(final int off, final int length, final float errorValue, final String... datas) {
if (off < 0 || length < 1 || off >= length || datas == null || length > datas.length)
return null;
float[] floats = new float[length - off];
for (int i = 0, len = floats.length; i < len; i++) {
try {
floats[i] = Float.parseFloat(datas[off + i]);
} catch (Exception e) {
floats[i] = errorValue;
}
}
return floats;
}
// ======================================
// = (double、long、float)[] 转换 int[] =
// ======================================
/**
* double[] 转换 int[]
* @param datas double[]
* @return int[]
*/
public static int[] doublesToInts(final double[] datas) {
return doublesToInts(0, (datas != null) ? datas.length : 0, datas);
}
/**
* double[] 转换 int[]
* @param off 起始值
* @param datas double[]
* @return int[]
*/
public static int[] doublesToInts(final int off, final double[] datas) {
return doublesToInts(off, (datas != null) ? datas.length : 0, datas);
}
/**
* double[] 转换 int[]
* @param off 起始值
* @param length 所需长度
* @param datas double[]
* @return int[]
*/
public static int[] doublesToInts(final int off, final int length, final double[] datas) {
if (off < 0 || length < 1 || off >= length || datas == null || length > datas.length)
return null;
int[] ints = new int[length - off];
for (int i = 0, len = ints.length; i < len; i++) {
try {
ints[i] = (int) datas[off + i];
} catch (Exception e) {
}
}
return ints;
}
// =
/**
* long[] 转换 int[]
* @param datas long[]
* @return int[]
*/
public static int[] longsToInts(final long[] datas) {
return longsToInts(0, (datas != null) ? datas.length : 0, datas);
}
/**
* long[] 转换 int[]
* @param off 起始值
* @param datas long[]
* @return int[]
*/
public static int[] longsToInts(final int off, final long[] datas) {
return longsToInts(off, (datas != null) ? datas.length : 0, datas);
}
/**
* long[] 转换 int[]
* @param off 起始值
* @param length 所需长度
* @param datas long[]
* @return int[]
*/
public static int[] longsToInts(final int off, final int length, final long[] datas) {
if (off < 0 || length < 1 || off >= length || datas == null || length > datas.length)
return null;
int[] ints = new int[length - off];
for (int i = 0, len = ints.length; i < len; i++) {
try {
ints[i] = (int) datas[off + i];
} catch (Exception e) {
}
}
return ints;
}
// =
/**
* float[] 转换 int[]
* @param datas float[]
* @return int[]
*/
public static int[] floatsToInts(final float[] datas) {
return floatsToInts(0, (datas != null) ? datas.length : 0, datas);
}
/**
* float[] 转换 int[]
* @param off 起始值
* @param datas float[]
* @return int[]
*/
public static int[] floatsToInts(final int off, final float[] datas) {
return floatsToInts(off, (datas != null) ? datas.length : 0, datas);
}
/**
* float[] 转换 int[]
* @param off 起始值
* @param length 所需长度
* @param datas float[]
* @return int[]
*/
public static int[] floatsToInts(final int off, final int length, final float[] datas) {
if (off < 0 || length < 1 || off >= length || datas == null || length > datas.length)
return null;
int[] ints = new int[length - off];
for (int i = 0, len = ints.length; i < len; i++) {
try {
ints[i] = (int) datas[off + i];
} catch (Exception e) {
}
}
return ints;
}
// ===================
// = Binary - 二进制 =
// ===================
/**
* 将 字节转换 为 二进制字符串
* @param datas byte[]
* @return 二进制字符串
*/
public static String toBinaryString(final byte... datas) {
if (datas == null || datas.length == 0) return null;
try {
StringBuilder builder = new StringBuilder();
for (byte value : datas) {
for (int j = 7; j >= 0; --j) {
builder.append(((value >> j) & 0x01) == 0 ? '0' : '1');
}
}
return builder.toString();
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toBinaryString");
}
return null;
}
/**
* 二进制字符串 转换 byte[] 解码
* <pre>
* 例: "011000010111001101100100" 传入 decodeBinary, 返回 byte[], 通过 new String(byte()) 获取配合 toBinaryString 使用
* </pre>
* @param str String
* @return 解码后的 byte[]
*/
public static byte[] decodeBinary(final String str) {
if (str == null) return null;
try {
String data = str;
int lenMod = data.length() % 8;
int byteLen = data.length() / 8;
// add "0" until length to 8 times
if (lenMod != 0) {
for (int i = lenMod; i < 8; i++) {
data = "0" + data;
}
byteLen++;
}
byte[] bytes = new byte[byteLen];
for (int i = 0; i < byteLen; ++i) {
for (int j = 0; j < 8; ++j) {
bytes[i] <<= 1;
bytes[i] |= data.charAt(i * 8 + j) - '0';
}
}
return bytes;
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "decodeBinary");
}
return null;
}
// ======================
// = Hex - 十六进制处理 =
// ======================
/**
* 判断是否十六进制数据
* @param data 待检验数据
* @return {@code true} yes, {@code false} no
*/
public static boolean isHex(final String data) {
if (data == null) return false;
// 获取数据长度
int len = data.length();
if (len > 0) {
for (int i = len - 1; i >= 0; i--) {
char c = data.charAt(i);
if (!(c >= '0' && c <= '9' || c >= 'A' && c <= 'F' || c >= 'a' && c <= 'f')) {
return false;
}
}
return true;
}
return false;
}
/**
* 将十六进制字节数组解码
* @param data 十六进制 byte[]
* @return 十六进制转 ( 解 ) 码后的数据
*/
public static byte[] decodeHex(final byte[] data) {
return decodeHex((ArrayUtils.length(data) == 0) ? null : bytesToChars(data));
}
/**
* 将十六进制字符串解码
* @param str 十六进制 String
* @return 十六进制转 ( 解 ) 码后的数据
*/
public static byte[] decodeHex(final String str) {
return decodeHex(StringUtils.isEmpty(str) ? null : str.toCharArray());
}
/**
* 将十六进制字符数组解码
* @param data 十六进制 char[]
* @return 十六进制转 ( 解 ) 码后的数据
*/
public static byte[] decodeHex(final char[] data) {
if (data == null) return null;
try {
int len = data.length;
byte[] out = new byte[len >> 1];
// 十六进制由两个字符组成
for (int i = 0, j = 0; j < len; i++) {
int d = toDigit(data[j], j) << 4;
j++;
d = d | toDigit(data[j], j);
j++;
out[i] = (byte) (d & 0xFF);
}
return out;
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "decodeHex");
}
return null;
}
/**
* 十六进制 char 转换 int
* @param hexChar 十六进制 char
* @return 十六进制转 ( 解 ) 码后的整数
*/
public static int hexToInt(final char hexChar) {
if (hexChar >= '0' && hexChar <= '9') {
return hexChar - '0';
} else if (hexChar >= 'A' && hexChar <= 'F') {
return hexChar - 'A' + 10;
} else {
throw new IllegalArgumentException();
}
}
/**
* 将十六进制字符转换成一个整数
* @param ch 十六进制 char
* @param index 十六进制字符在字符数组中的位置
* @return 一个整数
* @throws Exception 当 ch 不是一个合法的十六进制字符时, 抛出运行时异常
*/
private static int toDigit(final char ch, final int index) throws Exception {
int digit = Character.digit(ch, 16);
if (digit == -1) {
throw new Exception(String.format("Illegal hexadecimal character %s at index %s", ch, index));
}
return digit;
}
// =
// toHexString(0x1f603) = 1f603
// parseInt("1f603", 16) = 128515
// toHexString(128515) = 1f603
/**
* int 转换十六进制
* <pre>
* 如: toHexString(0x1f603) 返回: 1f603
* </pre>
* @param value int
* @return 十六进制字符串
*/
public static String toHexString(final int value) {
try {
return Integer.toHexString(value);
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toHexString");
}
return null;
}
/**
* long 转换十六进制
* @param value long
* @return 十六进制字符串
*/
public static String toHexString(final long value) {
try {
return Long.toHexString(value);
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toHexString");
}
return null;
}
/**
* double 转换十六进制
* @param value double
* @return 十六进制字符串
*/
public static String toHexString(final double value) {
try {
return Double.toHexString(value);
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toHexString");
}
return null;
}
/**
* float 转换十六进制
* @param value float
* @return 十六进制字符串
*/
public static String toHexString(final float value) {
try {
return Float.toHexString(value);
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toHexString");
}
return null;
}
// =
/**
* 将 string 转换为 十六进制 char[]
* @param str String
* @return 十六进制 char[]
*/
public static char[] toHexChars(final String str) {
return toHexChars(str, true);
}
/**
* 将 string 转换为 十六进制 char[]
* @param str String
* @param toLowerCase {@code true} 小写格式, {@code false} 大写格式
* @return 十六进制 char[]
*/
public static char[] toHexChars(final String str, final boolean toLowerCase) {
return toHexChars(StringUtils.isEmpty(str) ? null : str.getBytes(), toLowerCase ? HEX_DIGITS : HEX_DIGITS_UPPER);
}
// =
/**
* 将 byte[] 转换为 十六进制 char[]
* @param data byte[]
* @return 十六进制 char[]
*/
public static char[] toHexChars(final byte[] data) {
return toHexChars(data, true);
}
/**
* 将 byte[] 转换为 十六进制 char[]
* @param data byte[]
* @param toLowerCase {@code true} 小写格式, {@code false} 大写格式
* @return 十六进制 char[]
*/
public static char[] toHexChars(final byte[] data, final boolean toLowerCase) {
return toHexChars(data, toLowerCase ? HEX_DIGITS : HEX_DIGITS_UPPER);
}
/**
* 将 byte[] 转换为 十六进制 char[]
* @param data byte[]
* @param hexDigits {@link #HEX_DIGITS}、{@link #HEX_DIGITS_UPPER}
* @return 十六进制 char[]
*/
private static char[] toHexChars(final byte[] data, final char[] hexDigits) {
if (data == null || hexDigits == null) return null;
try {
return toHexString(data, hexDigits).toCharArray();
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toHexChars");
}
return null;
}
// =
/**
* 将 string 转换 十六进制字符串
* @param str 待转换数据
* @return 十六进制字符串
*/
public static String toHexString(final String str) {
return toHexString(str, true);
}
/**
* 将 string 转换 十六进制字符串
* @param str 待转换数据
* @param toLowerCase {@code true} 小写格式, {@code false} 大写格式
* @return 十六进制字符串
*/
public static String toHexString(final String str, final boolean toLowerCase) {
return toHexString(StringUtils.isEmpty(str) ? null : str.getBytes(), toLowerCase ? HEX_DIGITS : HEX_DIGITS_UPPER);
}
// =
/**
* 将 byte[] 转换 十六进制字符串
* @param data 待转换数据
* @return 十六进制字符串
*/
public static String toHexString(final byte[] data) {
return toHexString(data, true);
}
/**
* 将 byte[] 转换 十六进制字符串
* @param data 待转换数据
* @param toLowerCase {@code true} 小写格式, {@code false} 大写格式
* @return 十六进制字符串
*/
public static String toHexString(final byte[] data, final boolean toLowerCase) {
return toHexString(data, toLowerCase ? HEX_DIGITS : HEX_DIGITS_UPPER);
}
/**
* 将 byte[] 转换 十六进制字符串
* @param data 待转换数据
* @param hexDigits {@link #HEX_DIGITS}、{@link #HEX_DIGITS_UPPER}
* @return 十六进制字符串
*/
private static String toHexString(final byte[] data, final char[] hexDigits) {
if (data == null || hexDigits == null) return null;
try {
int len = data.length;
StringBuilder builder = new StringBuilder(len);
for (int i = 0; i < len; i++) {
builder.append(hexDigits[(data[i] & 0xf0) >>> 4]);
builder.append(hexDigits[data[i] & 0x0f]);
}
return builder.toString();
} catch (Exception e) {
JCLogUtils.eTag(TAG, e, "toHexString");
}
return null;
}
// =
// String data = "test";
// // 转换二进制字符串
// String result = toBinaryString(data.getBytes());
// // 获取二进制数据
// byte[] bytes = result.getBytes();
// // 位移编码
// bytesBitwiseAND(bytes);
// // =
// // 位移解码
// bytesBitwiseAND(bytes);
// // 二进制数据解码
// byte[] byteResult = decodeBinary(new String(bytes));
// // 转换为原始数据
// String data1 = new String(byteResult);
// // 判断是否一致
// boolean equals = data.equals(data1);
/**
* 按位求补 byte[] 位移编解码 ( 共用同一个方法 )
* @param data byte[]
*/
public static void bytesBitwiseAND(final byte[] data) {
if (data == null) return;
for (int i = 0, len = data.length; i < len; i++) {
int d = data[i];
d = ~d; // 按位补运算符, 翻转操作数的每一位, 即 0 变成 1, 1 变成 0, 再通过反转后的二进制初始化回十六进制
data[i] = (byte) d;
}
}
} | [
"13798405957@163.com"
] | 13798405957@163.com |
49ee92d98bb3b5ae8e93b156dea96b9c61a43b36 | eef96a57c1ca92b76190d4d79ade076a98d86fa9 | /Kisugu High School/src/clarion/finance/core/Accounts.java | 80e3bcbdc32a442ac76c8bcb58804f332f91402f | [] | no_license | WalterNyeko/customizable-school-system | f64ee9514a2eed951087f58aa9bb54df50b200e0 | f606921527e8500b5f72397ea50d6061485022c0 | refs/heads/master | 2020-03-18T00:32:17.404629 | 2019-04-21T12:57:55 | 2019-04-21T12:57:55 | 134,099,804 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,271 | java | package clarion.finance.core;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.Date;
public class Accounts {
private BigDecimal id;
private Date date;
private String accountName;
private String voucherNumber;
private String details;
private String folio;
private BigDecimal amountDr;
private BigDecimal amountCr;
private String amountDrString;
private String amountCrString;
private String balanceString;
private BigDecimal balance;
private DecimalFormat df;
// private GeneralLedger generalLedger;
private boolean isDr;
private boolean isCr;
// default empty constructor to help format BigDecimal values
public Accounts() {
}
// constructor with all the native data types for all the fields considered
// native
public Accounts(BigDecimal id, Date date, String accountName, String voucherNumber, String details, String folio,
BigDecimal amountDr, BigDecimal amountCr) {
super();
this.id = id;
this.date = date;
this.accountName = accountName;
this.voucherNumber = voucherNumber;
this.details = details;
this.folio = folio;
this.amountDr = amountDr;
this.amountCr = amountCr;
}
public Accounts(Date date, String accountName, String voucherNumber, String details, String folio,
BigDecimal amount, boolean isDr, boolean isCr) {
super();
this.date = date;
this.accountName = accountName;
this.voucherNumber = voucherNumber;
this.details = details;
this.folio = folio;
this.isDr = isDr;
this.isCr = isCr;
if (isDr) {
this.amountDr = amount;
} else if (isCr) {
this.amountCr = amount;
}
}
public Accounts(Date date, String accountName, String voucherNumber, String details, String folio,
BigDecimal amount, boolean isDr, boolean isCr, BigDecimal balance) {
super();
this.date = date;
this.accountName = accountName;
this.voucherNumber = voucherNumber;
this.details = details;
this.folio = folio;
this.isDr = isDr;
this.isCr = isCr;
if (isDr) {
this.amountDr = amount;
} else if (isCr) {
this.amountCr = amount;
}
this.balance = balance;
}
public Accounts(String accountName, String details) {
super();
this.accountName = accountName;
this.details = details;
}
// constructor with all the native data types for all the fields considered
// native
// with exclusion of id
public Accounts(Date date, String accountName, String voucherNumber, String details, String folio,
BigDecimal amountDr, BigDecimal amountCr) {
super();
this.date = date;
this.accountName = accountName;
this.voucherNumber = voucherNumber;
this.details = details;
this.folio = folio;
this.amountDr = amountDr;
this.amountCr = amountCr;
}
// constructor with id exclusion, and replacement of all the BigDecimal
// fields
// with String values for formatting
public Accounts(Date date, String accountName, String voucherNumber, String details, String folio,
String amountDrString, String amountCrString) {
super();
this.date = date;
this.accountName = accountName;
this.voucherNumber = voucherNumber;
this.details = details;
this.folio = folio;
this.amountDrString = amountDrString;
this.amountCrString = amountCrString;
}
public Accounts(BigDecimal id, Date date, String accountName, String voucherNumber, String details, String folio,
BigDecimal amountDr, BigDecimal amountCr, boolean isDr, boolean isCr) {
super();
this.id = id;
this.date = date;
this.accountName = accountName;
this.voucherNumber = voucherNumber;
this.details = details;
this.folio = folio;
this.amountDr = amountDr;
this.amountCr = amountCr;
this.isDr = isDr;
this.isCr = isCr;
}
public Accounts(BigDecimal id, Date date, String accountName, String voucherNumber, String details, String folio,
BigDecimal amountDr, BigDecimal amountCr, boolean isDr, boolean isCr, BigDecimal balance) {
super();
this.id = id;
this.date = date;
this.accountName = accountName;
this.voucherNumber = voucherNumber;
this.details = details;
this.folio = folio;
this.amountDr = amountDr;
this.amountCr = amountCr;
this.isDr = isDr;
this.isCr = isCr;
this.balance = balance;
}
public Accounts(BigDecimal id, Date date, String accountName, String voucherNumber, String details, String folio,
String amountDrString, String amountCrString, boolean isDr, boolean isCr) {
super();
this.id = id;
this.date = date;
this.accountName = accountName;
this.voucherNumber = voucherNumber;
this.details = details;
this.folio = folio;
this.amountDrString = amountDrString;
this.amountCrString = amountCrString;
this.isDr = isDr;
this.isCr = isCr;
}
public Accounts(BigDecimal id, Date date, String accountName, String voucherNumber, String details, String folio,
String amountDrString, String amountCrString, boolean isDr, boolean isCr, String balanceString) {
super();
this.id = id;
this.date = date;
this.accountName = accountName;
this.voucherNumber = voucherNumber;
this.details = details;
this.folio = folio;
this.amountDrString = amountDrString;
this.amountCrString = amountCrString;
this.isDr = isDr;
this.isCr = isCr;
this.balanceString = balanceString;
}
public String getBalanceString() {
return balanceString;
}
public String getBalanceString(BigDecimal bigDecimal) {
balance = bigDecimal;
setDf(new DecimalFormat("#,###.####"));
return getDf().format(bigDecimal);
}
public BigDecimal getBalance() {
return balance;
}
public void setBalanceString(String balanceString) {
this.balanceString = balanceString;
}
public void setBalance(BigDecimal balance) {
this.balance = balance;
}
public BigDecimal getId() {
return id;
}
public Date getDate() {
return date;
}
public String getAccountName() {
return accountName;
}
public String getDetails() {
return details;
}
public String getFolio() {
return folio;
}
public BigDecimal getAmountDr() {
return amountDr;
}
public BigDecimal getAmountCr() {
return amountCr;
}
public String getAmountDrString() {
return amountDrString;
}
public DecimalFormat getDf() {
return df;
}
public void setDf(DecimalFormat df) {
this.df = df;
}
public String getAmountDrString(BigDecimal bigDecimal) {
amountDr = bigDecimal;
setDf(new DecimalFormat("#,###.####"));
return getDf().format(bigDecimal);
}
public String getAmountCrString(BigDecimal bigDecimal) {
amountCr = bigDecimal;
setDf(new DecimalFormat("#,###.####"));
return getDf().format(bigDecimal);
}
public String getAmountCrString() {
return amountCrString;
}
public void setId(BigDecimal id) {
this.id = id;
}
public void setDate(Date date) {
this.date = date;
}
public void setAccountName(String accountName) {
this.accountName = accountName;
}
public void setDetails(String details) {
this.details = details;
}
public void setFolio(String folio) {
this.folio = folio;
}
public void setAmountDr(BigDecimal amountDr) {
this.amountDr = amountDr;
}
public void setAmountCr(BigDecimal amountCr) {
this.amountCr = amountCr;
}
public void setAmountDrString(String amountDrString) {
this.amountDrString = amountDrString;
}
public void setAmountCrString(String amountCrString) {
this.amountCrString = amountCrString;
}
public String getVoucherNumber() {
return voucherNumber;
}
public void setVoucherNumber(String voucherNumber) {
this.voucherNumber = voucherNumber;
}
public boolean isDr() {
return isDr;
}
public boolean isCr() {
return isCr;
}
public void setDr(boolean isDr) {
this.isDr = isDr;
}
public void setCr(boolean isCr) {
this.isCr = isCr;
}
@Override
public String toString() {
return "Accounts [id=" + id + ", date=" + date + ", accountName=" + accountName + ", details=" + details
+ ", folio=" + folio + ", amountDrString=" + amountDrString + ", amountCrString=" + amountCrString
+ "]";
}
}
| [
"walter@walter-Inspiron-15-3567"
] | walter@walter-Inspiron-15-3567 |
4e9d9f8b05bf03a7978440738d521a80f7081edc | aff056ee146a9ffa01d18acce83b1a4f6bf3a0e9 | /app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r/androidx/constraintlayout/widget/R.java | 829f81c5f2da71b1e14340d9138d2e0b3a007f6a | [] | no_license | demflou/eCommerceApp | f54baff2165cea556e38e415500cf684f1b120b6 | 6309b332445a86023ad6eacbf6a6c513e4043770 | refs/heads/master | 2023-07-15T01:17:53.580456 | 2019-10-09T12:11:31 | 2019-10-09T12:11:31 | 196,408,457 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 187,977 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package androidx.constraintlayout.widget;
public final class R {
private R() {}
public static final class anim {
private anim() {}
public static final int abc_fade_in = 0x7f010000;
public static final int abc_fade_out = 0x7f010001;
public static final int abc_grow_fade_in_from_bottom = 0x7f010002;
public static final int abc_popup_enter = 0x7f010003;
public static final int abc_popup_exit = 0x7f010004;
public static final int abc_shrink_fade_out_from_bottom = 0x7f010005;
public static final int abc_slide_in_bottom = 0x7f010006;
public static final int abc_slide_in_top = 0x7f010007;
public static final int abc_slide_out_bottom = 0x7f010008;
public static final int abc_slide_out_top = 0x7f010009;
public static final int abc_tooltip_enter = 0x7f01000a;
public static final int abc_tooltip_exit = 0x7f01000b;
}
public static final class attr {
private attr() {}
public static final int actionBarDivider = 0x7f030000;
public static final int actionBarItemBackground = 0x7f030001;
public static final int actionBarPopupTheme = 0x7f030002;
public static final int actionBarSize = 0x7f030003;
public static final int actionBarSplitStyle = 0x7f030004;
public static final int actionBarStyle = 0x7f030005;
public static final int actionBarTabBarStyle = 0x7f030006;
public static final int actionBarTabStyle = 0x7f030007;
public static final int actionBarTabTextStyle = 0x7f030008;
public static final int actionBarTheme = 0x7f030009;
public static final int actionBarWidgetTheme = 0x7f03000a;
public static final int actionButtonStyle = 0x7f03000b;
public static final int actionDropDownStyle = 0x7f03000c;
public static final int actionLayout = 0x7f03000d;
public static final int actionMenuTextAppearance = 0x7f03000e;
public static final int actionMenuTextColor = 0x7f03000f;
public static final int actionModeBackground = 0x7f030010;
public static final int actionModeCloseButtonStyle = 0x7f030011;
public static final int actionModeCloseDrawable = 0x7f030012;
public static final int actionModeCopyDrawable = 0x7f030013;
public static final int actionModeCutDrawable = 0x7f030014;
public static final int actionModeFindDrawable = 0x7f030015;
public static final int actionModePasteDrawable = 0x7f030016;
public static final int actionModePopupWindowStyle = 0x7f030017;
public static final int actionModeSelectAllDrawable = 0x7f030018;
public static final int actionModeShareDrawable = 0x7f030019;
public static final int actionModeSplitBackground = 0x7f03001a;
public static final int actionModeStyle = 0x7f03001b;
public static final int actionModeWebSearchDrawable = 0x7f03001c;
public static final int actionOverflowButtonStyle = 0x7f03001d;
public static final int actionOverflowMenuStyle = 0x7f03001e;
public static final int actionProviderClass = 0x7f03001f;
public static final int actionViewClass = 0x7f030020;
public static final int activityChooserViewStyle = 0x7f030021;
public static final int alertDialogButtonGroupStyle = 0x7f030022;
public static final int alertDialogCenterButtons = 0x7f030023;
public static final int alertDialogStyle = 0x7f030024;
public static final int alertDialogTheme = 0x7f030025;
public static final int allowStacking = 0x7f030026;
public static final int alpha = 0x7f030027;
public static final int alphabeticModifiers = 0x7f030028;
public static final int altSrc = 0x7f030029;
public static final int animate_relativeTo = 0x7f03002a;
public static final int applyMotionScene = 0x7f03002b;
public static final int arcMode = 0x7f03002c;
public static final int arrowHeadLength = 0x7f03002d;
public static final int arrowShaftLength = 0x7f03002e;
public static final int attributeName = 0x7f03002f;
public static final int autoCompleteTextViewStyle = 0x7f030030;
public static final int autoSizeMaxTextSize = 0x7f030031;
public static final int autoSizeMinTextSize = 0x7f030032;
public static final int autoSizePresetSizes = 0x7f030033;
public static final int autoSizeStepGranularity = 0x7f030034;
public static final int autoSizeTextType = 0x7f030035;
public static final int autoTransition = 0x7f030036;
public static final int background = 0x7f030037;
public static final int backgroundSplit = 0x7f030038;
public static final int backgroundStacked = 0x7f030039;
public static final int backgroundTint = 0x7f03003a;
public static final int backgroundTintMode = 0x7f03003b;
public static final int barLength = 0x7f03003c;
public static final int barrierAllowsGoneWidgets = 0x7f03003d;
public static final int barrierDirection = 0x7f03003e;
public static final int barrierMargin = 0x7f03003f;
public static final int borderlessButtonStyle = 0x7f030047;
public static final int brightness = 0x7f030055;
public static final int buttonBarButtonStyle = 0x7f030056;
public static final int buttonBarNegativeButtonStyle = 0x7f030057;
public static final int buttonBarNeutralButtonStyle = 0x7f030058;
public static final int buttonBarPositiveButtonStyle = 0x7f030059;
public static final int buttonBarStyle = 0x7f03005a;
public static final int buttonGravity = 0x7f03005c;
public static final int buttonIconDimen = 0x7f03005d;
public static final int buttonPanelSideLayout = 0x7f03005e;
public static final int buttonStyle = 0x7f03005f;
public static final int buttonStyleSmall = 0x7f030060;
public static final int buttonTint = 0x7f030061;
public static final int buttonTintMode = 0x7f030062;
public static final int chainUseRtl = 0x7f03006a;
public static final int checkboxStyle = 0x7f03006b;
public static final int checkedTextViewStyle = 0x7f030070;
public static final int circleRadius = 0x7f030083;
public static final int clickAction = 0x7f030084;
public static final int closeIcon = 0x7f030085;
public static final int closeItemLayout = 0x7f03008c;
public static final int collapseContentDescription = 0x7f03008d;
public static final int collapseIcon = 0x7f03008e;
public static final int color = 0x7f030091;
public static final int colorAccent = 0x7f030092;
public static final int colorBackgroundFloating = 0x7f030093;
public static final int colorButtonNormal = 0x7f030094;
public static final int colorControlActivated = 0x7f030095;
public static final int colorControlHighlight = 0x7f030096;
public static final int colorControlNormal = 0x7f030097;
public static final int colorError = 0x7f030098;
public static final int colorPrimary = 0x7f030099;
public static final int colorPrimaryDark = 0x7f03009a;
public static final int colorSwitchThumbNormal = 0x7f03009c;
public static final int commitIcon = 0x7f03009d;
public static final int constraintSet = 0x7f03009e;
public static final int constraintSetEnd = 0x7f03009f;
public static final int constraintSetStart = 0x7f0300a0;
public static final int constraint_referenced_ids = 0x7f0300a1;
public static final int constraints = 0x7f0300a2;
public static final int content = 0x7f0300a3;
public static final int contentDescription = 0x7f0300a4;
public static final int contentInsetEnd = 0x7f0300a5;
public static final int contentInsetEndWithActions = 0x7f0300a6;
public static final int contentInsetLeft = 0x7f0300a7;
public static final int contentInsetRight = 0x7f0300a8;
public static final int contentInsetStart = 0x7f0300a9;
public static final int contentInsetStartWithNavigation = 0x7f0300aa;
public static final int contrast = 0x7f0300b1;
public static final int controlBackground = 0x7f0300b2;
public static final int coordinatorLayoutStyle = 0x7f0300b3;
public static final int crossfade = 0x7f0300b9;
public static final int currentState = 0x7f0300ba;
public static final int curveFit = 0x7f0300bb;
public static final int customBoolean = 0x7f0300bc;
public static final int customColorDrawableValue = 0x7f0300bd;
public static final int customColorValue = 0x7f0300be;
public static final int customDimension = 0x7f0300bf;
public static final int customFloatValue = 0x7f0300c0;
public static final int customIntegerValue = 0x7f0300c1;
public static final int customNavigationLayout = 0x7f0300c2;
public static final int customPixelDimension = 0x7f0300c3;
public static final int customStringValue = 0x7f0300c4;
public static final int defaultDuration = 0x7f0300c5;
public static final int defaultQueryHint = 0x7f0300c6;
public static final int defaultState = 0x7f0300c7;
public static final int deltaPolarAngle = 0x7f0300c8;
public static final int deltaPolarRadius = 0x7f0300c9;
public static final int deriveConstraintsFrom = 0x7f0300ca;
public static final int dialogCornerRadius = 0x7f0300cb;
public static final int dialogPreferredPadding = 0x7f0300cc;
public static final int dialogTheme = 0x7f0300cd;
public static final int displayOptions = 0x7f0300ce;
public static final int divider = 0x7f0300cf;
public static final int dividerHorizontal = 0x7f0300d0;
public static final int dividerPadding = 0x7f0300d1;
public static final int dividerVertical = 0x7f0300d2;
public static final int dragDirection = 0x7f0300d3;
public static final int dragScale = 0x7f0300d4;
public static final int drawPath = 0x7f0300d5;
public static final int drawableSize = 0x7f0300da;
public static final int drawerArrowStyle = 0x7f0300df;
public static final int dropDownListViewStyle = 0x7f0300e0;
public static final int dropdownListPreferredItemHeight = 0x7f0300e1;
public static final int duration = 0x7f0300e2;
public static final int editTextBackground = 0x7f0300e3;
public static final int editTextColor = 0x7f0300e4;
public static final int editTextStyle = 0x7f0300e5;
public static final int elevation = 0x7f0300e6;
public static final int emptyVisibility = 0x7f0300e7;
public static final int expandActivityOverflowButtonDrawable = 0x7f0300ec;
public static final int firstBaselineToTopHeight = 0x7f03010d;
public static final int flow_firstHorizontalBias = 0x7f03010f;
public static final int flow_firstHorizontalStyle = 0x7f030110;
public static final int flow_firstVerticalBias = 0x7f030111;
public static final int flow_firstVerticalStyle = 0x7f030112;
public static final int flow_horizontalAlign = 0x7f030113;
public static final int flow_horizontalBias = 0x7f030114;
public static final int flow_horizontalGap = 0x7f030115;
public static final int flow_horizontalSeparator = 0x7f030116;
public static final int flow_horizontalStyle = 0x7f030117;
public static final int flow_lastHorizontalBias = 0x7f030118;
public static final int flow_lastHorizontalStyle = 0x7f030119;
public static final int flow_lastVerticalBias = 0x7f03011a;
public static final int flow_lastVerticalStyle = 0x7f03011b;
public static final int flow_maxElementsWrap = 0x7f03011c;
public static final int flow_padding = 0x7f03011d;
public static final int flow_verticalAlign = 0x7f03011e;
public static final int flow_verticalBias = 0x7f03011f;
public static final int flow_verticalGap = 0x7f030120;
public static final int flow_verticalSeparator = 0x7f030121;
public static final int flow_verticalStyle = 0x7f030122;
public static final int flow_wrapMode = 0x7f030123;
public static final int font = 0x7f030124;
public static final int fontFamily = 0x7f030125;
public static final int fontProviderAuthority = 0x7f030126;
public static final int fontProviderCerts = 0x7f030127;
public static final int fontProviderFetchStrategy = 0x7f030128;
public static final int fontProviderFetchTimeout = 0x7f030129;
public static final int fontProviderPackage = 0x7f03012a;
public static final int fontProviderQuery = 0x7f03012b;
public static final int fontStyle = 0x7f03012c;
public static final int fontVariationSettings = 0x7f03012d;
public static final int fontWeight = 0x7f03012e;
public static final int framePosition = 0x7f030130;
public static final int gapBetweenBars = 0x7f030131;
public static final int goIcon = 0x7f030132;
public static final int height = 0x7f030134;
public static final int hideOnContentScroll = 0x7f030139;
public static final int homeAsUpIndicator = 0x7f03013e;
public static final int homeLayout = 0x7f03013f;
public static final int icon = 0x7f030141;
public static final int iconTint = 0x7f030147;
public static final int iconTintMode = 0x7f030148;
public static final int iconifiedByDefault = 0x7f030149;
public static final int imageButtonStyle = 0x7f03014a;
public static final int indeterminateProgressStyle = 0x7f03014b;
public static final int initialActivityCount = 0x7f03014c;
public static final int isLightTheme = 0x7f03014e;
public static final int itemPadding = 0x7f030155;
public static final int keyPositionType = 0x7f03015b;
public static final int keylines = 0x7f03015c;
public static final int lastBaselineToBottomHeight = 0x7f03015e;
public static final int layout = 0x7f03015f;
public static final int layoutDescription = 0x7f030160;
public static final int layout_anchor = 0x7f030162;
public static final int layout_anchorGravity = 0x7f030163;
public static final int layout_behavior = 0x7f030164;
public static final int layout_constrainedHeight = 0x7f030167;
public static final int layout_constrainedWidth = 0x7f030168;
public static final int layout_constraintBaseline_creator = 0x7f030169;
public static final int layout_constraintBaseline_toBaselineOf = 0x7f03016a;
public static final int layout_constraintBottom_creator = 0x7f03016b;
public static final int layout_constraintBottom_toBottomOf = 0x7f03016c;
public static final int layout_constraintBottom_toTopOf = 0x7f03016d;
public static final int layout_constraintCircle = 0x7f03016e;
public static final int layout_constraintCircleAngle = 0x7f03016f;
public static final int layout_constraintCircleRadius = 0x7f030170;
public static final int layout_constraintDimensionRatio = 0x7f030171;
public static final int layout_constraintEnd_toEndOf = 0x7f030172;
public static final int layout_constraintEnd_toStartOf = 0x7f030173;
public static final int layout_constraintGuide_begin = 0x7f030174;
public static final int layout_constraintGuide_end = 0x7f030175;
public static final int layout_constraintGuide_percent = 0x7f030176;
public static final int layout_constraintHeight_default = 0x7f030177;
public static final int layout_constraintHeight_max = 0x7f030178;
public static final int layout_constraintHeight_min = 0x7f030179;
public static final int layout_constraintHeight_percent = 0x7f03017a;
public static final int layout_constraintHorizontal_bias = 0x7f03017b;
public static final int layout_constraintHorizontal_chainStyle = 0x7f03017c;
public static final int layout_constraintHorizontal_weight = 0x7f03017d;
public static final int layout_constraintLeft_creator = 0x7f03017e;
public static final int layout_constraintLeft_toLeftOf = 0x7f03017f;
public static final int layout_constraintLeft_toRightOf = 0x7f030180;
public static final int layout_constraintRight_creator = 0x7f030181;
public static final int layout_constraintRight_toLeftOf = 0x7f030182;
public static final int layout_constraintRight_toRightOf = 0x7f030183;
public static final int layout_constraintStart_toEndOf = 0x7f030184;
public static final int layout_constraintStart_toStartOf = 0x7f030185;
public static final int layout_constraintTag = 0x7f030186;
public static final int layout_constraintTop_creator = 0x7f030187;
public static final int layout_constraintTop_toBottomOf = 0x7f030188;
public static final int layout_constraintTop_toTopOf = 0x7f030189;
public static final int layout_constraintVertical_bias = 0x7f03018a;
public static final int layout_constraintVertical_chainStyle = 0x7f03018b;
public static final int layout_constraintVertical_weight = 0x7f03018c;
public static final int layout_constraintWidth_default = 0x7f03018d;
public static final int layout_constraintWidth_max = 0x7f03018e;
public static final int layout_constraintWidth_min = 0x7f03018f;
public static final int layout_constraintWidth_percent = 0x7f030190;
public static final int layout_dodgeInsetEdges = 0x7f030191;
public static final int layout_editor_absoluteX = 0x7f030192;
public static final int layout_editor_absoluteY = 0x7f030193;
public static final int layout_goneMarginBottom = 0x7f030194;
public static final int layout_goneMarginEnd = 0x7f030195;
public static final int layout_goneMarginLeft = 0x7f030196;
public static final int layout_goneMarginRight = 0x7f030197;
public static final int layout_goneMarginStart = 0x7f030198;
public static final int layout_goneMarginTop = 0x7f030199;
public static final int layout_insetEdge = 0x7f03019a;
public static final int layout_keyline = 0x7f03019b;
public static final int layout_optimizationLevel = 0x7f03019c;
public static final int lineHeight = 0x7f0301a0;
public static final int listChoiceBackgroundIndicator = 0x7f0301a2;
public static final int listDividerAlertDialog = 0x7f0301a5;
public static final int listItemLayout = 0x7f0301a6;
public static final int listLayout = 0x7f0301a7;
public static final int listMenuViewStyle = 0x7f0301a8;
public static final int listPopupWindowStyle = 0x7f0301a9;
public static final int listPreferredItemHeight = 0x7f0301aa;
public static final int listPreferredItemHeightLarge = 0x7f0301ab;
public static final int listPreferredItemHeightSmall = 0x7f0301ac;
public static final int listPreferredItemPaddingLeft = 0x7f0301ae;
public static final int listPreferredItemPaddingRight = 0x7f0301af;
public static final int logo = 0x7f0301b1;
public static final int logoDescription = 0x7f0301b2;
public static final int maxAcceleration = 0x7f0301b5;
public static final int maxButtonHeight = 0x7f0301b7;
public static final int maxHeight = 0x7f0301b8;
public static final int maxVelocity = 0x7f0301ba;
public static final int maxWidth = 0x7f0301bb;
public static final int measureWithLargestChild = 0x7f0301bc;
public static final int minHeight = 0x7f0301be;
public static final int minWidth = 0x7f0301bf;
public static final int mock_diagonalsColor = 0x7f0301c0;
public static final int mock_label = 0x7f0301c1;
public static final int mock_labelBackgroundColor = 0x7f0301c2;
public static final int mock_labelColor = 0x7f0301c3;
public static final int mock_showDiagonals = 0x7f0301c4;
public static final int mock_showLabel = 0x7f0301c5;
public static final int motionDebug = 0x7f0301c6;
public static final int motionInterpolator = 0x7f0301c7;
public static final int motionPathRotate = 0x7f0301c8;
public static final int motionProgress = 0x7f0301c9;
public static final int motionStagger = 0x7f0301ca;
public static final int motionTarget = 0x7f0301cb;
public static final int motion_postLayoutCollision = 0x7f0301cc;
public static final int motion_triggerOnCollision = 0x7f0301cd;
public static final int moveWhenScrollAtTop = 0x7f0301ce;
public static final int multiChoiceItemLayout = 0x7f0301cf;
public static final int navigationContentDescription = 0x7f0301d0;
public static final int navigationIcon = 0x7f0301d1;
public static final int navigationMode = 0x7f0301d2;
public static final int numericModifiers = 0x7f0301d4;
public static final int onCross = 0x7f0301d5;
public static final int onHide = 0x7f0301d6;
public static final int onNegativeCross = 0x7f0301d7;
public static final int onPositiveCross = 0x7f0301d8;
public static final int onShow = 0x7f0301d9;
public static final int onTouchUp = 0x7f0301da;
public static final int overlapAnchor = 0x7f0301db;
public static final int overlay = 0x7f0301dc;
public static final int paddingBottomNoButtons = 0x7f0301dd;
public static final int paddingEnd = 0x7f0301de;
public static final int paddingStart = 0x7f0301df;
public static final int paddingTopNoTitle = 0x7f0301e0;
public static final int panelBackground = 0x7f0301e1;
public static final int panelMenuListTheme = 0x7f0301e2;
public static final int panelMenuListWidth = 0x7f0301e3;
public static final int pathMotionArc = 0x7f0301e9;
public static final int path_percent = 0x7f0301ea;
public static final int percentHeight = 0x7f0301eb;
public static final int percentWidth = 0x7f0301ec;
public static final int percentX = 0x7f0301ed;
public static final int percentY = 0x7f0301ee;
public static final int perpendicularPath_percent = 0x7f0301ef;
public static final int pivotAnchor = 0x7f0301f0;
public static final int pivotX = 0x7f0301f1;
public static final int pivotY = 0x7f0301f2;
public static final int popupMenuStyle = 0x7f0301f3;
public static final int popupTheme = 0x7f0301f4;
public static final int popupWindowStyle = 0x7f0301f5;
public static final int preserveIconSpacing = 0x7f0301f6;
public static final int progress = 0x7f0301f8;
public static final int progressBarPadding = 0x7f0301f9;
public static final int progressBarStyle = 0x7f0301fa;
public static final int queryBackground = 0x7f0301fb;
public static final int queryHint = 0x7f0301fc;
public static final int radioButtonStyle = 0x7f0301fd;
public static final int ratingBarStyle = 0x7f0301fe;
public static final int ratingBarStyleIndicator = 0x7f0301ff;
public static final int ratingBarStyleSmall = 0x7f030200;
public static final int region_heightLessThan = 0x7f030201;
public static final int region_heightMoreThan = 0x7f030202;
public static final int region_widthLessThan = 0x7f030203;
public static final int region_widthMoreThan = 0x7f030204;
public static final int round = 0x7f030207;
public static final int roundPercent = 0x7f030208;
public static final int saturation = 0x7f030209;
public static final int searchHintIcon = 0x7f03020d;
public static final int searchIcon = 0x7f03020e;
public static final int searchViewStyle = 0x7f03020f;
public static final int seekBarStyle = 0x7f030210;
public static final int selectableItemBackground = 0x7f030211;
public static final int selectableItemBackgroundBorderless = 0x7f030212;
public static final int showAsAction = 0x7f030213;
public static final int showDividers = 0x7f030214;
public static final int showPaths = 0x7f030216;
public static final int showText = 0x7f030217;
public static final int showTitle = 0x7f030218;
public static final int singleChoiceItemLayout = 0x7f030219;
public static final int sizePercent = 0x7f03021c;
public static final int spinBars = 0x7f030220;
public static final int spinnerDropDownItemStyle = 0x7f030221;
public static final int spinnerStyle = 0x7f030222;
public static final int splitTrack = 0x7f030223;
public static final int srcCompat = 0x7f030224;
public static final int staggered = 0x7f030226;
public static final int state_above_anchor = 0x7f030227;
public static final int statusBarBackground = 0x7f03022c;
public static final int subMenuArrow = 0x7f030230;
public static final int submitBackground = 0x7f030231;
public static final int subtitle = 0x7f030232;
public static final int subtitleTextAppearance = 0x7f030233;
public static final int subtitleTextColor = 0x7f030234;
public static final int subtitleTextStyle = 0x7f030235;
public static final int suggestionRowLayout = 0x7f030236;
public static final int switchMinWidth = 0x7f030237;
public static final int switchPadding = 0x7f030238;
public static final int switchStyle = 0x7f030239;
public static final int switchTextAppearance = 0x7f03023a;
public static final int targetId = 0x7f030255;
public static final int telltales_tailColor = 0x7f030256;
public static final int telltales_tailScale = 0x7f030257;
public static final int telltales_velocityMode = 0x7f030258;
public static final int textAllCaps = 0x7f030259;
public static final int textAppearanceLargePopupMenu = 0x7f030264;
public static final int textAppearanceListItem = 0x7f030265;
public static final int textAppearanceListItemSecondary = 0x7f030266;
public static final int textAppearanceListItemSmall = 0x7f030267;
public static final int textAppearancePopupMenuHeader = 0x7f030269;
public static final int textAppearanceSearchResultSubtitle = 0x7f03026a;
public static final int textAppearanceSearchResultTitle = 0x7f03026b;
public static final int textAppearanceSmallPopupMenu = 0x7f03026c;
public static final int textColorAlertDialogListItem = 0x7f03026f;
public static final int textColorSearchUrl = 0x7f030270;
public static final int theme = 0x7f030275;
public static final int thickness = 0x7f030276;
public static final int thumbTextPadding = 0x7f030277;
public static final int thumbTint = 0x7f030278;
public static final int thumbTintMode = 0x7f030279;
public static final int tickMark = 0x7f03027a;
public static final int tickMarkTint = 0x7f03027b;
public static final int tickMarkTintMode = 0x7f03027c;
public static final int tint = 0x7f03027d;
public static final int tintMode = 0x7f03027e;
public static final int title = 0x7f03027f;
public static final int titleMargin = 0x7f030281;
public static final int titleMarginBottom = 0x7f030282;
public static final int titleMarginEnd = 0x7f030283;
public static final int titleMarginStart = 0x7f030284;
public static final int titleMarginTop = 0x7f030285;
public static final int titleMargins = 0x7f030286;
public static final int titleTextAppearance = 0x7f030287;
public static final int titleTextColor = 0x7f030288;
public static final int titleTextStyle = 0x7f030289;
public static final int toolbarNavigationButtonStyle = 0x7f03028b;
public static final int toolbarStyle = 0x7f03028c;
public static final int tooltipForegroundColor = 0x7f03028d;
public static final int tooltipFrameBackground = 0x7f03028e;
public static final int tooltipText = 0x7f03028f;
public static final int touchAnchorId = 0x7f030290;
public static final int touchAnchorSide = 0x7f030291;
public static final int touchRegionId = 0x7f030292;
public static final int track = 0x7f030293;
public static final int trackTint = 0x7f030294;
public static final int trackTintMode = 0x7f030295;
public static final int transitionDisable = 0x7f030296;
public static final int transitionEasing = 0x7f030297;
public static final int transitionPathRotate = 0x7f030298;
public static final int triggerId = 0x7f030299;
public static final int triggerReceiver = 0x7f03029a;
public static final int triggerSlack = 0x7f03029b;
public static final int ttcIndex = 0x7f03029c;
public static final int viewInflaterClass = 0x7f03029e;
public static final int visibilityMode = 0x7f03029f;
public static final int voiceIcon = 0x7f0302a0;
public static final int warmth = 0x7f0302a1;
public static final int waveDecay = 0x7f0302a2;
public static final int waveOffset = 0x7f0302a3;
public static final int wavePeriod = 0x7f0302a4;
public static final int waveShape = 0x7f0302a5;
public static final int waveVariesBy = 0x7f0302a6;
public static final int windowActionBar = 0x7f0302a7;
public static final int windowActionBarOverlay = 0x7f0302a8;
public static final int windowActionModeOverlay = 0x7f0302a9;
public static final int windowFixedHeightMajor = 0x7f0302aa;
public static final int windowFixedHeightMinor = 0x7f0302ab;
public static final int windowFixedWidthMajor = 0x7f0302ac;
public static final int windowFixedWidthMinor = 0x7f0302ad;
public static final int windowMinWidthMajor = 0x7f0302ae;
public static final int windowMinWidthMinor = 0x7f0302af;
public static final int windowNoTitle = 0x7f0302b0;
}
public static final class bool {
private bool() {}
public static final int abc_action_bar_embed_tabs = 0x7f040000;
public static final int abc_allow_stacked_button_bar = 0x7f040001;
public static final int abc_config_actionMenuItemAllCaps = 0x7f040002;
}
public static final class color {
private color() {}
public static final int abc_background_cache_hint_selector_material_dark = 0x7f050000;
public static final int abc_background_cache_hint_selector_material_light = 0x7f050001;
public static final int abc_btn_colored_borderless_text_material = 0x7f050002;
public static final int abc_btn_colored_text_material = 0x7f050003;
public static final int abc_color_highlight_material = 0x7f050004;
public static final int abc_hint_foreground_material_dark = 0x7f050005;
public static final int abc_hint_foreground_material_light = 0x7f050006;
public static final int abc_input_method_navigation_guard = 0x7f050007;
public static final int abc_primary_text_disable_only_material_dark = 0x7f050008;
public static final int abc_primary_text_disable_only_material_light = 0x7f050009;
public static final int abc_primary_text_material_dark = 0x7f05000a;
public static final int abc_primary_text_material_light = 0x7f05000b;
public static final int abc_search_url_text = 0x7f05000c;
public static final int abc_search_url_text_normal = 0x7f05000d;
public static final int abc_search_url_text_pressed = 0x7f05000e;
public static final int abc_search_url_text_selected = 0x7f05000f;
public static final int abc_secondary_text_material_dark = 0x7f050010;
public static final int abc_secondary_text_material_light = 0x7f050011;
public static final int abc_tint_btn_checkable = 0x7f050012;
public static final int abc_tint_default = 0x7f050013;
public static final int abc_tint_edittext = 0x7f050014;
public static final int abc_tint_seek_thumb = 0x7f050015;
public static final int abc_tint_spinner = 0x7f050016;
public static final int abc_tint_switch_track = 0x7f050017;
public static final int accent_material_dark = 0x7f050018;
public static final int accent_material_light = 0x7f050019;
public static final int background_floating_material_dark = 0x7f05001a;
public static final int background_floating_material_light = 0x7f05001b;
public static final int background_material_dark = 0x7f05001c;
public static final int background_material_light = 0x7f05001d;
public static final int bright_foreground_disabled_material_dark = 0x7f05001e;
public static final int bright_foreground_disabled_material_light = 0x7f05001f;
public static final int bright_foreground_inverse_material_dark = 0x7f050020;
public static final int bright_foreground_inverse_material_light = 0x7f050021;
public static final int bright_foreground_material_dark = 0x7f050022;
public static final int bright_foreground_material_light = 0x7f050023;
public static final int button_material_dark = 0x7f050024;
public static final int button_material_light = 0x7f050025;
public static final int dim_foreground_disabled_material_dark = 0x7f05003e;
public static final int dim_foreground_disabled_material_light = 0x7f05003f;
public static final int dim_foreground_material_dark = 0x7f050040;
public static final int dim_foreground_material_light = 0x7f050041;
public static final int error_color_material_dark = 0x7f050042;
public static final int error_color_material_light = 0x7f050043;
public static final int foreground_material_dark = 0x7f050044;
public static final int foreground_material_light = 0x7f050045;
public static final int highlighted_text_material_dark = 0x7f050046;
public static final int highlighted_text_material_light = 0x7f050047;
public static final int material_blue_grey_800 = 0x7f050048;
public static final int material_blue_grey_900 = 0x7f050049;
public static final int material_blue_grey_950 = 0x7f05004a;
public static final int material_deep_teal_200 = 0x7f05004b;
public static final int material_deep_teal_500 = 0x7f05004c;
public static final int material_grey_100 = 0x7f05004d;
public static final int material_grey_300 = 0x7f05004e;
public static final int material_grey_50 = 0x7f05004f;
public static final int material_grey_600 = 0x7f050050;
public static final int material_grey_800 = 0x7f050051;
public static final int material_grey_850 = 0x7f050052;
public static final int material_grey_900 = 0x7f050053;
public static final int notification_action_color_filter = 0x7f05006f;
public static final int notification_icon_bg_color = 0x7f050070;
public static final int primary_dark_material_dark = 0x7f050072;
public static final int primary_dark_material_light = 0x7f050073;
public static final int primary_material_dark = 0x7f050074;
public static final int primary_material_light = 0x7f050075;
public static final int primary_text_default_material_dark = 0x7f050076;
public static final int primary_text_default_material_light = 0x7f050077;
public static final int primary_text_disabled_material_dark = 0x7f050078;
public static final int primary_text_disabled_material_light = 0x7f050079;
public static final int ripple_material_dark = 0x7f05007a;
public static final int ripple_material_light = 0x7f05007b;
public static final int secondary_text_default_material_dark = 0x7f05007c;
public static final int secondary_text_default_material_light = 0x7f05007d;
public static final int secondary_text_disabled_material_dark = 0x7f05007e;
public static final int secondary_text_disabled_material_light = 0x7f05007f;
public static final int switch_thumb_disabled_material_dark = 0x7f050080;
public static final int switch_thumb_disabled_material_light = 0x7f050081;
public static final int switch_thumb_material_dark = 0x7f050082;
public static final int switch_thumb_material_light = 0x7f050083;
public static final int switch_thumb_normal_material_dark = 0x7f050084;
public static final int switch_thumb_normal_material_light = 0x7f050085;
public static final int tooltip_background_dark = 0x7f050087;
public static final int tooltip_background_light = 0x7f050088;
}
public static final class dimen {
private dimen() {}
public static final int abc_action_bar_content_inset_material = 0x7f060000;
public static final int abc_action_bar_content_inset_with_nav = 0x7f060001;
public static final int abc_action_bar_default_height_material = 0x7f060002;
public static final int abc_action_bar_default_padding_end_material = 0x7f060003;
public static final int abc_action_bar_default_padding_start_material = 0x7f060004;
public static final int abc_action_bar_elevation_material = 0x7f060005;
public static final int abc_action_bar_icon_vertical_padding_material = 0x7f060006;
public static final int abc_action_bar_overflow_padding_end_material = 0x7f060007;
public static final int abc_action_bar_overflow_padding_start_material = 0x7f060008;
public static final int abc_action_bar_stacked_max_height = 0x7f060009;
public static final int abc_action_bar_stacked_tab_max_width = 0x7f06000a;
public static final int abc_action_bar_subtitle_bottom_margin_material = 0x7f06000b;
public static final int abc_action_bar_subtitle_top_margin_material = 0x7f06000c;
public static final int abc_action_button_min_height_material = 0x7f06000d;
public static final int abc_action_button_min_width_material = 0x7f06000e;
public static final int abc_action_button_min_width_overflow_material = 0x7f06000f;
public static final int abc_alert_dialog_button_bar_height = 0x7f060010;
public static final int abc_alert_dialog_button_dimen = 0x7f060011;
public static final int abc_button_inset_horizontal_material = 0x7f060012;
public static final int abc_button_inset_vertical_material = 0x7f060013;
public static final int abc_button_padding_horizontal_material = 0x7f060014;
public static final int abc_button_padding_vertical_material = 0x7f060015;
public static final int abc_cascading_menus_min_smallest_width = 0x7f060016;
public static final int abc_config_prefDialogWidth = 0x7f060017;
public static final int abc_control_corner_material = 0x7f060018;
public static final int abc_control_inset_material = 0x7f060019;
public static final int abc_control_padding_material = 0x7f06001a;
public static final int abc_dialog_corner_radius_material = 0x7f06001b;
public static final int abc_dialog_fixed_height_major = 0x7f06001c;
public static final int abc_dialog_fixed_height_minor = 0x7f06001d;
public static final int abc_dialog_fixed_width_major = 0x7f06001e;
public static final int abc_dialog_fixed_width_minor = 0x7f06001f;
public static final int abc_dialog_list_padding_bottom_no_buttons = 0x7f060020;
public static final int abc_dialog_list_padding_top_no_title = 0x7f060021;
public static final int abc_dialog_min_width_major = 0x7f060022;
public static final int abc_dialog_min_width_minor = 0x7f060023;
public static final int abc_dialog_padding_material = 0x7f060024;
public static final int abc_dialog_padding_top_material = 0x7f060025;
public static final int abc_dialog_title_divider_material = 0x7f060026;
public static final int abc_disabled_alpha_material_dark = 0x7f060027;
public static final int abc_disabled_alpha_material_light = 0x7f060028;
public static final int abc_dropdownitem_icon_width = 0x7f060029;
public static final int abc_dropdownitem_text_padding_left = 0x7f06002a;
public static final int abc_dropdownitem_text_padding_right = 0x7f06002b;
public static final int abc_edit_text_inset_bottom_material = 0x7f06002c;
public static final int abc_edit_text_inset_horizontal_material = 0x7f06002d;
public static final int abc_edit_text_inset_top_material = 0x7f06002e;
public static final int abc_floating_window_z = 0x7f06002f;
public static final int abc_list_item_padding_horizontal_material = 0x7f060033;
public static final int abc_panel_menu_list_width = 0x7f060034;
public static final int abc_progress_bar_height_material = 0x7f060035;
public static final int abc_search_view_preferred_height = 0x7f060036;
public static final int abc_search_view_preferred_width = 0x7f060037;
public static final int abc_seekbar_track_background_height_material = 0x7f060038;
public static final int abc_seekbar_track_progress_height_material = 0x7f060039;
public static final int abc_select_dialog_padding_start_material = 0x7f06003a;
public static final int abc_switch_padding = 0x7f06003b;
public static final int abc_text_size_body_1_material = 0x7f06003c;
public static final int abc_text_size_body_2_material = 0x7f06003d;
public static final int abc_text_size_button_material = 0x7f06003e;
public static final int abc_text_size_caption_material = 0x7f06003f;
public static final int abc_text_size_display_1_material = 0x7f060040;
public static final int abc_text_size_display_2_material = 0x7f060041;
public static final int abc_text_size_display_3_material = 0x7f060042;
public static final int abc_text_size_display_4_material = 0x7f060043;
public static final int abc_text_size_headline_material = 0x7f060044;
public static final int abc_text_size_large_material = 0x7f060045;
public static final int abc_text_size_medium_material = 0x7f060046;
public static final int abc_text_size_menu_header_material = 0x7f060047;
public static final int abc_text_size_menu_material = 0x7f060048;
public static final int abc_text_size_small_material = 0x7f060049;
public static final int abc_text_size_subhead_material = 0x7f06004a;
public static final int abc_text_size_subtitle_material_toolbar = 0x7f06004b;
public static final int abc_text_size_title_material = 0x7f06004c;
public static final int abc_text_size_title_material_toolbar = 0x7f06004d;
public static final int compat_button_inset_horizontal_material = 0x7f060053;
public static final int compat_button_inset_vertical_material = 0x7f060054;
public static final int compat_button_padding_horizontal_material = 0x7f060055;
public static final int compat_button_padding_vertical_material = 0x7f060056;
public static final int compat_control_corner_material = 0x7f060057;
public static final int compat_notification_large_icon_max_height = 0x7f060058;
public static final int compat_notification_large_icon_max_width = 0x7f060059;
public static final int disabled_alpha_material_dark = 0x7f060089;
public static final int disabled_alpha_material_light = 0x7f06008a;
public static final int highlight_alpha_material_colored = 0x7f06009b;
public static final int highlight_alpha_material_dark = 0x7f06009c;
public static final int highlight_alpha_material_light = 0x7f06009d;
public static final int hint_alpha_material_dark = 0x7f06009e;
public static final int hint_alpha_material_light = 0x7f06009f;
public static final int hint_pressed_alpha_material_dark = 0x7f0600a0;
public static final int hint_pressed_alpha_material_light = 0x7f0600a1;
public static final int notification_action_icon_size = 0x7f0600d7;
public static final int notification_action_text_size = 0x7f0600d8;
public static final int notification_big_circle_margin = 0x7f0600d9;
public static final int notification_content_margin_start = 0x7f0600da;
public static final int notification_large_icon_height = 0x7f0600db;
public static final int notification_large_icon_width = 0x7f0600dc;
public static final int notification_main_column_padding_top = 0x7f0600dd;
public static final int notification_media_narrow_margin = 0x7f0600de;
public static final int notification_right_icon_size = 0x7f0600df;
public static final int notification_right_side_padding_top = 0x7f0600e0;
public static final int notification_small_icon_background_padding = 0x7f0600e1;
public static final int notification_small_icon_size_as_large = 0x7f0600e2;
public static final int notification_subtext_size = 0x7f0600e3;
public static final int notification_top_pad = 0x7f0600e4;
public static final int notification_top_pad_large_text = 0x7f0600e5;
public static final int tooltip_corner_radius = 0x7f0600ed;
public static final int tooltip_horizontal_padding = 0x7f0600ee;
public static final int tooltip_margin = 0x7f0600ef;
public static final int tooltip_precise_anchor_extra_offset = 0x7f0600f0;
public static final int tooltip_precise_anchor_threshold = 0x7f0600f1;
public static final int tooltip_vertical_padding = 0x7f0600f2;
public static final int tooltip_y_offset_non_touch = 0x7f0600f3;
public static final int tooltip_y_offset_touch = 0x7f0600f4;
}
public static final class drawable {
private drawable() {}
public static final int abc_ab_share_pack_mtrl_alpha = 0x7f070007;
public static final int abc_action_bar_item_background_material = 0x7f070008;
public static final int abc_btn_borderless_material = 0x7f070009;
public static final int abc_btn_check_material = 0x7f07000a;
public static final int abc_btn_check_to_on_mtrl_000 = 0x7f07000c;
public static final int abc_btn_check_to_on_mtrl_015 = 0x7f07000d;
public static final int abc_btn_colored_material = 0x7f07000e;
public static final int abc_btn_default_mtrl_shape = 0x7f07000f;
public static final int abc_btn_radio_material = 0x7f070010;
public static final int abc_btn_radio_to_on_mtrl_000 = 0x7f070012;
public static final int abc_btn_radio_to_on_mtrl_015 = 0x7f070013;
public static final int abc_btn_switch_to_on_mtrl_00001 = 0x7f070014;
public static final int abc_btn_switch_to_on_mtrl_00012 = 0x7f070015;
public static final int abc_cab_background_internal_bg = 0x7f070016;
public static final int abc_cab_background_top_material = 0x7f070017;
public static final int abc_cab_background_top_mtrl_alpha = 0x7f070018;
public static final int abc_control_background_material = 0x7f070019;
public static final int abc_dialog_material_background = 0x7f07001a;
public static final int abc_edit_text_material = 0x7f07001b;
public static final int abc_ic_ab_back_material = 0x7f07001c;
public static final int abc_ic_arrow_drop_right_black_24dp = 0x7f07001d;
public static final int abc_ic_clear_material = 0x7f07001e;
public static final int abc_ic_commit_search_api_mtrl_alpha = 0x7f07001f;
public static final int abc_ic_go_search_api_material = 0x7f070020;
public static final int abc_ic_menu_copy_mtrl_am_alpha = 0x7f070021;
public static final int abc_ic_menu_cut_mtrl_alpha = 0x7f070022;
public static final int abc_ic_menu_overflow_material = 0x7f070023;
public static final int abc_ic_menu_paste_mtrl_am_alpha = 0x7f070024;
public static final int abc_ic_menu_selectall_mtrl_alpha = 0x7f070025;
public static final int abc_ic_menu_share_mtrl_alpha = 0x7f070026;
public static final int abc_ic_search_api_material = 0x7f070027;
public static final int abc_ic_star_black_16dp = 0x7f070028;
public static final int abc_ic_star_black_36dp = 0x7f070029;
public static final int abc_ic_star_black_48dp = 0x7f07002a;
public static final int abc_ic_star_half_black_16dp = 0x7f07002b;
public static final int abc_ic_star_half_black_36dp = 0x7f07002c;
public static final int abc_ic_star_half_black_48dp = 0x7f07002d;
public static final int abc_ic_voice_search_api_material = 0x7f07002e;
public static final int abc_item_background_holo_dark = 0x7f07002f;
public static final int abc_item_background_holo_light = 0x7f070030;
public static final int abc_list_divider_material = 0x7f070031;
public static final int abc_list_divider_mtrl_alpha = 0x7f070032;
public static final int abc_list_focused_holo = 0x7f070033;
public static final int abc_list_longpressed_holo = 0x7f070034;
public static final int abc_list_pressed_holo_dark = 0x7f070035;
public static final int abc_list_pressed_holo_light = 0x7f070036;
public static final int abc_list_selector_background_transition_holo_dark = 0x7f070037;
public static final int abc_list_selector_background_transition_holo_light = 0x7f070038;
public static final int abc_list_selector_disabled_holo_dark = 0x7f070039;
public static final int abc_list_selector_disabled_holo_light = 0x7f07003a;
public static final int abc_list_selector_holo_dark = 0x7f07003b;
public static final int abc_list_selector_holo_light = 0x7f07003c;
public static final int abc_menu_hardkey_panel_mtrl_mult = 0x7f07003d;
public static final int abc_popup_background_mtrl_mult = 0x7f07003e;
public static final int abc_ratingbar_indicator_material = 0x7f07003f;
public static final int abc_ratingbar_material = 0x7f070040;
public static final int abc_ratingbar_small_material = 0x7f070041;
public static final int abc_scrubber_control_off_mtrl_alpha = 0x7f070042;
public static final int abc_scrubber_control_to_pressed_mtrl_000 = 0x7f070043;
public static final int abc_scrubber_control_to_pressed_mtrl_005 = 0x7f070044;
public static final int abc_scrubber_primary_mtrl_alpha = 0x7f070045;
public static final int abc_scrubber_track_mtrl_alpha = 0x7f070046;
public static final int abc_seekbar_thumb_material = 0x7f070047;
public static final int abc_seekbar_tick_mark_material = 0x7f070048;
public static final int abc_seekbar_track_material = 0x7f070049;
public static final int abc_spinner_mtrl_am_alpha = 0x7f07004a;
public static final int abc_spinner_textfield_background_material = 0x7f07004b;
public static final int abc_switch_thumb_material = 0x7f07004c;
public static final int abc_switch_track_mtrl_alpha = 0x7f07004d;
public static final int abc_tab_indicator_material = 0x7f07004e;
public static final int abc_tab_indicator_mtrl_alpha = 0x7f07004f;
public static final int abc_text_cursor_material = 0x7f070050;
public static final int abc_text_select_handle_left_mtrl_dark = 0x7f070051;
public static final int abc_text_select_handle_left_mtrl_light = 0x7f070052;
public static final int abc_text_select_handle_middle_mtrl_dark = 0x7f070053;
public static final int abc_text_select_handle_middle_mtrl_light = 0x7f070054;
public static final int abc_text_select_handle_right_mtrl_dark = 0x7f070055;
public static final int abc_text_select_handle_right_mtrl_light = 0x7f070056;
public static final int abc_textfield_activated_mtrl_alpha = 0x7f070057;
public static final int abc_textfield_default_mtrl_alpha = 0x7f070058;
public static final int abc_textfield_search_activated_mtrl_alpha = 0x7f070059;
public static final int abc_textfield_search_default_mtrl_alpha = 0x7f07005a;
public static final int abc_textfield_search_material = 0x7f07005b;
public static final int abc_vector_test = 0x7f07005c;
public static final int notification_action_background = 0x7f070082;
public static final int notification_bg = 0x7f070083;
public static final int notification_bg_low = 0x7f070084;
public static final int notification_bg_low_normal = 0x7f070085;
public static final int notification_bg_low_pressed = 0x7f070086;
public static final int notification_bg_normal = 0x7f070087;
public static final int notification_bg_normal_pressed = 0x7f070088;
public static final int notification_icon_background = 0x7f070089;
public static final int notification_template_icon_bg = 0x7f07008a;
public static final int notification_template_icon_low_bg = 0x7f07008b;
public static final int notification_tile_bg = 0x7f07008c;
public static final int notify_panel_notification_icon_bg = 0x7f07008d;
public static final int tooltip_frame_dark = 0x7f07008e;
public static final int tooltip_frame_light = 0x7f07008f;
}
public static final class id {
private id() {}
public static final int NO_DEBUG = 0x7f08000a;
public static final int SHOW_ALL = 0x7f08000f;
public static final int SHOW_PATH = 0x7f080010;
public static final int SHOW_PROGRESS = 0x7f080011;
public static final int accelerate = 0x7f080015;
public static final int accessibility_action_clickable_span = 0x7f080016;
public static final int accessibility_custom_action_0 = 0x7f080017;
public static final int accessibility_custom_action_1 = 0x7f080018;
public static final int accessibility_custom_action_10 = 0x7f080019;
public static final int accessibility_custom_action_11 = 0x7f08001a;
public static final int accessibility_custom_action_12 = 0x7f08001b;
public static final int accessibility_custom_action_13 = 0x7f08001c;
public static final int accessibility_custom_action_14 = 0x7f08001d;
public static final int accessibility_custom_action_15 = 0x7f08001e;
public static final int accessibility_custom_action_16 = 0x7f08001f;
public static final int accessibility_custom_action_17 = 0x7f080020;
public static final int accessibility_custom_action_18 = 0x7f080021;
public static final int accessibility_custom_action_19 = 0x7f080022;
public static final int accessibility_custom_action_2 = 0x7f080023;
public static final int accessibility_custom_action_20 = 0x7f080024;
public static final int accessibility_custom_action_21 = 0x7f080025;
public static final int accessibility_custom_action_22 = 0x7f080026;
public static final int accessibility_custom_action_23 = 0x7f080027;
public static final int accessibility_custom_action_24 = 0x7f080028;
public static final int accessibility_custom_action_25 = 0x7f080029;
public static final int accessibility_custom_action_26 = 0x7f08002a;
public static final int accessibility_custom_action_27 = 0x7f08002b;
public static final int accessibility_custom_action_28 = 0x7f08002c;
public static final int accessibility_custom_action_29 = 0x7f08002d;
public static final int accessibility_custom_action_3 = 0x7f08002e;
public static final int accessibility_custom_action_30 = 0x7f08002f;
public static final int accessibility_custom_action_31 = 0x7f080030;
public static final int accessibility_custom_action_4 = 0x7f080031;
public static final int accessibility_custom_action_5 = 0x7f080032;
public static final int accessibility_custom_action_6 = 0x7f080033;
public static final int accessibility_custom_action_7 = 0x7f080034;
public static final int accessibility_custom_action_8 = 0x7f080035;
public static final int accessibility_custom_action_9 = 0x7f080036;
public static final int action_bar = 0x7f080038;
public static final int action_bar_activity_content = 0x7f080039;
public static final int action_bar_container = 0x7f08003a;
public static final int action_bar_root = 0x7f08003b;
public static final int action_bar_spinner = 0x7f08003c;
public static final int action_bar_subtitle = 0x7f08003d;
public static final int action_bar_title = 0x7f08003e;
public static final int action_container = 0x7f08003f;
public static final int action_context_bar = 0x7f080040;
public static final int action_divider = 0x7f080041;
public static final int action_image = 0x7f080042;
public static final int action_menu_divider = 0x7f080043;
public static final int action_menu_presenter = 0x7f080044;
public static final int action_mode_bar = 0x7f080045;
public static final int action_mode_bar_stub = 0x7f080046;
public static final int action_mode_close_button = 0x7f080047;
public static final int action_text = 0x7f080048;
public static final int actions = 0x7f080049;
public static final int activity_chooser_view_content = 0x7f08004a;
public static final int add = 0x7f08004b;
public static final int alertTitle = 0x7f08004e;
public static final int aligned = 0x7f08004f;
public static final int animateToEnd = 0x7f080052;
public static final int animateToStart = 0x7f080053;
public static final int anticipate = 0x7f080054;
public static final int asConfigured = 0x7f080055;
public static final int async = 0x7f080056;
public static final int autoComplete = 0x7f080058;
public static final int autoCompleteToEnd = 0x7f080059;
public static final int autoCompleteToStart = 0x7f08005a;
public static final int baseline = 0x7f08005c;
public static final int blocking = 0x7f08005e;
public static final int bottom = 0x7f08005f;
public static final int bounce = 0x7f080060;
public static final int buttonPanel = 0x7f080061;
public static final int center = 0x7f080063;
public static final int chain = 0x7f080066;
public static final int checkbox = 0x7f080068;
public static final int chronometer = 0x7f08006a;
public static final int content = 0x7f080071;
public static final int contentPanel = 0x7f080072;
public static final int cos = 0x7f080074;
public static final int custom = 0x7f080077;
public static final int customPanel = 0x7f080078;
public static final int decelerate = 0x7f080079;
public static final int decelerateAndComplete = 0x7f08007a;
public static final int decor_content_parent = 0x7f08007b;
public static final int default_activity_button = 0x7f08007c;
public static final int deltaRelative = 0x7f08007d;
public static final int dialog_button = 0x7f080084;
public static final int dragDown = 0x7f080089;
public static final int dragLeft = 0x7f08008a;
public static final int dragRight = 0x7f08008b;
public static final int dragUp = 0x7f08008c;
public static final int easeIn = 0x7f08008d;
public static final int easeInOut = 0x7f08008e;
public static final int easeOut = 0x7f08008f;
public static final int edit_query = 0x7f080090;
public static final int end = 0x7f080092;
public static final int expand_activities_button = 0x7f080097;
public static final int expanded_menu = 0x7f080098;
public static final int flip = 0x7f0800a0;
public static final int forever = 0x7f0800a2;
public static final int gone = 0x7f0800a6;
public static final int group_divider = 0x7f0800a9;
public static final int home = 0x7f0800ae;
public static final int icon = 0x7f0800b0;
public static final int icon_group = 0x7f0800b1;
public static final int ignore = 0x7f0800b3;
public static final int image = 0x7f0800b4;
public static final int info = 0x7f0800b7;
public static final int invisible = 0x7f0800b8;
public static final int italic = 0x7f0800b9;
public static final int jumpToEnd = 0x7f0800be;
public static final int jumpToStart = 0x7f0800bf;
public static final int layout = 0x7f0800c3;
public static final int left = 0x7f0800c4;
public static final int line1 = 0x7f0800c5;
public static final int line3 = 0x7f0800c6;
public static final int linear = 0x7f0800c7;
public static final int listMode = 0x7f0800c9;
public static final int list_item = 0x7f0800ca;
public static final int message = 0x7f0800ce;
public static final int multiply = 0x7f0800d3;
public static final int none = 0x7f0800d8;
public static final int normal = 0x7f0800d9;
public static final int notification_background = 0x7f0800da;
public static final int notification_main_column = 0x7f0800db;
public static final int notification_main_column_container = 0x7f0800dc;
public static final int packed = 0x7f0800e0;
public static final int parent = 0x7f0800e2;
public static final int parentPanel = 0x7f0800e3;
public static final int parentRelative = 0x7f0800e4;
public static final int path = 0x7f0800e7;
public static final int pathRelative = 0x7f0800e8;
public static final int percent = 0x7f0800e9;
public static final int position = 0x7f0800ef;
public static final int postLayout = 0x7f0800f1;
public static final int progress_circular = 0x7f0800f2;
public static final int progress_horizontal = 0x7f0800f3;
public static final int radio = 0x7f0800f4;
public static final int rectangles = 0x7f0800f6;
public static final int reverseSawtooth = 0x7f0800fb;
public static final int right = 0x7f0800fc;
public static final int right_icon = 0x7f0800fd;
public static final int right_side = 0x7f0800fe;
public static final int sawtooth = 0x7f080103;
public static final int screen = 0x7f080104;
public static final int scrollIndicatorDown = 0x7f080106;
public static final int scrollIndicatorUp = 0x7f080107;
public static final int scrollView = 0x7f080108;
public static final int search_badge = 0x7f08010d;
public static final int search_bar = 0x7f08010e;
public static final int search_button = 0x7f08010f;
public static final int search_close_btn = 0x7f080110;
public static final int search_edit_frame = 0x7f080111;
public static final int search_go_btn = 0x7f080112;
public static final int search_mag_icon = 0x7f080113;
public static final int search_plate = 0x7f080114;
public static final int search_src_text = 0x7f080115;
public static final int search_voice_btn = 0x7f080116;
public static final int select_dialog_listview = 0x7f080117;
public static final int shortcut = 0x7f080119;
public static final int sin = 0x7f08011f;
public static final int spacer = 0x7f080125;
public static final int spline = 0x7f080127;
public static final int split_action_bar = 0x7f080128;
public static final int spread = 0x7f080129;
public static final int spread_inside = 0x7f08012a;
public static final int square = 0x7f08012b;
public static final int src_atop = 0x7f08012c;
public static final int src_in = 0x7f08012d;
public static final int src_over = 0x7f08012e;
public static final int standard = 0x7f08012f;
public static final int start = 0x7f080130;
public static final int startHorizontal = 0x7f080131;
public static final int startVertical = 0x7f080132;
public static final int staticLayout = 0x7f080133;
public static final int staticPostLayout = 0x7f080134;
public static final int stop = 0x7f080136;
public static final int submenuarrow = 0x7f080138;
public static final int submit_area = 0x7f080139;
public static final int tabMode = 0x7f08013b;
public static final int tag_accessibility_actions = 0x7f08013d;
public static final int tag_accessibility_clickable_spans = 0x7f08013e;
public static final int tag_accessibility_heading = 0x7f08013f;
public static final int tag_accessibility_pane_title = 0x7f080140;
public static final int tag_screen_reader_focusable = 0x7f080141;
public static final int tag_transition_group = 0x7f080142;
public static final int tag_unhandled_key_event_manager = 0x7f080143;
public static final int tag_unhandled_key_listeners = 0x7f080144;
public static final int text = 0x7f080146;
public static final int text2 = 0x7f080147;
public static final int textSpacerNoButtons = 0x7f080148;
public static final int textSpacerNoTitle = 0x7f080149;
public static final int time = 0x7f080152;
public static final int title = 0x7f080153;
public static final int titleDividerNoCustom = 0x7f080154;
public static final int title_template = 0x7f080155;
public static final int top = 0x7f080159;
public static final int topPanel = 0x7f08015a;
public static final int triangle = 0x7f080164;
public static final int uniform = 0x7f080167;
public static final int up = 0x7f080169;
public static final int visible = 0x7f08016e;
public static final int wrap = 0x7f080170;
public static final int wrap_content = 0x7f080171;
}
public static final class integer {
private integer() {}
public static final int abc_config_activityDefaultDur = 0x7f090000;
public static final int abc_config_activityShortDur = 0x7f090001;
public static final int cancel_button_image_alpha = 0x7f090004;
public static final int config_tooltipAnimTime = 0x7f090005;
public static final int status_bar_notification_info_maxnum = 0x7f09000e;
}
public static final class layout {
private layout() {}
public static final int abc_action_bar_title_item = 0x7f0b0000;
public static final int abc_action_bar_up_container = 0x7f0b0001;
public static final int abc_action_menu_item_layout = 0x7f0b0002;
public static final int abc_action_menu_layout = 0x7f0b0003;
public static final int abc_action_mode_bar = 0x7f0b0004;
public static final int abc_action_mode_close_item_material = 0x7f0b0005;
public static final int abc_activity_chooser_view = 0x7f0b0006;
public static final int abc_activity_chooser_view_list_item = 0x7f0b0007;
public static final int abc_alert_dialog_button_bar_material = 0x7f0b0008;
public static final int abc_alert_dialog_material = 0x7f0b0009;
public static final int abc_alert_dialog_title_material = 0x7f0b000a;
public static final int abc_cascading_menu_item_layout = 0x7f0b000b;
public static final int abc_dialog_title_material = 0x7f0b000c;
public static final int abc_expanded_menu_layout = 0x7f0b000d;
public static final int abc_list_menu_item_checkbox = 0x7f0b000e;
public static final int abc_list_menu_item_icon = 0x7f0b000f;
public static final int abc_list_menu_item_layout = 0x7f0b0010;
public static final int abc_list_menu_item_radio = 0x7f0b0011;
public static final int abc_popup_menu_header_item_layout = 0x7f0b0012;
public static final int abc_popup_menu_item_layout = 0x7f0b0013;
public static final int abc_screen_content_include = 0x7f0b0014;
public static final int abc_screen_simple = 0x7f0b0015;
public static final int abc_screen_simple_overlay_action_mode = 0x7f0b0016;
public static final int abc_screen_toolbar = 0x7f0b0017;
public static final int abc_search_dropdown_item_icons_2line = 0x7f0b0018;
public static final int abc_search_view = 0x7f0b0019;
public static final int abc_select_dialog_material = 0x7f0b001a;
public static final int abc_tooltip = 0x7f0b001b;
public static final int custom_dialog = 0x7f0b0024;
public static final int notification_action = 0x7f0b003c;
public static final int notification_action_tombstone = 0x7f0b003d;
public static final int notification_template_custom_big = 0x7f0b0044;
public static final int notification_template_icon_group = 0x7f0b0045;
public static final int notification_template_part_chronometer = 0x7f0b0049;
public static final int notification_template_part_time = 0x7f0b004a;
public static final int select_dialog_item_material = 0x7f0b004b;
public static final int select_dialog_multichoice_material = 0x7f0b004c;
public static final int select_dialog_singlechoice_material = 0x7f0b004d;
public static final int support_simple_spinner_dropdown_item = 0x7f0b004e;
}
public static final class string {
private string() {}
public static final int abc_action_bar_home_description = 0x7f0d0000;
public static final int abc_action_bar_up_description = 0x7f0d0001;
public static final int abc_action_menu_overflow_description = 0x7f0d0002;
public static final int abc_action_mode_done = 0x7f0d0003;
public static final int abc_activity_chooser_view_see_all = 0x7f0d0004;
public static final int abc_activitychooserview_choose_application = 0x7f0d0005;
public static final int abc_capital_off = 0x7f0d0006;
public static final int abc_capital_on = 0x7f0d0007;
public static final int abc_menu_alt_shortcut_label = 0x7f0d0008;
public static final int abc_menu_ctrl_shortcut_label = 0x7f0d0009;
public static final int abc_menu_delete_shortcut_label = 0x7f0d000a;
public static final int abc_menu_enter_shortcut_label = 0x7f0d000b;
public static final int abc_menu_function_shortcut_label = 0x7f0d000c;
public static final int abc_menu_meta_shortcut_label = 0x7f0d000d;
public static final int abc_menu_shift_shortcut_label = 0x7f0d000e;
public static final int abc_menu_space_shortcut_label = 0x7f0d000f;
public static final int abc_menu_sym_shortcut_label = 0x7f0d0010;
public static final int abc_prepend_shortcut_label = 0x7f0d0011;
public static final int abc_search_hint = 0x7f0d0012;
public static final int abc_searchview_description_clear = 0x7f0d0013;
public static final int abc_searchview_description_query = 0x7f0d0014;
public static final int abc_searchview_description_search = 0x7f0d0015;
public static final int abc_searchview_description_submit = 0x7f0d0016;
public static final int abc_searchview_description_voice = 0x7f0d0017;
public static final int abc_shareactionprovider_share_with = 0x7f0d0018;
public static final int abc_shareactionprovider_share_with_application = 0x7f0d0019;
public static final int abc_toolbar_collapse_description = 0x7f0d001a;
public static final int search_menu_title = 0x7f0d002e;
public static final int status_bar_notification_info_overflow = 0x7f0d002f;
}
public static final class style {
private style() {}
public static final int AlertDialog_AppCompat = 0x7f0e0000;
public static final int AlertDialog_AppCompat_Light = 0x7f0e0001;
public static final int Animation_AppCompat_Dialog = 0x7f0e0002;
public static final int Animation_AppCompat_DropDownUp = 0x7f0e0003;
public static final int Animation_AppCompat_Tooltip = 0x7f0e0004;
public static final int Base_AlertDialog_AppCompat = 0x7f0e0008;
public static final int Base_AlertDialog_AppCompat_Light = 0x7f0e0009;
public static final int Base_Animation_AppCompat_Dialog = 0x7f0e000a;
public static final int Base_Animation_AppCompat_DropDownUp = 0x7f0e000b;
public static final int Base_Animation_AppCompat_Tooltip = 0x7f0e000c;
public static final int Base_DialogWindowTitleBackground_AppCompat = 0x7f0e000f;
public static final int Base_DialogWindowTitle_AppCompat = 0x7f0e000e;
public static final int Base_TextAppearance_AppCompat = 0x7f0e0010;
public static final int Base_TextAppearance_AppCompat_Body1 = 0x7f0e0011;
public static final int Base_TextAppearance_AppCompat_Body2 = 0x7f0e0012;
public static final int Base_TextAppearance_AppCompat_Button = 0x7f0e0013;
public static final int Base_TextAppearance_AppCompat_Caption = 0x7f0e0014;
public static final int Base_TextAppearance_AppCompat_Display1 = 0x7f0e0015;
public static final int Base_TextAppearance_AppCompat_Display2 = 0x7f0e0016;
public static final int Base_TextAppearance_AppCompat_Display3 = 0x7f0e0017;
public static final int Base_TextAppearance_AppCompat_Display4 = 0x7f0e0018;
public static final int Base_TextAppearance_AppCompat_Headline = 0x7f0e0019;
public static final int Base_TextAppearance_AppCompat_Inverse = 0x7f0e001a;
public static final int Base_TextAppearance_AppCompat_Large = 0x7f0e001b;
public static final int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f0e001c;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0e001d;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0e001e;
public static final int Base_TextAppearance_AppCompat_Medium = 0x7f0e001f;
public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f0e0020;
public static final int Base_TextAppearance_AppCompat_Menu = 0x7f0e0021;
public static final int Base_TextAppearance_AppCompat_SearchResult = 0x7f0e0022;
public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0e0023;
public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f0e0024;
public static final int Base_TextAppearance_AppCompat_Small = 0x7f0e0025;
public static final int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f0e0026;
public static final int Base_TextAppearance_AppCompat_Subhead = 0x7f0e0027;
public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f0e0028;
public static final int Base_TextAppearance_AppCompat_Title = 0x7f0e0029;
public static final int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f0e002a;
public static final int Base_TextAppearance_AppCompat_Tooltip = 0x7f0e002b;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0e002c;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0e002d;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0e002e;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0e002f;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0e0030;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0e0031;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0e0032;
public static final int Base_TextAppearance_AppCompat_Widget_Button = 0x7f0e0033;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f0e0034;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Colored = 0x7f0e0035;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0e0036;
public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0e0037;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0e0038;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0e0039;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0e003a;
public static final int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f0e003b;
public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0e003c;
public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0e003d;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0e003e;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0e003f;
public static final int Base_ThemeOverlay_AppCompat = 0x7f0e005f;
public static final int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f0e0060;
public static final int Base_ThemeOverlay_AppCompat_Dark = 0x7f0e0061;
public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0e0062;
public static final int Base_ThemeOverlay_AppCompat_Dialog = 0x7f0e0063;
public static final int Base_ThemeOverlay_AppCompat_Dialog_Alert = 0x7f0e0064;
public static final int Base_ThemeOverlay_AppCompat_Light = 0x7f0e0065;
public static final int Base_Theme_AppCompat = 0x7f0e0040;
public static final int Base_Theme_AppCompat_CompactMenu = 0x7f0e0041;
public static final int Base_Theme_AppCompat_Dialog = 0x7f0e0042;
public static final int Base_Theme_AppCompat_DialogWhenLarge = 0x7f0e0046;
public static final int Base_Theme_AppCompat_Dialog_Alert = 0x7f0e0043;
public static final int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f0e0044;
public static final int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f0e0045;
public static final int Base_Theme_AppCompat_Light = 0x7f0e0047;
public static final int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f0e0048;
public static final int Base_Theme_AppCompat_Light_Dialog = 0x7f0e0049;
public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f0e004d;
public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f0e004a;
public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f0e004b;
public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0e004c;
public static final int Base_V21_ThemeOverlay_AppCompat_Dialog = 0x7f0e0075;
public static final int Base_V21_Theme_AppCompat = 0x7f0e0071;
public static final int Base_V21_Theme_AppCompat_Dialog = 0x7f0e0072;
public static final int Base_V21_Theme_AppCompat_Light = 0x7f0e0073;
public static final int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f0e0074;
public static final int Base_V22_Theme_AppCompat = 0x7f0e0076;
public static final int Base_V22_Theme_AppCompat_Light = 0x7f0e0077;
public static final int Base_V23_Theme_AppCompat = 0x7f0e0078;
public static final int Base_V23_Theme_AppCompat_Light = 0x7f0e0079;
public static final int Base_V26_Theme_AppCompat = 0x7f0e007a;
public static final int Base_V26_Theme_AppCompat_Light = 0x7f0e007b;
public static final int Base_V26_Widget_AppCompat_Toolbar = 0x7f0e007c;
public static final int Base_V28_Theme_AppCompat = 0x7f0e007d;
public static final int Base_V28_Theme_AppCompat_Light = 0x7f0e007e;
public static final int Base_V7_ThemeOverlay_AppCompat_Dialog = 0x7f0e0083;
public static final int Base_V7_Theme_AppCompat = 0x7f0e007f;
public static final int Base_V7_Theme_AppCompat_Dialog = 0x7f0e0080;
public static final int Base_V7_Theme_AppCompat_Light = 0x7f0e0081;
public static final int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f0e0082;
public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f0e0084;
public static final int Base_V7_Widget_AppCompat_EditText = 0x7f0e0085;
public static final int Base_V7_Widget_AppCompat_Toolbar = 0x7f0e0086;
public static final int Base_Widget_AppCompat_ActionBar = 0x7f0e0087;
public static final int Base_Widget_AppCompat_ActionBar_Solid = 0x7f0e0088;
public static final int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f0e0089;
public static final int Base_Widget_AppCompat_ActionBar_TabText = 0x7f0e008a;
public static final int Base_Widget_AppCompat_ActionBar_TabView = 0x7f0e008b;
public static final int Base_Widget_AppCompat_ActionButton = 0x7f0e008c;
public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f0e008d;
public static final int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f0e008e;
public static final int Base_Widget_AppCompat_ActionMode = 0x7f0e008f;
public static final int Base_Widget_AppCompat_ActivityChooserView = 0x7f0e0090;
public static final int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f0e0091;
public static final int Base_Widget_AppCompat_Button = 0x7f0e0092;
public static final int Base_Widget_AppCompat_ButtonBar = 0x7f0e0098;
public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0e0099;
public static final int Base_Widget_AppCompat_Button_Borderless = 0x7f0e0093;
public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f0e0094;
public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0e0095;
public static final int Base_Widget_AppCompat_Button_Colored = 0x7f0e0096;
public static final int Base_Widget_AppCompat_Button_Small = 0x7f0e0097;
public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f0e009a;
public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f0e009b;
public static final int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f0e009c;
public static final int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f0e009d;
public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f0e009e;
public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f0e009f;
public static final int Base_Widget_AppCompat_EditText = 0x7f0e00a0;
public static final int Base_Widget_AppCompat_ImageButton = 0x7f0e00a1;
public static final int Base_Widget_AppCompat_Light_ActionBar = 0x7f0e00a2;
public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f0e00a3;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0e00a4;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f0e00a5;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0e00a6;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f0e00a7;
public static final int Base_Widget_AppCompat_Light_PopupMenu = 0x7f0e00a8;
public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0e00a9;
public static final int Base_Widget_AppCompat_ListMenuView = 0x7f0e00aa;
public static final int Base_Widget_AppCompat_ListPopupWindow = 0x7f0e00ab;
public static final int Base_Widget_AppCompat_ListView = 0x7f0e00ac;
public static final int Base_Widget_AppCompat_ListView_DropDown = 0x7f0e00ad;
public static final int Base_Widget_AppCompat_ListView_Menu = 0x7f0e00ae;
public static final int Base_Widget_AppCompat_PopupMenu = 0x7f0e00af;
public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f0e00b0;
public static final int Base_Widget_AppCompat_PopupWindow = 0x7f0e00b1;
public static final int Base_Widget_AppCompat_ProgressBar = 0x7f0e00b2;
public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f0e00b3;
public static final int Base_Widget_AppCompat_RatingBar = 0x7f0e00b4;
public static final int Base_Widget_AppCompat_RatingBar_Indicator = 0x7f0e00b5;
public static final int Base_Widget_AppCompat_RatingBar_Small = 0x7f0e00b6;
public static final int Base_Widget_AppCompat_SearchView = 0x7f0e00b7;
public static final int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f0e00b8;
public static final int Base_Widget_AppCompat_SeekBar = 0x7f0e00b9;
public static final int Base_Widget_AppCompat_SeekBar_Discrete = 0x7f0e00ba;
public static final int Base_Widget_AppCompat_Spinner = 0x7f0e00bb;
public static final int Base_Widget_AppCompat_Spinner_Underlined = 0x7f0e00bc;
public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f0e00be;
public static final int Base_Widget_AppCompat_Toolbar = 0x7f0e00bf;
public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0e00c0;
public static final int Platform_AppCompat = 0x7f0e00ca;
public static final int Platform_AppCompat_Light = 0x7f0e00cb;
public static final int Platform_ThemeOverlay_AppCompat = 0x7f0e00d0;
public static final int Platform_ThemeOverlay_AppCompat_Dark = 0x7f0e00d1;
public static final int Platform_ThemeOverlay_AppCompat_Light = 0x7f0e00d2;
public static final int Platform_V21_AppCompat = 0x7f0e00d3;
public static final int Platform_V21_AppCompat_Light = 0x7f0e00d4;
public static final int Platform_V25_AppCompat = 0x7f0e00d5;
public static final int Platform_V25_AppCompat_Light = 0x7f0e00d6;
public static final int Platform_Widget_AppCompat_Spinner = 0x7f0e00d7;
public static final int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f0e00d8;
public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f0e00d9;
public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f0e00da;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f0e00db;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f0e00dc;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Shortcut = 0x7f0e00dd;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_SubmenuArrow = 0x7f0e00de;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f0e00df;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Title = 0x7f0e00e0;
public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f0e00e6;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f0e00e1;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f0e00e2;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f0e00e3;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f0e00e4;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f0e00e5;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 0x7f0e00e7;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 0x7f0e00e8;
public static final int TextAppearance_AppCompat = 0x7f0e00e9;
public static final int TextAppearance_AppCompat_Body1 = 0x7f0e00ea;
public static final int TextAppearance_AppCompat_Body2 = 0x7f0e00eb;
public static final int TextAppearance_AppCompat_Button = 0x7f0e00ec;
public static final int TextAppearance_AppCompat_Caption = 0x7f0e00ed;
public static final int TextAppearance_AppCompat_Display1 = 0x7f0e00ee;
public static final int TextAppearance_AppCompat_Display2 = 0x7f0e00ef;
public static final int TextAppearance_AppCompat_Display3 = 0x7f0e00f0;
public static final int TextAppearance_AppCompat_Display4 = 0x7f0e00f1;
public static final int TextAppearance_AppCompat_Headline = 0x7f0e00f2;
public static final int TextAppearance_AppCompat_Inverse = 0x7f0e00f3;
public static final int TextAppearance_AppCompat_Large = 0x7f0e00f4;
public static final int TextAppearance_AppCompat_Large_Inverse = 0x7f0e00f5;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0e00f6;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0e00f7;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0e00f8;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0e00f9;
public static final int TextAppearance_AppCompat_Medium = 0x7f0e00fa;
public static final int TextAppearance_AppCompat_Medium_Inverse = 0x7f0e00fb;
public static final int TextAppearance_AppCompat_Menu = 0x7f0e00fc;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0e00fd;
public static final int TextAppearance_AppCompat_SearchResult_Title = 0x7f0e00fe;
public static final int TextAppearance_AppCompat_Small = 0x7f0e00ff;
public static final int TextAppearance_AppCompat_Small_Inverse = 0x7f0e0100;
public static final int TextAppearance_AppCompat_Subhead = 0x7f0e0101;
public static final int TextAppearance_AppCompat_Subhead_Inverse = 0x7f0e0102;
public static final int TextAppearance_AppCompat_Title = 0x7f0e0103;
public static final int TextAppearance_AppCompat_Title_Inverse = 0x7f0e0104;
public static final int TextAppearance_AppCompat_Tooltip = 0x7f0e0105;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0e0106;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0e0107;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0e0108;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0e0109;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0e010a;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0e010b;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f0e010c;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0e010d;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f0e010e;
public static final int TextAppearance_AppCompat_Widget_Button = 0x7f0e010f;
public static final int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f0e0110;
public static final int TextAppearance_AppCompat_Widget_Button_Colored = 0x7f0e0111;
public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0e0112;
public static final int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0e0113;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0e0114;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0e0115;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0e0116;
public static final int TextAppearance_AppCompat_Widget_Switch = 0x7f0e0117;
public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0e0118;
public static final int TextAppearance_Compat_Notification = 0x7f0e0119;
public static final int TextAppearance_Compat_Notification_Info = 0x7f0e011a;
public static final int TextAppearance_Compat_Notification_Line2 = 0x7f0e011c;
public static final int TextAppearance_Compat_Notification_Time = 0x7f0e011f;
public static final int TextAppearance_Compat_Notification_Title = 0x7f0e0121;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0e013a;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0e013b;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0e013c;
public static final int ThemeOverlay_AppCompat = 0x7f0e016e;
public static final int ThemeOverlay_AppCompat_ActionBar = 0x7f0e016f;
public static final int ThemeOverlay_AppCompat_Dark = 0x7f0e0170;
public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0e0171;
public static final int ThemeOverlay_AppCompat_Dialog = 0x7f0e0174;
public static final int ThemeOverlay_AppCompat_Dialog_Alert = 0x7f0e0175;
public static final int ThemeOverlay_AppCompat_Light = 0x7f0e0176;
public static final int Theme_AppCompat = 0x7f0e013d;
public static final int Theme_AppCompat_CompactMenu = 0x7f0e013e;
public static final int Theme_AppCompat_DayNight = 0x7f0e013f;
public static final int Theme_AppCompat_DayNight_DarkActionBar = 0x7f0e0140;
public static final int Theme_AppCompat_DayNight_Dialog = 0x7f0e0141;
public static final int Theme_AppCompat_DayNight_DialogWhenLarge = 0x7f0e0144;
public static final int Theme_AppCompat_DayNight_Dialog_Alert = 0x7f0e0142;
public static final int Theme_AppCompat_DayNight_Dialog_MinWidth = 0x7f0e0143;
public static final int Theme_AppCompat_DayNight_NoActionBar = 0x7f0e0145;
public static final int Theme_AppCompat_Dialog = 0x7f0e0146;
public static final int Theme_AppCompat_DialogWhenLarge = 0x7f0e0149;
public static final int Theme_AppCompat_Dialog_Alert = 0x7f0e0147;
public static final int Theme_AppCompat_Dialog_MinWidth = 0x7f0e0148;
public static final int Theme_AppCompat_Light = 0x7f0e014a;
public static final int Theme_AppCompat_Light_DarkActionBar = 0x7f0e014b;
public static final int Theme_AppCompat_Light_Dialog = 0x7f0e014c;
public static final int Theme_AppCompat_Light_DialogWhenLarge = 0x7f0e014f;
public static final int Theme_AppCompat_Light_Dialog_Alert = 0x7f0e014d;
public static final int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0e014e;
public static final int Theme_AppCompat_Light_NoActionBar = 0x7f0e0150;
public static final int Theme_AppCompat_NoActionBar = 0x7f0e0152;
public static final int Widget_AppCompat_ActionBar = 0x7f0e0183;
public static final int Widget_AppCompat_ActionBar_Solid = 0x7f0e0184;
public static final int Widget_AppCompat_ActionBar_TabBar = 0x7f0e0185;
public static final int Widget_AppCompat_ActionBar_TabText = 0x7f0e0186;
public static final int Widget_AppCompat_ActionBar_TabView = 0x7f0e0187;
public static final int Widget_AppCompat_ActionButton = 0x7f0e0188;
public static final int Widget_AppCompat_ActionButton_CloseMode = 0x7f0e0189;
public static final int Widget_AppCompat_ActionButton_Overflow = 0x7f0e018a;
public static final int Widget_AppCompat_ActionMode = 0x7f0e018b;
public static final int Widget_AppCompat_ActivityChooserView = 0x7f0e018c;
public static final int Widget_AppCompat_AutoCompleteTextView = 0x7f0e018d;
public static final int Widget_AppCompat_Button = 0x7f0e018e;
public static final int Widget_AppCompat_ButtonBar = 0x7f0e0194;
public static final int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0e0195;
public static final int Widget_AppCompat_Button_Borderless = 0x7f0e018f;
public static final int Widget_AppCompat_Button_Borderless_Colored = 0x7f0e0190;
public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0e0191;
public static final int Widget_AppCompat_Button_Colored = 0x7f0e0192;
public static final int Widget_AppCompat_Button_Small = 0x7f0e0193;
public static final int Widget_AppCompat_CompoundButton_CheckBox = 0x7f0e0196;
public static final int Widget_AppCompat_CompoundButton_RadioButton = 0x7f0e0197;
public static final int Widget_AppCompat_CompoundButton_Switch = 0x7f0e0198;
public static final int Widget_AppCompat_DrawerArrowToggle = 0x7f0e0199;
public static final int Widget_AppCompat_DropDownItem_Spinner = 0x7f0e019a;
public static final int Widget_AppCompat_EditText = 0x7f0e019b;
public static final int Widget_AppCompat_ImageButton = 0x7f0e019c;
public static final int Widget_AppCompat_Light_ActionBar = 0x7f0e019d;
public static final int Widget_AppCompat_Light_ActionBar_Solid = 0x7f0e019e;
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f0e019f;
public static final int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0e01a0;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f0e01a1;
public static final int Widget_AppCompat_Light_ActionBar_TabText = 0x7f0e01a2;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0e01a3;
public static final int Widget_AppCompat_Light_ActionBar_TabView = 0x7f0e01a4;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f0e01a5;
public static final int Widget_AppCompat_Light_ActionButton = 0x7f0e01a6;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f0e01a7;
public static final int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f0e01a8;
public static final int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f0e01a9;
public static final int Widget_AppCompat_Light_ActivityChooserView = 0x7f0e01aa;
public static final int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f0e01ab;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f0e01ac;
public static final int Widget_AppCompat_Light_ListPopupWindow = 0x7f0e01ad;
public static final int Widget_AppCompat_Light_ListView_DropDown = 0x7f0e01ae;
public static final int Widget_AppCompat_Light_PopupMenu = 0x7f0e01af;
public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0e01b0;
public static final int Widget_AppCompat_Light_SearchView = 0x7f0e01b1;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f0e01b2;
public static final int Widget_AppCompat_ListMenuView = 0x7f0e01b3;
public static final int Widget_AppCompat_ListPopupWindow = 0x7f0e01b4;
public static final int Widget_AppCompat_ListView = 0x7f0e01b5;
public static final int Widget_AppCompat_ListView_DropDown = 0x7f0e01b6;
public static final int Widget_AppCompat_ListView_Menu = 0x7f0e01b7;
public static final int Widget_AppCompat_PopupMenu = 0x7f0e01b8;
public static final int Widget_AppCompat_PopupMenu_Overflow = 0x7f0e01b9;
public static final int Widget_AppCompat_PopupWindow = 0x7f0e01ba;
public static final int Widget_AppCompat_ProgressBar = 0x7f0e01bb;
public static final int Widget_AppCompat_ProgressBar_Horizontal = 0x7f0e01bc;
public static final int Widget_AppCompat_RatingBar = 0x7f0e01bd;
public static final int Widget_AppCompat_RatingBar_Indicator = 0x7f0e01be;
public static final int Widget_AppCompat_RatingBar_Small = 0x7f0e01bf;
public static final int Widget_AppCompat_SearchView = 0x7f0e01c0;
public static final int Widget_AppCompat_SearchView_ActionBar = 0x7f0e01c1;
public static final int Widget_AppCompat_SeekBar = 0x7f0e01c2;
public static final int Widget_AppCompat_SeekBar_Discrete = 0x7f0e01c3;
public static final int Widget_AppCompat_Spinner = 0x7f0e01c4;
public static final int Widget_AppCompat_Spinner_DropDown = 0x7f0e01c5;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f0e01c6;
public static final int Widget_AppCompat_Spinner_Underlined = 0x7f0e01c7;
public static final int Widget_AppCompat_TextView_SpinnerItem = 0x7f0e01c9;
public static final int Widget_AppCompat_Toolbar = 0x7f0e01ca;
public static final int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0e01cb;
public static final int Widget_Compat_NotificationActionContainer = 0x7f0e01cc;
public static final int Widget_Compat_NotificationActionText = 0x7f0e01cd;
public static final int Widget_Support_CoordinatorLayout = 0x7f0e01fc;
}
public static final class styleable {
private styleable() {}
public static final int[] ActionBar = { 0x7f030037, 0x7f030038, 0x7f030039, 0x7f0300a5, 0x7f0300a6, 0x7f0300a7, 0x7f0300a8, 0x7f0300a9, 0x7f0300aa, 0x7f0300c2, 0x7f0300ce, 0x7f0300cf, 0x7f0300e6, 0x7f030134, 0x7f030139, 0x7f03013e, 0x7f03013f, 0x7f030141, 0x7f03014b, 0x7f030155, 0x7f0301b1, 0x7f0301d2, 0x7f0301f4, 0x7f0301f9, 0x7f0301fa, 0x7f030232, 0x7f030235, 0x7f03027f, 0x7f030289 };
public static final int ActionBar_background = 0;
public static final int ActionBar_backgroundSplit = 1;
public static final int ActionBar_backgroundStacked = 2;
public static final int ActionBar_contentInsetEnd = 3;
public static final int ActionBar_contentInsetEndWithActions = 4;
public static final int ActionBar_contentInsetLeft = 5;
public static final int ActionBar_contentInsetRight = 6;
public static final int ActionBar_contentInsetStart = 7;
public static final int ActionBar_contentInsetStartWithNavigation = 8;
public static final int ActionBar_customNavigationLayout = 9;
public static final int ActionBar_displayOptions = 10;
public static final int ActionBar_divider = 11;
public static final int ActionBar_elevation = 12;
public static final int ActionBar_height = 13;
public static final int ActionBar_hideOnContentScroll = 14;
public static final int ActionBar_homeAsUpIndicator = 15;
public static final int ActionBar_homeLayout = 16;
public static final int ActionBar_icon = 17;
public static final int ActionBar_indeterminateProgressStyle = 18;
public static final int ActionBar_itemPadding = 19;
public static final int ActionBar_logo = 20;
public static final int ActionBar_navigationMode = 21;
public static final int ActionBar_popupTheme = 22;
public static final int ActionBar_progressBarPadding = 23;
public static final int ActionBar_progressBarStyle = 24;
public static final int ActionBar_subtitle = 25;
public static final int ActionBar_subtitleTextStyle = 26;
public static final int ActionBar_title = 27;
public static final int ActionBar_titleTextStyle = 28;
public static final int[] ActionBarLayout = { 0x10100b3 };
public static final int ActionBarLayout_android_layout_gravity = 0;
public static final int[] ActionMenuItemView = { 0x101013f };
public static final int ActionMenuItemView_android_minWidth = 0;
public static final int[] ActionMode = { 0x7f030037, 0x7f030038, 0x7f03008c, 0x7f030134, 0x7f030235, 0x7f030289 };
public static final int ActionMode_background = 0;
public static final int ActionMode_backgroundSplit = 1;
public static final int ActionMode_closeItemLayout = 2;
public static final int ActionMode_height = 3;
public static final int ActionMode_subtitleTextStyle = 4;
public static final int ActionMode_titleTextStyle = 5;
public static final int[] ActivityChooserView = { 0x7f0300ec, 0x7f03014c };
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 0;
public static final int ActivityChooserView_initialActivityCount = 1;
public static final int[] AlertDialog = { 0x10100f2, 0x7f03005d, 0x7f03005e, 0x7f0301a6, 0x7f0301a7, 0x7f0301cf, 0x7f030218, 0x7f030219 };
public static final int AlertDialog_android_layout = 0;
public static final int AlertDialog_buttonIconDimen = 1;
public static final int AlertDialog_buttonPanelSideLayout = 2;
public static final int AlertDialog_listItemLayout = 3;
public static final int AlertDialog_listLayout = 4;
public static final int AlertDialog_multiChoiceItemLayout = 5;
public static final int AlertDialog_showTitle = 6;
public static final int AlertDialog_singleChoiceItemLayout = 7;
public static final int[] AnimatedStateListDrawableCompat = { 0x101011c, 0x1010194, 0x1010195, 0x1010196, 0x101030c, 0x101030d };
public static final int AnimatedStateListDrawableCompat_android_dither = 0;
public static final int AnimatedStateListDrawableCompat_android_visible = 1;
public static final int AnimatedStateListDrawableCompat_android_variablePadding = 2;
public static final int AnimatedStateListDrawableCompat_android_constantSize = 3;
public static final int AnimatedStateListDrawableCompat_android_enterFadeDuration = 4;
public static final int AnimatedStateListDrawableCompat_android_exitFadeDuration = 5;
public static final int[] AnimatedStateListDrawableItem = { 0x10100d0, 0x1010199 };
public static final int AnimatedStateListDrawableItem_android_id = 0;
public static final int AnimatedStateListDrawableItem_android_drawable = 1;
public static final int[] AnimatedStateListDrawableTransition = { 0x1010199, 0x1010449, 0x101044a, 0x101044b };
public static final int AnimatedStateListDrawableTransition_android_drawable = 0;
public static final int AnimatedStateListDrawableTransition_android_toId = 1;
public static final int AnimatedStateListDrawableTransition_android_fromId = 2;
public static final int AnimatedStateListDrawableTransition_android_reversible = 3;
public static final int[] AppCompatImageView = { 0x1010119, 0x7f030224, 0x7f03027d, 0x7f03027e };
public static final int AppCompatImageView_android_src = 0;
public static final int AppCompatImageView_srcCompat = 1;
public static final int AppCompatImageView_tint = 2;
public static final int AppCompatImageView_tintMode = 3;
public static final int[] AppCompatSeekBar = { 0x1010142, 0x7f03027a, 0x7f03027b, 0x7f03027c };
public static final int AppCompatSeekBar_android_thumb = 0;
public static final int AppCompatSeekBar_tickMark = 1;
public static final int AppCompatSeekBar_tickMarkTint = 2;
public static final int AppCompatSeekBar_tickMarkTintMode = 3;
public static final int[] AppCompatTextHelper = { 0x1010034, 0x101016d, 0x101016e, 0x101016f, 0x1010170, 0x1010392, 0x1010393 };
public static final int AppCompatTextHelper_android_textAppearance = 0;
public static final int AppCompatTextHelper_android_drawableTop = 1;
public static final int AppCompatTextHelper_android_drawableBottom = 2;
public static final int AppCompatTextHelper_android_drawableLeft = 3;
public static final int AppCompatTextHelper_android_drawableRight = 4;
public static final int AppCompatTextHelper_android_drawableStart = 5;
public static final int AppCompatTextHelper_android_drawableEnd = 6;
public static final int[] AppCompatTextView = { 0x1010034, 0x7f030031, 0x7f030032, 0x7f030033, 0x7f030034, 0x7f030035, 0x7f0300d6, 0x7f0300d7, 0x7f0300d8, 0x7f0300d9, 0x7f0300db, 0x7f0300dc, 0x7f0300dd, 0x7f0300de, 0x7f03010d, 0x7f030125, 0x7f03012d, 0x7f03015e, 0x7f0301a0, 0x7f030259, 0x7f030273 };
public static final int AppCompatTextView_android_textAppearance = 0;
public static final int AppCompatTextView_autoSizeMaxTextSize = 1;
public static final int AppCompatTextView_autoSizeMinTextSize = 2;
public static final int AppCompatTextView_autoSizePresetSizes = 3;
public static final int AppCompatTextView_autoSizeStepGranularity = 4;
public static final int AppCompatTextView_autoSizeTextType = 5;
public static final int AppCompatTextView_drawableBottomCompat = 6;
public static final int AppCompatTextView_drawableEndCompat = 7;
public static final int AppCompatTextView_drawableLeftCompat = 8;
public static final int AppCompatTextView_drawableRightCompat = 9;
public static final int AppCompatTextView_drawableStartCompat = 10;
public static final int AppCompatTextView_drawableTint = 11;
public static final int AppCompatTextView_drawableTintMode = 12;
public static final int AppCompatTextView_drawableTopCompat = 13;
public static final int AppCompatTextView_firstBaselineToTopHeight = 14;
public static final int AppCompatTextView_fontFamily = 15;
public static final int AppCompatTextView_fontVariationSettings = 16;
public static final int AppCompatTextView_lastBaselineToBottomHeight = 17;
public static final int AppCompatTextView_lineHeight = 18;
public static final int AppCompatTextView_textAllCaps = 19;
public static final int AppCompatTextView_textLocale = 20;
public static final int[] AppCompatTheme = { 0x1010057, 0x10100ae, 0x7f030000, 0x7f030001, 0x7f030002, 0x7f030003, 0x7f030004, 0x7f030005, 0x7f030006, 0x7f030007, 0x7f030008, 0x7f030009, 0x7f03000a, 0x7f03000b, 0x7f03000c, 0x7f03000e, 0x7f03000f, 0x7f030010, 0x7f030011, 0x7f030012, 0x7f030013, 0x7f030014, 0x7f030015, 0x7f030016, 0x7f030017, 0x7f030018, 0x7f030019, 0x7f03001a, 0x7f03001b, 0x7f03001c, 0x7f03001d, 0x7f03001e, 0x7f030021, 0x7f030022, 0x7f030023, 0x7f030024, 0x7f030025, 0x7f030030, 0x7f030047, 0x7f030056, 0x7f030057, 0x7f030058, 0x7f030059, 0x7f03005a, 0x7f03005f, 0x7f030060, 0x7f03006b, 0x7f030070, 0x7f030092, 0x7f030093, 0x7f030094, 0x7f030095, 0x7f030096, 0x7f030097, 0x7f030098, 0x7f030099, 0x7f03009a, 0x7f03009c, 0x7f0300b2, 0x7f0300cb, 0x7f0300cc, 0x7f0300cd, 0x7f0300d0, 0x7f0300d2, 0x7f0300e0, 0x7f0300e1, 0x7f0300e3, 0x7f0300e4, 0x7f0300e5, 0x7f03013e, 0x7f03014a, 0x7f0301a2, 0x7f0301a3, 0x7f0301a4, 0x7f0301a5, 0x7f0301a8, 0x7f0301a9, 0x7f0301aa, 0x7f0301ab, 0x7f0301ac, 0x7f0301ad, 0x7f0301ae, 0x7f0301af, 0x7f0301b0, 0x7f0301e1, 0x7f0301e2, 0x7f0301e3, 0x7f0301f3, 0x7f0301f5, 0x7f0301fd, 0x7f0301fe, 0x7f0301ff, 0x7f030200, 0x7f03020f, 0x7f030210, 0x7f030211, 0x7f030212, 0x7f030221, 0x7f030222, 0x7f030239, 0x7f030264, 0x7f030265, 0x7f030266, 0x7f030267, 0x7f030269, 0x7f03026a, 0x7f03026b, 0x7f03026c, 0x7f03026f, 0x7f030270, 0x7f03028b, 0x7f03028c, 0x7f03028d, 0x7f03028e, 0x7f03029e, 0x7f0302a7, 0x7f0302a8, 0x7f0302a9, 0x7f0302aa, 0x7f0302ab, 0x7f0302ac, 0x7f0302ad, 0x7f0302ae, 0x7f0302af, 0x7f0302b0 };
public static final int AppCompatTheme_android_windowIsFloating = 0;
public static final int AppCompatTheme_android_windowAnimationStyle = 1;
public static final int AppCompatTheme_actionBarDivider = 2;
public static final int AppCompatTheme_actionBarItemBackground = 3;
public static final int AppCompatTheme_actionBarPopupTheme = 4;
public static final int AppCompatTheme_actionBarSize = 5;
public static final int AppCompatTheme_actionBarSplitStyle = 6;
public static final int AppCompatTheme_actionBarStyle = 7;
public static final int AppCompatTheme_actionBarTabBarStyle = 8;
public static final int AppCompatTheme_actionBarTabStyle = 9;
public static final int AppCompatTheme_actionBarTabTextStyle = 10;
public static final int AppCompatTheme_actionBarTheme = 11;
public static final int AppCompatTheme_actionBarWidgetTheme = 12;
public static final int AppCompatTheme_actionButtonStyle = 13;
public static final int AppCompatTheme_actionDropDownStyle = 14;
public static final int AppCompatTheme_actionMenuTextAppearance = 15;
public static final int AppCompatTheme_actionMenuTextColor = 16;
public static final int AppCompatTheme_actionModeBackground = 17;
public static final int AppCompatTheme_actionModeCloseButtonStyle = 18;
public static final int AppCompatTheme_actionModeCloseDrawable = 19;
public static final int AppCompatTheme_actionModeCopyDrawable = 20;
public static final int AppCompatTheme_actionModeCutDrawable = 21;
public static final int AppCompatTheme_actionModeFindDrawable = 22;
public static final int AppCompatTheme_actionModePasteDrawable = 23;
public static final int AppCompatTheme_actionModePopupWindowStyle = 24;
public static final int AppCompatTheme_actionModeSelectAllDrawable = 25;
public static final int AppCompatTheme_actionModeShareDrawable = 26;
public static final int AppCompatTheme_actionModeSplitBackground = 27;
public static final int AppCompatTheme_actionModeStyle = 28;
public static final int AppCompatTheme_actionModeWebSearchDrawable = 29;
public static final int AppCompatTheme_actionOverflowButtonStyle = 30;
public static final int AppCompatTheme_actionOverflowMenuStyle = 31;
public static final int AppCompatTheme_activityChooserViewStyle = 32;
public static final int AppCompatTheme_alertDialogButtonGroupStyle = 33;
public static final int AppCompatTheme_alertDialogCenterButtons = 34;
public static final int AppCompatTheme_alertDialogStyle = 35;
public static final int AppCompatTheme_alertDialogTheme = 36;
public static final int AppCompatTheme_autoCompleteTextViewStyle = 37;
public static final int AppCompatTheme_borderlessButtonStyle = 38;
public static final int AppCompatTheme_buttonBarButtonStyle = 39;
public static final int AppCompatTheme_buttonBarNegativeButtonStyle = 40;
public static final int AppCompatTheme_buttonBarNeutralButtonStyle = 41;
public static final int AppCompatTheme_buttonBarPositiveButtonStyle = 42;
public static final int AppCompatTheme_buttonBarStyle = 43;
public static final int AppCompatTheme_buttonStyle = 44;
public static final int AppCompatTheme_buttonStyleSmall = 45;
public static final int AppCompatTheme_checkboxStyle = 46;
public static final int AppCompatTheme_checkedTextViewStyle = 47;
public static final int AppCompatTheme_colorAccent = 48;
public static final int AppCompatTheme_colorBackgroundFloating = 49;
public static final int AppCompatTheme_colorButtonNormal = 50;
public static final int AppCompatTheme_colorControlActivated = 51;
public static final int AppCompatTheme_colorControlHighlight = 52;
public static final int AppCompatTheme_colorControlNormal = 53;
public static final int AppCompatTheme_colorError = 54;
public static final int AppCompatTheme_colorPrimary = 55;
public static final int AppCompatTheme_colorPrimaryDark = 56;
public static final int AppCompatTheme_colorSwitchThumbNormal = 57;
public static final int AppCompatTheme_controlBackground = 58;
public static final int AppCompatTheme_dialogCornerRadius = 59;
public static final int AppCompatTheme_dialogPreferredPadding = 60;
public static final int AppCompatTheme_dialogTheme = 61;
public static final int AppCompatTheme_dividerHorizontal = 62;
public static final int AppCompatTheme_dividerVertical = 63;
public static final int AppCompatTheme_dropDownListViewStyle = 64;
public static final int AppCompatTheme_dropdownListPreferredItemHeight = 65;
public static final int AppCompatTheme_editTextBackground = 66;
public static final int AppCompatTheme_editTextColor = 67;
public static final int AppCompatTheme_editTextStyle = 68;
public static final int AppCompatTheme_homeAsUpIndicator = 69;
public static final int AppCompatTheme_imageButtonStyle = 70;
public static final int AppCompatTheme_listChoiceBackgroundIndicator = 71;
public static final int AppCompatTheme_listChoiceIndicatorMultipleAnimated = 72;
public static final int AppCompatTheme_listChoiceIndicatorSingleAnimated = 73;
public static final int AppCompatTheme_listDividerAlertDialog = 74;
public static final int AppCompatTheme_listMenuViewStyle = 75;
public static final int AppCompatTheme_listPopupWindowStyle = 76;
public static final int AppCompatTheme_listPreferredItemHeight = 77;
public static final int AppCompatTheme_listPreferredItemHeightLarge = 78;
public static final int AppCompatTheme_listPreferredItemHeightSmall = 79;
public static final int AppCompatTheme_listPreferredItemPaddingEnd = 80;
public static final int AppCompatTheme_listPreferredItemPaddingLeft = 81;
public static final int AppCompatTheme_listPreferredItemPaddingRight = 82;
public static final int AppCompatTheme_listPreferredItemPaddingStart = 83;
public static final int AppCompatTheme_panelBackground = 84;
public static final int AppCompatTheme_panelMenuListTheme = 85;
public static final int AppCompatTheme_panelMenuListWidth = 86;
public static final int AppCompatTheme_popupMenuStyle = 87;
public static final int AppCompatTheme_popupWindowStyle = 88;
public static final int AppCompatTheme_radioButtonStyle = 89;
public static final int AppCompatTheme_ratingBarStyle = 90;
public static final int AppCompatTheme_ratingBarStyleIndicator = 91;
public static final int AppCompatTheme_ratingBarStyleSmall = 92;
public static final int AppCompatTheme_searchViewStyle = 93;
public static final int AppCompatTheme_seekBarStyle = 94;
public static final int AppCompatTheme_selectableItemBackground = 95;
public static final int AppCompatTheme_selectableItemBackgroundBorderless = 96;
public static final int AppCompatTheme_spinnerDropDownItemStyle = 97;
public static final int AppCompatTheme_spinnerStyle = 98;
public static final int AppCompatTheme_switchStyle = 99;
public static final int AppCompatTheme_textAppearanceLargePopupMenu = 100;
public static final int AppCompatTheme_textAppearanceListItem = 101;
public static final int AppCompatTheme_textAppearanceListItemSecondary = 102;
public static final int AppCompatTheme_textAppearanceListItemSmall = 103;
public static final int AppCompatTheme_textAppearancePopupMenuHeader = 104;
public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 105;
public static final int AppCompatTheme_textAppearanceSearchResultTitle = 106;
public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 107;
public static final int AppCompatTheme_textColorAlertDialogListItem = 108;
public static final int AppCompatTheme_textColorSearchUrl = 109;
public static final int AppCompatTheme_toolbarNavigationButtonStyle = 110;
public static final int AppCompatTheme_toolbarStyle = 111;
public static final int AppCompatTheme_tooltipForegroundColor = 112;
public static final int AppCompatTheme_tooltipFrameBackground = 113;
public static final int AppCompatTheme_viewInflaterClass = 114;
public static final int AppCompatTheme_windowActionBar = 115;
public static final int AppCompatTheme_windowActionBarOverlay = 116;
public static final int AppCompatTheme_windowActionModeOverlay = 117;
public static final int AppCompatTheme_windowFixedHeightMajor = 118;
public static final int AppCompatTheme_windowFixedHeightMinor = 119;
public static final int AppCompatTheme_windowFixedWidthMajor = 120;
public static final int AppCompatTheme_windowFixedWidthMinor = 121;
public static final int AppCompatTheme_windowMinWidthMajor = 122;
public static final int AppCompatTheme_windowMinWidthMinor = 123;
public static final int AppCompatTheme_windowNoTitle = 124;
public static final int[] ButtonBarLayout = { 0x7f030026 };
public static final int ButtonBarLayout_allowStacking = 0;
public static final int[] ColorStateListItem = { 0x10101a5, 0x101031f, 0x7f030027 };
public static final int ColorStateListItem_android_color = 0;
public static final int ColorStateListItem_android_alpha = 1;
public static final int ColorStateListItem_alpha = 2;
public static final int[] CompoundButton = { 0x1010107, 0x7f03005b, 0x7f030061, 0x7f030062 };
public static final int CompoundButton_android_button = 0;
public static final int CompoundButton_buttonCompat = 1;
public static final int CompoundButton_buttonTint = 2;
public static final int CompoundButton_buttonTintMode = 3;
public static final int[] Constraint = { 0x10100c4, 0x10100d0, 0x10100dc, 0x10100f4, 0x10100f5, 0x10100f7, 0x10100f8, 0x10100f9, 0x10100fa, 0x101011f, 0x1010120, 0x101013f, 0x1010140, 0x10101b5, 0x10101b6, 0x101031f, 0x1010320, 0x1010321, 0x1010322, 0x1010323, 0x1010324, 0x1010325, 0x1010326, 0x1010327, 0x1010328, 0x10103b5, 0x10103b6, 0x10103fa, 0x1010440, 0x7f03002a, 0x7f03003d, 0x7f03003e, 0x7f03003f, 0x7f03006a, 0x7f0300a1, 0x7f0300d5, 0x7f03010f, 0x7f030110, 0x7f030111, 0x7f030112, 0x7f030113, 0x7f030114, 0x7f030115, 0x7f030116, 0x7f030117, 0x7f030118, 0x7f030119, 0x7f03011a, 0x7f03011b, 0x7f03011c, 0x7f03011e, 0x7f03011f, 0x7f030120, 0x7f030121, 0x7f030122, 0x7f030123, 0x7f030167, 0x7f030168, 0x7f030169, 0x7f03016a, 0x7f03016b, 0x7f03016c, 0x7f03016d, 0x7f03016e, 0x7f03016f, 0x7f030170, 0x7f030171, 0x7f030172, 0x7f030173, 0x7f030174, 0x7f030175, 0x7f030176, 0x7f030177, 0x7f030178, 0x7f030179, 0x7f03017a, 0x7f03017b, 0x7f03017c, 0x7f03017d, 0x7f03017e, 0x7f03017f, 0x7f030180, 0x7f030181, 0x7f030182, 0x7f030183, 0x7f030184, 0x7f030185, 0x7f030186, 0x7f030187, 0x7f030188, 0x7f030189, 0x7f03018a, 0x7f03018b, 0x7f03018c, 0x7f03018d, 0x7f03018e, 0x7f03018f, 0x7f030190, 0x7f030192, 0x7f030193, 0x7f030194, 0x7f030195, 0x7f030196, 0x7f030197, 0x7f030198, 0x7f030199, 0x7f0301ca, 0x7f0301e9, 0x7f0301f0, 0x7f0301f8, 0x7f030297, 0x7f030298, 0x7f03029f };
public static final int Constraint_android_orientation = 0;
public static final int Constraint_android_id = 1;
public static final int Constraint_android_visibility = 2;
public static final int Constraint_android_layout_width = 3;
public static final int Constraint_android_layout_height = 4;
public static final int Constraint_android_layout_marginLeft = 5;
public static final int Constraint_android_layout_marginTop = 6;
public static final int Constraint_android_layout_marginRight = 7;
public static final int Constraint_android_layout_marginBottom = 8;
public static final int Constraint_android_maxWidth = 9;
public static final int Constraint_android_maxHeight = 10;
public static final int Constraint_android_minWidth = 11;
public static final int Constraint_android_minHeight = 12;
public static final int Constraint_android_pivotX = 13;
public static final int Constraint_android_pivotY = 14;
public static final int Constraint_android_alpha = 15;
public static final int Constraint_android_transformPivotX = 16;
public static final int Constraint_android_transformPivotY = 17;
public static final int Constraint_android_translationX = 18;
public static final int Constraint_android_translationY = 19;
public static final int Constraint_android_scaleX = 20;
public static final int Constraint_android_scaleY = 21;
public static final int Constraint_android_rotation = 22;
public static final int Constraint_android_rotationX = 23;
public static final int Constraint_android_rotationY = 24;
public static final int Constraint_android_layout_marginStart = 25;
public static final int Constraint_android_layout_marginEnd = 26;
public static final int Constraint_android_translationZ = 27;
public static final int Constraint_android_elevation = 28;
public static final int Constraint_animate_relativeTo = 29;
public static final int Constraint_barrierAllowsGoneWidgets = 30;
public static final int Constraint_barrierDirection = 31;
public static final int Constraint_barrierMargin = 32;
public static final int Constraint_chainUseRtl = 33;
public static final int Constraint_constraint_referenced_ids = 34;
public static final int Constraint_drawPath = 35;
public static final int Constraint_flow_firstHorizontalBias = 36;
public static final int Constraint_flow_firstHorizontalStyle = 37;
public static final int Constraint_flow_firstVerticalBias = 38;
public static final int Constraint_flow_firstVerticalStyle = 39;
public static final int Constraint_flow_horizontalAlign = 40;
public static final int Constraint_flow_horizontalBias = 41;
public static final int Constraint_flow_horizontalGap = 42;
public static final int Constraint_flow_horizontalSeparator = 43;
public static final int Constraint_flow_horizontalStyle = 44;
public static final int Constraint_flow_lastHorizontalBias = 45;
public static final int Constraint_flow_lastHorizontalStyle = 46;
public static final int Constraint_flow_lastVerticalBias = 47;
public static final int Constraint_flow_lastVerticalStyle = 48;
public static final int Constraint_flow_maxElementsWrap = 49;
public static final int Constraint_flow_verticalAlign = 50;
public static final int Constraint_flow_verticalBias = 51;
public static final int Constraint_flow_verticalGap = 52;
public static final int Constraint_flow_verticalSeparator = 53;
public static final int Constraint_flow_verticalStyle = 54;
public static final int Constraint_flow_wrapMode = 55;
public static final int Constraint_layout_constrainedHeight = 56;
public static final int Constraint_layout_constrainedWidth = 57;
public static final int Constraint_layout_constraintBaseline_creator = 58;
public static final int Constraint_layout_constraintBaseline_toBaselineOf = 59;
public static final int Constraint_layout_constraintBottom_creator = 60;
public static final int Constraint_layout_constraintBottom_toBottomOf = 61;
public static final int Constraint_layout_constraintBottom_toTopOf = 62;
public static final int Constraint_layout_constraintCircle = 63;
public static final int Constraint_layout_constraintCircleAngle = 64;
public static final int Constraint_layout_constraintCircleRadius = 65;
public static final int Constraint_layout_constraintDimensionRatio = 66;
public static final int Constraint_layout_constraintEnd_toEndOf = 67;
public static final int Constraint_layout_constraintEnd_toStartOf = 68;
public static final int Constraint_layout_constraintGuide_begin = 69;
public static final int Constraint_layout_constraintGuide_end = 70;
public static final int Constraint_layout_constraintGuide_percent = 71;
public static final int Constraint_layout_constraintHeight_default = 72;
public static final int Constraint_layout_constraintHeight_max = 73;
public static final int Constraint_layout_constraintHeight_min = 74;
public static final int Constraint_layout_constraintHeight_percent = 75;
public static final int Constraint_layout_constraintHorizontal_bias = 76;
public static final int Constraint_layout_constraintHorizontal_chainStyle = 77;
public static final int Constraint_layout_constraintHorizontal_weight = 78;
public static final int Constraint_layout_constraintLeft_creator = 79;
public static final int Constraint_layout_constraintLeft_toLeftOf = 80;
public static final int Constraint_layout_constraintLeft_toRightOf = 81;
public static final int Constraint_layout_constraintRight_creator = 82;
public static final int Constraint_layout_constraintRight_toLeftOf = 83;
public static final int Constraint_layout_constraintRight_toRightOf = 84;
public static final int Constraint_layout_constraintStart_toEndOf = 85;
public static final int Constraint_layout_constraintStart_toStartOf = 86;
public static final int Constraint_layout_constraintTag = 87;
public static final int Constraint_layout_constraintTop_creator = 88;
public static final int Constraint_layout_constraintTop_toBottomOf = 89;
public static final int Constraint_layout_constraintTop_toTopOf = 90;
public static final int Constraint_layout_constraintVertical_bias = 91;
public static final int Constraint_layout_constraintVertical_chainStyle = 92;
public static final int Constraint_layout_constraintVertical_weight = 93;
public static final int Constraint_layout_constraintWidth_default = 94;
public static final int Constraint_layout_constraintWidth_max = 95;
public static final int Constraint_layout_constraintWidth_min = 96;
public static final int Constraint_layout_constraintWidth_percent = 97;
public static final int Constraint_layout_editor_absoluteX = 98;
public static final int Constraint_layout_editor_absoluteY = 99;
public static final int Constraint_layout_goneMarginBottom = 100;
public static final int Constraint_layout_goneMarginEnd = 101;
public static final int Constraint_layout_goneMarginLeft = 102;
public static final int Constraint_layout_goneMarginRight = 103;
public static final int Constraint_layout_goneMarginStart = 104;
public static final int Constraint_layout_goneMarginTop = 105;
public static final int Constraint_motionStagger = 106;
public static final int Constraint_pathMotionArc = 107;
public static final int Constraint_pivotAnchor = 108;
public static final int Constraint_progress = 109;
public static final int Constraint_transitionEasing = 110;
public static final int Constraint_transitionPathRotate = 111;
public static final int Constraint_visibilityMode = 112;
public static final int[] ConstraintLayout_Layout = { 0x10100c4, 0x10100d5, 0x10100d6, 0x10100d7, 0x10100d8, 0x10100d9, 0x101011f, 0x1010120, 0x101013f, 0x1010140, 0x7f03003d, 0x7f03003e, 0x7f03003f, 0x7f03006a, 0x7f03009e, 0x7f0300a1, 0x7f03010f, 0x7f030110, 0x7f030111, 0x7f030112, 0x7f030113, 0x7f030114, 0x7f030115, 0x7f030116, 0x7f030117, 0x7f030118, 0x7f030119, 0x7f03011a, 0x7f03011b, 0x7f03011c, 0x7f03011e, 0x7f03011f, 0x7f030120, 0x7f030121, 0x7f030122, 0x7f030123, 0x7f030160, 0x7f030167, 0x7f030168, 0x7f030169, 0x7f03016a, 0x7f03016b, 0x7f03016c, 0x7f03016d, 0x7f03016e, 0x7f03016f, 0x7f030170, 0x7f030171, 0x7f030172, 0x7f030173, 0x7f030174, 0x7f030175, 0x7f030176, 0x7f030177, 0x7f030178, 0x7f030179, 0x7f03017a, 0x7f03017b, 0x7f03017c, 0x7f03017d, 0x7f03017e, 0x7f03017f, 0x7f030180, 0x7f030181, 0x7f030182, 0x7f030183, 0x7f030184, 0x7f030185, 0x7f030186, 0x7f030187, 0x7f030188, 0x7f030189, 0x7f03018a, 0x7f03018b, 0x7f03018c, 0x7f03018d, 0x7f03018e, 0x7f03018f, 0x7f030190, 0x7f030192, 0x7f030193, 0x7f030194, 0x7f030195, 0x7f030196, 0x7f030197, 0x7f030198, 0x7f030199, 0x7f03019c };
public static final int ConstraintLayout_Layout_android_orientation = 0;
public static final int ConstraintLayout_Layout_android_padding = 1;
public static final int ConstraintLayout_Layout_android_paddingLeft = 2;
public static final int ConstraintLayout_Layout_android_paddingTop = 3;
public static final int ConstraintLayout_Layout_android_paddingRight = 4;
public static final int ConstraintLayout_Layout_android_paddingBottom = 5;
public static final int ConstraintLayout_Layout_android_maxWidth = 6;
public static final int ConstraintLayout_Layout_android_maxHeight = 7;
public static final int ConstraintLayout_Layout_android_minWidth = 8;
public static final int ConstraintLayout_Layout_android_minHeight = 9;
public static final int ConstraintLayout_Layout_barrierAllowsGoneWidgets = 10;
public static final int ConstraintLayout_Layout_barrierDirection = 11;
public static final int ConstraintLayout_Layout_barrierMargin = 12;
public static final int ConstraintLayout_Layout_chainUseRtl = 13;
public static final int ConstraintLayout_Layout_constraintSet = 14;
public static final int ConstraintLayout_Layout_constraint_referenced_ids = 15;
public static final int ConstraintLayout_Layout_flow_firstHorizontalBias = 16;
public static final int ConstraintLayout_Layout_flow_firstHorizontalStyle = 17;
public static final int ConstraintLayout_Layout_flow_firstVerticalBias = 18;
public static final int ConstraintLayout_Layout_flow_firstVerticalStyle = 19;
public static final int ConstraintLayout_Layout_flow_horizontalAlign = 20;
public static final int ConstraintLayout_Layout_flow_horizontalBias = 21;
public static final int ConstraintLayout_Layout_flow_horizontalGap = 22;
public static final int ConstraintLayout_Layout_flow_horizontalSeparator = 23;
public static final int ConstraintLayout_Layout_flow_horizontalStyle = 24;
public static final int ConstraintLayout_Layout_flow_lastHorizontalBias = 25;
public static final int ConstraintLayout_Layout_flow_lastHorizontalStyle = 26;
public static final int ConstraintLayout_Layout_flow_lastVerticalBias = 27;
public static final int ConstraintLayout_Layout_flow_lastVerticalStyle = 28;
public static final int ConstraintLayout_Layout_flow_maxElementsWrap = 29;
public static final int ConstraintLayout_Layout_flow_verticalAlign = 30;
public static final int ConstraintLayout_Layout_flow_verticalBias = 31;
public static final int ConstraintLayout_Layout_flow_verticalGap = 32;
public static final int ConstraintLayout_Layout_flow_verticalSeparator = 33;
public static final int ConstraintLayout_Layout_flow_verticalStyle = 34;
public static final int ConstraintLayout_Layout_flow_wrapMode = 35;
public static final int ConstraintLayout_Layout_layoutDescription = 36;
public static final int ConstraintLayout_Layout_layout_constrainedHeight = 37;
public static final int ConstraintLayout_Layout_layout_constrainedWidth = 38;
public static final int ConstraintLayout_Layout_layout_constraintBaseline_creator = 39;
public static final int ConstraintLayout_Layout_layout_constraintBaseline_toBaselineOf = 40;
public static final int ConstraintLayout_Layout_layout_constraintBottom_creator = 41;
public static final int ConstraintLayout_Layout_layout_constraintBottom_toBottomOf = 42;
public static final int ConstraintLayout_Layout_layout_constraintBottom_toTopOf = 43;
public static final int ConstraintLayout_Layout_layout_constraintCircle = 44;
public static final int ConstraintLayout_Layout_layout_constraintCircleAngle = 45;
public static final int ConstraintLayout_Layout_layout_constraintCircleRadius = 46;
public static final int ConstraintLayout_Layout_layout_constraintDimensionRatio = 47;
public static final int ConstraintLayout_Layout_layout_constraintEnd_toEndOf = 48;
public static final int ConstraintLayout_Layout_layout_constraintEnd_toStartOf = 49;
public static final int ConstraintLayout_Layout_layout_constraintGuide_begin = 50;
public static final int ConstraintLayout_Layout_layout_constraintGuide_end = 51;
public static final int ConstraintLayout_Layout_layout_constraintGuide_percent = 52;
public static final int ConstraintLayout_Layout_layout_constraintHeight_default = 53;
public static final int ConstraintLayout_Layout_layout_constraintHeight_max = 54;
public static final int ConstraintLayout_Layout_layout_constraintHeight_min = 55;
public static final int ConstraintLayout_Layout_layout_constraintHeight_percent = 56;
public static final int ConstraintLayout_Layout_layout_constraintHorizontal_bias = 57;
public static final int ConstraintLayout_Layout_layout_constraintHorizontal_chainStyle = 58;
public static final int ConstraintLayout_Layout_layout_constraintHorizontal_weight = 59;
public static final int ConstraintLayout_Layout_layout_constraintLeft_creator = 60;
public static final int ConstraintLayout_Layout_layout_constraintLeft_toLeftOf = 61;
public static final int ConstraintLayout_Layout_layout_constraintLeft_toRightOf = 62;
public static final int ConstraintLayout_Layout_layout_constraintRight_creator = 63;
public static final int ConstraintLayout_Layout_layout_constraintRight_toLeftOf = 64;
public static final int ConstraintLayout_Layout_layout_constraintRight_toRightOf = 65;
public static final int ConstraintLayout_Layout_layout_constraintStart_toEndOf = 66;
public static final int ConstraintLayout_Layout_layout_constraintStart_toStartOf = 67;
public static final int ConstraintLayout_Layout_layout_constraintTag = 68;
public static final int ConstraintLayout_Layout_layout_constraintTop_creator = 69;
public static final int ConstraintLayout_Layout_layout_constraintTop_toBottomOf = 70;
public static final int ConstraintLayout_Layout_layout_constraintTop_toTopOf = 71;
public static final int ConstraintLayout_Layout_layout_constraintVertical_bias = 72;
public static final int ConstraintLayout_Layout_layout_constraintVertical_chainStyle = 73;
public static final int ConstraintLayout_Layout_layout_constraintVertical_weight = 74;
public static final int ConstraintLayout_Layout_layout_constraintWidth_default = 75;
public static final int ConstraintLayout_Layout_layout_constraintWidth_max = 76;
public static final int ConstraintLayout_Layout_layout_constraintWidth_min = 77;
public static final int ConstraintLayout_Layout_layout_constraintWidth_percent = 78;
public static final int ConstraintLayout_Layout_layout_editor_absoluteX = 79;
public static final int ConstraintLayout_Layout_layout_editor_absoluteY = 80;
public static final int ConstraintLayout_Layout_layout_goneMarginBottom = 81;
public static final int ConstraintLayout_Layout_layout_goneMarginEnd = 82;
public static final int ConstraintLayout_Layout_layout_goneMarginLeft = 83;
public static final int ConstraintLayout_Layout_layout_goneMarginRight = 84;
public static final int ConstraintLayout_Layout_layout_goneMarginStart = 85;
public static final int ConstraintLayout_Layout_layout_goneMarginTop = 86;
public static final int ConstraintLayout_Layout_layout_optimizationLevel = 87;
public static final int[] ConstraintLayout_placeholder = { 0x7f0300a3, 0x7f0300e7 };
public static final int ConstraintLayout_placeholder_content = 0;
public static final int ConstraintLayout_placeholder_emptyVisibility = 1;
public static final int[] ConstraintSet = { 0x10100c4, 0x10100d0, 0x10100dc, 0x10100f4, 0x10100f5, 0x10100f7, 0x10100f8, 0x10100f9, 0x10100fa, 0x101011f, 0x1010120, 0x101013f, 0x1010140, 0x10101b5, 0x10101b6, 0x101031f, 0x1010320, 0x1010321, 0x1010322, 0x1010323, 0x1010324, 0x1010325, 0x1010326, 0x1010327, 0x1010328, 0x10103b5, 0x10103b6, 0x10103fa, 0x1010440, 0x7f03002a, 0x7f03003d, 0x7f03003e, 0x7f03003f, 0x7f03006a, 0x7f0300a1, 0x7f0300ca, 0x7f0300d5, 0x7f03010f, 0x7f030110, 0x7f030111, 0x7f030112, 0x7f030113, 0x7f030114, 0x7f030115, 0x7f030116, 0x7f030117, 0x7f030118, 0x7f030119, 0x7f03011a, 0x7f03011b, 0x7f03011c, 0x7f03011e, 0x7f03011f, 0x7f030120, 0x7f030121, 0x7f030122, 0x7f030123, 0x7f030167, 0x7f030168, 0x7f030169, 0x7f03016a, 0x7f03016b, 0x7f03016c, 0x7f03016d, 0x7f03016e, 0x7f03016f, 0x7f030170, 0x7f030171, 0x7f030172, 0x7f030173, 0x7f030174, 0x7f030175, 0x7f030176, 0x7f030177, 0x7f030178, 0x7f030179, 0x7f03017a, 0x7f03017b, 0x7f03017c, 0x7f03017d, 0x7f03017e, 0x7f03017f, 0x7f030180, 0x7f030181, 0x7f030182, 0x7f030183, 0x7f030184, 0x7f030185, 0x7f030186, 0x7f030187, 0x7f030188, 0x7f030189, 0x7f03018a, 0x7f03018b, 0x7f03018c, 0x7f03018d, 0x7f03018e, 0x7f03018f, 0x7f030190, 0x7f030192, 0x7f030193, 0x7f030194, 0x7f030195, 0x7f030196, 0x7f030197, 0x7f030198, 0x7f030199, 0x7f0301c9, 0x7f0301ca, 0x7f0301e9, 0x7f0301f0, 0x7f030297, 0x7f030298 };
public static final int ConstraintSet_android_orientation = 0;
public static final int ConstraintSet_android_id = 1;
public static final int ConstraintSet_android_visibility = 2;
public static final int ConstraintSet_android_layout_width = 3;
public static final int ConstraintSet_android_layout_height = 4;
public static final int ConstraintSet_android_layout_marginLeft = 5;
public static final int ConstraintSet_android_layout_marginTop = 6;
public static final int ConstraintSet_android_layout_marginRight = 7;
public static final int ConstraintSet_android_layout_marginBottom = 8;
public static final int ConstraintSet_android_maxWidth = 9;
public static final int ConstraintSet_android_maxHeight = 10;
public static final int ConstraintSet_android_minWidth = 11;
public static final int ConstraintSet_android_minHeight = 12;
public static final int ConstraintSet_android_pivotX = 13;
public static final int ConstraintSet_android_pivotY = 14;
public static final int ConstraintSet_android_alpha = 15;
public static final int ConstraintSet_android_transformPivotX = 16;
public static final int ConstraintSet_android_transformPivotY = 17;
public static final int ConstraintSet_android_translationX = 18;
public static final int ConstraintSet_android_translationY = 19;
public static final int ConstraintSet_android_scaleX = 20;
public static final int ConstraintSet_android_scaleY = 21;
public static final int ConstraintSet_android_rotation = 22;
public static final int ConstraintSet_android_rotationX = 23;
public static final int ConstraintSet_android_rotationY = 24;
public static final int ConstraintSet_android_layout_marginStart = 25;
public static final int ConstraintSet_android_layout_marginEnd = 26;
public static final int ConstraintSet_android_translationZ = 27;
public static final int ConstraintSet_android_elevation = 28;
public static final int ConstraintSet_animate_relativeTo = 29;
public static final int ConstraintSet_barrierAllowsGoneWidgets = 30;
public static final int ConstraintSet_barrierDirection = 31;
public static final int ConstraintSet_barrierMargin = 32;
public static final int ConstraintSet_chainUseRtl = 33;
public static final int ConstraintSet_constraint_referenced_ids = 34;
public static final int ConstraintSet_deriveConstraintsFrom = 35;
public static final int ConstraintSet_drawPath = 36;
public static final int ConstraintSet_flow_firstHorizontalBias = 37;
public static final int ConstraintSet_flow_firstHorizontalStyle = 38;
public static final int ConstraintSet_flow_firstVerticalBias = 39;
public static final int ConstraintSet_flow_firstVerticalStyle = 40;
public static final int ConstraintSet_flow_horizontalAlign = 41;
public static final int ConstraintSet_flow_horizontalBias = 42;
public static final int ConstraintSet_flow_horizontalGap = 43;
public static final int ConstraintSet_flow_horizontalSeparator = 44;
public static final int ConstraintSet_flow_horizontalStyle = 45;
public static final int ConstraintSet_flow_lastHorizontalBias = 46;
public static final int ConstraintSet_flow_lastHorizontalStyle = 47;
public static final int ConstraintSet_flow_lastVerticalBias = 48;
public static final int ConstraintSet_flow_lastVerticalStyle = 49;
public static final int ConstraintSet_flow_maxElementsWrap = 50;
public static final int ConstraintSet_flow_verticalAlign = 51;
public static final int ConstraintSet_flow_verticalBias = 52;
public static final int ConstraintSet_flow_verticalGap = 53;
public static final int ConstraintSet_flow_verticalSeparator = 54;
public static final int ConstraintSet_flow_verticalStyle = 55;
public static final int ConstraintSet_flow_wrapMode = 56;
public static final int ConstraintSet_layout_constrainedHeight = 57;
public static final int ConstraintSet_layout_constrainedWidth = 58;
public static final int ConstraintSet_layout_constraintBaseline_creator = 59;
public static final int ConstraintSet_layout_constraintBaseline_toBaselineOf = 60;
public static final int ConstraintSet_layout_constraintBottom_creator = 61;
public static final int ConstraintSet_layout_constraintBottom_toBottomOf = 62;
public static final int ConstraintSet_layout_constraintBottom_toTopOf = 63;
public static final int ConstraintSet_layout_constraintCircle = 64;
public static final int ConstraintSet_layout_constraintCircleAngle = 65;
public static final int ConstraintSet_layout_constraintCircleRadius = 66;
public static final int ConstraintSet_layout_constraintDimensionRatio = 67;
public static final int ConstraintSet_layout_constraintEnd_toEndOf = 68;
public static final int ConstraintSet_layout_constraintEnd_toStartOf = 69;
public static final int ConstraintSet_layout_constraintGuide_begin = 70;
public static final int ConstraintSet_layout_constraintGuide_end = 71;
public static final int ConstraintSet_layout_constraintGuide_percent = 72;
public static final int ConstraintSet_layout_constraintHeight_default = 73;
public static final int ConstraintSet_layout_constraintHeight_max = 74;
public static final int ConstraintSet_layout_constraintHeight_min = 75;
public static final int ConstraintSet_layout_constraintHeight_percent = 76;
public static final int ConstraintSet_layout_constraintHorizontal_bias = 77;
public static final int ConstraintSet_layout_constraintHorizontal_chainStyle = 78;
public static final int ConstraintSet_layout_constraintHorizontal_weight = 79;
public static final int ConstraintSet_layout_constraintLeft_creator = 80;
public static final int ConstraintSet_layout_constraintLeft_toLeftOf = 81;
public static final int ConstraintSet_layout_constraintLeft_toRightOf = 82;
public static final int ConstraintSet_layout_constraintRight_creator = 83;
public static final int ConstraintSet_layout_constraintRight_toLeftOf = 84;
public static final int ConstraintSet_layout_constraintRight_toRightOf = 85;
public static final int ConstraintSet_layout_constraintStart_toEndOf = 86;
public static final int ConstraintSet_layout_constraintStart_toStartOf = 87;
public static final int ConstraintSet_layout_constraintTag = 88;
public static final int ConstraintSet_layout_constraintTop_creator = 89;
public static final int ConstraintSet_layout_constraintTop_toBottomOf = 90;
public static final int ConstraintSet_layout_constraintTop_toTopOf = 91;
public static final int ConstraintSet_layout_constraintVertical_bias = 92;
public static final int ConstraintSet_layout_constraintVertical_chainStyle = 93;
public static final int ConstraintSet_layout_constraintVertical_weight = 94;
public static final int ConstraintSet_layout_constraintWidth_default = 95;
public static final int ConstraintSet_layout_constraintWidth_max = 96;
public static final int ConstraintSet_layout_constraintWidth_min = 97;
public static final int ConstraintSet_layout_constraintWidth_percent = 98;
public static final int ConstraintSet_layout_editor_absoluteX = 99;
public static final int ConstraintSet_layout_editor_absoluteY = 100;
public static final int ConstraintSet_layout_goneMarginBottom = 101;
public static final int ConstraintSet_layout_goneMarginEnd = 102;
public static final int ConstraintSet_layout_goneMarginLeft = 103;
public static final int ConstraintSet_layout_goneMarginRight = 104;
public static final int ConstraintSet_layout_goneMarginStart = 105;
public static final int ConstraintSet_layout_goneMarginTop = 106;
public static final int ConstraintSet_motionProgress = 107;
public static final int ConstraintSet_motionStagger = 108;
public static final int ConstraintSet_pathMotionArc = 109;
public static final int ConstraintSet_pivotAnchor = 110;
public static final int ConstraintSet_transitionEasing = 111;
public static final int ConstraintSet_transitionPathRotate = 112;
public static final int[] CoordinatorLayout = { 0x7f03015c, 0x7f03022c };
public static final int CoordinatorLayout_keylines = 0;
public static final int CoordinatorLayout_statusBarBackground = 1;
public static final int[] CoordinatorLayout_Layout = { 0x10100b3, 0x7f030162, 0x7f030163, 0x7f030164, 0x7f030191, 0x7f03019a, 0x7f03019b };
public static final int CoordinatorLayout_Layout_android_layout_gravity = 0;
public static final int CoordinatorLayout_Layout_layout_anchor = 1;
public static final int CoordinatorLayout_Layout_layout_anchorGravity = 2;
public static final int CoordinatorLayout_Layout_layout_behavior = 3;
public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 4;
public static final int CoordinatorLayout_Layout_layout_insetEdge = 5;
public static final int CoordinatorLayout_Layout_layout_keyline = 6;
public static final int[] CustomAttribute = { 0x7f03002f, 0x7f0300bc, 0x7f0300bd, 0x7f0300be, 0x7f0300bf, 0x7f0300c0, 0x7f0300c1, 0x7f0300c3, 0x7f0300c4 };
public static final int CustomAttribute_attributeName = 0;
public static final int CustomAttribute_customBoolean = 1;
public static final int CustomAttribute_customColorDrawableValue = 2;
public static final int CustomAttribute_customColorValue = 3;
public static final int CustomAttribute_customDimension = 4;
public static final int CustomAttribute_customFloatValue = 5;
public static final int CustomAttribute_customIntegerValue = 6;
public static final int CustomAttribute_customPixelDimension = 7;
public static final int CustomAttribute_customStringValue = 8;
public static final int[] DrawerArrowToggle = { 0x7f03002d, 0x7f03002e, 0x7f03003c, 0x7f030091, 0x7f0300da, 0x7f030131, 0x7f030220, 0x7f030276 };
public static final int DrawerArrowToggle_arrowHeadLength = 0;
public static final int DrawerArrowToggle_arrowShaftLength = 1;
public static final int DrawerArrowToggle_barLength = 2;
public static final int DrawerArrowToggle_color = 3;
public static final int DrawerArrowToggle_drawableSize = 4;
public static final int DrawerArrowToggle_gapBetweenBars = 5;
public static final int DrawerArrowToggle_spinBars = 6;
public static final int DrawerArrowToggle_thickness = 7;
public static final int[] FontFamily = { 0x7f030126, 0x7f030127, 0x7f030128, 0x7f030129, 0x7f03012a, 0x7f03012b };
public static final int FontFamily_fontProviderAuthority = 0;
public static final int FontFamily_fontProviderCerts = 1;
public static final int FontFamily_fontProviderFetchStrategy = 2;
public static final int FontFamily_fontProviderFetchTimeout = 3;
public static final int FontFamily_fontProviderPackage = 4;
public static final int FontFamily_fontProviderQuery = 5;
public static final int[] FontFamilyFont = { 0x1010532, 0x1010533, 0x101053f, 0x101056f, 0x1010570, 0x7f030124, 0x7f03012c, 0x7f03012d, 0x7f03012e, 0x7f03029c };
public static final int FontFamilyFont_android_font = 0;
public static final int FontFamilyFont_android_fontWeight = 1;
public static final int FontFamilyFont_android_fontStyle = 2;
public static final int FontFamilyFont_android_ttcIndex = 3;
public static final int FontFamilyFont_android_fontVariationSettings = 4;
public static final int FontFamilyFont_font = 5;
public static final int FontFamilyFont_fontStyle = 6;
public static final int FontFamilyFont_fontVariationSettings = 7;
public static final int FontFamilyFont_fontWeight = 8;
public static final int FontFamilyFont_ttcIndex = 9;
public static final int[] GradientColor = { 0x101019d, 0x101019e, 0x10101a1, 0x10101a2, 0x10101a3, 0x10101a4, 0x1010201, 0x101020b, 0x1010510, 0x1010511, 0x1010512, 0x1010513 };
public static final int GradientColor_android_startColor = 0;
public static final int GradientColor_android_endColor = 1;
public static final int GradientColor_android_type = 2;
public static final int GradientColor_android_centerX = 3;
public static final int GradientColor_android_centerY = 4;
public static final int GradientColor_android_gradientRadius = 5;
public static final int GradientColor_android_tileMode = 6;
public static final int GradientColor_android_centerColor = 7;
public static final int GradientColor_android_startX = 8;
public static final int GradientColor_android_startY = 9;
public static final int GradientColor_android_endX = 10;
public static final int GradientColor_android_endY = 11;
public static final int[] GradientColorItem = { 0x10101a5, 0x1010514 };
public static final int GradientColorItem_android_color = 0;
public static final int GradientColorItem_android_offset = 1;
public static final int[] ImageFilterView = { 0x7f030029, 0x7f030055, 0x7f0300b1, 0x7f0300b9, 0x7f0301dc, 0x7f030207, 0x7f030208, 0x7f030209, 0x7f0302a1 };
public static final int ImageFilterView_altSrc = 0;
public static final int ImageFilterView_brightness = 1;
public static final int ImageFilterView_contrast = 2;
public static final int ImageFilterView_crossfade = 3;
public static final int ImageFilterView_overlay = 4;
public static final int ImageFilterView_round = 5;
public static final int ImageFilterView_roundPercent = 6;
public static final int ImageFilterView_saturation = 7;
public static final int ImageFilterView_warmth = 8;
public static final int[] KeyAttribute = { 0x10100dc, 0x101031f, 0x1010322, 0x1010323, 0x1010324, 0x1010325, 0x1010326, 0x1010327, 0x1010328, 0x10103fa, 0x1010440, 0x7f0300bb, 0x7f030130, 0x7f0301c9, 0x7f0301cb, 0x7f030297, 0x7f030298 };
public static final int KeyAttribute_android_visibility = 0;
public static final int KeyAttribute_android_alpha = 1;
public static final int KeyAttribute_android_translationX = 2;
public static final int KeyAttribute_android_translationY = 3;
public static final int KeyAttribute_android_scaleX = 4;
public static final int KeyAttribute_android_scaleY = 5;
public static final int KeyAttribute_android_rotation = 6;
public static final int KeyAttribute_android_rotationX = 7;
public static final int KeyAttribute_android_rotationY = 8;
public static final int KeyAttribute_android_translationZ = 9;
public static final int KeyAttribute_android_elevation = 10;
public static final int KeyAttribute_curveFit = 11;
public static final int KeyAttribute_framePosition = 12;
public static final int KeyAttribute_motionProgress = 13;
public static final int KeyAttribute_motionTarget = 14;
public static final int KeyAttribute_transitionEasing = 15;
public static final int KeyAttribute_transitionPathRotate = 16;
public static final int[] KeyCycle = { 0x101031f, 0x1010322, 0x1010323, 0x1010324, 0x1010325, 0x1010326, 0x1010327, 0x1010328, 0x10103fa, 0x1010440, 0x7f0300bb, 0x7f030130, 0x7f0301c9, 0x7f0301cb, 0x7f030297, 0x7f030298, 0x7f0302a3, 0x7f0302a4, 0x7f0302a5, 0x7f0302a6 };
public static final int KeyCycle_android_alpha = 0;
public static final int KeyCycle_android_translationX = 1;
public static final int KeyCycle_android_translationY = 2;
public static final int KeyCycle_android_scaleX = 3;
public static final int KeyCycle_android_scaleY = 4;
public static final int KeyCycle_android_rotation = 5;
public static final int KeyCycle_android_rotationX = 6;
public static final int KeyCycle_android_rotationY = 7;
public static final int KeyCycle_android_translationZ = 8;
public static final int KeyCycle_android_elevation = 9;
public static final int KeyCycle_curveFit = 10;
public static final int KeyCycle_framePosition = 11;
public static final int KeyCycle_motionProgress = 12;
public static final int KeyCycle_motionTarget = 13;
public static final int KeyCycle_transitionEasing = 14;
public static final int KeyCycle_transitionPathRotate = 15;
public static final int KeyCycle_waveOffset = 16;
public static final int KeyCycle_wavePeriod = 17;
public static final int KeyCycle_waveShape = 18;
public static final int KeyCycle_waveVariesBy = 19;
public static final int[] KeyPosition = { 0x7f0300bb, 0x7f0300d5, 0x7f030130, 0x7f03015b, 0x7f0301cb, 0x7f0301e9, 0x7f0301eb, 0x7f0301ec, 0x7f0301ed, 0x7f0301ee, 0x7f03021c, 0x7f030297 };
public static final int KeyPosition_curveFit = 0;
public static final int KeyPosition_drawPath = 1;
public static final int KeyPosition_framePosition = 2;
public static final int KeyPosition_keyPositionType = 3;
public static final int KeyPosition_motionTarget = 4;
public static final int KeyPosition_pathMotionArc = 5;
public static final int KeyPosition_percentHeight = 6;
public static final int KeyPosition_percentWidth = 7;
public static final int KeyPosition_percentX = 8;
public static final int KeyPosition_percentY = 9;
public static final int KeyPosition_sizePercent = 10;
public static final int KeyPosition_transitionEasing = 11;
public static final int[] KeyTimeCycle = { 0x101031f, 0x1010322, 0x1010323, 0x1010324, 0x1010325, 0x1010326, 0x1010327, 0x1010328, 0x10103fa, 0x1010440, 0x7f0300bb, 0x7f030130, 0x7f0301c9, 0x7f0301cb, 0x7f030297, 0x7f030298, 0x7f0302a2, 0x7f0302a3, 0x7f0302a4, 0x7f0302a5 };
public static final int KeyTimeCycle_android_alpha = 0;
public static final int KeyTimeCycle_android_translationX = 1;
public static final int KeyTimeCycle_android_translationY = 2;
public static final int KeyTimeCycle_android_scaleX = 3;
public static final int KeyTimeCycle_android_scaleY = 4;
public static final int KeyTimeCycle_android_rotation = 5;
public static final int KeyTimeCycle_android_rotationX = 6;
public static final int KeyTimeCycle_android_rotationY = 7;
public static final int KeyTimeCycle_android_translationZ = 8;
public static final int KeyTimeCycle_android_elevation = 9;
public static final int KeyTimeCycle_curveFit = 10;
public static final int KeyTimeCycle_framePosition = 11;
public static final int KeyTimeCycle_motionProgress = 12;
public static final int KeyTimeCycle_motionTarget = 13;
public static final int KeyTimeCycle_transitionEasing = 14;
public static final int KeyTimeCycle_transitionPathRotate = 15;
public static final int KeyTimeCycle_waveDecay = 16;
public static final int KeyTimeCycle_waveOffset = 17;
public static final int KeyTimeCycle_wavePeriod = 18;
public static final int KeyTimeCycle_waveShape = 19;
public static final int[] KeyTrigger = { 0x7f030130, 0x7f0301cb, 0x7f0301cc, 0x7f0301cd, 0x7f0301d5, 0x7f0301d7, 0x7f0301d8, 0x7f030299, 0x7f03029a, 0x7f03029b };
public static final int KeyTrigger_framePosition = 0;
public static final int KeyTrigger_motionTarget = 1;
public static final int KeyTrigger_motion_postLayoutCollision = 2;
public static final int KeyTrigger_motion_triggerOnCollision = 3;
public static final int KeyTrigger_onCross = 4;
public static final int KeyTrigger_onNegativeCross = 5;
public static final int KeyTrigger_onPositiveCross = 6;
public static final int KeyTrigger_triggerId = 7;
public static final int KeyTrigger_triggerReceiver = 8;
public static final int KeyTrigger_triggerSlack = 9;
public static final int[] Layout = { 0x10100c4, 0x10100f4, 0x10100f5, 0x10100f7, 0x10100f8, 0x10100f9, 0x10100fa, 0x10103b5, 0x10103b6, 0x7f03003d, 0x7f03003e, 0x7f03003f, 0x7f03006a, 0x7f0300a1, 0x7f030167, 0x7f030168, 0x7f030169, 0x7f03016a, 0x7f03016b, 0x7f03016c, 0x7f03016d, 0x7f03016e, 0x7f03016f, 0x7f030170, 0x7f030171, 0x7f030172, 0x7f030173, 0x7f030174, 0x7f030175, 0x7f030176, 0x7f030177, 0x7f030178, 0x7f030179, 0x7f03017a, 0x7f03017b, 0x7f03017c, 0x7f03017d, 0x7f03017e, 0x7f03017f, 0x7f030180, 0x7f030181, 0x7f030182, 0x7f030183, 0x7f030184, 0x7f030185, 0x7f030187, 0x7f030188, 0x7f030189, 0x7f03018a, 0x7f03018b, 0x7f03018c, 0x7f03018d, 0x7f03018e, 0x7f03018f, 0x7f030190, 0x7f030192, 0x7f030193, 0x7f030194, 0x7f030195, 0x7f030196, 0x7f030197, 0x7f030198, 0x7f030199, 0x7f0301b8, 0x7f0301bb, 0x7f0301be, 0x7f0301bf };
public static final int Layout_android_orientation = 0;
public static final int Layout_android_layout_width = 1;
public static final int Layout_android_layout_height = 2;
public static final int Layout_android_layout_marginLeft = 3;
public static final int Layout_android_layout_marginTop = 4;
public static final int Layout_android_layout_marginRight = 5;
public static final int Layout_android_layout_marginBottom = 6;
public static final int Layout_android_layout_marginStart = 7;
public static final int Layout_android_layout_marginEnd = 8;
public static final int Layout_barrierAllowsGoneWidgets = 9;
public static final int Layout_barrierDirection = 10;
public static final int Layout_barrierMargin = 11;
public static final int Layout_chainUseRtl = 12;
public static final int Layout_constraint_referenced_ids = 13;
public static final int Layout_layout_constrainedHeight = 14;
public static final int Layout_layout_constrainedWidth = 15;
public static final int Layout_layout_constraintBaseline_creator = 16;
public static final int Layout_layout_constraintBaseline_toBaselineOf = 17;
public static final int Layout_layout_constraintBottom_creator = 18;
public static final int Layout_layout_constraintBottom_toBottomOf = 19;
public static final int Layout_layout_constraintBottom_toTopOf = 20;
public static final int Layout_layout_constraintCircle = 21;
public static final int Layout_layout_constraintCircleAngle = 22;
public static final int Layout_layout_constraintCircleRadius = 23;
public static final int Layout_layout_constraintDimensionRatio = 24;
public static final int Layout_layout_constraintEnd_toEndOf = 25;
public static final int Layout_layout_constraintEnd_toStartOf = 26;
public static final int Layout_layout_constraintGuide_begin = 27;
public static final int Layout_layout_constraintGuide_end = 28;
public static final int Layout_layout_constraintGuide_percent = 29;
public static final int Layout_layout_constraintHeight_default = 30;
public static final int Layout_layout_constraintHeight_max = 31;
public static final int Layout_layout_constraintHeight_min = 32;
public static final int Layout_layout_constraintHeight_percent = 33;
public static final int Layout_layout_constraintHorizontal_bias = 34;
public static final int Layout_layout_constraintHorizontal_chainStyle = 35;
public static final int Layout_layout_constraintHorizontal_weight = 36;
public static final int Layout_layout_constraintLeft_creator = 37;
public static final int Layout_layout_constraintLeft_toLeftOf = 38;
public static final int Layout_layout_constraintLeft_toRightOf = 39;
public static final int Layout_layout_constraintRight_creator = 40;
public static final int Layout_layout_constraintRight_toLeftOf = 41;
public static final int Layout_layout_constraintRight_toRightOf = 42;
public static final int Layout_layout_constraintStart_toEndOf = 43;
public static final int Layout_layout_constraintStart_toStartOf = 44;
public static final int Layout_layout_constraintTop_creator = 45;
public static final int Layout_layout_constraintTop_toBottomOf = 46;
public static final int Layout_layout_constraintTop_toTopOf = 47;
public static final int Layout_layout_constraintVertical_bias = 48;
public static final int Layout_layout_constraintVertical_chainStyle = 49;
public static final int Layout_layout_constraintVertical_weight = 50;
public static final int Layout_layout_constraintWidth_default = 51;
public static final int Layout_layout_constraintWidth_max = 52;
public static final int Layout_layout_constraintWidth_min = 53;
public static final int Layout_layout_constraintWidth_percent = 54;
public static final int Layout_layout_editor_absoluteX = 55;
public static final int Layout_layout_editor_absoluteY = 56;
public static final int Layout_layout_goneMarginBottom = 57;
public static final int Layout_layout_goneMarginEnd = 58;
public static final int Layout_layout_goneMarginLeft = 59;
public static final int Layout_layout_goneMarginRight = 60;
public static final int Layout_layout_goneMarginStart = 61;
public static final int Layout_layout_goneMarginTop = 62;
public static final int Layout_maxHeight = 63;
public static final int Layout_maxWidth = 64;
public static final int Layout_minHeight = 65;
public static final int Layout_minWidth = 66;
public static final int[] LinearLayoutCompat = { 0x10100af, 0x10100c4, 0x1010126, 0x1010127, 0x1010128, 0x7f0300cf, 0x7f0300d1, 0x7f0301bc, 0x7f030214 };
public static final int LinearLayoutCompat_android_gravity = 0;
public static final int LinearLayoutCompat_android_orientation = 1;
public static final int LinearLayoutCompat_android_baselineAligned = 2;
public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
public static final int LinearLayoutCompat_android_weightSum = 4;
public static final int LinearLayoutCompat_divider = 5;
public static final int LinearLayoutCompat_dividerPadding = 6;
public static final int LinearLayoutCompat_measureWithLargestChild = 7;
public static final int LinearLayoutCompat_showDividers = 8;
public static final int[] LinearLayoutCompat_Layout = { 0x10100b3, 0x10100f4, 0x10100f5, 0x1010181 };
public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0;
public static final int LinearLayoutCompat_Layout_android_layout_width = 1;
public static final int LinearLayoutCompat_Layout_android_layout_height = 2;
public static final int LinearLayoutCompat_Layout_android_layout_weight = 3;
public static final int[] ListPopupWindow = { 0x10102ac, 0x10102ad };
public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0;
public static final int ListPopupWindow_android_dropDownVerticalOffset = 1;
public static final int[] MenuGroup = { 0x101000e, 0x10100d0, 0x1010194, 0x10101de, 0x10101df, 0x10101e0 };
public static final int MenuGroup_android_enabled = 0;
public static final int MenuGroup_android_id = 1;
public static final int MenuGroup_android_visible = 2;
public static final int MenuGroup_android_menuCategory = 3;
public static final int MenuGroup_android_orderInCategory = 4;
public static final int MenuGroup_android_checkableBehavior = 5;
public static final int[] MenuItem = { 0x1010002, 0x101000e, 0x10100d0, 0x1010106, 0x1010194, 0x10101de, 0x10101df, 0x10101e1, 0x10101e2, 0x10101e3, 0x10101e4, 0x10101e5, 0x101026f, 0x7f03000d, 0x7f03001f, 0x7f030020, 0x7f030028, 0x7f0300a4, 0x7f030147, 0x7f030148, 0x7f0301d4, 0x7f030213, 0x7f03028f };
public static final int MenuItem_android_icon = 0;
public static final int MenuItem_android_enabled = 1;
public static final int MenuItem_android_id = 2;
public static final int MenuItem_android_checked = 3;
public static final int MenuItem_android_visible = 4;
public static final int MenuItem_android_menuCategory = 5;
public static final int MenuItem_android_orderInCategory = 6;
public static final int MenuItem_android_title = 7;
public static final int MenuItem_android_titleCondensed = 8;
public static final int MenuItem_android_alphabeticShortcut = 9;
public static final int MenuItem_android_numericShortcut = 10;
public static final int MenuItem_android_checkable = 11;
public static final int MenuItem_android_onClick = 12;
public static final int MenuItem_actionLayout = 13;
public static final int MenuItem_actionProviderClass = 14;
public static final int MenuItem_actionViewClass = 15;
public static final int MenuItem_alphabeticModifiers = 16;
public static final int MenuItem_contentDescription = 17;
public static final int MenuItem_iconTint = 18;
public static final int MenuItem_iconTintMode = 19;
public static final int MenuItem_numericModifiers = 20;
public static final int MenuItem_showAsAction = 21;
public static final int MenuItem_tooltipText = 22;
public static final int[] MenuView = { 0x10100ae, 0x101012c, 0x101012d, 0x101012e, 0x101012f, 0x1010130, 0x1010131, 0x7f0301f6, 0x7f030230 };
public static final int MenuView_android_windowAnimationStyle = 0;
public static final int MenuView_android_itemTextAppearance = 1;
public static final int MenuView_android_horizontalDivider = 2;
public static final int MenuView_android_verticalDivider = 3;
public static final int MenuView_android_headerBackground = 4;
public static final int MenuView_android_itemBackground = 5;
public static final int MenuView_android_itemIconDisabledAlpha = 6;
public static final int MenuView_preserveIconSpacing = 7;
public static final int MenuView_subMenuArrow = 8;
public static final int[] MockView = { 0x7f0301c0, 0x7f0301c1, 0x7f0301c2, 0x7f0301c3, 0x7f0301c4, 0x7f0301c5 };
public static final int MockView_mock_diagonalsColor = 0;
public static final int MockView_mock_label = 1;
public static final int MockView_mock_labelBackgroundColor = 2;
public static final int MockView_mock_labelColor = 3;
public static final int MockView_mock_showDiagonals = 4;
public static final int MockView_mock_showLabel = 5;
public static final int[] Motion = { 0x7f03002a, 0x7f0300d5, 0x7f0301c8, 0x7f0301ca, 0x7f0301e9, 0x7f030297 };
public static final int Motion_animate_relativeTo = 0;
public static final int Motion_drawPath = 1;
public static final int Motion_motionPathRotate = 2;
public static final int Motion_motionStagger = 3;
public static final int Motion_pathMotionArc = 4;
public static final int Motion_transitionEasing = 5;
public static final int[] MotionHelper = { 0x7f0301d6, 0x7f0301d9 };
public static final int MotionHelper_onHide = 0;
public static final int MotionHelper_onShow = 1;
public static final int[] MotionLayout = { 0x7f03002b, 0x7f0300ba, 0x7f030160, 0x7f0301c6, 0x7f0301c9, 0x7f030216 };
public static final int MotionLayout_applyMotionScene = 0;
public static final int MotionLayout_currentState = 1;
public static final int MotionLayout_layoutDescription = 2;
public static final int MotionLayout_motionDebug = 3;
public static final int MotionLayout_motionProgress = 4;
public static final int MotionLayout_showPaths = 5;
public static final int[] MotionScene = { 0x7f0300c5 };
public static final int MotionScene_defaultDuration = 0;
public static final int[] MotionTelltales = { 0x7f030256, 0x7f030257, 0x7f030258 };
public static final int MotionTelltales_telltales_tailColor = 0;
public static final int MotionTelltales_telltales_tailScale = 1;
public static final int MotionTelltales_telltales_velocityMode = 2;
public static final int[] OnClick = { 0x7f030084, 0x7f030255 };
public static final int OnClick_clickAction = 0;
public static final int OnClick_targetId = 1;
public static final int[] OnSwipe = { 0x7f0300d3, 0x7f0300d4, 0x7f0301b5, 0x7f0301ba, 0x7f0301ce, 0x7f0301da, 0x7f030290, 0x7f030291, 0x7f030292 };
public static final int OnSwipe_dragDirection = 0;
public static final int OnSwipe_dragScale = 1;
public static final int OnSwipe_maxAcceleration = 2;
public static final int OnSwipe_maxVelocity = 3;
public static final int OnSwipe_moveWhenScrollAtTop = 4;
public static final int OnSwipe_onTouchUp = 5;
public static final int OnSwipe_touchAnchorId = 6;
public static final int OnSwipe_touchAnchorSide = 7;
public static final int OnSwipe_touchRegionId = 8;
public static final int[] PopupWindow = { 0x1010176, 0x10102c9, 0x7f0301db };
public static final int PopupWindow_android_popupBackground = 0;
public static final int PopupWindow_android_popupAnimationStyle = 1;
public static final int PopupWindow_overlapAnchor = 2;
public static final int[] PopupWindowBackgroundState = { 0x7f030227 };
public static final int PopupWindowBackgroundState_state_above_anchor = 0;
public static final int[] PropertySet = { 0x10100dc, 0x101031f, 0x7f030186, 0x7f0301c9, 0x7f03029f };
public static final int PropertySet_android_visibility = 0;
public static final int PropertySet_android_alpha = 1;
public static final int PropertySet_layout_constraintTag = 2;
public static final int PropertySet_motionProgress = 3;
public static final int PropertySet_visibilityMode = 4;
public static final int[] RecycleListView = { 0x7f0301dd, 0x7f0301e0 };
public static final int RecycleListView_paddingBottomNoButtons = 0;
public static final int RecycleListView_paddingTopNoTitle = 1;
public static final int[] SearchView = { 0x10100da, 0x101011f, 0x1010220, 0x1010264, 0x7f030085, 0x7f03009d, 0x7f0300c6, 0x7f030132, 0x7f030149, 0x7f03015f, 0x7f0301fb, 0x7f0301fc, 0x7f03020d, 0x7f03020e, 0x7f030231, 0x7f030236, 0x7f0302a0 };
public static final int SearchView_android_focusable = 0;
public static final int SearchView_android_maxWidth = 1;
public static final int SearchView_android_inputType = 2;
public static final int SearchView_android_imeOptions = 3;
public static final int SearchView_closeIcon = 4;
public static final int SearchView_commitIcon = 5;
public static final int SearchView_defaultQueryHint = 6;
public static final int SearchView_goIcon = 7;
public static final int SearchView_iconifiedByDefault = 8;
public static final int SearchView_layout = 9;
public static final int SearchView_queryBackground = 10;
public static final int SearchView_queryHint = 11;
public static final int SearchView_searchHintIcon = 12;
public static final int SearchView_searchIcon = 13;
public static final int SearchView_submitBackground = 14;
public static final int SearchView_suggestionRowLayout = 15;
public static final int SearchView_voiceIcon = 16;
public static final int[] Spinner = { 0x10100b2, 0x1010176, 0x101017b, 0x1010262, 0x7f0301f4 };
public static final int Spinner_android_entries = 0;
public static final int Spinner_android_popupBackground = 1;
public static final int Spinner_android_prompt = 2;
public static final int Spinner_android_dropDownWidth = 3;
public static final int Spinner_popupTheme = 4;
public static final int[] State = { 0x10100d0, 0x7f0300a2 };
public static final int State_android_id = 0;
public static final int State_constraints = 1;
public static final int[] StateListDrawable = { 0x101011c, 0x1010194, 0x1010195, 0x1010196, 0x101030c, 0x101030d };
public static final int StateListDrawable_android_dither = 0;
public static final int StateListDrawable_android_visible = 1;
public static final int StateListDrawable_android_variablePadding = 2;
public static final int StateListDrawable_android_constantSize = 3;
public static final int StateListDrawable_android_enterFadeDuration = 4;
public static final int StateListDrawable_android_exitFadeDuration = 5;
public static final int[] StateListDrawableItem = { 0x1010199 };
public static final int StateListDrawableItem_android_drawable = 0;
public static final int[] StateSet = { 0x7f0300c7 };
public static final int StateSet_defaultState = 0;
public static final int[] SwitchCompat = { 0x1010124, 0x1010125, 0x1010142, 0x7f030217, 0x7f030223, 0x7f030237, 0x7f030238, 0x7f03023a, 0x7f030277, 0x7f030278, 0x7f030279, 0x7f030293, 0x7f030294, 0x7f030295 };
public static final int SwitchCompat_android_textOn = 0;
public static final int SwitchCompat_android_textOff = 1;
public static final int SwitchCompat_android_thumb = 2;
public static final int SwitchCompat_showText = 3;
public static final int SwitchCompat_splitTrack = 4;
public static final int SwitchCompat_switchMinWidth = 5;
public static final int SwitchCompat_switchPadding = 6;
public static final int SwitchCompat_switchTextAppearance = 7;
public static final int SwitchCompat_thumbTextPadding = 8;
public static final int SwitchCompat_thumbTint = 9;
public static final int SwitchCompat_thumbTintMode = 10;
public static final int SwitchCompat_track = 11;
public static final int SwitchCompat_trackTint = 12;
public static final int SwitchCompat_trackTintMode = 13;
public static final int[] TextAppearance = { 0x1010095, 0x1010096, 0x1010097, 0x1010098, 0x101009a, 0x101009b, 0x1010161, 0x1010162, 0x1010163, 0x1010164, 0x10103ac, 0x1010585, 0x7f030125, 0x7f03012d, 0x7f030259, 0x7f030273 };
public static final int TextAppearance_android_textSize = 0;
public static final int TextAppearance_android_typeface = 1;
public static final int TextAppearance_android_textStyle = 2;
public static final int TextAppearance_android_textColor = 3;
public static final int TextAppearance_android_textColorHint = 4;
public static final int TextAppearance_android_textColorLink = 5;
public static final int TextAppearance_android_shadowColor = 6;
public static final int TextAppearance_android_shadowDx = 7;
public static final int TextAppearance_android_shadowDy = 8;
public static final int TextAppearance_android_shadowRadius = 9;
public static final int TextAppearance_android_fontFamily = 10;
public static final int TextAppearance_android_textFontWeight = 11;
public static final int TextAppearance_fontFamily = 12;
public static final int TextAppearance_fontVariationSettings = 13;
public static final int TextAppearance_textAllCaps = 14;
public static final int TextAppearance_textLocale = 15;
public static final int[] Toolbar = { 0x10100af, 0x1010140, 0x7f03005c, 0x7f03008d, 0x7f03008e, 0x7f0300a5, 0x7f0300a6, 0x7f0300a7, 0x7f0300a8, 0x7f0300a9, 0x7f0300aa, 0x7f0301b1, 0x7f0301b2, 0x7f0301b7, 0x7f0301bd, 0x7f0301d0, 0x7f0301d1, 0x7f0301f4, 0x7f030232, 0x7f030233, 0x7f030234, 0x7f03027f, 0x7f030281, 0x7f030282, 0x7f030283, 0x7f030284, 0x7f030285, 0x7f030286, 0x7f030287, 0x7f030288 };
public static final int Toolbar_android_gravity = 0;
public static final int Toolbar_android_minHeight = 1;
public static final int Toolbar_buttonGravity = 2;
public static final int Toolbar_collapseContentDescription = 3;
public static final int Toolbar_collapseIcon = 4;
public static final int Toolbar_contentInsetEnd = 5;
public static final int Toolbar_contentInsetEndWithActions = 6;
public static final int Toolbar_contentInsetLeft = 7;
public static final int Toolbar_contentInsetRight = 8;
public static final int Toolbar_contentInsetStart = 9;
public static final int Toolbar_contentInsetStartWithNavigation = 10;
public static final int Toolbar_logo = 11;
public static final int Toolbar_logoDescription = 12;
public static final int Toolbar_maxButtonHeight = 13;
public static final int Toolbar_menu = 14;
public static final int Toolbar_navigationContentDescription = 15;
public static final int Toolbar_navigationIcon = 16;
public static final int Toolbar_popupTheme = 17;
public static final int Toolbar_subtitle = 18;
public static final int Toolbar_subtitleTextAppearance = 19;
public static final int Toolbar_subtitleTextColor = 20;
public static final int Toolbar_title = 21;
public static final int Toolbar_titleMargin = 22;
public static final int Toolbar_titleMarginBottom = 23;
public static final int Toolbar_titleMarginEnd = 24;
public static final int Toolbar_titleMarginStart = 25;
public static final int Toolbar_titleMarginTop = 26;
public static final int Toolbar_titleMargins = 27;
public static final int Toolbar_titleTextAppearance = 28;
public static final int Toolbar_titleTextColor = 29;
public static final int[] Transform = { 0x1010320, 0x1010321, 0x1010322, 0x1010323, 0x1010324, 0x1010325, 0x1010326, 0x1010327, 0x1010328, 0x10103fa, 0x1010440, 0x7f0301f0, 0x7f0301f1, 0x7f0301f2 };
public static final int Transform_android_transformPivotX = 0;
public static final int Transform_android_transformPivotY = 1;
public static final int Transform_android_translationX = 2;
public static final int Transform_android_translationY = 3;
public static final int Transform_android_scaleX = 4;
public static final int Transform_android_scaleY = 5;
public static final int Transform_android_rotation = 6;
public static final int Transform_android_rotationX = 7;
public static final int Transform_android_rotationY = 8;
public static final int Transform_android_translationZ = 9;
public static final int Transform_android_elevation = 10;
public static final int Transform_pivotAnchor = 11;
public static final int Transform_pivotX = 12;
public static final int Transform_pivotY = 13;
public static final int[] Transition = { 0x10100d0, 0x7f030036, 0x7f03009f, 0x7f0300a0, 0x7f0300e2, 0x7f0301c7, 0x7f030226, 0x7f030296 };
public static final int Transition_android_id = 0;
public static final int Transition_autoTransition = 1;
public static final int Transition_constraintSetEnd = 2;
public static final int Transition_constraintSetStart = 3;
public static final int Transition_duration = 4;
public static final int Transition_motionInterpolator = 5;
public static final int Transition_staggered = 6;
public static final int Transition_transitionDisable = 7;
public static final int[] Variant = { 0x7f0300a2, 0x7f030201, 0x7f030202, 0x7f030203, 0x7f030204 };
public static final int Variant_constraints = 0;
public static final int Variant_region_heightLessThan = 1;
public static final int Variant_region_heightMoreThan = 2;
public static final int Variant_region_widthLessThan = 3;
public static final int Variant_region_widthMoreThan = 4;
public static final int[] View = { 0x1010000, 0x10100da, 0x7f0301de, 0x7f0301df, 0x7f030275 };
public static final int View_android_theme = 0;
public static final int View_android_focusable = 1;
public static final int View_paddingEnd = 2;
public static final int View_paddingStart = 3;
public static final int View_theme = 4;
public static final int[] ViewBackgroundHelper = { 0x10100d4, 0x7f03003a, 0x7f03003b };
public static final int ViewBackgroundHelper_android_background = 0;
public static final int ViewBackgroundHelper_backgroundTint = 1;
public static final int ViewBackgroundHelper_backgroundTintMode = 2;
public static final int[] ViewStubCompat = { 0x10100d0, 0x10100f2, 0x10100f3 };
public static final int ViewStubCompat_android_id = 0;
public static final int ViewStubCompat_android_layout = 1;
public static final int ViewStubCompat_android_inflatedId = 2;
}
}
| [
"kyrchristod@gmail.com"
] | kyrchristod@gmail.com |
2620368b4176a1bf58f4f6f20ef37a6a0936fc47 | e87b04a5f6193b01eda45f682a48b82aa0d01695 | /account-api/src/main/java/com/jalarbee/aleef/account/api/AccountService.java | ed5ed70e2e560eb9ff83e9284580e5142a049a35 | [] | no_license | teranga/ecommerce-paltform | f474949f1a400ca0aa761b86f246f6e6e29f2d27 | 524fd4b43343119ed25a7feb8124ef44b7eadc50 | refs/heads/master | 2021-01-12T18:06:07.733218 | 2017-04-14T04:38:50 | 2017-04-14T04:38:50 | 69,907,435 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,433 | java | package com.jalarbee.aleef.account.api;
import akka.Done;
import akka.NotUsed;
import com.jalarbee.aleef.account.api.model.Account;
import com.lightbend.lagom.javadsl.api.Descriptor;
import com.lightbend.lagom.javadsl.api.Service;
import com.lightbend.lagom.javadsl.api.ServiceCall;
import com.lightbend.lagom.javadsl.api.broker.Topic;
import static com.lightbend.lagom.javadsl.api.Service.*;
/**
* @author Abdoulaye Diallo
*/
public interface AccountService extends Service {
ServiceCall<Account, Account> register();
Topic<AccountEvent> accountEvents();
ServiceCall<NotUsed, Account> getAccount(String accountId);
ServiceCall<Long, Done> suspend(String accountId);
ServiceCall<NotUsed, Done> liftSuspension(String accountId);
ServiceCall<NotUsed, Done> delete(String accountId);
@Override
default Descriptor descriptor() {
// @formatter:off
return named("accountService").withCalls(
pathCall("/api/accounts", this::register),
pathCall("/api/account/:id/suspend", this::suspend),
pathCall("/api/account/:id/delete", this::delete),
pathCall("/api/account/:id/unsuspend", this::liftSuspension),
pathCall("/api/account/:id", this::getAccount)
).publishing(
topic("account-AccountEvent", this::accountEvents)
).withAutoAcl(true);
// @formatter:on
}
}
| [
"barrymanda@gmail.com"
] | barrymanda@gmail.com |
28c5830c4a24cda09911c26507c6ab32822a6a7c | 8c003261d6a4d267d39f4013160d990db2391cd6 | /src/ch/theband/benno/jarepo/Rechnung.java | 4a1ff71b7464a257ec2393f9db7de9cbf7cd542b | [] | no_license | saxmaster79/jarepo | 982b189db96437b09c0144a65482b1c7a58ed6de | 2415a36e8688bfc035d327af5370003b6460a3fc | refs/heads/master | 2020-04-15T16:55:16.346631 | 2019-05-14T18:59:50 | 2019-05-14T18:59:50 | 762,227 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 925 | java | package ch.theband.benno.jarepo;
public class Rechnung {
private String luecke;
private String vorLuecke;
private String nachLuecke;
public Rechnung(String luecke, String vorLuecke, String nachLuecke) {
this.luecke = luecke;
this.vorLuecke = vorLuecke;
this.nachLuecke = nachLuecke;
}
public String getLuecke() {
return this.luecke;
}
public void setLuecke(String luecke) {
this.luecke = luecke;
}
public String getVorLuecke() {
return this.vorLuecke;
}
public void setVorLuecke(String vorLuecke) {
this.vorLuecke = vorLuecke;
}
public String getNachLuecke() {
return this.nachLuecke;
}
public void setNachLuecke(String nachLuecke) {
this.nachLuecke = nachLuecke;
}
public String toString() {
return this.getClass().getName() + ": " + this.vorLuecke + "[" + this.luecke + "]" + this.nachLuecke;
}
}
| [
"saxmaster79@gmail.com"
] | saxmaster79@gmail.com |
493ed8f3e3ed5a9d46874e887dfcae6d3d4f6d6e | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/34/34_5d2a05ba329424f9b95b3cf72c7c50c2eba28c48/EnvelopeHandlerBasedConsumer/34_5d2a05ba329424f9b95b3cf72c7c50c2eba28c48_EnvelopeHandlerBasedConsumer_t.java | 1f620f6acb09d5895f3e082afbc1656758740755 | [] | no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 4,304 | java | package pegasus.eventbus.rabbitmq;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import pegasus.eventbus.client.Envelope;
import pegasus.eventbus.client.EnvelopeHandler;
import pegasus.eventbus.client.EventResult;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.DefaultConsumer;
import com.rabbitmq.client.ShutdownSignalException;
import com.rabbitmq.client.AMQP.BasicProperties;
class EnvelopeHandlerBasedConsumer extends DefaultConsumer {
private final Logger LOG;
private final String queueName;
private final EnvelopeHandler consumer;
public EnvelopeHandlerBasedConsumer(Channel channel, String queueName, EnvelopeHandler handler) {
super(channel);
this.queueName = queueName;
this.consumer = handler;
//TODO: PEGA-727 Need to add tests to assert that this logger name is always valid (i.e. queue names with . and any other illegal chars are correctly mangled.)
LOG = LoggerFactory.getLogger(String.format("%s$>%s", this.getClass().getCanonicalName(), queueName.replace('.', '_')));
}
@Override
public void handleConsumeOk(String consumerTag) {
LOG.debug("ConsumeOk received for ConsumerTag [{}].", consumerTag);
super.handleConsumeOk(consumerTag);
}
@Override
public void handleCancel(String consumerTag) throws IOException {
LOG.debug("Subscription Cancel received for ConsumerTag [{}].", consumerTag);
super.handleCancel(consumerTag);
}
@Override
public void handleCancelOk(String consumerTag) {
LOG.debug("Subscription CancelOk received for ConsumerTag [{}].", consumerTag);
super.handleCancelOk(consumerTag);
}
@Override
public void handleRecoverOk(String consumerTag) {
LOG.debug("Subscription RecoverOk received for ConsumerTag [{}].", consumerTag);
super.handleRecoverOk(consumerTag);
}
@Override
public void handleShutdownSignal(String consumerTag,
ShutdownSignalException sig) {
LOG.debug("Subscription ShutdownSignal received for ConsumerTag [{}].", consumerTag);
super.handleShutdownSignal(consumerTag, sig);
}
@Override
public void handleDelivery(String consumerTag,
com.rabbitmq.client.Envelope amqpEnvelope,
BasicProperties properties,
byte[] body)
throws IOException {
try {
super.handleDelivery(consumerTag, amqpEnvelope, properties, body);
Channel channel = this.getChannel();
LOG.trace("Handling delivery for ConsumerTag [{}].", consumerTag);
long deliveryTag = amqpEnvelope.getDeliveryTag();
LOG.trace("DeliveryTag is [{}] for message on ConsumerTag [{}]", deliveryTag, consumerTag);
Envelope envelope = RabbitMessageBus.createEnvelope(properties, body);
LOG.trace("Envelope create for DeliveryTag [{}].", deliveryTag);
EventResult result;
try {
LOG.trace("Handling envelope for DeliveryTag [{}].", deliveryTag);
//TODO: PEGA-726 what if handler incorrectly returns null? I think we should assume Failed to be safe.
result = consumer.handleEnvelope(envelope);
} catch (Throwable e) {
result = EventResult.Failed;
String id;
try {
id = envelope.getId().toString();
} catch (Throwable ee) {
id = "<message id not available>";
}
LOG.error("Envelope handler of type " + consumer.getClass().getCanonicalName() + " on queue " + queueName + " threw exception of type " + e.getClass().getCanonicalName()
+ " handling message " + id + ", DeliveryTag: " + deliveryTag, e);
}
LOG.trace("Determining how to handle EventResult [{}]", result);
switch (result) {
case Handled:
LOG.trace("Accepting DeliveryTag [{}]", deliveryTag);
channel.basicAck(deliveryTag, false);
break;
case Failed:
LOG.trace("Rejecting DeliveryTag [{}]", deliveryTag);
channel.basicReject(deliveryTag, false);
break;
case Retry:
LOG.trace("Retrying DeliveryTag [{}]", deliveryTag);
channel.basicReject(deliveryTag, true);
break;
}
} catch (Throwable e) {
LOG.error("handleDelivery failed on queue " + queueName + ".", e);
}
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
285ad7f5ef347ee56ded6556548fec1d42cce2ff | 0375bc8e5711b2b004950db237f2a3988368fd20 | /Topics/Iterating over arrays/Check if an array is sorted ascending/src/Main.java | 31678e26aba45bcd00cce9cebde375675d6c717a | [] | no_license | miannuzzi/Simple_Tic-Tac-Toe | bb74cf6ab05d4b7718228e326f763b9a5b9465d8 | e1a5042296b70d667b9e764ad75f6ed6db7b91ca | refs/heads/master | 2023-05-15T09:35:38.921339 | 2021-06-05T15:23:41 | 2021-06-05T15:23:41 | 374,147,533 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 533 | java | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int length = scanner.nextInt();
boolean ordered = true;
int i = 0;
int previousValue = 0;
while (ordered && i < length) {
i++;
int value = scanner.nextInt();
if (previousValue > value) {
ordered = false;
}
previousValue = value;
}
System.out.println(ordered);
}
} | [
"marcelo.iannuzzi@wdc.com"
] | marcelo.iannuzzi@wdc.com |
b25b6ee9b9bc7995890060f085ea2e9140c5cdd9 | 7f6cf436e8bed082466f97bcc7abf0721d235f1a | /src/com/bionic/javase/week3/ClassPrivateConstructor.java | 16f277e56eb6f1cd34bd35c3b14166df48b83b75 | [] | no_license | Jose0007/BionicJavaCourses | 2bdb61cd49e1dd761ca82e0ceb0d2b2e6b78441a | 271e05dd5fc7de04b6ff70e66ea12ba96da441f6 | refs/heads/master | 2020-12-14T07:22:28.297075 | 2014-04-02T12:24:31 | 2014-04-02T12:24:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 149 | java | package com.bionic.javase.week3;
public class ClassPrivateConstructor {
private ClassPrivateConstructor() {
System.out.println("ololo");
}
}
| [
"yaroslav.shlapak@gmail.com"
] | yaroslav.shlapak@gmail.com |
7ca54815643ce45ddfc8c9b9bed5adfb68de5d9a | f10fcce714caa718b8ab031c87d7bcf36c72e2da | /src/main/java/com/example/springbootshiro/SpringbootShiroApplication.java | 2c1bcc7c4645497e79e0e9f49ef0d3f1f95b62b1 | [] | no_license | zfx1101804091/springboot-shiro | 32f2ad29a5e95707edb9456a62df708587dc0fda | 15376ba55600f06ca8d40ca9df77b120a133143e | refs/heads/master | 2022-06-23T17:09:28.178016 | 2019-08-05T16:01:51 | 2019-08-05T16:01:51 | 200,464,232 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 451 | java | package com.example.springbootshiro;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
@MapperScan("com.example.springbootshiro.*.mapper")
public class SpringbootShiroApplication {
public static void main(String[] args) {
SpringApplication.run(SpringbootShiroApplication.class, args);
}
}
| [
"1875586562@qq.com"
] | 1875586562@qq.com |
e77194409ae83c95009adb9a92186d80477152da | 19b6616975d65b3660f0a8f7b84104440467d973 | /src/com/tpm/dao/PPTrainingConceptDao.java | 47400e268e460ac7b24418c1eab2b5411a7a0c1f | [] | no_license | shuyun1/TPM | 9646b25eae25936e8c216cca9b8eef41de81dc8f | 7011c781410f1bd6c73bf28316f3d9a1d4726e05 | refs/heads/master | 2023-03-18T02:03:24.648742 | 2019-08-31T10:21:39 | 2019-08-31T10:21:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 236 | java | package com.tpm.dao;
import com.tpm.entity.Department;
import com.tpm.entity.PPTrainingConcept;
public interface PPTrainingConceptDao extends BaseDao<PPTrainingConcept>{
PPTrainingConcept getbydepartment(Department department);
}
| [
"48194573+15930599706@users.noreply.github.com"
] | 48194573+15930599706@users.noreply.github.com |
9c93b16ff47f47aaf75b395e38f1a7f7824d244e | 07d4c2f245ba02b315927e0bf6efeb8263f74ec0 | /src/main/java/com/stock/repository/StockRepository.java | f214ea93816e63b9aef62fd0112f39ef2745432a | [] | no_license | dkumar261/stock | 1c0dc58e862015b3f148355b5720f4dfb34a4a99 | 39672eb51dbda956b11730aa1376180692d99f10 | refs/heads/master | 2023-02-16T02:19:08.369028 | 2023-02-07T19:07:09 | 2023-02-07T19:07:09 | 266,615,250 | 0 | 0 | null | 2023-02-07T19:07:10 | 2020-05-24T20:00:25 | null | UTF-8 | Java | false | false | 278 | java | package com.stock.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.stock.domain.Stock;
@Repository
public interface StockRepository extends JpaRepository<Stock, Integer> {
}
| [
"krsnvicky@gmail.com"
] | krsnvicky@gmail.com |
d31fc85368bacacb581d37034690a723178e4ef8 | c56f05bdbde4090ee4138c6564eacc855155fc6b | /app/src/main/java/com/kingl/zxs/klapplication/Net/NetStateEvent.java | 23b9a4bb3eb2ba473f7209ccf30433546a860a09 | [] | no_license | zxs055/newApplication | af8f5c65ebc249cc307cf653d9348329545787b1 | 0c47b3dbeecdf64a749b4c93b9824c421d675121 | refs/heads/master | 2020-03-21T14:53:12.959904 | 2018-06-26T03:50:28 | 2018-06-26T03:50:28 | 138,681,041 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 160 | java | package com.kingl.zxs.klapplication.Net;
/**
* Created by Administrator on 2018/6/11.
*/
public class NetStateEvent {
public NetStateEvent(){
}
}
| [
"308090180@qq.com"
] | 308090180@qq.com |
a9ddcb0ba70e45bba8b3b7ba5adc029cfb9782c4 | 69f586852f6d1a2be27c634cfd7fcc8490a7438c | /src/java/servicio/CursoService.java | cac2b1cdeb8edb350a03e1162908b395475764f8 | [] | no_license | seminarioumg20188102/WServiceEscuela | 29b7375c0c13608a0952bfbcb72d3e66167668d6 | 1d5025df4e10ddd1b790ac9c526fdf8fe1d5d711 | refs/heads/master | 2020-04-01T16:42:22.256575 | 2018-10-17T04:15:27 | 2018-10-17T04:15:27 | 153,394,100 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,713 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package servicio;
import entities.Curso;
import java.util.List;
import javax.ejb.EJB;
import javax.jws.WebService;
import javax.ejb.Stateless;
import javax.jws.Oneway;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import sessionbeans.CursoFacadeLocal;
/**
*
* @author EstelaChayoMonse
*/
@WebService(serviceName = "CursoService")
@Stateless()
public class CursoService {
@EJB
private CursoFacadeLocal ejbRef;// Add business logic below. (Right-click in editor and choose
// "Insert Code > Add Web Service Operation")
@WebMethod(operationName = "create")
@Oneway
public void create(@WebParam(name = "curso") Curso curso) {
ejbRef.create(curso);
}
@WebMethod(operationName = "edit")
@Oneway
public void edit(@WebParam(name = "curso") Curso curso) {
ejbRef.edit(curso);
}
@WebMethod(operationName = "remove")
@Oneway
public void remove(@WebParam(name = "curso") Curso curso) {
ejbRef.remove(curso);
}
@WebMethod(operationName = "find")
public Curso find(@WebParam(name = "id") Object id) {
return ejbRef.find(id);
}
@WebMethod(operationName = "findAll")
public List<Curso> findAll() {
return ejbRef.findAll();
}
@WebMethod(operationName = "findRange")
public List<Curso> findRange(@WebParam(name = "range") int[] range) {
return ejbRef.findRange(range);
}
@WebMethod(operationName = "count")
public int count() {
return ejbRef.count();
}
}
| [
"josfischmann@gmail.com"
] | josfischmann@gmail.com |
db1538393c5672f09d20b7d188bf9b48e13249e0 | b1c8154e536146c85100d8f1366d9a7371254d41 | /src/main/java/com/util/PageDataGrid.java | ecdd5090e926e874a5437739b5e5775d6d40e018 | [] | no_license | wangzai9999/hrms | 1e73451702c4c7f03e31501015ee016d2faeb917 | 23878ae44c28de32016a7bbdaa6a24173a8ac0e2 | refs/heads/master | 2020-07-10T10:29:19.950353 | 2019-08-25T02:39:58 | 2019-08-25T02:39:58 | 204,240,743 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 379 | java | package com.util;
import java.util.List;
public class PageDataGrid {
private long total;
private List rows;
public long getTotal() {
return total;
}
public void setTotal(long total) {
this.total = total;
}
public List getRows() {
return rows;
}
public void setRows(List rows) {
this.rows = rows;
}
}
| [
"chuan@qq.com"
] | chuan@qq.com |
f94a4f38dd5c384c1a2c7b1009b78b4c50e225d9 | f09e549c92dfebe1fb467575916ed56e6a6e327e | /snap/src/main/java/org/snapscript/tree/define/EnumConstantGenerator.java | b928a66177920e4621c9be3b69ef88ab9099466b | [] | no_license | karino2/FileScripting | 10e2ff7f5d688a7a107d01f1b36936c00bc4d6ad | 4790830a22c2effacaaff6b109ced57cb6a5a230 | refs/heads/master | 2021-04-27T19:28:23.138720 | 2018-05-04T11:09:18 | 2018-05-04T11:09:18 | 122,357,523 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 892 | java | package org.snapscript.tree.define;
import static org.snapscript.core.Reserved.ENUM_NAME;
import static org.snapscript.core.Reserved.ENUM_ORDINAL;
import org.snapscript.core.scope.State;
import org.snapscript.core.scope.instance.Instance;
import org.snapscript.core.type.TypeState;
import org.snapscript.core.type.Type;
import org.snapscript.core.variable.Value;
public class EnumConstantGenerator extends TypeState {
private final String name;
private final int index;
public EnumConstantGenerator(String name, int index) {
this.index = index;
this.name = name;
}
public void generate(Instance instance, Type type) throws Exception {
State state = instance.getState();
Value key = Value.getConstant(name);
Value ordinal = Value.getConstant(index);
state.add(ENUM_NAME, key);
state.add(ENUM_ORDINAL, ordinal);
}
} | [
"hogeika2@gmailcom"
] | hogeika2@gmailcom |
ec6df42ac1eee41246b91ee33bdcf0d79c0b0ef3 | 4dd2889eb5fe1bdb026d5b30403b0bd8a13de980 | /src/entity/MyButton.java | 20b13851205f131a7388bc01c3603a5fa96ceb99 | [] | no_license | sfzhou5678/Project2Tetris | ad739e4e45f4f6fd84dc913d66308a8aa84d2ba5 | b4b91dfcbde6d09133275d216ef64f103f2afa2d | refs/heads/master | 2021-06-04T13:37:13.220424 | 2016-08-28T05:43:14 | 2016-08-28T05:43:14 | null | 0 | 0 | null | null | null | null | GB18030 | Java | false | false | 1,227 | java | package entity;
import java.awt.Image;
import java.awt.Insets;
import javax.swing.ImageIcon;
import javax.swing.JButton;
public class MyButton extends JButton{
int width,height;
private static final long serialVersionUID = 1218571878182523580L;
public MyButton(String url,String text,int width,int height){
this.width=width;
this.height=height;
// 设置按钮背景图
ImageIcon icon1=new ImageIcon(url);
icon1.setImage(icon1.getImage().getScaledInstance((int)(width*0.9),(int)(height*0.9),Image.SCALE_DEFAULT));
setIcon(icon1);
// 不绘制焦点
setFocusPainted(false);
// 不绘制内容区
setContentAreaFilled(false);
setText(text);
setHorizontalTextPosition(CENTER);
setVerticalTextPosition(CENTER);
// 设置焦点控制
setFocusable(true);
// 设置按钮边框与边框内容之间的像素数
setMargin(new Insets(0, 0, 0, 0));
}
public void setNewImage(String url){
ImageIcon icon1=new ImageIcon(url);
icon1.setImage(icon1.getImage().
getScaledInstance((int)(width*0.9),(int)(height*0.9),Image.SCALE_DEFAULT));
setIcon(icon1);
}
}
| [
"260174969@qq.com"
] | 260174969@qq.com |
9b7a59efad3e29539a5df8188ff1a1d3bebdfae9 | a5606ada7786b0eee5d56ebf6d92256eae0c06ec | /src/main/java/PositionalKeys/FastCoordLocal.java | 38ab70c6f52704e832cc09c8647039456bc69071 | [] | no_license | CircuitCM/StickyBlockTest | 3b27f427e95102d4335faf4e2f3b0a4c424e8887 | b2cb0abefedbfcafb2666e4e843a7a15d049266b | refs/heads/master | 2022-04-06T15:03:27.246418 | 2019-11-22T20:58:00 | 2019-11-22T20:58:00 | 195,263,672 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 402 | java | package PositionalKeys;
public final class FastCoordLocal extends ChunkLocalCoord{
private final byte y;
FastCoordLocal(byte xl, byte yl, byte zl) {
super(xl, zl);
y=yl;
}
public byte getY(){
return y;
}
@Override
public int hashCode() {
return 0;
}
@Override
public boolean equals(Object o) {
return false;
}
}
| [
"Mycatisnice1.charlesmarksco@gmail.com"
] | Mycatisnice1.charlesmarksco@gmail.com |
5d21d31b21dee50e60893ed901e3d7ffae619fde | 6ffe8c280007a70dd91a0e2d7144c863c06c1bd7 | /pos-v2-framework/src/main/java/com/cykj/framework/config/SecurityConfig.java | d9281fb782c15e57e73c74b67b4d8350fe9e9751 | [
"MIT"
] | permissive | syswjb8888/-cykj-bobo-java | ffc42910022818f4eb693cc9844671b88338381f | 9fad4635212515166ae07678babedea4353cc8e2 | refs/heads/master | 2023-03-09T06:34:14.458085 | 2021-03-02T03:19:17 | 2021-03-02T03:19:17 | 341,116,100 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,937 | java | package com.cykj.framework.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.http.HttpMethod;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
import org.springframework.security.web.authentication.logout.LogoutFilter;
import org.springframework.web.filter.CorsFilter;
import com.cykj.framework.security.filter.JwtAuthenticationTokenFilter;
import com.cykj.framework.security.handle.AuthenticationEntryPointImpl;
import com.cykj.framework.security.handle.LogoutSuccessHandlerImpl;
/**
* spring security配置
*
* @author cykj
*/
@EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true)
public class SecurityConfig extends WebSecurityConfigurerAdapter
{
/**
* 自定义用户认证逻辑
*/
@Autowired
private UserDetailsService userDetailsService;
/**
* 认证失败处理类
*/
@Autowired
private AuthenticationEntryPointImpl unauthorizedHandler;
/**
* 退出处理类
*/
@Autowired
private LogoutSuccessHandlerImpl logoutSuccessHandler;
/**
* token认证过滤器
*/
@Autowired
private JwtAuthenticationTokenFilter authenticationTokenFilter;
/**
* 跨域过滤器
*/
@Autowired
private CorsFilter corsFilter;
/**
* 解决 无法直接注入 AuthenticationManager
*
* @return
* @throws Exception
*/
@Bean
@Override
public AuthenticationManager authenticationManagerBean() throws Exception
{
return super.authenticationManagerBean();
}
/**
* anyRequest | 匹配所有请求路径
* access | SpringEl表达式结果为true时可以访问
* anonymous | 匿名可以访问
* denyAll | 用户不能访问
* fullyAuthenticated | 用户完全认证可以访问(非remember-me下自动登录)
* hasAnyAuthority | 如果有参数,参数表示权限,则其中任何一个权限可以访问
* hasAnyRole | 如果有参数,参数表示角色,则其中任何一个角色可以访问
* hasAuthority | 如果有参数,参数表示权限,则其权限可以访问
* hasIpAddress | 如果有参数,参数表示IP地址,如果用户IP和参数匹配,则可以访问
* hasRole | 如果有参数,参数表示角色,则其角色可以访问
* permitAll | 用户可以任意访问
* rememberMe | 允许通过remember-me登录的用户访问
* authenticated | 用户登录后可访问
*/
@Override
protected void configure(HttpSecurity httpSecurity) throws Exception
{
httpSecurity
// CSRF禁用,因为不使用session
.csrf().disable()
// 认证失败处理类
.exceptionHandling().authenticationEntryPoint(unauthorizedHandler).and()
// 基于token,所以不需要session
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()
// 过滤请求
.authorizeRequests()
// 对于登录login 验证码captchaImage 允许匿名访问
.antMatchers("/login", "/captchaImage","/noauth/**","/websocket/**","/socket/**").anonymous()
.antMatchers(
HttpMethod.GET,
"/*.html",
"/**/*.html",
"/**/*.css",
"/**/*.js"
).permitAll()
.antMatchers("/profile/**").anonymous()
.antMatchers("/common/download**").anonymous()
.antMatchers("/common/download/resource**").anonymous()
.antMatchers("/swagger-ui.html").anonymous()
.antMatchers("/swagger-resources/**").anonymous()
.antMatchers("/webjars/**").anonymous()
.antMatchers("/*/api-docs").anonymous()
.antMatchers("/druid/**").anonymous()
// 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated()
.and()
.headers().frameOptions().disable();
httpSecurity.logout().logoutUrl("/logout").logoutSuccessHandler(logoutSuccessHandler);
// 添加JWT filter
httpSecurity.addFilterBefore(authenticationTokenFilter, UsernamePasswordAuthenticationFilter.class);
// 添加CORS filter
httpSecurity.addFilterBefore(corsFilter, JwtAuthenticationTokenFilter.class);
httpSecurity.addFilterBefore(corsFilter, LogoutFilter.class);
}
/**
* 强散列哈希加密实现
*/
@Bean
public BCryptPasswordEncoder bCryptPasswordEncoder()
{
return new BCryptPasswordEncoder();
}
/**
* 身份认证接口
*/
@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception
{
auth.userDetailsService(userDetailsService).passwordEncoder(bCryptPasswordEncoder());
}
}
| [
"syswjb@126.com"
] | syswjb@126.com |
750dce2c320bac29dd26802e9041451782fb58d8 | 9282591635f3cf5a640800f2b643cd57048ed29f | /app/src/main/java/com/android/p2pflowernet/project/view/fragments/mine/orderflow/refund/ApplyforRefundActivity.java | fd13248f0fe5a3e1c849dedaa9b97ae2b15d3ced | [] | no_license | AHGZ/B2CFlowerNetProject | de5dcbf2cbb67809b00f86639d592309d84b3283 | b1556c4b633fa7c0c1463af94db9f91285070714 | refs/heads/master | 2020-03-09T17:27:14.889919 | 2018-04-10T09:36:33 | 2018-04-10T09:36:33 | 128,908,791 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,362 | java | package com.android.p2pflowernet.project.view.fragments.mine.orderflow.refund;
import android.text.TextUtils;
import android.view.KeyEvent;
import com.android.p2pflowernet.project.entity.OrderDetailItemBean;
import com.android.p2pflowernet.project.entity.OrderListBean;
import com.android.p2pflowernet.project.mvp.KActivity;
import com.android.p2pflowernet.project.mvp.KFragment;
/**
* Created by caishen on 2017/11/17.
* by--申请退款
*/
public class ApplyforRefundActivity extends KActivity {
@Override
protected KFragment getFirstFragment() {
OrderDetailItemBean orderDetailItemBean = (OrderDetailItemBean) getIntent().getSerializableExtra("ordergooddetail");
OrderListBean.ListsBean orderlists = (OrderListBean.ListsBean) getIntent().getSerializableExtra("orderlists");
String ogid = getIntent().getStringExtra("ogid");
String ordernum = getIntent().getStringExtra("ordernum");
return ApplyforRefundFragment.newIntence(TextUtils.isEmpty(ogid) ? "" : ogid, TextUtils.isEmpty(ordernum) ? "" : ordernum,
orderlists,orderDetailItemBean);
}
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {
removeFragment();
return true;
}
return super.onKeyDown(keyCode, event);
}
}
| [
"18911005030@163.com"
] | 18911005030@163.com |
1dc60e592b4a44a53e51fea050aa50f86e418cf8 | 74f1bca93f8019e5b9db4e98793a0b8ff0fc309f | /AdvancedTraining/src/com/training/advanced/java/JavaMain.java | 8c9681dbcb7c560063f9797ca8681cc60eafd027 | [] | no_license | osmanyoy/beyaz | cf64952baae3588e2b4a3bf03abec59cc3eb5ac1 | baaf10922163df01eacd7dd9d4051f6df8aa508d | refs/heads/master | 2021-05-06T06:24:08.447465 | 2018-05-30T13:14:05 | 2018-05-30T13:14:05 | 113,846,413 | 1 | 0 | null | null | null | null | ISO-8859-9 | Java | false | false | 1,629 | java | package com.training.advanced.java;
public class JavaMain {
public static void main(final String[] args) {
IIslem<Double, Double, String> myIslem = (a, b) -> "" + (a + b);
IOperation<Double> toplama2 = (d, f) -> d + f;
Double dResult = toplama2.execute(100D,
50D);
IOperation<Double> cikarma = (d, f) -> {
double sonuc = (d * 2) - (f / 3);
return sonuc;
};
Double dResult2 = toplama2.execute(100D,
50D);
IToplama toplama = (i1, i2) -> i1 + i2;
System.out.println("Toplama sonucu : " + (toplama.topla(30,
20)));
System.out.println("Toplama sonucu : " + ((IToplama) (i1, i2) -> i1 + i2).topla(30,
20));
System.out.println("Çıkarma sonucu : " + (JavaMain.toplamaSonucu((l1, l2) -> l1 - l2,
30,
20)));
System.out.println("Çarpma sonucu : " + (JavaMain.toplamaSonucu((l1, l2) -> l1 * l2,
30,
20)));
IToplama toplama3 = new ToplaImpl();
System.out.println("Toplama sonucu : " + (toplama3.topla(10,
20)));
}
public static int toplamaSonucu(final IToplama toplama, final int x, final int y) {
return toplama.topla(x,
y);
}
}
| [
"osman.yaycioglu@gmail.com"
] | osman.yaycioglu@gmail.com |
e728ca7c4952385b19e94fe4ebd7bd53c641b154 | 95bca8b42b506860014f5e7f631490f321f51a63 | /dhis-2/dhis-support/dhis-support-xml/src/main/java/org/amplecode/staxwax/framework/OutputPort.java | 3163f83a67675c14c47f42ba355755d98030a9e4 | [
"BSD-3-Clause"
] | permissive | hispindia/HP-2.7 | d5174d2c58423952f8f67d9846bec84c60dfab28 | bc101117e8e30c132ce4992a1939443bf7a44b61 | refs/heads/master | 2022-12-25T04:13:06.635159 | 2020-09-29T06:32:53 | 2020-09-29T06:32:53 | 84,940,096 | 0 | 0 | BSD-3-Clause | 2022-12-15T23:53:32 | 2017-03-14T11:13:27 | Java | UTF-8 | Java | false | false | 2,254 | java | package org.amplecode.staxwax.framework;
/*
* Copyright (c) 2004-2005, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* * Neither the name of the <ORGANIZATION> nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
import javax.xml.transform.Result;
/**
* Simple tuple providing named xml results.
*
* @author bobj
* @version created 14-Dec-2009
*/
public class OutputPort
{
public OutputPort( String name, Result result )
{
this.name = name;
this.result = result;
}
protected String name;
protected Result result;
public String getName()
{
return name;
}
public void setName( String name )
{
this.name = name;
}
public Result getResult()
{
return result;
}
public void setResult( Result result )
{
this.result = result;
}
}
| [
"mithilesh.hisp@gmail.com"
] | mithilesh.hisp@gmail.com |
350e680fe8f815cfc1e19ac158cd7edfde79b1dd | 341163baa793788b854dc195d1788b40355a1829 | /club/src/main/java/com/iamycx/club/dao/FeedDao.java | c68ae63b90b15b56fc64fe3811064f8edaa6afa5 | [
"Apache-2.0"
] | permissive | xiong1991min/Spring-learning | 0245e04fb6e843396c2b8f610fbd9b3c873bacda | 8731522bc017f28c8b050353da070dc958154312 | refs/heads/master | 2021-05-05T13:17:03.457524 | 2018-01-10T09:50:16 | 2018-01-10T09:50:16 | 118,337,362 | 1 | 0 | null | 2018-01-21T13:30:13 | 2018-01-21T13:30:13 | null | UTF-8 | Java | false | false | 891 | java | package com.iamycx.club.dao;
import com.iamycx.club.model.Feed;
import org.apache.ibatis.annotations.*;
import java.util.List;
@Mapper
public interface FeedDao {
String TABLE_NAME = " feed ";
String INSERT_FIELDS = " user_id, data, created_date, type ";
String SELECT_FIELDS = " id, " + INSERT_FIELDS;
@Insert({"insert into ", TABLE_NAME, "(", INSERT_FIELDS,
") values (#{userId},#{data},#{createdDate},#{type})"})
int addFeed(Feed feed);
@Select({"select ", SELECT_FIELDS, " from ", TABLE_NAME, " where id=#{id}"})
Feed getFeedById(int id);
//不用注释,写在xml文件中,注意FeedDao.xml文件中的包要跟FeedDao所在的包名字相同
List<Feed> selectUserFeeds(@Param("maxId") int maxId,
@Param("userIds") List<Integer> userIds,
@Param("count") int count);
}
| [
"{956428086@qq.com}"
] | {956428086@qq.com} |
34d1e1476f472b7e2e8ed7e9de77323ff865c283 | ce8bde86f06eefd0135a9fb973a00ab253cf2df8 | /app/src/main/java/domain/IpAddress.java | 5b52d265d6008604478362e668cd1c423195ef19 | [] | no_license | Raphael95/GraduationProject | d6091cda27f7ec747612239b78c95ab42ab97549 | 3cfa81856fed2ea13ce7a2ecf33d20e50fc299e6 | refs/heads/master | 2021-01-20T09:36:50.247059 | 2018-10-26T10:49:58 | 2018-10-26T10:49:58 | 90,266,709 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 521 | java | package domain;
import org.litepal.crud.DataSupport;
/**
* Created by raphael on 2017/5/24.
*/
public class IpAddress extends DataSupport{
private String ip_address;
public String getIp_address() {
return ip_address;
}
public void setIp_address(String ip_address) {
this.ip_address = ip_address;
}
public String getIp_port() {
return ip_port;
}
public void setIp_port(String ip_port) {
this.ip_port = ip_port;
}
private String ip_port;
}
| [
"691225520@qq.com"
] | 691225520@qq.com |
2ffe8bdcffd8b57d33db94c881f2d92c5ad9228f | 8b41c1795c837792260f95fafa37667b0a9ab585 | /spring_step_1/src/main/java/com/example/spring_step_1/scope/JDBCConnection.java | 4d21f510b0a63c9672193bc43ed5a67d39745fad | [] | no_license | Shipra-Chauhan/Project | cfc8f190858e40f9073fe3244a2e8aebaf73c90f | 51427ed09375ce17593279e4e9a6ecb2de0fb3b6 | refs/heads/master | 2021-07-04T10:49:48.539849 | 2020-08-03T21:32:39 | 2020-08-03T21:32:39 | 136,805,721 | 0 | 0 | null | 2020-08-03T21:32:40 | 2018-06-10T12:10:30 | Java | UTF-8 | Java | false | false | 496 | java | package com.example.spring_step_1.scope;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;
@Component
@Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE, proxyMode = ScopedProxyMode.TARGET_CLASS)
public class JDBCConnection {
public JDBCConnection() {
System.out.println("JDBC Connection");
}
}
| [
"shipra.chauhan@soprastera.com"
] | shipra.chauhan@soprastera.com |
30ec9f5d20a638531c5c7a90cbdfd53b1b4fcecd | 65f1313dc5ee176307e2c4594f9600f08f445c9c | /presto-main/src/main/java/com/facebook/presto/sql/planner/RelationPlan.java | 70b7b227709f2bb949579a8d8dd038403c7c2188 | [
"Apache-2.0"
] | permissive | zhyzhyzhy/presto-0.187 | 5254fcd953526595de50b235fc2fd9d6343216f5 | 84ca7d57b1e9ca0a2e1ad72d1d2aaed669d9faf4 | refs/heads/master | 2022-09-18T09:32:43.863865 | 2020-01-30T06:55:28 | 2020-01-30T06:55:28 | 237,153,678 | 0 | 0 | Apache-2.0 | 2022-06-27T16:15:25 | 2020-01-30T06:33:10 | Java | UTF-8 | Java | false | false | 3,286 | java | /*
* 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 agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.facebook.presto.sql.planner;
import com.facebook.presto.sql.analyzer.RelationType;
import com.facebook.presto.sql.analyzer.Scope;
import com.facebook.presto.sql.planner.plan.PlanNode;
import com.google.common.collect.ImmutableList;
import java.util.List;
import java.util.Optional;
import static com.google.common.base.Preconditions.checkArgument;
import static java.util.Objects.requireNonNull;
/**
* The purpose of this class is to hold the current plan built so far
* for a relation (query, table, values, etc.), and the mapping to
* indicate how the fields (by position) in the relation map to
* the outputs of the plan.
* <p>
* Fields are resolved by {@link TranslationMap} within local scopes hierarchy.
* Indexes of resolved parent scope fields start from "total number of child scope fields".
* For instance if a child scope has n fields, then first parent scope field
* will have index n.
*/
class RelationPlan
{
private final PlanNode root;
private final List<Symbol> fieldMappings; // for each field in the relation, the corresponding symbol from "root"
private final Scope scope;
public RelationPlan(PlanNode root, Scope scope, List<Symbol> fieldMappings)
{
requireNonNull(root, "root is null");
requireNonNull(fieldMappings, "outputSymbols is null");
requireNonNull(scope, "scope is null");
int allFieldCount = getAllFieldCount(scope);
checkArgument(allFieldCount == fieldMappings.size(),
"Number of outputs (%s) doesn't match number of fields in scopes tree (%s)",
fieldMappings.size(),
allFieldCount);
this.root = root;
this.scope = scope;
this.fieldMappings = ImmutableList.copyOf(fieldMappings);
}
public Symbol getSymbol(int fieldIndex)
{
checkArgument(fieldIndex >= 0 && fieldIndex < fieldMappings.size() && fieldMappings.get(fieldIndex) != null, "No field->symbol mapping for field %s", fieldIndex);
return fieldMappings.get(fieldIndex);
}
public PlanNode getRoot()
{
return root;
}
public List<Symbol> getFieldMappings()
{
return fieldMappings;
}
public RelationType getDescriptor()
{
return scope.getRelationType();
}
public Scope getScope()
{
return scope;
}
private static int getAllFieldCount(Scope root)
{
int allFieldCount = 0;
Optional<Scope> current = Optional.of(root);
while (current.isPresent()) {
allFieldCount += current.get().getRelationType().getAllFieldCount();
current = current.get().getLocalParent();
}
return allFieldCount;
}
}
| [
"1012146386@qq.com"
] | 1012146386@qq.com |
a5f6cee6c4cbbe1e0d8eec8fcb211ebd8228c106 | 4b2635b9e2706463bef08098132e36807bbc3f7f | /PCL_Wrapper/wrapper/pcl/PointXYZRGB.java | 31b9a747d09932b5cfc3b68f7d4bf7825710f024 | [] | no_license | srubio131/UA__PCL-Wrapper | 6262a49771682c67a430d4005bfa204fbce778b7 | ebb7021acc857243865a0fd478e50d7f34a2de08 | refs/heads/master | 2021-05-28T17:21:45.990394 | 2015-03-06T16:30:53 | 2015-03-06T16:30:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,445 | java | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package wrapper.pcl;
public class PointXYZRGB {
private long swigCPtr;
protected boolean swigCMemOwn;
public PointXYZRGB(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
public static long getCPtr(PointXYZRGB obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
wrapper.pcl_moduleJNI.delete_pcl_PointXYZRGB(swigCPtr);
}
swigCPtr = 0;
}
}
public PointXYZRGB() {
this(wrapper.pcl_moduleJNI.new_pcl_PointXYZRGB__SWIG_0(), true);
}
public PointXYZRGB(float _x, float _y, float _z, float _rgb) {
this(wrapper.pcl_moduleJNI.new_pcl_PointXYZRGB__SWIG_1(_x, _y, _z, _rgb), true);
}
public void setX(float value) {
wrapper.pcl_moduleJNI.pcl_PointXYZRGB_x_set(swigCPtr, this, value);
}
public float getX() {
return wrapper.pcl_moduleJNI.pcl_PointXYZRGB_x_get(swigCPtr, this);
}
public void setY(float value) {
wrapper.pcl_moduleJNI.pcl_PointXYZRGB_y_set(swigCPtr, this, value);
}
public float getY() {
return wrapper.pcl_moduleJNI.pcl_PointXYZRGB_y_get(swigCPtr, this);
}
public void setZ(float value) {
wrapper.pcl_moduleJNI.pcl_PointXYZRGB_z_set(swigCPtr, this, value);
}
public float getZ() {
return wrapper.pcl_moduleJNI.pcl_PointXYZRGB_z_get(swigCPtr, this);
}
public void setRgb(float value) {
wrapper.pcl_moduleJNI.pcl_PointXYZRGB_rgb_set(swigCPtr, this, value);
}
public float getRgb() {
return wrapper.pcl_moduleJNI.pcl_PointXYZRGB_rgb_get(swigCPtr, this);
}
public void setData(wrapper.SWIGTYPE_p_float value) {
wrapper.pcl_moduleJNI.pcl_PointXYZRGB_data_set(swigCPtr, this, wrapper.SWIGTYPE_p_float.getCPtr(value));
}
public wrapper.SWIGTYPE_p_float getData() {
long cPtr = wrapper.pcl_moduleJNI.pcl_PointXYZRGB_data_get(swigCPtr, this);
return (cPtr == 0) ? null : new wrapper.SWIGTYPE_p_float(cPtr, false);
}
}
| [
"s.rubio131@gmail.com"
] | s.rubio131@gmail.com |
5cbb921aa51379293c7b043b216d914c5c02a467 | 4627d514d6664526f58fbe3cac830a54679749cd | /results/cling/time-org.joda.time.format.DateTimeFormatterBuilder$PaddedNumber-org.joda.time.format.DateTimeFormatterBuilder-8/org/joda/time/format/DateTimeFormatterBuilder$PaddedNumber_ESTest.java | 9319601312cefe6f4525c6abaeb096e695339124 | [] | no_license | STAMP-project/Cling-application | c624175a4aa24bb9b29b53f9b84c42a0f18631bd | 0ff4d7652b434cbfd9be8d8bb38cfc8d8eaa51b5 | refs/heads/master | 2022-07-27T09:30:16.423362 | 2022-07-19T12:01:46 | 2022-07-19T12:01:46 | 254,310,667 | 2 | 2 | null | 2021-07-12T12:29:50 | 2020-04-09T08:11:35 | null | UTF-8 | Java | false | false | 3,634 | java | /*
* Tue Mar 03 18:27:03 GMT 2020
*/
package org.joda.time.format;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.io.Writer;
import java.util.Locale;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.joda.time.DateTimeFieldType;
import org.joda.time.Partial;
import org.joda.time.ReadablePartial;
import org.joda.time.chrono.IslamicChronology;
import org.joda.time.format.DateTimeFormatterBuilder;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = false, useJEE = true)
public class DateTimeFormatterBuilder$PaddedNumber_ESTest extends DateTimeFormatterBuilder$PaddedNumber_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
IslamicChronology islamicChronology0 = IslamicChronology.getInstance();
DateTimeFieldType dateTimeFieldType0 = DateTimeFieldType.halfdayOfDay();
Partial partial0 = new Partial(dateTimeFieldType0, 1, islamicChronology0);
partial0.getFormatter();
DateTimeFormatterBuilder.FixedNumber dateTimeFormatterBuilder_FixedNumber0 = new DateTimeFormatterBuilder.FixedNumber(dateTimeFieldType0, 1, false);
Locale locale0 = Locale.US;
// Undeclared exception!
try {
dateTimeFormatterBuilder_FixedNumber0.printTo((StringBuffer) null, (ReadablePartial) partial0, locale0);
fail("Expecting exception: NullPointerException");
} catch(NullPointerException e) {
//
// no message in exception (getMessage() returned null)
//
verifyException("org.joda.time.format.DateTimeFormatterBuilder", e);
}
}
@Test(timeout = 4000)
public void test1() throws Throwable {
IslamicChronology islamicChronology0 = IslamicChronology.getInstance();
DateTimeFieldType dateTimeFieldType0 = DateTimeFieldType.hourOfDay();
Partial partial0 = new Partial(dateTimeFieldType0, 1, islamicChronology0);
partial0.getFormatter();
DateTimeFormatterBuilder.FixedNumber dateTimeFormatterBuilder_FixedNumber0 = new DateTimeFormatterBuilder.FixedNumber(dateTimeFieldType0, 1, false);
Locale locale0 = Locale.US;
// Undeclared exception!
try {
dateTimeFormatterBuilder_FixedNumber0.printTo((StringBuffer) null, (ReadablePartial) partial0, locale0);
fail("Expecting exception: NullPointerException");
} catch(NullPointerException e) {
//
// no message in exception (getMessage() returned null)
//
verifyException("org.joda.time.format.DateTimeFormatterBuilder", e);
}
}
@Test(timeout = 4000)
public void test2() throws Throwable {
DateTimeFieldType dateTimeFieldType0 = DateTimeFieldType.halfdayOfDay();
Partial partial0 = new Partial(dateTimeFieldType0, 1);
partial0.getFormatter();
DateTimeFormatterBuilder.FixedNumber dateTimeFormatterBuilder_FixedNumber0 = new DateTimeFormatterBuilder.FixedNumber(dateTimeFieldType0, 1, false);
// Undeclared exception!
try {
dateTimeFormatterBuilder_FixedNumber0.printTo((Writer) null, (ReadablePartial) partial0, (Locale) null);
fail("Expecting exception: NullPointerException");
} catch(NullPointerException e) {
//
// no message in exception (getMessage() returned null)
//
verifyException("org.joda.time.format.DateTimeFormatterBuilder", e);
}
}
}
| [
"pouria.derakhshanfar@gmail.com"
] | pouria.derakhshanfar@gmail.com |
f3a1a506bad03a1ed264e8711a813eed0135dcd3 | d72cdc4a0158ee3ecae5e1b2d9cdb9bb7e241763 | /tools/base/lint/libs/lint-api/src/main/java/com/android/tools/lint/detector/api/Category.java | a14baf8937577bec075b8e2d47ef1eaf176ebdf1 | [
"Apache-2.0"
] | permissive | yanex/uast-lint-common | 700fc4ca41a3ed7d76cb33cab280626a0c9d717b | 34f5953acd5e8c0104bcc2548b2f2e3f5ab8c675 | refs/heads/master | 2021-01-20T18:08:31.404596 | 2016-06-08T19:58:58 | 2016-06-08T19:58:58 | 60,629,527 | 3 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,761 | java | /*
* Copyright (C) 2011 The Android Open Source Project
*
* 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 agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.tools.lint.detector.api;
import com.android.annotations.NonNull;
import com.android.annotations.Nullable;
import com.google.common.annotations.Beta;
/**
* A category is a container for related issues.
* <p/>
* <b>NOTE: This is not a public or final API; if you rely on this be prepared
* to adjust your code for the next tools release.</b>
*/
@Beta
public final class Category implements Comparable<Category> {
private final String mName;
private final int mPriority;
private final Category mParent;
/**
* Creates a new {@link Category}.
*
* @param parent the name of a parent category, or null
* @param name the name of the category
* @param priority a sorting priority, with higher being more important
*/
private Category(
@Nullable Category parent,
@NonNull String name,
int priority) {
mParent = parent;
mName = name;
mPriority = priority;
}
/**
* Creates a new top level {@link Category} with the given sorting priority.
*
* @param name the name of the category
* @param priority a sorting priority, with higher being more important
* @return a new category
*/
@NonNull
public static Category create(@NonNull String name, int priority) {
return new Category(null, name, priority);
}
/**
* Creates a new top level {@link Category} with the given sorting priority.
*
* @param parent the name of a parent category, or null
* @param name the name of the category
* @param priority a sorting priority, with higher being more important
* @return a new category
*/
@NonNull
public static Category create(@Nullable Category parent, @NonNull String name, int priority) {
return new Category(parent, name, priority);
}
/**
* Returns the parent category, or null if this is a top level category
*
* @return the parent category, or null if this is a top level category
*/
public Category getParent() {
return mParent;
}
/**
* Returns the name of this category
*
* @return the name of this category
*/
public String getName() {
return mName;
}
/**
* Returns a full name for this category. For a top level category, this is just
* the {@link #getName()} value, but for nested categories it will include the parent
* names as well.
*
* @return a full name for this category
*/
public String getFullName() {
if (mParent != null) {
return mParent.getFullName() + ':' + mName;
} else {
return mName;
}
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Category category = (Category) o;
//noinspection SimplifiableIfStatement
if (!mName.equals(category.mName)) {
return false;
}
return mParent != null ? mParent.equals(category.mParent) : category.mParent == null;
}
@Override
public String toString() {
return getFullName();
}
@Override
public int hashCode() {
return mName.hashCode();
}
@Override
public int compareTo(@NonNull Category other) {
if (other.mPriority == mPriority) {
if (mParent == other) {
return 1;
} else if (other.mParent == this) {
return -1;
}
}
int delta = other.mPriority - mPriority;
if (delta != 0) {
return delta;
}
return mName.compareTo(other.mName);
}
/** Issues related to running lint itself */
public static final Category LINT = create("Lint", 110);
/** Issues related to correctness */
public static final Category CORRECTNESS = create("Correctness", 100);
/** Issues related to security */
public static final Category SECURITY = create("Security", 90);
/** Issues related to performance */
public static final Category PERFORMANCE = create("Performance", 80);
/** Issues related to usability */
public static final Category USABILITY = create("Usability", 70);
/** Issues related to accessibility */
public static final Category A11Y = create("Accessibility", 60);
/** Issues related to internationalization */
public static final Category I18N = create("Internationalization", 50);
// Sub categories
/** Issues related to icons */
public static final Category ICONS = create(USABILITY, "Icons", 73);
/** Issues related to typography */
public static final Category TYPOGRAPHY = create(USABILITY, "Typography", 76);
/** Issues related to messages/strings */
public static final Category MESSAGES = create(CORRECTNESS, "Messages", 95);
/** Issues related to right to left and bidirectional text support */
public static final Category RTL = create(I18N, "Bidirectional Text", 40);
}
| [
"yan.zhulanow@jetbrains.com"
] | yan.zhulanow@jetbrains.com |
2998ff262417206313a58fdbfe1a9680d1da2e82 | 4fa7a1c5c8e0c1e44ff64554e221dc61feb8ad57 | /uippush-client-api/src/main/java/com/sinoif/esb/query/model/dto/FirmwareDTO.java | 593594e0d9546c0634a07580213a8df284c67d73 | [] | no_license | yuanyixiong/esb | 66e7912ab844497cb9a8f23c8439320dae5699bf | 7dfafe71e530d3e704045303830b2403cfd39078 | refs/heads/master | 2022-12-25T00:47:29.128583 | 2020-01-17T08:32:40 | 2020-01-17T08:32:40 | 234,504,607 | 5 | 2 | null | 2022-12-16T04:49:31 | 2020-01-17T08:26:40 | Java | UTF-8 | Java | false | false | 1,378 | java | package com.sinoif.esb.query.model.dto;
import java.io.Serializable;
public class FirmwareDTO implements Serializable {
/**
* 制造商
*/
private String manufacturer;
/**
* 名称
*/
private String name;
/**
* 简介
*/
private String description;
/**
* 版本
*/
private String version;
/**
* 出厂日期
*/
private String releaseDate;
public String getManufacturer() {
return manufacturer;
}
public FirmwareDTO setManufacturer(String manufacturer) {
this.manufacturer = manufacturer;
return this;
}
public String getName() {
return name;
}
public FirmwareDTO setName(String name) {
this.name = name;
return this;
}
public String getDescription() {
return description;
}
public FirmwareDTO setDescription(String description) {
this.description = description;
return this;
}
public String getVersion() {
return version;
}
public FirmwareDTO setVersion(String version) {
this.version = version;
return this;
}
public String getReleaseDate() {
return releaseDate;
}
public FirmwareDTO setReleaseDate(String releaseDate) {
this.releaseDate = releaseDate;
return this;
}
}
| [
"15926499574@163.com"
] | 15926499574@163.com |
9c2adc993d79ca93105469d2aab46215e267cd07 | 03f55fcf175589b85fa51bd6230118be28ab94b5 | /src/main/java/com/springframework/brewery/model/events/BeerEvent.java | d98ce32062466e57914476029ef8625886761756 | [] | no_license | ericlee83/mssc-beer-service | 0b1aba951449ccc22bb7cc9b07dcc00b49ed839a | 427491c63ccfc1daa6c5559d37263769939f0de9 | refs/heads/master | 2022-11-21T00:44:45.394965 | 2020-07-26T23:44:24 | 2020-07-26T23:44:24 | 275,076,149 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 349 | java | package com.springframework.brewery.model.events;
import com.springframework.brewery.model.BeerDto;
import lombok.*;
import java.io.Serializable;
@Data
@AllArgsConstructor
@Builder
@NoArgsConstructor
public class BeerEvent implements Serializable {
static final long serialVersionUID = -5173935999266003444L;
private BeerDto beerDto;
}
| [
"eric-lee-83@hotmail.com"
] | eric-lee-83@hotmail.com |
6ad8e257db70ba7a37983cc09393f744eecb963c | 6f4edc431304c13535410c9ced498b336a426ec7 | /jms-spring/src/main/java/com/easylab/jms/consumer/myListenner.java | 4be825d42df955ae6934f6df7c68879da209a6c2 | [] | no_license | MrLiu1227/ActiveMQ | fdb31302359c986dc733493364cbea8d97d7fe77 | 82c87e6b117b61f8a8f077c7ceeda05827387775 | refs/heads/master | 2020-05-17T12:51:13.123687 | 2019-04-27T04:30:57 | 2019-04-27T04:30:57 | 182,504,026 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,251 | java | package com.easylab.jms.consumer;
import com.easylab.jms.entity.Student;
public class myListenner {
//方法里面的参数可以是那五种消息类型,在接受的时候会自动通过反射转换,而不是想别的监听器需要在onmessage房中手动转换
public void handleMessage(Student message) {
System.out.println("ConsumerListener通过handleMessage接收到一个纯文本消息,消息内容是:" + message.toString());
}
public void receiveMessage(Student message) {
System.out.println("ConsumerListener通过receiveMessage接收到一个纯文本消息,消息内容是:" + message.toString());
}
public void handleMessage(String message) {
System.out.println("ConsumerListener通过handleMessage接收到一个纯文本消息,消息内容是:" + message.toString());
}
//一旦defaultListenerMethod设置的方法,返回值不是null,就说明要把返回值自动回复给发送者
public String receiveMessage(String message) {
System.out.println("ConsumerListener通过receiveMessage接收到一个纯文本消息,消息内容是:" + message.toString());
return"自动给你回复消息了哦,你接到了吗?";
}
}
| [
"you@example.com"
] | you@example.com |
6fddbb6f1cff099fd00cc4e2403a5a6e159d8bf1 | 3e64983624647aac113ccd96c7b29dc894a631ae | /src/main/java/com/es/phoneshop/model/exceptions/ProductNotFoundException.java | f93f14dca113b556bf0282f69aa8bd738f7eefd9 | [] | no_license | davill02/phoneshop-servlet-api | 897d0c16ae1835658e76ad5cc0bc77112e9790bb | ff114b3d35cc9ffa25d2daabb610d62dbd2bd0df | refs/heads/master | 2023-03-25T23:25:43.888758 | 2021-03-10T16:10:51 | 2021-03-10T16:10:51 | 332,718,821 | 1 | 0 | null | 2021-03-12T13:43:40 | 2021-01-25T11:04:52 | Java | UTF-8 | Java | false | false | 258 | java | package com.es.phoneshop.model.exceptions;
public class ProductNotFoundException extends RuntimeException{
public ProductNotFoundException() {
super();
}
public ProductNotFoundException(String message) {
super(message);
}
}
| [
"49804801+davill02@users.noreply.github.com"
] | 49804801+davill02@users.noreply.github.com |
23e72906192bf6f87e0313982545c7b3d7d72b17 | 7b5bcc8f46f3aa72e0d831a0aa315edc7e3d9a65 | /src/test/java/library/Singleton.java | b5d44435b2b455ff3169a01991ccee95455e1204 | [] | no_license | JayeshKumud/JavaBasics | 0c02e6b65e4f2797d0258e2f0f93582f4ca4e30e | 653374eba0c798316a9596d1929344a2c0c03edc | refs/heads/master | 2021-07-15T07:28:07.985536 | 2018-12-27T17:15:38 | 2018-12-27T17:15:38 | 146,283,919 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 685 | java | package library;
public class Singleton {
private String value;
private static Singleton singleton;
private Singleton() {
value = "Test Singleton Class Test";
}
public static Singleton getInstance() {
if (singleton == null)
singleton = new Singleton();
return singleton;
}
public static void main(String[] args){
Singleton x = Singleton.getInstance();
Singleton y = Singleton.getInstance();
Singleton z = Singleton.getInstance();
x.value = x.value.toUpperCase();
System.out.println(x.value);
System.out.println(y.value);
System.out.println(z.value);
}
}
| [
"jayesh.kumud@gmail.com"
] | jayesh.kumud@gmail.com |
ee280b95b35e19d13d2493184373d3605766d5d8 | bf10d89edb49045426aa8b35c65902ea7fc2d844 | /src/org/usfirst/frc/team319/paths/turning_calibration.java | 38666e87f1c2a01cba7b67a138b4778be4220149 | [] | no_license | TripleHelixProgramming/PowerUp | 0809a6454eac6b19df8eca0f15e069893135b9fa | 37f8fec52155127fead97b876b4bc6e53a3c205f | refs/heads/master | 2021-09-25T21:44:21.279618 | 2018-03-27T15:33:21 | 2018-03-27T15:33:21 | 113,512,851 | 3 | 2 | null | 2018-03-27T15:33:22 | 2017-12-08T00:33:49 | Java | UTF-8 | Java | false | false | 19,850 | java | package org.usfirst.frc.team319.paths;
import org.usfirst.frc.team319.models.SrxMotionProfile;
import org.usfirst.frc.team319.models.SrxTrajectory;
public class turning_calibration extends SrxTrajectory{
// WAYPOINTS:
// (X,Y,degrees)
// (0.00,0.00,0.00)
// (4.00,4.00,89.99)
public turning_calibration() {
this(false);
}
public turning_calibration(boolean flipped) {
super();
double[][] leftPoints = {
{0.015,0.305,10.000},
{0.076,0.610,10.000},
{0.213,1.372,10.000},
{0.457,2.439,10.000},
{0.839,3.811,10.000},
{1.372,5.335,10.000},
{2.058,6.859,10.000},
{2.896,8.381,10.000},
{3.886,9.903,10.000},
{5.029,11.423,10.000},
{6.323,12.943,10.000},
{7.769,14.461,10.000},
{9.367,15.977,10.000},
{11.116,17.491,10.000},
{13.016,19.004,10.000},
{15.068,20.515,10.000},
{17.270,22.023,10.000},
{19.623,23.529,10.000},
{22.126,25.032,10.000},
{24.779,26.533,10.000},
{27.582,28.030,10.000},
{30.535,29.525,10.000},
{33.637,31.016,10.000},
{36.887,32.504,10.000},
{40.286,33.989,10.000},
{43.833,35.470,10.000},
{47.527,36.946,10.000},
{51.369,38.419,10.000},
{55.358,39.888,10.000},
{59.493,41.353,10.000},
{63.775,42.812,10.000},
{68.201,44.268,10.000},
{72.773,45.718,10.000},
{77.490,47.164,10.000},
{82.350,48.604,10.000},
{87.354,50.040,10.000},
{92.501,51.469,10.000},
{97.790,52.894,10.000},
{103.222,54.312,10.000},
{108.794,55.725,10.000},
{114.507,57.131,10.000},
{120.360,58.532,10.000},
{126.353,59.926,10.000},
{132.484,61.313,10.000},
{138.754,62.694,10.000},
{145.160,64.068,10.000},
{151.704,65.434,10.000},
{158.383,66.794,10.000},
{165.198,68.146,10.000},
{172.147,69.491,10.000},
{179.230,70.828,10.000},
{186.445,72.156,10.000},
{193.793,73.477,10.000},
{201.272,74.789,10.000},
{208.881,76.093,10.000},
{216.620,77.388,10.000},
{224.487,78.674,10.000},
{232.483,79.950,10.000},
{240.604,81.218,10.000},
{248.852,82.475,10.000},
{257.224,83.723,10.000},
{265.720,84.960,10.000},
{274.339,86.187,10.000},
{283.079,87.403,10.000},
{291.940,88.607,10.000},
{300.920,89.801,10.000},
{310.018,90.983,10.000},
{319.233,92.153,10.000},
{328.564,93.310,10.000},
{338.010,94.455,10.000},
{347.568,95.586,10.000},
{357.239,96.704,10.000},
{367.020,97.808,10.000},
{376.910,98.898,10.000},
{386.907,99.973,10.000},
{397.010,101.033,10.000},
{407.218,102.077,10.000},
{417.528,103.105,10.000},
{427.940,104.115,10.000},
{438.451,105.109,10.000},
{449.059,106.084,10.000},
{459.763,107.041,10.000},
{470.561,107.979,10.000},
{481.451,108.896,10.000},
{492.430,109.793,10.000},
{503.497,110.669,10.000},
{514.649,111.522,10.000},
{525.885,112.352,10.000},
{537.200,113.158,10.000},
{548.594,113.940,10.000},
{560.064,114.695,10.000},
{571.606,115.424,10.000},
{583.219,116.124,10.000},
{594.898,116.796,10.000},
{606.642,117.437,10.000},
{618.447,118.047,10.000},
{630.309,118.624,10.000},
{642.226,119.168,10.000},
{654.193,119.675,10.000},
{666.208,120.146,10.000},
{678.266,120.578,10.000},
{690.363,120.969,10.000},
{702.495,121.319,10.000},
{714.657,121.626,10.000},
{726.846,121.886,10.000},
{739.056,122.100,10.000},
{751.282,122.264,10.000},
{763.520,122.376,10.000},
{775.763,122.435,10.000},
{788.007,122.438,10.000},
{800.246,122.383,10.000},
{812.472,122.268,10.000},
{824.681,122.089,10.000},
{836.866,121.845,10.000},
{849.019,121.534,10.000},
{861.134,121.152,10.000},
{873.204,120.697,10.000},
{885.221,120.166,10.000},
{897.176,119.558,10.000},
{909.063,118.869,10.000},
{920.873,118.098,10.000},
{932.597,117.242,10.000},
{944.227,116.298,10.000},
{955.754,115.267,10.000},
{967.168,114.145,10.000},
{978.461,112.931,10.000},
{989.624,111.626,10.000},
{1000.647,110.229,10.000},
{1011.521,108.741,10.000},
{1022.237,107.162,10.000},
{1032.787,105.495,10.000},
{1043.161,103.744,10.000},
{1053.352,101.912,10.000},
{1063.353,100.005,10.000},
{1073.156,98.031,10.000},
{1082.756,95.997,10.000},
{1092.147,93.915,10.000},
{1101.327,91.797,10.000},
{1110.293,89.657,10.000},
{1119.044,87.511,10.000},
{1127.582,85.379,10.000},
{1135.910,83.280,10.000},
{1144.033,81.237,10.000},
{1151.961,79.276,10.000},
{1159.703,77.423,10.000},
{1167.274,75.704,10.000},
{1174.689,74.151,10.000},
{1181.968,72.791,10.000},
{1189.133,71.654,10.000},
{1196.205,70.721,10.000},
{1203.203,69.976,10.000},
{1210.148,69.446,10.000},
{1217.063,69.150,10.000},
{1223.971,69.082,10.000},
{1230.895,69.243,10.000},
{1237.860,69.646,10.000},
{1244.887,70.276,10.000},
{1251.998,71.109,10.000},
{1259.212,72.137,10.000},
{1266.549,73.377,10.000},
{1274.032,74.827,10.000},
{1281.678,76.458,10.000},
{1289.502,78.240,10.000},
{1297.516,80.145,10.000},
{1305.731,82.146,10.000},
{1314.153,84.217,10.000},
{1322.786,86.335,10.000},
{1331.634,88.476,10.000},
{1340.696,90.623,10.000},
{1349.972,92.756,10.000},
{1359.458,94.860,10.000},
{1369.150,96.923,10.000},
{1379.043,98.932,10.000},
{1389.131,100.879,10.000},
{1399.406,102.754,10.000},
{1409.862,104.551,10.000},
{1420.488,106.266,10.000},
{1431.278,107.895,10.000},
{1442.221,109.435,10.000},
{1453.309,110.883,10.000},
{1464.533,112.240,10.000},
{1475.884,113.505,10.000},
{1487.352,114.678,10.000},
{1498.928,115.760,10.000},
{1510.603,116.753,10.000},
{1522.369,117.658,10.000},
{1534.216,118.477,10.000},
{1546.138,119.211,10.000},
{1558.124,119.864,10.000},
{1570.168,120.438,10.000},
{1582.261,120.935,10.000},
{1594.397,121.358,10.000},
{1606.568,121.709,10.000},
{1618.767,121.990,10.000},
{1630.988,122.205,10.000},
{1643.223,122.355,10.000},
{1655.467,122.444,10.000},
{1667.715,122.473,10.000},
{1679.959,122.445,10.000},
{1692.195,122.362,10.000},
{1704.418,122.227,10.000},
{1716.622,122.041,10.000},
{1728.803,121.806,10.000},
{1740.955,121.525,10.000},
{1753.075,121.199,10.000},
{1765.158,120.831,10.000},
{1777.200,120.421,10.000},
{1789.198,119.972,10.000},
{1801.146,119.484,10.000},
{1813.042,118.961,10.000},
{1824.882,118.403,10.000},
{1836.663,117.811,10.000},
{1848.382,117.187,10.000},
{1860.035,116.532,10.000},
{1871.620,115.847,10.000},
{1883.134,115.134,10.000},
{1894.573,114.394,10.000},
{1905.936,113.627,10.000},
{1917.219,112.834,10.000},
{1928.421,112.017,10.000},
{1939.538,111.177,10.000},
{1950.570,110.313,10.000},
{1961.513,109.428,10.000},
{1972.365,108.522,10.000},
{1983.124,107.596,10.000},
{1993.789,106.649,10.000},
{2004.358,105.684,10.000},
{2014.828,104.701,10.000},
{2025.198,103.699,10.000},
{2035.466,102.681,10.000},
{2045.630,101.646,10.000},
{2055.690,100.595,10.000},
{2065.643,99.528,10.000},
{2075.487,98.447,10.000},
{2085.222,97.351,10.000},
{2094.846,96.240,10.000},
{2104.358,95.116,10.000},
{2113.756,93.979,10.000},
{2123.039,92.828,10.000},
{2132.205,91.665,10.000},
{2141.254,90.490,10.000},
{2150.185,89.303,10.000},
{2158.995,88.104,10.000},
{2167.684,86.894,10.000},
{2176.252,85.674,10.000},
{2184.696,84.442,10.000},
{2193.016,83.200,10.000},
{2201.211,81.948,10.000},
{2209.280,80.687,10.000},
{2217.221,79.415,10.000},
{2225.034,78.134,10.000},
{2232.719,76.844,10.000},
{2240.273,75.546,10.000},
{2247.697,74.238,10.000},
{2254.989,72.922,10.000},
{2262.149,71.598,10.000},
{2269.176,70.265,10.000},
{2276.068,68.925,10.000},
{2282.826,67.577,10.000},
{2289.448,66.222,10.000},
{2295.934,64.859,10.000},
{2302.283,63.489,10.000},
{2308.494,62.112,10.000},
{2314.567,60.728,10.000},
{2320.501,59.338,10.000},
{2326.295,57.941,10.000},
{2331.949,56.538,10.000},
{2337.462,55.129,10.000},
{2342.833,53.714,10.000},
{2348.062,52.293,10.000},
{2353.149,50.866,10.000},
{2358.092,49.434,10.000},
{2362.892,47.996,10.000},
{2367.547,46.553,10.000},
{2372.058,45.106,10.000},
{2376.423,43.653,10.000},
{2380.643,42.196,10.000},
{2384.716,40.734,10.000},
{2388.643,39.267,10.000},
{2392.423,37.797,10.000},
{2396.055,36.322,10.000},
{2399.539,34.844,10.000},
{2402.875,33.361,10.000},
{2406.063,31.875,10.000},
{2409.101,30.386,10.000},
{2411.991,28.893,10.000},
{2414.730,27.397,10.000},
{2417.320,25.898,10.000},
{2419.760,24.396,10.000},
{2422.049,22.892,10.000},
{2424.188,21.385,10.000},
{2426.175,19.876,10.000},
{2428.012,18.364,10.000},
{2429.697,16.851,10.000},
{2431.230,15.336,10.000},
{2432.612,13.819,10.000},
{2433.842,12.300,10.000},
{2434.920,10.780,10.000},
{2435.846,9.259,10.000},
{2436.620,7.737,10.000},
{2437.241,6.214,10.000},
{2437.710,4.691,10.000},
{2438.033,3.231,10.000},
{2438.232,1.988,10.000},
{2438.337,1.050,10.000},
{2438.379,0.416,10.000},
{2438.387,0.088,10.000},
{2438.387,0.000,10.000}
};
double[][] rightPoints = {
{0.015,0.305,10.000},
{0.076,0.610,10.000},
{0.213,1.372,10.000},
{0.457,2.440,10.000},
{0.839,3.813,10.000},
{1.373,5.338,10.000},
{2.059,6.864,10.000},
{2.898,8.391,10.000},
{3.890,9.919,10.000},
{5.035,11.448,10.000},
{6.333,12.978,10.000},
{7.784,14.510,10.000},
{9.388,16.043,10.000},
{11.146,17.578,10.000},
{13.057,19.115,10.000},
{15.123,20.654,10.000},
{17.342,22.195,10.000},
{19.716,23.739,10.000},
{22.245,25.285,10.000},
{24.928,26.834,10.000},
{27.767,28.386,10.000},
{30.761,29.941,10.000},
{33.911,31.499,10.000},
{37.217,33.061,10.000},
{40.679,34.626,10.000},
{44.299,36.195,10.000},
{48.075,37.767,10.000},
{52.010,39.344,10.000},
{56.102,40.925,10.000},
{60.353,42.510,10.000},
{64.763,44.099,10.000},
{69.333,45.694,10.000},
{74.062,47.293,10.000},
{78.951,48.896,10.000},
{84.002,50.506,10.000},
{89.214,52.120,10.000},
{94.588,53.740,10.000},
{100.124,55.365,10.000},
{105.824,56.996,10.000},
{111.687,58.633,10.000},
{117.715,60.276,10.000},
{123.907,61.925,10.000},
{130.265,63.580,10.000},
{136.790,65.243,10.000},
{143.481,66.911,10.000},
{150.340,68.587,10.000},
{157.367,70.270,10.000},
{164.563,71.960,10.000},
{171.928,73.657,10.000},
{179.464,75.362,10.000},
{187.172,77.075,10.000},
{195.051,78.796,10.000},
{203.104,80.524,10.000},
{211.330,82.262,10.000},
{219.731,84.008,10.000},
{228.307,85.762,10.000},
{237.060,87.526,10.000},
{245.990,89.299,10.000},
{255.098,91.081,10.000},
{264.385,92.873,10.000},
{273.852,94.675,10.000},
{283.501,96.487,10.000},
{293.332,98.310,10.000},
{303.347,100.144,10.000},
{313.545,101.988,10.000},
{323.930,103.844,10.000},
{334.501,105.712,10.000},
{345.260,107.592,10.000},
{356.209,109.484,10.000},
{367.348,111.389,10.000},
{378.678,113.307,10.000},
{390.202,115.238,10.000},
{401.921,117.184,10.000},
{413.835,119.143,10.000},
{425.947,121.118,10.000},
{438.257,123.108,10.000},
{450.769,125.113,10.000},
{463.482,127.135,10.000},
{476.400,129.174,10.000},
{489.523,131.230,10.000},
{502.853,133.304,10.000},
{516.393,135.397,10.000},
{530.144,137.509,10.000},
{544.108,139.641,10.000},
{558.287,141.793,10.000},
{572.684,143.967,10.000},
{587.300,146.164,10.000},
{602.138,148.383,10.000},
{617.201,150.626,10.000},
{632.490,152.895,10.000},
{648.009,155.189,10.000},
{663.760,157.510,10.000},
{679.746,159.858,10.000},
{695.970,162.236,10.000},
{712.434,164.644,10.000},
{729.143,167.084,10.000},
{746.098,169.556,10.000},
{763.305,172.063,10.000},
{780.765,174.605,10.000},
{798.483,177.184,10.000},
{816.464,179.801,10.000},
{834.709,182.459,10.000},
{853.225,185.159,10.000},
{872.015,187.902,10.000},
{891.085,190.691,10.000},
{910.437,193.527,10.000},
{930.078,196.412,10.000},
{950.013,199.349,10.000},
{970.247,202.340,10.000},
{990.786,205.386,10.000},
{1011.635,208.491,10.000},
{1032.801,211.656,10.000},
{1054.289,214.884,10.000},
{1076.107,218.177,10.000},
{1098.260,221.538,10.000},
{1120.757,224.970,10.000},
{1143.605,228.474,10.000},
{1166.810,232.054,10.000},
{1190.381,235.712,10.000},
{1214.326,239.450,10.000},
{1238.653,243.271,10.000},
{1263.371,247.176,10.000},
{1288.488,251.169,10.000},
{1314.013,255.250,10.000},
{1339.955,259.422,10.000},
{1366.324,263.684,10.000},
{1393.128,268.039,10.000},
{1420.376,272.485,10.000},
{1448.078,277.023,10.000},
{1476.243,281.651,10.000},
{1504.880,286.367,10.000},
{1533.997,291.168,10.000},
{1563.602,296.049,10.000},
{1593.702,301.005,10.000},
{1624.305,306.029,10.000},
{1655.416,311.111,10.000},
{1687.040,316.242,10.000},
{1719.181,321.410,10.000},
{1751.841,326.599,10.000},
{1785.021,331.794,10.000},
{1818.718,336.976,10.000},
{1852.931,342.124,10.000},
{1887.652,347.215,10.000},
{1922.875,352.226,10.000},
{1958.588,357.128,10.000},
{1994.777,361.896,10.000},
{2031.427,366.498,10.000},
{2068.518,370.908,10.000},
{2106.027,375.094,10.000},
{2143.904,378.770,10.000},
{2182.069,381.650,10.000},
{2220.440,383.705,10.000},
{2258.931,384.915,10.000},
{2297.447,385.159,10.000},
{2335.891,384.436,10.000},
{2374.177,382.860,10.000},
{2412.221,380.447,10.000},
{2449.943,377.221,10.000},
{2487.275,373.320,10.000},
{2524.179,369.031,10.000},
{2560.632,364.532,10.000},
{2596.617,359.852,10.000},
{2632.119,355.021,10.000},
{2667.126,350.066,10.000},
{2701.627,345.016,10.000},
{2735.617,339.896,10.000},
{2769.090,334.730,10.000},
{2802.044,329.539,10.000},
{2834.478,324.343,10.000},
{2866.394,319.161,10.000},
{2897.795,314.007,10.000},
{2928.685,308.895,10.000},
{2959.068,303.837,10.000},
{2988.952,298.841,10.000},
{3018.344,293.917,10.000},
{3047.251,289.070,10.000},
{3075.682,284.306,10.000},
{3103.644,279.628,10.000},
{3131.148,275.039,10.000},
{3158.202,270.541,10.000},
{3184.816,266.135,10.000},
{3210.998,261.820,10.000},
{3236.758,257.598,10.000},
{3262.104,253.466,10.000},
{3287.047,249.424,10.000},
{3311.594,245.470,10.000},
{3335.754,241.602,10.000},
{3359.536,237.818,10.000},
{3382.947,234.115,10.000},
{3405.996,230.492,10.000},
{3428.691,226.945,10.000},
{3451.038,223.473,10.000},
{3473.045,220.073,10.000},
{3494.720,216.742,10.000},
{3516.067,213.478,10.000},
{3537.095,210.278,10.000},
{3557.809,207.140,10.000},
{3578.215,204.061,10.000},
{3598.319,201.040,10.000},
{3618.127,198.073,10.000},
{3637.643,195.159,10.000},
{3656.872,192.295,10.000},
{3675.820,189.481,10.000},
{3694.491,186.712,10.000},
{3712.890,183.988,10.000},
{3731.021,181.308,10.000},
{3748.888,178.668,10.000},
{3766.494,176.068,10.000},
{3783.845,173.505,10.000},
{3800.943,170.979,10.000},
{3817.792,168.488,10.000},
{3834.395,166.030,10.000},
{3850.755,163.605,10.000},
{3866.876,161.210,10.000},
{3882.761,158.845,10.000},
{3898.412,156.509,10.000},
{3913.832,154.200,10.000},
{3929.023,151.917,10.000},
{3943.989,149.660,10.000},
{3958.732,147.428,10.000},
{3973.254,145.219,10.000},
{3987.557,143.032,10.000},
{4001.644,140.868,10.000},
{4015.516,138.725,10.000},
{4029.177,136.602,10.000},
{4042.626,134.498,10.000},
{4055.868,132.414,10.000},
{4068.903,130.348,10.000},
{4081.733,128.300,10.000},
{4094.359,126.269,10.000},
{4106.785,124.254,10.000},
{4119.010,122.256,10.000},
{4131.038,120.273,10.000},
{4142.868,118.305,10.000},
{4154.503,116.351,10.000},
{4165.945,114.412,10.000},
{4177.193,112.487,10.000},
{4188.251,110.575,10.000},
{4199.118,108.676,10.000},
{4209.797,106.789,10.000},
{4220.289,104.915,10.000},
{4230.594,103.052,10.000},
{4240.714,101.201,10.000},
{4250.650,99.362,10.000},
{4260.403,97.533,10.000},
{4269.975,95.715,10.000},
{4279.366,93.907,10.000},
{4288.577,92.110,10.000},
{4297.609,90.322,10.000},
{4306.463,88.544,10.000},
{4315.141,86.775,10.000},
{4323.642,85.015,10.000},
{4331.969,83.265,10.000},
{4340.121,81.523,10.000},
{4348.100,79.789,10.000},
{4355.906,78.064,10.000},
{4363.541,76.347,10.000},
{4371.005,74.637,10.000},
{4378.298,72.936,10.000},
{4385.422,71.242,10.000},
{4392.378,69.555,10.000},
{4399.165,67.875,10.000},
{4405.786,66.203,10.000},
{4412.239,64.537,10.000},
{4418.527,62.878,10.000},
{4424.650,61.225,10.000},
{4430.608,59.579,10.000},
{4436.401,57.938,10.000},
{4442.032,56.304,10.000},
{4447.499,54.676,10.000},
{4452.805,53.053,10.000},
{4457.948,51.435,10.000},
{4462.930,49.823,10.000},
{4467.752,48.217,10.000},
{4472.414,46.615,10.000},
{4476.915,45.018,10.000},
{4481.258,43.426,10.000},
{4485.442,41.838,10.000},
{4489.467,40.255,10.000},
{4493.335,38.676,10.000},
{4497.045,37.101,10.000},
{4500.598,35.530,10.000},
{4503.994,33.963,10.000},
{4507.234,32.399,10.000},
{4510.318,30.839,10.000},
{4513.246,29.283,10.000},
{4516.019,27.729,10.000},
{4518.637,26.178,10.000},
{4521.100,24.631,10.000},
{4523.409,23.086,10.000},
{4525.563,21.543,10.000},
{4527.563,20.003,10.000},
{4529.410,18.465,10.000},
{4531.103,16.928,10.000},
{4532.642,15.394,10.000},
{4534.028,13.862,10.000},
{4535.261,12.331,10.000},
{4536.341,10.801,10.000},
{4537.269,9.273,10.000},
{4538.043,7.745,10.000},
{4538.665,6.218,10.000},
{4539.134,4.693,10.000},
{4539.458,3.232,10.000},
{4539.656,1.988,10.000},
{4539.761,1.050,10.000},
{4539.803,0.416,10.000},
{4539.812,0.088,10.000},
{4539.812,0.000,10.000}
};
if (flipped) {
rightProfile = new SrxMotionProfile(leftPoints.length, leftPoints);
leftProfile = new SrxMotionProfile(rightPoints.length, rightPoints);
} else {
leftProfile = new SrxMotionProfile(leftPoints.length, leftPoints);
rightProfile = new SrxMotionProfile(rightPoints.length, rightPoints);
}
}
} | [
"robotics@TH-2363-17-2"
] | robotics@TH-2363-17-2 |
9f5b0d6457f712ded63befcb5a94593f1105dd4c | 9837da64c6dcf654a1ba041f4616a20ffee4dcdd | /src/main/java/pl/cdv/ffr/utils/ftp/FTPProperties.java | 9e7b89ca75af59a8a1173c7b1ca0f5c266864499 | [] | no_license | wieczorekmarcin/ffr-api | 16c6ca32973b15a0da161002cee54e2b08047573 | 3a9af538c5d981e05ade6611de82617e9c909db5 | refs/heads/master | 2022-12-15T04:25:21.540041 | 2019-07-24T22:20:54 | 2019-07-24T22:20:54 | 157,200,181 | 0 | 0 | null | 2022-12-06T00:31:30 | 2018-11-12T11:01:45 | Java | UTF-8 | Java | false | false | 1,013 | java | package pl.cdv.ffr.utils.ftp;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Configuration
@ConfigurationProperties(
prefix = "ftp"
)
public class FTPProperties {
private String server;
private String username;
private String password;
private String baseURI;
public FTPProperties() {
}
public String getServer() {
return server;
}
public void setServer(String server) {
this.server = server;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getBaseURI() {
return baseURI;
}
public void setBaseURI(String baseURI) {
this.baseURI = baseURI;
}
}
| [
"marcin.wieczorek@best.net.pl"
] | marcin.wieczorek@best.net.pl |
9557c45fb35625a99fdbc073a8de66523abd4c0b | e1c39611c3e6744f518afea95ee66555c99ddeac | /src/main/java/com/zr/xuezhu/Live/controller/EducationController.java | eb6fd2c5dfbf392fac59a2caec8f5d00202b5084 | [] | no_license | harry2048/xuezhu | 88a6cea93ba7b3e05052531e5fe3cb189af866fc | 2c378b63ce63929f3bd6c9755c24171009ecfa09 | refs/heads/master | 2022-12-09T04:34:18.933836 | 2019-07-21T11:57:51 | 2019-07-21T11:57:51 | 198,050,749 | 0 | 0 | null | 2022-06-17T02:19:16 | 2019-07-21T11:57:44 | Java | UTF-8 | Java | false | false | 2,511 | java | package com.zr.xuezhu.Live.controller;
import com.zr.xuezhu.Live.bean.EducationAddVo;
import com.zr.xuezhu.Live.bean.JuZhuAddVo;
import com.zr.xuezhu.Live.bean.XiaLaVo;
import com.zr.xuezhu.Live.enumall.XueLiEnum;
import com.zr.xuezhu.Live.enumall.ZhiYeEnum;
import com.zr.xuezhu.Live.service.EducationService;
import com.zr.xuezhu.util.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;
/***
* 教育情况接口
*/
@RestController
@CrossOrigin
public class EducationController {
@Autowired
private EducationService educationService;
/**
* 教育情况接口
*/
@PostMapping("/education")
public ResultVo add(@RequestBody @Valid EducationAddVo educationAddVo, BindingResult bindingResult,HttpServletRequest request){
if (bindingResult.hasErrors()) {
return ResultVo.error(bindingResult.getFieldError().getDefaultMessage());
}
return educationService.add(educationAddVo,request);
}
/**
* 职业下拉框
*/
@GetMapping("/zhiyeDropdownBox")
public ResultVo<List<XiaLaVo>> queryZhiYe(){
List<XiaLaVo> xiaLaVoList = new ArrayList<>();
ZhiYeEnum[] arr = ZhiYeEnum.values();
for (int i = 0; i < arr.length; i++){
XiaLaVo xiaLaVo = new XiaLaVo();
xiaLaVo.setId(arr[i].getOccupationValue());
xiaLaVo.setName(arr[i].getOccupationName());
xiaLaVoList.add(xiaLaVo);
}
return ResultVo.success(xiaLaVoList);
}
/**
* 学历下拉框
*/
@GetMapping("/xueliDropdownBox")
public ResultVo<List<XiaLaVo>> queryXueLi(){
List<XiaLaVo> xiaLaVoList = new ArrayList<>();
XueLiEnum[] arr = XueLiEnum.values();
for (int i = 0; i < arr.length; i++){
XiaLaVo xiaLaVo = new XiaLaVo();
xiaLaVo.setId(arr[i].getEducationValue());
xiaLaVo.setName(arr[i].getEducationName());
xiaLaVoList.add(xiaLaVo);
}
return ResultVo.success(xiaLaVoList);
}
/**
* 获取数据缓冲中的上一页的数据
* @return
*/
@GetMapping("/getEducation")
public ResultVo getEducation(HttpServletRequest request){
return educationService.getEducation(request);
}
}
| [
"gengwei1024@163.com"
] | gengwei1024@163.com |
d72f4be3c55637eb804618774162b89d09ac9028 | 7ee164735cfd2c320048a4f2dfb26070ac39b64e | /app/src/main/java/com/example/seifmostafa/checktasty/Signup.java | 0d9642eb96adfa3c30cb9e15a01d5c165a1a300f | [] | no_license | SeifMostafa/SoftwareEngineeringProject | f7b4cdfb45bc2e0d2217043cd0233ecec71b2112 | 33460bf7fd9c9c39df32ab6391c93d64d9d0cedb | refs/heads/master | 2020-12-02T19:26:04.336540 | 2016-05-15T16:05:29 | 2016-05-15T16:05:29 | 46,576,301 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,622 | java | package com.example.seifmostafa.checktasty;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.google.android.gms.appindexing.Action;
import com.google.android.gms.appindexing.AppIndex;
import com.google.android.gms.common.api.GoogleApiClient;
import com.parse.Parse;
import com.parse.ParseException;
import com.parse.ParseObject;
import com.parse.ParseUser;
import com.parse.SignUpCallback;
import Users.NormalUser;
import Users.User;
public class Signup extends AppCompatActivity {
public EditText Username;
public EditText password;
public EditText email;
public EditText name;
public EditText creditnumber;
public EditText creditpassword;
public static final String APPLICATION_ID ="b3E7HZD4zv5YbWqAmJ0ZuPIZi4qzzDyUsX047J8f",CLIENT_KEY= "3MIfpxOvHfTiZZulSTIFXOes3gmaBkuUp2BhCaUT";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_signup);
Button sign = (Button)findViewById(R.id.Button_signup);
sign.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
signup();
}
});
}
public void signup() {
Username = (EditText) findViewById(R.id.editText_username);
password = (EditText) findViewById(R.id.editText_password);
email = (EditText) findViewById(R.id.editText_email);
name = (EditText) findViewById(R.id.editText_name);
creditnumber = (EditText) findViewById(R.id.editText_creditnumber);
creditpassword = (EditText) findViewById(R.id.editText_creditpassword);
try
{
// Log.e("USERNAME",Username.getText().toString());
if(Username.getText().toString().trim().equals("")||password.getText().toString().trim().equals("")||email.getText().toString().trim().equals("")||name.getText().toString().trim().equals(""))
{
Toast.makeText(Signup.this,"Username , password , email and name are REQUIRED.",Toast.LENGTH_LONG);
}
else
{
ParseUser user = new ParseUser();
user.setUsername(Username.getText().toString());
user.setPassword(password.getText().toString());
user.setEmail(email.getText().toString());
user.put("name",name.getText().toString());
user.put("CreditNumber", creditnumber.getText().toString());
user.put("CreditPassword", creditpassword.getText().toString());
user.signUpInBackground(new SignUpCallback() {
@Override
public void done(ParseException e) {
if (e != null) {
Toast.makeText(Signup.this,
"Saving user failed.", Toast.LENGTH_SHORT).show();
} else {
Toast.makeText(Signup.this, "Successful Operation",
Toast.LENGTH_SHORT).show();
startActivity(new Intent(Signup.this,LoginActivity.class));
}
}
});
}
}catch (Exception e){
Log.e("SIGNUP",e.toString());
}
}
}
| [
"seifmostafa235@gmail.com"
] | seifmostafa235@gmail.com |
372c025ec121a79074156be2813b5a114e49ad88 | 70103ef5ed97bad60ee86c566c0bdd14b0050778 | /src/main/java/com/credex/fs/digital/web/rest/errors/InvalidPasswordException.java | 58f8857cadd0a404f39790a5d9114cb0a58088bf | [] | no_license | alexjilavu/Smarthack-2021 | 7a127166cef52bfc9ee08ef1840c0fde2d2b79aa | 564abdc14df4981cdcad984a661f105327758559 | refs/heads/master | 2023-08-29T18:34:44.280519 | 2021-11-07T10:42:00 | 2021-11-07T10:42:00 | 423,957,218 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 408 | java | package com.credex.fs.digital.web.rest.errors;
import org.zalando.problem.AbstractThrowableProblem;
import org.zalando.problem.Status;
public class InvalidPasswordException extends AbstractThrowableProblem {
private static final long serialVersionUID = 1L;
public InvalidPasswordException() {
super(ErrorConstants.INVALID_PASSWORD_TYPE, "Incorrect password", Status.BAD_REQUEST);
}
}
| [
"alexjilavu17@gmail.com"
] | alexjilavu17@gmail.com |
e6fc220ebc32b78e72d786f2c526ea07c078ad5c | d749b137c90ea3dad00db1b56f90be1255e9fe76 | /dgarcia-commons/src/main/java/ar/com/dgarcia/coding/caching/SimpleCacheConcurrentMap.java | 45c71802759f88aebc15d6c2e2e7464718a8ec60 | [] | no_license | kfgodel/dgarcia_public | 3702a587947aeb1cf9148ddb368814b9c9ff4276 | 0287aeae8d418d4d54f09b39efcbce456ea6e4af | refs/heads/master | 2022-07-27T08:25:56.168201 | 2020-06-18T18:41:43 | 2020-06-18T18:41:43 | 12,097,765 | 0 | 0 | null | 2022-06-29T15:57:23 | 2013-08-14T02:10:11 | Java | UTF-8 | Java | false | false | 4,333 | java | /**
* Created on: 12/06/2010 15:23:22 by: Dario L. Garcia
*
* <a rel="license" href="http://creativecommons.org/licenses/by/3.0/"><img
* alt="Creative Commons License" style="border-width:0"
* src="http://i.creativecommons.org/l/by/3.0/88x31.png" /></a><br />
* <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text"
* property="dct:title" rel="dct:type">Agents</span> by <a xmlns:cc="http://creativecommons.org/ns#"
* href="http://sourceforge.net/projects/agents/" property="cc:attributionName"
* rel="cc:attributionURL">Dario Garcia</a> is licensed under a <a rel="license"
* href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported
* License</a>.<br />
* Based on a work at <a xmlns:dct="http://purl.org/dc/terms/"
* href="https://agents.svn.sourceforge.net/svnroot/agents"
* rel="dct:source">agents.svn.sourceforge.net</a>.
*
* Copyright (C) 2010 Dario L. Garcia
*/
package ar.com.dgarcia.coding.caching;
import java.util.concurrent.ConcurrentHashMap;
/**
* Esta clase implementa un caché muy simple, con un {@link Instantiator} para crear los valores
* cuando no existen para una key. Es posible que se cree una instancia de más si dos threads
* acceden por primera vez al mismo tiempo. La segunda instancia será descartada. Se asegura sin
* embargo que el {@link ValueInitializer} será llamado sólo una vez en la instancia almacenada en
* este mapa. Es posible que otro thread obtenga el valor sin inicializar, ya que la inicializacion
* se realiza después de insertar el valor en el mapa<br>
* <br>
* Si se almacena null como valor se creara una nueva instancia la proxima vez que es accedida la
* key.
*
* @param <K>
* Tipo de la key
* @param <V>
* Tipo del value asociado a la key
* @author D. Garcia
*/
public class SimpleCacheConcurrentMap<K, V> extends ConcurrentHashMap<K, V> {
private static final long serialVersionUID = 721175355263840754L;
private final Instantiator<? super K, ? extends V> valueCreator;
private final ValueInitializer<? super K, ? super V> valueInitializer;
/**
* Crea un nuevo mapa definiendo el objeto utilizado para generar las nuevas instancias para
* valores
*/
public SimpleCacheConcurrentMap(final Instantiator<? super K, ? extends V> valueCreator) {
this(valueCreator, null);
}
/**
* Crea un nuevo mapa definiendo el objeto utilizado para generar las nuevas instancias para
* valores. El initializer es opcional y permite realizar una inicializacion sobre las
* instancias creadas y registradas en este mapa
*/
public SimpleCacheConcurrentMap(final Instantiator<? super K, ? extends V> valueCreator,
final ValueInitializer<? super K, ? super V> initializer) {
this.valueCreator = valueCreator;
this.valueInitializer = initializer;
}
/**
* Devuelve el valor existente en el mapa para la key pasada o crea un nuevo valor utilizando el
* {@link Instantiator} definido en la creacion de este mapa.<br>
* Es posible que se cree una instancia de más si dos threads acceden al mismo tiempo por
* primera vez. La segunda instancia será descartada.<br>
* El initializer sólo será llamado en la primera instancia, que es la almacenada en este mapa.
* La inicialización se realiza después de que el valor es insertado en el mapa (otro thread
* podría obtener el valor sin inicializar)
*
* @param key
* Key utilizada para acceder al valor
* @return El valor almacenado en el mapa previamente o uno creado para esta key
*/
public V getOrCreateIfNullFor(final K key) {
V value = get(key);
if (value != null) {
return value;
}
value = getValueCreator().instantiate(key);
final V alreadyExistingValue = this.putIfAbsent(key, value);
if (alreadyExistingValue != null) {
// Se adelantó otro thread, y nos gano de mano
return alreadyExistingValue;
}
if (this.getValueInitializer() != null) {
this.getValueInitializer().initialize(value, key);
}
return value;
}
public Instantiator<? super K, ? extends V> getValueCreator() {
return valueCreator;
}
public ValueInitializer<? super K, ? super V> getValueInitializer() {
return valueInitializer;
}
}
| [
"dario.garcia@ikari01ubuntu"
] | dario.garcia@ikari01ubuntu |
e8ef1c9ef1626dc0ecff50adacbd76ea2f781d42 | 7560ca02c7cd77cc3be5cff0d884e0546cebec0a | /movieland-persistence-jdbc/src/test/java/com/stezhka/movieland/dao/jdbc/mapper/RandomMovieRowMapperTest.java | b263468c1c1a607dbf1139c648fd4c7c303f76ec | [] | no_license | mstezhka/movieland | a4bece0fadba423b162618196ba89de0c9bd9bea | 2bcaf4e6fbd7297bbe6d39770f294fde637537cc | refs/heads/master | 2021-09-14T01:11:47.410181 | 2018-05-07T00:53:52 | 2018-05-07T00:53:52 | 108,014,127 | 0 | 0 | null | 2018-05-07T00:42:48 | 2017-10-23T17:16:27 | Java | UTF-8 | Java | false | false | 2,048 | java | package com.stezhka.movieland.dao.jdbc.mapper;
import com.stezhka.movieland.entity.Movie;
import org.junit.Test;
import java.sql.ResultSet;
import java.sql.SQLException;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
public class RandomMovieRowMapperTest {
@Test
public void testRandomMovieRowMapper() throws SQLException {
ResultSet resultSet = mock(ResultSet.class);
when(resultSet.getInt("movie_id")).thenReturn(1);
when(resultSet.getInt("movie_year")).thenReturn(3000);
when(resultSet.getDouble("rating")).thenReturn(1.1);
when(resultSet.getDouble("price")).thenReturn(123.12);
when(resultSet.getString("movie_name_russian")).thenReturn("Test russian name");
when(resultSet.getString("movie_name_native")).thenReturn("Test native name");
when(resultSet.getString("link")).thenReturn("Test path");
when(resultSet.getString("description")).thenReturn("Test description");
when(resultSet.getString("genres_id")).thenReturn("1,2");
when(resultSet.getString("countries_id")).thenReturn("1,2");
RandomMovieRowMapper randomMovieRowMapper = new RandomMovieRowMapper();
Movie actualMovie = randomMovieRowMapper.mapRow(resultSet, 0);
assertEquals(actualMovie.getMovieId(), 1);
assertEquals(actualMovie.getNameRussian(), "Test russian name");
assertEquals(actualMovie.getNameNative(), "Test native name");
assertEquals(actualMovie.getPicturePath(), "Test path");
assertEquals(actualMovie.getPrice(), 123.12, 0);
assertEquals(actualMovie.getRating(), 1.1, 0);
assertEquals(actualMovie.getYearOfRelease(), new Integer(3000));
assertEquals(actualMovie.getDescription(), "Test description");
int countryId = actualMovie.getCountries().get(0).getId();
assertEquals(countryId, 1);
int genreId = actualMovie.getGenres().get(0).getId();
assertEquals(genreId, 1);
}
} | [
"mstezhka@gmail.com"
] | mstezhka@gmail.com |
63d708f0714aa1a41b6132d0ff62057168299323 | b101e5c236105caff0a824764a798ff1b554ebfa | /Exercicios/src/Exercs/Exerc2.java | e606d83ab5ab658098604627be4688a177595455 | [] | no_license | AntLucas/Interface-Grafica-JAVA | a2cd7b7f587ca9fa4abb20e734cdc9a6b63757ab | c852b4ab788dfd3fae7b8893c85364903ab85879 | refs/heads/master | 2020-05-03T11:36:40.286418 | 2019-03-30T20:06:02 | 2019-03-30T20:06:02 | 178,604,833 | 1 | 0 | null | null | null | null | ISO-8859-2 | Java | false | false | 1,629 | java | package Exercs;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Exerc2 extends JFrame{
JLabel hip,cat1,cat2,form,formula;
JTextField hipo,cate1,cate2;
JButton calc;
public Exerc2() {
setLayout(null);
Container tela = getContentPane();
hip = new JLabel("Hipotenusa: ");
cat1 = new JLabel("Cateto 1: ");
cat2 = new JLabel("Cateto 2: ");
form = new JLabel("Teorema de Pitágoras");
formula = new JLabel("H˛ = C˛ + C˛");
hipo = new JTextField();
cate1 = new JTextField();
cate2 = new JTextField();
calc = new JButton("Calcular");
form.setBounds(50,5,200,30);
formula.setBounds(75,20,100,30);
hip.setBounds(30,50,100,30);
cat1.setBounds(30,80,100,30);
cat2.setBounds(30,110,100,30);
hipo.setBounds(100,55,100,20);
cate1.setBounds(100,85,100,20);
cate2.setBounds(100,115,100,20);
calc.setBounds(30,145,170,20);
calc.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent e) {
double x1,x2,x3;
//x1 = Double.parseDouble(hipo.getText());
x2 = Double.parseDouble(cate1.getText());
x3 = Double.parseDouble(cate2.getText());
x1 = Math.pow(x2, 2) + Math.pow(x3, 2);
hipo.setVisible(true);
hipo.setText(""+x1);
}
}
);
tela.add(form);
tela.add(formula);
tela.add(hip);
tela.add(hipo);
tela.add(cat1);
tela.add(cate1);
tela.add(cat2);
tela.add(cate2);
tela.add(calc);
setVisible(true);
setSize(250,300);
}
public static void main(String [] args) {
Exerc2 app = new Exerc2();
app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}
| [
"antonio.lucas278@outlook.com"
] | antonio.lucas278@outlook.com |
6ad868d6847414563943619b8be0de6d97f6b5f7 | 1fdd7af846fb961fdf78840261509404837f9c24 | /app/src/main/java/com/yuejiajun/BreakfastExpress/view/PasswordType.java | 307fbdaf65d6d82aae485a773ffc1cd228c88089 | [] | no_license | BreakfastExpress/BreakfastExpress | a601137035eaff4f540dab78da5eb538b5c35d18 | 9d87a5a278847c3901da160761d9e31b465e6e08 | refs/heads/master | 2016-09-01T04:54:50.955761 | 2015-06-04T05:56:24 | 2015-06-04T05:56:24 | 36,795,014 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 195 | java | package com.yuejiajun.BreakfastExpress.view;
/**
* @author Jungly
* @mail jungly.ik@gmail.com
* @date 15/3/21 16:47
*/
public enum PasswordType {
NUMBER, TEXT, TEXTVISIBLE, TEXTWEB;
}
| [
"litao@yuejiajun.com"
] | litao@yuejiajun.com |
26dbbc417dde29967195bb1d67e877a4b56ba6ba | f58f464ceaa6a17ece431b71d2d799796be24cc0 | /me/projectx/module/Module.java | dbe83df006938de81e5610f42b934f3ee16ed517 | [] | no_license | Byte1337/Project-X | 4caf8408e36b00795cf015b80cbd10772869bcf4 | 7ec71d2421bea2b00c47f7ffec83aeeaaf53bbb8 | refs/heads/master | 2020-07-20T18:49:13.710664 | 2019-09-06T04:56:18 | 2019-09-06T04:56:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,508 | java | package me.projectx.module;
import me.projectx.ClientBase;
import net.minecraft.network.play.server.S02PacketChat;
import org.lwjgl.input.Keyboard;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
public class Module {
public enum Category {
Movement,
Combat,
Render,
Player,
NONE
}
@Retention(RetentionPolicy.RUNTIME)
public @interface Info {
Category category()default Category.NONE;
int bind()default Keyboard.KEY_NONE;
String name()default "NONE";
}
private String name = getClass().getAnnotation(Info.class).name(), settingName;
private Category category = getClass().getAnnotation(Info.class).category();
private int bind = getClass().getAnnotation(Info.class).bind();
private boolean enabled = false;
public void onEnable() { ClientBase.eventHandler.register(this); ClientBase.moduleHandler.registerActivatedModule(this); }
public void onDisable() { ClientBase.eventHandler.unregister(this); ClientBase.moduleHandler.unregisterActivatedModule(this);}
public void onTick() {}
public void onRender() {}
public void onToggle() {}
public void toggle()
{
enabled = !enabled;
onToggle();
if(enabled)
onEnable();
else
onDisable();
}
public String getName() { return name; }
public Category getCategory() { return category; }
public boolean isEnabled() { return enabled; }
public String getSettingName() { return settingName == null ? name : name + " §8" + settingName; }
public void setSettingName(String settingName) { this.settingName = settingName; }
public int getBind() { return bind; }
public void setBind(int bind) { this.bind = bind; }
public static boolean onSendChatMessage(String s){//EntityPlayerSP
if(s.startsWith(ClientBase.instance.Info[2])){
ClientBase.cmdHandler.callCommand(s.substring(1));
return false;
}
for(Module m: ClientBase.moduleHandler.getModuleList()){
if(m.isEnabled()){
return m.onSendChatMessage(s);
}
}
return true;
}
public static boolean onRecieveChatMessage(S02PacketChat packet){
for(Module m: ClientBase.moduleHandler.getModuleList()){
if(m.isEnabled()){
return onRecieveChatMessage(packet);
}
}
return true;
}
}
| [
"47438036+DreamHaxs@users.noreply.github.com"
] | 47438036+DreamHaxs@users.noreply.github.com |
b6021efe6bdc84300443b88767326a68154de418 | 58c2906050dbab50c151ba2ce908ef71c227c059 | /app/src/main/java/com/globant/iot/drinkgadget/utils/MainPostingBus.java | fa722e739d5cbc06821d429fa9d09a23d9c7b67d | [] | no_license | capraber/drinkgadget | 7b8153239e135da742dabf86515568498e3ad2f0 | b40610de4e8f23b10655fcac7357c30536c06952 | refs/heads/master | 2021-01-11T18:36:14.553984 | 2017-01-25T15:03:50 | 2017-01-25T15:03:50 | 79,579,877 | 0 | 0 | null | 2017-01-25T14:35:48 | 2017-01-20T17:16:07 | Java | UTF-8 | Java | false | false | 713 | java | package com.globant.iot.drinkgadget.utils;
import android.os.Looper;
import android.os.Handler;
import com.squareup.otto.Bus;
import com.squareup.otto.ThreadEnforcer;
public class MainPostingBus extends Bus {
private final Handler handler = new Handler(Looper.getMainLooper());
public MainPostingBus() {
super(ThreadEnforcer.ANY);
}
@Override
public void post(final Object event) {
if (Looper.myLooper() == Looper.getMainLooper()) {
super.post(event);
return;
}
handler.post(new Runnable() {
@Override
public void run() {
MainPostingBus.super.post(event);
}
});
}
}
| [
"bernardo.capra@globant.com"
] | bernardo.capra@globant.com |
17cb83b6473a834cb373e711a989e61477fdc618 | e8c694e5c53126852f44dc40654fd1a4ddc8cfb5 | /app/src/main/java/com/ioter/bean/ScanInfoData.java | b6023aaa38b767000cdb40d126a95b60f5e25049 | [] | no_license | yalonga/android | 1850f2b411b11c0ba97b38f53f0be00dd48e7845 | d9e237d863938ab4188e4405a41f00bcf2f0cf26 | refs/heads/master | 2021-08-24T13:43:12.455087 | 2017-11-21T08:27:35 | 2017-11-21T08:27:35 | 108,513,193 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 232 | java | package com.ioter.bean;
import java.io.Serializable;
/**
* 出入库数据
* @author Administrator
*
*/
public class ScanInfoData implements Serializable
{
public String content;
public String time;
}
| [
"yalong_hu@163.com"
] | yalong_hu@163.com |
ba925f6d9c251e34eed5cf7d482c967008a1477c | f5a7d8d8ac72aad84e2b514858d7aed1426ea0ee | /revature_java/arrays_demo/src/examples/Demo3.java | 10ccc8452966e9700e9a741d5fa6263b8f16a938 | [] | no_license | mealtracker/java_batch1_revature | b037d99f98c6c93c3259e998310ed474274703d7 | 0b6340d0b97f86546975a8343caff8e83d615fe1 | refs/heads/master | 2020-11-25T11:53:34.362089 | 2019-10-02T17:02:25 | 2019-10-02T17:02:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,115 | java | package examples;
import java.util.Scanner;
public class Demo3 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the size of array");
int size = sc.nextInt();
int ar2[] = new int[size];
System.out.println("Enter " + size + " no of element/s");
for (int i = 0; i < ar2.length; i++) {
ar2[i] = sc.nextInt();
}
Demo3 d3=new Demo3();
d3.printArray(ar2);//pass by reference
System.out.println("Enter the search element");
int ele=sc.nextInt();
if(!d3.searchArray(ar2, ele)) {
System.out.println(ele+" not found");
}
}
public void printArray(int arr[]) {
System.out.println("Contents of your array is");
for (int i = 0; i < arr.length; i++) {
System.out.print(arr[i]+" ");
}
System.out.println();
}
public boolean searchArray(int ar[],int ele) {
boolean b=false;
int c=0;
for (int i = 0; i < ar.length; i++) {
if(ar[i]==ele) {
b=true;
System.out.println(ele+" found at index "+(i+1));
//break;
c++;
}
}
System.out.println(ele+" occured "+c+" no of time/s");
return b;
}
}
| [
"vinay.ingalahalli1989@gmail.com"
] | vinay.ingalahalli1989@gmail.com |
73642630662c2ae50ba97eb027b525db0b20073a | 694ce86b3c53e7e2ea630d9395f651ffbc5ca56c | /dsl/AntlrToProgram.java | 37f741f2031048181d76c1f2cce3875ceef351df | [] | no_license | jaiteg1012/DSL-for-Crew | bb3af42a495974d9b3d7db910aa22e1f1dbe1342 | a76d66280cff330ce208180a74b8616e9671d38b | refs/heads/main | 2023-04-25T10:32:52.229787 | 2021-05-11T03:29:48 | 2021-05-11T03:29:48 | 366,237,750 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 582 | java | import java.util.ArrayList;
public class AntlrToProgram extends GrammarBaseVisitor<Program> {
@Override
public Program visitProg(GrammarParser.ProgContext ctx) {
Program prog = new Program();
int i = 0;
int children = ctx.getChildCount();
ArrayList<String> errors = new ArrayList<>();
AntlrToExpression visitor = new AntlrToExpression(errors);
while (i < children - 1) {
prog.addExpression(visitor.visit(ctx.getChild(i)));
i++;
}
prog.errors = errors;
return prog;
}
}
| [
"jaiteg1012@gmail.com"
] | jaiteg1012@gmail.com |
edc1b4ca115fd7087792ef21971401552c5a9ddf | ae2ef816f9317bafbcc9a28f09c0edb31b9e3a38 | /src/TaxiApp/src/main/java/mytaxi/app/exceptions/LoginException.java | 4f3424698abd8b8923b4dd58a6d9b1445b2e0d63 | [] | no_license | NazarMykhailechko/TaxiService | cc819b739ea2b57ce102362c6e2e5356c049af12 | 4bb63a5122e1af23837807743f4a901aeb9ae517 | refs/heads/master | 2021-05-06T00:27:22.364333 | 2018-12-13T14:24:36 | 2018-12-13T14:24:36 | 117,242,511 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 167 | java | package main.java.mytaxi.app.exceptions;
public class LoginException extends Exception {
public LoginException(String message) {
super(message);
}
}
| [
"mykhailechko@accordbank.com.ua"
] | mykhailechko@accordbank.com.ua |
559555c0331209f78db25c4b22f694dbe1a21a31 | c68cb8f48d32095efb6b243ae6a853af3e00bb5f | /src/main/java/app/service/logger/LoggerServiceImpl.java | 957bbbd8d1259293b9a3e44b32f55f1d11bdc985 | [] | no_license | Artem76/Go_together | a47f76e5f3e8157c2c32d6cd6e0914cfc7dc55fc | c6933c0314d05587850c0e1c9ae9009d3213af9a | refs/heads/master | 2021-05-11T19:09:32.722124 | 2018-01-17T16:16:07 | 2018-01-17T16:16:07 | 117,854,589 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 444 | java | package app.service.logger;
import app.controller.MainController;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
/**
* Created by Олег on 19.12.2017.
*/
@Service
public class LoggerServiceImpl implements LoggerService{
private final org.slf4j.Logger logger = LoggerFactory.getLogger(MainController.class);
@Override
public void writeInfo(String text) {
logger.info(text);
}
}
| [
"cmua76@outlook.com"
] | cmua76@outlook.com |
21d187aeeda7c10179db3e470045e91749a678c8 | 7f103cae05d721c0cb4f42857fe276e86e50fdf0 | /app/src/main/java/com/gipl/bluetoothprinting/DeviceListAdapter.java | 255521d8916b038c32ca2b6950c1530460786091 | [] | no_license | polekar-ankit/BluetoothPrinting | cc3db3f33bc71741bb4bb94f4b1776beff678d2d | cd0e2c02e37639b71c2cf402f64833dbfe4a678c | refs/heads/master | 2020-07-20T21:36:07.311165 | 2019-09-06T04:28:15 | 2019-09-06T04:28:15 | 206,712,692 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,124 | java | package com.gipl.bluetoothprinting;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
/**
* Created by Ankit on 03-Sep-19.
*/
public class DeviceListAdapter extends RecyclerView.Adapter<DeviceListAdapter.Holder> {
private ArrayList<BTDevice> deviceArrayList = new ArrayList<>();
void addItem(BTDevice btDevice) {
deviceArrayList.add(btDevice);
notifyDataSetChanged();
}
public void setDeviceArrayList(ArrayList<BTDevice> deviceArrayList) {
this.deviceArrayList.addAll(deviceArrayList);
notifyDataSetChanged();
}
@NonNull
@Override
public Holder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.layout_device_list_tem, parent, false);
return new Holder(view);
}
@Override
public void onBindViewHolder(@NonNull Holder holder, int position) {
final BTDevice btDevice = deviceArrayList.get(position);
holder.tvDeviceName.setText(btDevice.getDeviceName());
holder.itemView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
btDeviceClickListener.onDeviceClick(btDevice);
}
});
}
public DeviceListAdapter(BtDeviceClickListener btDeviceClickListener) {
this.btDeviceClickListener = btDeviceClickListener;
}
private BtDeviceClickListener btDeviceClickListener;
public interface BtDeviceClickListener{
void onDeviceClick(BTDevice btDevice);
}
@Override
public int getItemCount() {
return deviceArrayList.size();
}
class Holder extends RecyclerView.ViewHolder {
private TextView tvDeviceName;
public Holder(@NonNull View itemView) {
super(itemView);
tvDeviceName = itemView.findViewById(R.id.tv_device_name);
}
}
}
| [
"polekar.ankit@gmail.com"
] | polekar.ankit@gmail.com |
040e318420883c8b5da3536bb6638e824ea5e0bc | bb05863513d77365d870a394bad6983209070d59 | /SpringMVC/src/main/java/com/przemo/controller/UserController.java | 7ce93a46164468cc76ccccec6bab269fefd3c651 | [] | no_license | przemekwoj/SpringMVC_Hibernate | 6570f6f93dfd4760ea32a9f4af218bcc57e02fc6 | a5f52dc3f19808a9952a5e461ab8e0e765f547f9 | refs/heads/master | 2020-04-20T09:55:23.800617 | 2019-02-05T00:15:38 | 2019-02-05T00:15:38 | 168,777,212 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,606 | java | package com.przemo.controller;
import java.util.ArrayList;
import java.util.List;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import com.przemo.entity.Courses;
import com.przemo.entity.Users;
import com.przemo.service.DatabaseService;
@Controller
@Transactional
@RequestMapping("/user")
public class UserController
{
@Autowired
private DatabaseService databaseService;
@GetMapping("/updateForm")
public String updateUser(@RequestParam("userId") int theId,Model theModel)
{
Users user = databaseService.getUsers(theId);
theModel.addAttribute("user",user);
theModel.addAttribute("allCourses",databaseService.getAllCourses());
return "update_user";
}
@PostMapping("/UpdateUser")
public ModelAndView updatedUser(@ModelAttribute("user") Users user,@RequestParam("checkbox") String[] courseId_fromCheckbox)
{
List<Courses> coursesList = new ArrayList<Courses>();
for(int i = 0 ; i < courseId_fromCheckbox.length ; i ++)
{
int courseId = Integer.parseInt(courseId_fromCheckbox[i]);
Courses course = databaseService.getCourses(courseId);
coursesList.add(course);
}
Users user_to_Update = databaseService.getUsers(user.getId());
user_to_Update.setEmail(user.getEmail());
user_to_Update.setPassword(user.getPassword());
user_to_Update.setCoursesList(coursesList);
databaseService.updateUser(user_to_Update);
return new ModelAndView("redirect:/begin/table");
}
@GetMapping("/delete")
public String deleteUser(@RequestParam("userId") int theId)
{
databaseService.deleteUser(theId);
return "firstpage";
}
@GetMapping("/view")
public String viewUser(@RequestParam("userId") int theId, Model theModel)
{
Users user_proxy = databaseService.getUsers(theId);
theModel.addAttribute("user",user_proxy);
List<Courses> listCourses = new ArrayList<Courses>();
//we need to do this coz getCoursesList() at Lazy fetch , works only when is session open ,
//so we cant use it in jsp , so we have to get value from session and copy it to other object
//that we can use it later in jsp
int size = user_proxy.getCoursesList().size();
for(int i = 0 ; i < size ; i++)
{
Courses course = user_proxy.getCoursesList().get(i);
listCourses.add(course);
}
theModel.addAttribute("listCourses",listCourses);
return "view_user_page";
}
@GetMapping("/addUserForm")
public String addUser(Model theModel)
{
theModel.addAttribute("user", new Users());
return "addUserForm";
}
//I used here RedirectAttributes coz i want to send error to other controller
@PostMapping("/saveUser")
public ModelAndView saveUser(@ModelAttribute("user") Users user, RedirectAttributes redirectAttributes)
{
if(user.getEmail().contains("@"))
{
databaseService.saveUser(user);
return new ModelAndView("redirect:/begin/table");
}
else
{
ModelAndView modelAndView = new ModelAndView("redirect:/user/addUserForm");
redirectAttributes.addFlashAttribute("error", "you didnt use email!");
return modelAndView;
}
}
}
| [
"przemoemo@poczta.onet.pl"
] | przemoemo@poczta.onet.pl |
5dc5291b4ea5caf2e8a304f6f343bde87d73ec3d | 63e36d35f51bea83017ec712179302a62608333e | /OnePlusCamera/com/adobe/xmp/XMPIterator.java | 6a0ea81fd5740a667f8b0eccbd0a92b501309780 | [] | no_license | hiepgaf/oneplus_blobs_decompiled | 672aa002fa670bdcba8fdf34113bc4b8e85f8294 | e1ab1f2dd111f905ff1eee18b6a072606c01c518 | refs/heads/master | 2021-06-26T11:24:21.954070 | 2017-08-26T12:45:56 | 2017-08-26T12:45:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 383 | java | package com.adobe.xmp;
import java.util.Iterator;
public abstract interface XMPIterator
extends Iterator
{
public abstract void skipSiblings();
public abstract void skipSubtree();
}
/* Location: /Users/joshua/Desktop/system_framework/classes-dex2jar.jar!/com/adobe/xmp/XMPIterator.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/ | [
"joshuous@gmail.com"
] | joshuous@gmail.com |
020ff139b8deb3a6fdf0ae8ffbe058685ef8efd7 | 74b47b895b2f739612371f871c7f940502e7165b | /aws-java-sdk-workmail/src/main/java/com/amazonaws/services/workmail/model/DescribeMailboxExportJobRequest.java | 44bf62201f3d9797115db6d5b78bb0c82dfb5c8c | [
"Apache-2.0"
] | permissive | baganda07/aws-sdk-java | fe1958ed679cd95b4c48f971393bf03eb5512799 | f19bdb30177106b5d6394223a40a382b87adf742 | refs/heads/master | 2022-11-09T21:55:43.857201 | 2022-10-24T21:08:19 | 2022-10-24T21:08:19 | 221,028,223 | 0 | 0 | Apache-2.0 | 2019-11-11T16:57:12 | 2019-11-11T16:57:11 | null | UTF-8 | Java | false | false | 4,886 | java | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.workmail.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DescribeMailboxExportJob" target="_top">AWS
* API Documentation</a>
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeMailboxExportJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
* <p>
* The mailbox export job ID.
* </p>
*/
private String jobId;
/**
* <p>
* The organization ID.
* </p>
*/
private String organizationId;
/**
* <p>
* The mailbox export job ID.
* </p>
*
* @param jobId
* The mailbox export job ID.
*/
public void setJobId(String jobId) {
this.jobId = jobId;
}
/**
* <p>
* The mailbox export job ID.
* </p>
*
* @return The mailbox export job ID.
*/
public String getJobId() {
return this.jobId;
}
/**
* <p>
* The mailbox export job ID.
* </p>
*
* @param jobId
* The mailbox export job ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMailboxExportJobRequest withJobId(String jobId) {
setJobId(jobId);
return this;
}
/**
* <p>
* The organization ID.
* </p>
*
* @param organizationId
* The organization ID.
*/
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId;
}
/**
* <p>
* The organization ID.
* </p>
*
* @return The organization ID.
*/
public String getOrganizationId() {
return this.organizationId;
}
/**
* <p>
* The organization ID.
* </p>
*
* @param organizationId
* The organization ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeMailboxExportJobRequest withOrganizationId(String organizationId) {
setOrganizationId(organizationId);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getJobId() != null)
sb.append("JobId: ").append(getJobId()).append(",");
if (getOrganizationId() != null)
sb.append("OrganizationId: ").append(getOrganizationId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeMailboxExportJobRequest == false)
return false;
DescribeMailboxExportJobRequest other = (DescribeMailboxExportJobRequest) obj;
if (other.getJobId() == null ^ this.getJobId() == null)
return false;
if (other.getJobId() != null && other.getJobId().equals(this.getJobId()) == false)
return false;
if (other.getOrganizationId() == null ^ this.getOrganizationId() == null)
return false;
if (other.getOrganizationId() != null && other.getOrganizationId().equals(this.getOrganizationId()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode());
hashCode = prime * hashCode + ((getOrganizationId() == null) ? 0 : getOrganizationId().hashCode());
return hashCode;
}
@Override
public DescribeMailboxExportJobRequest clone() {
return (DescribeMailboxExportJobRequest) super.clone();
}
}
| [
""
] | |
081833ca3723c339f2db75065497ab998dd6fd70 | 32b72e1dc8b6ee1be2e80bb70a03a021c83db550 | /ast_results/BrandroidTools_OpenExplorer/src/org/itadaki/bzip2/BZip2HuffmanStageEncoder.java | c5200efee83c0522d4117d1c3f2ef94d0549f7c5 | [] | no_license | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | d90c41a17e88fcd99d543124eeb6e93f9133cb4a | 0564143d92f8024ff5fa6b659c2baebf827582b1 | refs/heads/master | 2020-07-13T13:53:40.297493 | 2019-01-11T11:51:18 | 2019-01-11T11:51:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 11,423 | java | // isComment
package org.itadaki.bzip2;
import java.io.IOException;
import java.util.Arrays;
/**
* isComment
*/
class isClassOrIsInterface {
/**
* isComment
*/
private static final int isVariable = isIntegerConstant;
/**
* isComment
*/
private final BZip2BitOutputStream isVariable;
/**
* isComment
*/
private final char[] isVariable;
/**
* isComment
*/
private int isVariable;
/**
* isComment
*/
private int isVariable;
/**
* isComment
*/
private final int[] isVariable;
/**
* isComment
*/
private final int[][] isVariable;
/**
* isComment
*/
private final int[][] isVariable;
/**
* isComment
*/
private final byte[] isVariable;
/**
* isComment
*/
private static int isMethod(final int isParameter) {
if (isNameExpr >= isIntegerConstant)
return isIntegerConstant;
if (isNameExpr >= isIntegerConstant)
return isIntegerConstant;
if (isNameExpr >= isIntegerConstant)
return isIntegerConstant;
if (isNameExpr >= isIntegerConstant)
return isIntegerConstant;
return isIntegerConstant;
}
/**
* isComment
*/
private static void isMethod(final int isParameter, final int[] isParameter, final int[] isParameter) {
final int[] isVariable = new int[isNameExpr];
final int[] isVariable = new int[isNameExpr];
// isComment
for (int isVariable = isIntegerConstant; isNameExpr < isNameExpr; isNameExpr++) {
isNameExpr[isNameExpr] = (isNameExpr[isNameExpr] << isIntegerConstant) | isNameExpr;
}
isNameExpr.isMethod(isNameExpr);
for (int isVariable = isIntegerConstant; isNameExpr < isNameExpr; isNameExpr++) {
isNameExpr[isNameExpr] = isNameExpr[isNameExpr] >>> isIntegerConstant;
}
// isComment
isNameExpr.isMethod(isNameExpr, isNameExpr.isFieldAccessExpr);
// isComment
for (int isVariable = isIntegerConstant; isNameExpr < isNameExpr; isNameExpr++) {
isNameExpr[isNameExpr[isNameExpr] & isIntegerConstant] = isNameExpr[isNameExpr];
}
}
/**
* isComment
*/
private void isMethod() {
final int[][] isVariable = this.isFieldAccessExpr;
final int[] isVariable = this.isFieldAccessExpr;
final int isVariable = this.isFieldAccessExpr;
final int isVariable = isNameExpr.isFieldAccessExpr;
int isVariable = this.isFieldAccessExpr;
int isVariable = -isIntegerConstant;
for (int isVariable = isIntegerConstant; isNameExpr < isNameExpr; isNameExpr++) {
final int isVariable = isNameExpr / (isNameExpr - isNameExpr);
final int isVariable = isNameExpr + isIntegerConstant;
int isVariable = isIntegerConstant;
while ((isNameExpr < isNameExpr) && (isNameExpr < (isNameExpr - isIntegerConstant))) {
isNameExpr += isNameExpr[++isNameExpr];
}
if ((isNameExpr > isNameExpr) && (isNameExpr != isIntegerConstant) && (isNameExpr != (isNameExpr - isIntegerConstant)) && (((isNameExpr - isNameExpr) & isIntegerConstant) == isIntegerConstant)) {
isNameExpr -= isNameExpr[isNameExpr--];
}
final int[] isVariable = isNameExpr[isNameExpr];
for (int isVariable = isIntegerConstant; isNameExpr < isNameExpr; isNameExpr++) {
if ((isNameExpr < isNameExpr) || (isNameExpr > isNameExpr)) {
isNameExpr[isNameExpr] = isNameExpr;
}
}
isNameExpr -= isNameExpr;
}
}
/**
* isComment
*/
private void isMethod(final boolean isParameter) {
final char[] isVariable = this.isFieldAccessExpr;
final byte[] isVariable = this.isFieldAccessExpr;
final int[][] isVariable = this.isFieldAccessExpr;
final int isVariable = this.isFieldAccessExpr;
final int isVariable = this.isFieldAccessExpr;
final int isVariable = isNameExpr.isFieldAccessExpr;
final int[][] isVariable = new int[isNameExpr][isNameExpr];
int isVariable = isIntegerConstant;
// isComment
for (int isVariable = isIntegerConstant; isNameExpr < isNameExpr; ) {
final int isVariable = isNameExpr.isMethod(isNameExpr + isNameExpr.isFieldAccessExpr, isNameExpr) - isIntegerConstant;
// isComment
short[] isVariable = new short[isNameExpr];
for (int isVariable = isNameExpr; isNameExpr <= isNameExpr; isNameExpr++) {
final int isVariable = isNameExpr[isNameExpr];
for (int isVariable = isIntegerConstant; isNameExpr < isNameExpr; isNameExpr++) {
isNameExpr[isNameExpr] += isNameExpr[isNameExpr][isNameExpr];
}
}
// isComment
byte isVariable = isIntegerConstant;
int isVariable = isNameExpr[isIntegerConstant];
for (byte isVariable = isIntegerConstant; isNameExpr < isNameExpr; isNameExpr++) {
final int isVariable = isNameExpr[isNameExpr];
if (isNameExpr < isNameExpr) {
isNameExpr = isNameExpr;
isNameExpr = isNameExpr;
}
}
// isComment
final int[] isVariable = isNameExpr[isNameExpr];
for (int isVariable = isNameExpr; isNameExpr <= isNameExpr; isNameExpr++) {
isNameExpr[isNameExpr[isNameExpr]]++;
}
// isComment
if (isNameExpr) {
isNameExpr[isNameExpr++] = isNameExpr;
}
isNameExpr = isNameExpr + isIntegerConstant;
}
// isComment
for (int isVariable = isIntegerConstant; isNameExpr < isNameExpr; isNameExpr++) {
isMethod(isNameExpr, isNameExpr[isNameExpr], isNameExpr[isNameExpr]);
}
}
/**
* isComment
*/
private void isMethod() {
final int[][] isVariable = this.isFieldAccessExpr;
final int[][] isVariable = this.isFieldAccessExpr;
final int isVariable = this.isFieldAccessExpr;
final int isVariable = isNameExpr.isFieldAccessExpr;
for (int isVariable = isIntegerConstant; isNameExpr < isNameExpr; isNameExpr++) {
final int[] isVariable = isNameExpr[isNameExpr];
int isVariable = isIntegerConstant;
int isVariable = isIntegerConstant;
for (int isVariable = isIntegerConstant; isNameExpr < isNameExpr; isNameExpr++) {
final int isVariable = isNameExpr[isNameExpr];
if (isNameExpr > isNameExpr) {
isNameExpr = isNameExpr;
}
if (isNameExpr < isNameExpr) {
isNameExpr = isNameExpr;
}
}
int isVariable = isIntegerConstant;
for (int isVariable = isNameExpr; isNameExpr <= isNameExpr; isNameExpr++) {
for (int isVariable = isIntegerConstant; isNameExpr < isNameExpr; isNameExpr++) {
if ((isNameExpr[isNameExpr][isNameExpr] & isIntegerConstant) == isNameExpr) {
isNameExpr[isNameExpr][isNameExpr] = (isNameExpr << isIntegerConstant) | isNameExpr;
isNameExpr++;
}
}
isNameExpr <<= isIntegerConstant;
}
}
}
/**
* isComment
*/
private void isMethod() throws IOException {
final BZip2BitOutputStream isVariable = this.isFieldAccessExpr;
final byte[] isVariable = this.isFieldAccessExpr;
final int isVariable = isNameExpr.isFieldAccessExpr;
final int[][] isVariable = this.isFieldAccessExpr;
final int isVariable = this.isFieldAccessExpr;
final int isVariable = isNameExpr.isFieldAccessExpr;
isNameExpr.isMethod(isIntegerConstant, isNameExpr);
isNameExpr.isMethod(isIntegerConstant, isNameExpr);
// isComment
MoveToFront isVariable = new MoveToFront();
for (int isVariable = isIntegerConstant; isNameExpr < isNameExpr; isNameExpr++) {
isNameExpr.isMethod(isNameExpr.isMethod(isNameExpr[isNameExpr]));
}
// isComment
for (int isVariable = isIntegerConstant; isNameExpr < isNameExpr; isNameExpr++) {
final int[] isVariable = isNameExpr[isNameExpr];
int isVariable = isNameExpr[isIntegerConstant];
isNameExpr.isMethod(isIntegerConstant, isNameExpr);
for (int isVariable = isIntegerConstant; isNameExpr < isNameExpr; isNameExpr++) {
final int isVariable = isNameExpr[isNameExpr];
final int isVariable = (isNameExpr < isNameExpr) ? isIntegerConstant : isIntegerConstant;
int isVariable = isNameExpr.isMethod(isNameExpr - isNameExpr);
while (isNameExpr-- > isIntegerConstant) {
isNameExpr.isMethod(isIntegerConstant, isNameExpr);
}
isNameExpr.isMethod(true);
isNameExpr = isNameExpr;
}
}
}
/**
* isComment
*/
private void isMethod() throws IOException {
final BZip2BitOutputStream isVariable = this.isFieldAccessExpr;
final int[][] isVariable = this.isFieldAccessExpr;
final byte[] isVariable = this.isFieldAccessExpr;
final char[] isVariable = this.isFieldAccessExpr;
final int isVariable = this.isFieldAccessExpr;
int isVariable = isIntegerConstant;
for (int isVariable = isIntegerConstant; isNameExpr < isNameExpr; ) {
final int isVariable = isNameExpr.isMethod(isNameExpr + isNameExpr.isFieldAccessExpr, isNameExpr) - isIntegerConstant;
final int[] isVariable = isNameExpr[isNameExpr[isNameExpr++]];
while (isNameExpr <= isNameExpr) {
final int isVariable = isNameExpr[isNameExpr[isNameExpr++]];
isNameExpr.isMethod(isNameExpr >>> isIntegerConstant, isNameExpr);
}
}
}
/**
* isComment
*/
public void isMethod() throws IOException {
// isComment
isMethod();
for (int isVariable = isIntegerConstant; isNameExpr >= isIntegerConstant; isNameExpr--) {
isMethod(isNameExpr == isIntegerConstant);
}
isMethod();
// isComment
isMethod();
isMethod();
}
/**
* isComment
*/
public isConstructor(final BZip2BitOutputStream isParameter, final char[] isParameter, final int isParameter, final int isParameter, final int[] isParameter) {
this.isFieldAccessExpr = isNameExpr;
this.isFieldAccessExpr = isNameExpr;
this.isFieldAccessExpr = isNameExpr;
this.isFieldAccessExpr = isNameExpr;
this.isFieldAccessExpr = isNameExpr;
final int isVariable = isMethod(isNameExpr);
this.isFieldAccessExpr = new int[isNameExpr][isNameExpr];
this.isFieldAccessExpr = new int[isNameExpr][isNameExpr];
this.isFieldAccessExpr = new byte[(isNameExpr + isNameExpr.isFieldAccessExpr - isIntegerConstant) / isNameExpr.isFieldAccessExpr];
}
}
| [
"matheus@melsolucoes.net"
] | matheus@melsolucoes.net |
b98dda202e5b272ba71f0369ccf716feb32a1761 | 3d0c9bf755990cce6fc0b3a5d364e3ffe62a9e38 | /src/test/java/com/demoqa/pages/RegisterPage.java | 52d6c953328d484477ce6ba9e2a66ada125423d8 | [] | no_license | Anastasiaivanov/DemoQA | 845002fa54c0a55c2faed3acc8e3c537c3452155 | cd0cb092466b55cf60ed3746b256750af35b156f | refs/heads/main | 2023-03-25T05:09:50.767753 | 2021-03-23T14:15:45 | 2021-03-23T14:15:45 | 344,439,766 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,185 | java | package com.demoqa.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class RegisterPage extends PageBase {
public RegisterPage(WebDriver driver) {
super(driver);
}
@FindBy(id = "firstname")
WebElement firstNameField;
@FindBy(id = "lastname")
WebElement lastNameField;
@FindBy(id = "userName")
WebElement userNameField;
@FindBy(id = "password")
WebElement passwordField;
@FindBy(id = "register")
WebElement registerNewUserBtn;
@FindBy(id = "g-recaptcha")
WebElement recaptcha;
public RegisterPage fillNewUserFields(String firstname, String lastname, String username, String password) {
type(firstNameField, firstname);
type(lastNameField, lastname);
type(userNameField, username);
type(passwordField, password);
return this;
}
public RegisterPage clickOnCaptcha() {
clickWithActionJava(recaptcha, 0, 200);
return this;
}
public RegisterPage clickOnRegisterBtn() {
clickWithActionJava(registerNewUserBtn, 0, 200);
return this;
}
}
| [
"anastasiaivanova1986@gmail.com"
] | anastasiaivanova1986@gmail.com |
b53e2286b4975ddd9133d042ff1ea836fd3ab9ed | 1b07910ae2109d4516cb39e469fa5cb776080f9c | /anttest/src/sftp_java/TestMySFTP.java | 408389c8df6b8aa08ee51cb8a81ba3223fea7266 | [] | no_license | meilaHou/anttest | 9cc1ccd76fa69eb5270d873a8f8c957d1f933d34 | d4bce4379e884ff9f4f46bf760220c48f40a3954 | refs/heads/master | 2021-01-11T01:51:49.458327 | 2016-11-16T10:25:42 | 2016-11-16T10:25:42 | 70,654,435 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,738 | java | package sftp_java;
import java.util.List;
import java.util.Map;
import com.jcraft.jsch.ChannelSftp;
public class TestMySFTP {
static String userName = "javaftp2"; // FTP 登录用户名
static String password = "168TYFzmN4aY4j[JIAvJ"; // FTP 登录密码
static String host = "180.178.62.226"; // FTP 服务器地址IP地址
static int port = 9981; // FTP 端口
static String root = "/egameentrance/client";
static TestMySFTP app = new TestMySFTP();
public static void main(String[] args) throws Exception {
ChannelSftp sftp = MySFTP.connect(host, userName, password, port, root);
app.upload(sftp);
//app.removeFile(sftp);
//app.download(sftp);
MySFTP.disconnect(sftp);
}
void upload(ChannelSftp sftp){
try {
String dir = "./";
boolean flg = MySFTP.mkDir(dir, sftp);
if(flg){
String pwd = sftp.pwd();
System.out.println(pwd);
System.out.println(sftp.getHome());
System.out.println(sftp.lpwd());
//sftp.cd(".");
//sftp.cd("..");
String uploadFile = "F:/workspace/EGameClient6_config/build/mayayl/game/Game.swf";
MySFTP.upload(uploadFile, sftp);//上传
System.out.println("上传-成功.");
}
// dir = "a";
// flg = MySFTP.cd(dir, sftp);
// if(flg){
// String uploadFile = "d:/dwsgsDelDup12.sql";
// MySFTP.upload(uploadFile, sftp);//上传
// System.out.println("上传-成功.");
// }
} catch (Exception e) {
System.out.println("--上传失败..");
e.printStackTrace();
}
}
void removeFile(ChannelSftp sftp){
try {
String dirs = "a/b";
boolean flg = MySFTP.cd(dirs, sftp);
if(flg){
String deleteFile = "c";
MySFTP.rm(deleteFile, sftp);
System.out.println("删除-成功.");
}
} catch (Exception e) {
System.out.println("--删除失败..");
e.printStackTrace();
}
}
void download(ChannelSftp sftp){
try {
boolean flg = MySFTP.cd("/gzfw", sftp);
if(flg){
List files = MySFTP.list(sftp);
if(files!=null&&files.size()>0){
for(int i=0;i<files.size();i++){
Map item = (Map)files.get(i);
String f = (String)item.get("name");
boolean isDir = ((Boolean)item.get("dir")).booleanValue();
System.out.println("---本目录---"+f+" 是:"+isDir);
if(isDir){
List subfiles = MySFTP.list(f,sftp);
for(int j=0;j<subfiles.size();j++){
Map item1 = (Map)subfiles.get(j);
boolean isDir1 = ((Boolean)item1.get("dir")).booleanValue();
if(isDir1)continue;
String ff = (String)item1.get("name");
System.out.println("---2----"+ff);
MySFTP.download(f,ff, "e:/ftp/"+ff, sftp);
}
}
MySFTP.rm(f, sftp);
}
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
| [
"houxl@git.com"
] | houxl@git.com |
6c00757d72abe334ab8e2a472a319caea92521be | dcfff6b9d59936aa5a87b881e5a27cc38e89956e | /src/main/java/com/fakenews/spring/model/Noticia.java | 44a2676585ce4a9ac78fdbb928e6c3230f19772c | [] | no_license | HFRANCO1987/fakenews | 6540857cd19824e4171b710f98b59538920eda01 | 3cbb2c68ffc9e4ce610c12f1925a32bd899494c0 | refs/heads/master | 2020-04-06T08:11:28.261429 | 2018-11-16T21:16:18 | 2018-11-16T21:16:18 | 157,297,811 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,452 | java | package com.fakenews.spring.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
@Entity
@Table(name = "tab_noticia")
public class Noticia implements Serializable {
private static final long serialVersionUID = -8441446254022782591L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id")
private Long id;
@Column(name = "titulo")
private String titulo;
@Lob
@Column(name = "imagem", columnDefinition = "TEXT")
private String imagem;
@Lob
@Column(name = "texto", columnDefinition = "TEXT")
private String texto;
@Column(name = "link")
private String link;
@Column(name = "fake")
private Boolean isFake = Boolean.FALSE;
@Column(name = "aprovado")
private Boolean isAprovado = Boolean.FALSE;
@OneToMany(mappedBy = "noticia", cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true)
private List<Comentario> listaComentarios = new ArrayList<>();
@Column(name = "data")
private Date data = new Date();
@ManyToOne
@JoinColumn(name = "id_usuario")
private Usuario usuario;
public Noticia() {
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getTitulo() {
return titulo;
}
public void setTitulo(String titulo) {
this.titulo = titulo;
}
public String getImagem() {
return imagem;
}
public void setImagem(String imagem) {
this.imagem = imagem;
}
public String getTexto() {
return texto;
}
public void setTexto(String texto) {
this.texto = texto;
}
public String getLink() {
return link;
}
public void setLink(String link) {
this.link = link;
}
public Boolean getIsFake() {
return isFake;
}
public void setIsFake(Boolean isFake) {
this.isFake = isFake;
}
public Boolean getIsAprovado() {
return isAprovado;
}
public void setIsAprovado(Boolean isAprovado) {
this.isAprovado = isAprovado;
}
public List<Comentario> getListaComentarios() {
return listaComentarios;
}
public void setListaComentarios(List<Comentario> listaComentarios) {
this.listaComentarios = listaComentarios;
}
public Date getData() {
return data;
}
public void setData(Date data) {
this.data = data;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((id == null) ? 0 : id.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Noticia other = (Noticia) obj;
if (id == null) {
if (other.id != null)
return false;
} else if (!id.equals(other.id))
return false;
return true;
}
public Usuario getUsuario() {
return usuario;
}
public void setUsuario(Usuario usuario) {
this.usuario = usuario;
}
}
| [
"henriquesantiagofranco@gmail.com"
] | henriquesantiagofranco@gmail.com |
aa8a7125de156e88286ca803167ccb44496af7a5 | c0b825047815ac4b4a18eca135b9a5f9739824c4 | /src/main/modified/io/reactivex/super/io/reactivex/internal/schedulers/ScheduledDirectPeriodicTask.java | 70d70ad90bad140a146420e9c126c368993e2078 | [
"Apache-2.0"
] | permissive | intendia-oss/rxjava-gwt | 74650a11215829c8ee8cb84ad58b15ae5611d660 | 8dacda90d32868de08acdf46b7ac7fce98e119c0 | refs/heads/2.x | 2022-05-17T04:49:52.641745 | 2022-04-17T20:21:59 | 2022-04-17T20:21:59 | 24,603,615 | 51 | 11 | Apache-2.0 | 2022-04-13T20:53:59 | 2014-09-29T16:43:31 | Java | UTF-8 | Java | false | false | 1,520 | java | /**
* Copyright (c) 2016-present, RxJava Contributors.
*
* 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 agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.reactivex.internal.schedulers;
import io.reactivex.annotations.GwtIncompatible;
import io.reactivex.plugins.RxJavaPlugins;
/**
* A Callable to be submitted to an ExecutorService that runs a Runnable
* action periodically and manages completion/cancellation.
* @since 2.0.8
*/
@GwtIncompatible("java.util.concurrent.FutureTask")
public final class ScheduledDirectPeriodicTask extends AbstractDirectTask implements Runnable {
private static final long serialVersionUID = 1811839108042568751L;
public ScheduledDirectPeriodicTask(Runnable runnable) {
super(runnable);
}
@Override
public void run() {
runner = Thread.currentThread();
try {
runnable.run();
runner = null;
} catch (Throwable ex) {
runner = null;
lazySet(FINISHED);
RxJavaPlugins.onError(ex);
}
}
}
| [
"ignacio@bacamt.com"
] | ignacio@bacamt.com |
603ea4958a24a15c87310614673d973068ffd2e9 | 35866b73337b94e8adbdf13c19415ec8f5f1cc63 | /JAVA-SE Applications/collectionFramework/Set/StringTreeSet.java | 02bbd12e3cf58b563d3605d76a249b2b9e29653f | [] | no_license | debiprasadmishra50/All-Core-Java-Applications---JAVA-SE | fe7080cbf3c21e18bc02b56f5adbccd98d4599ae | c8cbcac0257357035122e91575772ecb84545236 | refs/heads/master | 2022-11-11T20:56:05.011844 | 2020-06-28T08:10:17 | 2020-06-28T08:10:17 | 275,537,700 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 401 | java | package collectionFramework.Set;
import java.util.TreeSet;
public class StringTreeSet
{
public static void main(String[] args)
{
TreeSet<String> set = new TreeSet<String>(); //Orders the string set in alphabetical order
set.add("ABC");
set.add("XYZ");
set.add("KJH");
set.add("DTR");
for (String res : set)
System.out.println(res); //It will print in the alphabatical order
}
}
| [
"debiprasadmishra50@gmail.com"
] | debiprasadmishra50@gmail.com |
4236c9d4de1cc487c84833b4985d2de3c2d7e12c | 8af1164bac943cef64e41bae312223c3c0e38114 | /results-java/JetBrains--intellij-community/1e937add5f846a026373c06f978efdf6cff2dada/before/DeleteAction.java | 63dccd6254f2f44109e6a2762f32541660e3862e | [] | no_license | fracz/refactor-extractor | 3ae45c97cc63f26d5cb8b92003b12f74cc9973a9 | dd5e82bfcc376e74a99e18c2bf54c95676914272 | refs/heads/master | 2021-01-19T06:50:08.211003 | 2018-11-30T13:00:57 | 2018-11-30T13:00:57 | 87,353,478 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,947 | java | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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 agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.intellij.uiDesigner.actions;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.Presentation;
import com.intellij.openapi.util.IconLoader;
import com.intellij.uiDesigner.designSurface.GuiEditor;
import com.intellij.uiDesigner.FormEditingUtil;
import com.intellij.uiDesigner.CaptionSelection;
import com.intellij.uiDesigner.UIDesignerBundle;
/**
* @author yole
*/
public final class DeleteAction extends AnAction {
public DeleteAction() {
getTemplatePresentation().setIcon(IconLoader.getIcon("/com/intellij/uiDesigner/icons/deleteCell.png"));
}
public void actionPerformed(final AnActionEvent e) {
final GuiEditor editor = FormEditingUtil.getEditorFromContext(e.getDataContext());
CaptionSelection selection = e.getData(CaptionSelection.DATA_KEY);
if (editor == null || selection == null || selection.getFocusedIndex() < 0) return;
FormEditingUtil.deleteRowOrColumn(editor, selection.getContainer(), selection.getSelection(), selection.isRow());
selection.getContainer().revalidate();
}
public void update(final AnActionEvent e) {
final Presentation presentation = e.getPresentation();
CaptionSelection selection = e.getData(CaptionSelection.DATA_KEY);
if(selection == null || selection.getContainer() == null){
presentation.setVisible(false);
return;
}
presentation.setVisible(true);
if (selection.getSelection().length > 1) {
presentation.setText(!selection.isRow()
? UIDesignerBundle.message("action.delete.columns")
: UIDesignerBundle.message("action.delete.rows"));
}
else {
presentation.setText(!selection.isRow()
? UIDesignerBundle.message("action.delete.column")
: UIDesignerBundle.message("action.delete.row"));
}
int minCellCount = selection.getContainer().getGridLayoutManager().getMinCellCount();
if (selection.getContainer().getGridCellCount(selection.isRow()) - selection.getSelection().length < minCellCount) {
presentation.setEnabled(false);
}
else if (selection.getFocusedIndex() < 0) {
presentation.setEnabled(false);
}
else {
presentation.setEnabled(true);
}
}
} | [
"fraczwojciech@gmail.com"
] | fraczwojciech@gmail.com |
729cd3dc4a3cc2594f2810a4e8cfe3f86f641c8d | 38c10c01007624cd2056884f25e0d6ab85442194 | /chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuDragHelper.java | e1602f2cc9f8efbac9b3a59e4eef4f99325b05b6 | [
"BSD-3-Clause"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Java | false | false | 12,981 | java | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.appmenu;
import android.animation.TimeAnimator;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.res.Resources;
import android.graphics.Rect;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.ListPopupWindow;
import android.widget.ListView;
import org.chromium.base.metrics.RecordUserAction;
import org.chromium.chrome.R;
import java.util.ArrayList;
/**
* Handles the drag touch events on AppMenu that start from the menu button.
*
* Lint suppression for NewApi is added because we are using TimeAnimator class that was marked
* hidden in API 16.
*/
@SuppressLint("NewApi")
class AppMenuDragHelper {
private final Activity mActivity;
private final AppMenu mAppMenu;
// Internally used action constants for dragging.
private static final int ITEM_ACTION_HIGHLIGHT = 0;
private static final int ITEM_ACTION_PERFORM = 1;
private static final int ITEM_ACTION_CLEAR_HIGHLIGHT_ALL = 2;
private static final float AUTO_SCROLL_AREA_MAX_RATIO = 0.25f;
// Dragging related variables, i.e., menu showing initiated by touch down and drag to navigate.
private final float mAutoScrollFullVelocity;
private final TimeAnimator mDragScrolling = new TimeAnimator();
private float mDragScrollOffset;
private int mDragScrollOffsetRounded;
private volatile float mDragScrollingVelocity;
private volatile float mLastTouchX;
private volatile float mLastTouchY;
private final int mItemRowHeight;
private boolean mIsSingleTapCanceled;
private int mMenuButtonScreenCenterY;
// These are used in a function locally, but defined here to avoid heap allocation on every
// touch event.
private final Rect mScreenVisibleRect = new Rect();
private final int[] mScreenVisiblePoint = new int[2];
private final int mTapTimeout;
private final int mScaledTouchSlop;
AppMenuDragHelper(Activity activity, AppMenu appMenu, int itemRowHeight) {
mActivity = activity;
mAppMenu = appMenu;
mItemRowHeight = itemRowHeight;
Resources res = mActivity.getResources();
mAutoScrollFullVelocity = res.getDimensionPixelSize(R.dimen.auto_scroll_full_velocity);
// If user is dragging and the popup ListView is too big to display at once,
// mDragScrolling animator scrolls mPopup.getListView() automatically depending on
// the user's touch position.
mDragScrolling.setTimeListener(new TimeAnimator.TimeListener() {
@Override
public void onTimeUpdate(TimeAnimator animation, long totalTime, long deltaTime) {
ListPopupWindow popup = mAppMenu.getPopup();
if (popup == null || popup.getListView() == null) return;
// We keep both mDragScrollOffset and mDragScrollOffsetRounded because
// the actual scrolling is by the rounded value but at the same time we also
// want to keep the precise scroll value in float.
mDragScrollOffset += (deltaTime * 0.001f) * mDragScrollingVelocity;
int diff = Math.round(mDragScrollOffset - mDragScrollOffsetRounded);
mDragScrollOffsetRounded += diff;
popup.getListView().smoothScrollBy(diff, 0);
// Force touch move event to highlight items correctly for the scrolled position.
if (!Float.isNaN(mLastTouchX) && !Float.isNaN(mLastTouchY)) {
menuItemAction(Math.round(mLastTouchX), Math.round(mLastTouchY),
ITEM_ACTION_HIGHLIGHT);
}
}
});
// We use medium timeout, the average of tap and long press timeouts. This is consistent
// with ListPopupWindow#ForwardingListener implementation.
mTapTimeout =
(ViewConfiguration.getTapTimeout() + ViewConfiguration.getLongPressTimeout()) / 2;
mScaledTouchSlop = ViewConfiguration.get(activity).getScaledTouchSlop();
}
/**
* Sets up all the internal state to prepare for menu dragging.
* @param startDragging Whether dragging is started. For example, if the app menu
* is showed by tapping on a button, this should be false. If it is
* showed by start dragging down on the menu button, this should be
* true.
*/
void onShow(boolean startDragging) {
mLastTouchX = Float.NaN;
mLastTouchY = Float.NaN;
mDragScrollOffset = 0.0f;
mDragScrollOffsetRounded = 0;
mDragScrollingVelocity = 0.0f;
mIsSingleTapCanceled = false;
if (startDragging) mDragScrolling.start();
}
/**
* Dragging mode will be stopped by calling this function. Note that it will fall back to normal
* non-dragging mode.
*/
void finishDragging() {
menuItemAction(0, 0, ITEM_ACTION_CLEAR_HIGHLIGHT_ALL);
mDragScrolling.cancel();
}
/**
* Gets all the touch events and updates dragging related logic. Note that if this app menu
* is initiated by software UI control, then the control should set onTouchListener and forward
* all the events to this method because the initial UI control that processed ACTION_DOWN will
* continue to get all the subsequent events.
*
* @param event Touch event to be processed.
* @param button Button that received the touch event.
* @return Whether the event is handled.
*/
boolean handleDragging(MotionEvent event, View button) {
if (!mAppMenu.isShowing() || !mDragScrolling.isRunning()) return false;
// We will only use the screen space coordinate (rawX, rawY) to reduce confusion.
// This code works across many different controls, so using local coordinates will be
// a disaster.
final float rawX = event.getRawX();
final float rawY = event.getRawY();
final int roundedRawX = Math.round(rawX);
final int roundedRawY = Math.round(rawY);
final int eventActionMasked = event.getActionMasked();
final long timeSinceDown = event.getEventTime() - event.getDownTime();
final ListView listView = mAppMenu.getPopup().getListView();
mLastTouchX = rawX;
mLastTouchY = rawY;
mMenuButtonScreenCenterY = getScreenVisibleRect(button).centerY();
if (eventActionMasked == MotionEvent.ACTION_CANCEL) {
mAppMenu.dismiss();
return true;
} else if (eventActionMasked == MotionEvent.ACTION_UP) {
nativeRecordAppMenuTouchDuration(timeSinceDown);
}
mIsSingleTapCanceled |= timeSinceDown > mTapTimeout;
mIsSingleTapCanceled |= !pointInView(button, event.getX(), event.getY(), mScaledTouchSlop);
if (!mIsSingleTapCanceled && eventActionMasked == MotionEvent.ACTION_UP) {
RecordUserAction.record("MobileUsingMenuBySwButtonTap");
finishDragging();
}
// After this line, drag scrolling is happening.
if (!mDragScrolling.isRunning()) return false;
boolean didPerformClick = false;
int itemAction = ITEM_ACTION_CLEAR_HIGHLIGHT_ALL;
switch (eventActionMasked) {
case MotionEvent.ACTION_DOWN:
case MotionEvent.ACTION_MOVE:
itemAction = ITEM_ACTION_HIGHLIGHT;
break;
case MotionEvent.ACTION_UP:
itemAction = ITEM_ACTION_PERFORM;
break;
default:
break;
}
didPerformClick = menuItemAction(roundedRawX, roundedRawY, itemAction);
if (eventActionMasked == MotionEvent.ACTION_UP && !didPerformClick) {
RecordUserAction.record("MobileUsingMenuBySwButtonDragging");
mAppMenu.dismiss();
} else if (eventActionMasked == MotionEvent.ACTION_MOVE) {
// Auto scrolling on the top or the bottom of the listView.
if (listView.getHeight() > 0) {
float autoScrollAreaRatio = Math.min(AUTO_SCROLL_AREA_MAX_RATIO,
mItemRowHeight * 1.2f / listView.getHeight());
float normalizedY =
(rawY - getScreenVisibleRect(listView).top) / listView.getHeight();
if (normalizedY < autoScrollAreaRatio) {
// Top
mDragScrollingVelocity = (normalizedY / autoScrollAreaRatio - 1.0f)
* mAutoScrollFullVelocity;
} else if (normalizedY > 1.0f - autoScrollAreaRatio) {
// Bottom
mDragScrollingVelocity = ((normalizedY - 1.0f) / autoScrollAreaRatio + 1.0f)
* mAutoScrollFullVelocity;
} else {
// Middle or not scrollable.
mDragScrollingVelocity = 0.0f;
}
}
}
return true;
}
private boolean pointInView(View view, float x, float y, float slop) {
return x >= -slop
&& y >= -slop
&& x < (view.getWidth() + slop)
&& y < (view.getHeight() + slop);
}
/**
* Performs the specified action on the menu item specified by the screen coordinate position.
* @param screenX X in screen space coordinate.
* @param screenY Y in screen space coordinate.
* @param action Action type to perform, it should be one of ITEM_ACTION_* constants.
* @return true whether or not a menu item is performed (executed).
*/
private boolean menuItemAction(int screenX, int screenY, int action) {
ListView listView = mAppMenu.getPopup().getListView();
// Starting M, we have a popup menu animation that slides down. If we process dragging
// events while it's sliding, it will touch many views that are passing by user's finger,
// which is not desirable. So we only process when the first item is below the menu button.
// Unfortunately, there is no available listener for sliding animation finished. Thus the
// following nasty heuristics.
final View firstRow = listView.getChildAt(0);
if (listView.getFirstVisiblePosition() == 0
&& firstRow != null
&& firstRow.getTop() == 0
&& getScreenVisibleRect(firstRow).bottom <= mMenuButtonScreenCenterY) {
return false;
}
ArrayList<View> itemViews = new ArrayList<View>();
for (int i = 0; i < listView.getChildCount(); ++i) {
boolean hasImageButtons = false;
if (listView.getChildAt(i) instanceof LinearLayout) {
LinearLayout layout = (LinearLayout) listView.getChildAt(i);
for (int j = 0; j < layout.getChildCount(); ++j) {
itemViews.add(layout.getChildAt(j));
if (layout.getChildAt(j) instanceof ImageButton) hasImageButtons = true;
}
}
if (!hasImageButtons) itemViews.add(listView.getChildAt(i));
}
boolean didPerformClick = false;
for (int i = 0; i < itemViews.size(); ++i) {
View itemView = itemViews.get(i);
boolean shouldPerform = itemView.isEnabled() && itemView.isShown()
&& getScreenVisibleRect(itemView).contains(screenX, screenY);
switch (action) {
case ITEM_ACTION_HIGHLIGHT:
itemView.setPressed(shouldPerform);
break;
case ITEM_ACTION_PERFORM:
if (shouldPerform) {
RecordUserAction.record("MobileUsingMenuBySwButtonDragging");
itemView.performClick();
didPerformClick = true;
}
break;
case ITEM_ACTION_CLEAR_HIGHLIGHT_ALL:
itemView.setPressed(false);
break;
default:
assert false;
break;
}
}
return didPerformClick;
}
/**
* @return Visible rect in screen coordinates for the given View.
*/
private Rect getScreenVisibleRect(View view) {
view.getLocalVisibleRect(mScreenVisibleRect);
view.getLocationOnScreen(mScreenVisiblePoint);
mScreenVisibleRect.offset(mScreenVisiblePoint[0], mScreenVisiblePoint[1]);
return mScreenVisibleRect;
}
private static native void nativeRecordAppMenuTouchDuration(long timeMs);
}
| [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
eac0ec939561b32a5969b392172d6ab11ffadda4 | 49561a469b9e32ddc54655d27e61233275feceb8 | /app/src/main/java/fanpeihua/huamusic/base/BaseActivity.java | 2eaa1e08aa0fe48dea7959f52e2d8fdd55d289fb | [] | no_license | fanpeihua/HuaMusic | 43f5ff0d98d7b396c002d0c9b5be58828d5ba0ae | 0471c70370fe0de9d6cd9696befbc592475d5e8b | refs/heads/master | 2020-03-12T06:07:16.056182 | 2018-11-09T09:58:42 | 2018-11-09T09:58:42 | 130,478,547 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,198 | java | package fanpeihua.huamusic.base;
import android.content.ServiceConnection;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.View;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;
import javax.inject.Inject;
import butterknife.BindView;
import butterknife.Unbinder;
import fanpeihua.huamusic.R;
import fanpeihua.huamusic.di.component.ActivityComponent;
public abstract class BaseActivity<T extends BaseContract.BasePresenter> extends RxAppCompatActivity
implements ServiceConnection, BaseContract.BaseView {
@Nullable
@Inject
protected T mPresenter;
protected ActivityComponent mActivityComponent;
@Nullable
@BindView(R.id.error_button_retry)
public View emptyButtonRetry;
@Nullable
@BindView(R.id.error_message_view)
public View errorTextView;
@Nullable
@BindView(R.id.swipe_refresh)
public SwipeRefreshLayout mSwipeRefreshLayout;
// empty state view
// error panel
// loading progress bar
// Toolbar
protected Handler mHandler;
private Unbinder unbinder;
// private PlayerManager
}
| [
"fph19930825@163.com"
] | fph19930825@163.com |
19ad079288992fa25a57b257d59b50550ce1b50d | b60844e059a5ee7c4d8d2d030dd782a8c3386f50 | /app/src/main/java/com/irmadevelop/authentication/WelcomeActivity.java | 0d70f05da34b031a004dd653b022b5988fe4deb0 | [] | no_license | irmaDevelop/firebase | 4623647bf98c0a3b2bbaa330f4357e5243aa2e55 | d778418562cd56ac32debaa8b7b7bca2d43c4693 | refs/heads/master | 2020-04-09T11:00:09.543113 | 2018-12-06T14:01:09 | 2018-12-06T14:01:09 | 160,291,316 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,806 | java | package com.irmadevelop.authentication;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import com.facebook.login.LoginManager;
import com.google.android.gms.auth.api.Auth;
import com.google.android.gms.auth.api.signin.GoogleSignInOptions;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedListener;
import com.google.android.gms.common.api.ResultCallback;
import com.google.android.gms.common.api.Status;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;
import com.squareup.picasso.Picasso;
public class WelcomeActivity extends AppCompatActivity implements GoogleApiClient.OnConnectionFailedListener{
private static final String TAG = "WelcomeActivity";
private FirebaseAuth firebaseAuth;
private FirebaseAuth.AuthStateListener authStateListener;
private GoogleApiClient googleApiClient;
private TextView tvUserDetail;
private Button btnSignOut;
private ImageView imvPhoto;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_welcome);
tvUserDetail=(TextView) findViewById(R.id.tvUserDetail);
btnSignOut=(Button) findViewById(R.id.btnSingOut);
imvPhoto=(ImageView) findViewById(R.id.imvPhoto);
inicialize();
btnSignOut.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
//cuando alguien de clic al boton sign out se debe cerrar la sesion
signOut();
}
});
}
private void signOut(){
firebaseAuth.signOut();
if (Auth.GoogleSignInApi != null){
Auth.GoogleSignInApi.signOut(googleApiClient).setResultCallback(new ResultCallback<Status>() {
@Override
public void onResult(@NonNull Status status) {
if (status.isSuccess()){
//aqui se finaliza la ejecucion de la presente actividad, y se manda ejecuta el main
//que es la actividad inicial.
Intent i = new Intent(WelcomeActivity.this , MainActivity.class);
startActivity(i);
finish();
}
else{
//No salir permanecer, quedarse y mostrar un mensaje
Toast.makeText(WelcomeActivity.this, "Error in Google Sign Out", Toast.LENGTH_SHORT).show();
}
}
});
}
if (LoginManager.getInstance() !=null){
LoginManager.getInstance().logOut();
}
}
private void inicialize(){
//detecta que algo paso en la sesion entonces muestra los datos del usuario
firebaseAuth = FirebaseAuth.getInstance();
authStateListener = new FirebaseAuth.AuthStateListener() {
@Override
public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {
FirebaseUser firebaseUser = firebaseAuth.getCurrentUser();
if (firebaseUser != null) {
tvUserDetail.setText("IDUser: " + firebaseUser.getUid() + " Email: " + firebaseUser.getEmail() + "Url: " + firebaseUser.getPhotoUrl());
Picasso.get().load(firebaseUser.getPhotoUrl()).into(imvPhoto);
} else {
Log.w(TAG, "onAuthStateChanged - signed_out");
}
}
};
//Inicializacion de Google Account
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestIdToken(getString(R.string.default_web_client_id))
.requestEmail()
.build();
googleApiClient = new GoogleApiClient.Builder(this)
.enableAutoManage(this,this)
.addApi(Auth.GOOGLE_SIGN_IN_API, gso)
.build();
}
@Override
protected void onStart() {
super.onStart();
firebaseAuth.addAuthStateListener(authStateListener);
}
@Override
protected void onStop() {
super.onStop();
firebaseAuth.addAuthStateListener(authStateListener);
}
@Override
public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {
}
}
| [
"irmajuliadavila@icloud.com"
] | irmajuliadavila@icloud.com |
7ac247a8fb07ae4aa5a97a877c3474ae83e83e57 | 38935b55d38d5b2a705409ab43e6dbcc5cc3d684 | /browser_Selenium/src-gen/org/xtext/example/mydsl/myDsl/impl/StringTypeImpl.java | beb8787177e774419937b1afa2b7d90bd0617a01 | [] | no_license | Thomas-dot-G/DSL_Selenium | bd3ef29177f6f695d61564a76850212c323118c9 | 1750de3bb44a4d43553bf9565545aa31eeed7443 | refs/heads/master | 2021-01-10T15:15:39.473369 | 2016-02-21T22:41:05 | 2016-02-21T22:41:05 | 51,580,525 | 0 | 0 | null | 2016-02-20T21:20:49 | 2016-02-12T10:23:39 | Java | UTF-8 | Java | false | false | 8,090 | java | /**
* generated by Xtext 2.9.1
*/
package org.xtext.example.mydsl.myDsl.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.xtext.example.mydsl.myDsl.MyDslPackage;
import org.xtext.example.mydsl.myDsl.StringType;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>String Type</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.xtext.example.mydsl.myDsl.impl.StringTypeImpl#getText <em>Text</em>}</li>
* <li>{@link org.xtext.example.mydsl.myDsl.impl.StringTypeImpl#getElts <em>Elts</em>}</li>
* <li>{@link org.xtext.example.mydsl.myDsl.impl.StringTypeImpl#getElt <em>Elt</em>}</li>
* <li>{@link org.xtext.example.mydsl.myDsl.impl.StringTypeImpl#getCond <em>Cond</em>}</li>
* </ul>
*
* @generated
*/
public class StringTypeImpl extends MinimalEObjectImpl.Container implements StringType
{
/**
* The default value of the '{@link #getText() <em>Text</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getText()
* @generated
* @ordered
*/
protected static final String TEXT_EDEFAULT = null;
/**
* The cached value of the '{@link #getText() <em>Text</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getText()
* @generated
* @ordered
*/
protected String text = TEXT_EDEFAULT;
/**
* The default value of the '{@link #getElts() <em>Elts</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getElts()
* @generated
* @ordered
*/
protected static final String ELTS_EDEFAULT = null;
/**
* The cached value of the '{@link #getElts() <em>Elts</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getElts()
* @generated
* @ordered
*/
protected String elts = ELTS_EDEFAULT;
/**
* The default value of the '{@link #getElt() <em>Elt</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getElt()
* @generated
* @ordered
*/
protected static final String ELT_EDEFAULT = null;
/**
* The cached value of the '{@link #getElt() <em>Elt</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getElt()
* @generated
* @ordered
*/
protected String elt = ELT_EDEFAULT;
/**
* The default value of the '{@link #getCond() <em>Cond</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCond()
* @generated
* @ordered
*/
protected static final String COND_EDEFAULT = null;
/**
* The cached value of the '{@link #getCond() <em>Cond</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCond()
* @generated
* @ordered
*/
protected String cond = COND_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected StringTypeImpl()
{
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass()
{
return MyDslPackage.Literals.STRING_TYPE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getText()
{
return text;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setText(String newText)
{
String oldText = text;
text = newText;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, MyDslPackage.STRING_TYPE__TEXT, oldText, text));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getElts()
{
return elts;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setElts(String newElts)
{
String oldElts = elts;
elts = newElts;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, MyDslPackage.STRING_TYPE__ELTS, oldElts, elts));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getElt()
{
return elt;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setElt(String newElt)
{
String oldElt = elt;
elt = newElt;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, MyDslPackage.STRING_TYPE__ELT, oldElt, elt));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getCond()
{
return cond;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setCond(String newCond)
{
String oldCond = cond;
cond = newCond;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, MyDslPackage.STRING_TYPE__COND, oldCond, cond));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
switch (featureID)
{
case MyDslPackage.STRING_TYPE__TEXT:
return getText();
case MyDslPackage.STRING_TYPE__ELTS:
return getElts();
case MyDslPackage.STRING_TYPE__ELT:
return getElt();
case MyDslPackage.STRING_TYPE__COND:
return getCond();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue)
{
switch (featureID)
{
case MyDslPackage.STRING_TYPE__TEXT:
setText((String)newValue);
return;
case MyDslPackage.STRING_TYPE__ELTS:
setElts((String)newValue);
return;
case MyDslPackage.STRING_TYPE__ELT:
setElt((String)newValue);
return;
case MyDslPackage.STRING_TYPE__COND:
setCond((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID)
{
switch (featureID)
{
case MyDslPackage.STRING_TYPE__TEXT:
setText(TEXT_EDEFAULT);
return;
case MyDslPackage.STRING_TYPE__ELTS:
setElts(ELTS_EDEFAULT);
return;
case MyDslPackage.STRING_TYPE__ELT:
setElt(ELT_EDEFAULT);
return;
case MyDslPackage.STRING_TYPE__COND:
setCond(COND_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID)
{
switch (featureID)
{
case MyDslPackage.STRING_TYPE__TEXT:
return TEXT_EDEFAULT == null ? text != null : !TEXT_EDEFAULT.equals(text);
case MyDslPackage.STRING_TYPE__ELTS:
return ELTS_EDEFAULT == null ? elts != null : !ELTS_EDEFAULT.equals(elts);
case MyDslPackage.STRING_TYPE__ELT:
return ELT_EDEFAULT == null ? elt != null : !ELT_EDEFAULT.equals(elt);
case MyDslPackage.STRING_TYPE__COND:
return COND_EDEFAULT == null ? cond != null : !COND_EDEFAULT.equals(cond);
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString()
{
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (text: ");
result.append(text);
result.append(", elts: ");
result.append(elts);
result.append(", elt: ");
result.append(elt);
result.append(", cond: ");
result.append(cond);
result.append(')');
return result.toString();
}
} //StringTypeImpl
| [
"thomas.garesse@gmail.com"
] | thomas.garesse@gmail.com |
5581a1bee13ed31186c1548eadd280cb3e01251a | 311a0d7e7dcacf2312fc7a01a37dbc62770306e2 | /src/main/java/com/caoc/test/goodException/exceptions/BusinessException.java | 559e373a60c14869ef689566910ee7cbaa37a5ee | [] | no_license | aizen1984/all-test | d7cc93cdf22d756be92c93d7db79ec567469e9ec | 7af729da7f3d4333a47254588aa309a2d1b685c9 | refs/heads/master | 2022-06-28T22:25:08.874297 | 2021-08-30T08:56:59 | 2021-08-30T08:56:59 | 207,789,556 | 1 | 0 | null | 2022-06-17T02:48:56 | 2019-09-11T10:54:35 | Java | UTF-8 | Java | false | false | 505 | java | package com.caoc.test.goodException.exceptions;
import com.caoc.test.goodException.constant.enums.IResponseEnum;
public class BusinessException extends BaseException {
private static final long serialVersionUID = 1L;
public BusinessException(IResponseEnum responseEnum, Object[] args, String message) {
super(responseEnum, args, message);
}
public BusinessException(IResponseEnum responseEnum, Object[] args, String message, Throwable cause) {
super(responseEnum, args, message, cause);
}
}
| [
"n_f.s@163.com"
] | n_f.s@163.com |
4d0ccc666e2697a93de80b8d4c7561005ff7f1e6 | a6f020019cf3a2b7fd7de3c2d88ceba98a3e2271 | /jaxrs/src/main/java/me/philcali/api/gateway/jaxrs/reflection/ReflectionUtils.java | 6bc92851cb042d5fa5c66bc80142c57638f9ec38 | [] | no_license | philcali/api-gateway-jaxrs | edc019a3853a282d979b7a8fb5a66930b1adb277 | 10c0dc3218cd5d5ce752bac092711e5fc616140a | refs/heads/master | 2020-07-31T16:27:52.105288 | 2017-02-06T00:45:49 | 2017-02-06T00:45:49 | 73,595,859 | 1 | 0 | null | 2017-02-06T00:45:50 | 2016-11-13T04:42:36 | Java | UTF-8 | Java | false | false | 1,632 | java | package me.philcali.api.gateway.jaxrs.reflection;
import java.lang.reflect.Parameter;
import java.util.Map;
import java.util.Optional;
class ReflectionUtils {
private ReflectionUtils() {
}
public static Optional<Object> findContextType(Map<String, Object> context, Parameter param) {
return findContextType(context, param.getType());
}
public static Optional<Object> findContextType(Map<String, Object> context, Class<?> paramType) {
return context.values().stream().filter(value -> isAssignable(paramType, value.getClass())).findFirst();
}
private static boolean isAssignable(Class<?> paramC, Class<?> valueC) {
if (paramC.isPrimitive() && valueC.isPrimitive()) {
return paramC.equals(valueC);
} else if (paramC.isPrimitive() && !valueC.isPrimitive()) {
switch (valueC.getName()) {
case "java.lang.Integer":
return paramC.equals(Integer.TYPE);
case "java.lang.Double":
return paramC.equals(Double.TYPE);
case "java.lang.Long":
return paramC.equals(Long.TYPE);
case "java.lang.Boolean":
return paramC.equals(Boolean.TYPE);
case "java.lang.Short":
return paramC.equals(Short.TYPE);
case "java.lang.Float":
return paramC.equals(Float.TYPE);
case "java.lang.Byte":
return paramC.equals(Byte.TYPE);
default:
return false;
}
} else {
return paramC.isAssignableFrom(valueC);
}
}
}
| [
"philip.cali@gmail.com"
] | philip.cali@gmail.com |
73daa46c61af222239ccabeeb89a0cbcbc2836e5 | e81e2e80386206ed91d391b8fb6730ac644fb231 | /java-project/src28-before/main/java/java100/app/control/GenericController.java | aaaff7fc16c7d31c3f2aa9354159be18b0cd8391 | [] | no_license | jaehoon166/bitcamp | d7b696994eba998dd235377a839d7a3890e1a172 | b958146a82c74cf9e5e40572fb699ce6e76e49ca | refs/heads/master | 2021-08-23T17:53:33.234778 | 2017-12-06T00:09:43 | 2017-12-06T00:09:43 | 104,423,425 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 267 | java | package java100.app.control;
import java.util.ArrayList;
import java.util.Scanner;
public class GenericController<T> {
static Scanner keyScan = new Scanner(System.in);
protected ArrayList<T> list = new ArrayList<>();
public void execute() {
}
}
| [
"jaehoon166@gmail.com"
] | jaehoon166@gmail.com |
111f7dfd3c92ab27f03d89c019250c0551bfc0d2 | 2791763b7c372f8777790f169db15d8d59710d08 | /src/main/java/onix/social/logos/TextContent.java | 5f74aa4968e57bb66744248cfbb2e3baf6e13bfc | [] | no_license | log-os/gutenberg-project | a619a82921757f379340e6293aa1f616862bdfb1 | 7f6ae6256228dff9eafdb9cffd82c1688693d288 | refs/heads/master | 2021-07-15T19:07:57.773593 | 2017-10-20T06:48:59 | 2017-10-20T06:48:59 | 77,812,644 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 13,029 | java | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.2-147
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.12.09 at 07:39:09 PM IST
//
package onix.social.logos;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://ns.editeur.org/onix/3.0/reference}TextType"/>
* <element ref="{http://ns.editeur.org/onix/3.0/reference}ContentAudience" maxOccurs="unbounded"/>
* <element ref="{http://ns.editeur.org/onix/3.0/reference}Territory" minOccurs="0"/>
* <element ref="{http://ns.editeur.org/onix/3.0/reference}Text" maxOccurs="unbounded"/>
* <element ref="{http://ns.editeur.org/onix/3.0/reference}ReviewRating" minOccurs="0"/>
* <element ref="{http://ns.editeur.org/onix/3.0/reference}TextAuthor" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://ns.editeur.org/onix/3.0/reference}TextSourceCorporate" minOccurs="0"/>
* <element ref="{http://ns.editeur.org/onix/3.0/reference}SourceTitle" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://ns.editeur.org/onix/3.0/reference}ContentDate" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attGroup ref="{http://ns.editeur.org/onix/3.0/reference}generalAttributes"/>
* <attribute name="refname">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="TextContent"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="shortname">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="textcontent"/>
* </restriction>
* </simpleType>
* </attribute>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"textType",
"contentAudience",
"territory",
"text",
"reviewRating",
"textAuthor",
"textSourceCorporate",
"sourceTitle",
"contentDate"
})
@XmlRootElement(name = "TextContent")
public class TextContent {
@XmlElement(name = "TextType", required = true)
protected TextType textType;
@XmlElement(name = "ContentAudience", required = true)
protected List<ContentAudience> contentAudience;
@XmlElement(name = "Territory")
protected Territory territory;
@XmlElement(name = "Text", required = true)
protected List<Text> text;
@XmlElement(name = "ReviewRating")
protected ReviewRating reviewRating;
@XmlElement(name = "TextAuthor")
protected List<TextAuthor> textAuthor;
@XmlElement(name = "TextSourceCorporate")
protected TextSourceCorporate textSourceCorporate;
@XmlElement(name = "SourceTitle")
protected List<SourceTitle> sourceTitle;
@XmlElement(name = "ContentDate")
protected List<ContentDate> contentDate;
@XmlAttribute(name = "refname")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String refname;
@XmlAttribute(name = "shortname")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String shortname;
@XmlAttribute(name = "datestamp")
protected String datestamp;
@XmlAttribute(name = "sourcetype")
protected String sourcetype;
@XmlAttribute(name = "sourcename")
@XmlSchemaType(name = "anySimpleType")
protected String sourcename;
/**
* Gets the value of the textType property.
*
* @return
* possible object is
* {@link TextType }
*
*/
public TextType getTextType() {
return textType;
}
/**
* Sets the value of the textType property.
*
* @param value
* allowed object is
* {@link TextType }
*
*/
public void setTextType(TextType value) {
this.textType = value;
}
/**
* Gets the value of the contentAudience property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the contentAudience property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContentAudience().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ContentAudience }
*
*
*/
public List<ContentAudience> getContentAudience() {
if (contentAudience == null) {
contentAudience = new ArrayList<ContentAudience>();
}
return this.contentAudience;
}
/**
* Gets the value of the territory property.
*
* @return
* possible object is
* {@link Territory }
*
*/
public Territory getTerritory() {
return territory;
}
/**
* Sets the value of the territory property.
*
* @param value
* allowed object is
* {@link Territory }
*
*/
public void setTerritory(Territory value) {
this.territory = value;
}
/**
* Gets the value of the text property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the text property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getText().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Text }
*
*
*/
public List<Text> getText() {
if (text == null) {
text = new ArrayList<Text>();
}
return this.text;
}
/**
* Gets the value of the reviewRating property.
*
* @return
* possible object is
* {@link ReviewRating }
*
*/
public ReviewRating getReviewRating() {
return reviewRating;
}
/**
* Sets the value of the reviewRating property.
*
* @param value
* allowed object is
* {@link ReviewRating }
*
*/
public void setReviewRating(ReviewRating value) {
this.reviewRating = value;
}
/**
* Gets the value of the textAuthor property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the textAuthor property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTextAuthor().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TextAuthor }
*
*
*/
public List<TextAuthor> getTextAuthor() {
if (textAuthor == null) {
textAuthor = new ArrayList<TextAuthor>();
}
return this.textAuthor;
}
/**
* Gets the value of the textSourceCorporate property.
*
* @return
* possible object is
* {@link TextSourceCorporate }
*
*/
public TextSourceCorporate getTextSourceCorporate() {
return textSourceCorporate;
}
/**
* Sets the value of the textSourceCorporate property.
*
* @param value
* allowed object is
* {@link TextSourceCorporate }
*
*/
public void setTextSourceCorporate(TextSourceCorporate value) {
this.textSourceCorporate = value;
}
/**
* Gets the value of the sourceTitle property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the sourceTitle property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSourceTitle().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link SourceTitle }
*
*
*/
public List<SourceTitle> getSourceTitle() {
if (sourceTitle == null) {
sourceTitle = new ArrayList<SourceTitle>();
}
return this.sourceTitle;
}
/**
* Gets the value of the contentDate property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the contentDate property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContentDate().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ContentDate }
*
*
*/
public List<ContentDate> getContentDate() {
if (contentDate == null) {
contentDate = new ArrayList<ContentDate>();
}
return this.contentDate;
}
/**
* Gets the value of the refname property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRefname() {
return refname;
}
/**
* Sets the value of the refname property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRefname(String value) {
this.refname = value;
}
/**
* Gets the value of the shortname property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getShortname() {
return shortname;
}
/**
* Sets the value of the shortname property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setShortname(String value) {
this.shortname = value;
}
/**
* Gets the value of the datestamp property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDatestamp() {
return datestamp;
}
/**
* Sets the value of the datestamp property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDatestamp(String value) {
this.datestamp = value;
}
/**
* Gets the value of the sourcetype property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSourcetype() {
return sourcetype;
}
/**
* Sets the value of the sourcetype property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSourcetype(String value) {
this.sourcetype = value;
}
/**
* Gets the value of the sourcename property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSourcename() {
return sourcename;
}
/**
* Sets the value of the sourcename property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSourcename(String value) {
this.sourcename = value;
}
}
| [
"naresh.uppada@gmail.com"
] | naresh.uppada@gmail.com |
8bf9f0d7d96bcd276594adcee62b57574dfe2166 | 2448d6c8338ea5328aa44da6ca27cb54d37a2196 | /common/src/main/java/org/broadleafcommerce/common/cache/engine/HydrationItemDescriptor.java | 391cce6ae0d26f43e3a65d58c588d0d879e4b2ed | [] | no_license | RDeztroyer/StartUP-master | 8077240074816a3535eac309a009d9d0d5e36df6 | 5262bbd0a5225529a38e5a68eb651177b029050c | refs/heads/master | 2023-03-05T20:08:52.418953 | 2013-07-06T17:44:38 | 2013-07-06T17:44:38 | 338,304,002 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,214 | java | /*
* Copyright 2008-2012 the original author or 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 agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.broadleafcommerce.common.cache.engine;
import java.lang.reflect.Method;
/**
*
* @author jfischer
*
*/
public class HydrationItemDescriptor {
private String factoryMethod;
private Method[] mutators;
public String getFactoryMethod() {
return factoryMethod;
}
public void setFactoryMethod(String factoryMethod) {
this.factoryMethod = factoryMethod;
}
public Method[] getMutators() {
return mutators;
}
public void setMutators(Method[] mutators) {
this.mutators = mutators;
}
}
| [
"bharath.abcom@gmail.com"
] | bharath.abcom@gmail.com |
b506254d1e3fa5ed7443748f92fcbef1a404287c | 206e19488db291434a8f0cf19a0391719319ff1b | /src/org/xadzkd/domain/AuditTime.java | fe868bfb1839cd403e6c12e1d8e97eb5390f12c8 | [] | no_license | yuzhicheng/ModelWorker | b7ffedeb22582d5be1a831d140b6cc9c22d2ef9e | 674bc6d7107a6c4241551bbac222d8c56abae2f7 | refs/heads/master | 2020-12-25T05:55:43.413056 | 2016-07-14T06:40:27 | 2016-07-14T06:40:27 | 63,306,840 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 519 | java | package org.xadzkd.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="auditTime")
public class AuditTime
{
/**
* id有且仅有1
*/
@Id
@Column
private Long id;
@Column
private Boolean start;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Boolean getStart() {
return start;
}
public void setStart(Boolean start) {
this.start = start;
}
}
| [
"1799281706@qq.com"
] | 1799281706@qq.com |
da3c930f8bd537ac90e7f5cbaea6e55a03fdad1e | b253b560d4d9863d314675b3130b3c3a4224d48a | /app/src/test/java/com/example/android/bargainmate/ExampleUnitTest.java | 5390988f9336cb93082b1ceb195b7b5fdc6dd5d1 | [] | no_license | nebed/BargainMate | 8158743089a9c89f0acb322306cc3d3ca9774082 | b9294b035b282cedd306781450fe329ed0992852 | refs/heads/master | 2020-04-10T17:46:28.255930 | 2018-12-08T20:23:33 | 2018-12-08T20:23:33 | 160,823,358 | 0 | 0 | null | 2018-12-10T13:56:24 | 2018-12-07T12:51:25 | Java | UTF-8 | Java | false | false | 409 | java | package com.example.android.bargainmate;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} | [
"anekepeter47@gmail.com"
] | anekepeter47@gmail.com |
b4e838677c80961f376e73a7b4743ef1086b31f4 | 6153167380a820c63f176e48bb5cd541d6be8807 | /src/TB10_Perkantoran/Gaji.java | ac210c35a24664db947bd4da6966473642c3c0ed | [] | no_license | ZeR-000/OOP_1918090 | c8cba2d109ec6e9ed0d8ea12c5af4231e419c435 | 506dbf34ed0064b8ba25cd9cbe3fed592d93d1a3 | refs/heads/master | 2023-02-03T08:34:15.690675 | 2020-12-20T05:19:28 | 2020-12-20T05:19:28 | 322,857,303 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 387 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package TB10_Perkantoran;
import TB8_Perkantoran.*;
/**
*
* @author USER
*/
public abstract class Gaji {
protected int hasil, total;
protected abstract int Gaji();
}
| [
"muhammadardhinurrasyid@gmail.com"
] | muhammadardhinurrasyid@gmail.com |
7d22be68ca11af0e7ba0537532da18a412717900 | c445c8ebe889f813651a06de5f7ada4a8ded43c0 | /src/main/java/com/patterns/structural/adapter/Pump/Ball.java | 2f9b1b4a490b97560b4bb35e7ba3b0869ec3ebba | [] | no_license | Vladimir1506/Patterns | ff7e647cab9894b8ddc840d3b80852fe8099ad7f | 1e9c5a24b96370809fee7b6509d9c5c2137d525e | refs/heads/main | 2023-03-15T10:28:53.202710 | 2021-03-24T21:40:02 | 2021-03-24T21:40:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 149 | java | public class Ball implements BallPump {
@Override
public void pumpUpBall() {
System.out.println("Ball is being pumped...");
}
}
| [
"kuro4king@gmail.com"
] | kuro4king@gmail.com |
1f5c384699522f41fbf3d7ce307377d8b46ceb58 | bfbfdb87807191e08f40a3853b000cd5d8da47d8 | /common/service/facade/src/main/java/com/xianglin/appserv/common/service/facade/model/vo/PageParam.java | 04b6c9951cb1f342aa6e4182a56f9f298852f30b | [] | no_license | 1amfine2333/appserv | df73926f5e70b8c265cc32277d8bf76af06444cc | ca33ff0f9bc3b5daf0ee32f405a2272cc4673ffa | refs/heads/master | 2021-10-10T09:59:03.114589 | 2019-01-09T05:39:20 | 2019-01-09T05:40:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 781 | java | package com.xianglin.appserv.common.service.facade.model.vo;
import java.io.Serializable;
/**
* @author xingyali
* @description Created by xingyali
*/
public class PageParam<T> implements Serializable {
private static final long serialVersionUID = 1604192717721580125L;
private int pageSize;
private int curPage;
private T param;
public int getPageSize() {
return pageSize;
}
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
}
public int getCurPage() {
return curPage;
}
public void setCurPage(int curPage) {
this.curPage = curPage;
}
public T getParam() {
return param;
}
public void setParam(T param) {
this.param = param;
}
}
| [
"wangleitom@126.com"
] | wangleitom@126.com |
3c1ca468ec172acd6b32d6eab472d92d9b674cc3 | 0af8b92686a58eb0b64e319b22411432aca7a8f3 | /api-vs-impl-small/domain/src/main/java/org/gradle/testdomain/performancenull_34/Productionnull_3377.java | d8e1d76d9275bdce889c3755891abfbc3a926060 | [] | no_license | gradle/performance-comparisons | b0d38db37c326e0ce271abebdb3c91769b860799 | e53dc7182fafcf9fedf07920cbbea8b40ee4eef4 | refs/heads/master | 2023-08-14T19:24:39.164276 | 2022-11-24T05:18:33 | 2022-11-24T05:18:33 | 80,121,268 | 17 | 15 | null | 2022-09-30T08:04:35 | 2017-01-26T14:25:33 | null | UTF-8 | Java | false | false | 591 | java | package org.gradle.testdomain.performancenull_34;
public class Productionnull_3377 {
private final String property;
public Productionnull_3377(String param) {
this.property = param;
}
public String getProperty() {
return property;
}
private String prop0;
public String getProp0() {
return prop0;
}
public void setProp0(String value) {
prop0 = value;
}
private String prop1;
public String getProp1() {
return prop1;
}
public void setProp1(String value) {
prop1 = value;
}
}
| [
"cedric.champeau@gmail.com"
] | cedric.champeau@gmail.com |
6846bc3230ed0621c6990f9dcb290e9b9b34d6dd | 722deb2dc4dc683f5da09f0a668ac07f8b6f7aaf | /webflux.intro/src/main/clients/WebClientExample2.java | 8f0e9b27167b33c46b2e95f1dae539ea2e392bea | [] | no_license | anatali/iss2020LabBo | f98874d961b10feaea760c5c78edf9f322372e75 | 60282c8b2160792348516130c2ac33eb92919746 | refs/heads/master | 2022-12-20T10:14:42.736826 | 2021-06-08T09:27:31 | 2021-06-08T09:27:31 | 241,646,373 | 2 | 3 | null | 2022-12-12T05:16:03 | 2020-02-19T14:45:07 | HTML | UTF-8 | Java | false | false | 805 | java | package clients;
import org.springframework.web.reactive.function.client.WebClient;
import reactor.core.publisher.Mono;
public class WebClientExample2 {
public static void main(String[] args) throws InterruptedException {
WebClient webClient = WebClient.create("http://localhost:8082");
Mono<String> result = webClient.get()
.retrieve()
.bodyToMono(String.class);
result.subscribe(WebClientExample2::handleResponse);
System.out.println("After subscribe");
//wait for a while for the response
Thread.sleep(1000);
}
private static void handleResponse(String s) {
System.out.println("WebClientExample2 handle response");
System.out.println(s);
}
} | [
"antonio.natali@unibo.it"
] | antonio.natali@unibo.it |
b9e4962d5b37784a101098831fdd533c4a984022 | e6bd810b35471bc39e472c01fe86affe7685c89c | /mobicomkitui/src/main/java/com/applozic/mobicomkit/uiwidgets/conversation/activity/MobicomLocationActivity.java | e4143e67f41507acb8c0473dfbdaa94fede250f9 | [] | no_license | konstantinos41/Hyperchat | 183c6decbe256bde9c71cb5e1c1cea59cc9d606a | c235a2085d1b2250419f52bd229d00f1855bb154 | refs/heads/master | 2021-07-10T17:56:40.259123 | 2017-10-12T12:54:37 | 2017-10-12T12:54:37 | 72,199,757 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 9,253 | java | package com.applozic.mobicomkit.uiwidgets.conversation.activity;
import android.Manifest;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.location.Location;
import android.location.LocationManager;
import android.os.Bundle;
import android.provider.Settings;
import android.support.design.widget.Snackbar;
import android.support.v4.app.ActivityCompat;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.Toast;
import com.applozic.mobicomkit.uiwidgets.R;
import com.applozic.mobicomkit.uiwidgets.conversation.ConversationUIService;
import com.applozic.mobicommons.commons.core.utils.PermissionsUtils;
import com.applozic.mobicommons.commons.core.utils.Utils;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.location.LocationListener;
import com.google.android.gms.location.LocationRequest;
import com.google.android.gms.location.LocationServices;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.OnMapReadyCallback;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;
import com.applozic.mobicomkit.uiwidgets.instruction.ApplozicPermissions;
public class MobicomLocationActivity extends AppCompatActivity implements OnMapReadyCallback, LocationListener, GoogleApiClient.OnConnectionFailedListener, GoogleApiClient.ConnectionCallbacks, ActivityCompat.OnRequestPermissionsResultCallback {
SupportMapFragment mapFragment;
LatLng position;
RelativeLayout sendLocation;
private LinearLayout layout;
public Snackbar snackbar;
Location mCurrentLocation;
protected GoogleApiClient googleApiClient;
private LocationRequest locationRequest;
public static final int LOCATION_SERVICE_ENABLE = 1001;
protected static final long UPDATE_INTERVAL = 5;
protected static final long FASTEST_INTERVAL = 1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_applozic_location);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar_map_screen);
toolbar.setTitle("Send Location");
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
sendLocation = (RelativeLayout) findViewById(R.id.sendLocation);
mapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);
googleApiClient = new GoogleApiClient.Builder(getApplicationContext())
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.addApi(LocationServices.API).build();
onNewIntent(getIntent());
processLocation();
}
@Override
public void onMapReady(GoogleMap googleMap) {
position = new LatLng(mCurrentLocation.getLatitude(), mCurrentLocation.getLongitude());
googleMap.addMarker(new MarkerOptions().position(position).title(""));
googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(position, 20));
googleMap.animateCamera(CameraUpdateFactory.zoomTo(17), 2000, null);
sendLocation.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Log.i("test", "in map");
Intent intent = new Intent();
intent.putExtra("latitude", mCurrentLocation.getLatitude());
intent.putExtra("longitude", mCurrentLocation.getLongitude());
setResult(RESULT_OK, intent);
finish();
}
});
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
new ConversationUIService(this).onActivityResult(requestCode, resultCode, data);
if (requestCode == LOCATION_SERVICE_ENABLE) {
if (((LocationManager) getSystemService(Context.LOCATION_SERVICE))
.isProviderEnabled(LocationManager.GPS_PROVIDER)) {
googleApiClient.connect();
} else {
Toast.makeText(MobicomLocationActivity.this, R.string.unable_to_fetch_location, Toast.LENGTH_LONG).show();
}
return;
}
}
public void processingLocation() {
if (!((LocationManager) getSystemService(Context.LOCATION_SERVICE))
.isProviderEnabled(LocationManager.GPS_PROVIDER)) {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle(R.string.location_services_disabled_title)
.setMessage(R.string.location_services_disabled_message)
.setCancelable(false)
.setPositiveButton(R.string.location_service_settings, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
startActivityForResult(intent, LOCATION_SERVICE_ENABLE);
}
})
.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
Toast.makeText(MobicomLocationActivity.this, R.string.location_sending_cancelled, Toast.LENGTH_LONG).show();
}
});
AlertDialog alert = builder.create();
alert.show();
} else {
googleApiClient.disconnect();
googleApiClient.connect();
}
}
public void processLocation() {
// if (Utils.hasMarshmallow()) {
// new ApplozicPermissions(MobicomLocationActivity.this, layout).checkRuntimePermissionForLocation();
// } else {
processingLocation();
// }
}
@Override
protected void onStart() {
super.onStart();
if(googleApiClient != null){
googleApiClient.connect();
}
}
@Override
protected void onStop() {
super.onStop();
if(googleApiClient != null){
googleApiClient.disconnect();
}
}
@Override
public void onConnectionSuspended(int i) {
Log.w(((Object) this).getClass().getSimpleName(),
"onConnectionSuspended() called.");
}
@Override
public void onConnected(Bundle bundle) {
try {
if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
// TODO: Consider calling
// ActivityCompat#requestPermissions
// here to request the missing permissions, and then overriding
// public void onRequestPermissionsResult(int requestCode, String[] permissions,
// int[] grantResults)
// to handle the case where the user grants the permission. See the documentation
// for ActivityCompat#requestPermissions for more details.
return;
}
mCurrentLocation = LocationServices.FusedLocationApi.getLastLocation(googleApiClient);
if (mCurrentLocation == null) {
Toast.makeText(this, R.string.waiting_for_current_location, Toast.LENGTH_SHORT).show();
locationRequest = new LocationRequest();
locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
locationRequest.setInterval(UPDATE_INTERVAL);
locationRequest.setFastestInterval(FASTEST_INTERVAL);
LocationServices.FusedLocationApi.requestLocationUpdates(googleApiClient, locationRequest, this);
}
if (mCurrentLocation != null)
mapFragment.getMapAsync(this);
} catch (Exception e) {
}
}
@Override
public void onLocationChanged(Location location) {
try {
LocationServices.FusedLocationApi.removeLocationUpdates(googleApiClient, this);
if (location != null) {
mCurrentLocation = location;
}
} catch (Exception e) {
}
}
public void showSnackBar(int resId) {
snackbar = Snackbar.make(layout, resId,
Snackbar.LENGTH_SHORT);
snackbar.show();
}
@Override
public void onConnectionFailed(ConnectionResult connectionResult) {
}
}
| [
"konstantinos41@hotmail.com"
] | konstantinos41@hotmail.com |
d570a2b8d979dda65ab163d50850284a172fa764 | 4cab28395563aae06274e2ba79c024cb9e3c83c1 | /Presenter/src/presenter/util/PropertyFileUtil.java | 26eebeec6ff553deaef9155a80be2256039c14bf | [] | no_license | tospatel/PresenterPlugin | 343a763e47ec332c1d47acc5da3088852e45ca44 | ddffed7b4a4cf884fdf755d2834af8633049aca4 | refs/heads/master | 2020-05-18T00:23:03.739217 | 2014-12-10T14:29:46 | 2014-12-10T14:29:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,681 | java | package presenter.util;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Map.Entry;
import java.util.Properties;
import org.apache.log4j.Logger;
import presenter.views.FileView;
public class PropertyFileUtil {
private static Properties prop = new Properties();
private InputStream input = null;
final static Logger logger = Logger.getLogger(FileView.class);
public void loadPropertyFile() {
try {
String filename = "msg.properties";
input = PropertyFileUtil.class.getClassLoader()
.getResourceAsStream(filename);
if (input == null) {
logger.info("Sorry, unable to find " + filename);
return;
}
// load a properties file from class path, inside static method
prop.load(input);
} catch (IOException ex) {
logger.error(ex);
} finally {
if (input != null) {
try {
input.close();
} catch (IOException e) {
logger.error(e);
}
}
}
}
public static void updatePropertyFile(HashMap<String, String> map) {
OutputStream output = null;
try {
output = new FileOutputStream("msg.properties");
// set the properties value
for (Entry<String, String> entry : map.entrySet()) {
prop.setProperty(entry.getKey(), entry.getValue());
}
prop.store(output, null);
} catch (IOException io) {
logger.error(io);
} finally {
if (output != null) {
try {
output.close();
} catch (IOException e) {
logger.error(e);
}
}
}
}
public static Properties getProp() {
return prop;
}
public void setProp(Properties prop) {
this.prop = prop;
}
}
| [
"sunilpatel@whitehatsec.com"
] | sunilpatel@whitehatsec.com |
33bdb0f766dbe1cc8d03be444fa70adf2ab99aa5 | 51830a51638e18ad5c208c65ab9aea9695fcb1ae | /src/main/java/ie/home/App.java | 47d11b09af791c5e5360203bbd6af0f11ff48c66 | [] | no_license | Octtavius/data-structures-examples | a188276b221b1df1fd8e79ee28bb4dd64aa8b249 | 74becec4d9fadbf19a0df8ca17c837f85f62c585 | refs/heads/master | 2021-06-23T07:18:51.485042 | 2019-10-28T13:17:19 | 2019-10-28T13:17:19 | 211,544,134 | 0 | 0 | null | 2021-03-31T21:30:29 | 2019-09-28T18:24:18 | Java | UTF-8 | Java | false | false | 956 | java | package ie.home;
import java.util.Scanner;
/**
* Hello world!
*
*/
public class App {
public static String LongestWord(String sen) {
// code goes here
/* Note: In Java the return type of a function and the
parameter types being passed are defined, so this return
call must match the return type of the function.
You are free to modify the return type. */
String[] words = sen.split(" ");
int length = words[0].length();
int index = 0;
for (int i = 1; i < words.length; i++) {
String word = words[i];
if (word.length() > length) {
length = word.length();
index = i;
}
}
return words[index];
}
public static void main (String[] args) {
// keep this function call here
Scanner s = new Scanner(System.in);
System.out.print(LongestWord(s.nextLine()));
}
}
| [
"octavian.morcov@sap.com"
] | octavian.morcov@sap.com |
1d4b4ec16e90e9ce2a7407c7be97f0f32547bf43 | b89db6d9c8aa117b33def125ed0a8fa6b95b73be | /src/test/java/com/atos/esope/tools/web/rest/AccountResourceIntTest.java | 2b5a274227d0e676f4186489b977e30a8c97ac7f | [] | no_license | leFlint/chimera | a4c7a91b7637778b9b36f4666662d3f2d8646760 | e8f079a8f7448660cd6475ca9f0cc8f47107a327 | refs/heads/master | 2020-12-31T05:09:45.059944 | 2016-05-24T20:46:13 | 2016-05-24T20:46:13 | 59,607,913 | 0 | 2 | null | 2020-09-18T09:43:14 | 2016-05-24T20:53:23 | CSS | UTF-8 | Java | false | false | 15,994 | java | package com.atos.esope.tools.web.rest;
import com.atos.esope.tools.EsopeToolsApp;
import com.atos.esope.tools.domain.Authority;
import com.atos.esope.tools.domain.User;
import com.atos.esope.tools.repository.AuthorityRepository;
import com.atos.esope.tools.repository.UserRepository;
import com.atos.esope.tools.security.AuthoritiesConstants;
import com.atos.esope.tools.service.MailService;
import com.atos.esope.tools.service.UserService;
import com.atos.esope.tools.web.rest.dto.ManagedUserDTO;
import com.atos.esope.tools.web.rest.dto.UserDTO;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.springframework.boot.test.IntegrationTest;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.http.MediaType;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.test.util.ReflectionTestUtils;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import javax.inject.Inject;
import javax.transaction.Transactional;
import java.util.*;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Matchers.anyObject;
import static org.mockito.Matchers.anyString;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.when;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;
/**
* Test class for the AccountResource REST controller.
*
* @see UserService
*/
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = EsopeToolsApp.class)
@WebAppConfiguration
@IntegrationTest
public class AccountResourceIntTest {
@Inject
private UserRepository userRepository;
@Inject
private AuthorityRepository authorityRepository;
@Inject
private UserService userService;
@Mock
private UserService mockUserService;
@Mock
private MailService mockMailService;
private MockMvc restUserMockMvc;
private MockMvc restMvc;
@Before
public void setup() {
MockitoAnnotations.initMocks(this);
doNothing().when(mockMailService).sendActivationEmail((User) anyObject(), anyString());
AccountResource accountResource = new AccountResource();
ReflectionTestUtils.setField(accountResource, "userRepository", userRepository);
ReflectionTestUtils.setField(accountResource, "userService", userService);
ReflectionTestUtils.setField(accountResource, "mailService", mockMailService);
AccountResource accountUserMockResource = new AccountResource();
ReflectionTestUtils.setField(accountUserMockResource, "userRepository", userRepository);
ReflectionTestUtils.setField(accountUserMockResource, "userService", mockUserService);
ReflectionTestUtils.setField(accountUserMockResource, "mailService", mockMailService);
this.restMvc = MockMvcBuilders.standaloneSetup(accountResource).build();
this.restUserMockMvc = MockMvcBuilders.standaloneSetup(accountUserMockResource).build();
}
@Test
public void testNonAuthenticatedUser() throws Exception {
restUserMockMvc.perform(get("/api/authenticate")
.accept(MediaType.APPLICATION_JSON))
.andExpect(status().isOk())
.andExpect(content().string(""));
}
@Test
public void testAuthenticatedUser() throws Exception {
restUserMockMvc.perform(get("/api/authenticate")
.with(request -> {
request.setRemoteUser("test");
return request;
})
.accept(MediaType.APPLICATION_JSON))
.andExpect(status().isOk())
.andExpect(content().string("test"));
}
@Test
public void testGetExistingAccount() throws Exception {
Set<Authority> authorities = new HashSet<>();
Authority authority = new Authority();
authority.setName(AuthoritiesConstants.ADMIN);
authorities.add(authority);
User user = new User();
user.setLogin("test");
user.setFirstName("john");
user.setLastName("doe");
user.setEmail("john.doe@jhipter.com");
user.setAuthorities(authorities);
when(mockUserService.getUserWithAuthorities()).thenReturn(user);
restUserMockMvc.perform(get("/api/account")
.accept(MediaType.APPLICATION_JSON))
.andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON))
.andExpect(jsonPath("$.login").value("test"))
.andExpect(jsonPath("$.firstName").value("john"))
.andExpect(jsonPath("$.lastName").value("doe"))
.andExpect(jsonPath("$.email").value("john.doe@jhipter.com"))
.andExpect(jsonPath("$.authorities").value(AuthoritiesConstants.ADMIN));
}
@Test
public void testGetUnknownAccount() throws Exception {
when(mockUserService.getUserWithAuthorities()).thenReturn(null);
restUserMockMvc.perform(get("/api/account")
.accept(MediaType.APPLICATION_JSON))
.andExpect(status().isInternalServerError());
}
@Test
@Transactional
public void testRegisterValid() throws Exception {
ManagedUserDTO validUser = new ManagedUserDTO(
null, // id
"joe", // login
"password", // password
"Joe", // firstName
"Shmoe", // lastName
"joe@example.com", // e-mail
true, // activated
"fr", // langKey
new HashSet<>(Arrays.asList(AuthoritiesConstants.USER)),
null, // createdDate
null, // lastModifiedBy
null // lastModifiedDate
);
restMvc.perform(
post("/api/register")
.contentType(TestUtil.APPLICATION_JSON_UTF8)
.content(TestUtil.convertObjectToJsonBytes(validUser)))
.andExpect(status().isCreated());
Optional<User> user = userRepository.findOneByLogin("joe");
assertThat(user.isPresent()).isTrue();
}
@Test
@Transactional
public void testRegisterInvalidLogin() throws Exception {
ManagedUserDTO invalidUser = new ManagedUserDTO(
null, // id
"funky-log!n", // login <-- invalid
"password", // password
"Funky", // firstName
"One", // lastName
"funky@example.com", // e-mail
true, // activated
"fr", // langKey
new HashSet<>(Arrays.asList(AuthoritiesConstants.USER)),
null, // createdDate
null, // lastModifiedBy
null // lastModifiedDate
);
restUserMockMvc.perform(
post("/api/register")
.contentType(TestUtil.APPLICATION_JSON_UTF8)
.content(TestUtil.convertObjectToJsonBytes(invalidUser)))
.andExpect(status().isBadRequest());
Optional<User> user = userRepository.findOneByEmail("funky@example.com");
assertThat(user.isPresent()).isFalse();
}
@Test
@Transactional
public void testRegisterInvalidEmail() throws Exception {
ManagedUserDTO invalidUser = new ManagedUserDTO(
null, // id
"bob", // login
"password", // password
"Bob", // firstName
"Green", // lastName
"invalid", // e-mail <-- invalid
true, // activated
"fr", // langKey
new HashSet<>(Arrays.asList(AuthoritiesConstants.USER)),
null, // createdDate
null, // lastModifiedBy
null // lastModifiedDate
);
restUserMockMvc.perform(
post("/api/register")
.contentType(TestUtil.APPLICATION_JSON_UTF8)
.content(TestUtil.convertObjectToJsonBytes(invalidUser)))
.andExpect(status().isBadRequest());
Optional<User> user = userRepository.findOneByLogin("bob");
assertThat(user.isPresent()).isFalse();
}
@Test
@Transactional
public void testRegisterInvalidPassword() throws Exception {
ManagedUserDTO invalidUser = new ManagedUserDTO(
null, // id
"bob", // login
"123", // password with only 3 digits
"Bob", // firstName
"Green", // lastName
"bob@example.com", // e-mail
true, // activated
"fr", // langKey
new HashSet<>(Arrays.asList(AuthoritiesConstants.USER)),
null, // createdDate
null, // lastModifiedBy
null // lastModifiedDate
);
restUserMockMvc.perform(
post("/api/register")
.contentType(TestUtil.APPLICATION_JSON_UTF8)
.content(TestUtil.convertObjectToJsonBytes(invalidUser)))
.andExpect(status().isBadRequest());
Optional<User> user = userRepository.findOneByLogin("bob");
assertThat(user.isPresent()).isFalse();
}
@Test
@Transactional
public void testRegisterDuplicateLogin() throws Exception {
// Good
ManagedUserDTO validUser = new ManagedUserDTO(
null, // id
"alice", // login
"password", // password
"Alice", // firstName
"Something", // lastName
"alice@example.com", // e-mail
true, // activated
"fr", // langKey
new HashSet<>(Arrays.asList(AuthoritiesConstants.USER)),
null, // createdDate
null, // lastModifiedBy
null // lastModifiedDate
);
// Duplicate login, different e-mail
ManagedUserDTO duplicatedUser = new ManagedUserDTO(validUser.getId(), validUser.getLogin(), validUser.getPassword(), validUser.getLogin(), validUser.getLastName(),
"alicejr@example.com", true, validUser.getLangKey(), validUser.getAuthorities(), validUser.getCreatedDate(), validUser.getLastModifiedBy(), validUser.getLastModifiedDate());
// Good user
restMvc.perform(
post("/api/register")
.contentType(TestUtil.APPLICATION_JSON_UTF8)
.content(TestUtil.convertObjectToJsonBytes(validUser)))
.andExpect(status().isCreated());
// Duplicate login
restMvc.perform(
post("/api/register")
.contentType(TestUtil.APPLICATION_JSON_UTF8)
.content(TestUtil.convertObjectToJsonBytes(duplicatedUser)))
.andExpect(status().is4xxClientError());
Optional<User> userDup = userRepository.findOneByEmail("alicejr@example.com");
assertThat(userDup.isPresent()).isFalse();
}
@Test
@Transactional
public void testRegisterDuplicateEmail() throws Exception {
// Good
ManagedUserDTO validUser = new ManagedUserDTO(
null, // id
"john", // login
"password", // password
"John", // firstName
"Doe", // lastName
"john@example.com", // e-mail
true, // activated
"fr", // langKey
new HashSet<>(Arrays.asList(AuthoritiesConstants.USER)),
null, // createdDate
null, // lastModifiedBy
null // lastModifiedDate
);
// Duplicate e-mail, different login
ManagedUserDTO duplicatedUser = new ManagedUserDTO(validUser.getId(), "johnjr", validUser.getPassword(), validUser.getLogin(), validUser.getLastName(),
validUser.getEmail(), true, validUser.getLangKey(), validUser.getAuthorities(), validUser.getCreatedDate(), validUser.getLastModifiedBy(), validUser.getLastModifiedDate());
// Good user
restMvc.perform(
post("/api/register")
.contentType(TestUtil.APPLICATION_JSON_UTF8)
.content(TestUtil.convertObjectToJsonBytes(validUser)))
.andExpect(status().isCreated());
// Duplicate e-mail
restMvc.perform(
post("/api/register")
.contentType(TestUtil.APPLICATION_JSON_UTF8)
.content(TestUtil.convertObjectToJsonBytes(duplicatedUser)))
.andExpect(status().is4xxClientError());
Optional<User> userDup = userRepository.findOneByLogin("johnjr");
assertThat(userDup.isPresent()).isFalse();
}
@Test
@Transactional
public void testRegisterAdminIsIgnored() throws Exception {
ManagedUserDTO validUser = new ManagedUserDTO(
null, // id
"badguy", // login
"password", // password
"Bad", // firstName
"Guy", // lastName
"badguy@example.com", // e-mail
true, // activated
"fr", // langKey
new HashSet<>(Arrays.asList(AuthoritiesConstants.ADMIN)),
null, // createdDate
null, // lastModifiedBy
null // lastModifiedDate
);
restMvc.perform(
post("/api/register")
.contentType(TestUtil.APPLICATION_JSON_UTF8)
.content(TestUtil.convertObjectToJsonBytes(validUser)))
.andExpect(status().isCreated());
Optional<User> userDup = userRepository.findOneByLogin("badguy");
assertThat(userDup.isPresent()).isTrue();
assertThat(userDup.get().getAuthorities()).hasSize(1)
.containsExactly(authorityRepository.findOne(AuthoritiesConstants.USER));
}
@Test
@Transactional
public void testSaveInvalidLogin() throws Exception {
UserDTO invalidUser = new UserDTO(
"funky-log!n", // login <-- invalid
"Funky", // firstName
"One", // lastName
"funky@example.com", // e-mail
true, // activated
"fr", // langKey
new HashSet<>(Arrays.asList(AuthoritiesConstants.USER))
);
restUserMockMvc.perform(
post("/api/account")
.contentType(TestUtil.APPLICATION_JSON_UTF8)
.content(TestUtil.convertObjectToJsonBytes(invalidUser)))
.andExpect(status().isBadRequest());
Optional<User> user = userRepository.findOneByEmail("funky@example.com");
assertThat(user.isPresent()).isFalse();
}
}
| [
"a.ouazani@gmail.com"
] | a.ouazani@gmail.com |
afb07cdbae6d488c4369d2e417558d706e0f8ff1 | b4d3f13d7d855962a4de63f03da28af4ff13deaf | /koans/src/java7/AboutStringsInSwitch.java | 030c668bcac507cf3f67cb5a34836cbfeac68540 | [
"Apache-2.0"
] | permissive | pratikkadam22/pkadvjava | e479a7a083acc1fde529d1b79c1710129a499e60 | 79f860c399099ae8b8ba72e2ae07a42a6ff33aa7 | refs/heads/master | 2022-04-12T04:37:15.022764 | 2020-03-18T23:05:59 | 2020-03-18T23:05:59 | 234,430,682 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 758 | java | package java7;
import com.sandwich.koan.Koan;
import static com.sandwich.util.Assert.assertEquals;
public class AboutStringsInSwitch {
@Koan
public void stringsInSwitchStatement() {
String[] animals = {"Dog", "Cat", "Tiger", "Elephant", "Zebra"};
String dangerous = null;
String notDangerous = null;
for (String animal : animals) {
switch (animal) {
case "Tiger":
dangerous = animal;
case "Dog":
case "Cat":
case "Elephant":
case "Zebra":
notDangerous = animal;
}
}
assertEquals(notDangerous, "Zebra");
assertEquals(dangerous, "Tiger");
}
}
| [
"pratikkadam2212@gmail.com"
] | pratikkadam2212@gmail.com |
a9cad70d07161f94efe658ec1b9b9dafce8cfb94 | 8519fe643261eae2093e0209509300e24510d137 | /src/kg/geektech/game/players/Magic.java | af0f111a9f1c0378ba202ae9181c94425788d21b | [] | no_license | IT-Kubat/Lesson8.1 | 05fd44f63866fd231e98c4734058454972d3a04d | cedf50f8f13da62b22adee36e9ca8a1a5525a73e | refs/heads/master | 2020-09-22T10:37:27.750288 | 2019-11-20T18:09:17 | 2019-11-20T18:09:17 | 225,158,323 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 713 | java | package kg.geektech.game.players;
import kg.geektech.game.Boss.Boss;
import kg.geektech.game.general.AbilityType;
import java.util.Random;
public class Magic extends Hero {
public Magic(int health, int damage) {
super(health, damage, AbilityType.UNIQUE_ABILITY, AbilityType.BOOST);
}
@Override
public void useAbility(Hero[] heroes, Boss boss) {
for (int i = 0; i < heroes.length-1; i++) {
Random r = new Random();
int x = r.nextInt(3)+2;
heroes[i].setDamage(heroes[i].getDamage()+x);
System.out.println("Magic Attack " + heroes[i].getClass().getName() +" damage = "+heroes[i].getDamage()+" random is = "+x);
}
}
}
| [
"ваш gmail adresskubat88@list.ru"
] | ваш gmail adresskubat88@list.ru |
20a2c334433f19fe3082d52914167e8d1328708a | a7448233103c6b55a1f5f3ebf3d42e0ca6e70542 | /library/src/main/java/com/datatorrent/lib/appdata/schemas/DataResultSnapshot.java | 1af0f4493b47eeec91b9aff44e18914f041cc168 | [
"Apache-2.0"
] | permissive | ilooner/incubator-apex-malhar | af2cf0cdcc24b958e47096c9462f9ec8c8c7126a | 23635c1fb2b905d5c67b722feb68e43475d5b0fe | refs/heads/master | 2021-01-16T19:36:06.595421 | 2015-07-31T03:05:53 | 2015-07-31T03:05:53 | 41,442,065 | 0 | 0 | null | 2015-08-26T18:14:45 | 2015-08-26T18:14:45 | null | UTF-8 | Java | false | false | 2,727 | java | /*
* Copyright (c) 2015 DataTorrent, Inc.
*
* 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 agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.datatorrent.lib.appdata.schemas;
import java.util.List;
import com.google.common.base.Preconditions;
import com.datatorrent.lib.appdata.gpo.GPOMutable;
import com.datatorrent.lib.appdata.query.serde.DataResultSnapshotSerializer;
import com.datatorrent.lib.appdata.query.serde.MessageSerializerInfo;
import com.datatorrent.lib.appdata.query.serde.MessageType;
/**
* This class represents the result sent in response to a {@link DataQuerySnapshot}.
*/
@MessageType(type=DataResultSnapshot.TYPE)
@MessageSerializerInfo(clazz=DataResultSnapshotSerializer.class)
public class DataResultSnapshot extends Result
{
/**
* The AppData type of the result.
*/
public static final String TYPE = "dataResult";
private List<GPOMutable> values;
/**
* This creates a {@link DataResultSnapShot} object from the given query and
* list of values.
* @param query The query that this result is a response to.
* @param values The result values for the query.
*/
public DataResultSnapshot(Query query,
List<GPOMutable> values)
{
super(query);
setValues(values);
}
/**
* This creates a {@link DataResultSnapShot} object from the given query,
* list of values, and countdown value.
* @param query The query that this result is a response to.
* @param values The result values for the query.
* @param countdown The countdown value for the result.
*/
public DataResultSnapshot(Query query,
List<GPOMutable> values,
long countdown)
{
super(query,
countdown);
setValues(values);
}
/**
* This is a helper method that sets and validates the result values.
* @param values The result values.
*/
private void setValues(List<GPOMutable> values)
{
Preconditions.checkNotNull(values);
this.values = values;
}
@Override
public Query getQuery()
{
return super.getQuery();
}
/**
* Gets the values for this result.
* @return The values for this result.
*/
public List<GPOMutable> getValues()
{
return values;
}
}
| [
"tim@datatorrent.com"
] | tim@datatorrent.com |
bcd13204c05463cf040e64867067d68fd8651ed6 | 20f24a41285a4edb22aaa47b089779d7e50ed18e | /app/src/main/java/com/walletmix/humayunkabir/cholbe/Registration.java | 2e763c6371ed6e40335b41cc520abdf3d2250df2 | [] | no_license | sohel-github/cholbemeterial | f944d4bbbd603dd3e645a51ad496ede20878ed93 | be601f11776b62a4c21cf5d8b5e937d9e487bc7e | refs/heads/master | 2020-06-13T02:00:39.981816 | 2016-12-15T08:41:29 | 2016-12-15T08:41:29 | 75,464,310 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,487 | java | package com.walletmix.humayunkabir.cholbe;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;
public class Registration extends AppCompatActivity {
TextView regTitle;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.registration);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
toolbar.setTitle("Registration");
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setDisplayShowHomeEnabled(true);
regTitle = (TextView) findViewById(R.id.regTitle);
Typeface custom_font = Typeface.createFromAsset(getAssets(), "fonts/ElMessiri-SemiBold.ttf");
regTitle.setTypeface(custom_font);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem menuItem) {
if (menuItem.getItemId() == android.R.id.home) {
this.onBackPressed();
}
return super.onOptionsItemSelected(menuItem);
}
}
| [
"tosohel22@gmail.com"
] | tosohel22@gmail.com |
2ad30e0a62f98cb93d938e2ca6be03b0aed79afe | 625b87d8a86ea049c2fba665936a1f91cbb27135 | /src/main/java/com/nbcuni/test/cms/utils/jsonparsing/tvecms/parser/RuleListConditionsJsonDefault.java | 7d38ca690b3db567d9db332e1bda9b34c588f84c | [] | no_license | coge9/ott | fd8c362aeff267783b73f31d4620c08515cfad23 | edd929d1c70555ebab33a02b2c8d5a981608a636 | refs/heads/master | 2020-12-02T22:56:01.568675 | 2017-07-04T11:29:00 | 2017-07-04T11:29:00 | 96,206,363 | 1 | 0 | null | 2017-07-04T11:29:01 | 2017-07-04T10:30:32 | Java | UTF-8 | Java | false | false | 2,655 | java | package com.nbcuni.test.cms.utils.jsonparsing.tvecms.parser;
import com.google.gson.annotations.SerializedName;
/**
* Created by Aleksandra_Lishaeva on 1/22/16.
*/
public class RuleListConditionsJsonDefault implements RuleListConditions {
private static final String DEFAULT_FIELD = "fullEpisode";
private static final String DEFAULT_OPERATOR = "eq";
private static final Boolean DEFAULT_VALUE = true;
@SerializedName("field")
private String field;
@SerializedName("value")
private Boolean value;
@SerializedName("operator")
private String operator;
public String getDEFAULT_FIELD() {
return DEFAULT_FIELD;
}
public String getDEFAULT_OPERATOR() {
return DEFAULT_OPERATOR;
}
@Override
public String getField() {
return field;
}
@Override
public void setField(String field) {
this.field = field;
}
public Boolean getValue() {
return value;
}
public void setValue(Boolean value) {
this.value = value;
}
@Override
public String getOperator() {
return operator;
}
@Override
public void setOperator(String operator) {
this.operator = operator;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
RuleListConditionsJsonDefault other = (RuleListConditionsJsonDefault) obj;
if (field == null) {
if (other.field != null) {
return false;
}
} else if (!field.equals(other.field)) {
return false;
}
if (value == null) {
if (other.value != null) {
return false;
}
} else if (!value.equals(other.value)) {
return false;
}
if (operator == null) {
if (other.operator != null) {
return false;
}
} else if (!operator.equals(other.operator)) {
return false;
}
return true;
}
@Override
public int hashCode() {
int result = 1;
result = 31 * result + ((field == null) ? 0 : field.hashCode());
result = 31 * result + ((value == null) ? 0 : value.hashCode());
result = 31 * result + ((operator == null) ? 0 : operator.hashCode());
return result;
}
public RuleListConditionsJsonDefault getListConditionsObject() {
setField(DEFAULT_FIELD);
setOperator(DEFAULT_OPERATOR);
setValue(DEFAULT_VALUE);
return this;
}
}
| [
"Enrique.Cortes@nbcuni.com"
] | Enrique.Cortes@nbcuni.com |
a83fbdfc34dd3c45e4ec72e9b9c9120444fd30bd | 47b2501e9eb224c386b78e12be78d480979adbfd | /app/src/main/java/com/example/galgelegreallyfinal/MainActivity.java | 3db54c6abebee1221cb1dffa793b0b5a3ebe1653 | [] | no_license | Amiransari2129/GalgelegFinal | c19fc8e5495ded689f88bfbb0549d5113380349e | 1342e203f0625c397b55ba8603aa367aa4433b27 | refs/heads/master | 2023-02-15T21:06:26.158210 | 2021-01-17T18:03:13 | 2021-01-17T18:03:13 | 321,177,892 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,779 | java | package com.example.galgelegreallyfinal;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
public static final String TAG = "MainActivity";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// menu knapper
Button playBTN = (Button) findViewById(R.id.playBTN);
Button highscoreBTN = (Button) findViewById(R.id.highscoreBTN);
Button helpBTN = (Button) findViewById(R.id.helpBTN);
Button wordlistBTN = (Button) findViewById(R.id.wordlistBTN);
// sæt click listener på
playBTN.setOnClickListener(this);
highscoreBTN.setOnClickListener(this);
helpBTN.setOnClickListener(this);
wordlistBTN.setOnClickListener(this);
}
// skift activity ved tryk på knap
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.playBTN:
startActivity(new Intent(MainActivity.this, Play.class));
break;
case R.id.highscoreBTN:
startActivity(new Intent(MainActivity.this, Highscore.class));
break;
case R.id.helpBTN:
startActivity(new Intent(MainActivity.this, Help.class));
break;
case R.id.wordlistBTN:
startActivity(new Intent(MainActivity.this, WordList.class));
break;
}
finish();
}
}
| [
"zvkg8wzr8yfty"
] | zvkg8wzr8yfty |
4f72f8258cdaa063799ebc2b8bd49b56a9807f90 | 5c57c399921f2363955107b70a8cd82f470b1166 | /src/main/java/com/sofrecom/cos/mw/config/LocaleConfiguration.java | 2b988180a6411639b41f4f88d3ce9754c8dc9b09 | [] | no_license | khabane1992/reamenagement-management | f348415d17587b783cfefc1eb24ceb2f3778dfe4 | 8cb838cc5d39a82e4725ff9e3f48c2858473a67a | refs/heads/main | 2023-04-26T00:34:04.215459 | 2021-06-03T17:47:12 | 2021-06-03T17:47:12 | 373,594,728 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,031 | java | package com.sofrecom.cos.mw.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.LocaleResolver;
import org.springframework.web.servlet.config.annotation.*;
import org.springframework.web.servlet.i18n.LocaleChangeInterceptor;
import tech.jhipster.config.locale.AngularCookieLocaleResolver;
@Configuration
public class LocaleConfiguration implements WebMvcConfigurer {
@Bean
public LocaleResolver localeResolver() {
AngularCookieLocaleResolver cookieLocaleResolver = new AngularCookieLocaleResolver();
cookieLocaleResolver.setCookieName("NG_TRANSLATE_LANG_KEY");
return cookieLocaleResolver;
}
@Override
public void addInterceptors(InterceptorRegistry registry) {
LocaleChangeInterceptor localeChangeInterceptor = new LocaleChangeInterceptor();
localeChangeInterceptor.setParamName("language");
registry.addInterceptor(localeChangeInterceptor);
}
}
| [
"jhipster-bot@jhipster.tech"
] | jhipster-bot@jhipster.tech |
520ae87cad6f6dcbde5a63387f9b5c47c88a6c44 | 36de714ba98db31fb58b5441bba951fbc16fb649 | /src/oracle/bi/web/soap/CopyItem2.java | 7b31e4c00bf494df24be7fe93393e419839189e4 | [] | no_license | sadikovi/Csv-data-manager | 06bc29bfe5aff73dfeb154f9fa531fc67edee281 | 00faae21d2493e47350fb36a822495e7e7aad067 | refs/heads/master | 2021-01-10T20:46:26.030985 | 2014-06-22T05:58:39 | 2014-06-22T05:58:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,449 | java |
package oracle.bi.web.soap;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="path" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
* <element name="recursive" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="permissions" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="timestamps" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="useMtom" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="sessionID" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "",
propOrder = { "path", "recursive", "permissions", "timestamps",
"useMtom", "sessionID" })
@XmlRootElement(name = "copyItem2")
public class CopyItem2 {
@XmlElement(required = true)
protected List<String> path;
protected boolean recursive;
protected boolean permissions;
protected boolean timestamps;
@XmlElement(defaultValue = "false")
protected boolean useMtom;
@XmlElement(required = true, nillable = true)
protected String sessionID;
/**
* Gets the value of the path property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the path property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getPath().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getPath() {
if (path == null) {
path = new ArrayList<String>();
}
return this.path;
}
/**
* Gets the value of the recursive property.
*
*/
public boolean isRecursive() {
return recursive;
}
/**
* Sets the value of the recursive property.
*
*/
public void setRecursive(boolean value) {
this.recursive = value;
}
/**
* Gets the value of the permissions property.
*
*/
public boolean isPermissions() {
return permissions;
}
/**
* Sets the value of the permissions property.
*
*/
public void setPermissions(boolean value) {
this.permissions = value;
}
/**
* Gets the value of the timestamps property.
*
*/
public boolean isTimestamps() {
return timestamps;
}
/**
* Sets the value of the timestamps property.
*
*/
public void setTimestamps(boolean value) {
this.timestamps = value;
}
/**
* Gets the value of the useMtom property.
*
*/
public boolean isUseMtom() {
return useMtom;
}
/**
* Sets the value of the useMtom property.
*
*/
public void setUseMtom(boolean value) {
this.useMtom = value;
}
/**
* Gets the value of the sessionID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSessionID() {
return sessionID;
}
/**
* Sets the value of the sessionID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSessionID(String value) {
this.sessionID = value;
}
}
| [
"sadikovi@ivans-mbp.telecom"
] | sadikovi@ivans-mbp.telecom |
659ee0883984c44a6db3b433d1ae2ef170f62de8 | ed28460c5d24053259ab189978f97f34411dfc89 | /Software Engineering/Java DB Fundamentals/Databases Advanced - Hibernate/05. Hibernate Relations/Demo/shampoo-company-core/src/main/java/com/neckandelbows/domain/enums/Size.java | bc1c271b08fb753db2433a70d29b99a844a95f50 | [] | no_license | Dimulski/SoftUni | 6410fa10ba770c237bac617205c86ce25c5ec8f4 | 7954b842cfe0d6f915b42702997c0b4b60ddecbc | refs/heads/master | 2023-01-24T20:42:12.017296 | 2020-01-05T08:40:14 | 2020-01-05T08:40:14 | 48,689,592 | 2 | 1 | null | 2023-01-12T07:09:45 | 2015-12-28T11:33:32 | Java | UTF-8 | Java | false | false | 121 | java | package com.neckandelbows.domain.enums;
import javax.persistence.Entity;
public enum Size {
SMALL, MEDIUM, LARGE;
} | [
"george.dimulski@gmail.com"
] | george.dimulski@gmail.com |
8a58c54565b0fd179beff974a318cb83cfcebd18 | 35206400dbb3cf062feb5a65e8151c0069d7fa08 | /CafePerfeito/xsd_Config_Nfe/src/main/java/br/com/cafeperfeito/xsd/config_nfe/layoutConfig/CertificadoCfg.java | c3d47d912c29ae441805c50a4c1d79517825a403 | [] | no_license | tlmacedo/_olds | 6427af8ce0c51ca4426c42c98fc97f6424096bdf | 4c47e682e5cca61123d9d1bf1521cc797f55f900 | refs/heads/main | 2023-07-17T04:54:28.782611 | 2021-09-02T14:29:06 | 2021-09-02T14:29:06 | 402,447,345 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,245 | java | //
// Este arquivo foi gerado pela Arquitetura JavaTM para Implementaxe7xe3o de Referxeancia (JAXB) de Bind XML, v2.3.1-b171012.0423
// Consulte <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
// Todas as modificaxe7xf5es neste arquivo serxe3o perdidas apxf3s a recompilaxe7xe3o do esquema de origem.
// Gerado em: 2020.12.09 xe0s 02:48:49 PM AMT
//
package br.com.cafeperfeito.xsd.config_nfe.layoutConfig;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java de CertificadoCfg complex type.
*
* <p>O seguinte fragmento do esquema especifica o contexFAdo esperado contido dentro desta classe.
*
* <pre>
* <complexType name="CertificadoCfg">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="tipo" use="required" type="{}Tstr_14" />
* <attribute name="path" use="required" type="{}Tstr" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CertificadoCfg")
public class CertificadoCfg {
@XmlAttribute(name = "tipo", required = true)
protected String tipo;
@XmlAttribute(name = "path", required = true)
protected String path;
/**
* ObtxE9m o valor da propriedade tipo.
*
* @return possible object is
* {@link String }
*/
public String getTipo() {
return tipo;
}
/**
* Define o valor da propriedade tipo.
*
* @param value allowed object is
* {@link String }
*/
public void setTipo(String value) {
this.tipo = value;
}
/**
* ObtxE9m o valor da propriedade path.
*
* @return possible object is
* {@link String }
*/
public String getPath() {
return path;
}
/**
* Define o valor da propriedade path.
*
* @param value allowed object is
* {@link String }
*/
public void setPath(String value) {
this.path = value;
}
}
| [
"tl.macedo@hotmail.com"
] | tl.macedo@hotmail.com |
88386c00ccc04ef699cbc9f3690e8e0da994e8d7 | 37f996515cb7424dbbaaf8d8c9335f034c4aea97 | /src/com/david/s/MinK.java | f74d6bfc4059323fcc9234336fb85f99dc039f15 | [] | no_license | sunshine2176/TestCase | e97e57deb311fa8ce66f0be8c236284df0a1b963 | cefc0d2d7337d4446371d8ccd52f640a34f636d4 | refs/heads/master | 2021-01-10T03:06:10.454086 | 2016-01-25T03:23:54 | 2016-01-25T03:23:54 | 50,322,667 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,593 | java | package com.david.s;
public class MinK {
/**
*
* @param krr
* @param k
* @return
*/
public static int[] minK(int krr[],int k){
int arr[] = new int[k];
for(int i = 0;i<k;i++)
arr[i] = krr[i];
buildHeap(arr);
for(int j = k;j<krr.length;j++){
if(krr[j]<arr[0]){
arr[0] = krr[j];
maxHeap(arr,1,k);
}
}
return arr;
}
/**
* 建最大堆
* @param arr
*/
public static void buildHeap(int arr[]){
int heapsize = arr.length;
for(int i=arr.length/2;i>0;i--)
maxHeap(arr,i,heapsize);
}
/**
* 调整为最大堆
* @param arr
* @param i
* @param heapsize
*/
public static void maxHeap(int arr[],int i,int heapsize){
int largest = i;
int left = 2*i;
int right = 2*i+1;
if(left<=heapsize&&arr[i-1]<arr[left-1])
largest = left;
if(right<=heapsize&&arr[largest-1]<arr[right-1])
largest = right;
if(largest!=i){
int temp = arr[i-1];
arr[i-1] = arr[largest-1];
arr[largest-1] = temp;
maxHeap(arr,largest,heapsize);
}
}
public static void main(String[] args) {
int krr[] = {1,3,4,2,7,8,9,10,14,16};
int arr[] = minK(krr,4);
for(int i =0;i<arr.length;i++)
System.out.println(arr[i]);
}
} | [
"leisun@CD.TA-MP.COM"
] | leisun@CD.TA-MP.COM |
617916f922950fa67cedf986bc8b7647da6210a9 | 37903e9a9e446b089aa1ae3acd440d03adc9c373 | /Kinetise/src/com/kinetise/data/systemdisplay/views/scrolls/AGScrollView.java | b899975cb7e0df1746e6948233a3acb7e2785d6f | [] | no_license | mobilechampion/Cieo-Home | 43b62cf1c499fd1446641b264629aac947d55740 | d56c302e910c213bcb654092cda9de622f89a9bf | refs/heads/master | 2020-06-25T04:59:41.784713 | 2017-06-10T07:33:44 | 2017-06-10T07:33:44 | 94,236,177 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 49,081 | java | package com.kinetise.data.systemdisplay.views.scrolls;
import android.graphics.Rect;
import android.view.FocusFinder;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.VelocityTracker;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.view.animation.AnimationUtils;
import android.widget.OverScroller;
import com.kinetise.data.descriptors.AbstractAGContainerDataDesc;
import com.kinetise.data.systemdisplay.SystemDisplay;
import com.kinetise.data.systemdisplay.views.AGContainerView;
import com.kinetise.data.systemdisplay.views.IScrollable;
import com.kinetise.support.scrolls.scrollManager.EventDirection;
import com.kinetise.support.scrolls.scrollManager.ScrollManager;
import com.kinetise.support.scrolls.scrollManager.ScrollType;
import java.util.List;
public class AGScrollView extends AGContainerView<AbstractAGContainerDataDesc> implements IScrollable {
static final int ANIMATED_SCROLL_GAP = 250;
static final float MAX_SCROLL_FACTOR = 0.5f;
private final Rect mTempRect = new Rect();
protected ScrollType mScrollType;
private long mLastScroll;
private OverScroller mScroller;
private float mLastMotion = -1;
private VelocityTracker mVelocityTracker;
private boolean mSmoothScrollingEnabled = true;
public AGScrollView(SystemDisplay display, AbstractAGContainerDataDesc desc, ScrollType scrollType) {
super(display, desc);
mScrollType = scrollType;
mScroller = new OverScroller(getContext());
setDescendantFocusability(FOCUS_AFTER_DESCENDANTS);
setWillNotDraw(false);
setClipToPadding(true);
}
@Override
public int getScrollXValue() {
return getScrollX();
}
@Override
public int getScrollYValue() {
return getScrollY();
}
@Override
public int getViewPortWidth() {
return getWidth();
}
@Override
public int getViewPortHeight() {
return getHeight();
}
@Override
public int getContentWidth() {
return getMaxChildRightPosition() + getPaddingRight() + (int)mCalcDesc.getBorder().getRight();
}
@Override
public int getContentHeight() {
return getMaxChildBottomPosition() + getPaddingBottom();
}
@Override
public boolean onInterceptTouchEvent(MotionEvent ev) {
boolean result = super.onInterceptTouchEvent(ev);
int actionType = ev.getAction();
switch (actionType) {
case MotionEvent.ACTION_DOWN:
ScrollManager.getInstance().setUpdate(this, ev);
onTouchEvent(ev);
break;
case MotionEvent.ACTION_MOVE:
ScrollManager scrollManager = ScrollManager.getInstance();
scrollManager.setUpdate(this, ev);
if (scrollManager.getEventDirection() == getEventDirectionForScrollType()) {
float deltaY = 0.0f;
float deltaX = 0.0f;
switch (getEventDirectionForScrollType()) {
case UNKNOWN:
deltaX = scrollManager.getMotionEventDeltaX();
deltaY = scrollManager.getMotionEventDeltaY();
break;
case VERTICAL:
deltaY = scrollManager.getMotionEventDeltaY();
break;
case HORIZONTAL:
deltaX = scrollManager.getMotionEventDeltaX();
break;
default:
break;
}
result = scrollManager.anyChildCanScroll(this, deltaX, deltaY);
}
break;
case MotionEvent.ACTION_CANCEL:
break;
case MotionEvent.ACTION_UP:
break;
}
return result;
}
@Override
public String getTag() {
return "ScrollView";
}
public void setScrollY(int value) {
setDescriptorScrolls(getScrollX(), value);
scrollTo(getScrollX(), value);
}
public void setScrollX(int value) {
setDescriptorScrolls(value, getScrollY());
scrollTo(value, getScrollY());
}
protected int getChildrenMaxWidth() {
return getMaxChildRightPosition() - getPaddingLeft();
}
protected int getChildrenMaxHeight() {
return getMaxChildBottomPosition() - getPaddingTop();
}
protected int clamp(int n, int my, int child) {
if (my >= child || n < 0) {
/* my >= child is this case:
* |--------------- me ---------------|
* |------ child ------|
* or
* |--------------- me ---------------|
* |------ child ------|
* or
* |--------------- me ---------------|
* |------ child ------|
*
* n < 0 is this case:
* |------ me ------|
* |-------- child --------|
* |-- mScrollX --|
*/
return 0;
}
if ((my + n) > child) {
/* this case:
* |------ me ------|
* |------ child ------|
* |-- mScrollX --|
*/
return child - my;
}
return n;
}
@Override
public boolean onTouchEvent(MotionEvent ev) {
boolean result = super.onTouchEvent(ev);
if (ev.getAction() == MotionEvent.ACTION_DOWN && ev.getEdgeFlags() != 0) {
// Don't handle edge touches immediately -- they may actually belong to one of our
// descendants.
return false;
}
if (!canScroll()) {
return false;
}
if (mVelocityTracker == null) {
mVelocityTracker = VelocityTracker.obtain();
}
mVelocityTracker.addMovement(ev);
final int action = ev.getAction();
final float pos = (mScrollType == ScrollType.HORIZONTAL) ? ev.getRawX() : ev.getRawY();
switch (action) {
case MotionEvent.ACTION_DOWN:
/*
* If being flinged and user touches, stop the fling. isFinished
* will be false if being flinged.
*/
if (!mScroller.isFinished()) {
mScroller.abortAnimation();
}
break;
case MotionEvent.ACTION_MOVE:
if (mScrollType == ScrollType.HORIZONTAL)
moveHorizontal(pos);
else
moveVertical(pos);
break;
case MotionEvent.ACTION_UP:
final VelocityTracker velocityTracker = mVelocityTracker;
velocityTracker.computeCurrentVelocity(1000, ViewConfiguration.get(getContext()).getScaledMaximumFlingVelocity());
int initialVelocity = (int) ((mScrollType == ScrollType.HORIZONTAL) ? velocityTracker.getXVelocity() : velocityTracker.getYVelocity());
if ((Math.abs(initialVelocity) >
ViewConfiguration.get(getContext()).getScaledMinimumFlingVelocity()) &&
getChildCount() > 0) {
fling(-initialVelocity);
}
if (mVelocityTracker != null) {
mVelocityTracker.recycle();
mVelocityTracker = null;
}
mLastMotion = -1;
break;
default:
mLastMotion = -1;
break;
}
return result;
}
private void moveVertical(float pos) {
// Scroll to follow the motion event
if (mLastMotion == -1) {
mLastMotion = pos;
}
final int delta = (int) (mLastMotion - pos);
mLastMotion = pos;
if (delta < 0) {
if (getScrollY() > 0) {
final int availableToScroll = -getScrollY();
if (availableToScroll < 0) {
scrollViewBy(0, Math.max(availableToScroll, delta));
}
}
} else if (delta > 0) {
final int bottomEdge = getHeight() - getPaddingBottom();
final int availableToScroll = getMaxChildBottomPosition() - getScrollY() - bottomEdge;
if (availableToScroll > 0) {
scrollViewBy(0, Math.min(availableToScroll, delta));
}
}
}
private void moveHorizontal(float pos) {
// Scroll to follow the motion event
if (mLastMotion == -1) {
mLastMotion = pos;
}
final int delta = (int) (mLastMotion - pos);
mLastMotion = pos;
if (delta < 0) {
final int availableToScroll = -getScrollX();
if (availableToScroll < 0) {
scrollViewBy(Math.max(availableToScroll, delta), 0);
}
} else if (delta > 0) {
final int rightEdge = getWidth() - getPaddingRight();
final int availableToScroll = getMaxChildRightPosition() - getScrollX() - rightEdge;
if (availableToScroll > 0) {
scrollViewBy(Math.min(availableToScroll, delta), 0);
}
}
}
/**
* @return Returns true this ScrollView can be scrolled
*/
private boolean canScroll() {
if (mScrollType == ScrollType.HORIZONTAL)
return getWidth() < getMaxChildRightPosition() + getPaddingRight();
else
return getHeight() < getMaxChildBottomPosition() + getPaddingBottom();
}
@Override
public EventDirection getEventDirectionForScrollType() {
if (mScrollType == ScrollType.HORIZONTAL)
return EventDirection.HORIZONTAL;
else
return EventDirection.VERTICAL;
}
@Override
public ScrollType getScrollType() {
return mScrollType;
}
@Override
protected float getLeftFadingEdgeStrength() {
if (mScrollType != ScrollType.HORIZONTAL)
return super.getLeftFadingEdgeStrength();
if (getChildCount() == 0) {
return 0.0f;
}
final int length = getHorizontalFadingEdgeLength();
if (getScrollX() < length) {
return getScrollX() / (float) length;
}
return 1.0f;
}
@Override
protected float getRightFadingEdgeStrength() {
if (mScrollType != ScrollType.HORIZONTAL)
return super.getRightFadingEdgeStrength();
if (getChildCount() == 0) {
return 0.0f;
}
final int length = getHorizontalFadingEdgeLength();
final int rightEdge = getWidth() - getPaddingRight();
final int span = getMaxChildRightPosition() - getScrollX() - rightEdge;
if (span < length) {
return span / (float) length;
}
return 1.0f;
}
@Override
protected float getTopFadingEdgeStrength() {
if (mScrollType != ScrollType.VERTICAL)
return super.getTopFadingEdgeStrength();
if (getChildCount() == 0) {
return 0.0f;
}
final int length = getVerticalFadingEdgeLength();
if (getScrollX() < length) {
return getScrollY() / (float) length;
}
return 1.0f;
}
@Override
protected float getBottomFadingEdgeStrength() {
if (mScrollType != ScrollType.VERTICAL)
return super.getBottomFadingEdgeStrength();
if (getChildCount() == 0) {
return 0.0f;
}
final int length = getVerticalFadingEdgeLength();
final int bottomEdge = getHeight() - getPaddingBottom();
final int span = getMaxChildBottomPosition() - getScrollY() - bottomEdge;
if (span < length) {
return span / (float) length;
}
return 1.0f;
}
/**
* @return The maximum amount this scroll view will scroll in response to
* an arrow event.
*/
public int getMaxScrollAmount() {
if (mScrollType == ScrollType.HORIZONTAL)
return (int) (MAX_SCROLL_FACTOR * (getRight() - getLeft()));
else
return (int) (MAX_SCROLL_FACTOR * (getBottom() - getTop()));
}
@Override
public boolean dispatchKeyEvent(KeyEvent event) {
// Let the focused view and/or our descendants get the key first
boolean handled = super.dispatchKeyEvent(event);
if (handled) {
return true;
}
return executeKeyEvent(event);
}
/**
* You can call this function yourself to have the scroll view perform
* scrolling from a key event, just as if the event had been dispatched to
* it by the view hierarchy.
*
* @param event The key event to execute.
* @return Return true if the event was handled, else false.
*/
public boolean executeKeyEvent(KeyEvent event) {
mTempRect.setEmpty();
if (!canScroll()) {
if (isFocused()) {
View currentFocused = findFocus();
View nextFocused;
if (currentFocused == this) currentFocused = null;
if (mScrollType == ScrollType.HORIZONTAL) {
nextFocused = FocusFinder.getInstance().findNextFocus(this,
currentFocused, View.FOCUS_RIGHT);
return nextFocused != null && nextFocused != this &&
nextFocused.requestFocus(View.FOCUS_RIGHT);
} else if (mScrollType == ScrollType.VERTICAL) {
nextFocused = FocusFinder.getInstance().findNextFocus(this,
currentFocused, View.FOCUS_DOWN);
return nextFocused != null && nextFocused != this &&
nextFocused.requestFocus(View.FOCUS_DOWN);
}
}
return false;
}
boolean handled = false;
if (event.getAction() == KeyEvent.ACTION_DOWN) {
switch (event.getKeyCode()) {
case KeyEvent.KEYCODE_DPAD_LEFT:
if (mScrollType != ScrollType.VERTICAL) {
if (!event.isAltPressed()) {
handled = arrowScroll(View.FOCUS_LEFT);
} else {
handled = fullScroll(View.FOCUS_LEFT);
}
}
break;
case KeyEvent.KEYCODE_DPAD_RIGHT:
if (mScrollType != ScrollType.VERTICAL) {
if (!event.isAltPressed()) {
handled = arrowScroll(View.FOCUS_RIGHT);
} else {
handled = fullScroll(View.FOCUS_RIGHT);
}
}
break;
case KeyEvent.KEYCODE_DPAD_UP:
if (mScrollType != ScrollType.HORIZONTAL) {
if (!event.isAltPressed()) {
handled = arrowScroll(View.FOCUS_UP);
} else {
handled = fullScroll(View.FOCUS_UP);
}
}
break;
case KeyEvent.KEYCODE_DPAD_DOWN:
if (mScrollType != ScrollType.HORIZONTAL) {
if (!event.isAltPressed()) {
handled = arrowScroll(View.FOCUS_DOWN);
} else {
handled = fullScroll(View.FOCUS_DOWN);
}
}
break;
case KeyEvent.KEYCODE_SPACE:
if (mScrollType != ScrollType.HORIZONTAL)
pageScroll(event.isShiftPressed() ? View.FOCUS_LEFT : View.FOCUS_RIGHT);
if (mScrollType != ScrollType.VERTICAL)
pageScroll(event.isShiftPressed() ? View.FOCUS_UP : View.FOCUS_DOWN);
break;
default:
break;
}
}
return handled;
}
private View findFocusableViewInBounds(boolean focus, int a, int b) {
if (mScrollType == ScrollType.HORIZONTAL)
return findFocusableViewInBoundsHorizontal(focus, a, b);
else
return findFocusableViewInBoundsVertical(focus, a, b);
}
/**
* <p>
* Finds the next focusable component that fits in the specified bounds.
* </p>
*
* @param topFocus look for a candidate is the one at the top of the bounds
* if topFocus is true, or at the bottom of the bounds if topFocus is
* false
* @param top the top offset of the bounds in which a focusable must be
* found
* @param bottom the bottom offset of the bounds in which a focusable must
* be found
* @return the next focusable component in the bounds or null if none can
* be found
*/
private View findFocusableViewInBoundsVertical(boolean topFocus, int top, int bottom) {
List<View> focusables = getFocusables(View.FOCUS_FORWARD);
View focusCandidate = null;
/*
* A fully contained focusable is one where its top is below the bound's
* top, and its bottom is above the bound's bottom. A partially
* contained focusable is one where some part of it is within the
* bounds, but it also has some part that is not within bounds. A fully contained
* focusable is preferred to a partially contained focusable.
*/
boolean foundFullyContainedFocusable = false;
for (View view : focusables) {
int viewTop = view.getTop();
int viewBottom = view.getBottom();
if (top < viewBottom && viewTop < bottom) {
/*
* the focusable is in the target area, it is a candidate for
* focusing
*/
final boolean viewIsFullyContained = (top < viewTop) &&
(viewBottom < bottom);
if (focusCandidate == null) {
/* No candidate, take this one */
focusCandidate = view;
foundFullyContainedFocusable = viewIsFullyContained;
} else {
final boolean viewIsCloserToBoundary =
(topFocus && viewTop < focusCandidate.getTop()) ||
(!topFocus && viewBottom > focusCandidate.getBottom());
if (foundFullyContainedFocusable) {
if (viewIsFullyContained && viewIsCloserToBoundary) {
/*
* We're dealing with only fully contained views, so
* it has to be closer to the boundary to beat our
* candidate
*/
focusCandidate = view;
}
} else {
if (viewIsFullyContained) {
/* Any fully contained view beats a partially contained view */
focusCandidate = view;
foundFullyContainedFocusable = true;
} else if (viewIsCloserToBoundary) {
/*
* Partially contained view beats another partially
* contained view if it's closer
*/
focusCandidate = view;
}
}
}
}
}
return focusCandidate;
}
/**
* <p>
* Finds the next focusable component that fits in the specified bounds.
* </p>
*
* @param leftFocus look for a candidate is the one at the left of the bounds
* if leftFocus is true, or at the right of the bounds if
* leftFocus is false
* @param left the left offset of the bounds in which a focusable must be
* found
* @param right the right offset of the bounds in which a focusable must
* be found
* @return the next focusable component in the bounds or null if none can
* be found
*/
private View findFocusableViewInBoundsHorizontal(boolean leftFocus, int left, int right) {
List<View> focusables = getFocusables(View.FOCUS_FORWARD);
View focusCandidate = null;
/*
* A fully contained focusable is one where its left is below the bound's
* left, and its right is above the bound's right. A partially
* contained focusable is one where some part of it is within the
* bounds, but it also has some part that is not within bounds. A fully contained
* focusable is preferred to a partially contained focusable.
*/
boolean foundFullyContainedFocusable = false;
for (View view : focusables) {
int viewLeft = view.getLeft();
int viewRight = view.getRight();
if (left < viewRight && viewLeft < right) {
/*
* the focusable is in the target area, it is a candidate for
* focusing
*/
final boolean viewIsFullyContained = (left < viewLeft) &&
(viewRight < right);
if (focusCandidate == null) {
/* No candidate, take this one */
focusCandidate = view;
foundFullyContainedFocusable = viewIsFullyContained;
} else {
final boolean viewIsCloserToBoundary =
(leftFocus && viewLeft < focusCandidate.getLeft()) ||
(!leftFocus && viewRight > focusCandidate.getRight());
if (foundFullyContainedFocusable) {
if (viewIsFullyContained && viewIsCloserToBoundary) {
/*
* We're dealing with only fully contained views, so
* it has to be closer to the boundary to beat our
* candidate
*/
focusCandidate = view;
}
} else {
if (viewIsFullyContained) {
/* Any fully contained view beats a partially contained view */
focusCandidate = view;
foundFullyContainedFocusable = true;
} else if (viewIsCloserToBoundary) {
/*
* Partially contained view beats another partially
* contained view if it's closer
*/
focusCandidate = view;
}
}
}
}
}
return focusCandidate;
}
/**
* <p>Handles scrolling in response to a "page up/down" shortcut press. This
* method will scroll the view by one page left or right and give the focus
* to the leftmost/rightmost component in the new visible area. If no
* component is a good candidate for focus, this scrollview reclaims the
* focus.</p>
*
* @param direction the scroll direction: {@link android.view.View#FOCUS_LEFT}
* to go one page left or {@link android.view.View#FOCUS_RIGHT}
* to go one page right
* @return true if the key event is consumed by this method, false otherwise
*/
public boolean pageScroll(int direction) {
int width = getWidth();
int height = getHeight();
int count = getChildCount();
switch (direction) {
case View.FOCUS_RIGHT:
mTempRect.left = getScrollX() + width;
if (count > 0) {
if (mTempRect.left + width > getMaxChildRightPosition()) {
mTempRect.left = getMaxChildRightPosition() - width;
}
}
mTempRect.right = mTempRect.left + width;
return scrollAndFocus(direction, mTempRect.left, mTempRect.right);
case View.FOCUS_LEFT:
mTempRect.left = getScrollX() - width;
if (mTempRect.left < 0) {
mTempRect.left = 0;
}
mTempRect.right = mTempRect.left + width;
return scrollAndFocus(direction, mTempRect.left, mTempRect.right);
case View.FOCUS_UP:
mTempRect.top = getScrollY() - height;
if (mTempRect.top < 0) {
mTempRect.top = 0;
}
mTempRect.bottom = mTempRect.top + height;
return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom);
case View.FOCUS_DOWN:
mTempRect.top = getScrollY() + height;
if (count > 0) {
if (mTempRect.top + height > getMaxChildBottomPosition()) {
mTempRect.top = getMaxChildBottomPosition() - height;
}
}
mTempRect.bottom = mTempRect.top + height;
return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom);
}
return scrollAndFocus(direction, mTempRect.left, mTempRect.right);
}
/**
* <p>Handles scrolling in response to a "home/end" shortcut press. This
* method will scroll the view to the left or right and give the focus
* to the leftmost/rightmost component in the new visible area. If no
* component is a good candidate for focus, this scrollview reclaims the
* focus.</p>
*
* @param direction the scroll direction: {@link android.view.View#FOCUS_LEFT}
* to go the left of the view or {@link android.view.View#FOCUS_RIGHT}
* to go the right
* @return true if the key event is consumed by this method, false otherwise
*/
public boolean fullScroll(int direction) {
if (mScrollType == ScrollType.HORIZONTAL) {
boolean right = direction == View.FOCUS_RIGHT;
int width = getWidth();
mTempRect.left = 0;
mTempRect.right = width;
if (right) {
int count = getChildCount();
if (count > 0) {
mTempRect.right = getMaxChildRightPosition();
mTempRect.left = mTempRect.right - width;
}
}
return scrollAndFocus(direction, mTempRect.left, mTempRect.right);
} else if (mScrollType == ScrollType.VERTICAL) {
boolean down = direction == View.FOCUS_DOWN;
int height = getHeight();
mTempRect.top = 0;
mTempRect.bottom = height;
if (down) {
int count = getChildCount();
if (count > 0) {
mTempRect.bottom = getMaxChildBottomPosition();
mTempRect.top = mTempRect.bottom - height;
}
}
return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom);
} else {
throw new IllegalArgumentException("Invalid scroll type");
}
}
/**
* <p>Scrolls the view to make the area defined by <code>leftOrTop</code> and
* <code>rightOrBottom</code> visible. This method attempts to give the focus
* to a component visible in this area. If no component can be focused in
* the new visible area, the focus is reclaimed by this scrollview.</p>
*
* @param direction the scroll direction: {@link android.view.View#FOCUS_LEFT}
* to go leftOrTop {@link android.view.View#FOCUS_RIGHT} to rightOrBottom
* @param leftOrTop the leftOrTop offset of the new area to be made visible
* @param rightOrBottom the rightOrBottom offset of the new area to be made visible
* @return true if the key event is consumed by this method, false otherwise
*/
private boolean scrollAndFocus(int direction, int leftOrTop, int rightOrBottom) {
boolean handled = true;
if (mScrollType == ScrollType.HORIZONTAL) {
int width = getWidth();
int containerLeft = getScrollX();
int containerRight = containerLeft + width;
boolean goLeft = direction == View.FOCUS_LEFT;
if (leftOrTop >= containerLeft && rightOrBottom <= containerRight) {
handled = false;
} else {
int delta = goLeft ? (leftOrTop - containerLeft) : (rightOrBottom - containerRight);
doScrollX(delta);
}
} else {
int height = getHeight();
int containerTop = getScrollY();
int containerBottom = containerTop + height;
boolean up = direction == View.FOCUS_UP;
if (leftOrTop >= containerTop && rightOrBottom <= containerBottom) {
handled = false;
} else {
int delta = up ? (leftOrTop - containerTop) : (rightOrBottom - containerBottom);
doScrollY(delta);
}
}
return handled;
}
/**
* Handle scrolling in response to a left or right arrow click.
*
* @param direction The direction corresponding to the arrow key that was
* pressed
* @return True if we consumed the event, false otherwise
*/
public boolean arrowScroll(int direction) {
View currentFocused = findFocus();
if (currentFocused == this) currentFocused = null;
View nextFocused = FocusFinder.getInstance().findNextFocus(this, currentFocused, direction);
final int maxJump = getMaxScrollAmount();
if (nextFocused != null && isWithinDeltaOfScreen(nextFocused, maxJump)) {
nextFocused.getDrawingRect(mTempRect);
offsetDescendantRectToMyCoords(nextFocused, mTempRect);
int scrollDelta = computeScrollDeltaToGetChildRectOnScreen(mTempRect);
if (mScrollType == ScrollType.HORIZONTAL)
doScrollX(scrollDelta);
else
doScrollY(scrollDelta);
nextFocused.requestFocus(direction);
} else {
// no new focus
int scrollDelta = maxJump;
if (mScrollType == ScrollType.HORIZONTAL) {
if (direction == View.FOCUS_LEFT && getScrollX() < scrollDelta) {
scrollDelta = getScrollX();
} else if (direction == View.FOCUS_RIGHT) {
int daRight = getMaxChildRightPosition();
int screenRight = getScrollX() + getWidth();
if (daRight - screenRight < maxJump) {
scrollDelta = daRight - screenRight;
}
}
} else {
if (direction == View.FOCUS_UP && getScrollY() < scrollDelta) {
scrollDelta = getScrollY();
} else if (direction == View.FOCUS_DOWN) {
int daBottom = getMaxChildBottomPosition();
int screenBottom = getScrollY() + getHeight();
if (daBottom - screenBottom < maxJump) {
scrollDelta = daBottom - screenBottom;
}
}
}
if (scrollDelta == 0) {
return false;
}
if (mScrollType == ScrollType.HORIZONTAL)
doScrollX(direction == View.FOCUS_RIGHT ? scrollDelta : -scrollDelta);
else
doScrollY(direction == View.FOCUS_DOWN ? scrollDelta : -scrollDelta);
}
if (currentFocused != null && currentFocused.isFocused()
&& isOffScreen(currentFocused)) {
// previously focused item still has focus and is off screen, give
// it up (take it back to ourselves)
// (also, need to temporarily force FOCUS_BEFORE_DESCENDANTS so we are
// sure to
// get it)
final int descendantFocusability = getDescendantFocusability(); // save
setDescendantFocusability(ViewGroup.FOCUS_BEFORE_DESCENDANTS);
requestFocus();
setDescendantFocusability(descendantFocusability); // restore
}
return true;
}
/**
* @return whether the descendant of this scroll view is scrolled off
* screen.
*/
private boolean isOffScreen(View descendant) {
return !isWithinDeltaOfScreen(descendant, 0);
}
/**
* @return whether the descendant of this scroll view is within delta
* pixels of being on the screen.
*/
private boolean isWithinDeltaOfScreen(View descendant, int delta) {
descendant.getDrawingRect(mTempRect);
offsetDescendantRectToMyCoords(descendant, mTempRect);
if (mScrollType == ScrollType.HORIZONTAL)
return (mTempRect.right + delta) >= getScrollX()
&& (mTempRect.left - delta) <= (getScrollX() + getWidth());
else
return (mTempRect.bottom + delta) >= getScrollY()
&& (mTempRect.top - delta) <= (getScrollY() + getHeight());
}
/**
* Smooth scroll by a X delta
*
* @param delta the number of pixels to scroll by on the X axis
*/
private void doScrollX(int delta) {
if (delta != 0) {
if (mSmoothScrollingEnabled) {
smoothScrollBy(delta, 0);
} else {
scrollViewBy(delta, 0);
}
}
}
/**
* Smooth scroll by a Y delta
*
* @param delta the number of pixels to scroll by on the Y axis
*/
private void doScrollY(int delta) {
if (delta != 0) {
if (mSmoothScrollingEnabled) {
smoothScrollBy(0, delta);
} else {
scrollViewBy(0, delta);
}
}
}
/**
* Like {@link View#scrollBy}, but scroll smoothly instead of immediately.
*
* @param dx the number of pixels to scroll by on the X axis
* @param dy the number of pixels to scroll by on the Y axis
*/
public final void smoothScrollBy(int dx, int dy) {
long duration = AnimationUtils.currentAnimationTimeMillis() - mLastScroll;
if (duration > ANIMATED_SCROLL_GAP) {
mScroller.startScroll(getScrollX(), getScrollY(), dx, dy);
invalidate();
} else {
if (!mScroller.isFinished()) {
mScroller.abortAnimation();
}
scrollViewBy(dx, dy);
}
mLastScroll = AnimationUtils.currentAnimationTimeMillis();
}
/**
* <p>The scroll range of a scroll view is the overall width of all of its
* children.</p>
*/
@Override
protected int computeHorizontalScrollRange() {
int count = getChildCount();
return count == 0 ? getWidth() : getMaxChildRightPosition();
}
/**
* <p>The scroll range of a scroll view is the overall height of all of its
* children.</p>
*/
@Override
protected int computeVerticalScrollRange() {
int count = getChildCount();
return count == 0 ? getHeight() : getMaxChildBottomPosition();
}
@Override
public void computeScroll() {
if (mScroller.computeScrollOffset()) {
// This is called at drawing time by ViewGroup. We don't want to
// re-show the scrollbars at this point, which scrollTo will do,
// so we replicate most of scrollTo here.
//
// It's a little odd to call onScrollChanged from inside the drawing.
//
// It is, except when you remember that computeScroll() is used to
// animate scrolling. So unless we want to defer the onScrollChanged()
// until the end of the animated scrolling, we don't really have a
// choice here.
//
// I agree. The alternative, which I think would be worse, is to post
// something and tell the subclasses later. This is bad because there
// will be a window where mScrollX/Y is different from what the app
// thinks it is.
//
int oldX = getScrollX();
int oldY = getScrollY();
int x = mScroller.getCurrX();
int y = mScroller.getCurrY();
if (getChildCount() > 0) {
if (oldX != x)
setScrollX(clamp(x, getWidth() - getPaddingRight() - getPaddingLeft(), getChildrenMaxWidth()));
if (oldY != y)
setScrollY(clamp(y, getHeight() - getPaddingBottom() - getPaddingTop(), getChildrenMaxHeight()));
} else {
if (oldX != x)
setScrollX(x);
if (oldY != y)
setScrollY(y);
}
if (oldX != getScrollX() || oldY != getScrollY()) {
onScrollChanged(getScrollX(), getScrollY(), oldX, oldY);
}
// Keep on drawing until the animation has finished.
postInvalidate();
}
}
protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) {
if (mScrollType == ScrollType.HORIZONTAL) {
return computeHorizontalScrollDeltaToGetChildRectOnScreen(rect);
} else {
return computeVerticalScrollDeltaToGetChildRectOnScreen(rect);
}
}
/**
* Compute the amount to scroll in the X direction in order to get
* a rectangle completely on the screen (or, if taller than the screen,
* at least the first screen size chunk of it).
*
* @param rect The rect.
* @return The scroll delta.
*/
protected int computeVerticalScrollDeltaToGetChildRectOnScreen(Rect rect) {
int width = getWidth();
int screenLeft = getScrollX();
int screenRight = screenLeft + width;
int fadingEdge = getHorizontalFadingEdgeLength();
// leave room for left fading edge as long as rect isn't at very left
if (rect.left > 0) {
screenLeft += fadingEdge;
}
// leave room for right fading edge as long as rect isn't at very right
if (rect.right < getMaxChildRightPosition()) {
screenRight -= fadingEdge;
}
int scrollXDelta = 0;
if (rect.right > screenRight && rect.left > screenLeft) {
// need to move right to get it in view: move right just enough so
// that the entire rectangle is in view (or at least the first
// screen size chunk).
if (rect.width() > width) {
// just enough to get screen size chunk on
scrollXDelta += (rect.left - screenLeft);
} else {
// get entire rect at right of screen
scrollXDelta += (rect.right - screenRight);
}
// make sure we aren't scrolling beyond the end of our content
int right = getMaxChildRightPosition();
int distanceToRight = right - screenRight;
scrollXDelta = Math.min(scrollXDelta, distanceToRight);
} else if (rect.left < screenLeft && rect.right < screenRight) {
// need to move right to get it in view: move right just enough so that
// entire rectangle is in view (or at least the first screen
// size chunk of it).
if (rect.width() > width) {
// screen size chunk
scrollXDelta -= (screenRight - rect.right);
} else {
// entire rect at left
scrollXDelta -= (screenLeft - rect.left);
}
// make sure we aren't scrolling any further than the left our content
scrollXDelta = Math.max(scrollXDelta, -getScrollX());
}
return scrollXDelta;
}
/**
* Compute the amount to scroll in the Y direction in order to get
* a rectangle completely on the screen (or, if taller than the screen,
* at least the first screen size chunk of it).
*
* @param rect The rect.
* @return The scroll delta.
*/
protected int computeHorizontalScrollDeltaToGetChildRectOnScreen(Rect rect) {
int height = getHeight();
int screenTop = getScrollY();
int screenBottom = screenTop + height;
int fadingEdge = getVerticalFadingEdgeLength();
// leave room for top fading edge as long as rect isn't at very top
if (rect.top > 0) {
screenTop += fadingEdge;
}
// leave room for bottom fading edge as long as rect isn't at very bottom
if (rect.bottom < getMaxChildBottomPosition()) {
screenBottom -= fadingEdge;
}
int scrollYDelta = 0;
if (rect.bottom > screenBottom && rect.top > screenTop) {
// need to move down to get it in view: move down just enough so
// that the entire rectangle is in view (or at least the first
// screen size chunk).
if (rect.height() > height) {
// just enough to get screen size chunk on
scrollYDelta += (rect.top - screenTop);
} else {
// get entire rect at bottom of screen
scrollYDelta += (rect.bottom - screenBottom);
}
// make sure we aren't scrolling beyond the end of our content
int bottom = getMaxChildBottomPosition();
int distanceToBottom = bottom - screenBottom;
scrollYDelta = Math.min(scrollYDelta, distanceToBottom);
} else if (rect.top < screenTop && rect.bottom < screenBottom) {
// need to move up to get it in view: move up just enough so that
// entire rectangle is in view (or at least the first screen
// size chunk of it).
if (rect.height() > height) {
// screen size chunk
scrollYDelta -= (screenBottom - rect.bottom);
} else {
// entire rect at top
scrollYDelta -= (screenTop - rect.top);
}
// make sure we aren't scrolling any further than the top our content
scrollYDelta = Math.max(scrollYDelta, -getScrollY());
}
return scrollYDelta;
}
/**
* When looking for focus in children of a scroll view, need to be a little
* more careful not to give focus to something that is scrolled off screen.
* <p/>
* This is more expensive than the default {@link android.view.ViewGroup}
* implementation, otherwise this behavior might have been made the default.
*/
@Override
protected boolean onRequestFocusInDescendants(int direction,
Rect previouslyFocusedRect) {
// convert from forward / backward notation to up / down / left / right
// (ugh).
if (direction == View.FOCUS_FORWARD) {
direction = (mScrollType == ScrollType.HORIZONTAL) ? View.FOCUS_RIGHT : View.FOCUS_DOWN;
} else if (direction == View.FOCUS_BACKWARD) {
direction = (mScrollType == ScrollType.HORIZONTAL) ? View.FOCUS_LEFT : View.FOCUS_UP;
}
final View nextFocus = previouslyFocusedRect == null ?
FocusFinder.getInstance().findNextFocus(this, null, direction) :
FocusFinder.getInstance().findNextFocusFromRect(this,
previouslyFocusedRect, direction);
if (nextFocus == null) {
return false;
}
if (isOffScreen(nextFocus)) {
return false;
}
return nextFocus.requestFocus(direction, previouslyFocusedRect);
}
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
View currentFocused = findFocus();
if (null == currentFocused || this == currentFocused)
return;
final int maxJump = (mScrollType == ScrollType.HORIZONTAL) ? getRight() - getLeft() : getBottom() - getTop();
if (isWithinDeltaOfScreen(currentFocused, maxJump)) {
currentFocused.getDrawingRect(mTempRect);
offsetDescendantRectToMyCoords(currentFocused, mTempRect);
int scrollDelta = computeScrollDeltaToGetChildRectOnScreen(mTempRect);
if (mScrollType == ScrollType.HORIZONTAL)
doScrollX(scrollDelta);
else
doScrollY(scrollDelta);
}
}
/**
* Fling the scroll view
*
* @param velocity The initial velocity in the X direction. Positive
* numbers mean that the finger/curor is moving down the screen,
* which means we want to scroll towards the left.
*/
public void fling(int velocity) {
if (mScrollType == ScrollType.HORIZONTAL)
flingHorizontal(velocity);
else
flingVertical(velocity);
}
public void flingHorizontal(int velocityX) {
int width = getWidth() - getPaddingRight() - getPaddingLeft();
int right = getMaxChildRightPosition();
mScroller.fling(getScrollX(), getScrollY(), velocityX, 0, 0, Math.max(0, right - width), 0, 0, width / 2, 0);
invalidate();
}
/**
* Fling the scroll view
*
* @param velocityY The initial velocity in the Y direction. Positive
* numbers mean that the finger/curor is moving down the screen,
* which means we want to scroll towards the top.
*/
public void flingVertical(int velocityY) {
int height = getHeight() - getPaddingBottom() - getPaddingTop();
int bottom = getMaxChildBottomPosition();
mScroller.fling(getScrollX(), getScrollY(), 0, velocityY, 0, 0, 0, Math.max(0, bottom - height), 0, height / 2);
invalidate();
}
private void scrollViewBy(int x, int y) {
setDescriptorScrolls(getScrollX() + x, getScrollY() + y);
scrollBy(x, y);
}
public void scrollViewTo(int x, int y) {
scrollTo(x, y);
}
/**
* Restores last position of scrolls. However, sth view layout is triggered before all children are rendered. As restore scrolls uses scrollTo that
* updates descriptors we need to reupdate them with old values in case body layouts one more time. In other words - we should set descriptors only
* in case user scrolls view.
*/
public void restoreScroll() {
int oldX = getDescriptor().getScrollX();
int oldY = getDescriptor().getScrollY();
scrollViewTo(oldX, oldY);
setDescriptorScrolls(oldX, oldY);
}
}
| [
"henryblanc0403@yahoo.com"
] | henryblanc0403@yahoo.com |
5411cfd432bea53e197f39b1ba89eb237da14687 | ec98872943c0a6a791668d6dc432ae7937905673 | /android/src/com/android/tools/idea/lint/AndroidLintTypographyDashesInspection.java | a07c72bd3bb68306309ae98615e34ce992e4cbae | [] | no_license | zjw-swun/android | cabd8c172346467494af4fba4c17062161570ded | 3761afcc07ebbd4f86c1e7469c2c828f8b0eab5f | refs/heads/master | 2020-05-15T22:09:43.221694 | 2019-04-18T21:58:51 | 2019-04-18T22:01:08 | 182,518,753 | 1 | 0 | null | 2019-04-21T10:19:22 | 2019-04-21T10:19:21 | null | UTF-8 | Java | false | false | 1,381 | java | /*
* Copyright (C) 2016 The Android Open Source Project
*
* 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 agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.tools.idea.lint;
import com.android.tools.lint.checks.TypographyDetector;
import org.jetbrains.android.inspections.lint.AndroidLintQuickFix;
import org.jetbrains.android.inspections.lint.TypographyQuickFix;
import org.jetbrains.android.util.AndroidBundle;
import org.jetbrains.annotations.NotNull;
public class AndroidLintTypographyDashesInspection extends AndroidLintTypographyInspectionBase {
public AndroidLintTypographyDashesInspection() {
super(AndroidBundle.message("android.lint.inspections.typography.dashes"), TypographyDetector.DASHES);
}
@NotNull
@Override
public AndroidLintQuickFix[] getQuickFixes(@NotNull String message) {
return new AndroidLintQuickFix[]{new TypographyQuickFix(myIssue, message)};
}
}
| [
"tnorbye@google.com"
] | tnorbye@google.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.