blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 4
410
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
51
| license_type
stringclasses 2
values | repo_name
stringlengths 5
132
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringlengths 4
80
| visit_date
timestamp[us] | revision_date
timestamp[us] | committer_date
timestamp[us] | github_id
int64 5.85k
689M
⌀ | star_events_count
int64 0
209k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 22
values | gha_event_created_at
timestamp[us] | gha_created_at
timestamp[us] | gha_language
stringclasses 131
values | src_encoding
stringclasses 34
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 2
classes | length_bytes
int64 3
9.45M
| extension
stringclasses 32
values | content
stringlengths 3
9.45M
| authors
listlengths 1
1
| author_id
stringlengths 0
313
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
562e6150cddcbfd23e2d80f0dd6e68d89db77dba | ff068557ef56c9de94196fbca36f872e5c09dcef | /src/main/java/com/kurtomerfaruk/primeadminbsb/converters/EmployeedepartmenthistoryConverter.java | efc0f38e6b922907d1e58e31c0bb198ff095ee60 | []
| no_license | anumber8/PrimeFacesAdminBSB | 97ff9f094ff289ecf4142c30cca4d3d5da277e18 | 197c2cc58bdd610185c0fd1d5613bc6ae7af8d4e | refs/heads/master | 2021-01-20T04:53:44.009333 | 2017-08-16T20:23:31 | 2017-08-16T20:23:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,910 | java | package com.kurtomerfaruk.primeadminbsb.converters;
import com.kurtomerfaruk.primeadminbsb.models.Employeedepartmenthistory;
import com.kurtomerfaruk.primeadminbsb.services.EmployeedepartmenthistoryFacade;
import com.kurtomerfaruk.primeadminbsb.controllers.util.JsfUtil;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.faces.convert.FacesConverter;
import javax.inject.Inject;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
@FacesConverter(value = "employeedepartmenthistoryConverter")
public class EmployeedepartmenthistoryConverter implements Converter {
@Inject
private EmployeedepartmenthistoryFacade ejbFacade;
private static final String SEPARATOR = "#";
private static final String SEPARATOR_ESCAPED = "\\#";
@Override
public Object getAsObject(FacesContext facesContext, UIComponent component, String value) {
if (value == null || value.length() == 0 || JsfUtil.isDummySelectItem(component, value)) {
return null;
}
return this.ejbFacade.find(getKey(value));
}
com.kurtomerfaruk.primeadminbsb.models.EmployeedepartmenthistoryPK getKey(String value) {
com.kurtomerfaruk.primeadminbsb.models.EmployeedepartmenthistoryPK key;
String values[] = value.split(SEPARATOR_ESCAPED);
key = new com.kurtomerfaruk.primeadminbsb.models.EmployeedepartmenthistoryPK();
key.setBusinessEntityID(Integer.parseInt(values[0]));
key.setDepartmentID(Short.parseShort(values[1]));
key.setShiftID(Short.parseShort(values[2]));
key.setStartDate(java.sql.Date.valueOf(values[3]));
return key;
}
String getStringKey(com.kurtomerfaruk.primeadminbsb.models.EmployeedepartmenthistoryPK value) {
StringBuffer sb = new StringBuffer();
sb.append(value.getBusinessEntityID());
sb.append(SEPARATOR);
sb.append(value.getDepartmentID());
sb.append(SEPARATOR);
sb.append(value.getShiftID());
sb.append(SEPARATOR);
sb.append(value.getStartDate());
return sb.toString();
}
@Override
public String getAsString(FacesContext facesContext, UIComponent component, Object object) {
if (object == null
|| (object instanceof String && ((String) object).length() == 0)) {
return null;
}
if (object instanceof Employeedepartmenthistory) {
Employeedepartmenthistory o = (Employeedepartmenthistory) object;
return getStringKey(o.getEmployeedepartmenthistoryPK());
} else {
Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, "object {0} is of type {1}; expected type: {2}", new Object[]{object, object.getClass().getName(), Employeedepartmenthistory.class.getName()});
return null;
}
}
}
| [
"[email protected]"
]
| |
f54889026447c58931af782d975d7f0e0f443686 | 0e75fde93ad0b7679fb357eddbf28aa5a3ec1cc4 | /02.OOP[BASIC]/src/MemberField.java | 8c7e1a60e473f43704992c309a285f13a3fe08d8 | []
| no_license | soonggi/eclipse-workspace-se | 1164ddc71520f281d253a444d04549ea0b93088b | 468800a8e28fda0ba0aad03aa66bc59f0f07bc78 | refs/heads/master | 2023-07-21T22:21:49.421885 | 2023-07-14T01:43:54 | 2023-07-14T01:43:54 | 372,760,926 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 111 | java |
public class MemberField {
int member1;
double member2;
char member3;
String member4;
}
| [
"황순근@DESKTOP-3MS5Q0P"
]
| 황순근@DESKTOP-3MS5Q0P |
392ca6acede03273d70706d5df1a84efd6f54344 | 73acf7038de59441f3695452a3833e085c3f2d26 | /Deep Space 2019/robot/Robot.java | 76b949b31ee9d12cc8f473f35f08eb33df4c70bf | []
| no_license | mdpalmer123/TeraViks-3145 | d94ad9c09c4b9731d48d0ed32c407c6cc7dd82de | 107e6443c5b5e6d2948edfcdcf46c00ee38359be | refs/heads/master | 2020-04-26T06:38:38.048965 | 2019-03-01T03:03:10 | 2019-03-01T03:03:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,445 | 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. */
/*----------------------------------------------------------------------------*/
/**
* The VM is configured to automatically run this class, and to call the
* functions corresponding to each mode, as described in the TimedRobot
* documentation. If you change the name of this class or the package after
* creating this project, you must also update the build.gradle file in the
* project.
*/
package frc.robot;
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.command.Scheduler;
import edu.wpi.first.wpilibj.smartdashboard.SendableChooser;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj.Timer;
import frc.robot.commands.*;
import frc.robot.subsystems.*;
public class Robot extends TimedRobot {
public static Drivetrain m_drivetrain;
public static Gyro m_gyro;
public static Vision m_vision;
public static RearLift m_rearLift;
public static Boomerang m_boomerang;
public static OI m_oi;
public static boolean bootCycle;
public static boolean enableBoomDeploy = false;
Command m_autonomousCommand;
Command m_teleopCommand;
SendableChooser<Command> m_chooser = new SendableChooser<>();
/**
* This function is run when the robot is first started up and should be
* used for any initialization code.
*/
@Override
public void robotInit() {
// This method is run automatically upon deploying the code to the RoboRio
// Instantiate objects for subsystems, operator input, commands, etc
// NOTE: ORDER DEPENDENT
m_drivetrain = new Drivetrain();
m_gyro = new Gyro();
m_vision = new Vision();
m_boomerang = new Boomerang();
m_rearLift = new RearLift();
m_oi = new OI(); //Always instantiate OI last
m_gyro.reset();
m_drivetrain.init();
//m_boomerang.init();
m_rearLift.init();
bootCycle = true;
// chooser.addOption("My Auto", new MyAutoCommand());
// m_chooser.setDefaultOption("Default Swerve", new Drive());
}
/**
* This function is called every robot packet, no matter the mode. Use
* this for items like diagnostics that you want ran during disabled,
* autonomous, teleoperated and test.
*
* <p>This runs after the mode specific periodic functions, but before
* LiveWindow and SmartDashboard integrated updating.
*/
@Override
public void robotPeriodic() {
// System.out.println("Lift Position = "+Robot.m_boomerang.getLiftPosition());
// System.out.println("Gyro Position = "+Robot.m_gyro.getPitchDeg());
}
/**
* This function is called once each time the robot enters Disabled mode.
* You can use it to reset any subsystem information you want to clear when
* the robot is disabled.
*/
@Override
public void disabledInit() {
System.out.println("//////////////////// DISABLED Init /////////////////");
//Reset Drivetrain Modes and Swerve Math Variables to clear rotation tracking and reverse
// Robot.m_drivetrain.reset(); //DON'T USE THIS. ONLY FOR TESTING BEFORE CAL WORKED
}
@Override
public void disabledPeriodic() {
}
/**
* This autonomous (along with the chooser code above) shows how to select
* between different autonomous modes using the dashboard. The sendable
* chooser code works with the Java SmartDashboard. If you prefer the
* LabVIEW Dashboard, remove all of the chooser code and uncomment the
* getString code to get the auto name from the text box below the Gyro
*
* <p>You can add additional auto modes by adding additional commands to the
* chooser code above (like the commented example) or additional comparisons
* to the switch structure below with additional strings & commands.
*/
@Override
public void autonomousInit() {
// m_autonomousCommand = m_chooser.getSelected();
/*
* String autoSelected = SmartDashboard.getString("Auto Selector",
* "Default"); switch(autoSelected) { case "My Auto": autonomousCommand
* = new MyAutoCommand(); break; case "Default Auto": default:
* autonomousCommand = new ExampleCommand(); break; }
*/
// schedule the autonomous command (example)
// if (m_autonomousCommand != null) {
// m_autonomousCommand.start();
// }
}
/**
* This function is called periodically during autonomous.
*/
@Override
public void autonomousPeriodic() {
}
@Override
public void teleopInit() {
// This makes sure that the autonomous stops running when
// teleop starts running. If you want the autonomous to
// continue until interrupted by another command, remove
// this line or comment it out.
if (m_autonomousCommand != null) {
m_autonomousCommand.cancel();
}
// Adding calDriveTrain to scheduler if booting (ie not enable/disable in DS)
System.out.println("//////////////////// TeleopInit /////////////////");
if (bootCycle && RobotMap.ENABLE_DRIVETRAIN_CALIBRATION){
Scheduler.getInstance().add(new CalibrateDriveTrain());
Scheduler.getInstance().run();
}
if (bootCycle)
m_rearLift.setLiftSpeed(-1000);
Timer.delay(.5);
m_rearLift.rearLiftMotor.setSelectedSensorPosition(0);
bootCycle = false;
// Scheduler.getInstance().add(new HatchGrabHold());
// Scheduler.getInstance().run();
// Scheduler.getInstance().add(new BoomerangLift(RobotMap.LOW_TARGET_LIFT_LEVEL));
// Scheduler.getInstance().run();
// Scheduler.getInstance().add(new RearLiftHold());
// Scheduler.getInstance().run();
System.out.println("//////////////////// Teleop /////////////////");
Scheduler.getInstance().add(new Drive());
}
/**
* This function is called periodically during operator control.
*/
@Override
public void teleopPeriodic() {
//Add Drive to the command stack, it is always running from here on until DS Disable
Scheduler.getInstance().run();
SmartDashboard.putData(Scheduler.getInstance());
SmartDashboard.getBoolean("Centric Set", m_drivetrain.getCentric());
SmartDashboard.getBoolean("Snake Mode", m_drivetrain.snakeMode);
SmartDashboard.getBoolean("Ball Target Mode", BallTargetMode.ballTarget);
SmartDashboard.getBoolean("Hatch Target Mode", HatchTargetMode.hatchTarget);
SmartDashboard.getNumber("Gyro Yaw", m_gyro.getYawDeg());
SmartDashboard.getNumber("Gyro Pitch", m_gyro.getPitchDeg());
SmartDashboard.getNumber("Gyro Roll", m_gyro.getRollDeg());
SmartDashboard.putData("Lvl 3 boomerang", new Level3Boomerang());
SmartDashboard.putData("Collision Sensor", new CollisionSensor());
SmartDashboard.putData("Rear Lift Drive", new RearLiftDrive());
SmartDashboard.putData("Rear Lift Retract", new RearLiftRetract());
}
/**
* This function is called periodically during test mode.
*/
@Override
public void testPeriodic() {
}
}
| [
"[email protected]"
]
| |
aa0bfbcf13261e1dd249f30275df7906851eefa0 | 0cc6071e9495e1e94e2174d1fe4787556f09a6fb | /src/main/java/com/algaworks/algafood/api/v1/assembler/CidadeModelAssembler.java | a52649af7e621935e727e493d2dc5de385dc34c9 | [
"Apache-2.0"
]
| permissive | GabrielDiasgd/Algafood | 887162141b0154aa78ad60b471e127fa92eb7f5f | 71dadb692325c942ff2428e7843647cbd8cacb00 | refs/heads/master | 2023-03-09T03:30:23.812651 | 2021-02-06T17:22:57 | 2021-02-06T17:22:57 | 285,603,347 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,564 | java | package com.algaworks.algafood.api.v1.assembler;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.hateoas.CollectionModel;
import org.springframework.hateoas.server.mvc.RepresentationModelAssemblerSupport;
import org.springframework.stereotype.Component;
import com.algaworks.algafood.api.v1.AlgaLinks;
import com.algaworks.algafood.api.v1.controller.CidadeController;
import com.algaworks.algafood.api.v1.model.CidadeModel;
import com.algaworks.algafood.domain.model.Cidade;
@Component
public class CidadeModelAssembler extends RepresentationModelAssemblerSupport<Cidade, CidadeModel> {
@Autowired
private ModelMapper modelMapper;
@Autowired
private AlgaLinks algaLinks;
public CidadeModelAssembler() {
super(CidadeController.class, CidadeModel.class);
}
@Override
public CidadeModel toModel(Cidade cidade) {
CidadeModel cidadeModel = createModelWithId(cidade.getId(), cidade);
modelMapper.map(cidade, cidadeModel);
cidadeModel.add(algaLinks.linkToCidades("cidade"));
cidadeModel.getEstado()
.add(algaLinks.linkToEstado(cidadeModel.getEstado().getId(), "estado"));
return cidadeModel;
}
@Override
public CollectionModel<CidadeModel> toCollectionModel(Iterable<? extends Cidade> entities) {
return super.toCollectionModel(entities)
.add(algaLinks.linkToCidades());
}
// public List<CidadeModel> toCollectionModel(List<Cidade> cidades) {
// return cidades.stream().map(cidade -> toModel(cidade)).collect(Collectors.toList());
// }
}
| [
"[email protected]"
]
| |
e12574d796c5fb71bbaed89ff6924836c8bcef3c | 7c15951e3bd41fdc09055817ef2e4012c18fa5f9 | /One/pms-rest-swagger/src/main/java/com/pms/advice/MyExceptionAdvice.java | 822eec25e06b9a4fcb9e3a253e129a52412a67f2 | []
| no_license | RahulTirkey1/Study-Material | fc8d5a6292517ec1121cb7032b0586f98309243f | a1a43d5e1293e4fb96fe29440d3d62a6f45269d6 | refs/heads/master | 2023-06-19T02:46:17.601310 | 2021-07-14T17:00:37 | 2021-07-14T17:00:37 | 386,009,799 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 593 | java | package com.pms.advice;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import com.pms.exception.NoSuchProductException;
@RestControllerAdvice
public class MyExceptionAdvice {
@ExceptionHandler(NoSuchProductException.class)
public ErrorMessage exHandler(NoSuchProductException ex){
ErrorMessage em=new ErrorMessage();
em.setCode(400);
em.setMessage("Product does not exist");
return em;
}
}
| [
"[email protected]"
]
| |
cdce0aca7fcb88268f35ba60ad77e592762641ef | a2d8cf78ac1a17b066980815540867c0da12548c | /im/client/src/main/java/org/tio/examples/im/client/ui/component/MyTextAreaBeanInfo.java | b0491051b492987c0a92135a336af56b2f870130 | [
"Apache-2.0"
]
| permissive | huang6349/tio-showcase | 2a2014d7e489cecfc1ddee500d2932d5117dd9a0 | 03385cbe2310f09d538d6df4dee6dad76830fccc | refs/heads/master | 2022-01-12T15:53:17.541920 | 2019-06-06T07:40:41 | 2019-06-06T07:40:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 90,734 | 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 org.tio.examples.im.client.ui.component;
import java.beans.BeanDescriptor;
import java.beans.EventSetDescriptor;
import java.beans.IndexedPropertyDescriptor;
import java.beans.IntrospectionException;
import java.beans.MethodDescriptor;
import java.beans.PropertyDescriptor;
import java.beans.SimpleBeanInfo;
/**
*
* @author Administrator
*/
public class MyTextAreaBeanInfo extends SimpleBeanInfo {
// Property identifiers//GEN-FIRST:Properties
private static final int PROPERTY_accessibleContext = 0;
private static final int PROPERTY_actionMap = 1;
private static final int PROPERTY_actions = 2;
private static final int PROPERTY_alignmentX = 3;
private static final int PROPERTY_alignmentY = 4;
private static final int PROPERTY_ancestorListeners = 5;
private static final int PROPERTY_autoscrolls = 6;
private static final int PROPERTY_background = 7;
private static final int PROPERTY_backgroundSet = 8;
private static final int PROPERTY_baselineResizeBehavior = 9;
private static final int PROPERTY_border = 10;
private static final int PROPERTY_bounds = 11;
private static final int PROPERTY_caret = 12;
private static final int PROPERTY_caretColor = 13;
private static final int PROPERTY_caretListeners = 14;
private static final int PROPERTY_caretPosition = 15;
private static final int PROPERTY_colorModel = 16;
private static final int PROPERTY_columns = 17;
private static final int PROPERTY_component = 18;
private static final int PROPERTY_componentCount = 19;
private static final int PROPERTY_componentListeners = 20;
private static final int PROPERTY_componentOrientation = 21;
private static final int PROPERTY_componentPopupMenu = 22;
private static final int PROPERTY_components = 23;
private static final int PROPERTY_containerListeners = 24;
private static final int PROPERTY_cursor = 25;
private static final int PROPERTY_cursorSet = 26;
private static final int PROPERTY_debugGraphicsOptions = 27;
private static final int PROPERTY_disabledTextColor = 28;
private static final int PROPERTY_displayable = 29;
private static final int PROPERTY_document = 30;
private static final int PROPERTY_doubleBuffered = 31;
private static final int PROPERTY_dragEnabled = 32;
private static final int PROPERTY_dropLocation = 33;
private static final int PROPERTY_dropMode = 34;
private static final int PROPERTY_dropTarget = 35;
private static final int PROPERTY_editable = 36;
private static final int PROPERTY_enabled = 37;
private static final int PROPERTY_focusable = 38;
private static final int PROPERTY_focusAccelerator = 39;
private static final int PROPERTY_focusCycleRoot = 40;
private static final int PROPERTY_focusCycleRootAncestor = 41;
private static final int PROPERTY_focusListeners = 42;
private static final int PROPERTY_focusOwner = 43;
private static final int PROPERTY_focusTraversable = 44;
private static final int PROPERTY_focusTraversalKeys = 45;
private static final int PROPERTY_focusTraversalKeysEnabled = 46;
private static final int PROPERTY_focusTraversalPolicy = 47;
private static final int PROPERTY_focusTraversalPolicyProvider = 48;
private static final int PROPERTY_focusTraversalPolicySet = 49;
private static final int PROPERTY_font = 50;
private static final int PROPERTY_fontSet = 51;
private static final int PROPERTY_foreground = 52;
private static final int PROPERTY_foregroundSet = 53;
private static final int PROPERTY_graphics = 54;
private static final int PROPERTY_graphicsConfiguration = 55;
private static final int PROPERTY_height = 56;
private static final int PROPERTY_hierarchyBoundsListeners = 57;
private static final int PROPERTY_hierarchyListeners = 58;
private static final int PROPERTY_highlighter = 59;
private static final int PROPERTY_ignoreRepaint = 60;
private static final int PROPERTY_inheritsPopupMenu = 61;
private static final int PROPERTY_inputContext = 62;
private static final int PROPERTY_inputMap = 63;
private static final int PROPERTY_inputMethodListeners = 64;
private static final int PROPERTY_inputMethodRequests = 65;
private static final int PROPERTY_inputVerifier = 66;
private static final int PROPERTY_insets = 67;
private static final int PROPERTY_keyListeners = 68;
private static final int PROPERTY_keymap = 69;
private static final int PROPERTY_layout = 70;
private static final int PROPERTY_lightweight = 71;
private static final int PROPERTY_lineCount = 72;
private static final int PROPERTY_lineEndOffset = 73;
private static final int PROPERTY_lineOfOffset = 74;
private static final int PROPERTY_lineStartOffset = 75;
private static final int PROPERTY_lineWrap = 76;
private static final int PROPERTY_locale = 77;
private static final int PROPERTY_location = 78;
private static final int PROPERTY_locationOnScreen = 79;
private static final int PROPERTY_managingFocus = 80;
private static final int PROPERTY_margin = 81;
private static final int PROPERTY_maximumSize = 82;
private static final int PROPERTY_maximumSizeSet = 83;
private static final int PROPERTY_minimumSize = 84;
private static final int PROPERTY_minimumSizeSet = 85;
private static final int PROPERTY_mouseListeners = 86;
private static final int PROPERTY_mouseMotionListeners = 87;
private static final int PROPERTY_mousePosition = 88;
private static final int PROPERTY_mouseWheelListeners = 89;
private static final int PROPERTY_name = 90;
private static final int PROPERTY_navigationFilter = 91;
private static final int PROPERTY_nextFocusableComponent = 92;
private static final int PROPERTY_opaque = 93;
private static final int PROPERTY_optimizedDrawingEnabled = 94;
private static final int PROPERTY_paintingForPrint = 95;
private static final int PROPERTY_paintingTile = 96;
private static final int PROPERTY_parent = 97;
private static final int PROPERTY_peer = 98;
private static final int PROPERTY_preferredScrollableViewportSize = 99;
private static final int PROPERTY_preferredSize = 100;
private static final int PROPERTY_preferredSizeSet = 101;
private static final int PROPERTY_propertyChangeListeners = 102;
private static final int PROPERTY_registeredKeyStrokes = 103;
private static final int PROPERTY_requestFocusEnabled = 104;
private static final int PROPERTY_rootPane = 105;
private static final int PROPERTY_rows = 106;
private static final int PROPERTY_scrollableTracksViewportHeight = 107;
private static final int PROPERTY_scrollableTracksViewportWidth = 108;
private static final int PROPERTY_selectedText = 109;
private static final int PROPERTY_selectedTextColor = 110;
private static final int PROPERTY_selectionColor = 111;
private static final int PROPERTY_selectionEnd = 112;
private static final int PROPERTY_selectionStart = 113;
private static final int PROPERTY_showing = 114;
private static final int PROPERTY_size = 115;
private static final int PROPERTY_tabSize = 116;
private static final int PROPERTY_text = 117;
private static final int PROPERTY_toolkit = 118;
private static final int PROPERTY_toolTipText = 119;
private static final int PROPERTY_topLevelAncestor = 120;
private static final int PROPERTY_transferHandler = 121;
private static final int PROPERTY_treeLock = 122;
private static final int PROPERTY_UI = 123;
private static final int PROPERTY_UIClassID = 124;
private static final int PROPERTY_valid = 125;
private static final int PROPERTY_validateRoot = 126;
private static final int PROPERTY_verifyInputWhenFocusTarget = 127;
private static final int PROPERTY_vetoableChangeListeners = 128;
private static final int PROPERTY_visible = 129;
private static final int PROPERTY_visibleRect = 130;
private static final int PROPERTY_width = 131;
private static final int PROPERTY_wrapStyleWord = 132;
private static final int PROPERTY_x = 133;
private static final int PROPERTY_y = 134;
// EventSet identifiers//GEN-FIRST:Events
private static final int EVENT_ancestorListener = 0;
private static final int EVENT_caretListener = 1;
private static final int EVENT_componentListener = 2;
private static final int EVENT_containerListener = 3;
private static final int EVENT_focusListener = 4;
private static final int EVENT_hierarchyBoundsListener = 5;
private static final int EVENT_hierarchyListener = 6;
private static final int EVENT_inputMethodListener = 7;
private static final int EVENT_keyListener = 8;
private static final int EVENT_mouseListener = 9;
private static final int EVENT_mouseMotionListener = 10;
private static final int EVENT_mouseWheelListener = 11;
private static final int EVENT_propertyChangeListener = 12;
private static final int EVENT_vetoableChangeListener = 13;
// Method identifiers//GEN-FIRST:Methods
private static final int METHOD_action0 = 0;
private static final int METHOD_add1 = 1;
private static final int METHOD_add2 = 2;
private static final int METHOD_add3 = 3;
private static final int METHOD_add4 = 4;
private static final int METHOD_add5 = 5;
private static final int METHOD_add6 = 6;
private static final int METHOD_addKeymap7 = 7;
private static final int METHOD_addNotify8 = 8;
private static final int METHOD_addPropertyChangeListener9 = 9;
private static final int METHOD_append10 = 10;
private static final int METHOD_applyComponentOrientation11 = 11;
private static final int METHOD_areFocusTraversalKeysSet12 = 12;
private static final int METHOD_bounds13 = 13;
private static final int METHOD_checkImage14 = 14;
private static final int METHOD_checkImage15 = 15;
private static final int METHOD_computeVisibleRect16 = 16;
private static final int METHOD_contains17 = 17;
private static final int METHOD_contains18 = 18;
private static final int METHOD_copy19 = 19;
private static final int METHOD_countComponents20 = 20;
private static final int METHOD_createImage21 = 21;
private static final int METHOD_createImage22 = 22;
private static final int METHOD_createToolTip23 = 23;
private static final int METHOD_createVolatileImage24 = 24;
private static final int METHOD_createVolatileImage25 = 25;
private static final int METHOD_cut26 = 26;
private static final int METHOD_deliverEvent27 = 27;
private static final int METHOD_disable28 = 28;
private static final int METHOD_dispatchEvent29 = 29;
private static final int METHOD_doLayout30 = 30;
private static final int METHOD_enable31 = 31;
private static final int METHOD_enable32 = 32;
private static final int METHOD_enableInputMethods33 = 33;
private static final int METHOD_findComponentAt34 = 34;
private static final int METHOD_findComponentAt35 = 35;
private static final int METHOD_firePropertyChange36 = 36;
private static final int METHOD_firePropertyChange37 = 37;
private static final int METHOD_firePropertyChange38 = 38;
private static final int METHOD_firePropertyChange39 = 39;
private static final int METHOD_firePropertyChange40 = 40;
private static final int METHOD_firePropertyChange41 = 41;
private static final int METHOD_firePropertyChange42 = 42;
private static final int METHOD_firePropertyChange43 = 43;
private static final int METHOD_getActionForKeyStroke44 = 44;
private static final int METHOD_getBaseline45 = 45;
private static final int METHOD_getBounds46 = 46;
private static final int METHOD_getClientProperty47 = 47;
private static final int METHOD_getComponentAt48 = 48;
private static final int METHOD_getComponentAt49 = 49;
private static final int METHOD_getComponentZOrder50 = 50;
private static final int METHOD_getConditionForKeyStroke51 = 51;
private static final int METHOD_getDefaultLocale52 = 52;
private static final int METHOD_getFocusTraversalKeys53 = 53;
private static final int METHOD_getFontMetrics54 = 54;
private static final int METHOD_getInsets55 = 55;
private static final int METHOD_getKeymap56 = 56;
private static final int METHOD_getListeners57 = 57;
private static final int METHOD_getLocation58 = 58;
private static final int METHOD_getMousePosition59 = 59;
private static final int METHOD_getPopupLocation60 = 60;
private static final int METHOD_getPrintable61 = 61;
private static final int METHOD_getPropertyChangeListeners62 = 62;
private static final int METHOD_getScrollableBlockIncrement63 = 63;
private static final int METHOD_getScrollableUnitIncrement64 = 64;
private static final int METHOD_getSize65 = 65;
private static final int METHOD_getText66 = 66;
private static final int METHOD_getToolTipLocation67 = 67;
private static final int METHOD_getToolTipText68 = 68;
private static final int METHOD_gotFocus69 = 69;
private static final int METHOD_grabFocus70 = 70;
private static final int METHOD_handleEvent71 = 71;
private static final int METHOD_hasFocus72 = 72;
private static final int METHOD_hide73 = 73;
private static final int METHOD_imageUpdate74 = 74;
private static final int METHOD_insert75 = 75;
private static final int METHOD_insets76 = 76;
private static final int METHOD_inside77 = 77;
private static final int METHOD_invalidate78 = 78;
private static final int METHOD_isAncestorOf79 = 79;
private static final int METHOD_isFocusCycleRoot80 = 80;
private static final int METHOD_isLightweightComponent81 = 81;
private static final int METHOD_keyDown82 = 82;
private static final int METHOD_keyUp83 = 83;
private static final int METHOD_layout84 = 84;
private static final int METHOD_list85 = 85;
private static final int METHOD_list86 = 86;
private static final int METHOD_list87 = 87;
private static final int METHOD_list88 = 88;
private static final int METHOD_list89 = 89;
private static final int METHOD_loadKeymap90 = 90;
private static final int METHOD_locate91 = 91;
private static final int METHOD_location92 = 92;
private static final int METHOD_lostFocus93 = 93;
private static final int METHOD_minimumSize94 = 94;
private static final int METHOD_modelToView95 = 95;
private static final int METHOD_mouseDown96 = 96;
private static final int METHOD_mouseDrag97 = 97;
private static final int METHOD_mouseEnter98 = 98;
private static final int METHOD_mouseExit99 = 99;
private static final int METHOD_mouseMove100 = 100;
private static final int METHOD_mouseUp101 = 101;
private static final int METHOD_move102 = 102;
private static final int METHOD_moveCaretPosition103 = 103;
private static final int METHOD_nextFocus104 = 104;
private static final int METHOD_paint105 = 105;
private static final int METHOD_paintAll106 = 106;
private static final int METHOD_paintComponents107 = 107;
private static final int METHOD_paintImmediately108 = 108;
private static final int METHOD_paintImmediately109 = 109;
private static final int METHOD_paste110 = 110;
private static final int METHOD_postEvent111 = 111;
private static final int METHOD_preferredSize112 = 112;
private static final int METHOD_prepareImage113 = 113;
private static final int METHOD_prepareImage114 = 114;
private static final int METHOD_print115 = 115;
private static final int METHOD_print116 = 116;
private static final int METHOD_print117 = 117;
private static final int METHOD_print118 = 118;
private static final int METHOD_printAll119 = 119;
private static final int METHOD_printComponents120 = 120;
private static final int METHOD_processMouseEvent121 = 121;
private static final int METHOD_putClientProperty122 = 122;
private static final int METHOD_read123 = 123;
private static final int METHOD_registerKeyboardAction124 = 124;
private static final int METHOD_registerKeyboardAction125 = 125;
private static final int METHOD_remove126 = 126;
private static final int METHOD_remove127 = 127;
private static final int METHOD_remove128 = 128;
private static final int METHOD_removeAll129 = 129;
private static final int METHOD_removeKeymap130 = 130;
private static final int METHOD_removeNotify131 = 131;
private static final int METHOD_removePropertyChangeListener132 = 132;
private static final int METHOD_repaint133 = 133;
private static final int METHOD_repaint134 = 134;
private static final int METHOD_repaint135 = 135;
private static final int METHOD_repaint136 = 136;
private static final int METHOD_repaint137 = 137;
private static final int METHOD_replaceRange138 = 138;
private static final int METHOD_replaceSelection139 = 139;
private static final int METHOD_requestDefaultFocus140 = 140;
private static final int METHOD_requestFocus141 = 141;
private static final int METHOD_requestFocus142 = 142;
private static final int METHOD_requestFocusInWindow143 = 143;
private static final int METHOD_resetKeyboardActions144 = 144;
private static final int METHOD_reshape145 = 145;
private static final int METHOD_resize146 = 146;
private static final int METHOD_resize147 = 147;
private static final int METHOD_revalidate148 = 148;
private static final int METHOD_scrollRectToVisible149 = 149;
private static final int METHOD_select150 = 150;
private static final int METHOD_selectAll151 = 151;
private static final int METHOD_setBounds152 = 152;
private static final int METHOD_setComponentZOrder153 = 153;
private static final int METHOD_setDefaultLocale154 = 154;
private static final int METHOD_show155 = 155;
private static final int METHOD_show156 = 156;
private static final int METHOD_size157 = 157;
private static final int METHOD_toString158 = 158;
private static final int METHOD_transferFocus159 = 159;
private static final int METHOD_transferFocusBackward160 = 160;
private static final int METHOD_transferFocusDownCycle161 = 161;
private static final int METHOD_transferFocusUpCycle162 = 162;
private static final int METHOD_unregisterKeyboardAction163 = 163;
private static final int METHOD_update164 = 164;
private static final int METHOD_updateUI165 = 165;
private static final int METHOD_validate166 = 166;
private static final int METHOD_viewToModel167 = 167;
private static final int METHOD_write168 = 168;
private static java.awt.Image iconColor16 = null;//GEN-BEGIN:IconsDef
private static java.awt.Image iconColor32 = null;
private static java.awt.Image iconMono16 = null;
private static java.awt.Image iconMono32 = null;//GEN-END:IconsDef
private static String iconNameC16 = null;//GEN-BEGIN:Icons
private static String iconNameC32 = null;
private static String iconNameM16 = null;
private static String iconNameM32 = null;//GEN-END:Icons
private static final int defaultPropertyIndex = -1;//GEN-BEGIN:Idx
private static final int defaultEventIndex = -1;//GEN-END:Idx
// Bean descriptor//GEN-FIRST:BeanDescriptor
/*lazy BeanDescriptor*/
private static BeanDescriptor getBdescriptor() {
BeanDescriptor beanDescriptor = new BeanDescriptor(org.tio.examples.im.client.ui.component.MyTextArea.class, null); // NOI18N//GEN-HEADEREND:BeanDescriptor
// Here you can add code for customizing the BeanDescriptor.
return beanDescriptor;
}//GEN-LAST:BeanDescriptor
// EventSet array
/*lazy EventSetDescriptor*/
private static EventSetDescriptor[] getEdescriptor() {
EventSetDescriptor[] eventSets = new EventSetDescriptor[14];
try {
eventSets[EVENT_ancestorListener] = new EventSetDescriptor(org.tio.examples.im.client.ui.component.MyTextArea.class, "ancestorListener",
javax.swing.event.AncestorListener.class, new String[] { "ancestorAdded", "ancestorRemoved", "ancestorMoved" }, "addAncestorListener",
"removeAncestorListener"); // NOI18N
eventSets[EVENT_caretListener] = new EventSetDescriptor(org.tio.examples.im.client.ui.component.MyTextArea.class, "caretListener",
javax.swing.event.CaretListener.class, new String[] { "caretUpdate" }, "addCaretListener", "removeCaretListener"); // NOI18N
eventSets[EVENT_componentListener] = new EventSetDescriptor(org.tio.examples.im.client.ui.component.MyTextArea.class, "componentListener",
java.awt.event.ComponentListener.class, new String[] { "componentResized", "componentMoved", "componentShown", "componentHidden" }, "addComponentListener",
"removeComponentListener"); // NOI18N
eventSets[EVENT_containerListener] = new EventSetDescriptor(org.tio.examples.im.client.ui.component.MyTextArea.class, "containerListener",
java.awt.event.ContainerListener.class, new String[] { "componentAdded", "componentRemoved" }, "addContainerListener", "removeContainerListener"); // NOI18N
eventSets[EVENT_focusListener] = new EventSetDescriptor(org.tio.examples.im.client.ui.component.MyTextArea.class, "focusListener", java.awt.event.FocusListener.class,
new String[] { "focusGained", "focusLost" }, "addFocusListener", "removeFocusListener"); // NOI18N
eventSets[EVENT_hierarchyBoundsListener] = new EventSetDescriptor(org.tio.examples.im.client.ui.component.MyTextArea.class, "hierarchyBoundsListener",
java.awt.event.HierarchyBoundsListener.class, new String[] { "ancestorMoved", "ancestorResized" }, "addHierarchyBoundsListener",
"removeHierarchyBoundsListener"); // NOI18N
eventSets[EVENT_hierarchyListener] = new EventSetDescriptor(org.tio.examples.im.client.ui.component.MyTextArea.class, "hierarchyListener",
java.awt.event.HierarchyListener.class, new String[] { "hierarchyChanged" }, "addHierarchyListener", "removeHierarchyListener"); // NOI18N
eventSets[EVENT_inputMethodListener] = new EventSetDescriptor(org.tio.examples.im.client.ui.component.MyTextArea.class, "inputMethodListener",
java.awt.event.InputMethodListener.class, new String[] { "inputMethodTextChanged", "caretPositionChanged" }, "addInputMethodListener",
"removeInputMethodListener"); // NOI18N
eventSets[EVENT_keyListener] = new EventSetDescriptor(org.tio.examples.im.client.ui.component.MyTextArea.class, "keyListener", java.awt.event.KeyListener.class,
new String[] { "keyTyped", "keyPressed", "keyReleased" }, "addKeyListener", "removeKeyListener"); // NOI18N
eventSets[EVENT_mouseListener] = new EventSetDescriptor(org.tio.examples.im.client.ui.component.MyTextArea.class, "mouseListener", java.awt.event.MouseListener.class,
new String[] { "mouseClicked", "mousePressed", "mouseReleased", "mouseEntered", "mouseExited" }, "addMouseListener", "removeMouseListener"); // NOI18N
eventSets[EVENT_mouseMotionListener] = new EventSetDescriptor(org.tio.examples.im.client.ui.component.MyTextArea.class, "mouseMotionListener",
java.awt.event.MouseMotionListener.class, new String[] { "mouseDragged", "mouseMoved" }, "addMouseMotionListener", "removeMouseMotionListener"); // NOI18N
eventSets[EVENT_mouseWheelListener] = new EventSetDescriptor(org.tio.examples.im.client.ui.component.MyTextArea.class, "mouseWheelListener",
java.awt.event.MouseWheelListener.class, new String[] { "mouseWheelMoved" }, "addMouseWheelListener", "removeMouseWheelListener"); // NOI18N
eventSets[EVENT_propertyChangeListener] = new EventSetDescriptor(org.tio.examples.im.client.ui.component.MyTextArea.class, "propertyChangeListener",
java.beans.PropertyChangeListener.class, new String[] { "propertyChange" }, "addPropertyChangeListener", "removePropertyChangeListener"); // NOI18N
eventSets[EVENT_vetoableChangeListener] = new EventSetDescriptor(org.tio.examples.im.client.ui.component.MyTextArea.class, "vetoableChangeListener",
java.beans.VetoableChangeListener.class, new String[] { "vetoableChange" }, "addVetoableChangeListener", "removeVetoableChangeListener"); // NOI18N
} catch (IntrospectionException e) {
e.printStackTrace();
} //GEN-HEADEREND:Events
// Here you can add code for customizing the event sets array.
return eventSets;
}//GEN-LAST:Events
// Method array
/*lazy MethodDescriptor*/
private static MethodDescriptor[] getMdescriptor() {
MethodDescriptor[] methods = new MethodDescriptor[169];
try {
methods[METHOD_action0] = new MethodDescriptor(java.awt.Component.class.getMethod("action", new Class[] { java.awt.Event.class, java.lang.Object.class })); // NOI18N
methods[METHOD_action0].setDisplayName("");
methods[METHOD_add1] = new MethodDescriptor(java.awt.Component.class.getMethod("add", new Class[] { java.awt.PopupMenu.class })); // NOI18N
methods[METHOD_add1].setDisplayName("");
methods[METHOD_add2] = new MethodDescriptor(java.awt.Container.class.getMethod("add", new Class[] { java.awt.Component.class })); // NOI18N
methods[METHOD_add2].setDisplayName("");
methods[METHOD_add3] = new MethodDescriptor(java.awt.Container.class.getMethod("add", new Class[] { java.lang.String.class, java.awt.Component.class })); // NOI18N
methods[METHOD_add3].setDisplayName("");
methods[METHOD_add4] = new MethodDescriptor(java.awt.Container.class.getMethod("add", new Class[] { java.awt.Component.class, int.class })); // NOI18N
methods[METHOD_add4].setDisplayName("");
methods[METHOD_add5] = new MethodDescriptor(java.awt.Container.class.getMethod("add", new Class[] { java.awt.Component.class, java.lang.Object.class })); // NOI18N
methods[METHOD_add5].setDisplayName("");
methods[METHOD_add6] = new MethodDescriptor(java.awt.Container.class.getMethod("add", new Class[] { java.awt.Component.class, java.lang.Object.class, int.class })); // NOI18N
methods[METHOD_add6].setDisplayName("");
methods[METHOD_addKeymap7] = new MethodDescriptor(
javax.swing.text.JTextComponent.class.getMethod("addKeymap", new Class[] { java.lang.String.class, javax.swing.text.Keymap.class })); // NOI18N
methods[METHOD_addKeymap7].setDisplayName("");
methods[METHOD_addNotify8] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("addNotify", new Class[] {})); // NOI18N
methods[METHOD_addNotify8].setDisplayName("");
methods[METHOD_addPropertyChangeListener9] = new MethodDescriptor(
java.awt.Container.class.getMethod("addPropertyChangeListener", new Class[] { java.lang.String.class, java.beans.PropertyChangeListener.class })); // NOI18N
methods[METHOD_addPropertyChangeListener9].setDisplayName("");
methods[METHOD_append10] = new MethodDescriptor(javax.swing.JTextArea.class.getMethod("append", new Class[] { java.lang.String.class })); // NOI18N
methods[METHOD_append10].setDisplayName("");
methods[METHOD_applyComponentOrientation11] = new MethodDescriptor(
java.awt.Container.class.getMethod("applyComponentOrientation", new Class[] { java.awt.ComponentOrientation.class })); // NOI18N
methods[METHOD_applyComponentOrientation11].setDisplayName("");
methods[METHOD_areFocusTraversalKeysSet12] = new MethodDescriptor(java.awt.Container.class.getMethod("areFocusTraversalKeysSet", new Class[] { int.class })); // NOI18N
methods[METHOD_areFocusTraversalKeysSet12].setDisplayName("");
methods[METHOD_bounds13] = new MethodDescriptor(java.awt.Component.class.getMethod("bounds", new Class[] {})); // NOI18N
methods[METHOD_bounds13].setDisplayName("");
methods[METHOD_checkImage14] = new MethodDescriptor(
java.awt.Component.class.getMethod("checkImage", new Class[] { java.awt.Image.class, java.awt.image.ImageObserver.class })); // NOI18N
methods[METHOD_checkImage14].setDisplayName("");
methods[METHOD_checkImage15] = new MethodDescriptor(
java.awt.Component.class.getMethod("checkImage", new Class[] { java.awt.Image.class, int.class, int.class, java.awt.image.ImageObserver.class })); // NOI18N
methods[METHOD_checkImage15].setDisplayName("");
methods[METHOD_computeVisibleRect16] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("computeVisibleRect", new Class[] { java.awt.Rectangle.class })); // NOI18N
methods[METHOD_computeVisibleRect16].setDisplayName("");
methods[METHOD_contains17] = new MethodDescriptor(java.awt.Component.class.getMethod("contains", new Class[] { java.awt.Point.class })); // NOI18N
methods[METHOD_contains17].setDisplayName("");
methods[METHOD_contains18] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("contains", new Class[] { int.class, int.class })); // NOI18N
methods[METHOD_contains18].setDisplayName("");
methods[METHOD_copy19] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("copy", new Class[] {})); // NOI18N
methods[METHOD_copy19].setDisplayName("");
methods[METHOD_countComponents20] = new MethodDescriptor(java.awt.Container.class.getMethod("countComponents", new Class[] {})); // NOI18N
methods[METHOD_countComponents20].setDisplayName("");
methods[METHOD_createImage21] = new MethodDescriptor(java.awt.Component.class.getMethod("createImage", new Class[] { java.awt.image.ImageProducer.class })); // NOI18N
methods[METHOD_createImage21].setDisplayName("");
methods[METHOD_createImage22] = new MethodDescriptor(java.awt.Component.class.getMethod("createImage", new Class[] { int.class, int.class })); // NOI18N
methods[METHOD_createImage22].setDisplayName("");
methods[METHOD_createToolTip23] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("createToolTip", new Class[] {})); // NOI18N
methods[METHOD_createToolTip23].setDisplayName("");
methods[METHOD_createVolatileImage24] = new MethodDescriptor(java.awt.Component.class.getMethod("createVolatileImage", new Class[] { int.class, int.class })); // NOI18N
methods[METHOD_createVolatileImage24].setDisplayName("");
methods[METHOD_createVolatileImage25] = new MethodDescriptor(
java.awt.Component.class.getMethod("createVolatileImage", new Class[] { int.class, int.class, java.awt.ImageCapabilities.class })); // NOI18N
methods[METHOD_createVolatileImage25].setDisplayName("");
methods[METHOD_cut26] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("cut", new Class[] {})); // NOI18N
methods[METHOD_cut26].setDisplayName("");
methods[METHOD_deliverEvent27] = new MethodDescriptor(java.awt.Container.class.getMethod("deliverEvent", new Class[] { java.awt.Event.class })); // NOI18N
methods[METHOD_deliverEvent27].setDisplayName("");
methods[METHOD_disable28] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("disable", new Class[] {})); // NOI18N
methods[METHOD_disable28].setDisplayName("");
methods[METHOD_dispatchEvent29] = new MethodDescriptor(java.awt.Component.class.getMethod("dispatchEvent", new Class[] { java.awt.AWTEvent.class })); // NOI18N
methods[METHOD_dispatchEvent29].setDisplayName("");
methods[METHOD_doLayout30] = new MethodDescriptor(java.awt.Container.class.getMethod("doLayout", new Class[] {})); // NOI18N
methods[METHOD_doLayout30].setDisplayName("");
methods[METHOD_enable31] = new MethodDescriptor(java.awt.Component.class.getMethod("enable", new Class[] { boolean.class })); // NOI18N
methods[METHOD_enable31].setDisplayName("");
methods[METHOD_enable32] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("enable", new Class[] {})); // NOI18N
methods[METHOD_enable32].setDisplayName("");
methods[METHOD_enableInputMethods33] = new MethodDescriptor(java.awt.Component.class.getMethod("enableInputMethods", new Class[] { boolean.class })); // NOI18N
methods[METHOD_enableInputMethods33].setDisplayName("");
methods[METHOD_findComponentAt34] = new MethodDescriptor(java.awt.Container.class.getMethod("findComponentAt", new Class[] { int.class, int.class })); // NOI18N
methods[METHOD_findComponentAt34].setDisplayName("");
methods[METHOD_findComponentAt35] = new MethodDescriptor(java.awt.Container.class.getMethod("findComponentAt", new Class[] { java.awt.Point.class })); // NOI18N
methods[METHOD_findComponentAt35].setDisplayName("");
methods[METHOD_firePropertyChange36] = new MethodDescriptor(
java.awt.Component.class.getMethod("firePropertyChange", new Class[] { java.lang.String.class, byte.class, byte.class })); // NOI18N
methods[METHOD_firePropertyChange36].setDisplayName("");
methods[METHOD_firePropertyChange37] = new MethodDescriptor(
java.awt.Component.class.getMethod("firePropertyChange", new Class[] { java.lang.String.class, short.class, short.class })); // NOI18N
methods[METHOD_firePropertyChange37].setDisplayName("");
methods[METHOD_firePropertyChange38] = new MethodDescriptor(
java.awt.Component.class.getMethod("firePropertyChange", new Class[] { java.lang.String.class, long.class, long.class })); // NOI18N
methods[METHOD_firePropertyChange38].setDisplayName("");
methods[METHOD_firePropertyChange39] = new MethodDescriptor(
java.awt.Component.class.getMethod("firePropertyChange", new Class[] { java.lang.String.class, float.class, float.class })); // NOI18N
methods[METHOD_firePropertyChange39].setDisplayName("");
methods[METHOD_firePropertyChange40] = new MethodDescriptor(
java.awt.Component.class.getMethod("firePropertyChange", new Class[] { java.lang.String.class, double.class, double.class })); // NOI18N
methods[METHOD_firePropertyChange40].setDisplayName("");
methods[METHOD_firePropertyChange41] = new MethodDescriptor(
javax.swing.JComponent.class.getMethod("firePropertyChange", new Class[] { java.lang.String.class, boolean.class, boolean.class })); // NOI18N
methods[METHOD_firePropertyChange41].setDisplayName("");
methods[METHOD_firePropertyChange42] = new MethodDescriptor(
javax.swing.JComponent.class.getMethod("firePropertyChange", new Class[] { java.lang.String.class, int.class, int.class })); // NOI18N
methods[METHOD_firePropertyChange42].setDisplayName("");
methods[METHOD_firePropertyChange43] = new MethodDescriptor(
javax.swing.JComponent.class.getMethod("firePropertyChange", new Class[] { java.lang.String.class, char.class, char.class })); // NOI18N
methods[METHOD_firePropertyChange43].setDisplayName("");
methods[METHOD_getActionForKeyStroke44] = new MethodDescriptor(
javax.swing.JComponent.class.getMethod("getActionForKeyStroke", new Class[] { javax.swing.KeyStroke.class })); // NOI18N
methods[METHOD_getActionForKeyStroke44].setDisplayName("");
methods[METHOD_getBaseline45] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("getBaseline", new Class[] { int.class, int.class })); // NOI18N
methods[METHOD_getBaseline45].setDisplayName("");
methods[METHOD_getBounds46] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("getBounds", new Class[] { java.awt.Rectangle.class })); // NOI18N
methods[METHOD_getBounds46].setDisplayName("");
methods[METHOD_getClientProperty47] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("getClientProperty", new Class[] { java.lang.Object.class })); // NOI18N
methods[METHOD_getClientProperty47].setDisplayName("");
methods[METHOD_getComponentAt48] = new MethodDescriptor(java.awt.Container.class.getMethod("getComponentAt", new Class[] { int.class, int.class })); // NOI18N
methods[METHOD_getComponentAt48].setDisplayName("");
methods[METHOD_getComponentAt49] = new MethodDescriptor(java.awt.Container.class.getMethod("getComponentAt", new Class[] { java.awt.Point.class })); // NOI18N
methods[METHOD_getComponentAt49].setDisplayName("");
methods[METHOD_getComponentZOrder50] = new MethodDescriptor(java.awt.Container.class.getMethod("getComponentZOrder", new Class[] { java.awt.Component.class })); // NOI18N
methods[METHOD_getComponentZOrder50].setDisplayName("");
methods[METHOD_getConditionForKeyStroke51] = new MethodDescriptor(
javax.swing.JComponent.class.getMethod("getConditionForKeyStroke", new Class[] { javax.swing.KeyStroke.class })); // NOI18N
methods[METHOD_getConditionForKeyStroke51].setDisplayName("");
methods[METHOD_getDefaultLocale52] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("getDefaultLocale", new Class[] {})); // NOI18N
methods[METHOD_getDefaultLocale52].setDisplayName("");
methods[METHOD_getFocusTraversalKeys53] = new MethodDescriptor(java.awt.Container.class.getMethod("getFocusTraversalKeys", new Class[] { int.class })); // NOI18N
methods[METHOD_getFocusTraversalKeys53].setDisplayName("");
methods[METHOD_getFontMetrics54] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("getFontMetrics", new Class[] { java.awt.Font.class })); // NOI18N
methods[METHOD_getFontMetrics54].setDisplayName("");
methods[METHOD_getInsets55] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("getInsets", new Class[] { java.awt.Insets.class })); // NOI18N
methods[METHOD_getInsets55].setDisplayName("");
methods[METHOD_getKeymap56] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("getKeymap", new Class[] { java.lang.String.class })); // NOI18N
methods[METHOD_getKeymap56].setDisplayName("");
methods[METHOD_getListeners57] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("getListeners", new Class[] { java.lang.Class.class })); // NOI18N
methods[METHOD_getListeners57].setDisplayName("");
methods[METHOD_getLocation58] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("getLocation", new Class[] { java.awt.Point.class })); // NOI18N
methods[METHOD_getLocation58].setDisplayName("");
methods[METHOD_getMousePosition59] = new MethodDescriptor(java.awt.Container.class.getMethod("getMousePosition", new Class[] { boolean.class })); // NOI18N
methods[METHOD_getMousePosition59].setDisplayName("");
methods[METHOD_getPopupLocation60] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("getPopupLocation", new Class[] { java.awt.event.MouseEvent.class })); // NOI18N
methods[METHOD_getPopupLocation60].setDisplayName("");
methods[METHOD_getPrintable61] = new MethodDescriptor(
javax.swing.text.JTextComponent.class.getMethod("getPrintable", new Class[] { java.text.MessageFormat.class, java.text.MessageFormat.class })); // NOI18N
methods[METHOD_getPrintable61].setDisplayName("");
methods[METHOD_getPropertyChangeListeners62] = new MethodDescriptor(
java.awt.Component.class.getMethod("getPropertyChangeListeners", new Class[] { java.lang.String.class })); // NOI18N
methods[METHOD_getPropertyChangeListeners62].setDisplayName("");
methods[METHOD_getScrollableBlockIncrement63] = new MethodDescriptor(
javax.swing.text.JTextComponent.class.getMethod("getScrollableBlockIncrement", new Class[] { java.awt.Rectangle.class, int.class, int.class })); // NOI18N
methods[METHOD_getScrollableBlockIncrement63].setDisplayName("");
methods[METHOD_getScrollableUnitIncrement64] = new MethodDescriptor(
javax.swing.JTextArea.class.getMethod("getScrollableUnitIncrement", new Class[] { java.awt.Rectangle.class, int.class, int.class })); // NOI18N
methods[METHOD_getScrollableUnitIncrement64].setDisplayName("");
methods[METHOD_getSize65] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("getSize", new Class[] { java.awt.Dimension.class })); // NOI18N
methods[METHOD_getSize65].setDisplayName("");
methods[METHOD_getText66] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("getText", new Class[] { int.class, int.class })); // NOI18N
methods[METHOD_getText66].setDisplayName("");
methods[METHOD_getToolTipLocation67] = new MethodDescriptor(
javax.swing.JComponent.class.getMethod("getToolTipLocation", new Class[] { java.awt.event.MouseEvent.class })); // NOI18N
methods[METHOD_getToolTipLocation67].setDisplayName("");
methods[METHOD_getToolTipText68] = new MethodDescriptor(
javax.swing.text.JTextComponent.class.getMethod("getToolTipText", new Class[] { java.awt.event.MouseEvent.class })); // NOI18N
methods[METHOD_getToolTipText68].setDisplayName("");
methods[METHOD_gotFocus69] = new MethodDescriptor(java.awt.Component.class.getMethod("gotFocus", new Class[] { java.awt.Event.class, java.lang.Object.class })); // NOI18N
methods[METHOD_gotFocus69].setDisplayName("");
methods[METHOD_grabFocus70] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("grabFocus", new Class[] {})); // NOI18N
methods[METHOD_grabFocus70].setDisplayName("");
methods[METHOD_handleEvent71] = new MethodDescriptor(java.awt.Component.class.getMethod("handleEvent", new Class[] { java.awt.Event.class })); // NOI18N
methods[METHOD_handleEvent71].setDisplayName("");
methods[METHOD_hasFocus72] = new MethodDescriptor(java.awt.Component.class.getMethod("hasFocus", new Class[] {})); // NOI18N
methods[METHOD_hasFocus72].setDisplayName("");
methods[METHOD_hide73] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("hide", new Class[] {})); // NOI18N
methods[METHOD_hide73].setDisplayName("");
methods[METHOD_imageUpdate74] = new MethodDescriptor(
java.awt.Component.class.getMethod("imageUpdate", new Class[] { java.awt.Image.class, int.class, int.class, int.class, int.class, int.class })); // NOI18N
methods[METHOD_imageUpdate74].setDisplayName("");
methods[METHOD_insert75] = new MethodDescriptor(javax.swing.JTextArea.class.getMethod("insert", new Class[] { java.lang.String.class, int.class })); // NOI18N
methods[METHOD_insert75].setDisplayName("");
methods[METHOD_insets76] = new MethodDescriptor(java.awt.Container.class.getMethod("insets", new Class[] {})); // NOI18N
methods[METHOD_insets76].setDisplayName("");
methods[METHOD_inside77] = new MethodDescriptor(java.awt.Component.class.getMethod("inside", new Class[] { int.class, int.class })); // NOI18N
methods[METHOD_inside77].setDisplayName("");
methods[METHOD_invalidate78] = new MethodDescriptor(java.awt.Container.class.getMethod("invalidate", new Class[] {})); // NOI18N
methods[METHOD_invalidate78].setDisplayName("");
methods[METHOD_isAncestorOf79] = new MethodDescriptor(java.awt.Container.class.getMethod("isAncestorOf", new Class[] { java.awt.Component.class })); // NOI18N
methods[METHOD_isAncestorOf79].setDisplayName("");
methods[METHOD_isFocusCycleRoot80] = new MethodDescriptor(java.awt.Container.class.getMethod("isFocusCycleRoot", new Class[] { java.awt.Container.class })); // NOI18N
methods[METHOD_isFocusCycleRoot80].setDisplayName("");
methods[METHOD_isLightweightComponent81] = new MethodDescriptor(
javax.swing.JComponent.class.getMethod("isLightweightComponent", new Class[] { java.awt.Component.class })); // NOI18N
methods[METHOD_isLightweightComponent81].setDisplayName("");
methods[METHOD_keyDown82] = new MethodDescriptor(java.awt.Component.class.getMethod("keyDown", new Class[] { java.awt.Event.class, int.class })); // NOI18N
methods[METHOD_keyDown82].setDisplayName("");
methods[METHOD_keyUp83] = new MethodDescriptor(java.awt.Component.class.getMethod("keyUp", new Class[] { java.awt.Event.class, int.class })); // NOI18N
methods[METHOD_keyUp83].setDisplayName("");
methods[METHOD_layout84] = new MethodDescriptor(java.awt.Container.class.getMethod("layout", new Class[] {})); // NOI18N
methods[METHOD_layout84].setDisplayName("");
methods[METHOD_list85] = new MethodDescriptor(java.awt.Component.class.getMethod("list", new Class[] {})); // NOI18N
methods[METHOD_list85].setDisplayName("");
methods[METHOD_list86] = new MethodDescriptor(java.awt.Component.class.getMethod("list", new Class[] { java.io.PrintStream.class })); // NOI18N
methods[METHOD_list86].setDisplayName("");
methods[METHOD_list87] = new MethodDescriptor(java.awt.Component.class.getMethod("list", new Class[] { java.io.PrintWriter.class })); // NOI18N
methods[METHOD_list87].setDisplayName("");
methods[METHOD_list88] = new MethodDescriptor(java.awt.Container.class.getMethod("list", new Class[] { java.io.PrintStream.class, int.class })); // NOI18N
methods[METHOD_list88].setDisplayName("");
methods[METHOD_list89] = new MethodDescriptor(java.awt.Container.class.getMethod("list", new Class[] { java.io.PrintWriter.class, int.class })); // NOI18N
methods[METHOD_list89].setDisplayName("");
methods[METHOD_loadKeymap90] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("loadKeymap",
new Class[] { javax.swing.text.Keymap.class, javax.swing.text.JTextComponent.KeyBinding[].class, javax.swing.Action[].class })); // NOI18N
methods[METHOD_loadKeymap90].setDisplayName("");
methods[METHOD_locate91] = new MethodDescriptor(java.awt.Container.class.getMethod("locate", new Class[] { int.class, int.class })); // NOI18N
methods[METHOD_locate91].setDisplayName("");
methods[METHOD_location92] = new MethodDescriptor(java.awt.Component.class.getMethod("location", new Class[] {})); // NOI18N
methods[METHOD_location92].setDisplayName("");
methods[METHOD_lostFocus93] = new MethodDescriptor(java.awt.Component.class.getMethod("lostFocus", new Class[] { java.awt.Event.class, java.lang.Object.class })); // NOI18N
methods[METHOD_lostFocus93].setDisplayName("");
methods[METHOD_minimumSize94] = new MethodDescriptor(java.awt.Container.class.getMethod("minimumSize", new Class[] {})); // NOI18N
methods[METHOD_minimumSize94].setDisplayName("");
methods[METHOD_modelToView95] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("modelToView", new Class[] { int.class })); // NOI18N
methods[METHOD_modelToView95].setDisplayName("");
methods[METHOD_mouseDown96] = new MethodDescriptor(java.awt.Component.class.getMethod("mouseDown", new Class[] { java.awt.Event.class, int.class, int.class })); // NOI18N
methods[METHOD_mouseDown96].setDisplayName("");
methods[METHOD_mouseDrag97] = new MethodDescriptor(java.awt.Component.class.getMethod("mouseDrag", new Class[] { java.awt.Event.class, int.class, int.class })); // NOI18N
methods[METHOD_mouseDrag97].setDisplayName("");
methods[METHOD_mouseEnter98] = new MethodDescriptor(java.awt.Component.class.getMethod("mouseEnter", new Class[] { java.awt.Event.class, int.class, int.class })); // NOI18N
methods[METHOD_mouseEnter98].setDisplayName("");
methods[METHOD_mouseExit99] = new MethodDescriptor(java.awt.Component.class.getMethod("mouseExit", new Class[] { java.awt.Event.class, int.class, int.class })); // NOI18N
methods[METHOD_mouseExit99].setDisplayName("");
methods[METHOD_mouseMove100] = new MethodDescriptor(java.awt.Component.class.getMethod("mouseMove", new Class[] { java.awt.Event.class, int.class, int.class })); // NOI18N
methods[METHOD_mouseMove100].setDisplayName("");
methods[METHOD_mouseUp101] = new MethodDescriptor(java.awt.Component.class.getMethod("mouseUp", new Class[] { java.awt.Event.class, int.class, int.class })); // NOI18N
methods[METHOD_mouseUp101].setDisplayName("");
methods[METHOD_move102] = new MethodDescriptor(java.awt.Component.class.getMethod("move", new Class[] { int.class, int.class })); // NOI18N
methods[METHOD_move102].setDisplayName("");
methods[METHOD_moveCaretPosition103] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("moveCaretPosition", new Class[] { int.class })); // NOI18N
methods[METHOD_moveCaretPosition103].setDisplayName("");
methods[METHOD_nextFocus104] = new MethodDescriptor(java.awt.Component.class.getMethod("nextFocus", new Class[] {})); // NOI18N
methods[METHOD_nextFocus104].setDisplayName("");
methods[METHOD_paint105] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("paint", new Class[] { java.awt.Graphics.class })); // NOI18N
methods[METHOD_paint105].setDisplayName("");
methods[METHOD_paintAll106] = new MethodDescriptor(java.awt.Component.class.getMethod("paintAll", new Class[] { java.awt.Graphics.class })); // NOI18N
methods[METHOD_paintAll106].setDisplayName("");
methods[METHOD_paintComponents107] = new MethodDescriptor(java.awt.Container.class.getMethod("paintComponents", new Class[] { java.awt.Graphics.class })); // NOI18N
methods[METHOD_paintComponents107].setDisplayName("");
methods[METHOD_paintImmediately108] = new MethodDescriptor(
javax.swing.JComponent.class.getMethod("paintImmediately", new Class[] { int.class, int.class, int.class, int.class })); // NOI18N
methods[METHOD_paintImmediately108].setDisplayName("");
methods[METHOD_paintImmediately109] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("paintImmediately", new Class[] { java.awt.Rectangle.class })); // NOI18N
methods[METHOD_paintImmediately109].setDisplayName("");
methods[METHOD_paste110] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("paste", new Class[] {})); // NOI18N
methods[METHOD_paste110].setDisplayName("");
methods[METHOD_postEvent111] = new MethodDescriptor(java.awt.Component.class.getMethod("postEvent", new Class[] { java.awt.Event.class })); // NOI18N
methods[METHOD_postEvent111].setDisplayName("");
methods[METHOD_preferredSize112] = new MethodDescriptor(java.awt.Container.class.getMethod("preferredSize", new Class[] {})); // NOI18N
methods[METHOD_preferredSize112].setDisplayName("");
methods[METHOD_prepareImage113] = new MethodDescriptor(
java.awt.Component.class.getMethod("prepareImage", new Class[] { java.awt.Image.class, java.awt.image.ImageObserver.class })); // NOI18N
methods[METHOD_prepareImage113].setDisplayName("");
methods[METHOD_prepareImage114] = new MethodDescriptor(
java.awt.Component.class.getMethod("prepareImage", new Class[] { java.awt.Image.class, int.class, int.class, java.awt.image.ImageObserver.class })); // NOI18N
methods[METHOD_prepareImage114].setDisplayName("");
methods[METHOD_print115] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("print", new Class[] { java.awt.Graphics.class })); // NOI18N
methods[METHOD_print115].setDisplayName("");
methods[METHOD_print116] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("print", new Class[] {})); // NOI18N
methods[METHOD_print116].setDisplayName("");
methods[METHOD_print117] = new MethodDescriptor(
javax.swing.text.JTextComponent.class.getMethod("print", new Class[] { java.text.MessageFormat.class, java.text.MessageFormat.class })); // NOI18N
methods[METHOD_print117].setDisplayName("");
methods[METHOD_print118] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("print", new Class[] { java.text.MessageFormat.class,
java.text.MessageFormat.class, boolean.class, javax.print.PrintService.class, javax.print.attribute.PrintRequestAttributeSet.class, boolean.class })); // NOI18N
methods[METHOD_print118].setDisplayName("");
methods[METHOD_printAll119] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("printAll", new Class[] { java.awt.Graphics.class })); // NOI18N
methods[METHOD_printAll119].setDisplayName("");
methods[METHOD_printComponents120] = new MethodDescriptor(java.awt.Container.class.getMethod("printComponents", new Class[] { java.awt.Graphics.class })); // NOI18N
methods[METHOD_printComponents120].setDisplayName("");
methods[METHOD_processMouseEvent121] = new MethodDescriptor(
org.tio.examples.im.client.ui.component.MyTextArea.class.getMethod("processMouseEvent", new Class[] { java.awt.event.MouseEvent.class })); // NOI18N
methods[METHOD_processMouseEvent121].setDisplayName("");
methods[METHOD_putClientProperty122] = new MethodDescriptor(
javax.swing.JComponent.class.getMethod("putClientProperty", new Class[] { java.lang.Object.class, java.lang.Object.class })); // NOI18N
methods[METHOD_putClientProperty122].setDisplayName("");
methods[METHOD_read123] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("read", new Class[] { java.io.Reader.class, java.lang.Object.class })); // NOI18N
methods[METHOD_read123].setDisplayName("");
methods[METHOD_registerKeyboardAction124] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("registerKeyboardAction",
new Class[] { java.awt.event.ActionListener.class, java.lang.String.class, javax.swing.KeyStroke.class, int.class })); // NOI18N
methods[METHOD_registerKeyboardAction124].setDisplayName("");
methods[METHOD_registerKeyboardAction125] = new MethodDescriptor(
javax.swing.JComponent.class.getMethod("registerKeyboardAction", new Class[] { java.awt.event.ActionListener.class, javax.swing.KeyStroke.class, int.class })); // NOI18N
methods[METHOD_registerKeyboardAction125].setDisplayName("");
methods[METHOD_remove126] = new MethodDescriptor(java.awt.Component.class.getMethod("remove", new Class[] { java.awt.MenuComponent.class })); // NOI18N
methods[METHOD_remove126].setDisplayName("");
methods[METHOD_remove127] = new MethodDescriptor(java.awt.Container.class.getMethod("remove", new Class[] { int.class })); // NOI18N
methods[METHOD_remove127].setDisplayName("");
methods[METHOD_remove128] = new MethodDescriptor(java.awt.Container.class.getMethod("remove", new Class[] { java.awt.Component.class })); // NOI18N
methods[METHOD_remove128].setDisplayName("");
methods[METHOD_removeAll129] = new MethodDescriptor(java.awt.Container.class.getMethod("removeAll", new Class[] {})); // NOI18N
methods[METHOD_removeAll129].setDisplayName("");
methods[METHOD_removeKeymap130] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("removeKeymap", new Class[] { java.lang.String.class })); // NOI18N
methods[METHOD_removeKeymap130].setDisplayName("");
methods[METHOD_removeNotify131] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("removeNotify", new Class[] {})); // NOI18N
methods[METHOD_removeNotify131].setDisplayName("");
methods[METHOD_removePropertyChangeListener132] = new MethodDescriptor(
java.awt.Component.class.getMethod("removePropertyChangeListener", new Class[] { java.lang.String.class, java.beans.PropertyChangeListener.class })); // NOI18N
methods[METHOD_removePropertyChangeListener132].setDisplayName("");
methods[METHOD_repaint133] = new MethodDescriptor(java.awt.Component.class.getMethod("repaint", new Class[] {})); // NOI18N
methods[METHOD_repaint133].setDisplayName("");
methods[METHOD_repaint134] = new MethodDescriptor(java.awt.Component.class.getMethod("repaint", new Class[] { long.class })); // NOI18N
methods[METHOD_repaint134].setDisplayName("");
methods[METHOD_repaint135] = new MethodDescriptor(java.awt.Component.class.getMethod("repaint", new Class[] { int.class, int.class, int.class, int.class })); // NOI18N
methods[METHOD_repaint135].setDisplayName("");
methods[METHOD_repaint136] = new MethodDescriptor(
javax.swing.JComponent.class.getMethod("repaint", new Class[] { long.class, int.class, int.class, int.class, int.class })); // NOI18N
methods[METHOD_repaint136].setDisplayName("");
methods[METHOD_repaint137] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("repaint", new Class[] { java.awt.Rectangle.class })); // NOI18N
methods[METHOD_repaint137].setDisplayName("");
methods[METHOD_replaceRange138] = new MethodDescriptor(
javax.swing.JTextArea.class.getMethod("replaceRange", new Class[] { java.lang.String.class, int.class, int.class })); // NOI18N
methods[METHOD_replaceRange138].setDisplayName("");
methods[METHOD_replaceSelection139] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("replaceSelection", new Class[] { java.lang.String.class })); // NOI18N
methods[METHOD_replaceSelection139].setDisplayName("");
methods[METHOD_requestDefaultFocus140] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("requestDefaultFocus", new Class[] {})); // NOI18N
methods[METHOD_requestDefaultFocus140].setDisplayName("");
methods[METHOD_requestFocus141] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("requestFocus", new Class[] {})); // NOI18N
methods[METHOD_requestFocus141].setDisplayName("");
methods[METHOD_requestFocus142] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("requestFocus", new Class[] { boolean.class })); // NOI18N
methods[METHOD_requestFocus142].setDisplayName("");
methods[METHOD_requestFocusInWindow143] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("requestFocusInWindow", new Class[] {})); // NOI18N
methods[METHOD_requestFocusInWindow143].setDisplayName("");
methods[METHOD_resetKeyboardActions144] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("resetKeyboardActions", new Class[] {})); // NOI18N
methods[METHOD_resetKeyboardActions144].setDisplayName("");
methods[METHOD_reshape145] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("reshape", new Class[] { int.class, int.class, int.class, int.class })); // NOI18N
methods[METHOD_reshape145].setDisplayName("");
methods[METHOD_resize146] = new MethodDescriptor(java.awt.Component.class.getMethod("resize", new Class[] { int.class, int.class })); // NOI18N
methods[METHOD_resize146].setDisplayName("");
methods[METHOD_resize147] = new MethodDescriptor(java.awt.Component.class.getMethod("resize", new Class[] { java.awt.Dimension.class })); // NOI18N
methods[METHOD_resize147].setDisplayName("");
methods[METHOD_revalidate148] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("revalidate", new Class[] {})); // NOI18N
methods[METHOD_revalidate148].setDisplayName("");
methods[METHOD_scrollRectToVisible149] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("scrollRectToVisible", new Class[] { java.awt.Rectangle.class })); // NOI18N
methods[METHOD_scrollRectToVisible149].setDisplayName("");
methods[METHOD_select150] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("select", new Class[] { int.class, int.class })); // NOI18N
methods[METHOD_select150].setDisplayName("");
methods[METHOD_selectAll151] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("selectAll", new Class[] {})); // NOI18N
methods[METHOD_selectAll151].setDisplayName("");
methods[METHOD_setBounds152] = new MethodDescriptor(java.awt.Component.class.getMethod("setBounds", new Class[] { int.class, int.class, int.class, int.class })); // NOI18N
methods[METHOD_setBounds152].setDisplayName("");
methods[METHOD_setComponentZOrder153] = new MethodDescriptor(
java.awt.Container.class.getMethod("setComponentZOrder", new Class[] { java.awt.Component.class, int.class })); // NOI18N
methods[METHOD_setComponentZOrder153].setDisplayName("");
methods[METHOD_setDefaultLocale154] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("setDefaultLocale", new Class[] { java.util.Locale.class })); // NOI18N
methods[METHOD_setDefaultLocale154].setDisplayName("");
methods[METHOD_show155] = new MethodDescriptor(java.awt.Component.class.getMethod("show", new Class[] {})); // NOI18N
methods[METHOD_show155].setDisplayName("");
methods[METHOD_show156] = new MethodDescriptor(java.awt.Component.class.getMethod("show", new Class[] { boolean.class })); // NOI18N
methods[METHOD_show156].setDisplayName("");
methods[METHOD_size157] = new MethodDescriptor(java.awt.Component.class.getMethod("size", new Class[] {})); // NOI18N
methods[METHOD_size157].setDisplayName("");
methods[METHOD_toString158] = new MethodDescriptor(java.awt.Component.class.getMethod("toString", new Class[] {})); // NOI18N
methods[METHOD_toString158].setDisplayName("");
methods[METHOD_transferFocus159] = new MethodDescriptor(java.awt.Component.class.getMethod("transferFocus", new Class[] {})); // NOI18N
methods[METHOD_transferFocus159].setDisplayName("");
methods[METHOD_transferFocusBackward160] = new MethodDescriptor(java.awt.Component.class.getMethod("transferFocusBackward", new Class[] {})); // NOI18N
methods[METHOD_transferFocusBackward160].setDisplayName("");
methods[METHOD_transferFocusDownCycle161] = new MethodDescriptor(java.awt.Container.class.getMethod("transferFocusDownCycle", new Class[] {})); // NOI18N
methods[METHOD_transferFocusDownCycle161].setDisplayName("");
methods[METHOD_transferFocusUpCycle162] = new MethodDescriptor(java.awt.Component.class.getMethod("transferFocusUpCycle", new Class[] {})); // NOI18N
methods[METHOD_transferFocusUpCycle162].setDisplayName("");
methods[METHOD_unregisterKeyboardAction163] = new MethodDescriptor(
javax.swing.JComponent.class.getMethod("unregisterKeyboardAction", new Class[] { javax.swing.KeyStroke.class })); // NOI18N
methods[METHOD_unregisterKeyboardAction163].setDisplayName("");
methods[METHOD_update164] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("update", new Class[] { java.awt.Graphics.class })); // NOI18N
methods[METHOD_update164].setDisplayName("");
methods[METHOD_updateUI165] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("updateUI", new Class[] {})); // NOI18N
methods[METHOD_updateUI165].setDisplayName("");
methods[METHOD_validate166] = new MethodDescriptor(java.awt.Container.class.getMethod("validate", new Class[] {})); // NOI18N
methods[METHOD_validate166].setDisplayName("");
methods[METHOD_viewToModel167] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("viewToModel", new Class[] { java.awt.Point.class })); // NOI18N
methods[METHOD_viewToModel167].setDisplayName("");
methods[METHOD_write168] = new MethodDescriptor(javax.swing.text.JTextComponent.class.getMethod("write", new Class[] { java.io.Writer.class })); // NOI18N
methods[METHOD_write168].setDisplayName("");
} catch (Exception e) {
} //GEN-HEADEREND:Methods
// Here you can add code for customizing the methods array.
return methods;
}//GEN-LAST:Methods
// Property array
/*lazy PropertyDescriptor*/
private static PropertyDescriptor[] getPdescriptor() {
PropertyDescriptor[] properties = new PropertyDescriptor[135];
try {
properties[PROPERTY_accessibleContext] = new PropertyDescriptor("accessibleContext", org.tio.examples.im.client.ui.component.MyTextArea.class, "getAccessibleContext",
null); // NOI18N
properties[PROPERTY_actionMap] = new PropertyDescriptor("actionMap", org.tio.examples.im.client.ui.component.MyTextArea.class, "getActionMap", "setActionMap"); // NOI18N
properties[PROPERTY_actions] = new PropertyDescriptor("actions", org.tio.examples.im.client.ui.component.MyTextArea.class, "getActions", null); // NOI18N
properties[PROPERTY_alignmentX] = new PropertyDescriptor("alignmentX", org.tio.examples.im.client.ui.component.MyTextArea.class, "getAlignmentX", "setAlignmentX"); // NOI18N
properties[PROPERTY_alignmentY] = new PropertyDescriptor("alignmentY", org.tio.examples.im.client.ui.component.MyTextArea.class, "getAlignmentY", "setAlignmentY"); // NOI18N
properties[PROPERTY_ancestorListeners] = new PropertyDescriptor("ancestorListeners", org.tio.examples.im.client.ui.component.MyTextArea.class, "getAncestorListeners",
null); // NOI18N
properties[PROPERTY_autoscrolls] = new PropertyDescriptor("autoscrolls", org.tio.examples.im.client.ui.component.MyTextArea.class, "getAutoscrolls", "setAutoscrolls"); // NOI18N
properties[PROPERTY_background] = new PropertyDescriptor("background", org.tio.examples.im.client.ui.component.MyTextArea.class, "getBackground", "setBackground"); // NOI18N
properties[PROPERTY_backgroundSet] = new PropertyDescriptor("backgroundSet", org.tio.examples.im.client.ui.component.MyTextArea.class, "isBackgroundSet", null); // NOI18N
properties[PROPERTY_baselineResizeBehavior] = new PropertyDescriptor("baselineResizeBehavior", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getBaselineResizeBehavior", null); // NOI18N
properties[PROPERTY_border] = new PropertyDescriptor("border", org.tio.examples.im.client.ui.component.MyTextArea.class, "getBorder", "setBorder"); // NOI18N
properties[PROPERTY_bounds] = new PropertyDescriptor("bounds", org.tio.examples.im.client.ui.component.MyTextArea.class, "getBounds", "setBounds"); // NOI18N
properties[PROPERTY_caret] = new PropertyDescriptor("caret", org.tio.examples.im.client.ui.component.MyTextArea.class, "getCaret", "setCaret"); // NOI18N
properties[PROPERTY_caretColor] = new PropertyDescriptor("caretColor", org.tio.examples.im.client.ui.component.MyTextArea.class, "getCaretColor", "setCaretColor"); // NOI18N
properties[PROPERTY_caretListeners] = new PropertyDescriptor("caretListeners", org.tio.examples.im.client.ui.component.MyTextArea.class, "getCaretListeners", null); // NOI18N
properties[PROPERTY_caretPosition] = new PropertyDescriptor("caretPosition", org.tio.examples.im.client.ui.component.MyTextArea.class, "getCaretPosition",
"setCaretPosition"); // NOI18N
properties[PROPERTY_colorModel] = new PropertyDescriptor("colorModel", org.tio.examples.im.client.ui.component.MyTextArea.class, "getColorModel", null); // NOI18N
properties[PROPERTY_columns] = new PropertyDescriptor("columns", org.tio.examples.im.client.ui.component.MyTextArea.class, "getColumns", "setColumns"); // NOI18N
properties[PROPERTY_component] = new IndexedPropertyDescriptor("component", org.tio.examples.im.client.ui.component.MyTextArea.class, null, null, "getComponent", null); // NOI18N
properties[PROPERTY_componentCount] = new PropertyDescriptor("componentCount", org.tio.examples.im.client.ui.component.MyTextArea.class, "getComponentCount", null); // NOI18N
properties[PROPERTY_componentListeners] = new PropertyDescriptor("componentListeners", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getComponentListeners", null); // NOI18N
properties[PROPERTY_componentOrientation] = new PropertyDescriptor("componentOrientation", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getComponentOrientation", "setComponentOrientation"); // NOI18N
properties[PROPERTY_componentPopupMenu] = new PropertyDescriptor("componentPopupMenu", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getComponentPopupMenu", "setComponentPopupMenu"); // NOI18N
properties[PROPERTY_components] = new PropertyDescriptor("components", org.tio.examples.im.client.ui.component.MyTextArea.class, "getComponents", null); // NOI18N
properties[PROPERTY_containerListeners] = new PropertyDescriptor("containerListeners", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getContainerListeners", null); // NOI18N
properties[PROPERTY_cursor] = new PropertyDescriptor("cursor", org.tio.examples.im.client.ui.component.MyTextArea.class, "getCursor", "setCursor"); // NOI18N
properties[PROPERTY_cursorSet] = new PropertyDescriptor("cursorSet", org.tio.examples.im.client.ui.component.MyTextArea.class, "isCursorSet", null); // NOI18N
properties[PROPERTY_debugGraphicsOptions] = new PropertyDescriptor("debugGraphicsOptions", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getDebugGraphicsOptions", "setDebugGraphicsOptions"); // NOI18N
properties[PROPERTY_disabledTextColor] = new PropertyDescriptor("disabledTextColor", org.tio.examples.im.client.ui.component.MyTextArea.class, "getDisabledTextColor",
"setDisabledTextColor"); // NOI18N
properties[PROPERTY_displayable] = new PropertyDescriptor("displayable", org.tio.examples.im.client.ui.component.MyTextArea.class, "isDisplayable", null); // NOI18N
properties[PROPERTY_document] = new PropertyDescriptor("document", org.tio.examples.im.client.ui.component.MyTextArea.class, "getDocument", "setDocument"); // NOI18N
properties[PROPERTY_doubleBuffered] = new PropertyDescriptor("doubleBuffered", org.tio.examples.im.client.ui.component.MyTextArea.class, "isDoubleBuffered",
"setDoubleBuffered"); // NOI18N
properties[PROPERTY_dragEnabled] = new PropertyDescriptor("dragEnabled", org.tio.examples.im.client.ui.component.MyTextArea.class, "getDragEnabled", "setDragEnabled"); // NOI18N
properties[PROPERTY_dropLocation] = new PropertyDescriptor("dropLocation", org.tio.examples.im.client.ui.component.MyTextArea.class, "getDropLocation", null); // NOI18N
properties[PROPERTY_dropMode] = new PropertyDescriptor("dropMode", org.tio.examples.im.client.ui.component.MyTextArea.class, "getDropMode", "setDropMode"); // NOI18N
properties[PROPERTY_dropTarget] = new PropertyDescriptor("dropTarget", org.tio.examples.im.client.ui.component.MyTextArea.class, "getDropTarget", "setDropTarget"); // NOI18N
properties[PROPERTY_editable] = new PropertyDescriptor("editable", org.tio.examples.im.client.ui.component.MyTextArea.class, "isEditable", "setEditable"); // NOI18N
properties[PROPERTY_enabled] = new PropertyDescriptor("enabled", org.tio.examples.im.client.ui.component.MyTextArea.class, "isEnabled", "setEnabled"); // NOI18N
properties[PROPERTY_focusable] = new PropertyDescriptor("focusable", org.tio.examples.im.client.ui.component.MyTextArea.class, "isFocusable", "setFocusable"); // NOI18N
properties[PROPERTY_focusAccelerator] = new PropertyDescriptor("focusAccelerator", org.tio.examples.im.client.ui.component.MyTextArea.class, "getFocusAccelerator",
"setFocusAccelerator"); // NOI18N
properties[PROPERTY_focusCycleRoot] = new PropertyDescriptor("focusCycleRoot", org.tio.examples.im.client.ui.component.MyTextArea.class, "isFocusCycleRoot",
"setFocusCycleRoot"); // NOI18N
properties[PROPERTY_focusCycleRootAncestor] = new PropertyDescriptor("focusCycleRootAncestor", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getFocusCycleRootAncestor", null); // NOI18N
properties[PROPERTY_focusListeners] = new PropertyDescriptor("focusListeners", org.tio.examples.im.client.ui.component.MyTextArea.class, "getFocusListeners", null); // NOI18N
properties[PROPERTY_focusOwner] = new PropertyDescriptor("focusOwner", org.tio.examples.im.client.ui.component.MyTextArea.class, "isFocusOwner", null); // NOI18N
properties[PROPERTY_focusTraversable] = new PropertyDescriptor("focusTraversable", org.tio.examples.im.client.ui.component.MyTextArea.class, "isFocusTraversable",
null); // NOI18N
properties[PROPERTY_focusTraversalKeys] = new IndexedPropertyDescriptor("focusTraversalKeys", org.tio.examples.im.client.ui.component.MyTextArea.class, null, null,
null, "setFocusTraversalKeys"); // NOI18N
properties[PROPERTY_focusTraversalKeysEnabled] = new PropertyDescriptor("focusTraversalKeysEnabled", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getFocusTraversalKeysEnabled", "setFocusTraversalKeysEnabled"); // NOI18N
properties[PROPERTY_focusTraversalPolicy] = new PropertyDescriptor("focusTraversalPolicy", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getFocusTraversalPolicy", "setFocusTraversalPolicy"); // NOI18N
properties[PROPERTY_focusTraversalPolicyProvider] = new PropertyDescriptor("focusTraversalPolicyProvider", org.tio.examples.im.client.ui.component.MyTextArea.class,
"isFocusTraversalPolicyProvider", "setFocusTraversalPolicyProvider"); // NOI18N
properties[PROPERTY_focusTraversalPolicySet] = new PropertyDescriptor("focusTraversalPolicySet", org.tio.examples.im.client.ui.component.MyTextArea.class,
"isFocusTraversalPolicySet", null); // NOI18N
properties[PROPERTY_font] = new PropertyDescriptor("font", org.tio.examples.im.client.ui.component.MyTextArea.class, "getFont", "setFont"); // NOI18N
properties[PROPERTY_fontSet] = new PropertyDescriptor("fontSet", org.tio.examples.im.client.ui.component.MyTextArea.class, "isFontSet", null); // NOI18N
properties[PROPERTY_foreground] = new PropertyDescriptor("foreground", org.tio.examples.im.client.ui.component.MyTextArea.class, "getForeground", "setForeground"); // NOI18N
properties[PROPERTY_foregroundSet] = new PropertyDescriptor("foregroundSet", org.tio.examples.im.client.ui.component.MyTextArea.class, "isForegroundSet", null); // NOI18N
properties[PROPERTY_graphics] = new PropertyDescriptor("graphics", org.tio.examples.im.client.ui.component.MyTextArea.class, "getGraphics", null); // NOI18N
properties[PROPERTY_graphicsConfiguration] = new PropertyDescriptor("graphicsConfiguration", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getGraphicsConfiguration", null); // NOI18N
properties[PROPERTY_height] = new PropertyDescriptor("height", org.tio.examples.im.client.ui.component.MyTextArea.class, "getHeight", null); // NOI18N
properties[PROPERTY_hierarchyBoundsListeners] = new PropertyDescriptor("hierarchyBoundsListeners", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getHierarchyBoundsListeners", null); // NOI18N
properties[PROPERTY_hierarchyListeners] = new PropertyDescriptor("hierarchyListeners", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getHierarchyListeners", null); // NOI18N
properties[PROPERTY_highlighter] = new PropertyDescriptor("highlighter", org.tio.examples.im.client.ui.component.MyTextArea.class, "getHighlighter", "setHighlighter"); // NOI18N
properties[PROPERTY_ignoreRepaint] = new PropertyDescriptor("ignoreRepaint", org.tio.examples.im.client.ui.component.MyTextArea.class, "getIgnoreRepaint",
"setIgnoreRepaint"); // NOI18N
properties[PROPERTY_inheritsPopupMenu] = new PropertyDescriptor("inheritsPopupMenu", org.tio.examples.im.client.ui.component.MyTextArea.class, "getInheritsPopupMenu",
"setInheritsPopupMenu"); // NOI18N
properties[PROPERTY_inputContext] = new PropertyDescriptor("inputContext", org.tio.examples.im.client.ui.component.MyTextArea.class, "getInputContext", null); // NOI18N
properties[PROPERTY_inputMap] = new PropertyDescriptor("inputMap", org.tio.examples.im.client.ui.component.MyTextArea.class, "getInputMap", null); // NOI18N
properties[PROPERTY_inputMethodListeners] = new PropertyDescriptor("inputMethodListeners", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getInputMethodListeners", null); // NOI18N
properties[PROPERTY_inputMethodRequests] = new PropertyDescriptor("inputMethodRequests", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getInputMethodRequests", null); // NOI18N
properties[PROPERTY_inputVerifier] = new PropertyDescriptor("inputVerifier", org.tio.examples.im.client.ui.component.MyTextArea.class, "getInputVerifier",
"setInputVerifier"); // NOI18N
properties[PROPERTY_insets] = new PropertyDescriptor("insets", org.tio.examples.im.client.ui.component.MyTextArea.class, "getInsets", null); // NOI18N
properties[PROPERTY_keyListeners] = new PropertyDescriptor("keyListeners", org.tio.examples.im.client.ui.component.MyTextArea.class, "getKeyListeners", null); // NOI18N
properties[PROPERTY_keymap] = new PropertyDescriptor("keymap", org.tio.examples.im.client.ui.component.MyTextArea.class, "getKeymap", "setKeymap"); // NOI18N
properties[PROPERTY_layout] = new PropertyDescriptor("layout", org.tio.examples.im.client.ui.component.MyTextArea.class, "getLayout", "setLayout"); // NOI18N
properties[PROPERTY_lightweight] = new PropertyDescriptor("lightweight", org.tio.examples.im.client.ui.component.MyTextArea.class, "isLightweight", null); // NOI18N
properties[PROPERTY_lineCount] = new PropertyDescriptor("lineCount", org.tio.examples.im.client.ui.component.MyTextArea.class, "getLineCount", null); // NOI18N
properties[PROPERTY_lineEndOffset] = new IndexedPropertyDescriptor("lineEndOffset", org.tio.examples.im.client.ui.component.MyTextArea.class, null, null,
"getLineEndOffset", null); // NOI18N
properties[PROPERTY_lineOfOffset] = new IndexedPropertyDescriptor("lineOfOffset", org.tio.examples.im.client.ui.component.MyTextArea.class, null, null,
"getLineOfOffset", null); // NOI18N
properties[PROPERTY_lineStartOffset] = new IndexedPropertyDescriptor("lineStartOffset", org.tio.examples.im.client.ui.component.MyTextArea.class, null, null,
"getLineStartOffset", null); // NOI18N
properties[PROPERTY_lineWrap] = new PropertyDescriptor("lineWrap", org.tio.examples.im.client.ui.component.MyTextArea.class, "getLineWrap", "setLineWrap"); // NOI18N
properties[PROPERTY_locale] = new PropertyDescriptor("locale", org.tio.examples.im.client.ui.component.MyTextArea.class, "getLocale", "setLocale"); // NOI18N
properties[PROPERTY_location] = new PropertyDescriptor("location", org.tio.examples.im.client.ui.component.MyTextArea.class, "getLocation", "setLocation"); // NOI18N
properties[PROPERTY_locationOnScreen] = new PropertyDescriptor("locationOnScreen", org.tio.examples.im.client.ui.component.MyTextArea.class, "getLocationOnScreen",
null); // NOI18N
properties[PROPERTY_managingFocus] = new PropertyDescriptor("managingFocus", org.tio.examples.im.client.ui.component.MyTextArea.class, "isManagingFocus", null); // NOI18N
properties[PROPERTY_margin] = new PropertyDescriptor("margin", org.tio.examples.im.client.ui.component.MyTextArea.class, "getMargin", "setMargin"); // NOI18N
properties[PROPERTY_maximumSize] = new PropertyDescriptor("maximumSize", org.tio.examples.im.client.ui.component.MyTextArea.class, "getMaximumSize", "setMaximumSize"); // NOI18N
properties[PROPERTY_maximumSizeSet] = new PropertyDescriptor("maximumSizeSet", org.tio.examples.im.client.ui.component.MyTextArea.class, "isMaximumSizeSet", null); // NOI18N
properties[PROPERTY_minimumSize] = new PropertyDescriptor("minimumSize", org.tio.examples.im.client.ui.component.MyTextArea.class, "getMinimumSize", "setMinimumSize"); // NOI18N
properties[PROPERTY_minimumSizeSet] = new PropertyDescriptor("minimumSizeSet", org.tio.examples.im.client.ui.component.MyTextArea.class, "isMinimumSizeSet", null); // NOI18N
properties[PROPERTY_mouseListeners] = new PropertyDescriptor("mouseListeners", org.tio.examples.im.client.ui.component.MyTextArea.class, "getMouseListeners", null); // NOI18N
properties[PROPERTY_mouseMotionListeners] = new PropertyDescriptor("mouseMotionListeners", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getMouseMotionListeners", null); // NOI18N
properties[PROPERTY_mousePosition] = new PropertyDescriptor("mousePosition", org.tio.examples.im.client.ui.component.MyTextArea.class, "getMousePosition", null); // NOI18N
properties[PROPERTY_mouseWheelListeners] = new PropertyDescriptor("mouseWheelListeners", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getMouseWheelListeners", null); // NOI18N
properties[PROPERTY_name] = new PropertyDescriptor("name", org.tio.examples.im.client.ui.component.MyTextArea.class, "getName", "setName"); // NOI18N
properties[PROPERTY_navigationFilter] = new PropertyDescriptor("navigationFilter", org.tio.examples.im.client.ui.component.MyTextArea.class, "getNavigationFilter",
"setNavigationFilter"); // NOI18N
properties[PROPERTY_nextFocusableComponent] = new PropertyDescriptor("nextFocusableComponent", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getNextFocusableComponent", "setNextFocusableComponent"); // NOI18N
properties[PROPERTY_opaque] = new PropertyDescriptor("opaque", org.tio.examples.im.client.ui.component.MyTextArea.class, "isOpaque", "setOpaque"); // NOI18N
properties[PROPERTY_optimizedDrawingEnabled] = new PropertyDescriptor("optimizedDrawingEnabled", org.tio.examples.im.client.ui.component.MyTextArea.class,
"isOptimizedDrawingEnabled", null); // NOI18N
properties[PROPERTY_paintingForPrint] = new PropertyDescriptor("paintingForPrint", org.tio.examples.im.client.ui.component.MyTextArea.class, "isPaintingForPrint",
null); // NOI18N
properties[PROPERTY_paintingTile] = new PropertyDescriptor("paintingTile", org.tio.examples.im.client.ui.component.MyTextArea.class, "isPaintingTile", null); // NOI18N
properties[PROPERTY_parent] = new PropertyDescriptor("parent", org.tio.examples.im.client.ui.component.MyTextArea.class, "getParent", null); // NOI18N
properties[PROPERTY_peer] = new PropertyDescriptor("peer", org.tio.examples.im.client.ui.component.MyTextArea.class, "getPeer", null); // NOI18N
properties[PROPERTY_preferredScrollableViewportSize] = new PropertyDescriptor("preferredScrollableViewportSize",
org.tio.examples.im.client.ui.component.MyTextArea.class, "getPreferredScrollableViewportSize", null); // NOI18N
properties[PROPERTY_preferredSize] = new PropertyDescriptor("preferredSize", org.tio.examples.im.client.ui.component.MyTextArea.class, "getPreferredSize",
"setPreferredSize"); // NOI18N
properties[PROPERTY_preferredSizeSet] = new PropertyDescriptor("preferredSizeSet", org.tio.examples.im.client.ui.component.MyTextArea.class, "isPreferredSizeSet",
null); // NOI18N
properties[PROPERTY_propertyChangeListeners] = new PropertyDescriptor("propertyChangeListeners", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getPropertyChangeListeners", null); // NOI18N
properties[PROPERTY_registeredKeyStrokes] = new PropertyDescriptor("registeredKeyStrokes", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getRegisteredKeyStrokes", null); // NOI18N
properties[PROPERTY_requestFocusEnabled] = new PropertyDescriptor("requestFocusEnabled", org.tio.examples.im.client.ui.component.MyTextArea.class,
"isRequestFocusEnabled", "setRequestFocusEnabled"); // NOI18N
properties[PROPERTY_rootPane] = new PropertyDescriptor("rootPane", org.tio.examples.im.client.ui.component.MyTextArea.class, "getRootPane", null); // NOI18N
properties[PROPERTY_rows] = new PropertyDescriptor("rows", org.tio.examples.im.client.ui.component.MyTextArea.class, "getRows", "setRows"); // NOI18N
properties[PROPERTY_scrollableTracksViewportHeight] = new PropertyDescriptor("scrollableTracksViewportHeight", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getScrollableTracksViewportHeight", null); // NOI18N
properties[PROPERTY_scrollableTracksViewportWidth] = new PropertyDescriptor("scrollableTracksViewportWidth", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getScrollableTracksViewportWidth", null); // NOI18N
properties[PROPERTY_selectedText] = new PropertyDescriptor("selectedText", org.tio.examples.im.client.ui.component.MyTextArea.class, "getSelectedText", null); // NOI18N
properties[PROPERTY_selectedTextColor] = new PropertyDescriptor("selectedTextColor", org.tio.examples.im.client.ui.component.MyTextArea.class, "getSelectedTextColor",
"setSelectedTextColor"); // NOI18N
properties[PROPERTY_selectionColor] = new PropertyDescriptor("selectionColor", org.tio.examples.im.client.ui.component.MyTextArea.class, "getSelectionColor",
"setSelectionColor"); // NOI18N
properties[PROPERTY_selectionEnd] = new PropertyDescriptor("selectionEnd", org.tio.examples.im.client.ui.component.MyTextArea.class, "getSelectionEnd",
"setSelectionEnd"); // NOI18N
properties[PROPERTY_selectionStart] = new PropertyDescriptor("selectionStart", org.tio.examples.im.client.ui.component.MyTextArea.class, "getSelectionStart",
"setSelectionStart"); // NOI18N
properties[PROPERTY_showing] = new PropertyDescriptor("showing", org.tio.examples.im.client.ui.component.MyTextArea.class, "isShowing", null); // NOI18N
properties[PROPERTY_size] = new PropertyDescriptor("size", org.tio.examples.im.client.ui.component.MyTextArea.class, "getSize", "setSize"); // NOI18N
properties[PROPERTY_tabSize] = new PropertyDescriptor("tabSize", org.tio.examples.im.client.ui.component.MyTextArea.class, "getTabSize", "setTabSize"); // NOI18N
properties[PROPERTY_text] = new PropertyDescriptor("text", org.tio.examples.im.client.ui.component.MyTextArea.class, "getText", "setText"); // NOI18N
properties[PROPERTY_toolkit] = new PropertyDescriptor("toolkit", org.tio.examples.im.client.ui.component.MyTextArea.class, "getToolkit", null); // NOI18N
properties[PROPERTY_toolTipText] = new PropertyDescriptor("toolTipText", org.tio.examples.im.client.ui.component.MyTextArea.class, "getToolTipText", "setToolTipText"); // NOI18N
properties[PROPERTY_topLevelAncestor] = new PropertyDescriptor("topLevelAncestor", org.tio.examples.im.client.ui.component.MyTextArea.class, "getTopLevelAncestor",
null); // NOI18N
properties[PROPERTY_transferHandler] = new PropertyDescriptor("transferHandler", org.tio.examples.im.client.ui.component.MyTextArea.class, "getTransferHandler",
"setTransferHandler"); // NOI18N
properties[PROPERTY_treeLock] = new PropertyDescriptor("treeLock", org.tio.examples.im.client.ui.component.MyTextArea.class, "getTreeLock", null); // NOI18N
properties[PROPERTY_UI] = new PropertyDescriptor("UI", org.tio.examples.im.client.ui.component.MyTextArea.class, "getUI", "setUI"); // NOI18N
properties[PROPERTY_UIClassID] = new PropertyDescriptor("UIClassID", org.tio.examples.im.client.ui.component.MyTextArea.class, "getUIClassID", null); // NOI18N
properties[PROPERTY_valid] = new PropertyDescriptor("valid", org.tio.examples.im.client.ui.component.MyTextArea.class, "isValid", null); // NOI18N
properties[PROPERTY_validateRoot] = new PropertyDescriptor("validateRoot", org.tio.examples.im.client.ui.component.MyTextArea.class, "isValidateRoot", null); // NOI18N
properties[PROPERTY_verifyInputWhenFocusTarget] = new PropertyDescriptor("verifyInputWhenFocusTarget", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getVerifyInputWhenFocusTarget", "setVerifyInputWhenFocusTarget"); // NOI18N
properties[PROPERTY_vetoableChangeListeners] = new PropertyDescriptor("vetoableChangeListeners", org.tio.examples.im.client.ui.component.MyTextArea.class,
"getVetoableChangeListeners", null); // NOI18N
properties[PROPERTY_visible] = new PropertyDescriptor("visible", org.tio.examples.im.client.ui.component.MyTextArea.class, "isVisible", "setVisible"); // NOI18N
properties[PROPERTY_visibleRect] = new PropertyDescriptor("visibleRect", org.tio.examples.im.client.ui.component.MyTextArea.class, "getVisibleRect", null); // NOI18N
properties[PROPERTY_width] = new PropertyDescriptor("width", org.tio.examples.im.client.ui.component.MyTextArea.class, "getWidth", null); // NOI18N
properties[PROPERTY_wrapStyleWord] = new PropertyDescriptor("wrapStyleWord", org.tio.examples.im.client.ui.component.MyTextArea.class, "getWrapStyleWord",
"setWrapStyleWord"); // NOI18N
properties[PROPERTY_x] = new PropertyDescriptor("x", org.tio.examples.im.client.ui.component.MyTextArea.class, "getX", null); // NOI18N
properties[PROPERTY_y] = new PropertyDescriptor("y", org.tio.examples.im.client.ui.component.MyTextArea.class, "getY", null); // NOI18N
} catch (IntrospectionException e) {
e.printStackTrace();
} //GEN-HEADEREND:Properties
// Here you can add code for customizing the properties array.
return properties;
}//GEN-LAST:Properties
//GEN-FIRST:Superclass
// Here you can add code for customizing the Superclass BeanInfo.
//GEN-LAST:Superclass
/**
* Gets the bean's <code>BeanDescriptor</code>s.
*
* @return BeanDescriptor describing the editable properties of this bean.
* May return null if the information should be obtained by automatic
* analysis.
*/
@Override
public BeanDescriptor getBeanDescriptor() {
return getBdescriptor();
}
/**
* A bean may have a "default" event that is the event that will mostly
* commonly be used by human's when using the bean.
*
* @return Index of default event in the EventSetDescriptor array returned
* by getEventSetDescriptors.
*
* Returns -1 if there is no default event.
*/
@Override
public int getDefaultEventIndex() {
return defaultEventIndex;
}
/**
* A bean may have a "default" property that is the property that will
* mostly commonly be initially chosen for update by human's who are
* customizing the bean.
*
* @return Index of default property in the PropertyDescriptor array
* returned by getPropertyDescriptors.
*
* Returns -1 if there is no default property.
*/
@Override
public int getDefaultPropertyIndex() {
return defaultPropertyIndex;
}
/**
* Gets the bean's <code>EventSetDescriptor</code>s.
*
* @return An array of EventSetDescriptors describing the kinds of events
* fired by this bean. May return null if the information should be obtained
* by automatic analysis.
*/
@Override
public EventSetDescriptor[] getEventSetDescriptors() {
return getEdescriptor();
}
/**
* This method returns an image object that can be used to represent the
* bean in toolboxes, toolbars, etc. Icon images will typically be GIFs, but
* may in future include other formats.
*
* Beans aren't required to provide icons and may return null from this
* method.
*
* There are four possible flavors of icons (16x16 color, 32x32 color, 16x16
* mono, 32x32 mono). If a bean choses to only support a single icon we
* recommend supporting 16x16 color.
*
* We recommend that icons have a "transparent" background so they can be
* rendered onto an existing background.
*
* @param iconKind The kind of icon requested. This should be one of the
* constant values ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, or
* ICON_MONO_32x32.
* @return An image object representing the requested icon. May return null
* if no suitable icon is available.
*/
@Override
public java.awt.Image getIcon(int iconKind) {
switch (iconKind) {
case ICON_COLOR_16x16:
if (iconNameC16 == null) {
return null;
} else {
if (iconColor16 == null) {
iconColor16 = loadImage(iconNameC16);
}
return iconColor16;
}
case ICON_COLOR_32x32:
if (iconNameC32 == null) {
return null;
} else {
if (iconColor32 == null) {
iconColor32 = loadImage(iconNameC32);
}
return iconColor32;
}
case ICON_MONO_16x16:
if (iconNameM16 == null) {
return null;
} else {
if (iconMono16 == null) {
iconMono16 = loadImage(iconNameM16);
}
return iconMono16;
}
case ICON_MONO_32x32:
if (iconNameM32 == null) {
return null;
} else {
if (iconMono32 == null) {
iconMono32 = loadImage(iconNameM32);
}
return iconMono32;
}
default:
return null;
}
}
/**
* Gets the bean's <code>MethodDescriptor</code>s.
*
* @return An array of MethodDescriptors describing the methods implemented
* by this bean. May return null if the information should be obtained by
* automatic analysis.
*/
@Override
public MethodDescriptor[] getMethodDescriptors() {
return getMdescriptor();
}
/**
* Gets the bean's <code>PropertyDescriptor</code>s.
*
* @return An array of PropertyDescriptors describing the editable
* properties supported by this bean. May return null if the information
* should be obtained by automatic analysis.
*
* If a property is indexed, then its entry in the result array will belong
* to the IndexedPropertyDescriptor subclass of PropertyDescriptor. A client
* of getPropertyDescriptors can use "instanceof" to check if a given
* PropertyDescriptor is an IndexedPropertyDescriptor.
*/
@Override
public PropertyDescriptor[] getPropertyDescriptors() {
return getPdescriptor();
}
}
| [
"[email protected]"
]
| |
74a86d3ed1e17e3fae06b081e68337db2f7298c9 | c2b4ee3b1c06a23e1edaa5851714f2c0a49a4570 | /src/net/sf/jsqlparser/expression/operators/arithmetic/BitwiseOr.java | 4e8a544072d2ef75362169b1b0773c0488ca9700 | []
| no_license | bishma-stornelli/JSqlParser | b0411af5bcf9a6273a0d341d9877d919158563a6 | 00be703d67e23bf4e24e6a88d6efa4b1f87fd214 | refs/heads/master | 2021-01-10T20:19:14.872155 | 2013-07-12T14:46:25 | 2013-07-12T14:46:25 | 10,440,789 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,513 | java | /* ================================================================
* JSQLParser : java based sql parser
* ================================================================
*
* Project Info: http://jsqlparser.sourceforge.net
* Project Lead: Leonardo Francalanci ([email protected]);
*
* (C) Copyright 2004, by Leonardo Francalanci
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package net.sf.jsqlparser.expression.operators.arithmetic;
import net.sf.jsqlparser.expression.BinaryExpression;
import net.sf.jsqlparser.expression.ExpressionVisitor;
public class BitwiseOr extends BinaryExpression {
public void accept(ExpressionVisitor expressionVisitor) throws Exception {
expressionVisitor.visit(this);
}
public String getStringExpression() {
return "|";
}
}
| [
"[email protected]"
]
| |
07296ebd019fec3dffab56cf40689aa0523b280b | 61b68c85cd3a6e8231cb67b0ddf66ebf5973a41f | /aop/src/main/java/com/frame/aop/annotation/Async.java | 466f259ef820932fc320568a2b5043d136461188 | []
| no_license | YCreator/CommonLibrary | 9ff334037bf035074c71c2191dce813da14b3aad | 1f202dc6873ec853e816475ae80941f82de5163f | refs/heads/master | 2018-09-27T10:31:13.987052 | 2018-07-07T10:13:27 | 2018-07-07T10:13:27 | 62,710,247 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 378 | java | package com.frame.aop.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 借助rxjava,异步执行app中的方法
* Created by yzd on 2018/5/22 0022.
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.CLASS)
public @interface Async {
}
| [
"[email protected]"
]
| |
87b11fcead9712cbc0d614afd2f187025cc49a30 | c150d3a304579539997ffa6b7b21d921504746c6 | /SGR/app/src/main/java/br/ufrn/imd/sgr/service/RequisicaoService.java | 4a85a9cfdec3640ea0e4e1253fdd111c1ce422de | []
| no_license | raimundogomes/tcc | 0aac808c362e133ab1112162d8ae597b5d4cc2d1 | 2f2b11e69f4a12a43f8c0629b4a90570c671ba59 | refs/heads/master | 2020-03-29T01:41:16.584640 | 2017-07-31T02:39:16 | 2017-07-31T02:39:16 | 94,640,604 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,061 | java | package br.ufrn.imd.sgr.service;
import android.app.ProgressDialog;
import android.content.Context;
import java.util.List;
import br.ufrn.imd.sgr.activities.novaRequisicao.NovaRequisicaoActivity;
import br.ufrn.imd.sgr.activities.RequisicoesActivity;
import br.ufrn.imd.sgr.model.Requisicao;
public interface RequisicaoService {
void cancelarRequisicaoServico(final Requisicao requisicao, final Context applicationContext);
void desconectar(final Context applicationContext);
Requisicao persistirRequisicao(Requisicao requisicao);
boolean validarRequisicao(final Requisicao requisicao);
Requisicao salvarRequisicao(final Requisicao requisicao,final NovaRequisicaoActivity novaRequisicaoActivity);
Requisicao salvarRequisicaoSemInternet(final Requisicao requisicao,final NovaRequisicaoActivity novaRequisicaoActivity) ;
Requisicao atualizarRequisicoes(final RequisicoesActivity novaRequisicaoActivity);
List<Requisicao> consultarRequisicoesSolicitadas();
void excluir(long id);
List<Requisicao> listar();
}
| [
"raimundo gomes"
]
| raimundo gomes |
7065054e7b8505638774e1b117fc362135ec8a40 | f908decc10bb6b5e4f41be10c032484fae239977 | /src/Facade/copy/MobileShop.java | 3ebb2f7b73223e4820a58ad13f214b7455fa81c5 | []
| no_license | RenjithKI/deSignPatternJava | 75bbb654e6c7d399861eefad7a59cb4f124d2018 | d0bd37ff301337c6c3e63abadff725b5a930b98f | refs/heads/master | 2021-04-30T00:02:19.621036 | 2018-05-09T01:08:06 | 2018-05-09T01:08:06 | 121,567,874 | 1 | 0 | null | 2018-05-09T01:08:07 | 2018-02-14T22:18:45 | Java | UTF-8 | Java | false | false | 387 | java | package Facade.copy;
/**https://www.javatpoint.com/facade-pattern
* @author Renjith
Facade Pattern
A Facade Pattern says that just "just provide a unified and simplified interface to a set of interfaces
in a subsystem, therefore it hides the complexities of the subsystem from the client".
*/
public interface MobileShop {
public void modelNo();
public void price();
} | [
"[email protected]"
]
| |
1590a29f88835b1978ac806810b04f557206efd4 | 1721ae11cff11e2f82c6e44ae6b926d7238d7a8a | /androidworkspace/ParticleToy/src/com/jknight/particletoy/Utilities.java | 6af5588038cfc91dd46e52f2e6d4557b3c34ecfc | []
| no_license | jknightdoeswork/JK-APT | c9af3ee2e47f0657264dcb09ec580d52dde2d521 | b1795d7f80eefe5181ee12575b06c317f536d503 | refs/heads/master | 2020-05-20T14:05:57.496517 | 2013-03-12T01:28:11 | 2013-03-12T01:28:11 | 5,624,162 | 1 | 0 | null | 2012-12-02T22:42:48 | 2012-08-31T03:40:31 | Java | UTF-8 | Java | false | false | 592 | java | package com.jknight.particletoy;
import android.util.Log;
public class Utilities {
public static void displayMatrix(String tag, float[] matrix) {
String toDisplay = "\n";
for (int i=0; i < 4; i++) {
for(int j = 0; j< 4; j++) {
toDisplay += matrix[i+(j*4)] + "\t\t\t";
}
toDisplay += "\n";
}
Log.i(tag, toDisplay);
}
public static void displayVector(String tag, float[] matrix) {
String toDisplay = "\n";
for (int i=0; i < 4; i++) {
toDisplay += matrix[i] + "\t";
}
Log.i(tag, toDisplay);
}
}
| [
"[email protected]"
]
| |
aed28cfee052273d4c0ca99ec217f41e2652abc5 | 6f463cbfa3f2a70697ece1b872d5e67d8c779453 | /android/app/src/main/java/com/terradcf/thesimplepollapp/MainActivity.java | 9329133f59f159331ccdaebbe919d02d58911254 | []
| no_license | DaniCastroDev/the_simple_poll_app | fab39379e13db78302048c339a54f3e78e1142e2 | 55f0381b5ca73f71878cbf1511121ec108044c22 | refs/heads/master | 2022-02-23T10:36:43.656523 | 2018-12-08T18:26:58 | 2018-12-08T18:26:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 374 | java | package com.terradcf.thesimplepollapp;
import android.os.Bundle;
import io.flutter.app.FlutterActivity;
import io.flutter.plugins.GeneratedPluginRegistrant;
public class MainActivity extends FlutterActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
GeneratedPluginRegistrant.registerWith(this);
}
}
| [
"[email protected]"
]
| |
6994a70a876002eae4212e1ca46bbf2d907d715c | 0b1eb2d74681ea6b5485ffd01ef2a8243211c44d | /src/java/web/Controller/TransferController.java | 643299cc7c9f455ecd6deb2ab2f3fcc5d8e18a3e | []
| no_license | hassench/onlinebankproject | ed6b76b302deea18811a76c4b586f18de3132aa0 | e620d44076990be552c89a0f9f27270c2cfe260f | refs/heads/master | 2021-06-06T07:41:22.607402 | 2016-11-04T12:20:07 | 2016-11-04T12:20:07 | 72,844,190 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,118 | 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 web.Controller;
import BusinessLayer.exception.AccountNONExistantException;
import BusinessLayer.exception.DifferentAccountException;
import BusinessLayer.exception.DisabledUserProfileException;
import BusinessLayer.exception.WrongPasswordException;
import BusinessLayer.exception.InsufficientBalanceException;
import BusinessLayer.exception.TargetAccountNONExistantException;
import BusinessLayer.service.TransferService;
import java.util.HashMap;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.validation.BindException;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.SimpleFormController;
import web.Command.CommandTransfer;
public class TransferController extends SimpleFormController {
TransferService transferservice;
public void setTransferservice(TransferService transferservice) {
this.transferservice = transferservice;
}
public TransferService getTransferservice() {
return transferservice;
}
protected Object formBackingObject(HttpServletRequest request) {
return new CommandTransfer();
}
protected ModelAndView onSubmit(HttpServletRequest request,
HttpServletResponse response, Object commandTransfer,
BindException errors) throws Exception {
CommandTransfer command = (CommandTransfer) commandTransfer;
HashMap<String, Object> accounts;
try {
accounts = (HashMap<String, Object>) transferservice.transfertoAccount(command.getAccountnumber(), command.getPassword(), command.getTargetaccountnumber(), command.getAmount());
return new ModelAndView("transferinfo", accounts);
}catch (DifferentAccountException e) {
errors.reject("Different ACCOUNT", "This ACCOUNT is not yours!");
return showForm(request, response, errors);
} catch (AccountNONExistantException e) {
errors.reject("Inexistant ACCOUNT", "This ACCOUNT of yours doesn't exist");
return showForm(request, response, errors);
} catch (WrongPasswordException e) {
errors.reject("Authentification Failure", "wrong username or password");
return showForm(request, response, errors);
} catch (TargetAccountNONExistantException e) {
errors.reject("Inexistant Target Account", "Target ACCOUNT doesn't exist");
return showForm(request, response, errors);
} catch (InsufficientBalanceException e) {
errors.reject("Insufficient Balance", "Your Balance is Insufficient");
return showForm(request, response, errors);
} catch (DisabledUserProfileException e) {
errors.reject("Disabled Profile", "Your Profile is Disabled this action is forbidden");
return showForm(request, response, errors);
}
}
}
| [
"[email protected]"
]
| |
db51baecbedd470bd12712384bbec155008c93a2 | fc9adc05547a2e031d481201e6f23ac66f3e10dc | /02-using-pollablechannel-start/src/main/java/com/way2learnonline/service/OrderProcessServiceImpl.java | 0133165a8d3f16bb59a132c7aae0a5284c1c6d94 | []
| no_license | vinayakbaddi/SpringAdvanced | fbb358f0d596edcb59e44519c503c0760e46e29c | 9e39d01a5e6d4402692e761ae056077782c16f68 | refs/heads/master | 2020-12-02T17:44:32.472869 | 2017-07-07T11:17:47 | 2017-07-07T11:17:47 | 96,418,742 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,604 | java | package com.way2learnonline.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Future;
import org.springframework.integration.annotation.MessageEndpoint;
import org.springframework.integration.annotation.ServiceActivator;
import org.springframework.scheduling.annotation.AsyncResult;
import com.way2learnonline.domain.Order;
public class OrderProcessServiceImpl {
private Map<String, Order> ordersMap= new HashMap<String,Order>();
public void processOrder(Order order) throws Exception {
//.out.println("Customer id "+order.getCustomerID());
String orderId=(int)(Math.random()*2000)+"";
System.out.println("Processing order1 ....Order Id : "+orderId+" "+Thread.currentThread().getName());
ordersMap.put(orderId, order);
Thread.sleep(3000);
}
/*public String processOrder(Order order) throws Exception {
String orderId=(int)(Math.random()*2000)+"";
System.out.println("Processing order ....Order Id : "+orderId +Thread.currentThread().getName());
ordersMap.put(orderId, order);
if(true){
throw new RuntimeException("Just for testing");
}
Thread.sleep(2000);
System.out.println("After Waking up : "+Thread.currentThread().getName());
return orderId;
}*/
/*public List<Order> getAllOrders(){
return new ArrayList<Order>(ordersMap.values());
}
public boolean cancelOrder(String orderId) {
System.out.println("Cancelling order with order id : "+orderId);
Order order=ordersMap.remove(orderId);
return true;
}*/
}
| [
"[email protected]"
]
| |
f9b769faf4198058cc947975666e44d02f6b8ce1 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/3/3_ace302437fad47d21b20fc67596c63ae23354334/GpmlFormat/3_ace302437fad47d21b20fc67596c63ae23354334_GpmlFormat_t.java | a9ae0de7bfefc1885c95f3d136f6f96c70d0e1c4 | []
| no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 48,326 | java | // PathVisio,
// a tool for data visualization and analysis using Biological Pathways
// Copyright 2006-2007 BiGCaT Bioinformatics
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
package org.pathvisio.model;
import java.awt.Color;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.XMLConstants;
import javax.xml.transform.stream.StreamSource;
import javax.xml.validation.Schema;
import javax.xml.validation.SchemaFactory;
import javax.xml.validation.ValidatorHandler;
import org.jdom.Attribute;
import org.jdom.Content;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.jdom.Namespace;
import org.jdom.input.JDOMParseException;
import org.jdom.input.SAXBuilder;
import org.jdom.output.Format;
import org.jdom.output.SAXOutputter;
import org.jdom.output.XMLOutputter;
import org.pathvisio.debug.Logger;
import org.pathvisio.model.GraphLink.GraphIdContainer;
import org.pathvisio.model.PathwayElement.MAnchor;
import org.xml.sax.SAXException;
/**
* class responsible for interaction with Gpml format.
* Contains all gpml-specific constants,
* and should be the only class (apart from svgFormat)
* that needs to import jdom
*
* @author Martijn
*
*/
public class GpmlFormat implements PathwayImporter, PathwayExporter
{
/**
* The factor that is used to convert pixel coordinates
* to the GPML model coordinates. E.g. if you want to convert the
* width from pixels to GPML model coordinates you use:
*
* double mWidth = width * pixel2model;
*/
public static final double pixel2model = 15;
public static final Namespace GPML = Namespace.getNamespace("http://genmapp.org/GPML/2007");
public static final Namespace RDF = Namespace.getNamespace("rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#");
public static final Namespace RDFS = Namespace.getNamespace("rdfs", "http://www.w3.org/2000/01/rdf-schema#");
public static final Namespace BIOPAX = Namespace.getNamespace("bp", "http://www.biopax.org/release/biopax-level2.owl#");
public static final Namespace OWL = Namespace.getNamespace("owl", "http://www.w3.org/2002/07/owl#");
/**
* name of resource containing the gpml schema definition
*/
final private static String xsdFile = "GPML.xsd";
private static class AttributeInfo
{
/**
* xsd validated type. Note that in the current implementation
* we don't do anything with restrictions, only with the
* base type.
*/
public String schemaType;
/**
* default value for the attribute
*/
public String def; // default
/**
* use of the attribute: can be "required" or "optional"
*/
public String use;
AttributeInfo (String _schemaType, String _def, String _use)
{
schemaType = _schemaType;
def = _def;
use = _use;
}
}
static final Map<String, AttributeInfo> attributeInfo = initAttributeInfo();
static Map<String, AttributeInfo> initAttributeInfo()
{
Map<String, AttributeInfo> result = new HashMap<String, AttributeInfo>();
// IMPORTANT: this array has been generated from the xsd with
// an automated perl script. Don't edit this directly, use the perl script instead.
/* START OF AUTO-GENERATED CONTENT */
result.put("PublicationXref@ID", new AttributeInfo ("xsd:string", null, "required"));
result.put("PublicationXref@Database", new AttributeInfo ("xsd:string", null, "required"));
result.put("Comment@Source", new AttributeInfo ("xsd:string", null, "optional"));
result.put("Pathway.Graphics@BoardWidth", new AttributeInfo ("gpml:Dimension", null, "required"));
result.put("Pathway.Graphics@BoardHeight", new AttributeInfo ("gpml:Dimension", null, "required"));
result.put("Pathway.Graphics@WindowWidth", new AttributeInfo ("gpml:Dimension", "18000", "optional"));
result.put("Pathway.Graphics@WindowHeight", new AttributeInfo ("gpml:Dimension", "12000", "optional"));
result.put("Pathway@Name", new AttributeInfo ("gpml:NameType", null, "required"));
result.put("Pathway@Organism", new AttributeInfo ("xsd:string", null, "optional"));
result.put("Pathway@Data-Source", new AttributeInfo ("xsd:string", null, "optional"));
result.put("Pathway@Version", new AttributeInfo ("xsd:string", null, "optional"));
result.put("Pathway@Author", new AttributeInfo ("xsd:string", null, "optional"));
result.put("Pathway@Maintainer", new AttributeInfo ("xsd:string", null, "optional"));
result.put("Pathway@Email", new AttributeInfo ("xsd:string", null, "optional"));
result.put("Pathway@Copyright", new AttributeInfo ("xsd:string", null, "optional"));
result.put("Pathway@Last-Modified", new AttributeInfo ("xsd:string", null, "optional"));
result.put("DataNode.Graphics@CenterX", new AttributeInfo ("xsd:float", null, "required"));
result.put("DataNode.Graphics@CenterY", new AttributeInfo ("xsd:float", null, "required"));
result.put("DataNode.Graphics@Width", new AttributeInfo ("gpml:Dimension", null, "required"));
result.put("DataNode.Graphics@Height", new AttributeInfo ("gpml:Dimension", null, "required"));
result.put("DataNode.Graphics@Color", new AttributeInfo ("gpml:ColorType", null, "optional"));
result.put("DataNode.Xref@Database", new AttributeInfo ("gpml:DatabaseType", null, "required"));
result.put("DataNode.Xref@ID", new AttributeInfo ("gpml:NameType", null, "required"));
result.put("DataNode@GraphId", new AttributeInfo ("xsd:ID", null, "optional"));
result.put("DataNode@GroupRef", new AttributeInfo ("xsd:string", null, "optional"));
result.put("DataNode@ObjectType", new AttributeInfo ("gpml:ObjectType", "Annotation", "optional"));
result.put("DataNode@TextLabel", new AttributeInfo ("xsd:string", null, "required"));
result.put("DataNode@BackpageHead", new AttributeInfo ("xsd:string", null, "optional"));
result.put("DataNode@GenMAPP-Xref", new AttributeInfo ("xsd:string", null, "optional"));
result.put("DataNode@Type", new AttributeInfo ("gpml:DataNodeType", "Unknown", "optional"));
result.put("Line.Graphics.Point@x", new AttributeInfo ("xsd:float", null, "required"));
result.put("Line.Graphics.Point@y", new AttributeInfo ("xsd:float", null, "required"));
result.put("Line.Graphics.Point@GraphRef", new AttributeInfo ("xsd:IDREF", null, "optional"));
result.put("Line.Graphics.Point@GraphId", new AttributeInfo ("xsd:ID", null, "optional"));
result.put("Line.Graphics.Point@Head", new AttributeInfo ("xsd:string", "Line", "optional"));
result.put("Line.Graphics.Point@ArrowHead", new AttributeInfo ("xsd:string", "Line", "optional"));
result.put("Line.Graphics.Anchor@position", new AttributeInfo ("xsd:float", null, "required"));
result.put("Line.Graphics.Anchor@Shape", new AttributeInfo ("xsd:string", "LigandRound", "required"));
result.put("Line.Graphics.Anchor@GraphId", new AttributeInfo ("xsd:ID", null, "optional"));
result.put("Line.Graphics@Color", new AttributeInfo ("gpml:ColorType", "Black", "optional"));
result.put("Line@Style", new AttributeInfo ("xsd:string", "Solid", "optional"));
result.put("Label.Graphics@CenterX", new AttributeInfo ("xsd:float", null, "required"));
result.put("Label.Graphics@CenterY", new AttributeInfo ("xsd:float", null, "required"));
result.put("Label.Graphics@Width", new AttributeInfo ("gpml:Dimension", null, "required"));
result.put("Label.Graphics@Height", new AttributeInfo ("gpml:Dimension", null, "required"));
result.put("Label.Graphics@Color", new AttributeInfo ("gpml:ColorType", null, "optional"));
result.put("Label.Graphics@FontName", new AttributeInfo ("xsd:string", "Arial", "optional"));
result.put("Label.Graphics@FontStyle", new AttributeInfo ("xsd:string", "Normal", "optional"));
result.put("Label.Graphics@FontDecoration", new AttributeInfo ("xsd:string", "Normal", "optional"));
result.put("Label.Graphics@FontStrikethru", new AttributeInfo ("xsd:string", "Normal", "optional"));
result.put("Label.Graphics@FontWeight", new AttributeInfo ("xsd:string", "Normal", "optional"));
result.put("Label.Graphics@FontSize", new AttributeInfo ("xsd:nonNegativeInteger", "12", "optional"));
result.put("Label@GraphId", new AttributeInfo ("xsd:ID", null, "optional"));
result.put("Label@GroupRef", new AttributeInfo ("xsd:string", null, "optional"));
result.put("Label@ObjectType", new AttributeInfo ("gpml:ObjectType", "Annotation", "optional"));
result.put("Label@TextLabel", new AttributeInfo ("xsd:string", null, "required"));
result.put("Label@Xref", new AttributeInfo ("xsd:string", null, "optional"));
result.put("Label@GenMAPP-Xref", new AttributeInfo ("xsd:string", null, "optional"));
result.put("Label@Outline", new AttributeInfo ("xsd:string", "None", "optional"));
result.put("Link.Graphics@CenterX", new AttributeInfo ("xsd:float", null, "required"));
result.put("Link.Graphics@CenterY", new AttributeInfo ("xsd:float", null, "required"));
result.put("Link.Graphics@Width", new AttributeInfo ("gpml:Dimension", null, "required"));
result.put("Link.Graphics@Height", new AttributeInfo ("gpml:Dimension", null, "required"));
result.put("Link.Graphics@Color", new AttributeInfo ("gpml:ColorType", null, "optional"));
result.put("Link.Graphics@FontName", new AttributeInfo ("xsd:string", "Arial", "optional"));
result.put("Link.Graphics@FontStyle", new AttributeInfo ("xsd:string", "Normal", "optional"));
result.put("Link.Graphics@FontDecoration", new AttributeInfo ("xsd:string", "Normal", "optional"));
result.put("Link.Graphics@FontStrikethru", new AttributeInfo ("xsd:string", "Normal", "optional"));
result.put("Link.Graphics@FontWeight", new AttributeInfo ("xsd:string", "Normal", "optional"));
result.put("Link.Graphics@FontSize", new AttributeInfo ("xsd:nonNegativeInteger", "12", "optional"));
result.put("Link@Href", new AttributeInfo ("xsd:string", null, "optional"));
result.put("Link@GraphId", new AttributeInfo ("xsd:ID", null, "optional"));
result.put("Link@GroupRef", new AttributeInfo ("xsd:string", null, "optional"));
result.put("Link@ObjectType", new AttributeInfo ("gpml:ObjectType", "Annotation", "optional"));
result.put("Link@TextLabel", new AttributeInfo ("xsd:string", null, "required"));
result.put("Link@GenMAPP-Xref", new AttributeInfo ("xsd:string", null, "optional"));
result.put("Shape.Graphics@CenterX", new AttributeInfo ("xsd:float", null, "required"));
result.put("Shape.Graphics@CenterY", new AttributeInfo ("xsd:float", null, "required"));
result.put("Shape.Graphics@Width", new AttributeInfo ("gpml:Dimension", null, "required"));
result.put("Shape.Graphics@Height", new AttributeInfo ("gpml:Dimension", null, "required"));
result.put("Shape.Graphics@Color", new AttributeInfo ("gpml:ColorType", "Black", "optional"));
result.put("Shape.Graphics@Rotation", new AttributeInfo ("gpml:RotationType", "Top", "optional"));
result.put("Shape.Graphics@FillColor", new AttributeInfo ("gpml:ColorType", "Transparent", "optional"));
result.put("Shape@Type", new AttributeInfo ("xsd:string", null, "required"));
result.put("Shape@GraphId", new AttributeInfo ("xsd:ID", null, "optional"));
result.put("Shape@GroupRef", new AttributeInfo ("xsd:string", null, "optional"));
result.put("Shape@ObjectType", new AttributeInfo ("gpml:ObjectType", "Annotation", "optional"));
result.put("Shape@Style", new AttributeInfo ("gpml:StyleType", "Solid", "optional"));
result.put("Group@GroupId", new AttributeInfo ("xsd:ID", null, "required"));
result.put("Group@GroupRef", new AttributeInfo ("xsd:string", null, "optional"));
result.put("Group@TextLabel", new AttributeInfo("xsd:string", null, "optional"));
result.put("Group@Style", new AttributeInfo ("gpml:GroupStyleType", "None", "optional"));
result.put("InfoBox@CenterX", new AttributeInfo ("xsd:float", null, "required"));
result.put("InfoBox@CenterY", new AttributeInfo ("xsd:float", null, "required"));
result.put("Legend@CenterX", new AttributeInfo ("xsd:float", null, "required"));
result.put("Legend@CenterY", new AttributeInfo ("xsd:float", null, "required"));
/* END OF AUTO-GENERATED CONTENT */
return result;
};
/**
* Sets a certain attribute value,
* Does a basic check for some types,
* throws an exception when you're trying to set an invalid value
* If you're trying to set a default value, or an optional value to null,
* the attribute is omitted,
* leading to a leaner xml output.
*
* @param tag used for lookup in the defaults table
* @param name used for lookup in the defaults table
* @param el jdom element where this attribute belongs in
* @param value value you wan't to check and set
*/
private static void setAttribute(String tag, String name, Element el,
String value) throws ConverterException {
String key = tag + "@" + name;
if (!attributeInfo.containsKey(key))
throw new ConverterException("Trying to set invalid attribute "
+ key);
AttributeInfo aInfo = attributeInfo.get(key);
boolean isDefault = false;
// here we start seeing if the attribute is equal to the
// default value
// if so, we can leave out the attribute from the jdom
// altogether
if (aInfo.use.equals("optional")) {
if (aInfo.schemaType.equals("xsd:string")
|| aInfo.schemaType.equals("xsd:ID")) {
if ((aInfo.def == null && value == null) ||
(aInfo.def != null && aInfo.def.equals(value)) ||
(aInfo.def == null && value != null && value.equals("")))
isDefault = true;
} else if (aInfo.schemaType.equals("xsd:float")
|| aInfo.schemaType.equals("Dimension")) {
Double x = Double.parseDouble(aInfo.def);
Double y = Double.parseDouble(value);
if (Math.abs(x - y) < 1e-6)
isDefault = true;
}
}
if (!isDefault)
el.setAttribute(name, value);
}
/**
* Gets a certain attribute value,
* replaces it with a suitable default under certain conditions.
*
* @param tag used for lookup in the defaults table
* @param name used for lookup in the defaults table
* @param el jdom element to get the attribute from
* @throws ConverterException
*/
private static String getAttribute(String tag, String name, Element el) throws ConverterException
{
String key = tag + "@" + name;
if (!attributeInfo.containsKey(key))
throw new ConverterException("Trying to get invalid attribute " + key);
AttributeInfo aInfo = attributeInfo.get(key);
String result = el.getAttributeValue(name, aInfo.def);
return result;
}
/**
* The GPML xsd implies a certain ordering for children of the pathway element.
* (e.g. DataNode always comes before LineShape, etc.)
*
* This Comparator can sort jdom Elements so that they are in the correct order
* for the xsd.
*
* @author Martijn.vanIersel
*/
private static class ByElementName implements Comparator<Element>
{
// hashmap for quick lookups during sorting
private HashMap<String, Integer> elementOrdering;
// correctly ordered list of tag names, which are loaded into the hashmap in
// the constructor.
private final String[] elements = new String[] {
"Comment", "BiopaxRef", "Graphics", "DataNode", "Line", "Label",
"Shape", "Group", "InfoBox", "Legend", "Biopax"
};
/*
* Constructor
*/
public ByElementName()
{
elementOrdering = new HashMap<String, Integer>();
for (int i = 0; i < elements.length; ++i)
{
elementOrdering.put (elements[i], new Integer(i));
}
}
/*
* As a comparison measure, returns difference of index of element names of a and b
* in elements array. E.g:
* Comment -> index 1 in elements array
* Graphics -> index 2 in elements array.
* If a.getName() is Comment and b.getName() is Graphics, returns 1-2 -> -1
*/
public int compare(Element a, Element b) {
return ((Integer)elementOrdering.get(a.getName())).intValue() -
((Integer)elementOrdering.get(b.getName())).intValue();
}
}
public static Document createJdom(Pathway data) throws ConverterException
{
Document doc = new Document();
Namespace ns = GPML;
Element root = new Element("Pathway", ns);
doc.setRootElement(root);
List<Element> elementList = new ArrayList<Element>();
List<PathwayElement> pathwayElements = data.getDataObjects();
Collections.sort(pathwayElements);
for (PathwayElement o : pathwayElements)
{
if (o.getObjectType() == ObjectType.MAPPINFO)
{
setAttribute("Pathway", "Name", root, o.getMapInfoName());
setAttribute("Pathway", "Data-Source", root, o.getMapInfoDataSource());
setAttribute("Pathway", "Version", root, o.getVersion());
setAttribute("Pathway", "Author", root, o.getAuthor());
setAttribute("Pathway", "Maintainer", root, o.getMaintainer());
setAttribute("Pathway", "Email", root, o.getEmail());
setAttribute("Pathway", "Copyright", root, o.getCopyright());
setAttribute("Pathway", "Last-Modified", root, o.getLastModified());
setAttribute("Pathway", "Organism", root, o.getOrganism());
updateComments(o, root);
updateBiopaxRef(o, root);
Element graphics = new Element("Graphics", ns);
root.addContent(graphics);
double[] size = o.getMBoardSize();
setAttribute("Pathway.Graphics", "BoardWidth", graphics, "" +size[0]);
setAttribute("Pathway.Graphics", "BoardHeight", graphics, "" + size[1]);
setAttribute("Pathway.Graphics", "WindowWidth", graphics, "" + o.getWindowWidth());
setAttribute("Pathway.Graphics", "WindowHeight", graphics, "" + o.getWindowHeight());
}
else
{
Element e = createJdomElement(o, ns);
if (e != null)
elementList.add(e);
}
}
// now sort the generated elements in the order defined by the xsd
Collections.sort(elementList, new ByElementName());
for (Element e : elementList)
{
root.addContent(e);
}
return doc;
}
public static PathwayElement mapElement(Element e) throws ConverterException
{
return mapElement (e, null);
}
/**
Create a single PathwayElement based on a piece of Jdom tree. Used also by Patch utility
Pathway p may be null
*/
public static PathwayElement mapElement(Element e, Pathway p) throws ConverterException
{
String tag = e.getName();
int ot = ObjectType.getTagMapping(tag);
if (ot == -1)
{
// do nothing. This could be caused by
// tags <comment> or <graphics> that appear
// as subtags of <pathway>
return null;
}
PathwayElement o = new PathwayElement(ot);
if (p != null)
{
p.add (o);
}
switch (o.getObjectType())
{
case ObjectType.DATANODE:
mapShapeData(o, e, "DataNode");
mapColor(o, e);
mapComments(o, e);
mapDataNode(o, e);
mapGraphId(o, e);
mapGroupRef(o, e);
mapBiopaxRef(o, e);
break;
case ObjectType.LABEL:
mapShapeData(o, e, "Label");
mapColor(o, e);
mapLabelData(o, e);
mapComments(o, e);
mapGraphId(o, e);
mapGroupRef(o, e);
mapBiopaxRef(o, e);
break;
case ObjectType.LINE:
mapLineData(o, e);
mapColor(o, e);
mapComments(o, e);
mapGroupRef(o, e);
mapBiopaxRef(o, e);
break;
case ObjectType.MAPPINFO:
mapMappInfoData(o, e);
mapBiopaxRef(o, e);
mapComments(o, e);
break;
case ObjectType.SHAPE:
mapShapeData(o, e, "Shape");
mapShapeColor (o, e);
mapColor(o, e);
mapComments(o, e);
mapShapeType(o, e);
mapGraphId(o, e);
mapGroupRef(o, e);
mapBiopaxRef(o, e);
break;
case ObjectType.LEGEND:
mapSimpleCenter(o, e);
break;
case ObjectType.INFOBOX:
mapSimpleCenter (o, e);
break;
case ObjectType.GROUP:
mapGroupRef(o, e);
mapGroup (o, e);
mapComments(o, e);
mapBiopaxRef(o, e);
break;
case ObjectType.BIOPAX:
mapBiopax(o, e);
break;
default:
throw new ConverterException("Invalid ObjectType'" + tag + "'");
}
return o;
}
private static void mapLineData(PathwayElement o, Element e) throws ConverterException
{
Element graphics = e.getChild("Graphics", e.getNamespace());
Element p1 = (Element)graphics.getChildren().get(0);
Element p2 = (Element)graphics.getChildren().get(1);
o.setMStartX (Double.parseDouble(getAttribute("Line.Graphics.Point", "x", p1)));
o.setMStartY (Double.parseDouble(getAttribute("Line.Graphics.Point", "y", p1)));
String ref1 = getAttribute("Line.Graphics.Point", "GraphRef", p1);
if (ref1 == null) ref1 = "";
o.setStartGraphRef (ref1);
o.setMEndX (Double.parseDouble(getAttribute("Line.Graphics.Point", "x", p2)));
o.setMEndY (Double.parseDouble(getAttribute("Line.Graphics.Point", "y", p2)));
String ref2 = getAttribute("Line.Graphics.Point", "GraphRef", p2);
if (ref2 == null) ref2 = "";
o.setEndGraphRef (ref2);
String style = getAttribute("Line", "Style", e);
String type1 = getAttribute("Line.Graphics.Point", "ArrowHead", p1);
/**
read deprecated Head attribute for backwards compatibility.
If an arrowhead attribute is present on the other point,
it overrides this one.
*/
String type2 = getAttribute("Line.Graphics.Point", "Head", p1);
if (p2.getAttributeValue("ArrowHead") != null)
{
type2 = getAttribute("Line.Graphics.Point", "ArrowHead", p2);
}
o.setLineStyle ((style.equals("Solid")) ? LineStyle.SOLID : LineStyle.DASHED);
o.setStartLineType (LineType.fromName(type1));
o.setEndLineType (LineType.fromName(type2));
//Map anchors
List<Element> anchors = graphics.getChildren("Anchor", e.getNamespace());
for(Element ae : anchors) {
double position = Double.parseDouble(getAttribute("Line.Graphics.Anchor", "position", ae));
MAnchor anchor = o.addMAnchor(position);
mapGraphId(anchor, ae);
String shape = getAttribute("Line.Graphics.Anchor", "Shape", ae);
if(shape != null) {
anchor.setShape(LineType.fromName(shape));
}
}
}
private static void updateLineData(PathwayElement o, Element e) throws ConverterException
{
if(e != null) {
setAttribute("Line", "Style", e, o.getLineStyle() == LineStyle.SOLID ? "Solid" : "Broken");
Element jdomGraphics = e.getChild("Graphics", e.getNamespace());
Element p1 = new Element("Point", e.getNamespace());
jdomGraphics.addContent(p1);
setAttribute("Line.Graphics.Point", "x", p1, Double.toString(o.getMStartX()));
setAttribute("Line.Graphics.Point", "y", p1, Double.toString(o.getMStartY()));
setAttribute("Line.Graphics.Point", "ArrowHead", p1, o.getStartLineType().getName());
if (o.getStartGraphRef() != null && !o.getStartGraphRef().equals(""))
{
setAttribute("Line.Graphics.Point", "GraphRef", p1, o.getStartGraphRef());
}
Element p2 = new Element("Point", e.getNamespace());
jdomGraphics.addContent(p2);
setAttribute("Line.Graphics.Point", "x", p2, Double.toString(o.getMEndX()));
setAttribute("Line.Graphics.Point", "y", p2, Double.toString(o.getMEndY()));
setAttribute("Line.Graphics.Point", "ArrowHead", p2, o.getEndLineType().getName());
if (o.getEndGraphRef() != null && !o.getEndGraphRef().equals(""))
{
setAttribute("Line.Graphics.Point", "GraphRef", p2, o.getEndGraphRef());
}
for(MAnchor anchor : o.getMAnchors()) {
Element ae = new Element("Anchor", e.getNamespace());
setAttribute("Line.Graphics.Anchor", "position", ae, Double.toString(anchor.getPosition()));
setAttribute("Line.Graphics.Anchor", "Shape", ae, anchor.getShape().getName());
updateGraphId(anchor, ae);
jdomGraphics.addContent(ae);
}
}
}
private static void mapColor(PathwayElement o, Element e) throws ConverterException
{
Element graphics = e.getChild("Graphics", e.getNamespace());
String scol = getAttribute(e.getName() + ".Graphics", "Color", graphics);
o.setColor (gmmlString2Color(scol));
}
private static void mapShapeColor(PathwayElement o, Element e) throws ConverterException
{
Element graphics = e.getChild("Graphics", e.getNamespace());
String scol = getAttribute("Shape.Graphics", "FillColor", graphics);
if(scol.equals("Transparent")) {
o.setTransparent (true);
} else {
o.setTransparent (false);
o.setFillColor (gmmlString2Color(scol));
}
}
private static void updateColor(PathwayElement o, Element e) throws ConverterException
{
if(e != null)
{
Element jdomGraphics = e.getChild("Graphics", e.getNamespace());
if(jdomGraphics != null)
{
setAttribute(e.getName() + ".Graphics", "Color", jdomGraphics, color2HexBin(o.getColor()));
}
}
}
private static void updateShapeColor(PathwayElement o, Element e)
{
if(e != null)
{
Element jdomGraphics = e.getChild("Graphics", e.getNamespace());
if(jdomGraphics != null)
{
if (o.isTransparent())
jdomGraphics.setAttribute("FillColor", "Transparent");
else
jdomGraphics.setAttribute("FillColor", color2HexBin(o.getFillColor()));
}
}
}
private static void mapComments(PathwayElement o, Element e) throws ConverterException
{
for (Object f : e.getChildren("Comment", e.getNamespace()))
{
o.addComment(((Element)f).getText(), getAttribute("Comment", "Source", (Element)f));
}
}
private static void updateComments(PathwayElement o, Element e) throws ConverterException
{
if(e != null)
{
for (PathwayElement.Comment c : o.getComments())
{
Element f = new Element ("Comment", e.getNamespace());
f.setText (c.getComment());
setAttribute("Comment", "Source", f, c.getSource());
e.addContent(f);
}
}
}
private static void mapGraphId (GraphIdContainer o, Element e)
{
String id = e.getAttributeValue("GraphId");
if((id == null || id.equals("")) && o.getGmmlData() != null) {
id = o.getGmmlData().getUniqueId();
}
o.setGraphId (id);
}
private static void updateGraphId (GraphIdContainer o, Element e)
{
String id = o.getGraphId();
// id has to be unique!
if (id != null && !id.equals(""))
{
e.setAttribute("GraphId", o.getGraphId());
}
}
private static void mapGroupRef (PathwayElement o, Element e)
{
String id = e.getAttributeValue("GroupRef");
if(id != null && !id.equals("")) {
o.setGroupRef (id);
}
}
private static void updateGroupRef (PathwayElement o, Element e)
{
String id = o.getGroupRef();
if (id != null && !id.equals(""))
{
e.setAttribute("GroupRef", o.getGroupRef());
}
}
private static void mapGroup (PathwayElement o, Element e) throws ConverterException
{
//ID
String id = e.getAttributeValue("GroupId");
if((id == null || id.equals("")) && o.getParent() != null)
{id = o.getParent().getUniqueId();}
o.setGroupId (id);
//GraphId
mapGraphId(o, e);
//Style
o.setGroupStyle(GroupStyle.fromGpmlName(getAttribute("Group", "Style", e)));
//Label
o.setTextLabel (getAttribute("Group", "TextLabel", e));
}
private static void updateGroup (PathwayElement o, Element e) throws ConverterException
{
//ID
String id = o.createGroupId();
if (id != null && !id.equals(""))
{e.setAttribute("GroupId", o.createGroupId());}
//GraphId
updateGraphId(o, e);
//Style
setAttribute("Group", "Style", e, GroupStyle.toGpmlName(o.getGroupStyle()));
//Label
setAttribute ("Group", "TextLabel", e, o.getTextLabel());
}
private static void mapDataNode(PathwayElement o, Element e) throws ConverterException
{
o.setTextLabel (getAttribute("DataNode", "TextLabel", e));
o.setGenMappXref (getAttribute("DataNode", "GenMAPP-Xref", e));
o.setDataNodeType (getAttribute("DataNode", "Type", e));
o.setBackpageHead (getAttribute("DataNode", "BackpageHead", e));
Element xref = e.getChild ("Xref", e.getNamespace());
o.setGeneID (getAttribute("DataNode.Xref", "ID", xref));
o.setDataSource (DataSource.getByFullName (getAttribute("DataNode.Xref", "Database", xref)));
}
private static void updateDataNode(PathwayElement o, Element e) throws ConverterException
{
if(e != null) {
setAttribute ("DataNode", "TextLabel", e, o.getTextLabel());
setAttribute ("DataNode", "GenMAPP-Xref", e, o.getGenMappXref());
setAttribute ("DataNode", "Type", e, o.getDataNodeType());
setAttribute ("DataNode", "BackpageHead", e, o.getBackpageHead());
Element xref = e.getChild("Xref", e.getNamespace());
String database = o.getDataSource() == null ? "" : o.getDataSource().getFullName();
setAttribute ("DataNode.Xref", "Database", xref, database == null ? "" : database);
setAttribute ("DataNode.Xref", "ID", xref, o.getGeneID());
}
}
private static void mapSimpleCenter(PathwayElement o, Element e)
{
o.setMCenterX (Double.parseDouble(e.getAttributeValue("CenterX")));
o.setMCenterY (Double.parseDouble(e.getAttributeValue("CenterY")));
}
private static void updateSimpleCenter(PathwayElement o, Element e)
{
if(e != null)
{
e.setAttribute("CenterX", Double.toString(o.getMCenterX()));
e.setAttribute("CenterY", Double.toString(o.getMCenterY()));
}
}
private static void mapShapeData(PathwayElement o, Element e, String base) throws ConverterException
{
Element graphics = e.getChild("Graphics", e.getNamespace());
o.setMCenterX (Double.parseDouble(getAttribute(base + ".Graphics", "CenterX", graphics)));
o.setMCenterY (Double.parseDouble(getAttribute(base + ".Graphics", "CenterY", graphics)));
o.setMWidth (Double.parseDouble(getAttribute(base + ".Graphics", "Width", graphics)));
o.setMHeight (Double.parseDouble(getAttribute(base + ".Graphics", "Height", graphics)));
}
private static void updateShapeData(PathwayElement o, Element e, String base) throws ConverterException
{
if(e != null)
{
Element graphics = e.getChild("Graphics", e.getNamespace());
if(graphics !=null)
{
setAttribute(base + ".Graphics", "CenterX", graphics, "" + o.getMCenterX());
setAttribute(base + ".Graphics", "CenterY", graphics, "" + o.getMCenterY());
setAttribute(base + ".Graphics", "Width", graphics, "" + o.getMWidth());
setAttribute(base + ".Graphics", "Height", graphics, "" + o.getMHeight());
}
}
}
private static void mapShapeType(PathwayElement o, Element e) throws ConverterException
{
o.setShapeType (ShapeType.fromGpmlName(getAttribute("Shape", "Type", e)));
String style = getAttribute ("Shape", "Style", e);
o.setLineStyle ((style.equals("Solid")) ? LineStyle.SOLID : LineStyle.DASHED);
Element graphics = e.getChild("Graphics", e.getNamespace());
String rotation = getAttribute("Shape.Graphics", "Rotation", graphics);
double result;
if (rotation.equals("Top"))
{
result = 0.0;
}
else if (rotation.equals("Right"))
{
result = 0.5 * Math.PI;
}
else if (rotation.equals("Bottom"))
{
result = Math.PI;
}
else if (rotation.equals("Left"))
{
result = 1.5 * Math.PI;
}
else
{
result = Double.parseDouble(rotation);
}
o.setRotation (result);
}
private static void updateShapeType(PathwayElement o, Element e) throws ConverterException
{
if(e != null)
{
e.setAttribute("Type", o.getShapeType().getName());
setAttribute("Line", "Style", e, o.getLineStyle() == LineStyle.SOLID ? "Solid" : "Broken");
Element jdomGraphics = e.getChild("Graphics", e.getNamespace());
if(jdomGraphics !=null)
{
jdomGraphics.setAttribute("Rotation", Double.toString(o.getRotation()));
}
}
}
private static void mapLabelData(PathwayElement o, Element e) throws ConverterException
{
o.setTextLabel (getAttribute("Label", "TextLabel", e));
Element graphics = e.getChild("Graphics", e.getNamespace());
o.setMFontSize (Integer.parseInt(graphics.getAttributeValue("FontSize")));
String fontWeight = getAttribute("Label.Graphics", "FontWeight", graphics);
String fontStyle = getAttribute("Label.Graphics", "FontStyle", graphics);
String fontDecoration = getAttribute("Label.Graphics", "FontDecoration", graphics);
String fontStrikethru = getAttribute("Label.Graphics", "FontStrikethru", graphics);
o.setBold (fontWeight != null && fontWeight.equals("Bold"));
o.setItalic (fontStyle != null && fontStyle.equals("Italic"));
o.setUnderline (fontDecoration != null && fontDecoration.equals("Underline"));
o.setStrikethru (fontStrikethru != null && fontStrikethru.equals("Strikethru"));
o.setFontName (getAttribute("Label.Graphics", "FontName", graphics));
String xref = getAttribute("Label", "Xref", e);
if (xref == null) xref = "";
o.setGenMappXref(xref);
String outline = getAttribute("Label", "Outline", e);
o.setOutline (OutlineType.fromTag (outline));
}
private static void updateLabelData(PathwayElement o, Element e) throws ConverterException
{
if(e != null)
{
setAttribute("Label", "TextLabel", e, o.getTextLabel());
setAttribute("Label", "Xref", e, o.getGenMappXref() == null ? "" : o.getGenMappXref());
setAttribute("Label", "Outline", e, o.getOutline().getTag());
Element graphics = e.getChild("Graphics", e.getNamespace());
if(graphics !=null)
{
setAttribute("Label.Graphics", "FontName", graphics, o.getFontName() == null ? "" : o.getFontName());
setAttribute("Label.Graphics", "FontWeight", graphics, o.isBold() ? "Bold" : "Normal");
setAttribute("Label.Graphics", "FontStyle", graphics, o.isItalic() ? "Italic" : "Normal");
setAttribute("Label.Graphics", "FontDecoration", graphics, o.isUnderline() ? "Underline" : "Normal");
setAttribute("Label.Graphics", "FontStrikethru", graphics, o.isStrikethru() ? "Strikethru" : "Normal");
setAttribute("Label.Graphics", "FontSize", graphics, Integer.toString((int)o.getMFontSize()));
}
}
}
private static void mapMappInfoData(PathwayElement o, Element e) throws ConverterException
{
o.setMapInfoName (getAttribute("Pathway", "Name", e));
o.setOrganism (getAttribute("Pathway", "Organism", e));
o.setMapInfoDataSource (getAttribute("Pathway", "Data-Source", e));
o.setVersion (getAttribute("Pathway", "Version", e));
o.setAuthor (getAttribute("Pathway", "Author", e));
o.setMaintainer (getAttribute("Pathway", "Maintainer", e));
o.setEmail (getAttribute("Pathway", "Email", e));
o.setLastModified (getAttribute("Pathway", "Last-Modified", e));
o.setCopyright (getAttribute("Pathway", "Copyright", e));
Element g = e.getChild("Graphics", e.getNamespace());
//Board size will be calculated
// o.setMBoardWidth (Double.parseDouble(getAttribute("Pathway.Graphics", "BoardWidth", g)));
// o.setMBoardHeight (Double.parseDouble(getAttribute("Pathway.Graphics", "BoardHeight", g)));
o.setWindowWidth (Double.parseDouble(getAttribute("Pathway.Graphics", "WindowWidth", g)));
o.setWindowHeight (Double.parseDouble(getAttribute("Pathway.Graphics", "WindowHeight", g)));
}
private static void mapBiopax(PathwayElement o, Element e) throws ConverterException
{
//this method clones all content,
//getContent will leave them attached to the parent, which we don't want
//We can safely remove them, since the JDOM element isn't used anymore after this method
Element root = new Element("RDF", RDF);
root.addNamespaceDeclaration(RDFS);
root.addNamespaceDeclaration(RDF);
root.addNamespaceDeclaration(OWL);
root.addNamespaceDeclaration(BIOPAX);
root.setAttribute(new Attribute("base", GPML.getURI() + "#", Namespace.XML_NAMESPACE));
//Element owl = new Element("Ontology", OWL);
//owl.setAttribute(new Attribute("about", "", RDF));
//Element imp = new Element("imports", OWL);
//imp.setAttribute(new Attribute("resource", BIOPAX.getURI(), RDF));
//owl.addContent(imp);
//root.addContent(owl);
root.addContent(e.cloneContent());
Document bp = new Document(root);
o.setBiopax(bp);
}
private static void updateBiopax(PathwayElement o, Element e) throws ConverterException
{
Document bp = o.getBiopax();
if(e != null && bp != null) {
List<Content> content = bp.getRootElement().cloneContent();
for(Content c : content) {
if(c instanceof Element) {
Element elm = (Element)c;
if(elm.getNamespace().equals(BIOPAX)) {
e.addContent(c);
} else if(elm.getName().equals("RDF") && elm.getNamespace().equals(RDF)) {
for(Object ce : elm.getChildren()) {
if(((Element)ce).getNamespace().equals(BIOPAX)) {
e.addContent((Element)ce);
}
}
} else {
Logger.log.info("Skipped non-biopax element" + c);
}
}
}
}
}
private static void mapBiopaxRef(PathwayElement o, Element e) throws ConverterException
{
for (Object f : e.getChildren("BiopaxRef", e.getNamespace()))
{
o.addBiopaxRef(((Element)f).getText());
}
}
private static void updateBiopaxRef(PathwayElement o, Element e) throws ConverterException
{
if(e != null)
{
for (String ref : o.getBiopaxRefs())
{
Element f = new Element ("BiopaxRef", e.getNamespace());
f.setText (ref);
e.addContent(f);
}
}
}
static public Element createJdomElement(PathwayElement o, Namespace ns) throws ConverterException
{
Element e = null;
switch (o.getObjectType())
{
case ObjectType.DATANODE:
e = new Element("DataNode", ns);
updateComments(o, e);
updateBiopaxRef(o, e);
e.addContent(new Element("Graphics", ns));
e.addContent(new Element("Xref", ns));
updateDataNode(o, e);
updateColor(o, e);
updateShapeData(o, e, "DataNode");
updateGraphId(o, e);
updateGroupRef(o, e);
break;
case ObjectType.SHAPE:
e = new Element ("Shape", ns);
updateComments(o, e);
updateBiopaxRef(o, e);
e.addContent(new Element("Graphics", ns));
updateShapeColor(o, e);
updateColor(o, e);
updateShapeData(o, e, "Shape");
updateShapeType(o, e);
updateGraphId(o, e);
updateGroupRef(o, e);
break;
case ObjectType.LINE:
e = new Element("Line", ns);
updateComments(o, e);
updateBiopaxRef(o, e);
e.addContent(new Element("Graphics", ns));
updateLineData(o, e);
updateColor(o, e);
updateGroupRef(o, e);
break;
case ObjectType.LABEL:
e = new Element("Label", ns);
updateComments(o, e);
updateBiopaxRef(o, e);
e.addContent(new Element("Graphics", ns));
updateLabelData(o, e);
updateColor(o, e);
updateShapeData(o, e, "Label");
updateGraphId(o, e);
updateGroupRef(o, e);
break;
case ObjectType.LEGEND:
e = new Element ("Legend", ns);
updateSimpleCenter (o, e);
break;
case ObjectType.INFOBOX:
e = new Element ("InfoBox", ns);
updateSimpleCenter (o, e);
break;
case ObjectType.GROUP:
e = new Element ("Group", ns);
updateGroup (o, e);
updateGroupRef(o, e);
updateComments(o, e);
updateBiopaxRef(o, e);
break;
case ObjectType.BIOPAX:
e = new Element ("Biopax", ns);
updateBiopax(o, e);
break;
}
if (e == null)
{
throw new ConverterException ("Error creating jdom element with objectType " + o.getObjectType());
}
return e;
}
/**
* Converts a string containing either a named color (as specified in gpml) or a hexbinary number
* to an {@link Color} object
* @param strColor
*/
public static Color gmmlString2Color(String strColor)
{
if(colorMappings.contains(strColor))
{
double[] color = (double[])rgbMappings.get(colorMappings.indexOf(strColor));
return new Color((int)(255*color[0]),(int)(255*color[1]),(int)(255*color[2]));
}
else
{
try
{
strColor = padding(strColor, 6, '0');
int red = Integer.valueOf(strColor.substring(0,2),16);
int green = Integer.valueOf(strColor.substring(2,4),16);
int blue = Integer.valueOf(strColor.substring(4,6),16);
return new Color(red,green,blue);
}
catch (Exception e)
{
Logger.log.error("while converting color: " +
"Color " + strColor + " is not valid, element color is set to black", e);
}
}
return new Color(0,0,0);
}
/**
* Converts an {@link Color} object to a hexbinary string
* @param color
*/
public static String color2HexBin(Color color)
{
String red = padding(Integer.toBinaryString(color.getRed()), 8, '0');
String green = padding(Integer.toBinaryString(color.getGreen()), 8, '0');
String blue = padding(Integer.toBinaryString(color.getBlue()), 8, '0');
String hexBinary = Integer.toHexString(Integer.valueOf(red + green + blue, 2));
return padding(hexBinary, 6, '0');
}
/**
* Prepends character c x-times to the input string to make it length n
* @param s String to pad
* @param n Number of characters of the resulting string
* @param c character to append
* @return string of length n or larger (if given string s > n)
*/
public static String padding(String s, int n, char c)
{
while(s.length() < n)
{
s = c + s;
}
return s;
}
public static final List<double[]> rgbMappings = Arrays.asList(new double[][] {
{0, 1, 1}, // aqua
{0, 0, 0}, // black
{0, 0, 1}, // blue
{1, 0, 1}, // fuchsia
{.5, .5, .5,}, // gray
{0, .5, 0}, // green
{0, 1, 0}, // lime
{.5, 0, 0}, // maroon
{0, 0, .5}, // navy
{.5, .5, 0}, // olive
{.5, 0, .5}, // purple
{1, 0, 0}, // red
{.75, .75, .75},// silver
{0, .5, .5}, // teal
{1, 1, 1}, // white
{1, 1, 0}, // yellow
{0, 0, 0} // transparent (actually irrelevant)
});
public static final List<String> colorMappings = Arrays.asList(new String[]{
"Aqua", "Black", "Blue", "Fuchsia", "Gray", "Green", "Lime",
"Maroon", "Navy", "Olive", "Purple", "Red", "Silver", "Teal",
"White", "Yellow", "Transparent"
});
public void doImport(File file, Pathway pathway) throws ConverterException
{
readFromXml(pathway, file, true);
}
public void doExport(File file, Pathway pathway) throws ConverterException
{
writeToXml(pathway, file, true);
}
public String[] getExtensions() {
return new String[] { "gpml", "xml" };
}
public String getName() {
return "GPML file";
}
/**
* Writes the JDOM document to the file specified
* @param file the file to which the JDOM document should be saved
* @param validate if true, validate the dom structure before writing to file. If there is a validation error,
* or the xsd is not in the classpath, an exception will be thrown.
*/
static public void writeToXml(Pathway pwy, File file, boolean validate) throws ConverterException
{
Document doc = createJdom(pwy);
//Validate the JDOM document
if (validate) validateDocument(doc);
// Get the XML code
XMLOutputter xmlcode = new XMLOutputter(Format.getPrettyFormat());
Format f = xmlcode.getFormat();
f.setEncoding("ISO-8859-1");
f.setTextMode(Format.TextMode.PRESERVE);
xmlcode.setFormat(f);
//Open a filewriter
try
{
FileWriter writer = new FileWriter(file);
//Send XML code to the filewriter
xmlcode.output(doc, writer);
}
catch (IOException ie)
{
throw new ConverterException(ie);
}
}
static public void readFromXml(Pathway pwy, File file, boolean validate) throws ConverterException
{
FileReader inf;
try
{
inf = new FileReader (file);
}
catch (FileNotFoundException e)
{
throw new ConverterException (e);
}
readFromXml (pwy, inf, validate);
}
static public void readFromXml(Pathway pwy, Reader in, boolean validate) throws ConverterException
{
// Start XML processing
SAXBuilder builder = new SAXBuilder(false); // no validation when reading the xml file
// try to read the file; if an error occurs, catch the exception and print feedback
try
{
Logger.log.trace ("Build JDOM tree");
// build JDOM tree
Document doc = builder.build(in);
Logger.log.trace ("Start Validation");
if (validate) validateDocument(doc);
// Copy the pathway information to a VPathway
Element root = doc.getRootElement();
Logger.log.trace ("Copy map elements");
mapElement(root, pwy); // MappInfo
// Iterate over direct children of the root element
for (Object e : root.getChildren())
{
mapElement((Element)e, pwy);
}
Logger.log.trace ("End copying map elements");
}
catch(JDOMParseException pe)
{
throw new ConverterException (pe);
}
catch(JDOMException e)
{
throw new ConverterException (e);
}
catch(IOException e)
{
throw new ConverterException (e);
}
catch(NullPointerException e)
{
throw new ConverterException (e);
}
}
/**
* validates a JDOM document against the xml-schema definition specified by 'xsdFile'
* @param doc the document to validate
*/
public static void validateDocument(Document doc) throws ConverterException
{
ClassLoader cl = Pathway.class.getClassLoader();
InputStream is = cl.getResourceAsStream(xsdFile);
if(is != null) {
Schema schema;
try {
SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
StreamSource ss = new StreamSource (is);
schema = factory.newSchema(ss);
ValidatorHandler vh = schema.newValidatorHandler();
SAXOutputter so = new SAXOutputter(vh);
so.output(doc);
// If no errors occur, the file is valid according to the gpml xml schema definition
Logger.log.info("Document is valid according to the xml schema definition '" +
xsdFile.toString() + "'");
} catch (SAXException se) {
Logger.log.error("Could not parse the xml-schema definition", se);
throw new ConverterException (se);
} catch (JDOMException je) {
Logger.log.error("Document is invalid according to the xml-schema definition!: " +
je.getMessage(), je);
XMLOutputter xmlcode = new XMLOutputter(Format.getPrettyFormat());
Logger.log.error("The invalid XML code:\n" + xmlcode.outputString(doc));
throw new ConverterException (je);
}
} else {
Logger.log.error("Document is not validated because the xml schema definition '" +
xsdFile + "' could not be found in classpath");
throw new ConverterException ("Document is not validated because the xml schema definition '" +
xsdFile + "' could not be found in classpath");
}
}
}
| [
"[email protected]"
]
| |
5b2b73760ca9e20f1be8ab03f8ea55ecb304f2d0 | 96a2d0232d876b8bf39985f854b07d3bc9f01f36 | /src/com/topia/imagememo/EditActivity.java | 564051eb671b77ab79f1745ebb2c00eefba76adf | []
| no_license | kiringold/CameraMemo | 50ba8efba03d4d455dc11561535794642e79549d | 510e0e0634e3f0886ed4f899de3c7d4ad5edb32a | refs/heads/master | 2021-01-10T08:25:13.109303 | 2015-11-26T07:49:38 | 2015-11-26T07:49:38 | 46,911,953 | 0 | 0 | null | null | null | null | SHIFT_JIS | Java | false | false | 5,576 | java | package com.topia.imagememo;
import java.io.File;
import java.io.IOException;
import java.sql.Date;
import java.text.SimpleDateFormat;
import com.topia.imagememo.db.Memo;
import com.topia.imagememo.db.MemoRow;
import com.topia.imagememo.image.BitmapResizer;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
public class EditActivity extends Activity {
private MemoRow row;
//registerActivityからコピペ
private ImageView imageView;
private static final int CAPTURE_IMAGE_CAPTURE_CODE = 0;
protected static final String TAG = EditActivity.class.getSimpleName();;
private ImageButton ib;
private File send_from; // カメラインテント保存先候補(キャッシュ)
private File send_to; // カメラインテント保存先候補(正式)
private File set_from; // カメラインテント保存先(キャッシュ)
private File set_to; // カメラインテント保存先(正式)
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_edit);
//registerActivityからほぼコピペ
//写真表示用
imageView = (ImageView) findViewById(R.id.imageView1);
//写真撮影用ボタンクリックリスナー
ib = (ImageButton) findViewById(R.id.imageButton1);
ib.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
//保存名に日時を使うための処理
final Date date = new Date(System.currentTimeMillis());
final SimpleDateFormat dataFormat = new SimpleDateFormat("'IMG'_yyyyMMdd_HHmmss");
final String filename = dataFormat.format(date) + ".jpg";
//写真保存先の指定 保存先はmnt->sdcard->DCIM->Camera->
send_from = new File(EditActivity.this.getExternalCacheDir().toString()
+ "/", filename);
send_to = new File(Environment.getExternalStorageDirectory().toString()
+ "/DCIM/Camera", filename);
Log.d(TAG, "from => " + send_from.getPath() );
Log.d(TAG, " to => " + send_to.getPath() );
i.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(send_from));
startActivityForResult(i, CAPTURE_IMAGE_CAPTURE_CODE);
}
});
Intent i = getIntent();
int id = i.getIntExtra("id", 0);
Memo memo = new Memo(this);
memo.open();
// 取得
row = memo.find(id);
//DB切断
memo.close();
//変更前のデータ表示用
((EditText)findViewById(R.id.memo)).setText(row.getMemo());
((TextView)findViewById(R.id.created_at)).setText(row.getCreatedAt());
ImageView imageView = (ImageView)findViewById(R.id.imageView1);
BitmapResizer bitmapResizer = new BitmapResizer(EditActivity.this);
try {
Bitmap bitmap = bitmapResizer.resize(Uri.parse(row.getImagePath()), 300, 300);
imageView.setImageBitmap(null);
imageView.setImageBitmap(bitmap);
imageView.setVisibility(View.VISIBLE);
} catch (IOException e) {
e.printStackTrace();
}
//保存ボタンのクリックリスナーの定義
Button btnDisp = (Button)findViewById(R.id.bt_01);
btnDisp.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
EditText input = (EditText)findViewById(R.id.memo);
String text = input.getText().toString();
if(text.equals("")){
Toast.makeText(EditActivity.this, "テキストが入力されていません",
Toast.LENGTH_LONG).show();
}else{
Log.d("test", "click on update");
// 更新するデータを用意
row.setMemo(text);
if(set_to != null) {
Uri mySaveUri = Uri.fromFile(set_to);
row.setImagePath(mySaveUri.toString());
if(set_from != null) {
Log.d(TAG, "from => " + set_from.getPath() );
set_from.renameTo(set_to); // ファイル移動
}
Log.d(TAG, " to => " + set_to.getPath() );
}
//DBに接続
Memo memo = new Memo(EditActivity.this);
memo.open();
// データを変更
memo.update(row);
//DB切断
memo.close();
Intent intent = new Intent(EditActivity.this , ShowActivity.class);
intent.putExtra("id", row.getId());
startActivity(intent);
Toast.makeText(EditActivity.this,"変更されました",Toast.LENGTH_SHORT * 10).show();
finish();
}
}
});
}
//registerからコピペ
//カメラが撮影した後の処理
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (resultCode == Activity.RESULT_OK && requestCode == CAPTURE_IMAGE_CAPTURE_CODE) {
set_from = send_from;
set_to = send_to;
BitmapResizer bitmapResizer = new BitmapResizer(EditActivity.this);
try {
Bitmap bitmap = bitmapResizer.resize(Uri.fromFile(set_from), 300, 300);
imageView.setImageBitmap(null);
imageView.setImageBitmap(bitmap);
imageView.setVisibility(View.VISIBLE);
} catch (IOException e) {
e.printStackTrace();
}
}
}
// public boolean onCreateOptionsMenu(Menu menu) {
// // Inflate the menu; this adds items to the action bar if it is present.
// getMenuInflater().inflate(R.menu.edit, menu);
// return true;
// }
}
| [
"[email protected]"
]
| |
60a312d75de78ecdd80963b4f54ebeccbcb603e0 | 6617551782c4572f35689d3d3288d78f5f170202 | /spring/BoardClientProject/src/batch/SendLogJob.java | 7748b35890247e75989b6cf4d0cb3a939a6706b2 | []
| no_license | KangJinSol/worksapce | f4064beaa9aad745a7a411861293ae6cd3cfb1f6 | fe32475e7fc4e65df06435ed53f7d05e822d4a2b | refs/heads/main | 2023-02-25T23:18:52.639114 | 2021-02-04T08:49:32 | 2021-02-04T08:49:32 | 331,210,153 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,996 | java | package batch;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
public class SendLogJob implements Job {
@Override
public void execute(JobExecutionContext context) throws JobExecutionException {
try {
File file = new File("error.txt");
FileReader fr = new FileReader(file);
BufferedReader br = new BufferedReader(fr);
while(true) {
String str = br.readLine();
if(str == null) break;
sendLog(str.split("\t"));
}
fr.close();
br.close();
System.out.println("파일 삭제 : " + file.delete());
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
private void sendLog(String[] split) {
String queryString = "";
String[] paramArr = {"log_date","code_number","message"};
try {
//쿼리스트링 완성
for(int i=0;i<paramArr.length;i++)
queryString += paramArr[i] + "=" + URLEncoder.encode(split[i],"utf-8") + "&";
System.out.println(queryString);
//웹으로 전송
String apiUrl = "http://localhost:9999/sendLog.do?"+queryString;
URL url = new URL(apiUrl);
//API 요청 --> 데이터 전송
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
//요청 결과 받음
BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));
System.out.println(br.readLine());
br.close();
conn.disconnect();
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
} | [
"[email protected]"
]
| |
478d91b90a7228cf95ac1e8bb915d2382b6459e4 | 217cb8e0b447d453b013e3d95598e638b2c0c29c | /src/main/java/com/galileoindonesia/schema/pnr/QueueErrText.java | 7e2158c38962f3ce8600bc7528d8bde6e85996ff | []
| no_license | sfranklyn/segcounter | 798e1853d2eb70901871273b1d1e74b39b7a2da7 | c4d0ca8ee10465a2d1c485b117d75cca87145506 | refs/heads/master | 2021-01-10T04:17:42.184081 | 2015-12-12T09:05:35 | 2015-12-12T09:05:35 | 47,546,047 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,533 | java | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-548
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2009.03.31 at 11:27:25 AM ICT
//
package com.galileoindonesia.schema.pnr;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.galileoindonesia.com/schema/PNR}ErrText"/>
* <element ref="{http://www.galileoindonesia.com/schema/PNR}TextMsg"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"errText",
"textMsg"
})
@XmlRootElement(name = "QueueErrText")
public class QueueErrText implements Serializable
{
@XmlElement(name = "ErrText", required = true)
protected ErrText errText;
@XmlElement(name = "TextMsg", required = true)
protected TextMsg textMsg;
/**
* Gets the value of the errText property.
*
* @return
* possible object is
* {@link ErrText }
*
*/
public ErrText getErrText() {
return errText;
}
/**
* Sets the value of the errText property.
*
* @param value
* allowed object is
* {@link ErrText }
*
*/
public void setErrText(ErrText value) {
this.errText = value;
}
/**
* Gets the value of the textMsg property.
*
* @return
* possible object is
* {@link TextMsg }
*
*/
public TextMsg getTextMsg() {
return textMsg;
}
/**
* Sets the value of the textMsg property.
*
* @param value
* allowed object is
* {@link TextMsg }
*
*/
public void setTextMsg(TextMsg value) {
this.textMsg = value;
}
}
| [
"[email protected]"
]
| |
72fb8011eb9f6b7d0114dc68630fef4f32099783 | 161f7226e79b367133e7cfe0d2bc112bad978799 | /hi world/src/thiskywd.java | 296b7078275c1fb81eb7d59a14102ed7126d6f2d | []
| no_license | vinodkyerra/javapro | 3aaf48c731dd549d43d4451ee5ecdcfcaaaaf061 | 4b2739fe47313ff3bc85df85160d22101bb26d86 | refs/heads/master | 2020-03-24T02:01:08.691974 | 2018-08-22T20:50:45 | 2018-08-22T20:50:45 | 142,359,530 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 362 | java | class student {
int id;
String name;
Double fee;
student (int id, String name, double fee){
this.id = id;
this.name = name;
this.fee = fee;
}
void display() {
System.out.println(id+" "+name+" "+fee);
}
}
class student1 {
public static void main(String[] args) {
student1 obj=new student1();
}
} | [
"[email protected]"
]
| |
a19bb8d292394b4b303b9d0a01080f18553f307d | d38afb4d31e0574dd2086fc84e5d664aecc77f5c | /com/planet_ink/coffee_mud/Abilities/Thief/Thief_Sap.java | ac3df9ddff5e57fc761f5c5f645e083f984e16b0 | [
"Apache-2.0"
]
| permissive | Dboykey/CoffeeMud | c4775fc6ec9e910ff7ff8523c04567a580a9529e | 844704805d3de26a16b83bd07552d6ae82391208 | refs/heads/master | 2022-04-16T07:07:22.004847 | 2020-04-06T17:55:33 | 2020-04-06T17:55:33 | 255,074,559 | 0 | 1 | Apache-2.0 | 2020-04-12T12:10:07 | 2020-04-12T12:10:06 | null | UTF-8 | Java | false | false | 7,008 | 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 2002-2020 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.
*/
public class Thief_Sap extends ThiefSkill implements HealthCondition
{
@Override
public String ID()
{
return "Thief_Sap";
}
private final static String localizedName = CMLib.lang().L("Sap");
@Override
public String name()
{
return localizedName;
}
private final static String localizedStaticDisplay = CMLib.lang().L("(Knocked out)");
@Override
public String displayText()
{
return localizedStaticDisplay;
}
@Override
protected int canAffectCode()
{
return CAN_MOBS;
}
@Override
protected int canTargetCode()
{
return CAN_MOBS;
}
@Override
public int abstractQuality()
{
return Ability.QUALITY_MALICIOUS;
}
private static final String[] triggerStrings =I(new String[] {"SAP"});
@Override
public String[] triggerStrings()
{
return triggerStrings;
}
@Override
public int usageType()
{
return USAGE_MOVEMENT;
}
@Override
public int classificationCode()
{
return Ability.ACODE_THIEF_SKILL|Ability.DOMAIN_DIRTYFIGHTING;
}
@Override
public String getHealthConditionDesc()
{
return "Unconscious";
}
@Override
public boolean okMessage(final Environmental myHost, final CMMsg msg)
{
if(!(affected instanceof MOB))
return true;
final MOB mob=(MOB)affected;
// when this spell is on a MOBs Affected list,
// it should consistantly prevent the mob
// from trying to do ANYTHING except sleep
if((msg.amISource(mob))&&(!msg.sourceMajor(CMMsg.MASK_ALWAYS)))
{
if((msg.sourceMajor(CMMsg.MASK_EYES))
||(msg.sourceMajor(CMMsg.MASK_HANDS))
||(msg.sourceMajor(CMMsg.MASK_MOUTH))
||(msg.sourceMajor(CMMsg.MASK_MOVE)))
{
if(msg.sourceMessage()!=null)
mob.tell(L("You are way too drowsy."));
return false;
}
}
return super.okMessage(myHost,msg);
}
@Override
public void affectPhyStats(final Physical affected, final PhyStats affectableStats)
{
super.affectPhyStats(affected,affectableStats);
// when this spell is on a MOBs Affected list,
// it should consistantly put the mob into
// a sleeping state, so that nothing they do
// can get them out of it.
affectableStats.setDisposition(affectableStats.disposition()|PhyStats.IS_SLEEPING);
}
@Override
public void unInvoke()
{
// undo the affects of this spell
if(!(affected instanceof MOB))
return;
final MOB mob=(MOB)affected;
super.unInvoke();
if(canBeUninvoked())
{
if((mob.location()!=null)&&(!mob.amDead()))
{
mob.location().show(mob,null,CMMsg.MSG_OK_ACTION,L("<S-NAME> regain(s) consciousness."));
CMLib.commands().postStand(mob,true, false);
}
else
mob.tell(L("You regain consciousness."));
}
}
@Override
public int castingQuality(final MOB mob, final Physical target)
{
if(mob!=null)
{
if(mob.isInCombat())
return Ability.QUALITY_INDIFFERENT;
if(!(target instanceof MOB))
return Ability.QUALITY_INDIFFERENT;
if(CMLib.flags().canBeSeenBy(mob,(MOB)target))
return Ability.QUALITY_INDIFFERENT;
if(mob.baseWeight()<(((MOB)target).baseWeight()-100))
return Ability.QUALITY_INDIFFERENT;
}
return super.castingQuality(mob,target);
}
@Override
public boolean invoke(final MOB mob, final List<String> commands, final Physical givenTarget, final boolean auto, final int asLevel)
{
final MOB target=this.getTarget(mob,commands,givenTarget);
if(target==null)
return false;
if(!auto)
{
if(mob.isInCombat())
{
mob.tell(L("Not while you are fighting!"));
return false;
}
if(CMLib.flags().canBeSeenBy(mob,target))
{
mob.tell(L("@x1 is watching you way too closely.",target.name(mob)));
return false;
}
if(mob.baseWeight()<(target.baseWeight()-100))
{
mob.tell(L("@x1 is too big to knock out!",target.name(mob)));
return false;
}
}
if(!super.invoke(mob,commands,givenTarget,auto,asLevel))
return false;
int levelDiff=target.phyStats().level()-(mob.phyStats().level()+(2*getXLEVELLevel(mob)));
if(levelDiff>0)
levelDiff=levelDiff*3;
else
levelDiff=0;
// now see if it worked
final boolean hit=(auto)||CMLib.combat().rollToHit(mob,target);
boolean success=proficiencyCheck(mob,(-levelDiff)+(-((target.charStats().getStat(CharStats.STAT_STRENGTH)-mob.charStats().getStat(CharStats.STAT_STRENGTH)))),auto)&&(hit);
if(success)
{
invoker=mob;
final CMMsg msg=CMClass.getMsg(mob,target,this,CMMsg.MSG_THIEF_ACT|CMMsg.MASK_SOUND|CMMsg.MSK_MALICIOUS_MOVE|(auto?CMMsg.MASK_ALWAYS:0),auto?"":L("^F^<FIGHT^><S-NAME> sneak(s) up behind <T-NAMESELF> and whack(s) <T-HIM-HER> on the head!^</FIGHT^>^?"));
CMLib.color().fixSourceFightColor(msg);
if(mob.location().okMessage(mob,msg))
{
mob.location().send(mob,msg);
if(msg.value()<=0)
{
target.location().show(target,null, CMMsg.MSG_OK_ACTION,L("<S-NAME> hit(s) the floor!"));
success=maliciousAffect(mob,target,asLevel,3,-1)!=null;
final Set<MOB> H=mob.getGroupMembers(new HashSet<MOB>());
MOB M=null;
mob.makePeace(true);
for (final Object element : H)
{
M=(MOB)element;
if(M.getVictim()==target)
M.setVictim(null);
}
}
}
}
else
return maliciousFizzle(mob,target,L("<S-NAME> sneak(s) up and attempt(s) to knock <T-NAMESELF> out, but fail(s)."));
// return whether it worked
return success;
}
}
| [
"[email protected]"
]
| |
03f6db679cb56c1c84cdf5e3f06694d154ae56c0 | 37515a0a63e3e6e62ba5104567201d2f14360f13 | /edu.fudan.langlab.uidl.domain/src/main/java/edu/fudan/langlab/uidl/domain/app/client/WorkbenchPresenterProxy.java | e8fed4d79f411027c338acd414daa0debe76bf4d | []
| no_license | rockguo2015/newmed | 9d95e161ba7cb9c59b24c4fb0bec2eb328214831 | b4818912e5bbc6e0147d47e8ba475c0ac5c80c2e | refs/heads/master | 2021-01-10T05:16:25.491087 | 2015-05-29T10:03:23 | 2015-05-29T10:03:23 | 36,384,873 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 213 | java | package edu.fudan.langlab.uidl.domain.app.client;
import com.uniquesoft.gwt.client.common.Presenter;
public interface WorkbenchPresenterProxy extends WorkbenchPartProxy{
Presenter<?> getPresenter();
}
| [
"[email protected]"
]
| |
bb62ba582512c3e3165d5b9de2ee9cb6e70fb1b7 | 5c3c4fde730a650b698446291b039241ab8c1651 | /common/src/main/java/com/learn/hanjx/design/memento/Memento.java | 77ebd30c38cb817a1d90e3b05ac0387b4b262cc9 | []
| no_license | mvphjx/learn | f7462a3abe77e8306d9b5fbe90df052a9caac17a | 1795e6360e353cb4820afa66715d53b3dcc26b73 | refs/heads/master | 2022-12-05T19:30:20.043567 | 2021-07-01T03:16:18 | 2021-07-01T03:16:18 | 92,476,292 | 2 | 0 | null | 2022-11-16T07:41:33 | 2017-05-26T05:42:04 | JavaScript | UTF-8 | Java | false | false | 334 | java | package com.learn.hanjx.design.memento;
/**
* 备忘录对象
* 当前对象快照,用于备份、还原
*/
public class Memento {
private String value;
public Memento(String value) {
this.value = value;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}
| [
"[email protected]"
]
| |
9c828bb3c07566c127ae1b14208ae47ce11c17e5 | 21fe014dad812fb4d8626c7c0a9adca0fd0ea7ae | /https/src/http/standard/StandardHttpsServerSocket.java | f092431b35b6d764d015636509ed511b39fd8e2d | []
| no_license | bernardobreder/demo-ssl | 2a0e7937370bf278496b9995599a9d7d92680c30 | 049e96adea5d2246783c06703e0db6bef1647b9e | refs/heads/master | 2021-07-05T22:52:33.222160 | 2017-09-22T19:15:48 | 2017-09-22T19:15:48 | 104,339,210 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,166 | java | // package http.standard;
//
// import http.HttpServerSocket;
// import http.HttpSocket;
//
// import java.io.IOException;
// import java.net.Socket;
// import java.security.KeyManagementException;
// import java.security.KeyStore;
// import java.security.KeyStoreException;
// import java.security.NoSuchAlgorithmException;
// import java.security.UnrecoverableKeyException;
// import java.security.cert.CertificateException;
// import java.util.ArrayList;
// import java.util.List;
//
// import javax.net.ssl.SSLServerSocket;
//
// import ssl.StandardSSLServerSocket;
//
// /**
// *
// *
// * @author Tecgraf/PUC-Rio
// */
// public class StandardHttpsServerSocket implements HttpServerSocket {
//
// /** Server */
// private final SSLServerSocket server;
// /** Listeners */
// private List<HttpServerSocketListener> listeners = new
// ArrayList<HttpServerSocketListener>();
//
// /**
// * @param port
// * @param keyStore
// * @param keyPass
// * @throws IOException
// * @throws NoSuchAlgorithmException
// * @throws UnrecoverableKeyException
// * @throws KeyStoreException
// * @throws KeyManagementException
// * @throws CertificateException
// */
// public StandardHttpsServerSocket(int port, KeyStore keyStore, char[] keyPass)
// throws IOException, NoSuchAlgorithmException,
// UnrecoverableKeyException, KeyStoreException,
// KeyManagementException, CertificateException {
// this.server = StandardSSLServerSocket.create(port, keyStore, keyPass);
// }
//
// /**
// * {@inheritDoc}
// */
// @Override
// public HttpSocket accept() throws IOException {
// for (;;) {
// Socket socket = this.server.accept();
// try {
// HttpSocket httpSocket = new StandardHttpSocket(socket);
// httpSocket.readRequest();
// this.fireAcceptSocket(httpSocket);
// return httpSocket;
// } catch (Throwable e) {
// this.fireError(e);
// }
// }
// }
//
// /**
// * {@inheritDoc}
// */
// @Override
// public void close() throws IOException {
// try {
// this.server.close();
// } finally {
// this.fireCloseServer();
// }
// }
//
// /**
// * Dispara evento
// *
// * @param e
// */
// protected void fireError(Throwable e) {
// if (!this.listeners.isEmpty()) {
// for (HttpServerSocketListener listener : this.listeners) {
// listener.error(e);
// }
// }
// }
//
// /**
// * Dispara evento
// *
// * @param socket
// */
// protected void fireAcceptSocket(HttpSocket socket) {
// if (!this.listeners.isEmpty()) {
// for (HttpServerSocketListener listener : this.listeners) {
// listener.acceptHttpSocket(socket);
// }
// }
// }
//
// /**
// * Dispara evento
// */
// protected void fireCloseServer() {
// if (!this.listeners.isEmpty()) {
// for (HttpServerSocketListener listener : this.listeners) {
// listener.closeServer();
// }
// }
// }
//
// /**
// * {@inheritDoc}
// */
// @Override
// public void addListener(HttpServerSocketListener listener) {
// this.listeners.add(listener);
// }
//
// /**
// * {@inheritDoc}
// */
// @Override
// public boolean removeListener(HttpServerSocketListener listener) {
// return this.listeners.remove(listener);
// }
//
// /**
// * {@inheritDoc}
// */
// @Override
// public void clearListeners() {
// this.listeners.clear();
// }
//
//}
| [
"[email protected]"
]
| |
34b0cfb0919c02267d55e50bcb7206e03c52cafe | ee690cf7e0f42188ba4bb679fd026ebb59c42a25 | /mineproj/src/test/java/mineproj/app/server/service/AppCustomerTestCase.java | 9289f24454f548b413ba347e1dce6c4776d7dbe0 | []
| no_license | applifireAlgo/salesdemorepo | 88b5e68cb17a179e79df47c4305be23ba3de81a1 | 0ac27d85a4693e65fb0a55f1ccb652cb6c12157d | refs/heads/master | 2021-01-10T13:57:00.010541 | 2016-01-22T13:36:40 | 2016-01-22T13:36:40 | 49,199,375 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 24,735 | java | package mineproj.app.server.service;
import org.junit.runner.RunWith;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;
import mineproj.app.config.WebConfigExtended;
import org.springframework.test.context.ContextConfiguration;
import org.junit.FixMethodOrder;
import org.junit.runners.MethodSorters;
import org.springframework.test.context.TestExecutionListeners;
import mineproj.app.server.repository.AppCustomerRepository;
import mineproj.app.shared.customers.AppCustomer;
import org.springframework.beans.factory.annotation.Autowired;
import com.athena.framework.server.helper.RuntimeLogInfoHelper;
import com.athena.framework.server.helper.EntityValidatorHelper;
import com.athena.framework.server.test.RandomValueGenerator;
import java.util.HashMap;
import com.spartan.healthmeter.entity.scheduler.ArtMethodCallStack;
import org.springframework.mock.web.MockHttpSession;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.junit.Before;
import org.junit.After;
import com.athena.framework.shared.entity.web.entityInterface.CommonEntityInterface.RECORD_TYPE;
import org.junit.Test;
import mineproj.app.shared.customers.AppCustomerCategory;
import mineproj.app.server.repository.AppCustomerCategoryRepository;
import mineproj.app.shared.customers.AppCustomerType;
import mineproj.app.server.repository.AppCustomerTypeRepository;
import mineproj.app.shared.contacts.CoreContacts;
import mineproj.app.server.repository.CoreContactsRepository;
import mineproj.app.shared.contacts.Gender;
import mineproj.app.server.repository.GenderRepository;
import mineproj.app.shared.location.Language;
import mineproj.app.server.repository.LanguageRepository;
import mineproj.app.shared.location.Timezone;
import mineproj.app.server.repository.TimezoneRepository;
import mineproj.app.shared.contacts.Title;
import mineproj.app.server.repository.TitleRepository;
import mineproj.app.shared.contacts.CommunicationData;
import mineproj.app.shared.contacts.CommunicationGroup;
import mineproj.app.server.repository.CommunicationGroupRepository;
import mineproj.app.shared.contacts.CommunicationType;
import mineproj.app.server.repository.CommunicationTypeRepository;
import mineproj.app.shared.location.Address;
import mineproj.app.server.repository.AddressRepository;
import mineproj.app.shared.location.AddressType;
import mineproj.app.server.repository.AddressTypeRepository;
import mineproj.app.shared.location.City;
import mineproj.app.server.repository.CityRepository;
import mineproj.app.shared.location.Country;
import mineproj.app.server.repository.CountryRepository;
import mineproj.app.shared.location.State;
import mineproj.app.server.repository.StateRepository;
@RunWith(SpringJUnit4ClassRunner.class)
@WebAppConfiguration
@ContextConfiguration(classes = WebConfigExtended.class)
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
@TestExecutionListeners({ org.springframework.test.context.support.DependencyInjectionTestExecutionListener.class, org.springframework.test.context.support.DirtiesContextTestExecutionListener.class, org.springframework.test.context.transaction.TransactionalTestExecutionListener.class })
public class AppCustomerTestCase {
@Autowired
private AppCustomerRepository<AppCustomer> appcustomerRepository;
@Autowired
private RuntimeLogInfoHelper runtimeLogInfoHelper;
@Autowired
private EntityValidatorHelper<Object> entityValidator;
private RandomValueGenerator valueGenerator = new RandomValueGenerator();
private static HashMap<String, Object> map = new HashMap<String, Object>();
@Autowired
private ArtMethodCallStack methodCallStack;
protected MockHttpSession session;
protected MockHttpServletRequest request;
protected MockHttpServletResponse response;
protected void startSession() {
session = new MockHttpSession();
}
protected void endSession() {
session.clearAttributes();
session.invalidate();
session = null;
}
protected void startRequest() {
request = new MockHttpServletRequest();
request.setSession(session);
org.springframework.web.context.request.RequestContextHolder.setRequestAttributes(new org.springframework.web.context.request.ServletRequestAttributes(request));
}
protected void endRequest() {
((org.springframework.web.context.request.ServletRequestAttributes) org.springframework.web.context.request.RequestContextHolder.getRequestAttributes()).requestCompleted();
org.springframework.web.context.request.RequestContextHolder.resetRequestAttributes();
request = null;
}
@Before
public void before() {
startSession();
startRequest();
setBeans();
}
@After
public void after() {
endSession();
endRequest();
}
private void setBeans() {
runtimeLogInfoHelper.createRuntimeLogUserInfo(1, "AAAAA", request.getRemoteHost());
org.junit.Assert.assertNotNull(runtimeLogInfoHelper);
methodCallStack.setRequestId(java.util.UUID.randomUUID().toString().toUpperCase());
}
@Test
public void test1Save() {
try {
AppCustomerCategory appcustomercategory = new AppCustomerCategory();
appcustomercategory.setCustomerCategory("0RwjjOxdccGn1GdfqpXprK5Ooci4DjzEwuOoZQVATtwYIuPU58");
AppCustomerCategory AppCustomerCategoryTest = appcustomercategoryRepository.save(appcustomercategory);
map.put("AppCustomerCategoryPrimaryKey", appcustomercategory._getPrimarykey());
AppCustomerType appcustomertype = new AppCustomerType();
appcustomertype.setCustomerType("L0r086X7DGvBtPwy6UJcdEpTXZ6Ddby1Dr7yBOhtDwJvwEEh7Y");
appcustomertype.setDefaults(1);
appcustomertype.setSequenceId(2147483647);
AppCustomerType AppCustomerTypeTest = appcustomertypeRepository.save(appcustomertype);
map.put("AppCustomerTypePrimaryKey", appcustomertype._getPrimarykey());
CoreContacts corecontacts = new CoreContacts();
corecontacts.setAge(17);
corecontacts.setApproximateDOB(new java.sql.Date(123456789));
corecontacts.setDateofbirth(new java.sql.Date(123456789));
corecontacts.setEmailId("J4cL8KlNfbrJUiEFSOki3iTcdkvfqlqPgI8JJp82XAWSpTRW1x");
corecontacts.setFirstName("GCGTsYFRExFZ5iFdDxrDeTa2uvhPDM6liXZNKTdP3iHsN1sYpW");
Gender gender = new Gender();
gender.setGender("irOFeT2Kb4mq3dNCHZhX7KlyM7KCCluAEVqWpEL5isXe6knceV");
Gender GenderTest = genderRepository.save(gender);
map.put("GenderPrimaryKey", gender._getPrimarykey());
Language language = new Language();
language.setAlpha2("si");
language.setAlpha3("mkv");
language.setAlpha4("7WcO");
language.setAlpha4parentid(3);
language.setLanguage("OHz2theAkKzbhjiccF33biGPzCRX9RnKNk3e3ehqoT5QuGMhal");
language.setLanguageDescription("w8QACmkPB2SyCXvxcIms61e7xDtOuoqshK8jbcenaBH5g2e6Id");
language.setLanguageIcon("awCJRtXfZJ0jyprPDuJBbIdBlW7Wi7G4RxYtQd8GgiVAheyTXw");
language.setLanguageType("wfMBz4mOH1WdMshlkDpDGBommDTVxNaU");
Language LanguageTest = languageRepository.save(language);
map.put("LanguagePrimaryKey", language._getPrimarykey());
Timezone timezone = new Timezone();
timezone.setCities("GBZNtxlcO9zrLoaqIbaZpLUnZgTZwPWhcKHsIR5oGD2us2M6v9");
timezone.setCountry("4dF8gxNPICR9ug9O3PikHDQ2okx4T4XduViWypBexyGWkM87Vg");
timezone.setGmtLabel("kOqx2qbpU1PMGycE9ekS19uMyYh5sIxdp8ZwELL28648dEYKGl");
timezone.setTimeZoneLabel("nmds3FblFXIelth7xm35WmK38sEheFBzlFOUsPIxdK3nuYV6dh");
timezone.setUtcdifference(1);
Title title = new Title();
title.setTitles("fRC2eZJoJQ5FJrBpvunl4CSpO3dhD50FF8PlRtgTltkCMaRjeF");
Title TitleTest = titleRepository.save(title);
map.put("TitlePrimaryKey", title._getPrimarykey());
corecontacts.setAge(70);
corecontacts.setApproximateDOB(new java.sql.Date(123456789));
corecontacts.setDateofbirth(new java.sql.Date(123456789));
corecontacts.setEmailId("J2TmmFHCzlAKl4SLo4PewGi0dobz5K3GiyVAyNMUiELjvteBoj");
corecontacts.setFirstName("hmSMAeHh7OBOvsQKrzq333EkN0JdyxEw8GebNsq10ZUFxm0HcC");
corecontacts.setGenderId((java.lang.String) GenderTest._getPrimarykey()); /* ******Adding refrenced table data */
corecontacts.setLastName("RFaOMu10WlM0eaIwn4QuJL6GrwHzCxKNFmy4USNRx9ilm4q5Pn");
corecontacts.setMiddleName("GRJ5MCpDFMBCzcdM3YOjUpuD61bkPSbhGvvcoiZ9HjQIOMWb5N");
corecontacts.setNativeFirstName("h0EOLBhh49J9VQ6AOh1rVoi6GvlzckoapSQgABtf6qqAta1Ero");
corecontacts.setNativeLanguageCode((java.lang.String) LanguageTest._getPrimarykey()); /* ******Adding refrenced table data */
corecontacts.setNativeLastName("Rw6XEnqWZvRKFL8f14msAXOAIM40oyOjFwiw1MeLSJVsXubOXB");
corecontacts.setNativeMiddleName("QCGhusNio7ssN9dXpmLije370OHJHQZ23rswD4S5T3GZmciLCV");
corecontacts.setNativeTitle("qtx1nD5QVqTgr2QpPyA1cFzleg5dcbA1vj1pC3cZdhjVI6xWZ4");
corecontacts.setPhoneNumber("DjKsuDib5RTReXCfeDO1");
timezone.setTimeZoneId(null);
corecontacts.setTimezone(timezoneRepository.save(timezone));
map.put("TimezonePrimaryKey", timezone._getPrimarykey());
corecontacts.setTitleId((java.lang.String) TitleTest._getPrimarykey()); /* ******Adding refrenced table data */
java.util.List<CommunicationData> listOfCommunicationData = new java.util.ArrayList<CommunicationData>();
CommunicationData communicationdata = new CommunicationData();
communicationdata.setCommData("Y");
CommunicationGroup communicationgroup = new CommunicationGroup();
communicationgroup.setCommGroupDescription("TEdMxSMUqK5wTfoB73D9B2v5xgwr19Jz1V6JbcKb6dfhd3GbGG");
communicationgroup.setCommGroupName("qWRa9gD9vgnm0VhJtuKmzMV5HAIRPARHqyxPwOsWRn6mhYCE7p");
CommunicationGroup CommunicationGroupTest = communicationgroupRepository.save(communicationgroup);
map.put("CommunicationGroupPrimaryKey", communicationgroup._getPrimarykey());
CommunicationType communicationtype = new CommunicationType();
communicationtype.setCommGroupId((java.lang.String) CommunicationGroupTest._getPrimarykey()); /* ******Adding refrenced table data */
communicationtype.setCommTypeDescription("mgvO3kxrWISrHYBFyXGWRB97F1qxGQ2SMjLxbOUMqGGfjYkm25");
communicationtype.setCommTypeName("3xsa6jYOYmsfEsVjRYVicvhYz3dqNJpbYkOYPBrQtzAAnhrMwI");
CommunicationType CommunicationTypeTest = communicationtypeRepository.save(communicationtype);
map.put("CommunicationTypePrimaryKey", communicationtype._getPrimarykey());
communicationdata.setCommData("O");
communicationdata.setCommGroupId((java.lang.String) CommunicationGroupTest._getPrimarykey()); /* ******Adding refrenced table data */
communicationdata.setCommType((java.lang.String) CommunicationTypeTest._getPrimarykey()); /* ******Adding refrenced table data */
listOfCommunicationData.add(communicationdata);
corecontacts.addAllCommunicationData(listOfCommunicationData);
java.util.List<Address> listOfAddress = new java.util.ArrayList<Address>();
Address address = new Address();
address.setAddress1("3aahTBEE7FX88rNbcovaxiECclXXSkqm7GsuCfJAU1Cf4Sl12U");
address.setAddress2("vGyMcFkEZCjxDUsyvgoSAG7mroTCKFglVxLQrf24RkuoDnNvMH");
address.setAddress3("2yuRPQJRZRAEBV6hymCCY2l8hE8NBcENpQDR6SFfvmH3u10DpX");
address.setAddressLabel("EDiQmkf5WQG");
AddressType addresstype = new AddressType();
addresstype.setAddressType("Ei9Ko45YRVfK3LGApXdr5ZS6dFPf8Le5WKaEXQJ277T4wbzDaE");
addresstype.setAddressTypeDesc("y69lgpiMcj0CyZ1pN3GEOiKpR0FpudtUFTbdbkbd0c0HsFbz30");
addresstype.setAddressTypeIcon("Zfp7xejQVQshFUDPMlyeNBPnrYSriuohwcRakCtgZt4IxaaYIx");
AddressType AddressTypeTest = addresstypeRepository.save(addresstype);
map.put("AddressTypePrimaryKey", addresstype._getPrimarykey());
City city = new City();
city.setCityCode(1);
city.setCityCodeChar2("CCfcdSmSUThQgTSycMI03dLcUpoXKck4");
city.setCityDescription("jwEhldFmV5Qw3D5nEKjncmnmevvMUEeBo5zeNigi2ooiuB844A");
city.setCityFlag("mjlLBXXEGvKe9Gg0l6emPjjJAKmts6Btwamm3jqGJigOrRLBO1");
city.setCityLatitude(6);
city.setCityLongitude(2);
city.setCityName("cxaZbcri3ORgj4w7zT9idchpgfF8NLZ6L5TVN84EzJFrX9r0Lo");
Country country = new Country();
country.setCapital("ZT2B34E1UB4rV5GUiT8bGdsCkQL7uYPH");
country.setCapitalLatitude(4);
country.setCapitalLongitude(6);
country.setCountryCode1("yPR");
country.setCountryCode2("Hsw");
country.setCountryFlag("O9bcSGBQaalZAUbgvUmTvw2tC1aOZIOAxaQQWnDKv2H4OOdxXK");
country.setCountryName("JQ0lmlDHlJZnVsDWm7hKTVFQFDsICeFvqXfRf2fMmEhzRTxcsE");
country.setCurrencyCode("LfB");
country.setCurrencyName("yeQhYwl57ktbaCBEHYHZTCNbOlGttQzuIEFXHr44F7WNgikTXM");
country.setCurrencySymbol("QwRgF6jvOMOcUhXp34Jnm9NJ6Dm1lp9k");
country.setIsoNumeric(6);
Country CountryTest = countryRepository.save(country);
map.put("CountryPrimaryKey", country._getPrimarykey());
State state = new State();
state.setCountryId((java.lang.String) CountryTest._getPrimarykey()); /* ******Adding refrenced table data */
state.setStateCapital("kIwSki3CuKUjYoQmIQApgUHaPJUbmc4ityGSVlDGM4HdCRWYSm");
state.setStateCapitalLatitude(9);
state.setStateCapitalLongitude(4);
state.setStateCode(1);
state.setStateCodeChar2("CuFLOxofoc0GSc7Yl2NaaJEfBIbtlMnX");
state.setStateCodeChar3("7cPw948loADjUlFwNS7c40lCNYBrYgA3");
state.setStateDescription("uNtFhU3GVhbZniN1PEZ4NiHn7ruNYrtoF7qUkrohVN2mtQP7Eu");
state.setStateFlag("mSbCiJ1vgawH5gCcstRIk2odkqAmXZaEUihJ7lj6Y3N5VcSwk1");
state.setStateName("pbdLt3kT7BTaNEXnpUFMfoZIPDA2nvGG8tgG68irySlwJqjAn0");
State StateTest = stateRepository.save(state);
map.put("StatePrimaryKey", state._getPrimarykey());
city.setCityCode(2);
city.setCityCodeChar2("FQ8sSyCx5WRjKCsnY9fHyfTb6PCd8R8O");
city.setCityDescription("duuwcWsylKGfm7WL7zPsex2fH18HGqiVpCA6c3OGfEcFhdpreS");
city.setCityFlag("AoriuQ92vHMXeBwDbXSPHwhYGEWeVzc8bvGsFtd7WKdQDzrAFW");
city.setCityLatitude(3);
city.setCityLongitude(6);
city.setCityName("zOqsVDnG3kfK48qCYxDMQ5EdealZYJsGCGYS9fNBdsb3qe4Y6K");
city.setCountryId((java.lang.String) CountryTest._getPrimarykey()); /* ******Adding refrenced table data */
city.setStateId((java.lang.String) StateTest._getPrimarykey()); /* ******Adding refrenced table data */
City CityTest = cityRepository.save(city);
map.put("CityPrimaryKey", city._getPrimarykey());
address.setAddress1("WK1RuWBkSYONxKQl6aDqqZxcvsU5jj6kt3p4grL4GhWYA3uneg");
address.setAddress2("lHo1miSIs5mEvc84Z8ZW7pZTQIZjsZ0rzDFwLtK0SNiDCdYM14");
address.setAddress3("TRBZ09JT0CJNrRfZNUg1YLUQgPXG3YLtyPpoauPs2AW9WxyQOE");
address.setAddressLabel("AtQvtG6ubPh");
address.setAddressTypeId((java.lang.String) AddressTypeTest._getPrimarykey()); /* ******Adding refrenced table data */
address.setCityId((java.lang.String) CityTest._getPrimarykey()); /* ******Adding refrenced table data */
address.setCountryId((java.lang.String) CountryTest._getPrimarykey()); /* ******Adding refrenced table data */
address.setLatitude("gVSmRnciVo0la5ZyLezEPVXph16mluK1jN34InB1AUFI7B1znw");
address.setLongitude("oneVQDEhBIBLNgWBg7j171IAsZmiIr9qgW0SpWmbKodXPZf4fd");
address.setStateId((java.lang.String) StateTest._getPrimarykey()); /* ******Adding refrenced table data */
address.setZipcode("G997j0");
listOfAddress.add(address);
corecontacts.addAllAddress(listOfAddress);
CoreContacts CoreContactsTest = corecontactsRepository.save(corecontacts);
map.put("CoreContactsPrimaryKey", corecontacts._getPrimarykey());
AppCustomer appcustomer = new AppCustomer();
appcustomer.setAppCustomerCategory((java.lang.String) AppCustomerCategoryTest._getPrimarykey()); /* ******Adding refrenced table data */
appcustomer.setAppCustomerType((java.lang.String) AppCustomerTypeTest._getPrimarykey()); /* ******Adding refrenced table data */
appcustomer.setContactId((java.lang.String) CoreContactsTest._getPrimarykey());
appcustomer.setCustomerName("FJXGJRcZJfgl6VpDlAcBRXRHqLryzIP5iSfibcsV9lIgNDPFth");
appcustomer.setCustomerStatus(1);
appcustomer.setDeploymentModel(true);
appcustomer.setEvalTimePeriod(2147483647);
appcustomer.setUserRequested(2147483647);
appcustomer.setEntityAudit(1, "xyz", RECORD_TYPE.ADD);
appcustomer.setEntityValidator(entityValidator);
appcustomer.isValid();
appcustomerRepository.save(appcustomer);
map.put("AppCustomerPrimaryKey", appcustomer._getPrimarykey());
} catch (com.athena.framework.server.exception.biz.SpartanConstraintViolationException e) {
org.junit.Assert.fail(e.getMessage());
} catch (java.lang.Exception e) {
org.junit.Assert.fail(e.getMessage());
}
}
@Autowired
private AppCustomerCategoryRepository<AppCustomerCategory> appcustomercategoryRepository;
@Autowired
private AppCustomerTypeRepository<AppCustomerType> appcustomertypeRepository;
@Autowired
private CoreContactsRepository<CoreContacts> corecontactsRepository;
@Autowired
private GenderRepository<Gender> genderRepository;
@Autowired
private LanguageRepository<Language> languageRepository;
@Autowired
private TimezoneRepository<Timezone> timezoneRepository;
@Autowired
private TitleRepository<Title> titleRepository;
@Autowired
private CommunicationGroupRepository<CommunicationGroup> communicationgroupRepository;
@Autowired
private CommunicationTypeRepository<CommunicationType> communicationtypeRepository;
@Autowired
private AddressRepository<Address> addressRepository;
@Autowired
private AddressTypeRepository<AddressType> addresstypeRepository;
@Autowired
private CityRepository<City> cityRepository;
@Autowired
private CountryRepository<Country> countryRepository;
@Autowired
private StateRepository<State> stateRepository;
@Test
public void test2Update() {
try {
org.junit.Assert.assertNotNull(map.get("AppCustomerPrimaryKey"));
AppCustomer appcustomer = appcustomerRepository.findById((java.lang.String) map.get("AppCustomerPrimaryKey"));
appcustomer.setCustomerName("fRToU6nXBMQ5ld0Z7H2r0O5v7fiMR1czOMCNtYzjcInNTUxMW3");
appcustomer.setCustomerStatus(1);
appcustomer.setEvalTimePeriod(2147483647);
appcustomer.setUserRequested(2147483647);
appcustomer.setVersionId(1);
appcustomer.setEntityAudit(1, "xyz", RECORD_TYPE.UPDATE);
appcustomerRepository.update(appcustomer);
} catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
org.junit.Assert.fail(e.getMessage());
} catch (java.lang.Exception e) {
org.junit.Assert.fail(e.getMessage());
}
}
@Test
public void test3findByappCustomerCategory() {
try {
java.util.List<AppCustomer> listofappCustomerCategory = appcustomerRepository.findByAppCustomerCategory((java.lang.String) map.get("AppCustomerCategoryPrimaryKey"));
if (listofappCustomerCategory.size() == 0) {
org.junit.Assert.fail("Query did not return any records.");
}
} catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
org.junit.Assert.fail(e.getMessage());
} catch (Exception e) {
org.junit.Assert.fail(e.getMessage());
}
}
@Test
public void test3FindById() {
try {
org.junit.Assert.assertNotNull(map.get("AppCustomerPrimaryKey"));
appcustomerRepository.findById((java.lang.String) map.get("AppCustomerPrimaryKey"));
} catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
org.junit.Assert.fail(e.getMessage());
} catch (Exception e) {
org.junit.Assert.fail(e.getMessage());
}
}
@Test
public void test3findByappCustomerType() {
try {
java.util.List<AppCustomer> listofappCustomerType = appcustomerRepository.findByAppCustomerType((java.lang.String) map.get("AppCustomerTypePrimaryKey"));
if (listofappCustomerType.size() == 0) {
org.junit.Assert.fail("Query did not return any records.");
}
} catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
org.junit.Assert.fail(e.getMessage());
} catch (Exception e) {
org.junit.Assert.fail(e.getMessage());
}
}
@Test
public void test3findBycontactId() {
try {
java.util.List<AppCustomer> listofcontactId = appcustomerRepository.findByContactId((java.lang.String) map.get("CoreContactsPrimaryKey"));
if (listofcontactId.size() == 0) {
org.junit.Assert.fail("Query did not return any records.");
}
} catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
org.junit.Assert.fail(e.getMessage());
} catch (Exception e) {
org.junit.Assert.fail(e.getMessage());
}
}
@Test
public void test4Delete() {
try {
org.junit.Assert.assertNotNull(map.get("AppCustomerPrimaryKey"));
appcustomerRepository.delete((java.lang.String) map.get("AppCustomerPrimaryKey")); /* Deleting refrenced data */
corecontactsRepository.delete((java.lang.String) map.get("CoreContactsPrimaryKey")); /* Deleting refrenced data */
cityRepository.delete((java.lang.String) map.get("CityPrimaryKey")); /* Deleting refrenced data */
stateRepository.delete((java.lang.String) map.get("StatePrimaryKey")); /* Deleting refrenced data */
countryRepository.delete((java.lang.String) map.get("CountryPrimaryKey")); /* Deleting refrenced data */
addresstypeRepository.delete((java.lang.String) map.get("AddressTypePrimaryKey")); /* Deleting refrenced data */
communicationtypeRepository.delete((java.lang.String) map.get("CommunicationTypePrimaryKey")); /* Deleting refrenced data */
communicationgroupRepository.delete((java.lang.String) map.get("CommunicationGroupPrimaryKey")); /* Deleting refrenced data */
titleRepository.delete((java.lang.String) map.get("TitlePrimaryKey")); /* Deleting refrenced data */
timezoneRepository.delete((java.lang.String) map.get("TimezonePrimaryKey")); /* Deleting refrenced data */
languageRepository.delete((java.lang.String) map.get("LanguagePrimaryKey")); /* Deleting refrenced data */
genderRepository.delete((java.lang.String) map.get("GenderPrimaryKey")); /* Deleting refrenced data */
appcustomertypeRepository.delete((java.lang.String) map.get("AppCustomerTypePrimaryKey")); /* Deleting refrenced data */
appcustomercategoryRepository.delete((java.lang.String) map.get("AppCustomerCategoryPrimaryKey"));
} catch (com.athena.framework.server.exception.repository.SpartanPersistenceException e) {
org.junit.Assert.fail(e.getMessage());
} catch (Exception e) {
org.junit.Assert.fail(e.getMessage());
}
}
}
| [
"[email protected]"
]
| |
e659f7ddb24937dbd25420cc3c2bb8125cb131ee | ef1ce9190d547945cbf22fb81e749faad94477cf | /src/main/java/com/mnkj/entity/JobPlan.java | 404a44c1fcd0041522fd6058b354bed339950269 | []
| no_license | renyandongqqq/web_project | bae669d711490232664a98855557f7d9bfd6d069 | b66b284d467e7141c630c0f324b7dd2ca2535a6f | refs/heads/master | 2022-12-23T23:09:41.238512 | 2019-12-27T01:41:55 | 2019-12-27T01:41:55 | 224,618,524 | 0 | 0 | null | 2022-12-16T08:04:53 | 2019-11-28T09:36:04 | HTML | UTF-8 | Java | false | false | 1,573 | java | package com.mnkj.entity;
public class JobPlan extends DataEntity implements java.io.Serializable {
private static final long serialVersionUID = 1L;
private Long id;//ID
private String jobTitle;//工作名称
private String customerName;//客户名称
private String contactInformation;//联系方式
private String operator;//经办人
private String speed;//工作状态
private String jobDescribe;//工作描述
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getJobTitle() {
return jobTitle;
}
public void setJobTitle(String jobTitle) {
this.jobTitle = jobTitle;
}
public String getCustomerName() {
return customerName;
}
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
public String getContactInformation() {
return contactInformation;
}
public void setContactInformation(String contactInformation) {
this.contactInformation = contactInformation;
}
public String getSpeed() {
return speed;
}
public void setSpeed(String speed) {
this.speed = speed;
}
public String getJobDescribe() {
return jobDescribe;
}
public void setJobDescribe(String jobDescribe) {
this.jobDescribe = jobDescribe;
}
public String getOperator() {
return operator;
}
public void setOperator(String operator) {
this.operator = operator;
}
}
| [
"[email protected]"
]
| |
15fb88191349e70f4b773f85f53a6f5076e8e77c | 2d84da9b33640fc12868e4be6dcf0898847fad13 | /UAMFLIX/src/MODEL/GestorPersonalCliente/Cliente.java | 4c117b198ef54a29540304a3b8968ade574f52c5 | []
| no_license | HRP117/UAMFLIX | cf360f761522c60e572642bfc03b4147abb7d8bb | 30b1fd551e879c3ed206038c79620b6666695b85 | refs/heads/master | 2023-03-16T08:22:10.743224 | 2023-03-07T16:50:44 | 2023-03-07T16:50:44 | 313,525,256 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,531 | 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 MODEL.GestorPersonalCliente;
import MODEL.GestorPago.TarjetaCredito;
import java.util.Objects;
public class Cliente extends Usuario{
String IdCliente;
Boolean EstatusBeca;
Boolean EstatusProyecto;
Boolean EstatusCliente;
TarjetaCredito tarjeta;
public Cliente(String IdCliente, Boolean EstatusBeca, Boolean EstatusProyecto, Boolean EstatusCliente, TarjetaCredito tarjeta, String Nombre, String Apellido, String Nickname, String Correo, String Telefono, String Contraseña) {
super(Nombre, Apellido, Nickname, Correo, Telefono, Contraseña);
this.IdCliente = IdCliente;
this.EstatusBeca = EstatusBeca;
this.EstatusProyecto = EstatusProyecto;
this.EstatusCliente = EstatusCliente;
this.tarjeta = tarjeta;
}
public Cliente(String Nombre, String Apellido, String Nickname, String Correo, String Telefono, String Contraseña) {
super(Nombre, Apellido, Nickname, Correo, Telefono, Contraseña);
}
public Cliente(){
}
public String getIdCliente() {
return IdCliente;
}
public void setIdCliente(String IdCliente) {
this.IdCliente = IdCliente;
}
public Boolean getEstatusBeca() {
return EstatusBeca;
}
public void setEstatusBeca(Boolean EstatusBeca) {
this.EstatusBeca = EstatusBeca;
}
public Boolean getEstatusProyecto() {
return EstatusProyecto;
}
public void setEstatusProyecto(Boolean EstatusProyecto) {
this.EstatusProyecto = EstatusProyecto;
}
public Boolean getEstatusCliente() {
return EstatusCliente;
}
public void setEstatusCliente(Boolean EstatusCliente) {
this.EstatusCliente = EstatusCliente;
}
public TarjetaCredito getTarjeta() {
return tarjeta;
}
public void setTarjeta(TarjetaCredito tarjeta) {
this.tarjeta = tarjeta;
}
public String getNombre() {
return Nombre;
}
public void setNombre(String Nombre) {
this.Nombre = Nombre;
}
public String getApellido() {
return Apellido;
}
public void setApellido(String Apellido) {
this.Apellido = Apellido;
}
public String getNickname() {
return Nickname;
}
public void setNickname(String Nickname) {
this.Nickname = Nickname;
}
public String getCorreo() {
return Correo;
}
public void setCorreo(String Correo) {
this.Correo = Correo;
}
public String getTelefono() {
return Telefono;
}
public void setTelefono(String Telefono) {
this.Telefono = Telefono;
}
public String getContraseña() {
return Contraseña;
}
public void setContraseña(String Contraseña) {
this.Contraseña = Contraseña;
}
public void DatosCliente(){
System.out.println("ID Cliente: "+ getIdCliente()
+"\nNombre: "+getNombre()+""
+ "\nApellido: "+getApellido()
+"\nPassword: "+getContraseña()
+"\nCorreo: " +getCorreo()
+"\nNickname: "+getNickname()
+"\nTelefono: "+getTelefono()
+"\nEstatus Beca: "+getEstatusBeca()
+"\nEstatus Cliente: " +getEstatusCliente());
}
} | [
"[email protected]"
]
| |
e7786ac806bb5d34d1d42dccf75a1d2025a561f0 | e66f88f09756e11a82ab564d633d44b4bb1ca556 | /user-service/src/main/java/kz/iitu/userservice/services/UserService.java | 573de2977316542db33402ba8b0c1d08e9fee1dd | []
| no_license | viowla/cinema-app-spring-boot | 807007ef907be7c540e848d27f84d876146d1b28 | 9d162f62800f43843d4be3e5e7e3d19a80514039 | refs/heads/master | 2022-12-24T13:08:08.948910 | 2020-10-03T10:21:50 | 2020-10-03T10:21:50 | 298,740,723 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 273 | java | package kz.iitu.userservice.services;
import kz.iitu.userservice.entities.User;
import java.util.List;
public interface UserService {
List<User> getAllUsers();
void createUser(User user);
void updateUser(Long id, User user);
void deleteUser(Long id);
}
| [
"[email protected]"
]
| |
ff30bd21e18e05eefd1338f951947227370a74e1 | 7ef38712821730d8e49a1fa13f3476dab01aedbe | /Part1/LinkedList/src/LinkedList.java | c180a67447ffefea4280f7e7a7de49dc8d23b448 | []
| no_license | Attislpk/DataStructure_Algorithm | ac8ae39aab6ae1e80b9440f0edda1978f641f103 | 84e38374458e69adbe6f3a3f0aae5896104e323f | refs/heads/master | 2023-04-29T13:09:43.601508 | 2021-05-12T00:19:41 | 2021-05-12T00:19:41 | 354,823,461 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,593 | java | public class LinkedList<E> {
private class Node {
public E e;
public Node next;
public Node(E e, Node next) {
this.e = e;
this.next = next;
}
public Node(E e) {
this(e, null);
}
public Node() {
this(null, null);
}
public String toString() {
return e.toString();
}
}
private Node dummyHead; //采用虚拟头结点
private int size;
public LinkedList() {
dummyHead = new Node(null, null);
size = 0;
}
//向链表头插入元素
public void addFirst(E e) {
add(0, e);
size++;
}
//向链表中的任意位置添加元素
public void add(int index, E e) {
if (index < 0 || index > size) {
throw new IllegalArgumentException("index is illegal");
} else {
Node prev = dummyHead;
for (int i = 0; i < index; i++) {
//0——index-1共index次
prev = prev.next; //直到index的前一个位置
}
prev.next = new Node(e, prev.next);
size++;
}
}
//向链表末尾添加元素
public void addLast(E e) {
add(size, e);
size++;
}
//获取链表中的(0-based)位置处的元素
public E get(int index) {
if (index < 0 || index >= size) {
throw new IllegalArgumentException("index is illegal!");
}
Node cur = dummyHead.next;
for (int i = 0; i < index; i++) {
cur = cur.next;
}
return cur.e;
}
//获取链表头一个节点的元素
public E getFirst() {
return get(0);
}
//获取链表尾节点的元素
public E getLast() {
return get(size - 1);
}
//获取链表中元素的个数
public int getSize(){
return size;
}
//链表是否为空
public boolean isEmpty(){
return size == 0;
}
//修改链表中index处的元素
public void set(int index, E e) {
if (index < 0 || index >= size) {
throw new IllegalArgumentException("index is illegal!");
}
Node cur = dummyHead.next;
for (int i = 0; i < index; i++) {
cur = cur.next;
}
cur.e = e;
}
//查询链表中是否包含某元素
public boolean contains(E e) {
Node cur = dummyHead.next;
while (cur != null) {
if (cur.e.equals(e)) {
return true;
}
cur = cur.next;
}
return false;
}
//删除链表中某个位置的元素
public E remove(int index) {
Node prev = dummyHead;
for (int i = 0; i < index; i++) {
prev = prev.next;
}
Node retNode = prev.next;
prev.next = retNode.next;
retNode.next = null;
return retNode.e;
}
//删除链表头的元素
public E removeFirst() {
return remove(0);
}
//删除链表尾的元素
public E removeLast() {
return remove(size - 1);
}
@Override
public String toString() {
StringBuilder res = new StringBuilder();
// Node cur = dummyHead.next;
// while (cur != null){
// res.append(cur+"->");
// cur = cur.next;
// }
for (Node cur = dummyHead.next; cur != null; cur = cur.next) {
res.append(cur + "->");
}
res.append("NULL");
return res.toString();
}
}
| [
"[email protected]"
]
| |
03412feb212b00397ec171569653aa10a53a26e5 | 2f4a058ab684068be5af77fea0bf07665b675ac0 | /app/com/karmascience/gifts/controllers/ProductsManager$ProductImageDimensionHolder.java | 5db55dc59a34532e752ac0b7f3dd5d018ef88faa | []
| no_license | cengizgoren/facebook_apk_crack | ee812a57c746df3c28fb1f9263ae77190f08d8d2 | a112d30542b9f0bfcf17de0b3a09c6e6cfe1273b | refs/heads/master | 2021-05-26T14:44:04.092474 | 2013-01-16T08:39:00 | 2013-01-16T08:39:00 | 8,321,708 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 591 | java | package com.karmascience.gifts.controllers;
final class ProductsManager$ProductImageDimensionHolder
{
final int a = paramArrayOfInt1[0];
final int b = paramArrayOfInt1[1];
final int c = paramArrayOfInt2[0];
final int d = paramArrayOfInt2[1];
public ProductsManager$ProductImageDimensionHolder(int[] paramArrayOfInt1, int[] paramArrayOfInt2)
{
}
}
/* Location: /data1/software/jd-gui/com.facebook.katana_2.0_liqucn.com-dex2jar.jar
* Qualified Name: com.karmascience.gifts.controllers.ProductsManager.ProductImageDimensionHolder
* JD-Core Version: 0.6.0
*/ | [
"[email protected]"
]
| |
abb4b735c154779854509ca9415e2956b6d1585e | 2f12990b642b491cacc4c4d0548aa919a8bffb87 | /Abhaengigkeitshoelle/src/model/http/proxy/ProxySetter.java | 3a854b23ed525059b56b797c5299a9173d67b0b9 | []
| no_license | e2bady/pdfSpider | fa23b881ed7e036dcbbd74fc9e7652687d8917f5 | 13e4af165204d7b06a79fd945f662f76ecad3ef3 | refs/heads/master | 2021-01-22T01:28:14.426282 | 2013-08-14T10:40:08 | 2013-08-14T10:40:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,218 | java | package model.http.proxy;
import java.net.Authenticator;
import java.net.HttpURLConnection;
import java.net.InetSocketAddress;
import java.net.Proxy;
public class ProxySetter implements IProxySetter {
private final String proxyLogin;
private final String proxyUrl;
private final int proxyPort;
public Proxy setSystemsProxySettings() {
if(this.isProxySet()) {
Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(this.getProxyUrl(), this.getProxyPort()));
return proxy;
}
return null;
}
public void proxyAuthenticate(HttpURLConnection connection) {
if(this.isProxySet()) {
Authenticator.setDefault(new PasswordAuthenticator(this.getProxyLogin()));
}
}
public ProxySetter(String proxyLogin, String proxyUrl, int proxyPort) {
super();
this.proxyLogin = proxyLogin;
this.proxyUrl = proxyUrl;
this.proxyPort = proxyPort;
}
public String getProxyLogin() {
return this.proxyLogin;
}
public boolean isProxySet() {
return this.proxyLogin != null && this.getProxyUrl() != null && this.getProxyPort() > -1;
}
public String getProxyUrl() {
return this.proxyUrl;
}
public int getProxyPort() {
return this.proxyPort;
}
}
| [
"[email protected]"
]
| |
3778c8fc4e0213853ff00949b2b3139f1b6eab07 | d8e5c262e26d04f1e8fdc6fa256255ca0c80205e | /AssignmentServlet/webapp6/src/com/cg/project/servlet/Detail2Servlet.java | a760cc1dd0c04057ea39d7538afbfa9941454e0b | []
| no_license | alamelmangai/Training | bcdcaef23f7e54a370bea16c5c98246c497eade7 | 2b1dcb43c615f4d4ce58da24ee678589a45202fb | refs/heads/master | 2021-09-16T03:14:22.560970 | 2018-06-15T12:23:30 | 2018-06-15T12:23:30 | 137,483,891 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,057 | java | package com.cg.project.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
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 javax.servlet.http.HttpSession;
import com.cg.project.beans.UserBean;
@WebServlet("/Detail2Servlet")
public class Detail2Servlet extends HttpServlet {
private static final long serialVersionUID = 1L;
public void init() throws ServletException {}
public void destroy() {}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
/*String fname = request.getParameter("firstName");
String lname = request.getParameter("lastName");
String city = request.getParameter("city");
String state = request.getParameter("state");*/
HttpSession session = request.getSession(false);
if(session!=null){
UserBean userBean =(UserBean) session.getAttribute("UserBean");
userBean.setCity(request.getParameter("city"));
userBean.setState(request.getParameter("state"));
session.setAttribute("UserBean", userBean);
PrintWriter writer = response.getWriter();
writer.println("<html>");
writer.println("<head>");
writer.println("<body>");
writer.println("<div align='center'>");
writer.println("<h2>Fill The Information Below</h2>");
writer.println("<form name='LoginForm' action='Detail3Servlet' method='post'>");
writer.println("<table>");
writer.println("<tr>");
writer.println("<td>PhoneNumber:</td>");
writer.println("<td>");
writer.println("<input type='text' name='phone'>");
writer.println("</td>");
writer.println("</tr>");
writer.println("<tr>");
writer.println("<td>E-Mail:");
writer.println("</td>");
writer.println("<td><input type='text' name='email'>");
writer.println("</td>");
writer.println("</tr>");
writer.println("<tr>");
writer.println("<td>");
writer.println("<p>FirstName is: "+userBean.getFirstName()+"</p>");
writer.println("</td>");
writer.println("</tr>");
writer.println("<tr>");
writer.println("<td>");
writer.println("<p>LastName is: "+userBean.getLastName()+"</p>");
writer.println("</td>");
writer.println("</tr>");
writer.println("<tr>");
writer.println("<td>");
writer.println("<p>City is: "+userBean.getCity()+"</p>");
writer.println("</td>");
writer.println("</tr>");
writer.println("<tr>");
writer.println("<td>");
writer.println("<p>State is: "+userBean.getState()+"</p>");
writer.println("</td>");
writer.println("</tr>");
writer.println("</table>");
writer.println("<table>");
writer.println("<input type='submit' value='SUBMIT'>");
writer.println("</table>");
writer.println("</form>");
writer.println("</div>");
writer.println("</body>");
writer.println("</head>");
writer.println("</html>");
}
}
}
| [
"[email protected]"
]
| |
6138eb385971ed7f38310c784135ff33eb9de88d | 8b4acacda36c6a252c557988edc110377148c50b | /aliyun-java-sdk-sofa/src/main/java/com/aliyuncs/sofa/model/v20190815/UpdateMsSgRouterRuleGroupsRequest.java | f8ac66cf0dc56846d7a1528602ac1314506f76f6 | [
"Apache-2.0"
]
| permissive | huangbncly/aliyun-openapi-java-sdk | f8cb1bb7b124976a7ef18afd47bbd5fcb6d8ea19 | d22f77c6d5b08c720b9ce56afe22ea6e2744b03c | refs/heads/master | 2021-07-21T12:55:22.159198 | 2020-07-24T08:29:31 | 2020-07-24T08:29:31 | 199,572,334 | 0 | 0 | NOASSERTION | 2020-05-15T04:59:44 | 2019-07-30T04:07:24 | Java | UTF-8 | Java | false | false | 3,559 | java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.sofa.model.v20190815;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.sofa.Endpoint;
/**
* @author auto create
* @version
*/
public class UpdateMsSgRouterRuleGroupsRequest extends RpcAcsRequest<UpdateMsSgRouterRuleGroupsResponse> {
private Long dispatchVersion;
private String rules;
private String type;
private Long enabled;
private String operator;
private String appName;
private Long id;
private String instanceId;
private String dataId;
public UpdateMsSgRouterRuleGroupsRequest() {
super("SOFA", "2019-08-15", "UpdateMsSgRouterRuleGroups", "ApplySidecarCert");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}
public Long getDispatchVersion() {
return this.dispatchVersion;
}
public void setDispatchVersion(Long dispatchVersion) {
this.dispatchVersion = dispatchVersion;
if(dispatchVersion != null){
putBodyParameter("DispatchVersion", dispatchVersion.toString());
}
}
public String getRules() {
return this.rules;
}
public void setRules(String rules) {
this.rules = rules;
if(rules != null){
putBodyParameter("Rules", rules);
}
}
public String getType() {
return this.type;
}
public void setType(String type) {
this.type = type;
if(type != null){
putBodyParameter("Type", type);
}
}
public Long getEnabled() {
return this.enabled;
}
public void setEnabled(Long enabled) {
this.enabled = enabled;
if(enabled != null){
putBodyParameter("Enabled", enabled.toString());
}
}
public String getOperator() {
return this.operator;
}
public void setOperator(String operator) {
this.operator = operator;
if(operator != null){
putBodyParameter("Operator", operator);
}
}
public String getAppName() {
return this.appName;
}
public void setAppName(String appName) {
this.appName = appName;
if(appName != null){
putBodyParameter("AppName", appName);
}
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
if(id != null){
putBodyParameter("Id", id.toString());
}
}
public String getInstanceId() {
return this.instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
if(instanceId != null){
putBodyParameter("InstanceId", instanceId);
}
}
public String getDataId() {
return this.dataId;
}
public void setDataId(String dataId) {
this.dataId = dataId;
if(dataId != null){
putBodyParameter("DataId", dataId);
}
}
@Override
public Class<UpdateMsSgRouterRuleGroupsResponse> getResponseClass() {
return UpdateMsSgRouterRuleGroupsResponse.class;
}
}
| [
"[email protected]"
]
| |
d4b7e41eef594fbe7c478f61b76302f4911b6ab7 | 36fea8025460bd257c753a93dd3f27472892b4bc | /root/prj/sol/projects/renew2.5source/renew2.5/src/Diagram/src/de/renew/diagram/DiagramTextTool.java | a021dbc953ca4c007fc9d5e585fe33d3694bea89 | []
| no_license | Glost/db_nets_renew_plugin | ac84461e7779926b7ad70b2c7724138dc0d7242f | def4eaf7e55d79b9093bd59c5266804b345e8595 | refs/heads/master | 2023-05-05T00:02:12.504536 | 2021-05-25T22:36:13 | 2021-05-25T22:36:13 | 234,759,037 | 0 | 0 | null | 2021-05-04T23:37:39 | 2020-01-18T15:59:33 | Java | UTF-8 | Java | false | false | 407 | java | /*
* Created on Apr 16, 2003
*/
package de.renew.diagram;
import CH.ifa.draw.figures.TextFigure;
import CH.ifa.draw.figures.TextTool;
import CH.ifa.draw.framework.DrawingEditor;
/**
* @author Lawrence Cabac
*/
public class DiagramTextTool extends TextTool implements IDiagramElement {
public DiagramTextTool(DrawingEditor editor, TextFigure prototype) {
super(editor, prototype);
}
} | [
"[email protected]"
]
| |
f01259ec594cb9e2bd6a4ccd8c97132438c11838 | 77159610a18d047082ca609afc631b8c928c6514 | /documentation-app/src/main/java/com/lzb/employee/docs/web/ServiceDefinitionController.java | 0b68dbc966224fd812376ba6a9a305c019e79f86 | []
| no_license | avedanbhatla/Micro-services | 887d1ff7e0844f884619a6b0f776d300ba07b47b | 6381420d0de22c3dfa057b73a7f11e04a2b7aca9 | refs/heads/master | 2023-01-15T04:00:33.821913 | 2020-10-08T20:14:32 | 2020-10-08T20:14:32 | 302,449,976 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 685 | java | package com.lzb.employee.docs.web;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import com.lzb.employee.docs.config.swagger.ServiceDefinitionsContext;
@RestController
public class ServiceDefinitionController {
@Autowired
private ServiceDefinitionsContext definitionContext;
@GetMapping("/service/{servicename}")
public String getServiceDefinition(@PathVariable("servicename") String serviceName){
return definitionContext.getSwaggerDefinition(serviceName);
}
}
| [
"[email protected]"
]
| |
bc16f776b59b6db1296ee7a11c10bc350dddf6b1 | 6b9d2ddd91c25d0bfc2e5ba93f2db9ece4f58965 | /server/src/main/java/tabletop/controllers/event/dto/EventMatchDto.java | 6f1a21b3f973b9ed3673378c64967e81e8b6b18a | []
| no_license | sniezek/tabletop | 42401e9125a730b50162694f4c282bfb9fe79c72 | eec2f655cec17455fca990d41086bc5f1097711f | refs/heads/master | 2021-01-19T08:53:43.613077 | 2017-06-05T14:15:28 | 2017-06-05T14:15:28 | 87,693,086 | 2 | 3 | null | 2017-06-09T20:17:21 | 2017-04-09T08:12:53 | JavaScript | UTF-8 | Java | false | false | 2,609 | java | package tabletop.controllers.event.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import tabletop.domain.game.Game;
import tabletop.domain.user.User;
import java.util.Date;
import java.util.HashSet;
import java.util.Optional;
import java.util.Set;
import java.util.function.BiFunction;
import java.util.stream.Collectors;
abstract class EventMatchDto {
private static final BiFunction<Set<User>, User, Set<User>> FILTER_OUT_OTHER_USERS = (users, user) -> users.stream().filter(u -> u.equals(user)).collect(Collectors.toSet());
private final Long id;
private final Date startDate;
private final Date endDate;
private final Set<User> users;
private final Game game;
private final Integer minPlayers;
private final Integer maxPlayers;
private final Set<User> pending;
private final Set<User> discarded;
EventMatchDto(Long id, Date startDate, Date endDate, Set<User> users, Game game, Integer minPlayers, Integer maxPlayers, Set<User> pending, Set<User> discarded, Optional<User> userOptional, User organiser) {
this.id = id;
this.startDate = startDate;
this.endDate = endDate;
this.users = users;
this.game = game;
this.minPlayers = minPlayers;
this.maxPlayers = maxPlayers;
if (userOptional.isPresent()) {
User user = userOptional.get();
if (pending != null) {
this.pending = FILTER_OUT_OTHER_USERS.apply(pending, user);
} else {
this.pending = new HashSet<>();
}
if (discarded != null) {
this.discarded = FILTER_OUT_OTHER_USERS.apply(discarded, user);
} else {
this.discarded = new HashSet<>();
}
} else {
this.pending = new HashSet<>();
this.discarded = new HashSet<>();
}
}
public Long getId() {
return id;
}
public Date getStartDate() {
return startDate;
}
public Date getEndDate() {
return endDate;
}
public Set<User> getUsers() {
return users;
}
@JsonFormat(shape = JsonFormat.Shape.STRING)
public Game getGame() {
return game;
}
public Integer getMinPlayers() {
return minPlayers;
}
public Integer getMaxPlayers() {
return maxPlayers;
}
public Set<User> getPending() {
return pending;
}
public Set<User> getDiscarded() {
return discarded;
}
}
| [
"[email protected]"
]
| |
938e77ef666128f9612b85feb7bd05b34918be3b | c9249c18f242f4e9686df6b513541126887982d4 | /src/main/java/com/config/SwaggerConfig.java | de50a9737d4f340b3f04d06365fd9cf50251cb80 | []
| no_license | vbrasileiro/controle-log | 4ad2a403e8728460a0ddd7dae1a6b3a21c31e171 | 41e33826acf33932fb295fce3f18afcbfe67e94b | refs/heads/master | 2022-11-06T14:21:23.231433 | 2020-06-16T14:38:41 | 2020-06-16T14:38:41 | 272,721,319 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 841 | java | package com.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@Configuration
@EnableSwagger2
public class SwaggerConfig{
@Bean
public Docket api() {
return new Docket(DocumentationType.SWAGGER_2)
.select()
.apis(RequestHandlerSelectors.basePackage("com.controller"))
.paths(PathSelectors.any())
.build();
}
} | [
"[email protected]"
]
| |
442181df949ed3a9a1f94cd36fae41e6769679e3 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/5/5_b5b851e4cc4205c0c3f8444118bfc7b03565e0e8/PlayerListCommand/5_b5b851e4cc4205c0c3f8444118bfc7b03565e0e8_PlayerListCommand_t.java | 54fb3d5912bb3e504431df09b8c901cd7e94372a | []
| no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 4,382 | java | package to.joe.j2mc.info.command;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import to.joe.j2mc.core.J2MC_Manager;
import to.joe.j2mc.core.command.MasterCommand;
import to.joe.j2mc.info.J2MC_Info;
public class PlayerListCommand extends MasterCommand {
J2MC_Info plugin;
public PlayerListCommand(J2MC_Info Info) {
super(Info);
this.plugin = Info;
}
@Override
public void exec(CommandSender sender, String commandName, String[] args, Player player, boolean isPlayer) {
if (!sender.hasPermission("j2mc.core.admin")) {
int total = 0;
for(Player derp : plugin.getServer().getOnlinePlayers()){
if(!J2MC_Manager.getVisibility().isVanished(derp)){
total++;
}
}
sender.sendMessage(ChatColor.AQUA + "Players (" + total + "/" + plugin.getServer().getMaxPlayers() + "):");
if (total == 0) {
sender.sendMessage(ChatColor.RED + "No one is online :(");
return;
}
StringBuilder builder = new StringBuilder();
for (Player pl : plugin.getServer().getOnlinePlayers()) {
if (!J2MC_Manager.getVisibility().isVanished(pl)) {
String toAdd;
toAdd = pl.getDisplayName();
if(J2MC_Manager.getPermissions().hasFlag(pl.getName(), 'd')){
toAdd = ChatColor.GOLD + pl.getName();
}
builder.append(toAdd + ChatColor.WHITE + ", ");
if (builder.length() > 75) {
builder.setLength(builder.length() - (toAdd + ChatColor.WHITE + ", ").length());
sender.sendMessage(builder.toString());
builder = new StringBuilder();
builder.append(toAdd + ChatColor.WHITE + ", ");
}
}
}
builder.setLength(builder.length() - 2);
sender.sendMessage(builder.toString());
} else {
sender.sendMessage(ChatColor.AQUA + "Players (" + plugin.getServer().getOnlinePlayers().length + "/" + plugin.getServer().getMaxPlayers() + "):");
if (plugin.getServer().getOnlinePlayers().length == 0) {
sender.sendMessage(ChatColor.RED + "No one is online :(");
return;
}
StringBuilder builder = new StringBuilder();
for (Player pl : plugin.getServer().getOnlinePlayers()) {
String toAdd = "";
toAdd = ChatColor.GREEN + pl.getName();
if(J2MC_Manager.getPermissions().hasFlag(pl.getName(), 't')){
toAdd = ChatColor.DARK_GREEN + pl.getName();
}
if(J2MC_Manager.getPermissions().hasFlag(pl.getName(), 'd')){
toAdd = ChatColor.GOLD + pl.getName();
}
if(pl.hasPermission("j2mc.chat.mute")){
toAdd = ChatColor.YELLOW + pl.getName();
}
if(pl.hasPermission("j2mc.core.admin")){
toAdd = ChatColor.RED + pl.getName();
}
if(J2MC_Manager.getVisibility().isVanished(pl)){
toAdd = ChatColor.AQUA + pl.getName();
}
if(J2MC_Manager.getPermissions().hasFlag(pl.getName(), 'N')){
toAdd += ChatColor.DARK_AQUA + "\u00ab\u00bb";
}
if(J2MC_Manager.getPermissions().hasFlag(pl.getName(), 'k')){
toAdd += ChatColor.RED + "&";
}
builder.append(toAdd + ChatColor.WHITE + ", ");
if (builder.length() > 75) {
builder.setLength(builder.length() - (toAdd + ChatColor.WHITE + ", ").length());
sender.sendMessage(builder.toString());
builder = new StringBuilder();
builder.append(toAdd + ChatColor.WHITE + ", ");
}
}
builder.setLength(builder.length() - 2);
sender.sendMessage(builder.toString());
}
}
}
| [
"[email protected]"
]
| |
add831ace364de03dac4e70f05bc6fad07de3522 | 87c297f57eed5fedd512c8e396767e3ab08214f9 | /src/main/java/com/uc/backend/controller/general/CustomErrorController.java | f37020f5d34f254b7cff5264a5b0e7afed3d7c8e | []
| no_license | gmezan/levelfy-backend | ddf869112875d19db0e77aa9163198012f8dc885 | b283667eaa1a73a79c3c2b1aa26cccf2642a7952 | refs/heads/main | 2023-04-09T04:03:26.152002 | 2021-04-21T00:18:06 | 2021-04-21T00:18:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 499 | java | package com.uc.backend.controller.general;
import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class CustomErrorController{
//} implements ErrorController {
/*
@GetMapping("/error")
public String dummyErrorHandler(){
return "redirect:/home";
}
@Override
public String getErrorPath() {
return "/error";
}*/
}
| [
"[email protected]"
]
| |
c0a50f840b88467987688d278a8b193c2516c4d4 | 923e2428f593a0349f48c4d89394e581cb43a17d | /Db.java | 35cabdf7b84cdbee3fa61784916f1ba795c97e67 | []
| no_license | pramod0/receipt_software | ffb1866f0c5ec2895be0104d72a3cb56f0ee6c2c | 0ebd799aec58f3dbdaa18e4598712dc8ff26da12 | refs/heads/master | 2021-01-11T15:36:18.288940 | 2018-06-25T09:55:38 | 2018-06-25T09:55:38 | 81,659,994 | 0 | 2 | null | null | null | null | UTF-8 | Java | false | false | 2,166 | java | /*
* This class gives an object which can be used
* to connect to the database.
*/
/**
*
* @author pramodg
*/
import java.sql.*;
import javax.swing.JOptionPane;
public class Db {
private static Db db; //create static instance of the class
private Db(){} //create private constructor so no can create abject outside the class
//create public static method to return object of the class
public static Db getDb(){
if(db == null){
db = new Db();
}
return db;
}
//@returns ResultSet
//@params String query
protected ResultSet executeQuery(String query){
try{
Class.forName("com.mysql.jdbc.Driver");
ResultSet rs;
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/classes","root","root123");
Statement stmt=con.createStatement();
rs = stmt.executeQuery(query);
return rs;
}catch (ClassNotFoundException e){
System.out.println("haresh Mysql class not found : ");
} catch (SQLException e){
e.printStackTrace();
System.out.print("Wrong SQL query : "+ query);
}
return null;
}
protected void executeUpdate(String query){
try{
Class.forName("com.mysql.jdbc.Driver");
try(Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/classes","root","root123")){
Statement stmt=con.createStatement();
stmt.executeUpdate(query);
}
}catch (ClassNotFoundException e){
JOptionPane.showMessageDialog(null,"NoT Entered");
System.out.println("pramd Mysql class not found : ");
} catch (SQLException e){
e.printStackTrace();
JOptionPane.showMessageDialog(null,"Duplicate Entry of ID Number is Not Allowed OR Cource Code is Already Defines");
System.exit(1);
System.out.print("Wrong SQL query : "+ query);
}
}
}
| [
"[email protected]"
]
| |
8665c05deddee4a25f1c0e600487ac2a5bb2da80 | c9ad27da76e8ab2b7566261540b6b00e5fc5a081 | /java_image_server02/src/main/java/dao/Image.java | 24d4dce45284baf9ef39108b8f53bbfb93b8f62d | []
| no_license | Jipoker/project2 | c26214ec1aec973aca4ab3d7382a43ea303575dd | d3171eac06bc95d0573199aadf04104406ffaa3f | refs/heads/master | 2022-11-30T00:55:15.958106 | 2020-08-13T00:39:35 | 2020-08-13T00:39:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,801 | java | package dao;
public class Image {
// private 是没法在类外部使用的,所以要提供相关的 getter,setter 方法
private int imageId;
private String imageName;
private int size;
private String uploadTime;
private String contentType;
private String path;
private String md5;
public int getImageId() {
return imageId;
}
public void setImageId(int imageId) {
this.imageId = imageId;
}
public String getImageName() {
return imageName;
}
public void setImageName(String imageName) {
this.imageName = imageName;
}
public int getSize() {
return size;
}
public void setSize(int size) {
this.size = size;
}
public String getUploadTime() {
return uploadTime;
}
public void setUploadTime(String uploadTime) {
this.uploadTime = uploadTime;
}
public String getContentType() {
return contentType;
}
public void setContentType(String contentType) {
this.contentType = contentType;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public String getMd5() {
return md5;
}
public void setMd5(String md5) {
this.md5 = md5;
}
// 方便查看 image 类的内容
@Override
public String toString() {
return "Image{" +
"imageId=" + imageId +
", imageName='" + imageName + '\'' +
", size=" + size +
", uploadTime='" + uploadTime + '\'' +
", contentType='" + contentType + '\'' +
", path='" + path + '\'' +
", md5='" + md5 + '\'' +
'}';
}
}
| [
"[email protected]"
]
| |
922077c0ce1aedd1fefa05a4bc94e75ded119b19 | d5f5f2077966b08f730396ad8f6cd9b5f2aa870a | /ex1-hello-jpa/src/main/java/hellojpa/Book.java | ca926fe51b9522393b46f9a7e91c541f3d944be1 | []
| no_license | dkaskgkdua/inflearn_Boot_JPA-basic | 5aeb8ddeb4785970fcf468b676f29cea9d8289c7 | fbf98f738990650283cf8c9626fa44f441ca2955 | refs/heads/master | 2023-04-04T14:57:05.726707 | 2021-04-01T13:27:42 | 2021-04-01T13:27:42 | 328,410,747 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 209 | java | package hellojpa;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Entity;
@Entity
@Getter
@Setter
public class Book extends Item {
private String author;
private String isbn;
}
| [
"[email protected]"
]
| |
a7f3293851401915b0f9d2c78bfddff6e8b3ef89 | c65dabdb531ac8571f43706f43461fa8562c5324 | /modules/cloudsim/src/main/java/org/cloudbus/cloudsim/core/SimEntity.java | 432de22c3b53e8c4cead6a0b19e06e41e071065f | [
"Apache-2.0"
]
| permissive | zhangqixun/ColocationSim | 4ba8dc2926b979409768e635e49e222ddccb4259 | 4488a82985aeae3228bd8bade85296600046b4c1 | refs/heads/main | 2023-03-03T11:32:13.145038 | 2021-02-07T01:30:46 | 2021-02-07T01:30:46 | 336,674,034 | 0 | 0 | Apache-2.0 | 2021-02-07T01:30:47 | 2021-02-07T01:27:49 | null | UTF-8 | Java | false | false | 22,215 | java | /*
* Title: CloudSim Toolkit
* Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds
* Licence: GPL - http://www.gnu.org/copyleft/gpl.html
*
* Copyright (c) 2009-2012, The University of Melbourne, Australia
*/
package org.cloudbus.cloudsim.core;
import org.cloudbus.cloudsim.Log;
import org.cloudbus.cloudsim.NetworkTopology;
import org.cloudbus.cloudsim.core.predicates.Predicate;
/**
* This class represents a simulation entity. An entity handles events and can send events to other
* entities. When this class is extended, there are a few methods that need to be implemented:
* <ul>
* <li> {@link #startEntity()} is invoked by the {@link Simulation} class when the simulation is
* started. This method should be responsible for starting the entity up.
* <li> {@link #processEvent(SimEvent)} is invoked by the {@link Simulation} class whenever there is
* an event in the deferred queue, which needs to be processed by the entity.
* <li> {@link #shutdownEntity()} is invoked by the {@link Simulation} before the simulation
* finishes. If you want to save data in log files this is the method in which the corresponding
* code would be placed.
* </ul>
*
* @todo the list above is redundant once all mentioned methods are abstract.
* The documentation duplication may lead to have some of them
* out-of-date and future confusion.
*
* @author Marcos Dias de Assuncao
* @since CloudSim Toolkit 1.0
*/
public abstract class SimEntity implements Cloneable {
/** The entity name. */
private String name;
/** The entity id. */
private int id;
/** The buffer for selected incoming events. */
private SimEvent evbuf;
/** The entity's current state. */
private int state;
/**
* Creates a new entity.
*
* @param name the name to be associated with the entity
*/
public SimEntity(String name) {
if (name.indexOf(" ") != -1) {
throw new IllegalArgumentException("Entity names can't contain spaces.");
}
this.name = name;
id = -1;
state = RUNNABLE;
CloudSim.addEntity(this);
}
/**
* Gets the name of this entity.
*
* @return The entity's name
*/
public String getName() {
return name;
}
/**
* Gets the unique id number assigned to this entity.
*
* @return The id number
*/
public int getId() {
return id;
}
// The schedule functions
/**
* Sends an event to another entity by id number, with data. Note that the tag <code>9999</code>
* is reserved.
*
* @param dest The unique id number of the destination entity
* @param delay How long from the current simulation time the event should be sent
* @param tag An user-defined number representing the type of event.
* @param data The data to be sent with the event.
*/
public void schedule(int dest, double delay, int tag, Object data) {
if (!CloudSim.running()) {
return;
}
CloudSim.send(id, dest, delay, tag, data);
}
/**
* Sends an event to another entity by id number and with <b>no</b> data. Note that the tag
* <code>9999</code> is reserved.
*
* @param dest The unique id number of the destination entity
* @param delay How long from the current simulation time the event should be sent
* @param tag An user-defined number representing the type of event.
*/
public void schedule(int dest, double delay, int tag) {
schedule(dest, delay, tag, null);
}
/**
* Sends an event to another entity through a port with a given name, with data. Note that the
* tag <code>9999</code> is reserved.
*
* @param dest The name of the port to send the event through
* @param delay How long from the current simulation time the event should be sent
* @param tag An user-defined number representing the type of event.
* @param data The data to be sent with the event.
*/
public void schedule(String dest, double delay, int tag, Object data) {
schedule(CloudSim.getEntityId(dest), delay, tag, data);
}
/**
* Sends an event to another entity through a port with a given name, with <b>no</b> data. Note
* that the tag <code>9999</code> is reserved.
*
* @param dest The name of the port to send the event through
* @param delay How long from the current simulation time the event should be sent
* @param tag An user-defined number representing the type of event.
*/
public void schedule(String dest, double delay, int tag) {
schedule(dest, delay, tag, null);
}
/**
* Sends an event to another entity by id number, with data
* but no delay. Note that the tag <code>9999</code> is reserved.
*
* @param dest The unique id number of the destination entity
* @param tag An user-defined number representing the type of event.
* @param data The data to be sent with the event.
*/
public void scheduleNow(int dest, int tag, Object data) {
schedule(dest, 0, tag, data);
}
/**
* Sends an event to another entity by id number and with <b>no</b> data
* and no delay. Note that the tag <code>9999</code> is reserved.
*
* @param dest The unique id number of the destination entity
* @param tag An user-defined number representing the type of event.
*/
public void scheduleNow(int dest, int tag) {
schedule(dest, 0, tag, null);
}
/**
* Sends an event to another entity through a port with a given name, with data
* but no delay. Note that the tag <code>9999</code> is reserved.
*
* @param dest The name of the port to send the event through
* @param tag An user-defined number representing the type of event.
* @param data The data to be sent with the event.
*/
public void scheduleNow(String dest, int tag, Object data) {
schedule(CloudSim.getEntityId(dest), 0, tag, data);
}
/**
* Send an event to another entity through a port with a given name, with <b>no</b> data
* and no delay.
* Note that the tag <code>9999</code> is reserved.
*
* @param dest The name of the port to send the event through
* @param tag An user-defined number representing the type of event.
*/
public void scheduleNow(String dest, int tag) {
schedule(dest, 0, tag, null);
}
/**
* Sends a high priority event to another entity by id number, with data.
* Note that the tag <code>9999</code> is reserved.
*
* @param dest The unique id number of the destination entity
* @param delay How long from the current simulation time the event should be sent
* @param tag An user-defined number representing the type of event.
* @param data The data to be sent with the event.
*/
public void scheduleFirst(int dest, double delay, int tag, Object data) {
if (!CloudSim.running()) {
return;
}
CloudSim.sendFirst(id, dest, delay, tag, data);
}
/**
* Sends a high priority event to another entity by id number and with <b>no</b> data.
* Note that the tag <code>9999</code> is reserved.
*
* @param dest The unique id number of the destination entity
* @param delay How long from the current simulation time the event should be sent
* @param tag An user-defined number representing the type of event.
*/
public void scheduleFirst(int dest, double delay, int tag) {
scheduleFirst(dest, delay, tag, null);
}
/**
* Sends a high priority event to another entity through a port with a given name, with data.
* Note that the tag <code>9999</code> is reserved.
*
* @param dest The name of the port to send the event through
* @param delay How long from the current simulation time the event should be sent
* @param tag An user-defined number representing the type of event.
* @param data The data to be sent with the event.
*/
public void scheduleFirst(String dest, double delay, int tag, Object data) {
scheduleFirst(CloudSim.getEntityId(dest), delay, tag, data);
}
/**
* Sends a high priority event to another entity through a port with a given name, with <b>no</b>
* data. Note that the tag <code>9999</code> is reserved.
*
* @param dest The name of the port to send the event through
* @param delay How long from the current simulation time the event should be sent
* @param tag An user-defined number representing the type of event.
*/
public void scheduleFirst(String dest, double delay, int tag) {
scheduleFirst(dest, delay, tag, null);
}
/**
* Sends a high priority event to another entity by id number, with data
* and no delay.
* Note that the tag <code>9999</code> is reserved.
*
* @param dest The unique id number of the destination entity
* @param tag An user-defined number representing the type of event.
* @param data The data to be sent with the event.
*/
public void scheduleFirstNow(int dest, int tag, Object data) {
scheduleFirst(dest, 0, tag, data);
}
/**
* Sends a high priority event to another entity by id number and with <b>no</b> data
* and no delay.
* Note that the tag <code>9999</code> is reserved.
*
* @param dest The unique id number of the destination entity
* @param tag An user-defined number representing the type of event.
*/
public void scheduleFirstNow(int dest, int tag) {
scheduleFirst(dest, 0, tag, null);
}
/**
* Sends a high priority event to another entity through a port with a given name, with data
* and no delay.
* Note that the tag <code>9999</code> is reserved.
*
* @param dest The name of the port to send the event through
* @param tag An user-defined number representing the type of event.
* @param data The data to be sent with the event.
*/
public void scheduleFirstNow(String dest, int tag, Object data) {
scheduleFirst(CloudSim.getEntityId(dest), 0, tag, data);
}
/**
* Sends a high priority event to another entity through a port with a given name, with <b>no</b>
* data and no delay. Note that the tag <code>9999</code> is reserved.
*
* @param dest The name of the port to send the event through
* @param tag An user-defined number representing the type of event.
*/
public void scheduleFirstNow(String dest, int tag) {
scheduleFirst(dest, 0, tag, null);
}
/**
* Sets the entity to be inactive for a time period.
*
* @param delay the time period for which the entity will be inactive
*/
public void pause(double delay) {
if (delay < 0) {
throw new IllegalArgumentException("Negative delay supplied.");
}
if (!CloudSim.running()) {
return;
}
CloudSim.pause(id, delay);
}
/**
* Counts how many events matching a predicate are waiting in the entity's deferred queue.
*
* @param p The event selection predicate
* @return The count of matching events
*/
public int numEventsWaiting(Predicate p) {
return CloudSim.waiting(id, p);
}
/**
* Counts how many events are waiting in the entity's deferred queue.
*
* @return The count of events
*/
public int numEventsWaiting() {
return CloudSim.waiting(id, CloudSim.SIM_ANY);
}
/**
* Extracts the first event matching a predicate waiting in the entity's deferred queue.
*
* @param p The event selection predicate
* @return the simulation event
*/
public SimEvent selectEvent(Predicate p) {
if (!CloudSim.running()) {
return null;
}
return CloudSim.select(id, p);
}
/**
* Cancels the first event matching a predicate waiting in the entity's future queue.
*
* @param p The event selection predicate
* @return The number of events cancelled (0 or 1)
*/
public SimEvent cancelEvent(Predicate p) {
if (!CloudSim.running()) {
return null;
}
return CloudSim.cancel(id, p);
}
/**
* Gets the first event matching a predicate from the deferred queue, or if none match, wait for
* a matching event to arrive.
*
* @param p The predicate to match
* @return the simulation event
*/
public SimEvent getNextEvent(Predicate p) {
if (!CloudSim.running()) {
return null;
}
if (numEventsWaiting(p) > 0) {
return selectEvent(p);
}
return null;
}
/**
* Waits for an event matching a specific predicate. This method does not check the entity's
* deferred queue.
*
* @param p The predicate to match
*/
public void waitForEvent(Predicate p) {
if (!CloudSim.running()) {
return;
}
CloudSim.wait(id, p);
state = WAITING;
}
/**
* Gets the first event waiting in the entity's deferred queue, or if there are none, wait for an
* event to arrive.
*
* @return the simulation event
*/
public SimEvent getNextEvent() {
return getNextEvent(CloudSim.SIM_ANY);
}
/**
* This method is invoked by the {@link CloudSim} class when the simulation is started.
* It should be responsible for starting the entity up.
*/
public abstract void startEntity();
/**
* Processes events or services that are available for the entity.
* This method is invoked by the {@link CloudSim} class whenever there is an event in the
* deferred queue, which needs to be processed by the entity.
*
* @param ev information about the event just happened
*
* @pre ev != null
* @post $none
*/
public abstract void processEvent(SimEvent ev);
/**
* Shuts down the entity.
* This method is invoked by the {@link CloudSim} before the simulation finishes. If you want
* to save data in log files this is the method in which the corresponding code would be placed.
*/
public abstract void shutdownEntity();
/**
* The run loop to process events fired during the simulation.
* The events that will be processed are defined
* in the {@link #processEvent(org.cloudbus.cloudsim.core.SimEvent)} method.
*
* @see #processEvent(org.cloudbus.cloudsim.core.SimEvent)
*/
public void run() {
SimEvent ev = evbuf != null ? evbuf : getNextEvent();
while (ev != null) {
processEvent(ev);
if (state != RUNNABLE) {
break;
}
ev = getNextEvent();
}
evbuf = null;
}
/**
* Gets a clone of the entity. This is used when independent replications have been specified as
* an output analysis method. Clones or backups of the entities are made in the beginning of the
* simulation in order to reset the entities for each subsequent replication. This method should
* not be called by the user.
*
* @return A clone of the entity
* @throws CloneNotSupportedException when the entity doesn't support cloning
*/
@Override
protected final Object clone() throws CloneNotSupportedException {
SimEntity copy = (SimEntity) super.clone();
copy.setName(name);
copy.setEventBuffer(null);
return copy;
}
// Used to set a cloned entity's name
/**
* Sets the name.
*
* @param new_name the new name
*/
private void setName(String new_name) {
name = new_name;
}
// --------------- PACKAGE LEVEL METHODS ------------------
/**
* Gets the entity state.
*
* @return the state
*/
protected int getState() {
return state;
}
/**
* Gets the event buffer.
*
* @return the event buffer
*/
protected SimEvent getEventBuffer() {
return evbuf;
}
// The entity states
//@todo The states should be an enum.
/** The Constant RUNNABLE. */
public static final int RUNNABLE = 0;
/** The Constant WAITING. */
public static final int WAITING = 1;
/** The Constant HOLDING. */
public static final int HOLDING = 2;
/** The Constant FINISHED. */
public static final int FINISHED = 3;
/**
* Sets the entity state.
*
* @param state the new state
*/
protected void setState(int state) {
this.state = state;
}
/**
* Sets the entity id.
*
* @param id the new id
*/
protected void setId(int id) {
this.id = id;
}
/**
* Sets the event buffer.
*
* @param e the new event buffer
*/
protected void setEventBuffer(SimEvent e) {
evbuf = e;
}
// --------------- EVENT / MESSAGE SEND WITH NETWORK DELAY METHODS ------------------
/**
* Sends an event/message to another entity by <tt>delaying</tt> the simulation time from the
* current time, with a tag representing the event type.
*
* @param entityId the id number of the destination entity
* @param delay how long from the current simulation time the event should be sent. If delay is
* a negative number, then it will be changed to 0
* @param cloudSimTag an user-defined number representing the type of an event/message
* @param data A reference to data to be sent with the event
* @pre entityID > 0
* @pre delay >= 0.0
* @pre data != null
* @post $none
*/
protected void send(int entityId, double delay, int cloudSimTag, Object data) {
if (entityId < 0) {
return;
}
// if delay is -ve, then it doesn't make sense. So resets to 0.0
if (delay < 0) {
delay = 0;
}
if (Double.isInfinite(delay)) {
throw new IllegalArgumentException("The specified delay is infinite value");
}
if (entityId < 0) {
Log.printConcatLine(getName(), ".send(): Error - " + "invalid entity id ", entityId);
return;
}
int srcId = getId();
if (entityId != srcId) {// only delay messages between different entities
delay += getNetworkDelay(srcId, entityId);
}
schedule(entityId, delay, cloudSimTag, data);
}
/**
* Sends an event/message to another entity by <tt>delaying</tt> the simulation time from the
* current time, with a tag representing the event type.
*
* @param entityId the id number of the destination entity
* @param delay how long from the current simulation time the event should be sent. If delay is
* a negative number, then it will be changed to 0
* @param cloudSimTag an user-defined number representing the type of an event/message
* @pre entityID > 0
* @pre delay >= 0.0
* @post $none
*/
protected void send(int entityId, double delay, int cloudSimTag) {
send(entityId, delay, cloudSimTag, null);
}
/**
* Sends an event/message to another entity by <tt>delaying</tt> the simulation time from the
* current time, with a tag representing the event type.
*
* @param entityName the name of the destination entity
* @param delay how long from the current simulation time the event should be sent. If delay is
* a negative number, then it will be changed to 0
* @param cloudSimTag an user-defined number representing the type of an event/message
* @param data A reference to data to be sent with the event
* @pre entityName != null
* @pre delay >= 0.0
* @pre data != null
* @post $none
*/
protected void send(String entityName, double delay, int cloudSimTag, Object data) {
send(CloudSim.getEntityId(entityName), delay, cloudSimTag, data);
}
/**
* Sends an event/message to another entity by <tt>delaying</tt> the simulation time from the
* current time, with a tag representing the event type.
*
* @param entityName the name of the destination entity
* @param delay how long from the current simulation time the event should be sent. If delay is
* a negative number, then it will be changed to 0
* @param cloudSimTag an user-defined number representing the type of an event/message
* @pre entityName != null
* @pre delay >= 0.0
* @post $none
*/
protected void send(String entityName, double delay, int cloudSimTag) {
send(entityName, delay, cloudSimTag, null);
}
/**
* Sends an event/message to another entity, with a tag representing the event type.
*
* @param entityId the id number of the destination entity
* @param cloudSimTag an user-defined number representing the type of an event/message
* @param data A reference to data to be sent with the event
* @pre entityID > 0
* @pre delay >= 0.0
* @pre data != null
* @post $none
*/
protected void sendNow(int entityId, int cloudSimTag, Object data) {
send(entityId, 0, cloudSimTag, data);
}
/**
* Sends an event/message to another entity, with a tag representing the event type.
*
* @param entityId the id number of the destination entity
* @param cloudSimTag an user-defined number representing the type of an event/message
* @pre entityID > 0
* @pre delay >= 0.0
* @post $none
*/
protected void sendNow(int entityId, int cloudSimTag) {
send(entityId, 0, cloudSimTag, null);
}
/**
* Sends an event/message to another entity, with a tag representing the event type.
*
* @param entityName the name of the destination entity
* @param cloudSimTag an user-defined number representing the type of an event/message
* @param data A reference to data to be sent with the event
* @pre entityName != null
* @pre delay >= 0.0
* @pre data != null
* @post $none
*/
protected void sendNow(String entityName, int cloudSimTag, Object data) {
send(CloudSim.getEntityId(entityName), 0, cloudSimTag, data);
}
/**
* Sends an event/message to another entity, with a tag representing the event type.
*
* @param entityName the name of the destination entity
* @param cloudSimTag an user-defined number representing the type of an event/message
* @pre entityName != null
* @pre delay >= 0.0
* @post $none
*/
protected void sendNow(String entityName, int cloudSimTag) {
send(entityName, 0, cloudSimTag, null);
}
/**
* Gets the network delay associated to the sent of a message from a given source to a given
* destination.
*
* @param src source of the message
* @param dst destination of the message
* @return delay to send a message from src to dst
* @pre src >= 0
* @pre dst >= 0
*/
private double getNetworkDelay(int src, int dst) {
if (NetworkTopology.isNetworkEnabled()) {
return NetworkTopology.getDelay(src, dst);
}
return 0.0;
}
}
| [
"[email protected]"
]
| |
6173dbe01201890517df0d6871c5940677dcb604 | 7efc756a33ec4e91d8ad0456437d11d5cfbebedd | /TeamCode/src/main/java/org/firstinspires/ftc/teamcode/omni_drive.java | 1f84739e6b94c6cff182104aab0921717c9a992a | [
"BSD-3-Clause"
]
| permissive | urboiJeff2006/skystone | d9e429f43fcca01f1ca260114a793c6b3a9b7e59 | a49d7ddf0f992273355df1b9e2a5e638a5462d4d | refs/heads/master | 2020-11-24T11:01:53.945823 | 2019-11-02T17:04:16 | 2019-11-02T17:04:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,983 | java |
package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
@TeleOp(name = "omni drive")
public class omni_drive extends LinearOpMode {
@Override
public void runOpMode(){
robot_hardware robot = new robot_hardware();
robot.init(hardwareMap,telemetry);
robot.lf_drive.setDirection(DcMotorSimple.Direction.REVERSE);
robot.lr_drive.setDirection(DcMotorSimple.Direction.REVERSE);
telemetry.addLine("done calibration");
telemetry.update();
waitForStart();
while(opModeIsActive()){
float leftsticky = -this.gamepad1.left_stick_y;
float leftstickx = this.gamepad1.left_stick_x;
float rightstickx = this.gamepad1.right_stick_x;
boolean intakeBtn = this.gamepad1.left_bumper;
boolean outakeBtn = this.gamepad1.right_bumper;
boolean armup = this.gamepad1.a;
boolean armdown = this.gamepad1.b;
robot.lf_drive.setPower(leftstickx+leftsticky+rightstickx);
robot.rf_drive.setPower(-leftstickx+leftsticky-rightstickx);
robot.lr_drive.setPower(-leftstickx+leftsticky+rightstickx);
robot.rr_drive.setPower(leftstickx+leftsticky-rightstickx);
if(intakeBtn) {
robot.right_intake.setPower(1);
robot.left_intake.setPower(-1);
}else if(outakeBtn){
robot.right_intake.setPower(-1);
robot.left_intake.setPower(1);
}else{
robot.right_intake.setPower(0);
robot.left_intake.setPower(0);
}
if(armup){
robot.arm.setPower(-1);
}else if(armdown){
robot.arm.setPower(1);
}else{
robot.arm.setPower(0);
}
}
}
} | [
"[email protected]"
]
| |
f715342aab6f1459b995d6a20cdc1208cb2fdd7d | e76c78aa9208564b09bff5535610b470323ff876 | /OptimisY3/ProgrammingModel/runtime/integratedtoolkit/src/integratedtoolkit/types/message/td/MonitoringDataRequest.java | 546d1ef2743ea80462b624bb75c8ae524a963c8c | [
"Apache-2.0"
]
| permissive | ldionmarcil/optimistoolkit | d9bb06e6e1e7262323cff553fc53b32d3b8bba8a | 5733efef99d523de19f6be4a819ddc6b9f755499 | refs/heads/master | 2021-01-21T21:22:20.528698 | 2013-06-07T21:52:35 | 2013-06-07T21:52:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,110 | java | /*
* Copyright 2002-2011 Barcelona Supercomputing Center (www.bsc.es)
*
* 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 integratedtoolkit.types.message.td;
/**
* The MonitoringDataRequest class represents a request to obtain the current
* resources and cores that can be run
*/
public class MonitoringDataRequest extends TDMessage {
/**
* Constructs a new TaskStateRequest
* @param sem semaphore where to synchronize until the current state is
* described
*/
public MonitoringDataRequest() {
super(TDMessageType.MONITOR_DATA);
}
}
| [
"[email protected]"
]
| |
ba4ba8e8180d377310c7391fdacadfba918d90be | d2ec11f7ac1bf5e731edca317c879bb3e60f620e | /src/test/java/com/lambdaworks/redis/commands/rx/HashRxCommandTest.java | cc97c4c67ec61cdc0cdb235ef1adbb04f00dabe0 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
]
| permissive | taer/lettuce | 772b52dc377ecda6ec5a2fb902302d3448bcb4c4 | 62eaf9e8695c0cf172f389f8d63fbea7c95ee021 | refs/heads/master | 2021-01-16T17:51:32.127411 | 2016-04-28T19:15:03 | 2016-04-28T19:15:03 | 31,087,916 | 1 | 1 | null | 2015-02-20T22:19:31 | 2015-02-20T22:19:30 | Java | UTF-8 | Java | false | false | 382 | java | package com.lambdaworks.redis.commands.rx;
import com.lambdaworks.redis.api.sync.RedisCommands;
import com.lambdaworks.redis.commands.HashCommandTest;
public class HashRxCommandTest extends HashCommandTest {
@Override
protected RedisCommands<String, String> connect() {
return RxSyncInvocationHandler.sync(client.connectAsync().getStatefulConnection());
}
}
| [
"[email protected]"
]
| |
732dc5bd684b711171487bdfa4443819d2be1491 | 6a26e7d54bd6918242de6d2bbf716748763ba6b4 | /src/christine/intermediate/symtabimpl/DefinitionImpl.java | fa815c802bc288f24221de142c0471ed89eb5690 | []
| no_license | theDavidUng/ChristineProgrammingLanguage | 20fc12501a4ce4c20f5407da68567e395c956b79 | 72af57df7c7f49f9f4b35b282c4ee69852b90a4c | refs/heads/master | 2021-04-28T01:33:32.266516 | 2018-02-21T02:47:07 | 2018-02-21T02:47:07 | 122,280,508 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,045 | java | package christine.intermediate.symtabimpl;
import christine.intermediate.Definition;
/**
* <h1>DefinitionImpl</h1>
*
* <p>How a Pascal symbol table entry is defined.</p>
*
* <p>Copyright (c) 2009 by Ronald Mak</p>
* <p>For instructional purposes only. No warranties.</p>
*/
public enum DefinitionImpl implements Definition
{
CONSTANT, ENUMERATION_CONSTANT("enumeration constant"),
TYPE, VARIABLE, FIELD("record field"),
VALUE_PARM("value parameter"), VAR_PARM("VAR parameter"),
PROGRAM_PARM("program parameter"),
PROGRAM, PROCEDURE, FUNCTION, ARRAY,
UNDEFINED;
private String text;
/**
* Constructor.
*/
DefinitionImpl()
{
this.text = this.toString().toLowerCase();
}
/**
* Constructor.
* @param text the text for the definition code.
*/
DefinitionImpl(String text)
{
this.text = text;
}
/**
* Getter.
* @return the text of the definition code.
*/
public String getText()
{
return text;
}
}
| [
"[email protected]"
]
| |
894052f078eded6e11f55e0c73ac61d70e2ed057 | 054a99b2270f871eea45cad5ca134b1403397af3 | /app/src/androidTest/java/com/example/ritwik/geneticalgorithm/ExampleInstrumentedTest.java | 25cad0fa48eee58e869ef6fe2a1a003b7e9b0567 | []
| no_license | ritwik0706/Shakespearean_Monkey | 06425eb8b0b58a7308cd1e5f0c6491ce54804d94 | 7b68414afb48d0d8cdd11b4f83e98d38cfb94864 | refs/heads/master | 2020-04-04T11:55:05.007101 | 2018-11-02T18:40:01 | 2018-11-02T18:40:01 | 155,907,997 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 754 | java | package com.example.ritwik.geneticalgorithm;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.example.ritwik.geneticalgorithm", appContext.getPackageName());
}
}
| [
"[email protected]"
]
| |
d90f7bad57860f2d724b315b3cc9a4441b057ef6 | d2c02cde123d0e43b8de93d8f228d71b9321c634 | /app4/src/main/java/com/stu/com/app4/CustomTitleBar/CustomTitleBarTest.java | 8693eba5199cfe0ca6fab8602d381253cc6c9a44 | []
| no_license | shitou9999/MyStu | c5b99efdfe8db36a1d0268da423db767c45331d6 | d109c0d516cd1b13f87d0e2f1ac8a86c4459a733 | refs/heads/master | 2021-01-11T07:38:17.656201 | 2017-02-06T03:53:03 | 2017-02-06T03:53:03 | 68,913,122 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 997 | java | package com.stu.com.app4.CustomTitleBar;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;
import com.stu.com.app4.R;
public class CustomTitleBarTest extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_custom_title_bar_test);
CustomTitleBar customTitleBar = (CustomTitleBar) findViewById(R.id.ct);
customTitleBar.setOnTitleClickListener(new CustomTitleBar.TitleOnClickListener() {
@Override
public void onLeftClick() {
Toast.makeText(CustomTitleBarTest.this, "点击了左边的返回按钮", Toast.LENGTH_SHORT).show();
}
@Override
public void onRightClick() {
Toast.makeText(CustomTitleBarTest.this, "点击了右边的保存按钮", Toast.LENGTH_SHORT).show();
}
});
}
}
| [
"[email protected]"
]
| |
f22037a73303d98308e675133db1d739064c0de9 | 5972a51a94e514dca75fd4a338e53d0e4fd311bf | /DNAReservoir/src/evo/ReservoirFitnessResult.java | 1f474b16060f18554d6ca239c8dd22a65b10f0e6 | []
| no_license | takoyaki9n/reservoir-computing | 549d9584873133b627c69bb08eb158164cd4c2ca | dd35c8ff7850263ba9954d5c0340078992baf3c6 | refs/heads/master | 2020-04-24T10:14:07.605465 | 2018-03-08T06:45:13 | 2018-03-08T06:45:13 | 171,886,720 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,264 | java | package evo;
import java.util.Map;
import erne.AbstractFitnessResult;
import freemarker.ext.rhino.RhinoScriptableModel;
public class ReservoirFitnessResult extends AbstractFitnessResult {
private static final long serialVersionUID = 1L;
private double fitness = 0.0;
public Map<String, double[]> timeSeries;
public double[] targetOutput;
public double[] actualOutput;
public ReservoirFitnessResult(double fitness) {
this.fitness = fitness;
}
public ReservoirFitnessResult(Map<String, double[]> timeSeries, double[] targetOutput, double[] actualOutput) {
this.timeSeries = timeSeries;
this.targetOutput = targetOutput;
this.actualOutput = actualOutput;
this.fitness = calculateFitness();
}
private double calculateFitness() {
int n = actualOutput.length;
double rss = 0.0;
double zmn = actualOutput[0], zmx = actualOutput[0];
for (int i = 0; i < n; i++) {
double res = actualOutput[i] - targetOutput[i];
rss += res * res;
zmn = Math.min(zmn, actualOutput[i]);
zmx = Math.max(zmx, actualOutput[i]);
}
// fitness = Math.abs(zmx - zmn) / Math.sqrt(rss / n);
fitness = Math.sqrt(n / rss);
return fitness;
}
@Override
public double getFitness() {
return fitness;
}
}
| [
"[email protected]"
]
| |
2b05c826a77daff6c1a39269ca9789891c09a6fc | 01e4b48182d11894ca5145c4b91200209d5a7259 | /src/com/passjava/model/util/Downloader.java | bf0bc2e2bcdb4d2ba2b59d5c6e9b25fd1a5bf959 | []
| no_license | jlaw90/passjava-v1 | 56c6997fb31f5504a4b9d14defea7277fd045f39 | 18c600ceb867d2638c9e8f59f51e2a36edae821b | refs/heads/master | 2021-01-10T09:50:22.506821 | 2015-12-01T23:49:47 | 2015-12-01T23:49:47 | 47,224,741 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,519 | java | package com.passjava.model.util;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
public final class Downloader implements Runnable {
public static final int ProgressEnabled = 1;
public static final int ProgressUpdate = 2;
public static final int Complete = 3;
public static final int Error = -1;
private ActionListener callback;
private String url;
private byte[] data;
private float progress;
private Thread t;
private Downloader(String url, ActionListener callback) {
this.url = url;
this.callback = callback;
t = new Thread(this);
t.setPriority(1);
t.setDaemon(true);
t.start();
}
public byte[] getData() {
return data;
}
public float getProgress() {
return progress;
}
public void run() {
try {
URLConnection uc = new URL(url).openConnection();
InputStream is = uc.getInputStream();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
byte[] data = new byte[5000];
int read;
int len = uc.getContentLength();
if (len != -1 && callback != null)
callback.actionPerformed(new ActionEvent(this, ProgressEnabled, null));
int total = 0;
while((read = is.read(data, 0, data.length)) != -1) {
baos.write(data, 0, read);
total += read;
progress = ((float) total / (float) len) * 100f;
if(len != -1 && callback != null)
callback.actionPerformed(new ActionEvent(this, ProgressUpdate, null));
}
is.close();
this.data = baos.toByteArray();
baos.reset();
baos.close();
if(callback != null)
callback.actionPerformed(new ActionEvent(this, Complete, null));
} catch (Exception e) {
progress = -1;
if(callback != null)
callback.actionPerformed(new ActionEvent(this, Error, e.getMessage()));
}
}
public void join() {
try {
t.join();
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
}
public static Downloader download(String url, ActionListener callback) {
return new Downloader(url, callback);
}
} | [
"[email protected]"
]
| |
d7baa8b735479eb852fcbcb4f877475e8f80f82f | 76e7c378670a1e2b30cbd9c5ab4bc09c45192acb | /src/main/java/pl/sda/final_project/service/WeatherService.java | f7e5f172608cea3a755343de14011ab8d57fbdf9 | []
| no_license | olszak-tomek/finkos | 4dddb0a0a342e86233594932a94c05fc7786425f | 0d33ae31bab3c69fc54205a91105f7cd469bc4a6 | refs/heads/master | 2022-12-19T08:46:04.545457 | 2020-09-12T11:56:33 | 2020-09-12T11:56:33 | 294,905,269 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 951 | java | package pl.sda.final_project.service;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
import pl.sda.final_project.weather.FullWhetherInfo;
//@Service
public class WeatherService {
//
// private final RestTemplate restTemplate;
// @Value("${weather.api-key}")
// private String openWeatherKey;
//
//
// public WeatherService(RestTemplate restTemplate) {
// this.restTemplate = restTemplate;
// }
//
// public double getCityTemperature(String city) {
//
// String basicWeatherTemplate = "https://api.openweathermap.org/data/2.5/weather?q=%s&units=metric&appid=%s";
// String fullURL = String.format(basicWeatherTemplate, city, openWeatherKey);
//
// FullWhetherInfo whether = restTemplate.getForObject(fullURL, FullWhetherInfo.class);
// return whether.getMain().getTemp();
//
// }
}
| [
"[email protected]"
]
| |
ab22742046818b86eb9d02905c6b54b1a8d19ba3 | d60e287543a95a20350c2caeabafbec517cabe75 | /LACCPlus/ActiveMQ/2131_1.java | 8308efaccdf20bfcf9c823653c35c27f3a46d618 | [
"MIT"
]
| permissive | sgholamian/log-aware-clone-detection | 242067df2db6fd056f8d917cfbc143615c558b2c | 9993cb081c420413c231d1807bfff342c39aa69a | refs/heads/main | 2023-07-20T09:32:19.757643 | 2021-08-27T15:02:50 | 2021-08-27T15:02:50 | 337,837,827 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 868 | java | //,temp,JmsConsumerClient.java,245,259,temp,JmsConsumerClient.java,229,243
//,3
public class xxx {
public MessageConsumer createJmsConsumer(Destination dest, String selector, boolean noLocal) throws JMSException {
if (client.isDurable()) {
String clientName = getClientName();
if (clientName == null) {
clientName = "JmsConsumer";
setClientName(clientName);
}
LOG.info("Creating durable subscriber (" + clientName + ") to: " + dest.toString());
jmsConsumer = getSession().createDurableSubscriber((Topic) dest, clientName, selector, noLocal);
} else {
LOG.info("Creating non-durable consumer to: " + dest.toString());
jmsConsumer = getSession().createConsumer(dest, selector, noLocal);
}
return jmsConsumer;
}
}; | [
"SHOSHIN\\[email protected]"
]
| SHOSHIN\[email protected] |
9677d753f00c6430b22e75843d99826b3fef616d | 83a0e43ce46b1c16d0ef865b12d36acfeb3e9c50 | /compiler/frontend/src/org/jetbrains/jet/lang/resolve/constants/ConstantUtils.java | ab3ea5ddb24860f0f34ac7ace8517e95d2fddbbd | []
| no_license | optionalg/kotlin | 2f165c8d845facb176b3218e2b29d76a4eb6eb32 | 08befe02eecc608ed4566d5d6950075389afcb62 | refs/heads/master | 2021-01-15T15:54:11.125278 | 2013-11-29T14:43:35 | 2013-11-29T14:43:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,906 | java | /*
* Copyright 2010-2013 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.jet.lang.resolve.constants;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.jet.lang.descriptors.DeclarationDescriptor;
import org.jetbrains.jet.lang.psi.JetExpression;
import org.jetbrains.jet.lang.psi.JetQualifiedExpression;
import org.jetbrains.jet.lang.psi.JetSimpleNameExpression;
import org.jetbrains.jet.lang.resolve.BindingContext;
import org.jetbrains.jet.lang.resolve.BindingContextUtils;
import org.jetbrains.jet.lang.resolve.BindingTrace;
import org.jetbrains.jet.lang.resolve.calls.context.ResolutionContext;
import org.jetbrains.jet.lang.resolve.name.Name;
import org.jetbrains.jet.lang.resolve.scopes.JetScope;
import org.jetbrains.jet.lang.types.JetType;
import org.jetbrains.jet.lang.types.JetTypeInfo;
import org.jetbrains.jet.lang.types.TypeUtils;
import org.jetbrains.jet.lang.types.expressions.OperatorConventions;
import org.jetbrains.jet.lang.types.lang.KotlinBuiltIns;
import static org.jetbrains.jet.lang.types.expressions.OperatorConventions.*;
public class ConstantUtils {
public static void propagateConstantValues(JetQualifiedExpression expression, BindingTrace trace, JetSimpleNameExpression selectorExpression) {
JetExpression receiverExpression = expression.getReceiverExpression();
CompileTimeConstant<?> receiverValue = trace.getBindingContext().get(BindingContext.COMPILE_TIME_VALUE, receiverExpression);
CompileTimeConstant<?> wholeExpressionValue = trace.getBindingContext().get(BindingContext.COMPILE_TIME_VALUE, expression);
DeclarationDescriptor declarationDescriptor = trace.getBindingContext().get(BindingContext.REFERENCE_TARGET, selectorExpression);
if (wholeExpressionValue == null && receiverValue != null && !(receiverValue instanceof ErrorValue) && receiverValue.getValue() instanceof Number
&& KotlinBuiltIns.getInstance().getNumber() == declarationDescriptor) {
Number value = (Number) receiverValue.getValue();
Name referencedName = selectorExpression.getReferencedNameAsName();
if (OperatorConventions.NUMBER_CONVERSIONS.contains(referencedName)) {
if (DOUBLE.equals(referencedName)) {
trace.record(BindingContext.COMPILE_TIME_VALUE, expression, new DoubleValue(value.doubleValue()));
}
else if (FLOAT.equals(referencedName)) {
trace.record(BindingContext.COMPILE_TIME_VALUE, expression, new FloatValue(value.floatValue()));
}
else if (LONG.equals(referencedName)) {
trace.record(BindingContext.COMPILE_TIME_VALUE, expression, new LongValue(value.longValue()));
}
else if (SHORT.equals(referencedName)) {
trace.record(BindingContext.COMPILE_TIME_VALUE, expression, new ShortValue(value.shortValue()));
}
else if (BYTE.equals(referencedName)) {
trace.record(BindingContext.COMPILE_TIME_VALUE, expression, new ByteValue(value.byteValue()));
}
else if (INT.equals(referencedName)) {
trace.record(BindingContext.COMPILE_TIME_VALUE, expression, new IntValue(value.intValue()));
}
}
}
}
}
| [
"[email protected]"
]
| |
29f0487b87162bb6eefdef2d5edef892c6c6a82d | 60dd55585c3b65378bd8b9bad9cf0f52b216f146 | /src/main/java/kr/nearbyme/nbm/SplashActivity.java | 67dc4c7992cc5cf0ebc0fc3874f98a21978b2b60 | []
| no_license | yeahXD/NearByMe | f362e1e391eca02d880b6bc944776602076a34ba | ae2cde97694b9f4891bf1364ff71c74a7f15960a | refs/heads/master | 2021-01-17T19:13:12.890515 | 2016-08-05T05:18:55 | 2016-08-05T05:18:55 | 64,990,563 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,695 | java | package kr.nearbyme.nbm;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;
import com.facebook.AccessToken;
import java.io.IOException;
import kr.nearbyme.nbm.data.LoginServerResult;
import kr.nearbyme.nbm.manager.NetworkManager;
import kr.nearbyme.nbm.manager.PropertyManager;
import okhttp3.Request;
public class SplashActivity extends AppCompatActivity {
Handler mHandler = new Handler(Looper.getMainLooper());
int user_sort = 1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
AccessToken user_token = AccessToken.getCurrentAccessToken();
if (user_token == null) {
mHandler.postDelayed(new Runnable() {
@Override
public void run() {
startActivity(new Intent(SplashActivity.this, SplashLoginActivity.class));
finish();
}
}, 2000);
} else {
NetworkManager.getInstance().facebookLogin(user_sort, user_token.getToken(), new NetworkManager.OnResultListener<LoginServerResult>() {
// @Override
// public void onSuccess(Request request, String result) {
// mHandler.postDelayed(new Runnable() {
// @Override
// public void run() {
// startActivity(new Intent(SplashActivity.this, MainActivity.class));
// }
// }, 2000);
// }
@Override
public void onSuccess(Request request, LoginServerResult result) {
mHandler.postDelayed(new Runnable() {
@Override
public void run() {
startActivity(new Intent(SplashActivity.this, MainActivity.class));
finish();
}
}, 2000);
PropertyManager.getInstance().setUser_id(result.result.getUser_id());
PropertyManager.getInstance().setUser_name(result.result.getUser_name());
PropertyManager.getInstance().setUser_profilePic(result.result.getUser_profilePic());
}
@Override
public void onFail(Request request, IOException exception) {
Toast.makeText(SplashActivity.this, "fail", Toast.LENGTH_SHORT).show();
}
});
}
}
}
| [
"[email protected]"
]
| |
b21227a57f497fb281a88fdc979adced985ab057 | f5767d5e4ae42bd0e94cb7ea166c7629bd2ac759 | /src/test/java/CSCI5308/GroupFormationTool/PasswordValidationTest/MinimumLowercaseValidatorTest.java | cc1aa89ea075c58e1a22bf4d1adcc3a74a35a053 | []
| no_license | akshaypatel13/Group-Formation-Tool | fe5532dfa7dd12a60bb675932083e830a370bf8f | b1ce6970a11413087825690e3e2bc383d4e20f6a | refs/heads/master | 2022-12-24T09:27:32.378710 | 2020-09-09T03:57:30 | 2020-09-09T03:57:30 | 293,332,671 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 765 | java | package CSCI5308.GroupFormationTool.PasswordValidationTest;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class MinimumLowercaseValidatorTest {
@Test
public void isValid() {
int minLowercase = 5;
String pass = "Passed";
int cntLower = countLowercase(pass);
assertThat(cntLower >= minLowercase).isTrue();
pass = "Fail";
cntLower = countLowercase(pass);
assertThat(cntLower >= minLowercase).isFalse();
}
public int countLowercase(String password) {
int cntLower = 0;
for (int i = 0; i < password.length(); i++) {
if (Character.isLowerCase(password.charAt(i))) {
cntLower++;
}
}
return cntLower;
}
}
| [
"[email protected]"
]
| |
705ee0e572769336e8dbee280030240445484554 | c6f345141d9cfe3b50758b9ab888522ec268ce5b | /Solution3/Part1.java | f7008fe1da04e58c52aa3d09aaa07e3ac8a069e3 | []
| no_license | rk052/APL-Assignment3 | 5a5dc1db8ed302a5f859d7b6ef5dd84d39c497e6 | 9754da79610e79b405e196e228b5edd8360c557f | refs/heads/master | 2023-07-17T23:53:58.683268 | 2021-08-26T14:59:45 | 2021-08-26T14:59:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 524 | java | interface LaptopBrand{
public void displayBrand();
}
interface LaptopRam{
public void displayRam();
}
class Laptop implements LaptopBrand, LaptopRam{
public void displayBrand(){
System.out.println("The brand of laptop is Dell");
}
public void displayRam(){
System.out.println("This laptop has 8 gb RAM");
}
}
public class Part1 {
public static void main(String[] args){
Laptop laptop = new Laptop();
laptop.displayBrand();
laptop.displayRam();
}
}
| [
"[email protected]"
]
| |
6e4448f0f532670ae9e08a4d8d8144a956836d3e | d4a66b2d91cf16929b7450bfa04829c4e14c0f5e | /src/code/main/java/Application.java | d475f276584657fb9e1701c5708e63e96143a174 | []
| no_license | djauregui76/VoltDB-Client-Nokia-Upserter | 829714adca126159d5bf180097eff692bb16b437 | d126e4567a9152189090c57a221e0ae7a2479528 | refs/heads/master | 2020-03-30T14:29:08.577052 | 2018-10-31T20:38:46 | 2018-10-31T20:38:46 | 151,319,957 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 13,204 | java | package main.java;
import java.util.Date;
import java.util.Random;
import org.voltdb.client.Client;
import org.voltdb.client.ClientFactory;
import org.voltdb.client.ClientResponse;
import org.voltdb.client.VoltBulkLoader.BulkLoaderFailureCallBack;
import org.voltdb.client.VoltBulkLoader.VoltBulkLoader;
import org.voltdb.VoltTable;
public class Application {
/*
USING TTL 1 MINUTES ON COLUMN CREATED;
USING TTL 25 MINUTES ON COLUMN CREATED;
CREATE TABLE T1 (
IMSI varchar(15) NOT NULL,
C1 varchar(15) ,
C2 varchar(20),
CREATED timestamp NOT NULL,
PRIMARY KEY (IMSI)
);PARTITION TABLE T1 ON COLUMN IMSI;
CREATE TABLE T2 (
IMSI varchar(15) NOT NULL,
AOA integer NOT NULL,
CREATED timestamp NOT NULL
);PARTITION TABLE T2 ON COLUMN IMSI;
CREATE INDEX t2Index ON T2(imsi);
CREATE TABLE T3 (
IMSI varchar(15) NOT NULL,
TA integer NOT NULL,
CREATED timestamp NOT NULL
);PARTITION TABLE T3 ON COLUMN IMSI;
CREATE INDEX t3Index ON T3(imsi);
CREATE TABLE T4 (
IMSI varchar(15) NOT NULL,
TB integer NOT NULL,
CREATED timestamp NOT NULL
);PARTITION TABLE T4 ON COLUMN IMSI;
CREATE INDEX t4Index ON T4(imsi);
CREATE TABLE T5 (
IMSI varchar(15) NOT NULL,
TC integer NOT NULL,
CREATED timestamp NOT NULL
); PARTITION TABLE T5 ON COLUMN IMSI;
CREATE INDEX t5Index ON T5(imsi);
CREATE TABLE T5 (
IMSI varchar(15) NOT NULL,
TC integer NOT NULL,
CREATED timestamp NOT NULL
); PARTITION TABLE T5 ON COLUMN IMSI;
CREATE INDEX t5Index ON T5(imsi);
CREATE TABLE T6 (
IMSI varchar(15) NOT NULL,
TD integer NOT NULL,
CREATED timestamp NOT NULL
);PARTITION TABLE T6 ON COLUMN IMSI;
CREATE INDEX t6Index ON T6(imsi);
CREATE TABLE T7 (
IMSI varchar(15) NOT NULL,
TE integer NOT NULL,
CREATED timestamp NOT NULL
);PARTITION TABLE T7 ON COLUMN IMSI;
CREATE INDEX t7Index ON T7(imsi);
--SUPER TABLE SOURCES
CREATE TABLE SUPER (
IMSI varchar(15) NOT NULL,
C1 varchar(15) ,
C2 varchar(20),
AOA integer DEFAULT NULL,
TA integer DEFAULT NULL,
TB integer DEFAULT NULL,
TC integer DEFAULT NULL,
TD integer DEFAULT NULL,
TE integer DEFAULT NULL,
ENBID integer DEFAULT NULL,
CREATED timestamp NOT NULL,
PRIMARY KEY (IMSI))
USING TTL 10 MINUTES ON COLUMN CREATED;
PARTITION TABLE SUPER ON COLUMN IMSI;
SELECT Table1.IMSI, Table1.c1,Table1.c2,Table2.aoa,Table2.Created FROM T1 Table1, T2 Table2 Where Table1.IMSI=Table2.IMSI;
*/
private static void CreateTimestamp(String thread) {
System.out.println("Thread:" + thread + " at:" + new Date());
}
public static void main(String[] args) throws Exception {
Random rand= new Random();
String[] c1=new String[11];
String[] c2=new String[11];
String[] columns=new String[4];
String[] columns1=new String[3];
String[] columns2=new String[4];
columns[0]="IMSI";
columns[1]="C1";
columns[2]="C2";
columns[3]="CREATED";
columns1[0]="IMSI";
columns1[1]="AOA";
columns1[2]="CREATED";
columns2[0]="IMSI";
columns2[1]="TA";
columns2[2]="ENBID";
columns2[3]="CREATED";
// Client client = ClientFactory.createClient();
// client.createConnection("54.90.179.48");
// client.createConnection("54.165.216.194");
// client.createConnection("18.208.228.192");
// client.createConnection("192.168.17.138");
//VoltBulkLoader bulkLoader = client.getNewBulkLoader("TEST_TABLE", 5000, new TestCallback());
// VoltBulkLoader bulkLoader1 = client.getNewBulkLoader("SUPER", 1000,true,columns,new TestCallback());
// VoltBulkLoader bulkLoader2 = client.getNewBulkLoader("SUPER", 1000,true,columns1, new TestCallback());
// VoltBulkLoader bulkLoader3 = client.getNewBulkLoader("SUPER", 1000,true,columns2, new TestCallback());
/* VoltBulkLoader bulkLoader4 = client.getNewBulkLoader("T4", 100,true, new TestCallback());
VoltBulkLoader bulkLoader5 = client.getNewBulkLoader("T5", 100,true, new TestCallback());
VoltBulkLoader bulkLoader6 = client.getNewBulkLoader("T6", 100,true, new TestCallback());
VoltBulkLoader bulkLoader7 = client.getNewBulkLoader("T7", 100,true, new TestCallback());
*/
VoltTable T1;
VoltTable T2;
VoltTable T3;
VoltTable T4;
VoltTable T5;
VoltTable T6;
VoltTable T7;
Thread t1 = new Thread(new Runnable() {
public void run() {
try {
Client client = ClientFactory.createClient();
client.createConnection("34.229.237.142");
client.createConnection("34.203.221.20");
client.createConnection("52.207.226.178");
// client.createConnection("192.168.17.138");
//VoltBulkLoader bulkLoader = client.getNewBulkLoader("TEST_TABLE", 5000, new TestCallback());
VoltBulkLoader bulkLoader1 = client.getNewBulkLoader("SUPER", 70,true,columns,new TestCallback());
Random rand= new Random();
String[] c1=new String[11];
String[] c2=new String[11];
String column1="";
String column2="";
String column3="";
c1[0]="Doug";
c1[1]="Min";
c1[2]="Simon";
c1[3]="Seeta";
c1[4]="Dheeraj";
c1[5]="Sarah";
c1[6]="Alan";
c1[7]="David";
c1[8]="Bob";
c1[9]="Dude";
c1[10]="Doug1";
c2[0]="Dougs";
c2[1]="Mins";
c2[2]="Simons";
c2[3]="Seetas";
c2[4]="Dheerajs";
c2[5]="Sarahs";
c2[6]="Alans";
c2[7]="Davids";
c2[8]="Bobs";
c2[9]="Dudes";
c2[10]="Dougs2";
CreateTimestamp("thread 1 Started");
for(int i=0; i<1000001; i++) {
column1 = String.valueOf(i);
column2 = c1[rand.nextInt(10)];
column3 = c2[rand.nextInt(10)];
//bulkLoader1
bulkLoader1.insertRow(i, column1, column2, column3, new Date().getTime());
// client.callProcedure("@AdHoc", "UPSERT INTO SUPER (imsi,c1,c2,created) values ('" + column1 + "','" + column2 + "','" + column3 + "',now());");
}
CreateTimestamp("thread 1 Stopped");
}
catch(Exception e) {
}
}
});
Thread t2 = new Thread(new Runnable() {
public void run() {
try {
Client client = ClientFactory.createClient();
client.createConnection("34.229.237.142");
client.createConnection("34.203.221.20");
client.createConnection("52.207.226.178");
// client.createConnection("192.168.17.138");
//VoltBulkLoader bulkLoader = client.getNewBulkLoader("TEST_TABLE", 5000, new TestCallback());
VoltBulkLoader bulkLoader2 = client.getNewBulkLoader("SUPER", 70,true,columns1,new TestCallback());
Random rand= new Random();
String column1="";
int aoa;
CreateTimestamp("Thread 2 Started");
for(int i=500000; i<1000001; i++) {
column1=String.valueOf(i);
aoa=rand.nextInt(10);
bulkLoader2.insertRow(i,column1,aoa, new Date().getTime());
// client.callProcedure("@AdHoc", "UPSERT INTO SUPER (imsi,aoa,created) values ('"+column1+"'," +aoa + ",now());");
}
for(int i=500000; i>0; i--) {
column1=String.valueOf(i);
aoa=rand.nextInt(10);
bulkLoader2.insertRow(i,column1,aoa, new Date().getTime());
// client.callProcedure("@AdHoc", "UPSERT INTO SUPER (imsi,aoa,created) values ('"+column1+"'," +aoa + ",now());");
}
CreateTimestamp("Thread 2 Stopped");
}
catch(Exception e) {
e.printStackTrace();
}
}
});
Thread t3 = new Thread(new Runnable() {
public void run() {
try {
Client client = ClientFactory.createClient();
client.createConnection("34.229.237.142");
client.createConnection("34.203.221.20");
client.createConnection("52.207.226.178");
// client.createConnection("192.168.17.138");
//VoltBulkLoader bulkLoader = client.getNewBulkLoader("TEST_TABLE", 5000, new TestCallback());
VoltBulkLoader bulkLoader3 = client.getNewBulkLoader("SUPER", 70,true,columns2,new TestCallback());
Random rand= new Random();
String column1="";
int ta;
int enbid;
CreateTimestamp("Thread 3 Started");
for(int i=1000001; i>0; i--) {
column1=String.valueOf(i);
ta=rand.nextInt(10);
enbid=rand.nextInt(100);
bulkLoader3.insertRow(i,column1,ta,enbid, new Date().getTime());
// client.callProcedure("@AdHoc", "UPSERT INTO SUPER (imsi,ta,created) values ('"+column1+"'," +ta + ",now());");
}
CreateTimestamp("Thread 3 Stopped");
}
catch(Exception e) {
}
}
});
t1.start();
t2.start();
t3.start();
//Just plain bulk insert values.
//for(int i=0; i<Integer.MAX_VALUE; i++) {
// bulkLoader.insertRow(i, i, i, new Date());
// }
// For T1
/* for(int i=0; i<1000001; i++) {
column1 = String.valueOf(i);
column2 = c1[rand.nextInt(10)];
column3 = c2[rand.nextInt(10)];
//bulkLoader1
bulkLoader1.insertRow(i, column1, column2, column3, new Date().getTime());
// client.callProcedure("@AdHoc", "UPSERT INTO SUPER (imsi,c1,c2,created) values ('" + column1 + "','" + column2 + "','" + column3 + "',now());");
}
// For T2
for(int i=0; i<1000001; i++) {
column1=String.valueOf(i);
aoa=rand.nextInt(10);
bulkLoader2.insertRow(i,column1,aoa, new Date().getTime());
// client.callProcedure("@AdHoc", "UPSERT INTO SUPER (imsi,aoa,created) values ('"+column1+"'," +aoa + ",now());");
}
// For T3
int ta;
int enbid;
columns2[0]="IMSI";
columns2[1]="TA";
columns2[1]="ENBID";
columns2[2]="CREATED";
for(int i=0; i<1000001; i++) {
column1=String.valueOf(i);
ta=rand.nextInt(10);
enbid=rand.nextInt(100);
bulkLoader3.insertRow(i,column1,ta,enbid, new Date().getTime());
// client.callProcedure("@AdHoc", "UPSERT INTO SUPER (imsi,ta,created) values ('"+column1+"'," +ta + ",now());");
}
/* // For T4
for(int i=0; i<1000001; i++) {
column1=String.valueOf(i);
ta=rand.nextInt(10);
bulkLoader4.insertRow(i,column1,ta, new Date());
client.callProcedure("@AdHoc", "UPSERT INTO SUPER (imsi,ta,created) values ('"+column1+"'," +ta + ",now());");
}
// For T5
for(int i=0; i<1000001; i++) {
column1=String.valueOf(i);
ta=rand.nextInt(10);
bulkLoader5.insertRow(i,column1,ta, new Date());
client.callProcedure("@AdHoc", "UPSERT INTO SUPER (imsi,tb,created) values ('"+column1+"'," +ta + ",now());");
}
// For T6
for(int i=0; i<1000001; i++) {
column1=String.valueOf(i);
ta=rand.nextInt(10);
bulkLoader6.insertRow(i,column1,ta, new Date());
client.callProcedure("@AdHoc", "UPSERT INTO SUPER (imsi,tc,created) values ("+column1+"," +ta + ",now());");
}
// For T7
for(int i=0; i<1000001; i++) {
column1=String.valueOf(i);
ta=rand.nextInt(10);
bulkLoader7.insertRow(i,column1,ta, new Date());
client.callProcedure("@AdHoc", "UPSERT INTO SUPER (imsi,tb,created) values ("+column1+"," +ta + ",now());");
}
*/ }
private static class TestCallback implements BulkLoaderFailureCallBack {
@Override
public void failureCallback(Object arg0, Object[] arg1, ClientResponse arg2) {
System.out.println("Bulkloader failure " + arg0 + " " + arg1 + " " + arg2.getStatusString());
}
}
}
| [
"[email protected]"
]
| |
fc8de4b0fac907b768670e5b83327809d62dd3e6 | 1e95237da480f7653e384c7a401674a0949d1c81 | /xutil/src/main/java/me/xujichang/util/tool/LocationTool.java | a2f514098a54a937f1dcd9b2b838554039dcf03f | []
| no_license | JichinX/Utils | 6f696c937d94e3dda3b51c8a1e5444801f20708c | 0ff22af2255e804fba4f1b1f5698be662f6305e0 | refs/heads/master | 2022-10-20T19:01:11.988306 | 2019-03-27T08:07:36 | 2019-03-27T08:07:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,700 | java | package me.xujichang.util.tool;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.location.GpsStatus;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import java.lang.ref.WeakReference;
/**
* 定位
* 包括 WIFI定位 基站定位 GPS 定位
* @author xjc
* Created by xjc on 2017/6/10.
*/
public class LocationTool {
private WeakReference<Context> contextWeakReference;
private static LocationTool instance;
private LocationManager locationManager;
private LocalizationListener localizationListener;
private SelfGpsListener gpsListener;
private SelfLocationListener locationListener;
public static LocationTool getInstance() {
if (null == instance) {
instance = new LocationTool();
}
return instance;
}
/**
* 开启定位
*
* @param context
*/
public void startGetLocation(Context context, @NonNull LocalizationListener localizationListener) {
contextWeakReference = new WeakReference<>(context);
locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
this.localizationListener = localizationListener;
startWithGps();
}
/**
* 开启GPS定位
*/
private void startWithGps() {
boolean isOpened = checkGpsStatus();
if (!isOpened) {
localizationListener.onGpsDisable();
} else {
getGPSLocation();
}
}
private boolean checkGpsStatus() {
return locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
}
private void getGPSLocation() {
if (ActivityCompat.checkSelfPermission(contextWeakReference.get(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED
&& ActivityCompat.checkSelfPermission(contextWeakReference.get(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
localizationListener.onGpsPermissionDenied(new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION});
return;
}
// 获取位置管理服务
String serviceName = Context.LOCATION_SERVICE;
String gpsProvider = LocationManager.GPS_PROVIDER;
locationManager = (LocationManager) contextWeakReference.get().getSystemService(serviceName);
// 通过GPS获取位置
Location location = locationManager.getLastKnownLocation(gpsProvider);
updateToNewLocation(location);
gpsListener = new SelfGpsListener();
locationManager.addGpsStatusListener(gpsListener);
locationListener = new SelfLocationListener();
// 设置监听*器,自动更新的最小时间为间隔N秒(1秒为1*1000,这样写主要为了方便)或最小位移变化超过N米
locationManager.requestLocationUpdates(gpsProvider, 2 * 1000, 10,
locationListener);
}
private void updateToNewLocation(Location location) {
LogTool.d("Last Known Location:" + (null == location ? "location is null" : location.toString()));
localizationListener.onGpsLocation(location);
}
public boolean compare(Object tempTarget, Object target) {
return false;
}
public static double[] convertBaidu2Gps(double[] target) {
double[] mars = BaiduTransform.TransBaidu2Mars(target[0], target[1]);
return Transform.Mars2WGS(mars[1], mars[0]);
}
private class SelfLocationListener implements LocationListener {
@Override
public void onLocationChanged(Location location) {
LogTool.d("LocationListener:" + location.toString());
if (LocationManager.GPS_PROVIDER.equals(location.getProvider())) {
localizationListener.onGpsLocation(location);
locationManager.removeGpsStatusListener(gpsListener);
}
}
@Override
public void onStatusChanged(String provider, int status, Bundle extras) {
LogTool.d("LocationListener:Status Changed:");
localizationListener.onLocationStatusChanged(status, extras);
}
@Override
public void onProviderEnabled(String provider) {
LogTool.d("LocationListener: enable");
localizationListener.onGpsEnable();
}
@Override
public void onProviderDisabled(String provider) {
LogTool.d("LocationListener: disable");
localizationListener.onGpsDisable();
}
}
public interface LocalizationListener {
/**
* GPS未开启
*/
void onGpsDisable();
/**
* GPS权限 被拒绝
*
* @param permissions 权限
*/
void onGpsPermissionDenied(String[] permissions);
/**
* Gps 定位成功
*
* @param location
*/
void onGpsLocation(Location location);
/**
* GPS 状态 改变
*/
void onGpsStatusChanged();
/**
* Gps 可用
*/
void onGpsEnable();
/**
* Gps停止定位
*/
void onGpsStop();
/**
* 第一次矫正
*/
void onGpsFirstFix();
/**
* Gps开始定位
*/
void onGpsStart();
/**
* 未知改变
*
* @param status 状态
* @param extras 数据
*/
void onLocationStatusChanged(int status, Bundle extras);
}
public void onDestroy() {
if (null != locationManager) {
if (null != gpsListener) {
locationManager.removeGpsStatusListener(gpsListener);
}
if (null != locationListener) {
locationManager.removeUpdates(locationListener);
}
}
}
public static class SimpleLocalizationListener implements LocalizationListener {
@Override
public void onGpsDisable() {
}
@Override
public void onGpsPermissionDenied(String[] permissions) {
}
@Override
public void onGpsLocation(Location location) {
}
@Override
public void onGpsStatusChanged() {
}
@Override
public void onGpsEnable() {
}
@Override
public void onGpsStop() {
}
@Override
public void onGpsFirstFix() {
}
@Override
public void onGpsStart() {
}
@Override
public void onLocationStatusChanged(int status, Bundle extras) {
}
}
private class SelfGpsListener implements GpsStatus.Listener {
@Override
public void onGpsStatusChanged(int event) {
switch (event) {
case GpsStatus.GPS_EVENT_FIRST_FIX:
localizationListener.onGpsFirstFix();
break;
case GpsStatus.GPS_EVENT_SATELLITE_STATUS:
localizationListener.onGpsStatusChanged();
break;
case GpsStatus.GPS_EVENT_STARTED:
localizationListener.onGpsStart();
break;
case GpsStatus.GPS_EVENT_STOPPED:
localizationListener.onGpsStop();
break;
default:
}
}
}
} | [
"[email protected]"
]
| |
68bb79b7f483e342c48a97dab0372cb77cd89b4e | b998b375e53c0d8141db7f8e07cb01b494ed3d0a | /SPayExperiment/app/src/main/java/com/samsung/android/spayfw/storage/ServerCertsStorage.java | 66deeaa675bdbc0c72c6d4fda60466ee4f5e0868 | []
| no_license | atthisaccount/SPay-inner-workings | c3b6256c8ed10c2492d19eca8e63f656cd855be2 | 6dd83a6ea0916c272423ea0dc1fa3757baa632e7 | refs/heads/master | 2022-03-22T04:12:05.100198 | 2019-10-06T13:25:49 | 2019-10-06T13:25:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,843 | java | /*
* Decompiled with CFR 0.0.
*
* Could not load the following classes:
* android.content.ContentValues
* android.content.Context
* android.database.Cursor
* android.database.sqlite.SQLiteException
* java.lang.Class
* java.lang.Enum
* java.lang.Object
* java.lang.String
* java.lang.Throwable
* java.util.ArrayList
* java.util.List
*/
package com.samsung.android.spayfw.storage;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteException;
import com.samsung.android.spayfw.b.Log;
import com.samsung.android.spayfw.remoteservice.models.CertificateInfo;
import java.util.ArrayList;
import java.util.List;
public class ServerCertsStorage
extends DbAdapter {
private static ServerCertsStorage Ce;
private ServerCertsStorage(Context context) {
super(context);
this.execSQL("CREATE TABLE IF NOT EXISTS server_certs_group(_id INTEGER, card_type TEXT NOT NULL, content TEXT NOT NULL, usage TEXT NOT NULL, alias TEXT NOT NULL, PRIMARY KEY (card_type, usage, alias) )");
Log.i("ServerCertsStorage", "Create ServerCerts Table If Not Exists");
}
public static final ServerCertsStorage ad(Context context) {
Class<ServerCertsStorage> class_ = ServerCertsStorage.class;
synchronized (ServerCertsStorage.class) {
if (Ce == null) {
Ce = new ServerCertsStorage(context);
}
ServerCertsStorage serverCertsStorage = Ce;
// ** MonitorExit[var3_1] (shouldn't be in output)
return serverCertsStorage;
}
}
private static CertificateInfo h(Cursor cursor) {
CertificateInfo certificateInfo = new CertificateInfo();
certificateInfo.setContent(cursor.getString(ServerCertsDb.ServerCertsColumn.Ch.getColumnIndex()));
certificateInfo.setUsage(cursor.getString(ServerCertsDb.ServerCertsColumn.Ci.getColumnIndex()));
certificateInfo.setAlias(cursor.getString(ServerCertsDb.ServerCertsColumn.Cj.getColumnIndex()));
return certificateInfo;
}
public int a(String string, CertificateInfo certificateInfo) {
if (string == null || certificateInfo == null || certificateInfo.getContent() == null || certificateInfo.getUsage() == null) {
Log.e("ServerCertsStorage", "addServerCertsRecord: cardType/cert/cert.content/cert.usage is null");
return -1;
}
ContentValues contentValues = new ContentValues();
contentValues.put(ServerCertsDb.ServerCertsColumn.Cg.getColumn(), string);
contentValues.put(ServerCertsDb.ServerCertsColumn.Ch.getColumn(), certificateInfo.getContent());
contentValues.put(ServerCertsDb.ServerCertsColumn.Ci.getColumn(), certificateInfo.getUsage());
contentValues.put(ServerCertsDb.ServerCertsColumn.Cj.getColumn(), certificateInfo.getAlias());
try {
int n2 = this.a("server_certs_group", contentValues);
Log.d("ServerCertsStorage", "RowId : " + n2);
return n2;
}
catch (SQLiteException sQLiteException) {
Log.e("ServerCertsStorage", "addTokenRecord: cannot add server certs record");
Log.c("ServerCertsStorage", sQLiteException.getMessage(), sQLiteException);
return -1;
}
}
/*
* Unable to fully structure code
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
* Lifted jumps to return sites
*/
public List<CertificateInfo> a(ServerCertsDb.ServerCertsColumn var1_1, String var2_2) {
block6 : {
if (var1_1 == null) {
Log.e("ServerCertsStorage", "getCertificates: column is null");
return null;
}
var5_4 = var6_3 = this.f("server_certs_group", var1_1.getColumn(), var2_2);
var7_5 = null;
if (var5_4 == null) break block6;
try {
var8_6 = var5_4.getCount();
var7_5 = null;
if (var8_6 <= 0) break block6;
var7_5 = new ArrayList(var5_4.getCount());
while (var5_4.moveToNext()) {
var7_5.add((Object)ServerCertsStorage.h(var5_4));
}
break block6;
}
catch (Throwable var4_7) {}
** GOTO lbl-1000
}
ServerCertsStorage.a(var5_4);
return var7_5;
catch (Throwable var3_9) {
var4_8 = var3_9;
var5_4 = null;
}
lbl-1000: // 2 sources:
{
ServerCertsStorage.a(var5_4);
throw var4_8;
}
}
public static class ServerCertsDb {
public static final class ServerCertsColumn
extends Enum<ServerCertsColumn> {
public static final /* enum */ ServerCertsColumn Cf = new ServerCertsColumn("ID", 0, "_id", DbAdapter.ColumnType.BV);
public static final /* enum */ ServerCertsColumn Cg = new ServerCertsColumn("CARD_TYPE", 1, "card_type", DbAdapter.ColumnType.BY);
public static final /* enum */ ServerCertsColumn Ch = new ServerCertsColumn("CONTENT", 2, "content", DbAdapter.ColumnType.BY);
public static final /* enum */ ServerCertsColumn Ci = new ServerCertsColumn("USAGE", 3, "usage", DbAdapter.ColumnType.BY);
public static final /* enum */ ServerCertsColumn Cj = new ServerCertsColumn("ALIAS", 4, "alias", DbAdapter.ColumnType.BY);
private static final /* synthetic */ ServerCertsColumn[] Ck;
private final int columnIndex;
private final String columnName;
private final DbAdapter.ColumnType columnType;
private final String columnValue;
static {
ServerCertsColumn[] arrserverCertsColumn = new ServerCertsColumn[]{Cf, Cg, Ch, Ci, Cj};
Ck = arrserverCertsColumn;
}
private ServerCertsColumn(String string2, int n3, String string3, DbAdapter.ColumnType columnType) {
this.columnName = string2;
this.columnIndex = n3;
this.columnValue = string3;
this.columnType = columnType;
}
public static ServerCertsColumn valueOf(String string) {
return (ServerCertsColumn)Enum.valueOf(ServerCertsColumn.class, (String)string);
}
public static ServerCertsColumn[] values() {
return (ServerCertsColumn[])Ck.clone();
}
public String getColumn() {
return this.columnValue;
}
public int getColumnIndex() {
return this.columnIndex;
}
}
}
}
| [
"[email protected]"
]
| |
1c0beee840150d84755d331f5a9a4a040058d428 | d10c8a567eee7168677223216ead794b2edf80b1 | /app/src/main/java/com/himanshu/guessthecelebrity/MainActivity.java | 784b726be9a68b2d00a6df3c7dd2ddae153b90b5 | []
| no_license | ansh4223/GuessTheCelebrity-game | 8e191feb70aef2e148c3b73f1ddc2f87704fa6ba | 3a46dc0e809ddd0ae125c69e109811522157189b | refs/heads/main | 2023-01-27T19:01:27.065732 | 2020-12-06T09:47:54 | 2020-12-06T09:47:54 | 318,998,582 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,816 | java | package com.himanshu.guessthecelebrity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Toast;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Random;
import java.util.concurrent.ExecutionException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class MainActivity extends AppCompatActivity {
ArrayList<String> celebURLs = new ArrayList<String>();
ArrayList<String> celebNames = new ArrayList<String>();
int chosenCeleb = 0;
int locationOfCurrentAnswer = 0;
String[] answers = new String[4];
ImageView imageView;
Button button0;
Button button1;
Button button2;
Button button3;
public void celebChosen(View view){
if(view.getTag().toString().equals(Integer.toString(locationOfCurrentAnswer))){
Toast.makeText(getApplicationContext(),"Correct!", Toast.LENGTH_LONG).show();
}else{
Toast.makeText(getApplicationContext(),"Wrong it was " + celebNames.get(chosenCeleb), Toast.LENGTH_LONG).show();
}
createNewQuestion();
}
public class ImageDownloader extends AsyncTask<String , Void,Bitmap>{
@Override
protected Bitmap doInBackground(String... urls) {
try {
URL url = new URL(urls[0]);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.connect();
InputStream inputStream = connection.getInputStream();
Bitmap myBitmap = BitmapFactory.decodeStream(inputStream);
return myBitmap;
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
}
public class DownloadTask extends AsyncTask<String, Void, String>{
@Override
protected String doInBackground(String... urls) {
String result = "";
URL url;
HttpURLConnection urlConnection = null;
try{
url = new URL(urls[0]);
urlConnection = (HttpURLConnection)url.openConnection();
InputStream in = urlConnection.getInputStream();
InputStreamReader reader = new InputStreamReader(in);
int data = reader.read();
while(data != -1){
char current = (char) data;
result += current;
data = reader.read();
}
return result;
}
catch(Exception e){
e.printStackTrace();
}
return null;
}
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
imageView = (ImageView)findViewById(R.id.imageView);
button0 = (Button)findViewById(R.id.button0);
button1 = (Button)findViewById(R.id.button1);
button2 = (Button)findViewById(R.id.button2);
button3 = (Button)findViewById(R.id.button3);
DownloadTask task = new DownloadTask();
String result = null;
try {
result = task.execute("https://www.imdb.com/list/ls052283250/").get();
String[] splitResult = result.split("<div class=\"row text-center lister-working hidden\"></div>");
Pattern p = Pattern.compile("src=\"(.*?)\"");
Matcher m = p.matcher(splitResult[0]);
while(m.find()){
celebURLs.add(m.group(1));
}
celebURLs.remove(0);
celebURLs.remove(0);
celebURLs.remove(0);
celebURLs.remove(0);
p = Pattern.compile("alt=\"(.*?)\"");
m = p.matcher(splitResult[0]);
while(m.find()){
celebNames.add(m.group(1));
}
} catch (InterruptedException e) {
e.printStackTrace();
} catch (ExecutionException e) {
e.printStackTrace();
}
createNewQuestion();
}
public void createNewQuestion(){
Random random = new Random();
chosenCeleb = random.nextInt(celebURLs.size());
ImageDownloader imageTask = new ImageDownloader();
Bitmap celebImage;
try {
celebImage = imageTask.execute(celebURLs.get(chosenCeleb)).get();
imageView.setImageBitmap(celebImage);
locationOfCurrentAnswer = random.nextInt(4);
int incorrectAnswerLocation;
for(int i = 0; i<4; i++){
if(i == locationOfCurrentAnswer){
answers[i] = celebNames.get(chosenCeleb);
}else{
incorrectAnswerLocation = random.nextInt(celebURLs.size());
while(incorrectAnswerLocation == chosenCeleb){
incorrectAnswerLocation = random.nextInt(celebURLs.size());
}
answers[i] = celebNames.get(incorrectAnswerLocation);
}
}
button0.setText(answers[0]);
button1.setText(answers[1]);
button2.setText(answers[2]);
button3.setText(answers[3]);
} catch (Exception e) {
e.printStackTrace();
}
}
}
| [
"[email protected]"
]
| |
dc3c6f67c2434c01cd98a02238559960ba753a09 | dbc68bee3c9400712414e07c639efde4f38f47e9 | /src/main/java/com/wxy/controller/BookController.java | 101880fec494f66c1ae5946f923115d62215ab8f | []
| no_license | benmo0116/weread | 69d9b7f48ecbb5f87f07e22f7b0184c9ca639a5d | b91a88db731be126661d41abeb440e1ad55d6a71 | refs/heads/master | 2021-01-25T11:20:18.234830 | 2018-03-05T11:01:30 | 2018-03-05T11:01:30 | 123,375,759 | 0 | 1 | null | 2018-03-01T04:39:43 | 2018-03-01T03:16:45 | null | UTF-8 | Java | false | false | 1,627 | java | package com.wxy.controller;
import com.wxy.model.Book;
import com.wxy.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.validation.ObjectError;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import javax.validation.Valid;
import java.util.HashMap;
/**
* @author wxy
* @create 2018-01-18 10:02
* @desc ${DESCRIPTION}
**/
@Controller
@RequestMapping(value = "/book")
public class BookController {
@Autowired
BookService bookService;
@RequestMapping("/add")
public String addBook(HashMap<String,Object> map){
map.put("booklist",bookService.findAll(1,200));
return "/addbook";
}
@ModelAttribute
Book setBook () {
return new Book ();
}
@RequestMapping(value = "/save",method = RequestMethod.POST)
public String saveBook(@Valid @ModelAttribute(value="book") Book book, BindingResult result, HashMap<String, Object> map){
if(result.hasErrors()){
// for (ObjectError objectError:result.getAllErrors()) {
// System.out.println("ERROR:"+objectError.toString());
// }
map.put("MSG", "出错啦!");
}else{
map.put("MSG", "提交成功!");
bookService.insertOne(book);
}
map.put("booklist",bookService.findAll(1,200));
return "/addbook";
}
}
| [
"[email protected]"
]
| |
13c1e201367bb94086dc0b5ce8f28637fedb1762 | cc3c8c70ade9e8cdda1a6a111126ed8ec4c00777 | /Java fundamentos/03Interface gráfica/src/exemplo02/Pessoa.java | 8008b231434622f4300ef11234a7f80228877620 | []
| no_license | Glauton12/LoneWolf | 326cb89afcf8ce464e35003a14f8779d8e4c0675 | 431857f22f2663955259ac93ddef0be1f48aeae6 | refs/heads/master | 2021-01-15T03:51:28.849688 | 2020-09-11T00:56:21 | 2020-09-11T00:56:21 | 242,868,287 | 0 | 0 | null | null | null | null | ISO-8859-1 | Java | false | false | 735 | java | package exemplo02;
public class Pessoa {
private String nome;
private double peso, altura;
// get and set
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public double getPeso() {
return peso;
}
public void setPeso(double peso) {
this.peso = peso;
}
public double getAltura() {
return altura;
}
public void setAltura(double altura) {
this.altura = altura;
}
//calculo
private double calculo() {
return (peso+altura)/2;
}
//situação
private String situacao() {
return calculo() >=70? "Acima do peso" : "Abaixo do peso";
}
//resposta
public String resposta() {
return "A pessoa "+nome+" está"+calculo()+", e está "+situacao();
}
}
| [
"[email protected] config --global user.email [email protected] config --global user.email [email protected]"
]
| [email protected] config --global user.email [email protected] config --global user.email [email protected] |
a9d7fb096525f09f65313a2e64471b782fbdb385 | c960e0d4e748b3dfb0dc633484c932432cbf9b5f | /src/main/java/ayesa/formacion/apiRest/DTO/ClienteDTO.java | 958357504be177b66eda96d7d5ce61313d9f4516 | []
| no_license | rafamo91/demoApiRest | 46a9415ddd63574d0822cc20adc58a90c93bbeab | 8c550d9d580a0c2910263fc4a2a3a7f9548f2023 | refs/heads/main | 2023-08-20T16:26:30.936606 | 2021-10-14T08:34:22 | 2021-10-14T08:34:22 | 417,049,358 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 706 | java |
package ayesa.formacion.apiRest.DTO;
import java.util.Optional;
import ayesa.formacion.apiRest.entities.Cliente;
import lombok.Data;
@Data
public class ClienteDTO {
private Boolean error;
private String message;
private Cliente cliente;
public ClienteDTO(Cliente cliente) {
if (cliente == null) {
error();
}
else {
success(cliente);
}
}
public ClienteDTO(Optional<Cliente> cliente) {
if (!cliente.isPresent()) {
error();
}
else {
success(cliente.get());
}
}
private void error() {
this.error = true;
this.message = "No existen datos";
}
private void success(Cliente cliente) {
this.error = false;
this.message = "";
this.cliente = cliente;
}
}
| [
"[email protected]"
]
| |
f2051cb1bf33be7f04ac86599ec76fd6dcc94b70 | 7e5a160d4042e37d54bde2b939eeb12ceb323a7c | /src/main/java/org/datanucleus/store/rdbms/table/MapTable.java | 783857cf5c6014d17866f9a56e6212b84652ebcc | [
"Apache-2.0"
]
| permissive | djerraballi/datanucleus-rdbms | 796a219a99307d53f94096be802ea470894dff96 | 8bcd6b47eb83b1f98e5ae75572cdafab9286670d | refs/heads/master | 2020-12-25T01:32:54.337783 | 2015-02-04T15:59:03 | 2015-02-04T15:59:03 | 30,440,945 | 0 | 0 | null | 2015-02-07T01:31:16 | 2015-02-07T01:31:16 | null | UTF-8 | Java | false | false | 38,596 | java | /**********************************************************************
Copyright (c) 2002 Kelly Grizzle and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by 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.
Contributors:
2002 Mike Martin - unknown changes
2003 Andy Jefferson - added localiser
2003 Andy Jefferson - replaced TableMetadata with identifier
2004 Marco Schulze - added advance-check via TypeManager.isSupportedType(...)
2005 Andy Jefferson - only create ADPT column when necessary
2005 Andy Jefferson - enabled ability to have embedded keys/values
...
**********************************************************************/
package org.datanucleus.store.rdbms.table;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.datanucleus.ClassLoaderResolver;
import org.datanucleus.exceptions.NucleusUserException;
import org.datanucleus.metadata.AbstractMemberMetaData;
import org.datanucleus.metadata.ColumnMetaData;
import org.datanucleus.metadata.FieldRole;
import org.datanucleus.metadata.ForeignKeyMetaData;
import org.datanucleus.metadata.IdentityType;
import org.datanucleus.metadata.IndexMetaData;
import org.datanucleus.metadata.KeyMetaData;
import org.datanucleus.metadata.MapMetaData;
import org.datanucleus.metadata.PrimaryKeyMetaData;
import org.datanucleus.metadata.UniqueMetaData;
import org.datanucleus.metadata.ValueMetaData;
import org.datanucleus.store.rdbms.exceptions.NoTableManagedException;
import org.datanucleus.store.rdbms.RDBMSPropertyNames;
import org.datanucleus.store.rdbms.RDBMSStoreManager;
import org.datanucleus.store.rdbms.identifier.DatastoreIdentifier;
import org.datanucleus.store.rdbms.key.CandidateKey;
import org.datanucleus.store.rdbms.key.ForeignKey;
import org.datanucleus.store.rdbms.key.Index;
import org.datanucleus.store.rdbms.mapping.java.EmbeddedKeyPCMapping;
import org.datanucleus.store.rdbms.mapping.java.EmbeddedValuePCMapping;
import org.datanucleus.store.rdbms.mapping.java.JavaTypeMapping;
import org.datanucleus.store.rdbms.mapping.java.PersistableMapping;
import org.datanucleus.store.rdbms.mapping.java.ReferenceMapping;
import org.datanucleus.util.ClassUtils;
import org.datanucleus.util.Localiser;
import org.datanucleus.util.NucleusLogger;
/**
* Representation of a join table for a Map. A Map covers a wide range of possibilities
* in terms of whether it allows duplicates or not, whether it allows nulls or not, whether it supports
* ordering via indexes etc. Consequently the join table can vary depending on the required capabilities.
* <h3>JoinTable Mappings</h3>
* <p>
* The join table consists of the following mappings :-
* <ul>
* <li><B>ownerMapping</B> linking back to the owning class with the Collection.</li>
* <li><B>keyMapping</B> either being an FK link to the key table or being an embedded/serialised key
* stored wholely in this table.</li>
* <li><B>valueMapping</B> either being an FK link to the value table or being an embedded/serialised value
* stored wholely in this table.</li>
* <li><B>orderMapping</B> which may be null, or otherwise stores an index for the keys.
* This is either to provide uniqueness or ordering (and part of the PK).</li>
* </ul>
*/
public class MapTable extends JoinTable implements DatastoreMap
{
/** Mapping to the key object. */
private JavaTypeMapping keyMapping;
/** Mapping to the value object. */
private JavaTypeMapping valueMapping;
/**
* Mapping to allow ordering (of keys) or to allow duplicates. Can be used when the key is not suitable
* for use as part of the PK and a PK is required for this join table.
*/
private JavaTypeMapping orderMapping;
/** Map of field mappings when containing an embedded PC key. Keyed by the FieldMetaData of the field. */
protected Map embeddedKeyMappingsMap;
/** Map of field mappings when containing an embedded PC value. Keyed by the FieldMetaData of the field. */
protected Map embeddedValueMappingsMap;
/**
* Constructor.
* @param tableName Identifier name of the table
* @param mmd MetaData for the field/property of the owner
* @param storeMgr The Store Manager managing these tables.
*/
public MapTable(DatastoreIdentifier tableName, AbstractMemberMetaData mmd, RDBMSStoreManager storeMgr)
{
super(tableName, mmd, storeMgr);
}
/**
* Method to initialise the table definition.
* @param clr The ClassLoaderResolver
*/
public void initialize(ClassLoaderResolver clr)
{
assertIsUninitialized();
MapMetaData mapmd = mmd.getMap();
if (mapmd == null)
{
throw new NucleusUserException(Localiser.msg("057017",mmd));
}
PrimaryKeyMetaData pkmd = (mmd.getJoinMetaData() != null ? mmd.getJoinMetaData().getPrimaryKeyMetaData() : null);
boolean pkColsSpecified = (pkmd != null && pkmd.getColumnMetaData() != null);
boolean pkRequired = requiresPrimaryKey();
// Add owner mapping
ColumnMetaData[] ownerColmd = null;
if (mmd.getJoinMetaData() != null &&
mmd.getJoinMetaData().getColumnMetaData() != null &&
mmd.getJoinMetaData().getColumnMetaData().length > 0)
{
// Column mappings defined at this side (1-N, M-N)
// When specified at this side they use the <join> tag
ownerColmd = mmd.getJoinMetaData().getColumnMetaData();
}
ownerMapping = ColumnCreator.createColumnsForJoinTables(clr.classForName(ownerType), mmd, ownerColmd,
storeMgr, this, pkRequired, false, FieldRole.ROLE_OWNER, clr);
if (NucleusLogger.DATASTORE.isDebugEnabled())
{
logMapping(mmd.getFullFieldName()+".[OWNER]", ownerMapping);
}
String keyValueFieldName = (mmd.getKeyMetaData() != null ? mmd.getKeyMetaData().getMappedBy() : null);
String valueKeyFieldName = (mmd.getValueMetaData() != null ? mmd.getValueMetaData().getMappedBy() : null);
// Add key mapping
boolean keyPC = (mmd.hasMap() && mmd.getMap().keyIsPersistent());
Class keyCls = clr.classForName(mapmd.getKeyType());
if (keyValueFieldName != null && isEmbeddedValuePC())
{
// Added in value code
}
else if (isSerialisedKey() || isEmbeddedKeyPC() || (isEmbeddedKey() && !keyPC) ||
ClassUtils.isReferenceType(keyCls))
{
// Key = PC(embedded), PC(serialised), Non-PC(serialised), Non-PC(embedded), Reference
keyMapping = storeMgr.getMappingManager().getMapping(this, mmd, clr, FieldRole.ROLE_MAP_KEY);
if (Boolean.TRUE.equals(mmd.getContainer().allowNulls()))
{
// Make all key col(s) nullable so we can store null elements
for (int i=0;i<keyMapping.getNumberOfDatastoreMappings();i++)
{
Column elementCol = keyMapping.getDatastoreMapping(i).getColumn();
elementCol.setNullable(true);
}
}
if (NucleusLogger.DATASTORE.isDebugEnabled())
{
logMapping(mmd.getFullFieldName()+".[KEY]", keyMapping);
}
if (valueKeyFieldName != null && isEmbeddedKeyPC())
{
// Key (PC) is embedded and value is a field of the key
EmbeddedKeyPCMapping embMapping = (EmbeddedKeyPCMapping)keyMapping;
valueMapping = embMapping.getJavaTypeMapping(valueKeyFieldName);
}
}
else
{
// Key = PC
ColumnMetaData[] keyColmd = null;
KeyMetaData keymd = mmd.getKeyMetaData();
if (keymd != null && keymd.getColumnMetaData() != null && keymd.getColumnMetaData().length > 0)
{
// Column mappings defined at this side (1-N, M-N)
keyColmd = keymd.getColumnMetaData();
}
keyMapping = ColumnCreator.createColumnsForJoinTables(keyCls, mmd, keyColmd, storeMgr, this,
false, false, FieldRole.ROLE_MAP_KEY, clr);
if (mmd.getContainer().allowNulls() == Boolean.TRUE)
{
// Make all key col(s) nullable so we can store null elements
for (int i=0;i<keyMapping.getNumberOfDatastoreMappings();i++)
{
Column elementCol = keyMapping.getDatastoreMapping(i).getColumn();
elementCol.setNullable(true);
}
}
if (NucleusLogger.DATASTORE.isDebugEnabled())
{
logMapping(mmd.getFullFieldName()+".[KEY]", keyMapping);
}
}
// Add value mapping
boolean valuePC = (mmd.hasMap() && mmd.getMap().valueIsPersistent());
Class valueCls = clr.classForName(mapmd.getValueType());
if (valueKeyFieldName != null && isEmbeddedKeyPC())
{
// Added in key code
}
else if (isSerialisedValue() || isEmbeddedValuePC() || (isEmbeddedValue() && !valuePC) ||
ClassUtils.isReferenceType(valueCls))
{
// Value = PC(embedded), PC(serialised), Non-PC(serialised), Non-PC(embedded), Reference
valueMapping = storeMgr.getMappingManager().getMapping(this, mmd, clr, FieldRole.ROLE_MAP_VALUE);
if (mmd.getContainer().allowNulls() == Boolean.TRUE)
{
// Make all value col(s) nullable so we can store null elements
for (int i=0;i<valueMapping.getNumberOfDatastoreMappings();i++)
{
Column elementCol = valueMapping.getDatastoreMapping(i).getColumn();
elementCol.setNullable(true);
}
}
if (NucleusLogger.DATASTORE.isDebugEnabled())
{
logMapping(mmd.getFullFieldName()+".[VALUE]", valueMapping);
}
if (keyValueFieldName != null && isEmbeddedValuePC())
{
// Value (PC) is embedded and key is a field of the value
EmbeddedValuePCMapping embMapping = (EmbeddedValuePCMapping)valueMapping;
keyMapping = embMapping.getJavaTypeMapping(keyValueFieldName);
}
}
else
{
// Value = PC
ColumnMetaData[] valueColmd = null;
ValueMetaData valuemd = mmd.getValueMetaData();
if (valuemd != null && valuemd.getColumnMetaData() != null && valuemd.getColumnMetaData().length > 0)
{
// Column mappings defined at this side (1-N, M-N)
valueColmd = valuemd.getColumnMetaData();
}
valueMapping = ColumnCreator.createColumnsForJoinTables(clr.classForName(mapmd.getValueType()), mmd,
valueColmd, storeMgr, this, false, true, FieldRole.ROLE_MAP_VALUE, clr);
if (mmd.getContainer().allowNulls() == Boolean.TRUE)
{
// Make all value col(s) nullable so we can store null elements
for (int i=0;i<valueMapping.getNumberOfDatastoreMappings();i++)
{
Column elementCol = valueMapping.getDatastoreMapping(i).getColumn();
elementCol.setNullable(true);
}
}
if (NucleusLogger.DATASTORE.isDebugEnabled())
{
logMapping(mmd.getFullFieldName()+".[VALUE]", valueMapping);
}
}
// Add order mapping if required
boolean orderRequired = false;
if (mmd.getOrderMetaData() != null)
{
// User requested order column so add one
orderRequired = true;
}
else if (requiresPrimaryKey() && !pkColsSpecified)
{
// PK is required so maybe need to add an index to form the PK
if (isEmbeddedKeyPC())
{
if (mmd.getMap().getKeyClassMetaData(clr, storeMgr.getMetaDataManager()).getIdentityType() != IdentityType.APPLICATION)
{
// Embedded key PC with datastore id so we need an index to form the PK
orderRequired = true;
}
}
else if (isSerialisedKey())
{
// Serialised key, so need an index to form the PK
orderRequired = true;
}
else if (keyMapping instanceof ReferenceMapping)
{
// ReferenceMapping, so have order if more than 1 implementation
ReferenceMapping refMapping = (ReferenceMapping)keyMapping;
if (refMapping.getJavaTypeMapping().length > 1)
{
orderRequired = true;
}
}
else if (!(keyMapping instanceof PersistableMapping))
{
// Non-PC, so depends if the key column can be used as part of a PK
// TODO This assumes the keyMapping has a single column but what if it is Color with 4 cols?
Column elementCol = keyMapping.getDatastoreMapping(0).getColumn();
if (!storeMgr.getDatastoreAdapter().isValidPrimaryKeyType(elementCol.getJdbcType()))
{
// Not possible to use this Non-PC type as part of the PK
orderRequired = true;
}
}
}
if (orderRequired)
{
// Order/Adapter (index) column is required (integer based)
ColumnMetaData orderColmd = null;
if (mmd.getOrderMetaData() != null &&
mmd.getOrderMetaData().getColumnMetaData() != null &&
mmd.getOrderMetaData().getColumnMetaData().length > 0)
{
// Specified "order" column info
orderColmd = mmd.getOrderMetaData().getColumnMetaData()[0];
if (orderColmd.getName() == null)
{
orderColmd = new ColumnMetaData(orderColmd);
if (mmd.hasExtension("adapter-column-name"))
{
// Specified "extension" column name
// TODO Is this needed? The user can just specify <order column="...">
orderColmd.setName(mmd.getValueForExtension("adapter-column-name"));
}
else
{
// No column name so use default
DatastoreIdentifier id = storeMgr.getIdentifierFactory().newIndexFieldIdentifier(mmd);
orderColmd.setName(id.getName());
}
}
}
else
{
if (mmd.hasExtension("adapter-column-name"))
{
// Specified "extension" column name
// TODO Is this needed? The user can just specify <order column="...">
orderColmd = new ColumnMetaData();
orderColmd.setName(mmd.getValueForExtension("adapter-column-name"));
}
else
{
// No column name so use default
DatastoreIdentifier id = storeMgr.getIdentifierFactory().newIndexFieldIdentifier(mmd);
orderColmd = new ColumnMetaData();
orderColmd.setName(id.getName());
}
}
orderMapping = storeMgr.getMappingManager().getMapping(int.class); // JDO2 spec [18.5] order column is assumed to be "int"
ColumnCreator.createIndexColumn(orderMapping, storeMgr, clr, this, orderColmd, pkRequired && !pkColsSpecified);
if (NucleusLogger.DATASTORE.isDebugEnabled())
{
logMapping(mmd.getFullFieldName()+".[ORDER]", orderMapping);
}
}
// Define primary key of the join table (if any)
if (pkRequired)
{
if (pkColsSpecified)
{
// Apply the users PK specification
applyUserPrimaryKeySpecification(pkmd);
}
else
{
// Define PK using JPOX rules
if (orderRequired)
{
// Order column specified so owner+order are the PK
orderMapping.getDatastoreMapping(0).getColumn().setPrimaryKey();
}
else
{
// No order column specified so owner+key are the PK
for (int i=0;i<keyMapping.getNumberOfDatastoreMappings();i++)
{
keyMapping.getDatastoreMapping(i).getColumn().setPrimaryKey();
}
}
}
}
if (NucleusLogger.DATASTORE_SCHEMA.isDebugEnabled())
{
NucleusLogger.DATASTORE_SCHEMA.debug(Localiser.msg("057023", this));
}
storeMgr.registerTableInitialized(this);
state = TABLE_STATE_INITIALIZED;
}
/**
* Convenience method to apply the user specification of <primary-key> columns
* @param pkmd MetaData for the primary key
*/
protected void applyUserPrimaryKeySpecification(PrimaryKeyMetaData pkmd)
{
ColumnMetaData[] pkCols = pkmd.getColumnMetaData();
for (int i=0;i<pkCols.length;i++)
{
String colName = pkCols[i].getName();
boolean found = false;
for (int j=0;j<ownerMapping.getNumberOfDatastoreMappings();j++)
{
if (ownerMapping.getDatastoreMapping(j).getColumn().getIdentifier().getName().equals(colName))
{
ownerMapping.getDatastoreMapping(j).getColumn().setPrimaryKey();
found = true;
}
}
if (!found)
{
for (int j=0;j<keyMapping.getNumberOfDatastoreMappings();j++)
{
if (keyMapping.getDatastoreMapping(j).getColumn().getIdentifier().getName().equals(colName))
{
keyMapping.getDatastoreMapping(j).getColumn().setPrimaryKey();
found = true;
}
}
}
if (!found)
{
for (int j=0;j<valueMapping.getNumberOfDatastoreMappings();j++)
{
if (valueMapping.getDatastoreMapping(j).getColumn().getIdentifier().getName().equals(colName))
{
valueMapping.getDatastoreMapping(j).getColumn().setPrimaryKey();
found = true;
}
}
}
if (!found)
{
throw new NucleusUserException(Localiser.msg("057040", toString(), colName));
}
}
}
/**
* Accessor for whether the key is embedded into this table.
* This can be an embedded persistable, or an embedded simple type.
* @return Whether the key is embedded.
*/
public boolean isEmbeddedKey()
{
if (mmd.getMap() != null && mmd.getMap().isSerializedKey())
{
// Serialized takes precedence over embedded
return false;
}
else if (mmd.getMap() != null && mmd.getMap().isEmbeddedKey())
{
return true;
}
return false;
}
/**
* Accessor for whether the key is serialised into this table.
* This can be an serialised persistable, or a serialised simple type.
* @return Whether the key is serialised.
*/
public boolean isSerialisedKey()
{
if (mmd.getMap() != null && mmd.getMap().isSerializedKey())
{
return true;
}
return false;
}
/**
* Accessor for whether the key is a persistable(serialised)
* @return Whether the key is PC and is serialised
*/
public boolean isSerialisedKeyPC()
{
if (mmd.getMap() != null && mmd.getMap().isSerializedKey() && mmd.getMap().keyIsPersistent())
{
return true;
}
return false;
}
/**
* Accessor for whether the key is a persistable(embedded)
* @return Whether the key is PC and is embedded
*/
public boolean isEmbeddedKeyPC()
{
if (mmd.getMap() != null && mmd.getMap().isSerializedKey())
{
// Serialized takes precedence over embedded
return false;
}
if (mmd.getKeyMetaData() != null && mmd.getKeyMetaData().getEmbeddedMetaData() != null)
{
return true;
}
return false;
}
/**
* Accessor for whether the value is embedded into this table.
* This can be an embedded persistable, or an embedded simple type.
* @return Whether the value is embedded.
*/
public boolean isEmbeddedValue()
{
if (mmd.getMap() != null && mmd.getMap().isSerializedValue())
{
// Serialized takes precedence over embedded
return false;
}
else if (mmd.getMap() != null && mmd.getMap().isEmbeddedValue())
{
return true;
}
return false;
}
/**
* Accessor for whether the value is serialised into this table.
* This can be an serialised persistable, or a serialised simple type.
* @return Whether the value is serialised.
*/
public boolean isSerialisedValue()
{
if (mmd.getMap() != null && mmd.getMap().isSerializedValue())
{
return true;
}
return false;
}
/**
* Accessor for whether the value is a persistable(serialised)
* @return Whether the value is PC and is serialised
*/
public boolean isSerialisedValuePC()
{
if (mmd.getMap() != null && mmd.getMap().isSerializedValue() && mmd.getMap().valueIsPersistent())
{
return true;
}
return false;
}
/**
* Accessor for whether the value is a persistable(embedded)
* @return Whether the value is PC and is embedded
*/
public boolean isEmbeddedValuePC()
{
if (mmd.getMap() != null && mmd.getMap().isSerializedValue())
{
// Serialized takes precedence over embedded
return false;
}
if (mmd.getValueMetaData() != null && mmd.getValueMetaData().getEmbeddedMetaData() != null)
{
return true;
}
return false;
}
/**
* Accessor for the "key" mapping end of the relationship.
* @return The column mapping for the element.
**/
public JavaTypeMapping getKeyMapping()
{
assertIsInitialized();
return keyMapping;
}
/**
* Accessor for the "value" mapping end of the relationship.
* @return The column mapping for the element.
**/
public JavaTypeMapping getValueMapping()
{
assertIsInitialized();
return valueMapping;
}
/**
* Accessor for the key type for this Map.
* @return Name of key type.
*/
public String getKeyType()
{
return mmd.getMap().getKeyType();
}
/**
* Accessor for the value type for this Map.
* @return Name of value type.
*/
public String getValueType()
{
return mmd.getMap().getValueType();
}
/**
* Accessor for order mapping.
* The columns in this mapping are part of the primary key.
* @return The column mapping for objects without identity or not supported as part of the primary keys
**/
public JavaTypeMapping getOrderMapping()
{
assertIsInitialized();
return orderMapping;
}
/**
* Accessor for the expected foreign keys for this table.
* @param clr The ClassLoaderResolver
* @return The expected foreign keys.
*/
public List getExpectedForeignKeys(ClassLoaderResolver clr)
{
assertIsInitialized();
boolean autoMode = false;
if (storeMgr.getStringProperty(RDBMSPropertyNames.PROPERTY_RDBMS_CONSTRAINT_CREATE_MODE).equals("DataNucleus"))
{
autoMode = true;
}
ArrayList foreignKeys = new ArrayList();
try
{
// FK from join table to owner table
DatastoreClass referencedTable = storeMgr.getDatastoreClass(ownerType, clr);
if (referencedTable != null)
{
// Take <foreign-key> from <join>
ForeignKeyMetaData fkmd = null;
if (mmd.getJoinMetaData() != null)
{
fkmd = mmd.getJoinMetaData().getForeignKeyMetaData();
}
if (fkmd != null || autoMode)
{
ForeignKey fk = new ForeignKey(ownerMapping,dba,referencedTable, true);
fk.setForMetaData(fkmd);
foreignKeys.add(fk);
}
}
if (!isSerialisedValuePC())
{
if (isEmbeddedValuePC())
{
// Add any FKs for the fields of the (embedded) value
EmbeddedValuePCMapping embMapping = (EmbeddedValuePCMapping)valueMapping;
for (int i=0;i<embMapping.getNumberOfJavaTypeMappings();i++)
{
JavaTypeMapping embFieldMapping = embMapping.getJavaTypeMapping(i);
AbstractMemberMetaData embFmd = embFieldMapping.getMemberMetaData();
if (ClassUtils.isReferenceType(embFmd.getType()) &&
embFieldMapping instanceof ReferenceMapping)
{
// Field is a reference type, so add a FK to the table of the PC for each PC implementation
Collection fks = TableUtils.getForeignKeysForReferenceField(embFieldMapping, embFmd,
autoMode, storeMgr, clr);
foreignKeys.addAll(fks);
}
else if (storeMgr.getNucleusContext().getMetaDataManager().getMetaDataForClass(embFmd.getType(), clr) != null &&
embFieldMapping.getNumberOfDatastoreMappings() > 0 &&
embFieldMapping instanceof PersistableMapping)
{
// Field is for a PC class with the FK at this side, so add a FK to the table of this PC
ForeignKey fk = TableUtils.getForeignKeyForPCField(embFieldMapping, embFmd,
autoMode, storeMgr, clr);
if (fk != null)
{
foreignKeys.add(fk);
}
}
}
}
else if (mmd.getMap().valueIsPersistent())
{
// FK from join table to value table
referencedTable = storeMgr.getDatastoreClass(mmd.getMap().getValueType(), clr);
if (referencedTable != null)
{
// Take <foreign-key> from <value>
ForeignKeyMetaData fkmd = null;
if (mmd.getValueMetaData() != null)
{
fkmd = mmd.getValueMetaData().getForeignKeyMetaData();
}
if (fkmd != null || autoMode)
{
ForeignKey fk = new ForeignKey(valueMapping, dba, referencedTable, true);
fk.setForMetaData(fkmd);
foreignKeys.add(fk);
}
}
}
}
if (!isSerialisedKeyPC())
{
if (isEmbeddedKeyPC())
{
// Add any FKs for the fields of the (embedded) key
EmbeddedKeyPCMapping embMapping = (EmbeddedKeyPCMapping)keyMapping;
for (int i=0;i<embMapping.getNumberOfJavaTypeMappings();i++)
{
JavaTypeMapping embFieldMapping = embMapping.getJavaTypeMapping(i);
AbstractMemberMetaData embFmd = embFieldMapping.getMemberMetaData();
if (ClassUtils.isReferenceType(embFmd.getType()) &&
embFieldMapping instanceof ReferenceMapping)
{
// Field is a reference type, so add a FK to the table of the PC for each PC implementation
Collection fks = TableUtils.getForeignKeysForReferenceField(embFieldMapping, embFmd,
autoMode, storeMgr, clr);
foreignKeys.addAll(fks);
}
else if (storeMgr.getNucleusContext().getMetaDataManager().getMetaDataForClass(embFmd.getType(), clr) != null &&
embFieldMapping.getNumberOfDatastoreMappings() > 0 &&
embFieldMapping instanceof PersistableMapping)
{
// Field is for a PC class with the FK at this side, so add a FK to the table of this PC
ForeignKey fk = TableUtils.getForeignKeyForPCField(embFieldMapping, embFmd,
autoMode, storeMgr, clr);
if (fk != null)
{
foreignKeys.add(fk);
}
}
}
}
else if (mmd.getMap().keyIsPersistent())
{
// FK from join table to key table
referencedTable = storeMgr.getDatastoreClass(mmd.getMap().getKeyType(), clr);
if (referencedTable != null)
{
// Take <foreign-key> from <key>
ForeignKeyMetaData fkmd = null;
if (mmd.getKeyMetaData() != null)
{
fkmd = mmd.getKeyMetaData().getForeignKeyMetaData();
}
if (fkmd != null || autoMode)
{
ForeignKey fk = new ForeignKey(keyMapping, dba, referencedTable, true);
fk.setForMetaData(fkmd);
foreignKeys.add(fk);
}
}
}
}
}
catch (NoTableManagedException e)
{
// expected when no table exists
}
return foreignKeys;
}
/**
* Accessor for the indices for this table.
* This includes both the user-defined indices (via MetaData), and the ones required by
* foreign keys (required by relationships).
* @param clr The ClassLoaderResolver
* @return The indices
*/
protected Set getExpectedIndices(ClassLoaderResolver clr)
{
// The indices required by foreign keys (BaseTable)
Set indices = super.getExpectedIndices(clr);
if (keyMapping instanceof EmbeddedKeyPCMapping)
{
// Add all indices required by fields of the embedded key
EmbeddedKeyPCMapping embMapping = (EmbeddedKeyPCMapping)keyMapping;
for (int i=0;i<embMapping.getNumberOfJavaTypeMappings();i++)
{
JavaTypeMapping embFieldMapping = embMapping.getJavaTypeMapping(i);
IndexMetaData imd = embFieldMapping.getMemberMetaData().getIndexMetaData();
if (imd != null)
{
Index index = TableUtils.getIndexForField(this, imd, embFieldMapping);
if (index != null)
{
indices.add(index);
}
}
}
}
else if (mmd.getKeyMetaData() != null)
{
IndexMetaData idxmd = mmd.getKeyMetaData().getIndexMetaData();
if (idxmd != null)
{
Index index = TableUtils.getIndexForField(this, idxmd, keyMapping);
if (index != null)
{
indices.add(index);
}
}
}
if (valueMapping instanceof EmbeddedValuePCMapping)
{
// Add all indices required by fields of the embedded value
EmbeddedValuePCMapping embMapping = (EmbeddedValuePCMapping)valueMapping;
for (int i=0;i<embMapping.getNumberOfJavaTypeMappings();i++)
{
JavaTypeMapping embFieldMapping = embMapping.getJavaTypeMapping(i);
IndexMetaData imd = embFieldMapping.getMemberMetaData().getIndexMetaData();
if (imd != null)
{
Index index = TableUtils.getIndexForField(this, imd, embFieldMapping);
if (index != null)
{
indices.add(index);
}
}
}
}
else if (mmd.getValueMetaData() != null)
{
IndexMetaData idxmd = mmd.getValueMetaData().getIndexMetaData();
if (idxmd != null)
{
Index index = TableUtils.getIndexForField(this, idxmd, valueMapping);
if (index != null)
{
indices.add(index);
}
}
}
return indices;
}
/**
* Accessor for the candidate keys for this table.
* @return The indices
*/
protected List getExpectedCandidateKeys()
{
// The indices required by foreign keys (BaseTable)
List candidateKeys = super.getExpectedCandidateKeys();
if (keyMapping instanceof EmbeddedKeyPCMapping)
{
// Add all candidate keys required by fields of the embedded key
EmbeddedKeyPCMapping embMapping = (EmbeddedKeyPCMapping)keyMapping;
for (int i=0;i<embMapping.getNumberOfJavaTypeMappings();i++)
{
JavaTypeMapping embFieldMapping = embMapping.getJavaTypeMapping(i);
UniqueMetaData umd = embFieldMapping.getMemberMetaData().getUniqueMetaData();
if (umd != null)
{
CandidateKey ck = TableUtils.getCandidateKeyForField(this, umd, embFieldMapping);
if (ck != null)
{
candidateKeys.add(ck);
}
}
}
}
else if (mmd.getKeyMetaData() != null)
{
UniqueMetaData unimd = mmd.getKeyMetaData().getUniqueMetaData();
if (unimd != null)
{
CandidateKey ck = TableUtils.getCandidateKeyForField(this, unimd, keyMapping);
if (ck != null)
{
candidateKeys.add(ck);
}
}
}
if (valueMapping instanceof EmbeddedValuePCMapping)
{
// Add all candidate keys required by fields of the embedded value
EmbeddedValuePCMapping embMapping = (EmbeddedValuePCMapping)valueMapping;
for (int i=0;i<embMapping.getNumberOfJavaTypeMappings();i++)
{
JavaTypeMapping embFieldMapping = embMapping.getJavaTypeMapping(i);
UniqueMetaData umd = embFieldMapping.getMemberMetaData().getUniqueMetaData();
if (umd != null)
{
CandidateKey ck = TableUtils.getCandidateKeyForField(this, umd, embFieldMapping);
if (ck != null)
{
candidateKeys.add(ck);
}
}
}
}
else if (mmd.getValueMetaData() != null)
{
UniqueMetaData unimd = mmd.getValueMetaData().getUniqueMetaData();
if (unimd != null)
{
CandidateKey ck = TableUtils.getCandidateKeyForField(this, unimd, valueMapping);
if (ck != null)
{
candidateKeys.add(ck);
}
}
}
return candidateKeys;
}
/**
* Accessor the for the mapping for a field stored in this table
* @param mmd MetaData for the field whose mapping we want
* @return The mapping
*/
public JavaTypeMapping getMemberMapping(AbstractMemberMetaData mmd)
{
return null;
}
} | [
"[email protected]"
]
| |
1c3b52659c8582ab00e0b1c0bd494c474c7ac852 | ca6de24b5930d85b1ee2e518ef6df2f3851cfc6a | /Test2(Spring)/src/action/DeleteTicketAction.java | 8d4d198545e9bdef8ec87cac924c84fb45513b72 | []
| no_license | xu693223761/Cb | ad624c91e8b74d4efb7a7befbcbf3c778f102ab2 | 4cc6c2749d2a1b1eec307a5119e47904e89c10b5 | refs/heads/master | 2020-05-17T02:26:52.875149 | 2019-05-19T16:25:28 | 2019-05-19T16:25:28 | 183,454,314 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 577 | java | package action;
import com.opensymphony.xwork2.ActionSupport;
import dao.TicketsDao;
public class DeleteTicketAction extends ActionSupport {
int id;
TicketsDao ticketsDao ;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public TicketsDao getTicketsDao() {
return ticketsDao;
}
public void setTicketsDao(TicketsDao ticketsDao) {
this.ticketsDao = ticketsDao;
}
public DeleteTicketAction(){}
public String execute(){
if(ticketsDao.deleteTicketById(id)){
return SUCCESS;
}else{
return INPUT;
}
}
}
| [
"[email protected]"
]
| |
6d45eef6fe9b6996102a888c7339a5e61a589282 | abef56e5c5559a9821c118938df8504b81e8c91e | /src/main/java/com/turing/tshirtshop/entity/Review.java | 7cc8ea180c796fa59890b8173ba82091a9d0452c | []
| no_license | aleksbecker/tshirtshop-backend | 71c148327e8151299eede6b8ed143a079ac55273 | d432add2f94d3bf9f64c72e2a80689401b84f16b | refs/heads/master | 2020-06-14T07:09:06.638838 | 2019-07-05T23:04:39 | 2019-07-05T23:04:39 | 194,943,108 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,772 | java | package com.turing.tshirtshop.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Review entity
*/
@Entity
public class Review implements java.io.Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name="review_id")
@JsonProperty("review_id")
private Long id;
@JsonIgnore
@ManyToOne
@JoinColumn(name = "product_id")
private Product product;
@JsonIgnore
@ManyToOne
@JoinColumn(name = "customer_id")
private Customer customer;
private String review;
private short rating;
private Date createdOn;
public Review() {
}
public String getReview() {
return this.review;
}
public void setReview(String review) {
this.review = review;
}
public short getRating() {
return this.rating;
}
public void setRating(short rating) {
this.rating = rating;
}
public Date getCreatedOn() {
return this.createdOn;
}
public void setCreatedOn(Date createdOn) {
this.createdOn = createdOn;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Product getProduct() {
return product;
}
public void setProduct(Product product) {
this.product = product;
}
public Customer getCustomer() {
return customer;
}
public void setCustomer(Customer customer) {
this.customer = customer;
}
}
| [
"[email protected]"
]
| |
a748763ff1ca2c5daf445d962de779fb04382228 | cb074fc882112da644164c26c7ac8dab49dc22d1 | /src/logic/Trains/TrainValidator.java | 97a135d989a37798d507b1e00967031f18e42f3e | []
| no_license | potockan/Trains | 6aeae277ef12fe072cfcf142074a5681834013f4 | c93e3eea9e9dea08f38bbf376b09c3e7abf7ffb0 | refs/heads/master | 2021-01-12T08:22:31.478717 | 2016-12-22T10:55:19 | 2016-12-22T10:55:19 | 76,557,759 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,313 | java | package logic.Trains;
import logic.Cars.Car;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* Created by npotocka on 15.12.16.
*/
public class TrainValidator {
Map<String, Restriction> trainRestrictions = new HashMap<>();
public void addRestriction(String carType, int minCarNumber, int maxCarNumber){
this.trainRestrictions.put(
carType,
new Restriction<Integer>(minCarNumber, maxCarNumber)
);
}
public Map<String, Integer> getTrainComposition(Train train){
Car[] trainTable = train.getTrainOrder();
Map<String, Integer> trainComposition = new HashMap<>();
for(int i = 0; i < trainTable.length; i++){
String carType = trainTable[i].getCarType().toString();
trainComposition.put(
carType,
trainComposition.getOrDefault(carType, 0) + 1
);
}
return trainComposition;
}
public boolean validate(Train train){
Map<String, Integer> trainComposition = this.getTrainComposition(train);
for(Map.Entry<String, Integer> entry : trainComposition.entrySet()){
Restriction<Integer> restrictions = this.trainRestrictions.get(entry.getKey());
if(restrictions.getMin() > entry.getValue() ||
restrictions.getMax() < entry.getValue())
return false;
}
return true;
}
public Set<String> validate1(Train train) {
Set<String> restrictionViolation = new HashSet<>();
Map<String, Integer> trainComposition = this.getTrainComposition(train);
for (Map.Entry<String, Integer> entry : trainComposition.entrySet()) {
Restriction<Integer> restrictions = this.trainRestrictions.get(entry.getKey());
if (restrictions.getMin() > entry.getValue() ||
restrictions.getMax() < entry.getValue()) {
restrictionViolation.add("".format(
"%s is %d and should be >= %d and <= %d",
entry.getKey(), entry.getValue(),
restrictions.getMin(), restrictions.getMax()
));
}
}
return restrictionViolation;
}
}
| [
"[email protected]"
]
| |
e0dca0ea11fe46d2a8020081c66500b5a26b7732 | 07431e477bbf5c106b372af0a5c6841d3716a8db | /app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r/android/support/v7/appcompat/R.java | 86a1e05d801e29b9ea50e21b882427e19736755e | []
| no_license | Dom07/ToDoApp | 0f2c7f77cf0995dffcd3bd80b2d6dddc78868fc4 | fddd57d71468ac7f582aa86399020c416cb0c4be | refs/heads/master | 2021-06-24T08:15:57.368501 | 2019-10-03T05:06:23 | 2019-10-03T05:06:23 | 99,091,261 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 120,814 | java | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package android.support.v7.appcompat;
public final class R {
private R() {}
public static final class anim {
private anim() {}
public static final int abc_fade_in = 0x7f010000;
public static final int abc_fade_out = 0x7f010001;
public static final int abc_grow_fade_in_from_bottom = 0x7f010002;
public static final int abc_popup_enter = 0x7f010003;
public static final int abc_popup_exit = 0x7f010004;
public static final int abc_shrink_fade_out_from_bottom = 0x7f010005;
public static final int abc_slide_in_bottom = 0x7f010006;
public static final int abc_slide_in_top = 0x7f010007;
public static final int abc_slide_out_bottom = 0x7f010008;
public static final int abc_slide_out_top = 0x7f010009;
public static final int abc_tooltip_enter = 0x7f01000a;
public static final int abc_tooltip_exit = 0x7f01000b;
}
public static final class attr {
private attr() {}
public static final int actionBarDivider = 0x7f030000;
public static final int actionBarItemBackground = 0x7f030001;
public static final int actionBarPopupTheme = 0x7f030002;
public static final int actionBarSize = 0x7f030003;
public static final int actionBarSplitStyle = 0x7f030004;
public static final int actionBarStyle = 0x7f030005;
public static final int actionBarTabBarStyle = 0x7f030006;
public static final int actionBarTabStyle = 0x7f030007;
public static final int actionBarTabTextStyle = 0x7f030008;
public static final int actionBarTheme = 0x7f030009;
public static final int actionBarWidgetTheme = 0x7f03000a;
public static final int actionButtonStyle = 0x7f03000b;
public static final int actionDropDownStyle = 0x7f03000c;
public static final int actionLayout = 0x7f03000d;
public static final int actionMenuTextAppearance = 0x7f03000e;
public static final int actionMenuTextColor = 0x7f03000f;
public static final int actionModeBackground = 0x7f030010;
public static final int actionModeCloseButtonStyle = 0x7f030011;
public static final int actionModeCloseDrawable = 0x7f030012;
public static final int actionModeCopyDrawable = 0x7f030013;
public static final int actionModeCutDrawable = 0x7f030014;
public static final int actionModeFindDrawable = 0x7f030015;
public static final int actionModePasteDrawable = 0x7f030016;
public static final int actionModePopupWindowStyle = 0x7f030017;
public static final int actionModeSelectAllDrawable = 0x7f030018;
public static final int actionModeShareDrawable = 0x7f030019;
public static final int actionModeSplitBackground = 0x7f03001a;
public static final int actionModeStyle = 0x7f03001b;
public static final int actionModeWebSearchDrawable = 0x7f03001c;
public static final int actionOverflowButtonStyle = 0x7f03001d;
public static final int actionOverflowMenuStyle = 0x7f03001e;
public static final int actionProviderClass = 0x7f03001f;
public static final int actionViewClass = 0x7f030020;
public static final int activityChooserViewStyle = 0x7f030021;
public static final int alertDialogButtonGroupStyle = 0x7f030022;
public static final int alertDialogCenterButtons = 0x7f030023;
public static final int alertDialogStyle = 0x7f030024;
public static final int alertDialogTheme = 0x7f030025;
public static final int allowStacking = 0x7f030026;
public static final int alpha = 0x7f030027;
public static final int alphabeticModifiers = 0x7f030028;
public static final int arrowHeadLength = 0x7f030029;
public static final int arrowShaftLength = 0x7f03002a;
public static final int autoCompleteTextViewStyle = 0x7f03002b;
public static final int autoSizeMaxTextSize = 0x7f03002c;
public static final int autoSizeMinTextSize = 0x7f03002d;
public static final int autoSizePresetSizes = 0x7f03002e;
public static final int autoSizeStepGranularity = 0x7f03002f;
public static final int autoSizeTextType = 0x7f030030;
public static final int background = 0x7f030031;
public static final int backgroundSplit = 0x7f030032;
public static final int backgroundStacked = 0x7f030033;
public static final int backgroundTint = 0x7f030034;
public static final int backgroundTintMode = 0x7f030035;
public static final int barLength = 0x7f030036;
public static final int borderlessButtonStyle = 0x7f030040;
public static final int buttonBarButtonStyle = 0x7f03004e;
public static final int buttonBarNegativeButtonStyle = 0x7f03004f;
public static final int buttonBarNeutralButtonStyle = 0x7f030050;
public static final int buttonBarPositiveButtonStyle = 0x7f030051;
public static final int buttonBarStyle = 0x7f030052;
public static final int buttonGravity = 0x7f030053;
public static final int buttonIconDimen = 0x7f030054;
public static final int buttonPanelSideLayout = 0x7f030055;
public static final int buttonStyle = 0x7f030056;
public static final int buttonStyleSmall = 0x7f030057;
public static final int buttonTint = 0x7f030058;
public static final int buttonTintMode = 0x7f030059;
public static final int checkboxStyle = 0x7f030062;
public static final int checkedTextViewStyle = 0x7f030067;
public static final int closeIcon = 0x7f03007a;
public static final int closeItemLayout = 0x7f030081;
public static final int collapseContentDescription = 0x7f030082;
public static final int collapseIcon = 0x7f030083;
public static final int color = 0x7f030086;
public static final int colorAccent = 0x7f030087;
public static final int colorBackgroundFloating = 0x7f030088;
public static final int colorButtonNormal = 0x7f030089;
public static final int colorControlActivated = 0x7f03008a;
public static final int colorControlHighlight = 0x7f03008b;
public static final int colorControlNormal = 0x7f03008c;
public static final int colorError = 0x7f03008d;
public static final int colorPrimary = 0x7f03008e;
public static final int colorPrimaryDark = 0x7f03008f;
public static final int colorSwitchThumbNormal = 0x7f030091;
public static final int commitIcon = 0x7f030092;
public static final int contentDescription = 0x7f030096;
public static final int contentInsetEnd = 0x7f030097;
public static final int contentInsetEndWithActions = 0x7f030098;
public static final int contentInsetLeft = 0x7f030099;
public static final int contentInsetRight = 0x7f03009a;
public static final int contentInsetStart = 0x7f03009b;
public static final int contentInsetStartWithNavigation = 0x7f03009c;
public static final int controlBackground = 0x7f0300a3;
public static final int coordinatorLayoutStyle = 0x7f0300a4;
public static final int customNavigationLayout = 0x7f0300aa;
public static final int defaultQueryHint = 0x7f0300ab;
public static final int dialogCornerRadius = 0x7f0300ac;
public static final int dialogPreferredPadding = 0x7f0300ad;
public static final int dialogTheme = 0x7f0300ae;
public static final int displayOptions = 0x7f0300af;
public static final int divider = 0x7f0300b0;
public static final int dividerHorizontal = 0x7f0300b1;
public static final int dividerPadding = 0x7f0300b2;
public static final int dividerVertical = 0x7f0300b3;
public static final int drawableSize = 0x7f0300b4;
public static final int drawerArrowStyle = 0x7f0300b5;
public static final int dropDownListViewStyle = 0x7f0300b6;
public static final int dropdownListPreferredItemHeight = 0x7f0300b7;
public static final int editTextBackground = 0x7f0300b8;
public static final int editTextColor = 0x7f0300b9;
public static final int editTextStyle = 0x7f0300ba;
public static final int elevation = 0x7f0300bb;
public static final int expandActivityOverflowButtonDrawable = 0x7f0300c1;
public static final int firstBaselineToTopHeight = 0x7f0300d5;
public static final int font = 0x7f0300d7;
public static final int fontFamily = 0x7f0300d8;
public static final int fontProviderAuthority = 0x7f0300d9;
public static final int fontProviderCerts = 0x7f0300da;
public static final int fontProviderFetchStrategy = 0x7f0300db;
public static final int fontProviderFetchTimeout = 0x7f0300dc;
public static final int fontProviderPackage = 0x7f0300dd;
public static final int fontProviderQuery = 0x7f0300de;
public static final int fontStyle = 0x7f0300df;
public static final int fontVariationSettings = 0x7f0300e0;
public static final int fontWeight = 0x7f0300e1;
public static final int gapBetweenBars = 0x7f0300e3;
public static final int goIcon = 0x7f0300e4;
public static final int height = 0x7f0300e6;
public static final int hideOnContentScroll = 0x7f0300eb;
public static final int homeAsUpIndicator = 0x7f0300f0;
public static final int homeLayout = 0x7f0300f1;
public static final int icon = 0x7f0300f3;
public static final int iconTint = 0x7f0300f9;
public static final int iconTintMode = 0x7f0300fa;
public static final int iconifiedByDefault = 0x7f0300fb;
public static final int imageButtonStyle = 0x7f0300fc;
public static final int indeterminateProgressStyle = 0x7f0300fd;
public static final int initialActivityCount = 0x7f0300fe;
public static final int isLightTheme = 0x7f030100;
public static final int itemPadding = 0x7f030107;
public static final int keylines = 0x7f03010d;
public static final int lastBaselineToBottomHeight = 0x7f03010f;
public static final int layout = 0x7f030110;
public static final int layout_anchor = 0x7f030112;
public static final int layout_anchorGravity = 0x7f030113;
public static final int layout_behavior = 0x7f030114;
public static final int layout_dodgeInsetEdges = 0x7f030140;
public static final int layout_insetEdge = 0x7f030149;
public static final int layout_keyline = 0x7f03014a;
public static final int lineHeight = 0x7f03014f;
public static final int listChoiceBackgroundIndicator = 0x7f030151;
public static final int listDividerAlertDialog = 0x7f030152;
public static final int listItemLayout = 0x7f030153;
public static final int listLayout = 0x7f030154;
public static final int listMenuViewStyle = 0x7f030155;
public static final int listPopupWindowStyle = 0x7f030156;
public static final int listPreferredItemHeight = 0x7f030157;
public static final int listPreferredItemHeightLarge = 0x7f030158;
public static final int listPreferredItemHeightSmall = 0x7f030159;
public static final int listPreferredItemPaddingLeft = 0x7f03015a;
public static final int listPreferredItemPaddingRight = 0x7f03015b;
public static final int logo = 0x7f03015c;
public static final int logoDescription = 0x7f03015d;
public static final int maxButtonHeight = 0x7f030161;
public static final int measureWithLargestChild = 0x7f030163;
public static final int multiChoiceItemLayout = 0x7f030165;
public static final int navigationContentDescription = 0x7f030166;
public static final int navigationIcon = 0x7f030167;
public static final int navigationMode = 0x7f030168;
public static final int numericModifiers = 0x7f03016a;
public static final int overlapAnchor = 0x7f03016b;
public static final int paddingBottomNoButtons = 0x7f03016c;
public static final int paddingEnd = 0x7f03016d;
public static final int paddingStart = 0x7f03016e;
public static final int paddingTopNoTitle = 0x7f03016f;
public static final int panelBackground = 0x7f030170;
public static final int panelMenuListTheme = 0x7f030171;
public static final int panelMenuListWidth = 0x7f030172;
public static final int popupMenuStyle = 0x7f030178;
public static final int popupTheme = 0x7f030179;
public static final int popupWindowStyle = 0x7f03017a;
public static final int preserveIconSpacing = 0x7f03017b;
public static final int progressBarPadding = 0x7f03017d;
public static final int progressBarStyle = 0x7f03017e;
public static final int queryBackground = 0x7f03017f;
public static final int queryHint = 0x7f030180;
public static final int radioButtonStyle = 0x7f030181;
public static final int ratingBarStyle = 0x7f030182;
public static final int ratingBarStyleIndicator = 0x7f030183;
public static final int ratingBarStyleSmall = 0x7f030184;
public static final int searchHintIcon = 0x7f03018a;
public static final int searchIcon = 0x7f03018b;
public static final int searchViewStyle = 0x7f03018c;
public static final int seekBarStyle = 0x7f03018d;
public static final int selectableItemBackground = 0x7f03018e;
public static final int selectableItemBackgroundBorderless = 0x7f03018f;
public static final int showAsAction = 0x7f030190;
public static final int showDividers = 0x7f030191;
public static final int showText = 0x7f030193;
public static final int showTitle = 0x7f030194;
public static final int singleChoiceItemLayout = 0x7f030195;
public static final int spinBars = 0x7f03019b;
public static final int spinnerDropDownItemStyle = 0x7f03019c;
public static final int spinnerStyle = 0x7f03019d;
public static final int splitTrack = 0x7f03019e;
public static final int srcCompat = 0x7f03019f;
public static final int state_above_anchor = 0x7f0301a1;
public static final int statusBarBackground = 0x7f0301a6;
public static final int subMenuArrow = 0x7f0301aa;
public static final int submitBackground = 0x7f0301ab;
public static final int subtitle = 0x7f0301ac;
public static final int subtitleTextAppearance = 0x7f0301ad;
public static final int subtitleTextColor = 0x7f0301ae;
public static final int subtitleTextStyle = 0x7f0301af;
public static final int suggestionRowLayout = 0x7f0301b0;
public static final int switchMinWidth = 0x7f0301b1;
public static final int switchPadding = 0x7f0301b2;
public static final int switchStyle = 0x7f0301b3;
public static final int switchTextAppearance = 0x7f0301b4;
public static final int textAllCaps = 0x7f0301cf;
public static final int textAppearanceLargePopupMenu = 0x7f0301da;
public static final int textAppearanceListItem = 0x7f0301db;
public static final int textAppearanceListItemSecondary = 0x7f0301dc;
public static final int textAppearanceListItemSmall = 0x7f0301dd;
public static final int textAppearancePopupMenuHeader = 0x7f0301df;
public static final int textAppearanceSearchResultSubtitle = 0x7f0301e0;
public static final int textAppearanceSearchResultTitle = 0x7f0301e1;
public static final int textAppearanceSmallPopupMenu = 0x7f0301e2;
public static final int textColorAlertDialogListItem = 0x7f0301e5;
public static final int textColorSearchUrl = 0x7f0301e6;
public static final int theme = 0x7f0301ea;
public static final int thickness = 0x7f0301eb;
public static final int thumbTextPadding = 0x7f0301ec;
public static final int thumbTint = 0x7f0301ed;
public static final int thumbTintMode = 0x7f0301ee;
public static final int tickMark = 0x7f0301ef;
public static final int tickMarkTint = 0x7f0301f0;
public static final int tickMarkTintMode = 0x7f0301f1;
public static final int tint = 0x7f0301f2;
public static final int tintMode = 0x7f0301f3;
public static final int title = 0x7f0301f4;
public static final int titleMargin = 0x7f0301f6;
public static final int titleMarginBottom = 0x7f0301f7;
public static final int titleMarginEnd = 0x7f0301f8;
public static final int titleMarginStart = 0x7f0301f9;
public static final int titleMarginTop = 0x7f0301fa;
public static final int titleMargins = 0x7f0301fb;
public static final int titleTextAppearance = 0x7f0301fc;
public static final int titleTextColor = 0x7f0301fd;
public static final int titleTextStyle = 0x7f0301fe;
public static final int toolbarNavigationButtonStyle = 0x7f030200;
public static final int toolbarStyle = 0x7f030201;
public static final int tooltipForegroundColor = 0x7f030202;
public static final int tooltipFrameBackground = 0x7f030203;
public static final int tooltipText = 0x7f030204;
public static final int track = 0x7f030205;
public static final int trackTint = 0x7f030206;
public static final int trackTintMode = 0x7f030207;
public static final int ttcIndex = 0x7f030208;
public static final int viewInflaterClass = 0x7f03020a;
public static final int voiceIcon = 0x7f03020b;
public static final int windowActionBar = 0x7f03020c;
public static final int windowActionBarOverlay = 0x7f03020d;
public static final int windowActionModeOverlay = 0x7f03020e;
public static final int windowFixedHeightMajor = 0x7f03020f;
public static final int windowFixedHeightMinor = 0x7f030210;
public static final int windowFixedWidthMajor = 0x7f030211;
public static final int windowFixedWidthMinor = 0x7f030212;
public static final int windowMinWidthMajor = 0x7f030213;
public static final int windowMinWidthMinor = 0x7f030214;
public static final int windowNoTitle = 0x7f030215;
}
public static final class bool {
private bool() {}
public static final int abc_action_bar_embed_tabs = 0x7f040000;
public static final int abc_allow_stacked_button_bar = 0x7f040001;
public static final int abc_config_actionMenuItemAllCaps = 0x7f040002;
}
public static final class color {
private color() {}
public static final int abc_background_cache_hint_selector_material_dark = 0x7f050001;
public static final int abc_background_cache_hint_selector_material_light = 0x7f050002;
public static final int abc_btn_colored_borderless_text_material = 0x7f050003;
public static final int abc_btn_colored_text_material = 0x7f050004;
public static final int abc_color_highlight_material = 0x7f050005;
public static final int abc_hint_foreground_material_dark = 0x7f050006;
public static final int abc_hint_foreground_material_light = 0x7f050007;
public static final int abc_input_method_navigation_guard = 0x7f050008;
public static final int abc_primary_text_disable_only_material_dark = 0x7f050009;
public static final int abc_primary_text_disable_only_material_light = 0x7f05000a;
public static final int abc_primary_text_material_dark = 0x7f05000b;
public static final int abc_primary_text_material_light = 0x7f05000c;
public static final int abc_search_url_text = 0x7f05000d;
public static final int abc_search_url_text_normal = 0x7f05000e;
public static final int abc_search_url_text_pressed = 0x7f05000f;
public static final int abc_search_url_text_selected = 0x7f050010;
public static final int abc_secondary_text_material_dark = 0x7f050011;
public static final int abc_secondary_text_material_light = 0x7f050012;
public static final int abc_tint_btn_checkable = 0x7f050013;
public static final int abc_tint_default = 0x7f050014;
public static final int abc_tint_edittext = 0x7f050015;
public static final int abc_tint_seek_thumb = 0x7f050016;
public static final int abc_tint_spinner = 0x7f050017;
public static final int abc_tint_switch_track = 0x7f050018;
public static final int accent_material_dark = 0x7f050019;
public static final int accent_material_light = 0x7f05001a;
public static final int background_floating_material_dark = 0x7f05001b;
public static final int background_floating_material_light = 0x7f05001c;
public static final int background_material_dark = 0x7f05001d;
public static final int background_material_light = 0x7f05001e;
public static final int bright_foreground_disabled_material_dark = 0x7f05001f;
public static final int bright_foreground_disabled_material_light = 0x7f050020;
public static final int bright_foreground_inverse_material_dark = 0x7f050021;
public static final int bright_foreground_inverse_material_light = 0x7f050022;
public static final int bright_foreground_material_dark = 0x7f050023;
public static final int bright_foreground_material_light = 0x7f050024;
public static final int button_material_dark = 0x7f050025;
public static final int button_material_light = 0x7f050026;
public static final int dim_foreground_disabled_material_dark = 0x7f05003b;
public static final int dim_foreground_disabled_material_light = 0x7f05003c;
public static final int dim_foreground_material_dark = 0x7f05003d;
public static final int dim_foreground_material_light = 0x7f05003e;
public static final int error_color_material_dark = 0x7f05003f;
public static final int error_color_material_light = 0x7f050040;
public static final int foreground_material_dark = 0x7f050041;
public static final int foreground_material_light = 0x7f050042;
public static final int highlighted_text_material_dark = 0x7f050044;
public static final int highlighted_text_material_light = 0x7f050045;
public static final int material_blue_grey_800 = 0x7f050047;
public static final int material_blue_grey_900 = 0x7f050048;
public static final int material_blue_grey_950 = 0x7f050049;
public static final int material_deep_teal_200 = 0x7f05004a;
public static final int material_deep_teal_500 = 0x7f05004b;
public static final int material_grey_100 = 0x7f05004c;
public static final int material_grey_300 = 0x7f05004d;
public static final int material_grey_50 = 0x7f05004e;
public static final int material_grey_600 = 0x7f05004f;
public static final int material_grey_800 = 0x7f050050;
public static final int material_grey_850 = 0x7f050051;
public static final int material_grey_900 = 0x7f050052;
public static final int notification_action_color_filter = 0x7f05006d;
public static final int notification_icon_bg_color = 0x7f05006e;
public static final int primary_dark_material_dark = 0x7f050071;
public static final int primary_dark_material_light = 0x7f050072;
public static final int primary_material_dark = 0x7f050073;
public static final int primary_material_light = 0x7f050074;
public static final int primary_text_default_material_dark = 0x7f050075;
public static final int primary_text_default_material_light = 0x7f050076;
public static final int primary_text_disabled_material_dark = 0x7f050077;
public static final int primary_text_disabled_material_light = 0x7f050078;
public static final int ripple_material_dark = 0x7f050079;
public static final int ripple_material_light = 0x7f05007a;
public static final int secondary_text_default_material_dark = 0x7f05007b;
public static final int secondary_text_default_material_light = 0x7f05007c;
public static final int secondary_text_disabled_material_dark = 0x7f05007d;
public static final int secondary_text_disabled_material_light = 0x7f05007e;
public static final int switch_thumb_disabled_material_dark = 0x7f05007f;
public static final int switch_thumb_disabled_material_light = 0x7f050080;
public static final int switch_thumb_material_dark = 0x7f050081;
public static final int switch_thumb_material_light = 0x7f050082;
public static final int switch_thumb_normal_material_dark = 0x7f050083;
public static final int switch_thumb_normal_material_light = 0x7f050084;
public static final int tooltip_background_dark = 0x7f050085;
public static final int tooltip_background_light = 0x7f050086;
}
public static final class dimen {
private dimen() {}
public static final int abc_action_bar_content_inset_material = 0x7f060000;
public static final int abc_action_bar_content_inset_with_nav = 0x7f060001;
public static final int abc_action_bar_default_height_material = 0x7f060002;
public static final int abc_action_bar_default_padding_end_material = 0x7f060003;
public static final int abc_action_bar_default_padding_start_material = 0x7f060004;
public static final int abc_action_bar_elevation_material = 0x7f060005;
public static final int abc_action_bar_icon_vertical_padding_material = 0x7f060006;
public static final int abc_action_bar_overflow_padding_end_material = 0x7f060007;
public static final int abc_action_bar_overflow_padding_start_material = 0x7f060008;
public static final int abc_action_bar_stacked_max_height = 0x7f060009;
public static final int abc_action_bar_stacked_tab_max_width = 0x7f06000a;
public static final int abc_action_bar_subtitle_bottom_margin_material = 0x7f06000b;
public static final int abc_action_bar_subtitle_top_margin_material = 0x7f06000c;
public static final int abc_action_button_min_height_material = 0x7f06000d;
public static final int abc_action_button_min_width_material = 0x7f06000e;
public static final int abc_action_button_min_width_overflow_material = 0x7f06000f;
public static final int abc_alert_dialog_button_bar_height = 0x7f060010;
public static final int abc_alert_dialog_button_dimen = 0x7f060011;
public static final int abc_button_inset_horizontal_material = 0x7f060012;
public static final int abc_button_inset_vertical_material = 0x7f060013;
public static final int abc_button_padding_horizontal_material = 0x7f060014;
public static final int abc_button_padding_vertical_material = 0x7f060015;
public static final int abc_cascading_menus_min_smallest_width = 0x7f060016;
public static final int abc_config_prefDialogWidth = 0x7f060017;
public static final int abc_control_corner_material = 0x7f060018;
public static final int abc_control_inset_material = 0x7f060019;
public static final int abc_control_padding_material = 0x7f06001a;
public static final int abc_dialog_corner_radius_material = 0x7f06001b;
public static final int abc_dialog_fixed_height_major = 0x7f06001c;
public static final int abc_dialog_fixed_height_minor = 0x7f06001d;
public static final int abc_dialog_fixed_width_major = 0x7f06001e;
public static final int abc_dialog_fixed_width_minor = 0x7f06001f;
public static final int abc_dialog_list_padding_bottom_no_buttons = 0x7f060020;
public static final int abc_dialog_list_padding_top_no_title = 0x7f060021;
public static final int abc_dialog_min_width_major = 0x7f060022;
public static final int abc_dialog_min_width_minor = 0x7f060023;
public static final int abc_dialog_padding_material = 0x7f060024;
public static final int abc_dialog_padding_top_material = 0x7f060025;
public static final int abc_dialog_title_divider_material = 0x7f060026;
public static final int abc_disabled_alpha_material_dark = 0x7f060027;
public static final int abc_disabled_alpha_material_light = 0x7f060028;
public static final int abc_dropdownitem_icon_width = 0x7f060029;
public static final int abc_dropdownitem_text_padding_left = 0x7f06002a;
public static final int abc_dropdownitem_text_padding_right = 0x7f06002b;
public static final int abc_edit_text_inset_bottom_material = 0x7f06002c;
public static final int abc_edit_text_inset_horizontal_material = 0x7f06002d;
public static final int abc_edit_text_inset_top_material = 0x7f06002e;
public static final int abc_floating_window_z = 0x7f06002f;
public static final int abc_list_item_padding_horizontal_material = 0x7f060030;
public static final int abc_panel_menu_list_width = 0x7f060031;
public static final int abc_progress_bar_height_material = 0x7f060032;
public static final int abc_search_view_preferred_height = 0x7f060033;
public static final int abc_search_view_preferred_width = 0x7f060034;
public static final int abc_seekbar_track_background_height_material = 0x7f060035;
public static final int abc_seekbar_track_progress_height_material = 0x7f060036;
public static final int abc_select_dialog_padding_start_material = 0x7f060037;
public static final int abc_switch_padding = 0x7f060038;
public static final int abc_text_size_body_1_material = 0x7f060039;
public static final int abc_text_size_body_2_material = 0x7f06003a;
public static final int abc_text_size_button_material = 0x7f06003b;
public static final int abc_text_size_caption_material = 0x7f06003c;
public static final int abc_text_size_display_1_material = 0x7f06003d;
public static final int abc_text_size_display_2_material = 0x7f06003e;
public static final int abc_text_size_display_3_material = 0x7f06003f;
public static final int abc_text_size_display_4_material = 0x7f060040;
public static final int abc_text_size_headline_material = 0x7f060041;
public static final int abc_text_size_large_material = 0x7f060042;
public static final int abc_text_size_medium_material = 0x7f060043;
public static final int abc_text_size_menu_header_material = 0x7f060044;
public static final int abc_text_size_menu_material = 0x7f060045;
public static final int abc_text_size_small_material = 0x7f060046;
public static final int abc_text_size_subhead_material = 0x7f060047;
public static final int abc_text_size_subtitle_material_toolbar = 0x7f060048;
public static final int abc_text_size_title_material = 0x7f060049;
public static final int abc_text_size_title_material_toolbar = 0x7f06004a;
public static final int compat_button_inset_horizontal_material = 0x7f060050;
public static final int compat_button_inset_vertical_material = 0x7f060051;
public static final int compat_button_padding_horizontal_material = 0x7f060052;
public static final int compat_button_padding_vertical_material = 0x7f060053;
public static final int compat_control_corner_material = 0x7f060054;
public static final int compat_notification_large_icon_max_height = 0x7f060055;
public static final int compat_notification_large_icon_max_width = 0x7f060056;
public static final int disabled_alpha_material_dark = 0x7f060083;
public static final int disabled_alpha_material_light = 0x7f060084;
public static final int highlight_alpha_material_colored = 0x7f060089;
public static final int highlight_alpha_material_dark = 0x7f06008a;
public static final int highlight_alpha_material_light = 0x7f06008b;
public static final int hint_alpha_material_dark = 0x7f06008c;
public static final int hint_alpha_material_light = 0x7f06008d;
public static final int hint_pressed_alpha_material_dark = 0x7f06008e;
public static final int hint_pressed_alpha_material_light = 0x7f06008f;
public static final int notification_action_icon_size = 0x7f0600c5;
public static final int notification_action_text_size = 0x7f0600c6;
public static final int notification_big_circle_margin = 0x7f0600c7;
public static final int notification_content_margin_start = 0x7f0600c8;
public static final int notification_large_icon_height = 0x7f0600c9;
public static final int notification_large_icon_width = 0x7f0600ca;
public static final int notification_main_column_padding_top = 0x7f0600cb;
public static final int notification_media_narrow_margin = 0x7f0600cc;
public static final int notification_right_icon_size = 0x7f0600cd;
public static final int notification_right_side_padding_top = 0x7f0600ce;
public static final int notification_small_icon_background_padding = 0x7f0600cf;
public static final int notification_small_icon_size_as_large = 0x7f0600d0;
public static final int notification_subtext_size = 0x7f0600d1;
public static final int notification_top_pad = 0x7f0600d2;
public static final int notification_top_pad_large_text = 0x7f0600d3;
public static final int tooltip_corner_radius = 0x7f0600d8;
public static final int tooltip_horizontal_padding = 0x7f0600d9;
public static final int tooltip_margin = 0x7f0600da;
public static final int tooltip_precise_anchor_extra_offset = 0x7f0600db;
public static final int tooltip_precise_anchor_threshold = 0x7f0600dc;
public static final int tooltip_vertical_padding = 0x7f0600dd;
public static final int tooltip_y_offset_non_touch = 0x7f0600de;
public static final int tooltip_y_offset_touch = 0x7f0600df;
}
public static final class drawable {
private drawable() {}
public static final int abc_ab_share_pack_mtrl_alpha = 0x7f070006;
public static final int abc_action_bar_item_background_material = 0x7f070007;
public static final int abc_btn_borderless_material = 0x7f070008;
public static final int abc_btn_check_material = 0x7f070009;
public static final int abc_btn_check_to_on_mtrl_000 = 0x7f07000a;
public static final int abc_btn_check_to_on_mtrl_015 = 0x7f07000b;
public static final int abc_btn_colored_material = 0x7f07000c;
public static final int abc_btn_default_mtrl_shape = 0x7f07000d;
public static final int abc_btn_radio_material = 0x7f07000e;
public static final int abc_btn_radio_to_on_mtrl_000 = 0x7f07000f;
public static final int abc_btn_radio_to_on_mtrl_015 = 0x7f070010;
public static final int abc_btn_switch_to_on_mtrl_00001 = 0x7f070011;
public static final int abc_btn_switch_to_on_mtrl_00012 = 0x7f070012;
public static final int abc_cab_background_internal_bg = 0x7f070013;
public static final int abc_cab_background_top_material = 0x7f070014;
public static final int abc_cab_background_top_mtrl_alpha = 0x7f070015;
public static final int abc_control_background_material = 0x7f070016;
public static final int abc_dialog_material_background = 0x7f070017;
public static final int abc_edit_text_material = 0x7f070018;
public static final int abc_ic_ab_back_material = 0x7f070019;
public static final int abc_ic_arrow_drop_right_black_24dp = 0x7f07001a;
public static final int abc_ic_clear_material = 0x7f07001b;
public static final int abc_ic_commit_search_api_mtrl_alpha = 0x7f07001c;
public static final int abc_ic_go_search_api_material = 0x7f07001d;
public static final int abc_ic_menu_copy_mtrl_am_alpha = 0x7f07001e;
public static final int abc_ic_menu_cut_mtrl_alpha = 0x7f07001f;
public static final int abc_ic_menu_overflow_material = 0x7f070020;
public static final int abc_ic_menu_paste_mtrl_am_alpha = 0x7f070021;
public static final int abc_ic_menu_selectall_mtrl_alpha = 0x7f070022;
public static final int abc_ic_menu_share_mtrl_alpha = 0x7f070023;
public static final int abc_ic_search_api_material = 0x7f070024;
public static final int abc_ic_star_black_16dp = 0x7f070025;
public static final int abc_ic_star_black_36dp = 0x7f070026;
public static final int abc_ic_star_black_48dp = 0x7f070027;
public static final int abc_ic_star_half_black_16dp = 0x7f070028;
public static final int abc_ic_star_half_black_36dp = 0x7f070029;
public static final int abc_ic_star_half_black_48dp = 0x7f07002a;
public static final int abc_ic_voice_search_api_material = 0x7f07002b;
public static final int abc_item_background_holo_dark = 0x7f07002c;
public static final int abc_item_background_holo_light = 0x7f07002d;
public static final int abc_list_divider_material = 0x7f07002e;
public static final int abc_list_divider_mtrl_alpha = 0x7f07002f;
public static final int abc_list_focused_holo = 0x7f070030;
public static final int abc_list_longpressed_holo = 0x7f070031;
public static final int abc_list_pressed_holo_dark = 0x7f070032;
public static final int abc_list_pressed_holo_light = 0x7f070033;
public static final int abc_list_selector_background_transition_holo_dark = 0x7f070034;
public static final int abc_list_selector_background_transition_holo_light = 0x7f070035;
public static final int abc_list_selector_disabled_holo_dark = 0x7f070036;
public static final int abc_list_selector_disabled_holo_light = 0x7f070037;
public static final int abc_list_selector_holo_dark = 0x7f070038;
public static final int abc_list_selector_holo_light = 0x7f070039;
public static final int abc_menu_hardkey_panel_mtrl_mult = 0x7f07003a;
public static final int abc_popup_background_mtrl_mult = 0x7f07003b;
public static final int abc_ratingbar_indicator_material = 0x7f07003c;
public static final int abc_ratingbar_material = 0x7f07003d;
public static final int abc_ratingbar_small_material = 0x7f07003e;
public static final int abc_scrubber_control_off_mtrl_alpha = 0x7f07003f;
public static final int abc_scrubber_control_to_pressed_mtrl_000 = 0x7f070040;
public static final int abc_scrubber_control_to_pressed_mtrl_005 = 0x7f070041;
public static final int abc_scrubber_primary_mtrl_alpha = 0x7f070042;
public static final int abc_scrubber_track_mtrl_alpha = 0x7f070043;
public static final int abc_seekbar_thumb_material = 0x7f070044;
public static final int abc_seekbar_tick_mark_material = 0x7f070045;
public static final int abc_seekbar_track_material = 0x7f070046;
public static final int abc_spinner_mtrl_am_alpha = 0x7f070047;
public static final int abc_spinner_textfield_background_material = 0x7f070048;
public static final int abc_switch_thumb_material = 0x7f070049;
public static final int abc_switch_track_mtrl_alpha = 0x7f07004a;
public static final int abc_tab_indicator_material = 0x7f07004b;
public static final int abc_tab_indicator_mtrl_alpha = 0x7f07004c;
public static final int abc_text_cursor_material = 0x7f07004d;
public static final int abc_text_select_handle_left_mtrl_dark = 0x7f07004e;
public static final int abc_text_select_handle_left_mtrl_light = 0x7f07004f;
public static final int abc_text_select_handle_middle_mtrl_dark = 0x7f070050;
public static final int abc_text_select_handle_middle_mtrl_light = 0x7f070051;
public static final int abc_text_select_handle_right_mtrl_dark = 0x7f070052;
public static final int abc_text_select_handle_right_mtrl_light = 0x7f070053;
public static final int abc_textfield_activated_mtrl_alpha = 0x7f070054;
public static final int abc_textfield_default_mtrl_alpha = 0x7f070055;
public static final int abc_textfield_search_activated_mtrl_alpha = 0x7f070056;
public static final int abc_textfield_search_default_mtrl_alpha = 0x7f070057;
public static final int abc_textfield_search_material = 0x7f070058;
public static final int abc_vector_test = 0x7f070059;
public static final int notification_action_background = 0x7f07007b;
public static final int notification_bg = 0x7f07007c;
public static final int notification_bg_low = 0x7f07007d;
public static final int notification_bg_low_normal = 0x7f07007e;
public static final int notification_bg_low_pressed = 0x7f07007f;
public static final int notification_bg_normal = 0x7f070080;
public static final int notification_bg_normal_pressed = 0x7f070081;
public static final int notification_icon_background = 0x7f070082;
public static final int notification_template_icon_bg = 0x7f070083;
public static final int notification_template_icon_low_bg = 0x7f070084;
public static final int notification_tile_bg = 0x7f070085;
public static final int notify_panel_notification_icon_bg = 0x7f070086;
public static final int tooltip_frame_dark = 0x7f070087;
public static final int tooltip_frame_light = 0x7f070088;
}
public static final class id {
private id() {}
public static final int action_bar = 0x7f080007;
public static final int action_bar_activity_content = 0x7f080008;
public static final int action_bar_container = 0x7f080009;
public static final int action_bar_root = 0x7f08000a;
public static final int action_bar_spinner = 0x7f08000b;
public static final int action_bar_subtitle = 0x7f08000c;
public static final int action_bar_title = 0x7f08000d;
public static final int action_container = 0x7f08000e;
public static final int action_context_bar = 0x7f08000f;
public static final int action_divider = 0x7f080010;
public static final int action_image = 0x7f080011;
public static final int action_menu_divider = 0x7f080012;
public static final int action_menu_presenter = 0x7f080013;
public static final int action_mode_bar = 0x7f080014;
public static final int action_mode_bar_stub = 0x7f080015;
public static final int action_mode_close_button = 0x7f080016;
public static final int action_text = 0x7f080017;
public static final int actions = 0x7f080018;
public static final int activity_chooser_view_content = 0x7f080019;
public static final int add = 0x7f08001a;
public static final int alertTitle = 0x7f08001b;
public static final int async = 0x7f08001e;
public static final int blocking = 0x7f080022;
public static final int bottom = 0x7f080023;
public static final int buttonPanel = 0x7f080024;
public static final int checkbox = 0x7f08002a;
public static final int chronometer = 0x7f08002b;
public static final int content = 0x7f080030;
public static final int contentPanel = 0x7f080031;
public static final int custom = 0x7f080033;
public static final int customPanel = 0x7f080034;
public static final int decor_content_parent = 0x7f080035;
public static final int default_activity_button = 0x7f080036;
public static final int edit_query = 0x7f080040;
public static final int end = 0x7f080041;
public static final int expand_activities_button = 0x7f080047;
public static final int expanded_menu = 0x7f080048;
public static final int forever = 0x7f08004f;
public static final int group_divider = 0x7f080053;
public static final int home = 0x7f080055;
public static final int icon = 0x7f080057;
public static final int icon_group = 0x7f080058;
public static final int image = 0x7f08005a;
public static final int info = 0x7f08005c;
public static final int italic = 0x7f08005e;
public static final int left = 0x7f080066;
public static final int line1 = 0x7f080067;
public static final int line3 = 0x7f080068;
public static final int listMode = 0x7f080069;
public static final int list_item = 0x7f08006a;
public static final int message = 0x7f080070;
public static final int multiply = 0x7f080075;
public static final int none = 0x7f08007d;
public static final int normal = 0x7f08007e;
public static final int notification_background = 0x7f08007f;
public static final int notification_main_column = 0x7f080080;
public static final int notification_main_column_container = 0x7f080081;
public static final int parentPanel = 0x7f080086;
public static final int progress_circular = 0x7f08008a;
public static final int progress_horizontal = 0x7f08008b;
public static final int radio = 0x7f08008c;
public static final int right = 0x7f08008d;
public static final int right_icon = 0x7f08008e;
public static final int right_side = 0x7f08008f;
public static final int screen = 0x7f080097;
public static final int scrollIndicatorDown = 0x7f080099;
public static final int scrollIndicatorUp = 0x7f08009a;
public static final int scrollView = 0x7f08009b;
public static final int search_badge = 0x7f08009d;
public static final int search_bar = 0x7f08009e;
public static final int search_button = 0x7f08009f;
public static final int search_close_btn = 0x7f0800a0;
public static final int search_edit_frame = 0x7f0800a1;
public static final int search_go_btn = 0x7f0800a2;
public static final int search_mag_icon = 0x7f0800a3;
public static final int search_plate = 0x7f0800a4;
public static final int search_src_text = 0x7f0800a5;
public static final int search_voice_btn = 0x7f0800a6;
public static final int select_dialog_listview = 0x7f0800a7;
public static final int shortcut = 0x7f0800a9;
public static final int spacer = 0x7f0800b2;
public static final int split_action_bar = 0x7f0800b3;
public static final int src_atop = 0x7f0800b6;
public static final int src_in = 0x7f0800b7;
public static final int src_over = 0x7f0800b8;
public static final int start = 0x7f0800bb;
public static final int submenuarrow = 0x7f0800be;
public static final int submit_area = 0x7f0800bf;
public static final int tabMode = 0x7f0800c1;
public static final int tag_transition_group = 0x7f0800c2;
public static final int tag_unhandled_key_event_manager = 0x7f0800c3;
public static final int tag_unhandled_key_listeners = 0x7f0800c4;
public static final int text = 0x7f0800c5;
public static final int text2 = 0x7f0800c6;
public static final int textSpacerNoButtons = 0x7f0800c7;
public static final int textSpacerNoTitle = 0x7f0800c8;
public static final int time = 0x7f0800ce;
public static final int title = 0x7f0800cf;
public static final int titleDividerNoCustom = 0x7f0800d0;
public static final int title_template = 0x7f0800d1;
public static final int top = 0x7f0800d3;
public static final int topPanel = 0x7f0800d4;
public static final int uniform = 0x7f0800e3;
public static final int up = 0x7f0800e5;
public static final int wrap_content = 0x7f0800eb;
}
public static final class integer {
private integer() {}
public static final int abc_config_activityDefaultDur = 0x7f090000;
public static final int abc_config_activityShortDur = 0x7f090001;
public static final int cancel_button_image_alpha = 0x7f090004;
public static final int config_tooltipAnimTime = 0x7f090005;
public static final int status_bar_notification_info_maxnum = 0x7f09000e;
}
public static final class layout {
private layout() {}
public static final int abc_action_bar_title_item = 0x7f0b0000;
public static final int abc_action_bar_up_container = 0x7f0b0001;
public static final int abc_action_menu_item_layout = 0x7f0b0002;
public static final int abc_action_menu_layout = 0x7f0b0003;
public static final int abc_action_mode_bar = 0x7f0b0004;
public static final int abc_action_mode_close_item_material = 0x7f0b0005;
public static final int abc_activity_chooser_view = 0x7f0b0006;
public static final int abc_activity_chooser_view_list_item = 0x7f0b0007;
public static final int abc_alert_dialog_button_bar_material = 0x7f0b0008;
public static final int abc_alert_dialog_material = 0x7f0b0009;
public static final int abc_alert_dialog_title_material = 0x7f0b000a;
public static final int abc_cascading_menu_item_layout = 0x7f0b000b;
public static final int abc_dialog_title_material = 0x7f0b000c;
public static final int abc_expanded_menu_layout = 0x7f0b000d;
public static final int abc_list_menu_item_checkbox = 0x7f0b000e;
public static final int abc_list_menu_item_icon = 0x7f0b000f;
public static final int abc_list_menu_item_layout = 0x7f0b0010;
public static final int abc_list_menu_item_radio = 0x7f0b0011;
public static final int abc_popup_menu_header_item_layout = 0x7f0b0012;
public static final int abc_popup_menu_item_layout = 0x7f0b0013;
public static final int abc_screen_content_include = 0x7f0b0014;
public static final int abc_screen_simple = 0x7f0b0015;
public static final int abc_screen_simple_overlay_action_mode = 0x7f0b0016;
public static final int abc_screen_toolbar = 0x7f0b0017;
public static final int abc_search_dropdown_item_icons_2line = 0x7f0b0018;
public static final int abc_search_view = 0x7f0b0019;
public static final int abc_select_dialog_material = 0x7f0b001a;
public static final int abc_tooltip = 0x7f0b001b;
public static final int notification_action = 0x7f0b0032;
public static final int notification_action_tombstone = 0x7f0b0033;
public static final int notification_template_custom_big = 0x7f0b003a;
public static final int notification_template_icon_group = 0x7f0b003b;
public static final int notification_template_part_chronometer = 0x7f0b003f;
public static final int notification_template_part_time = 0x7f0b0040;
public static final int select_dialog_item_material = 0x7f0b0041;
public static final int select_dialog_multichoice_material = 0x7f0b0042;
public static final int select_dialog_singlechoice_material = 0x7f0b0043;
public static final int support_simple_spinner_dropdown_item = 0x7f0b0044;
}
public static final class string {
private string() {}
public static final int abc_action_bar_home_description = 0x7f0e0000;
public static final int abc_action_bar_up_description = 0x7f0e0001;
public static final int abc_action_menu_overflow_description = 0x7f0e0002;
public static final int abc_action_mode_done = 0x7f0e0003;
public static final int abc_activity_chooser_view_see_all = 0x7f0e0004;
public static final int abc_activitychooserview_choose_application = 0x7f0e0005;
public static final int abc_capital_off = 0x7f0e0006;
public static final int abc_capital_on = 0x7f0e0007;
public static final int abc_font_family_body_1_material = 0x7f0e0008;
public static final int abc_font_family_body_2_material = 0x7f0e0009;
public static final int abc_font_family_button_material = 0x7f0e000a;
public static final int abc_font_family_caption_material = 0x7f0e000b;
public static final int abc_font_family_display_1_material = 0x7f0e000c;
public static final int abc_font_family_display_2_material = 0x7f0e000d;
public static final int abc_font_family_display_3_material = 0x7f0e000e;
public static final int abc_font_family_display_4_material = 0x7f0e000f;
public static final int abc_font_family_headline_material = 0x7f0e0010;
public static final int abc_font_family_menu_material = 0x7f0e0011;
public static final int abc_font_family_subhead_material = 0x7f0e0012;
public static final int abc_font_family_title_material = 0x7f0e0013;
public static final int abc_menu_alt_shortcut_label = 0x7f0e0014;
public static final int abc_menu_ctrl_shortcut_label = 0x7f0e0015;
public static final int abc_menu_delete_shortcut_label = 0x7f0e0016;
public static final int abc_menu_enter_shortcut_label = 0x7f0e0017;
public static final int abc_menu_function_shortcut_label = 0x7f0e0018;
public static final int abc_menu_meta_shortcut_label = 0x7f0e0019;
public static final int abc_menu_shift_shortcut_label = 0x7f0e001a;
public static final int abc_menu_space_shortcut_label = 0x7f0e001b;
public static final int abc_menu_sym_shortcut_label = 0x7f0e001c;
public static final int abc_prepend_shortcut_label = 0x7f0e001d;
public static final int abc_search_hint = 0x7f0e001e;
public static final int abc_searchview_description_clear = 0x7f0e001f;
public static final int abc_searchview_description_query = 0x7f0e0020;
public static final int abc_searchview_description_search = 0x7f0e0021;
public static final int abc_searchview_description_submit = 0x7f0e0022;
public static final int abc_searchview_description_voice = 0x7f0e0023;
public static final int abc_shareactionprovider_share_with = 0x7f0e0024;
public static final int abc_shareactionprovider_share_with_application = 0x7f0e0025;
public static final int abc_toolbar_collapse_description = 0x7f0e0026;
public static final int search_menu_title = 0x7f0e0039;
public static final int status_bar_notification_info_overflow = 0x7f0e003a;
}
public static final class style {
private style() {}
public static final int AlertDialog_AppCompat = 0x7f0f0000;
public static final int AlertDialog_AppCompat_Light = 0x7f0f0001;
public static final int Animation_AppCompat_Dialog = 0x7f0f0002;
public static final int Animation_AppCompat_DropDownUp = 0x7f0f0003;
public static final int Animation_AppCompat_Tooltip = 0x7f0f0004;
public static final int Base_AlertDialog_AppCompat = 0x7f0f000a;
public static final int Base_AlertDialog_AppCompat_Light = 0x7f0f000b;
public static final int Base_Animation_AppCompat_Dialog = 0x7f0f000c;
public static final int Base_Animation_AppCompat_DropDownUp = 0x7f0f000d;
public static final int Base_Animation_AppCompat_Tooltip = 0x7f0f000e;
public static final int Base_DialogWindowTitleBackground_AppCompat = 0x7f0f0011;
public static final int Base_DialogWindowTitle_AppCompat = 0x7f0f0010;
public static final int Base_TextAppearance_AppCompat = 0x7f0f0012;
public static final int Base_TextAppearance_AppCompat_Body1 = 0x7f0f0013;
public static final int Base_TextAppearance_AppCompat_Body2 = 0x7f0f0014;
public static final int Base_TextAppearance_AppCompat_Button = 0x7f0f0015;
public static final int Base_TextAppearance_AppCompat_Caption = 0x7f0f0016;
public static final int Base_TextAppearance_AppCompat_Display1 = 0x7f0f0017;
public static final int Base_TextAppearance_AppCompat_Display2 = 0x7f0f0018;
public static final int Base_TextAppearance_AppCompat_Display3 = 0x7f0f0019;
public static final int Base_TextAppearance_AppCompat_Display4 = 0x7f0f001a;
public static final int Base_TextAppearance_AppCompat_Headline = 0x7f0f001b;
public static final int Base_TextAppearance_AppCompat_Inverse = 0x7f0f001c;
public static final int Base_TextAppearance_AppCompat_Large = 0x7f0f001d;
public static final int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f0f001e;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0f001f;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0f0020;
public static final int Base_TextAppearance_AppCompat_Medium = 0x7f0f0021;
public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f0f0022;
public static final int Base_TextAppearance_AppCompat_Menu = 0x7f0f0023;
public static final int Base_TextAppearance_AppCompat_SearchResult = 0x7f0f0024;
public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0f0025;
public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f0f0026;
public static final int Base_TextAppearance_AppCompat_Small = 0x7f0f0027;
public static final int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f0f0028;
public static final int Base_TextAppearance_AppCompat_Subhead = 0x7f0f0029;
public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f0f002a;
public static final int Base_TextAppearance_AppCompat_Title = 0x7f0f002b;
public static final int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f0f002c;
public static final int Base_TextAppearance_AppCompat_Tooltip = 0x7f0f002d;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0f002e;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0f002f;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0f0030;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0f0031;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0f0032;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0f0033;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0f0034;
public static final int Base_TextAppearance_AppCompat_Widget_Button = 0x7f0f0035;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f0f0036;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Colored = 0x7f0f0037;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0f0038;
public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0f0039;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0f003a;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0f003b;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0f003c;
public static final int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f0f003d;
public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0f003e;
public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0f003f;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0f0040;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0f0041;
public static final int Base_ThemeOverlay_AppCompat = 0x7f0f0061;
public static final int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f0f0062;
public static final int Base_ThemeOverlay_AppCompat_Dark = 0x7f0f0063;
public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0f0064;
public static final int Base_ThemeOverlay_AppCompat_Dialog = 0x7f0f0065;
public static final int Base_ThemeOverlay_AppCompat_Dialog_Alert = 0x7f0f0066;
public static final int Base_ThemeOverlay_AppCompat_Light = 0x7f0f0067;
public static final int Base_Theme_AppCompat = 0x7f0f0042;
public static final int Base_Theme_AppCompat_CompactMenu = 0x7f0f0043;
public static final int Base_Theme_AppCompat_Dialog = 0x7f0f0044;
public static final int Base_Theme_AppCompat_DialogWhenLarge = 0x7f0f0048;
public static final int Base_Theme_AppCompat_Dialog_Alert = 0x7f0f0045;
public static final int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f0f0046;
public static final int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f0f0047;
public static final int Base_Theme_AppCompat_Light = 0x7f0f0049;
public static final int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f0f004a;
public static final int Base_Theme_AppCompat_Light_Dialog = 0x7f0f004b;
public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f0f004f;
public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f0f004c;
public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f0f004d;
public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0f004e;
public static final int Base_V21_ThemeOverlay_AppCompat_Dialog = 0x7f0f0077;
public static final int Base_V21_Theme_AppCompat = 0x7f0f0073;
public static final int Base_V21_Theme_AppCompat_Dialog = 0x7f0f0074;
public static final int Base_V21_Theme_AppCompat_Light = 0x7f0f0075;
public static final int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f0f0076;
public static final int Base_V22_Theme_AppCompat = 0x7f0f0078;
public static final int Base_V22_Theme_AppCompat_Light = 0x7f0f0079;
public static final int Base_V23_Theme_AppCompat = 0x7f0f007a;
public static final int Base_V23_Theme_AppCompat_Light = 0x7f0f007b;
public static final int Base_V26_Theme_AppCompat = 0x7f0f007c;
public static final int Base_V26_Theme_AppCompat_Light = 0x7f0f007d;
public static final int Base_V26_Widget_AppCompat_Toolbar = 0x7f0f007e;
public static final int Base_V28_Theme_AppCompat = 0x7f0f007f;
public static final int Base_V28_Theme_AppCompat_Light = 0x7f0f0080;
public static final int Base_V7_ThemeOverlay_AppCompat_Dialog = 0x7f0f0085;
public static final int Base_V7_Theme_AppCompat = 0x7f0f0081;
public static final int Base_V7_Theme_AppCompat_Dialog = 0x7f0f0082;
public static final int Base_V7_Theme_AppCompat_Light = 0x7f0f0083;
public static final int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f0f0084;
public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f0f0086;
public static final int Base_V7_Widget_AppCompat_EditText = 0x7f0f0087;
public static final int Base_V7_Widget_AppCompat_Toolbar = 0x7f0f0088;
public static final int Base_Widget_AppCompat_ActionBar = 0x7f0f0089;
public static final int Base_Widget_AppCompat_ActionBar_Solid = 0x7f0f008a;
public static final int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f0f008b;
public static final int Base_Widget_AppCompat_ActionBar_TabText = 0x7f0f008c;
public static final int Base_Widget_AppCompat_ActionBar_TabView = 0x7f0f008d;
public static final int Base_Widget_AppCompat_ActionButton = 0x7f0f008e;
public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f0f008f;
public static final int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f0f0090;
public static final int Base_Widget_AppCompat_ActionMode = 0x7f0f0091;
public static final int Base_Widget_AppCompat_ActivityChooserView = 0x7f0f0092;
public static final int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f0f0093;
public static final int Base_Widget_AppCompat_Button = 0x7f0f0094;
public static final int Base_Widget_AppCompat_ButtonBar = 0x7f0f009a;
public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0f009b;
public static final int Base_Widget_AppCompat_Button_Borderless = 0x7f0f0095;
public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f0f0096;
public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0f0097;
public static final int Base_Widget_AppCompat_Button_Colored = 0x7f0f0098;
public static final int Base_Widget_AppCompat_Button_Small = 0x7f0f0099;
public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f0f009c;
public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f0f009d;
public static final int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f0f009e;
public static final int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f0f009f;
public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f0f00a0;
public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f0f00a1;
public static final int Base_Widget_AppCompat_EditText = 0x7f0f00a2;
public static final int Base_Widget_AppCompat_ImageButton = 0x7f0f00a3;
public static final int Base_Widget_AppCompat_Light_ActionBar = 0x7f0f00a4;
public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f0f00a5;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0f00a6;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f0f00a7;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0f00a8;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f0f00a9;
public static final int Base_Widget_AppCompat_Light_PopupMenu = 0x7f0f00aa;
public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0f00ab;
public static final int Base_Widget_AppCompat_ListMenuView = 0x7f0f00ac;
public static final int Base_Widget_AppCompat_ListPopupWindow = 0x7f0f00ad;
public static final int Base_Widget_AppCompat_ListView = 0x7f0f00ae;
public static final int Base_Widget_AppCompat_ListView_DropDown = 0x7f0f00af;
public static final int Base_Widget_AppCompat_ListView_Menu = 0x7f0f00b0;
public static final int Base_Widget_AppCompat_PopupMenu = 0x7f0f00b1;
public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f0f00b2;
public static final int Base_Widget_AppCompat_PopupWindow = 0x7f0f00b3;
public static final int Base_Widget_AppCompat_ProgressBar = 0x7f0f00b4;
public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f0f00b5;
public static final int Base_Widget_AppCompat_RatingBar = 0x7f0f00b6;
public static final int Base_Widget_AppCompat_RatingBar_Indicator = 0x7f0f00b7;
public static final int Base_Widget_AppCompat_RatingBar_Small = 0x7f0f00b8;
public static final int Base_Widget_AppCompat_SearchView = 0x7f0f00b9;
public static final int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f0f00ba;
public static final int Base_Widget_AppCompat_SeekBar = 0x7f0f00bb;
public static final int Base_Widget_AppCompat_SeekBar_Discrete = 0x7f0f00bc;
public static final int Base_Widget_AppCompat_Spinner = 0x7f0f00bd;
public static final int Base_Widget_AppCompat_Spinner_Underlined = 0x7f0f00be;
public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f0f00bf;
public static final int Base_Widget_AppCompat_Toolbar = 0x7f0f00c0;
public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0f00c1;
public static final int Platform_AppCompat = 0x7f0f00ca;
public static final int Platform_AppCompat_Light = 0x7f0f00cb;
public static final int Platform_ThemeOverlay_AppCompat = 0x7f0f00d0;
public static final int Platform_ThemeOverlay_AppCompat_Dark = 0x7f0f00d1;
public static final int Platform_ThemeOverlay_AppCompat_Light = 0x7f0f00d2;
public static final int Platform_V21_AppCompat = 0x7f0f00d3;
public static final int Platform_V21_AppCompat_Light = 0x7f0f00d4;
public static final int Platform_V25_AppCompat = 0x7f0f00d5;
public static final int Platform_V25_AppCompat_Light = 0x7f0f00d6;
public static final int Platform_Widget_AppCompat_Spinner = 0x7f0f00d7;
public static final int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f0f00d8;
public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f0f00d9;
public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f0f00da;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f0f00db;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f0f00dc;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Shortcut = 0x7f0f00dd;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_SubmenuArrow = 0x7f0f00de;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f0f00df;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Title = 0x7f0f00e0;
public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f0f00e6;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f0f00e1;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f0f00e2;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f0f00e3;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f0f00e4;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f0f00e5;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 0x7f0f00e7;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 0x7f0f00e8;
public static final int TextAppearance_AppCompat = 0x7f0f00e9;
public static final int TextAppearance_AppCompat_Body1 = 0x7f0f00ea;
public static final int TextAppearance_AppCompat_Body2 = 0x7f0f00eb;
public static final int TextAppearance_AppCompat_Button = 0x7f0f00ec;
public static final int TextAppearance_AppCompat_Caption = 0x7f0f00ed;
public static final int TextAppearance_AppCompat_Display1 = 0x7f0f00ee;
public static final int TextAppearance_AppCompat_Display2 = 0x7f0f00ef;
public static final int TextAppearance_AppCompat_Display3 = 0x7f0f00f0;
public static final int TextAppearance_AppCompat_Display4 = 0x7f0f00f1;
public static final int TextAppearance_AppCompat_Headline = 0x7f0f00f2;
public static final int TextAppearance_AppCompat_Inverse = 0x7f0f00f3;
public static final int TextAppearance_AppCompat_Large = 0x7f0f00f4;
public static final int TextAppearance_AppCompat_Large_Inverse = 0x7f0f00f5;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0f00f6;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0f00f7;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0f00f8;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0f00f9;
public static final int TextAppearance_AppCompat_Medium = 0x7f0f00fa;
public static final int TextAppearance_AppCompat_Medium_Inverse = 0x7f0f00fb;
public static final int TextAppearance_AppCompat_Menu = 0x7f0f00fc;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0f00fd;
public static final int TextAppearance_AppCompat_SearchResult_Title = 0x7f0f00fe;
public static final int TextAppearance_AppCompat_Small = 0x7f0f00ff;
public static final int TextAppearance_AppCompat_Small_Inverse = 0x7f0f0100;
public static final int TextAppearance_AppCompat_Subhead = 0x7f0f0101;
public static final int TextAppearance_AppCompat_Subhead_Inverse = 0x7f0f0102;
public static final int TextAppearance_AppCompat_Title = 0x7f0f0103;
public static final int TextAppearance_AppCompat_Title_Inverse = 0x7f0f0104;
public static final int TextAppearance_AppCompat_Tooltip = 0x7f0f0105;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0f0106;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0f0107;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0f0108;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0f0109;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0f010a;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0f010b;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f0f010c;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0f010d;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f0f010e;
public static final int TextAppearance_AppCompat_Widget_Button = 0x7f0f010f;
public static final int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f0f0110;
public static final int TextAppearance_AppCompat_Widget_Button_Colored = 0x7f0f0111;
public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0f0112;
public static final int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0f0113;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0f0114;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0f0115;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0f0116;
public static final int TextAppearance_AppCompat_Widget_Switch = 0x7f0f0117;
public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0f0118;
public static final int TextAppearance_Compat_Notification = 0x7f0f0119;
public static final int TextAppearance_Compat_Notification_Info = 0x7f0f011a;
public static final int TextAppearance_Compat_Notification_Line2 = 0x7f0f011c;
public static final int TextAppearance_Compat_Notification_Time = 0x7f0f011f;
public static final int TextAppearance_Compat_Notification_Title = 0x7f0f0121;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0f013a;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0f013b;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0f013c;
public static final int ThemeOverlay_AppCompat = 0x7f0f016d;
public static final int ThemeOverlay_AppCompat_ActionBar = 0x7f0f016e;
public static final int ThemeOverlay_AppCompat_Dark = 0x7f0f016f;
public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0f0170;
public static final int ThemeOverlay_AppCompat_Dialog = 0x7f0f0171;
public static final int ThemeOverlay_AppCompat_Dialog_Alert = 0x7f0f0172;
public static final int ThemeOverlay_AppCompat_Light = 0x7f0f0173;
public static final int Theme_AppCompat = 0x7f0f013d;
public static final int Theme_AppCompat_CompactMenu = 0x7f0f013e;
public static final int Theme_AppCompat_DayNight = 0x7f0f013f;
public static final int Theme_AppCompat_DayNight_DarkActionBar = 0x7f0f0140;
public static final int Theme_AppCompat_DayNight_Dialog = 0x7f0f0141;
public static final int Theme_AppCompat_DayNight_DialogWhenLarge = 0x7f0f0144;
public static final int Theme_AppCompat_DayNight_Dialog_Alert = 0x7f0f0142;
public static final int Theme_AppCompat_DayNight_Dialog_MinWidth = 0x7f0f0143;
public static final int Theme_AppCompat_DayNight_NoActionBar = 0x7f0f0145;
public static final int Theme_AppCompat_Dialog = 0x7f0f0146;
public static final int Theme_AppCompat_DialogWhenLarge = 0x7f0f0149;
public static final int Theme_AppCompat_Dialog_Alert = 0x7f0f0147;
public static final int Theme_AppCompat_Dialog_MinWidth = 0x7f0f0148;
public static final int Theme_AppCompat_Light = 0x7f0f014a;
public static final int Theme_AppCompat_Light_DarkActionBar = 0x7f0f014b;
public static final int Theme_AppCompat_Light_Dialog = 0x7f0f014c;
public static final int Theme_AppCompat_Light_DialogWhenLarge = 0x7f0f014f;
public static final int Theme_AppCompat_Light_Dialog_Alert = 0x7f0f014d;
public static final int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0f014e;
public static final int Theme_AppCompat_Light_NoActionBar = 0x7f0f0150;
public static final int Theme_AppCompat_NoActionBar = 0x7f0f0151;
public static final int Widget_AppCompat_ActionBar = 0x7f0f0180;
public static final int Widget_AppCompat_ActionBar_Solid = 0x7f0f0181;
public static final int Widget_AppCompat_ActionBar_TabBar = 0x7f0f0182;
public static final int Widget_AppCompat_ActionBar_TabText = 0x7f0f0183;
public static final int Widget_AppCompat_ActionBar_TabView = 0x7f0f0184;
public static final int Widget_AppCompat_ActionButton = 0x7f0f0185;
public static final int Widget_AppCompat_ActionButton_CloseMode = 0x7f0f0186;
public static final int Widget_AppCompat_ActionButton_Overflow = 0x7f0f0187;
public static final int Widget_AppCompat_ActionMode = 0x7f0f0188;
public static final int Widget_AppCompat_ActivityChooserView = 0x7f0f0189;
public static final int Widget_AppCompat_AutoCompleteTextView = 0x7f0f018a;
public static final int Widget_AppCompat_Button = 0x7f0f018b;
public static final int Widget_AppCompat_ButtonBar = 0x7f0f0191;
public static final int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0f0192;
public static final int Widget_AppCompat_Button_Borderless = 0x7f0f018c;
public static final int Widget_AppCompat_Button_Borderless_Colored = 0x7f0f018d;
public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0f018e;
public static final int Widget_AppCompat_Button_Colored = 0x7f0f018f;
public static final int Widget_AppCompat_Button_Small = 0x7f0f0190;
public static final int Widget_AppCompat_CompoundButton_CheckBox = 0x7f0f0193;
public static final int Widget_AppCompat_CompoundButton_RadioButton = 0x7f0f0194;
public static final int Widget_AppCompat_CompoundButton_Switch = 0x7f0f0195;
public static final int Widget_AppCompat_DrawerArrowToggle = 0x7f0f0196;
public static final int Widget_AppCompat_DropDownItem_Spinner = 0x7f0f0197;
public static final int Widget_AppCompat_EditText = 0x7f0f0198;
public static final int Widget_AppCompat_ImageButton = 0x7f0f0199;
public static final int Widget_AppCompat_Light_ActionBar = 0x7f0f019a;
public static final int Widget_AppCompat_Light_ActionBar_Solid = 0x7f0f019b;
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f0f019c;
public static final int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0f019d;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f0f019e;
public static final int Widget_AppCompat_Light_ActionBar_TabText = 0x7f0f019f;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0f01a0;
public static final int Widget_AppCompat_Light_ActionBar_TabView = 0x7f0f01a1;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f0f01a2;
public static final int Widget_AppCompat_Light_ActionButton = 0x7f0f01a3;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f0f01a4;
public static final int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f0f01a5;
public static final int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f0f01a6;
public static final int Widget_AppCompat_Light_ActivityChooserView = 0x7f0f01a7;
public static final int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f0f01a8;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f0f01a9;
public static final int Widget_AppCompat_Light_ListPopupWindow = 0x7f0f01aa;
public static final int Widget_AppCompat_Light_ListView_DropDown = 0x7f0f01ab;
public static final int Widget_AppCompat_Light_PopupMenu = 0x7f0f01ac;
public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0f01ad;
public static final int Widget_AppCompat_Light_SearchView = 0x7f0f01ae;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f0f01af;
public static final int Widget_AppCompat_ListMenuView = 0x7f0f01b0;
public static final int Widget_AppCompat_ListPopupWindow = 0x7f0f01b1;
public static final int Widget_AppCompat_ListView = 0x7f0f01b2;
public static final int Widget_AppCompat_ListView_DropDown = 0x7f0f01b3;
public static final int Widget_AppCompat_ListView_Menu = 0x7f0f01b4;
public static final int Widget_AppCompat_PopupMenu = 0x7f0f01b5;
public static final int Widget_AppCompat_PopupMenu_Overflow = 0x7f0f01b6;
public static final int Widget_AppCompat_PopupWindow = 0x7f0f01b7;
public static final int Widget_AppCompat_ProgressBar = 0x7f0f01b8;
public static final int Widget_AppCompat_ProgressBar_Horizontal = 0x7f0f01b9;
public static final int Widget_AppCompat_RatingBar = 0x7f0f01ba;
public static final int Widget_AppCompat_RatingBar_Indicator = 0x7f0f01bb;
public static final int Widget_AppCompat_RatingBar_Small = 0x7f0f01bc;
public static final int Widget_AppCompat_SearchView = 0x7f0f01bd;
public static final int Widget_AppCompat_SearchView_ActionBar = 0x7f0f01be;
public static final int Widget_AppCompat_SeekBar = 0x7f0f01bf;
public static final int Widget_AppCompat_SeekBar_Discrete = 0x7f0f01c0;
public static final int Widget_AppCompat_Spinner = 0x7f0f01c1;
public static final int Widget_AppCompat_Spinner_DropDown = 0x7f0f01c2;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f0f01c3;
public static final int Widget_AppCompat_Spinner_Underlined = 0x7f0f01c4;
public static final int Widget_AppCompat_TextView_SpinnerItem = 0x7f0f01c5;
public static final int Widget_AppCompat_Toolbar = 0x7f0f01c6;
public static final int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0f01c7;
public static final int Widget_Compat_NotificationActionContainer = 0x7f0f01c8;
public static final int Widget_Compat_NotificationActionText = 0x7f0f01c9;
public static final int Widget_Support_CoordinatorLayout = 0x7f0f01f8;
}
public static final class styleable {
private styleable() {}
public static final int[] ActionBar = { 0x7f030031, 0x7f030032, 0x7f030033, 0x7f030097, 0x7f030098, 0x7f030099, 0x7f03009a, 0x7f03009b, 0x7f03009c, 0x7f0300aa, 0x7f0300af, 0x7f0300b0, 0x7f0300bb, 0x7f0300e6, 0x7f0300eb, 0x7f0300f0, 0x7f0300f1, 0x7f0300f3, 0x7f0300fd, 0x7f030107, 0x7f03015c, 0x7f030168, 0x7f030179, 0x7f03017d, 0x7f03017e, 0x7f0301ac, 0x7f0301af, 0x7f0301f4, 0x7f0301fe };
public static final int ActionBar_background = 0;
public static final int ActionBar_backgroundSplit = 1;
public static final int ActionBar_backgroundStacked = 2;
public static final int ActionBar_contentInsetEnd = 3;
public static final int ActionBar_contentInsetEndWithActions = 4;
public static final int ActionBar_contentInsetLeft = 5;
public static final int ActionBar_contentInsetRight = 6;
public static final int ActionBar_contentInsetStart = 7;
public static final int ActionBar_contentInsetStartWithNavigation = 8;
public static final int ActionBar_customNavigationLayout = 9;
public static final int ActionBar_displayOptions = 10;
public static final int ActionBar_divider = 11;
public static final int ActionBar_elevation = 12;
public static final int ActionBar_height = 13;
public static final int ActionBar_hideOnContentScroll = 14;
public static final int ActionBar_homeAsUpIndicator = 15;
public static final int ActionBar_homeLayout = 16;
public static final int ActionBar_icon = 17;
public static final int ActionBar_indeterminateProgressStyle = 18;
public static final int ActionBar_itemPadding = 19;
public static final int ActionBar_logo = 20;
public static final int ActionBar_navigationMode = 21;
public static final int ActionBar_popupTheme = 22;
public static final int ActionBar_progressBarPadding = 23;
public static final int ActionBar_progressBarStyle = 24;
public static final int ActionBar_subtitle = 25;
public static final int ActionBar_subtitleTextStyle = 26;
public static final int ActionBar_title = 27;
public static final int ActionBar_titleTextStyle = 28;
public static final int[] ActionBarLayout = { 0x10100b3 };
public static final int ActionBarLayout_android_layout_gravity = 0;
public static final int[] ActionMenuItemView = { 0x101013f };
public static final int ActionMenuItemView_android_minWidth = 0;
public static final int[] ActionMenuView = { };
public static final int[] ActionMode = { 0x7f030031, 0x7f030032, 0x7f030081, 0x7f0300e6, 0x7f0301af, 0x7f0301fe };
public static final int ActionMode_background = 0;
public static final int ActionMode_backgroundSplit = 1;
public static final int ActionMode_closeItemLayout = 2;
public static final int ActionMode_height = 3;
public static final int ActionMode_subtitleTextStyle = 4;
public static final int ActionMode_titleTextStyle = 5;
public static final int[] ActivityChooserView = { 0x7f0300c1, 0x7f0300fe };
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 0;
public static final int ActivityChooserView_initialActivityCount = 1;
public static final int[] AlertDialog = { 0x10100f2, 0x7f030054, 0x7f030055, 0x7f030153, 0x7f030154, 0x7f030165, 0x7f030194, 0x7f030195 };
public static final int AlertDialog_android_layout = 0;
public static final int AlertDialog_buttonIconDimen = 1;
public static final int AlertDialog_buttonPanelSideLayout = 2;
public static final int AlertDialog_listItemLayout = 3;
public static final int AlertDialog_listLayout = 4;
public static final int AlertDialog_multiChoiceItemLayout = 5;
public static final int AlertDialog_showTitle = 6;
public static final int AlertDialog_singleChoiceItemLayout = 7;
public static final int[] AnimatedStateListDrawableCompat = { 0x101011c, 0x1010194, 0x1010195, 0x1010196, 0x101030c, 0x101030d };
public static final int AnimatedStateListDrawableCompat_android_dither = 0;
public static final int AnimatedStateListDrawableCompat_android_visible = 1;
public static final int AnimatedStateListDrawableCompat_android_variablePadding = 2;
public static final int AnimatedStateListDrawableCompat_android_constantSize = 3;
public static final int AnimatedStateListDrawableCompat_android_enterFadeDuration = 4;
public static final int AnimatedStateListDrawableCompat_android_exitFadeDuration = 5;
public static final int[] AnimatedStateListDrawableItem = { 0x10100d0, 0x1010199 };
public static final int AnimatedStateListDrawableItem_android_id = 0;
public static final int AnimatedStateListDrawableItem_android_drawable = 1;
public static final int[] AnimatedStateListDrawableTransition = { 0x1010199, 0x1010449, 0x101044a, 0x101044b };
public static final int AnimatedStateListDrawableTransition_android_drawable = 0;
public static final int AnimatedStateListDrawableTransition_android_toId = 1;
public static final int AnimatedStateListDrawableTransition_android_fromId = 2;
public static final int AnimatedStateListDrawableTransition_android_reversible = 3;
public static final int[] AppCompatImageView = { 0x1010119, 0x7f03019f, 0x7f0301f2, 0x7f0301f3 };
public static final int AppCompatImageView_android_src = 0;
public static final int AppCompatImageView_srcCompat = 1;
public static final int AppCompatImageView_tint = 2;
public static final int AppCompatImageView_tintMode = 3;
public static final int[] AppCompatSeekBar = { 0x1010142, 0x7f0301ef, 0x7f0301f0, 0x7f0301f1 };
public static final int AppCompatSeekBar_android_thumb = 0;
public static final int AppCompatSeekBar_tickMark = 1;
public static final int AppCompatSeekBar_tickMarkTint = 2;
public static final int AppCompatSeekBar_tickMarkTintMode = 3;
public static final int[] AppCompatTextHelper = { 0x1010034, 0x101016d, 0x101016e, 0x101016f, 0x1010170, 0x1010392, 0x1010393 };
public static final int AppCompatTextHelper_android_textAppearance = 0;
public static final int AppCompatTextHelper_android_drawableTop = 1;
public static final int AppCompatTextHelper_android_drawableBottom = 2;
public static final int AppCompatTextHelper_android_drawableLeft = 3;
public static final int AppCompatTextHelper_android_drawableRight = 4;
public static final int AppCompatTextHelper_android_drawableStart = 5;
public static final int AppCompatTextHelper_android_drawableEnd = 6;
public static final int[] AppCompatTextView = { 0x1010034, 0x7f03002c, 0x7f03002d, 0x7f03002e, 0x7f03002f, 0x7f030030, 0x7f0300d5, 0x7f0300d8, 0x7f03010f, 0x7f03014f, 0x7f0301cf };
public static final int AppCompatTextView_android_textAppearance = 0;
public static final int AppCompatTextView_autoSizeMaxTextSize = 1;
public static final int AppCompatTextView_autoSizeMinTextSize = 2;
public static final int AppCompatTextView_autoSizePresetSizes = 3;
public static final int AppCompatTextView_autoSizeStepGranularity = 4;
public static final int AppCompatTextView_autoSizeTextType = 5;
public static final int AppCompatTextView_firstBaselineToTopHeight = 6;
public static final int AppCompatTextView_fontFamily = 7;
public static final int AppCompatTextView_lastBaselineToBottomHeight = 8;
public static final int AppCompatTextView_lineHeight = 9;
public static final int AppCompatTextView_textAllCaps = 10;
public static final int[] AppCompatTheme = { 0x1010057, 0x10100ae, 0x7f030000, 0x7f030001, 0x7f030002, 0x7f030003, 0x7f030004, 0x7f030005, 0x7f030006, 0x7f030007, 0x7f030008, 0x7f030009, 0x7f03000a, 0x7f03000b, 0x7f03000c, 0x7f03000e, 0x7f03000f, 0x7f030010, 0x7f030011, 0x7f030012, 0x7f030013, 0x7f030014, 0x7f030015, 0x7f030016, 0x7f030017, 0x7f030018, 0x7f030019, 0x7f03001a, 0x7f03001b, 0x7f03001c, 0x7f03001d, 0x7f03001e, 0x7f030021, 0x7f030022, 0x7f030023, 0x7f030024, 0x7f030025, 0x7f03002b, 0x7f030040, 0x7f03004e, 0x7f03004f, 0x7f030050, 0x7f030051, 0x7f030052, 0x7f030056, 0x7f030057, 0x7f030062, 0x7f030067, 0x7f030087, 0x7f030088, 0x7f030089, 0x7f03008a, 0x7f03008b, 0x7f03008c, 0x7f03008d, 0x7f03008e, 0x7f03008f, 0x7f030091, 0x7f0300a3, 0x7f0300ac, 0x7f0300ad, 0x7f0300ae, 0x7f0300b1, 0x7f0300b3, 0x7f0300b6, 0x7f0300b7, 0x7f0300b8, 0x7f0300b9, 0x7f0300ba, 0x7f0300f0, 0x7f0300fc, 0x7f030151, 0x7f030152, 0x7f030155, 0x7f030156, 0x7f030157, 0x7f030158, 0x7f030159, 0x7f03015a, 0x7f03015b, 0x7f030170, 0x7f030171, 0x7f030172, 0x7f030178, 0x7f03017a, 0x7f030181, 0x7f030182, 0x7f030183, 0x7f030184, 0x7f03018c, 0x7f03018d, 0x7f03018e, 0x7f03018f, 0x7f03019c, 0x7f03019d, 0x7f0301b3, 0x7f0301da, 0x7f0301db, 0x7f0301dc, 0x7f0301dd, 0x7f0301df, 0x7f0301e0, 0x7f0301e1, 0x7f0301e2, 0x7f0301e5, 0x7f0301e6, 0x7f030200, 0x7f030201, 0x7f030202, 0x7f030203, 0x7f03020a, 0x7f03020c, 0x7f03020d, 0x7f03020e, 0x7f03020f, 0x7f030210, 0x7f030211, 0x7f030212, 0x7f030213, 0x7f030214, 0x7f030215 };
public static final int AppCompatTheme_android_windowIsFloating = 0;
public static final int AppCompatTheme_android_windowAnimationStyle = 1;
public static final int AppCompatTheme_actionBarDivider = 2;
public static final int AppCompatTheme_actionBarItemBackground = 3;
public static final int AppCompatTheme_actionBarPopupTheme = 4;
public static final int AppCompatTheme_actionBarSize = 5;
public static final int AppCompatTheme_actionBarSplitStyle = 6;
public static final int AppCompatTheme_actionBarStyle = 7;
public static final int AppCompatTheme_actionBarTabBarStyle = 8;
public static final int AppCompatTheme_actionBarTabStyle = 9;
public static final int AppCompatTheme_actionBarTabTextStyle = 10;
public static final int AppCompatTheme_actionBarTheme = 11;
public static final int AppCompatTheme_actionBarWidgetTheme = 12;
public static final int AppCompatTheme_actionButtonStyle = 13;
public static final int AppCompatTheme_actionDropDownStyle = 14;
public static final int AppCompatTheme_actionMenuTextAppearance = 15;
public static final int AppCompatTheme_actionMenuTextColor = 16;
public static final int AppCompatTheme_actionModeBackground = 17;
public static final int AppCompatTheme_actionModeCloseButtonStyle = 18;
public static final int AppCompatTheme_actionModeCloseDrawable = 19;
public static final int AppCompatTheme_actionModeCopyDrawable = 20;
public static final int AppCompatTheme_actionModeCutDrawable = 21;
public static final int AppCompatTheme_actionModeFindDrawable = 22;
public static final int AppCompatTheme_actionModePasteDrawable = 23;
public static final int AppCompatTheme_actionModePopupWindowStyle = 24;
public static final int AppCompatTheme_actionModeSelectAllDrawable = 25;
public static final int AppCompatTheme_actionModeShareDrawable = 26;
public static final int AppCompatTheme_actionModeSplitBackground = 27;
public static final int AppCompatTheme_actionModeStyle = 28;
public static final int AppCompatTheme_actionModeWebSearchDrawable = 29;
public static final int AppCompatTheme_actionOverflowButtonStyle = 30;
public static final int AppCompatTheme_actionOverflowMenuStyle = 31;
public static final int AppCompatTheme_activityChooserViewStyle = 32;
public static final int AppCompatTheme_alertDialogButtonGroupStyle = 33;
public static final int AppCompatTheme_alertDialogCenterButtons = 34;
public static final int AppCompatTheme_alertDialogStyle = 35;
public static final int AppCompatTheme_alertDialogTheme = 36;
public static final int AppCompatTheme_autoCompleteTextViewStyle = 37;
public static final int AppCompatTheme_borderlessButtonStyle = 38;
public static final int AppCompatTheme_buttonBarButtonStyle = 39;
public static final int AppCompatTheme_buttonBarNegativeButtonStyle = 40;
public static final int AppCompatTheme_buttonBarNeutralButtonStyle = 41;
public static final int AppCompatTheme_buttonBarPositiveButtonStyle = 42;
public static final int AppCompatTheme_buttonBarStyle = 43;
public static final int AppCompatTheme_buttonStyle = 44;
public static final int AppCompatTheme_buttonStyleSmall = 45;
public static final int AppCompatTheme_checkboxStyle = 46;
public static final int AppCompatTheme_checkedTextViewStyle = 47;
public static final int AppCompatTheme_colorAccent = 48;
public static final int AppCompatTheme_colorBackgroundFloating = 49;
public static final int AppCompatTheme_colorButtonNormal = 50;
public static final int AppCompatTheme_colorControlActivated = 51;
public static final int AppCompatTheme_colorControlHighlight = 52;
public static final int AppCompatTheme_colorControlNormal = 53;
public static final int AppCompatTheme_colorError = 54;
public static final int AppCompatTheme_colorPrimary = 55;
public static final int AppCompatTheme_colorPrimaryDark = 56;
public static final int AppCompatTheme_colorSwitchThumbNormal = 57;
public static final int AppCompatTheme_controlBackground = 58;
public static final int AppCompatTheme_dialogCornerRadius = 59;
public static final int AppCompatTheme_dialogPreferredPadding = 60;
public static final int AppCompatTheme_dialogTheme = 61;
public static final int AppCompatTheme_dividerHorizontal = 62;
public static final int AppCompatTheme_dividerVertical = 63;
public static final int AppCompatTheme_dropDownListViewStyle = 64;
public static final int AppCompatTheme_dropdownListPreferredItemHeight = 65;
public static final int AppCompatTheme_editTextBackground = 66;
public static final int AppCompatTheme_editTextColor = 67;
public static final int AppCompatTheme_editTextStyle = 68;
public static final int AppCompatTheme_homeAsUpIndicator = 69;
public static final int AppCompatTheme_imageButtonStyle = 70;
public static final int AppCompatTheme_listChoiceBackgroundIndicator = 71;
public static final int AppCompatTheme_listDividerAlertDialog = 72;
public static final int AppCompatTheme_listMenuViewStyle = 73;
public static final int AppCompatTheme_listPopupWindowStyle = 74;
public static final int AppCompatTheme_listPreferredItemHeight = 75;
public static final int AppCompatTheme_listPreferredItemHeightLarge = 76;
public static final int AppCompatTheme_listPreferredItemHeightSmall = 77;
public static final int AppCompatTheme_listPreferredItemPaddingLeft = 78;
public static final int AppCompatTheme_listPreferredItemPaddingRight = 79;
public static final int AppCompatTheme_panelBackground = 80;
public static final int AppCompatTheme_panelMenuListTheme = 81;
public static final int AppCompatTheme_panelMenuListWidth = 82;
public static final int AppCompatTheme_popupMenuStyle = 83;
public static final int AppCompatTheme_popupWindowStyle = 84;
public static final int AppCompatTheme_radioButtonStyle = 85;
public static final int AppCompatTheme_ratingBarStyle = 86;
public static final int AppCompatTheme_ratingBarStyleIndicator = 87;
public static final int AppCompatTheme_ratingBarStyleSmall = 88;
public static final int AppCompatTheme_searchViewStyle = 89;
public static final int AppCompatTheme_seekBarStyle = 90;
public static final int AppCompatTheme_selectableItemBackground = 91;
public static final int AppCompatTheme_selectableItemBackgroundBorderless = 92;
public static final int AppCompatTheme_spinnerDropDownItemStyle = 93;
public static final int AppCompatTheme_spinnerStyle = 94;
public static final int AppCompatTheme_switchStyle = 95;
public static final int AppCompatTheme_textAppearanceLargePopupMenu = 96;
public static final int AppCompatTheme_textAppearanceListItem = 97;
public static final int AppCompatTheme_textAppearanceListItemSecondary = 98;
public static final int AppCompatTheme_textAppearanceListItemSmall = 99;
public static final int AppCompatTheme_textAppearancePopupMenuHeader = 100;
public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 101;
public static final int AppCompatTheme_textAppearanceSearchResultTitle = 102;
public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 103;
public static final int AppCompatTheme_textColorAlertDialogListItem = 104;
public static final int AppCompatTheme_textColorSearchUrl = 105;
public static final int AppCompatTheme_toolbarNavigationButtonStyle = 106;
public static final int AppCompatTheme_toolbarStyle = 107;
public static final int AppCompatTheme_tooltipForegroundColor = 108;
public static final int AppCompatTheme_tooltipFrameBackground = 109;
public static final int AppCompatTheme_viewInflaterClass = 110;
public static final int AppCompatTheme_windowActionBar = 111;
public static final int AppCompatTheme_windowActionBarOverlay = 112;
public static final int AppCompatTheme_windowActionModeOverlay = 113;
public static final int AppCompatTheme_windowFixedHeightMajor = 114;
public static final int AppCompatTheme_windowFixedHeightMinor = 115;
public static final int AppCompatTheme_windowFixedWidthMajor = 116;
public static final int AppCompatTheme_windowFixedWidthMinor = 117;
public static final int AppCompatTheme_windowMinWidthMajor = 118;
public static final int AppCompatTheme_windowMinWidthMinor = 119;
public static final int AppCompatTheme_windowNoTitle = 120;
public static final int[] ButtonBarLayout = { 0x7f030026 };
public static final int ButtonBarLayout_allowStacking = 0;
public static final int[] ColorStateListItem = { 0x10101a5, 0x101031f, 0x7f030027 };
public static final int ColorStateListItem_android_color = 0;
public static final int ColorStateListItem_android_alpha = 1;
public static final int ColorStateListItem_alpha = 2;
public static final int[] CompoundButton = { 0x1010107, 0x7f030058, 0x7f030059 };
public static final int CompoundButton_android_button = 0;
public static final int CompoundButton_buttonTint = 1;
public static final int CompoundButton_buttonTintMode = 2;
public static final int[] CoordinatorLayout = { 0x7f03010d, 0x7f0301a6 };
public static final int CoordinatorLayout_keylines = 0;
public static final int CoordinatorLayout_statusBarBackground = 1;
public static final int[] CoordinatorLayout_Layout = { 0x10100b3, 0x7f030112, 0x7f030113, 0x7f030114, 0x7f030140, 0x7f030149, 0x7f03014a };
public static final int CoordinatorLayout_Layout_android_layout_gravity = 0;
public static final int CoordinatorLayout_Layout_layout_anchor = 1;
public static final int CoordinatorLayout_Layout_layout_anchorGravity = 2;
public static final int CoordinatorLayout_Layout_layout_behavior = 3;
public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 4;
public static final int CoordinatorLayout_Layout_layout_insetEdge = 5;
public static final int CoordinatorLayout_Layout_layout_keyline = 6;
public static final int[] DrawerArrowToggle = { 0x7f030029, 0x7f03002a, 0x7f030036, 0x7f030086, 0x7f0300b4, 0x7f0300e3, 0x7f03019b, 0x7f0301eb };
public static final int DrawerArrowToggle_arrowHeadLength = 0;
public static final int DrawerArrowToggle_arrowShaftLength = 1;
public static final int DrawerArrowToggle_barLength = 2;
public static final int DrawerArrowToggle_color = 3;
public static final int DrawerArrowToggle_drawableSize = 4;
public static final int DrawerArrowToggle_gapBetweenBars = 5;
public static final int DrawerArrowToggle_spinBars = 6;
public static final int DrawerArrowToggle_thickness = 7;
public static final int[] FontFamily = { 0x7f0300d9, 0x7f0300da, 0x7f0300db, 0x7f0300dc, 0x7f0300dd, 0x7f0300de };
public static final int FontFamily_fontProviderAuthority = 0;
public static final int FontFamily_fontProviderCerts = 1;
public static final int FontFamily_fontProviderFetchStrategy = 2;
public static final int FontFamily_fontProviderFetchTimeout = 3;
public static final int FontFamily_fontProviderPackage = 4;
public static final int FontFamily_fontProviderQuery = 5;
public static final int[] FontFamilyFont = { 0x1010532, 0x1010533, 0x101053f, 0x101056f, 0x1010570, 0x7f0300d7, 0x7f0300df, 0x7f0300e0, 0x7f0300e1, 0x7f030208 };
public static final int FontFamilyFont_android_font = 0;
public static final int FontFamilyFont_android_fontWeight = 1;
public static final int FontFamilyFont_android_fontStyle = 2;
public static final int FontFamilyFont_android_ttcIndex = 3;
public static final int FontFamilyFont_android_fontVariationSettings = 4;
public static final int FontFamilyFont_font = 5;
public static final int FontFamilyFont_fontStyle = 6;
public static final int FontFamilyFont_fontVariationSettings = 7;
public static final int FontFamilyFont_fontWeight = 8;
public static final int FontFamilyFont_ttcIndex = 9;
public static final int[] GradientColor = { 0x101019d, 0x101019e, 0x10101a1, 0x10101a2, 0x10101a3, 0x10101a4, 0x1010201, 0x101020b, 0x1010510, 0x1010511, 0x1010512, 0x1010513 };
public static final int GradientColor_android_startColor = 0;
public static final int GradientColor_android_endColor = 1;
public static final int GradientColor_android_type = 2;
public static final int GradientColor_android_centerX = 3;
public static final int GradientColor_android_centerY = 4;
public static final int GradientColor_android_gradientRadius = 5;
public static final int GradientColor_android_tileMode = 6;
public static final int GradientColor_android_centerColor = 7;
public static final int GradientColor_android_startX = 8;
public static final int GradientColor_android_startY = 9;
public static final int GradientColor_android_endX = 10;
public static final int GradientColor_android_endY = 11;
public static final int[] GradientColorItem = { 0x10101a5, 0x1010514 };
public static final int GradientColorItem_android_color = 0;
public static final int GradientColorItem_android_offset = 1;
public static final int[] LinearLayoutCompat = { 0x10100af, 0x10100c4, 0x1010126, 0x1010127, 0x1010128, 0x7f0300b0, 0x7f0300b2, 0x7f030163, 0x7f030191 };
public static final int LinearLayoutCompat_android_gravity = 0;
public static final int LinearLayoutCompat_android_orientation = 1;
public static final int LinearLayoutCompat_android_baselineAligned = 2;
public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
public static final int LinearLayoutCompat_android_weightSum = 4;
public static final int LinearLayoutCompat_divider = 5;
public static final int LinearLayoutCompat_dividerPadding = 6;
public static final int LinearLayoutCompat_measureWithLargestChild = 7;
public static final int LinearLayoutCompat_showDividers = 8;
public static final int[] LinearLayoutCompat_Layout = { 0x10100b3, 0x10100f4, 0x10100f5, 0x1010181 };
public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0;
public static final int LinearLayoutCompat_Layout_android_layout_width = 1;
public static final int LinearLayoutCompat_Layout_android_layout_height = 2;
public static final int LinearLayoutCompat_Layout_android_layout_weight = 3;
public static final int[] ListPopupWindow = { 0x10102ac, 0x10102ad };
public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0;
public static final int ListPopupWindow_android_dropDownVerticalOffset = 1;
public static final int[] MenuGroup = { 0x101000e, 0x10100d0, 0x1010194, 0x10101de, 0x10101df, 0x10101e0 };
public static final int MenuGroup_android_enabled = 0;
public static final int MenuGroup_android_id = 1;
public static final int MenuGroup_android_visible = 2;
public static final int MenuGroup_android_menuCategory = 3;
public static final int MenuGroup_android_orderInCategory = 4;
public static final int MenuGroup_android_checkableBehavior = 5;
public static final int[] MenuItem = { 0x1010002, 0x101000e, 0x10100d0, 0x1010106, 0x1010194, 0x10101de, 0x10101df, 0x10101e1, 0x10101e2, 0x10101e3, 0x10101e4, 0x10101e5, 0x101026f, 0x7f03000d, 0x7f03001f, 0x7f030020, 0x7f030028, 0x7f030096, 0x7f0300f9, 0x7f0300fa, 0x7f03016a, 0x7f030190, 0x7f030204 };
public static final int MenuItem_android_icon = 0;
public static final int MenuItem_android_enabled = 1;
public static final int MenuItem_android_id = 2;
public static final int MenuItem_android_checked = 3;
public static final int MenuItem_android_visible = 4;
public static final int MenuItem_android_menuCategory = 5;
public static final int MenuItem_android_orderInCategory = 6;
public static final int MenuItem_android_title = 7;
public static final int MenuItem_android_titleCondensed = 8;
public static final int MenuItem_android_alphabeticShortcut = 9;
public static final int MenuItem_android_numericShortcut = 10;
public static final int MenuItem_android_checkable = 11;
public static final int MenuItem_android_onClick = 12;
public static final int MenuItem_actionLayout = 13;
public static final int MenuItem_actionProviderClass = 14;
public static final int MenuItem_actionViewClass = 15;
public static final int MenuItem_alphabeticModifiers = 16;
public static final int MenuItem_contentDescription = 17;
public static final int MenuItem_iconTint = 18;
public static final int MenuItem_iconTintMode = 19;
public static final int MenuItem_numericModifiers = 20;
public static final int MenuItem_showAsAction = 21;
public static final int MenuItem_tooltipText = 22;
public static final int[] MenuView = { 0x10100ae, 0x101012c, 0x101012d, 0x101012e, 0x101012f, 0x1010130, 0x1010131, 0x7f03017b, 0x7f0301aa };
public static final int MenuView_android_windowAnimationStyle = 0;
public static final int MenuView_android_itemTextAppearance = 1;
public static final int MenuView_android_horizontalDivider = 2;
public static final int MenuView_android_verticalDivider = 3;
public static final int MenuView_android_headerBackground = 4;
public static final int MenuView_android_itemBackground = 5;
public static final int MenuView_android_itemIconDisabledAlpha = 6;
public static final int MenuView_preserveIconSpacing = 7;
public static final int MenuView_subMenuArrow = 8;
public static final int[] PopupWindow = { 0x1010176, 0x10102c9, 0x7f03016b };
public static final int PopupWindow_android_popupBackground = 0;
public static final int PopupWindow_android_popupAnimationStyle = 1;
public static final int PopupWindow_overlapAnchor = 2;
public static final int[] PopupWindowBackgroundState = { 0x7f0301a1 };
public static final int PopupWindowBackgroundState_state_above_anchor = 0;
public static final int[] RecycleListView = { 0x7f03016c, 0x7f03016f };
public static final int RecycleListView_paddingBottomNoButtons = 0;
public static final int RecycleListView_paddingTopNoTitle = 1;
public static final int[] SearchView = { 0x10100da, 0x101011f, 0x1010220, 0x1010264, 0x7f03007a, 0x7f030092, 0x7f0300ab, 0x7f0300e4, 0x7f0300fb, 0x7f030110, 0x7f03017f, 0x7f030180, 0x7f03018a, 0x7f03018b, 0x7f0301ab, 0x7f0301b0, 0x7f03020b };
public static final int SearchView_android_focusable = 0;
public static final int SearchView_android_maxWidth = 1;
public static final int SearchView_android_inputType = 2;
public static final int SearchView_android_imeOptions = 3;
public static final int SearchView_closeIcon = 4;
public static final int SearchView_commitIcon = 5;
public static final int SearchView_defaultQueryHint = 6;
public static final int SearchView_goIcon = 7;
public static final int SearchView_iconifiedByDefault = 8;
public static final int SearchView_layout = 9;
public static final int SearchView_queryBackground = 10;
public static final int SearchView_queryHint = 11;
public static final int SearchView_searchHintIcon = 12;
public static final int SearchView_searchIcon = 13;
public static final int SearchView_submitBackground = 14;
public static final int SearchView_suggestionRowLayout = 15;
public static final int SearchView_voiceIcon = 16;
public static final int[] Spinner = { 0x10100b2, 0x1010176, 0x101017b, 0x1010262, 0x7f030179 };
public static final int Spinner_android_entries = 0;
public static final int Spinner_android_popupBackground = 1;
public static final int Spinner_android_prompt = 2;
public static final int Spinner_android_dropDownWidth = 3;
public static final int Spinner_popupTheme = 4;
public static final int[] StateListDrawable = { 0x101011c, 0x1010194, 0x1010195, 0x1010196, 0x101030c, 0x101030d };
public static final int StateListDrawable_android_dither = 0;
public static final int StateListDrawable_android_visible = 1;
public static final int StateListDrawable_android_variablePadding = 2;
public static final int StateListDrawable_android_constantSize = 3;
public static final int StateListDrawable_android_enterFadeDuration = 4;
public static final int StateListDrawable_android_exitFadeDuration = 5;
public static final int[] StateListDrawableItem = { 0x1010199 };
public static final int StateListDrawableItem_android_drawable = 0;
public static final int[] SwitchCompat = { 0x1010124, 0x1010125, 0x1010142, 0x7f030193, 0x7f03019e, 0x7f0301b1, 0x7f0301b2, 0x7f0301b4, 0x7f0301ec, 0x7f0301ed, 0x7f0301ee, 0x7f030205, 0x7f030206, 0x7f030207 };
public static final int SwitchCompat_android_textOn = 0;
public static final int SwitchCompat_android_textOff = 1;
public static final int SwitchCompat_android_thumb = 2;
public static final int SwitchCompat_showText = 3;
public static final int SwitchCompat_splitTrack = 4;
public static final int SwitchCompat_switchMinWidth = 5;
public static final int SwitchCompat_switchPadding = 6;
public static final int SwitchCompat_switchTextAppearance = 7;
public static final int SwitchCompat_thumbTextPadding = 8;
public static final int SwitchCompat_thumbTint = 9;
public static final int SwitchCompat_thumbTintMode = 10;
public static final int SwitchCompat_track = 11;
public static final int SwitchCompat_trackTint = 12;
public static final int SwitchCompat_trackTintMode = 13;
public static final int[] TextAppearance = { 0x1010095, 0x1010096, 0x1010097, 0x1010098, 0x101009a, 0x101009b, 0x1010161, 0x1010162, 0x1010163, 0x1010164, 0x10103ac, 0x7f0300d8, 0x7f0301cf };
public static final int TextAppearance_android_textSize = 0;
public static final int TextAppearance_android_typeface = 1;
public static final int TextAppearance_android_textStyle = 2;
public static final int TextAppearance_android_textColor = 3;
public static final int TextAppearance_android_textColorHint = 4;
public static final int TextAppearance_android_textColorLink = 5;
public static final int TextAppearance_android_shadowColor = 6;
public static final int TextAppearance_android_shadowDx = 7;
public static final int TextAppearance_android_shadowDy = 8;
public static final int TextAppearance_android_shadowRadius = 9;
public static final int TextAppearance_android_fontFamily = 10;
public static final int TextAppearance_fontFamily = 11;
public static final int TextAppearance_textAllCaps = 12;
public static final int[] Toolbar = { 0x10100af, 0x1010140, 0x7f030053, 0x7f030082, 0x7f030083, 0x7f030097, 0x7f030098, 0x7f030099, 0x7f03009a, 0x7f03009b, 0x7f03009c, 0x7f03015c, 0x7f03015d, 0x7f030161, 0x7f030166, 0x7f030167, 0x7f030179, 0x7f0301ac, 0x7f0301ad, 0x7f0301ae, 0x7f0301f4, 0x7f0301f6, 0x7f0301f7, 0x7f0301f8, 0x7f0301f9, 0x7f0301fa, 0x7f0301fb, 0x7f0301fc, 0x7f0301fd };
public static final int Toolbar_android_gravity = 0;
public static final int Toolbar_android_minHeight = 1;
public static final int Toolbar_buttonGravity = 2;
public static final int Toolbar_collapseContentDescription = 3;
public static final int Toolbar_collapseIcon = 4;
public static final int Toolbar_contentInsetEnd = 5;
public static final int Toolbar_contentInsetEndWithActions = 6;
public static final int Toolbar_contentInsetLeft = 7;
public static final int Toolbar_contentInsetRight = 8;
public static final int Toolbar_contentInsetStart = 9;
public static final int Toolbar_contentInsetStartWithNavigation = 10;
public static final int Toolbar_logo = 11;
public static final int Toolbar_logoDescription = 12;
public static final int Toolbar_maxButtonHeight = 13;
public static final int Toolbar_navigationContentDescription = 14;
public static final int Toolbar_navigationIcon = 15;
public static final int Toolbar_popupTheme = 16;
public static final int Toolbar_subtitle = 17;
public static final int Toolbar_subtitleTextAppearance = 18;
public static final int Toolbar_subtitleTextColor = 19;
public static final int Toolbar_title = 20;
public static final int Toolbar_titleMargin = 21;
public static final int Toolbar_titleMarginBottom = 22;
public static final int Toolbar_titleMarginEnd = 23;
public static final int Toolbar_titleMarginStart = 24;
public static final int Toolbar_titleMarginTop = 25;
public static final int Toolbar_titleMargins = 26;
public static final int Toolbar_titleTextAppearance = 27;
public static final int Toolbar_titleTextColor = 28;
public static final int[] View = { 0x1010000, 0x10100da, 0x7f03016d, 0x7f03016e, 0x7f0301ea };
public static final int View_android_theme = 0;
public static final int View_android_focusable = 1;
public static final int View_paddingEnd = 2;
public static final int View_paddingStart = 3;
public static final int View_theme = 4;
public static final int[] ViewBackgroundHelper = { 0x10100d4, 0x7f030034, 0x7f030035 };
public static final int ViewBackgroundHelper_android_background = 0;
public static final int ViewBackgroundHelper_backgroundTint = 1;
public static final int ViewBackgroundHelper_backgroundTintMode = 2;
public static final int[] ViewStubCompat = { 0x10100d0, 0x10100f2, 0x10100f3 };
public static final int ViewStubCompat_android_id = 0;
public static final int ViewStubCompat_android_layout = 1;
public static final int ViewStubCompat_android_inflatedId = 2;
}
}
| [
"[email protected]"
]
| |
36e0f940b3b56d9932d1555b10797c9f9c4a8287 | 7126221be0ae4dd7cc74e62cad7df09444932595 | /src/main/java/ftn/sct/enums/UserTypeEnum.java | ea23df798ebea2654b689b94dd98dd0e2c212025 | []
| no_license | blaz1/real-estate-web-app | dfea121378545f1c4a6a22355a0e4200316eb825 | c62017cd7f22ab8512a35515da200cd35004c529 | refs/heads/master | 2020-06-13T23:45:01.749313 | 2017-03-21T06:44:48 | 2017-03-21T06:44:48 | 75,530,464 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 69 | java | package ftn.sct.enums;
public enum UserTypeEnum {
BUYER, SELLER;
}
| [
"[email protected]"
]
| |
a54d807925c8de111484e6d717d14f4c0656dc42 | 93afc82f736c1811623008af2466e41a4787d6d0 | /src/org/deepfake_http/common/utils/SystemProperties.java | a636ad82f9f13ea6af98a3263b0f4f7e92c0d693 | [
"MIT"
]
| permissive | goofwear/DeepfakeHTTP | c0e7bc8fbd329862412987b1fea114f9675b0225 | cad6f974030c3f413607142d489917bcf854a152 | refs/heads/main | 2023-08-24T00:04:27.791936 | 2021-10-27T09:44:39 | 2021-10-27T09:44:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,818 | java | package org.deepfake_http.common.utils;
public interface SystemProperties {
String OS_NAME = System.getProperty("os.name");
String OS_ARCH = System.getProperty("os.arch");
String JAVA_IO_TMPDIR = System.getProperty("java.io.tmpdir");
String JAVA_AWT_HEADLESS = System.getProperty("java.awt.headless");
String JAVA_JAVA_VERSION = System.getProperty("java.version"); // "12" "1.8.0_201" "1.5.0_22" Java Runtime Environment version, which may be interpreted as a Runtime.Version
String JAVA_JAVA_VERSION_DATE = System.getProperty("java.version.date"); // "2019-03-19" null null Java Runtime Environment version date, in ISO-8601 YYYY-MM-DD format, which may be interpreted as a LocalDate
String JAVA_JAVA_VENDOR = System.getProperty("java.vendor"); // "Oracle Corporation" "Oracle Corporation" "Sun Microsystems Inc." Java Runtime Environment vendor
String JAVA_JAVA_VENDOR_VERSION = System.getProperty("java.vendor.version"); // null null null Java vendor version
String JAVA_JAVA_VENDOR_URL = System.getProperty("java.vendor.url"); // "https://java.oracle.com/" "http://java.oracle.com/" "http://java.sun.com/" Java vendor URL
String JAVA_JAVA_VENDOR_URL_BUG = System.getProperty("java.vendor.url.bug"); // "https://bugreport.java.com/bugreport/" "http://bugreport.sun.com/bugreport/" "http://java.sun.com/cgi-bin/bugreport.cgi" Undocumented
String JAVA_JAVA_SPECIFICATION_NAME = System.getProperty("java.specification.name"); // "Java Platform API Specification" "Java Platform API Specification" "Java Platform API Specification" Java Runtime Environment specification name
String JAVA_JAVA_SPECIFICATION_VENDOR = System.getProperty("java.specification.vendor"); // "Oracle Corporation" "Oracle Corporation" "Sun Microsystems Inc." Java Runtime Environment specification vendor
String JAVA_JAVA_SPECIFICATION_VERSION = System.getProperty("java.specification.version"); // "12" "1.8" "1.5" Java Runtime Environment specification version, whose value is the feature element of the runtime version
String JAVA_JAVA_VM_NAME = System.getProperty("java.vm.name"); // "OpenJDK 64-Bit Server VM" "Java HotSpot(TM) 64-Bit Server VM" "Java HotSpot(TM) 64-Bit Server VM" Java Virtual Machine implementation name
String JAVA_JAVA_VM_VENDOR = System.getProperty("java.vm.vendor"); // "Oracle Corporation" "Oracle Corporation" "Sun Microsystems Inc." Java Virtual Machine implementation vendor
String JAVA_JAVA_VM_VERSION = System.getProperty("java.vm.version"); // "12+33" "25.201-b09" "1.5.0_22-b03" Java Virtual Machine implementation version which may be interpreted as a Runtime.Version
String JAVA_JAVA_VM_INFO = System.getProperty("java.vm.info"); // "mixed mode, sharing" "mixed mode" "mixed mode" Undocumented
String JAVA_JAVA_VM_SPECIFICATION_NAME = System.getProperty("java.vm.specification.name"); // "Java Virtual Machine Specification" "Java Virtual Machine Specification" "Java Virtual Machine Specification" Java Virtual Machine specification name
String JAVA_JAVA_VM_SPECIFICATION_VENDOR = System.getProperty("java.vm.specification.vendor "); // "Oracle Corporation" "Oracle Corporation" "Sun Microsystems Inc." Java Virtual Machine specification vendor
String JAVA_JAVA_VM_SPECIFICATION_VERSION = System.getProperty("java.vm.specification.version"); // "12" "1.8" "1.0" Java Virtual Machine specification version, whose value is the feature element of the runtime version
String JAVA_JAVA_RUNTIME_NAME = System.getProperty("java.runtime.name"); // "OpenJDK Runtime Environment" "Java(TM) SE Runtime Environment" "Java(TM) 2 Runtime Environment, Standard Edition" Undocumented
String JAVA_JAVA_RUNTIME_VERSION = System.getProperty("java.runtime.version"); // "12+33" "1.8.0_201-b09" "1.5.0_22-b03" Undocumented
String JAVA_JAVA_CLASS_VERSION = System.getProperty("java.class.version"); // "56.0" "52.0" "49.0" Java class format version number
} | [
"[email protected]"
]
| |
44bd8e66f8406b349176c2ffa9f776249b5dc969 | 7792883f61922388aff2787aaf31ac2b1090e6ed | /src/Main.java | becc0579237e9e96378d902e505e753d815ab41a | []
| no_license | shraddhakumbhar18/Hibernate | 63ea6eba8d50784e4ee9ed78c4ac774434a85ff6 | 8d02549ad56e9d6b1dde6af64accc017a7f721a8 | refs/heads/master | 2020-05-20T12:53:18.326005 | 2019-05-08T10:29:16 | 2019-05-08T10:29:16 | 185,584,211 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 387 | java | package com.capgemini.hibernate.test;
import com.capgemini.hibernate.util.*;
import com.capgemini.hibernate.dao.*;
import com.capgemini.hibernate.impl.*;
import com.capgemini.hibernate.model.*;
public class Main
{
public static void main(String args[])
{
PersonDao personDao = new PersonDaoImpl();
personDao.addNew(new Person(101,"Shraddha"));
System.out.println("Ureka");
}
} | [
"[email protected]"
]
| |
1f27a8178eb3f039b4de3855364e3ce52e6c9eda | df8e54ff5fbd5942280e3230123494a401c57730 | /code/on-the-way/pre-way/src/main/java/com/vika/way/pre/algorithm/leetcode/midium/S101_200/S127WordLadder.java | 369ca852a4aec9a08e90b2b16fb153534bc12eca | []
| no_license | kabitonn/cs-note | 255297a0a0634335eefba79882f7314f7b97308f | 1235bb56a40bce7e2056f083ba8cda0cd08e39b4 | refs/heads/master | 2022-06-09T23:46:02.145680 | 2022-05-13T10:44:53 | 2022-05-13T10:44:53 | 224,864,415 | 0 | 1 | null | 2022-05-13T07:25:09 | 2019-11-29T13:58:19 | Java | UTF-8 | Java | false | false | 8,132 | java | package com.vika.way.pre.algorithm.leetcode.midium.S101_200;
import java.util.*;
public class S127WordLadder {
public int ladderLength(String beginWord, String endWord, List<String> wordList) {
if (!wordList.contains(endWord)) {
return 0;
}
Queue<String> queue = new LinkedList<>();
queue.add(beginWord);
Set<String> wordSet = new HashSet<>(wordList);
Set<String> visited = new HashSet<>();
visited.add(beginWord);
boolean found = false;
int depth = 1;
while (!queue.isEmpty()) {
int size = queue.size();
for (int i = 0; i < size; i++) {
String word = queue.poll();
List<String> adjacentList = getAdjacentList(word, wordSet);
for (String adjacent : adjacentList) {
if (!visited.contains(adjacent)) {
visited.add(adjacent);
if (adjacent.equals(endWord)) {
found = true;
}
queue.add(adjacent);
}
}
}
depth++;
if (found) {
return depth;
}
}
return 0;
}
private List<String> getAdjacentList(String str, Set<String> wordSet) {
List<String> list = new ArrayList<>();
char[] s = str.toCharArray();
for (int i = 0; i < s.length; i++) {
char old = s[i];
for (char c = 'a'; c <= 'z'; c++) {
if (s[i] == c) {
continue;
}
s[i] = c;
String t = String.valueOf(s);
if (wordSet.contains(t)) {
list.add(t);
}
}
s[i] = old;
}
return list;
}
public int ladderLength1(String beginWord, String endWord, List<String> wordList) {
if (!wordList.contains(endWord)) {
return 0;
}
Map<String, List<String>> adjacentMap = getAdjacentMap(beginWord, wordList);
Queue<String> queue = new LinkedList<>();
queue.add(beginWord);
Set<String> visited = new HashSet<>();
visited.add(beginWord);
int depth = 1;
while (!queue.isEmpty()) {
int size = queue.size();
depth++;
for (int i = 0; i < size; i++) {
String word = queue.poll();
List<String> adjacentList = adjacentMap.get(word);
for (String adjacent : adjacentList) {
if (!visited.contains(adjacent)) {
visited.add(adjacent);
if (adjacent.equals(endWord)) {
return depth;
}
queue.add(adjacent);
}
}
}
}
return 0;
}
private Map<String, List<String>> getAdjacentMap(String begin, List<String> wordList) {
List<String> words = new ArrayList<>(wordList);
words.add(begin);
Map<String, List<String>> patternMap = new HashMap<>();
words.forEach(word -> {
char[] s = word.toCharArray();
for (int i = 0; i < word.length(); i++) {
char old = s[i];
s[i] = '*';
String p = String.valueOf(s);
List<String> adjacentList = patternMap.getOrDefault(p, new ArrayList<>());
adjacentList.add(word);
patternMap.put(p, adjacentList);
s[i] = old;
}
});
Map<String, List<String>> adjacentMap = new HashMap<>();
for (String word : words) {
char[] s = word.toCharArray();
List<String> list = new ArrayList<>();
for (int i = 0; i < s.length; i++) {
char old = s[i];
s[i] = '*';
String p = String.valueOf(s);
List<String> patternList = patternMap.getOrDefault(p, new ArrayList<>());
for (String adj : patternList) {
if (adj.equals(word)) {
continue;
}
list.add(adj);
}
s[i] = old;
}
adjacentMap.put(word, list);
}
return adjacentMap;
}
public int ladderLength2(String beginWord, String endWord, List<String> wordList) {
Set<String> wordSet = new HashSet<>(wordList);
if (!wordSet.contains(endWord)) {
return 0;
}
Set<String> beginSet = new HashSet<>(), endSet = new HashSet<>();
int depth = 1;
Set<String> visited = new HashSet<>();
beginSet.add(beginWord);
endSet.add(endWord);
while (!beginSet.isEmpty() && !endSet.isEmpty()) {
if (beginSet.size() > endSet.size()) {
Set<String> set = beginSet;
beginSet = endSet;
endSet = set;
}
depth++;
Set<String> temp = new HashSet<>();
for (String word : beginSet) {
char[] s = word.toCharArray();
for (int i = 0; i < s.length; i++) {
char old = s[i];
for (char c = 'a'; c <= 'z'; c++) {
s[i] = c;
String target = String.valueOf(s);
if (endSet.contains(target)) {
return depth;
}
if (!visited.contains(target) && wordSet.contains(target)) {
temp.add(target);
visited.add(target);
}
}
s[i] = old;
}
}
beginSet = temp;
}
return 0;
}
//因为把 beginWord 和 endWord 都加入了路径,所以初始化 2
private int len = 2;
public int ladderLength3(String beginWord, String endWord, List<String> wordList) {
if (!wordList.contains(endWord)) {
return 0;
}
// 利用 BFS 得到所有的邻居节点
Set<String> set1 = new HashSet<>();
set1.add(beginWord);
Set<String> set2 = new HashSet<>();
set2.add(endWord);
Set<String> wordSet = new HashSet<>(wordList);
//最后没找到返回 0
if (!twoEndBfs(set1, set2, wordSet)) {
return 0;
}
return len;
}
private boolean twoEndBfs(Set<String> set1, Set<String> set2, Set<String> wordSet) {
if (set1.isEmpty() || set2.isEmpty()) {
return false;
}
// set1 的数量多,就反向扩展
if (set1.size() > set2.size()) {
return twoEndBfs(set2, set1, wordSet);
}
// 将已经访问过单词删除
wordSet.removeAll(set1);
wordSet.removeAll(set2);
// 保存新扩展得到的节点
Set<String> set = new HashSet<>();
for (String word : set1) {
// 遍历每一位
for (int i = 0; i < word.length(); i++) {
char[] s = word.toCharArray();
// 尝试所有字母
for (char ch = 'a'; ch <= 'z'; ch++) {
if (s[i] == ch) {
continue;
}
s[i] = ch;
String adj = new String(s);
if (set2.contains(adj)) {
return true;
}
// 如果还没有相遇,并且新的单词在 word 中,那么就加到 set 中
if (wordSet.contains(adj)) {
set.add(adj);
}
}
}
}
len++;
// 一般情况下新扩展的元素会多一些,所以我们下次反方向扩展 set2
return twoEndBfs(set2, set, wordSet);
}
}
| [
"[email protected]"
]
| |
1c29488a8d66a7a2d8340874600acbc924ebbad2 | c56b569c3938cedf83d6409252b9bd262ee82d11 | /src/com/gemptc/secondbrotherdemo/cinemamode/MovieAndCinema_info.java | 05bb9fa38371bbfb2750f4e5b632d4891ea42a0a | []
| no_license | jklag133/SecondBrother | 18775171460fe06851cc10f04ae7bfae2d9b497c | 83393c53b252a13922a2f22c0011f05830b0a340 | refs/heads/master | 2016-09-05T17:46:26.724286 | 2014-12-20T08:17:01 | 2014-12-20T08:17:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 678 | java | package com.gemptc.secondbrotherdemo.cinemamode;
import java.util.List;
public class MovieAndCinema_info{
Cinema_info cinema_info;
List<Movie_info> lists;
public Cinema_info getCinema_info() {
return cinema_info;
}
public void setCinema_info(Cinema_info cinema_info) {
this.cinema_info = cinema_info;
}
public List<Movie_info> getLists() {
return lists;
}
public void setLists(List<Movie_info> lists) {
this.lists = lists;
}
public MovieAndCinema_info(Cinema_info cinema_info, List<Movie_info> lists) {
super();
this.cinema_info = cinema_info;
this.lists = lists;
}
public MovieAndCinema_info() {
super();
}
}
| [
"[email protected]"
]
| |
d06dcf86bba9d4c354e1f103b35b0fbba982f8ad | 7bc875c62e722f80e9e28bd2965fb19b55b5e649 | /src/main/java/com/xecoder/entity/RolePermissionCriteria.java | 43e99e64d933550e7cf84f75b7b2772599c74e4e | []
| no_license | ktmswzw/SaugoWeb | ac8b7a0a5e44bcc57a2ab947cab9aba4a4e3ab6f | 37720d12445aa3ef03722a5e8e9b739746757a55 | refs/heads/master | 2020-05-21T22:15:50.668874 | 2017-02-25T13:54:13 | 2017-02-25T13:54:13 | 65,887,500 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 14,104 | java | package com.xecoder.entity;
import java.util.ArrayList;
import java.util.List;
public class RolePermissionCriteria {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table security_role_permission
*
* @mbggenerated
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table security_role_permission
*
* @mbggenerated
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table security_role_permission
*
* @mbggenerated
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table security_role_permission
*
* @mbggenerated
*/
public RolePermissionCriteria() {
oredCriteria = new ArrayList<Criteria>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table security_role_permission
*
* @mbggenerated
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table security_role_permission
*
* @mbggenerated
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table security_role_permission
*
* @mbggenerated
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table security_role_permission
*
* @mbggenerated
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table security_role_permission
*
* @mbggenerated
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table security_role_permission
*
* @mbggenerated
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table security_role_permission
*
* @mbggenerated
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table security_role_permission
*
* @mbggenerated
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table security_role_permission
*
* @mbggenerated
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table security_role_permission
*
* @mbggenerated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table security_role_permission
*
* @mbggenerated
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andPermissionIdIsNull() {
addCriterion("permission_id is null");
return (Criteria) this;
}
public Criteria andPermissionIdIsNotNull() {
addCriterion("permission_id is not null");
return (Criteria) this;
}
public Criteria andPermissionIdEqualTo(Long value) {
addCriterion("permission_id =", value, "permissionId");
return (Criteria) this;
}
public Criteria andPermissionIdNotEqualTo(Long value) {
addCriterion("permission_id <>", value, "permissionId");
return (Criteria) this;
}
public Criteria andPermissionIdGreaterThan(Long value) {
addCriterion("permission_id >", value, "permissionId");
return (Criteria) this;
}
public Criteria andPermissionIdGreaterThanOrEqualTo(Long value) {
addCriterion("permission_id >=", value, "permissionId");
return (Criteria) this;
}
public Criteria andPermissionIdLessThan(Long value) {
addCriterion("permission_id <", value, "permissionId");
return (Criteria) this;
}
public Criteria andPermissionIdLessThanOrEqualTo(Long value) {
addCriterion("permission_id <=", value, "permissionId");
return (Criteria) this;
}
public Criteria andPermissionIdIn(List<Long> values) {
addCriterion("permission_id in", values, "permissionId");
return (Criteria) this;
}
public Criteria andPermissionIdNotIn(List<Long> values) {
addCriterion("permission_id not in", values, "permissionId");
return (Criteria) this;
}
public Criteria andPermissionIdBetween(Long value1, Long value2) {
addCriterion("permission_id between", value1, value2, "permissionId");
return (Criteria) this;
}
public Criteria andPermissionIdNotBetween(Long value1, Long value2) {
addCriterion("permission_id not between", value1, value2, "permissionId");
return (Criteria) this;
}
public Criteria andRoleIdIsNull() {
addCriterion("role_id is null");
return (Criteria) this;
}
public Criteria andRoleIdIsNotNull() {
addCriterion("role_id is not null");
return (Criteria) this;
}
public Criteria andRoleIdEqualTo(Long value) {
addCriterion("role_id =", value, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdNotEqualTo(Long value) {
addCriterion("role_id <>", value, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdGreaterThan(Long value) {
addCriterion("role_id >", value, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdGreaterThanOrEqualTo(Long value) {
addCriterion("role_id >=", value, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdLessThan(Long value) {
addCriterion("role_id <", value, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdLessThanOrEqualTo(Long value) {
addCriterion("role_id <=", value, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdIn(List<Long> values) {
addCriterion("role_id in", values, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdNotIn(List<Long> values) {
addCriterion("role_id not in", values, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdBetween(Long value1, Long value2) {
addCriterion("role_id between", value1, value2, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdNotBetween(Long value1, Long value2) {
addCriterion("role_id not between", value1, value2, "roleId");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table security_role_permission
*
* @mbggenerated do_not_delete_during_merge
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table security_role_permission
*
* @mbggenerated
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
} | [
"[email protected]"
]
| |
e550fb1aea42fb91e9cec3ff98bbd195f25a4685 | c768fc19fef4e998e57d54848e4871ed88151e0d | /HRMS/src/main/java/HRMS/HRMS/dataAccess/abstracts/SchoolDao.java | 9bb1808969ab84a820ec0ecc7738d003f3faed12 | []
| no_license | denizbilgin/HRMS | 7d1b2b987529fff182c8230251d39747f810408e | a0670d60b564aadf6d304d4cf7ddcc8e2879c82f | refs/heads/master | 2023-06-14T13:02:49.766825 | 2021-06-30T15:54:32 | 2021-06-30T15:54:32 | 366,382,047 | 9 | 0 | null | null | null | null | UTF-8 | Java | false | false | 400 | java | package HRMS.HRMS.dataAccess.abstracts;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import HRMS.HRMS.entities.concretes.School;
public interface SchoolDao extends JpaRepository<School, Integer>
{
List<School> findByCandidate_Id(int candidateId);
List<School> findByCandidate_IdOrderByGraduateDateDesc(int candidateId);
School findById(int schoolId);
}
| [
"[email protected]"
]
| |
24e1455b4b1b087d0da4bf608c2e89be14c3f7aa | ae012fb4134fa1a56c901c054da641f0d67e2801 | /0project01/src/v11/server/dao/ProjectDao.java | 4c971270f11a50c17c9a69d5257370ce1cfcb539 | []
| no_license | zxqw1541/javaexam | 52a8e3e74535af54b6eaf61a3ca029e829556adc | 49a945f8eb7247d3042bffd59f6c9c5a5a81ada5 | refs/heads/master | 2021-01-18T15:06:51.838333 | 2015-12-24T03:40:17 | 2015-12-24T03:40:17 | 47,953,735 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,523 | java | package v11.server.dao;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.PrintWriter;
import java.util.ArrayList;
import v11.server.annotation.Component;
import v11.server.domain.Project;
import v11.server.exception.DaoException;
@Component
public class ProjectDao {
ArrayList<Project> list = new ArrayList<Project>();
public ProjectDao() {
String filename = "./data/project.dat";
try (
FileReader in = new FileReader(filename);
BufferedReader in2 = new BufferedReader(in);
) {
String line = null;
while ((line = in2.readLine()) != null) {
list.add(new Project(line));
}
} catch (Exception e) {
throw new DaoException("프로젝트정보 로딩 실패!");
}
}
public void save() {
try (FileWriter out = new FileWriter("./data/project.dat");
BufferedWriter out2 = new BufferedWriter(out);
PrintWriter out3 = new PrintWriter(out2);) {
for (Project p : list) {
out3.println(p);
}
} catch (Exception e) {
throw new DaoException("프로젝트 정보 저장 실패!");
}
}
public ArrayList<Project> selectList() {
return list;
}
public void insert(Project project) {
list.add(project);
this.save();
}
public Project delete(int no) {
Project obj = list.remove(no);
this.save();
return obj;
}
}
| [
"BitCamp@BitCamp-PC"
]
| BitCamp@BitCamp-PC |
b43ecef4e15749a53c1c3f055c7aa445bcaf4065 | 513690ad9099a816fa6bd8efb57ee9d5a1fcca72 | /Socket_Client/src/com/haonv/client/PanelClient.java | 7dc8c485d76ea4c6bf3494cdbad0c469ba7277b5 | []
| no_license | NguyenHao0808/Code-trong-qu-tr-nh-o-t-o | 5aef4b850363945df66c8f1e61d7610e78313ab8 | be6101e98bac3b36d0783055cdc21a856b667639 | refs/heads/master | 2021-01-20T06:50:06.379483 | 2017-05-01T15:04:05 | 2017-05-01T15:04:05 | 89,931,329 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,887 | java | package com.haonv.client;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;
/**
* Lop PanelClient ke thus tu lop JPanel
*
* @author Nguyen Hao
*
*/
public class PanelClient extends JPanel {
private JLabel lb1, lb2, lb3, lb4, lb5;
private JButton bt1, bt2;
private JTextArea ta1, ta2;
private JTextField tf1, tf2;
private Client client = new Client();
/**
* Phuong thuc khoi tao cua lop PanelClient. Kem theo cong viec thuc thi cac
* phuong thuc duoc goi.
*/
public PanelClient() {
initPanelClient();
initComps();
addComps();
}
/**
* Phuong thuc initPanelClient de dinh hinh anh cua lop.
*/
private void initPanelClient() {
setLayout(null);
}
/**
* Phuong thuc initComps thuc hien khai bao va xay dung cac thanh phan tren
* lop.
*/
private void initComps() {
Font font1 = new Font("Tahoma", Font.BOLD, 32);
FontMetrics metrics = getFontMetrics(font1);
lb1 = new JLabel("CLIENT");
lb1.setFont(font1);
lb1.setSize(metrics.stringWidth("CLIENT"), metrics.getHeight());
lb1.setLocation((GUI.WIDTH_FRAME - lb1.getWidth()) / 2, 30);
Font font2 = new Font("Tahoma", Font.BOLD, 20);
metrics = getFontMetrics(font2);
lb2 = new JLabel("IP:");
lb2.setFont(font2);
lb2.setSize(metrics.stringWidth("IP:"), metrics.getHeight());
lb2.setLocation(30, lb1.getY() + lb1.getHeight() + 20);
tf1 = new JTextField();
tf1.setSize(200, 35);
tf1.setLocation(lb2.getX() + lb2.getWidth() + 10, lb2.getY());
lb5 = new JLabel("PORT:");
lb5.setFont(font2);
lb5.setSize(metrics.stringWidth("PORT:"), metrics.getHeight());
lb5.setLocation(tf1.getX() + tf1.getWidth() + 20, tf1.getY());
tf2 = new JTextField();
tf2.setSize(100, 35);
tf2.setLocation(lb5.getX() + lb5.getWidth() + 10, lb2.getY());
lb3 = new JLabel("Thu Gui:");
lb3.setFont(font2);
lb3.setSize(metrics.stringWidth("Thu Gui:"), metrics.getHeight());
lb3.setLocation(30, lb2.getY() + lb2.getHeight() + 30);
ta1 = new JTextArea();
ta1.setSize(250, 70);
ta1.setLocation(lb3.getX() + lb3.getWidth() + 40, lb3.getY());
lb4 = new JLabel("Thu Nhan:");
lb4.setFont(font2);
lb4.setSize(metrics.stringWidth("Thu Nhan:"), metrics.getHeight());
lb4.setLocation(30, ta1.getY() + ta1.getHeight() + 10);
ta2 = new JTextArea();
ta2.setSize(250, 70);
ta2.setLocation(ta1.getX(), lb4.getY());
bt1 = new JButton("Connect To");
bt1.setSize(100, 30);
bt1.setLocation(ta2.getX(), ta2.getY() + ta2.getHeight() + 20);
bt1.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
client.getLocalIP();
if ("".equals(tf1.getText()) || "".equals(tf2.getText())
|| "".equals(ta1.getText())) {
JOptionPane.showMessageDialog(PanelClient.this,
"Ban chua nhap du thong tin!");
System.exit(0);
} else {
String thuNhan = client.connectTo(tf1.getText(),
Integer.parseInt(tf2.getText()), ta1.getText());
ta2.setText(thuNhan);
}
}
});
bt2 = new JButton("Send");
bt2.setSize(100, 30);
bt2.setLocation(bt1.getX() + bt1.getWidth() + 20, bt1.getY());
bt2.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
}
});
}
/**
* Phuong thuc addComps thuc hien them cac thanh phan vao lop.
*/
private void addComps() {
add(lb1);
add(lb2);
add(tf1);
add(bt1);
add(lb3);
add(lb4);
add(ta2);
add(ta1);
add(bt2);
add(lb5);
add(tf2);
}
}
| [
"[email protected]"
]
| |
b92f36d981924c3468a100a79614607430a8a6a1 | 7d0cb9aeecc3679f3f981c9ef0ec8a82a29fa8f3 | /src/main/java/net/litetech/item/CopperPickaxeItem.java | c0284f9268ffdcd526cf83f16a667ac3b3d7d2e5 | []
| no_license | nic68/Lite-Tech | 818829bd467548f1951786b9ccc2e434deecacd1 | e7372355cc2cc7fc1a3b3d2f63a7cb69d31170e2 | refs/heads/master | 2022-04-23T02:56:56.219394 | 2020-04-10T20:09:21 | 2020-04-10T20:09:21 | 254,725,629 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,138 | java |
package net.litetech.item;
import net.minecraftforge.registries.ObjectHolder;
import net.minecraft.item.crafting.Ingredient;
import net.minecraft.item.PickaxeItem;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.Item;
import net.minecraft.item.IItemTier;
import net.litetech.LiteTechElements;
@LiteTechElements.ModElement.Tag
public class CopperPickaxeItem extends LiteTechElements.ModElement {
@ObjectHolder("litetech:copperpickaxe")
public static final Item block = null;
public CopperPickaxeItem(LiteTechElements instance) {
super(instance, 19);
}
@Override
public void initElements() {
elements.items.add(() -> new PickaxeItem(new IItemTier() {
public int getMaxUses() {
return 152;
}
public float getEfficiency() {
return 8f;
}
public float getAttackDamage() {
return 0.5f;
}
public int getHarvestLevel() {
return 1;
}
public int getEnchantability() {
return 10;
}
public Ingredient getRepairMaterial() {
return Ingredient.EMPTY;
}
}, 1, -3f, new Item.Properties().group(ItemGroup.TOOLS)) {
}.setRegistryName("copperpickaxe"));
}
}
| [
"[email protected]"
]
| |
02a36bebb0342dd4e4e54c5cf4c8fa42d77c64db | 5e360f735b9730d00c50b235a5f0f3f9a2a3b337 | /src/main/java/ua/lviv/iot/model/dao/AttractionDao.java | dcbb676916e9a734a6fdde4a1ae311e49a541c6e | []
| no_license | Strashivskyi/db_lab_4 | f52913a6f52cba46d4b0131acb4d41a9697a090e | 9ccc5b370225e6a96c4f7a89b3472ddf0a597d7a | refs/heads/main | 2023-01-23T07:15:10.666812 | 2020-11-24T18:25:49 | 2020-11-24T18:25:49 | 315,718,385 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 462 | java | package ua.lviv.iot.model.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
public interface AttractionDao<Attraction> {
List<Attraction> findAll() throws SQLException;
Attraction findOne(Integer id) throws SQLException;
void create(Attraction object) throws SQLException;
void update(Integer id, Attraction object) throws SQLException;
void delete(Integer id) throws SQLException;
} | [
"[email protected]"
]
| |
e09d76c7839394103cb01a0f8ad9a8598cf755dd | fa7e86272251319a14f52c767586c9ec1e047fbc | /src/ca/sheridancollege/project/GoFishGame.java | f9dc92847366297ac34fd1037b9b30cb2926d935 | []
| no_license | shibrahmisbah/GoFishCardGame | 8c3bc8bf55b6930c05742fe964e8436147cdc01f | 2d2323587139b7f2e156ca74b1ce0013f12a9469 | refs/heads/master | 2023-08-12T05:57:28.525700 | 2021-09-22T00:25:04 | 2021-09-22T00:25:04 | 408,142,220 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,162 | java | package ca.sheridancollege.project;
import java.util.Scanner;
/**
* The Go Fish game class, mainly handling user input and containing the Main method.
* @author Vincent Ursino, 2021
* @author Shibrah Misbah, 2021
* @author Zain Iqbal, 2021
* @author Hardeep Kaur, 2021
*/
public class GoFishGame extends Game {
private GoFishPlayer player;
private GoFishPlayer cpu;
public GoFishGame(String givenName) {
super(givenName);
}
@Override
public void play() {
// Generate a full deck of 52 cards and shuffle it
GroupOfCards fullDeck = new GroupOfCards(52);
fullDeck.setCards(GroupOfCards.getFullDeck());
fullDeck.shuffle();
// Generate a deck of 7 cards and assign it to the Player
GroupOfCards playerDeck = new GroupOfCards(7);
playerDeck.setCards(GroupOfCards.takeRandomCards(7, fullDeck.showCards()));
player = new GoFishPlayer("Player");
// Generate a deck of 7 cards and assign it to the CPU
GroupOfCards cpuDeck = new GroupOfCards(7);
cpuDeck.setCards(GroupOfCards.takeRandomCards(7, fullDeck.showCards()));
cpu = new GoFishPlayer("CPU");
// Initialize the remainingPile, opponentDeck, and playerDeck variables
GoFishPlayer.setRemainingPile(fullDeck);
GoFishPlayer.setOpponentDeck(cpuDeck);
GoFishPlayer.setPlayerDeck(playerDeck);
// Begin user I/O
System.out.println("Welcome to Go Fish! Your deck of 7 cards is: ");
System.out.println(playerDeck.showCards().toString() + "\n\n\n\n\n");
// Pick random player to take the first turn
int rand = (int) (Math.random() + 0.5);
if (rand == 0)
player.play(player.getPlayerID());
else
cpu.play(cpu.getPlayerID());
}
public static void declareWinner(String playerID, String officialStatus, int playerMatches, int cpuMatches) {
if (playerID.equals("Player")) {
if (officialStatus.equals("official"))
System.out.println("You won! You made more matches than your opponent did! (Score: " + playerMatches + "-" + cpuMatches + ")");
else
System.out.println("You won! The remaining pile ran out of cards, but you made the most matches! (Score: " + playerMatches + "-" + cpuMatches + ")");
} else {
if (officialStatus.equals("official"))
System.out.println("You lost! Your opponent made more matches than you did! (Score: " + playerMatches + "-" + cpuMatches + ")");
else
System.out.println("You lost! The remaining pile ran out of cards, but your opponent made the most matches! (Score: " + playerMatches + "-" + cpuMatches + ")");
}
}
public static void declareDraw(String officialStatus, int matches) {
if (officialStatus.equals("official"))
System.out.println("There was a tie! You both made the same amount of matches! (Score: " + matches + "-" + matches + ")");
else
System.out.println("There was a tie! The remaining pile ran out of cards, and you both made the same amount of matches! (Score: " + matches + "-" + matches + ")");
}
public static void main(String[] args) {
GoFishGame game = new GoFishGame("Go Fish");
Scanner sc = new Scanner(System.in);
boolean playAgain = true;
while (playAgain) {
game.play();
System.out.println("Would you like to play again? Please enter either 'y' or 'n'.");
String ans;
do {
ans = sc.next();
if (ans.equals("y") || ans.equals("n")) {
if (ans.equals("n"))
playAgain = false;
else
System.out.println("\n\n\n\n");
} else
System.out.println("Error: Please enter either 'y' or 'n'!");
} while (!ans.equals("y") && !ans.equals("n"));
}
}
} | [
"[email protected]"
]
| |
6093dddd752d908e5b13e0742cf7c15bbafcc414 | feccf53a53c20585d5f0710257006e87036a36f0 | /JanSeleniumTraining/src/main/java/JanSeleniumTraining/JanSeleniumTraining/App.java | 08988645c56ecbe8046781c4a84a972621cc990d | []
| no_license | amanb1512/harpreet-framework | 320338f71b77f7f2ff8af2c68b9ef064bf088701 | aac834a7d57306329f02f30fb31fab4a3e69e0ab | refs/heads/master | 2023-05-11T08:13:51.599881 | 2019-12-14T18:59:13 | 2019-12-14T18:59:13 | 228,069,978 | 0 | 0 | null | 2023-05-09T18:18:07 | 2019-12-14T18:29:39 | JavaScript | UTF-8 | Java | false | false | 202 | java | package JanSeleniumTraining.JanSeleniumTraining;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
| [
"[email protected]"
]
| |
775119d462b36e754a6f47a57786af218b6ffa41 | 6241a42a3e21af9dda01a9a03b6a39e679535d8d | /src/main/java/br/com/zupacademy/guilhermesantos/proposta/enums/StatusBloqueioCartao.java | 3718b3ad334700af7c7690471c086b30b3cf0e9c | [
"Apache-2.0"
]
| permissive | GuilhermeJWT/orange-talents-04-template-proposta | 29e7239ee81cc7b129bd7ea9db2f14e4841b26a5 | ac9e60aa83fe6f4ae923e5b3fcad02f8015cd200 | refs/heads/main | 2023-04-30T17:16:31.562343 | 2021-05-26T13:42:21 | 2021-05-26T13:42:21 | 364,989,489 | 0 | 0 | Apache-2.0 | 2021-05-06T17:35:41 | 2021-05-06T17:35:41 | null | UTF-8 | Java | false | false | 123 | java | package br.com.zupacademy.guilhermesantos.proposta.enums;
public enum StatusBloqueioCartao {
BLOQUEADO, VIAJANDO;
}
| [
"[email protected]"
]
| |
646183582052de99750d62746a6426b4c49d9f1c | c9006498a5a20c60c7b8f97d1e4ef3194b6f84cd | /app/src/main/java/xm/ppq/papaquan/View/purchase_red/PurchaseRedActivity.java | 51028f7e5151ed1154c99735d5e30043185e5207 | []
| no_license | sunshaobei/Papaquan | c3490b5e4596c7e0c53c30935d2458362cdee914 | 69b5ad5350b483d58d4c0bfcb451a03f428e22c9 | refs/heads/master | 2021-01-21T19:20:06.917564 | 2017-05-23T06:08:15 | 2017-05-23T06:08:15 | 87,443,994 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 9,494 | java | package xm.ppq.papaquan.View.purchase_red;
import android.content.Intent;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.view.View;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.google.gson.internal.LinkedTreeMap;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import java.util.HashMap;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import rx.Subscriber;
import xm.ppq.papaquan.Bean.BaseBean;
import xm.ppq.papaquan.R;
import xm.ppq.papaquan.Tool.JsonTool;
import xm.ppq.papaquan.Tool.OkPotting;
import xm.ppq.papaquan.Tool.SharedPreferencesPotting;
import xm.ppq.papaquan.View.BaseActivity;
import xm.ppq.papaquan.View.BaseUrl;
import xm.ppq.papaquan.life.Tool.ShareAndPay;
import xm.ppq.papaquan.webview_protocol.WebView_ProtocolActivity;
/**
* Created by 购买红卡 on 2017/4/10.
*/
public class PurchaseRedActivity extends BaseActivity {
@BindView(R.id.red_money)
TextView red_money;
@BindView(R.id.finish_result)
TextView finish_result;
@BindView(R.id.center_result)
TextView center_result;
@BindView(R.id.affirm_pay)
TextView affirm_pay;
@BindView(R.id.not_image)
ImageView not_image;
@BindView(R.id.card_type)
TextView card_type;
@BindView(R.id.end_time)
TextView end_time;
@BindView(R.id.invite_edit)
EditText invite_edit;
private String time;
private float money;
private int yu_e = 0;
private SharedPreferencesPotting potting;
private int type;
@Override
protected int getLayout() {
return R.layout.activity_purchase_red;
}
@Override
protected void initData() {
ButterKnife.bind(this);
if (!EventBus.getDefault().isRegistered(this)) EventBus.getDefault().register(this);
finish_result.setText("");
center_result.setText("购买红卡");
time = getData("time");
type = getIntent().getIntExtra("type", 0);
potting = new SharedPreferencesPotting(this, "my_login");
if (time.startsWith("¥")) {
switch (type) {
case 1:
card_type.setText("一年红卡");
break;
case 2:
card_type.setText("半年红卡");
break;
case 3:
card_type.setText("一月红卡");
break;
case 4:
card_type.setText("一周红卡");
break;
}
money = Float.valueOf(time.substring(1));
red_money.setText(money + "元");
affirm_pay.setText("确认支付¥" + money);
if (yu_e < money) {
not_image.setVisibility(View.VISIBLE);
pay_check.setVisibility(View.GONE);
} else {
not_image.setVisibility(View.GONE);
pay_check.setVisibility(View.VISIBLE);
}
} else {
red_money.setText("元");
not_image.setVisibility(View.GONE);
pay_check.setVisibility(View.VISIBLE);
}
getInfo();
}
@Override
protected void onDestroy() {
super.onDestroy();
EventBus.getDefault().unregister(this);
}
@BindView(R.id.pay_check)
CheckBox pay_check;
@BindView(R.id.zfb_pay)
CheckBox zfb_pay;
@BindView(R.id.wx_check)
CheckBox wx_check;
@BindView(R.id.red_pay)
LinearLayout red_pay;
private int pay_type = 0;
@OnClick({R.id.red_wx, R.id.red_zfb, R.id.red_pay})
public void pay(View view) {
switch (view.getId()) {
case R.id.red_wx:
pay_type = 0;
break;
case R.id.red_zfb:
pay_type = 1;
break;
case R.id.red_pay:
pay_type = 2;
break;
}
Checkboxed(pay_type, wx_check, zfb_pay, pay_check);
}
@Override
protected void setListener() {
finish_result.setOnClickListener(v -> finish());
affirm_pay.setOnClickListener(v -> {
String s = invite_edit.getText().toString();
switch (pay_type) {
case 0:
JsonTool jsonTool = new JsonTool();
jsonTool.put_key("type", "uid", "token", "tokentype", "citycode", "trade_type", "invitecode")
.put_value(type, potting.getItemInt("uid"),
potting.getItemString("token"),
1, potting.getItemString("citycode"),
"APP", s);
ShareAndPay.WxPay(this, "http://app.papaquan.com/index.php/index/Wxpay/paycard", jsonTool.getJson());
break;
case 1:
JsonTool z = new JsonTool();
z.put_key("uid", "token", "tokentype", "type", "trade_type", "citycode", "invitecode")
.put_value(potting.getItemInt("uid"), potting.getItemString("token"), 1, type, 2, potting.getItemString("citycode"), s);
ShareAndPay.ZhiPay(this, BaseUrl.LIFE_URL + BaseUrl.REDZFB, z.getJson(), handler);
break;
case 2:
JsonTool jsonTool1 = new JsonTool();
jsonTool1.put_key("citycode", "uid", "token", "tokentype", "type", "invitecode")
.put_value(potting.getItemString("citycode"), potting.getItemInt("uid"), potting.getItemString("token"), 1, type, s);
OkPotting.getInstance(BaseUrl.LIFE_URL).Ask(BaseUrl.BALANCEPAY, jsonTool1.getJson().toString(), new Subscriber<BaseBean>() {
@Override
public void onCompleted() {
}
@Override
public void onError(Throwable e) {
}
@Override
public void onNext(BaseBean baseBean) {
if (baseBean != null) {
if (baseBean.getCode().equals("0")) {
ToastShow("购买成功");
finish();
} else {
ToastShow(baseBean.getInfo());
}
}
}
});
break;
}
});
}
Handler handler = new Handler(Looper.getMainLooper()) {
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
if (msg.what == 0x1) {
HashMap<Object, Object> hash = (HashMap<Object, Object>) msg.obj;
String key = (String) hash.get("resultStatus");
if (key.equals("9000")) {
finish();
} else {
ToastShow("支付失败");
}
}
}
};
@Subscribe
public void Success(String result) {
if (result.equals("Success")) {
finish();
}
}
@BindView(R.id.balance)
TextView balance;
private void getInfo() {
JsonTool jsonTool = new JsonTool();
jsonTool.put_key("type", "uid", "tokentype", "citycode", "token")
.put_value(type, potting.getItemInt("uid"), 1, potting.getItemString("citycode"), potting.getItemString("token"));
OkPotting.getInstance(BaseUrl.LIFE_URL).Ask(BaseUrl.GETCARDSET, jsonTool.getJson().toString(), new Subscriber<BaseBean>() {
@Override
public void onCompleted() {
}
@Override
public void onError(Throwable e) {
}
@Override
public void onNext(BaseBean baseBean) {
if (baseBean != null) {
LinkedTreeMap<Object, String> map = (LinkedTreeMap<Object, String>) baseBean.getData();
end_time.setText(map.get("endtime"));
balance.setText("(余额:" + map.get("money") + "元)");
double red_money = Double.parseDouble(map.get("price"));
double money = Double.parseDouble(map.get("money"));
if (red_money <= money) {
pay_check.setVisibility(View.VISIBLE);
not_image.setVisibility(View.GONE);
red_pay.setClickable(true);
} else {
red_pay.setClickable(false);
pay_check.setVisibility(View.GONE);
not_image.setVisibility(View.VISIBLE);
}
}
}
}
);
}
public void read(View view) {
Intent intent = new Intent(this, WebView_ProtocolActivity.class);
intent.putExtra("type", 0);
startActivity(intent);
}
} | [
"[email protected]"
]
| |
74b4f3f42014c1ba2c75fb9f00a4535548cede68 | c91ffa22d2ff915240cfdb37149498ad37cc700e | /src/main/java/com/artland/controller/admin/BlogController.java | 595e2b342cf0e7ffaf19818ef5de70e80ac255a4 | [
"Apache-2.0"
]
| permissive | WaylanPunch/ArtLand2 | be1d497251d9a312f2f90bdf9be29fbedec178fa | c05511618747b59fc24e11a8ddd0da816a7290b4 | refs/heads/main | 2023-02-14T02:26:39.415668 | 2021-01-09T16:44:38 | 2021-01-09T16:44:38 | 325,839,155 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,182 | java | package com.artland.controller.admin;
import com.artland.config.Constants;
import com.artland.entity.Blog;
import com.artland.service.BlogService;
import com.artland.service.CategoryService;
import com.artland.util.ArtLandUtils;
import com.artland.util.PageQueryUtil;
import com.artland.util.Result;
import com.artland.util.ResultGenerator;
import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.net.URISyntaxException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Map;
import java.util.Random;
/**
* @author WaylanPunch
* @email [email protected]
* @link https://github.com/WaylanPunch
* @date 2017-10-31
*/
@Controller
@RequestMapping("/admin")
public class BlogController {
@Resource
private BlogService blogService;
@Resource
private CategoryService categoryService;
@GetMapping("/blogs/list")
@ResponseBody
public Result list(@RequestParam Map<String, Object> params) {
if (StringUtils.isEmpty(params.get("page")) || StringUtils.isEmpty(params.get("limit"))) {
return ResultGenerator.genFailResult("参数异常!");
}
PageQueryUtil pageUtil = new PageQueryUtil(params);
return ResultGenerator.genSuccessResult(blogService.getBlogsPage(pageUtil));
}
@GetMapping("/blogs")
public String list(HttpServletRequest request) {
request.setAttribute("path", "blogs");
return "admin/blog";
}
@GetMapping("/blogs/edit")
public String edit(HttpServletRequest request) {
request.setAttribute("path", "edit");
request.setAttribute("categories", categoryService.getAllCategories());
return "admin/edit";
}
@GetMapping("/blogs/edit/{blogId}")
public String edit(HttpServletRequest request, @PathVariable("blogId") Long blogId) {
request.setAttribute("path", "edit");
Blog blog = blogService.getBlogById(blogId);
if (blog == null) {
return "error/error_400";
}
request.setAttribute("blog", blog);
request.setAttribute("categories", categoryService.getAllCategories());
return "admin/edit";
}
@PostMapping("/blogs/save")
@ResponseBody
public Result save(@RequestParam("blogTitle") String blogTitle,
@RequestParam(name = "blogSubUrl", required = false) String blogSubUrl,
@RequestParam("blogCategoryId") Integer blogCategoryId,
@RequestParam("blogTags") String blogTags,
@RequestParam("blogContent") String blogContent,
@RequestParam("blogCoverImage") String blogCoverImage,
@RequestParam("blogStatus") Byte blogStatus,
@RequestParam("enableComment") Byte enableComment) {
if (StringUtils.isEmpty(blogTitle)) {
return ResultGenerator.genFailResult("请输入文章标题");
}
if (blogTitle.trim().length() > 150) {
return ResultGenerator.genFailResult("标题过长");
}
if (StringUtils.isEmpty(blogTags)) {
return ResultGenerator.genFailResult("请输入文章标签");
}
if (blogTags.trim().length() > 150) {
return ResultGenerator.genFailResult("标签过长");
}
if (blogSubUrl.trim().length() > 150) {
return ResultGenerator.genFailResult("路径过长");
}
if (StringUtils.isEmpty(blogContent)) {
return ResultGenerator.genFailResult("请输入文章内容");
}
if (blogTags.trim().length() > 100000) {
return ResultGenerator.genFailResult("文章内容过长");
}
if (StringUtils.isEmpty(blogCoverImage)) {
return ResultGenerator.genFailResult("封面图不能为空");
}
Blog blog = new Blog();
blog.setTitle(blogTitle);
blog.setSubUrl(blogSubUrl);
blog.setCategoryId(blogCategoryId);
blog.setTags(blogTags);
blog.setContent(blogContent);
blog.setCoverImage(blogCoverImage);
blog.setStatus(blogStatus);
blog.setEnableComment(enableComment);
String saveBlogResult = blogService.saveBlog(blog);
if ("success".equals(saveBlogResult)) {
return ResultGenerator.genSuccessResult("添加成功");
} else {
return ResultGenerator.genFailResult(saveBlogResult);
}
}
@PostMapping("/blogs/update")
@ResponseBody
public Result update(@RequestParam("blogId") Long blogId,
@RequestParam("blogTitle") String blogTitle,
@RequestParam(name = "blogSubUrl", required = false) String blogSubUrl,
@RequestParam("blogCategoryId") Integer blogCategoryId,
@RequestParam("blogTags") String blogTags,
@RequestParam("blogContent") String blogContent,
@RequestParam("blogCoverImage") String blogCoverImage,
@RequestParam("blogStatus") Byte blogStatus,
@RequestParam("enableComment") Byte enableComment) {
if (StringUtils.isEmpty(blogTitle)) {
return ResultGenerator.genFailResult("请输入文章标题");
}
if (blogTitle.trim().length() > 150) {
return ResultGenerator.genFailResult("标题过长");
}
if (StringUtils.isEmpty(blogTags)) {
return ResultGenerator.genFailResult("请输入文章标签");
}
if (blogTags.trim().length() > 150) {
return ResultGenerator.genFailResult("标签过长");
}
if (blogSubUrl.trim().length() > 150) {
return ResultGenerator.genFailResult("路径过长");
}
if (StringUtils.isEmpty(blogContent)) {
return ResultGenerator.genFailResult("请输入文章内容");
}
if (blogTags.trim().length() > 100000) {
return ResultGenerator.genFailResult("文章内容过长");
}
if (StringUtils.isEmpty(blogCoverImage)) {
return ResultGenerator.genFailResult("封面图不能为空");
}
Blog blog = new Blog();
blog.setId(blogId);
blog.setTitle(blogTitle);
blog.setSubUrl(blogSubUrl);
blog.setCategoryId(blogCategoryId);
blog.setTags(blogTags);
blog.setContent(blogContent);
blog.setCoverImage(blogCoverImage);
blog.setStatus(blogStatus);
blog.setEnableComment(enableComment);
String updateBlogResult = blogService.updateBlog(blog);
if ("success".equals(updateBlogResult)) {
return ResultGenerator.genSuccessResult("修改成功");
} else {
return ResultGenerator.genFailResult(updateBlogResult);
}
}
@PostMapping("/blogs/md/uploadfile")
public void uploadFileByEditormd(HttpServletRequest request,
HttpServletResponse response,
@RequestParam(name = "editormd-image-file", required = true)
MultipartFile file) throws IOException, URISyntaxException {
String fileName = file.getOriginalFilename();
String suffixName = fileName.substring(fileName.lastIndexOf("."));
//生成文件名称通用方法
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd_HHmmss");
Random r = new Random();
StringBuilder tempName = new StringBuilder();
tempName.append(sdf.format(new Date())).append(r.nextInt(100)).append(suffixName);
String newFileName = tempName.toString();
//创建文件
File destFile = new File(Constants.FILE_UPLOAD_DIC + newFileName);
String fileUrl = ArtLandUtils.getHost(new URI(request.getRequestURL() + "")) + "/upload/" + newFileName;
File fileDirectory = new File(Constants.FILE_UPLOAD_DIC);
try {
if (!fileDirectory.exists()) {
if (!fileDirectory.mkdir()) {
throw new IOException("文件夹创建失败,路径为:" + fileDirectory);
}
}
file.transferTo(destFile);
request.setCharacterEncoding("utf-8");
response.setHeader("Content-Type", "text/html");
response.getWriter().write("{\"success\": 1, \"message\":\"success\",\"url\":\"" + fileUrl + "\"}");
} catch (UnsupportedEncodingException e) {
response.getWriter().write("{\"success\":0}");
} catch (IOException e) {
response.getWriter().write("{\"success\":0}");
}
}
@PostMapping("/blogs/delete")
@ResponseBody
public Result delete(@RequestBody Integer[] ids) {
if (ids.length < 1) {
return ResultGenerator.genFailResult("参数异常!");
}
if (blogService.deleteBatch(ids)) {
return ResultGenerator.genSuccessResult();
} else {
return ResultGenerator.genFailResult("删除失败");
}
}
}
| [
"[email protected]"
]
| |
8e56ddbbbb570e6599b1eac1f7c3993d3c951772 | 351a35aa740b293a17ddcf754f9fdde41627ef48 | /src/main/java/act/cli/meta/CommandParamMetaInfo.java | a195825743431aeccddae4d54eeb68c524ae9856 | [
"Apache-2.0"
]
| permissive | tracythink/actframework | d04b661a71d7af3aa420a77d7e380631a5814cc5 | c9d5b8d8aa4a44d5d91326a3d3582690f4920594 | refs/heads/master | 2020-12-26T03:33:01.930292 | 2016-08-05T00:01:00 | 2016-08-05T00:01:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,053 | java | package act.cli.meta;
import act.asm.Type;
import act.util.AsmTypes;
import act.util.DestroyableBase;
import org.osgl.$;
import org.osgl.util.S;
/**
* Stores Command parameter meta info
*/
public class CommandParamMetaInfo extends DestroyableBase {
private String name;
private Type type;
private boolean readFileContent;
private Type componentType;
private boolean context;
private String cliSessionAttributeKey;
private ParamOptionAnnoInfo optionInfo;
public CommandParamMetaInfo name(String name) {
this.name = $.NPE(name);
return this;
}
public String name() {
return name;
}
public CommandParamMetaInfo type(Type type) {
this.type = $.NPE(type);
if (AsmTypes.isContextType(type)) {
context = true;
}
return this;
}
public Type type() {
return type;
}
public CommandParamMetaInfo setContext() {
this.context = true;
return this;
}
public boolean isContext() {
return context;
}
public CommandParamMetaInfo componentType(Type type) {
this.componentType = $.NPE(type);
return this;
}
public Type componentType() {
return componentType;
}
public CommandParamMetaInfo optionInfo(ParamOptionAnnoInfo optionInfo) {
this.optionInfo = $.NPE(optionInfo);
optionInfo.paramName(name);
return this;
}
public ParamOptionAnnoInfo optionInfo() {
return optionInfo;
}
public CommandParamMetaInfo attributeKey(String cliSessionAttributeKey) {
if (S.blank(cliSessionAttributeKey)) {
cliSessionAttributeKey = name;
}
this.cliSessionAttributeKey = cliSessionAttributeKey;
return this;
}
public String cliSessionAttributeKey() {
return cliSessionAttributeKey;
}
public void setReadFileContent() {
readFileContent = true;
}
public boolean readFileContent() {
return readFileContent;
}
}
| [
"[email protected]"
]
| |
4ae131b5efbd55c4c83d1a1c47d3faf44706db83 | 7ed15ed8caa0094d29adc0eb87be88bbf31b0b7f | /app/src/main/java/com/zhf/androidtest/MyTextView.java | 608a8d568a00f1aa18bd17b75f4fb35b0d07f960 | []
| no_license | helloHaifei/AndroidNote | a9a8195d62038bb716eaaebe38f8fb1a333eb6f4 | 2ab5c062563fef8ffbb87ceb273005fff8a5c4e7 | refs/heads/master | 2021-06-15T22:08:38.741390 | 2017-05-04T10:25:12 | 2017-05-04T10:25:12 | 56,898,847 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,041 | java | package com.zhf.androidtest;
import android.content.Context;
import android.graphics.Paint;
import android.text.Layout;
import android.util.AttributeSet;
import android.widget.TextView;
/**
* Created by zhf on 16/7/11.
*/
public class MyTextView extends TextView{
public MyTextView(Context context, AttributeSet attrs) {
super(context, attrs, 0);
}
public MyTextView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
}
// public void isOverFlowed(String value, int widthLL) {
// Paint paint = getPaint();
// float width = paint.measureText(value);
// widthLL = widthLL - getPaddingLeft();
// if (width > widthLL) {
// for (int i = value.length() - 4; i > 0; i--) {
// width = paint.measureText(ATStringUtil.concatString(value.substring(0, i), "..."));
// if (width <= widthLL) {
// setText(ATStringUtil.concatString(value.substring(0, i), "..."));
// break;
// }
// }
// }
// }
@Override
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
super.onLayout(changed, left, top, right, bottom);
resize();
}
/**
* 去除当前页无法显示的字
* @return 去掉的字数
*/
public int resize() {
CharSequence oldContent = getText();
CharSequence newContent = oldContent.subSequence(0, getCharNum());
setText(newContent);
return oldContent.length() - newContent.length();
}
/**
* 获取当前页总字数
*/
public int getCharNum() {
return getLayout().getLineEnd(getLineNum());
}
/**
* 获取当前页总行数
*/
public int getLineNum() {
Layout layout = getLayout();
int topOfLastLine = getHeight() - getPaddingTop() - getPaddingBottom() - getLineHeight();
return layout.getLineForVertical(topOfLastLine);
}
}
| [
"[email protected]"
]
| |
9841beebdf5e0f46227e798d415b33662cfb1f62 | c3445da9eff3501684f1e22dd8709d01ff414a15 | /LIS/sinosoft-parents/lis-business/src/main/java/com/sinosoft/lis/taskservice/taskinstance/AutoUWCheckInterval.java | 4e35623fc56ab618144d780e3e14d11f48a10b39 | []
| no_license | zhanght86/HSBC20171018 | 954403d25d24854dd426fa9224dfb578567ac212 | c1095c58c0bdfa9d79668db9be4a250dd3f418c5 | refs/heads/master | 2021-05-07T03:30:31.905582 | 2017-11-08T08:54:46 | 2017-11-08T08:54:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 10,038 | java | /**
* Copyright (c) 2005 sinosoft Co. Ltd.
* All right reserved.
*/
package com.sinosoft.lis.taskservice.taskinstance;
import org.apache.log4j.Logger;
import com.sinosoft.lis.db.LCCUWMasterDB;
import com.sinosoft.lis.db.LCCUWSubDB;
import com.sinosoft.lis.db.LWMissionDB;
import com.sinosoft.lis.pubfun.GlobalInput;
import com.sinosoft.lis.pubfun.MMap;
import com.sinosoft.lis.pubfun.PubConcurrencyLock;
import com.sinosoft.lis.pubfun.PubFun;
import com.sinosoft.lis.pubfun.PubFun1;
import com.sinosoft.lis.pubfun.PubSubmit;
import com.sinosoft.lis.schema.LBMissionSchema;
import com.sinosoft.lis.schema.LCCUWMasterSchema;
import com.sinosoft.lis.schema.LCCUWSubSchema;
import com.sinosoft.lis.schema.LWMissionSchema;
import com.sinosoft.lis.taskservice.TaskThread;
import com.sinosoft.lis.vschema.LBMissionSet;
import com.sinosoft.lis.vschema.LWMissionSet;
import com.sinosoft.utility.CError;
import com.sinosoft.utility.CErrors;
import com.sinosoft.utility.ExeSQL;
import com.sinosoft.utility.Reflections;
import com.sinosoft.utility.SQLwithBindVariables;
import com.sinosoft.utility.SSRS;
import com.sinosoft.utility.VData;
/**
* <p>
* Title: Web业务系统
* </p>
* <p>
* Description: 自动核保-后台自动处理入口
* </p>
* <p>
* Copyright: Copyright (c) 2005
* </p>
* <p>
* Company: Sinosoft
* </p>
*
* @author ck
* @version 1.0
* @CreateDate:2005-09-02
*/
public class AutoUWCheckInterval extends TaskThread {
private static Logger logger = Logger.getLogger(AutoUWCheckInterval.class);
public CErrors mErrors = new CErrors();
private MMap map = new MMap();
private VData mInputData;
public AutoUWCheckInterval() {
}
private PubConcurrencyLock mPubLock = new PubConcurrencyLock();
private boolean lockNo(String tPrtNo) {
if (!mPubLock.lock(tPrtNo, "LC2000")) {
return false;
}
return true;
}
/**
* prepareOutputData
*
* @return boolean
*/
private boolean prepareOutputData() {
try {
mInputData=new VData();
mInputData.clear();
mInputData.add(map);
} catch (Exception ex) {
// @@错误处理
CError tError = new CError();
tError.moduleName = "SelAssignPlanBL";
tError.functionName = "prepareOutputData";
tError.errorMessage = "在准备往后层处理所需要的数据时出错:" + ex.toString();
mErrors.addOneError(tError);
return false;
}
return true;
}
public boolean dealMain() {
/* 业务处理逻辑 */
logger.debug("进入业务逻辑处理!--开始自动复核" + PubFun.getCurrentDate() + "**"
+ PubFun.getCurrentTime());
GlobalInput tG = new GlobalInput();
tG.ComCode = "86";
tG.Operator = "AUTO";
tG.ManageCom = "86";
//日志监控,初始化
tG.LogID[0]="TASK"+(String)mParameters.get("TaskCode");
tG.LogID[1]=(String)mParameters.get("SerialNo");
//日志监控,过程监控
PubFun.logTrack(tG,tG.LogID[1],"开始新契约逾期通知书处理");
String tSql_Interval = "select sysvarvalue from ldsysvar where sysvar ='UWInterval'";
SQLwithBindVariables sqlbv=new SQLwithBindVariables();
sqlbv.sql(tSql_Interval);
ExeSQL tExeSQL =new ExeSQL();
SSRS tSSRS = new SSRS();
//String tInterval = "";
String tNowDate = PubFun.getCurrentDate();
String tNowTime = PubFun.getCurrentTime();//时间在修改状态时会用
int tInterval = Integer.valueOf(tExeSQL.getOneValue(sqlbv)).intValue();
logger.debug("数据库中所描述的天数为:"+tInterval);
//日志监控,过程监控
PubFun.logTrack(tG,tG.LogID[1],"新契约通知书逾期天数为"+tInterval+"天");
LWMissionSchema tLWMissionSchema = new LWMissionSchema();
LWMissionDB tLWMissionDB =new LWMissionDB();
LWMissionSet tLWMissionSet = new LWMissionSet();
LWMissionSet tLWMissionSet1 = new LWMissionSet();
LBMissionSet tLBMissionSet1 = new LBMissionSet();
//add by lzf
LCCUWMasterDB tLCCUWMasterDB = new LCCUWMasterDB();
LCCUWSubDB tLCCUWSubDB = new LCCUWSubDB();
LCCUWMasterSchema tLCCUWMasterSchema = new LCCUWMasterSchema();
LCCUWSubSchema tLCCUWSubSchema = new LCCUWSubSchema();
//String sql = "select * from lwmission where ActivityID='0000001100' and MissionProp18 in ('4','6') order by missionprop8 ";
String sql = "select a.* from lwmission a,lccuwmaster b where a.ActivityID in (select activityid from lwactivity where functionid='10010028')"
+" and a.missionprop2 =b.contno and b.uwstate in ('4','6') order by a.missionprop8 ";//modify by lzf
SQLwithBindVariables sqlbv1=new SQLwithBindVariables();
sqlbv1.sql(sql);
//end by lzf
//tLWMissionDB.setActivityID("0000001100");
//tLWMissionDB.setMissionProp18("4");
//tLWMissionSet =tLWMissionDB.query();
tLWMissionSet =tLWMissionDB.executeQuery(sqlbv1);
if(tLWMissionSet.size()>0){
int mCount=0;
try {
for(int i =1;i<=tLWMissionSet.size();i++)
{
String tUWDate = tLWMissionSet.get(i).getMissionProp8();
logger.debug("合同号为:"+tLWMissionSet.get(i).getMissionProp1()+"的保单的通知书下发日期为:"+tUWDate);
//日志监控,过程监控
PubFun.logTrack(tG,tLWMissionSet.get(i).getMissionProp1(),"保单"+tLWMissionSet.get(i).getMissionProp1()+"的通知书下发日期为:"+tUWDate);
logger.debug("当前时间为:"+tNowDate);
//校验时间间隔
int tDay =PubFun.calInterval(tUWDate, tNowDate, "D");
if(tDay>=tInterval){
mCount++;
//超过要求时间
logger.debug("下发通知书时间已经超过了系统要求的"+tInterval+"天!此保单的UW_State将被置为‘7’");
//日志监控,过程监控
PubFun.logTrack(tG,tLWMissionSet.get(i).getMissionProp1(),"保单"+tLWMissionSet.get(i).getMissionProp1()+"的通知书下发时间已经超过了"+tInterval+"天!");
if (!lockNo(tLWMissionSet.get(i).getMissionProp1())) {
logger.debug("锁定号码失败!");
this.mErrors.addOneError(this.mPubLock.mErrors.getFirstError());
//mPubLock.unLock();
continue;
}// 锁定主附险投保单号以及暂收费号码)
else{
//修改状态和其他字段
tLWMissionSchema = new LWMissionSchema();
tLWMissionSchema = tLWMissionSet.get(i);
//备份工作流 ln 2009-2-18 add
LBMissionSchema mLBMissionSchema = new LBMissionSchema();
Reflections mReflections = new Reflections();
String tSerielNo = PubFun1.CreateMaxNo("MissionSerielNo", 10);
mReflections.transFields(mLBMissionSchema, tLWMissionSchema);
mLBMissionSchema.setSerialNo(tSerielNo);
mLBMissionSchema.setActivityStatus("3"); // 节点任务执行完毕
mLBMissionSchema.setLastOperator("AUTO");
mLBMissionSchema.setMakeDate(PubFun.getCurrentDate());
mLBMissionSchema.setMakeTime(PubFun.getCurrentTime());
tLBMissionSet1.add(mLBMissionSchema);
tLWMissionSchema.setMissionProp18("7");
tLWMissionSchema.setMissionProp8(tNowDate);
tLWMissionSchema.setMissionProp9(tNowTime);
tLWMissionSchema.setDefaultOperator(null);
tLWMissionSchema.setMissionProp14("0000000000");
tLWMissionSchema.setModifyDate(tNowDate);
tLWMissionSchema.setModifyTime(tNowTime);
tLWMissionSet1.add(tLWMissionSchema);
//更新lccuwmaster,lccuwsub表中的uwstate字段 2013-04-07 lzf
tLCCUWMasterDB.setContNo(tLWMissionSet.get(i).getMissionProp2());
if(!tLCCUWMasterDB.getInfo()){
CError.buildErr(this, "LCCUWMaster表取数失败!");
return false;
}
tLCCUWMasterSchema = tLCCUWMasterDB.getSchema();
tLCCUWMasterSchema.setUWState("7");
tLCCUWMasterSchema.setModifyDate(tNowDate);
tLCCUWMasterSchema.setModifyTime(tNowTime);
tLCCUWSubDB.setContNo(tLWMissionSet.get(i).getMissionProp2());
tLCCUWSubDB.setUWNo(tLCCUWMasterSchema.getUWNo());
if(!tLCCUWSubDB.getInfo()){
CError.buildErr(this, "LCCUWSub表取数失败!");
return false;
}
tLCCUWSubSchema = tLCCUWSubDB.getSchema();
tLCCUWSubSchema.setUWState("7");
tLCCUWSubSchema.setModifyDate(tNowDate);
tLCCUWSubSchema.setModifyTime(tNowTime);
//end by lzf
}
// 日志监控,状态监控
PubFun.logState(tG,tLWMissionSet.get(i).getMissionProp1(), "保单"+tLWMissionSet.get(i).getMissionProp1()+"的逾期通知书处理成功","1");
}
}
map.put(tLWMissionSet1, "UPDATE");
map.put(tLBMissionSet1, "INSERT");
map.put(tLCCUWMasterSchema, "UPDATE");//add by lzf
map.put(tLCCUWSubSchema, "UPDATE");//add by lzf
if (!prepareOutputData()) {
return false;
}
PubSubmit tPubSubmit = new PubSubmit();
if (!tPubSubmit.submitData(mInputData, "")) {
// @@错误处理
this.mErrors.copyAllErrors(tPubSubmit.mErrors);
CError tError = new CError();
tError.moduleName = "SelAutoAssignDutyBL";
tError.functionName = "submitData";
tError.errorMessage = "数据提交失败!";
this.mErrors.addOneError(tError);
return false;
}
} catch (RuntimeException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally{
mPubLock.unLock();
}
// 日志监控,结果监控
PubFun.logResult (tG,tG.LogID[1],"本次共处理新契约逾期通知书"+mCount+"笔");
}else{
logger.debug("没有处在人工核保状态的保单!");
}
logger.debug("结束业务逻辑处理!--自动复核" + PubFun.getCurrentDate() + "**"
+ PubFun.getCurrentTime());
/* end 业务处理逻辑 add by ck */
//日志监控,过程监控
PubFun.logTrack(tG,tG.LogID[1],"新契约逾期通知书处理结束");
return true;
}
public static void main(String[] args) {
AutoUWCheckInterval tAutoUWCheckInterval = new AutoUWCheckInterval();
tAutoUWCheckInterval.dealMain();
}
}
| [
"[email protected]"
]
| |
9c5dcb6b4152aa23bdd760ac7d34dd896539e2ce | 532cf97568b0205fe877f8d7825e1d4fdb5ff70b | /src/ch09_2_anonymous/AnonymousExample.java | 7c2ff5ff0e51846e5c830b47d19bfdf039ed7b1b | []
| no_license | cooco01/Chapter09_NestedClass | c454d6d4df6e4386291f626ca18c3025b9117380 | 34ea325b6e11f834f5cad3e92dd459dfb9d4c77a | refs/heads/master | 2023-07-08T11:38:35.093771 | 2021-08-10T10:19:45 | 2021-08-10T10:19:45 | 394,609,697 | 0 | 0 | null | null | null | null | UHC | Java | false | false | 542 | java | package ch09_2_anonymous;
public class AnonymousExample {
public static void main(String[] args) {
Anonymous anony = new Anonymous();
// 익명의 객체 필드 사용
anony.field.wake();
// 익명 객체 로컬 변수 사용
anony.method1();
// 익명 객체 매개값 사용
anony.method2(
new Person() {
void study() {
System.out.println("공부합니다");
}
@Override
void wake() {
System.out.println("8시에 일어납니다");
study();
}
}
);
}
}
| [
"User@DESKTOP-U7IM74J"
]
| User@DESKTOP-U7IM74J |
ed71e2ce685a14831fbb3d2b4a6c4a8919ac1396 | 910dd39af397c093a000931215fb1ef4ebab08ab | /guigu_parent/service/service_edu/src/main/java/com/atguigu/eduservice/client/VodClient.java | c1eb1b35654aaaa62a56cc774fb86755bfd8ac96 | []
| no_license | jiangkaili/springboot | a4ac5256b4be724e27abb7476b4fec5de3125f27 | 12c86254a81b9c18b86d28fbd791fe701426fc73 | refs/heads/main | 2023-03-04T12:58:34.431290 | 2021-02-19T15:04:44 | 2021-02-19T15:04:44 | 323,680,987 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 771 | java | package com.atguigu.eduservice.client;
import com.atguigu.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
@FeignClient(name = "service-vod", fallback = VodFileDegradeFeignClient.class)
@Component
public interface VodClient {
@DeleteMapping("/eduvod/video/removeAlyVideo/{videoId}")
public R removeAlyVideo(@PathVariable("videoId") String videoId);
@DeleteMapping("/eduvod/video/delete-batch")
public R deleteBatch(@RequestParam("videoIdList") List<String> videoIdList);
}
| [
"[email protected]"
]
| |
bfcb9850cd3538c843dbce17e95a0926732cccb5 | 51f6f6b18d3ac5e12b2147624408bf445954d383 | /difficulty_easy/power_of_thor_ep1.java | dab54f9589c45e9cf63a342b24c4b4bcf66f06bb | []
| no_license | afossey/codingame-solutions | 16b537b52a2390ba1858792fb37c9e95a29d7bf7 | ef9d20be78f1a7e8f7f5c6ae986fdbc445f32a1a | refs/heads/main | 2023-07-19T02:20:56.655008 | 2021-09-05T21:10:06 | 2021-09-05T21:10:06 | 403,082,960 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,746 | java | import java.util.*;
import java.io.*;
import java.math.*;
// https://www.codingame.com/ide/puzzle/power-of-thor-episode-1
/**
* Auto-generated code below aims at helping you parse
* the standard input according to the problem statement.
* ---
* Hint: You can use the debug stream to print initialTX and initialTY, if Thor seems not follow your orders.
**/
class Player {
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
int lightX = in.nextInt(); // the X position of the light of power
int lightY = in.nextInt(); // the Y position of the light of power
int initialTX = in.nextInt(); // Thor's starting X position
int initialTY = in.nextInt(); // Thor's starting Y position
Position target = new Position(lightX, lightY);
Thor thor = new Thor(initialTX, initialTY, target);
// game loop
while (true) {
int remainingTurns = in.nextInt(); // The remaining amount of turns Thor can move. Do not remove this line.
thor.moveTowardsTarget();
// Write an action using System.out.println()
// To debug: System.err.println("Debug messages...");
System.err.println("Remaining turns = " + remainingTurns);
}
}
}
class Thor {
public Position p;
public Position target;
Thor(int initialX, int initialY, Position target) {
this.p = new Position(initialX, initialY);
this.target = target;
}
public void moveTowardsTarget() {
int verticalDiffAbs = Math.abs(target.y - p.y);
int horizontalDiffAbs = Math.abs(target.x - p.x);
if(verticalDiffAbs > horizontalDiffAbs) {
moveVertical();
} else if(verticalDiffAbs < horizontalDiffAbs){
moveHorizontal();
} else {
moveAngle();
}
}
public void moveVertical() {
if(target.y > p.y) {
moveDown();
} else if(target.y < p.y) {
moveUp();
}
}
public void moveHorizontal() {
if(target.x > p.x) {
moveRight();
} else if(target.x < p.x) {
moveLeft();
}
}
public void moveUp() {
System.out.println("N");
this.p.y--;
}
public void moveDown() {
System.out.println("S");
this.p.y++;
}
public void moveLeft() {
System.out.println("W");
this.p.x--;
}
public void moveRight() {
System.out.println("E");
this.p.x++;
}
public void moveUpRight() {
System.out.println("NE");
this.p.y--;
this.p.x++;
}
public void moveUpLeft() {
System.out.println("NW");
this.p.y--;
this.p.x--;
}
public void moveDownRight() {
System.out.println("SE");
this.p.x++;
this.p.y++;
}
public void moveDownLeft() {
System.out.println("SW");
this.p.x--;
this.p.y++;
}
public void moveAngle() {
int verticalDiff = target.y - p.y;
int horizontalDiff = target.x - p.x;
if(verticalDiff > 0 && horizontalDiff > 0) {
moveDownRight();
} else if(verticalDiff < 0 && horizontalDiff > 0) {
moveUpRight();
} else if(verticalDiff > 0 && horizontalDiff < 0) {
moveDownLeft();
} else if(verticalDiff < 0 && horizontalDiff < 0) {
moveUpLeft();
}
}
}
class Position {
int x;
int y;
static final int LIMITX = 39;
static final int LIMITY = 17;
Position(int x, int y) {
this.x=x;
this.y=y;
}
}
| [
"[email protected]"
]
| |
3fd8b21b4ffb263892a6425915ee1397214559bf | 4e7dc63fddf236db8b594c774151052d224cb7e7 | /src/com/atguigu/ssm/bean/Employee.java | fc9d5e898bc3a3304802111fc4b9d93c7eaafdb4 | []
| no_license | AH-Liuzy0121/SSM_CRUD | d090a9d1a53bbd09bf406547b316d11eb9c53c40 | 88136fb1a6b62b977fa0db7e51a00bdb360d4ed2 | refs/heads/master | 2021-01-17T08:13:22.438007 | 2016-05-29T08:31:46 | 2016-05-29T08:31:46 | 59,932,979 | 0 | 2 | null | null | null | null | UTF-8 | Java | false | false | 1,144 | java | package com.atguigu.ssm.bean;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
public class Employee {
private Integer id;
private String lastName;
private String email;
@DateTimeFormat(pattern="yyyy-MM-dd")
private Date birth;
@DateTimeFormat(pattern="yyyy-MM-dd")
private Date createTime;
private Department dept;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public Date getBirth() {
return birth;
}
public void setBirth(Date birth) {
this.birth = birth;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Department getDept() {
return dept;
}
public void setDept(Department dept) {
this.dept = dept;
}
}
| [
"[email protected]"
]
| |
87c643c09fd77bfa7c0debfd367a49559bb260ea | 0e5a939ed0052a0d947040e1b0b5e9b16dc51e06 | /src/hw5/ArrayList61B.java | 3a4e405a6bb468181f0d201c8e5ed3fd5d07caa2 | []
| no_license | Kartepolo/CS61B_works | 4a090a1eae5636bd2d3b25aa77dcb2ff913afa8e | 42eada60a88777ccd25c70c16fb079dcb8120a55 | refs/heads/master | 2021-01-10T16:45:52.619491 | 2016-01-19T05:10:34 | 2016-01-19T05:10:34 | 49,927,984 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 805 | java | import java.util.AbstractList;
public class ArrayList61B<ele> extends AbstractList<ele>{
private ele[] array;
private int number;
public ArrayList61B(int initialCapacity){
if (initialCapacity>=1){
array = (ele[]) new Object[initialCapacity];
number = 0;
}
throw new IllegalArgumentException();
}
public ArrayList61B(){
array = (ele[]) new Object[1];
number =0;
}
public ele get(int i){
if (i>=0 && i<number){
return array[i];
}
throw new IllegalArgumentException();
}
public boolean add(ele item){
if (size()>=array.length){
ele[] newarray = (ele[]) new Object[array.length*2];
for(int i =0;i<size();i++){
newarray[i] = array[i];
}
array = newarray;
}
array[size()] = item;
number++;
return true;
}
public int size(){
return number;
}
}
| [
"[email protected]"
]
| |
513bdd3d851cdd67e9247585f24dc82ff51d1ec0 | b69b6701de0b990f95310952e7108066bad33f1f | /.history/palindrom_20210430155717.java | dbb35a8bda703c192d4d3db4af10fdd3025600ee | []
| no_license | deepakadishankar/Practice | 909551bf369ed286dfde1b6c8e495bc19dc22d7e | 5725cdd6cb55ae5ff1e6b4607692ef364a3dc267 | refs/heads/master | 2023-07-27T07:26:13.783415 | 2021-09-14T07:51:18 | 2021-09-14T07:51:18 | 352,027,381 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 725 | java | import java.util.*;
public class palindrom {
public static void main(String[] args) {
Integer input = 123321;
String newInput = Integer.toString(input);
int median = newInput.length()/2;
System.out.println(median);
String firstHalf = newInput.substring(0,median);
System.out.println(firstHalf);
// System.out.println(StringFormatter.reverseString("my name is khan"));
String reverse = new StringBuffer(firstHalf).reverse().toString();
System.out.println(reverse);
String lastHalf = newInput.substring(newInput.length() - median);
System.out.println(lastHalf);
if (){
System.out.println("yesss");
}
}
}
| [
"[email protected]"
]
| |
e1e0da003475d12f99bb564374545a0d29b857d6 | 4d6f449339b36b8d4c25d8772212bf6cd339f087 | /netreflected/src/Framework/System.DirectoryServices,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a/system/directoryservices/DirectorySynchronizationOptions.java | 0c5df31023c6e6f943767e3d3e1b724ae58a7373 | [
"MIT"
]
| permissive | lvyitian/JCOReflector | 299a64550394db3e663567efc6e1996754f6946e | 7e420dca504090b817c2fe208e4649804df1c3e1 | refs/heads/master | 2022-12-07T21:13:06.208025 | 2020-08-28T09:49:29 | 2020-08-28T09:49:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,023 | java | /*
* MIT License
*
* Copyright (c) 2020 MASES s.r.l.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/**************************************************************************************
* <auto-generated>
* This code was generated from a template using JCOReflector
*
* Manual changes to this file may cause unexpected behavior in your application.
* Manual changes to this file will be overwritten if the code is regenerated.
* </auto-generated>
*************************************************************************************/
package system.directoryservices;
import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
// Import section
// PACKAGE_IMPORT_SECTION
/**
* The base .NET class managing System.DirectoryServices.DirectorySynchronizationOptions, System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Extends {@link NetObject}.
* <p>
*
* See: <a href="https://docs.microsoft.com/en-us/dotnet/api/System.DirectoryServices.DirectorySynchronizationOptions" target="_top">https://docs.microsoft.com/en-us/dotnet/api/System.DirectoryServices.DirectorySynchronizationOptions</a>
*/
public class DirectorySynchronizationOptions extends NetObject {
/**
* Fully assembly qualified name: System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
*/
public static final String assemblyFullName = "System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
/**
* Assembly name: System.DirectoryServices
*/
public static final String assemblyShortName = "System.DirectoryServices";
/**
* Qualified class name: System.DirectoryServices.DirectorySynchronizationOptions
*/
public static final String className = "System.DirectoryServices.DirectorySynchronizationOptions";
static JCOBridge bridge = JCOBridgeInstance.getInstance(assemblyFullName);
/**
* The type managed from JCOBridge. See {@link JCType}
*/
public static JCType classType = createType();
static JCEnum enumReflected = createEnum();
JCEnum classInstance = null;
static JCType createType() {
try {
return bridge.GetType(className + ", " + (JCOBridgeInstance.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName));
} catch (JCException e) {
return null;
}
}
static JCEnum createEnum() {
try {
return bridge.GetEnum(className + ", " + (JCOBridgeInstance.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName));
} catch (JCException e) {
return null;
}
}
void addReference(String ref) throws Throwable {
try {
bridge.AddReference(ref);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public DirectorySynchronizationOptions(Object instance) {
super(instance);
if (instance instanceof JCObject) {
try {
String enumName = NetEnum.GetName(classType, (JCObject)instance);
classInstance = enumReflected.fromValue(enumName);
} catch (Throwable t) {
if (JCOBridgeInstance.getDebug())
t.printStackTrace();
classInstance = enumReflected;
}
} else if (instance instanceof JCEnum) {
classInstance = (JCEnum)instance;
}
}
public DirectorySynchronizationOptions() {
super();
// add reference to assemblyName.dll file
try {
addReference(JCOBridgeInstance.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
} catch (Throwable jcne) {
if (JCOBridgeInstance.getDebug())
jcne.printStackTrace();
}
}
public String getJCOAssemblyName() {
return assemblyFullName;
}
public String getJCOClassName() {
return className;
}
public String getJCOObjectName() {
return className + ", " + (JCOBridgeInstance.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
}
public Object getJCOInstance() {
return classInstance;
}
public JCType getJCOType() {
return classType;
}
final static DirectorySynchronizationOptions getFrom(JCEnum object, String value) {
try {
return new DirectorySynchronizationOptions(object.fromValue(value));
} catch (JCException e) {
return new DirectorySynchronizationOptions(object);
}
}
// Enum fields section
public static DirectorySynchronizationOptions None = getFrom(enumReflected, "None");
public static DirectorySynchronizationOptions ObjectSecurity = getFrom(enumReflected, "ObjectSecurity");
public static DirectorySynchronizationOptions ParentsFirst = getFrom(enumReflected, "ParentsFirst");
public static DirectorySynchronizationOptions PublicDataOnly = getFrom(enumReflected, "PublicDataOnly");
public static DirectorySynchronizationOptions IncrementalValues = getFrom(enumReflected, "IncrementalValues");
// Flags management section
public final DirectorySynchronizationOptions add(DirectorySynchronizationOptions val) throws Throwable {
return new DirectorySynchronizationOptions(NetEnum.add(classInstance, val.classInstance));
}
public final DirectorySynchronizationOptions remove(DirectorySynchronizationOptions val) throws Throwable {
return new DirectorySynchronizationOptions(NetEnum.remove(classInstance, val.classInstance));
}
public final boolean is(DirectorySynchronizationOptions val) throws Throwable {
return NetEnum.is(classInstance, val.classInstance);
}
public final boolean has(DirectorySynchronizationOptions val) throws Throwable {
return NetEnum.has(classInstance, val.classInstance);
}
} | [
"[email protected]"
]
| |
c2a1fa4ba86f4ab94e0d14f1d06781a8d9df9029 | 09aec6140e3a116e1433ff1073a4e4d17c1182af | /com.dubture.composer.core/src/com/dubture/composer/core/facet/FacetInstallWizardPage.java | 5daea03ce8a9f05af6b88e8a800bd2ae54e2e052 | [
"MIT"
]
| permissive | pulse00/Composer-Eclipse-Plugin | 02405bcc746ce4b0df15d92bd508c83f0c19ee5f | 83930916a16e5587b8337db214822f562eaef04a | refs/heads/master | 2020-04-06T15:50:09.886307 | 2016-09-05T14:38:19 | 2016-09-05T14:38:19 | 3,816,442 | 14 | 7 | MIT | 2020-02-11T15:08:13 | 2012-03-24T10:31:22 | Java | UTF-8 | Java | false | false | 841 | java | package com.dubture.composer.core.facet;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.wst.common.project.facet.ui.AbstractFacetWizardPage;
public class FacetInstallWizardPage extends AbstractFacetWizardPage
{
public FacetInstallWizardPage()
{
super("Configure composer");
setTitle("Composer configuration");
setDescription("Configure your composer project");
}
@Override
public void setConfig(Object config)
{
}
@Override
public void createControl(Composite parent)
{
Composite container = new Composite(parent, SWT.NONE);
Label label = new Label(container, SWT.NONE);
label.setText("Composer test");
setControl(container);
}
}
| [
"[email protected]"
]
| |
bf6156f8aeab8e483ea79d017735027ff69d6f9b | eb885166b62d645fee101e10eadcfc236d802cab | /app/src/test/java/com/example/bellman_task/ExampleUnitTest.java | da9aee8a793716f6770a799981e5d301be65da6d | []
| no_license | yshimaa66/Bellman_Task | 2b9b877a9f9d1fabd5307d80c0dd8a38d7c3fe25 | 475688e6da14820f83579ab7c68ce9d3309a9893 | refs/heads/master | 2020-12-31T22:36:54.001972 | 2020-03-08T20:44:20 | 2020-03-08T20:44:20 | 239,056,869 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 385 | java | package com.example.bellman_task;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
} | [
"[email protected]"
]
| |
08e7ed6f33140be51a084999abf6b92608de8096 | 0fa974939d06649ccad2a21953c4bd3357f574c6 | /src/main/java/constants/PetStatus.java | c870b33b1654936c5ee1114e31066aad589b2620 | []
| no_license | OlgaKonko/EducationProgect | 07c4b3f718e3a7da4f4091a9c5a8a2b38feab09e | a1feee534cb8468dfb8aa5414cc2ea792b144aa0 | refs/heads/master | 2021-05-10T09:43:57.335718 | 2018-01-30T13:10:54 | 2018-01-30T13:10:54 | 118,934,135 | 0 | 0 | null | 2018-02-09T12:34:43 | 2018-01-25T15:55:19 | Java | UTF-8 | Java | false | false | 355 | java | package constants;
import com.fasterxml.jackson.annotation.JsonValue;
public enum PetStatus {
Available("available"),
Pending("pending"),
Sold("sold");
private String name;
PetStatus(String name) {
this.name = name;
}
@JsonValue
public String getStatusName() {
return name;
}
}
| [
"[email protected]"
]
| |
1a514ee896858a69c59f9b7e5f54e5cf74d8b6df | 66a35e1176fd33d9998b2e27046841310897b0cc | /src/com/dot/dotextras/fragments/StatusBarBattery.java | 5ac6a45ff87d72e32913d339c5d6968dd433bc2c | []
| no_license | dotos-temp/android_packages_apps_DotExtras | 8ce3738f81cb4971ed0fa70dbf69dc56a3a77711 | d6634413608d06af0c8d656df3fb9067512af462 | refs/heads/dot-o | 2020-03-21T05:48:31.406284 | 2018-06-02T19:02:06 | 2018-06-21T13:59:10 | 135,606,755 | 0 | 0 | null | 2018-05-31T16:05:54 | 2018-05-31T16:05:52 | null | UTF-8 | Java | false | false | 4,369 | java | package com.dot.dotextras.fragments;
import com.android.internal.logging.nano.MetricsProto;
import android.os.Bundle;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.os.UserHandle;
import android.content.ContentResolver;
import android.content.res.Resources;
import android.support.v7.preference.ListPreference;
import android.support.v7.preference.Preference;
import android.support.v7.preference.PreferenceGroup;
import android.support.v7.preference.PreferenceScreen;
import android.support.v7.preference.PreferenceCategory;
import android.support.v7.preference.Preference.OnPreferenceChangeListener;
import android.support.v14.preference.PreferenceFragment;
import android.support.v14.preference.SwitchPreference;
import android.provider.Settings;
import com.android.settings.R;
import java.util.Locale;
import android.text.TextUtils;
import android.view.View;
import com.android.settings.SettingsPreferenceFragment;
import com.android.settings.Utils;
import android.util.Log;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.Collections;
public class StatusBarBattery extends SettingsPreferenceFragment implements
OnPreferenceChangeListener {
private static final String BATTERY_STYLE = "battery_style";
private static final String BATTERY_PERCENT = "show_battery_percent";
private ListPreference mBatteryIconStyle;
private ListPreference mBatteryPercentage;
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
addPreferencesFromResource(R.xml.statusbar_battery);
PreferenceScreen prefSet = getPreferenceScreen();
final ContentResolver resolver = getActivity().getContentResolver();
int batteryStyle = Settings.Secure.getInt(resolver,
Settings.Secure.STATUS_BAR_BATTERY_STYLE, 0);
mBatteryIconStyle = (ListPreference) findPreference(BATTERY_STYLE);
mBatteryIconStyle.setValue(Integer.toString(batteryStyle));
int valueIndex = mBatteryIconStyle.findIndexOfValue(String.valueOf(batteryStyle));
mBatteryIconStyle.setSummary(mBatteryIconStyle.getEntries()[valueIndex]);
mBatteryIconStyle.setOnPreferenceChangeListener(this);
int showPercent = Settings.System.getInt(resolver,
Settings.System.SHOW_BATTERY_PERCENT, 1);
mBatteryPercentage = (ListPreference) findPreference(BATTERY_PERCENT);
mBatteryPercentage.setValue(Integer.toString(showPercent));
valueIndex = mBatteryPercentage.findIndexOfValue(String.valueOf(showPercent));
mBatteryPercentage.setSummary(mBatteryPercentage.getEntries()[valueIndex]);
mBatteryPercentage.setOnPreferenceChangeListener(this);
boolean hideForcePercentage = batteryStyle == 7 || batteryStyle == 8; /*text or hidden style*/
mBatteryPercentage.setEnabled(!hideForcePercentage);
}
@Override
public boolean onPreferenceChange(Preference preference, Object objValue) {
if (preference == mBatteryIconStyle) {
int value = Integer.valueOf((String) objValue);
Settings.Secure.putInt(getContentResolver(),
Settings.Secure.STATUS_BAR_BATTERY_STYLE, value);
int valueIndex = mBatteryIconStyle
.findIndexOfValue((String) objValue);
mBatteryIconStyle
.setSummary(mBatteryIconStyle.getEntries()[valueIndex]);
boolean hideForcePercentage = value == 7 || value == 8;/*text or hidden style*/
mBatteryPercentage.setEnabled(!hideForcePercentage);
return true;
} else if (preference == mBatteryPercentage) {
int value = Integer.valueOf((String) objValue);
Settings.System.putInt(getActivity().getContentResolver(),
Settings.System.SHOW_BATTERY_PERCENT, value);
int valueIndex = mBatteryPercentage
.findIndexOfValue((String) objValue);
mBatteryPercentage
.setSummary(mBatteryPercentage.getEntries()[valueIndex]);
return true;
}
return false;
}
@Override
public int getMetricsCategory() {
return MetricsProto.MetricsEvent.DOTEXTRAS;
}
}
| [
"[email protected]"
]
| |
92d87ae52d9cd354e0852dae2370c404045a64ac | 273c726eac2cf7f357d36593338de51c97cdc5d9 | /org.eclipse.jst.server.jetty.core/src/org/eclipse/jst/server/jetty/core/internal/config/StartIni.java | 0c067f8486ec4a64a299c950fffc2956418c4e3c | []
| no_license | mjesudoss-BostonServices/jetty.wtp | cefbc1d69afab2751cabd68830a2b6f920dde747 | 4580fe23b43ba27655e9cf2ea80e232b75e875dc | refs/heads/master | 2020-12-26T04:56:34.434585 | 2012-03-01T16:31:50 | 2012-03-01T16:31:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,565 | java | /*******************************************************************************
* Copyright (c) 2010 Angelo Zerr and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Angelo Zerr <[email protected]> - Initial API and implementation
*******************************************************************************/
package org.eclipse.jst.server.jetty.core.internal.config;
import java.io.BufferedReader;
import java.io.Closeable;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.jst.server.core.internal.ProgressUtil;
import org.eclipse.jst.server.jetty.core.internal.JettyConstants;
import org.eclipse.jst.server.jetty.core.internal.util.IOUtils;
public class StartIni implements JettyConstants
{
private List<PathFileConfig> _jettyXMLFiles = new ArrayList<PathFileConfig>();
private List<PathFileConfig> _otherConfigs = new ArrayList<PathFileConfig>();
private PathFileConfig _startConfig = null;
private PathFileConfig _webdefaultXMLConfig = null;
private File _adminPortFile = null;
private File _startIniFile;
private boolean _isStartIniDirty;
public StartIni(IPath baseDirPath)
{
loadStartIni(baseDirPath,null);
loadOtherConfigs(baseDirPath);
loadAdminPortFile (baseDirPath,null);
}
public StartIni(IFolder baseDirFolder)
{
loadStartIni(null,baseDirFolder);
// loadOtherConfigs(null, baseDirFolder);
loadAdminPortFile (null,baseDirFolder);
}
private List<String> loadStartIni(IPath baseDirPath, IFolder baseDirFolder)
{
List<String> args = new ArrayList<String>();
if (baseDirPath != null)
{
IPath startIniPath = baseDirPath.append(__START_INI);
this._startIniFile = startIniPath.toFile();
}
else
{
try
{
this._startIniFile = IOUtils.toLocalFile(baseDirFolder.getFile(__START_INI),null);
}
catch (CoreException e)
{
e.printStackTrace();
}
}
if (_startIniFile.exists() && _startIniFile.canRead())
{
FileReader reader = null;
BufferedReader buf = null;
try
{
reader = new FileReader(_startIniFile);
buf = new BufferedReader(reader);
File jettyXMLFile = null;
String arg;
while ((arg = buf.readLine()) != null)
{
arg = arg.trim();
if (arg.length() == 0 || arg.startsWith("#"))
{
continue;
}
if (arg.indexOf('=') == -1)
{
if (baseDirPath != null)
{
jettyXMLFile = baseDirPath.append(arg).toFile();
}
else
{
try
{
jettyXMLFile = IOUtils.toLocalFile(baseDirFolder.getFile(arg),null);
}
catch (CoreException e)
{
e.printStackTrace();
}
}
if (jettyXMLFile != null && jettyXMLFile.exists() && jettyXMLFile.canRead())
{
_jettyXMLFiles.add(new PathFileConfig(jettyXMLFile,new Path(arg)));
}
}
args.add(arg);
}
}
catch (IOException e)
{
}
finally
{
close(buf);
close(reader);
}
}
return args;
}
private void close(Closeable c)
{
if (c == null)
{
return;
}
try
{
c.close();
}
catch (IOException e)
{
e.printStackTrace(System.err);
}
}
private void loadOtherConfigs(IPath baseDirPath)
{
IPath realmPropertiesPath = baseDirPath.append("etc/realm.properties");
File realmPropertiesFile = realmPropertiesPath.toFile();
if (realmPropertiesFile.exists())
{
_otherConfigs.add(new PathFileConfig(realmPropertiesFile,new Path("etc/realm.properties")));
}
IPath webdefaultPath = baseDirPath.append("etc/webdefault.xml");
File webdefaultFile = webdefaultPath.toFile();
if (webdefaultFile.exists())
{
_webdefaultXMLConfig = new PathFileConfig(webdefaultFile,new Path("etc/webdefault.xml"));
}
IPath startJARPath = baseDirPath.append(__START_JAR);
File startConfigFile = startJARPath.toFile();
if (startConfigFile.exists())
{
_startConfig = new PathFileConfig(startConfigFile,new Path(__START_JAR));
}
}
private void loadAdminPortFile (IPath baseDirPath, IFolder baseDirFolder)
{
if (baseDirPath != null)
{
IPath adminPortPath = baseDirPath.append("adminPort");
this._adminPortFile = adminPortPath.toFile();
}
else
{
try
{
this._adminPortFile = IOUtils.toLocalFile(baseDirFolder.getFile("adminPort"),null);
}
catch (CoreException e)
{
e.printStackTrace();
}
}
}
public List<PathFileConfig> getJettyXMLFiles()
{
return _jettyXMLFiles;
}
public PathFileConfig getWebdefaultXMLConfig()
{
return _webdefaultXMLConfig;
}
public File getAdminPortFile()
{
return _adminPortFile;
}
/**
* Saves the Web app document.
*
* @param path
* a path
* @param forceDirty
* true to force a save
* @throws IOException
* if anything goes wrong
*/
// public void save(String path, boolean forceDirty) throws IOException {
// if (forceDirty || isWebAppDirty)
// //XMLUtil.save(path, webAppDocument);
// }
/**
* Saves the Web app document.
*
* @param file
* a file
* @param monitor
* a progress monitor
* @throws Exception
* if anything goes wrong
*/
public void save(IFile file, IProgressMonitor monitor) throws Exception
{
if (file.exists() && !_isStartIniDirty)
return;
if (_startIniFile == null || !(_startIniFile.exists() && _startIniFile.canRead()))
return;
InputStream in = null;
try
{
in = new FileInputStream(_startIniFile);
if (file.exists())
file.setContents(in,true,true,ProgressUtil.getSubMonitorFor(monitor,200));
else
file.create(in,true,ProgressUtil.getSubMonitorFor(monitor,200));
}
catch (Exception e)
{
// ignore
}
finally
{
try
{
in.close();
}
catch (Exception e)
{
// ignore
}
}
_isStartIniDirty = false;
}
public List<PathFileConfig> getOtherConfigs()
{
return _otherConfigs;
}
public PathFileConfig getStartConfig()
{
return _startConfig;
}
}
| [
"[email protected]"
]
| |
f6f900c5de3a78c9b9f7eccb1d77dd3805a7efb4 | 2721606ed0c04385582e891a35fce21cea6c4e94 | /jasypt-spring-boot/src/main/java/com/ulisesbocchio/jasyptspringboot/util/Functional.java | 2505f2473b126babdbb34395ffa88c6c89b0161e | [
"MIT"
]
| permissive | tkalmar/jasypt-spring-boot | f693ff8208ef273117b6a03789c7078757981cde | 59d1832cb14bec4c58fa62bc5217959354dbd491 | refs/heads/master | 2022-11-22T04:08:03.089094 | 2020-07-22T20:30:43 | 2020-07-22T20:30:43 | 206,530,132 | 0 | 0 | MIT | 2019-09-05T09:51:07 | 2019-09-05T09:51:06 | null | UTF-8 | Java | false | false | 309 | java | package com.ulisesbocchio.jasyptspringboot.util;
import java.util.function.Consumer;
import java.util.function.Function;
public class Functional {
public static <T> Function<T, T> tap(Consumer<T> consumer) {
return t -> {
consumer.accept(t);
return t;
};
}
}
| [
"[email protected]"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.