blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 332 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2 values | repo_name stringlengths 7 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 557 values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 684M ⌀ | star_events_count int64 0 77.7k | fork_events_count int64 0 48k | gha_license_id stringclasses 17 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 82 values | src_encoding stringclasses 28 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 7 5.41M | extension stringclasses 11 values | content stringlengths 7 5.41M | authors listlengths 1 1 | author stringlengths 0 161 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c86b176d80d65692fc896caaaa10dbc166b252c6 | 55e62df574f32cb6b6731627e8e813c780f91572 | /src/main/java/com/educandoweb/course/dto/OrderDTO.java | 3865baedd4c5ff17e3759645776fcdd641017370 | [] | no_license | aclchaves/course-springboot-2-java-8 | ab8c947ac44b84d39f2417265b055927ce6c8c29 | 9275860474af2d34031566d73081953dc739385c | refs/heads/master | 2020-07-02T20:57:48.710888 | 2019-10-29T18:32:57 | 2019-10-29T18:32:57 | 201,663,368 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,357 | java | package com.educandoweb.course.dto;
import java.io.Serializable;
import java.time.Instant;
import com.educandoweb.course.entities.Order;
import com.educandoweb.course.entities.User;
import com.educandoweb.course.entities.enums.OrderStatus;
import com.fasterxml.jackson.annotation.JsonFormat;
public class OrderDTO implements Serializable{
private static final long serialVersionUID = 1L;
private Long id;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss'Z'", timezone = "GMT")
private Instant moment;
private OrderStatus orderStatus;
private Long clientId;
private String clientName;
private String clientEmail;
public OrderDTO() {}
public OrderDTO(Long id, Instant moment, OrderStatus orderStatus, Long clientId, String clientName,
String clientEmail) {
super();
this.id = id;
this.moment = moment;
this.orderStatus = orderStatus;
this.clientId = clientId;
this.clientName = clientName;
this.clientEmail = clientEmail;
}
public OrderDTO(Order entity) {
if (entity.getClient() == null) {
throw new IllegalArgumentException("Error instantiating OrderDTO: client was null");
}
this.id = entity.getId();
this.moment = entity.getMoment();
this.orderStatus = entity.getOrderStatus();
this.clientId = entity.getClient().getId();
this.clientName = entity.getClient().getName();
this.clientEmail = entity.getClient().getEmail();
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Instant getMoment() {
return moment;
}
public void setMoment(Instant moment) {
this.moment = moment;
}
public OrderStatus getOrderStatus() {
return orderStatus;
}
public void setOrderStatus(OrderStatus orderStatus) {
this.orderStatus = orderStatus;
}
public Long getClientId() {
return clientId;
}
public void setClientId(Long clientId) {
this.clientId = clientId;
}
public String getClientName() {
return clientName;
}
public void setClientName(String clientName) {
this.clientName = clientName;
}
public String getClientEmail() {
return clientEmail;
}
public void setClientEmail(String clientEmail) {
this.clientEmail = clientEmail;
}
public Order toEntity() {
User client = new User(clientId, clientName, clientEmail, null, null);
return new Order(id,moment, orderStatus, client);
}
}
| [
"aclchaves@gmail.com"
] | aclchaves@gmail.com |
a5707d0ca963c20d14b642886686467ea74c4d16 | 5af6f840e416f903b5d26e7e51a7e72c93eeb465 | /src/main/java/tenant/test/TenantEntity.java | 0c81061d41ca7184b0653da47e018f20c37316ce | [] | no_license | goeh/grails-tenant-test | b74c89daafa8ec460affd95e1800c3edb7f33e13 | 6396d9d489712bf8ac341cc65c655a92e5aea6ea | refs/heads/master | 2021-01-16T21:50:32.230966 | 2016-08-03T20:56:36 | 2016-08-03T20:56:36 | 64,842,736 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 479 | java | package tenant.test;
import org.codehaus.groovy.transform.GroovyASTTransformationClass;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation on multi-tenant aware entities.
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@GroovyASTTransformationClass({"tenant.test.TenantEntityTransformation"})
public @interface TenantEntity {
}
| [
"goran@technipelago.se"
] | goran@technipelago.se |
f20af3934dd4d9d2199b832ac60ee0a499b4d21a | ba74038a0d3a24d93e6dbd1f166530f8cb1dd641 | /teamclock/src/java/com/fivesticks/time/calendar/CalendarFilterDecorator.java | 282a451cfe3985e04e43b8d51a957c6875bced96 | [] | no_license | ReidCarlberg/teamclock | 63ce1058c62c0a00d63a429bac275c4888ada79a | 4ac078610be86cf0902a73b1ba2a697f9dcf4e3c | refs/heads/master | 2016-09-05T23:46:28.600606 | 2009-09-18T07:25:37 | 2009-09-18T07:25:37 | 32,190,901 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,089 | java | /*
* Created on Dec 16, 2003
*
*/
package com.fivesticks.time.calendar;
import java.util.Calendar;
import java.util.Date;
import com.fstx.stdlib.common.simpledate.SimpleDate;
/**
* @author REID
*
*/
public class CalendarFilterDecorator {
public void decorateForToday(CalendarFilterParameters filter) {
decorateForSimpleDate(filter, SimpleDate.factory.buildMidnight());
}
public void decorateForDate(CalendarFilterParameters filter, Date date) {
decorateForSimpleDate(filter, SimpleDate.factory.buildMidnight(date));
}
public void decorateForSimpleDate(CalendarFilterParameters filter,
SimpleDate date) {
// FstxCalendarFilterParameters filter = new
// FstxCalendarFilterParameters();
filter.setStart(date);
/*
* Only uses the startdate
*/
filter.setStop(date);
// return filter;
}
/**
* @param targetDate
* @return
*/
public void decorateForWeeklySimpleDate(
CalendarFilterParameters filter, SimpleDate date) {
SimpleDate weekStart = SimpleDate.factory.build(date.getDate());
while (!weekStart.isSunday()) {
weekStart.advanceDay(-1);
}
SimpleDate weekStop = SimpleDate.factory.build(date.getDate());
while (!weekStop.isSaturday()) {
weekStop.advanceDay(1);
}
// FstxCalendarFilterParameters filter = new
// FstxCalendarFilterParameters();
filter.setStart(weekStart);
filter.setStop(weekStop);
filter.setBuildDate(date);
// return filter;
}
public void decorateForWeeklyTodayPlusTwoWeeks(
CalendarFilterParameters filter, SimpleDate date) {
SimpleDate weekStart = SimpleDate.factory.build(date.getDate());
SimpleDate weekStop = SimpleDate.factory.build(date.getDate());
weekStop.advanceDay(13);
// FstxCalendarFilterParameters filter = new
// FstxCalendarFilterParameters();
filter.setStart(weekStart);
filter.setStop(weekStop);
filter.setBuildDate(date);
// return filter;
}
/**
* @param parameters
* @param targetDate
* @return
*/
public void decorateForMonthlySimpleDate(
CalendarFilterParameters filter, SimpleDate date) {
SimpleDate weekStart = SimpleDate.factory.build(date.getDate());
/*
* We want it to start at the first sunday before the first of the
* month. Rather than blank space we can have useful data.
*
*/
weekStart.getCalendar().set(Calendar.DAY_OF_MONTH, 1);
while (!weekStart.isSunday()) {
weekStart.advanceDay(-1);
}
SimpleDate weekStop = SimpleDate.factory.build(date.getDate());
weekStop.getCalendar().set(Calendar.DAY_OF_MONTH,
weekStop.getCalendar().getMaximum(Calendar.DAY_OF_MONTH));
while (!weekStop.isSaturday()) {
weekStop.advanceDay(1);
}
weekStop.advanceDay();
weekStop.advanceMilliseconds(-1);
// FstxCalendarFilterParameters filter = new
// FstxCalendarFilterParameters();
filter.setBuildDate(date);
filter.setStart(weekStart);
filter.setStop(weekStop);
// return filter;
}
// public void decorateFilterForPrivate(FstxCalendarFilterParameters params,
// User currentUser, UserTypeEnum currentUserType) {
// /*
// * standard users really dont have private records.
// */
// if (currentUserType == UserTypeEnum.USERTYPE_STANDARD) {
// params.setUsername(currentUser.getUsername());
// } else if (currentUserType == UserTypeEnum.USERTYPE_PRIVILEGED ||
// currentUserType == UserTypeEnum.USERTYPE_OWNERADMIN) {
// params.setUsernameForPrivateRecords(currentUser.getUsername());
// }
//
// }
} | [
"reidcarlberg@c917f71e-a3f3-11de-ba6e-69e41c8db662"
] | reidcarlberg@c917f71e-a3f3-11de-ba6e-69e41c8db662 |
370960c733727e928ea781eaa69a7a87abbc843f | 52a3a4b24c1baea5b423a5201ee718c4002d1efa | /src/main/java/io/github/psychopunch/demo/Record.java | 06120c3b12f0400a36a7ba39fa3c731fcb5781ef | [] | no_license | psychopunch/h2-json-jpa-demo | d7deca37e19f1c906f96a5a774d9f41ea3befb6a | 2944fc3de897a97b0246f5f2f38ca3fc0104cc5b | refs/heads/master | 2023-08-02T03:36:38.402954 | 2021-09-28T14:32:29 | 2021-09-28T14:32:29 | 411,318,112 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 441 | java | package io.github.psychopunch.demo;
import javax.persistence.*;
@Entity
public class Record {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Column(columnDefinition = "json")
@Convert(converter = PersonalInfoConverter.class)
private PersonalInfo personalInfo;
public Record() {}
public Record(PersonalInfo personalInfo) {
this.personalInfo = personalInfo;
}
}
| [
"psychopunch.me@gmail.com"
] | psychopunch.me@gmail.com |
1bce5611bcf67e62a080228fac061161bacfd72d | d1fdaf6fe4d5628ae76f5c1be393b42be1c29513 | /common_lib/src/main/java/com/common_lib/android/ui/UILayoutHelper.java | feeedaadfc88c33dd6f8908f25d93138e35a2a3a | [] | no_license | mandeepji/mysmarthands-android | d83c9dc726463dcadd73b010f0672b4fcffebb13 | 7e9e51f06705313133370cd69deb7efa0a87affa | refs/heads/master | 2021-07-10T01:16:26.513187 | 2017-10-07T17:42:14 | 2017-10-07T17:42:14 | 106,114,033 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 69 | java | package com.common_lib.android.ui;
public class UILayoutHelper {
}
| [
"mandeepji@gmail.com"
] | mandeepji@gmail.com |
013d9d6e9e06528eab3f963b0aa0beaaa99fd4df | 3efceb8239379f9b15405a817aeae0ed94049db5 | /Code/66/Solution.java | 3358cbe18241f431e5f4a4c55c8ef9a6d0cdf3f4 | [] | no_license | RazorK/Leetcode | 3661860c3e21a0993982c8d090f5531be1540124 | 5bccc9884ab2954ecb9a73966f55167b3ad284e9 | refs/heads/master | 2021-03-25T14:22:04.876847 | 2019-02-07T04:04:45 | 2019-02-07T04:04:45 | 110,893,069 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,317 | java | class Solution {
// Given a non-negative integer represented as a non-empty array of digits, plus one to the integer.
//
// You may assume the integer do not contain any leading zero, except the number 0 itself.
//
// The digits are stored such that the most significant digit is at the head of the list.
public int[] plusOne(int[] digits) {
digits[digits.length - 1]++;
int carry = 0;
for(int i = digits.length - 1; i>=0; i--) {
int sum = digits[i]+carry;
if( sum >=10){
digits[i] = sum % 10;
carry = 1;
} else {
// BUG: forget to modify the last digit here...
digits[i] = sum;
carry = 0;
break;
}
}
// has to insert an digit here
if(carry == 1) {
int [] result = new int[digits.length+1];
result[0] = 1;
// BUG: this part is useless, because we only add one,
// if the highest carry == 0, the left can only be zero
// for(int i=0; i<digits.length; i++) {
// result[i+1] = digits[i];
// }
// This BUG makes the solution slower...
return result;
}
return digits;
}
}
| [
"aimin52qinhao@163.com"
] | aimin52qinhao@163.com |
2870e509f870b28fada072da0e32bd1392f60981 | 311c94620d69b6dfc6fc55e59672174282a9c5c8 | /web-im-stomp/src/main/java/com/reed/webim/websocket/deepstream/vo/ServerData.java | ed314c5063d0d84e9fc275d805f17781dc9aa6a5 | [] | no_license | reedF/web-im | ef2be2ddc989bebfc54c9034a53ebd2ee4629a84 | aaaa157c98debbbc561fb7119c7b8602ddfd849d | refs/heads/master | 2021-05-05T13:07:59.712075 | 2019-05-15T07:51:36 | 2019-05-15T07:51:36 | 104,969,111 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 447 | java | package com.reed.webim.websocket.deepstream.vo;
public class ServerData {
private String role = "Admin";
private String permission = "*";
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
public String getPermission() {
return permission;
}
public void setPermission(String permission) {
this.permission = permission;
}
}
| [
"fanym@easemob.com"
] | fanym@easemob.com |
4dd16dbf3f87d2f5646e5a2dd4d02b576473599b | 73a9d9b586320e92f9de36947c7105d91a5433ea | /hotelmanagersys/src/main/java/com/sys/service/EmployeeService.java | c236af22664243de914594a7e1e13e9ccd5f55e1 | [] | no_license | hmk2/hmkProject | 738bfab0316d2c276084b6e1cc39bbe73e80fe4c | 3d336490fa1ecb8368a169d5d68f2b6ef139889f | refs/heads/master | 2020-03-22T07:58:06.219141 | 2018-07-04T14:59:25 | 2018-07-04T14:59:25 | 139,736,014 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,252 | java | package com.sys.service;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.sys.enity.Employee;
import com.sys.enity.Page;
public interface EmployeeService {
//通过当前页数和总数进行分页查询
public List<Map<String, Object>> queryEmployeePage(Page page);
//通过员工ID查询出员工
public ArrayList<Employee> findEmployeeById(int id);
//添加员工
public int addEmployee(Employee employee,String deptName,String jobName);
//查询出员工的总数
public int queryAllEmployee();
//查询出所有员工的ID
public ArrayList<Integer> queryAllEmployeeId();
//查询出所有的员工电话
public ArrayList<Long> queryAllEmployeePhone();
//查询出所有的员工姓名
public ArrayList<String> queryAllEmployeeName();
//对员工进行更新
public int updateEmployee(Employee employee,String deptName,String jobName);
public int deleeteemdejob(int employeeId,String jobName,String deptname);
//通过员工ID删除房间
public int deleteEmployee(int id);
public int querysearchEmployeeacount(String id,String name,String phone);
//通过员工对象来查询出房间
public List<Map<String, Object>> searchEmployee(String id,String phone,String name,Page page);
}
| [
"30412813+hmk2@users.noreply.github.com"
] | 30412813+hmk2@users.noreply.github.com |
5579784a4045599478d76b97e9fae7964ab043a6 | b06a99b3749bc1bd1fca4409c6b57a7f6ff21af5 | /src/main/java/com/ruoyi/project/system/menu/mapper/MenuMapper.java | 322ba61d18df439ce5aec485a22ddc4745de2271 | [
"MIT"
] | permissive | 15111200961/RuoYi | f337e18c10ff53b8c0ea2a3069e44f80e7b7773f | c2a48863507c8871cb4723856737f7326b9a8343 | refs/heads/master | 2022-09-23T21:15:57.718528 | 2019-09-15T08:53:07 | 2019-09-15T08:53:07 | 206,748,787 | 0 | 0 | MIT | 2022-09-01T23:12:30 | 2019-09-06T08:25:54 | JavaScript | UTF-8 | Java | false | false | 2,262 | java | package com.ruoyi.project.system.menu.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.project.system.menu.domain.Menu;
/**
* 菜单表 数据层
*
* @author ruoyi
*/
public interface MenuMapper
{
/**
* 查询系统所有菜单(含按钮)
*
* @return 菜单列表
*/
public List<Menu> selectMenuAll();
/**
* 查询系统正常显示菜单(不含按钮)
*
* @return 菜单列表
*/
public List<Menu> selectMenuNormalAll();
/**
* 根据用户ID查询菜单
*
* @param userId 用户ID
* @return 菜单列表
*/
public List<Menu> selectMenusByUserId(Long userId);
/**
* 根据用户ID查询权限
*
* @param userId 用户ID
* @return 权限列表
*/
public List<String> selectPermsByUserId(Long userId);
/**
* 根据角色ID查询菜单
*
* @param roleId 角色ID
* @return 菜单列表
*/
public List<String> selectMenuTree(Long roleId);
/**
* 查询系统菜单列表
*
* @param menu 菜单信息
* @return 菜单列表
*/
public List<Menu> selectMenuList(Menu menu);
/**
* 删除菜单管理信息
*
* @param menuId 菜单ID
* @return 结果
*/
public int deleteMenuById(Long menuId);
/**
* 根据菜单ID查询信息
*
* @param menuId 菜单ID
* @return 菜单信息
*/
public Menu selectMenuById(Long menuId);
/**
* 查询菜单数量
*
* @param parentId 菜单父ID
* @return 结果
*/
public int selectCountMenuByParentId(Long parentId);
/**
* 新增菜单信息
*
* @param menu 菜单信息
* @return 结果
*/
public int insertMenu(Menu menu);
/**
* 修改菜单信息
*
* @param menu 菜单信息
* @return 结果
*/
public int updateMenu(Menu menu);
/**
* 校验菜单名称是否唯一
*
* @param menuName 菜单名称
* @param parentId 父菜单ID
* @return 结果
*/
public Menu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId);
}
| [
"15111200961@163.com"
] | 15111200961@163.com |
bbe94b02d4f3c60a5a40126991c3f4b9f3394bb7 | f0e416ad8453164d95cefb93cd7582c442c24b33 | /src/main/java/com/qcms/cms/dao/main/impl/ContentDaoImpl.java | f9583f3f1f929e206d8af9a366a0d5708ae4ea49 | [] | no_license | qzztf/cms | d5a23f307028fe8bdf877926e17591cfa38fb99d | 51a242e697cb10465d0bbc1d1f2261f494fed18f | refs/heads/master | 2021-05-26T17:37:07.259814 | 2013-03-01T07:55:03 | 2013-03-01T07:55:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 24,849 | java | package com.qcms.cms.dao.main.impl;
import static com.qcms.cms.entity.main.Content.ContentStatus.all;
import static com.qcms.cms.entity.main.Content.ContentStatus.checked;
import static com.qcms.cms.entity.main.Content.ContentStatus.draft;
import static com.qcms.cms.entity.main.Content.ContentStatus.passed;
import static com.qcms.cms.entity.main.Content.ContentStatus.prepared;
import static com.qcms.cms.entity.main.Content.ContentStatus.recycle;
import static com.qcms.cms.entity.main.Content.ContentStatus.rejected;
import java.util.Date;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.hibernate.Query;
import org.springframework.stereotype.Repository;
import com.qcms.cms.dao.main.ContentDao;
import com.qcms.cms.entity.main.Content;
import com.qcms.cms.entity.main.ContentCheck;
import com.qcms.cms.entity.main.Content.ContentStatus;
import com.qcms.common.hibernate3.Finder;
import com.qcms.common.hibernate3.HibernateBaseDao;
import com.qcms.common.page.Pagination;
@Repository
public class ContentDaoImpl extends HibernateBaseDao<Content, Integer>
implements ContentDao {
public Pagination getPage(String title, Integer typeId,
Integer inputUserId, boolean topLevel, boolean recommend,
ContentStatus status, Byte checkStep, Integer siteId,
Integer channelId, int orderBy, int pageNo, int pageSize) {
Finder f = Finder.create("select bean from Content bean");
if (prepared == status || passed == status || rejected == status) {
f.append(" join bean.contentCheckSet check");
}
if (channelId != null) {
f.append(" join bean.channel channel,Channel parent");
f.append(" where channel.lft between parent.lft and parent.rgt");
f.append(" and channel.site.id=parent.site.id");
f.append(" and parent.id=:parentId");
f.setParam("parentId", channelId);
} else if (siteId != null) {
f.append(" where bean.site.id=:siteId");
f.setParam("siteId", siteId);
} else {
f.append(" where 1=1");
}
if (prepared == status) {
f.append(" and check.checkStep<:checkStep");
f.append(" and check.rejected=false");
f.setParam("checkStep", checkStep);
} else if (passed == status) {
f.append(" and check.checkStep=:checkStep");
f.append(" and check.rejected=false");
f.setParam("checkStep", checkStep);
} else if (rejected == status) {
f.append(" and check.checkStep=:checkStep");
f.append(" and check.rejected=true");
f.setParam("checkStep", checkStep);
}
appendQuery(f, title, typeId, inputUserId, status, topLevel, recommend);
if (prepared == status) {
f.append(" order by check.checkStep desc,bean.id desc");
} else {
appendOrder(f, orderBy);
}
return find(f, pageNo, pageSize);
}
public Pagination getPageForCollection(Integer siteId, Integer memberId, int pageNo, int pageSize){
Finder f = Finder.create("select bean from Content bean join bean.collectUsers user where user.id=:userId").setParam("userId", memberId);
if (siteId != null) {
f.append(" and bean.site.id=:siteId");
f.setParam("siteId", siteId);
}
f.append(" and bean.status<>:status");
f.setParam("status", ContentCheck.RECYCLE);
return find(f, pageNo, pageSize);
}
public Pagination getPageBySelf(String title, Integer typeId,
Integer inputUserId, boolean topLevel, boolean recommend,
ContentStatus status, Byte checkStep, Integer siteId,
Integer channelId, Integer userId, int orderBy, int pageNo,
int pageSize) {
Finder f = Finder.create("select bean from Content bean");
if (prepared == status || passed == status || rejected == status) {
f.append(" join bean.contentCheckSet check");
}
if (channelId != null) {
f.append(" join bean.channel channel,Channel parent");
f.append(" where channel.lft between parent.lft and parent.rgt");
f.append(" and channel.site.id=parent.site.id");
f.append(" and parent.id=:parentId");
f.setParam("parentId", channelId);
} else if (siteId != null) {
f.append(" where bean.site.id=:siteId");
f.setParam("siteId", siteId);
} else {
f.append(" where 1=1");
}
f.append(" and bean.user.id=:userId");
f.setParam("userId", userId);
if (prepared == status) {
f.append(" and check.checkStep<:checkStep");
f.append(" and check.rejected=false");
f.setParam("checkStep", checkStep);
} else if (passed == status) {
f.append(" and check.checkStep=:checkStep");
f.append(" and check.rejected=false");
f.setParam("checkStep", checkStep);
} else if (rejected == status) {
f.append(" and check.checkStep=:checkStep");
f.append(" and check.rejected=true");
f.setParam("checkStep", checkStep);
}
appendQuery(f, title, typeId, inputUserId, status, topLevel, recommend);
if (prepared == status) {
f.append(" order by check.checkStep desc,bean.id desc");
} else {
appendOrder(f, orderBy);
}
return find(f, pageNo, pageSize);
}
public Pagination getPageByRight(String title, Integer typeId,
Integer inputUserId, boolean topLevel, boolean recommend,
ContentStatus status, Byte checkStep, Integer siteId,
Integer channelId, Integer userId, boolean selfData, int orderBy,
int pageNo, int pageSize) {
Finder f = Finder.create("select bean from Content bean");
if (prepared == status || passed == status || rejected == status) {
f.append(" join bean.contentCheckSet check");
}
f.append(" join bean.channel channel join channel.users user");
if (channelId != null) {
f.append(",Channel parent");
f.append(" where channel.lft between parent.lft and parent.rgt");
f.append(" and channel.site.id=parent.site.id");
f.append(" and parent.id=:parentId");
f.setParam("parentId", channelId);
f.append(" and user.id=:userId");
f.setParam("userId", userId);
} else if (siteId != null) {
f.append(" where user.id=:userId");
f.setParam("userId", userId);
f.append(" and bean.site.id=:siteId");
f.setParam("siteId", siteId);
} else {
f.append(" where user.id=:userId");
f.setParam("userId", userId);
}
if (selfData) {
// userId前面已赋值
f.append(" and bean.user.id=:userId");
}
if (prepared == status) {
f.append(" and check.checkStep<:checkStep");
f.append(" and check.rejected=false");
f.setParam("checkStep", checkStep);
} else if (passed == status) {
f.append(" and check.checkStep=:checkStep");
f.append(" and check.rejected=false");
f.setParam("checkStep", checkStep);
} else if (rejected == status) {
f.append(" and check.checkStep=:checkStep");
f.append(" and check.rejected=true");
f.setParam("checkStep", checkStep);
}
appendQuery(f, title, typeId, inputUserId, status, topLevel, recommend);
if (prepared == status) {
f.append(" order by check.checkStep desc,bean.id desc");
} else {
appendOrder(f, orderBy);
}
return find(f, pageNo, pageSize);
}
private void appendQuery(Finder f, String title, Integer typeId,
Integer inputUserId, ContentStatus status, boolean topLevel,
boolean recommend) {
if (!StringUtils.isBlank(title)) {
f.append(" and bean.contentExt.title like :title");
f.setParam("title", "%" + title + "%");
}
if (typeId != null) {
f.append(" and bean.type.id=:typeId");
f.setParam("typeId", typeId);
}
if (inputUserId != null) {
f.append(" and bean.user.id=:inputUserId");
f.setParam("inputUserId", inputUserId);
}
if (topLevel) {
f.append(" and bean.topLevel>0");
}
if (recommend) {
f.append(" and bean.recommend=true");
}
if (draft == status) {
f.append(" and bean.status=:status");
f.setParam("status", ContentCheck.DRAFT);
} else if (checked == status) {
f.append(" and bean.status=:status");
f.setParam("status", ContentCheck.CHECKED);
} else if (prepared == status || rejected == status) {
f.append(" and bean.status=:status");
f.setParam("status", ContentCheck.CHECKING);
} else if (passed == status) {
f.append(" and (bean.status=:checking or bean.status=:checked)");
f.setParam("checking", ContentCheck.CHECKING);
f.setParam("checked", ContentCheck.CHECKED);
} else if (all == status) {
f.append(" and bean.status<>:status");
f.setParam("status", ContentCheck.RECYCLE);
} else if (recycle == status) {
f.append(" and bean.status=:status");
f.setParam("status", ContentCheck.RECYCLE);
} else {
// never
}
}
public Content getSide(Integer id, Integer siteId, Integer channelId,
boolean next, boolean cacheable) {
Finder f = Finder.create("from Content bean where 1=1");
if (channelId != null) {
f.append(" and bean.channel.id=:channelId");
f.setParam("channelId", channelId);
} else if (siteId != null) {
f.append(" and bean.site.id=:siteId");
f.setParam("siteId", siteId);
}
if (next) {
f.append(" and bean.id>:id");
f.setParam("id", id);
f.append(" and bean.status=" + ContentCheck.CHECKED);
f.append(" order by bean.id asc");
} else {
f.append(" and bean.id<:id");
f.setParam("id", id);
f.append(" and bean.status=" + ContentCheck.CHECKED);
f.append(" order by bean.id desc");
}
Query query = f.createQuery(getSession());
query.setCacheable(cacheable).setMaxResults(1);
return (Content) query.uniqueResult();
}
@SuppressWarnings("unchecked")
public List<Content> getListByIdsForTag(Integer[] ids, int orderBy) {
Finder f = Finder.create("from Content bean where bean.id in (:ids)");
f.setParamList("ids", ids);
appendOrder(f, orderBy);
f.setCacheable(true);
return find(f);
}
public Pagination getPageBySiteIdsForTag(Integer[] siteIds,
Integer[] typeIds, Boolean titleImg, Boolean recommend,
String title, int orderBy, int pageNo, int pageSize) {
Finder f = bySiteIds(siteIds, typeIds, titleImg, recommend, title,
orderBy);
f.setCacheable(true);
return find(f, pageNo, pageSize);
}
@SuppressWarnings("unchecked")
public List<Content> getListBySiteIdsForTag(Integer[] siteIds,
Integer[] typeIds, Boolean titleImg, Boolean recommend,
String title, int orderBy, Integer first, Integer count) {
Finder f = bySiteIds(siteIds, typeIds, titleImg, recommend, title,
orderBy);
if (first != null) {
f.setFirstResult(first);
}
if (count != null) {
f.setMaxResults(count);
}
f.setCacheable(true);
return find(f);
}
public Pagination getPageByChannelIdsForTag(Integer[] channelIds,
Integer[] typeIds, Boolean titleImg, Boolean recommend,
String title, int orderBy, int option, int pageNo, int pageSize) {
Finder f = byChannelIds(channelIds, typeIds, titleImg, recommend,
title, orderBy, option);
f.setCacheable(true);
return find(f, pageNo, pageSize);
}
@SuppressWarnings("unchecked")
public List<Content> getListByChannelIdsForTag(Integer[] channelIds,
Integer[] typeIds, Boolean titleImg, Boolean recommend,
String title, int orderBy, int option, Integer first, Integer count) {
Finder f = byChannelIds(channelIds, typeIds, titleImg, recommend,
title, orderBy, option);
if (first != null) {
f.setFirstResult(first);
}
if (count != null) {
f.setMaxResults(count);
}
f.setCacheable(true);
return find(f);
}
public Pagination getPageByChannelPathsForTag(String[] paths,
Integer[] siteIds, Integer[] typeIds, Boolean titleImg,
Boolean recommend, String title, int orderBy, int pageNo,
int pageSize) {
Finder f = byChannelPaths(paths, siteIds, typeIds, titleImg, recommend,
title, orderBy);
f.setCacheable(true);
return find(f, pageNo, pageSize);
}
@SuppressWarnings("unchecked")
public List<Content> getListByChannelPathsForTag(String[] paths,
Integer[] siteIds, Integer[] typeIds, Boolean titleImg,
Boolean recommend, String title, int orderBy, Integer first,
Integer count) {
Finder f = byChannelPaths(paths, siteIds, typeIds, titleImg, recommend,
title, orderBy);
if (first != null) {
f.setFirstResult(first);
}
if (count != null) {
f.setMaxResults(count);
}
f.setCacheable(true);
return find(f);
}
public Pagination getPageByTopicIdForTag(Integer topicId,
Integer[] siteIds, Integer[] channelIds, Integer[] typeIds,
Boolean titleImg, Boolean recommend, String title, int orderBy,
int pageNo, int pageSize) {
Finder f = byTopicId(topicId, siteIds, channelIds, typeIds, titleImg,
recommend, title, orderBy);
f.setCacheable(true);
return find(f, pageNo, pageSize);
}
@SuppressWarnings("unchecked")
public List<Content> getListByTopicIdForTag(Integer topicId,
Integer[] siteIds, Integer[] channelIds, Integer[] typeIds,
Boolean titleImg, Boolean recommend, String title, int orderBy,
Integer first, Integer count) {
Finder f = byTopicId(topicId, siteIds, channelIds, typeIds, titleImg,
recommend, title, orderBy);
if (first != null) {
f.setFirstResult(first);
}
if (count != null) {
f.setMaxResults(count);
}
f.setCacheable(true);
return find(f);
}
public Pagination getPageByTagIdsForTag(Integer[] tagIds,
Integer[] siteIds, Integer[] channelIds, Integer[] typeIds,
Integer excludeId, Boolean titleImg, Boolean recommend,
String title, int orderBy, int pageNo, int pageSize) {
Finder f = byTagIds(tagIds, siteIds, channelIds, typeIds, excludeId,
titleImg, recommend, title, orderBy);
f.setCacheable(true);
return find(f, pageNo, pageSize);
}
@SuppressWarnings("unchecked")
public List<Content> getListByTagIdsForTag(Integer[] tagIds,
Integer[] siteIds, Integer[] channelIds, Integer[] typeIds,
Integer excludeId, Boolean titleImg, Boolean recommend,
String title, int orderBy, Integer first, Integer count) {
Finder f = byTagIds(tagIds, siteIds, channelIds, typeIds, excludeId,
titleImg, recommend, title, orderBy);
if (first != null) {
f.setFirstResult(first);
}
if (count != null) {
f.setMaxResults(count);
}
f.setCacheable(true);
return find(f);
}
private Finder bySiteIds(Integer[] siteIds, Integer[] typeIds,
Boolean titleImg, Boolean recommend, String title, int orderBy) {
Finder f = Finder.create("select bean from Content bean");
f.append(" join bean.contentExt as ext where 1=1");
if (titleImg != null) {
f.append(" and bean.hasTitleImg=:titleImg");
f.setParam("titleImg", titleImg);
}
if (recommend != null) {
f.append(" and bean.recommend=:recommend");
f.setParam("recommend", recommend);
}
appendReleaseDate(f);
appendTypeIds(f, typeIds);
appendSiteIds(f, siteIds);
f.append(" and bean.status=" + ContentCheck.CHECKED);
if (!StringUtils.isBlank(title)) {
f.append(" and bean.contentExt.title like :title");
f.setParam("title", "%" + title + "%");
}
appendOrder(f, orderBy);
return f;
}
private Finder byChannelIds(Integer[] channelIds, Integer[] typeIds,
Boolean titleImg, Boolean recommend, String title, int orderBy,
int option) {
Finder f = Finder.create();
int len = channelIds.length;
// 如果多个栏目
if (option == 0 || len > 1) {
f.append("select bean from Content bean");
f.append(" join bean.contentExt as ext");
if (len == 1) {
f.append(" where bean.channel.id=:channelId");
f.setParam("channelId", channelIds[0]);
} else {
f.append(" where bean.channel.id in (:channelIds)");
f.setParamList("channelIds", channelIds);
}
} else if (option == 1) {
// 包含子栏目
f.append("select bean from Content bean");
f.append(" join bean.contentExt as ext");
f.append(" join bean.channel node,Channel parent");
f.append(" where node.lft between parent.lft and parent.rgt");
f.append(" and bean.site.id=parent.site.id");
f.append(" and parent.id=:channelId");
f.setParam("channelId", channelIds[0]);
} else if (option == 2) {
// 包含副栏目
f.append("select bean from Content bean");
f.append(" join bean.contentExt as ext");
f.append(" join bean.channels as channel");
f.append(" where channel.id=:channelId");
f.setParam("channelId", channelIds[0]);
} else {
throw new RuntimeException("option value must be 0 or 1 or 2.");
}
if (titleImg != null) {
f.append(" and bean.hasTitleImg=:titleImg");
f.setParam("titleImg", titleImg);
}
if (recommend != null) {
f.append(" and bean.recommend=:recommend");
f.setParam("recommend", recommend);
}
appendReleaseDate(f);
appendTypeIds(f, typeIds);
f.append(" and bean.status=" + ContentCheck.CHECKED);
if (!StringUtils.isBlank(title)) {
f.append(" and bean.contentExt.title like :title");
f.setParam("title", "%" + title + "%");
}
appendOrder(f, orderBy);
return f;
}
private Finder byChannelPaths(String[] paths, Integer[] siteIds,
Integer[] typeIds, Boolean titleImg, Boolean recommend,
String title, int orderBy) {
Finder f = Finder.create();
f.append("select bean from Content bean join bean.channel channel");
f.append(" join bean.contentExt as ext");
int len = paths.length;
if (len == 1) {
f.append(" where channel.path=:path").setParam("path", paths[0]);
} else {
f.append(" where channel.path in (:paths)");
f.setParamList("paths", paths);
}
if (siteIds != null) {
len = siteIds.length;
if (len == 1) {
f.append(" and channel.site.id=:siteId");
f.setParam("siteId", siteIds[0]);
} else if (len > 1) {
f.append(" and channel.site.id in (:siteIds)");
f.setParamList("siteIds", siteIds);
}
}
if (titleImg != null) {
f.append(" and bean.hasTitleImg=:titleImg");
f.setParam("titleImg", titleImg);
}
if (recommend != null) {
f.append(" and bean.recommend=:recommend");
f.setParam("recommend", recommend);
}
appendReleaseDate(f);
appendTypeIds(f, typeIds);
f.append(" and bean.status=" + ContentCheck.CHECKED);
if (!StringUtils.isBlank(title)) {
f.append(" and bean.contentExt.title like :title");
f.setParam("title", "%" + title + "%");
}
appendOrder(f, orderBy);
return f;
}
private Finder byTopicId(Integer topicId, Integer[] siteIds,
Integer[] channelIds, Integer[] typeIds, Boolean titleImg,
Boolean recommend, String title, int orderBy) {
Finder f = Finder.create();
f.append("select bean from Content bean join bean.topics topic");
f.append(" join bean.contentExt as ext");
f.append(" where topic.id=:topicId").setParam("topicId", topicId);
if (titleImg != null) {
f.append(" and bean.hasTitleImg=:titleImg");
f.setParam("titleImg", titleImg);
}
if (recommend != null) {
f.append(" and bean.recommend=:recommend");
f.setParam("recommend", recommend);
}
appendReleaseDate(f);
appendTypeIds(f, typeIds);
appendChannelIds(f, channelIds);
appendSiteIds(f, siteIds);
f.append(" and bean.status=" + ContentCheck.CHECKED);
if (!StringUtils.isBlank(title)) {
f.append(" and bean.contentExt.title like :title");
f.setParam("title", "%" + title + "%");
}
appendOrder(f, orderBy);
return f;
}
private Finder byTagIds(Integer[] tagIds, Integer[] siteIds,
Integer[] channelIds, Integer[] typeIds, Integer excludeId,
Boolean titleImg, Boolean recommend, String title, int orderBy) {
Finder f = Finder.create();
int len = tagIds.length;
if (len == 1) {
f.append("select bean from Content bean join bean.tags tag");
f.append(" join bean.contentExt as ext");
f.append(" where tag.id=:tagId").setParam("tagId", tagIds[0]);
} else {
f.append("select distinct bean from Content bean");
f.append(" join bean.contentExt as ext");
f.append(" join bean.tags tag");
f.append(" where tag.id in(:tagIds)");
f.setParamList("tagIds", tagIds);
}
if (titleImg != null) {
f.append(" and bean.hasTitleImg=:titleImg");
f.setParam("titleImg", titleImg);
}
if (recommend != null) {
f.append(" and bean.recommend=:recommend");
f.setParam("recommend", recommend);
}
appendReleaseDate(f);
appendTypeIds(f, typeIds);
appendChannelIds(f, channelIds);
appendSiteIds(f, siteIds);
if (excludeId != null) {
f.append(" and bean.id<>:excludeId");
f.setParam("excludeId", excludeId);
}
f.append(" and bean.status=" + ContentCheck.CHECKED);
if (!StringUtils.isBlank(title)) {
f.append(" and bean.contentExt.title like :title");
f.setParam("title", "%" + title + "%");
}
appendOrder(f, orderBy);
return f;
}
private void appendReleaseDate(Finder f) {
f.append(" and ext.releaseDate<:currentDate");
f.setParam("currentDate", new Date());
}
private void appendTypeIds(Finder f, Integer[] typeIds) {
int len;
if (typeIds != null) {
len = typeIds.length;
if (len == 1) {
f.append(" and bean.type.id=:typeId");
f.setParam("typeId", typeIds[0]);
} else if (len > 1) {
f.append(" and bean.type.id in (:typeIds)");
f.setParamList("typeIds", typeIds);
}
}
}
private void appendChannelIds(Finder f, Integer[] channelIds) {
int len;
if (channelIds != null) {
len = channelIds.length;
if (len == 1) {
f.append(" and bean.channel.id=:channelId");
f.setParam("channelId", channelIds[0]);
} else if (len > 1) {
f.append(" and bean.channel.id in (:channelIds)");
f.setParamList("channelIds", channelIds);
}
}
}
private void appendSiteIds(Finder f, Integer[] siteIds) {
int len;
if (siteIds != null) {
len = siteIds.length;
if (len == 1) {
f.append(" and bean.site.id=:siteId");
f.setParam("siteId", siteIds[0]);
} else if (len > 1) {
f.append(" and bean.site.id in (:siteIds)");
f.setParamList("siteIds", siteIds);
}
}
}
private void appendOrder(Finder f, int orderBy) {
switch (orderBy) {
case 1:
// ID升序
f.append(" order by bean.id asc");
break;
case 2:
// 发布时间降序
f.append(" order by bean.sortDate desc");
break;
case 3:
// 发布时间升序
f.append(" order by bean.sortDate asc");
break;
case 4:
// 固顶级别降序、发布时间降序
f.append(" order by bean.topLevel desc, bean.sortDate desc");
break;
case 5:
// 固顶级别降序、发布时间升序
f.append(" order by bean.topLevel desc, bean.sortDate asc");
break;
case 6:
// 日访问降序
f.append(" order by bean.viewsDay desc, bean.id desc");
break;
case 7:
// 周访问降序
f.append(" order by bean.contentCount.viewsWeek desc");
f.append(", bean.id desc");
break;
case 8:
// 月访问降序
f.append(" order by bean.contentCount.viewsMonth desc");
f.append(", bean.id desc");
break;
case 9:
// 总访问降序
f.append(" order by bean.contentCount.views desc");
f.append(", bean.id desc");
break;
case 10:
// 日评论降序
f.append(" order by bean.commentsDay desc, bean.id desc");
break;
case 11:
// 周评论降序
f.append(" order by bean.contentCount.commentsWeek desc");
f.append(", bean.id desc");
break;
case 12:
// 月评论降序
f.append(" order by bean.contentCount.commentsMonth desc");
f.append(", bean.id desc");
break;
case 13:
// 总评论降序
f.append(" order by bean.contentCount.comments desc");
f.append(", bean.id desc");
break;
case 14:
// 日下载降序
f.append(" order by bean.downloadsDay desc, bean.id desc");
break;
case 15:
// 周下载降序
f.append(" order by bean.contentCount.downloadsWeek desc");
f.append(", bean.id desc");
break;
case 16:
// 月下载降序
f.append(" order by bean.contentCount.downloadsMonth desc");
f.append(", bean.id desc");
break;
case 17:
// 总下载降序
f.append(" order by bean.contentCount.downloads desc");
f.append(", bean.id desc");
break;
case 18:
// 日顶降序
f.append(" order by bean.upsDay desc, bean.id desc");
break;
case 19:
// 周顶降序
f.append(" order by bean.contentCount.upsWeek desc");
f.append(", bean.id desc");
break;
case 20:
// 月顶降序
f.append(" order by bean.contentCount.upsMonth desc");
f.append(", bean.id desc");
break;
case 21:
// 总顶降序
f.append(" order by bean.contentCount.ups desc, bean.id desc");
break;
default:
// 默认: ID降序
f.append(" order by bean.id desc");
}
}
public int countByChannelId(int channelId) {
String hql = "select count(*) from Content bean"
+ " join bean.channel channel,Channel parent"
+ " where channel.lft between parent.lft and parent.rgt"
+ " and channel.site.id=parent.site.id"
+ " and parent.id=:parentId";
Query query = getSession().createQuery(hql);
query.setParameter("parentId", channelId);
return ((Number) (query.iterate().next())).intValue();
}
public Content findById(Integer id) {
Content entity = get(id);
return entity;
}
public Content save(Content bean) {
getSession().save(bean);
return bean;
}
public Content deleteById(Integer id) {
Content entity = super.get(id);
if (entity != null) {
getSession().delete(entity);
}
return entity;
}
@Override
protected Class<Content> getEntityClass() {
return Content.class;
}
} | [
"qzzsunly@163.com"
] | qzzsunly@163.com |
cb11978eed575ebfaf1e17bd20a7aeece3c75713 | bb7ffd667f2f2ffdfa3541dc86410827ac8576ce | /src/Morris_FX/Logic/TurnContext.java | 33a8421769535c4f8d1660d53d44bffedfa1126b | [] | no_license | CS-449-Group-Project/NineMensMorris | 8a82fecd8142ee3753c0cb5a09b76ee95b291062 | e51fba2da2af93768023ba4fa1cba3938ed2d052 | refs/heads/master | 2023-01-24T06:56:57.082819 | 2020-12-10T19:36:43 | 2020-12-10T19:36:43 | 294,475,655 | 2 | 0 | null | 2020-12-10T19:36:45 | 2020-09-10T17:21:08 | Java | UTF-8 | Java | false | false | 926 | java | package Morris_FX.Logic;
public class TurnContext extends ObservableObject {
private Player defaultPlayer;
private Player defaultOpponent;
private Player player;
private Player opponent;
public TurnContext(Player defaultPlayer, Player defaultOpponent) {
this.defaultPlayer = defaultPlayer;
this.defaultOpponent = defaultOpponent;
setPlayerOpponent(defaultPlayer, defaultOpponent);
}
private void setPlayerOpponent(Player player, Player opponent) {
this.player = player;
this.opponent = opponent;
firePropertyChange("player", player);
}
public void switchPlayers() {
setPlayerOpponent(opponent, player);
}
public Player getPlayer() {
return player;
}
public Player getOpponent() {
return opponent;
}
public void reset() {
setPlayerOpponent(defaultPlayer, defaultOpponent);
}
}
| [
"noreply@github.com"
] | noreply@github.com |
fe696d1d60bc53da44ad86c3c762a99d3b17b334 | c978dc33aa64b9a6256d5c1ac570545d43540986 | /app/src/main/java/com/example/nzhang9/mvptest/LoginModel.java | 09f5bb536b914c0c462435d570c15466ec20303c | [] | no_license | MichaelZhang179/MVPDemo | 958484bd0d7072c480cf40be8466ba098b8f9c0e | 69577e01ead80efd21ffdcfa325f9d2ff7c6baa6 | refs/heads/master | 2021-01-19T22:34:02.263286 | 2017-04-20T05:32:16 | 2017-04-20T05:32:16 | 88,824,544 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 201 | java | package com.example.nzhang9.mvptest;
/**
* Created by nzhang9 on 2017/3/26.
*/
public interface LoginModel {
public void login(String name, String password, OnLoginFinishListener listener);
}
| [
"noreply@github.com"
] | noreply@github.com |
2a0ffba680dc36a0d89fb617564f4010cccd51e0 | 4f7b78732348b8a0212b4d5a489930a6014e902e | /ProductDAO.java | 67a1c7883b66bf626b7579e20887b06577b492f8 | [] | no_license | VietTamTran/java | 273d0d983d3965d424291401625dad1fb2c13a90 | aba744a1d05d8f9c16e3965d3f83e216fae2a22b | refs/heads/master | 2020-11-25T14:41:11.141187 | 2019-12-18T00:22:19 | 2019-12-18T00:22:19 | 228,723,127 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 979 | java | package com.teamvietdev.dao;
import com.teamvietdev.model.Product;
import java.util.List;
/**
*
* @author TVD
*/
public interface ProductDAO {
// create
public boolean create(Product object);
// update
public boolean update(Product object);
// delete
public boolean delete(Product object);
// find by id
public Product findById(long productId);
// load list product by category
public List<Product> getListByCategory(long categoryId);
// load list product by category and limit
public List<Product> getListByCategoryAndLimit(long categoryId, int limit);
// load list product by featured
public List<Product> getListFeatured(int limit);
// load list product by sale
public List<Product> getListSale(int limit);
// load list product by nav
public List<Product> getListNav(int start, int limit);
// total item
public int totalItem();
}
| [
"noreply@github.com"
] | noreply@github.com |
3038b9dbe7c4fcafe6604f1a5240daf21afad927 | f4fd782488b9cf6d99d4375d5718aead62b63c69 | /com/planet_ink/coffee_mud/Abilities/Thief/Thief_Autosneak.java | e6304cbbc04da98fd86fc319eb2879772dd681f6 | [
"Apache-2.0"
] | permissive | sfunk1x/CoffeeMud | 89a8ca1267ecb0c2ca48280e3b3930ee1484c93e | 0ac2a21c16dfe3e1637627cb6373d34615afe109 | refs/heads/master | 2021-01-18T11:20:53.213200 | 2015-09-17T19:16:30 | 2015-09-17T19:16:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,812 | java | package com.planet_ink.coffee_mud.Abilities.Thief;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
import com.planet_ink.coffee_mud.CharClasses.interfaces.*;
import com.planet_ink.coffee_mud.Commands.interfaces.*;
import com.planet_ink.coffee_mud.Common.interfaces.*;
import com.planet_ink.coffee_mud.Exits.interfaces.*;
import com.planet_ink.coffee_mud.Items.interfaces.*;
import com.planet_ink.coffee_mud.Libraries.interfaces.*;
import com.planet_ink.coffee_mud.Locales.interfaces.*;
import com.planet_ink.coffee_mud.MOBS.interfaces.*;
import com.planet_ink.coffee_mud.Races.interfaces.*;
import java.util.*;
/*
Copyright 2004-2015 Bo Zimmerman
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.
*/
@SuppressWarnings("rawtypes")
public class Thief_Autosneak extends ThiefSkill
{
@Override public String ID() { return "Thief_Autosneak"; }
@Override public String displayText() {return L("(AutoSneak)");}
private final static String localizedName = CMLib.lang().L("AutoSneak");
@Override public String name() { return localizedName; }
@Override protected int canAffectCode(){return CAN_MOBS;}
@Override protected int canTargetCode(){return 0;}
@Override public int abstractQuality(){return Ability.QUALITY_OK_SELF;}
private static final String[] triggerStrings =I(new String[] {"AUTOSNEAK"});
@Override public String[] triggerStrings(){return triggerStrings;}
@Override public int classificationCode() { return Ability.ACODE_SKILL|Ability.DOMAIN_STEALTHY; }
protected boolean noRepeat=false;
@Override
public boolean okMessage(final Environmental myHost, final CMMsg msg)
{
if(!super.okMessage(myHost,msg))
return false;
if((affected instanceof MOB)
&&(!noRepeat)
&&(msg.targetMinor()==CMMsg.TYP_LEAVE)
&&(msg.source()==affected)
&&(msg.target() instanceof Room)
&&(msg.tool() instanceof Exit)
&&(((MOB)affected).location()!=null))
{
int dir=-1;
final MOB mob=(MOB)affected;
for(int d=Directions.NUM_DIRECTIONS()-1;d>=0;d--)
if((mob.location().getRoomInDir(d)==msg.target())
||(mob.location().getReverseExit(d)==msg.tool())
||(mob.location().getExitInDir(d)==msg.tool()))
{ dir=d; break;}
if(dir>=0)
{
Ability A=mob.fetchAbility("Thief_Sneak");
if(A==null)
A=mob.fetchAbility("Ranger_Sneak");
if(A!=null)
{
noRepeat=true;
if(A.invoke(mob,CMParms.parse(Directions.getDirectionName(dir)),null,false,0))
{
final int[] usage=A.usageCost(mob,false);
if(CMath.bset(A.usageType(),Ability.USAGE_HITPOINTS)&&(usage[USAGEINDEX_HITPOINTS]>0))
mob.curState().adjHitPoints(usage[USAGEINDEX_HITPOINTS]/2,mob.maxState());
if(CMath.bset(A.usageType(),Ability.USAGE_MANA)&&(usage[USAGEINDEX_MANA]>0))
mob.curState().adjMana(usage[USAGEINDEX_MANA]/2,mob.maxState());
if(CMath.bset(A.usageType(),Ability.USAGE_MOVEMENT)&&(usage[USAGEINDEX_MOVEMENT]>0))
mob.curState().adjMovement(usage[USAGEINDEX_MOVEMENT]/2,mob.maxState());
}
if(CMLib.dice().rollPercentage()<10)
helpProficiency(mob, 0);
noRepeat=false;
}
return false;
}
}
return true;
}
@Override
public boolean invoke(MOB mob, Vector commands, Physical givenTarget, boolean auto, int asLevel)
{
if((mob.fetchEffect(ID())!=null))
{
mob.tell(L("You are no longer automatically sneaking around."));
mob.delEffect(mob.fetchEffect(ID()));
return false;
}
if(!super.invoke(mob,commands,givenTarget,auto,asLevel))
return false;
final boolean success=proficiencyCheck(mob,0,auto);
if(success)
{
mob.tell(L("You will now automatically sneak around while you move."));
beneficialAffect(mob,mob,asLevel,adjustedLevel(mob,asLevel));
final Ability A=mob.fetchEffect(ID());
if(A!=null)
A.makeLongLasting();
}
else
beneficialVisualFizzle(mob,null,L("<S-NAME> attempt(s) to get into <S-HIS-HER> sneaking stance, but fail(s)."));
return success;
}
}
| [
"bo@zimmers.net"
] | bo@zimmers.net |
40aefec2463639aedff75855afea685596c37893 | 148e123ea3af0c50c451c95aff3c6bc5b1d3644b | /src/it/mytutor/business/impl/RegistrationBusiness.java | 67ea1a69b6decee6be57c6d5d3636fbf328db44b | [] | no_license | Alemato/Web-Avanzato | dc2948fc26aa9ab83319f8f21b429ae356d39e43 | 28b17d9b1bf0f7aa8f48b6aa2163b74de10b3f1a | refs/heads/master | 2023-08-27T22:49:26.163667 | 2021-11-02T19:46:03 | 2021-11-02T19:46:03 | 423,977,517 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,508 | java | package it.mytutor.business.impl;
import it.mytutor.business.exceptions.RegistrationException;
import it.mytutor.business.security.SecurityHash;
import it.mytutor.business.services.RegistrationInterface;
import it.mytutor.domain.Student;
import it.mytutor.domain.Teacher;
import it.mytutor.domain.User;
import it.mytutor.domain.dao.exception.DatabaseException;
import it.mytutor.domain.dao.implement.StudentDao;
import it.mytutor.domain.dao.implement.TeacherDao;
import it.mytutor.domain.dao.implement.UserDao;
public class RegistrationBusiness implements RegistrationInterface {
@Override
public void RegistrationStudent(Student student) throws RegistrationException {
student.setRoles(1);
try {
UserDao userDao = new UserDao();
userDao.createUser(student);
} catch (DatabaseException e) {
e.printStackTrace();
throw new RegistrationException("Errore nel creare l'user");
}
try {
UserDao userDao1 = new UserDao();
student.setUser(userDao1.getUserByEmail(student.getEmail()));
} catch (DatabaseException e){
e.printStackTrace();
throw new RegistrationException("Errore nel prendere l'user creato");
}
try {
StudentDao studentDao = new StudentDao();
studentDao.createStudent(student);
} catch (DatabaseException e){
e.printStackTrace();
throw new RegistrationException("Errore nel creare lo student");
}
}
@Override
public void RegistrationTeacher(Teacher teacher) throws RegistrationException {
teacher.setRoles(2);
try {
UserDao userDao = new UserDao();
userDao.createUser(teacher);
} catch (DatabaseException e) {
e.printStackTrace();
throw new RegistrationException("Errore nel creare l'user");
}
try {
UserDao userDao1 = new UserDao();
teacher.setUser(userDao1.getUserByEmail(teacher.getEmail()));
} catch (DatabaseException e){
e.printStackTrace();
throw new RegistrationException("Errore nel prendere l'user creato");
}
try {
TeacherDao teacherDao = new TeacherDao();
teacherDao.createTeacher(teacher);
} catch (DatabaseException e){
e.printStackTrace();
throw new RegistrationException("Errore nel creare il teacher");
}
}
}
| [
"alessandro.mattei1@student.univaq.it"
] | alessandro.mattei1@student.univaq.it |
6b5fca179e6d391d652e36f2fddd78258beb4791 | 20ff3b4bbbe8ec27de8741e39880b3b1c5d2a7ea | /com/tema1/players/BribePlayer.java | 772dc21500cb190d8a3a2d71279371bc8e962e5b | [] | no_license | livalex/Sheriff-of-Nottingham | b8bd7b6c9c9ded4226f077cf5ce684311f875d74 | 0a01d4ca8faea8e3adf82da4e2c1f081248f76cf | refs/heads/master | 2021-03-01T20:15:10.206629 | 2020-03-08T13:23:35 | 2020-03-08T13:23:35 | 245,811,347 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,998 | java | // Copyright 2019: Livadaru Alexandru-Valentin
package com.tema1.players;
import com.tema1.common.Constants;
import com.tema1.goods.GoodsFactory;
import com.tema1.goods.Goods;
import com.tema1.goods.GoodsType;
import com.tema1.main.GameInput;
import java.util.Queue;
import java.util.LinkedList;
import java.util.Collections;
import java.util.ArrayList;
import com.tema1.comparators.GoodsComparator;
public class BribePlayer extends BasicPlayer {
public BribePlayer() {
}
public BribePlayer(final int type, final int playerId) {
setPlayerType(type);
setPlayerId(playerId);
}
@Override
public final void commerciant(final int roundNumber, final Queue<Integer> queue,
final GoodsFactory goodsFactory) {
// Made a copy of the queue in order to find out
// If he will play base strategy for commerciant or bribe.
Queue<Integer> copyQueue = new LinkedList<Integer>();
for (Integer i : queue) {
copyQueue.add(i);
}
int flag = 0;
for (int j = 0; j < Constants.CARDS_DRAWING; ++j) {
int card = copyQueue.remove();
if (card > Constants.MAX_LEGAL_CARD_ID) {
flag = 1;
}
}
if (getMoney() <= Constants.MIN_BRIBE || flag == 0) {
super.commerciant(roundNumber, queue, goodsFactory);
} else {
for (int j = 0; j < Constants.CARDS_DRAWING; ++j) {
int card = queue.remove();
getCards().add(goodsFactory.getGoodsById(card));
}
GoodsComparator goodsComparator = new GoodsComparator();
// A copy of the cards used to sort the cards.
ArrayList<Goods> copyCard = new ArrayList<>();
for (Goods g : getCards()) {
copyCard.add(g);
}
Collections.sort(copyCard, goodsComparator);
int bribeFlag = -1;
int illegalCounter = 0;
int possiblePenalty = 0;
for (int i = 0; i < copyCard.size(); ++i) {
Goods g = copyCard.get(i);
if (g.getType() == GoodsType.Illegal) {
// If he would have money to pay the penalty of
// The card in case he is caught, he puts the card
// In the bag and we find out the total number of illegal cards.
if (illegalCounter <= 2) {
if (getMoney() - g.getPenalty() - possiblePenalty > 0
&& getBag().size() < Constants.CARDS_IN_HAND) {
++illegalCounter;
possiblePenalty += g.getPenalty();
getBag().add(g);
}
} else {
if (getMoney() - g.getPenalty() - possiblePenalty > 0
&& getBag().size() < Constants.CARDS_IN_HAND) {
++illegalCounter;
possiblePenalty += g.getPenalty();
getBag().add(g);
}
}
} else {
// Just as above but with legal cards.
if (getMoney() - g.getPenalty() - possiblePenalty > 0
&& getBag().size() < Constants.CARDS_IN_HAND) {
possiblePenalty += g.getPenalty();
getBag().add(g);
}
}
}
setBagContent(0);
// Decide the bribe.
if (illegalCounter <= 2 && illegalCounter != 0) {
setBribe(Constants.MIN_BRIBE);
} else {
setBribe(Constants.MAX_BRIBE);
}
}
}
@Override
public final void sheriff(final Human human, final GameInput gameInput) {
super.sheriff(human, gameInput);
}
}
| [
"noreply@github.com"
] | noreply@github.com |
cef4c87940e891797cc6e3cab7931362fb82aaea | 30e90b7f5a9a552d2fc9c0c5c3a6ea4c4d60d593 | /src/main/java/com/lm/hadoop/Vo/UploadImageResult.java | 0184fa19c348c628893b95fc2b2c7dff6802bc02 | [] | no_license | lllmiao/hadoop | a9973a096c416704cc877e401fe4dfa54fc14139 | d026c58d04318b9cc80e6465eb1821199fcd873b | refs/heads/master | 2023-03-19T21:53:20.428380 | 2021-03-02T11:41:17 | 2021-03-02T11:41:17 | 342,149,677 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 363 | java | package com.lm.hadoop.Vo;
//定义网盘返回类
public class UploadImageResult {
public String image;
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
public UploadImageResult() {
}
public UploadImageResult(String image) {
this.image = image;
}
}
| [
"361560472@qq.com"
] | 361560472@qq.com |
67ccfafb8c93ac56506efed30e45eb8a7b376778 | 00b10b02a8bc2a74b146bb9e129e33dfaa28c3d9 | /src/labTask2/LabTask3.java | a81abb0e68741403d3dbf1df62229c21ec628135 | [] | no_license | kshitijvarshne1/labWork | 47ac714ef01634a1c9fbe5390032973ffefc1704 | 35ff873bfc014b25fd271db91d5103743807d753 | refs/heads/master | 2023-01-11T01:34:10.851555 | 2020-11-09T16:04:21 | 2020-11-09T16:04:21 | 288,164,745 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 912 | java | /* Created by IntelliJ IDEA.
* Author: Kshitij Varshney (kshitijvarshne1)
* Date: 25-Jul-20
* Time: 9:52 PM
* File: LabTask3.java
*/
package labTask2;
/*3. Create a program in Java to demonstrate declaration, initialization and usage of local
variables. */
class Student {
void showStudentRollNo() {
int studentRollNo = 23; //LocalVariable
System.out.println("Student RooLL No :- " + studentRollNo);
}
//studentRollNo not accesible here(not available to access out from the method 'show')
}
public class LabTask3 {
public static void main(String[] args) {
Student Shivam = new Student();
Shivam.showStudentRollNo();// studentRoLLNo <-- local variable access thr
int studentId = 1915;
System.out.println("Student ID :- " + studentId);
}
//studenId not accesible here(not available to access out from the main method)
}
| [
"kshitij.varshney_cs19@gla.ac.in"
] | kshitij.varshney_cs19@gla.ac.in |
9560b89a48088db75084856b232ff99b04f76481 | 36eda36c952f278291ec607a40bb37601859061a | /android/app/src/debug/java/com/fitness_talkshow_25617/ReactNativeFlipper.java | 53cc8eab5acbb0ee313d46e09734cdc49af800c0 | [] | no_license | crowdbotics-apps/fitness-talkshow-25617 | 2e89035c28f7111518bd0e2788d00b97af425370 | c77ab97ee3e76ffed965ec3e8b62a0433359472f | refs/heads/master | 2023-04-01T18:59:05.711964 | 2021-04-10T15:26:13 | 2021-04-10T15:26:13 | 356,620,059 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,277 | java | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
package com.fitness_talkshow_25617;
import android.content.Context;
import com.facebook.flipper.android.AndroidFlipperClient;
import com.facebook.flipper.android.utils.FlipperUtils;
import com.facebook.flipper.core.FlipperClient;
import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
import com.facebook.flipper.plugins.inspector.DescriptorMapping;
import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
import com.facebook.flipper.plugins.react.ReactFlipperPlugin;
import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.modules.network.NetworkingModule;
import okhttp3.OkHttpClient;
public class ReactNativeFlipper {
public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
if (FlipperUtils.shouldEnableFlipper(context)) {
final FlipperClient client = AndroidFlipperClient.getInstance(context);
client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
client.addPlugin(new ReactFlipperPlugin());
client.addPlugin(new DatabasesFlipperPlugin(context));
client.addPlugin(new SharedPreferencesFlipperPlugin(context));
client.addPlugin(CrashReporterPlugin.getInstance());
NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
NetworkingModule.setCustomClientBuilder(
new NetworkingModule.CustomClientBuilder() {
@Override
public void apply(OkHttpClient.Builder builder) {
builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
}
});
client.addPlugin(networkFlipperPlugin);
client.start();
// Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
// Hence we run if after all native modules have been initialized
ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
if (reactContext == null) {
reactInstanceManager.addReactInstanceEventListener(
new ReactInstanceManager.ReactInstanceEventListener() {
@Override
public void onReactContextInitialized(ReactContext reactContext) {
reactInstanceManager.removeReactInstanceEventListener(this);
reactContext.runOnNativeModulesQueueThread(
new Runnable() {
@Override
public void run() {
client.addPlugin(new FrescoFlipperPlugin());
}
});
}
});
} else {
client.addPlugin(new FrescoFlipperPlugin());
}
}
}
}
| [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b53a747ab04b9a2d61eb74d40b8df88c4ecd6bbb | 0bd98586b05d47ad0059bfe1c126458b254d8ae8 | /src/main/java/com/github/zhuyizhuo/generator/mybatis/db/service/impl/OracleDbServiceImpl.java | a65d0341e7aa26c7ea2091f0ea55c9e594c18dde | [
"Apache-2.0"
] | permissive | tuablove/code-generator | 235ce91314ce357d8f48c9282a20b2418f6d1e1d | 4bbd03397c0e7976cbaf642ffe28ed67959e3e54 | refs/heads/master | 2020-03-26T22:51:10.734376 | 2018-08-21T01:23:53 | 2018-08-21T01:23:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,868 | java | package com.github.zhuyizhuo.generator.mybatis.db.service.impl;
import com.github.zhuyizhuo.generator.mybatis.db.service.abst.AbstractDbService;
import com.github.zhuyizhuo.generator.mybatis.vo.TableInfo;
import com.github.zhuyizhuo.generator.utils.TypeConversion;
import com.google.common.collect.Lists;
import com.github.zhuyizhuo.generator.mybatis.database.mapper.OracleDataBaseMapper;
import com.github.zhuyizhuo.generator.mybatis.database.pojo.ColumnInfo;
import com.github.zhuyizhuo.generator.mybatis.database.pojo.DataBaseInfo;
import com.github.zhuyizhuo.generator.mybatis.database.pojo.DbTableInfo;
import com.github.zhuyizhuo.generator.mybatis.utils.SqlSessionUtils;
import com.github.zhuyizhuo.generator.utils.LogUtils;
import org.apache.ibatis.session.SqlSession;
import java.util.List;
/**
* class: OracleDbServiceImpl <br>
* description: oracle数据库查询表结构实现 <br>
* time: 2018/8/6 12:58
*
* @author yizhuo <br>
* @version 1.0
*/
public class OracleDbServiceImpl extends AbstractDbService {
@Override
public List<TableInfo> getTableColumns() {
SqlSession sqlSession = SqlSessionUtils.getSqlSession();
OracleDataBaseMapper mapper = sqlSession.getMapper(OracleDataBaseMapper.class);
DataBaseInfo dataBaseInfo = getDataBaseInfo();
List<DbTableInfo> tableList = mapper.getTableNameListBySchema(dataBaseInfo);
LogUtils.printInfo("共查询出" + tableList.size() + "张表.");
List<TableInfo> tableInfos = getTableInfos(mapper, tableList);
sqlSession.close();
return tableInfos;
}
private List<TableInfo> getTableInfos(OracleDataBaseMapper mapper, List<DbTableInfo> tableList) {
List<TableInfo> tableInfos = Lists.newArrayList();
TableInfo tableInfo = null;
for (int i = 0; i < tableList.size(); i++) {
DbTableInfo dbTableInfo = tableList.get(i);
String tableName = dbTableInfo.getTableName();
DbTableInfo allColumnsByTable = mapper.getAllColumnsByTable(dbTableInfo.getTableSchema(), tableName);
tableInfo = new TableInfo();
setTableInfo(allColumnsByTable,tableInfo);
tableInfo.setJavaTableName(getJavaTableName(tableName));
tableInfo.addPrimaryKeyColumn(getPrimaryKeys(mapper,dbTableInfo));
tableInfos.add(tableInfo);
LogUtils.printInfo(tableName + "表共" + allColumnsByTable.getColumnLists().size() + "列");
}
return tableInfos;
}
private List<ColumnInfo> getPrimaryKeys(OracleDataBaseMapper mapper, DbTableInfo dbTableInfo) {
return mapper.getPrimaryKeys(dbTableInfo);
}
@Override
protected String getJavaDataType(ColumnInfo columnInfo) {
return TypeConversion.getTypeByMap(TypeConversion.oracleDbType2JavaMap, getDataType(columnInfo.getDataType()));
}
}
| [
"zhu.yizhuo@163.com"
] | zhu.yizhuo@163.com |
55632c2d7af281aed065acd1008c9e4dc3220bdb | 8e87f45f82a40087e6da8ca6f61fe89d793b149a | /src/entities/Tree.java | ba9c95687969f45539077866dd38a27d1edc3941 | [] | no_license | NamanB/Code_Mania | 8a9fbf4eaa2d9d3526be23c12103c4593b44c05d | a5860fca1d5c28c64c9b517a4c4509924664f185 | refs/heads/master | 2021-08-30T22:52:25.270531 | 2017-12-19T18:22:27 | 2017-12-19T18:22:27 | 114,423,884 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 638 | java | package entities;
import java.awt.Graphics2D;
import entities.Entity;
import main.GameWindow;
public class Tree extends Entity {
private static final int WIDTH = 40;
private static final int HEIGHT = 40;
public Tree(double X, double Y) {
super(X, Y, new int[]{0}, new int[]{0});
this.setHeight(WIDTH);
this.setWidth(HEIGHT);
this.type = "player";
this.name = "JOE"; //TODO implement player name input
}
//TODO for multiple textures
// public void draw(GameWindow w, Graphics2D g, Player player) {
// g.drawImage(texture[0], (int) (x - player.getX()), (int) (y + player.getY()), width, height, null);
// }
}
| [
"sashaivanov2424@gmail.com"
] | sashaivanov2424@gmail.com |
1afdd1ed2c8197782c911aec6bf766d733e2129f | a2aead92f1ba8bfde07388e9bf2f9632f8385071 | /ECommerceApp/app/src/main/java/com/example/ecommerceapp/OrderDetails.java | 2048a3ed0e25697a3f00aff1223224639b0c9073 | [] | no_license | fadyZaherEng/ECommerceApp | ab397116f4ab347990f29766c1a7ecbd735117a0 | 2bd97ce1f6f81240dedf87edb5f949afaf2c7394 | refs/heads/main | 2023-02-28T12:35:25.418468 | 2021-02-04T11:26:56 | 2021-02-04T11:26:56 | 335,932,413 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,209 | java | package com.example.ecommerceapp;
public class OrderDetails {
private String name,phone,address,date,id;
private Double price;
public OrderDetails(String name, String phone, String address, String date,String id, Double price) {
this.name = name;
this.phone = phone;
this.address = address;
this.date = date;
this.price = price;
this.id=id;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public Double getPrice() {
return price;
}
public void setPrice(Double price) {
this.price = price;
}
}
| [
"fady33zaher@gmail.com"
] | fady33zaher@gmail.com |
94fa41be1247a3de8adc442dc0505c91fc0e11e5 | 6b3690967f1837d462a130984b781ba7d20ea2ab | /CoreTech/src/exception/MethodOverride/Super.java | 6a4c5f07447e1c22a570b2cf557bd89d6ea6cde2 | [] | no_license | sugyan84/EclipseCodeNewRepo | 87f7b99a4f7a79550207ac614f173b7ed5b5cc02 | d4e03c89c401c9449345cdadf45e2923eb7db1d6 | refs/heads/master | 2018-08-17T04:44:27.628262 | 2018-02-04T07:05:54 | 2018-02-04T07:05:54 | 113,458,937 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 268 | java | package exception.MethodOverride;
import java.io.FileNotFoundException;
import java.io.IOException;
public class Super
{
void show() throws IOException
{
}
}
class Sub extends Super
{
void show() throws FileNotFoundException
{
}
} | [
"sugyansahu84@gmail.com"
] | sugyansahu84@gmail.com |
6f94c72b5f7987a6f089dd12ce373c550b8f06d9 | 03fa928dcce24abe343ab21c933fc83d97d650f6 | /ConnectionBLE/app/src/main/java/com/example/connectionble/ble/connection/BLEScanner.java | a9736868ee1b761a9743b1e2ebfb43a089afe54b | [] | no_license | LeeJoeIng/PACT_BLE | 74626a5cb3bf35b23d16ac7678b6cadf6392f0d1 | 1a2dd9539766291611862d1d4c646376b638fa42 | refs/heads/master | 2021-01-01T23:59:20.530799 | 2020-02-18T18:19:19 | 2020-02-18T18:19:19 | 239,401,862 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,802 | java | package com.example.connectionble.ble.connection;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothManager;
import android.content.Context;
import android.os.Handler;
import com.example.connectionble.ble.Utils;
public class BLEScanner {
private BluetoothAdapter bluetoothAdapter;
private Handler handler;
private boolean scanning;
private long scanPeriod;
private int signalStrength;
private ConnectionBLE connectionBLE;
public BLEScanner(ConnectionBLE connectionBLE, long scanPeriod, int signalStrength) {
this.connectionBLE = connectionBLE;
handler = new Handler();
this.scanPeriod = scanPeriod;
this.signalStrength = signalStrength;
final BluetoothManager bluetoothManager =
(BluetoothManager) connectionBLE.getScanActivity().getSystemService(Context.BLUETOOTH_SERVICE);
//bluetooth module on phone
bluetoothAdapter = bluetoothManager.getAdapter();
}
public boolean isScanning() {
return scanning;
}
public void start() {
if (!Utils.checkBluetooth(bluetoothAdapter)) {
Utils.requestUserBluetooth(connectionBLE.getScanActivity());
connectionBLE.stopScan();
} else {
scanDevice(true);
}
}
public void stop() {
scanDevice(false);
}
private void scanDevice(final boolean enable) {
if (enable && !scanning) {
// Stops scanning after a pre-defined scan period.
handler.postDelayed(new Runnable() {
@Override
public void run() {
scanning = false;
bluetoothAdapter.stopLeScan(scanCallback);
connectionBLE.stopScan();
}
}, scanPeriod);
scanning = true;
bluetoothAdapter.startLeScan(scanCallback);
} else {
scanning = false;
bluetoothAdapter.stopLeScan(scanCallback);
}
}
// Device scan callback.
//be executed by a thread
private BluetoothAdapter.LeScanCallback scanCallback =
new BluetoothAdapter.LeScanCallback() {
@Override
public void onLeScan(final BluetoothDevice device, int rssi, byte[] scanRecord) {
final int new_rssi = rssi;
if (rssi > signalStrength) {
handler.post(new Runnable() {
@Override
public void run() {
connectionBLE.addDevice(device, new_rssi);
}
});
}
}
};
}
| [
"joe.lee@telecom-paris.fr"
] | joe.lee@telecom-paris.fr |
685388bc76c1ff78acddc68790b0ee8849c0efcf | 2eaf7b801cbcb8396c8adcdd463613d8001387d3 | /musicplayerspecsandsourcecode_/source code/source code/Music Player/gen/com/music/player/R.java | 613abb044eba4a0498e51f7de3ee044afeb9bf61 | [] | no_license | anshu099/Personal-Codes | 371753f6eaf53d3b706fff705ec1918883a69ac4 | 9b1caaa99cb9f5607f934a78252d67d5a3b58a24 | refs/heads/master | 2016-09-01T17:17:14.018405 | 2015-08-07T11:05:31 | 2015-08-07T11:05:31 | 28,898,488 | 0 | 0 | null | 2015-01-19T08:38:43 | 2015-01-07T04:37:41 | null | UTF-8 | Java | false | false | 225,572 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.music.player;
public final class R {
public static final class anim {
public static final int abc_fade_in=0x7f040000;
public static final int abc_fade_out=0x7f040001;
public static final int abc_slide_in_bottom=0x7f040002;
public static final int abc_slide_in_top=0x7f040003;
public static final int abc_slide_out_bottom=0x7f040004;
public static final int abc_slide_out_top=0x7f040005;
}
public static final class array {
public static final int default_action_entries=0x7f0f0004;
public static final int default_playlist_action_entries=0x7f0f0003;
public static final int display_mode_entries=0x7f0f0007;
public static final int entry_values=0x7f0f0000;
public static final int notification_action_entries=0x7f0f0006;
public static final int notification_mode_entries=0x7f0f0005;
public static final int swipe_action_entries=0x7f0f0002;
public static final int swipe_action_values=0x7f0f0001;
}
public static final class attr {
/** Custom divider drawable to use for elements in the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarDivider=0x7f01000f;
/** Custom item state list drawable background for action bar items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarItemBackground=0x7f010010;
/** Size of the Action Bar, including the contextual
bar used to present Action Modes.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int actionBarSize=0x7f01000e;
/** Reference to a theme that should be used to inflate widgets
and layouts destined for the action bar. Most of the time
this will be a reference to the current theme, but when
the action bar has a significantly different contrast
profile than the rest of the activity the difference
can become important. If this is set to @null the current
theme will be used.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarSplitStyle=0x7f01000c;
/** Reference to a style for the Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarStyle=0x7f01000b;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabBarStyle=0x7f010008;
/** Default style for tabs within an action bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabStyle=0x7f010007;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarTabTextStyle=0x7f010009;
/** Reference to a theme that should be used to inflate widgets
and layouts destined for the action bar. Most of the time
this will be a reference to the current theme, but when
the action bar has a significantly different contrast
profile than the rest of the activity the difference
can become important. If this is set to @null the current
theme will be used.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionBarWidgetTheme=0x7f01000d;
/** Default action button style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionButtonStyle=0x7f010016;
/** Default ActionBar dropdown style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionDropDownStyle=0x7f010047;
/** An optional layout to be used as an action view.
See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionLayout=0x7f01004e;
/** TextAppearance style that will be applied to text that
appears within action menu items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionMenuTextAppearance=0x7f010011;
/** Color for text that appears within action menu items.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int actionMenuTextColor=0x7f010012;
/** Background drawable to use for action mode UI
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeBackground=0x7f01003c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCloseButtonStyle=0x7f01003b;
/** Drawable to use for the close action mode button
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCloseDrawable=0x7f01003e;
/** Drawable to use for the Copy action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCopyDrawable=0x7f010040;
/** Drawable to use for the Cut action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeCutDrawable=0x7f01003f;
/** Drawable to use for the Find action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeFindDrawable=0x7f010044;
/** Drawable to use for the Paste action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModePasteDrawable=0x7f010041;
/** PopupWindow style to use for action modes when showing as a window overlay.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModePopupWindowStyle=0x7f010046;
/** Drawable to use for the Select all action button in Contextual Action Bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeSelectAllDrawable=0x7f010042;
/** Drawable to use for the Share action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeShareDrawable=0x7f010043;
/** Background drawable to use for action mode UI in the lower split bar
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeSplitBackground=0x7f01003d;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeStyle=0x7f01003a;
/** Drawable to use for the Web Search action button in WebView selection action modes
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionModeWebSearchDrawable=0x7f010045;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int actionOverflowButtonStyle=0x7f01000a;
/** The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.
See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int actionProviderClass=0x7f010050;
/** The name of an optional View class to instantiate and use as an
action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int actionViewClass=0x7f01004f;
/** Default ActivityChooserView style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int activityChooserViewStyle=0x7f01006c;
/** Specifies a background drawable for the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int background=0x7f01002f;
/** Specifies a background drawable for the bottom component of a split action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int backgroundSplit=0x7f010031;
/** Specifies a background drawable for a second stacked row of the action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int backgroundStacked=0x7f010030;
/** A style that may be applied to Buttons placed within a
LinearLayout with the style buttonBarStyle to form a button bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int buttonBarButtonStyle=0x7f010018;
/** A style that may be applied to horizontal LinearLayouts
to form a button bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int buttonBarStyle=0x7f010017;
/** <p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int click_remove_id=0x7f01007e;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int collapsed_height=0x7f01006e;
/** Specifies a layout for custom navigation. Overrides navigationMode.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int customNavigationLayout=0x7f010032;
/** Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int disableChildrenWhenDisabled=0x7f010054;
/** Options affecting how the action bar is displayed.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr>
<tr><td><code>showHome</code></td><td>0x2</td><td></td></tr>
<tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr>
<tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr>
<tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr>
<tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr>
</table>
*/
public static final int displayOptions=0x7f010028;
/** Specifies the drawable used for item dividers.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int divider=0x7f01002e;
/** A drawable that may be used as a horizontal divider between visual elements.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dividerHorizontal=0x7f01001b;
/** Size of padding on either end of a divider.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int dividerPadding=0x7f010056;
/** A drawable that may be used as a vertical divider between visual elements.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dividerVertical=0x7f01001a;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int drag_enabled=0x7f010078;
/** <p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int drag_handle_id=0x7f01007c;
/** <p>Must be a floating point value, such as "<code>1.2</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int drag_scroll_start=0x7f01006f;
/** <p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>onDown</code></td><td>0</td><td></td></tr>
<tr><td><code>onMove</code></td><td>1</td><td></td></tr>
<tr><td><code>onLongPress</code></td><td>2</td><td></td></tr>
</table>
*/
public static final int drag_start_mode=0x7f01007b;
/** ListPopupWindow comaptibility
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int dropDownListViewStyle=0x7f010021;
/** <p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int drop_animation_duration=0x7f010077;
/** The preferred item height for dropdown lists.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int dropdownListPreferredItemHeight=0x7f010048;
/** The drawable to show in the button for expanding the activities overflow popup.
<strong>Note:</strong> Clients would like to set this drawable
as a clue about the action the chosen activity will perform. For
example, if share activity is to be chosen the drawable should
give a clue that sharing is to be performed.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int expandActivityOverflowButtonDrawable=0x7f01006b;
/** <p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int fling_handle_id=0x7f01007d;
/** <p>Must be a floating point value, such as "<code>1.2</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int float_alpha=0x7f010074;
/** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int float_background_color=0x7f010071;
/** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int height=0x7f010026;
/** Specifies a drawable to use for the 'home as up' indicator.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int homeAsUpIndicator=0x7f010013;
/** Specifies a layout to use for the "home" section of the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int homeLayout=0x7f010033;
/** Specifies the drawable used for the application icon.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int icon=0x7f01002c;
/** The default state of the SearchView. If true, it will be iconified when not in
use and expanded when clicked.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int iconifiedByDefault=0x7f01005a;
/** Specifies a style resource to use for an indeterminate progress spinner.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int indeterminateProgressStyle=0x7f010035;
/** The maximal number of items initially shown in the activity list.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int initialActivityCount=0x7f01006a;
/** Specifies whether the theme is light, otherwise it is dark.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int isLightTheme=0x7f010059;
/** Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int itemPadding=0x7f010037;
/** Drawable used as a background for selected list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int listChoiceBackgroundIndicator=0x7f01004c;
/** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int listPopupWindowStyle=0x7f010022;
/** The preferred list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeight=0x7f01001c;
/** A larger, more robust list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeightLarge=0x7f01001e;
/** A smaller, sleeker list item height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemHeightSmall=0x7f01001d;
/** The preferred padding along the left edge of list items.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemPaddingLeft=0x7f01001f;
/** The preferred padding along the right edge of list items.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int listPreferredItemPaddingRight=0x7f010020;
/** Specifies the drawable used for the application logo.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int logo=0x7f01002d;
/** <p>Must be a floating point value, such as "<code>1.2</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int max_drag_scroll_speed=0x7f010070;
/** The type of navigation to use.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td> Normal static title text </td></tr>
<tr><td><code>listMode</code></td><td>1</td><td> The action bar will use a selection list for navigation. </td></tr>
<tr><td><code>tabMode</code></td><td>2</td><td> The action bar will use a series of horizontal tabs for navigation. </td></tr>
</table>
*/
public static final int navigationMode=0x7f010027;
/** Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int paddingEnd=0x7f010039;
/** Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int paddingStart=0x7f010038;
/** Default Panel Menu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int panelMenuListTheme=0x7f01004b;
/** Default Panel Menu width.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int panelMenuListWidth=0x7f01004a;
/** Default PopupMenu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupMenuStyle=0x7f010049;
/** Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown". This layout must contain a TextView with the id
{@code @android:id/text1} to be populated with the prompt text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int popupPromptView=0x7f010053;
/** Specifies the horizontal padding on either end for an embedded progress bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int progressBarPadding=0x7f010036;
/** Specifies a style resource to use for an embedded progress bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int progressBarStyle=0x7f010034;
/** The prompt to display when the spinner's dialog is shown.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int prompt=0x7f010051;
/** An optional query hint string to be displayed in the empty query field.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int queryHint=0x7f01005b;
/** <p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int remove_animation_duration=0x7f010076;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int remove_enabled=0x7f01007a;
/** <p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>clickRemove</code></td><td>0</td><td></td></tr>
<tr><td><code>flingRemove</code></td><td>1</td><td></td></tr>
</table>
*/
public static final int remove_mode=0x7f010072;
/** SearchView dropdown background
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchDropdownBackground=0x7f01005c;
/** The list item height for search results. @hide
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int searchResultListItemHeight=0x7f010065;
/** SearchView AutoCompleteTextView style
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewAutoCompleteTextView=0x7f010069;
/** SearchView close button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewCloseIcon=0x7f01005d;
/** SearchView query refinement icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewEditQuery=0x7f010061;
/** SearchView query refinement icon background
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewEditQueryBackground=0x7f010062;
/** SearchView Go button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewGoIcon=0x7f01005e;
/** SearchView Search icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewSearchIcon=0x7f01005f;
/** SearchView text field background for the left section
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewTextField=0x7f010063;
/** SearchView text field background for the right section
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewTextFieldRight=0x7f010064;
/** SearchView Voice button icon
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int searchViewVoiceIcon=0x7f010060;
/** A style that may be applied to buttons or other selectable items
that should react to pressed and focus states, but that do not
have a clear visual border along the edges.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int selectableItemBackground=0x7f010019;
/** How this item should display in the Action Bar, if present.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>never</code></td><td>0</td><td> Never show this item in an action bar, show it in the overflow menu instead.
Mutually exclusive with "ifRoom" and "always". </td></tr>
<tr><td><code>ifRoom</code></td><td>1</td><td> Show this item in an action bar if there is room for it as determined
by the system. Favor this option over "always" where possible.
Mutually exclusive with "never" and "always". </td></tr>
<tr><td><code>always</code></td><td>2</td><td> Always show this item in an actionbar, even if it would override
the system's limits of how much stuff to put there. This may make
your action bar look bad on some screens. In most cases you should
use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". </td></tr>
<tr><td><code>withText</code></td><td>4</td><td> When this item is shown as an action in the action bar, show a text
label with it even if it has an icon representation. </td></tr>
<tr><td><code>collapseActionView</code></td><td>8</td><td> This item's action view collapses to a normal menu
item. When expanded, the action view takes over a
larger segment of its container. </td></tr>
</table>
*/
public static final int showAsAction=0x7f01004d;
/** Setting for which dividers to show.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>beginning</code></td><td>1</td><td></td></tr>
<tr><td><code>middle</code></td><td>2</td><td></td></tr>
<tr><td><code>end</code></td><td>4</td><td></td></tr>
</table>
*/
public static final int showDividers=0x7f010055;
/** <p>Must be a floating point value, such as "<code>1.2</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int slide_shuffle_speed=0x7f010075;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int sort_enabled=0x7f010079;
/** Default Spinner style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int spinnerDropDownItemStyle=0x7f010058;
/** Display mode for spinner options.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>dialog</code></td><td>0</td><td> Spinner options will be presented to the user as a dialog window. </td></tr>
<tr><td><code>dropdown</code></td><td>1</td><td> Spinner options will be presented to the user as an inline dropdown
anchored to the spinner widget itself. </td></tr>
</table>
*/
public static final int spinnerMode=0x7f010052;
/** Default Spinner style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int spinnerStyle=0x7f010057;
/** Specifies subtitle text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int subtitle=0x7f010029;
/** Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int subtitleTextStyle=0x7f01002b;
/** Present the text in ALL CAPS. This may use a small-caps form when available.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a boolean value, either "<code>true</code>" or "<code>false</code>".
*/
public static final int textAllCaps=0x7f01006d;
/** Text color, typeface, size, and style for the text inside of a popup menu.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceLargePopupMenu=0x7f010014;
/** The preferred TextAppearance for the primary text of list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceListItem=0x7f010023;
/** The preferred TextAppearance for the primary text of small list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceListItemSmall=0x7f010024;
/** Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceSearchResultSubtitle=0x7f010067;
/** Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceSearchResultTitle=0x7f010066;
/** Text color, typeface, size, and style for small text inside of a popup menu.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int textAppearanceSmallPopupMenu=0x7f010015;
/** Text color for urls in search suggestions, used by things like global search
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
*/
public static final int textColorSearchUrl=0x7f010068;
/** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int title=0x7f010025;
/** Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
*/
public static final int titleTextStyle=0x7f01002a;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int track_drag_sort=0x7f010073;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int use_default_controller=0x7f01007f;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowActionBar=0x7f010000;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowActionBarOverlay=0x7f010001;
/** A fixed height for the window along the major axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedHeightMajor=0x7f010006;
/** A fixed height for the window along the minor axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedHeightMinor=0x7f010004;
/** A fixed width for the window along the major axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedWidthMajor=0x7f010003;
/** A fixed width for the window along the minor axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowFixedWidthMinor=0x7f010005;
/** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
*/
public static final int windowSplitActionBar=0x7f010002;
}
public static final class bool {
public static final int abc_action_bar_embed_tabs_pre_jb=0x7f080000;
public static final int abc_action_bar_expanded_action_views_exclusive=0x7f080001;
/** Whether action menu items should be displayed in ALLCAPS or not.
Defaults to true. If this is not appropriate for specific locales
it should be disabled in that locale's resources.
*/
public static final int abc_config_actionMenuItemAllCaps=0x7f080005;
/** Whether action menu items should obey the "withText" showAsAction
flag. This may be set to false for situations where space is
extremely limited.
Whether action menu items should obey the "withText" showAsAction.
This may be set to false for situations where space is
extremely limited.
*/
public static final int abc_config_allowActionMenuItemTextWithIcon=0x7f080004;
public static final int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f080003;
public static final int abc_split_action_bar_is_narrow=0x7f080002;
}
public static final class color {
public static final int abc_search_url_text_holo=0x7f090004;
public static final int abc_search_url_text_normal=0x7f090000;
public static final int abc_search_url_text_pressed=0x7f090002;
public static final int abc_search_url_text_selected=0x7f090001;
/** Color used in LibraryActivity list dividers
*/
public static final int divider_color=0x7f090003;
}
public static final class dimen {
/** Default height of an action bar.
Default height of an action bar.
Default height of an action bar.
Default height of an action bar.
Default height of an action bar.
*/
public static final int abc_action_bar_default_height=0x7f0a0002;
/** Vertical padding around action bar icons.
Vertical padding around action bar icons.
Vertical padding around action bar icons.
Vertical padding around action bar icons.
Vertical padding around action bar icons.
*/
public static final int abc_action_bar_icon_vertical_padding=0x7f0a0003;
/** Size of the indeterminate Progress Bar
Size of the indeterminate Progress Bar
*/
public static final int abc_action_bar_progress_bar_size=0x7f0a000a;
/** Maximum height for a stacked tab bar as part of an action bar
*/
public static final int abc_action_bar_stacked_max_height=0x7f0a0009;
/** Maximum width for a stacked action bar tab. This prevents
action bar tabs from becoming too wide on a wide screen when only
a few are present.
*/
public static final int abc_action_bar_stacked_tab_max_width=0x7f0a0001;
/** Bottom margin for action bar subtitles
Bottom margin for action bar subtitles
Bottom margin for action bar subtitles
Bottom margin for action bar subtitles
Bottom margin for action bar subtitles
*/
public static final int abc_action_bar_subtitle_bottom_margin=0x7f0a0007;
/** Text size for action bar subtitles
Text size for action bar subtitles
Text size for action bar subtitles
Text size for action bar subtitles
Text size for action bar subtitles
*/
public static final int abc_action_bar_subtitle_text_size=0x7f0a0005;
/** Top margin for action bar subtitles
Top margin for action bar subtitles
Top margin for action bar subtitles
Top margin for action bar subtitles
Top margin for action bar subtitles
*/
public static final int abc_action_bar_subtitle_top_margin=0x7f0a0006;
/** Text size for action bar titles
Text size for action bar titles
Text size for action bar titles
Text size for action bar titles
Text size for action bar titles
*/
public static final int abc_action_bar_title_text_size=0x7f0a0004;
/** Minimum width for an action button in the menu area of an action bar
Minimum width for an action button in the menu area of an action bar
Minimum width for an action button in the menu area of an action bar
*/
public static final int abc_action_button_min_width=0x7f0a0008;
/** The maximum width we would prefer dialogs to be. 0 if there is no
maximum (let them grow as large as the screen). Actual values are
specified for -large and -xlarge configurations.
see comment in values/config.xml
see comment in values/config.xml
*/
public static final int abc_config_prefDialogWidth=0x7f0a0000;
/** Width of the icon in a dropdown list
*/
public static final int abc_dropdownitem_icon_width=0x7f0a0010;
/** Text padding for dropdown items
*/
public static final int abc_dropdownitem_text_padding_left=0x7f0a000e;
public static final int abc_dropdownitem_text_padding_right=0x7f0a000f;
public static final int abc_panel_menu_list_width=0x7f0a000b;
/** Preferred width of the search view.
*/
public static final int abc_search_view_preferred_width=0x7f0a000d;
/** Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
Minimum width of the search view text entry area.
*/
public static final int abc_search_view_text_min_width=0x7f0a000c;
/** Default screen margins, per the Android Design guidelines.
Example customization of dimensions originally defined in res/values/dimens.xml
(such as screen margins) for screens with more than 820dp of available width. This
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively).
*/
public static final int activity_horizontal_margin=0x7f0a0015;
public static final int activity_vertical_margin=0x7f0a0016;
/** The platform's desired fixed height for a dialog along the major axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the major axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the major axis
(the screen is in portrait). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_height_major=0x7f0a0013;
/** The platform's desired fixed height for a dialog along the minor axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the minor axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed height for a dialog along the minor axis
(the screen is in landscape). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_height_minor=0x7f0a0014;
/** The platform's desired fixed width for a dialog along the major axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the major axis
(the screen is in landscape). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the major axis
(the screen is in landscape). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_width_major=0x7f0a0011;
/** The platform's desired fixed width for a dialog along the minor axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the minor axis
(the screen is in portrait). This may be either a fraction or a dimension.
The platform's desired fixed width for a dialog along the minor axis
(the screen is in portrait). This may be either a fraction or a dimension.
*/
public static final int dialog_fixed_width_minor=0x7f0a0012;
}
public static final class drawable {
public static final int abc_ab_bottom_solid_dark_holo=0x7f020000;
public static final int abc_ab_bottom_solid_light_holo=0x7f020001;
public static final int abc_ab_bottom_transparent_dark_holo=0x7f020002;
public static final int abc_ab_bottom_transparent_light_holo=0x7f020003;
public static final int abc_ab_share_pack_holo_dark=0x7f020004;
public static final int abc_ab_share_pack_holo_light=0x7f020005;
public static final int abc_ab_solid_dark_holo=0x7f020006;
public static final int abc_ab_solid_light_holo=0x7f020007;
public static final int abc_ab_stacked_solid_dark_holo=0x7f020008;
public static final int abc_ab_stacked_solid_light_holo=0x7f020009;
public static final int abc_ab_stacked_transparent_dark_holo=0x7f02000a;
public static final int abc_ab_stacked_transparent_light_holo=0x7f02000b;
public static final int abc_ab_transparent_dark_holo=0x7f02000c;
public static final int abc_ab_transparent_light_holo=0x7f02000d;
public static final int abc_cab_background_bottom_holo_dark=0x7f02000e;
public static final int abc_cab_background_bottom_holo_light=0x7f02000f;
public static final int abc_cab_background_top_holo_dark=0x7f020010;
public static final int abc_cab_background_top_holo_light=0x7f020011;
public static final int abc_ic_ab_back_holo_dark=0x7f020012;
public static final int abc_ic_ab_back_holo_light=0x7f020013;
public static final int abc_ic_cab_done_holo_dark=0x7f020014;
public static final int abc_ic_cab_done_holo_light=0x7f020015;
public static final int abc_ic_clear=0x7f020016;
public static final int abc_ic_clear_disabled=0x7f020017;
public static final int abc_ic_clear_holo_light=0x7f020018;
public static final int abc_ic_clear_normal=0x7f020019;
public static final int abc_ic_clear_search_api_disabled_holo_light=0x7f02001a;
public static final int abc_ic_clear_search_api_holo_light=0x7f02001b;
public static final int abc_ic_commit_search_api_holo_dark=0x7f02001c;
public static final int abc_ic_commit_search_api_holo_light=0x7f02001d;
public static final int abc_ic_go=0x7f02001e;
public static final int abc_ic_go_search_api_holo_light=0x7f02001f;
public static final int abc_ic_menu_moreoverflow_normal_holo_dark=0x7f020020;
public static final int abc_ic_menu_moreoverflow_normal_holo_light=0x7f020021;
public static final int abc_ic_menu_share_holo_dark=0x7f020022;
public static final int abc_ic_menu_share_holo_light=0x7f020023;
public static final int abc_ic_search=0x7f020024;
public static final int abc_ic_search_api_holo_light=0x7f020025;
public static final int abc_ic_voice_search=0x7f020026;
public static final int abc_ic_voice_search_api_holo_light=0x7f020027;
public static final int abc_item_background_holo_dark=0x7f020028;
public static final int abc_item_background_holo_light=0x7f020029;
public static final int abc_list_divider_holo_dark=0x7f02002a;
public static final int abc_list_divider_holo_light=0x7f02002b;
public static final int abc_list_focused_holo=0x7f02002c;
public static final int abc_list_longpressed_holo=0x7f02002d;
public static final int abc_list_pressed_holo_dark=0x7f02002e;
public static final int abc_list_pressed_holo_light=0x7f02002f;
public static final int abc_list_selector_background_transition_holo_dark=0x7f020030;
public static final int abc_list_selector_background_transition_holo_light=0x7f020031;
public static final int abc_list_selector_disabled_holo_dark=0x7f020032;
public static final int abc_list_selector_disabled_holo_light=0x7f020033;
public static final int abc_list_selector_holo_dark=0x7f020034;
public static final int abc_list_selector_holo_light=0x7f020035;
public static final int abc_menu_dropdown_panel_holo_dark=0x7f020036;
public static final int abc_menu_dropdown_panel_holo_light=0x7f020037;
public static final int abc_menu_hardkey_panel_holo_dark=0x7f020038;
public static final int abc_menu_hardkey_panel_holo_light=0x7f020039;
public static final int abc_search_dropdown_dark=0x7f02003a;
public static final int abc_search_dropdown_light=0x7f02003b;
public static final int abc_spinner_ab_default_holo_dark=0x7f02003c;
public static final int abc_spinner_ab_default_holo_light=0x7f02003d;
public static final int abc_spinner_ab_disabled_holo_dark=0x7f02003e;
public static final int abc_spinner_ab_disabled_holo_light=0x7f02003f;
public static final int abc_spinner_ab_focused_holo_dark=0x7f020040;
public static final int abc_spinner_ab_focused_holo_light=0x7f020041;
public static final int abc_spinner_ab_holo_dark=0x7f020042;
public static final int abc_spinner_ab_holo_light=0x7f020043;
public static final int abc_spinner_ab_pressed_holo_dark=0x7f020044;
public static final int abc_spinner_ab_pressed_holo_light=0x7f020045;
public static final int abc_tab_indicator_ab_holo=0x7f020046;
public static final int abc_tab_selected_focused_holo=0x7f020047;
public static final int abc_tab_selected_holo=0x7f020048;
public static final int abc_tab_selected_pressed_holo=0x7f020049;
public static final int abc_tab_unselected_pressed_holo=0x7f02004a;
public static final int abc_textfield_search_default_holo_dark=0x7f02004b;
public static final int abc_textfield_search_default_holo_light=0x7f02004c;
public static final int abc_textfield_search_right_default_holo_dark=0x7f02004d;
public static final int abc_textfield_search_right_default_holo_light=0x7f02004e;
public static final int abc_textfield_search_right_selected_holo_dark=0x7f02004f;
public static final int abc_textfield_search_right_selected_holo_light=0x7f020050;
public static final int abc_textfield_search_selected_holo_dark=0x7f020051;
public static final int abc_textfield_search_selected_holo_light=0x7f020052;
public static final int abc_textfield_searchview_holo_dark=0x7f020053;
public static final int abc_textfield_searchview_holo_light=0x7f020054;
public static final int abc_textfield_searchview_right_holo_dark=0x7f020055;
public static final int abc_textfield_searchview_right_holo_light=0x7f020056;
public static final int arrow=0x7f020057;
public static final int close=0x7f020058;
public static final int empty=0x7f020059;
public static final int fallback_cover=0x7f02005a;
public static final int folder=0x7f02005b;
public static final int grabber=0x7f02005c;
public static final int hidden_next=0x7f02005d;
public static final int hidden_pause=0x7f02005e;
public static final int hidden_play=0x7f02005f;
public static final int ic_launcher=0x7f020060;
public static final int ic_menu_add=0x7f020061;
public static final int ic_menu_close_clear_cancel=0x7f020062;
public static final int ic_menu_gallery=0x7f020063;
public static final int ic_menu_music_library=0x7f020064;
public static final int ic_menu_preferences=0x7f020065;
public static final int ic_menu_search=0x7f020066;
public static final int ic_menu_sort_alphabetically=0x7f020067;
public static final int ic_tab_albums_selected=0x7f020068;
public static final int ic_tab_artists_selected=0x7f020069;
public static final int ic_tab_songs_selected=0x7f02006a;
public static final int icon=0x7f02006b;
public static final int list_focused_holo=0x7f02006c;
public static final int list_longpressed_holo=0x7f02006d;
public static final int list_pressed_holo_dark=0x7f02006e;
public static final int list_selector_background_transition_holo_dark=0x7f02006f;
public static final int list_selector_disabled_holo_dark=0x7f020070;
public static final int music_bottom_playback_bg=0x7f020071;
public static final int next=0x7f020072;
public static final int notification_close=0x7f020073;
public static final int pause=0x7f020074;
public static final int play=0x7f020075;
public static final int preview_widget_d=0x7f020076;
public static final int preview_widget_e=0x7f020077;
public static final int preview_widget_four_long=0x7f020078;
public static final int preview_widget_four_square=0x7f020079;
public static final int preview_widget_four_white=0x7f02007a;
public static final int preview_widget_one_cell=0x7f02007b;
public static final int previous=0x7f02007c;
public static final int random_active=0x7f02007d;
public static final int repeat_active=0x7f02007e;
public static final int repeat_current_active=0x7f02007f;
public static final int repeat_inactive=0x7f020080;
public static final int search_background=0x7f020081;
public static final int selectable_item_bg=0x7f020082;
public static final int shuffle_active=0x7f020083;
public static final int shuffle_album_active=0x7f020084;
public static final int shuffle_inactive=0x7f020085;
public static final int status_icon=0x7f020086;
public static final int stop_current_active=0x7f020087;
public static final int vinyl=0x7f020088;
public static final int vpi__tab_indicator=0x7f020089;
public static final int vpi__tab_selected_focused_holo=0x7f02008a;
public static final int vpi__tab_selected_holo=0x7f02008b;
public static final int vpi__tab_selected_pressed_holo=0x7f02008c;
public static final int vpi__tab_unselected_focused_holo=0x7f02008d;
public static final int vpi__tab_unselected_holo=0x7f02008e;
public static final int vpi__tab_unselected_pressed_holo=0x7f02008f;
public static final int widget_bg=0x7f020090;
public static final int widget_next=0x7f020091;
public static final int widget_pause=0x7f020092;
public static final int widget_play=0x7f020093;
public static final int widget_previous=0x7f020094;
}
public static final class id {
public static final int action_bar=0x7f070021;
public static final int action_bar_activity_content=0x7f070015;
public static final int action_bar_container=0x7f070020;
public static final int action_bar_overlay_layout=0x7f070024;
public static final int action_bar_root=0x7f07001f;
public static final int action_bar_subtitle=0x7f070028;
public static final int action_bar_title=0x7f070027;
public static final int action_context_bar=0x7f070022;
public static final int action_menu_divider=0x7f070016;
public static final int action_menu_presenter=0x7f070017;
public static final int action_mode_close_button=0x7f070029;
public static final int action_settings=0x7f07007c;
public static final int activity_chooser_view_content=0x7f07002a;
public static final int album=0x7f07005f;
public static final int always=0x7f07000b;
public static final int arrow=0x7f070070;
public static final int artist=0x7f070042;
public static final int ascending=0x7f070078;
public static final int beginning=0x7f070011;
public static final int buttons=0x7f070053;
public static final int cancel=0x7f070044;
public static final int checkbox=0x7f070032;
public static final int clear_button=0x7f07006c;
public static final int clickRemove=0x7f07001a;
public static final int close=0x7f070073;
public static final int collapseActionView=0x7f07000d;
public static final int composer=0x7f070063;
public static final int content=0x7f070066;
public static final int controls=0x7f07006d;
public static final int controls_bottom=0x7f07005c;
public static final int controls_top=0x7f070058;
public static final int cover=0x7f070041;
public static final int cover_view=0x7f070057;
public static final int create=0x7f070072;
public static final int default_activity_button=0x7f07002d;
public static final int delete=0x7f070075;
public static final int descending=0x7f070079;
public static final int dialog=0x7f07000e;
public static final int disableHome=0x7f070008;
public static final int divider=0x7f07006f;
public static final int done=0x7f07007b;
public static final int dragger=0x7f07004e;
public static final int dropdown=0x7f07000f;
public static final int duration=0x7f07005b;
public static final int edit=0x7f070074;
public static final int edit_query=0x7f070035;
public static final int elapsed=0x7f070059;
public static final int empty_queue=0x7f07006e;
public static final int end=0x7f070013;
public static final int end_action=0x7f07004b;
public static final int enqueue=0x7f070045;
public static final int expand_activities_button=0x7f07002b;
public static final int expanded_menu=0x7f070031;
public static final int filepath=0x7f070043;
public static final int filter_text=0x7f07006b;
public static final int flingRemove=0x7f07001b;
public static final int format=0x7f070064;
public static final int frameLayout1=0x7f070054;
public static final int genre=0x7f070060;
public static final int home=0x7f070014;
public static final int homeAsUp=0x7f070005;
public static final int icon=0x7f07002f;
public static final int ifRoom=0x7f07000a;
public static final int image=0x7f07002c;
public static final int info_table=0x7f07005d;
public static final int limiter_layout=0x7f070069;
public static final int limiter_scroller=0x7f070068;
public static final int linearLayout1=0x7f070056;
public static final int list=0x7f070051;
public static final int listMode=0x7f070001;
public static final int list_item=0x7f07002e;
public static final int middle=0x7f070012;
public static final int never=0x7f070009;
public static final int next=0x7f07004a;
public static final int none=0x7f070010;
public static final int normal=0x7f070000;
public static final int onDown=0x7f07001c;
public static final int onLongPress=0x7f07001e;
public static final int onMove=0x7f07001d;
public static final int pager=0x7f070067;
public static final int path_display=0x7f07004f;
public static final int play=0x7f070046;
public static final int play_pause=0x7f070049;
public static final int playlist_name=0x7f070071;
public static final int pmark=0x7f07004c;
public static final int previous=0x7f070048;
public static final int progress_circular=0x7f070018;
public static final int progress_horizontal=0x7f070019;
public static final int queue_pos=0x7f07005e;
public static final int radio=0x7f070034;
public static final int replaygain=0x7f070065;
public static final int restore_default=0x7f07007a;
public static final int save_button=0x7f070050;
public static final int search_badge=0x7f070037;
public static final int search_bar=0x7f070036;
public static final int search_box=0x7f07006a;
public static final int search_button=0x7f070038;
public static final int search_close_btn=0x7f07003d;
public static final int search_edit_frame=0x7f070039;
public static final int search_go_btn=0x7f07003f;
public static final int search_mag_icon=0x7f07003a;
public static final int search_plate=0x7f07003b;
public static final int search_src_text=0x7f07003c;
public static final int search_voice_btn=0x7f070040;
public static final int seek_bar=0x7f07005a;
public static final int shortcut=0x7f070033;
public static final int showCustom=0x7f070007;
public static final int showHome=0x7f070004;
public static final int showTitle=0x7f070006;
public static final int shuffle=0x7f070047;
public static final int sort_direction=0x7f070077;
public static final int split_action_bar=0x7f070023;
public static final int submit_area=0x7f07003e;
public static final int tabMode=0x7f070002;
public static final int text=0x7f07004d;
public static final int text_layout=0x7f070052;
public static final int title=0x7f070030;
public static final int top_action_bar=0x7f070025;
public static final int track=0x7f070061;
public static final int up=0x7f070026;
public static final int useLogo=0x7f070003;
public static final int value=0x7f070076;
public static final int vinyl=0x7f070055;
public static final int withText=0x7f07000c;
public static final int year=0x7f070062;
}
public static final class integer {
/** The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
The maximum number of action buttons that should be permitted within
an action bar/action mode. This will be used to determine how many
showAsAction="ifRoom" items can fit. "always" items can override this.
*/
public static final int abc_max_action_buttons=0x7f0b0000;
}
public static final class layout {
public static final int abc_action_bar_decor=0x7f030000;
public static final int abc_action_bar_decor_include=0x7f030001;
public static final int abc_action_bar_decor_overlay=0x7f030002;
public static final int abc_action_bar_home=0x7f030003;
public static final int abc_action_bar_tab=0x7f030004;
public static final int abc_action_bar_tabbar=0x7f030005;
public static final int abc_action_bar_title_item=0x7f030006;
public static final int abc_action_bar_view_list_nav_layout=0x7f030007;
public static final int abc_action_menu_item_layout=0x7f030008;
public static final int abc_action_menu_layout=0x7f030009;
public static final int abc_action_mode_bar=0x7f03000a;
public static final int abc_action_mode_close_item=0x7f03000b;
public static final int abc_activity_chooser_view=0x7f03000c;
public static final int abc_activity_chooser_view_include=0x7f03000d;
public static final int abc_activity_chooser_view_list_item=0x7f03000e;
public static final int abc_expanded_menu_layout=0x7f03000f;
public static final int abc_list_menu_item_checkbox=0x7f030010;
public static final int abc_list_menu_item_icon=0x7f030011;
public static final int abc_list_menu_item_layout=0x7f030012;
public static final int abc_list_menu_item_radio=0x7f030013;
public static final int abc_popup_menu_item_layout=0x7f030014;
public static final int abc_search_dropdown_item_icons_2line=0x7f030015;
public static final int abc_search_view=0x7f030016;
public static final int abc_simple_decor=0x7f030017;
public static final int actionbar_controls=0x7f030018;
public static final int activity_main=0x7f030019;
public static final int audiopicker=0x7f03001a;
public static final int controls=0x7f03001b;
public static final int draggable_row=0x7f03001c;
public static final int filebrowser_content=0x7f03001d;
public static final int filebrowser_row=0x7f03001e;
public static final int four_long_widget=0x7f03001f;
public static final int four_square_widget=0x7f030020;
public static final int four_white_widget=0x7f030021;
public static final int full_playback=0x7f030022;
public static final int full_playback_alt=0x7f030023;
public static final int library_content=0x7f030024;
public static final int library_controls=0x7f030025;
public static final int library_row=0x7f030026;
public static final int library_row_expandable=0x7f030027;
public static final int listview=0x7f030028;
public static final int mini_playback=0x7f030029;
public static final int new_playlist_dialog=0x7f03002a;
public static final int notification=0x7f03002b;
public static final int notification_expanded=0x7f03002c;
public static final int one_cell_widget=0x7f03002d;
public static final int playlist_activity=0x7f03002e;
public static final int playlist_buttons=0x7f03002f;
public static final int shake_pref=0x7f030030;
public static final int showqueue_listview=0x7f030031;
public static final int sort_dialog=0x7f030032;
public static final int support_simple_spinner_dropdown_item=0x7f030033;
public static final int tab_order=0x7f030034;
public static final int widget_d=0x7f030035;
public static final int widget_e=0x7f030036;
}
public static final class menu {
public static final int main=0x7f100000;
}
public static final class plurals {
public static final int added_to_playlist=0x7f0e0002;
public static final int deleted=0x7f0e0003;
public static final int enqueued=0x7f0e0001;
public static final int hours=0x7f0e0006;
public static final int minutes=0x7f0e0005;
public static final int playing=0x7f0e0000;
/** Preferences
Preferences
Preferences
Preferences
Preferences
Preferences
Preferences
Preferences
Preferences
Preferences
Preferences
Preferences
Preferences
*/
public static final int seconds=0x7f0e0004;
}
public static final class raw {
public static final int beep=0x7f060000;
}
public static final class string {
public static final int _album=0x7f0c0027;
public static final int _artist=0x7f0c0026;
public static final int _composer=0x7f0c0023;
public static final int _format=0x7f0c0024;
public static final int _genre=0x7f0c0021;
public static final int _replaygain=0x7f0c0029;
public static final int _title=0x7f0c0025;
public static final int _track=0x7f0c0022;
public static final int _year=0x7f0c0028;
/** Content description for the action bar "home" affordance. [CHAR LIMIT=NONE]
*/
public static final int abc_action_bar_home_description=0x7f0c0001;
/** Content description for the action bar "up" affordance. [CHAR LIMIT=NONE]
*/
public static final int abc_action_bar_up_description=0x7f0c0002;
/** Content description for the action menu overflow button. [CHAR LIMIT=NONE]
*/
public static final int abc_action_menu_overflow_description=0x7f0c0003;
/** Label for the "Done" button on the far left of action mode toolbars.
*/
public static final int abc_action_mode_done=0x7f0c0000;
/** Title for a button to expand the list of activities in ActivityChooserView [CHAR LIMIT=25]
*/
public static final int abc_activity_chooser_view_see_all=0x7f0c000a;
/** ActivityChooserView - accessibility support
Description of the shwoing of a popup window with activities to choose from. [CHAR LIMIT=NONE]
*/
public static final int abc_activitychooserview_choose_application=0x7f0c0009;
/** SearchView accessibility description for clear button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_clear=0x7f0c0006;
/** SearchView accessibility description for search text field [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_query=0x7f0c0005;
/** SearchView accessibility description for search button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_search=0x7f0c0004;
/** SearchView accessibility description for submit button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_submit=0x7f0c0007;
/** SearchView accessibility description for voice button [CHAR LIMIT=NONE]
*/
public static final int abc_searchview_description_voice=0x7f0c0008;
/** Description of the choose target button in a ShareActionProvider (share UI). [CHAR LIMIT=NONE]
*/
public static final int abc_shareactionprovider_share_with=0x7f0c000c;
/** Description of a share target (both in the list of such or the default share button) in a ShareActionProvider (share UI). [CHAR LIMIT=NONE]
*/
public static final int abc_shareactionprovider_share_with_application=0x7f0c000b;
public static final int about=0x7f0c00a5;
public static final int accelerometer_shake=0x7f0c0088;
public static final int action_settings=0x7f0c000f;
public static final int add_to_favorites=0x7f0c0035;
public static final int add_to_playlist=0x7f0c0034;
public static final int album_track=0x7f0c0059;
public static final int albums=0x7f0c0045;
public static final int all_songs=0x7f0c004e;
/** The following are for the list preferences
*/
public static final int always_show=0x7f0c00ac;
public static final int app_name=0x7f0c000d;
public static final int artist_album=0x7f0c0055;
public static final int artist_album_title=0x7f0c0057;
public static final int artist_album_track=0x7f0c0056;
public static final int artist_year=0x7f0c0058;
public static final int artists=0x7f0c0044;
public static final int ascending=0x7f0c005b;
public static final int audio=0x7f0c005e;
public static final int cancel=0x7f0c002d;
/** New Playlist Dialog
New Playlist Dialog
New Playlist Dialog
New Playlist Dialog
New Playlist Dialog
New Playlist Dialog
New Playlist Dialog
New Playlist Dialog
New Playlist Dialog
New Playlist Dialog
New Playlist Dialog
New Playlist Dialog
New Playlist Dialog
*/
public static final int choose_playlist_name=0x7f0c002a;
public static final int clear_queue=0x7f0c00c0;
public static final int clear_search=0x7f0c003f;
public static final int close_notification=0x7f0c0020;
public static final int controls_in_selector_summary=0x7f0c0085;
public static final int controls_in_selector_title=0x7f0c0084;
public static final int cover_art=0x7f0c001f;
public static final int cover_longpress_action_title=0x7f0c0082;
public static final int cover_press_action_title=0x7f0c0081;
public static final int coverloader_android_summary=0x7f0c0096;
public static final int coverloader_android_title=0x7f0c0095;
public static final int coverloader_shadow_summary=0x7f0c009a;
public static final int coverloader_shadow_title=0x7f0c0099;
public static final int coverloader_vanilla_summary=0x7f0c0098;
public static final int coverloader_vanilla_title=0x7f0c0097;
public static final int create=0x7f0c002b;
public static final int customize_filebrowser_start=0x7f0c00c5;
public static final int customize_tab_order=0x7f0c00a7;
public static final int cycle_repeat_mode=0x7f0c00bb;
public static final int cycle_shuffle_mode=0x7f0c00bc;
public static final int date_added=0x7f0c0054;
public static final int default_action_title=0x7f0c0086;
public static final int default_playlist_action_title=0x7f0c0087;
public static final int delete=0x7f0c0039;
public static final int delete_file_failed=0x7f0c0041;
public static final int delete_item=0x7f0c0043;
public static final int delete_playlist=0x7f0c002e;
public static final int deleted=0x7f0c00c7;
public static final int deleted_item=0x7f0c0042;
public static final int descending=0x7f0c005c;
public static final int disable_cover_art_summary=0x7f0c0094;
public static final int disable_cover_art_title=0x7f0c0093;
public static final int disable_lockscreen_summary=0x7f0c008f;
public static final int disable_lockscreen_title=0x7f0c008e;
public static final int display_mode_title=0x7f0c007e;
public static final int do_nothing=0x7f0c00b4;
public static final int done=0x7f0c003d;
public static final int double_tap_summary=0x7f0c009c;
public static final int double_tap_title=0x7f0c009b;
public static final int edit=0x7f0c0031;
public static final int empty_queue=0x7f0c0011;
public static final int enable_shake_summary=0x7f0c008a;
public static final int enable_shake_title=0x7f0c0089;
/** Library
Library
Library
Library
Library
Library
Library
Library
Library
Library
Library
Library
Library
*/
public static final int enqueue=0x7f0c002f;
public static final int enqueue_all=0x7f0c004d;
public static final int enqueue_current_album=0x7f0c00bd;
public static final int enqueue_current_artist=0x7f0c00be;
public static final int enqueue_current_genre=0x7f0c00bf;
public static final int expand=0x7f0c0038;
public static final int filebrowser_start=0x7f0c00c4;
public static final int files=0x7f0c0049;
public static final int finished_scanning=0x7f0c00a4;
public static final int fixed_info=0x7f0c00b3;
public static final int genres=0x7f0c0048;
public static final int headset_only_summary=0x7f0c0065;
public static final int headset_only_title=0x7f0c0064;
public static final int headset_pause_summary=0x7f0c0067;
public static final int headset_pause_title=0x7f0c0066;
public static final int headset_play_summary=0x7f0c0069;
public static final int headset_play_title=0x7f0c0068;
public static final int hello_world=0x7f0c000e;
public static final int idle_timeout_title=0x7f0c0092;
public static final int info_below_cover=0x7f0c00b2;
public static final int info_on_cover=0x7f0c00b1;
/** The following are for the list preferences
The following are for the list preferences
The following are for the list preferences
The following are for the list preferences
The following are for the list preferences
The following are for the list preferences
The following are for the list preferences
The following are for the list preferences
The following are for the list preferences
The following are for the list preferences
The following are for the list preferences
*/
public static final int last_used_action=0x7f0c00a9;
public static final int library=0x7f0c0013;
public static final int library_screen=0x7f0c0083;
public static final int media_button_beep_summary=0x7f0c0063;
public static final int media_button_beep_title=0x7f0c0062;
public static final int media_button_summary=0x7f0c0061;
public static final int media_button_title=0x7f0c0060;
public static final int media_scan=0x7f0c00a1;
public static final int misc_features=0x7f0c008d;
public static final int more_from_album=0x7f0c0050;
public static final int more_from_artist=0x7f0c004f;
public static final int name=0x7f0c0051;
public static final int never_show=0x7f0c00aa;
public static final int new_playlist=0x7f0c0037;
public static final int next_album=0x7f0c00b9;
public static final int next_song=0x7f0c00b7;
public static final int no_repeat=0x7f0c0017;
public static final int no_shuffle=0x7f0c0014;
/** Playback Activity (main screen)
Playback Activity (main screen)
Playback Activity (main screen)
Playback Activity (main screen)
Playback Activity (main screen)
Playback Activity (main screen)
Playback Activity (main screen)
Playback Activity (main screen)
Playback Activity (main screen)
Playback Activity (main screen)
Playback Activity (main screen)
Playback Activity (main screen)
Playback Activity (main screen)
*/
public static final int no_songs=0x7f0c0010;
public static final int none=0x7f0c004a;
public static final int notification_action_title=0x7f0c0078;
public static final int notification_invert_color_summary=0x7f0c007a;
public static final int notification_invert_color_title=0x7f0c0079;
public static final int notification_mode_title=0x7f0c0077;
/** Notification
Notification
Notification
Notification
Notification
Notification
Notification
Notification
Notification
Notification
Notification
Notification
Notification
*/
public static final int notification_title_paused=0x7f0c005d;
public static final int notifications=0x7f0c0076;
public static final int number_of_tracks=0x7f0c0052;
public static final int open_full_player=0x7f0c00b0;
public static final int open_library=0x7f0c00b5;
public static final int open_main_activity=0x7f0c00ad;
public static final int open_mini_popup=0x7f0c00ae;
public static final int overwrite=0x7f0c002c;
public static final int play=0x7f0c0030;
public static final int play_all=0x7f0c004c;
public static final int play_or_enqueue=0x7f0c0040;
public static final int play_pause=0x7f0c00b6;
public static final int playback_on_startup_summary=0x7f0c007d;
public static final int playback_on_startup_title=0x7f0c007c;
public static final int playback_screen=0x7f0c007b;
public static final int playback_view=0x7f0c003a;
public static final int playlist_favorites=0x7f0c0036;
public static final int playlists=0x7f0c0047;
public static final int previous_album=0x7f0c00ba;
public static final int previous_song=0x7f0c00b8;
public static final int queue=0x7f0c00c2;
public static final int queue_cleared=0x7f0c001e;
public static final int random=0x7f0c001b;
public static final int random_enabling=0x7f0c001c;
public static final int readahead=0x7f0c0074;
public static final int readahead_summary=0x7f0c0075;
public static final int remove=0x7f0c003e;
public static final int rename=0x7f0c0032;
public static final int repeat=0x7f0c0018;
public static final int repeat_current_song=0x7f0c0019;
public static final int replaygain=0x7f0c006a;
public static final int replaygain_album_summary=0x7f0c0070;
public static final int replaygain_album_title=0x7f0c006f;
public static final int replaygain_bump_title=0x7f0c0071;
public static final int replaygain_summary=0x7f0c006c;
public static final int replaygain_title=0x7f0c006b;
public static final int replaygain_track_summary=0x7f0c006e;
public static final int replaygain_track_title=0x7f0c006d;
public static final int replaygain_untagged_debump_summary=0x7f0c0073;
public static final int replaygain_untagged_debump_title=0x7f0c0072;
public static final int restore_default=0x7f0c00a8;
public static final int save_as_playlist=0x7f0c0033;
public static final int scan_in_progress=0x7f0c00a3;
public static final int scrobble_summary=0x7f0c009e;
public static final int scrobble_title=0x7f0c009d;
public static final int search=0x7f0c003c;
public static final int select=0x7f0c00c6;
public static final int settings=0x7f0c0012;
public static final int shake_action_title=0x7f0c008b;
public static final int shake_threshold_title=0x7f0c008c;
public static final int show_queue=0x7f0c00c1;
public static final int show_when_playing=0x7f0c00ab;
public static final int shuffle_albums=0x7f0c0016;
public static final int shuffle_songs=0x7f0c0015;
public static final int skip_to_next_song=0x7f0c00af;
public static final int song_load_failed=0x7f0c001d;
public static final int song_playcount=0x7f0c005a;
public static final int songs=0x7f0c0046;
public static final int sort_by=0x7f0c003b;
public static final int stock_broadcast_summary=0x7f0c00a0;
public static final int stock_broadcast_title=0x7f0c009f;
public static final int stop_current_song=0x7f0c001a;
public static final int swipe_down_action_title=0x7f0c0080;
public static final int swipe_up_action_title=0x7f0c007f;
public static final int tabs=0x7f0c00a6;
public static final int tap_to_scan=0x7f0c00a2;
public static final int toggle_controls=0x7f0c00c3;
public static final int unknown=0x7f0c004b;
public static final int use_idle_timeout_summary=0x7f0c0091;
public static final int use_idle_timeout_title=0x7f0c0090;
public static final int volume_title=0x7f0c005f;
public static final int year=0x7f0c0053;
}
public static final class style {
public static final int AlertDialogItem=0x7f0d008f;
/**
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
Base application theme for API 11+. This theme completely replaces
AppBaseTheme from res/values/styles.xml on API 11+ devices.
API 11 theme customizations can go here.
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
API 14 theme customizations can go here.
*/
public static final int AppBaseTheme=0x7f0d008b;
/** Application theme.
All customizations that are NOT specific to a particular API-level can go here.
*/
public static final int AppTheme=0x7f0d008c;
public static final int BackActionBar=0x7f0d0091;
/** styles
*/
public static final int Dialog=0x7f0d008d;
public static final int DialogMinWidth=0x7f0d008e;
public static final int Library=0x7f0d0093;
public static final int LibraryActionBar=0x7f0d0094;
public static final int LibraryActionBarTabText=0x7f0d0095;
public static final int Playback=0x7f0d0090;
public static final int PlaybackActionBar=0x7f0d0092;
/** Mimic text appearance in select_dialog_item.xml
*/
public static final int TextAppearance_AppCompat_Base_CompactMenu_Dialog=0x7f0d0063;
public static final int TextAppearance_AppCompat_Base_SearchResult=0x7f0d006d;
public static final int TextAppearance_AppCompat_Base_SearchResult_Subtitle=0x7f0d006f;
/** Search View result styles
*/
public static final int TextAppearance_AppCompat_Base_SearchResult_Title=0x7f0d006e;
public static final int TextAppearance_AppCompat_Base_Widget_PopupMenu_Large=0x7f0d0069;
public static final int TextAppearance_AppCompat_Base_Widget_PopupMenu_Small=0x7f0d006a;
public static final int TextAppearance_AppCompat_Light_Base_SearchResult=0x7f0d0070;
public static final int TextAppearance_AppCompat_Light_Base_SearchResult_Subtitle=0x7f0d0072;
/**
TextAppearance.Holo.Light.SearchResult.* are private so we extend from the default
versions instead (which are exactly the same).
*/
public static final int TextAppearance_AppCompat_Light_Base_SearchResult_Title=0x7f0d0071;
public static final int TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Large=0x7f0d006b;
public static final int TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Small=0x7f0d006c;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0d0035;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0d0034;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0d0030;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0d0031;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0d0033;
public static final int TextAppearance_AppCompat_SearchResult_Title=0x7f0d0032;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0d001a;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0d0006;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0d0008;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0d0005;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0d0007;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0d001e;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0d0020;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0d001d;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0d001f;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Menu=0x7f0d0054;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle=0x7f0d0056;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle_Inverse=0x7f0d0058;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Title=0x7f0d0055;
public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Title_Inverse=0x7f0d0057;
public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle=0x7f0d0051;
public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle_Inverse=0x7f0d0053;
public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Title=0x7f0d0050;
public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Title_Inverse=0x7f0d0052;
public static final int TextAppearance_AppCompat_Widget_Base_DropDownItem=0x7f0d0061;
public static final int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0d0021;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0d002e;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0d002f;
public static final int TextAppearance_Widget_AppCompat_Base_ExpandedMenu_Item=0x7f0d0062;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0d0028;
/** Themes in the "Theme.AppCompat" family will contain an action bar by default.
If Holo themes are available on the current platform version they will be used.
A limited Holo-styled action bar will be provided on platform versions older
than 3.0. (API 11)
These theme declarations contain any version-independent specification. Items
that need to vary based on platform version should be defined in the corresponding
"Theme.Base" theme.
Platform-independent theme providing an action bar in a dark-themed activity.
*/
public static final int Theme_AppCompat=0x7f0d0077;
/** Menu/item attributes
*/
public static final int Theme_AppCompat_Base_CompactMenu=0x7f0d0083;
public static final int Theme_AppCompat_Base_CompactMenu_Dialog=0x7f0d0084;
/** Menu/item attributes
*/
public static final int Theme_AppCompat_CompactMenu=0x7f0d007c;
public static final int Theme_AppCompat_CompactMenu_Dialog=0x7f0d007d;
public static final int Theme_AppCompat_DialogWhenLarge=0x7f0d007a;
/** Platform-independent theme providing an action bar in a light-themed activity.
*/
public static final int Theme_AppCompat_Light=0x7f0d0078;
/** Platform-independent theme providing an action bar in a dark-themed activity.
*/
public static final int Theme_AppCompat_Light_DarkActionBar=0x7f0d0079;
public static final int Theme_AppCompat_Light_DialogWhenLarge=0x7f0d007b;
/** Base platform-dependent theme
*/
public static final int Theme_Base=0x7f0d007e;
/** Base platform-dependent theme providing an action bar in a dark-themed activity.
Base platform-dependent theme providing an action bar in a dark-themed activity.
*/
public static final int Theme_Base_AppCompat=0x7f0d0080;
public static final int Theme_Base_AppCompat_Dialog_FixedSize=0x7f0d0087;
public static final int Theme_Base_AppCompat_Dialog_Light_FixedSize=0x7f0d0088;
public static final int Theme_Base_AppCompat_DialogWhenLarge=0x7f0d0085;
/**
As we have defined the theme in values-large (for compat) and values-large takes precedence
over values-v14, we need to reset back to the Holo parent in values-large-v14. As the themes
in values-v14 & values-large-v14 are exactly the same, these "double base" themes can be
inherited from in both values-v14 and values-large-v14.
*/
public static final int Theme_Base_AppCompat_DialogWhenLarge_Base=0x7f0d0089;
/** Base platform-dependent theme providing an action bar in a light-themed activity.
Base platform-dependent theme providing an action bar in a light-themed activity.
*/
public static final int Theme_Base_AppCompat_Light=0x7f0d0081;
/** Base platform-dependent theme providing a dark action bar in a light-themed activity.
Base platform-dependent theme providing a dark action bar in a light-themed activity.
*/
public static final int Theme_Base_AppCompat_Light_DarkActionBar=0x7f0d0082;
public static final int Theme_Base_AppCompat_Light_DialogWhenLarge=0x7f0d0086;
public static final int Theme_Base_AppCompat_Light_DialogWhenLarge_Base=0x7f0d008a;
/** Base platform-dependent theme providing a light-themed activity.
*/
public static final int Theme_Base_Light=0x7f0d007f;
/** Styles in here can be extended for customisation in your application. Each utilises
one of the Base styles. If Holo themes are available on the current platform version
they will be used instead of the compat styles.
*/
public static final int Widget_AppCompat_ActionBar=0x7f0d0000;
public static final int Widget_AppCompat_ActionBar_Solid=0x7f0d0002;
public static final int Widget_AppCompat_ActionBar_TabBar=0x7f0d0011;
public static final int Widget_AppCompat_ActionBar_TabText=0x7f0d0017;
public static final int Widget_AppCompat_ActionBar_TabView=0x7f0d0014;
public static final int Widget_AppCompat_ActionButton=0x7f0d000b;
public static final int Widget_AppCompat_ActionButton_CloseMode=0x7f0d000d;
public static final int Widget_AppCompat_ActionButton_Overflow=0x7f0d000f;
public static final int Widget_AppCompat_ActionMode=0x7f0d001b;
public static final int Widget_AppCompat_ActivityChooserView=0x7f0d0038;
public static final int Widget_AppCompat_AutoCompleteTextView=0x7f0d0036;
public static final int Widget_AppCompat_Base_ActionBar=0x7f0d003a;
public static final int Widget_AppCompat_Base_ActionBar_Solid=0x7f0d003c;
public static final int Widget_AppCompat_Base_ActionBar_TabBar=0x7f0d0045;
public static final int Widget_AppCompat_Base_ActionBar_TabText=0x7f0d004b;
public static final int Widget_AppCompat_Base_ActionBar_TabView=0x7f0d0048;
/** Action Button Styles
*/
public static final int Widget_AppCompat_Base_ActionButton=0x7f0d003f;
public static final int Widget_AppCompat_Base_ActionButton_CloseMode=0x7f0d0041;
public static final int Widget_AppCompat_Base_ActionButton_Overflow=0x7f0d0043;
public static final int Widget_AppCompat_Base_ActionMode=0x7f0d004e;
public static final int Widget_AppCompat_Base_ActivityChooserView=0x7f0d0075;
/** AutoCompleteTextView styles (for SearchView)
*/
public static final int Widget_AppCompat_Base_AutoCompleteTextView=0x7f0d0073;
public static final int Widget_AppCompat_Base_DropDownItem_Spinner=0x7f0d005d;
/** Popup Menu
*/
public static final int Widget_AppCompat_Base_ListPopupWindow=0x7f0d0065;
/** Spinner Widgets
*/
public static final int Widget_AppCompat_Base_ListView_DropDown=0x7f0d005f;
public static final int Widget_AppCompat_Base_ListView_Menu=0x7f0d0064;
public static final int Widget_AppCompat_Base_PopupMenu=0x7f0d0067;
public static final int Widget_AppCompat_Base_ProgressBar=0x7f0d005a;
/** Progress Bar
*/
public static final int Widget_AppCompat_Base_ProgressBar_Horizontal=0x7f0d0059;
/** Action Bar Spinner Widgets
*/
public static final int Widget_AppCompat_Base_Spinner=0x7f0d005b;
public static final int Widget_AppCompat_DropDownItem_Spinner=0x7f0d0024;
public static final int Widget_AppCompat_Light_ActionBar=0x7f0d0001;
public static final int Widget_AppCompat_Light_ActionBar_Solid=0x7f0d0003;
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f0d0004;
public static final int Widget_AppCompat_Light_ActionBar_TabBar=0x7f0d0012;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f0d0013;
public static final int Widget_AppCompat_Light_ActionBar_TabText=0x7f0d0018;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0d0019;
public static final int Widget_AppCompat_Light_ActionBar_TabView=0x7f0d0015;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f0d0016;
public static final int Widget_AppCompat_Light_ActionButton=0x7f0d000c;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f0d000e;
public static final int Widget_AppCompat_Light_ActionButton_Overflow=0x7f0d0010;
public static final int Widget_AppCompat_Light_ActionMode_Inverse=0x7f0d001c;
public static final int Widget_AppCompat_Light_ActivityChooserView=0x7f0d0039;
public static final int Widget_AppCompat_Light_AutoCompleteTextView=0x7f0d0037;
public static final int Widget_AppCompat_Light_Base_ActionBar=0x7f0d003b;
public static final int Widget_AppCompat_Light_Base_ActionBar_Solid=0x7f0d003d;
public static final int Widget_AppCompat_Light_Base_ActionBar_Solid_Inverse=0x7f0d003e;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabBar=0x7f0d0046;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabBar_Inverse=0x7f0d0047;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabText=0x7f0d004c;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabText_Inverse=0x7f0d004d;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabView=0x7f0d0049;
public static final int Widget_AppCompat_Light_Base_ActionBar_TabView_Inverse=0x7f0d004a;
public static final int Widget_AppCompat_Light_Base_ActionButton=0x7f0d0040;
public static final int Widget_AppCompat_Light_Base_ActionButton_CloseMode=0x7f0d0042;
public static final int Widget_AppCompat_Light_Base_ActionButton_Overflow=0x7f0d0044;
public static final int Widget_AppCompat_Light_Base_ActionMode_Inverse=0x7f0d004f;
public static final int Widget_AppCompat_Light_Base_ActivityChooserView=0x7f0d0076;
public static final int Widget_AppCompat_Light_Base_AutoCompleteTextView=0x7f0d0074;
public static final int Widget_AppCompat_Light_Base_DropDownItem_Spinner=0x7f0d005e;
public static final int Widget_AppCompat_Light_Base_ListPopupWindow=0x7f0d0066;
public static final int Widget_AppCompat_Light_Base_ListView_DropDown=0x7f0d0060;
public static final int Widget_AppCompat_Light_Base_PopupMenu=0x7f0d0068;
public static final int Widget_AppCompat_Light_Base_Spinner=0x7f0d005c;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f0d0025;
public static final int Widget_AppCompat_Light_ListPopupWindow=0x7f0d002a;
public static final int Widget_AppCompat_Light_ListView_DropDown=0x7f0d0027;
public static final int Widget_AppCompat_Light_PopupMenu=0x7f0d002c;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f0d0023;
public static final int Widget_AppCompat_ListPopupWindow=0x7f0d0029;
public static final int Widget_AppCompat_ListView_DropDown=0x7f0d0026;
public static final int Widget_AppCompat_ListView_Menu=0x7f0d002d;
public static final int Widget_AppCompat_PopupMenu=0x7f0d002b;
public static final int Widget_AppCompat_ProgressBar=0x7f0d000a;
public static final int Widget_AppCompat_ProgressBar_Horizontal=0x7f0d0009;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0d0022;
}
public static final class xml {
public static final int four_long_widget=0x7f050000;
public static final int four_square_widget=0x7f050001;
public static final int four_white_widget=0x7f050002;
public static final int one_cell_widget=0x7f050003;
public static final int preference_audio=0x7f050004;
public static final int preference_coverart=0x7f050005;
public static final int preference_headers=0x7f050006;
public static final int preference_library=0x7f050007;
public static final int preference_misc=0x7f050008;
public static final int preference_notifications=0x7f050009;
public static final int preference_playback=0x7f05000a;
public static final int preference_replaygain=0x7f05000b;
public static final int preference_shake=0x7f05000c;
public static final int preferences=0x7f05000d;
public static final int widget_d=0x7f05000e;
public static final int widget_e=0x7f05000f;
}
public static final class styleable {
/** ============================================
Attributes used to style the Action Bar.
These should be set on your theme; the default actionBarStyle will
propagate them to the correct elements as needed.
Please Note: when overriding attributes for an ActionBar style
you must specify each attribute twice: once with the "android:"
namespace prefix and once without.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionBar_background com.music.player:background}</code></td><td> Specifies a background drawable for the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_backgroundSplit com.music.player:backgroundSplit}</code></td><td> Specifies a background drawable for the bottom component of a split action bar.</td></tr>
<tr><td><code>{@link #ActionBar_backgroundStacked com.music.player:backgroundStacked}</code></td><td> Specifies a background drawable for a second stacked row of the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_customNavigationLayout com.music.player:customNavigationLayout}</code></td><td> Specifies a layout for custom navigation.</td></tr>
<tr><td><code>{@link #ActionBar_displayOptions com.music.player:displayOptions}</code></td><td> Options affecting how the action bar is displayed.</td></tr>
<tr><td><code>{@link #ActionBar_divider com.music.player:divider}</code></td><td> Specifies the drawable used for item dividers.</td></tr>
<tr><td><code>{@link #ActionBar_height com.music.player:height}</code></td><td> Specifies a fixed height.</td></tr>
<tr><td><code>{@link #ActionBar_homeLayout com.music.player:homeLayout}</code></td><td> Specifies a layout to use for the "home" section of the action bar.</td></tr>
<tr><td><code>{@link #ActionBar_icon com.music.player:icon}</code></td><td> Specifies the drawable used for the application icon.</td></tr>
<tr><td><code>{@link #ActionBar_indeterminateProgressStyle com.music.player:indeterminateProgressStyle}</code></td><td> Specifies a style resource to use for an indeterminate progress spinner.</td></tr>
<tr><td><code>{@link #ActionBar_itemPadding com.music.player:itemPadding}</code></td><td> Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.</td></tr>
<tr><td><code>{@link #ActionBar_logo com.music.player:logo}</code></td><td> Specifies the drawable used for the application logo.</td></tr>
<tr><td><code>{@link #ActionBar_navigationMode com.music.player:navigationMode}</code></td><td> The type of navigation to use.</td></tr>
<tr><td><code>{@link #ActionBar_progressBarPadding com.music.player:progressBarPadding}</code></td><td> Specifies the horizontal padding on either end for an embedded progress bar.</td></tr>
<tr><td><code>{@link #ActionBar_progressBarStyle com.music.player:progressBarStyle}</code></td><td> Specifies a style resource to use for an embedded progress bar.</td></tr>
<tr><td><code>{@link #ActionBar_subtitle com.music.player:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_subtitleTextStyle com.music.player:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionBar_title com.music.player:title}</code></td><td> Specifies title text used for navigationMode="normal" </td></tr>
<tr><td><code>{@link #ActionBar_titleTextStyle com.music.player:titleTextStyle}</code></td><td> Specifies a style to use for title text.</td></tr>
</table>
@see #ActionBar_background
@see #ActionBar_backgroundSplit
@see #ActionBar_backgroundStacked
@see #ActionBar_customNavigationLayout
@see #ActionBar_displayOptions
@see #ActionBar_divider
@see #ActionBar_height
@see #ActionBar_homeLayout
@see #ActionBar_icon
@see #ActionBar_indeterminateProgressStyle
@see #ActionBar_itemPadding
@see #ActionBar_logo
@see #ActionBar_navigationMode
@see #ActionBar_progressBarPadding
@see #ActionBar_progressBarStyle
@see #ActionBar_subtitle
@see #ActionBar_subtitleTextStyle
@see #ActionBar_title
@see #ActionBar_titleTextStyle
*/
public static final int[] ActionBar = {
0x7f010025, 0x7f010026, 0x7f010027, 0x7f010028,
0x7f010029, 0x7f01002a, 0x7f01002b, 0x7f01002c,
0x7f01002d, 0x7f01002e, 0x7f01002f, 0x7f010030,
0x7f010031, 0x7f010032, 0x7f010033, 0x7f010034,
0x7f010035, 0x7f010036, 0x7f010037
};
/**
<p>
@attr description
Specifies a background drawable for the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:background
*/
public static final int ActionBar_background = 10;
/**
<p>
@attr description
Specifies a background drawable for the bottom component of a split action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name com.music.player:backgroundSplit
*/
public static final int ActionBar_backgroundSplit = 12;
/**
<p>
@attr description
Specifies a background drawable for a second stacked row of the action bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name com.music.player:backgroundStacked
*/
public static final int ActionBar_backgroundStacked = 11;
/**
<p>
@attr description
Specifies a layout for custom navigation. Overrides navigationMode.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:customNavigationLayout
*/
public static final int ActionBar_customNavigationLayout = 13;
/**
<p>
@attr description
Options affecting how the action bar is displayed.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr>
<tr><td><code>showHome</code></td><td>0x2</td><td></td></tr>
<tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr>
<tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr>
<tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr>
<tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr>
</table>
<p>This is a private symbol.
@attr name com.music.player:displayOptions
*/
public static final int ActionBar_displayOptions = 3;
/**
<p>
@attr description
Specifies the drawable used for item dividers.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:divider
*/
public static final int ActionBar_divider = 9;
/**
<p>
@attr description
Specifies a fixed height.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:height
*/
public static final int ActionBar_height = 1;
/**
<p>
@attr description
Specifies a layout to use for the "home" section of the action bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:homeLayout
*/
public static final int ActionBar_homeLayout = 14;
/**
<p>
@attr description
Specifies the drawable used for the application icon.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:icon
*/
public static final int ActionBar_icon = 7;
/**
<p>
@attr description
Specifies a style resource to use for an indeterminate progress spinner.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:indeterminateProgressStyle
*/
public static final int ActionBar_indeterminateProgressStyle = 16;
/**
<p>
@attr description
Specifies padding that should be applied to the left and right sides of
system-provided items in the bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:itemPadding
*/
public static final int ActionBar_itemPadding = 18;
/**
<p>
@attr description
Specifies the drawable used for the application logo.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:logo
*/
public static final int ActionBar_logo = 8;
/**
<p>
@attr description
The type of navigation to use.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>normal</code></td><td>0</td><td> Normal static title text </td></tr>
<tr><td><code>listMode</code></td><td>1</td><td> The action bar will use a selection list for navigation. </td></tr>
<tr><td><code>tabMode</code></td><td>2</td><td> The action bar will use a series of horizontal tabs for navigation. </td></tr>
</table>
<p>This is a private symbol.
@attr name com.music.player:navigationMode
*/
public static final int ActionBar_navigationMode = 2;
/**
<p>
@attr description
Specifies the horizontal padding on either end for an embedded progress bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:progressBarPadding
*/
public static final int ActionBar_progressBarPadding = 17;
/**
<p>
@attr description
Specifies a style resource to use for an embedded progress bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:progressBarStyle
*/
public static final int ActionBar_progressBarStyle = 15;
/**
<p>
@attr description
Specifies subtitle text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:subtitle
*/
public static final int ActionBar_subtitle = 4;
/**
<p>
@attr description
Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:subtitleTextStyle
*/
public static final int ActionBar_subtitleTextStyle = 6;
/**
<p>
@attr description
Specifies title text used for navigationMode="normal"
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:title
*/
public static final int ActionBar_title = 0;
/**
<p>
@attr description
Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:titleTextStyle
*/
public static final int ActionBar_titleTextStyle = 5;
/** Valid LayoutParams for views placed in the action bar as custom views.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionBarLayout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr>
</table>
@see #ActionBarLayout_android_layout_gravity
*/
public static final int[] ActionBarLayout = {
0x010100b3
};
/**
<p>This symbol is the offset where the {@link android.R.attr#layout_gravity}
attribute's value can be found in the {@link #ActionBarLayout} array.
@attr name android:layout_gravity
*/
public static final int ActionBarLayout_android_layout_gravity = 0;
/** These attributes are meant to be specified and customized by the app.
The system will read and apply them as needed. These attributes control
properties of the activity window, such as whether an action bar should
be present and whether it should overlay content.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionBarWindow_windowActionBar com.music.player:windowActionBar}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBarWindow_windowActionBarOverlay com.music.player:windowActionBarOverlay}</code></td><td></td></tr>
<tr><td><code>{@link #ActionBarWindow_windowFixedHeightMajor com.music.player:windowFixedHeightMajor}</code></td><td> A fixed height for the window along the major axis of the screen,
that is, when in portrait.</td></tr>
<tr><td><code>{@link #ActionBarWindow_windowFixedHeightMinor com.music.player:windowFixedHeightMinor}</code></td><td> A fixed height for the window along the minor axis of the screen,
that is, when in landscape.</td></tr>
<tr><td><code>{@link #ActionBarWindow_windowFixedWidthMajor com.music.player:windowFixedWidthMajor}</code></td><td> A fixed width for the window along the major axis of the screen,
that is, when in landscape.</td></tr>
<tr><td><code>{@link #ActionBarWindow_windowFixedWidthMinor com.music.player:windowFixedWidthMinor}</code></td><td> A fixed width for the window along the minor axis of the screen,
that is, when in portrait.</td></tr>
<tr><td><code>{@link #ActionBarWindow_windowSplitActionBar com.music.player:windowSplitActionBar}</code></td><td></td></tr>
</table>
@see #ActionBarWindow_windowActionBar
@see #ActionBarWindow_windowActionBarOverlay
@see #ActionBarWindow_windowFixedHeightMajor
@see #ActionBarWindow_windowFixedHeightMinor
@see #ActionBarWindow_windowFixedWidthMajor
@see #ActionBarWindow_windowFixedWidthMinor
@see #ActionBarWindow_windowSplitActionBar
*/
public static final int[] ActionBarWindow = {
0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003,
0x7f010004, 0x7f010005, 0x7f010006
};
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#windowActionBar}
attribute's value can be found in the {@link #ActionBarWindow} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:windowActionBar
*/
public static final int ActionBarWindow_windowActionBar = 0;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#windowActionBarOverlay}
attribute's value can be found in the {@link #ActionBarWindow} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:windowActionBarOverlay
*/
public static final int ActionBarWindow_windowActionBarOverlay = 1;
/**
<p>
@attr description
A fixed height for the window along the major axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:windowFixedHeightMajor
*/
public static final int ActionBarWindow_windowFixedHeightMajor = 6;
/**
<p>
@attr description
A fixed height for the window along the minor axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:windowFixedHeightMinor
*/
public static final int ActionBarWindow_windowFixedHeightMinor = 4;
/**
<p>
@attr description
A fixed width for the window along the major axis of the screen,
that is, when in landscape. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:windowFixedWidthMajor
*/
public static final int ActionBarWindow_windowFixedWidthMajor = 3;
/**
<p>
@attr description
A fixed width for the window along the minor axis of the screen,
that is, when in portrait. Can be either an absolute dimension
or a fraction of the screen size in that dimension.
<p>May be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>May be a fractional value, which is a floating point number appended with either % or %p, such as "<code>14.5%</code>".
The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to
some parent container.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:windowFixedWidthMinor
*/
public static final int ActionBarWindow_windowFixedWidthMinor = 5;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#windowSplitActionBar}
attribute's value can be found in the {@link #ActionBarWindow} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:windowSplitActionBar
*/
public static final int ActionBarWindow_windowSplitActionBar = 2;
/** Attributes that can be used with a ActionMenuItemView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionMenuItemView_android_minWidth android:minWidth}</code></td><td></td></tr>
</table>
@see #ActionMenuItemView_android_minWidth
*/
public static final int[] ActionMenuItemView = {
0x0101013f
};
/**
<p>This symbol is the offset where the {@link android.R.attr#minWidth}
attribute's value can be found in the {@link #ActionMenuItemView} array.
@attr name android:minWidth
*/
public static final int ActionMenuItemView_android_minWidth = 0;
/** Size of padding on either end of a divider.
*/
public static final int[] ActionMenuView = {
};
/** Attributes that can be used with a ActionMode.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActionMode_background com.music.player:background}</code></td><td> Specifies a background for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_backgroundSplit com.music.player:backgroundSplit}</code></td><td> Specifies a background for the split action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_height com.music.player:height}</code></td><td> Specifies a fixed height for the action mode bar.</td></tr>
<tr><td><code>{@link #ActionMode_subtitleTextStyle com.music.player:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr>
<tr><td><code>{@link #ActionMode_titleTextStyle com.music.player:titleTextStyle}</code></td><td> Specifies a style to use for title text.</td></tr>
</table>
@see #ActionMode_background
@see #ActionMode_backgroundSplit
@see #ActionMode_height
@see #ActionMode_subtitleTextStyle
@see #ActionMode_titleTextStyle
*/
public static final int[] ActionMode = {
0x7f010026, 0x7f01002a, 0x7f01002b, 0x7f01002f,
0x7f010031
};
/**
<p>
@attr description
Specifies a background for the action mode bar.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:background
*/
public static final int ActionMode_background = 3;
/**
<p>
@attr description
Specifies a background for the split action mode bar.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This is a private symbol.
@attr name com.music.player:backgroundSplit
*/
public static final int ActionMode_backgroundSplit = 4;
/**
<p>
@attr description
Specifies a fixed height for the action mode bar.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:height
*/
public static final int ActionMode_height = 0;
/**
<p>
@attr description
Specifies a style to use for subtitle text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:subtitleTextStyle
*/
public static final int ActionMode_subtitleTextStyle = 2;
/**
<p>
@attr description
Specifies a style to use for title text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:titleTextStyle
*/
public static final int ActionMode_titleTextStyle = 1;
/** Attrbitutes for a ActivityChooserView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #ActivityChooserView_expandActivityOverflowButtonDrawable com.music.player:expandActivityOverflowButtonDrawable}</code></td><td> The drawable to show in the button for expanding the activities overflow popup.</td></tr>
<tr><td><code>{@link #ActivityChooserView_initialActivityCount com.music.player:initialActivityCount}</code></td><td> The maximal number of items initially shown in the activity list.</td></tr>
</table>
@see #ActivityChooserView_expandActivityOverflowButtonDrawable
@see #ActivityChooserView_initialActivityCount
*/
public static final int[] ActivityChooserView = {
0x7f01006a, 0x7f01006b
};
/**
<p>
@attr description
The drawable to show in the button for expanding the activities overflow popup.
<strong>Note:</strong> Clients would like to set this drawable
as a clue about the action the chosen activity will perform. For
example, if share activity is to be chosen the drawable should
give a clue that sharing is to be performed.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:expandActivityOverflowButtonDrawable
*/
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
/**
<p>
@attr description
The maximal number of items initially shown in the activity list.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:initialActivityCount
*/
public static final int ActivityChooserView_initialActivityCount = 0;
/** Attributes that can be used with a CompatTextView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #CompatTextView_textAllCaps com.music.player:textAllCaps}</code></td><td> Present the text in ALL CAPS.</td></tr>
</table>
@see #CompatTextView_textAllCaps
*/
public static final int[] CompatTextView = {
0x7f01006d
};
/**
<p>
@attr description
Present the text in ALL CAPS. This may use a small-caps form when available.
<p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>May be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This is a private symbol.
@attr name com.music.player:textAllCaps
*/
public static final int CompatTextView_textAllCaps = 0;
/** Attributes that can be used with a DragSortListView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #DragSortListView_click_remove_id com.music.player:click_remove_id}</code></td><td></td></tr>
<tr><td><code>{@link #DragSortListView_collapsed_height com.music.player:collapsed_height}</code></td><td></td></tr>
<tr><td><code>{@link #DragSortListView_drag_enabled com.music.player:drag_enabled}</code></td><td></td></tr>
<tr><td><code>{@link #DragSortListView_drag_handle_id com.music.player:drag_handle_id}</code></td><td></td></tr>
<tr><td><code>{@link #DragSortListView_drag_scroll_start com.music.player:drag_scroll_start}</code></td><td></td></tr>
<tr><td><code>{@link #DragSortListView_drag_start_mode com.music.player:drag_start_mode}</code></td><td></td></tr>
<tr><td><code>{@link #DragSortListView_drop_animation_duration com.music.player:drop_animation_duration}</code></td><td></td></tr>
<tr><td><code>{@link #DragSortListView_fling_handle_id com.music.player:fling_handle_id}</code></td><td></td></tr>
<tr><td><code>{@link #DragSortListView_float_alpha com.music.player:float_alpha}</code></td><td></td></tr>
<tr><td><code>{@link #DragSortListView_float_background_color com.music.player:float_background_color}</code></td><td></td></tr>
<tr><td><code>{@link #DragSortListView_max_drag_scroll_speed com.music.player:max_drag_scroll_speed}</code></td><td></td></tr>
<tr><td><code>{@link #DragSortListView_remove_animation_duration com.music.player:remove_animation_duration}</code></td><td></td></tr>
<tr><td><code>{@link #DragSortListView_remove_enabled com.music.player:remove_enabled}</code></td><td></td></tr>
<tr><td><code>{@link #DragSortListView_remove_mode com.music.player:remove_mode}</code></td><td></td></tr>
<tr><td><code>{@link #DragSortListView_slide_shuffle_speed com.music.player:slide_shuffle_speed}</code></td><td></td></tr>
<tr><td><code>{@link #DragSortListView_sort_enabled com.music.player:sort_enabled}</code></td><td></td></tr>
<tr><td><code>{@link #DragSortListView_track_drag_sort com.music.player:track_drag_sort}</code></td><td></td></tr>
<tr><td><code>{@link #DragSortListView_use_default_controller com.music.player:use_default_controller}</code></td><td></td></tr>
</table>
@see #DragSortListView_click_remove_id
@see #DragSortListView_collapsed_height
@see #DragSortListView_drag_enabled
@see #DragSortListView_drag_handle_id
@see #DragSortListView_drag_scroll_start
@see #DragSortListView_drag_start_mode
@see #DragSortListView_drop_animation_duration
@see #DragSortListView_fling_handle_id
@see #DragSortListView_float_alpha
@see #DragSortListView_float_background_color
@see #DragSortListView_max_drag_scroll_speed
@see #DragSortListView_remove_animation_duration
@see #DragSortListView_remove_enabled
@see #DragSortListView_remove_mode
@see #DragSortListView_slide_shuffle_speed
@see #DragSortListView_sort_enabled
@see #DragSortListView_track_drag_sort
@see #DragSortListView_use_default_controller
*/
public static final int[] DragSortListView = {
0x7f01006e, 0x7f01006f, 0x7f010070, 0x7f010071,
0x7f010072, 0x7f010073, 0x7f010074, 0x7f010075,
0x7f010076, 0x7f010077, 0x7f010078, 0x7f010079,
0x7f01007a, 0x7f01007b, 0x7f01007c, 0x7f01007d,
0x7f01007e, 0x7f01007f
};
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#click_remove_id}
attribute's value can be found in the {@link #DragSortListView} array.
<p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:click_remove_id
*/
public static final int DragSortListView_click_remove_id = 16;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#collapsed_height}
attribute's value can be found in the {@link #DragSortListView} array.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:collapsed_height
*/
public static final int DragSortListView_collapsed_height = 0;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#drag_enabled}
attribute's value can be found in the {@link #DragSortListView} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:drag_enabled
*/
public static final int DragSortListView_drag_enabled = 10;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#drag_handle_id}
attribute's value can be found in the {@link #DragSortListView} array.
<p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:drag_handle_id
*/
public static final int DragSortListView_drag_handle_id = 14;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#drag_scroll_start}
attribute's value can be found in the {@link #DragSortListView} array.
<p>Must be a floating point value, such as "<code>1.2</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:drag_scroll_start
*/
public static final int DragSortListView_drag_scroll_start = 1;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#drag_start_mode}
attribute's value can be found in the {@link #DragSortListView} array.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>onDown</code></td><td>0</td><td></td></tr>
<tr><td><code>onMove</code></td><td>1</td><td></td></tr>
<tr><td><code>onLongPress</code></td><td>2</td><td></td></tr>
</table>
@attr name com.music.player:drag_start_mode
*/
public static final int DragSortListView_drag_start_mode = 13;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#drop_animation_duration}
attribute's value can be found in the {@link #DragSortListView} array.
<p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:drop_animation_duration
*/
public static final int DragSortListView_drop_animation_duration = 9;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#fling_handle_id}
attribute's value can be found in the {@link #DragSortListView} array.
<p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:fling_handle_id
*/
public static final int DragSortListView_fling_handle_id = 15;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#float_alpha}
attribute's value can be found in the {@link #DragSortListView} array.
<p>Must be a floating point value, such as "<code>1.2</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:float_alpha
*/
public static final int DragSortListView_float_alpha = 6;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#float_background_color}
attribute's value can be found in the {@link #DragSortListView} array.
<p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:float_background_color
*/
public static final int DragSortListView_float_background_color = 3;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#max_drag_scroll_speed}
attribute's value can be found in the {@link #DragSortListView} array.
<p>Must be a floating point value, such as "<code>1.2</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:max_drag_scroll_speed
*/
public static final int DragSortListView_max_drag_scroll_speed = 2;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#remove_animation_duration}
attribute's value can be found in the {@link #DragSortListView} array.
<p>Must be an integer value, such as "<code>100</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:remove_animation_duration
*/
public static final int DragSortListView_remove_animation_duration = 8;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#remove_enabled}
attribute's value can be found in the {@link #DragSortListView} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:remove_enabled
*/
public static final int DragSortListView_remove_enabled = 12;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#remove_mode}
attribute's value can be found in the {@link #DragSortListView} array.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>clickRemove</code></td><td>0</td><td></td></tr>
<tr><td><code>flingRemove</code></td><td>1</td><td></td></tr>
</table>
@attr name com.music.player:remove_mode
*/
public static final int DragSortListView_remove_mode = 4;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#slide_shuffle_speed}
attribute's value can be found in the {@link #DragSortListView} array.
<p>Must be a floating point value, such as "<code>1.2</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:slide_shuffle_speed
*/
public static final int DragSortListView_slide_shuffle_speed = 7;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#sort_enabled}
attribute's value can be found in the {@link #DragSortListView} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:sort_enabled
*/
public static final int DragSortListView_sort_enabled = 11;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#track_drag_sort}
attribute's value can be found in the {@link #DragSortListView} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:track_drag_sort
*/
public static final int DragSortListView_track_drag_sort = 5;
/**
<p>This symbol is the offset where the {@link com.music.player.R.attr#use_default_controller}
attribute's value can be found in the {@link #DragSortListView} array.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
@attr name com.music.player:use_default_controller
*/
public static final int DragSortListView_use_default_controller = 17;
/** Attributes that can be used with a LinearLayoutICS.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #LinearLayoutICS_divider com.music.player:divider}</code></td><td> Drawable to use as a vertical divider between buttons.</td></tr>
<tr><td><code>{@link #LinearLayoutICS_dividerPadding com.music.player:dividerPadding}</code></td><td> Size of padding on either end of a divider.</td></tr>
<tr><td><code>{@link #LinearLayoutICS_showDividers com.music.player:showDividers}</code></td><td> Setting for which dividers to show.</td></tr>
</table>
@see #LinearLayoutICS_divider
@see #LinearLayoutICS_dividerPadding
@see #LinearLayoutICS_showDividers
*/
public static final int[] LinearLayoutICS = {
0x7f01002e, 0x7f010055, 0x7f010056
};
/**
<p>
@attr description
Drawable to use as a vertical divider between buttons.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:divider
*/
public static final int LinearLayoutICS_divider = 0;
/**
<p>
@attr description
Size of padding on either end of a divider.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:dividerPadding
*/
public static final int LinearLayoutICS_dividerPadding = 2;
/**
<p>
@attr description
Setting for which dividers to show.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>none</code></td><td>0</td><td></td></tr>
<tr><td><code>beginning</code></td><td>1</td><td></td></tr>
<tr><td><code>middle</code></td><td>2</td><td></td></tr>
<tr><td><code>end</code></td><td>4</td><td></td></tr>
</table>
<p>This is a private symbol.
@attr name com.music.player:showDividers
*/
public static final int LinearLayoutICS_showDividers = 1;
/** Base attributes that are available to all groups.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuGroup_android_checkableBehavior android:checkableBehavior}</code></td><td> Whether the items are capable of displaying a check mark.</td></tr>
<tr><td><code>{@link #MenuGroup_android_enabled android:enabled}</code></td><td> Whether the items are enabled.</td></tr>
<tr><td><code>{@link #MenuGroup_android_id android:id}</code></td><td> The ID of the group.</td></tr>
<tr><td><code>{@link #MenuGroup_android_menuCategory android:menuCategory}</code></td><td> The category applied to all items within this group.</td></tr>
<tr><td><code>{@link #MenuGroup_android_orderInCategory android:orderInCategory}</code></td><td> The order within the category applied to all items within this group.</td></tr>
<tr><td><code>{@link #MenuGroup_android_visible android:visible}</code></td><td> Whether the items are shown/visible.</td></tr>
</table>
@see #MenuGroup_android_checkableBehavior
@see #MenuGroup_android_enabled
@see #MenuGroup_android_id
@see #MenuGroup_android_menuCategory
@see #MenuGroup_android_orderInCategory
@see #MenuGroup_android_visible
*/
public static final int[] MenuGroup = {
0x0101000e, 0x010100d0, 0x01010194, 0x010101de,
0x010101df, 0x010101e0
};
/**
<p>
@attr description
Whether the items are capable of displaying a check mark.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checkableBehavior}.
@attr name android:checkableBehavior
*/
public static final int MenuGroup_android_checkableBehavior = 5;
/**
<p>
@attr description
Whether the items are enabled.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#enabled}.
@attr name android:enabled
*/
public static final int MenuGroup_android_enabled = 0;
/**
<p>
@attr description
The ID of the group.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#id}.
@attr name android:id
*/
public static final int MenuGroup_android_id = 1;
/**
<p>
@attr description
The category applied to all items within this group.
(This will be or'ed with the orderInCategory attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#menuCategory}.
@attr name android:menuCategory
*/
public static final int MenuGroup_android_menuCategory = 3;
/**
<p>
@attr description
The order within the category applied to all items within this group.
(This will be or'ed with the category attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#orderInCategory}.
@attr name android:orderInCategory
*/
public static final int MenuGroup_android_orderInCategory = 4;
/**
<p>
@attr description
Whether the items are shown/visible.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#visible}.
@attr name android:visible
*/
public static final int MenuGroup_android_visible = 2;
/** Base attributes that are available to all Item objects.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuItem_actionLayout com.music.player:actionLayout}</code></td><td> An optional layout to be used as an action view.</td></tr>
<tr><td><code>{@link #MenuItem_actionProviderClass com.music.player:actionProviderClass}</code></td><td> The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.</td></tr>
<tr><td><code>{@link #MenuItem_actionViewClass com.music.player:actionViewClass}</code></td><td> The name of an optional View class to instantiate and use as an
action view.</td></tr>
<tr><td><code>{@link #MenuItem_android_alphabeticShortcut android:alphabeticShortcut}</code></td><td> The alphabetic shortcut key.</td></tr>
<tr><td><code>{@link #MenuItem_android_checkable android:checkable}</code></td><td> Whether the item is capable of displaying a check mark.</td></tr>
<tr><td><code>{@link #MenuItem_android_checked android:checked}</code></td><td> Whether the item is checked.</td></tr>
<tr><td><code>{@link #MenuItem_android_enabled android:enabled}</code></td><td> Whether the item is enabled.</td></tr>
<tr><td><code>{@link #MenuItem_android_icon android:icon}</code></td><td> The icon associated with this item.</td></tr>
<tr><td><code>{@link #MenuItem_android_id android:id}</code></td><td> The ID of the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_menuCategory android:menuCategory}</code></td><td> The category applied to the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_numericShortcut android:numericShortcut}</code></td><td> The numeric shortcut key.</td></tr>
<tr><td><code>{@link #MenuItem_android_onClick android:onClick}</code></td><td> Name of a method on the Context used to inflate the menu that will be
called when the item is clicked.</td></tr>
<tr><td><code>{@link #MenuItem_android_orderInCategory android:orderInCategory}</code></td><td> The order within the category applied to the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_title android:title}</code></td><td> The title associated with the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_titleCondensed android:titleCondensed}</code></td><td> The condensed title associated with the item.</td></tr>
<tr><td><code>{@link #MenuItem_android_visible android:visible}</code></td><td> Whether the item is shown/visible.</td></tr>
<tr><td><code>{@link #MenuItem_showAsAction com.music.player:showAsAction}</code></td><td> How this item should display in the Action Bar, if present.</td></tr>
</table>
@see #MenuItem_actionLayout
@see #MenuItem_actionProviderClass
@see #MenuItem_actionViewClass
@see #MenuItem_android_alphabeticShortcut
@see #MenuItem_android_checkable
@see #MenuItem_android_checked
@see #MenuItem_android_enabled
@see #MenuItem_android_icon
@see #MenuItem_android_id
@see #MenuItem_android_menuCategory
@see #MenuItem_android_numericShortcut
@see #MenuItem_android_onClick
@see #MenuItem_android_orderInCategory
@see #MenuItem_android_title
@see #MenuItem_android_titleCondensed
@see #MenuItem_android_visible
@see #MenuItem_showAsAction
*/
public static final int[] MenuItem = {
0x01010002, 0x0101000e, 0x010100d0, 0x01010106,
0x01010194, 0x010101de, 0x010101df, 0x010101e1,
0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5,
0x0101026f, 0x7f01004d, 0x7f01004e, 0x7f01004f,
0x7f010050
};
/**
<p>
@attr description
An optional layout to be used as an action view.
See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:actionLayout
*/
public static final int MenuItem_actionLayout = 14;
/**
<p>
@attr description
The name of an optional ActionProvider class to instantiate an action view
and perform operations such as default action for that menu item.
See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:actionProviderClass
*/
public static final int MenuItem_actionProviderClass = 16;
/**
<p>
@attr description
The name of an optional View class to instantiate and use as an
action view. See {@link android.view.MenuItem#setActionView(android.view.View)}
for more info.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:actionViewClass
*/
public static final int MenuItem_actionViewClass = 15;
/**
<p>
@attr description
The alphabetic shortcut key. This is the shortcut when using a keyboard
with alphabetic keys.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#alphabeticShortcut}.
@attr name android:alphabeticShortcut
*/
public static final int MenuItem_android_alphabeticShortcut = 9;
/**
<p>
@attr description
Whether the item is capable of displaying a check mark.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checkable}.
@attr name android:checkable
*/
public static final int MenuItem_android_checkable = 11;
/**
<p>
@attr description
Whether the item is checked. Note that you must first have enabled checking with
the checkable attribute or else the check mark will not appear.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#checked}.
@attr name android:checked
*/
public static final int MenuItem_android_checked = 3;
/**
<p>
@attr description
Whether the item is enabled.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#enabled}.
@attr name android:enabled
*/
public static final int MenuItem_android_enabled = 1;
/**
<p>
@attr description
The icon associated with this item. This icon will not always be shown, so
the title should be sufficient in describing this item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#icon}.
@attr name android:icon
*/
public static final int MenuItem_android_icon = 0;
/**
<p>
@attr description
The ID of the item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#id}.
@attr name android:id
*/
public static final int MenuItem_android_id = 2;
/**
<p>
@attr description
The category applied to the item.
(This will be or'ed with the orderInCategory attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#menuCategory}.
@attr name android:menuCategory
*/
public static final int MenuItem_android_menuCategory = 5;
/**
<p>
@attr description
The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key)
keyboard.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#numericShortcut}.
@attr name android:numericShortcut
*/
public static final int MenuItem_android_numericShortcut = 10;
/**
<p>
@attr description
Name of a method on the Context used to inflate the menu that will be
called when the item is clicked.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#onClick}.
@attr name android:onClick
*/
public static final int MenuItem_android_onClick = 12;
/**
<p>
@attr description
The order within the category applied to the item.
(This will be or'ed with the category attribute.)
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#orderInCategory}.
@attr name android:orderInCategory
*/
public static final int MenuItem_android_orderInCategory = 6;
/**
<p>
@attr description
The title associated with the item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#title}.
@attr name android:title
*/
public static final int MenuItem_android_title = 7;
/**
<p>
@attr description
The condensed title associated with the item. This is used in situations where the
normal title may be too long to be displayed.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#titleCondensed}.
@attr name android:titleCondensed
*/
public static final int MenuItem_android_titleCondensed = 8;
/**
<p>
@attr description
Whether the item is shown/visible.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#visible}.
@attr name android:visible
*/
public static final int MenuItem_android_visible = 4;
/**
<p>
@attr description
How this item should display in the Action Bar, if present.
<p>Must be one or more (separated by '|') of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>never</code></td><td>0</td><td> Never show this item in an action bar, show it in the overflow menu instead.
Mutually exclusive with "ifRoom" and "always". </td></tr>
<tr><td><code>ifRoom</code></td><td>1</td><td> Show this item in an action bar if there is room for it as determined
by the system. Favor this option over "always" where possible.
Mutually exclusive with "never" and "always". </td></tr>
<tr><td><code>always</code></td><td>2</td><td> Always show this item in an actionbar, even if it would override
the system's limits of how much stuff to put there. This may make
your action bar look bad on some screens. In most cases you should
use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". </td></tr>
<tr><td><code>withText</code></td><td>4</td><td> When this item is shown as an action in the action bar, show a text
label with it even if it has an icon representation. </td></tr>
<tr><td><code>collapseActionView</code></td><td>8</td><td> This item's action view collapses to a normal menu
item. When expanded, the action view takes over a
larger segment of its container. </td></tr>
</table>
<p>This is a private symbol.
@attr name com.music.player:showAsAction
*/
public static final int MenuItem_showAsAction = 13;
/** Attributes that can be used with a MenuView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #MenuView_android_headerBackground android:headerBackground}</code></td><td> Default background for the menu header.</td></tr>
<tr><td><code>{@link #MenuView_android_horizontalDivider android:horizontalDivider}</code></td><td> Default horizontal divider between rows of menu items.</td></tr>
<tr><td><code>{@link #MenuView_android_itemBackground android:itemBackground}</code></td><td> Default background for each menu item.</td></tr>
<tr><td><code>{@link #MenuView_android_itemIconDisabledAlpha android:itemIconDisabledAlpha}</code></td><td> Default disabled icon alpha for each menu item that shows an icon.</td></tr>
<tr><td><code>{@link #MenuView_android_itemTextAppearance android:itemTextAppearance}</code></td><td> Default appearance of menu item text.</td></tr>
<tr><td><code>{@link #MenuView_android_preserveIconSpacing android:preserveIconSpacing}</code></td><td> Whether space should be reserved in layout when an icon is missing.</td></tr>
<tr><td><code>{@link #MenuView_android_verticalDivider android:verticalDivider}</code></td><td> Default vertical divider between menu items.</td></tr>
<tr><td><code>{@link #MenuView_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td> Default animations for the menu.</td></tr>
</table>
@see #MenuView_android_headerBackground
@see #MenuView_android_horizontalDivider
@see #MenuView_android_itemBackground
@see #MenuView_android_itemIconDisabledAlpha
@see #MenuView_android_itemTextAppearance
@see #MenuView_android_preserveIconSpacing
@see #MenuView_android_verticalDivider
@see #MenuView_android_windowAnimationStyle
*/
public static final int[] MenuView = {
0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e,
0x0101012f, 0x01010130, 0x01010131, 0x01010438
};
/**
<p>
@attr description
Default background for the menu header.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#headerBackground}.
@attr name android:headerBackground
*/
public static final int MenuView_android_headerBackground = 4;
/**
<p>
@attr description
Default horizontal divider between rows of menu items.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#horizontalDivider}.
@attr name android:horizontalDivider
*/
public static final int MenuView_android_horizontalDivider = 2;
/**
<p>
@attr description
Default background for each menu item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#itemBackground}.
@attr name android:itemBackground
*/
public static final int MenuView_android_itemBackground = 5;
/**
<p>
@attr description
Default disabled icon alpha for each menu item that shows an icon.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#itemIconDisabledAlpha}.
@attr name android:itemIconDisabledAlpha
*/
public static final int MenuView_android_itemIconDisabledAlpha = 6;
/**
<p>
@attr description
Default appearance of menu item text.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#itemTextAppearance}.
@attr name android:itemTextAppearance
*/
public static final int MenuView_android_itemTextAppearance = 1;
/**
<p>
@attr description
Whether space should be reserved in layout when an icon is missing.
<p>This is a private symbol.
@attr name android:preserveIconSpacing
*/
public static final int MenuView_android_preserveIconSpacing = 7;
/**
<p>
@attr description
Default vertical divider between menu items.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#verticalDivider}.
@attr name android:verticalDivider
*/
public static final int MenuView_android_verticalDivider = 3;
/**
<p>
@attr description
Default animations for the menu.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#windowAnimationStyle}.
@attr name android:windowAnimationStyle
*/
public static final int MenuView_android_windowAnimationStyle = 0;
/** Attributes that can be used with a SearchView.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #SearchView_android_imeOptions android:imeOptions}</code></td><td> The IME options to set on the query text field.</td></tr>
<tr><td><code>{@link #SearchView_android_inputType android:inputType}</code></td><td> The input type to set on the query text field.</td></tr>
<tr><td><code>{@link #SearchView_android_maxWidth android:maxWidth}</code></td><td> An optional maximum width of the SearchView.</td></tr>
<tr><td><code>{@link #SearchView_iconifiedByDefault com.music.player:iconifiedByDefault}</code></td><td> The default state of the SearchView.</td></tr>
<tr><td><code>{@link #SearchView_queryHint com.music.player:queryHint}</code></td><td> An optional query hint string to be displayed in the empty query field.</td></tr>
</table>
@see #SearchView_android_imeOptions
@see #SearchView_android_inputType
@see #SearchView_android_maxWidth
@see #SearchView_iconifiedByDefault
@see #SearchView_queryHint
*/
public static final int[] SearchView = {
0x0101011f, 0x01010220, 0x01010264, 0x7f01005a,
0x7f01005b
};
/**
<p>
@attr description
The IME options to set on the query text field.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#imeOptions}.
@attr name android:imeOptions
*/
public static final int SearchView_android_imeOptions = 2;
/**
<p>
@attr description
The input type to set on the query text field.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#inputType}.
@attr name android:inputType
*/
public static final int SearchView_android_inputType = 1;
/**
<p>
@attr description
An optional maximum width of the SearchView.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#maxWidth}.
@attr name android:maxWidth
*/
public static final int SearchView_android_maxWidth = 0;
/**
<p>
@attr description
The default state of the SearchView. If true, it will be iconified when not in
use and expanded when clicked.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:iconifiedByDefault
*/
public static final int SearchView_iconifiedByDefault = 3;
/**
<p>
@attr description
An optional query hint string to be displayed in the empty query field.
<p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:queryHint
*/
public static final int SearchView_queryHint = 4;
/** Attributes that can be used with a Spinner.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Spinner_android_dropDownHorizontalOffset android:dropDownHorizontalOffset}</code></td><td> Horizontal offset from the spinner widget for positioning the dropdown
in spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_android_dropDownSelector android:dropDownSelector}</code></td><td> List selector to use for spinnerMode="dropdown" display.</td></tr>
<tr><td><code>{@link #Spinner_android_dropDownVerticalOffset android:dropDownVerticalOffset}</code></td><td> Vertical offset from the spinner widget for positioning the dropdown in
spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_android_dropDownWidth android:dropDownWidth}</code></td><td> Width of the dropdown in spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_android_gravity android:gravity}</code></td><td> Gravity setting for positioning the currently selected item.</td></tr>
<tr><td><code>{@link #Spinner_android_popupBackground android:popupBackground}</code></td><td> Background drawable to use for the dropdown in spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_disableChildrenWhenDisabled com.music.player:disableChildrenWhenDisabled}</code></td><td> Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.</td></tr>
<tr><td><code>{@link #Spinner_popupPromptView com.music.player:popupPromptView}</code></td><td> Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown".</td></tr>
<tr><td><code>{@link #Spinner_prompt com.music.player:prompt}</code></td><td> The prompt to display when the spinner's dialog is shown.</td></tr>
<tr><td><code>{@link #Spinner_spinnerMode com.music.player:spinnerMode}</code></td><td> Display mode for spinner options.</td></tr>
</table>
@see #Spinner_android_dropDownHorizontalOffset
@see #Spinner_android_dropDownSelector
@see #Spinner_android_dropDownVerticalOffset
@see #Spinner_android_dropDownWidth
@see #Spinner_android_gravity
@see #Spinner_android_popupBackground
@see #Spinner_disableChildrenWhenDisabled
@see #Spinner_popupPromptView
@see #Spinner_prompt
@see #Spinner_spinnerMode
*/
public static final int[] Spinner = {
0x010100af, 0x01010175, 0x01010176, 0x01010262,
0x010102ac, 0x010102ad, 0x7f010051, 0x7f010052,
0x7f010053, 0x7f010054
};
/**
<p>
@attr description
Horizontal offset from the spinner widget for positioning the dropdown
in spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownHorizontalOffset}.
@attr name android:dropDownHorizontalOffset
*/
public static final int Spinner_android_dropDownHorizontalOffset = 4;
/**
<p>
@attr description
List selector to use for spinnerMode="dropdown" display.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownSelector}.
@attr name android:dropDownSelector
*/
public static final int Spinner_android_dropDownSelector = 1;
/**
<p>
@attr description
Vertical offset from the spinner widget for positioning the dropdown in
spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownVerticalOffset}.
@attr name android:dropDownVerticalOffset
*/
public static final int Spinner_android_dropDownVerticalOffset = 5;
/**
<p>
@attr description
Width of the dropdown in spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#dropDownWidth}.
@attr name android:dropDownWidth
*/
public static final int Spinner_android_dropDownWidth = 3;
/**
<p>
@attr description
Gravity setting for positioning the currently selected item.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#gravity}.
@attr name android:gravity
*/
public static final int Spinner_android_gravity = 0;
/**
<p>
@attr description
Background drawable to use for the dropdown in spinnerMode="dropdown".
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#popupBackground}.
@attr name android:popupBackground
*/
public static final int Spinner_android_popupBackground = 2;
/**
<p>
@attr description
Whether this spinner should mark child views as enabled/disabled when
the spinner itself is enabled/disabled.
<p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>".
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:disableChildrenWhenDisabled
*/
public static final int Spinner_disableChildrenWhenDisabled = 9;
/**
<p>
@attr description
Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown". This layout must contain a TextView with the id
{@code @android:id/text1} to be populated with the prompt text.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:popupPromptView
*/
public static final int Spinner_popupPromptView = 8;
/**
<p>
@attr description
The prompt to display when the spinner's dialog is shown.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:prompt
*/
public static final int Spinner_prompt = 6;
/**
<p>
@attr description
Display mode for spinner options.
<p>Must be one of the following constant values.</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Constant</th><th>Value</th><th>Description</th></tr>
<tr><td><code>dialog</code></td><td>0</td><td> Spinner options will be presented to the user as a dialog window. </td></tr>
<tr><td><code>dropdown</code></td><td>1</td><td> Spinner options will be presented to the user as an inline dropdown
anchored to the spinner widget itself. </td></tr>
</table>
<p>This is a private symbol.
@attr name com.music.player:spinnerMode
*/
public static final int Spinner_spinnerMode = 7;
/** These are the standard attributes that make up a complete theme.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #Theme_actionDropDownStyle com.music.player:actionDropDownStyle}</code></td><td> Default ActionBar dropdown style.</td></tr>
<tr><td><code>{@link #Theme_dropdownListPreferredItemHeight com.music.player:dropdownListPreferredItemHeight}</code></td><td> The preferred item height for dropdown lists.</td></tr>
<tr><td><code>{@link #Theme_listChoiceBackgroundIndicator com.music.player:listChoiceBackgroundIndicator}</code></td><td> Drawable used as a background for selected list items.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListTheme com.music.player:panelMenuListTheme}</code></td><td> Default Panel Menu style.</td></tr>
<tr><td><code>{@link #Theme_panelMenuListWidth com.music.player:panelMenuListWidth}</code></td><td> Default Panel Menu width.</td></tr>
<tr><td><code>{@link #Theme_popupMenuStyle com.music.player:popupMenuStyle}</code></td><td> Default PopupMenu style.</td></tr>
</table>
@see #Theme_actionDropDownStyle
@see #Theme_dropdownListPreferredItemHeight
@see #Theme_listChoiceBackgroundIndicator
@see #Theme_panelMenuListTheme
@see #Theme_panelMenuListWidth
@see #Theme_popupMenuStyle
*/
public static final int[] Theme = {
0x7f010047, 0x7f010048, 0x7f010049, 0x7f01004a,
0x7f01004b, 0x7f01004c
};
/**
<p>
@attr description
Default ActionBar dropdown style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:actionDropDownStyle
*/
public static final int Theme_actionDropDownStyle = 0;
/**
<p>
@attr description
The preferred item height for dropdown lists.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:dropdownListPreferredItemHeight
*/
public static final int Theme_dropdownListPreferredItemHeight = 1;
/**
<p>
@attr description
Drawable used as a background for selected list items.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:listChoiceBackgroundIndicator
*/
public static final int Theme_listChoiceBackgroundIndicator = 5;
/**
<p>
@attr description
Default Panel Menu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:panelMenuListTheme
*/
public static final int Theme_panelMenuListTheme = 4;
/**
<p>
@attr description
Default Panel Menu width.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:panelMenuListWidth
*/
public static final int Theme_panelMenuListWidth = 3;
/**
<p>
@attr description
Default PopupMenu style.
<p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>".
<p>This is a private symbol.
@attr name com.music.player:popupMenuStyle
*/
public static final int Theme_popupMenuStyle = 2;
/** Attributes that can be used with a View.
<p>Includes the following attributes:</p>
<table>
<colgroup align="left" />
<colgroup align="left" />
<tr><th>Attribute</th><th>Description</th></tr>
<tr><td><code>{@link #View_android_focusable android:focusable}</code></td><td> Boolean that controls whether a view can take focus.</td></tr>
<tr><td><code>{@link #View_paddingEnd com.music.player:paddingEnd}</code></td><td> Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.</td></tr>
<tr><td><code>{@link #View_paddingStart com.music.player:paddingStart}</code></td><td> Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.</td></tr>
</table>
@see #View_android_focusable
@see #View_paddingEnd
@see #View_paddingStart
*/
public static final int[] View = {
0x010100da, 0x7f010038, 0x7f010039
};
/**
<p>
@attr description
Boolean that controls whether a view can take focus. By default the user can not
move focus to a view; by setting this attribute to true the view is
allowed to take focus. This value does not impact the behavior of
directly calling {@link android.view.View#requestFocus}, which will
always request focus regardless of this view. It only impacts where
focus navigation will try to move focus.
<p>This corresponds to the global attribute
resource symbol {@link android.R.attr#focusable}.
@attr name android:focusable
*/
public static final int View_android_focusable = 0;
/**
<p>
@attr description
Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:paddingEnd
*/
public static final int View_paddingEnd = 2;
/**
<p>
@attr description
Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or
theme attribute (in the form
"<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>")
containing a value of this type.
<p>This is a private symbol.
@attr name com.music.player:paddingStart
*/
public static final int View_paddingStart = 1;
};
}
| [
"anshu.agrawal@lge.com"
] | anshu.agrawal@lge.com |
c5192b8c7c9d7a786907615d9d5e4d2af2602d44 | 7909a81e5d1e5ed4cff050c9d92370f15ab3befa | /studentadd/src/main/java/cn/edu/nyist/studentadd/dao/StudentDaoImpl.java | 3307902575cde6951de569ad43096cb98ca6c810 | [] | no_license | Wwwxj/mybookmanv1 | e4d6ba5336dd6f855dd03f9965d069ddb33ba7e0 | 6a05081a22c7a84f43dbe8d674ef101f3881405c | refs/heads/master | 2020-03-17T21:13:55.209566 | 2018-05-18T14:22:00 | 2018-05-18T14:22:00 | 133,950,136 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 866 | java | package cn.edu.nyist.studentadd.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import cn.edu.nyist.studentadd.util.DsUtil;
public class StudentDaoImpl implements StudentDao {
@Override
public int save(String name, int age) {
Connection conn=null;
PreparedStatement stmt=null;
try {
System.out.println("----------------------------");
conn=DsUtil.getConnection();
String sql="insert into t_student(name,age) values(?,?)";
System.out.println(sql);
stmt=conn.prepareStatement(sql);
stmt.setString(1, name);
stmt.setInt(2, age);
int ret=stmt.executeUpdate();
return ret;
} catch (SQLException e) {
e.printStackTrace();
System.out.println("==================");
}finally {
DsUtil.free(conn, stmt);
}
return 0;
}
}
| [
"2785764902@qq.com"
] | 2785764902@qq.com |
3e867cae517af5f0b76e6a35d0b9d65eaf2e61c1 | 79a68dbd94ff1261c778f65b9e4c9ce55920ed36 | /teach_materials/src/com/zs/weixin/mp/util/json/WxMpMassOpenIdsMessageGsonAdapter.java | a1b1510c45c02f86b512be07cef446a9f1e97504 | [] | no_license | Allen5413/tm | e6ca0f6c509fb163e391265c65094ab6fdcbb663 | 595d44ccc787588f0995d5769908e12c3c6b387f | refs/heads/master | 2021-01-23T09:33:16.232580 | 2019-11-26T13:50:25 | 2019-11-26T13:50:25 | 34,732,908 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,278 | java | /*
* KINGSTAR MEDIA SOLUTIONS Co.,LTD. Copyright c 2005-2013. All rights reserved.
*
* This source code is the property of KINGSTAR MEDIA SOLUTIONS LTD. It is intended
* only for the use of KINGSTAR MEDIA application development. Reengineering, reproduction
* arose from modification of the original source, or other redistribution of this source
* is not permitted without written permission of the KINGSTAR MEDIA SOLUTIONS LTD.
*/
package com.zs.weixin.mp.util.json;
import com.google.gson.*;
import com.zs.weixin.common.api.WxConsts;
import com.zs.weixin.mp.bean.WxMpMassOpenIdsMessage;
import java.lang.reflect.Type;
public class WxMpMassOpenIdsMessageGsonAdapter implements JsonSerializer<WxMpMassOpenIdsMessage> {
public JsonElement serialize(WxMpMassOpenIdsMessage message, Type typeOfSrc, JsonSerializationContext context) {
JsonObject messageJson = new JsonObject();
JsonArray toUsers = new JsonArray();
for (String openId : message.getToUsers()) {
toUsers.add(new JsonPrimitive(openId));
}
messageJson.add("touser", toUsers);
if (WxConsts.MASS_MSG_NEWS.equals(message.getMsgType())) {
JsonObject sub = new JsonObject();
sub.addProperty("media_id", message.getMediaId());
messageJson.add(WxConsts.MASS_MSG_NEWS, sub);
}
if (WxConsts.MASS_MSG_TEXT.equals(message.getMsgType())) {
JsonObject sub = new JsonObject();
sub.addProperty("content", message.getContent());
messageJson.add(WxConsts.MASS_MSG_TEXT, sub);
}
if (WxConsts.MASS_MSG_VOICE.equals(message.getMsgType())) {
JsonObject sub = new JsonObject();
sub.addProperty("media_id", message.getMediaId());
messageJson.add(WxConsts.MASS_MSG_VOICE, sub);
}
if (WxConsts.MASS_MSG_IMAGE.equals(message.getMsgType())) {
JsonObject sub = new JsonObject();
sub.addProperty("media_id", message.getMediaId());
messageJson.add(WxConsts.MASS_MSG_IMAGE, sub);
}
if (WxConsts.MASS_MSG_VIDEO.equals(message.getMsgType())) {
JsonObject sub = new JsonObject();
sub.addProperty("media_id", message.getMediaId());
messageJson.add(WxConsts.MASS_MSG_VIDEO, sub);
}
messageJson.addProperty("msgtype", message.getMsgType());
return messageJson;
}
}
| [
"2319772333@qq.com"
] | 2319772333@qq.com |
321e75971c139ff7364c6be8f4e7d0b669a4231e | 3656c2a13620ccf1cfbb52af35e979fa9bf094ad | /src/de/floriware/chatsimple/client/ConnectionListener.java | 6cc9cd2e1048f4fda180eeaeddfca70d9d78de65 | [] | no_license | iKoze/ChatSimpleAPI-Java | a0d743322a9d3507ec036e32f0dfeaac21185dfd | 3daab5d45242b4035a882677955247cdbe4d6e18 | refs/heads/master | 2016-09-05T21:39:13.520234 | 2013-07-14T20:49:30 | 2013-07-14T20:49:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,408 | java | package de.floriware.chatsimple.client;
import java.io.*;
import java.net.SocketException;
import de.floriware.chatsimple.ServerInfo;
import de.floriware.chatsimple.databundles.DataBundle;
public class ConnectionListener extends Thread
{
protected ServerInfo server;
protected BufferedReader reader;
protected IConnectionHandler handler;
protected BundleQueue queue;
protected boolean run = false;
public ConnectionListener(ServerInfo server, BufferedReader reader, IConnectionHandler handler)
{
this.server = server;
this.reader = reader;
this.handler = handler;
}
public BundleQueue getQueue()
{
if(queue == null)
{
queue = new BundleQueue();
}
return queue;
}
public void disable()
{
reader = null;
run = false;
}
public void run()
{
run = true;
String response;
while(run)
{
try
{
while((response = reader.readLine()) != null)
{
DataBundle incomingdata = new DataBundle();
incomingdata.delimiter = server.delimiter;
incomingdata.setData(response);
if(queue != null)
{
queue.addDataBundle(incomingdata);
}
handler.incomingData(incomingdata);
}
}
catch(SocketException e)
{
run = false;
}
catch(IOException e)
{
run = false;
}
catch(Exception e)
{
handler.handleException(e);
}
if(run == false)
{
handler.gotDisconnected();
}
}
}
}
| [
"florian@floriware.de"
] | florian@floriware.de |
014a427cc6a49670824a98c243ebdd7aa03e267d | 23458bdfb7393433203985569e68bc1935a022d6 | /ONEOrder/Java SDK/oo-jaxb/ServiceDeliveryRS/target/generated-sources/xjc/org/iata/oo/schema/ServiceDeliveryRS/RedempUnitListType.java | 31915cf1e92f35baba5261b3a52d9c6344cb06a2 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | joelmorales/NDC | 7c6baa333c0285b724e6356bd7ae808f1f74e7ec | ebddd30369ec74e078a2c9996da0402f9ac448a1 | refs/heads/master | 2021-06-30T02:49:12.522375 | 2019-06-13T14:55:05 | 2019-06-13T14:55:05 | 171,594,242 | 1 | 0 | null | 2020-10-13T12:03:33 | 2019-02-20T03:29:16 | Java | UTF-8 | Java | false | false | 1,301 | java |
package org.iata.oo.schema.ServiceDeliveryRS;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for RedempUnitListType.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="RedempUnitListType">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Miles"/>
* <enumeration value="Points"/>
* <enumeration value="Other"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "RedempUnitListType")
@XmlEnum
public enum RedempUnitListType {
@XmlEnumValue("Miles")
MILES("Miles"),
@XmlEnumValue("Points")
POINTS("Points"),
@XmlEnumValue("Other")
OTHER("Other");
private final String value;
RedempUnitListType(String v) {
value = v;
}
public String value() {
return value;
}
public static RedempUnitListType fromValue(String v) {
for (RedempUnitListType c: RedempUnitListType.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
| [
"joel.moralesmorales@hotmail.com"
] | joel.moralesmorales@hotmail.com |
a84d04d829f255c247b24c46615e501513029e13 | 443c32589606f590e095293445491e0aaf110945 | /blog_article/src/test/java/org/blog/article/AddressUtils.java | dcf54acd8cc95eecd9f6f07b82d168175dd3d73f | [] | no_license | renxinlin/openRenxl3 | 8815b1eaaae9fd70f56f7fd56ab66c662bbec426 | bf132232756a8da7251bcd86ecdce7633b2c9f6e | refs/heads/master | 2022-06-21T11:54:47.931270 | 2019-06-17T03:32:15 | 2019-06-17T03:32:15 | 166,528,782 | 0 | 0 | null | 2022-06-21T00:55:22 | 2019-01-19T09:20:12 | Java | UTF-8 | Java | false | false | 9,083 | java | package org.blog.article;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.URL;
/**
*/
public class AddressUtils {
public static void main(String[] args) throws UnsupportedEncodingException {
AddressUtils util = new AddressUtils();
String ip = "117.136.8.70";
// String ip = "114.95.125.255";
String address = util.getAddresses("ip="+ip, "utf-8");
System.out.println(address);
}
/** 3 * @param content
* 请求的参数 格式为:name=xxx&pwd=xxx
* @param encoding
* 服务器端请求编码。如GBK,UTF-8等
* @return
* @throws UnsupportedEncodingException
*/
public String getAddresses(String content, String encodingString) throws UnsupportedEncodingException {
// 这里调用pconline的接口
String urlStr = "http://ip.taobao.com/service/getIpInfo.php";
// 从http://whois.pconline.com.cn取得IP所在的省市区信息
String returnStr = this.getResult(urlStr, content, encodingString);
System.out.println("json===>"+returnStr);
if (returnStr != null) {
// 处理返回的省市区信息
System.out.println("IP====="+returnStr);
String[] temp = returnStr.split(",");
if(temp.length<3){
return "0"; //无效IP,局域网测试
}
String region = (temp[5].split(":"))[1].replaceAll("\"", "");
region = decodeUnicode(region); // 省
System.out.println("region = "+region);
String country = "";
String area = "";
// String region = "";
String city = "";
String county = "";
String isp = "";
System.out.println("temp的长度="+temp.length);
for (int i = 0; i < temp.length; i++) {
switch (i) {
// 如果使用的是新浪的接口,那这里的需要修改,case:3 4 5分别对应国家,省市区
case 1:
country = (temp[i].split(":"))[2].replaceAll("\"", "");
country = decodeUnicode(country); // 国家
break;
case 3:
area = (temp[i].split(":"))[1].replaceAll("\"", "");
area = decodeUnicode(area); // 地区
break;
case 5:
region = (temp[i].split(":"))[1].replaceAll("\"", "");
region = decodeUnicode(region); // 省份
break;
case 7:
city = (temp[i].split(":"))[1].replaceAll("\"", "");
city = decodeUnicode(city); // 市区
break;
case 9:
county = (temp[i].split(":"))[1].replaceAll("\"", "");
county = decodeUnicode(county); // 地区
break;
case 11:
isp = (temp[i].split(":"))[1].replaceAll("\"", "");
isp = decodeUnicode(isp); // ISP公司
break;
}
}
System.out.println(country+"="+area+"="+region+"="+city+"="+county+"="+isp);
return region;
}
return null;
}
/**
* @param urlStr
* 请求的地址
* @param content
* 请求的参数 格式为:name=xxx&pwd=xxx
* @param encoding
* 服务器端请求编码。如GBK,UTF-8等
* @return
*/
private String getResult(String urlStr, String content, String encoding) {
URL url = null;
HttpURLConnection connection = null;
try {
url = new URL(urlStr);
connection = (HttpURLConnection) url.openConnection(); // 新建连接实例
connection.setConnectTimeout(2000); // 设置连接超时时间,单位毫秒
connection.setReadTimeout(2000); // 设置读取数据超时时间,单位毫秒
connection.setDoOutput(true); // 是否打开输出流 true|false
connection.setDoInput(true); // 是否打开输入流true|false
connection.setRequestMethod("POST"); // 提交方法POST|GET
connection.setUseCaches(false); // 是否缓存true|false
connection.connect(); // 打开连接端口
DataOutputStream out = new DataOutputStream(connection.getOutputStream());// 打开输出流往对端服务器写数据
out.writeBytes(content); // 写数据,也就是提交你的表单 name=xxx&pwd=xxx
out.flush(); // 刷新
out.close(); // 关闭输出流
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream(), encoding));// 往对端写完数据对端服务器返回数据 ,以BufferedReader流来读取
StringBuffer buffer = new StringBuffer();
String line = "";
while ((line = reader.readLine()) != null) {
buffer.append(line);
}
reader.close();
return buffer.toString();
} catch (IOException e) {
e.printStackTrace();
} finally {
if (connection != null) {
connection.disconnect(); // 关闭连接
}
}
return null;
}
/**
* unicode 转换成 中文
*
* @author fanhui 2007-3-15
* @param theString
* @return
*/
public static String decodeUnicode(String theString) {
char aChar;
int len = theString.length();
StringBuffer outBuffer = new StringBuffer(len);
for (int x = 0; x < len;) {
aChar = theString.charAt(x++);
if (aChar == '\\') {
aChar = theString.charAt(x++);
if (aChar == 'u') {
int value = 0;
for (int i = 0; i < 4; i++) {
aChar = theString.charAt(x++);
switch (aChar) {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
value = (value << 4) + aChar - '0';
break;
case 'a':
case 'b':
case 'c':
case 'd':
case 'e':
case 'f':
value = (value << 4) + 10 + aChar - 'a';
break;
case 'A':
case 'B':
case 'C':
case 'D':
case 'E':
case 'F':
value = (value << 4) + 10 + aChar - 'A';
break;
default:
throw new IllegalArgumentException(
"Malformed encoding.");
}
}
outBuffer.append((char) value);
} else {
if (aChar == 't') {
aChar = '\t';
} else if (aChar == 'r') {
aChar = '\r';
} else if (aChar == 'n') {
aChar = '\n';
} else if (aChar == 'f') {
aChar = '\f';
}
outBuffer.append(aChar);
}
} else {
outBuffer.append(aChar);
}
}
return outBuffer.toString();
}
}
| [
"2284057845@qq.com"
] | 2284057845@qq.com |
4f96a12ca90913e7e03cc88d1d26ad8d3aac44e2 | 0a90673b40546cecd3f843c7258edbd7f1e31df1 | /src/UtilityMethods.java | e5090349417768abb40ec6957a1d387a334579d5 | [] | no_license | jamie00170/RandomProjectAllocation | 9b1ea917cdf4610dad1519316e5810b86870df4f | de6accbb24d7a8708b3132831eeb6ac828159494 | refs/heads/master | 2021-01-10T10:35:32.667615 | 2016-03-28T09:59:47 | 2016-03-28T09:59:47 | 43,079,398 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,942 | java | import com.google.common.collect.ImmutableList;
import org.apache.commons.math3.fraction.Fraction;
import org.apache.commons.math3.fraction.FractionConversionException;
import java.math.BigDecimal;
import java.util.*;
/**
* Created by Jamie on 09/03/2016.
*/
public class UtilityMethods {
public void incrementValue(String[][] matrix, String student, String project, Fraction calculated_value){
int i = 0;
int j;
int[] coordinates = new int[2];
while( i < matrix.length){
j = 0;
while (j < matrix[i].length){
// only have to search first column and row
if(matrix[i][j].equals(student))
coordinates[0] = i;
if(matrix[i][j].equals(project))
coordinates[1] = j;
j++;
}
i++;
}
Fraction current_value = stringToFraction(matrix[coordinates[0]][coordinates[1]]);
Fraction new_value = current_value.add(calculated_value);
matrix[coordinates[0]][coordinates[1]] = new_value.toString();
}
public void incrementValueProject(String[][] matrix, String project, String student, Fraction calculated_value){
int i = 0;
int j;
int[] coordinates = new int[2];
while( i < matrix.length){
j = 0;
while (j < matrix[i].length){
// only have to search first column and row
if(matrix[i][j].equals(student))
coordinates[0] = i;
if(matrix[i][j].equals(project))
coordinates[1] = j;
j++;
}
i++;
}
Fraction current_value = stringToFraction(matrix[coordinates[0]][coordinates[1]]);
Fraction new_value = current_value.add(calculated_value);
matrix[coordinates[0]][coordinates[1]] = new_value.toString();
}
public int factorial(int n) {
int fact = 1; // this will be the result
for (int i = 1; i <= n; i++) {
fact *= i;
}
return fact;
}
public ArrayList<String> generateprojects(int num_of_projects) {
ArrayList<String> project_list = new ArrayList<>();
int i = 1;
while (i <= num_of_projects) {
project_list.add("Project" + i);
i++;
}
return project_list;
}
public HashMap<String, ArrayList<String>> generateStudents(int num_of_students, ArrayList<String> project_list, int size_of_preference_list) {
HashMap<String, ArrayList<String>> student_preferences = new HashMap<>();
int j = 1;
while (j <= num_of_students) {
Collections.shuffle(project_list);
student_preferences.put("Student" + j, new ArrayList<>(project_list.subList(0, size_of_preference_list)));
j++;
}
return student_preferences;
}
public Fraction stringToFraction(String fraction_string){
Fraction f;
fraction_string = fraction_string.replaceAll("\\s","");
String[] data = fraction_string.split("/");
//System.out.println("string split:" + Arrays.toString(data));
if (data.length > 1) {
Double numerator = Double.parseDouble(data[0]);
Double denominator = Double.parseDouble(data[1]);
Double fraction_value = numerator / denominator;
try {
f = new Fraction(fraction_value);
return f;
} catch (FractionConversionException e) {
e.printStackTrace();
}
}else{
Double fraction_value = Double.parseDouble(data[0]);
try {
double epsilon;
epsilon = 5 * (Math.pow(10.0, -17.0));
f = new Fraction(fraction_value, epsilon, 20);
return f;
} catch (FractionConversionException e) {
e.printStackTrace();
}
}
System.out.println("FRACTION NOT TRANSFORMED TO STRING");
return new Fraction(0);
}
public HashMap<String, Fraction> getCurrentProjects(HashMap<String, ArrayList<String>> student_preferences, HashMap<String, Fraction> current_projects){
// reset current projects
for(String project : current_projects.keySet()){
current_projects.put(project, current_projects.get(project).subtract(current_projects.get(project)));
}
for (String student : student_preferences.keySet()){
// Get the students preferences
ArrayList<String> preferences = student_preferences.get(student);
if (!preferences.isEmpty()) {
System.out.println(student + " " + preferences.get(0));
current_projects.put(preferences.get(0), current_projects.get(preferences.get(0)).add(new Fraction(1)));
}
}
return current_projects;
}
public boolean check_sizes(Map<String, Fraction> resource_allocation){
Collection<Fraction> scores = resource_allocation.values();
int num_of_projects_used = 0;
for (Fraction score : scores){
if (score.equals(new Fraction(1)))
num_of_projects_used++;
}
return (num_of_projects_used == scores.size()) || resource_allocation.isEmpty();
}
public void removeMatched(Map<String, ArrayList<String>> student_preferences, Map<String, Fraction> project_allocation, Map<String, Fraction> student_allocation){
ArrayList<String> items_to_remove = new ArrayList<>();
for (String name : student_preferences.keySet()) {
// Get students list of ranked choices
ArrayList<String> preferences = student_preferences.get(name);
// Loop through their choices
for (String project : preferences) {
// If the choice has been fully matched remove it from the preferences list
if (project_allocation.get(project).equals(new Fraction(1))) {
// remove project from preferences list
//System.out.println("Removing " + project);
items_to_remove.add(project);
}
}
preferences.removeAll(items_to_remove);
}
ArrayList<String> student_list = new ArrayList<>();
for (String name : student_preferences.keySet()) {
student_list.add(name);
}
ArrayList<String> names_to_remove = new ArrayList<>();
for (String name : student_list) {
if (student_preferences.get(name).isEmpty()){
names_to_remove.add(name);
}
if (student_allocation.get(name).equals(new Fraction(1))) {
student_preferences.remove(name);
}
}
for (String name : names_to_remove){
student_preferences.remove(name);
}
}
public int[] getCoordinates(String[][] matrix, String student, String project){
int i = 0;
int j;
int[] coordinates = new int[2];
while( i < matrix.length){
j = 0;
while (j < matrix[i].length){
// only have to search first column and row
if(matrix[i][j].equals(student))
coordinates[0] = i;
if(matrix[i][j].equals(project))
coordinates[1] = j;
j++;
}
i++;
}
return coordinates;
}
public String[][] setUpMatrix(Set<String> student_list, ArrayList<String> project_list ){
// Set up
// Create matrix
String[][] matrix = new String[(student_list.size() + 1)][(project_list.size() + 1)];
matrix[0][0] = "-";
int i = 1;
for (String student : student_list) {
matrix[i][0] = student;
i++;
}
int j = 1;
for (String project : project_list){
matrix[0][j] = project;
j++;
}
i = 1;
while( i < matrix.length){
j = 1;
while (j < matrix[i].length){
matrix[i][j] = "0";
j++;
}
i++;
}
return matrix;
}
public String[][] divideMatrixByFactorial(String[][] matrix, int factorial){
int p = 1;
while( p < matrix.length){
int f = 1;
while (f < matrix[p].length){
try {
Double double_value = Double.parseDouble(matrix[p][f]);
Fraction fraction = new Fraction(double_value / factorial);
matrix[p][f] = fraction.toString();
} catch (NumberFormatException e){
e.printStackTrace();
}catch (FractionConversionException e){
e.printStackTrace();
}
f++;
}
p++;
}
return matrix;
}
public Collection<ImmutableList<String>> generatePermutations(ArrayList<String> student_list, int num_permutations){
HashSet<ImmutableList<String>> permutations = new HashSet<>();
//ImmutableList<String> im_student_list = ImmutableList.copyOf(student_list);
int counter = 0;
while (counter < num_permutations){
Collections.shuffle(student_list);
ArrayList<String> shuffeled_student_list;
shuffeled_student_list = (ArrayList<String>) student_list.clone();
ImmutableList<String> im_shuffeled_student_list = ImmutableList.copyOf(shuffeled_student_list);
if(permutations.add(im_shuffeled_student_list)){ // if the shuffled version didn't already exist in the set
counter++;
}
}
return permutations;
}
}
| [
"jamiedd13@aol.com"
] | jamiedd13@aol.com |
dbbe958466577df9dd98ca9ccc9e137375dd46df | a585293c5fe9802a09e2a40dca52d2ed6dc2488c | /projects/SimpleJavaProject/src/threads/DeadLock.java | 4fce7f1b37e563e33e4a596f7c775e96c4ea0bbc | [] | no_license | sukeshrs/eclipse-projects | 192c8cefda1c125bfca54accc585840f08393fff | 3632bcf20820ef81be62c82da5e0172edb669586 | refs/heads/master | 2021-01-21T16:48:18.602525 | 2017-07-18T04:25:40 | 2017-07-18T04:25:40 | 91,908,458 | 0 | 0 | null | 2017-07-18T04:25:41 | 2017-05-20T18:26:53 | Java | UTF-8 | Java | false | false | 819 | java | package threads;
public class DeadLock {
public static void main(String[] args) throws InterruptedException {
Object obj1 = new Object();
Object obj2 = new Object();
Object obj3 = new Object();
Thread thread1 = new Thread(new SynchroThread( obj1, obj2),"Thread111");
Thread thread2 = new Thread(new SynchroThread( obj2, obj3),"Thread222");
Thread thread3 = new Thread(new SynchroThread( obj3, obj1),"Thread333");
SynchroThread synchroThread = new SynchroThread( obj1, obj2);
synchroThread.run();
synchroThread.run();
synchroThread.run();
thread1.start();
Thread.sleep(3000);
thread2.start();
Thread.sleep(3000);
thread3.start();
}
}
| [
"sukeshrs@gmail.com"
] | sukeshrs@gmail.com |
913db1b8fadd4098df075c20576ede9d3dcdeea8 | 2226dcfb500bcef30ba84b70ab65abcb3380ca52 | /src/main/java/com/vladaver87/eventsgenerator/controller/EventController.java | bde2806eab4e7d6f9712dcc9ba5964f017d8bd81 | [] | no_license | VladAver87/events_generator | cb9401b0955f78711a53b90c84438e89761dbaa2 | 1fb242a6577fa2e76e1c2851e8f0831b1eacd6c6 | refs/heads/master | 2020-05-23T23:01:33.862436 | 2019-05-31T10:13:18 | 2019-05-31T10:13:18 | 186,985,369 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,275 | java | package com.vladaver87.eventsgenerator.controller;
import java.util.List;
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 com.vladaver87.eventsgenerator.generator.EventGenerator;
import com.vladaver87.eventsgenerator.generator.EventJoiner;
import com.vladaver87.eventsgenerator.model.Event;
import com.vladaver87.eventsgenerator.model.EventAttributes;
import com.vladaver87.eventsgenerator.model.OriginationChannel;
import com.vladaver87.eventsgenerator.model.OriginationPage;
import com.vladaver87.eventsgenerator.model.ServiceType;
import com.vladaver87.eventsgenerator.storage.EventsStorage;
@Controller
public class EventController {
@Autowired
private EventGenerator eventGenerator;
@Autowired
private EventsStorage eventsStorage;
@Autowired
private EventJoiner eventJoiner;
private EventAttributes eventAttributes = new EventAttributes();
@GetMapping("/events")
public String listEvents(Model model) {
List<Event> events = eventsStorage.getEvents();
model.addAttribute("events", events);
return "listEvents";
}
@GetMapping("/showFormForCreateEvent")
public String showFormForCreateEvent(Model model) {
ServiceType[] serviceType = ServiceType.values();
OriginationPage[] originationPage = OriginationPage.values();
OriginationChannel[] originationChannel = OriginationChannel.values();
model.addAttribute("serviceType", serviceType);
model.addAttribute("originationPage", originationPage);
model.addAttribute("originationChannel", originationChannel);
model.addAttribute("eventAttributes", eventAttributes);
return "create-event-form";
}
@PostMapping("/saveEvent")
public String saveEvent(@ModelAttribute("eventAttributes") EventAttributes eventAttributes) {
Event event = eventGenerator.createEvent(eventAttributes.getServiceType(), eventAttributes.getOriginationPage(),
eventAttributes.getOriginationChannel());
eventsStorage.saveEvent(event);
eventJoiner.joining(event);
return "redirect:/events";
}
}
| [
"Averianov87@gmail.com"
] | Averianov87@gmail.com |
95f1c8790b5c1ddbc714c2c2324fa0e88220bd38 | f86938ea6307bf6d1d89a07b5b5f9e360673d9b8 | /CodeComment_Data/Code_Jam/train/Counting_Sheep/S/Pb1.java | 146145b864c92f06acaa1ad6cf4e254c9b8f9d1a | [] | no_license | yxh-y/code_comment_generation | 8367b355195a8828a27aac92b3c738564587d36f | 2c7bec36dd0c397eb51ee5bd77c94fa9689575fa | refs/heads/master | 2021-09-28T18:52:40.660282 | 2018-11-19T14:54:56 | 2018-11-19T14:54:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,380 | java | package methodEmbedding.Counting_Sheep.S.LYD1167;
import java.util.*;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.BufferedWriter;
import java.io.FileWriter;
public class Pb1{
public static void main(String []args) throws FileNotFoundException, IOException {
Scanner scan = new Scanner(new File("in.txt"));
int t = scan.nextInt();
BufferedWriter writer = new BufferedWriter(new FileWriter(new File("out.txt")));
for(int j = 0; j < t; j++) {
int copy, n = scan.nextInt();
if(n == 0) {
writer.write("Case #" + (j + 1) + ": INSOMNIA\n");
continue;
}
HashSet<Integer> digits = new HashSet<Integer>();
int counter = 0;
int aux = n;
while(counter < 10) {
copy = aux;
while(copy != 0) {
if(!digits.contains(copy % 10)){
counter ++;
digits.add(copy % 10);
}
copy /= 10;
}
if(counter < 10)
aux += n;
}
writer.write("Case #" + (j + 1) + ": " + aux + "\n");
}
writer.close();
}
}
| [
"liangyuding@sjtu.edu.cn"
] | liangyuding@sjtu.edu.cn |
083a4199e5682d5546d5a7dd78b74e310c2b3b70 | 6188ba648c82a559191f6dcf9317bb9486918534 | /src/javatools/database/PostgresDatabase.java | cdcbafa00369fd7014e1b78d594f695a76049683 | [] | no_license | AKSW/SINA-QueryExpansion | d01d1bdb2be573bcc4eedab33d6cfd6e11a0d03b | b0cd9c30e60c983ddc101e8c460e10f8f77a99c1 | refs/heads/master | 2021-01-01T06:49:58.429578 | 2013-04-26T14:33:26 | 2013-04-26T14:33:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,295 | java | package javatools.database;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import javatools.administrative.D;
/**
This class is part of the Java Tools (see http://mpii.de/yago-naga/javatools).
It is licensed under the Creative Commons Attribution License
(see http://creativecommons.org/licenses/by/3.0) by
the YAGO-NAGA team (see http://mpii.de/yago-naga).
The class PostgresDatabase implements the Database-interface for a
PostgreSQL data base. Make sure that the file "postgresql-<I>version</I>.jdbc3.jar" of the
Postgres distribution is in the classpath. When using Eclipse, add
the file via Project ->Properties ->JavaBuildPath ->Libraries
->ExternalJARFile.<BR>
Example:
<PRE>
Database d=new PostgresDatabase("user","password");
d.queryColumn("SELECT foodname FROM food WHERE origin=\"Italy\"")
-> [ "Pizza Romana", "Spaghetti alla Bolognese", "Saltimbocca"]
Database.describe(d.query("SELECT * FROM food WHERE origin=\"Italy\"")
-> foodname |origin |calories |
------------------------------
Pizza Rom|Italy |10000 |
Spaghetti|Italy |8000 |
Saltimboc|Italy |8000 |
</PRE>
This class also provides SQL datatypes (extensions of SQLType.java) that
behave according to the conventions of Postgres. For example, VARCHAR string literals print
inner quotes as doublequotes.*/
public class PostgresDatabase extends Database {
/** Holds the default schema*/
protected String schema=null;
/** Constructs a non-functional OracleDatabase for use of getSQLType*/
public PostgresDatabase() {
java2SQL.put(String.class,varchar);
type2SQL.put(Types.VARCHAR,varchar);
}
/** Constructs a new Database from a user, a password and a host
* @throws ClassNotFoundException
* @throws IllegalAccessException
* @throws InstantiationException
* @throws SQLException */
public PostgresDatabase(String user, String password, String database, String host, String port) throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException {
this();
if(password==null) password="";
if(host==null) host="localhost";
if(port==null) port="5432";
Driver driver= (Driver)Class.forName("org.postgresql.Driver").newInstance();
DriverManager.registerDriver( driver );
connection = DriverManager.getConnection(
"jdbc:postgresql://"+host+":"+port+(database==null?"":"/"+database),
user,
password
);
connection.setAutoCommit( true );
description="Postgres database for "+user+" at "+host+":"+port+", database "+database+" schema "+schema;
}
/** Constructs a new Database from a user, a password and a host*/
public PostgresDatabase(String user, String password, String database, String host, String port,String schema) throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException {
this(user,password,database,host,port);
setSchema(schema);
}
/** Sets the default schema*/
public void setSchema(String s) throws SQLException {
executeUpdate("SET search_path TO "+s+", public");
schema=s;
description=description.substring(0,description.lastIndexOf(' '))+" "+schema;
}
public static class Varchar extends SQLType.ANSIvarchar {
public Varchar(int size) {
super(size);
}
public Varchar() {
super();
}
public String toString() {
return("VARCHAR("+scale+")");
}
public String format(Object o) {
String s=o.toString().replace("'", "''").replace("\\", "\\\\");
if(s.length()>scale) s=s.substring(0,scale);
return("'"+s+"'");
}
}
public static Varchar varchar=new Varchar();
/** */
public static void main(String[] args) throws Exception {
Database d=new PostgresDatabase("postgres","postgres","postgres",null,null);
//d.executeUpdate("CREATE table test (a integer, b varchar)");
d.executeUpdate("INSERT into test values (1,2)");
ResultSet s=d.query("select * from test");
s.next();
D.p(s.getString(1));
}
}
| [
"saeedeh@saeedeh-Vaio.(none)"
] | saeedeh@saeedeh-Vaio.(none) |
31911e4927fd52d80d50a3087faea048ec2aff8c | 9e5a41aed24e898649d14548f126e5d5079ffe04 | /src/main/java/com/csi/controller/qiantai/UserOrderController.java | 52c06842af0ad1c7745c0b47892a2c3516425ad7 | [] | no_license | yrj1998/Studying | 6d1960f8577c188c8912ae9dbba563af7dc8d090 | 68e18fa7ff3612f7913c51dc98fa7a4ea509f124 | refs/heads/master | 2022-12-24T14:02:54.867490 | 2019-07-04T06:42:19 | 2019-07-04T06:42:19 | 195,178,587 | 9 | 2 | null | 2022-12-16T11:34:37 | 2019-07-04T06:04:47 | Java | UTF-8 | Java | false | false | 1,455 | java | package com.csi.controller.qiantai;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import com.csi.model.Msg;
import com.csi.model.Od;
import com.csi.model.Ordero;
import com.csi.service.OdService;
import com.csi.service.OrderService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
@Controller
public class UserOrderController {
@Autowired
private OrderService orderService;
@Autowired
private OdService odService;
@RequestMapping(value="getMyOrderList.do")
@ResponseBody
public Msg getMyOrderList(@RequestParam(value = "pn", defaultValue = "1")Integer pn,@RequestParam("userid")Integer userid){
PageHelper.startPage(pn,5);
List<Ordero> list=orderService.getAll(userid);
PageInfo page=new PageInfo(list,5);
return Msg.success().add("pageInfo", page);
}
@RequestMapping(value="orderup.do")
@ResponseBody
public Msg orders_handle(Ordero ordero){
orderService.orders_handle(ordero);
return Msg.success();
}
@RequestMapping(value="orders_info.do")
@ResponseBody
public Msg orders_info(@RequestParam("oid")Integer oid){
List<Od> list=odService.selectbyoid(oid);
return Msg.success().add("odlist", list);
}
}
| [
"50574605+yrj1998@users.noreply.github.com"
] | 50574605+yrj1998@users.noreply.github.com |
ec05a9dac0f7e584a993b57560fcb7bb71f49e64 | e3e76e63b517517ebf6c3c5c3912505b97ce6bb6 | /Fast&SlowPointers/PC2-RearrangeList.java | ffd6e6b18e77b5d8d8b0add77589ab0488c7357a | [] | no_license | anuragparla/grokking-the-coding-interview | 1d23bc923449073a22bb5fcd214c97e472f82833 | f14b2f1e71e97244aa789fc761ed794caba15faa | refs/heads/master | 2023-01-10T08:06:38.376864 | 2020-11-18T02:31:15 | 2020-11-18T02:31:15 | 366,029,667 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,679 | java |
class ListNode {
int value = 0;
ListNode next;
ListNode(int value) {
this.value = value;
}
}
class RearrangeList {
public static void reorder(ListNode head) {
// TODO: Write your code here
ListNode fast = head, slow = head;
int len = 0;
while (fast != null && fast.next != null) {
len += 2;
fast = fast.next.next;
slow = slow.next;
}
if (fast == null) len--;
ListNode copy = head;
ListNode reverseHalf = reverse(slow);
int count = 0;
while (count < len/2) {
count++;
ListNode temp = head.next;
head.next = reverseHalf;
reverseHalf = reverseHalf.next;
head = head.next;
head.next = temp;
head = head.next;
}
head = copy;
return;
}
private static ListNode reverse(ListNode head) {
ListNode prev = null;
ListNode curr = head;
while (curr != null) {
ListNode next = curr.next;
curr.next = prev;
prev = curr;
curr = next;
}
return prev;
}
public static void main(String[] args) {
ListNode head = new ListNode(2);
head.next = new ListNode(4);
head.next.next = new ListNode(6);
head.next.next.next = new ListNode(8);
head.next.next.next.next = new ListNode(10);
head.next.next.next.next.next = new ListNode(12);
RearrangeList.reorder(head);
while (head != null) {
System.out.print(head.value + " ");
head = head.next;
}
}
} | [
"450801626@qq.com"
] | 450801626@qq.com |
5c3c67022cda41771d7af16869e15712a1cb07a1 | a839f832044d4da6d840bedce4b3509ecd02fc03 | /src/boletin18/Correo.java | 5adbd9ed6db323ecdc10dbb91c028a7f02884136 | [] | no_license | JesusQuesada/Programacion-Boletin18 | 1159c737a9f410b6f754da456452eab2ec7b7512 | 3039d77cc77bafc4a982d91402e6dbed1d08ab59 | refs/heads/master | 2021-01-13T11:31:50.343731 | 2017-02-07T09:08:27 | 2017-02-07T09:08:27 | 81,188,681 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 867 | java |
package boletin18;
public class Correo {
private String email;
private boolean leido;
private String contenido;
public Correo() {
}
public Correo(String email, boolean leido) {
this.email = email;
this.leido = leido;
this.contenido = contenido;
}
public String getEmail() {
return email;
}
public boolean isLeido() {
return leido;
}
public String getContenido() {
return contenido;
}
public void setEmail(String email) {
this.email = email;
}
public void setLeido(boolean leido) {
this.leido = leido;
}
public void setContenido(String contenido) {
this.contenido = contenido;
}
@Override
public String toString() {
return "Correo{" + "email=" + email + ", leido=" + leido + '}';
}
}
| [
"jquesadaabeijon@victoria32.danielcastelao.org"
] | jquesadaabeijon@victoria32.danielcastelao.org |
bc248220d9cdb7fb95e522401701eeb14c0c35e9 | 4fb75c8a9dd18964e956993cce4dfd671e30dd85 | /src/test/java/WebTestCases/TC_008_PolicyMaintenance.java | c1cf9b099108369dd57b5a23cc4a68540005873b | [] | no_license | adminenhops/enhopswrightflood | 9569fa876950968b247de0be72c3103afd4a3399 | 6514d19eef96f9f9f4efed861a9b00915452a55b | refs/heads/main | 2023-03-08T11:58:57.897640 | 2021-02-24T14:50:37 | 2021-02-24T14:50:37 | 341,934,873 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,157 | java | package WebTestCases;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
import TestNGListeners.SuiteEvent;
import TestNGListeners.WebEvent;
import Utilities.ConfigReader;
import WebPages.FloodQuote;
import WebPages.PolicyMaintenance;
@Listeners({ SuiteEvent.class, WebEvent.class })
public class TC_008_PolicyMaintenance {
/**
* =============================================================================
* Method: TC_008_policyMaintenance | Author: Samadrita Guha | Date:5 Oct 2020 |
* Description: Policy maintenance process | Parameters: None |
* Return: None
* =============================================================================
*
* @throws Exception
*/
@Test(description = "Policy maintenance", groups = { "smoke", "regression",
"Web Application" })
public void TC_008_policyMaintenance() throws Exception {
FloodQuote floodQuote = new FloodQuote();
PolicyMaintenance policyMaintenance = new PolicyMaintenance();
floodQuote.wrightlogin(ConfigReader.getValue("adminUserName"), ConfigReader.getValue("adminPassWord"));
policyMaintenance.PolicyMaintenanceProcess();
}
}
| [
"gonelasunilkumar@gmail.com"
] | gonelasunilkumar@gmail.com |
51284b90355bdcc59005ed0666c1e7b825eaed54 | e76fdd86de3b790a0d2eb9bf4155e7ed2bd87c0f | /src/main/java/xyz/camiloarguello/Dao/Pastrie/PastrieRepositoryCustom.java | 46f7843564f08d79eaa2aa0d2ffc57a559b1d544 | [] | no_license | kmiloarguello/Boulangerie-back | 3233a54430ec49578d21ede01d1c74f8053d8787 | 92151af4bd2be3b83c21031fb3f8bfe11b47b033 | refs/heads/master | 2022-07-07T19:54:43.598745 | 2020-02-12T17:11:58 | 2020-02-12T17:11:58 | 238,553,862 | 0 | 0 | null | 2022-06-25T07:29:55 | 2020-02-05T21:38:40 | Java | UTF-8 | Java | false | false | 410 | java | package xyz.camiloarguello.Dao.Pastrie;
import org.springframework.data.mongodb.repository.Query;
import xyz.camiloarguello.Entity.Pastrie;
import java.util.Collection;
public interface PastrieRepositoryCustom {
// Define the custom function to get data from MongoDB
Collection<Pastrie> findByType(String type);
// @Query("{''}")
// Collection<Pastrie> findByPriceLowerThan(int price);
}
| [
"camiloandres.arguellorincon@cencosud.com.co"
] | camiloandres.arguellorincon@cencosud.com.co |
2d45df9c5b882b01a9c315977327d539be709642 | 28552d7aeffe70c38960738da05ebea4a0ddff0c | /google-ads/src/main/java/com/google/ads/googleads/v3/services/AdGroupCriterionLabelServiceSettings.java | db1c46bd4c2c2d117d96a3f6d0d295c171f1129c | [
"Apache-2.0"
] | permissive | PierrickVoulet/google-ads-java | 6f84a3c542133b892832be8e3520fb26bfdde364 | f0a9017f184cad6a979c3048397a944849228277 | refs/heads/master | 2021-08-22T08:13:52.146440 | 2020-12-09T17:10:48 | 2020-12-09T17:10:48 | 250,642,529 | 0 | 0 | Apache-2.0 | 2020-03-27T20:41:26 | 2020-03-27T20:41:25 | null | UTF-8 | Java | false | false | 8,439 | java | /*
* Copyright 2020 Google LLC
*
* 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
*
* https://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.google.ads.googleads.v3.services;
import com.google.ads.googleads.v3.resources.AdGroupCriterionLabel;
import com.google.ads.googleads.v3.services.stub.AdGroupCriterionLabelServiceStubSettings;
import com.google.api.core.ApiFunction;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
import com.google.api.gax.rpc.ApiClientHeaderProvider;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import java.io.IOException;
import java.util.List;
import javax.annotation.Generated;
// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
* Settings class to configure an instance of {@link AdGroupCriterionLabelServiceClient}.
*
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (googleads.googleapis.com) and default port (443) are used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
* build() is called, the tree of builders is called to create the complete settings object.
*
* <p>For example, to set the total timeout of getAdGroupCriterionLabel to 30 seconds:
*
* <pre>
* <code>
* AdGroupCriterionLabelServiceSettings.Builder adGroupCriterionLabelServiceSettingsBuilder =
* AdGroupCriterionLabelServiceSettings.newBuilder();
* adGroupCriterionLabelServiceSettingsBuilder
* .getAdGroupCriterionLabelSettings()
* .setRetrySettings(
* adGroupCriterionLabelServiceSettingsBuilder.getAdGroupCriterionLabelSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* AdGroupCriterionLabelServiceSettings adGroupCriterionLabelServiceSettings = adGroupCriterionLabelServiceSettingsBuilder.build();
* </code>
* </pre>
*/
@Generated("by gapic-generator")
@BetaApi
public class AdGroupCriterionLabelServiceSettings
extends ClientSettings<AdGroupCriterionLabelServiceSettings> {
/** Returns the object with the settings used for calls to getAdGroupCriterionLabel. */
public UnaryCallSettings<GetAdGroupCriterionLabelRequest, AdGroupCriterionLabel>
getAdGroupCriterionLabelSettings() {
return ((AdGroupCriterionLabelServiceStubSettings) getStubSettings())
.getAdGroupCriterionLabelSettings();
}
/** Returns the object with the settings used for calls to mutateAdGroupCriterionLabels. */
public UnaryCallSettings<
MutateAdGroupCriterionLabelsRequest, MutateAdGroupCriterionLabelsResponse>
mutateAdGroupCriterionLabelsSettings() {
return ((AdGroupCriterionLabelServiceStubSettings) getStubSettings())
.mutateAdGroupCriterionLabelsSettings();
}
public static final AdGroupCriterionLabelServiceSettings create(
AdGroupCriterionLabelServiceStubSettings stub) throws IOException {
return new AdGroupCriterionLabelServiceSettings.Builder(stub.toBuilder()).build();
}
/** Returns a builder for the default ExecutorProvider for this service. */
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
return AdGroupCriterionLabelServiceStubSettings.defaultExecutorProviderBuilder();
}
/** Returns the default service endpoint. */
public static String getDefaultEndpoint() {
return AdGroupCriterionLabelServiceStubSettings.getDefaultEndpoint();
}
/** Returns the default service scopes. */
public static List<String> getDefaultServiceScopes() {
return AdGroupCriterionLabelServiceStubSettings.getDefaultServiceScopes();
}
/** Returns a builder for the default credentials for this service. */
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
return AdGroupCriterionLabelServiceStubSettings.defaultCredentialsProviderBuilder();
}
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
return AdGroupCriterionLabelServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
public static TransportChannelProvider defaultTransportChannelProvider() {
return AdGroupCriterionLabelServiceStubSettings.defaultTransportChannelProvider();
}
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
return AdGroupCriterionLabelServiceStubSettings.defaultApiClientHeaderProviderBuilder();
}
/** Returns a new builder for this class. */
public static Builder newBuilder() {
return Builder.createDefault();
}
/** Returns a new builder for this class. */
public static Builder newBuilder(ClientContext clientContext) {
return new Builder(clientContext);
}
/** Returns a builder containing all the values of this settings class. */
public Builder toBuilder() {
return new Builder(this);
}
protected AdGroupCriterionLabelServiceSettings(Builder settingsBuilder) throws IOException {
super(settingsBuilder);
}
/** Builder for AdGroupCriterionLabelServiceSettings. */
public static class Builder
extends ClientSettings.Builder<AdGroupCriterionLabelServiceSettings, Builder> {
protected Builder() throws IOException {
this((ClientContext) null);
}
protected Builder(ClientContext clientContext) {
super(AdGroupCriterionLabelServiceStubSettings.newBuilder(clientContext));
}
private static Builder createDefault() {
return new Builder(AdGroupCriterionLabelServiceStubSettings.newBuilder());
}
protected Builder(AdGroupCriterionLabelServiceSettings settings) {
super(settings.getStubSettings().toBuilder());
}
protected Builder(AdGroupCriterionLabelServiceStubSettings.Builder stubSettings) {
super(stubSettings);
}
public AdGroupCriterionLabelServiceStubSettings.Builder getStubSettingsBuilder() {
return ((AdGroupCriterionLabelServiceStubSettings.Builder) getStubSettings());
}
// NEXT_MAJOR_VER: remove 'throws Exception'
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
}
/** Returns the builder for the settings used for calls to getAdGroupCriterionLabel. */
public UnaryCallSettings.Builder<GetAdGroupCriterionLabelRequest, AdGroupCriterionLabel>
getAdGroupCriterionLabelSettings() {
return getStubSettingsBuilder().getAdGroupCriterionLabelSettings();
}
/** Returns the builder for the settings used for calls to mutateAdGroupCriterionLabels. */
public UnaryCallSettings.Builder<
MutateAdGroupCriterionLabelsRequest, MutateAdGroupCriterionLabelsResponse>
mutateAdGroupCriterionLabelsSettings() {
return getStubSettingsBuilder().mutateAdGroupCriterionLabelsSettings();
}
@Override
public AdGroupCriterionLabelServiceSettings build() throws IOException {
return new AdGroupCriterionLabelServiceSettings(this);
}
}
}
| [
"noreply@github.com"
] | noreply@github.com |
8d4c34ce3aba14e1c07c74436bed01063ab61d6d | 3426ae8ec2f80375bac6ef4cc8f2d77f50d09d68 | /src/methodClass/ImageProfileClass.java | b05a6c90855155096398215253725f1f78c4e96f | [] | no_license | chosenegbe/school-management-system | 3bcf5dd9ebcdaa4766575cdd27bbfff6b7abbebe | ea102169d3a183aa5a65c6a24370e1fc4a9e5cbe | refs/heads/master | 2022-02-05T05:43:02.218951 | 2019-05-06T13:13:07 | 2019-05-06T13:13:07 | 153,107,638 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,966 | 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 methodClass;
import connection.DBConnection;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.sql.Blob;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.swing.JOptionPane;
public class ImageProfileClass {
Connection conn = null;
PreparedStatement pst = null;
ResultSet rs = null;
public void ImageProfileClass(){
conn = DBConnection.connectDB();
}
public Boolean add(File img, FileInputStream fis){
String sql = "INSERT INTO imagetest VALUES(?)";
try{
pst = conn.prepareStatement(sql);
pst.setBinaryStream(1, fis,(int)img.length());
pst.execute();
return true;
}catch(Exception e){
return false;
}
}
public String retrieve(){
FileOutputStream fos = null;
String sql = "SELECT * FROM imagetest";
try {
pst = conn.prepareStatement(sql);
rs = pst.executeQuery();
rs.last();
Blob b = rs.getBlob("image");
String id = rs.getString("id");
//write file to our machine
fos = new FileOutputStream("C:\\Users\\michel\\Documents\\NetBeansProjects\\SchoolManagementSystem\\Image\\"+id+".jpg");
int len = (int)b.length();
byte[] buf = b.getBytes(1, len);
fos.write(buf,0,len);
return id;
} catch (Exception ex) {
JOptionPane.showMessageDialog(null,ex);
return "-1";
}
}
}
| [
"milkymike45@gmail.com"
] | milkymike45@gmail.com |
d42b806d8299f8f5551e73a06e90c98f0c490745 | a0e2410aa5560a5ef1ff49202310ea15ab2a6328 | /src/main/java/DBAccess/Connector.java | df63f04fa68ad220b978c36018c388c20d693867 | [] | no_license | Jack-Borg/Lego-House | ff35ba4fa62a8f93ff145ae6db3152884869f949 | f0defa2627a642a2ee7e5ee7a9cf0139cde373cb | refs/heads/master | 2020-03-06T23:07:51.244473 | 2018-03-28T13:28:43 | 2018-03-28T13:28:43 | 127,124,482 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 828 | java | package DBAccess;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
/**
The purpose of Connector is to...
@author kasper
*/
public class Connector {
private static final String URL = "jdbc:mysql://207.154.214.18:3306/LegoHouse";
private static final String USERNAME = "legohouse";
private static final String PASSWORD = "legohouse";
private static Connection singleton;
public static void setConnection( Connection con ) {
singleton = con;
}
public static Connection connection() throws ClassNotFoundException, SQLException {
if ( singleton == null ) {
Class.forName( "com.mysql.cj.jdbc.Driver" );
singleton = DriverManager.getConnection( URL, USERNAME, PASSWORD );
}
return singleton;
}
}
| [
"GAIMZ@192.168.1.10"
] | GAIMZ@192.168.1.10 |
d39161ece0d429024ba6365bb953cd90414d3189 | adbeb276799b6466db88424c08d8b3a420f3f996 | /app/src/main/java/com/example/enzo/bluetooth/DeviceListActivity.java | 3366224c390c669b8622d7ba580c9ca625b7b074 | [] | no_license | zeng-yh/Bluetooth | 27fb256508c564b4069c0ec8e6d7fad45fb8e8c5 | 1e15d862307ac66eab7c8570c2a3d77d0f278db0 | refs/heads/master | 2021-06-23T04:32:44.494837 | 2017-08-29T15:01:07 | 2017-08-29T15:01:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,932 | java | package com.example.enzo.bluetooth;
import android.annotation.SuppressLint;
import android.bluetooth.BluetoothDevice;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import com.example.enzo.bluetooth.Bluetooth.BluetoothService.BluetoothFoundBroadcastReceiver;
import java.util.ArrayList;
public class DeviceListActivity extends BluetoothBaseActivity {
private Button btn_show_paired, btn_scan;
private RecyclerView device_list;
private BluetoothDeviceListAdapter mDeviceListAdapter;
private ArrayList<BluetoothDevice> mBluetoothDevices = new ArrayList<>();
private BluetoothFoundBroadcastReceiver mBluetoothFoundBroadcastReceiver = new BluetoothFoundBroadcastReceiver() {
@Override
protected void onBluetoothDeviceFound(BluetoothDevice device) {
showToastInCenter("Device found " + device.getName());
onAddBluetoothDevice(device);
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_device_list);
// register bluetooth broadcast receiver
IntentFilter filter = new IntentFilter(BluetoothDevice.ACTION_FOUND);
registerReceiver(mBluetoothFoundBroadcastReceiver, filter);
btn_show_paired = findViewById(R.id.btn_show_paired);
btn_scan = findViewById(R.id.btn_scan);
device_list = findViewById(R.id.device_list);
btn_show_paired.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
for (BluetoothDevice device : getBondedBluetoothDevices())
onAddBluetoothDevice(device);
showToastInCenter("Paired devices added.");
}
});
btn_scan.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
discoveryBluetoothDevices();
}
});
mDeviceListAdapter = new BluetoothDeviceListAdapter();
device_list.setAdapter(mDeviceListAdapter);
device_list.setLayoutManager(new LinearLayoutManager(mContext));
}
protected void onAddBluetoothDevice(BluetoothDevice device) {
if (!mBluetoothDevices.contains(device)) {
mBluetoothDevices.add(device);
mDeviceListAdapter.notifyItemInserted(mBluetoothDevices.size() - 1);
}
}
@Override
protected void onDestroy() {
super.onDestroy();
unregisterReceiver(mBluetoothFoundBroadcastReceiver);
}
private class BluetoothDeviceViewHolder extends RecyclerView.ViewHolder {
public TextView textView;
public BluetoothDeviceViewHolder(View itemView) {
super(itemView);
textView = (TextView) itemView;
textView.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
if (isBluetoothEnabled()) {
BluetoothDevice selectedDevice = mBluetoothDevices.get(getAdapterPosition());
Intent intent = new Intent(DeviceListActivity.this, ChatActivity.class);
intent.putExtra(ChatActivity.EXTRA_LAUNCH_MODE, ChatActivity.CLIENT_MODE);
intent.putExtra(ChatActivity.EXTRA_BLUETOOTH_DEVICE, selectedDevice);
startActivity(intent);
} else {
requestEnableBluetooth();
showToastInCenter("Please enable bluetooth and retry");
}
}
});
}
}
private class BluetoothDeviceListAdapter extends RecyclerView.Adapter<BluetoothDeviceViewHolder> {
@Override
public BluetoothDeviceViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInflater.from(mContext).inflate(R.layout.item_bluetooth_device, parent, false);
return new BluetoothDeviceViewHolder(view);
}
@SuppressLint("SetTextI18n")
@Override
public void onBindViewHolder(BluetoothDeviceViewHolder holder, int position) {
String deviceName = mBluetoothDevices.get(position).getName();
String macAddress = mBluetoothDevices.get(position).getAddress();
holder.textView.setText(deviceName + "\n" + macAddress);
}
@Override
public int getItemCount() {
return mBluetoothDevices.size();
}
}
}
| [
"enzo.zyh@gmail.com"
] | enzo.zyh@gmail.com |
3b951968b6ad8883a49a4ba61ccee7e56f9599ac | 5c2aca25b700bc6be51e6a5b807c88a8111ce33d | /hedera-node/src/test/java/com/hedera/services/store/schedule/ContentAddressableScheduleTest.java | bd894402351f8b27181c19df534fc2207ebebcf4 | [
"Apache-2.0"
] | permissive | Frank2333333/hedera-services | a541cebe6fa53cdfd65d02590118c3c692bd6e32 | 9b16ea233810ba588fca69c72efcb49a66e5c4eb | refs/heads/master | 2023-03-16T13:30:14.806907 | 2021-03-12T20:04:10 | 2021-03-12T20:04:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,772 | java | package com.hedera.services.store.schedule;
/*
*
* Hedera Services Node
*
* Copyright (C) 2018 - 2021 Hedera Hashgraph, LLC
*
* 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.
*
*/
import com.google.protobuf.ByteString;
import com.hedera.services.state.merkle.MerkleSchedule;
import com.hedera.services.state.submerkle.EntityId;
import com.hedera.services.state.submerkle.RichInstant;
import com.hedera.test.utils.IdUtils;
import com.hedera.test.utils.TxnUtils;
import com.hederahashgraph.api.proto.java.Key;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.time.Instant;
import java.util.Arrays;
import static com.hedera.services.state.submerkle.EntityId.ofNullableAccountId;
import static com.hedera.services.store.schedule.ContentAddressableSchedule.fromMerkleSchedule;
import static com.hedera.test.factories.scenarios.TxnHandlingScenario.MISC_ACCOUNT_KT;
import static com.hedera.test.factories.scenarios.TxnHandlingScenario.SCHEDULE_ADMIN_KT;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertSame;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class ContentAddressableScheduleTest {
byte[] txn = TxnUtils.randomUtf8Bytes(100);
byte[] diffTxn = TxnUtils.randomUtf8Bytes(100);
int transactionBodyHashCode;
Key adminKey = SCHEDULE_ADMIN_KT.asKey();
Key diffAdminKey = MISC_ACCOUNT_KT.asKey();
EntityId payerId = ofNullableAccountId(IdUtils.asAccount("1.2.456"));
EntityId diffPayerId = ofNullableAccountId(IdUtils.asAccount("1.2.654"));
String entityMemo = "Some memo here";
String diffEntityMemo = "Some other memo here";
ContentAddressableSchedule subject;
@BeforeEach
public void setup() {
transactionBodyHashCode = Arrays.hashCode(txn);
subject = new ContentAddressableSchedule(adminKey, entityMemo, payerId, txn);
}
@Test
public void objectContractMet() {
// setup:
var subjectExceptKey =
new ContentAddressableSchedule(diffAdminKey, entityMemo, payerId, txn);
var subjectExceptMemo =
new ContentAddressableSchedule(adminKey, diffEntityMemo, payerId, txn);
var subjectExceptPayer =
new ContentAddressableSchedule(adminKey, entityMemo, diffPayerId, txn);
var subjectExceptTxn =
new ContentAddressableSchedule(adminKey, entityMemo, payerId, diffTxn);
// and:
var identicalSubject =
new ContentAddressableSchedule(adminKey, entityMemo, payerId, txn);
assertEquals(subject, subject);
assertEquals(subject, identicalSubject);
assertNotEquals(subject, new Object());
assertNotEquals(subject, subjectExceptKey);
assertNotEquals(subject, subjectExceptMemo);
assertNotEquals(subject, subjectExceptPayer);
assertNotEquals(subject, subjectExceptTxn);
// and:
assertNotEquals(subject.hashCode(), subjectExceptKey.hashCode());
assertNotEquals(subject.hashCode(), subjectExceptMemo.hashCode());
assertNotEquals(subject.hashCode(), subjectExceptPayer.hashCode());
assertNotEquals(subject.hashCode(), subjectExceptTxn.hashCode());
}
@Test
public void factoryWorksWithJustTxn() {
// setup:
MerkleSchedule schedule = new MerkleSchedule(txn, payerId, RichInstant.fromJava(Instant.now()));
schedule.setPayer(payerId);
// given:
subject = fromMerkleSchedule(schedule);
// expect:
assertSame(ContentAddressableSchedule.UNUSED_KEY, subject.adminKey);
assertSame(ContentAddressableSchedule.EMPTY_MEMO, subject.entityMemo);
assertEquals(ByteString.copyFrom(txn), subject.transactionBytes);
assertEquals(payerId, subject.payer);
}
@Test
public void factoryWorksWithGivenMemoAndAdminKey() {
// setup:
MerkleSchedule schedule = new MerkleSchedule(txn, payerId, RichInstant.fromJava(Instant.now()));
schedule.setPayer(payerId);
schedule.setMemo(entityMemo);
schedule.setAdminKey(SCHEDULE_ADMIN_KT.asJKeyUnchecked());
// given:
subject = fromMerkleSchedule(schedule);
// expect:
assertSame(entityMemo, subject.entityMemo);
assertEquals(ByteString.copyFrom(txn), subject.transactionBytes);
assertEquals(payerId, subject.payer);
assertEquals(adminKey, subject.adminKey);
}
}
| [
"michael.tinker@hedera.com"
] | michael.tinker@hedera.com |
fef433057589f950ee42029a4bcc1a413a4f8c3e | 363c936f4a89b7d3f5f4fb588e8ca20c527f6022 | /AL-Game/data/scripts/system/handlers/quest/pandaemonium/_4210MissingHaorunerk.java | 0f601dd9d3435296c61957a43892b12cf99a8408 | [] | no_license | G-Robson26/AionServer-4.9F | d628ccb4307aa0589a70b293b311422019088858 | 3376c78b8d90bd4d859a7cfc25c5edc775e51cbf | refs/heads/master | 2023-09-04T00:46:47.954822 | 2017-08-09T13:23:03 | 2017-08-09T13:23:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,801 | java | /**
* This file is part of Aion-Lightning <aion-lightning.org>.
*
* Aion-Lightning is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Aion-Lightning is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License
* along with Aion-Lightning.
* If not, see <http://www.gnu.org/licenses/>.
*/
package quest.pandaemonium;
import com.aionemu.gameserver.model.gameobjects.player.Player;
import com.aionemu.gameserver.questEngine.handlers.QuestHandler;
import com.aionemu.gameserver.model.DialogAction;
import com.aionemu.gameserver.questEngine.model.QuestEnv;
import com.aionemu.gameserver.questEngine.model.QuestState;
import com.aionemu.gameserver.questEngine.model.QuestStatus;
/**
* @author Cheatkiller
*/
public class _4210MissingHaorunerk extends QuestHandler {
private final static int questId = 4210;
public _4210MissingHaorunerk() {
super(questId);
}
@Override
public void register() {
qe.registerQuestNpc(204283).addOnQuestStart(questId);
qe.registerQuestNpc(798331).addOnTalkEvent(questId);
qe.registerQuestNpc(798332).addOnTalkEvent(questId);
qe.registerQuestNpc(215056).addOnKillEvent(questId);
qe.registerQuestNpc(215080).addOnKillEvent(questId);
}
@Override
public boolean onDialogEvent(QuestEnv env) {
Player player = env.getPlayer();
QuestState qs = player.getQuestStateList().getQuestState(questId);
DialogAction dialog = env.getDialog();
int targetId = env.getTargetId();
if (qs == null || qs.getStatus() == QuestStatus.NONE) {
if (targetId == 204283) {
if (dialog == DialogAction.QUEST_SELECT) {
return sendQuestDialog(env, 4762);
} else {
return sendQuestStartDialog(env);
}
}
} else if (qs.getStatus() == QuestStatus.START) {
if (targetId == 798332) {
if (dialog == DialogAction.QUEST_SELECT) {
if (qs.getQuestVarById(0) == 0) {
return sendQuestDialog(env, 1011);
}
} else if (dialog == DialogAction.SETPRO1) {
return defaultCloseDialog(env, 0, 1);
}
} else if (targetId == 798331) {
if (dialog == DialogAction.USE_OBJECT) {
if (qs.getQuestVarById(1) == 1 && qs.getQuestVarById(2) == 1) {
return sendQuestDialog(env, 10002);
}
} else if (dialog == DialogAction.SELECT_QUEST_REWARD) {
return defaultCloseDialog(env, 1, 1, true, true);
}
}
} else if (qs.getStatus() == QuestStatus.REWARD) {
if (targetId == 798331) {
if (dialog == DialogAction.USE_OBJECT) {
return sendQuestDialog(env, 10002);
}
return sendQuestEndDialog(env);
}
}
return false;
}
@Override
public boolean onKillEvent(QuestEnv env) {
if (defaultOnKillEvent(env, 215056, 0, 1, 1) || defaultOnKillEvent(env, 215080, 0, 1, 2)) {
return true;
}
return false;
}
}
| [
"falke34@a70f7278-c47d-401d-a0e4-c9401b7f63ed"
] | falke34@a70f7278-c47d-401d-a0e4-c9401b7f63ed |
d386ff47f3be7251d4fefeed112377aed27c8fcf | 897e8643518c774396d9ee5f256b5217ff4896c8 | /src/main/java/com/contrastsecurity/tools/forensics/mysql/FileFinder.java | d4155c0744873ce7ea0356aa7b3e027bfcf965c1 | [] | no_license | Contrast-Security-OSS/mysql-forensics-tool | 0127ea0f0be1182c5077842219fc90ca6aa36b52 | 86bac7ef1241ec4fd77bc438ee80e470e49b7329 | refs/heads/master | 2021-01-19T19:11:42.139833 | 2017-05-12T19:08:58 | 2017-05-12T19:08:58 | 86,000,568 | 4 | 1 | null | 2017-05-12T19:08:59 | 2017-03-23T21:45:19 | PLpgSQL | UTF-8 | Java | false | false | 1,010 | java | package com.contrastsecurity.tools.forensics.mysql;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.stream.Stream;
public class FileFinder {
public static String fileFind(String path, String filename) {
String matchingFile = null;
Stream<Path> files;
try {
files = Files.find(Paths.get(path), Integer.MAX_VALUE, (filePath, fileAttr) -> fileAttr.isRegularFile())
.filter(n -> !n.toString().contains("conf_bk")).filter(n -> !n.toString().contains("tomcat"))
.filter(n -> n.toString().contains(filename));
for (Path s : (Iterable<Path>) () -> files.iterator()) {
if (s.toString().contains(filename) && s.toString().endsWith("properties"))
matchingFile = s.toString();
}
} catch (IOException e) {
e.printStackTrace();
}
return matchingFile;
}
}
| [
"max.gelman@contrastsecurity.com"
] | max.gelman@contrastsecurity.com |
4fb05c6c11ecaa157aebad41df806ade259c4eeb | 04bd5fa9b122ae4279ad4278671d5058f2da221d | /src/main/java/com/eric/graphql/Application.java | 9db9378556d6c882c8cd0d092270badc782ef965 | [] | no_license | EricHo0129/SpringGraphql | b8b29a6670811c866909cd5740f387d0f8ebdd97 | 026e7a4579e80ebe435e63358954cd7d9cd2362f | refs/heads/master | 2020-03-30T00:13:48.579557 | 2018-10-01T01:05:36 | 2018-10-01T01:05:36 | 150,511,644 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 308 | java | package com.eric.graphql;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
| [
"yung.ho@104.com.tw"
] | yung.ho@104.com.tw |
34d8cd933effb053e2a5e9f0a469d23b8a2920fe | cc8da71ebe56ba95b02ac2343e30ab29ffdcdf2c | /src/POM/Loginpage.java | 86f6808ca9b910749e55a5b60597f1c66148cf42 | [] | no_license | kishorebqsp/Appiumshopping | 5b3f1c46ba891f7d0c30ff82f04425cf3d0ac7c6 | 5cc1047e92785d634aec58d85afe2999fac4aa9f | refs/heads/master | 2020-03-26T18:42:47.659512 | 2018-08-18T14:27:44 | 2018-08-18T14:27:44 | 145,226,424 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 773 | java | package POM;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class Loginpage {
@FindBy(linkText="Sign in")
private WebElement sign;
@FindBy(id="email")
private WebElement email;
@FindBy(id="passwd")
private WebElement pass;
@FindBy(id="SubmitLogin")
private WebElement signin;
public Loginpage(WebDriver driver)
{
PageFactory.initElements(driver,this);
}
public void signINButton()
{
sign.click();
}
public void emailAdddress(String emailadd) {
email.sendKeys(emailadd);
}
public void passwordtb(String password)
{
pass.sendKeys(password);
}
public void loginbtn()
{
signin.click();
}
}
| [
"kishoreqsp009@gmail.com"
] | kishoreqsp009@gmail.com |
b3a1322eb7f2f9b008163c4e4aa91e9d96a1eba5 | 6602732129e480cb9f6212bf3af7ee8f6c2783ea | /max_encrypt/src/main/java/com/laozhang/max_encrypt/MaxEncryptApplication.java | d98cbd591739c4355395be6b6d3cb85b4e2d1b8d | [] | no_license | zhangchengfu/max | 1ac734b3e715ffd0cc9c5295ed1a958b7b7a70bb | 69ee67079074ffb9bd2123df7547dbdd655fdac1 | refs/heads/master | 2022-12-26T10:40:09.924103 | 2021-09-27T02:11:06 | 2021-09-27T02:11:06 | 144,720,989 | 0 | 0 | null | 2022-12-16T04:28:10 | 2018-08-14T13:02:40 | JavaScript | UTF-8 | Java | false | false | 337 | java | package com.laozhang.max_encrypt;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class MaxEncryptApplication {
public static void main(String[] args) {
SpringApplication.run(MaxEncryptApplication.class, args);
}
}
| [
"compowerxp@163.com"
] | compowerxp@163.com |
1dea2f6f12964d9d23c2095cb7ded59160c63f76 | 7ab6e1390fddcedef72ee55e8f9f85baf57992b4 | /src/main/java/com/caiodev/FreightCalculation/service/FreightService.java | e97c3257dcb2922be893669427174fe01d07b9f4 | [] | no_license | ccaiomacedo/Api-Rest-Freight-Calculation | 2b5a6ea533328b8ba72d4b99038406a8ef6e16c5 | e7cad02b42084ea55668dcabcd4971593e266618 | refs/heads/master | 2023-08-20T12:28:39.053675 | 2021-10-06T15:59:24 | 2021-10-06T15:59:24 | 412,309,575 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,146 | java | package com.caiodev.FreightCalculation.service;
import com.caiodev.FreightCalculation.domain.Freight;
import com.caiodev.FreightCalculation.dto.FreightRequestDTO;
import com.caiodev.FreightCalculation.dto.FreightResponseDTO;
import com.caiodev.FreightCalculation.dto.ViaCepDTO;
import com.caiodev.FreightCalculation.exceptions.FreightNotFoundException;
import com.caiodev.FreightCalculation.repository.FreightRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.time.LocalDateTime;
import java.util.List;
import java.util.stream.Collectors;
@Service
public class FreightService {
public final Double VALOR_PARA_CADA_KG=1.00;
public final Double VALOR_PARA_ACHAR_EM_KG= 1000.0;
public final Double DESCONTO_DDD_IGUAL=0.5;
public final Double DESCONTO_UF_IGUAL=0.75;
@Autowired
private FreightRepository freightRepository;
@Transactional
public FreightResponseDTO insert(FreightRequestDTO freightRequestDTO) throws Exception{
Freight freight = new Freight();
freight = freightDtoToFreight(freight,freightRequestDTO);
freightRepository.save(freight);
return new FreightResponseDTO(freight);
}
@Transactional
public List<FreightResponseDTO> findByName(String nomeDestinatario){
List<Freight> result = freightRepository.findByNomeDestinatarioIgnoreCase(nomeDestinatario);
if(result.isEmpty()){
throw new FreightNotFoundException("Nome não encontrado!");
}
result.forEach(x -> x.setDataConsulta(LocalDateTime.now()));
return result.stream().map(x -> new FreightResponseDTO(x)).collect(Collectors.toList());
}
@Transactional
public List<FreightResponseDTO> findByCep(String cepOrigem,String cepDestino){
List<Freight> result = freightRepository.findByCep(cepOrigem,cepDestino);
if(result.isEmpty()){
throw new FreightNotFoundException("Cep não encontrado!");
}
result.forEach(x -> x.setDataConsulta(LocalDateTime.now()));
return result.stream().map(x -> new FreightResponseDTO(x)).collect(Collectors.toList());
}
@Autowired
private ViaCepService viaCepService;
private Freight freightDtoToFreight(Freight freight, FreightRequestDTO freightRequestDTO){
Double valorFrete=0.0;
Double valorAux = 0.0;
freight.setPeso(freightRequestDTO.getPeso());
freight.setNomeDestinatario(freightRequestDTO.getNomeDestinatario());
freight.setCepOrigem(freightRequestDTO.getCepOrigem());
ViaCepDTO viaCepOrigem = viaCepService.findCep(freight.getCepOrigem());
String dddOrigem = viaCepOrigem.getDdd();
String ufOrigem = viaCepOrigem.getUf();
freight.setCepDestino(freightRequestDTO.getCepDestino());
ViaCepDTO viaCepDestino = viaCepService.findCep(freight.getCepDestino());
String dddDestino = viaCepDestino.getDdd();
String ufDestino = viaCepDestino.getUf();
if(dddOrigem.equals(dddDestino) && ufOrigem.equals(ufDestino)){
freight.setDataPrevistaEntrega(LocalDateTime.now().plusDays(1L));
valorAux =(freight.getPeso()/VALOR_PARA_ACHAR_EM_KG)*VALOR_PARA_CADA_KG;
valorFrete = valorAux-(valorAux *DESCONTO_DDD_IGUAL);
freight.setVlTotalFrete(valorFrete);
}
if(ufOrigem.equals(ufDestino) && !dddOrigem.equals(dddDestino)){
freight.setDataPrevistaEntrega(LocalDateTime.now().plusDays(3L));
valorAux = (freight.getPeso()/VALOR_PARA_ACHAR_EM_KG)*VALOR_PARA_CADA_KG;
valorFrete = valorAux - (valorAux*DESCONTO_UF_IGUAL);
freight.setVlTotalFrete(valorFrete);
}
if (!ufOrigem.equals(ufDestino)){
freight.setDataPrevistaEntrega(LocalDateTime.now().plusDays(10L));
valorAux= (freight.getPeso()/VALOR_PARA_ACHAR_EM_KG)*VALOR_PARA_CADA_KG;
freight.setVlTotalFrete(valorAux);
}
return freight;
}
}
| [
"caio.macedo@ucsal.edu.br"
] | caio.macedo@ucsal.edu.br |
916f9a6cd16b9b3a362892cdd9148d0bde79ba29 | c82097fd637a61d33829449b2ba2aaafd9996bf0 | /SmartSecurity/src/com/smartsecurity/controller/VisitorController.java | 307697902be2726e46bcba29a619d380aa842bc9 | [] | no_license | Amit26aug/SmartSecurity | 83428343af916e0a0d8316dd97587b9bdcb76477 | a9811ab9dfbc3db2047dd827d0d40cccbb678c29 | refs/heads/master | 2021-05-04T22:03:01.907258 | 2018-04-15T11:39:54 | 2018-04-15T11:39:54 | 119,995,966 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,488 | java | package com.smartsecurity.controller;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import com.smartsecurity.contract.SmartSecurityContract.VisitorEntry;
import com.smartsecurity.contract.SmartSecurityContract.StatesEntry;
import com.smartsecurity.contract.SmartSecurityContract.VisitEntry;
import com.smartsecurity.contract.SmartSecurityContract.CitiesEntry;
import com.smartsecurity.contract.SmartSecurityContract.DepartmentEntry;
import com.smartsecurity.model.Visitor;
public class VisitorController implements VisitorEntry, StatesEntry, CitiesEntry, VisitEntry, DepartmentEntry {
public static boolean addNewVisitor(Visitor v){
try {
Connection cn= DBHelper.getConnection();
String nonQuery= "INSERT INTO "+ VISITOR_TABLE_NAME+ "("+ COLUMN_VISITOR_EMPLOYEE_ID
+ ", "+ COLUMN_VISITOR_NAME+ ", "+ COLUMN_VISITOR_ADDRESS+ ", "+ COLUMN_VISITOR_CITY
+ ", "+ COLUMN_VISITOR_STATE+ ", "+ COLUMN_VISITOR_MOBILE+ ", "+ COLUMN_VISITOR_EMAIL_ID
+ ", "+ COLUMN_VISITOR_IDENTIFICATION_NO+ ", "+ COLUMN_VISITOR_IDENTIFICATION_TYPE
+ ", "+ COLUMN_VISITOR_PICTURE
+ ") VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
PreparedStatement preSmt= cn.prepareStatement(nonQuery);
preSmt.setString(1, v.getVisitorEmployeeId());
preSmt.setString(2, v.getVisitorName());
preSmt.setString(3, v.getVisitorAddress());
preSmt.setString(4, v.getVisitorCity());
preSmt.setString(5, v.getVisitorState());
preSmt.setString(6, v.getVisitorMobile());
preSmt.setString(7, v.getVisitorEmailId());
preSmt.setString(8, v.getVisitorIdentificationNo());
preSmt.setString(9, v.getVisitorIdentificationType());
preSmt.setString(10, v.getVisitorPicture());
System.out.println(preSmt);
boolean result= DBHelper.executeUpdateWithPreparedStatement(cn, preSmt);
return result;
} catch (Exception e) {
System.out.println("Exception in VisitorController.addNewVisitor(): "+ e);
}
return false;
}
public static ResultSet getAllVisitors(){
try {
Connection cn= DBHelper.getConnection();
String stateQuery= "SELECT S."+ COLUMN_STATE_NAME+ " FROM "+ STATES_TABLE_NAME+ " S WHERE A."
+ COLUMN_VISITOR_STATE+ "=S."+ COLUMN_STATE_ID;
String cityQuery= "SELECT C."+ COLUMN_CITY_NAME+ " FROM "+ CITIES_TABLE_NAME+ " C WHERE A."
+ COLUMN_VISITOR_CITY+ "=C."+ COLUMN_CITY_ID;
String query= "SELECT A."+ COLUMN_VISITOR_EMPLOYEE_ID+ ", A."+ COLUMN_VISITOR_ID+ ", A."+ COLUMN_VISITOR_NAME
+ ", A."+ COLUMN_VISITOR_ADDRESS+ ", ("+ cityQuery+ "), ("+ stateQuery+ "), A."+ COLUMN_VISITOR_MOBILE
+ ", A."+ COLUMN_VISITOR_EMAIL_ID+ ", A."+ COLUMN_VISITOR_IDENTIFICATION_NO
+ ", A."+ COLUMN_VISITOR_IDENTIFICATION_TYPE+ ", A."+ COLUMN_VISITOR_PICTURE
+ " FROM "+ VISITOR_TABLE_NAME+ " A";
System.out.println(query);
ResultSet rs= DBHelper.executeQuery(cn, query);
return rs;
} catch (Exception e) {
System.out.println("Exception in VisitorController.getAllVisitors(): "+ e);
}
return null;
}
public static Visitor getVisitorById(String vId){
try {
Connection cn= DBHelper.getConnection();
String stateQuery= "SELECT S."+ COLUMN_STATE_NAME+ " FROM "+ STATES_TABLE_NAME+ " S WHERE A."
+ COLUMN_VISITOR_STATE+ "=S."+ COLUMN_STATE_ID;
String cityQuery= "SELECT C."+ COLUMN_CITY_NAME+ " FROM "+ CITIES_TABLE_NAME+ " C WHERE A."
+ COLUMN_VISITOR_CITY+ "=C."+ COLUMN_CITY_ID;
String query= "SELECT A."+ COLUMN_VISITOR_EMPLOYEE_ID+ ", A."+ COLUMN_VISITOR_ID+ ", A."+ COLUMN_VISITOR_NAME
+ ", A."+ COLUMN_VISITOR_ADDRESS+ ", A."+ COLUMN_VISITOR_CITY+", ("+ cityQuery+ ")"
+ ", A."+ COLUMN_VISITOR_STATE+ ", ("+ stateQuery+ "), A."+ COLUMN_VISITOR_MOBILE
+ ", A."+ COLUMN_VISITOR_EMAIL_ID+ ", A."+ COLUMN_VISITOR_IDENTIFICATION_NO
+ ", A."+ COLUMN_VISITOR_IDENTIFICATION_TYPE+ ", A."+ COLUMN_VISITOR_PICTURE
+ " FROM "+ VISITOR_TABLE_NAME+ " A WHERE A."+ COLUMN_VISITOR_ID+ "= "+ vId;
System.out.println(query);
ResultSet rs= DBHelper.executeQuery(cn, query);
if(rs.next()){
Visitor v= new Visitor();
v.setVisitorEmployeeId(rs.getString(1));
v.setVisitorId(rs.getString(2));
v.setVisitorName(rs.getString(3));
v.setVisitorAddress(rs.getString(4));
v.setVisitorCity(rs.getString(5)+ ","+ rs.getString(6));
v.setVisitorState(rs.getString(7)+ ","+ rs.getString(8));
v.setVisitorMobile(rs.getString(9));
v.setVisitorEmailId(rs.getString(10));
v.setVisitorIdentificationNo(rs.getString(11));
v.setVisitorIdentificationType(rs.getString(12));
v.setVisitorPicture(rs.getString(13));
return v;
}
} catch (Exception e) {
System.out.println("Exception in VisitorController.getVisitorById(): "+ e);
}
return null;
}
public static boolean upadteVisitor(Visitor v){
try {
Connection cn= DBHelper.getConnection();
String nonQuery= "UPDATE "+ VISITOR_TABLE_NAME+ " SET "+ COLUMN_VISITOR_EMPLOYEE_ID
+ "= ?, "+ COLUMN_VISITOR_NAME+ "= ?, "+ COLUMN_VISITOR_ADDRESS+ "= ?, "+ COLUMN_VISITOR_CITY
+ "= ?, "+ COLUMN_VISITOR_STATE+ "= ?, "+ COLUMN_VISITOR_MOBILE+ "= ?, "+ COLUMN_VISITOR_EMAIL_ID
+ "= ?, "+ COLUMN_VISITOR_IDENTIFICATION_NO+ "= ?, "+ COLUMN_VISITOR_IDENTIFICATION_TYPE
+ "= ? WHERE "+ COLUMN_VISITOR_ID+ "= ?";
PreparedStatement preSmt= cn.prepareStatement(nonQuery);
preSmt.setString(1, v.getVisitorEmployeeId());
preSmt.setString(2, v.getVisitorName());
preSmt.setString(3, v.getVisitorAddress());
preSmt.setString(4, v.getVisitorCity());
preSmt.setString(5, v.getVisitorState());
preSmt.setString(6, v.getVisitorMobile());
preSmt.setString(7, v.getVisitorEmailId());
preSmt.setString(8, v.getVisitorIdentificationNo());
preSmt.setString(9, v.getVisitorIdentificationType());
preSmt.setString(10, v.getVisitorId());
System.out.println(preSmt);
boolean result= DBHelper.executeUpdateWithPreparedStatement(cn, preSmt);
return result;
} catch (Exception e) {
System.out.println("Exception in VisitorController.updateVisitor(): "+ e);
}
return false;
}
public static boolean updateVisitorPicture(Visitor v){
try {
Connection cn= DBHelper.getConnection();
String nonQuery= "UPDATE "+ VISITOR_TABLE_NAME+ " SET "+ COLUMN_VISITOR_PICTURE+ "= ?"
+" WHERE "+ COLUMN_VISITOR_ID+ "= ?";
PreparedStatement preSmt= cn.prepareStatement(nonQuery);
preSmt.setString(1, v.getVisitorPicture());
preSmt.setString(2, v.getVisitorId());
System.out.println(preSmt);
boolean result= DBHelper.executeUpdateWithPreparedStatement(cn, preSmt);
return result;
} catch (Exception e) {
System.out.println("Exception in VisitorController.updateVisitorPicture(): "+ e);
}
return false;
}
public static boolean deleteVisitor(String vId){
try {
Connection cn= DBHelper.getConnection();
String nonQuery= "DELETE FROM "+ VISITOR_TABLE_NAME+ " WHERE "+ COLUMN_VISITOR_ID+ "= "+ vId;
System.out.println(nonQuery);
boolean result= DBHelper.executeUpdate(cn, nonQuery);
return result;
} catch (Exception e) {
System.out.println("Exception in VisitorController.deleteVisitor(): "+ e);
}
return false;
}
public static ResultSet getVisitorsBetweenDates(String fdate, String tdate, String status, String search, String searchText) {
if(status.equals("0"))
status= "out";
else
status= "in";
if(search.equals("0"))
searchText= "";
else if(search.equals("1"))
searchText= " AND A."+ COLUMN_VISITOR_NAME+ " LIKE '%"+ searchText+ "%'";
else if(search.equals("2"))
searchText= " AND B."+ COLUMN_VISIT_DEPARTMENT_ID+ " LIKE '%"+ searchText+ "%'";
try {
Connection cn= DBHelper.getConnection();
// String deptQuery= "SELECT "+ COLUMN_DEP_NAME+ " FROM "+ DEP_TABLE_NAME+ " WHERE "+ COLUMN_DEP_ID
// + "= B."+ COLUMN_VISIT_DEPARTMENT_ID;
String query= "SELECT A."+ COLUMN_VISITOR_ID+ ", A."+ COLUMN_VISITOR_NAME+ ", A."+ COLUMN_VISITOR_MOBILE
+ ", A."+ COLUMN_VISITOR_PICTURE+ ", B."+ COLUMN_VISIT_RFID+ ", B."+ COLUMN_VISIT_DEPARTMENT_ID+ ", "
+ "B."+ COLUMN_VISIT_PURPOSE+ ", B."+ COLUMN_VISIT_DATE+ ", B."+ COLUMN_VISIT_CHECK_IN
+ ", B."+ COLUMN_VISIT_CHECK_OUT+ " FROM "+ VISITOR_TABLE_NAME+" A, "+ VISIT_TABLE_NAME+ " B"
+ " WHERE (B."+ COLUMN_VISIT_DATE+ " BETWEEN '"+ fdate+ "' AND '"+ tdate+ "') AND "
+ "B."+ COLUMN_VISIT_STATUS+ "='"+ status+ "' AND A."+ COLUMN_VISITOR_ID
+ "= B."+ COLUMN_VISIT_VISITOR_ID+ searchText;
System.out.println(query);
ResultSet rs= DBHelper.executeQuery(cn, query);
return rs;
} catch (Exception e) {
System.out.println("Exception in VisitorController.getVisitorsBetweenDates(): "+ e);
}
return null;
}
public static String getVisitorIdByMobile(String mobile) {
try {
Connection cn= DBHelper.getConnection();
String query= "SELECT "+ COLUMN_VISITOR_ID+ " FROM "+ VISITOR_TABLE_NAME+ " WHERE "+ COLUMN_VISITOR_MOBILE
+ "='"+ (mobile)+ "'";
System.out.println(query);
ResultSet rs= DBHelper.executeQuery(cn, query);
if(rs.next())
return rs.getString(1);
} catch (Exception e) {
System.out.println("Exception in getVisitorIdByMobile(): "+ e);
}
return null;
}
}
| [
"noreply@github.com"
] | noreply@github.com |
59cc5dd0f4ee07745bb1170ceffb284a7fa340e1 | 4cee4289ee95d8b8b2e8ed54c1a21c383057338e | /src/gui/view/RequestView.java | ea2a0718ac19bf5d29bc06fd12b5033540ee8c0d | [] | no_license | enokryeziu/supply-chain-management-software-java | eca4cc71818f3d847c6b4b699ce9e7e280fe48b7 | 435c58a371469608102b902f8611085b5e184b70 | refs/heads/master | 2022-11-21T21:36:38.151870 | 2020-07-17T19:52:10 | 2020-07-17T19:52:10 | 265,594,251 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,696 | 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 gui.view;
import BLL.Employees;
import BLL.Objects;
import BLL.Permission;
import BLL.Request;
import BLL.Title;
import BLL.Users;
import DAL.EmployeeInterface;
import DAL.EmployeeRepository;
import DAL.RequestInterface;
import DAL.RequestRepository;
import DAL.SCHMException;
import gui.model.RequestTableModel;
import java.awt.Point;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JDesktopPane;
import javax.swing.JOptionPane;
import javax.swing.ListSelectionModel;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
/**
*
* @author EN
*/
public class RequestView extends javax.swing.JInternalFrame {
/**
* Creates new form Request
*/
RequestInterface cir = new RequestRepository();
RequestTableModel ctm = new RequestTableModel();
EmployeeInterface eir = new EmployeeRepository();
private static Permission premission;
private static Objects object;
private static Title title;
private static Users users;
public RequestView(Permission prem,Objects obj,Title tit,Users u) {
premission = prem;
object = obj;
title = tit;
users = u;
initComponents();
if(object.getObjectID() == 1){
loadTable();
}else {
loadTable2();
}
tabelaSelectedIndexChange();
}
public void loadTable() {
try {
List<Request> list = cir.findAll();
ctm.add(list);
tabela.setModel(ctm);
ctm.fireTableDataChanged();
} catch (SCHMException e) {
JOptionPane.showMessageDialog(this, e.getMessage());
}
}
public void loadTable2() {
try {
List<Request> list = cir.findAll();
List<Request> list1= new ArrayList<>();
for(int i = 0; i < list.size(); i++){
if(list.get(i).getEmployeeID().getObjectID().equals(object))
list1.add(list.get(i));
}
ctm.add(list1);
tabela.setModel(ctm);
ctm.fireTableDataChanged();
} catch (SCHMException e) {
JOptionPane.showMessageDialog(this, e.getMessage());
}
}
private void tabelaSelectedIndexChange() {
tabela.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent evt) {
if (evt.getClickCount() == 2) {
Point pnt = evt.getPoint();
int row = tabela.rowAtPoint(pnt);
Request c = ctm.getRequest(row);
int id = c.getRequestID();
RequestDetailsView rdv;
try {
rdv = new RequestDetailsView(id,users);
JDesktopPane desktopPane = getDesktopPane();
desktopPane.add(rdv);
rdv.show();
} catch (SCHMException ex) {
Logger.getLogger(RequestView.class.getName()).log(Level.SEVERE, null, ex);
}
}
else {
//do something else
}
}
});
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
tabela = new javax.swing.JTable();
setClosable(true);
setMaximizable(true);
setResizable(true);
tabela.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
}
));
tabela.getTableHeader().setReorderingAllowed(false);
jScrollPane1.setViewportView(tabela);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 647, Short.MAX_VALUE)
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 394, Short.MAX_VALUE)
.addGap(15, 15, 15))
);
pack();
}// </editor-fold>//GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTable tabela;
// End of variables declaration//GEN-END:variables
}
| [
"enokryeziu@gmail.com"
] | enokryeziu@gmail.com |
73e4406dd90a2fd18c0c787b35301cf8678a3d8e | 02804fa068ebe37ee4983edd517a24901744f232 | /TASK DesignPatterns/Structural/facadeDesignPattern/FacadPatternDemo.java | ed41a236a07dd4589618ba291d05714cf4f2fa8a | [] | no_license | SyedWilayath/DesignPattern | 182967c590e167e86d7d10c13855e41a55291322 | 1fce414122205dc8be22ddebda095c1370a188b9 | refs/heads/master | 2022-11-21T11:10:19.554796 | 2020-07-26T09:44:48 | 2020-07-26T09:44:48 | 282,617,377 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 226 | java | public class FacadPatternDemo {
public static void main(String[] args) {
ShapeMaker shapemaker = new ShapeMaker();
shapemaker.displayCircle();
shapemaker.displayRectangle();
shapemaker.displaySquare();
}
}
| [
"noreply@github.com"
] | noreply@github.com |
bae052b255f7051a045885f082c39a029bdeffee | 6013050007e0b1e8322d7957784b6d842297b622 | /src/data/mediaDB/Tag.java | 05d9ede4baa1c716084771aedd02a110608fbc0f | [] | no_license | MohamedAliKhalil1/Media-Management-System | 4da5fb9b3ee7073bb78185943f56b885ebf55f0a | 46b3e84db4206340a6f6da8d7c7e183a880c9668 | refs/heads/master | 2023-03-13T06:25:55.601323 | 2021-03-03T12:36:22 | 2021-03-03T12:36:22 | 344,120,598 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 83 | java | package data.mediaDB;
public enum Tag {
Animal,Tutorial,Lifestyle,News
}
| [
"mohamedalikahlil5@gmail.com"
] | mohamedalikahlil5@gmail.com |
83e5816155c2ef6472b0583cb02b92367f23a9cb | 191b34e119858b6447424290ec4db290ff3d4639 | /src/fructe/Para.java | 3dbb97acf142f5a0e080298626c00417b1ba3377 | [] | no_license | corina-ionita/Cerner.Java.Tema3 | 596f64f6e598478dcbdc0805acbce81c9bfacb9b | ee14ff87947b9ec3773d6337ce2fb387528305bd | refs/heads/master | 2021-09-20T09:49:06.786008 | 2018-08-08T07:01:49 | 2018-08-08T07:01:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 141 | java | package fructe;
import model.IFruct;
public class Para implements IFruct {
@Override
public String getGust() {
return "dulce";
}
}
| [
"ionitacorina97@gmail.com"
] | ionitacorina97@gmail.com |
a1c618d10280f29b0f1645959402c9d70feb32db | c90da79b2979ede1d19af72776a01f39e1ffa264 | /src/main/java/br/com/ultracar/treinamento/TreinamentoApplication.java | 6c59ab798debbce04e297554932f08504e3c766e | [] | no_license | ThiagoLuizS/treinamento | 361a0279652eb55189e1e3207ed5562ce239d70b | 90a2fd7dfa792d2013f458446da12f7d40474bab | refs/heads/master | 2020-06-25T15:26:32.036270 | 2019-12-06T19:39:58 | 2019-12-06T19:39:58 | 199,352,858 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 656 | java | package br.com.ultracar.treinamento;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@EnableJpaRepositories
@SpringBootApplication
public class TreinamentoApplication {
public static void main(String[] args) {
SpringApplication.run(TreinamentoApplication.class, args);
}
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(TreinamentoApplication.class);
}
}
| [
"thiago-silva@ultracar.com.b"
] | thiago-silva@ultracar.com.b |
c88760366d36078c2a3347d709e2e9fdeb9fc57f | 3f361dfa8463ab56a0f9ad9e97768b39f8dfa176 | /app/src/main/java/com/anja/task1/app/data/OrderRepository.java | 730781747dae8920befcaef26c2475c5cd171ecd | [] | no_license | severianremi/Task1 | 7629c2d4f3353f2da5acf68e7b7815a55ee08732 | 250de8750e65eac54824751165e3af9b7bc5b9c6 | refs/heads/master | 2021-01-21T13:20:59.211545 | 2016-05-30T07:46:47 | 2016-05-30T07:46:47 | 53,800,760 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 312 | java | package com.anja.task1.app.data;
import java.util.List;
/**
* Created by Anna on 29.05.2016.
*/
public interface OrderRepository {
void setSelectedOrder(Order selectedOrder);
Order getSelectedOrder();
List<Order> getOrders(Order.Status status, int amount, int offset);
void clearCache();
}
| [
"severianremi@gmail.com"
] | severianremi@gmail.com |
8804b794bb03a7537f124a166397c30296bea6fb | a6bd0f6c87fbe946eb00d548aa0c1edc06773277 | /iniciando-primefaces/src/main/java/com/algaworks/erp/util/Transacional.java | 081774ec9a7b9d4cc6516b34ea813cac4e6c490d | [] | no_license | fmrabelo/rabelo-servicos-oap | 8d4dcb62c61b9ba44991dbfe197120940d083993 | 3d849799119710f7e61e39606f356477be9c2604 | refs/heads/master | 2021-01-01T19:42:28.809837 | 2015-04-23T15:02:32 | 2015-04-23T15:02:32 | 37,106,052 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 380 | java | package com.algaworks.erp.util;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.interceptor.InterceptorBinding;
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@InterceptorBinding
public @interface Transacional {
} | [
"fmrabelo@38c0dbe2-1d61-b02a-7774-c78bf3521c0c"
] | fmrabelo@38c0dbe2-1d61-b02a-7774-c78bf3521c0c |
24e8cc9cc2865b2939dd521612d929d3cf347802 | 228af32f0260126396f451ae215f580d5f8de8f0 | /kafka-order/src/test/java/com/mz/kafka/configuration/KafkaConfigTest.java | 2a920603efe4f5a1fc1a634816420a51f4576026 | [] | no_license | atlroc99/microservices-with-kafka | 733957151e8c05a1a58c56c461d443bbdb29aa69 | f8934d0994c09dba8dc6fe967d2a6e517d2a7817 | refs/heads/master | 2023-01-24T18:13:23.291395 | 2020-11-30T18:05:52 | 2020-11-30T18:05:52 | 316,769,693 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 962 | java | package com.mz.kafka.configuration;
import org.apache.kafka.clients.admin.NewTopic;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
@SpringBootTest
class KafkaConfigTest {
Logger logger = LoggerFactory.getLogger(KafkaConfig.class);
@Autowired
KafkaConfig config;
@Test
void topicOrder() {
NewTopic orderTopic = config.topicOrder();
assertNotNull(orderTopic);
logger.info("topic name: {}", orderTopic.name());
logger.info("Replication factor: {}", orderTopic.replicationFactor());
logger.info("Num of Paritions: {}", orderTopic.numPartitions());
assertEquals(orderTopic.name(), "t_order");
}
} | [
"azaman@atgworks.com"
] | azaman@atgworks.com |
f672ff3c76f7e1ebfa4db325e2a8f5145f8530b7 | 9442f5348db2435e71cf48b88dbe5a29249d3349 | /src/controllers/employees/EmployeesDestroyServlet.java | f8e0f8dd09e84f92b018c4e83e4e90616dfcf84a | [] | no_license | mami000888/daily_report_system | 096f993c4960fd0ee4edc5bf8fa48ac0fcfc5862 | d37d0f7a3f785e5d12aa0ebb84cf3210e3631e4c | refs/heads/main | 2023-02-07T21:14:10.347359 | 2020-12-26T08:02:34 | 2020-12-26T08:02:34 | 324,513,375 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,745 | java | package controllers.employees;
import java.io.IOException;
import java.sql.Timestamp;
import javax.persistence.EntityManager;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import models.Employee;
import utils.DBUtil;
/**
* Servlet implementation class EmployeesDestroyServlet
*/
@WebServlet("/employees/destroy")
public class EmployeesDestroyServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* @see HttpServlet#HttpServlet()
*/
public EmployeesDestroyServlet() {
super();
// TODO Auto-generated constructor stub
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String _token = (String)request.getParameter("_token");
if (_token != null && _token.equals(request.getSession().getId())) {
EntityManager em = DBUtil.createEntityManager();
Employee e = em.find(Employee.class, (Integer)(request.getSession().getAttribute("employee_id")));
e.setDelete_flag(1);
e.setDelete_flag(1);
e.setUpdated_at(new Timestamp(System.currentTimeMillis()));
em.getTransaction().begin();
em.getTransaction().commit();
em.close();
request.getSession().setAttribute("flush", "削除が完了しました。");
response.sendRedirect(request.getContextPath() + "/employees/index");
}
}
} | [
"aaa@gmail.com"
] | aaa@gmail.com |
d7812a6db44eddc60502bbe9fec571d4565557b3 | 65e24a2211bc5aacf5d5dc66c60c5e1641a90645 | /src/leetcode/editor/cn/P674LongestContinuousIncreasingSubsequence.java | 7deb7de5c2e83c6603b6c94028582c4f3db1926f | [] | no_license | x1uyuan/leetcodePractice | 2a4d77808fa5f43771d500cfa36645485c5b67ea | 15372e8530cfe98fd9be1eb89ce3e34fdbd34bf9 | refs/heads/master | 2023-01-24T11:21:11.101629 | 2020-12-03T05:59:15 | 2020-12-03T05:59:15 | 194,814,732 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,492 | java | //给定一个未经排序的整数数组,找到最长且连续的的递增序列,并返回该序列的长度。
//
//
//
// 示例 1:
//
// 输入: [1,3,5,4,7]
//输出: 3
//解释: 最长连续递增序列是 [1,3,5], 长度为3。
//尽管 [1,3,5,7] 也是升序的子序列, 但它不是连续的,因为5和7在原数组里被4隔开。
//
//
// 示例 2:
//
// 输入: [2,2,2,2,2]
//输出: 1
//解释: 最长连续递增序列是 [2], 长度为1。
//
//
//
//
// 注意:数组长度不会超过10000。
// Related Topics 数组
// 👍 90 👎 0
package leetcode.editor.cn;
/**
* Java:最长连续递增序列
* date:2020-07-17 14:33:24
**/
public class P674LongestContinuousIncreasingSubsequence {
public static void main(String[] args) {
Solution solution = new P674LongestContinuousIncreasingSubsequence().new Solution();
// TO TEST
System.out.println(solution.findLengthOfLCIS(new int[]{1,3,5,4,2,3,4,5}));
}
//leetcode submit region begin(Prohibit modification and deletion)
class Solution {
public int findLengthOfLCIS(int[] nums) {
if (nums.length == 0) return 0;
int res = 1;
int tmp = 1;
for (int i = 1; i < nums.length; i++) {
tmp = nums[i] > nums[i - 1] ? tmp + 1 : 1;
res = Math.max(res, tmp);
}
return res;
}
}
//leetcode submit region end(Prohibit modification and deletion)
}
| [
"18200250936@163.com"
] | 18200250936@163.com |
bc3010c8293cf89ddb7e9e0133fc4f14e6c06540 | 4312f106f4b52e114e7dbfa5d69554987fc700f4 | /projectasks/src/main/java/tin/projectasks/Models/TasksRepo.java | 5c50ca24b212f962b603f0bc18c01183a645764d | [] | no_license | s19685/TINbackend | cd39137010951cc5b3fe6aca495643d1efe049b7 | f2a3a2d5f6a9bd8648005cb87c269aa6a70d6495 | refs/heads/main | 2023-03-04T08:12:42.856469 | 2021-02-05T16:15:53 | 2021-02-05T16:15:53 | 329,750,273 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 276 | java | package tin.projectasks.Models;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import tin.projectasks.Models.Entity.Task;
@Repository
public interface TasksRepo extends MongoRepository<Task, String> {
}
| [
"s19685@pjwstk.edu.pl"
] | s19685@pjwstk.edu.pl |
48bc05099d1852cf4f72be28a21ac5094ac33b83 | 5a1e020dad1ce36104df4a758714a5b12f1feeea | /src/App.java | 96423419deef5242b6ae3191cc7d0c55f3105560 | [] | no_license | Ritzikas/katsetus-java-programm | 912cc1be785591d4c79b0f06be0440a699fecad7 | bb7742855746dbed3ae107b6b9171a79f29113bf | refs/heads/master | 2023-08-30T09:16:33.926379 | 2021-11-17T14:12:14 | 2021-11-17T14:12:14 | 428,974,182 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 116 | java | public class App {
public static void main(String[] args) {
System.out.println("Test!!??????");
}
}
| [
"spekulatsioon@gmail.com"
] | spekulatsioon@gmail.com |
a086da3071f3d42dcf3094a3a19198979879fe84 | a717f178ba87308599f02d8695e03d2f6b7ca0f2 | /src/main/java/top/mengtech/socket/ChatServer.java | 2a64fd17f23f84eb29257e6f2b99707be015ea6d | [] | no_license | mengqingmeng/nettyStudy | 68e5015f48f8a3ca5a482d7561ef12c00f8ac5a8 | cf7f15092a8dac6028d233de27ea75d2cd26af8f | refs/heads/master | 2022-07-10T23:37:06.813618 | 2020-03-12T12:04:27 | 2020-03-12T12:04:27 | 203,555,790 | 0 | 0 | null | 2022-06-17T02:26:45 | 2019-08-21T09:53:46 | Java | UTF-8 | Java | false | false | 1,812 | java | package top.mengtech.socket;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.group.ChannelGroup;
import io.netty.channel.group.DefaultChannelGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.util.concurrent.ImmediateEventExecutor;
import java.net.InetSocketAddress;
public class ChatServer {
private final ChannelGroup channelGroup = new DefaultChannelGroup(ImmediateEventExecutor.INSTANCE);
private final EventLoopGroup loopGroup = new NioEventLoopGroup();
private Channel channel;
public ChannelFuture start(InetSocketAddress address){
ServerBootstrap bootstrap = new ServerBootstrap();
bootstrap.group(loopGroup)
.channel(NioServerSocketChannel.class)
.childHandler(new ChatServerInitializer());
ChannelFuture future = bootstrap.bind(address);
future.syncUninterruptibly();
channel = future.channel();
return future;
}
public void destroy(){
if(channel !=null){
channel.close();
}
// channelGroup.close();
loopGroup.shutdownGracefully();
}
public static void main(String[] args) {
// if(args.length !=1){
// System.err.println("Please give port as argument");
// System.exit(1);
// }
int port = 8888;
final ChatServer chatServer = new ChatServer();
ChannelFuture future = chatServer.start(new InetSocketAddress(port));
Runtime.getRuntime().addShutdownHook(new Thread(()->{chatServer.destroy();}));
future.channel().closeFuture().syncUninterruptibly();
}
}
| [
"762577099@qq.com"
] | 762577099@qq.com |
6da9180df898eba9576a1a2e879c344d8bc58e73 | 01a7709e7584687a370ebaf8b8d93d40a75f8441 | /src/org/usfirst/frc5308/prog9/commands/shootspeed4.java | 1d9336fb0f988e8191e4050ed72b0b4ff1275fb5 | [] | no_license | Altair59/FRC-Robotics | c0acb11cc5d5ee6803bd679fd5e381ecb0593e37 | 4e1a78b158c5a13311837c4e56d0d67ecc4f63a5 | refs/heads/master | 2020-06-08T21:41:29.057962 | 2019-06-23T05:51:38 | 2019-06-23T05:51:38 | 193,311,310 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,992 | java | // RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code or it will be lost on an
// update. Deleting the comments indicating the section will prevent
// it from being updated in the future.
package org.usfirst.frc5308.prog9.commands;
import edu.wpi.first.wpilibj.command.Command;
import org.usfirst.frc5308.prog9.Robot;
/**
*
*/
public class shootspeed4 extends Command {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_DECLARATIONS
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_DECLARATIONS
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
public shootspeed4() {
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_SETTING
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_SETTING
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=REQUIRES
requires(Robot.shooter);
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=REQUIRES
}
// Called just before this Command runs the first time
protected void initialize() {
}
// Called repeatedly when this Command is scheduled to run
protected void execute() {
Robot.shooter.speed4();
}
// Make this return true when this Command no longer needs to run execute()
protected boolean isFinished() {
return false;
}
// Called once after isFinished returns true
protected void end() {
}
// Called when another command which requires one or more of the same
// subsystems is scheduled to run
protected void interrupted() {
}
}
| [
"noreply@github.com"
] | noreply@github.com |
4216d2e5a388c182a35879efc54ce43656db4108 | 0df6eec65660b9efd87329de5904dcc43227b81f | /src/test/java/cow/CowApplicationTests.java | d4966adcd6124193e56247a067ae2f05df1a8b36 | [] | no_license | Qjping/cow | 50db83616b7fef20490be7d0661a6b3c9ebee87f | f62ea1ff5bf16c644fc08647fcd30a0dc348119b | refs/heads/master | 2023-04-07T17:24:50.350149 | 2021-04-16T13:56:55 | 2021-04-16T13:56:55 | 336,776,005 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 201 | java | package cow;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class CowApplicationTests {
@Test
void contextLoads() {
}
}
| [
"1490665859@qq.com"
] | 1490665859@qq.com |
f9bfa06968476cabcbf32b4228010fe4d5cab72b | ff479192c14398d7d8875303e755bf7c6791a895 | /Leilao/leilao/src/main/java/br/edu/ifal/modelo/Produto.java | bc34cc90cd393c9fbac8582611b99f2a1914924e | [] | no_license | MarcosAlves00/JavaTest | 7ca29c7de7eba5d08fe2f4171d6ed29edc2a342d | fff467b0bab4e85b8e1d5cbb43514cc63564a3b1 | refs/heads/master | 2020-12-15T16:42:17.300818 | 2020-01-21T17:42:19 | 2020-01-21T17:42:19 | 235,181,907 | 0 | 0 | null | 2020-10-13T18:59:00 | 2020-01-20T19:30:06 | Java | UTF-8 | Java | false | false | 448 | java | package br.edu.ifal.modelo;
public class Produto{
private String nome;
private String descricao;
public Produto(String nome) {
this.nome = nome;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public String getDescricao() {
return descricao;
}
public void setDescricao(String descricao) {
this.descricao = descricao;
}
} | [
"noreply@github.com"
] | noreply@github.com |
5ca83410ba92e0f220bd24e87ba315b326393818 | e798742f8b3ab43cfe1b4c59732001fe7b57b41c | /pinot-core/src/test/java/com/linkedin/pinot/core/data/recordtransformer/RecordTransformerTest.java | a2d83584e460be9f6de0b60294e23f5ea507df8e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | chenchencc/pinot | 9845d155e612536f8b56e39865a286e6dbe3cfde | 65ad8a4a396de2ed9827288ed6f0a6dc45fa4953 | refs/heads/master | 2020-04-05T06:20:51.133396 | 2018-11-07T21:46:14 | 2018-11-07T21:46:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,455 | java | /**
* Copyright (C) 2014-2018 LinkedIn Corp. (pinot-core@linkedin.com)
*
* 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.linkedin.pinot.core.data.recordtransformer;
import com.linkedin.pinot.common.data.FieldSpec;
import com.linkedin.pinot.common.data.Schema;
import com.linkedin.pinot.common.utils.primitive.ByteArray;
import com.linkedin.pinot.core.data.GenericRow;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
public class RecordTransformerTest {
private static final Schema SCHEMA = new Schema.SchemaBuilder()
// For data type conversion
.addSingleValueDimension("svInt", FieldSpec.DataType.INT)
.addSingleValueDimension("svLong", FieldSpec.DataType.LONG)
.addSingleValueDimension("svFloat", FieldSpec.DataType.FLOAT)
.addSingleValueDimension("svDouble", FieldSpec.DataType.DOUBLE)
.addMultiValueDimension("mvInt", FieldSpec.DataType.INT)
.addMultiValueDimension("mvLong", FieldSpec.DataType.LONG)
.addMultiValueDimension("mvFloat", FieldSpec.DataType.FLOAT)
.addMultiValueDimension("mvDouble", FieldSpec.DataType.DOUBLE)
// For sanitation
.addSingleValueDimension("svBytes", FieldSpec.DataType.BYTES)
.addSingleValueDimension("svStringWithNullCharacters", FieldSpec.DataType.STRING)
// For time conversion
.addTime("incoming", 6, TimeUnit.HOURS, FieldSpec.DataType.INT, "outgoing", 1, TimeUnit.MILLISECONDS,
FieldSpec.DataType.LONG)
.build();
// Transform multiple times should return the same result
private static final int NUM_ROUNDS = 5;
private static GenericRow getRecord() {
GenericRow record = new GenericRow();
Map<String, Object> fields = new HashMap<>();
fields.put("svInt", (byte) 123);
fields.put("svLong", (char) 123);
fields.put("svFloat", (short) 123);
fields.put("svDouble", "123");
fields.put("mvInt", new Object[]{123L});
fields.put("mvLong", new Object[]{123f});
fields.put("mvFloat", new Object[]{123d});
fields.put("mvDouble", new Object[]{123});
fields.put("svBytes", new byte[]{123});
fields.put("svStringWithNullCharacters", "1\0002\0003");
fields.put("incoming", "123");
record.init(fields);
return record;
}
@Test
public void testTimeTransformer() {
RecordTransformer transformer = new TimeTransformer(SCHEMA);
GenericRow record = getRecord();
for (int i = 0; i < NUM_ROUNDS; i++) {
record = transformer.transform(record);
assertNotNull(record);
// We keep the incoming time field in case other transformers rely on it
assertEquals(record.getValue("incoming"), "123");
assertEquals(record.getValue("outgoing"), 123 * 6 * 3600 * 1000L);
}
}
@Test
public void testDataTypeTransformer() {
RecordTransformer transformer = new DataTypeTransformer(SCHEMA);
GenericRow record = getRecord();
for (int i = 0; i < NUM_ROUNDS; i++) {
record = transformer.transform(record);
assertNotNull(record);
assertEquals(record.getValue("svInt"), 123);
assertEquals(record.getValue("svLong"), 123L);
assertEquals(record.getValue("svFloat"), 123f);
assertEquals(record.getValue("svDouble"), 123d);
assertEquals(record.getValue("mvInt"), new Object[]{123});
assertEquals(record.getValue("mvLong"), new Object[]{123L});
assertEquals(record.getValue("mvFloat"), new Object[]{123f});
assertEquals(record.getValue("mvDouble"), new Object[]{123d});
assertEquals(record.getValue("svBytes"), new byte[]{123});
assertEquals(record.getValue("svStringWithNullCharacters"), "1\0002\0003");
// Incoming time field won't be converted (it's ignored in this transformer)
assertEquals(record.getValue("incoming"), "123");
// Outgoing time field will be converted (without time transformer, this field will be null before transform, and
// be filled with default null value after transform)
assertEquals(record.getValue("outgoing"), Long.MIN_VALUE);
}
}
@Test
public void testSanitationTransformer() {
RecordTransformer transformer = new SanitationTransformer(SCHEMA);
GenericRow record = getRecord();
for (int i = 0; i < NUM_ROUNDS; i++) {
record = transformer.transform(record);
assertNotNull(record);
assertEquals(record.getValue("svBytes"), new ByteArray(new byte[]{123}));
assertEquals(record.getValue("svStringWithNullCharacters"), "123");
}
}
@Test
public void testDefaultTransformer() {
RecordTransformer transformer = CompoundTransformer.getDefaultTransformer(SCHEMA);
GenericRow record = getRecord();
for (int i = 0; i < NUM_ROUNDS; i++) {
record = transformer.transform(record);
assertNotNull(record);
assertEquals(record.getValue("svInt"), 123);
assertEquals(record.getValue("svLong"), 123L);
assertEquals(record.getValue("svFloat"), 123f);
assertEquals(record.getValue("svDouble"), 123d);
assertEquals(record.getValue("mvInt"), new Object[]{123});
assertEquals(record.getValue("mvLong"), new Object[]{123L});
assertEquals(record.getValue("mvFloat"), new Object[]{123f});
assertEquals(record.getValue("mvDouble"), new Object[]{123d});
assertEquals(record.getValue("svBytes"), new ByteArray(new byte[]{123}));
assertEquals(record.getValue("svStringWithNullCharacters"), "123");
assertEquals(record.getValue("incoming"), "123");
assertEquals(record.getValue("outgoing"), 123 * 6 * 3600 * 1000L);
}
}
@Test
public void testPassThroughTransformer() {
RecordTransformer transformer = CompoundTransformer.getPassThroughTransformer();
GenericRow record = getRecord();
for (int i = 0; i < NUM_ROUNDS; i++) {
record = transformer.transform(record);
assertNotNull(record);
}
}
}
| [
"noreply@github.com"
] | noreply@github.com |
5c8ecfe2d8e19e966cc7733b171a2a2cbd38e707 | 94e009b355ae96005e9401bd306b6b262551f150 | /library/src/main/java/com/lgx/library/util/FileUtils.java | 9cb55a829471e2be5f10e1ce131ad91416374590 | [] | no_license | lgxq/MyLibray | 3b7afde4939e8afb1b937248c6767f108d51075f | 6414bf486a68977442c1af13d69414f59602acca | refs/heads/master | 2021-06-20T23:28:30.959537 | 2020-12-07T12:36:00 | 2020-12-07T12:36:00 | 98,397,698 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 45,062 | java | package com.lgx.library.util;
import android.annotation.SuppressLint;
import com.lgx.library.constant.MemoryConstants;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.security.DigestInputStream;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* <pre>
* author: Blankj
* blog : http://blankj.com
* time : 2016/8/11
* desc : 文件相关工具类
* </pre>
*/
public final class FileUtils {
private FileUtils() {
throw new UnsupportedOperationException("u can't instantiate me...");
}
/**
* 根据文件路径获取文件
*
* @param filePath 文件路径
* @return 文件
*/
public static File getFileByPath(String filePath) {
return isSpace(filePath) ? null : new File(filePath);
}
/**
* 判断文件是否存在
*
* @param filePath 文件路径
* @return {@code true}: 存在<br>{@code false}: 不存在
*/
public static boolean isFileExists(String filePath) {
return isFileExists(getFileByPath(filePath));
}
/**
* 判断文件是否存在
*
* @param file 文件
* @return {@code true}: 存在<br>{@code false}: 不存在
*/
public static boolean isFileExists(File file) {
return file != null && file.exists();
}
/**
* 重命名文件
*
* @param filePath 文件路径
* @param newName 新名称
* @return {@code true}: 重命名成功<br>{@code false}: 重命名失败
*/
public static boolean rename(String filePath, String newName) {
return rename(getFileByPath(filePath), newName);
}
/**
* 重命名文件
*
* @param file 文件
* @param newName 新名称
* @return {@code true}: 重命名成功<br>{@code false}: 重命名失败
*/
public static boolean rename(File file, String newName) {
// 文件为空返回false
if (file == null) return false;
// 文件不存在返回false
if (!file.exists()) return false;
// 新的文件名为空返回false
if (isSpace(newName)) return false;
// 如果文件名没有改变返回true
if (newName.equals(file.getName())) return true;
File newFile = new File(file.getParent() + File.separator + newName);
// 如果重命名的文件已存在返回false
return !newFile.exists()
&& file.renameTo(newFile);
}
/**
* 判断是否是目录
*
* @param dirPath 目录路径
* @return {@code true}: 是<br>{@code false}: 否
*/
public static boolean isDir(String dirPath) {
return isDir(getFileByPath(dirPath));
}
/**
* 判断是否是目录
*
* @param file 文件
* @return {@code true}: 是<br>{@code false}: 否
*/
public static boolean isDir(File file) {
return isFileExists(file) && file.isDirectory();
}
/**
* 判断是否是文件
*
* @param filePath 文件路径
* @return {@code true}: 是<br>{@code false}: 否
*/
public static boolean isFile(String filePath) {
return isFile(getFileByPath(filePath));
}
/**
* 判断是否是文件
*
* @param file 文件
* @return {@code true}: 是<br>{@code false}: 否
*/
public static boolean isFile(File file) {
return isFileExists(file) && file.isFile();
}
/**
* 判断目录是否存在,不存在则判断是否创建成功
*
* @param dirPath 目录路径
* @return {@code true}: 存在或创建成功<br>{@code false}: 不存在或创建失败
*/
public static boolean createOrExistsDir(String dirPath) {
return createOrExistsDir(getFileByPath(dirPath));
}
/**
* 判断目录是否存在,不存在则判断是否创建成功
*
* @param file 文件
* @return {@code true}: 存在或创建成功<br>{@code false}: 不存在或创建失败
*/
public static boolean createOrExistsDir(File file) {
// 如果存在,是目录则返回true,是文件则返回false,不存在则返回是否创建成功
return file != null && (file.exists() ? file.isDirectory() : file.mkdirs());
}
/**
* 判断文件是否存在,不存在则判断是否创建成功
*
* @param filePath 文件路径
* @return {@code true}: 存在或创建成功<br>{@code false}: 不存在或创建失败
*/
public static boolean createOrExistsFile(String filePath) {
return createOrExistsFile(getFileByPath(filePath));
}
/**
* 判断文件是否存在,不存在则判断是否创建成功
*
* @param file 文件
* @return {@code true}: 存在或创建成功<br>{@code false}: 不存在或创建失败
*/
public static boolean createOrExistsFile(File file) {
if (file == null) return false;
// 如果存在,是文件则返回true,是目录则返回false
if (file.exists()) return file.isFile();
if (!createOrExistsDir(file.getParentFile())) return false;
try {
return file.createNewFile();
} catch (IOException e) {
e.printStackTrace();
return false;
}
}
/**
* 判断文件是否存在,存在则在创建之前删除
*
* @param filePath 文件路径
* @return {@code true}: 创建成功<br>{@code false}: 创建失败
*/
public static boolean createFileByDeleteOldFile(String filePath) {
return createFileByDeleteOldFile(getFileByPath(filePath));
}
/**
* 判断文件是否存在,存在则在创建之前删除
*
* @param file 文件
* @return {@code true}: 创建成功<br>{@code false}: 创建失败
*/
public static boolean createFileByDeleteOldFile(File file) {
if (file == null) return false;
// 文件存在并且删除失败返回false
if (file.exists() && file.isFile() && !file.delete()) return false;
// 创建目录失败返回false
if (!createOrExistsDir(file.getParentFile())) return false;
try {
return file.createNewFile();
} catch (IOException e) {
e.printStackTrace();
return false;
}
}
/**
* 复制或移动目录
*
* @param srcDirPath 源目录路径
* @param destDirPath 目标目录路径
* @param isMove 是否移动
* @return {@code true}: 复制或移动成功<br>{@code false}: 复制或移动失败
*/
private static boolean copyOrMoveDir(String srcDirPath, String destDirPath, boolean isMove) {
return copyOrMoveDir(getFileByPath(srcDirPath), getFileByPath(destDirPath), isMove);
}
/**
* 复制或移动目录
*
* @param srcDir 源目录
* @param destDir 目标目录
* @param isMove 是否移动
* @return {@code true}: 复制或移动成功<br>{@code false}: 复制或移动失败
*/
private static boolean copyOrMoveDir(File srcDir, File destDir, boolean isMove) {
if (srcDir == null || destDir == null) return false;
// 如果目标目录在源目录中则返回false,看不懂的话好好想想递归怎么结束
// srcPath : F:\\MyGithub\\AndroidUtilCode\\utilcode\\src\\test\\res
// destPath: F:\\MyGithub\\AndroidUtilCode\\utilcode\\src\\test\\res1
// 为防止以上这种情况出现出现误判,须分别在后面加个路径分隔符
String srcPath = srcDir.getPath() + File.separator;
String destPath = destDir.getPath() + File.separator;
if (destPath.contains(srcPath)) return false;
// 源文件不存在或者不是目录则返回false
if (!srcDir.exists() || !srcDir.isDirectory()) return false;
// 目标目录不存在返回false
if (!createOrExistsDir(destDir)) return false;
File[] files = srcDir.listFiles();
for (File file : files) {
File oneDestFile = new File(destPath + file.getName());
if (file.isFile()) {
// 如果操作失败返回false
if (!copyOrMoveFile(file, oneDestFile, isMove)) return false;
} else if (file.isDirectory()) {
// 如果操作失败返回false
if (!copyOrMoveDir(file, oneDestFile, isMove)) return false;
}
}
return !isMove || deleteDir(srcDir);
}
/**
* 复制或移动文件
*
* @param srcFilePath 源文件路径
* @param destFilePath 目标文件路径
* @param isMove 是否移动
* @return {@code true}: 复制或移动成功<br>{@code false}: 复制或移动失败
*/
private static boolean copyOrMoveFile(String srcFilePath, String destFilePath, boolean isMove) {
return copyOrMoveFile(getFileByPath(srcFilePath), getFileByPath(destFilePath), isMove);
}
/**
* 复制或移动文件
*
* @param srcFile 源文件
* @param destFile 目标文件
* @param isMove 是否移动
* @return {@code true}: 复制或移动成功<br>{@code false}: 复制或移动失败
*/
private static boolean copyOrMoveFile(File srcFile, File destFile, boolean isMove) {
if (srcFile == null || destFile == null) return false;
// 源文件不存在或者不是文件则返回false
if (!srcFile.exists() || !srcFile.isFile()) return false;
// 目标文件存在且是文件则返回false
if (destFile.exists() && destFile.isFile()) return false;
// 目标目录不存在返回false
if (!createOrExistsDir(destFile.getParentFile())) return false;
try {
return writeFileFromIS(destFile, new FileInputStream(srcFile), false)
&& !(isMove && !deleteFile(srcFile));
} catch (FileNotFoundException e) {
e.printStackTrace();
return false;
}
}
/**
* 复制目录
*
* @param srcDirPath 源目录路径
* @param destDirPath 目标目录路径
* @return {@code true}: 复制成功<br>{@code false}: 复制失败
*/
public static boolean copyDir(String srcDirPath, String destDirPath) {
return copyDir(getFileByPath(srcDirPath), getFileByPath(destDirPath));
}
/**
* 复制目录
*
* @param srcDir 源目录
* @param destDir 目标目录
* @return {@code true}: 复制成功<br>{@code false}: 复制失败
*/
public static boolean copyDir(File srcDir, File destDir) {
return copyOrMoveDir(srcDir, destDir, false);
}
/**
* 复制文件
*
* @param srcFilePath 源文件路径
* @param destFilePath 目标文件路径
* @return {@code true}: 复制成功<br>{@code false}: 复制失败
*/
public static boolean copyFile(String srcFilePath, String destFilePath) {
return copyFile(getFileByPath(srcFilePath), getFileByPath(destFilePath));
}
/**
* 复制文件
*
* @param srcFile 源文件
* @param destFile 目标文件
* @return {@code true}: 复制成功<br>{@code false}: 复制失败
*/
public static boolean copyFile(File srcFile, File destFile) {
return copyOrMoveFile(srcFile, destFile, false);
}
/**
* 移动目录
*
* @param srcDirPath 源目录路径
* @param destDirPath 目标目录路径
* @return {@code true}: 移动成功<br>{@code false}: 移动失败
*/
public static boolean moveDir(String srcDirPath, String destDirPath) {
return moveDir(getFileByPath(srcDirPath), getFileByPath(destDirPath));
}
/**
* 移动目录
*
* @param srcDir 源目录
* @param destDir 目标目录
* @return {@code true}: 移动成功<br>{@code false}: 移动失败
*/
public static boolean moveDir(File srcDir, File destDir) {
return copyOrMoveDir(srcDir, destDir, true);
}
/**
* 移动文件
*
* @param srcFilePath 源文件路径
* @param destFilePath 目标文件路径
* @return {@code true}: 移动成功<br>{@code false}: 移动失败
*/
public static boolean moveFile(String srcFilePath, String destFilePath) {
return moveFile(getFileByPath(srcFilePath), getFileByPath(destFilePath));
}
/**
* 移动文件
*
* @param srcFile 源文件
* @param destFile 目标文件
* @return {@code true}: 移动成功<br>{@code false}: 移动失败
*/
public static boolean moveFile(File srcFile, File destFile) {
return copyOrMoveFile(srcFile, destFile, true);
}
/**
* 删除目录
*
* @param dirPath 目录路径
* @return {@code true}: 删除成功<br>{@code false}: 删除失败
*/
public static boolean deleteDir(String dirPath) {
return deleteDir(getFileByPath(dirPath));
}
/**
* 删除目录
*
* @param dir 目录
* @return {@code true}: 删除成功<br>{@code false}: 删除失败
*/
public static boolean deleteDir(File dir) {
if (dir == null) return false;
// 目录不存在返回true
if (!dir.exists()) return true;
// 不是目录返回false
if (!dir.isDirectory()) return false;
// 现在文件存在且是文件夹
File[] files = dir.listFiles();
if (files != null && files.length != 0) {
for (File file : files) {
if (file.isFile()) {
if (!deleteFile(file)) return false;
} else if (file.isDirectory()) {
if (!deleteDir(file)) return false;
}
}
}
return dir.delete();
}
/**
* 删除文件
*
* @param srcFilePath 文件路径
* @return {@code true}: 删除成功<br>{@code false}: 删除失败
*/
public static boolean deleteFile(String srcFilePath) {
return deleteFile(getFileByPath(srcFilePath));
}
/**
* 删除文件
*
* @param file 文件
* @return {@code true}: 删除成功<br>{@code false}: 删除失败
*/
public static boolean deleteFile(File file) {
return file != null && (!file.exists() || file.isFile() && file.delete());
}
/**
* 删除目录下的所有文件
*
* @param dirPath 目录路径
* @return {@code true}: 删除成功<br>{@code false}: 删除失败
*/
public static boolean deleteFilesInDir(String dirPath) {
return deleteFilesInDir(getFileByPath(dirPath));
}
/**
* 删除目录下的所有文件
*
* @param dir 目录
* @return {@code true}: 删除成功<br>{@code false}: 删除失败
*/
public static boolean deleteFilesInDir(File dir) {
if (dir == null) return false;
// 目录不存在返回true
if (!dir.exists()) return true;
// 不是目录返回false
if (!dir.isDirectory()) return false;
// 现在文件存在且是文件夹
File[] files = dir.listFiles();
if (files != null && files.length != 0) {
for (File file : files) {
if (file.isFile()) {
if (!deleteFile(file)) return false;
} else if (file.isDirectory()) {
if (!deleteDir(file)) return false;
}
}
}
return true;
}
/**
* 获取目录下所有文件
*
* @param dirPath 目录路径
* @param isRecursive 是否递归进子目录
* @return 文件链表
*/
public static List<File> listFilesInDir(String dirPath, boolean isRecursive) {
return listFilesInDir(getFileByPath(dirPath), isRecursive);
}
/**
* 获取目录下所有文件
*
* @param dir 目录
* @param isRecursive 是否递归进子目录
* @return 文件链表
*/
public static List<File> listFilesInDir(File dir, boolean isRecursive) {
if (!isDir(dir)) return null;
if (isRecursive) return listFilesInDir(dir);
List<File> list = new ArrayList<>();
File[] files = dir.listFiles();
if (files != null && files.length != 0) {
Collections.addAll(list, files);
}
return list;
}
/**
* 获取目录下所有文件包括子目录
*
* @param dirPath 目录路径
* @return 文件链表
*/
public static List<File> listFilesInDir(String dirPath) {
return listFilesInDir(getFileByPath(dirPath));
}
/**
* 获取目录下所有文件包括子目录
*
* @param dir 目录
* @return 文件链表
*/
public static List<File> listFilesInDir(File dir) {
if (!isDir(dir)) return null;
List<File> list = new ArrayList<>();
File[] files = dir.listFiles();
if (files != null && files.length != 0) {
for (File file : files) {
list.add(file);
if (file.isDirectory()) {
list.addAll(listFilesInDir(file));
}
}
}
return list;
}
/**
* 获取目录下所有后缀名为suffix的文件
* <p>大小写忽略</p>
*
* @param dirPath 目录路径
* @param suffix 后缀名
* @param isRecursive 是否递归进子目录
* @return 文件链表
*/
public static List<File> listFilesInDirWithFilter(String dirPath, String suffix, boolean isRecursive) {
return listFilesInDirWithFilter(getFileByPath(dirPath), suffix, isRecursive);
}
/**
* 获取目录下所有后缀名为suffix的文件
* <p>大小写忽略</p>
*
* @param dir 目录
* @param suffix 后缀名
* @param isRecursive 是否递归进子目录
* @return 文件链表
*/
public static List<File> listFilesInDirWithFilter(File dir, String suffix, boolean isRecursive) {
if (isRecursive) return listFilesInDirWithFilter(dir, suffix);
if (dir == null || !isDir(dir)) return null;
List<File> list = new ArrayList<>();
File[] files = dir.listFiles();
if (files != null && files.length != 0) {
for (File file : files) {
if (file.getName().toUpperCase().endsWith(suffix.toUpperCase())) {
list.add(file);
}
}
}
return list;
}
/**
* 获取目录下所有后缀名为suffix的文件包括子目录
* <p>大小写忽略</p>
*
* @param dirPath 目录路径
* @param suffix 后缀名
* @return 文件链表
*/
public static List<File> listFilesInDirWithFilter(String dirPath, String suffix) {
return listFilesInDirWithFilter(getFileByPath(dirPath), suffix);
}
/**
* 获取目录下所有后缀名为suffix的文件包括子目录
* <p>大小写忽略</p>
*
* @param dir 目录
* @param suffix 后缀名
* @return 文件链表
*/
public static List<File> listFilesInDirWithFilter(File dir, String suffix) {
if (dir == null || !isDir(dir)) return null;
List<File> list = new ArrayList<>();
File[] files = dir.listFiles();
if (files != null && files.length != 0) {
for (File file : files) {
if (file.getName().toUpperCase().endsWith(suffix.toUpperCase())) {
list.add(file);
}
if (file.isDirectory()) {
list.addAll(listFilesInDirWithFilter(file, suffix));
}
}
}
return list;
}
/**
* 获取目录下所有符合filter的文件
*
* @param dirPath 目录路径
* @param filter 过滤器
* @param isRecursive 是否递归进子目录
* @return 文件链表
*/
public static List<File> listFilesInDirWithFilter(String dirPath, FilenameFilter filter, boolean isRecursive) {
return listFilesInDirWithFilter(getFileByPath(dirPath), filter, isRecursive);
}
/**
* 获取目录下所有符合filter的文件
*
* @param dir 目录
* @param filter 过滤器
* @param isRecursive 是否递归进子目录
* @return 文件链表
*/
public static List<File> listFilesInDirWithFilter(File dir, FilenameFilter filter, boolean isRecursive) {
if (isRecursive) return listFilesInDirWithFilter(dir, filter);
if (dir == null || !isDir(dir)) return null;
List<File> list = new ArrayList<>();
File[] files = dir.listFiles();
if (files != null && files.length != 0) {
for (File file : files) {
if (filter.accept(file.getParentFile(), file.getName())) {
list.add(file);
}
}
}
return list;
}
/**
* 获取目录下所有符合filter的文件包括子目录
*
* @param dirPath 目录路径
* @param filter 过滤器
* @return 文件链表
*/
public static List<File> listFilesInDirWithFilter(String dirPath, FilenameFilter filter) {
return listFilesInDirWithFilter(getFileByPath(dirPath), filter);
}
/**
* 获取目录下所有符合filter的文件包括子目录
*
* @param dir 目录
* @param filter 过滤器
* @return 文件链表
*/
public static List<File> listFilesInDirWithFilter(File dir, FilenameFilter filter) {
if (dir == null || !isDir(dir)) return null;
List<File> list = new ArrayList<>();
File[] files = dir.listFiles();
if (files != null && files.length != 0) {
for (File file : files) {
if (filter.accept(file.getParentFile(), file.getName())) {
list.add(file);
}
if (file.isDirectory()) {
list.addAll(listFilesInDirWithFilter(file, filter));
}
}
}
return list;
}
/**
* 获取目录下指定文件名的文件包括子目录
* <p>大小写忽略</p>
*
* @param dirPath 目录路径
* @param fileName 文件名
* @return 文件链表
*/
public static List<File> searchFileInDir(String dirPath, String fileName) {
return searchFileInDir(getFileByPath(dirPath), fileName);
}
/**
* 获取目录下指定文件名的文件包括子目录
* <p>大小写忽略</p>
*
* @param dir 目录
* @param fileName 文件名
* @return 文件链表
*/
public static List<File> searchFileInDir(File dir, String fileName) {
if (dir == null || !isDir(dir)) return null;
List<File> list = new ArrayList<>();
File[] files = dir.listFiles();
if (files != null && files.length != 0) {
for (File file : files) {
if (file.getName().toUpperCase().equals(fileName.toUpperCase())) {
list.add(file);
}
if (file.isDirectory()) {
list.addAll(searchFileInDir(file, fileName));
}
}
}
return list;
}
/**
* 将输入流写入文件
*
* @param filePath 路径
* @param is 输入流
* @param append 是否追加在文件末
* @return {@code true}: 写入成功<br>{@code false}: 写入失败
*/
public static boolean writeFileFromIS(String filePath, InputStream is, boolean append) {
return writeFileFromIS(getFileByPath(filePath), is, append);
}
/**
* 将输入流写入文件
*
* @param file 文件
* @param is 输入流
* @param append 是否追加在文件末
* @return {@code true}: 写入成功<br>{@code false}: 写入失败
*/
public static boolean writeFileFromIS(File file, InputStream is, boolean append) {
if (file == null || is == null) return false;
if (!createOrExistsFile(file)) return false;
OutputStream os = null;
try {
os = new BufferedOutputStream(new FileOutputStream(file, append));
byte data[] = new byte[1024];
int len;
while ((len = is.read(data, 0, 1024)) != -1) {
os.write(data, 0, len);
}
return true;
} catch (IOException e) {
e.printStackTrace();
return false;
} finally {
closeIO(is, os);
}
}
/**
* 将字符串写入文件
*
* @param filePath 文件路径
* @param content 写入内容
* @param append 是否追加在文件末
* @return {@code true}: 写入成功<br>{@code false}: 写入失败
*/
public static boolean writeFileFromString(String filePath, String content, boolean append) {
return writeFileFromString(getFileByPath(filePath), content, append);
}
/**
* 将字符串写入文件
*
* @param file 文件
* @param content 写入内容
* @param append 是否追加在文件末
* @return {@code true}: 写入成功<br>{@code false}: 写入失败
*/
public static boolean writeFileFromString(File file, String content, boolean append) {
if (file == null || content == null) return false;
if (!createOrExistsFile(file)) return false;
BufferedWriter bw = null;
try {
bw = new BufferedWriter(new FileWriter(file, append));
bw.write(content);
return true;
} catch (IOException e) {
e.printStackTrace();
return false;
} finally {
closeIO(bw);
}
}
/**
* 指定编码按行读取文件到链表中
*
* @param filePath 文件路径
* @param charsetName 编码格式
* @return 文件行链表
*/
public static List<String> readFile2List(String filePath, String charsetName) {
return readFile2List(getFileByPath(filePath), charsetName);
}
/**
* 指定编码按行读取文件到链表中
*
* @param file 文件
* @param charsetName 编码格式
* @return 文件行链表
*/
public static List<String> readFile2List(File file, String charsetName) {
return readFile2List(file, 0, 0x7FFFFFFF, charsetName);
}
/**
* 指定编码按行读取文件到链表中
*
* @param filePath 文件路径
* @param st 需要读取的开始行数
* @param end 需要读取的结束行数
* @param charsetName 编码格式
* @return 包含制定行的list
*/
public static List<String> readFile2List(String filePath, int st, int end, String
charsetName) {
return readFile2List(getFileByPath(filePath), st, end, charsetName);
}
/**
* 指定编码按行读取文件到链表中
*
* @param file 文件
* @param st 需要读取的开始行数
* @param end 需要读取的结束行数
* @param charsetName 编码格式
* @return 包含从start行到end行的list
*/
public static List<String> readFile2List(File file, int st, int end, String charsetName) {
if (file == null) return null;
if (st > end) return null;
BufferedReader reader = null;
try {
String line;
int curLine = 1;
List<String> list = new ArrayList<>();
if (isSpace(charsetName)) {
reader = new BufferedReader(new FileReader(file));
} else {
reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), charsetName));
}
while ((line = reader.readLine()) != null) {
if (curLine > end) break;
if (st <= curLine && curLine <= end) list.add(line);
++curLine;
}
return list;
} catch (IOException e) {
e.printStackTrace();
return null;
} finally {
closeIO(reader);
}
}
/**
* 指定编码按行读取文件到字符串中
*
* @param filePath 文件路径
* @param charsetName 编码格式
* @return 字符串
*/
public static String readFile2String(String filePath, String charsetName) {
return readFile2String(getFileByPath(filePath), charsetName);
}
/**
* 指定编码按行读取文件到字符串中
*
* @param file 文件
* @param charsetName 编码格式
* @return 字符串
*/
public static String readFile2String(File file, String charsetName) {
if (file == null) return null;
BufferedReader reader = null;
try {
StringBuilder sb = new StringBuilder();
if (isSpace(charsetName)) {
reader = new BufferedReader(new InputStreamReader(new FileInputStream(file)));
} else {
reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), charsetName));
}
String line;
while ((line = reader.readLine()) != null) {
sb.append(line).append("\r\n");// windows系统换行为\r\n,Linux为\n
}
// 要去除最后的换行符
return sb.delete(sb.length() - 2, sb.length()).toString();
} catch (IOException e) {
e.printStackTrace();
return null;
} finally {
closeIO(reader);
}
}
/**
* 读取文件到字符数组中
*
* @param filePath 文件路径
* @return 字符数组
*/
public static byte[] readFile2Bytes(String filePath) {
return readFile2Bytes(getFileByPath(filePath));
}
/**
* 读取文件到字符数组中
*
* @param file 文件
* @return 字符数组
*/
public static byte[] readFile2Bytes(File file) {
if (file == null) return null;
try {
return inputStream2Bytes(new FileInputStream(file));
} catch (FileNotFoundException e) {
e.printStackTrace();
return null;
}
}
/**
* 获取文件最后修改的毫秒时间戳
*
* @param filePath 文件路径
* @return 文件最后修改的毫秒时间戳
*/
public static long getFileLastModified(String filePath) {
return getFileLastModified(getFileByPath(filePath));
}
/**
* 获取文件最后修改的毫秒时间戳
*
* @param file 文件
* @return 文件最后修改的毫秒时间戳
*/
public static long getFileLastModified(File file) {
if (file == null) return -1;
return file.lastModified();
}
/**
* 简单获取文件编码格式
*
* @param filePath 文件路径
* @return 文件编码
*/
public static String getFileCharsetSimple(String filePath) {
return getFileCharsetSimple(getFileByPath(filePath));
}
/**
* 简单获取文件编码格式
*
* @param file 文件
* @return 文件编码
*/
public static String getFileCharsetSimple(File file) {
int p = 0;
InputStream is = null;
try {
is = new BufferedInputStream(new FileInputStream(file));
p = (is.read() << 8) + is.read();
} catch (IOException e) {
e.printStackTrace();
} finally {
closeIO(is);
}
switch (p) {
case 0xefbb:
return "UTF-8";
case 0xfffe:
return "Unicode";
case 0xfeff:
return "UTF-16BE";
default:
return "GBK";
}
}
/**
* 获取文件行数
*
* @param filePath 文件路径
* @return 文件行数
*/
public static int getFileLines(String filePath) {
return getFileLines(getFileByPath(filePath));
}
/**
* 获取文件行数
*
* @param file 文件
* @return 文件行数
*/
public static int getFileLines(File file) {
int count = 1;
InputStream is = null;
try {
is = new BufferedInputStream(new FileInputStream(file));
byte[] buffer = new byte[1024];
int readChars;
while ((readChars = is.read(buffer, 0, 1024)) != -1) {
for (int i = 0; i < readChars; ++i) {
if (buffer[i] == '\n') ++count;
}
}
} catch (IOException e) {
e.printStackTrace();
} finally {
closeIO(is);
}
return count;
}
/**
* 获取目录大小
*
* @param dirPath 目录路径
* @return 文件大小
*/
public static String getDirSize(String dirPath) {
return getDirSize(getFileByPath(dirPath));
}
/**
* 获取目录大小
*
* @param dir 目录
* @return 文件大小
*/
public static String getDirSize(File dir) {
long len = getDirLength(dir);
return len == -1 ? "" : byte2FitMemorySize(len);
}
/**
* 获取文件大小
*
* @param filePath 文件路径
* @return 文件大小
*/
public static String getFileSize(String filePath) {
return getFileSize(getFileByPath(filePath));
}
/**
* 获取文件大小
*
* @param file 文件
* @return 文件大小
*/
public static String getFileSize(File file) {
long len = getFileLength(file);
return len == -1 ? "" : byte2FitMemorySize(len);
}
/**
* 获取目录长度
*
* @param dirPath 目录路径
* @return 文件大小
*/
public static long getDirLength(String dirPath) {
return getDirLength(getFileByPath(dirPath));
}
/**
* 获取目录长度
*
* @param dir 目录
* @return 文件大小
*/
public static long getDirLength(File dir) {
if (!isDir(dir)) return -1;
long len = 0;
File[] files = dir.listFiles();
if (files != null && files.length != 0) {
for (File file : files) {
if (file.isDirectory()) {
len += getDirLength(file);
} else {
len += file.length();
}
}
}
return len;
}
/**
* 获取文件长度
*
* @param filePath 文件路径
* @return 文件大小
*/
public static long getFileLength(String filePath) {
return getFileLength(getFileByPath(filePath));
}
/**
* 获取文件长度
*
* @param file 文件
* @return 文件大小
*/
public static long getFileLength(File file) {
if (!isFile(file)) return -1;
return file.length();
}
/**
* 获取文件的MD5校验码
*
* @param filePath 文件路径
* @return 文件的MD5校验码
*/
public static String getFileMD5ToString(String filePath) {
File file = isSpace(filePath) ? null : new File(filePath);
return getFileMD5ToString(file);
}
/**
* 获取文件的MD5校验码
*
* @param filePath 文件路径
* @return 文件的MD5校验码
*/
public static byte[] getFileMD5(String filePath) {
File file = isSpace(filePath) ? null : new File(filePath);
return getFileMD5(file);
}
/**
* 获取文件的MD5校验码
*
* @param file 文件
* @return 文件的MD5校验码
*/
public static String getFileMD5ToString(File file) {
return bytes2HexString(getFileMD5(file));
}
/**
* 获取文件的MD5校验码
*
* @param file 文件
* @return 文件的MD5校验码
*/
public static byte[] getFileMD5(File file) {
if (file == null) return null;
DigestInputStream dis = null;
try {
FileInputStream fis = new FileInputStream(file);
MessageDigest md = MessageDigest.getInstance("MD5");
dis = new DigestInputStream(fis, md);
byte[] buffer = new byte[1024 * 256];
while (dis.read(buffer) > 0) ;
md = dis.getMessageDigest();
return md.digest();
} catch (NoSuchAlgorithmException | IOException e) {
e.printStackTrace();
} finally {
closeIO(dis);
}
return null;
}
private static final String HASH_TYPE = "SHA1";
/**
* 检验文件Sha1值是否一致,一致返回true
*/
public static boolean checkSHA1(File zipTempFile, String dataHashCode) {
if(zipTempFile==null || !zipTempFile.exists())
return false;
try {
String hashCode = getHash(zipTempFile, HASH_TYPE);
if(hashCode.equalsIgnoreCase(dataHashCode))
return true;
} catch (FileNotFoundException e) {
return false;
} catch (NoSuchAlgorithmException e) {
return false;
} catch (IOException e) {
return false;
}
return false;
}
private static String getHash(File file, @SuppressWarnings("SameParameterValue") String hashType) throws IOException, NoSuchAlgorithmException {
StringBuilder sb = new StringBuilder();
InputStream fis = new FileInputStream(file);
byte buffer[] = new byte[1024];
MessageDigest md5 = MessageDigest.getInstance(hashType);
for (int numRead; (numRead = fis.read(buffer)) > 0; ) {
md5.update(buffer, 0, numRead);
}
fis.close();
if (md5 != null) {
for (byte b : md5.digest()) {
sb.append(String.format("%02X", b));
}
}
return sb.toString();
}
/**
* 获取全路径中的最长目录
*
* @param file 文件
* @return filePath最长目录
*/
public static String getDirName(File file) {
if (file == null) return null;
return getDirName(file.getPath());
}
/**
* 获取全路径中的最长目录
*
* @param filePath 文件路径
* @return filePath最长目录
*/
public static String getDirName(String filePath) {
if (isSpace(filePath)) return filePath;
int lastSep = filePath.lastIndexOf(File.separator);
return lastSep == -1 ? "" : filePath.substring(0, lastSep + 1);
}
/**
* 获取全路径中的文件名
*
* @param file 文件
* @return 文件名
*/
public static String getFileName(File file) {
if (file == null) return null;
return getFileName(file.getPath());
}
/**
* 获取全路径中的文件名
*
* @param filePath 文件路径
* @return 文件名
*/
public static String getFileName(String filePath) {
if (isSpace(filePath)) return filePath;
int lastSep = filePath.lastIndexOf(File.separator);
return lastSep == -1 ? filePath : filePath.substring(lastSep + 1);
}
/**
* 获取全路径中的不带拓展名的文件名
*
* @param file 文件
* @return 不带拓展名的文件名
*/
public static String getFileNameNoExtension(File file) {
if (file == null) return null;
return getFileNameNoExtension(file.getPath());
}
/**
* 获取全路径中的不带拓展名的文件名
*
* @param filePath 文件路径
* @return 不带拓展名的文件名
*/
public static String getFileNameNoExtension(String filePath) {
if (isSpace(filePath)) return filePath;
int lastPoi = filePath.lastIndexOf('.');
int lastSep = filePath.lastIndexOf(File.separator);
if (lastSep == -1) {
return (lastPoi == -1 ? filePath : filePath.substring(0, lastPoi));
}
if (lastPoi == -1 || lastSep > lastPoi) {
return filePath.substring(lastSep + 1);
}
return filePath.substring(lastSep + 1, lastPoi);
}
/**
* 获取全路径中的文件拓展名
*
* @param file 文件
* @return 文件拓展名
*/
public static String getFileExtension(File file) {
if (file == null) return null;
return getFileExtension(file.getPath());
}
/**
* 获取全路径中的文件拓展名
*
* @param filePath 文件路径
* @return 文件拓展名
*/
public static String getFileExtension(String filePath) {
if (isSpace(filePath)) return filePath;
int lastPoi = filePath.lastIndexOf('.');
int lastSep = filePath.lastIndexOf(File.separator);
if (lastPoi == -1 || lastSep >= lastPoi) return "";
return filePath.substring(lastPoi + 1);
}
/**
* 关闭IO
* @param closeables closeables
*/
public static void closeIO(Closeable... closeables) {
if (closeables == null)
return;
for (Closeable closeable : closeables) {
if (closeable != null) {
try {
closeable.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}
/**
* inputStream转byteArr
*
* @param is 输入流
* @return 字节数组
*/
private static byte[] inputStream2Bytes(InputStream is) {
if (is == null) return null;
return input2OutputStream(is).toByteArray();
}
/**
* inputStream转outputStream
*
* @param is 输入流
* @return outputStream子类
*/
private static ByteArrayOutputStream input2OutputStream(InputStream is) {
if (is == null) return null;
try {
ByteArrayOutputStream os = new ByteArrayOutputStream();
byte[] b = new byte[MemoryConstants.KB];
int len;
while ((len = is.read(b, 0, MemoryConstants.KB)) != -1) {
os.write(b, 0, len);
}
return os;
} catch (IOException e) {
e.printStackTrace();
return null;
} finally {
closeIO(is);
}
}
private static final char hexDigits[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
/**
* byteArr转hexString
* <p>例如:</p>
* bytes2HexString(new byte[] { 0, (byte) 0xa8 }) returns 00A8
*
* @param bytes 字节数组
* @return 16进制大写字符串
*/
private static String bytes2HexString(byte[] bytes) {
if (bytes == null) return null;
int len = bytes.length;
if (len <= 0) return null;
char[] ret = new char[len << 1];
for (int i = 0, j = 0; i < len; i++) {
ret[j++] = hexDigits[bytes[i] >>> 4 & 0x0f];
ret[j++] = hexDigits[bytes[i] & 0x0f];
}
return new String(ret);
}
/**
* 字节数转合适内存大小
* <p>保留3位小数</p>
*
* @param byteNum 字节数
* @return 合适内存大小
*/
@SuppressLint("DefaultLocale")
private static String byte2FitMemorySize(long byteNum) {
if (byteNum < 0) {
return "shouldn't be less than zero!";
} else if (byteNum < MemoryConstants.KB) {
return String.format("%.3fB", (double) byteNum + 0.0005);
} else if (byteNum < MemoryConstants.MB) {
return String.format("%.3fKB", (double) byteNum / MemoryConstants.KB + 0.0005);
} else if (byteNum < MemoryConstants.GB) {
return String.format("%.3fMB", (double) byteNum / MemoryConstants.MB + 0.0005);
} else {
return String.format("%.3fGB", (double) byteNum / MemoryConstants.GB + 0.0005);
}
}
private static boolean isSpace(String s) {
if (s == null) return true;
for (int i = 0, len = s.length(); i < len; ++i) {
if (!Character.isWhitespace(s.charAt(i))) {
return false;
}
}
return true;
}
} | [
"787631681@qq.com"
] | 787631681@qq.com |
ed8b5447197148a495c79f5cead96fec27788614 | e93de6da87916ffb7c521cfcd3327c9900c4f93a | /converse/converse/src/main/java/com/msa/converse/model/User.java | 08b418a28122707b9b4668497e77e268e54abea0 | [] | no_license | JaseG256/Comeback | 15db46bf20623dce5376d571482e51203837d612 | 34a328f333d1dc8655ddeca8cbb13684f0b2e71c | refs/heads/master | 2020-05-21T10:31:38.341719 | 2019-06-14T16:47:14 | 2019-06-14T16:47:14 | 186,013,294 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,049 | java | package com.msa.converse.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import javax.persistence.*;
import java.io.Serializable;
import java.util.List;
@Entity
public class User {
@Id
@GeneratedValue(strategy= GenerationType.AUTO)
private long id;
private String username;
@OneToMany(cascade = CascadeType.ALL, mappedBy="user")
@JsonManagedReference
private List<Comment> commentList;
public User() { }
public User(String username) {
this.username = username;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public List<Comment> getCommentList() {
return commentList;
}
public void setCommentList(List<Comment> commentList) {
this.commentList = commentList;
}
}
| [
"jason_r_gibbs@yahoo.com"
] | jason_r_gibbs@yahoo.com |
d68ae6c7de964e87fd4d5cd8bee38cdbcc1bee9b | f88ab225f8dda42410cb11bce2608a07aeeb7f35 | /sns/all/value_Equal_to_Index_value.java | 9898c4cc76e9547224b0cd17abce9448b72b768c | [] | no_license | arunnayan/IP_questionSet | 32b64c305edb88348c7626b2b42ab9d6529d4cb5 | 7a35951c5754ba4ca567c1357249f66e23fbe42c | refs/heads/master | 2023-03-16T18:38:51.385676 | 2019-08-01T12:10:35 | 2019-08-01T12:10:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 728 | java | package SnS;
import java.util.Scanner;
public class value_Equal_to_Index_value {
public static void main (String[] args) {
Scanner scn=new Scanner(System.in);
int tc=scn.nextInt();
for(int i=0;i<tc;i++){
int n=scn.nextInt();
int[] arr=new int[n];
for(int k=0;k<n;k++){
arr[k]=scn.nextInt();
}
ValueEqualToIndex(arr);
}
}
public static void ValueEqualToIndex(int[] arr){
boolean flag=false;
for(int i=0;i<arr.length;i++){
if(arr[i]==i+1){
flag=true;
System.out.print(i+1+" ");
}
}
if(!flag){
System.out.println("Not Found");
}
else{
System.out.println();
}
}
}
| [
"32850197+rajneeshkumar146@users.noreply.github.com"
] | 32850197+rajneeshkumar146@users.noreply.github.com |
e5d98340c30f35ef8eb3c9ba4a5c549d038c6d19 | 7fe0392305afcbbfb3c21540ad5423571b57e2d7 | /src/com/gp/app/jgap/problem/SimpleMathTest.java | 623ca3090f90d34609149ff4e7acaa9bab9cfb5e | [] | no_license | mcnedward/genetic-programs | 77959a9fcc20188de71082aa21d5a0389c16d83b | e7e607db5d446c7b390d375d47c3fddf0b86b8ef | refs/heads/master | 2021-01-10T07:30:43.366878 | 2015-11-21T18:45:54 | 2015-11-21T18:45:54 | 46,628,463 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,847 | java | package com.gp.app.jgap.problem;
import org.jgap.InvalidConfigurationException;
import org.jgap.gp.CommandGene;
import org.jgap.gp.GPProblem;
import org.jgap.gp.function.Add;
import org.jgap.gp.function.Multiply;
import org.jgap.gp.impl.DeltaGPFitnessEvaluator;
import org.jgap.gp.impl.GPConfiguration;
import org.jgap.gp.impl.GPGenotype;
import org.jgap.gp.terminal.Terminal;
import org.jgap.gp.terminal.Variable;
import com.gp.app.jgap.test.fitness.SimpleMathTestFitnessFunction;
/**
* @author carlos
*
*/
public class SimpleMathTest extends GPProblem {
@SuppressWarnings("boxing")
private static Integer[] INPUT_1 = { 26, 8, 20, 33, 37 };
@SuppressWarnings("boxing")
private static Integer[] INPUT_2 = { 35, 24, 1, 11, 16 };
private static int[] OUTPUT = { 829, 141, 467, 1215, 1517 };
private Variable _xVariable;
private Variable _yVariable;
public SimpleMathTest() throws InvalidConfigurationException {
super(new GPConfiguration());
GPConfiguration config = getGPConfiguration();
_xVariable = Variable.create(config, "X", CommandGene.IntegerClass);
_yVariable = Variable.create(config, "Y", CommandGene.IntegerClass);
config.setGPFitnessEvaluator(new DeltaGPFitnessEvaluator());
config.setMaxInitDepth(4);
config.setPopulationSize(1000);
config.setMaxCrossoverDepth(8);
config.setFitnessFunction(new SimpleMathTestFitnessFunction(INPUT_1, INPUT_2, OUTPUT, _xVariable, _yVariable));
config.setStrictProgramCreation(true);
}
@SuppressWarnings("rawtypes")
@Override
public GPGenotype create() throws InvalidConfigurationException {
GPConfiguration config = getGPConfiguration();
// The return type of the GP program.
Class[] types = { CommandGene.IntegerClass };
// Arguments of result-producing chromosome: none
Class[][] argTypes = { {} };
// Next, we define the set of available GP commands and terminals to
// use.
CommandGene[][] nodeSets = {
{
_xVariable,
_yVariable,
new Add(config, CommandGene.IntegerClass),
new Multiply(config, CommandGene.IntegerClass),
new Terminal(config, CommandGene.IntegerClass, 0.0, 10.0, true)
}
};
GPGenotype result = GPGenotype.randomInitialGenotype(config, types, argTypes,
nodeSets, 20, true);
return result;
}
public static void main(String[] args) throws Exception {
GPProblem problem = new SimpleMathTest();
GPGenotype gp = problem.create();
gp.setVerboseOutput(true);
gp.evolve(30);
System.out.println("Formulaiscover: x^2 + 2y + 3x + 5");
gp.outputSolution(gp.getAllTimeBest());
}
}
| [
"edwardmcn64@gmail.com"
] | edwardmcn64@gmail.com |
ffe22ecb3413df336040582699e99b472aac7653 | 95d2977423b81429af9a7ee4ff8f9153646960be | /src/14_GUI_dan_Database/TestBackendBuku1841720175Fajar.java | c5082efd061f0ffd97a65d8ddc90e401ce7f0401 | [] | no_license | fajarpw/laporan-praktikum-pbo-2019 | a2286d0ea10e9cf223e8c164219543bed8bca353 | 89dd060f5d7eac2ecfab8a7db4b37794d6df8477 | refs/heads/master | 2022-03-24T02:15:37.628208 | 2019-12-27T06:56:57 | 2019-12-27T06:56:57 | 205,799,041 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,168 | java | package frontend;
import backend.Buku1841720175Fajar;
public class TestBackendBuku1841720175Fajar {
public static void main(String[] args) {
Buku1841720175Fajar buk1 = new Buku1841720175Fajar(1,"Dasar Pemrograman Java", "Pustaka Media", "Siti");
Buku1841720175Fajar buk2 = new Buku1841720175Fajar(2,"Dasar Pemrograman C++", "Pustaka Media", "Tono");
Buku1841720175Fajar buk3 = new Buku1841720175Fajar(3,"Dasar Pemrograman Python", "Pustaka Media", "Budi");
// test insert
buk1.saveFajar();
buk2.saveFajar();
buk3.saveFajar();
// test update
buk2.setPenulis("Tini");
buk2.saveFajar();
// test delete
buk3.delete();
// test select all
for (Buku1841720175Fajar b : new Buku1841720175Fajar().getAll()) {
System.out.println("Judul: " + b.getJudul() + ", Penulis: " + b.getPenulis() + ", Penerbit: " + b.getPenerbit());
}
// test search
for (Buku1841720175Fajar b : new Buku1841720175Fajar().searchFajar("Budi")) {
System.out.println("Judul: " + b.getJudul() + ", Penulis: " + b.getPenulis() + ", Penerbit: " + b.getPenerbit());
}
}
}
| [
"cmdfaj"
] | cmdfaj |
b6f55a40b444897be4e16a681e0c02e20801aba8 | a35b21de1b30f820214ed6a3f42543e0005c295b | /AJC/05.SpringEssential/04.Spring_MVC/01.SpringWebApp/src/main/java/com/eshop/config/AppConfig.java | 1ead949de54bab999f4a9980a1de77f4271e1551 | [] | no_license | rosie-s/courses | a8baf2c0e0962b8e2429958e54cf1591f7aaaebf | 379d3b1472e4e79d40ea3b539368bd321174c209 | refs/heads/master | 2022-06-23T19:39:50.897293 | 2020-10-23T13:32:26 | 2020-10-23T13:32:26 | 117,899,193 | 2 | 0 | null | 2022-06-21T04:07:50 | 2018-01-17T22:14:54 | Java | UTF-8 | Java | false | false | 211 | java | package com.eshop.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
@Configuration
@Import(WebConfig.class)
public class AppConfig {
}
| [
"rosie-s@users.noreply.github.com"
] | rosie-s@users.noreply.github.com |
83c830dbb063da481526925c00a255e38204ad97 | 3d166fe2d9d76665262b09999efde6c2f772f838 | /app/src/main/java/com/hyperkonnect/shopsup/dummydata/DummyOfferData.java | 8bdada90b6f10221ca1bf74261f18b8538fbd24e | [] | no_license | abhiram-shopsup/ShopsUP--Android---New | acddc02b09027a30ccd91a6a643c551df0f0a3e4 | 3449f0cfc247caf81a1b71c8fd3da9acca65c04e | refs/heads/master | 2021-01-12T08:03:56.638461 | 2017-03-01T06:14:42 | 2017-03-01T06:14:42 | 77,115,830 | 0 | 2 | null | null | null | null | UTF-8 | Java | false | false | 1,427 | java | package com.hyperkonnect.shopsup.dummydata;
import android.util.Log;
import com.hyperkonnect.shopsup.adapters.ActivityLogAdapter;
import com.hyperkonnect.shopsup.adapters.OfferAdapter;
import com.hyperkonnect.shopsup.model.OfferModel;
import java.util.List;
/**
* Created by prakash-bala on 30/1/17.
*/
public class DummyOfferData {
public DummyOfferData(List<OfferModel> offerList, OfferAdapter adapter){
OfferModel offerModel = new OfferModel("Dummy Data","Ends Today");
offerList.add(offerModel);
offerModel = new OfferModel("Dummy Data","Ends Today");
offerList.add(offerModel);
offerModel = new OfferModel("Dummy Data","Ends Today");
offerList.add(offerModel);
offerModel = new OfferModel("Dummy Data","Ends Tomorrow");
offerList.add(offerModel);
adapter.notifyDataSetChanged();
}
public DummyOfferData(List<OfferModel> offerList, ActivityLogAdapter adapter){
OfferModel offerModel = new OfferModel("Dummy Data","Ends Today");
offerList.add(offerModel);
offerModel = new OfferModel("Dummy Data","Ends Today");
offerList.add(offerModel);
offerModel = new OfferModel("Dummy Data","Ends Today");
offerList.add(offerModel);
offerModel = new OfferModel("Dummy Data","Ends Tomorrow");
offerList.add(offerModel);
adapter.notifyDataSetChanged();
}
}
| [
"prakashbala.b24@gmail.com"
] | prakashbala.b24@gmail.com |
fb7d6a5e72355ec51a691e3ef3b4fad58129cecb | 745c9d45b0f3fc469609528bfa608b0899d19ab7 | /src/main/java/pcl/lc/irc/hooks/Thanks.java | 1d5bade59d37ee139b19837e5147b272e2dd531d | [] | no_license | CaitlynMainer/MichiBot-Gitter | 7893b9521c37c5023f8d228e2a08e28e49a0de98 | 08ba4fce583c560293e571fc136cb34df18e520e | refs/heads/master | 2021-01-20T16:38:31.535015 | 2015-11-20T02:27:43 | 2015-11-20T02:27:43 | 43,776,247 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 621 | java | package pcl.lc.irc.hooks;
import org.pircbotx.hooks.ListenerAdapter;
import org.pircbotx.hooks.events.MessageEvent;
import pcl.lc.irc.IRCBot;
@SuppressWarnings("rawtypes")
public class Thanks extends ListenerAdapter {
@SuppressWarnings({ "unchecked" })
@Override
public void onMessage(final MessageEvent event) throws Exception {
super.onMessage(event);
if (event.getMessage().toLowerCase().contains(IRCBot.ournick.toLowerCase())) {
if (event.getMessage().toLowerCase().contains("thanks") || event.getMessage().toLowerCase().contains("thank you")) {
event.respond("You're welcome!");
}
}
}
}
| [
"Michiyo.Ravencroft@gmail.com"
] | Michiyo.Ravencroft@gmail.com |
38d625aadbd6c05cd4d732a5e39c306ba181dbda | 23b0bcb9aed548e58440d3c4ca28da894765c737 | /skinlib/src/main/java/com/itxiao/skinlib/SkinActivity.java | 1be506dc61d7a13b9529da1ff48119c32a869fde | [] | no_license | itxiaox/SkinDemo | 0eee2c7b984e2784d6fb5d0629cff22d64a4b3f5 | 87e0b5182c410ea6cebe4f8c13db5141d644995c | refs/heads/master | 2022-08-16T11:18:40.732304 | 2020-05-26T00:47:26 | 2020-05-26T00:47:26 | 266,909,509 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 881 | java | package com.itxiao.skinlib;
import android.app.Activity;
import android.os.Bundle;
import android.os.Environment;
import androidx.annotation.Nullable;
import androidx.core.view.LayoutInflaterCompat;
public abstract class SkinActivity extends Activity {
SkinFactory skinFactory;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
SkinManager.getInstance().setContext(this);
skinFactory = new SkinFactory();
//它会拦截到布局中所有的控件
LayoutInflaterCompat.setFactory2(getLayoutInflater(),skinFactory );
//执行setContentView之前,收集所有换肤的控件
}
public void changeSkin(){
skinFactory.apply();
}
@Override
protected void onResume() {
super.onResume();
// skinFactory.apply();
}
}
| [
"it_xiaox@163.com"
] | it_xiaox@163.com |
a298d4cd7facf8a1453454b7668add8ae48d3aab | a54e64834bc4d1fd354ab086e06c22c307ce8f3c | /PIDExercise/src/org/usfirst/frc/team2212/robot/RobotMap.java | be872031c7b375b7f7cceb27a12ba71a35572205 | [] | no_license | Spikes-2212-Programming-Guild/PID-Exercise | 08cb1b1144f4d52b86427b5eafea1677e2a73e55 | 2e2adde3a0c961ff46938c15edb73343de31a1fb | refs/heads/master | 2020-03-28T04:18:20.936459 | 2018-09-06T18:14:48 | 2018-09-06T18:14:48 | 147,706,604 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,154 | java | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
package org.usfirst.frc.team2212.robot;
/**
* The RobotMap is a mapping from the ports sensors and actuators are wired into
* to a variable name. This provides flexibility changing wiring, makes checking
* the wiring easier and significantly reduces the number of magic numbers
* floating around.
*/
public class RobotMap {
interface PWM {
public static final int LEFT_SPEED_CONTROLLER = 0;
public static final int RIGHT_SPEED_CONTROLLER = 1;
}
interface DIO {
public static final int LEFT_ENCODER_A = 0;
public static final int LEFT_ENCODER_B = 1;
public static final int RIGHT_ENCODER_A = 3;
public static final int RIGHT_ENCODER_B = 4;
}
}
| [
"34137153+Ergoold@users.noreply.github.com"
] | 34137153+Ergoold@users.noreply.github.com |
5f6d3acfe7707950468910afc2170ab7f5a38a8a | 0207e5887754717516020ab1472d70305be2a895 | /src/main/java/ru/spbau/mit/MessengerServer.java | 7521f469ef1dc133c9c2b5ef5c78b4b501b09ca4 | [] | no_license | N-buga/spbau-software-design | f284c8d93ae69599bf5f75808d528fd6c2d88a46 | 37cc3c429784b27347f30ba78e3869d086a57ecf | refs/heads/master | 2020-06-13T06:19:49.865785 | 2016-11-30T21:58:07 | 2016-11-30T21:58:07 | 75,422,563 | 0 | 0 | null | 2016-12-02T18:56:41 | 2016-12-02T18:56:41 | null | UTF-8 | Java | false | false | 1,468 | java | package ru.spbau.mit;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
/**
* The MessengerServer class provides realisation of server that can send and receive messages
*/
public class MessengerServer {
private MessagesReceiver messagesReceiver;
private int port;
private Connection connection = null;
public MessengerServer(int port, MessengerGUIMain messengerGUIMain) {
this.port = port;
this.messagesReceiver = messengerGUIMain;
}
/**
* This method starts server and receives messages
*/
public synchronized void start() throws IOException {
new Thread(() -> {
try {
ServerSocket serverSocket = new ServerSocket(port);
Socket socket = serverSocket.accept();
connection = new Connection(socket.getInputStream(), socket.getOutputStream(), messagesReceiver);
connection.start();
} catch (IOException ignored) {
}
}).start();
}
/**
* This method sends message to client
*/
public synchronized void sendMessage(String name, String message) throws IOException {
if (connection == null) {
throw new IOException("No client connected");
}
connection.sendMessage(name, message);
}
/**
* This method stops server
*/
public synchronized void stop() {
connection.stop();
}
}
| [
"Labutin.IgorL@gmail.com"
] | Labutin.IgorL@gmail.com |
732bd8ee2f233903b368ea67c1e1444a0b51581c | abf6d84678dfea585da438eceb5c06085a79c3d7 | /Lv_Toon/src/main/java/com/level/toon/dao/DayDAO.java | 779a0425d1bab0d16129c76d28e25a0718fa3c83 | [] | no_license | god-java/project | fbbcf1510fcd3d39b82b2c0bf873cf1eecb5da66 | 5b0bb98e02672e09565ce1b07f256e98405f6a63 | refs/heads/master | 2020-03-29T19:03:19.749799 | 2018-09-27T14:52:38 | 2018-09-27T14:52:38 | 150,245,109 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 170 | java | package com.level.toon.dao;
import java.util.ArrayList;
import com.level.toon.dto.DayDTO;
public interface DayDAO {
public ArrayList<DayDTO> day_list();
}
| [
"gkdlwkqk@gmail.com"
] | gkdlwkqk@gmail.com |
f207d1e2b00d05ea5ffb5a334ac3d05196da372e | ec0e69aa3e291020f596dded14078dd659a0c4e8 | /src/main/java/dev/alvo/productinventory/api/request/product/ProductCreateRequest.java | 283f4d9516751cce5f1044dc6d1d79f2801eae35 | [] | no_license | VAlux/product-inventory | b91207bdb6c9485b0d893547d74fd8544cb5347e | e75ab005d90d1f8ca5a8588ac342561ce2aa9c08 | refs/heads/master | 2023-02-24T17:03:26.345942 | 2021-01-22T19:37:50 | 2021-01-22T19:37:50 | 329,146,119 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,742 | java | package dev.alvo.productinventory.api.request.product;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import java.math.BigDecimal;
@ApiModel(description = "New product creation request")
public final class ProductCreateRequest {
@NotBlank
@ApiModelProperty(example = "fancy product", required = true)
private final String name;
@PositiveOrZero
@ApiModelProperty(example = "500.23", required = true)
private final BigDecimal price;
@NotNull
@ApiModelProperty(example = "42", required = true)
private final Long categoryId;
@ApiModelProperty(example = "USD")
private final String currency;
public ProductCreateRequest(String name, BigDecimal price, Long categoryId) {
this.name = name;
this.price = price;
this.categoryId = categoryId;
this.currency = "EUR";
}
@JsonCreator
public ProductCreateRequest(@JsonProperty("name") String name,
@JsonProperty("price") BigDecimal price,
@JsonProperty("categoryId") Long categoryId,
@JsonProperty("currency") String currency) {
this.name = name;
this.price = price;
this.categoryId = categoryId;
this.currency = currency;
}
public String getName() {
return name;
}
public BigDecimal getPrice() {
return price;
}
public Long getCategoryId() {
return categoryId;
}
public String getCurrency() {
return currency;
}
}
| [
"olex3000sp@gmail.com"
] | olex3000sp@gmail.com |
de4e8c14f17f967a315280ecec18932e351752ef | 26af0f0f93b7f3f66d2b0125c7e7dc2046c3a285 | /app/src/main/java/com/shijinsz/shijin/utils/SimpleCountDownTimer.java | 7e4e649aa4813517b2c3eb1eb31924dbda6f812e | [] | no_license | timipaul/shijin3_android-dev | 13d7bd3bb7fc5f93b9fac0e5ea4b57efbeed37a6 | fd45639badd151e3f201a2295b6e490aa771c401 | refs/heads/master | 2021-01-04T08:31:22.363168 | 2020-02-20T03:36:13 | 2020-02-20T03:36:13 | 240,462,907 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,677 | java | package com.shijinsz.shijin.utils;
import android.os.CountDownTimer;
import android.widget.TextView;
public class SimpleCountDownTimer extends CountDownTimer {
// 默认倒计时间隔
private static final long DEFAULT_INTERVAL = 100L;
/**
* 秒,分,时对应的毫秒数
*/
private int sec = 1000, min = sec * 60, hr = min * 60;
/**
* 显示时间的视图
*/
private TextView tvDisplay;
/**
* 结束监听
*/
private static OnFinishListener onFinishListener;
/**
* @param millisInFuture 倒计时总时间 单位:毫秒
* The number of millis in the future from the call
* to {@link #start()} until the countdown is done and {@link #onFinish()}
* is called.
* @param countDownInterval 倒计时间隔 单位:毫秒
* The interval along the way to receive
* {@link #onTick(long)} callbacks.
* @param tvDisplay 显示时间的视图
*/
public SimpleCountDownTimer(long millisInFuture, long countDownInterval, TextView tvDisplay) {
super(millisInFuture, countDownInterval);
this.tvDisplay = tvDisplay;
}
/**
* @param millisInFuture 倒计时总时间 单位:毫秒
* The number of millis in the future from the call
* to {@link #start()} until the countdown is done and {@link #onFinish()}
* is called.
*
* @param tvDisplay 显示时间的视图
*/
public SimpleCountDownTimer(long millisInFuture, TextView tvDisplay) {
super(millisInFuture, DEFAULT_INTERVAL);
this.tvDisplay = tvDisplay;
}
/**
* 每一次间隔时间到后调用
*
* @param millisUntilFinished 剩余总时间 单位:毫秒
*/
@Override
public void onTick(long millisUntilFinished) {
// 剩余的小时,分钟,秒,毫秒
long lHr = millisUntilFinished / hr;
long lMin = (millisUntilFinished - lHr * hr) / min;
long lSec = (millisUntilFinished - lHr * hr - lMin * min) / sec;
long lMs = millisUntilFinished - lHr * hr - lMin * min - lSec * sec;
String strLHr = getTime(lHr);
String strLMin = getTime(lMin);
String strLSec = getTime(lSec);
String strLMs = getMs(lMs);
// 依次拼接时间 时:分:秒:毫秒
tvDisplay.setText("倒计时 " + strLMin + ":" + strLSec + ":" + strLMs);
}
/**
* 根据毫秒换算成相应单位后是否大于10来返回相应时间
*/
private String getTime(long time) {
return time > 10 ? String.valueOf(time) : "0" + time;
}
/**
* 获取毫秒
*/
private String getMs(long time) {
String strMs = String.valueOf(time);
return time > 100 ? strMs.substring(0, strMs.length() - 1) : "00";
}
/**
* 结束监听,可以在倒计时结束时做一些事
*/
public interface OnFinishListener {
void onFinish();
}
/**
* 设置结束监听
*
* @param onFinishListener 结束监听对象
*/
public SimpleCountDownTimer setOnFinishListener(OnFinishListener onFinishListener) {
SimpleCountDownTimer.onFinishListener = onFinishListener;
return this;
}
/**
* 倒计时结束时调用
*/
@Override
public void onFinish() {
tvDisplay.setText("00:00:00");
if (onFinishListener != null)
onFinishListener.onFinish();
}
}
| [
"1065997545@qq.com"
] | 1065997545@qq.com |
b037085329bc23d07e082c328890105c9c567893 | e1c820ef7e4c661d28e164c79541b0fefb371fe4 | /src/main/java/io/github/jhipster/application/web/rest/JobHistoryResource.java | 7f407d2f526238316e4a1734a89ffea1cbc5e62e | [] | no_license | renemartinezb86/mb3-sample-app | be2c14cc708e517cb0b25ac5d20b91197ed1b3e3 | 1a8bbecab838ac040d8f2f4bf7c3e98e96bc34f5 | refs/heads/master | 2022-12-25T01:19:37.811527 | 2019-07-26T17:37:05 | 2019-07-26T17:37:05 | 199,056,457 | 0 | 0 | null | 2022-12-16T05:02:34 | 2019-07-26T17:33:19 | Java | UTF-8 | Java | false | false | 5,951 | java | package io.github.jhipster.application.web.rest;
import io.github.jhipster.application.domain.JobHistory;
import io.github.jhipster.application.service.JobHistoryService;
import io.github.jhipster.application.web.rest.errors.BadRequestAlertException;
import io.github.jhipster.web.util.HeaderUtil;
import io.github.jhipster.web.util.PaginationUtil;
import io.github.jhipster.web.util.ResponseUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.util.MultiValueMap;
import org.springframework.web.util.UriComponentsBuilder;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.List;
import java.util.Optional;
/**
* REST controller for managing {@link io.github.jhipster.application.domain.JobHistory}.
*/
@RestController
@RequestMapping("/api")
public class JobHistoryResource {
private final Logger log = LoggerFactory.getLogger(JobHistoryResource.class);
private static final String ENTITY_NAME = "jobHistory";
@Value("${jhipster.clientApp.name}")
private String applicationName;
private final JobHistoryService jobHistoryService;
public JobHistoryResource(JobHistoryService jobHistoryService) {
this.jobHistoryService = jobHistoryService;
}
/**
* {@code POST /job-histories} : Create a new jobHistory.
*
* @param jobHistory the jobHistory to create.
* @return the {@link ResponseEntity} with status {@code 201 (Created)} and with body the new jobHistory, or with status {@code 400 (Bad Request)} if the jobHistory has already an ID.
* @throws URISyntaxException if the Location URI syntax is incorrect.
*/
@PostMapping("/job-histories")
public ResponseEntity<JobHistory> createJobHistory(@RequestBody JobHistory jobHistory) throws URISyntaxException {
log.debug("REST request to save JobHistory : {}", jobHistory);
if (jobHistory.getId() != null) {
throw new BadRequestAlertException("A new jobHistory cannot already have an ID", ENTITY_NAME, "idexists");
}
JobHistory result = jobHistoryService.save(jobHistory);
return ResponseEntity.created(new URI("/api/job-histories/" + result.getId()))
.headers(HeaderUtil.createEntityCreationAlert(applicationName, false, ENTITY_NAME, result.getId().toString()))
.body(result);
}
/**
* {@code PUT /job-histories} : Updates an existing jobHistory.
*
* @param jobHistory the jobHistory to update.
* @return the {@link ResponseEntity} with status {@code 200 (OK)} and with body the updated jobHistory,
* or with status {@code 400 (Bad Request)} if the jobHistory is not valid,
* or with status {@code 500 (Internal Server Error)} if the jobHistory couldn't be updated.
* @throws URISyntaxException if the Location URI syntax is incorrect.
*/
@PutMapping("/job-histories")
public ResponseEntity<JobHistory> updateJobHistory(@RequestBody JobHistory jobHistory) throws URISyntaxException {
log.debug("REST request to update JobHistory : {}", jobHistory);
if (jobHistory.getId() == null) {
throw new BadRequestAlertException("Invalid id", ENTITY_NAME, "idnull");
}
JobHistory result = jobHistoryService.save(jobHistory);
return ResponseEntity.ok()
.headers(HeaderUtil.createEntityUpdateAlert(applicationName, false, ENTITY_NAME, jobHistory.getId().toString()))
.body(result);
}
/**
* {@code GET /job-histories} : get all the jobHistories.
*
* @param pageable the pagination information.
* @param queryParams a {@link MultiValueMap} query parameters.
* @param uriBuilder a {@link UriComponentsBuilder} URI builder.
* @return the {@link ResponseEntity} with status {@code 200 (OK)} and the list of jobHistories in body.
*/
@GetMapping("/job-histories")
public ResponseEntity<List<JobHistory>> getAllJobHistories(Pageable pageable, @RequestParam MultiValueMap<String, String> queryParams, UriComponentsBuilder uriBuilder) {
log.debug("REST request to get a page of JobHistories");
Page<JobHistory> page = jobHistoryService.findAll(pageable);
HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(uriBuilder.queryParams(queryParams), page);
return ResponseEntity.ok().headers(headers).body(page.getContent());
}
/**
* {@code GET /job-histories/:id} : get the "id" jobHistory.
*
* @param id the id of the jobHistory to retrieve.
* @return the {@link ResponseEntity} with status {@code 200 (OK)} and with body the jobHistory, or with status {@code 404 (Not Found)}.
*/
@GetMapping("/job-histories/{id}")
public ResponseEntity<JobHistory> getJobHistory(@PathVariable Long id) {
log.debug("REST request to get JobHistory : {}", id);
Optional<JobHistory> jobHistory = jobHistoryService.findOne(id);
return ResponseUtil.wrapOrNotFound(jobHistory);
}
/**
* {@code DELETE /job-histories/:id} : delete the "id" jobHistory.
*
* @param id the id of the jobHistory to delete.
* @return the {@link ResponseEntity} with status {@code 204 (NO_CONTENT)}.
*/
@DeleteMapping("/job-histories/{id}")
public ResponseEntity<Void> deleteJobHistory(@PathVariable Long id) {
log.debug("REST request to delete JobHistory : {}", id);
jobHistoryService.delete(id);
return ResponseEntity.noContent().headers(HeaderUtil.createEntityDeletionAlert(applicationName, false, ENTITY_NAME, id.toString())).build();
}
}
| [
"jhipster-bot@jhipster.tech"
] | jhipster-bot@jhipster.tech |
f397ba9c4fb1d874f7baf98c5c5897d51e7bc222 | 3461c2cf43a7095677a494a2a3a108ad653bb3eb | /src/net/jumperz/net/MAbstractParameter.java | b33dbd8b9c112a49fa89bccf433682b053095120 | [] | no_license | sanyecao2314/MonjaDB | 409e42ffa84bc7c119eb14195f7aaade9d972a9f | 3c224650bebf955f9b96d674b55a96f5fe592b30 | refs/heads/master | 2020-12-11T05:43:26.866167 | 2016-05-10T02:15:00 | 2016-05-10T02:15:00 | 58,419,533 | 0 | 2 | null | 2016-05-10T01:20:54 | 2016-05-10T01:20:54 | null | UTF-8 | Java | false | false | 705 | java | package net.jumperz.net;
public interface MAbstractParameter
{
public static final int UNKNOWN = -1;
public static final int URI = 0;
public static final int BODY = 1;
public static final int MULTIPART = 2;
public static final int COOKIE = 3;
public static final int HEADER = 4;
public static final int PARAM = 5;
public static final int POLLUTED = 6;
// --------------------------------------------------------------------------------
public int getType();
public String getName();
public String getValue();
public void setValue( String s );
public void setName( String s );
// --------------------------------------------------------------------------------
} | [
"kinyuka@gmail.com"
] | kinyuka@gmail.com |
150fa4cdb717a3b277ede9780c25230e74457212 | 97cf83be9df0dfb2e335383df5806ad9b693e0ab | /src/main/java/SimpleYesChat/YesChat/Messages/answers/TextMessageAnswer.java | 124b90619ebac7b1115826909168a9b14858c725 | [] | no_license | AlFlanker/YesChat | 4f87867283ed52fd2628e3e654e951f78728dee3 | c8a1c9d5947b97b5fdf7538a7e88afdfe084dfeb | refs/heads/master | 2022-06-20T14:37:21.317249 | 2019-01-05T19:28:27 | 2019-01-05T19:28:27 | 261,706,826 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,761 | java | package SimpleYesChat.YesChat.Messages.answers;
import SimpleYesChat.YesChat.Messages.YesChatMessages;
import SimpleYesChat.YesChat.UserData.GlobalData;
import SimpleYesChat.YesChat.UserData.UserData;
import SimpleYesChat.YesChat.domain.ChatMessage;
import SimpleYesChat.YesChat.domain.MessageRepo;
import SimpleYesChat.YesChat.domain.User;
import SimpleYesChat.YesChat.domain.UserRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.web.socket.WebSocketSession;
import java.util.Map;
import java.util.Optional;
@Scope("prototype")
@Component
public class TextMessageAnswer extends Message {
@Override
public void init(YesChatMessages messages) {
}
@Autowired
private GlobalData globalData;
@Autowired
private MessageRepo messageRepo;
@Autowired
private UserRepo userRepo;
private String fromID;
private long messageID;
public String getFromID() {
return fromID;
}
public void setFromID(String fromID) {
this.fromID = fromID;
}
public long getMessageID() {
return messageID;
}
public void setMessageID(long messageID) {
this.messageID = messageID;
}
@Override
public void execute(WebSocketSession session) {
answerMessage(this,session);
}
protected void answerMessage(TextMessageAnswer request, WebSocketSession session) {
if(!isAuth(session)){
return;
}
request.setFromID(globalData.getSessions().get(session).getId());
Optional<Map.Entry<WebSocketSession, UserData>> entry;
if((entry = globalData.getSessions().entrySet().stream()
.filter(e->e.getValue().getId().equals(request.getToID()))
.findFirst()).isPresent()){
UserData ud = entry.get().getValue();
User user = userRepo.findByUsername(ud.getLogin());
if(user!=null){
ChatMessage message = messageRepo.findById(messageID);
if(message!=null){
message.setReceived(true);
messageRepo.save(message);
sendResponse(request, entry.get().getKey());
}
}
}
}
protected boolean isAuth(WebSocketSession session){
if(!globalData.getSessions().get(session).isAuth()){
Answer answer = new Answer();
answer.setDescription("please sign up");
sendResponse(answer,session);
return false;
}
return true;
}
}
| [
"alexflanker89@gmail.com"
] | alexflanker89@gmail.com |
bb326a88ff522a073dfec091955ce954681128aa | 600f8b0c7e30852bfaad14dbc97e1237dd6d8d7a | /src/main/java/com/angkorteam/tomcat/message/ApplicationMessage.java | e45408bda5bf734d128a6849a87abf53760d8092 | [
"Apache-2.0"
] | permissive | PkayJava/tomcat-extension | b12ef98abc94c68cd5c5f54c0b84536b67b915c2 | bc0035920ead72bda99e7af1479b311236ee0456 | refs/heads/master | 2020-03-19T01:55:43.107896 | 2018-06-03T08:57:39 | 2018-06-03T08:57:39 | 135,583,920 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,656 | java | package com.angkorteam.tomcat.message;
public class ApplicationMessage {
private String instanceId;
private String event;
private String type;
private String name;
private String baseName;
private String displayName;
private String path;
private String version;
private String resource;
public String getInstanceId() {
return instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
public String getEvent() {
return event;
}
public void setEvent(String event) {
this.event = event;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getBaseName() {
return baseName;
}
public void setBaseName(String baseName) {
this.baseName = baseName;
}
public String getDisplayName() {
return displayName;
}
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public String getResource() {
return resource;
}
public void setResource(String resource) {
this.resource = resource;
}
}
| [
"pkayjava@gmail.com"
] | pkayjava@gmail.com |
9cfa63d8552ffb39840a19ed659b9c3aecc05c60 | 4c9f47c7cc55c092d66b5b057adf08e6e773c046 | /Scarlettx_47/application/EnggMart/app/src/main/java/com/enggmartservices/enggmart/activities/NewsPaperActivity.java | 7f2f62f40ccc9b3369127a69b86ea3cbbb691cd9 | [] | no_license | dongyanchaoTJ/LNMHacks-3.0-Submission | b18b54ad374312c636b6324aabbd1f70bb83a1be | 72a8289facfe5d2d13c47d4c240ddddc03ca2842 | refs/heads/master | 2021-04-19T14:26:32.568784 | 2018-11-14T09:12:37 | 2018-11-14T09:12:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,275 | java | package com.enggmartservices.enggmart.activities;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.LinearLayout;
import com.enggmartservices.enggmart.R;
import com.enggmartservices.enggmart.utility.Utils;
public class NewsPaperActivity extends AppCompatActivity {
private LinearLayout b11, b12, b13, b14, b15, b16, b17, b18, b19;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.newspaper);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
Utils.darkenStatusBar(this, R.color.colorPrimary);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setHomeButtonEnabled(true);
getSupportActionBar().setDisplayShowHomeEnabled(true);
toolbar.setNavigationOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onBackPressed();
}
});
setTitle("Newspaper");
b11 = findViewById(R.id.first);
b11.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.timesofindia.indiatimes.com/"));
startActivity(i);
}
});
b12 = findViewById(R.id.second);
b12.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.hindustantimes.com/"));
startActivity(i);
}
});
b13 = findViewById(R.id.third);
b13.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.thehindu.com/"));
startActivity(i);
}
});
b14 = findViewById(R.id.fourth);
b14.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.bbc.com/"));
startActivity(i);
}
});
b15 = findViewById(R.id.fifth);
b15.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.livehindustan.com/"));
startActivity(i);
}
});
b16 = findViewById(R.id.sixth);
b16.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.jagran.com/"));
startActivity(i);
}
});
b17 = findViewById(R.id.seventh);
b17.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.bhaskar.com/"));
startActivity(i);
}
});
b18 = findViewById(R.id.eight);
b18.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.patrika.com/"));
startActivity(i);
}
});
b19 = findViewById(R.id.ninth);
b19.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.indianexpress.com/"));
startActivity(i);
}
});
}
@Override
public void onBackPressed() {
finish();
}
}
| [
"karanverma2855@gmail.com"
] | karanverma2855@gmail.com |
9cfa01beee24c23d8d06882f48a32da5a95ed0d7 | f321db1ace514d08219cc9ba5089ebcfff13c87a | /generated-tests/random/tests/s18/3_gson/evosuite-tests/com/google/gson/internal/LinkedHashTreeMap_ESTest_scaffolding.java | ab15eb1ea436fdcb5022e23f1c6c98133f091a0f | [] | no_license | sealuzh/dynamic-performance-replication | 01bd512bde9d591ea9afa326968b35123aec6d78 | f89b4dd1143de282cd590311f0315f59c9c7143a | refs/heads/master | 2021-07-12T06:09:46.990436 | 2020-06-05T09:44:56 | 2020-06-05T09:44:56 | 146,285,168 | 2 | 2 | null | null | null | null | UTF-8 | Java | false | false | 5,307 | java | /**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Sat Mar 23 02:53:16 GMT 2019
*/
package com.google.gson.internal;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.junit.AfterClass;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
import static org.evosuite.shaded.org.mockito.Mockito.*;
@EvoSuiteClassExclude
public class LinkedHashTreeMap_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "com.google.gson.internal.LinkedHashTreeMap";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100;
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED;
org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT();
org.evosuite.runtime.classhandling.JDKClassResetter.init();
setSystemProperties();
initializeClasses();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
try { initMocksToAvoidTimeoutsInTheTests(); } catch(ClassNotFoundException e) {}
}
@AfterClass
public static void clearEvoSuiteFramework(){
Sandbox.resetDefaultSecurityManager();
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler();
org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode();
setSystemProperties();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks();
org.evosuite.runtime.classhandling.JDKClassResetter.reset();
resetClasses();
org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
public static void setSystemProperties() {
java.lang.System.setProperties((java.util.Properties) defaultProperties.clone());
java.lang.System.setProperty("user.dir", "/home/apaniche/performance/Dataset/gordon_scripts/projects/3_gson");
java.lang.System.setProperty("java.io.tmpdir", "/tmp");
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(LinkedHashTreeMap_ESTest_scaffolding.class.getClassLoader() ,
"com.google.gson.internal.LinkedHashTreeMap",
"com.google.gson.internal.LinkedHashTreeMap$AvlIterator",
"com.google.gson.internal.LinkedHashTreeMap$1",
"com.google.gson.internal.LinkedHashTreeMap$Node",
"com.google.gson.internal.LinkedHashTreeMap$LinkedTreeMapIterator",
"com.google.gson.internal.LinkedHashTreeMap$EntrySet$1",
"com.google.gson.internal.LinkedHashTreeMap$KeySet$1",
"com.google.gson.internal.LinkedHashTreeMap$EntrySet",
"com.google.gson.internal.LinkedHashTreeMap$KeySet",
"com.google.gson.internal.LinkedHashTreeMap$AvlBuilder"
);
}
private static void initMocksToAvoidTimeoutsInTheTests() throws ClassNotFoundException {
mock(Class.forName("java.util.Comparator", false, LinkedHashTreeMap_ESTest_scaffolding.class.getClassLoader()));
}
private static void resetClasses() {
org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(LinkedHashTreeMap_ESTest_scaffolding.class.getClassLoader());
org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses(
"com.google.gson.internal.LinkedHashTreeMap$1",
"com.google.gson.internal.LinkedHashTreeMap",
"com.google.gson.internal.LinkedHashTreeMap$Node",
"com.google.gson.internal.LinkedHashTreeMap$AvlIterator",
"com.google.gson.internal.LinkedHashTreeMap$AvlBuilder",
"com.google.gson.internal.LinkedHashTreeMap$EntrySet",
"com.google.gson.internal.LinkedHashTreeMap$KeySet",
"com.google.gson.internal.LinkedHashTreeMap$LinkedTreeMapIterator",
"com.google.gson.internal.LinkedHashTreeMap$EntrySet$1",
"com.google.gson.internal.LinkedHashTreeMap$KeySet$1"
);
}
}
| [
"granogiovanni90@gmail.com"
] | granogiovanni90@gmail.com |
6450a2b41a6b4f71cab4c0a60e61f035fcaba697 | 4a7e837585763ee03f251955c675685fb767c021 | /src/main/java/com/xiaobu/repository/StudentRepository.java | e30e9aa76b6c537420a091865093dd1f8f4d408e | [] | no_license | xiaobu1994/ssh5 | 05047487e5547507907d849cf69ef39169f8d085 | f3ab6da6db72eb7bddc04959152c8587f62bdf75 | refs/heads/master | 2021-07-07T12:33:06.428219 | 2020-10-15T09:30:55 | 2020-10-15T09:30:55 | 194,591,292 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 326 | java | package com.xiaobu.repository;
import com.xiaobu.entity.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
/**
* @author tanhw119214 on 2018/6/12 17:36
*/
@Repository
public interface StudentRepository extends JpaRepository<Student, String> {
}
| [
"tanhw119214@hanslaser.com"
] | tanhw119214@hanslaser.com |
f086a4652b5b746cbbaadd801bf23c70ea30d866 | 5330ba40201b81cc13c9cd2aaca808a394259fb0 | /src/main/java/rigor/io/paragala/voter/voting/RandomString.java | d19b0677179528de74810a2ea35c0d4424a874a8 | [] | no_license | rigorio/paragala-voter-java | 6754d4f6ca2ef8332627b4eb81082df2891fb87d | 96a9d03e9635de26ca3329b723f892f49ca7a493 | refs/heads/master | 2020-04-15T12:16:51.714311 | 2019-03-03T13:42:00 | 2019-03-03T13:42:00 | 164,667,583 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,461 | java | package rigor.io.paragala.voter.voting;
import java.security.SecureRandom;
import java.util.Locale;
import java.util.Objects;
import java.util.Random;
public class RandomString {
public static final String upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
public static final String lower = upper.toLowerCase(Locale.ROOT);
public static final String digits = "0123456789";
public static final String alphanum = upper + lower + digits;
private final Random random;
private final char[] symbols;
private final char[] buf;
public RandomString(int length, Random random, String symbols) {
if (length < 1) throw new IllegalArgumentException();
if (symbols.length() < 2) throw new IllegalArgumentException();
this.random = Objects.requireNonNull(random);
this.symbols = symbols.toCharArray();
this.buf = new char[length];
}
/**
* Generate a random string.
*/
public String nextString() {
for (int idx = 0; idx < buf.length; ++idx)
buf[idx] = symbols[random.nextInt(symbols.length)];
return new String(buf);
}
/**
* Create an alphanumeric string generator.
*/
public RandomString(int length, Random random) {
this(length, random, alphanum);
}
/**
* Create an alphanumeric strings from a secure generator.
*/
public RandomString(int length) {
this(length, new SecureRandom());
}
/**
* Create session identifiers.
*/
public RandomString() {
this(21);
}
}
| [
"rigo.sarmiento@pm..me"
] | rigo.sarmiento@pm..me |
7eb153d3de0f256b3820c474f60b6572ade6f00e | 517a51541f89264e81683a6cca93f1ea8a28f701 | /src/proj12ZhangZhao/JavaCodeArea.java | f8819b57012fa636a2bd93364e8bc40a5a1a4c0d | [] | no_license | AquiLAlpha/proj12ZhangZhao | fb8d7eb74bc9f8f79b696884a5298ccb33cf8606 | 8b5a0cdeec588be32aceed068edf6213896e2f3b | refs/heads/master | 2020-04-22T18:40:11.027781 | 2019-02-25T16:06:21 | 2019-02-25T16:06:21 | 170,584,021 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,219 | java | /*
* File: JavaCodeArea.java
* Names: Zena Abulhab, Paige Hanssen, Kyle Slager, Kevin Zhou
* Project 5
* Date: October 12, 2018
* ---------------------------
* Edited By: Zeb Keith-Hardy, Michael Li, Iris Lian, Kevin Zhou
* Project 6/7/9
* Date: October 26, 2018/ November 3, 2018/ November 20, 2018
*/
package proj12ZhangZhao;
import org.fxmisc.richtext.CodeArea;
import org.fxmisc.richtext.model.StyleSpans;
import org.fxmisc.richtext.model.StyleSpansBuilder;
import org.reactfx.Subscription;
import java.time.Duration;
import java.util.Collection;
import java.util.Collections;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* This class is the controller for all of the toolbar functionality.
* Specifically the compile, compile and run, and stop buttons
*
* @author Zeb Keith-Hardy, Michael Li, Iris Lian, Kevin Zhou
* @author Kevin Ahn, Jackie Hang, Matt Jones, Kevin Zhou
* @author Zena Abulhab, Paige Hanssen, Kyle Slager Kevin Zhou
* @version 2.0
* @since 10-3-2018
*/
public class JavaCodeArea extends CodeArea{
/**
* This is the constructor of JavaCodeArea
*/
public JavaCodeArea(){
super();
this.subscribe();
}
/**
* Method obtained from the RichTextFX Keywords Demo. Method allows
* for syntax highlighting after a delay of 500ms after typing has ended.
* This method was copied from JavaKeyWordsDemo
* Original Author: Jordan Martinez
*/
private void subscribe() {
// recompute the syntax highlighting 500 ms after user stops editing area
Subscription codeCheck = this
// plain changes = ignore style changes that are emitted when syntax highlighting is reapplied
// multi plain changes = save computation by not rerunning the code multiple times
// when making multiple changes (e.g. renaming a method at multiple parts in file)
.multiPlainChanges()
// do not emit an event until 500 ms have passed since the last emission of previous stream
.successionEnds(Duration.ofMillis(500))
// run the following code block when previous stream emits an event
.subscribe(ignore -> this.setStyleSpans(0, JavaStyle.computeHighlighting(this.getText())));
}
}
/**
* source: https://moodle.colby.edu/pluginfile.php/294745/mod_resource/content/0/JavaKeywordsDemo.java
* @author Matt Jones, Kevin Zhou, Kevin Ahn, Jackie Hang
* @author Zena Abulhab, Paige Hanssen, Kyle Slager Kevin Zhou
* @version 3.0
* @since 09-30-2018
*/
class JavaStyle {
// a list of strings that contain the keywords for the IDE to identify.
private static final String[] KEYWORDS = new String[]{
"abstract", "assert", "boolean", "break", "byte",
"case", "catch", "char", "class", "const",
"continue", "default", "do", "double", "else",
"enum", "extends", "final", "finally", "float",
"for", "goto", "if", "implements", "import",
"instanceof", "int", "interface", "long", "native",
"new", "package", "private", "protected", "public",
"return", "short", "static", "strictfp", "super",
"switch", "synchronized", "this", "throw", "throws",
"transient", "try", "void", "volatile", "while", "var"
};
// the regex rules for the ide
private static final String IDENTIFIER_PATTERN = "[a-zA-Z]+[a-zA-Z0-9_]*";
private static final String FLOAT_PATTERN = "(\\d+\\.\\d+)";
private static final String INTCONST_PATTERN = "\\d+";
private static final String KEYWORD_PATTERN = "\\b(" + String.join("|", KEYWORDS) + ")\\b";
private static final String PAREN_PATTERN = "\\(|\\)";
private static final String BRACE_PATTERN = "\\{|\\}";
private static final String BRACKET_PATTERN = "\\[|\\]";
private static final String SEMICOLON_PATTERN = "\\;";
private static final String STRING_PATTERN = "\"([^\"\\\\]|\\\\.)*\"";
private static final String CHAR_PATTERN = "\"([^\'\\\\]|\\\\.)*\'";
private static final String COMMENT_PATTERN = "//[^\n]*" + "|" + "/\\*(.|\\R)*?\\*/";
private static final Pattern PATTERN = Pattern.compile(
"(?<KEYWORD>" + KEYWORD_PATTERN + ")"
+ "|(?<PAREN>" + PAREN_PATTERN + ")"
+ "|(?<BRACE>" + BRACE_PATTERN + ")"
+ "|(?<BRACKET>" + BRACKET_PATTERN + ")"
+ "|(?<SEMICOLON>" + SEMICOLON_PATTERN + ")"
+ "|(?<STRING>" + STRING_PATTERN + ")"
+ "|(?<COMMENT>" + COMMENT_PATTERN + ")"
+ "|(?<FLOAT>" + FLOAT_PATTERN + ")"
+ "|(?<INTCONST>" + INTCONST_PATTERN + ")"
+ "|(?<IDENTIFIER>" + IDENTIFIER_PATTERN + ")"
+ "|(?<CHARACTER>" + CHAR_PATTERN + ")"
);
/**
* Method to highlight all of the regex rules and keywords.
* Code obtained from the RichTextFX Demo from GitHub.
*
* @param text a string analyzed for proper syntax highlighting
*/
public static StyleSpans<Collection<String>> computeHighlighting(String text) {
Matcher matcher = PATTERN.matcher(text);
int lastKwEnd = 0;
StyleSpansBuilder<Collection<String>> spansBuilder
= new StyleSpansBuilder<>();
while (matcher.find()) {
String styleClass = matcher.group("KEYWORD") != null ? "keyword" :
matcher.group("PAREN") != null ? "paren" :
matcher.group("BRACE") != null ? "brace" :
matcher.group("BRACKET") != null ? "bracket" :
matcher.group("SEMICOLON") != null ? "semicolon" :
matcher.group("STRING") != null ? "string" :
matcher.group("COMMENT") != null ? "comment" :
matcher.group("IDENTIFIER") != null ? "identifier" :
matcher.group("INTCONST") != null ? "intconst" :
matcher.group("CHARACTER") != null ? "char" :
null; /* never happens */
assert styleClass != null;
spansBuilder.add(Collections.emptyList(), matcher.start() - lastKwEnd);
spansBuilder.add(Collections.singleton(styleClass), matcher.end() - matcher.start());
lastKwEnd = matcher.end();
}
spansBuilder.add(Collections.emptyList(), text.length() - lastKwEnd);
return spansBuilder.create();
}
}
| [
"zdq940816@yeah.net"
] | zdq940816@yeah.net |
0e02f0e3a2ab872ecace07814fd8e0c18240ba28 | 27bb2d12567fda57036f796f4a5583aae513fe9e | /GoogleMaven/src/main/java/fr/ynov/dap/GoogleMaven/auth/IdToken.java | 515370751be79d7d52072aac7de06bc21a761b78 | [] | no_license | LadexAndroid/Ynov_2018_dap | e7923a711e34160fed1da4ba1d90a3b2705ee23e | a52a08b8b8345e1c6ef0162f693adaac10deeee0 | refs/heads/master | 2020-04-08T17:40:43.614445 | 2018-11-29T12:21:46 | 2018-11-29T12:21:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,444 | java | package fr.ynov.dap.GoogleMaven.auth;
import java.util.Base64;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
@JsonIgnoreProperties(ignoreUnknown = true)
public class IdToken {
// NOTE: This is just a subset of the claims returned in the
// ID token. For a full listing, see:
// https://azure.microsoft.com/en-us/documentation/articles/active-directory-v2-tokens/#idtokens
@JsonProperty("exp")
private long expirationTime;
@JsonProperty("nbf")
private long notBefore;
@JsonProperty("tid")
private String tenantId;
private String nonce;
private String name;
private String email;
@JsonProperty("preferred_username")
private String preferredUsername;
@JsonProperty("oid")
private String objectId;
public static IdToken parseEncodedToken(String encodedToken, String nonce) {
// Encoded token is in three parts, separated by '.'
String[] tokenParts = encodedToken.split("\\.");
// The three parts are: header.token.signature
String idToken = tokenParts[1];
byte[] decodedBytes = Base64.getUrlDecoder().decode(idToken);
ObjectMapper mapper = new ObjectMapper();
IdToken newToken = null;
try {
newToken = mapper.readValue(decodedBytes, IdToken.class);
if (!newToken.isValid(nonce)) {
return null;
}
} catch (Exception e) {
e.printStackTrace();
}
return newToken;
}
public long getExpirationTime() {
return expirationTime;
}
public void setExpirationTime(long expirationTime) {
this.expirationTime = expirationTime;
}
public long getNotBefore() {
return notBefore;
}
public void setNotBefore(long notBefore) {
this.notBefore = notBefore;
}
public String getTenantId() {
return tenantId;
}
public void setTenantId(String tenantId) {
this.tenantId = tenantId;
}
public String getNonce() {
return nonce;
}
public void setNonce(String nonce) {
this.nonce = nonce;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPreferredUsername() {
return preferredUsername;
}
public void setPreferredUsername(String preferredUsername) {
this.preferredUsername = preferredUsername;
}
public String getObjectId() {
return objectId;
}
public void setObjectId(String objectId) {
this.objectId = objectId;
}
private Date getUnixEpochAsDate(long epoch) {
// Epoch timestamps are in seconds,
// but Jackson converts integers as milliseconds.
// Rather than create a custom deserializer, this helper will do
// the conversion.
return new Date(epoch * 1000);
}
private boolean isValid(String nonce) {
// This method does some basic validation
// For more information on validation of ID tokens, see
// https://azure.microsoft.com/en-us/documentation/articles/active-directory-v2-tokens/#validating-tokens
Date now = new Date();
// Check expiration and not before times
if (now.after(this.getUnixEpochAsDate(this.expirationTime)) ||
now.before(this.getUnixEpochAsDate(this.notBefore))) {
// Token is not within it's valid "time"
return false;
}
// Check nonce
if (!nonce.equals(this.getNonce())) {
// Nonce mismatch
return false;
}
return true;
}
}
| [
"fullescapeladex@gmail.com"
] | fullescapeladex@gmail.com |
c21f05b0f37c270d4d7dab2a69662548e69f410e | fc160694094b89ab09e5c9a0f03db80437eabc93 | /java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/jobservice/deletebatchpredictionjob/AsyncDeleteBatchPredictionJob.java | 67ac38ece8ecf25b3d5b1ea88962bbe53b0a3b84 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | googleapis/google-cloud-java | 4f4d97a145e0310db142ecbc3340ce3a2a444e5e | 6e23c3a406e19af410a1a1dd0d0487329875040e | refs/heads/main | 2023-09-04T09:09:02.481897 | 2023-08-31T20:45:11 | 2023-08-31T20:45:11 | 26,181,278 | 1,122 | 685 | Apache-2.0 | 2023-09-13T21:21:23 | 2014-11-04T17:57:16 | Java | UTF-8 | Java | false | false | 2,261 | java | /*
* Copyright 2023 Google LLC
*
* 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
*
* https://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.google.cloud.aiplatform.v1beta1.samples;
// [START aiplatform_v1beta1_generated_JobService_DeleteBatchPredictionJob_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.aiplatform.v1beta1.BatchPredictionJobName;
import com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest;
import com.google.cloud.aiplatform.v1beta1.JobServiceClient;
import com.google.longrunning.Operation;
public class AsyncDeleteBatchPredictionJob {
public static void main(String[] args) throws Exception {
asyncDeleteBatchPredictionJob();
}
public static void asyncDeleteBatchPredictionJob() throws Exception {
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
DeleteBatchPredictionJobRequest request =
DeleteBatchPredictionJobRequest.newBuilder()
.setName(
BatchPredictionJobName.of("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]")
.toString())
.build();
ApiFuture<Operation> future =
jobServiceClient.deleteBatchPredictionJobCallable().futureCall(request);
// Do something.
future.get();
}
}
}
// [END aiplatform_v1beta1_generated_JobService_DeleteBatchPredictionJob_async]
| [
"noreply@github.com"
] | noreply@github.com |
7b8069f75bd266589afcc8c90675982dd5dff26f | a3d92da2de7b38434fb7d5b22889332b58c7ff81 | /src/main/java/me/jclazz/liquibasedemo/enums/UserStatusEnums.java | 76d41fc4db47ab126f59210ab7754720b06ceb21 | [] | no_license | paly-with-spring-boot/liquibase-demo | e0349b240cecc7841c775b55f43a0c05af1d9aab | 421b6196d9b3111e9e90201835579814cfa06e2b | refs/heads/master | 2021-04-12T02:43:41.344588 | 2018-03-18T04:11:13 | 2018-03-18T04:11:13 | 125,691,407 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 171 | java | package me.jclazz.liquibasedemo.enums;
public enum UserStatusEnums {
CREATED, // 新建
REGULAR, // 正常
BANNED, // 临时封禁
DELETED // 删除
}
| [
"jclazz@outlook.com"
] | jclazz@outlook.com |
d58bc045bffde6645eaad9d99a6541d209ca5747 | 20eb62855cb3962c2d36fda4377dfd47d82eb777 | /IntroClassJava/dataset/smallest/346b1d3c1cdc3032d07222a8a5e0027a2abf95bb1697b9d367d7cca7db1af769d8298e232c56471a122f05e87e79f4bd965855c9c0f8b173ebc0ef5d0abebc7b/003/mutations/120/smallest_346b1d3c_003.java | 450ad31a0c361b4808e14280a789102cd1e246de | [] | no_license | ozzydong/CapGen | 356746618848065cce4e253e5d3c381baa85044a | 0ba0321b6b1191443276021f1997833342f02515 | refs/heads/master | 2023-03-18T20:12:02.923428 | 2020-08-21T03:08:28 | 2020-08-21T03:08:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,492 | java | package introclassJava;
class IntObj {
public int value;
public IntObj () {
} public IntObj (int i) {
value = i;
}
}
class FloatObj {
public float value;
public FloatObj () {
} public FloatObj (float i) {
value = i;
}
}
class LongObj {
public long value;
public LongObj () {
} public LongObj (long i) {
value = i;
}
}
class DoubleObj {
public double value;
public DoubleObj () {
} public DoubleObj (double i) {
value = i;
}
}
class CharObj {
public char value;
public CharObj () {
} public CharObj (char i) {
value = i;
}
}
public class smallest_346b1d3c_003 {
public java.util.Scanner scanner;
public String output = "";
public static void main (String[]args) throws Exception {
smallest_346b1d3c_003 mainClass = new smallest_346b1d3c_003 ();
String output;
if (args.length > 0) {
mainClass.scanner = new java.util.Scanner (args[0]);
} else {
mainClass.scanner = new java.util.Scanner (System.in);
}
mainClass.exec ();
System.out.println (mainClass.output);
}
public void exec () throws Exception {
IntObj a = new IntObj (), b = new IntObj (), c = new IntObj (), d =
new IntObj (), num_1 = new IntObj (), num_2 = new IntObj (), num_3 =
new IntObj (), num_4 = new IntObj ();
output +=
(String.format ("Please enter 4 numbers separated by spaces > "));
num_1.value = scanner.nextInt ();
num_2.value = scanner.nextInt ();
num_3.value = scanner.nextInt ();
num_4.value = scanner.nextInt ();
a.value = (num_1.value);
b.value = (num_2.value);
c.value = (num_3.value);
d.value = (num_4.value);
if (a.value < b.value && a.value < c.value && a.value < d.value) {
output += (String.format ("%d is the smallest\n", a.value));
} else if (((d.value) < (a.value)) && ((d.value) < (b.value))) {
output += (String.format ("%d is the smalles\n", b.value));
} else if (c.value < a.value && c.value < b.value && c.value < d.value) {
output += (String.format ("%d is the smallest\n", c.value));
} else if (d.value < a.value && d.value < b.value && d.value < c.value) {
output += (String.format ("%d is the smallest\n", d.value));
}
if (true)
return;;
}
}
| [
"justinwm@163.com"
] | justinwm@163.com |
9e1de669938e5176e8484a6a27531ac1bb9b1472 | a6d0d9e827c066ce741f6521809bab644a68d542 | /src/main/java/homework1_mz_DataiCzas/Ex14Ex15.java | 4a4fd789b4197a9e781381daf2185b80258ad804 | [] | no_license | juliabaar/testowy_projekt | 30b560d66421a5c1248fb045e77bf3435bcac2d8 | 1825829bc2406ee7331832e604848ef59a46b73b | refs/heads/master | 2022-11-10T21:24:36.098706 | 2020-06-28T17:54:54 | 2020-06-28T17:54:54 | 273,662,933 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 908 | java | package homework1_mz_DataiCzas;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.util.Locale;
// 14. Wyświetl bieżącą datę i godzinę w Tokyo.
// 15. Wyświetla bieżącą godzinę w Bydgoszczy. Wykorzystaj DateTimeFormatter aby
//wyświetlić datę w następującym formacie
//
//3 lutego 2018 roku, sobota 22:12:27
public class Ex14Ex15 {
public static void main(String[] args) {
LocalDateTime tokyo = LocalDateTime.now(ZoneId.of("Asia/Tokyo"));
System.out.println("W Tokyo jest: " + tokyo);
LocalDateTime bdg = LocalDateTime.now();
DateTimeFormatter bydgoszcz = DateTimeFormatter.ofPattern( ", dd MMMM yyyy 'roku,' EEEE hh:mm:ss ", new
Locale(
"pl" ));
String displayBydgoszcz = bdg.format(bydgoszcz);
System.out.println(displayBydgoszcz);
}
} | [
"paterska.j@gmail.com"
] | paterska.j@gmail.com |
bd79831df8153a2c1bcddfbd020e409391c6d128 | 113ab3b595442c757c1611966421fefea67ec195 | /src/sp6/engine/controller/AnimationControllable.java | c51393061c05101547af0f0fbda66ef16306b4cd | [] | no_license | Woebin/sp6 | b11b1d88e1269967f311a7ab6d4c0deea5a05794 | 2135b29ac793e380c5af88b0e1e580b82ddc837d | refs/heads/master | 2016-08-12T09:46:13.474464 | 2016-02-18T02:28:50 | 2016-02-18T02:28:50 | 50,109,208 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 240 | java | package sp6.engine.controller;
import java.awt.*;
/**
*
*/
public interface AnimationControllable {
void animationUpdate(AnimationController animationController);
void animationRender(AnimationController animationController);
}
| [
"sebastian@lowtech.nu"
] | sebastian@lowtech.nu |
0c051b5cfbbfa47f012a9d37a3377e72891adb79 | 56cd00c773590a0a130a0819635dceab1d0b276d | /cost_estimation/src/cost_estimation/cost_estimationtest.java | 634ceec2f85bc5c032564dd9571ca630dfde4be6 | [] | no_license | tejal344/task2 | 16eae82052401c3beb57d606b717726e9d09ddf7 | 6001120b89512d7214e88d78629bc231ff443ef2 | refs/heads/master | 2020-04-30T09:56:08.993187 | 2019-03-20T16:16:57 | 2019-03-20T16:16:57 | 176,762,598 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 393 | java | package cost_estimation;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
class cost_estimationtest {
@Test
void cost_estimationtest() {
cost_estimation c = new cost_estimation();
assertEquals(6000, c.cost(5, "standard"));
assertEquals(3000, c.cost(2, "abovestandard"));
assertEquals(5400, c.cost(3, "highstandard"));
}
}
| [
"stejal344@gmail.com"
] | stejal344@gmail.com |
2e17a60765c4af204fccddaa03306f89c4ce2876 | 16689231f8ffe1f00947642f72d41627ef311eea | /eclipse-workspace/hello/src/hello/primeornot.java | f6d61126a5239c44a83f688528d28a2de29d414f | [] | no_license | sahithiduddukuri/project2Frontend | bdaabbeff6c5d5dc5c16fd1f9c29ed92b1544d70 | 248b2acdb9dbec80e5cf595844b4a3f64c72f2fd | refs/heads/master | 2021-04-29T12:53:16.502308 | 2018-04-05T12:30:08 | 2018-04-05T12:30:08 | 121,737,062 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 521 | java | package hello;
import java.io.*;
import java.util.*;
public class primeornot {
public static void main(String[] args) {
// TODO Auto-generated method stub
int n,i,count=0;
Scanner sc = new Scanner(System.in);
System.out.println("Enter a number :" );
n=sc.nextInt();
for(i=2;i<n;i++)
{
if(n%i==0)
{
count++;
break;
}
}
if(count==0) {
System.out.print("Number is prime");
}
else
{
System.out.print("Number is not a prime");
}
}
}
| [
"DUDDUKURI SAHITHI@LAPTOP-6T93JJI3"
] | DUDDUKURI SAHITHI@LAPTOP-6T93JJI3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.