blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 4
410
| content_id
stringlengths 40
40
| detected_licenses
sequencelengths 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
sequencelengths 1
1
| author_id
stringlengths 0
313
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a8f32f5411b841ffdadbdb4b5c438d02fcfcb615 | c0cd021394de7dd8c5042b30341a5eb973da8d53 | /src/main/java/com/packt/sfjd/ch2/CreateStreamExample.java | be0ee19327035b169459001e197f1857dd3f4f6b | [
"Apache-2.0"
] | permissive | vaquarkhan/Spark--learning | 1fa33c9665c354a6b41b4167957fee0cb538c17e | 275e49bad8395e29f66d52637513b4f2d16baf93 | refs/heads/master | 2020-04-23T04:44:03.386545 | 2017-07-20T08:20:40 | 2017-07-20T08:20:40 | 170,917,276 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 3,530 | java | package com.packt.sfjd.ch2;
import java.io.IOException;
import java.math.BigInteger;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.DoubleStream;
import java.util.stream.IntStream;
import java.util.stream.LongStream;
import java.util.stream.Stream;
public class CreateStreamExample {
public static void main(String[] args) throws IOException {
//Creating Streams using user/programmatically specified elements
Stream<String> Userstream = Stream.of("Creating","Streams","from","Specific","elements");
Userstream.forEach(p -> System.out.println(p));
//Creating Streams using array of objects
Stream<String> ArrayStream = Stream.of( new String[]{"Stream","from","an","array","of","objects"} );
ArrayStream.forEach(p -> System.out.println(p));
//Creating Streams from an array
String[] StringArray=new String[]{"We","can","convert","an","array","to","a","Stream","using","Arrays","as","well"};
Stream<String> StringStream=Arrays.stream(StringArray);
StringStream.forEach(p -> System.out.println(p));
//Creating Streams from Collection
List<Double> myCollection = new ArrayList<>();
for(int i=0; i<10; i++){
myCollection.add(Math.random());
}
//sequential stream
Stream<Double> sequentialStream = myCollection.stream();
sequentialStream.forEach(p -> System.out.println(p));
//parallel stream
Stream<Double> parallelStream = myCollection.parallelStream();
parallelStream.forEach(p -> System.out.println(p));
//Stream from Hashmap
Map<String, Integer> mapData = new HashMap<>();
mapData.put("This", 1900);
mapData.put("is", 2000);
mapData.put("HashMap", 2100);
mapData.entrySet()
.stream()
.forEach(p -> System.out.println(p));
mapData.keySet()
.stream()
.forEach(p-> System.out.println(p));
//primitive streams
IntStream.range(1, 4)
.forEach(p -> System.out.println(p));
LongStream.rangeClosed(1, 4)
.forEach(p -> System.out.println(p));
DoubleStream.of(1.0,2.0,3.0,4.0)
.forEach(p -> System.out.println(p));
//Infinite Streams using generate()
Stream <Double> sequentialDoubleStream = Stream.generate(Math :: random);
Stream<Integer> sequentialIntegerStream = Stream.generate(new AtomicInteger () :: getAndIncrement);
//Infinite Streams using iterate()
Stream <Integer> sequentialIntegerStream1 = Stream.iterate (Integer.MIN_VALUE, i -> i++);
Stream <BigInteger> sequentialBigIntegerStream = Stream.iterate(BigInteger.ZERO, i -> i.add (BigInteger.TEN));
//Streams from File
Stream<String> streamOfStrings = Files.lines(Paths.get("Apology_by_Plato.txt"));
Stream<String> streamWithCharset = Files.lines(Paths.get("Apology_by_Plato.txt"), Charset.forName("UTF-8"));
}
}
| [
"[email protected]"
] | |
26db85a9ddfc19f4c38fdb5218a34795b4ae9c87 | 9c9c4e4cee227b4d750cb05e487e58eabbb49172 | /2.java/Terbilang.java | 87019661609d582de25e6f0e689e3f51b95d922c | [] | no_license | gtxyudha/kloter4 | fb1535337ffda43f080c13ab40d6c86f8ac437b6 | 3b1672b02767f9d503f10c04478da7710f829980 | refs/heads/master | 2023-03-09T09:28:15.696410 | 2021-02-20T13:40:35 | 2021-02-20T13:40:35 | 340,662,604 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,103 | java | public class Terbilang {
String angka(int satuan){
String[] huruf ={"","Satu","Dua","Tiga","Empat","Lima","Enam","Tujuh","Delapan","Sembilan","Sepuluh","Sebelas"};
String hasil="";
if(satuan<12)
hasil=hasil+huruf[satuan];
else if(satuan<20)
hasil=hasil+angka(satuan-10)+" Belas";
else if(satuan<100)
hasil=hasil+angka(satuan/10)+" Puluh "+angka(satuan%10);
else if(satuan<200)
hasil=hasil+"Seratus "+angka(satuan-100);
else if(satuan<1000)
hasil=hasil+angka(satuan/100)+" Ratus "+angka(satuan%100);
else if(satuan<2000)
hasil=hasil+"Seribu "+angka(satuan-1000);
else if(satuan<1000000)
hasil=hasil+angka(satuan/1000)+" Ribu "+angka(satuan%1000);
else if(satuan<1000000000)
hasil=hasil+angka(satuan/1000000)+" Juta "+angka(satuan%1000000);
else if(satuan>=1000000000)
hasil="Angka terlalu besar, harus kurang dari 1 milyar!";
return hasil;
}
} | [
"[email protected]"
] | |
20ebfce4eab0707ab27af8eb4092fbf6c2f3b75a | 1f23fd89f4f6d59fa56a9fe2940a616ba84f4831 | /LeaderBoard/src/test/java/com/wini/leader_board_integration/LeaderBoardIntegrationApplicationTests.java | dd87be94cd3acdaff26c54373fe6a8a5eee9d4bd | [] | no_license | kamal-shariats-wcar/LeaderBoard | c37e097045c08a41c1912ba6c7939b8ea2496a4d | 0b26389cf2c397cd1956357c04e873dc51843016 | refs/heads/master | 2023-04-14T14:31:48.660979 | 2021-02-05T11:58:53 | 2021-02-05T11:58:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 364 | java | package com.wini.leader_board_integration;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
class LeaderBoardIntegrationApplicationTests {
@Test
void contextLoads() {
}
}
| [
"[email protected]"
] | |
a203b2473b22955d3a354a4a0641853e836e338f | b40effe963f1962dd4fd300a62d2dec28813bb17 | /app/src/main/java/com/clearlee/JsWebViewInteraction/DataBean/WxPayInfoBean.java | 14873184e922dad290519f05fc65587631d5b361 | [] | no_license | Clearlee/JsWebViewInteraction | 2b5f0137ea0c61e4aac2830e3d759cfad82cb172 | fde9e736cdc1995864b14d2116afb510c9c17526 | refs/heads/master | 2021-04-27T16:05:24.678739 | 2018-02-24T06:48:16 | 2018-02-24T06:48:16 | 122,480,723 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 406 | java | package com.clearlee.JsWebViewInteraction.DataBean;
import com.alibaba.fastjson.annotation.JSONField;
/**
* Created by zerdoor_pc on 2015/11/10.
*/
public class WxPayInfoBean {
public String sign;
public String timestamp;
public String noncestr;
public String partnerid;
public String prepayid;
@JSONField(name="package")
public String package2;
public String appid;
}
| [
"[email protected]"
] | |
2aa80634a0e87a311c9e30b17a6459e0a3c886e3 | e112ee9fba8cfcf368217277dfc25b976026a232 | /modules/binding-corba-runtime/src/test/java/org/apache/tuscany/sca/binding/corba/testing/enums/_EnumManagerStub.java | 4629ca9cff4d4f0d94bd70fa5d32e9b940192e86 | [
"Apache-2.0",
"W3C-19980720",
"BSD-3-Clause",
"W3C",
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | apache/tuscany-sca-2.x | 3ea2dc984b980d925ac835b6ac0dfcd4541f94b6 | 89f2d366d4b0869a4e42ff265ccf4503dda4dc8b | refs/heads/trunk | 2023-09-01T06:21:08.318064 | 2013-09-10T16:50:53 | 2013-09-10T16:50:53 | 390,004 | 19 | 22 | Apache-2.0 | 2023-08-29T21:33:50 | 2009-11-30T09:00:10 | Java | UTF-8 | Java | false | false | 3,213 | java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.apache.tuscany.sca.binding.corba.testing.enums;
/**
* org/apache/tuscany/sca/binding/corba/testing/enums/_EnumManagerStub.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from enums.idl
* czwartek, 19 czerwiec 2008 15:46:10 CEST
*/
public class _EnumManagerStub extends org.omg.CORBA.portable.ObjectImpl implements
org.apache.tuscany.sca.binding.corba.testing.enums.EnumManager {
public org.apache.tuscany.sca.binding.corba.testing.enums.Color getColor(org.apache.tuscany.sca.binding.corba.testing.enums.Color color) {
org.omg.CORBA.portable.InputStream $in = null;
try {
org.omg.CORBA.portable.OutputStream $out = _request("getColor", true);
org.apache.tuscany.sca.binding.corba.testing.enums.ColorHelper.write($out, color);
$in = _invoke($out);
org.apache.tuscany.sca.binding.corba.testing.enums.Color $result =
org.apache.tuscany.sca.binding.corba.testing.enums.ColorHelper.read($in);
return $result;
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
$in = $ex.getInputStream();
String _id = $ex.getId();
throw new org.omg.CORBA.MARSHAL(_id);
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
return getColor(color);
} finally {
_releaseReply($in);
}
} // getColor
// Type-specific CORBA::Object operations
private static String[] __ids = {"IDL:org/apache/tuscany/sca/binding/corba/testing/enums/EnumManager:1.0"};
@Override
public String[] _ids() {
return (String[])__ids.clone();
}
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException {
String str = s.readUTF();
String[] args = null;
java.util.Properties props = null;
org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init(args, props).string_to_object(str);
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate();
_set_delegate(delegate);
}
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
String[] args = null;
java.util.Properties props = null;
String str = org.omg.CORBA.ORB.init(args, props).object_to_string(this);
s.writeUTF(str);
}
} // class _EnumManagerStub
| [
"[email protected]"
] | |
26e7d42b46adfd86d337b6aefef5149218ee58d5 | 199d7f11bc6178a8ea240b5bf6e6e3092e50a214 | /container/openejb-core/src/main/java/org/apache/openejb/core/timer/quartz/QuartzObjectInputStream.java | 76ee6fd8e30167b63245f56ebc1fbe1788352510 | [
"BSD-3-Clause",
"W3C-19980720",
"CDDL-1.0",
"Apache-2.0",
"W3C",
"MIT"
] | permissive | kdchamil/ASTomEE | 31fc4478cc58351d98a298e5849d3a5a72e7ab6e | eaad273b8def8836bb2e82aab04c067662d2f67b | refs/heads/master | 2023-01-13T07:31:53.989780 | 2014-08-07T06:52:32 | 2014-08-07T06:52:32 | 19,934,900 | 0 | 0 | Apache-2.0 | 2023-01-02T22:04:23 | 2014-05-19T08:49:01 | Java | UTF-8 | Java | false | false | 1,504 | java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.apache.openejb.core.timer.quartz;
import org.quartz.spi.ClassLoadHelper;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectStreamClass;
public class QuartzObjectInputStream extends ObjectInputStream {
private final ClassLoadHelper loader;
public QuartzObjectInputStream(final InputStream binaryInput, final ClassLoadHelper classLoadHelper) throws IOException {
super(binaryInput);
this.loader = classLoadHelper;
}
@Override
protected Class<?> resolveClass(final ObjectStreamClass desc) throws ClassNotFoundException, IOException {
return loader.loadClass(desc.getName());
}
}
| [
"[email protected]"
] | |
e0a840ec6b6833c9c24e18312099d148904f6399 | e507131f6d228e4e664d6808d22e706144f3672a | /src/example/java/xml/parser/jaxb/namespace/bean/Customer.java | 975fc203a73a07b21be8a2729dc615b0652d255c | [] | no_license | Bardo1/ParserXML | 7bca1154db13c0fefe697c58ae19a88bb0ac7b64 | ad9a439edbeebf886fcbde4c28c940fdcfa966bb | refs/heads/master | 2020-05-25T08:43:03.520346 | 2018-06-19T04:03:31 | 2018-06-19T04:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 819 | java | package example.java.xml.parser.jaxb.namespace.bean;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlRootElement
//override the package level namespace information at the type level using the @XmlType annotation
@XmlType(namespace="http://www.example.org/type")
public class Customer {
private long id;
private String name;
@XmlAttribute
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
//control namespaces at the property/field level
@XmlElement(namespace="http://www.example.org/property")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
} | [
"[email protected]"
] | |
ac4322265323d60d55a9f7331bb86a981a31c1d9 | 82031b242cc59b7bfb9f6ed6195ce82c4d8cd9cb | /RepoProg3/Examenes/ord201801/EdicionZonasGPS.java | 596d2830a6a1aa9181701b3cca3ba76f87922864 | [] | no_license | HaizeaR/RepoProg3 | d55fbff484be1f482bf59888cedb72e88b2a7893 | e73af82d0181295221c5f754f3dd46844e9308c8 | refs/heads/master | 2020-08-03T07:59:39.831281 | 2020-01-09T20:45:49 | 2020-01-09T20:45:49 | 211,676,418 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 30,848 | java | package ord201801;
import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.RenderingHints;
import java.awt.Stroke;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.image.BufferedImage;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Properties;
import javax.swing.DefaultListModel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JToggleButton;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import ord201801.item.Arbol;
/** Clase principal ejecutable con ventana de visualizaci�n de zonas GPS.
* Inicializada para representar zonas ajardinadas de Erandio (m�s o menos realistas)
* y una serie de �rboles de Erandio (ficticios)
* @author andoni.eguiluz @ ingenieria.deusto.es
*/
@SuppressWarnings("serial")
public class EdicionZonasGPS extends JFrame {
// Pinceles generales con los que dibujar
/** Pincel de 4 p�xels de grosor */
public static final Stroke stroke4 = new BasicStroke( 4.0f );
/** Pincel de 2 p�xels y medio de grosor */
public static final Stroke stroke2m = new BasicStroke( 2.5f );
/** Pincel de 1 p�xel y medio de grosor */
public static final Stroke stroke1m = new BasicStroke( 1.5f );
// Ventana principal �nica creada por la ejecuci�n de esta clase como principal
private static EdicionZonasGPS ventana;
/** Devuelve la instancia �nica de ventana creada por esta clase (singleton)
* @return Ventana ya creada - debe haberse ejecutado antes {@link #main(String[])}
*/
public static EdicionZonasGPS getVentana() {
return ventana;
}
/** M�todo principal de la clase. Crea y muestra una ventana de zonas de Erandio
* @param args No utilizado
*/
public static void main(String[] args) {
ventana = new EdicionZonasGPS();
ventana.setVisible( true );
}
// Constantes de la ventana
private static final int ANCH_MAX = 3000; // M�xima anchura de dibujado del objeto gr�fico
private static final int ALT_MAX = 2000; // M�xima altura de dibujado del objeto gr�fico
// Componentes gr�ficos de la ventana
JLabel lMensaje = new JLabel( " " );
JLabel lMensaje2 = new JLabel( " " );
private ImageIcon mapa;
private BufferedImage biImagen = new BufferedImage( ANCH_MAX, ALT_MAX, BufferedImage.TYPE_INT_RGB );
private Graphics2D graphics;
JCheckBox cbArboles;
private JToggleButton tbMover = new JToggleButton( "Mover" );
private JToggleButton tbZoom = new JToggleButton( "Zoom" );
private JToggleButton tbGeoposicionar = new JToggleButton( "Geoposicionar" );
private JToggleButton tbMoverArbol = new JToggleButton( "Mover �rbol" );
private JButton bCentrar = new JButton( "Centrar" );
DefaultListModel<Zona> mZonas = new DefaultListModel<>();
JList<Zona> lZonas = new JList<Zona>( mZonas );
private JPanel pDibujo;
// Valores para el dibujado: escalado, desplazado, geolocalizaci�n
double zoomX = 1.0; // A cu�ntos pixels de pantalla corresponden los pixels del gr�fico en horizontal. 2.0 = aumentado. 0.5 = disminuido
double zoomY = 1.0; // En vertical
double offsetX = 0.0; // Qu� p�xel x de pantalla marca el origen del gr�fico
double offsetY = 0.0; // Qu� p�xel y de pantalla marca el origen del gr�fico
double xImagen1, yImagen1; // Punto 1 en la imagen asociado a una coordenada GPS
double longGPS1, latiGPS1; // Coordenada GPS asociada al punto 1 (x = longitud, y = latitud)
double xImagen2, yImagen2; // Punto 1 en la imagen asociado a una coordenada GPS
double longGPS2, latiGPS2; // Coordenada GPS asociada al punto 1 (x = longitud, y = latitud)
double relGPSaGrafX; // Relaci�n horizontal entre longitud (GPS) y x del gr�fico
double relGPSaGrafY; // Relaci�n vertical entre latitud (GPS) y x del gr�fico
double origenXGPSEnGraf; // Pixel x virtual del gr�fico en el que est� el origen de longitud GPS
double origenYGPSEnGraf; // Pixel y virtual del gr�fico en el que est� el origen de latitud GPS
boolean dibujadoArboles; // Si es true se dibujan los �rboles, si no no se dibujan
// TAREA 3 - Atributos para la tarea
/** Construye una ventana de dibujado y edici�n de zonas GPS
*/
public EdicionZonasGPS() {
// Acciones generales de ventana
setDefaultCloseOperation( JFrame.DISPOSE_ON_CLOSE );
setSize( 1600, 1000 );
setTitle( "Edici�n de zonas geoposicionadas (Erandio)" );
// Creaci�n de objetos gr�ficos
mapa = new ImageIcon( this.getClass().getResource( "img/mapa-erandio.jpg" ) );
graphics = (Graphics2D) biImagen.getGraphics();
// Componentes y contenedores visuales y asignaci�n de componentes a contenedores
JPanel pSup = new JPanel();
pSup.setLayout( new BorderLayout() );
pSup.add( lMensaje, BorderLayout.WEST );
pSup.add( lMensaje2, BorderLayout.EAST );
add( pSup, BorderLayout.NORTH );
JPanel p = new JPanel();
tbZoom.setSelected( true );
cbArboles = new JCheckBox( "Dibujar �rboles" ); cbArboles.setSelected( false );
p.add( cbArboles ); p.add( tbZoom ); p.add( tbMover ); p.add( tbMoverArbol); /* p.add( tbGeoposicionar ); No interesa para el examen */ p.add( bCentrar );
JButton bTarea4 = new JButton( "Tarea 4" ); p.add( bTarea4 ); // Llamada de tarea 4
bTarea4.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { Tareas.tarea4(); } });
JButton bTarea5 = new JButton( "Tarea 5" ); p.add( bTarea5 ); // Llamada de tarea 5
bTarea5.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { Tareas.tarea5(); } });
add( p, BorderLayout.SOUTH );
pDibujo = new JPanel() {
@Override
protected void paintComponent(Graphics g) {
g.drawImage( biImagen, 0, 0, null );
}
};
add( pDibujo, BorderLayout.CENTER );
// Lista de zonas de la derecha de la ventana
Iterator<Zona> itZona = GrupoZonas.jardinesErandio.getIteradorZonas();
while (itZona.hasNext()) {
Zona zona = itZona.next();
mZonas.addElement( zona );
}
add( new JScrollPane( lZonas ), BorderLayout.EAST );
// Eventos de los distintos componentes
lZonas.addListSelectionListener( new ListSelectionListener() {
@Override
public void valueChanged(ListSelectionEvent e) {
if (!e.getValueIsAdjusting() && lZonas.getSelectedIndex()>=0) {
clickEnZona();
}
}
});
lZonas.addMouseListener( new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
if (lZonas.getSelectedIndex()>=0) {
clickEnZona();
}
}
});
pDibujo.addMouseListener( new MouseAdapter() {
Point pressed;
@Override
public void mouseReleased(MouseEvent e) {
if (pressed.equals(e.getPoint())) {
clickEn( e.getPoint(), e.getButton()==MouseEvent.BUTTON1 );
} else {
dragEn( pressed, e.getPoint(), e.getButton()==MouseEvent.BUTTON1 );
}
}
@Override
public void mousePressed(MouseEvent e) {
pressed = e.getPoint();
}
});
pDibujo.addMouseMotionListener( new MouseMotionListener() {
@Override
public void mouseMoved(MouseEvent e) {
lMensaje2.setText( String.format( "Coordenadas GPS rat�n: %1$.4f , %2$.4f", yPantallaAlatiGPS( e.getY() ), xPantallaAlongGPS( e.getX() ) ) );
}
@Override
public void mouseDragged(MouseEvent e) {
}
});
tbZoom.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { tbMover.setSelected( false ); tbGeoposicionar.setSelected( false ); tbMoverArbol.setSelected( false ); } } );
tbMover.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { tbGeoposicionar.setSelected( false ); tbZoom.setSelected( false ); tbMoverArbol.setSelected( false );} } );
tbGeoposicionar.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { tbMover.setSelected( false ); tbZoom.setSelected( false ); tbMoverArbol.setSelected( false );} } );
tbMoverArbol.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { tbMover.setSelected( false ); tbZoom.setSelected( false ); tbGeoposicionar.setSelected( false );} } );
bCentrar.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { calcMoverACentroZonas(); calculaMapa(); } } );
cbArboles.addActionListener( new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
dibujadoArboles = cbArboles.isSelected();
calculaMapa();
}
});
addWindowListener( new WindowAdapter() {
@Override
public void windowClosed(WindowEvent e) {
guardaProperties();
Tareas.finAplicacion();
}
});
// Carga final de propiedades de configuraci�n (zoom y posici�n del mapa, referencias GPS, primer dibujado del mapa en ventana
cargaProperties();
// TAREA 3
// Creaci�n de JTable y atributos relacionados, y asignaci�n a la izquierda de la ventana
// Si se realiza, modificaci�n de datos del punto si hay edici�n, y redibujado de la ventana en ese caso.
}
private void clickEnZona() {
int val = lZonas.getSelectedIndex();
ArrayList<String> zonasErandio = GrupoZonas.jardinesErandio.getCodZonas();
Zona zona = GrupoZonas.jardinesErandio.getZona( zonasErandio.get(val) );
calcMoverACentroZona( zona );
calculaMapa();
dibujaZona( val+1, zona, Color.CYAN );
lMensaje.setText( "Zona " + (val+1) + " tiene " + zona.getNumSubzonas() + " subzonas y " + zona.getNumPuntos() + " puntos diferentes." );
// TAREA 3 - Cambio de datos de la tabla cuando se selecciona una zona
}
// Gesti�n de eventos de click de rat�n, dependiendo del bot�n que est� seleccionado
private boolean inicioGeopos = false;
private void clickEn( Point p, boolean boton1 ) {
if (tbZoom.isSelected()) { // Click con zoom: si es bot�n izquierdo acerca, derecho aleja. Adem�s entendemos que al hacer click se hace una traslaci�n, por eso se duplica el c�digo de traslaci�n
double zoom = 1 / 1.5; if (boton1) zoom = 1.5; // Bot�n izquierdo aumenta, derecho u otro disminuye
zoomX *= zoom; zoomY *= zoom;
calcMoverCentroAlPunto( p.x, p.y );
calcZoomManteniendoCentro( zoom );
calculaMapa();
lMensaje.setText( "Zoom actual: " + String.format( "%.2f", zoomX ) + "%" );
} else if (tbMover.isSelected()) {
calcMoverCentroAlPunto( p.x, p.y );
lMensaje.setText( "Movido el mapa al centro indicado." );
calculaMapa();
} else if (tbGeoposicionar.isSelected()) { // Primer click de un geoposicionamiento
lMensaje.setText( "Introducida coordenada de posicionamiento. Introduce GPS correspondiente..." );
String dato = JOptionPane.showInputDialog( ventana, "Introduce coordenada GPS (latitud,longitud):", "Geolocalizaci�n", JOptionPane.QUESTION_MESSAGE );
if (!inicioGeopos) {
inicioGeopos = true;
calcGeoposicion( p.x, p.y, dato, 1 );
} else {
inicioGeopos = false;
calcGeoposicion( p.x, p.y, dato, 2 );
}
}
}
// Gesti�n de eventos de drag de rat�n, dependiendo del bot�n que est� seleccionado
private void dragEn( Point p1, Point p2, boolean boton1 ) {
if (tbZoom.isSelected()) { // Zoom sobre drag tiene dos partes: mover al centro y escalar al rect�ngulo del drag (si no es demasiado peque�o)
double anchoDrag = Math.abs( p1.getX() - p2.getX() );
double altoDrag = Math.abs( p1.getY() - p2.getY() );
if (altoDrag < 10 || anchoDrag < 10) return; // Si alguna dimensi�n del drag es menor de 10 p�xels no se hace nada (para evitar zooms demasiado grandes o peque�os)
double relAnchura = pDibujo.getWidth() / anchoDrag;
double relAltura = pDibujo.getHeight() / altoDrag;
double relZoom = Math.min( relAnchura, relAltura ); // No queremos cambiar la rel de aspecto con lo cual nos limitamos a la menos cambiada de las dos dimensiones
if (!boton1) relZoom = 1 / relZoom; // Si el bot�n no es el izquierdo se reduce el zoom en lugar de ampliar
int medioX = (p1.x + p2.x) / 2;
int medioY = (p1.y + p2.y) / 2;
zoomX *= relZoom; zoomY *= relZoom;
calcMoverCentroAlPunto( medioX, medioY );
calcZoomManteniendoCentro( relZoom );
calculaMapa();
lMensaje.setText( "Zoom actual: " + zoomX );
} else if (tbMover.isSelected()) {
calcMoverRelativo( p2.x - p1.x, p2.y - p1.y );
calculaMapa();
lMensaje.setText( "Movido el mapa seg�n el vector indicado." );
} else if (tbMoverArbol.isSelected()) { // Mueve un �rbol seg�n el drag
double longOrigen = xPantallaAlongGPS( p1.getX() );
double latOrigen = yPantallaAlatiGPS( p1.getY() );
double longDestino = xPantallaAlongGPS( p2.getX() );
double latDestino = yPantallaAlatiGPS( p2.getY() );
Arbol arbolCerca = null;
double distMenor = Double.MAX_VALUE;
for (Arbol arbol : GrupoZonas.arbolesErandio) { // Buscamos el �rbol m�s cercano
double dist = UtilsGPS.distanciaEntrePuntos( arbol.getPunto(), new PuntoGPS( latOrigen, longOrigen ));
if (arbolCerca==null || dist < distMenor) {
arbolCerca = arbol;
distMenor = dist;
}
}
if (distMenor < 0.00025/zoomX) { // Si el �rbol m�s cercano est� suficienmente cerca del picking se mueve
arbolCerca.getPunto().setLatitud( latDestino );
arbolCerca.getPunto().setLongitud( longDestino );
calculaMapa(); // Redibuja el mapa
}
}
}
// Rutinas de rec�lculo de zoom
private void calcZoomManteniendoCentro( double relZoom ) {
offsetX = pDibujo.getWidth()/2 - relZoom * (pDibujo.getWidth()/2 - offsetX);
offsetY = pDibujo.getHeight()/2 - relZoom * (pDibujo.getHeight()/2 - offsetY);
if (zoomX > 20.001) { double relZ2 = 20.0/zoomX; zoomX = 20.0; zoomY = 20.0; calcZoomManteniendoCentro( relZ2 ); }
else if (zoomX < 0.099) { double relZ2 = 0.10/zoomX; zoomX = 0.10; zoomY = 0.10; calcZoomManteniendoCentro( relZ2 ); }
}
// Rutinas de rec�lculo de movimiento
private void calcMoverRelativo( int difX, int difY ) {
offsetX += difX;
offsetY += difY;
}
private void calcMoverCentroAlPunto( int x, int y ) {
offsetX += (pDibujo.getWidth()/2 - x); // Mover al centro
offsetY += (pDibujo.getHeight()/2 - y);
}
// Mueve el centro de la pantalla al centro del rect�ngulo que engloba todos los puntos de zona, y pone un 55% de Zoom
void calcMoverACentroZonas() {
Iterator<Zona> itZona = GrupoZonas.jardinesErandio.getIteradorZonas();
double longMin = Double.MAX_VALUE; double longMax = -Double.MAX_VALUE; double latiMin = Double.MAX_VALUE; double latiMax = -Double.MAX_VALUE;
while (itZona.hasNext()) {
Zona zona = itZona.next();
for (ArrayList<PuntoGPS> subzona : zona.getPuntosGPS()) {
for (PuntoGPS punto : subzona) {
if (punto.getLatitud()>latiMax) latiMax = punto.getLatitud();
if (punto.getLatitud()<latiMin) latiMin = punto.getLatitud();
if (punto.getLongitud()>longMax) longMax = punto.getLongitud();
if (punto.getLongitud()<longMin) longMin = punto.getLongitud();
}
}
}
calcMoverCentroAlPunto( xGraficoAPantalla( longGPSaXGrafico( (longMax+longMin)/2.0 ) ), yGraficoAPantalla( latiGPSaYGrafico( (latiMax+latiMin)/2.0 ) ) );
double zoom = 0.55/zoomX;
zoomX *= zoom; zoomY *= zoom;
calcZoomManteniendoCentro( zoom );
lMensaje.setText( "Centrado el mapa en la vista de todas las zonas." );
}
// Mueve el centro de la pantalla a la media aritm�tica de los puntos de la zona
void calcMoverACentroZona( Zona zona ) {
double sumaLong = 0; double sumaLati = 0;
for (ArrayList<PuntoGPS> lp : zona.getPuntosGPS())
for (int i=0; i<lp.size()-1; i++) { // No se coge el �ltimo que repite siempre al primero (cierra la subzona)
PuntoGPS p = lp.get(i);
sumaLong += p.getLongitud();
sumaLati += p.getLatitud();
}
sumaLati /= zona.getNumPuntos(); sumaLong /= zona.getNumPuntos(); // Medias aritm�ticas de los puntos de la zona
int medioX = xGraficoAPantalla( longGPSaXGrafico( sumaLong ) );
int medioY = yGraficoAPantalla( latiGPSaYGrafico( sumaLati ) );
calcMoverCentroAlPunto( medioX, medioY );
}
// Calcula y redibuja todo el mapa visual en la ventana
void calculaMapa() {
graphics.setColor( Color.WHITE );
graphics.fillRect( 0, 0, ANCH_MAX, ALT_MAX );
graphics.setRenderingHint(RenderingHints.KEY_INTERPOLATION,RenderingHints.VALUE_INTERPOLATION_BILINEAR); // Configuraci�n para mejor calidad del gr�fico escalado
graphics.setRenderingHint(RenderingHints.KEY_RENDERING,RenderingHints.VALUE_RENDER_QUALITY);
graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
graphics.setComposite(AlphaComposite.getInstance( AlphaComposite.SRC_OVER, 0.6f ) ); // Pintar con transparencia de 60%
graphics.drawImage( mapa.getImage(),
(int) Math.round(offsetX), (int) Math.round(offsetY),
(int) Math.round(mapa.getIconWidth()*zoomX), (int) Math.round(mapa.getIconHeight()*zoomY), null );
graphics.setComposite(AlphaComposite.getInstance( AlphaComposite.SRC_OVER, 1f )); // Restaurar no transparencia
dibujaZonas();
if (pDibujo!=null) pDibujo.repaint();
}
// Relaciona un punto de pantalla (x,y) a una coordenada GPS (gps) latitud,longitud. Si hay dos puntos correctos, recalcula la relaci�n del gr�fico con el geoposicionamiento y redibuja
private void calcGeoposicion( int x, int y, String gps, int numPunto ) {
if (gps==null || gps.isEmpty()) { lMensaje.setText( "Introducci�n GPS incorrecta." ); inicioGeopos = false; return; }
double grafX = xPantallaAGrafico( x );
double grafY = yPantallaAGrafico( y );
try {
int coma = gps.indexOf( ',' );
double lati = Double.parseDouble( gps.substring( 0, coma ) );
double longi = Double.parseDouble( gps.substring( coma+1 ) );
if (numPunto==1) {
xImagen1 = grafX;
yImagen1 = grafY;
longGPS1 = longi;
latiGPS1 = lati;
} else { // punto 2
xImagen2 = grafX;
yImagen2 = grafY;
longGPS2 = longi;
latiGPS2 = lati;
}
calcGPSBase();
calculaMapa();
} catch (Exception e) {
}
}
// Dibuja las zonas de Erandio y los �rboles (si el checkbox lo indica) en el objeto gr�fico de pantalla
private void dibujaZonas() {
if (longGPS1!=0.0) { // Marca de asociaci�n GPS de punto 1
int x = xGraficoAPantalla( xImagen1 );
int y = yGraficoAPantalla( yImagen1 );
graphics.setColor( Color.BLACK );
graphics.setStroke( stroke4 );
graphics.drawOval( x-6, y-6, 12, 12 );
if (longGPS2!=0.0) { // Marca de asociaci�n GPS de punto 2 - si no est� no se puede correlacionar GPS con el gr�fico y por tanto no se dibujan zonas ni puntos
int x2 = xGraficoAPantalla( xImagen2 );
int y2 = yGraficoAPantalla( yImagen2 );
graphics.setColor( Color.RED );
graphics.setStroke( stroke4 );
graphics.drawOval( x2-6, y2-6, 12, 12 );
int nZ = 1;
graphics.setStroke( stroke2m );
Iterator<Zona> itZona = GrupoZonas.jardinesErandio.getIteradorZonas();
while (itZona.hasNext()) {
Zona zona = itZona.next();
dibujaZona( nZ, zona );
nZ++;
}
if (dibujadoArboles) {
for (Arbol arbol : GrupoZonas.arbolesErandio) {
arbol.dibuja( this, false );
}
}
}
}
}
// Dibuja las zona indicada con l�neas y puntos, en el color indicado (si no se indica, se alterna magenta y azul), en el objeto gr�fico de pantalla
private void dibujaZona( int numZona, Zona zona, Color... colorOpcional ) {
if (zona.getNumSubzonas()>0) {
if (numZona%2==0) graphics.setColor( Color.BLUE ); else graphics.setColor( Color.MAGENTA );
if (colorOpcional.length>0) { graphics.setColor( colorOpcional[0] ); graphics.setStroke( stroke4 ); }
Color color = graphics.getColor();
Stroke stroke = graphics.getStroke();
for (ArrayList<PuntoGPS> subzona : zona.getPuntosGPS()) {
PuntoGPS p1 = subzona.get(0);
for (int i=1; i<subzona.size(); i++) {
PuntoGPS p2 = subzona.get(i);
dibujaLinea( p1.getLongitud(), p1.getLatitud(), p2.getLongitud(), p2.getLatitud(), null, null, false );
dibujaCirculo( p1.getLongitud(), p1.getLatitud(), 3, Color.YELLOW, stroke1m, false ); // Punto amarillo en cada v�rtice de la zona
graphics.setColor( color );
graphics.setStroke( stroke );
p1 = p2;
}
dibujaCirculo( p1.getLongitud(), p1.getLatitud(), 4, null, null, false ); // Punto gordo para el inicial de la lista de puntos
}
}
}
/** Dibuja un c�rculo en el mapa gr�fico de la ventana
* @param longitud Coordenada longitud (horizontal) donde dibujar el centro del c�rculo
* @param latitud Coordenada latitud (vertical) donde dibujar el centro del c�rculo
* @param radio P�xels de pantalla de radio del c�rculo a dibujar
* @param color Color del c�rculo (si es null utiliza el color actual de dibujado)
* @param stroke Pincel de dibujado del c�rculo (grosor) (si es null utiliza el stroke actual de dibujado)
* @param pintaEnVentana true si se quiere pintar inmediatamente en el mapa, false si se pinta en el objeto gr�fico pero no se muestra a�n en pantalla
*/
public void dibujaCirculo( double longitud, double latitud, double radio, Color color, Stroke stroke, boolean pintaEnVentana ) {
if (color!=null) graphics.setColor( color );
if (stroke!=null) graphics.setStroke( stroke );
graphics.drawOval( (int) Math.round( longGPSaXPantalla( longitud ) - radio), (int) Math.round( latiGPSaYPantalla( latitud ) - radio),
(int) Math.round(radio*2), (int) Math.round(radio*2) );
if (pintaEnVentana && pDibujo!=null) pDibujo.repaint();
}
/** Dibuja una cruz en el mapa gr�fico de la ventana
* @param longitud Coordenada longitud (horizontal) donde dibujar el centro de la cruz
* @param latitud Coordenada latitud (vertical) donde dibujar el centro de la cruz
* @param tamanyo P�xels de pantalla de anchura y altura de la cruz a dibujar
* @param color Color de la cruz (si es null utiliza el color actual de dibujado)
* @param stroke Pincel de dibujado de la cruz (grosor) (si es null utiliza el stroke actual de dibujado)
* @param pintaEnVentana true si se quiere pintar inmediatamente en el mapa, false si se pinta en el objeto gr�fico pero no se muestra a�n en pantalla
*/
public void dibujaCruz( double longitud, double latitud, double tamanyo, Color color, Stroke stroke, boolean pintaEnVentana ) {
if (color!=null) graphics.setColor( color );
if (stroke!=null) graphics.setStroke( stroke );
graphics.drawLine( (int) Math.round(longGPSaXPantalla( longitud )), (int) (Math.round(latiGPSaYPantalla(latitud))-tamanyo/2),
(int) Math.round(longGPSaXPantalla( longitud )), (int) (Math.round(latiGPSaYPantalla(latitud))+tamanyo/2) );
graphics.drawLine( (int) (Math.round(longGPSaXPantalla( longitud ))-tamanyo/2), (int) Math.round(latiGPSaYPantalla(latitud)),
(int) (Math.round(longGPSaXPantalla( longitud ))+tamanyo/2), (int) Math.round(latiGPSaYPantalla(latitud)) );
if (pintaEnVentana && pDibujo!=null) pDibujo.repaint();
}
/** Dibuja una l�nea en el mapa gr�fico de la ventana
* @param longitud1 Coordenada longitud (horizontal) del punto inicial
* @param latitud1 Coordenada latitud (vertical) del punto inicial
* @param longitud2 Coordenada longitud (horizontal) del punto inicial
* @param latitud2 Coordenada latitud (vertical) del punto inicial
* @param color Color de la l�nea (si es null utiliza el color actual de dibujado)
* @param stroke Pincel de dibujado de la l�nea (grosor) (si es null utiliza el stroke actual de dibujado)
* @param pintaEnVentana true si se quiere pintar inmediatamente en el mapa, false si se pinta en el objeto gr�fico pero no se muestra a�n en pantalla
*/
public void dibujaLinea( double longitud1, double latitud1, double longitud2, double latitud2, Color color, Stroke stroke, boolean pintaEnVentana ) {
if (color!=null) graphics.setColor( color );
if (stroke!=null) graphics.setStroke( stroke );
graphics.drawLine( (int) Math.round(longGPSaXPantalla( longitud1 )), (int) Math.round(latiGPSaYPantalla(latitud1)),
(int) Math.round(longGPSaXPantalla( longitud2 )), (int) Math.round(latiGPSaYPantalla(latitud2)) );
if (pintaEnVentana && pDibujo!=null) pDibujo.repaint();
}
// M�todos de conversi�n entre x,y de pantalla, x,y de p�xels del gr�fico de fondo (mapa), long,lati de la coordenada GPS equivalente
private double xPantallaAGrafico( double x ) { return (x - offsetX) / zoomX; }
private double yPantallaAGrafico( double y ) { return (y - offsetY) / zoomY; }
private double xPantallaAlongGPS( double x ) { return xGraficoAlongGPS( xPantallaAGrafico( x ) ); }
private double yPantallaAlatiGPS( double y ) { return yGraficoAlatiGPS( yPantallaAGrafico( y ) ); }
private int xGraficoAPantalla( double x ) { return (int) Math.round( zoomX * x + offsetX ); }
private int yGraficoAPantalla( double y ) { return (int) Math.round( zoomY * y + offsetY ); }
private double longGPSaXGrafico( double longi ) {
return origenXGPSEnGraf + longi*relGPSaGrafX;
}
private int longGPSaXPantalla( double longitud ) { return xGraficoAPantalla( longGPSaXGrafico( longitud ) ); }
private double latiGPSaYGrafico( double lati ) {
return origenYGPSEnGraf + lati*relGPSaGrafY;
}
private int latiGPSaYPantalla( double latitud ) { return yGraficoAPantalla( latiGPSaYGrafico( latitud ) ); }
private double xGraficoAlongGPS( double x ) {
return (x - origenXGPSEnGraf) / relGPSaGrafX;
}
private double yGraficoAlatiGPS( double y ) {
return (y - origenYGPSEnGraf) / relGPSaGrafY;
}
// M�todo de c�lculo de los coeficientes de referencia para convertir coordenadas de pantalla y mapa en GPS georeferenciadas
// (dependiendo de dos puntos suministrados de forma expl�cita para interpolar partiendo de ellos)
private void calcGPSBase() {
if (longGPS1!=0.0 && longGPS2!=0.0) { // Marca de asociaci�n realizada en los dos puntos GPS
double difX = xImagen2 - xImagen1;
double difY = yImagen2 - yImagen1;
double difLong = longGPS2 - longGPS1;
double difLati = latiGPS2 - latiGPS1;
relGPSaGrafX = difX / difLong;
relGPSaGrafY = difY / difLati;
origenXGPSEnGraf = xImagen1 - longGPS1 * relGPSaGrafX;
origenYGPSEnGraf = yImagen1 - latiGPS1 * relGPSaGrafY;
// System.out.println( "Origen GPS en el gr�fico: " + origenXGPSEnGraf + " , " + origenYGPSEnGraf );
// System.out.println( "Escala de imagen en graf: " + relGPSaGrafX + " , " + relGPSaGrafY );
}
}
// Atributo de propiedades de configuraci�n
private Properties properties;
/** Carga los valores de configuraci�n: zoom y posici�n del mapa, referencias GPS
* Si el fichero no existe, los inicializa con valores por defecto
* Hace el c�lculo de cooordenadas GPS y realiza el primer dibujado del mapa en ventana
*/
private void cargaProperties() {
properties = new Properties();
try {
properties.loadFromXML( new FileInputStream( "utmgps.ini" ) );
xImagen1 = Double.parseDouble( properties.getProperty( "xImagen1" ) );
yImagen1 = Double.parseDouble( properties.getProperty( "yImagen1" ) );
xImagen2 = Double.parseDouble( properties.getProperty( "xImagen2" ) );
yImagen2 = Double.parseDouble( properties.getProperty( "yImagen2" ) );
longGPS1 = Double.parseDouble( properties.getProperty( "longGPS1" ) );
latiGPS1 = Double.parseDouble( properties.getProperty( "latiGPS1" ) );
longGPS2 = Double.parseDouble( properties.getProperty( "longGPS2" ) );
latiGPS2 = Double.parseDouble( properties.getProperty( "latiGPS2" ) );
offsetX = Double.parseDouble( properties.getProperty( "offsetX" ) );
offsetY = Double.parseDouble( properties.getProperty( "offsetY" ) );
zoomX = Double.parseDouble( properties.getProperty( "zoomX" ) );
zoomY = Double.parseDouble( properties.getProperty( "zoomY" ) );
} catch (Exception e) { // Fichero no existe o error en alg�n dato
// longGPS2 = 0.0; // Marcar�a que no hay asociaci�n GPS
// TODO - Esto habr�a que cambiarlo si el mapa fuera otro. Est� configurado para el mapa y los valores de ejemplo de Erandio (ver GrupoZonas)
longGPS1 = -2.98926;
longGPS2 = -2.953024;
latiGPS1 = 43.313283;
latiGPS2 = 43.294753;
xImagen1 = 130.16049382715826;
xImagen2 = 1264.0216049382686;
yImagen1 = 1601.4228395061725;
yImagen2 = 2394.3672839506157;
}
calcGPSBase();
calculaMapa();
System.out.println( "Coordenada GPS correspondiente a la esquina superior izquierda del gr�fico: " + yGraficoAlatiGPS(0) + " , " + xGraficoAlongGPS(0) );
System.out.println( "Coordenada GPS correspondiente a la esquina inferior derecha del gr�fico: " + yGraficoAlatiGPS(mapa.getIconHeight()) + " , " + xGraficoAlongGPS(mapa.getIconWidth()) );
}
/** Guarda en fichero los valores de configuraci�n
*/
private void guardaProperties() {
properties.setProperty( "xImagen1", ""+xImagen1 );
properties.setProperty( "yImagen1", ""+yImagen1 );
properties.setProperty( "xImagen2", ""+xImagen2 );
properties.setProperty( "yImagen2", ""+yImagen2 );
properties.setProperty( "longGPS1", ""+longGPS1 );
properties.setProperty( "latiGPS1", ""+latiGPS1 );
properties.setProperty( "longGPS2", ""+longGPS2 );
properties.setProperty( "latiGPS2", ""+latiGPS2 );
properties.setProperty( "offsetX", ""+offsetX );
properties.setProperty( "offsetY", ""+offsetY );
properties.setProperty( "zoomX", ""+zoomX );
properties.setProperty( "zoomY", ""+zoomY );
try {
properties.storeToXML( new FileOutputStream( "utmgps.ini" ), "datos de RevisionZonasUTMGPS" );
} catch (Exception e) {
}
}
}
| [
"[email protected]"
] | |
cf49f74f18a26031de25a463d4cf0ae92de1fbc0 | 72f02c3826d332630227006855c6bf21003b4bf5 | /src/main/java/generated/InvBlockType.java | e9a5eaadac08dfbadc97d2306b82a7822f1d31d9 | [
"Apache-2.0"
] | permissive | ateeb-hk/otalib | 887ff885ba3ec8a20975424e30b74f1549055e73 | 2c314144352ab0d3357a94b301338b002068103a | refs/heads/master | 2020-03-23T05:05:22.668269 | 2017-07-19T08:05:39 | 2017-07-19T08:05:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 48,634 | java | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// 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: 2017.07.11 at 07:19:31 PM IST
//
package generated;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.Duration;
/**
* Used to define the details of an inventory block.
*
* <p>Java class for InvBlockType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="InvBlockType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="HotelRef" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attGroup ref="{}HotelReferenceGroup"/>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="InvBlockDates" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attGroup ref="{}InvBlockDatesGroup"/>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="RoomTypes" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="RoomType" type="{}InvBlockRoomType" maxOccurs="99"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="MethodInfo" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="BillingInstruction" type="{}BillingInstructionType" minOccurs="0"/>
* </sequence>
* <attGroup ref="{}MethodInfoGroup"/>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="BlockDescriptions" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="BlockDescription" maxOccurs="99">
* <complexType>
* <complexContent>
* <extension base="{}ParagraphType">
* <attGroup ref="{}DateTimeSpanGroup"/>
* </extension>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="Contacts" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Contact" type="{}ContactPersonType" maxOccurs="99"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="DestinationSystemCodes" type="{}DestinationSystemCodesType" minOccurs="0"/>
* <element name="TaxInformation" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="TaxType">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Taxable"/>
* <enumeration value="RoomExempt"/>
* <enumeration value="FullExempt"/>
* <enumeration value=""/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="TaxReason" type="{}StringLength1to64" />
* <attribute name="TaxID" type="{}StringLength1to32" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* <attGroup ref="{}InvBlockGroup"/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "InvBlockType", propOrder = {
"hotelRef",
"invBlockDates",
"roomTypes",
"methodInfo",
"blockDescriptions",
"contacts",
"destinationSystemCodes",
"taxInformation"
})
public class InvBlockType {
@XmlElement(name = "HotelRef")
protected InvBlockType.HotelRef hotelRef;
@XmlElement(name = "InvBlockDates")
protected InvBlockType.InvBlockDates invBlockDates;
@XmlElement(name = "RoomTypes")
protected InvBlockType.RoomTypes roomTypes;
@XmlElement(name = "MethodInfo")
protected InvBlockType.MethodInfo methodInfo;
@XmlElement(name = "BlockDescriptions")
protected InvBlockType.BlockDescriptions blockDescriptions;
@XmlElement(name = "Contacts")
protected InvBlockType.Contacts contacts;
@XmlElement(name = "DestinationSystemCodes")
protected DestinationSystemCodesType destinationSystemCodes;
@XmlElement(name = "TaxInformation")
protected InvBlockType.TaxInformation taxInformation;
@XmlAttribute(name = "BookingStatus")
protected String bookingStatus;
@XmlAttribute(name = "InvBlockTypeCode")
protected String invBlockTypeCode;
@XmlAttribute(name = "InvBlockCode")
protected String invBlockCode;
@XmlAttribute(name = "InvBlockGroupingCode")
protected String invBlockGroupingCode;
@XmlAttribute(name = "InvBlockName")
protected String invBlockName;
@XmlAttribute(name = "InvBlockLongName")
protected String invBlockLongName;
@XmlAttribute(name = "InvBlockStatusCode")
protected String invBlockStatusCode;
@XmlAttribute(name = "PMS_InvBlockID")
protected String pmsInvBlockID;
@XmlAttribute(name = "OpportunityID")
protected String opportunityID;
@XmlAttribute(name = "InvBlockCompanyID")
protected String invBlockCompanyID;
@XmlAttribute(name = "RestrictedBookingCodeList")
protected List<String> restrictedBookingCodeList;
@XmlAttribute(name = "RestrictedViewingCodeList")
protected List<String> restrictedViewingCodeList;
@XmlAttribute(name = "TransactionAction")
protected TransactionActionType transactionAction;
@XmlAttribute(name = "TransactionDetail")
protected String transactionDetail;
@XmlAttribute(name = "QuoteID")
protected String quoteID;
/**
* Gets the value of the hotelRef property.
*
* @return
* possible object is
* {@link InvBlockType.HotelRef }
*
*/
public InvBlockType.HotelRef getHotelRef() {
return hotelRef;
}
/**
* Sets the value of the hotelRef property.
*
* @param value
* allowed object is
* {@link InvBlockType.HotelRef }
*
*/
public void setHotelRef(InvBlockType.HotelRef value) {
this.hotelRef = value;
}
/**
* Gets the value of the invBlockDates property.
*
* @return
* possible object is
* {@link InvBlockType.InvBlockDates }
*
*/
public InvBlockType.InvBlockDates getInvBlockDates() {
return invBlockDates;
}
/**
* Sets the value of the invBlockDates property.
*
* @param value
* allowed object is
* {@link InvBlockType.InvBlockDates }
*
*/
public void setInvBlockDates(InvBlockType.InvBlockDates value) {
this.invBlockDates = value;
}
/**
* Gets the value of the roomTypes property.
*
* @return
* possible object is
* {@link InvBlockType.RoomTypes }
*
*/
public InvBlockType.RoomTypes getRoomTypes() {
return roomTypes;
}
/**
* Sets the value of the roomTypes property.
*
* @param value
* allowed object is
* {@link InvBlockType.RoomTypes }
*
*/
public void setRoomTypes(InvBlockType.RoomTypes value) {
this.roomTypes = value;
}
/**
* Gets the value of the methodInfo property.
*
* @return
* possible object is
* {@link InvBlockType.MethodInfo }
*
*/
public InvBlockType.MethodInfo getMethodInfo() {
return methodInfo;
}
/**
* Sets the value of the methodInfo property.
*
* @param value
* allowed object is
* {@link InvBlockType.MethodInfo }
*
*/
public void setMethodInfo(InvBlockType.MethodInfo value) {
this.methodInfo = value;
}
/**
* Gets the value of the blockDescriptions property.
*
* @return
* possible object is
* {@link InvBlockType.BlockDescriptions }
*
*/
public InvBlockType.BlockDescriptions getBlockDescriptions() {
return blockDescriptions;
}
/**
* Sets the value of the blockDescriptions property.
*
* @param value
* allowed object is
* {@link InvBlockType.BlockDescriptions }
*
*/
public void setBlockDescriptions(InvBlockType.BlockDescriptions value) {
this.blockDescriptions = value;
}
/**
* Gets the value of the contacts property.
*
* @return
* possible object is
* {@link InvBlockType.Contacts }
*
*/
public InvBlockType.Contacts getContacts() {
return contacts;
}
/**
* Sets the value of the contacts property.
*
* @param value
* allowed object is
* {@link InvBlockType.Contacts }
*
*/
public void setContacts(InvBlockType.Contacts value) {
this.contacts = value;
}
/**
* Gets the value of the destinationSystemCodes property.
*
* @return
* possible object is
* {@link DestinationSystemCodesType }
*
*/
public DestinationSystemCodesType getDestinationSystemCodes() {
return destinationSystemCodes;
}
/**
* Sets the value of the destinationSystemCodes property.
*
* @param value
* allowed object is
* {@link DestinationSystemCodesType }
*
*/
public void setDestinationSystemCodes(DestinationSystemCodesType value) {
this.destinationSystemCodes = value;
}
/**
* Gets the value of the taxInformation property.
*
* @return
* possible object is
* {@link InvBlockType.TaxInformation }
*
*/
public InvBlockType.TaxInformation getTaxInformation() {
return taxInformation;
}
/**
* Sets the value of the taxInformation property.
*
* @param value
* allowed object is
* {@link InvBlockType.TaxInformation }
*
*/
public void setTaxInformation(InvBlockType.TaxInformation value) {
this.taxInformation = value;
}
/**
* Gets the value of the bookingStatus property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBookingStatus() {
return bookingStatus;
}
/**
* Sets the value of the bookingStatus property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBookingStatus(String value) {
this.bookingStatus = value;
}
/**
* Gets the value of the invBlockTypeCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInvBlockTypeCode() {
return invBlockTypeCode;
}
/**
* Sets the value of the invBlockTypeCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInvBlockTypeCode(String value) {
this.invBlockTypeCode = value;
}
/**
* Gets the value of the invBlockCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInvBlockCode() {
return invBlockCode;
}
/**
* Sets the value of the invBlockCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInvBlockCode(String value) {
this.invBlockCode = value;
}
/**
* Gets the value of the invBlockGroupingCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInvBlockGroupingCode() {
return invBlockGroupingCode;
}
/**
* Sets the value of the invBlockGroupingCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInvBlockGroupingCode(String value) {
this.invBlockGroupingCode = value;
}
/**
* Gets the value of the invBlockName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInvBlockName() {
return invBlockName;
}
/**
* Sets the value of the invBlockName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInvBlockName(String value) {
this.invBlockName = value;
}
/**
* Gets the value of the invBlockLongName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInvBlockLongName() {
return invBlockLongName;
}
/**
* Sets the value of the invBlockLongName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInvBlockLongName(String value) {
this.invBlockLongName = value;
}
/**
* Gets the value of the invBlockStatusCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInvBlockStatusCode() {
return invBlockStatusCode;
}
/**
* Sets the value of the invBlockStatusCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInvBlockStatusCode(String value) {
this.invBlockStatusCode = value;
}
/**
* Gets the value of the pmsInvBlockID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPMSInvBlockID() {
return pmsInvBlockID;
}
/**
* Sets the value of the pmsInvBlockID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPMSInvBlockID(String value) {
this.pmsInvBlockID = value;
}
/**
* Gets the value of the opportunityID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOpportunityID() {
return opportunityID;
}
/**
* Sets the value of the opportunityID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOpportunityID(String value) {
this.opportunityID = value;
}
/**
* Gets the value of the invBlockCompanyID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInvBlockCompanyID() {
return invBlockCompanyID;
}
/**
* Sets the value of the invBlockCompanyID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInvBlockCompanyID(String value) {
this.invBlockCompanyID = value;
}
/**
* Gets the value of the restrictedBookingCodeList property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the restrictedBookingCodeList property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRestrictedBookingCodeList().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getRestrictedBookingCodeList() {
if (restrictedBookingCodeList == null) {
restrictedBookingCodeList = new ArrayList<String>();
}
return this.restrictedBookingCodeList;
}
/**
* Gets the value of the restrictedViewingCodeList property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the restrictedViewingCodeList property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRestrictedViewingCodeList().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getRestrictedViewingCodeList() {
if (restrictedViewingCodeList == null) {
restrictedViewingCodeList = new ArrayList<String>();
}
return this.restrictedViewingCodeList;
}
/**
* Gets the value of the transactionAction property.
*
* @return
* possible object is
* {@link TransactionActionType }
*
*/
public TransactionActionType getTransactionAction() {
return transactionAction;
}
/**
* Sets the value of the transactionAction property.
*
* @param value
* allowed object is
* {@link TransactionActionType }
*
*/
public void setTransactionAction(TransactionActionType value) {
this.transactionAction = value;
}
/**
* Gets the value of the transactionDetail property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTransactionDetail() {
return transactionDetail;
}
/**
* Sets the value of the transactionDetail property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTransactionDetail(String value) {
this.transactionDetail = value;
}
/**
* Gets the value of the quoteID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getQuoteID() {
return quoteID;
}
/**
* Sets the value of the quoteID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setQuoteID(String value) {
this.quoteID = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="BlockDescription" maxOccurs="99">
* <complexType>
* <complexContent>
* <extension base="{}ParagraphType">
* <attGroup ref="{}DateTimeSpanGroup"/>
* </extension>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"blockDescription"
})
public static class BlockDescriptions {
@XmlElement(name = "BlockDescription", required = true)
protected List<InvBlockType.BlockDescriptions.BlockDescription> blockDescription;
/**
* Gets the value of the blockDescription property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the blockDescription property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getBlockDescription().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link InvBlockType.BlockDescriptions.BlockDescription }
*
*
*/
public List<InvBlockType.BlockDescriptions.BlockDescription> getBlockDescription() {
if (blockDescription == null) {
blockDescription = new ArrayList<InvBlockType.BlockDescriptions.BlockDescription>();
}
return this.blockDescription;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <extension base="{}ParagraphType">
* <attGroup ref="{}DateTimeSpanGroup"/>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class BlockDescription
extends ParagraphType
{
@XmlAttribute(name = "Start")
protected String start;
@XmlAttribute(name = "Duration")
protected String duration;
@XmlAttribute(name = "End")
protected String end;
/**
* Gets the value of the start property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStart() {
return start;
}
/**
* Sets the value of the start property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStart(String value) {
this.start = value;
}
/**
* Gets the value of the duration property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDuration() {
return duration;
}
/**
* Sets the value of the duration property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDuration(String value) {
this.duration = value;
}
/**
* Gets the value of the end property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEnd() {
return end;
}
/**
* Sets the value of the end property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEnd(String value) {
this.end = value;
}
}
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Contact" type="{}ContactPersonType" maxOccurs="99"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"contact"
})
public static class Contacts {
@XmlElement(name = "Contact", required = true)
protected List<ContactPersonType> contact;
/**
* Gets the value of the contact property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the contact property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContact().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ContactPersonType }
*
*
*/
public List<ContactPersonType> getContact() {
if (contact == null) {
contact = new ArrayList<ContactPersonType>();
}
return this.contact;
}
}
/**
* <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">
* <attGroup ref="{}HotelReferenceGroup"/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class HotelRef {
@XmlAttribute(name = "ChainCode")
protected String chainCode;
@XmlAttribute(name = "BrandCode")
protected String brandCode;
@XmlAttribute(name = "HotelCode")
protected String hotelCode;
@XmlAttribute(name = "HotelCityCode")
protected String hotelCityCode;
@XmlAttribute(name = "HotelName")
protected String hotelName;
@XmlAttribute(name = "HotelCodeContext")
protected String hotelCodeContext;
@XmlAttribute(name = "ChainName")
protected String chainName;
@XmlAttribute(name = "BrandName")
protected String brandName;
@XmlAttribute(name = "AreaID")
protected String areaID;
@XmlAttribute(name = "TTIcode")
@XmlSchemaType(name = "positiveInteger")
protected BigInteger ttIcode;
/**
* Gets the value of the chainCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getChainCode() {
return chainCode;
}
/**
* Sets the value of the chainCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setChainCode(String value) {
this.chainCode = value;
}
/**
* Gets the value of the brandCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBrandCode() {
return brandCode;
}
/**
* Sets the value of the brandCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBrandCode(String value) {
this.brandCode = value;
}
/**
* Gets the value of the hotelCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHotelCode() {
return hotelCode;
}
/**
* Sets the value of the hotelCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHotelCode(String value) {
this.hotelCode = value;
}
/**
* Gets the value of the hotelCityCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHotelCityCode() {
return hotelCityCode;
}
/**
* Sets the value of the hotelCityCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHotelCityCode(String value) {
this.hotelCityCode = value;
}
/**
* Gets the value of the hotelName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHotelName() {
return hotelName;
}
/**
* Sets the value of the hotelName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHotelName(String value) {
this.hotelName = value;
}
/**
* Gets the value of the hotelCodeContext property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHotelCodeContext() {
return hotelCodeContext;
}
/**
* Sets the value of the hotelCodeContext property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHotelCodeContext(String value) {
this.hotelCodeContext = value;
}
/**
* Gets the value of the chainName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getChainName() {
return chainName;
}
/**
* Sets the value of the chainName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setChainName(String value) {
this.chainName = value;
}
/**
* Gets the value of the brandName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBrandName() {
return brandName;
}
/**
* Sets the value of the brandName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBrandName(String value) {
this.brandName = value;
}
/**
* Gets the value of the areaID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAreaID() {
return areaID;
}
/**
* Sets the value of the areaID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAreaID(String value) {
this.areaID = value;
}
/**
* Gets the value of the ttIcode property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getTTIcode() {
return ttIcode;
}
/**
* Sets the value of the ttIcode property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setTTIcode(BigInteger value) {
this.ttIcode = value;
}
}
/**
* <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">
* <attGroup ref="{}InvBlockDatesGroup"/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class InvBlockDates {
@XmlAttribute(name = "Start")
protected String start;
@XmlAttribute(name = "Duration")
protected String duration;
@XmlAttribute(name = "End")
protected String end;
@XmlAttribute(name = "EndDateExtensionIndicator")
protected Boolean endDateExtensionIndicator;
@XmlAttribute(name = "AbsoluteCutoff")
protected String absoluteCutoff;
@XmlAttribute(name = "OffsetDuration")
protected Duration offsetDuration;
@XmlAttribute(name = "OffsetCalculationMode")
protected String offsetCalculationMode;
/**
* Gets the value of the start property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStart() {
return start;
}
/**
* Sets the value of the start property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStart(String value) {
this.start = value;
}
/**
* Gets the value of the duration property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDuration() {
return duration;
}
/**
* Sets the value of the duration property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDuration(String value) {
this.duration = value;
}
/**
* Gets the value of the end property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEnd() {
return end;
}
/**
* Sets the value of the end property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEnd(String value) {
this.end = value;
}
/**
* Gets the value of the endDateExtensionIndicator property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isEndDateExtensionIndicator() {
return endDateExtensionIndicator;
}
/**
* Sets the value of the endDateExtensionIndicator property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setEndDateExtensionIndicator(Boolean value) {
this.endDateExtensionIndicator = value;
}
/**
* Gets the value of the absoluteCutoff property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAbsoluteCutoff() {
return absoluteCutoff;
}
/**
* Sets the value of the absoluteCutoff property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAbsoluteCutoff(String value) {
this.absoluteCutoff = value;
}
/**
* Gets the value of the offsetDuration property.
*
* @return
* possible object is
* {@link Duration }
*
*/
public Duration getOffsetDuration() {
return offsetDuration;
}
/**
* Sets the value of the offsetDuration property.
*
* @param value
* allowed object is
* {@link Duration }
*
*/
public void setOffsetDuration(Duration value) {
this.offsetDuration = value;
}
/**
* Gets the value of the offsetCalculationMode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOffsetCalculationMode() {
return offsetCalculationMode;
}
/**
* Sets the value of the offsetCalculationMode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOffsetCalculationMode(String value) {
this.offsetCalculationMode = value;
}
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="BillingInstruction" type="{}BillingInstructionType" minOccurs="0"/>
* </sequence>
* <attGroup ref="{}MethodInfoGroup"/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"billingInstruction"
})
public static class MethodInfo {
@XmlElement(name = "BillingInstruction")
protected BillingInstructionType billingInstruction;
@XmlAttribute(name = "BillingType")
protected String billingType;
@XmlAttribute(name = "SignFoodAndBev")
protected Boolean signFoodAndBev;
@XmlAttribute(name = "ReservationMethodCode")
protected String reservationMethodCode;
/**
* Gets the value of the billingInstruction property.
*
* @return
* possible object is
* {@link BillingInstructionType }
*
*/
public BillingInstructionType getBillingInstruction() {
return billingInstruction;
}
/**
* Sets the value of the billingInstruction property.
*
* @param value
* allowed object is
* {@link BillingInstructionType }
*
*/
public void setBillingInstruction(BillingInstructionType value) {
this.billingInstruction = value;
}
/**
* Gets the value of the billingType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBillingType() {
return billingType;
}
/**
* Sets the value of the billingType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBillingType(String value) {
this.billingType = value;
}
/**
* Gets the value of the signFoodAndBev property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isSignFoodAndBev() {
return signFoodAndBev;
}
/**
* Sets the value of the signFoodAndBev property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setSignFoodAndBev(Boolean value) {
this.signFoodAndBev = value;
}
/**
* Gets the value of the reservationMethodCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getReservationMethodCode() {
return reservationMethodCode;
}
/**
* Sets the value of the reservationMethodCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setReservationMethodCode(String value) {
this.reservationMethodCode = value;
}
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="RoomType" type="{}InvBlockRoomType" maxOccurs="99"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"roomType"
})
public static class RoomTypes {
@XmlElement(name = "RoomType", required = true)
protected List<InvBlockRoomType> roomType;
/**
* Gets the value of the roomType property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the roomType property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRoomType().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link InvBlockRoomType }
*
*
*/
public List<InvBlockRoomType> getRoomType() {
if (roomType == null) {
roomType = new ArrayList<InvBlockRoomType>();
}
return this.roomType;
}
}
/**
* <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">
* <attribute name="TaxType">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Taxable"/>
* <enumeration value="RoomExempt"/>
* <enumeration value="FullExempt"/>
* <enumeration value=""/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="TaxReason" type="{}StringLength1to64" />
* <attribute name="TaxID" type="{}StringLength1to32" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class TaxInformation {
@XmlAttribute(name = "TaxType")
protected String taxType;
@XmlAttribute(name = "TaxReason")
protected String taxReason;
@XmlAttribute(name = "TaxID")
protected String taxID;
/**
* Gets the value of the taxType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTaxType() {
return taxType;
}
/**
* Sets the value of the taxType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTaxType(String value) {
this.taxType = value;
}
/**
* Gets the value of the taxReason property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTaxReason() {
return taxReason;
}
/**
* Sets the value of the taxReason property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTaxReason(String value) {
this.taxReason = value;
}
/**
* Gets the value of the taxID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTaxID() {
return taxID;
}
/**
* Sets the value of the taxID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTaxID(String value) {
this.taxID = value;
}
}
}
| [
"[email protected]"
] | |
d220eaa3481289249e6dd71a9889fbcbb80aed86 | 3a9171f0d989e019577c66de45d6e4cb9ac21408 | /0412Method/src/Ex06.java | 956f36f9265945c64ef7263e0ef5cf7df192f3cc | [] | no_license | gudals6676/java | 159d36701553152ac9fdc0ca2c817954dc1b5009 | 88a5fbde27893d49c307d59ffd474d41d5aa936a | refs/heads/master | 2023-04-20T07:30:53.828870 | 2021-05-07T04:52:22 | 2021-05-07T04:52:22 | 359,686,867 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 262 | java |
public class Ex06 {
public static void main(String[] args) {
int num = abs_Mathod(5);
System.out.println(num);
System.out.println(Math.abs(-15));
}
public static int abs_Mathod(int n) {
int result = n;
if(n < 0) {
result = n * -1;
}
return result;
}
}
| [
"[email protected]"
] | |
b0bb4042f14d9b8d47de476b10eaa32cb6ac1a05 | e140497c374713c79ae9ad555e624f491172c859 | /app/src/main/java/com/finnishverbix/Fragment/HelpFragment.java | a54487e46b43530a512d96c897d8988933302e97 | [] | no_license | ruathudo/FinnishVerbix | d165f56710c7a0ececfda52d8fa91625dc6b8203 | 35f597aee2313137da3dd844d2e7e8286b25f9c1 | refs/heads/master | 2020-05-20T16:00:51.182327 | 2015-05-13T08:36:57 | 2015-05-13T08:36:57 | 35,241,328 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 775 | java | package com.finnishverbix.Fragment;
import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.finnishverbix.R;
/**
* A simple {@link Fragment} subclass.
* create an instance of this fragment.
*/
public class HelpFragment extends Fragment {
public HelpFragment() {
// Required empty public constructor
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_help, container, false);
}
}
| [
"[email protected]"
] | |
0614dc7adb638005a54647b783215c04fa94a194 | 1e1e6eb3b8c52e8b6fcd09d016f17efde498403f | /04-Spring-beanPostProcessor-live/src/com/zfw/service/dingzhi/MyBeanPostProcessor.java | b0894c14041f0fe1ea6ed942c6cc221fd857adb7 | [] | no_license | imfuwei/spring | addf0fa01756d0cbb42f6541f45b79be726919e0 | fc958a99570d57d8e0efc3a074d6f054755dac31 | refs/heads/master | 2020-12-30T11:39:29.434059 | 2017-05-16T22:38:27 | 2017-05-16T22:38:27 | 91,509,252 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,733 | java | package com.zfw.service.dingzhi;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
public class MyBeanPostProcessor implements BeanPostProcessor {
/**
* bean后处理器 在当前bean属性初始化之前执行 bean:当前要处理的bean beanName:当前要处理的bean的id
*
* 在当前bean属性初始化之后执行
*/
@Override
public Object postProcessBeforeInitialization(Object bean, String beanName)
throws BeansException {
System.out.println("bean初始化之 前 执行");
return bean;
}
@Override
public Object postProcessAfterInitialization(final Object bean,
String beanName) throws BeansException {
System.out.println("bean初始化之 后 执行");
if ("someService1".equals(beanName)) {
//使用代理增强对象的方法,然后再返回
Object bean1 = Proxy.newProxyInstance(bean.getClass().getClassLoader(), bean
.getClass().getInterfaces(), new InvocationHandler() {
@Override
public Object invoke(Object proxy, Method method, Object[] args)
throws Throwable {
//增强对象所有方法
/*Object invoke = method.invoke(bean, args);
return invoke.toString().toUpperCase();*/
if (method.getName().equals("doother")) {
//增强对象指定方法
Object invoke = method.invoke(bean, args);
return invoke.toString().toUpperCase();
}
return method.invoke(bean, args);
}
});
return bean1;
}
return bean;
}
}
| [
"[email protected]"
] | |
8b5a33ba3d180157e09106533db9ff5fdd3cdc08 | 7e0629704de0e4bc5822a47eed91c21874996454 | /src/main/java/vn/jv/service/UCertificationService.java | 07f8162c532e564ce76614eb2fc2ee7cd3d08642 | [] | no_license | duongthienduc/Java-Work | fe1e0601d0d49296bce94598dae525ef32efb2ae | 850e43648baa8d971a76a88d5568aabbecb1e554 | refs/heads/master | 2020-02-26T16:28:21.995288 | 2014-04-01T06:34:10 | 2014-04-01T06:34:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,687 | java | package vn.jv.service;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import vn.jv.persist.domain.UCertification;
import vn.jv.persist.domain.User;
import vn.jv.persist.repositories.UCertificationRepo;
/**
* Contain operations related to UCertification
*
* @author [email protected]
*
*/
@Service("uCertificationService")
public class UCertificationService extends BaseService implements IUCertificationService {
@Autowired
private UCertificationRepo uCertificationRepo;
//@Cacheable(value = "UCertificationService.findByUserId", key="#userId")
public List<UCertification> findByUserId(int userId) {
return this.uCertificationRepo.findByUser(new User(userId));
}
@CacheEvict(value = "UCertificationService.findByUserId", key="#userId")
@Transactional(propagation = Propagation.REQUIRED)
public void create(User user, String conferringOrganization, String professionalCertificate,
Date dateAwarded, String certificateNumber, String description) {
UCertification uCertification = new UCertification();
uCertification.setUser(user);
uCertification.setConferringOrganization(conferringOrganization);
uCertification.setProfessionalCertificate(professionalCertificate);
uCertification.setDateAwarded(dateAwarded);
uCertification.setCertificateNumber(certificateNumber);
uCertification.setDescription(description);
this.uCertificationRepo.save(uCertification);
}
@Transactional(propagation = Propagation.REQUIRED)
public void update(int uCertificationId, String conferringOrganization, String professionalCertificate,
Date dateAwarded, String certificateNumber, String description) {
UCertification uCertification = uCertificationRepo.findOne(uCertificationId);
// Must check null here or throw item not found? Later
uCertification.setConferringOrganization(conferringOrganization);
uCertification.setProfessionalCertificate(professionalCertificate);
uCertification.setDateAwarded(dateAwarded);
uCertification.setCertificateNumber(certificateNumber);
uCertification.setDescription(description);
this.uCertificationRepo.save(uCertification);
}
@Transactional(propagation = Propagation.REQUIRED)
public void delete(int uCertificationId) {
uCertificationRepo.delete(uCertificationId);
}
}
| [
"[email protected]"
] | |
c1b0e9d99f271315df979537be1e2f3b7108d07b | 419aad4bc0530badd1ed28bb59ae25f4e926f135 | /src/main/java/cn/ITHong/hibernate/base/optimize/oneTomany/Student.java | 02236e6fa957ee5d9e22e09f84e762955c0c1f40 | [] | no_license | lizhehong/HibernateTableRelation | 438bb743bbcefe358a3532a7ac1f7fca8c97e30f | 5bf7ab4f2f90b167094d9207ae771a32626b8b59 | refs/heads/master | 2021-01-02T09:43:10.695625 | 2015-04-24T11:53:03 | 2015-04-24T11:53:03 | 34,169,190 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 968 | java | package cn.ITHong.hibernate.base.optimize.oneTomany;
/**
* 相对于Hibernate_hong_base改进了
* 加入
* private Classes classes;
* */
public class Student {
private Long sid;
private String sname;
private Classes classes;
public Classes getClasses() {
return classes;
}
public void setClasses(Classes classes) {
this.classes = classes;
}
public Long getSid() {
return sid;
}
public void setSid(Long sid) {
this.sid = sid;
}
public String getSname() {
return sname;
}
public void setSname(String sname) {
this.sname = sname;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public String toString() {
return "Student [sid=" + sid + ", sname=" + sname + ", classes="
+ classes + ", description=" + description + "]";
}
private String description;
}
| [
"[email protected]"
] | |
ae4bda344f3d6130aae116ff2ba7764dba202793 | ddfb3a710952bf5260dfecaaea7d515526f92ebb | /build/tmp/expandedArchives/forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-sources.jar_c582e790131b6dd3325b282fce9d2d3d/net/minecraftforge/client/event/RecipesUpdatedEvent.java | ab0f17bd814352c5e102986bb42dc6d0e07e9c77 | [
"Apache-2.0"
] | permissive | TheDarkRob/Sgeorsge | 88e7e39571127ff3b14125620a6594beba509bd9 | 307a675cd3af5905504e34717e4f853b2943ba7b | refs/heads/master | 2022-11-25T06:26:50.730098 | 2020-08-03T15:42:23 | 2020-08-03T15:42:23 | 284,748,579 | 0 | 0 | Apache-2.0 | 2020-08-03T16:19:36 | 2020-08-03T16:19:35 | null | UTF-8 | Java | false | false | 1,485 | java | /*
* Minecraft Forge
* Copyright (c) 2016-2019.
*
* 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 version 2.1
* of the License.
*
* 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package net.minecraftforge.client.event;
import net.minecraft.item.crafting.RecipeManager;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.eventbus.api.Event;
/**
* Fired on {@link Dist#CLIENT} when {@link RecipeManager} has all of its recipes synced from the server to the client (just after a client has connected),
*/
public class RecipesUpdatedEvent extends Event
{
private final RecipeManager mgr;
public RecipesUpdatedEvent(RecipeManager mgr)
{
this.mgr = mgr;
}
/**
* @return The newly-updated recipe manager that now contains all the recipes that were just received.
*/
public RecipeManager getRecipeManager()
{
return mgr;
}
} | [
"[email protected]"
] | |
b7e129688e08f78c8c6d613bf310b61ba413fd2a | 5e6334cafc4ed828f2f161cc26db866c014844c2 | /src/es/studium/CalendarioGregoriano/CalendarioGregoriano.java | 83b8aa51d86a4a59ed1a3af16a70bc39fc79ad82 | [] | no_license | clja1970/Taller-Fechas | 781c523f57f7eb95f17d41a7f4b43f57035db1a9 | 36a5c0cd796e11f9241a2292225ea3a15d153827 | refs/heads/main | 2023-03-18T09:08:17.299694 | 2021-03-09T18:34:54 | 2021-03-09T18:34:54 | 346,106,377 | 0 | 0 | null | null | null | null | ISO-8859-1 | Java | false | false | 4,641 | java | package es.studium.CalendarioGregoriano;
import java.text.MessageFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.Period;
import java.time.format.DateTimeFormatter;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Scanner;
public class CalendarioGregoriano
{
public static void main(String[] args)
{
Scanner teclado = new Scanner(System.in);
String fechaProbable = "", fechaNacimiento = "", anyoCalendario = "";
Date ahora, fechaInicial, fechaFinal;
int numColumnas;
SimpleDateFormat formateador;
// Mostrar fecha actual tal cual
ahora = new Date();
System.out.println("Fecha original: " + ahora);
// Formateando la fecha
formateador = new SimpleDateFormat("dd/MM/yyyy");
System.out.println ("Fecha formato europeo: " + formateador.format(ahora));
// Formateando la hora hasta milisegundos
formateador = new SimpleDateFormat("HH:mm:ss.S");
System.out.println ("Hora con milisegundos: " + formateador.format(ahora));
// Validar mediante función si la fecha introducida por teclado es correcta o no
// Seguir pidiendo hasta fecha correcta...
do
{
System.out.println("Escribe una fecha correcta (dd/mm/aaaa):");
fechaProbable = teclado.next();
}while(!validarFecha(fechaProbable));
System.out.println("Fecha CORRECTA!");
// Dada una fecha de nacimiento, calcular cuántos años, meses, días tienes
do
{
System.out.println("Dame tu fecha de nacimiento (dd/mm/aaaa):");
fechaNacimiento = teclado.next();
}while(!validarFecha(fechaNacimiento));
DateTimeFormatter fmt = DateTimeFormatter.ofPattern("dd/MM/yyyy");
LocalDate fechaNac = LocalDate.parse(fechaNacimiento, fmt);
LocalDate esteInstante = LocalDate.now();
Period periodo = Period.between(fechaNac, esteInstante);
System.out.printf("Tu edad es: %s años, %s meses y %s días",
periodo.getYears(), periodo.getMonths(), periodo.getDays());
System.out.println();
// Mostrar días entre dos fechas dadas comprobando que fecha 1 < fecha 2
// Si no, mostrar error
try
{
formateador = new SimpleDateFormat("dd/MM/yyyy");
do
{
System.out.println("Dame una primera fecha (dd/mm/aaaa):");
fechaProbable = teclado.next();
}while(!validarFecha(fechaNacimiento));
fechaInicial = formateador.parse(fechaProbable);
do
{
System.out.println("Dame una segunda fecha (dd/mm/aaaa):");
fechaProbable = teclado.next();
}while(!validarFecha(fechaNacimiento));
fechaFinal=formateador.parse(fechaProbable);
int dias=(int) ((fechaFinal.getTime()-fechaInicial.getTime())/86400000);
System.out.println("Hay "+dias+" días de diferencia");
}
catch (ParseException e)
{
e.printStackTrace();
}
// Obtener un calendario anual dando el año
System.out.println("Dame el año del calendario:");
anyoCalendario = teclado.next();
System.out.println("Dame el número de columnas para el calendario:");
numColumnas = teclado.nextInt();
imprimirCalendario(Integer.parseInt(anyoCalendario), numColumnas);
teclado.close();
}
public static boolean validarFecha(String fecha)
{
try
{
SimpleDateFormat formatoFecha = new SimpleDateFormat("dd/MM/yyyy");
formatoFecha.setLenient(false);
formatoFecha.parse(fecha);
}
catch (ParseException e)
{
return false;
}
return true;
}
public static void imprimirCalendario(int year, int nCols)
{
if (nCols < 1 || nCols > 12)
throw new IllegalArgumentException("Numero de columnas incorrecto!!");
Calendar date = new GregorianCalendar(year, 0, 1);
int nRows = (int) Math.ceil(12.0 / nCols);
int offs = date.get(Calendar.DAY_OF_WEEK) - 2;
int w = nCols * 24;
String[] monthNames = {"Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio",
"Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"};
String[][] mons = new String[12][8];
for (int m = 0; m < 12; m++)
{
String name = monthNames[m];
int len = 11 + name.length() / 2;
String format = MessageFormat.format("%{0}s%{1}s", len, 21 - len);
mons[m][0] = String.format(format, name, "");
mons[m][1] = " Lu Ma Mi Ju Vi Sa Do";
int dim = date.getActualMaximum(Calendar.DAY_OF_MONTH);
for (int d = 1; d < 43; d++)
{
boolean isDay = d > offs && d <= offs + dim;
String entry = isDay ? String.format(" %2s", d - offs) : " ";
if (d % 7 == 1)
mons[m][2 + (d - 1) / 7] = entry;
else
mons[m][2 + (d - 1) / 7] += entry;
}
offs = (offs + dim) % 7;
date.add(Calendar.MONTH, 1);
}
System.out.printf("%" + (w / 2 + 10) + "s%n", "[[ Calendario ]]");
System.out.printf("%" + (w / 2 + 4) + "s%n%n", year);
for (int r = 0; r < nRows; r++)
{
for (int i = 0; i < 8; i++)
{
for (int c = r * nCols; c < (r + 1) * nCols && c < 12; c++)
System.out.printf(" %s", mons[c][i]);
System.out.println();
}
System.out.println();
}
}
} | [
"[email protected]"
] | |
4c6b3d761e7deb9d6285f6d6b473e45a55ae688e | 068aaca366a21e37b8cc40db1ffe6e6bea4f2244 | /object/Angle3.java | c08a7cc4f67f109dd5d8c17f8c5d2c1d5035b604 | [] | no_license | rishindramani/Java-Hub | 17fdcb58bdee95b9818b6761878a996becdff462 | c5eb8737c8c2735ea6dcb026252e4538aa441f7a | refs/heads/master | 2022-04-04T13:39:56.550783 | 2020-02-19T22:38:25 | 2020-02-19T22:38:25 | 182,317,028 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 791 | java | package object;
public class Angle3
{
int deg,min;
void input(int d1,int m1)
{
deg=d1;
min=m1;
}
void display()
{
System.out.println("deg="+deg+" "+"min="+min);
}
Angle3 sum(Angle3 t1,Angle3 t2)
{
Angle3 t3=new Angle3();
t3.deg=t1.deg+t2.deg;
t3.min=t1.min+t2.min;
if(t3.min>=60)
{
t3.min=t3.min-60;
t3.deg++;
}
return t3;
}
void main()
{
Angle3 ob1=new Angle3();
Angle3 ob2=new Angle3();
Angle3 ob3=new Angle3();
ob1.input(40,18);
ob2.input(32,10);
ob3=sum(ob1,ob2);
ob3.display();
}
} | [
"[email protected]"
] | |
83e65e9d32233c51b87b230e0df578f3238e91f4 | 30b34d59c648d7f026b1787b35bf81f2ec822208 | /src/main/java/Main.java | 200d7d826ca081fe62add4ca9b26e90f495d972b | [] | no_license | tikrai/sandbox | 2a7fef37fa6a5e233c37bdd398862bcea631d867 | 51432476c34e9e8dd8167c00e38b7d442b45cbfa | refs/heads/master | 2020-04-08T21:05:52.462407 | 2019-03-30T14:26:18 | 2019-03-30T14:26:18 | 159,726,140 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,205 | java | import dvinaryTree.DvinaryTree;
import java.util.Map;
import java.util.TreeMap;
public class Main {
public static void main(String[] args) {
DvinaryTree<String, Integer> tree = new DvinaryTree<>();
System.out.println(tree.put("vienas", 1));
System.out.println(tree.put("du", 2));
System.out.println(tree.put("trys", 3));
System.out.println(tree.put("keturi", 41));
System.out.println(tree.put("keturi", 42));
System.out.println(tree.put("keturi", 43));
System.out.println(tree.put("penki", 5));
System.out.println(tree.put("sesi", 6));
System.out.println(tree.put("septyni", 7));
System.out.println(tree.put("astuoni", 8));
System.out.println(tree.put("devyni", 9));
System.out.println(tree.size());
System.out.println(tree);
Map<String, Integer> map = new TreeMap<>();
map.put("vienas", 1);
map.put("du", 2);
map.put("trys", 3);
map.put("keturi", 41);
map.put("keturi", 42);
map.put("keturi", 43);
map.put("penki", 5);
map.put("sesi", 6);
map.put("septyni", 7);
map.put("astuoni", 8);
map.put("devyni", 9);
System.out.println(map);
System.out.println(map.get(Integer.valueOf(9)));
}
}
| [
"[email protected]"
] | |
8e81c77dd96ef01441480efb90976015973a59ac | bcd35f9787f259ad52064d092d6db3bde92750cd | /src/test/java/xyz/vegaone/board/BoardApplicationTests.java | 82f393635074a80a75177c6f5b4309b6051c8598 | [] | no_license | sabaubogdan/board | 03491f81ed88036fb17d817c5644ad3c5c562885 | 1230b68e2e8cec311c0185b7d5f48cb01404420d | refs/heads/master | 2020-03-19T03:21:43.617322 | 2018-06-04T17:10:41 | 2018-06-04T17:10:41 | 135,720,695 | 0 | 0 | null | 2018-06-04T17:10:43 | 2018-06-01T13:25:39 | Java | UTF-8 | Java | false | false | 333 | java | package xyz.vegaone.board;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class BoardApplicationTests {
@Test
public void contextLoads() {
}
}
| [
"[email protected]"
] | |
16717109054542319a864804dacfdd9abf98cf45 | de7cf1f00fb8c73f013a489b0c44fb5b466fd8ce | /src/main/java/org/torusresearch/torusutils/apis/ShareRequestParams.java | 7692f437891bec57c6ed6744e46546f8c83ae5bb | [] | no_license | DeFi-Coder-News-Letter/torus-utils-java | f486bb7991fb60655733b6e11aafc46b83c2951e | 7678bfd6a8cd9714518fac96119d96b3ba9e5563 | refs/heads/master | 2022-04-22T12:28:39.712093 | 2020-03-25T07:04:56 | 2020-03-25T07:04:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 329 | java | package org.torusresearch.torusutils.apis;
public class ShareRequestParams {
private ShareRequestItem[] item;
private String encrypted;
public ShareRequestParams(ShareRequestItem[] _item) {
item = _item;
encrypted = "yes";
}
public ShareRequestItem[] getItem() {
return item;
}
}
| [
"[email protected]"
] | |
5019fd9d1463675fbd1f17b55230328ae18b70c1 | 6cd46fa9f5ba0f6d87756cf1fd2c2467122e99e6 | /app/src/main/java/jp/co/accel_road/besttravel/fragment/TimePickerDialogFragment.java | 64cdc10567537883d5524c0d412578e310959e69 | [] | no_license | masato0616/BestTravel | ea18e58ed157258cde3c7aa270a8a4abbf87a424 | 21cd39d1b43a6e588466373456cfd815ffedfcdd | refs/heads/master | 2020-12-24T11:10:26.486078 | 2016-11-08T12:19:39 | 2016-11-08T12:19:39 | 73,183,172 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,112 | java | package jp.co.accel_road.besttravel.fragment;
import android.app.Dialog;
import android.app.TimePickerDialog;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import jp.co.accel_road.besttravel.common.BestTravelConstant;
/**
* 時間選択のダイアログを表示するクラス
*
* Created by masato on 2015/12/30.
*/
public class TimePickerDialogFragment extends DialogFragment {
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
String time = (String)getArguments().getSerializable(BestTravelConstant.PARAMETER_KEY_TIME);
int hour = 0;
int minute = 0;
if (time != null && !"".equals(time)) {
String[] timeSplit = time.split(":");
hour = Integer.parseInt(timeSplit[0]);
minute = Integer.parseInt(timeSplit[1]);
}
//呼び出し元のフラグメントを取得する
TimePickerDialog.OnTimeSetListener activity = (TimePickerDialog.OnTimeSetListener)getActivity();
return new TimePickerDialog(getActivity(), activity, hour, minute, true);
}
}
| [
"[email protected]"
] | |
5e296cc783d5af47d3ac29b286141a35c80ce46b | 80e3ca0310f2968e6ed70d6d251b6c86d19983d0 | /src/crl/cuts/training/Training2.java | a7b92aef01014ece4b87fc5ac9b7d9390c441f42 | [] | no_license | slashman/castlevaniarl | 2b46654f4455acbab4c8ff5c7170a0b1115647f9 | 9fbb4cf7239d1fdb36745ab90093b7d8980a4def | refs/heads/master | 2021-06-06T12:33:18.581166 | 2012-09-29T19:59:45 | 2012-09-29T19:59:45 | 32,949,761 | 1 | 1 | null | 2018-02-14T17:27:51 | 2015-03-26T20:19:29 | Java | UTF-8 | Java | false | false | 396 | java | package crl.cuts.training;
import sz.util.Position;
import crl.cuts.Unleasher;
import crl.game.Game;
import crl.level.Level;
import crl.ui.Display;
public class Training2 extends Unleasher {
public void unleash(Level level, Game game){
Position x = level.getExitFor("#END");
if (level.getPlayer().getPosition().equals(x)){
game.exitGame();
enabled = false;
}
}
}
| [
"[email protected]@e0353be4-7185-903d-7421-9d37214b9bc1"
] | [email protected]@e0353be4-7185-903d-7421-9d37214b9bc1 |
80a8640cfb412f926507458df70eaee901671309 | 7f8173f1879ae6865e88a0b87e894f320384338b | /src/main/java/com/example/demo/sync/coll013/UseDeque.java | 3c024da751291d2a5b39f7a63c4189eb367951d7 | [] | no_license | Liusixin/demo | a305ed860895b2410daf3e92005bf8c06a6a6c9c | 0fbe35cfb2ab458d81f23b9053537c63ea843b2f | refs/heads/master | 2020-03-30T07:25:22.379287 | 2018-09-26T07:02:24 | 2018-09-26T07:02:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 720 | java | package com.example.demo.sync.coll013;
import java.util.concurrent.LinkedBlockingDeque;
public class UseDeque {
public static void main(String[] args) {
LinkedBlockingDeque<String> dq = new LinkedBlockingDeque<String>(10);
dq.addFirst("a");
dq.addFirst("b");
dq.addFirst("c");
dq.addFirst("d");
dq.addFirst("e");
dq.addLast("f");
dq.addLast("g");
dq.addLast("h");
dq.addLast("i");
dq.addLast("j");
//dq.offerFirst("k");
System.out.println("查看头元素:" + dq.peekFirst());
System.out.println("获取尾元素:" + dq.pollLast());
Object [] objs = dq.toArray();
for (int i = 0; i < objs.length; i++) {
System.out.println(objs[i]);
}
}
}
| [
"[email protected]"
] | |
5aaa5dcd74a0292f36914690e9502daf87fce169 | a53066b823c988bdf9c647cd4bc3f0d73e01f63c | /src/main/java/portal/retrofit/DumpRetrofitSteps.java | 0a795daa87e40497675bc3c0f65b3a9d1c305d73 | [] | no_license | belovv/portal | 9ccca0b073ddf4935eec7e1158e05eb1146e9e73 | c3b5fdc8469f16cbf42ca3479403e4a28ab31258 | refs/heads/master | 2023-05-25T04:58:48.420259 | 2021-06-16T06:44:01 | 2021-06-16T06:44:01 | 377,388,824 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,889 | java | package portal.retrofit;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.qameta.allure.Step;
import okhttp3.Headers;
import portal.config.WebConfig;
import portal.data.UserData;
import portal.providers.DataProvider;
import java.net.HttpCookie;
import static portal.data.enumdata.TypeUser.NEW_CUSTOMER;
public class DumpRetrofitSteps {
private final AdminClient adminClient = new AdminClient(new WebConfig().getApiKitchen());
private DataProvider dataProvider = new DataProvider();
private UserData userData = dataProvider.userData();
@Step("Получаем admin_token")
public String getTokenAdmin(String user, String password) {
try {
Headers headers = adminClient.getHeaderAdmin(user, password);
return HttpCookie.parse(headers.get("Set-Cookie")).get(0).toString();
} catch (Exception e) {
return null;
}
}
@Step("Создаем менеджера {typeManager} из админки")
public String createManagerAdmin(String tokenAdmin, String typeManager, String emailManager, String userRole) {
var sendCustomerData = adminClient.createManagerAdmin(tokenAdmin, typeManager, emailManager, userRole);
return sendCustomerData.get("user_info").get("user_id").asText();
}
@Step("Создаем заказчика из админки")
public String createCustomerAdmin(String tokenAdmin, String customerEmail, String customerInn) {
var sendCustomerData = adminClient.createCustomerAdmin(
tokenAdmin,
NEW_CUSTOMER.getPassword(),
userData.disableNotificationTrue(),
dataProvider.getFullName(),
dataProvider.getPhoneNumber(),
customerEmail,
customerInn);
return sendCustomerData.get("customer_info").get("customer_id").asText();
}
@Step("Присваиваем менеджеров заказчику")
public void setManagersToCustomer(String tokenAdmin, String customerId, String salesMangerId, String serviceMangerId) {
adminClient.setManagersToCustomer(tokenAdmin, customerId, salesMangerId, serviceMangerId);
}
@Step("Запрашиваем договор")
public void requestContract(String tokenAdmin, String customerId, String notification, String contractType) {
adminClient.requestContract(tokenAdmin, customerId, notification, contractType);
}
@Step("Одобряем договор")
public void approveContract(String tokenAdmin, String customerId, String notification) {
adminClient.approveContract(tokenAdmin, customerId, notification);
}
@Step("Создаем подписку для {customerId}")
public String createSubscription(String tokenAdmin, String services, String customerId, boolean trial, String launchDate) {
var jsonString = "{" + services +
"json" +
"json " + customerId + "," +
"json: " + trial + "," +
"json" +
"\"date\":\"" + launchDate + "\"}";
var mapper = new ObjectMapper();
JsonNode json = null;
try {
json = mapper.readTree(jsonString);
} catch (JsonProcessingException e) {
e.printStackTrace();
}
var infoSubscription = adminClient.createSubscription(json, tokenAdmin);
return infoSubscription.get("service_requests").findValue("request_id").asText();
}
@Step("Изменяем статус заказа")
public void changeOrderStatus(String adminToken, String requestId, String notification, String orderStatus) {
adminClient.changeOrderStatus(adminToken, requestId, notification, orderStatus);
}
}
| [
"[email protected]"
] | |
3ada8abb89e990d59098778044dbf4f12797625c | 223b3b94c9c1f281a111bc53693fa5e897892840 | /src/main/java/com/devrodrigues/graphql/modules/products/repository/ProductRepository.java | 9849eb829fa04abc62e37a17f69b0e9e824ddddd | [] | no_license | dev-rodrigues/springboot-graphql | 63a846aef1059a71ec109b2be884ccb9e8245b89 | f32bc4844b8c135e7349348165f39310e9c4e000 | refs/heads/master | 2023-06-30T10:24:09.323730 | 2021-07-30T01:34:24 | 2021-07-30T01:34:24 | 390,874,752 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 246 | java | package com.devrodrigues.graphql.modules.products.repository;
import com.devrodrigues.graphql.modules.products.domain.entities.Product;
import java.util.List;
public interface ProductRepository {
List<Product> getBy(String description);
}
| [
"[email protected]"
] | |
d992844949b8367b082702d685844db5b1f81ee0 | 0252a04e5a388e1f12229b2541589bf655084828 | /src/leetCode/problems/_396_Rotate_Function/Solution.java | a3aad4d294bcce61f8ea16ee5a4cc946bd707dab | [] | no_license | alanHarper123/LeetCode | bd60e4e0a2ba278f648b504bfdd928ca22403506 | 312b86a6f1e7adccb7a1f100b664cd9272a85473 | refs/heads/master | 2021-06-25T15:31:38.069169 | 2021-01-19T12:56:43 | 2021-01-19T12:56:43 | 193,816,741 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 491 | java | package leetCode.problems._396_Rotate_Function;
public class Solution {
public int maxRotateFunction(int[] A) {
int max = Integer.MIN_VALUE;
int maxi = 0;
int sum = 0;
for (int i = 0; i < A.length; i++) {
sum+=A[i];
maxi+=i*A[i];
}
if(max<maxi)
max = maxi;
for (int i = 1; i < A.length; i++) {
maxi = maxi-sum+A.length*A[i-1];
if(max<maxi)
max = maxi;
}
return max;
}
}
| [
"[email protected]"
] | |
94cf83f7b0cbde2fb90153f3c8c265945f934f77 | ae3b8e5b1f027b5113c68a701622531a4e74bc89 | /cardslider/src/main/java/com/ramotion/cardslider/CardSliderLayoutManager.java | 13ca2d5d42378fa1cbd1b853c56fe96c837b8f99 | [] | no_license | codegarage-tech/cg-quote | f5e00db45fccb97b18b9f243459a016330485a43 | c375c5b2ff575c74d1ccf2a6c462993070d2ef14 | refs/heads/master | 2021-09-19T18:19:43.467291 | 2018-07-30T05:06:18 | 2018-07-30T05:06:18 | 110,427,528 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 24,219 | java | package com.ramotion.cardslider;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.PointF;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.view.ViewCompat;
import android.support.v7.widget.LinearSmoothScroller;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.util.SparseArray;
import android.util.SparseIntArray;
import android.view.View;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.LinkedList;
/**
* A {@link android.support.v7.widget.RecyclerView.LayoutManager} implementation.
*/
public class CardSliderLayoutManager extends RecyclerView.LayoutManager
implements RecyclerView.SmoothScroller.ScrollVectorProvider {
private static final int DEFAULT_ACTIVE_CARD_LEFT_OFFSET = 15;
private static final int DEFAULT_CARD_WIDTH = 320;
private static final int DEFAULT_CARDS_GAP = 15;
private static final int LEFT_CARD_COUNT = 1;
private final SparseArray<View> viewCache = new SparseArray<>();
private final SparseIntArray cardsXCoords = new SparseIntArray();
private int cardWidth;
private int activeCardLeft;
private int activeCardRight;
private int activeCardCenter;
private float cardsGap;
private int scrollRequestedPosition = 0;
private ViewUpdater viewUpdater;
private RecyclerView recyclerView;
/**
* A ViewUpdater is invoked whenever a visible/attached card is scrolled.
*/
public interface ViewUpdater {
/**
* Called when CardSliderLayoutManager initialized
*/
void onLayoutManagerInitialized(@NonNull CardSliderLayoutManager lm);
/**
* Called on view update (scroll, layout).
* @param view Updating view
* @param position Position of card relative to the current active card position of the layout manager.
* 0 is active card. 1 is first right card, and -1 is first left (stacked) card.
*/
void updateView(@NonNull View view, float position);
}
private static class SavedState implements Parcelable {
int anchorPos;
SavedState() {
}
SavedState(Parcel in) {
anchorPos = in.readInt();
}
public SavedState(SavedState other) {
anchorPos = other.anchorPos;
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeInt(anchorPos);
}
public static final Parcelable.Creator<SavedState> CREATOR = new Parcelable.Creator<SavedState>() {
@Override
public SavedState createFromParcel(Parcel parcel) {
return new SavedState(parcel);
}
@Override
public SavedState[] newArray(int size) {
return new SavedState[size];
}
};
}
/**
* Creates CardSliderLayoutManager with default values
*
* @param context Current context, will be used to access resources.
*/
public CardSliderLayoutManager(@NonNull Context context) {
this(context, null, 0, 0);
}
/**
* Constructor used when layout manager is set in XML by RecyclerView attribute
* "layoutManager".
*
* See {@link R.styleable#CardSlider_activeCardLeftOffset}
* See {@link R.styleable#CardSlider_cardWidth}
* See {@link R.styleable#CardSlider_cardsGap}
*/
public CardSliderLayoutManager(@NonNull Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
final float density = context.getResources().getDisplayMetrics().density;
final int defaultCardWidth = (int) (DEFAULT_CARD_WIDTH * density);
final int defaultActiveCardLeft = (int) (DEFAULT_ACTIVE_CARD_LEFT_OFFSET * density);
final float defaultCardsGap = DEFAULT_CARDS_GAP * density;
if (attrs == null) {
initialize(defaultActiveCardLeft, defaultCardWidth, defaultCardsGap, null);
} else {
int attrCardWidth;
int attrActiveCardLeft;
float attrCardsGap;
String viewUpdateClassName;
final TypedArray a = context.getTheme().obtainStyledAttributes(attrs, R.styleable.CardSlider, 0, 0);
try {
attrCardWidth = a.getDimensionPixelSize(R.styleable.CardSlider_cardWidth, defaultCardWidth);
attrActiveCardLeft = a.getDimensionPixelSize(R.styleable.CardSlider_activeCardLeftOffset, defaultActiveCardLeft);
attrCardsGap = a.getDimension(R.styleable.CardSlider_cardsGap, defaultCardsGap);
viewUpdateClassName = a.getString(R.styleable.CardSlider_viewUpdater);
} finally {
a.recycle();
}
final ViewUpdater viewUpdater = loadViewUpdater(context, viewUpdateClassName, attrs);
initialize(attrActiveCardLeft, attrCardWidth, attrCardsGap, viewUpdater);
}
}
/**
* Creates CardSliderLayoutManager with specified values in pixels.
*
* @param activeCardLeft Active card offset from start of RecyclerView. Default value is 50dp.
* @param cardWidth Card width. Default value is 148dp.
* @param cardsGap Distance between cards. Default value is 12dp.
*/
public CardSliderLayoutManager(int activeCardLeft, int cardWidth, float cardsGap) {
initialize(activeCardLeft, cardWidth, cardsGap, null);
}
private void initialize(int left, int width, float gap, @Nullable ViewUpdater updater) {
this.cardWidth = width;
this.activeCardLeft = left;
this.activeCardRight = activeCardLeft + cardWidth;
this.activeCardCenter = activeCardLeft + ((this.activeCardRight - activeCardLeft) / 2);
this.cardsGap = gap;
this.viewUpdater = updater;
if (this.viewUpdater == null) {
this.viewUpdater = new DefaultViewUpdater();
}
viewUpdater.onLayoutManagerInitialized(this);
}
@Override
public RecyclerView.LayoutParams generateDefaultLayoutParams() {
return new RecyclerView.LayoutParams(
RecyclerView.LayoutParams.WRAP_CONTENT,
RecyclerView.LayoutParams.WRAP_CONTENT);
}
@Override
public void onLayoutChildren(RecyclerView.Recycler recycler, final RecyclerView.State state) {
if (getItemCount() == 0) {
removeAndRecycleAllViews(recycler);
return;
}
if (getChildCount() == 0 && state.isPreLayout()) {
return;
}
int anchorPos = getActiveCardPosition();
if (state.isPreLayout()) {
final LinkedList<Integer> removed = new LinkedList<>();
for (int i = 0, cnt = getChildCount(); i < cnt; i++) {
final View child = getChildAt(i);
final boolean isRemoved = ((RecyclerView.LayoutParams)child.getLayoutParams()).isItemRemoved();
if (isRemoved) {
removed.add(getPosition(child));
}
}
if (removed.contains(anchorPos)) {
final int first = removed.getFirst();
final int last = removed.getLast();
final int left = first - 1;
final int right = last == getItemCount() + removed.size() - 1 ? RecyclerView.NO_POSITION : last;
anchorPos = Math.max(left, right);
}
scrollRequestedPosition = anchorPos;
}
detachAndScrapAttachedViews(recycler);
fill(anchorPos, recycler, state);
if (cardsXCoords.size() != 0) {
layoutByCoords();
}
if (state.isPreLayout()) {
recyclerView.postOnAnimationDelayed(new Runnable() {
@Override
public void run() {
updateViewScale();
}
}, 415);
} else {
updateViewScale();
}
}
@Override
public boolean supportsPredictiveItemAnimations() {
return true;
}
@Override
public void onAdapterChanged(RecyclerView.Adapter oldAdapter, RecyclerView.Adapter newAdapter) {
removeAllViews();
}
@Override
public boolean canScrollHorizontally() {
return getChildCount() != 0;
}
@Override
public void scrollToPosition(int position) {
if (position < 0 || position >= getItemCount()) {
return;
}
scrollRequestedPosition = position;
requestLayout();
}
@Override
public int scrollHorizontallyBy(int dx, RecyclerView.Recycler recycler, RecyclerView.State state) {
scrollRequestedPosition = RecyclerView.NO_POSITION;
int delta;
if (dx < 0) {
delta = scrollRight(Math.max(dx, -cardWidth));
} else {
delta = scrollLeft(dx);
}
fill(getActiveCardPosition(), recycler, state);
updateViewScale();
cardsXCoords.clear();
for (int i = 0, cnt = getChildCount(); i < cnt; i++) {
final View view = getChildAt(i);
cardsXCoords.put(getPosition(view), getDecoratedLeft(view));
}
return delta;
}
@Override
public PointF computeScrollVectorForPosition(int targetPosition) {
return new PointF(targetPosition - getActiveCardPosition(), 0);
}
@Override
public void smoothScrollToPosition(final RecyclerView recyclerView, RecyclerView.State state, final int position) {
if (position < 0 || position >= getItemCount()) {
return;
}
final LinearSmoothScroller scroller = getSmoothScroller(recyclerView);
scroller.setTargetPosition(position);
startSmoothScroll(scroller);
}
@Override
public void onItemsRemoved(RecyclerView recyclerView, int positionStart, int count) {
final int anchorPos = getActiveCardPosition();
if (positionStart + count <= anchorPos) {
scrollRequestedPosition = anchorPos - 1;
}
}
@Override
public Parcelable onSaveInstanceState() {
SavedState state = new SavedState();
state.anchorPos = getActiveCardPosition();
return state;
}
@Override
public void onRestoreInstanceState(Parcelable parcelable) {
if (parcelable instanceof SavedState) {
SavedState state = (SavedState) parcelable;
scrollRequestedPosition = state.anchorPos;
requestLayout();
}
}
@Override
public void onAttachedToWindow(RecyclerView view) {
super.onAttachedToWindow(view);
recyclerView = view;
}
@Override
public void onDetachedFromWindow(RecyclerView view, RecyclerView.Recycler recycler) {
super.onDetachedFromWindow(view, recycler);
recyclerView = null;
}
/**
* @return active card position or RecyclerView.NO_POSITION
*/
public int getActiveCardPosition() {
if (scrollRequestedPosition != RecyclerView.NO_POSITION) {
return scrollRequestedPosition;
} else {
int result = RecyclerView.NO_POSITION;
View biggestView = null;
float lastScaleX = 0f;
for (int i = 0, cnt = getChildCount(); i < cnt; i++) {
final View child = getChildAt(i);
final int viewLeft = getDecoratedLeft(child);
if (viewLeft >= activeCardRight) {
continue;
}
final float scaleX = ViewCompat.getScaleX(child);
if (lastScaleX < scaleX && viewLeft < activeCardCenter) {
lastScaleX = scaleX;
biggestView = child;
}
}
if (biggestView != null) {
result = getPosition(biggestView);
}
return result;
}
}
@Nullable
public View getTopView() {
if (getChildCount() == 0) {
return null;
}
View result = null;
float lastValue = cardWidth;
for (int i = 0, cnt = getChildCount(); i < cnt; i++) {
final View child = getChildAt(i);
if (getDecoratedLeft(child) >= activeCardRight) {
continue;
}
final int viewLeft = getDecoratedLeft(child);
final int diff = activeCardRight - viewLeft;
if (diff < lastValue) {
lastValue = diff;
result = child;
}
}
return result;
}
public int getActiveCardLeft() {
return activeCardLeft;
}
public int getActiveCardRight() {
return activeCardRight;
}
public int getActiveCardCenter() {
return activeCardCenter;
}
public int getCardWidth() {
return cardWidth;
}
public float getCardsGap() {
return cardsGap;
}
public LinearSmoothScroller getSmoothScroller(final RecyclerView recyclerView) {
return new LinearSmoothScroller(recyclerView.getContext()) {
@Override
public int calculateDxToMakeVisible(View view, int snapPreference) {
final int viewStart = getDecoratedLeft(view);
if (viewStart > activeCardLeft) {
return activeCardLeft - viewStart;
} else {
int delta = 0;
int topViewPos = 0;
final View topView = getTopView();
if (topView != null) {
topViewPos = getPosition(topView);
if (topViewPos != getTargetPosition()) {
final int topViewLeft = getDecoratedLeft(topView);
if (topViewLeft >= activeCardLeft && topViewLeft < activeCardRight) {
delta = activeCardRight - topViewLeft;
}
}
}
return delta + (cardWidth) * Math.max(0, topViewPos - getTargetPosition() - 1);
}
}
@Override
protected float calculateSpeedPerPixel(DisplayMetrics displayMetrics) {
return 0.5f;
}
};
}
private ViewUpdater loadViewUpdater(Context context, String className, AttributeSet attrs) {
if (className == null || className.trim().length() == 0) {
return null;
}
final String fullClassName;
if (className.charAt(0) == '.') {
fullClassName = context.getPackageName() + className;
} else if (className.contains(".")) {
fullClassName = className;
} else {
fullClassName = CardSliderLayoutManager.class.getPackage().getName() + '.' + className;
}
ViewUpdater updater;
try {
final ClassLoader classLoader = context.getClassLoader();
final Class<? extends ViewUpdater> viewUpdaterClass =
classLoader.loadClass(fullClassName).asSubclass(ViewUpdater.class);
final Constructor<? extends ViewUpdater> constructor =
viewUpdaterClass.getConstructor();
constructor.setAccessible(true);
updater = constructor.newInstance();
} catch (NoSuchMethodException e) {
throw new IllegalStateException(attrs.getPositionDescription() +
": Error creating LayoutManager " + className, e);
} catch (ClassNotFoundException e) {
throw new IllegalStateException(attrs.getPositionDescription()
+ ": Unable to find ViewUpdater" + className, e);
} catch (InvocationTargetException e) {
throw new IllegalStateException(attrs.getPositionDescription()
+ ": Could not instantiate the ViewUpdater: " + className, e);
} catch (InstantiationException e) {
throw new IllegalStateException(attrs.getPositionDescription()
+ ": Could not instantiate the ViewUpdater: " + className, e);
} catch (IllegalAccessException e) {
throw new IllegalStateException(attrs.getPositionDescription()
+ ": Cannot access non-public constructor " + className, e);
} catch (ClassCastException e) {
throw new IllegalStateException(attrs.getPositionDescription()
+ ": Class is not a ViewUpdater " + className, e);
}
return updater;
}
private int scrollRight(int dx) {
final int childCount = getChildCount();
if (childCount == 0) {
return 0;
}
final View rightestView = getChildAt(childCount - 1);
final int deltaBorder = activeCardLeft + getPosition(rightestView) * cardWidth;
final int delta = getAllowedRightDelta(rightestView, dx, deltaBorder);
final LinkedList<View> rightViews = new LinkedList<>();
final LinkedList<View> leftViews = new LinkedList<>();
for (int i = childCount - 1; i >= 0; i--) {
final View view = getChildAt(i);
final int viewLeft = getDecoratedLeft(view);
if (viewLeft >= activeCardRight) {
rightViews.add(view);
} else {
leftViews.add(view);
}
}
for (View view: rightViews) {
final int border = activeCardLeft + getPosition(view) * cardWidth;
final int allowedDelta = getAllowedRightDelta(view, dx, border);
view.offsetLeftAndRight(-allowedDelta);
}
final int step = activeCardLeft / LEFT_CARD_COUNT;
final int jDelta = (int) Math.floor(1f * delta * step / cardWidth);
View prevView = null;
int j = 0;
for (int i = 0, cnt = leftViews.size(); i < cnt; i++) {
final View view = leftViews.get(i);
if (prevView == null || getDecoratedLeft(prevView) >= activeCardRight) {
final int border = activeCardLeft + getPosition(view) * cardWidth;
final int allowedDelta = getAllowedRightDelta(view, dx, border);
view.offsetLeftAndRight(-allowedDelta);
} else {
final int border = activeCardLeft - step * j;
view.offsetLeftAndRight(-getAllowedRightDelta(view, jDelta, border));
j++;
}
prevView = view;
}
return delta;
}
private int scrollLeft(int dx) {
final int childCount = getChildCount();
if (childCount == 0) {
return 0;
}
final View lastView = getChildAt(childCount - 1);
final boolean isLastItem = getPosition(lastView) == getItemCount() - 1;
final int delta;
if (isLastItem) {
delta = Math.min(dx, getDecoratedRight(lastView) - activeCardRight);
} else {
delta = dx;
}
final int step = activeCardLeft / LEFT_CARD_COUNT;
final int jDelta = (int) Math.ceil(1f * delta * step / cardWidth);
for (int i = childCount - 1; i >= 0; i--) {
final View view = getChildAt(i);
final int viewLeft = getDecoratedLeft(view);
if (viewLeft > activeCardLeft) {
view.offsetLeftAndRight(getAllowedLeftDelta(view, delta, activeCardLeft));
} else {
int border = activeCardLeft - step;
for (int j = i; j >= 0; j--) {
final View jView = getChildAt(j);
jView.offsetLeftAndRight(getAllowedLeftDelta(jView, jDelta, border));
border -= step;
}
break;
}
}
return delta;
}
private int getAllowedLeftDelta(@NonNull View view, int dx, int border) {
final int viewLeft = getDecoratedLeft(view);
if (viewLeft - dx > border) {
return -dx;
} else {
return border - viewLeft;
}
}
private int getAllowedRightDelta(@NonNull View view, int dx, int border) {
final int viewLeft = getDecoratedLeft(view);
if (viewLeft + Math.abs(dx) < border) {
return dx;
} else {
return viewLeft - border;
}
}
private void layoutByCoords() {
final int count = Math.min(getChildCount(), cardsXCoords.size());
for (int i = 0; i < count; i++) {
final View view = getChildAt(i);
final int viewLeft = cardsXCoords.get(getPosition(view));
layoutDecorated(view, viewLeft, 0, viewLeft + cardWidth, getDecoratedBottom(view));
}
cardsXCoords.clear();
}
private void fill(int anchorPos, RecyclerView.Recycler recycler, RecyclerView.State state) {
viewCache.clear();
for (int i = 0, cnt = getChildCount(); i < cnt; i++) {
View view = getChildAt(i);
int pos = getPosition(view);
viewCache.put(pos, view);
}
for (int i = 0, cnt = viewCache.size(); i < cnt; i++) {
detachView(viewCache.valueAt(i));
}
if (!state.isPreLayout()) {
fillLeft(anchorPos, recycler);
fillRight(anchorPos, recycler);
}
for (int i = 0, cnt = viewCache.size(); i < cnt; i++) {
recycler.recycleView(viewCache.valueAt(i));
}
}
private void fillLeft(int anchorPos, RecyclerView.Recycler recycler) {
if (anchorPos == RecyclerView.NO_POSITION) {
return;
}
final int layoutStep = activeCardLeft / LEFT_CARD_COUNT;
int pos = Math.max(0, anchorPos - LEFT_CARD_COUNT - 1);
int viewLeft = Math.max(-1, LEFT_CARD_COUNT - (anchorPos - pos)) * layoutStep;
while (pos < anchorPos) {
View view = viewCache.get(pos);
if (view != null) {
attachView(view);
viewCache.remove(pos);
} else {
view = recycler.getViewForPosition(pos);
addView(view);
measureChildWithMargins(view, 0, 0);
final int viewHeight = getDecoratedMeasuredHeight(view);
layoutDecorated(view, viewLeft, 0, viewLeft + cardWidth, viewHeight);
}
viewLeft += layoutStep;
pos++;
}
}
private void fillRight(int anchorPos, RecyclerView.Recycler recycler) {
if (anchorPos == RecyclerView.NO_POSITION) {
return;
}
final int width = getWidth();
final int itemCount = getItemCount();
int pos = anchorPos;
int viewLeft = activeCardLeft;
boolean fillRight = true;
while (fillRight && pos < itemCount) {
View view = viewCache.get(pos);
if (view != null) {
attachView(view);
viewCache.remove(pos);
} else {
view = recycler.getViewForPosition(pos);
addView(view);
measureChildWithMargins(view, 0, 0);
final int viewHeight = getDecoratedMeasuredHeight(view);
layoutDecorated(view, viewLeft, 0, viewLeft + cardWidth, viewHeight);
}
viewLeft = getDecoratedRight(view);
fillRight = viewLeft < width + cardWidth;
pos++;
}
}
private void updateViewScale() {
for (int i = 0, cnt = getChildCount(); i < cnt; i++) {
final View view = getChildAt(i);
final int viewLeft = getDecoratedLeft(view);
final float position = ((float) (viewLeft - activeCardLeft) / cardWidth);
viewUpdater.updateView(view, position);
}
}
} | [
"[email protected]"
] | |
b3301358a6c2e87048d0a441f5e7cd9ae236ba51 | ee912dd56876ee52805c2edc59bb1a0fad676d43 | /android/app/src/main/java/aidataguy/dev/MainActivity.java | 3842a2d3e3cd2683c2b5a28b998eb0a961368e57 | [
"MIT"
] | permissive | aidataguy/iamrich | 345a728688bd9ad597e1633366a5833c047539b7 | fd7dc73f237bdf01f954085f62179c4b9f2cf72f | refs/heads/master | 2022-05-30T21:13:27.647140 | 2020-05-05T07:03:07 | 2020-05-05T07:03:07 | 261,381,832 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 430 | java | package aidataguy.dev;
import android.support.annotation.NonNull;
import io.flutter.embedding.android.FlutterActivity;
import io.flutter.embedding.engine.FlutterEngine;
import io.flutter.plugins.GeneratedPluginRegistrant;
public class MainActivity extends FlutterActivity {
@Override
public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {
GeneratedPluginRegistrant.registerWith(flutterEngine);
}
}
| [
"[email protected]"
] | |
e777cdf3fb8b8ed2456ab09a31c7295a0fbebad2 | b1db50efcf5095f75dce781607cb8c1b4bcfad55 | /tbc-console/target/.generated/com/sencha/gxt/core/client/dom/Mask_MessageTemplatesImpl.java | 4f3633010368458d5530e3e629645f4265b8a587 | [] | no_license | berolomsa/tbcapp | 86295b433be04d83455a27cc64042eb256bdd74d | 54e5f50798a1684515969bb377fbfc42a11cbd00 | refs/heads/master | 2021-03-24T13:14:22.851887 | 2017-07-26T20:12:46 | 2017-07-26T20:12:46 | 80,762,251 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,440 | java | package com.sencha.gxt.core.client.dom;
import com.google.gwt.core.client.GWT;
import com.google.gwt.safehtml.shared.SafeHtml;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
public class Mask_MessageTemplatesImpl implements com.sencha.gxt.core.client.dom.Mask.MessageTemplates {
public com.google.gwt.safehtml.shared.SafeHtml template(com.sencha.gxt.core.client.dom.Mask.MaskDefaultAppearance.MaskStyle style, java.lang.String message){
SafeHtml outer;
/**
* Root of template
*/
/**
* safehtml content:
* <div class="{0}"><div class="{1}">{2}</div></div>
* params:
* com.sencha.gxt.core.client.dom.Mask_MaskDefaultAppearance_MaskStyle_box_ValueProviderImpl.INSTANCE.getValue(style), com.sencha.gxt.core.client.dom.Mask_MaskDefaultAppearance_MaskStyle_text_ValueProviderImpl.INSTANCE.getValue(style), message
*/
outer = GWT.<com.sencha.gxt.core.client.dom.Mask_MessageTemplates_template_SafeHtml__MaskStyle_style__String_message___SafeHtmlTemplates>create(com.sencha.gxt.core.client.dom.Mask_MessageTemplates_template_SafeHtml__MaskStyle_style__String_message___SafeHtmlTemplates.class).template0(com.sencha.gxt.core.client.dom.Mask_MaskDefaultAppearance_MaskStyle_box_ValueProviderImpl.INSTANCE.getValue(style), com.sencha.gxt.core.client.dom.Mask_MaskDefaultAppearance_MaskStyle_text_ValueProviderImpl.INSTANCE.getValue(style), message);
return outer;
}
}
| [
"[email protected]"
] | |
ba2ae9674194dfcddc69e021fbea8c2170cdce6c | 8e4b76d4ed2aa86138f33a763c1071ae0f5d85ae | /src/main/java/org/podval/imageio/FolderReader.java | 6680998bb54c826f425d1d1fb89101d0f174a6a0 | [] | no_license | dubinsky/podval-imageio | d43c93c694b1b35251512e45a7531d90f8b4d6cc | d143fd07533b96f3d909c403b54efe52ce27a5d4 | refs/heads/master | 2020-05-17T03:51:37.755506 | 2014-05-27T18:39:48 | 2014-05-27T18:39:48 | 3,059,006 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,051 | java | package org.podval.imageio;
import org.podval.imageio.metametadata.Entry;
import java.io.IOException;
public abstract class FolderReader extends EntryReader {
public FolderReader(final ReaderNg reader, final Entry entry) {
super(reader, entry);
state = State.START;
}
private enum State { START, CONTENT, END }
public final boolean isStart() {
return state == State.START;
}
public final boolean isEnd() {
return state == State.END;
}
public final EntryReader next() throws IOException {
if (isEnd()) {
throw new IllegalStateException(); // @todo
}
if (isStart()) {
start();
state = State.CONTENT;
}
final EntryReader result = readNext();
if (result == null) {
state = State.END;
}
return result;
}
protected abstract void start() throws IOException;
protected abstract EntryReader readNext() throws IOException;
private State state;
}
| [
"[email protected]"
] | |
c8bf2b2823dec91eec54f1bec5128bbad6456402 | 5f17e455d280f8353c90ec4b564fb4b8f6a0cfee | /app/src/main/java/com/omicronlab/avro/phonetic/Pattern.java | de09955d7bb7fb237813c55940ee1e0d33df5030 | [] | no_license | Isratmity01/Mars_hello | 989114d83fb5e57b98a8900af6b289f4839b0d13 | 9e71faa70114c4ab5dde20b2f9a78e350300871f | refs/heads/master | 2021-01-01T20:19:33.987865 | 2017-08-08T17:48:09 | 2017-08-08T17:48:09 | 98,815,628 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,203 | java | /*
=============================================================================
*****************************************************************************
The contents of this file are subject to the Mozilla Public License
Version 1.1 (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.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS"
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
License for the specific language governing rights and limitations
under the License.
The Original Code is JAvroPhonetic
The Initial Developer of the Original Code is
Rifat Nabi <[email protected]>
Copyright (C) OmicronLab (http://www.omicronlab.com). All Rights Reserved.
Contributor(s): ______________________________________.
*****************************************************************************
=============================================================================
*/
package com.omicronlab.avro.phonetic;
import java.util.List;
import java.util.ArrayList;
public class Pattern implements Comparable<Pattern> {
private String find;
private String replace;
private List<Rule> rules;
public Pattern() {
rules = new ArrayList<Rule>();
}
public String getFind() {
return find;
}
public void setFind(String find) {
this.find = find;
}
public String getReplace() {
return replace;
}
public void setReplace(String replace) {
this.replace = replace;
}
public List<Rule> getRules() {
return rules;
}
public void addRule(Rule rule) {
rules.add(rule);
}
public void addRules(ArrayList<Rule> rules) {
this.rules = rules;
}
@Override
public int compareTo(Pattern p) {
if(this.find.length() < p.getFind().length()) {
return 1;
}
else if(this.find.length() == p.getFind().length()) {
return this.find.compareTo(p.getFind());
} else {
return -1;
}
}
}
| [
"[email protected]"
] | |
ca9426346f2069fefcab58ab9b9d8c5d64f5a631 | f064e06445cad9ebd61d17737e4ddae67259d7a4 | /goldeasy-user-service/src/main/java/com/goldeasy/user/service/impl/UserBankCardServiceImpl.java | 9ec23875141d404ac91b2d50901b9b1c1fca46c5 | [] | no_license | t629715/goldeasy-user-service | 3e69bf55d9c80702ab81951c569a8ad6028bc67a | f5274f6f680176e6c13b22b731665338311c19ce | refs/heads/master | 2020-04-03T14:10:31.885534 | 2018-11-20T06:30:08 | 2018-11-20T06:30:08 | 155,313,456 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,936 | java | package com.goldeasy.user.service.impl;
import com.alibaba.dubbo.config.annotation.Service;
import com.goldeasy.common.exception.UserModuleException;
import com.goldeasy.common.redis.RedisService;
import com.goldeasy.common.util.DateTimeUtil;
import com.goldeasy.common.util.MD5Util;
import com.goldeasy.user.dto.UserBankCardDTO;
import com.goldeasy.user.dto.UserLoginDTO;
import com.goldeasy.user.dto.UserRegisterDTO;
import com.goldeasy.user.entity.UserAccountInfo;
import com.goldeasy.user.entity.UserGoldAccountInfo;
import com.goldeasy.user.entity.UserInfo;
import com.goldeasy.user.entity.UserMarkAccountInfo;
import com.goldeasy.user.mapper.*;
import com.goldeasy.user.service.UserBankCardService;
import com.goldeasy.user.service.UserService;
import com.goldeasy.user.util.JwtUtil;
import com.goldeasy.user.vo.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* @author:tianliya
* @CreateTime:2018-10-15 16:50
* @Description:用户业务实现类
**/
@Component
@Service(interfaceClass = UserBankCardService.class, version = "${dubbo.service.version}")
public class UserBankCardServiceImpl implements UserBankCardService {
private final Logger logger = LoggerFactory.getLogger(UserBankCardServiceImpl.class);
@Autowired
private SysBankMapper sysBankMapper;
@Autowired
private UserBankCardMapper userBankCardMapper;
/**
* fetch 获取开户行列表
* @author: tianliya
* @time: 2018/10/25
* @return
*/
@Override
public List<SysBankVO> listSysBank() {
this.logger.info("获取开户行列表业务层");
try{
List<SysBankVO> sysBankVOList = this.sysBankMapper.listSysBank();
return sysBankVOList;
}catch (Exception e){
e.printStackTrace();
this.logger.error("获取开户行列表业务层,异常信息:{}",e.getMessage());
throw new UserModuleException("获取开户行列表业务层");
}
}
/**
* fetch
* @author: tianliya
* @time: 2018/10/25
* @param id
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Boolean setDefault(Long id) {
return null;
}
/**
* fetch 绑定银行卡
* @author: tianliya
* @time: 2018/10/25
* @param userBankCardDTO
* @param userId
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Boolean addUserBankCard(UserBankCardDTO userBankCardDTO, Long userId) {
userBankCardDTO.setUserId(userId);
userBankCardDTO.setGmtCreate(DateTimeUtil.toDate(LocalDateTime.now()));
int flag = this.userBankCardMapper.addUserBankCard(userBankCardDTO);
if (flag > 0){
return true;
}
return false;
}
/**
* 删除银行卡
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Boolean deleteUserBankCard(Long id) {
int flag = this.userBankCardMapper.deleteUserBankCard(id);
if (flag > 0){
return true;
}
return false;
}
/**
* fetch 获取用户的银行卡列表
* @author: tianliya
* @time: 2018/10/25
* @param userId
* @return
*/
@Override
public List<UserBankVO> listUserBank(Long userId) {
List<UserBankVO> userBankVOList = this.userBankCardMapper.listUserBankCard(userId);
return userBankVOList;
}
}
| [
"[email protected]"
] | |
d63fd47e0b73cb7c5039f97894a77bad1927382e | 16a2e514e014d1afd13f2cd5e0b5cf6029ba36bb | /components/bam-data-publishers/org.wso2.carbon.bam.data.publisher.servicestats/src/main/java/org/wso2/carbon/bam/data/publisher/servicestats/EventPublisher.java | ee87075e2f108e32f8a6dcb28b80da29ee671658 | [] | no_license | Vishanth/platform | 0386ee91c506703e0c256a0e318a88b268f76f6f | e5ac79db4820b88b739694ded697384854a3afba | refs/heads/master | 2020-12-25T12:08:05.306968 | 2014-03-03T06:08:57 | 2014-03-03T06:08:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,827 | java | /*
* Copyright (c) 2005-2008, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.wso2.carbon.bam.data.publisher.servicestats;
import org.apache.axiom.om.OMElement;
import org.apache.axis2.context.MessageContext;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.bam.data.publisher.servicestats.data.EventData;
import org.wso2.carbon.bam.data.publisher.servicestats.data.OperationStatisticData;
import org.wso2.carbon.bam.data.publisher.servicestats.data.ServiceStatisticData;
import org.wso2.carbon.bam.data.publisher.servicestats.data.StatisticData;
import org.wso2.carbon.bam.data.publisher.servicestats.internal.StatisticsServiceComponent;
import org.wso2.carbon.core.multitenancy.SuperTenantCarbonContext;
import org.wso2.carbon.statistics.services.util.SystemStatistics;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class EventPublisher implements ServiceStatsProcessor {
private static Log log = LogFactory.getLog(EventPublisher.class);
public void process(StatisticData[] statisticData) {
// EventBroker broker = StatisticsServiceComponent.getEventBroker();
// Message message = new Message();
OMElement eventPayLoad = null;
for (StatisticData statistic : statisticData) {
eventPayLoad = constructEventPayLoad(statistic);
// message.setMessage(eventPayLoad);
try {
SuperTenantCarbonContext.startTenantFlow();
int tenantId = SuperTenantCarbonContext.getCurrentContext(StatisticsServiceComponent.getConfigurationContext()).getTenantId();
SuperTenantCarbonContext.getCurrentContext().setTenantId(tenantId);
SuperTenantCarbonContext.getCurrentContext().getTenantDomain(true);
ServiceHolder.getLWEventBroker().publish(ServiceStatisticsPublisherConstants.SERVICE_STATS_TOPIC, eventPayLoad);
// broker.publishRobust(message, ServiceStatisticsPublisherConstants.BAM_REG_PATH);
} catch (Exception e) {
log.error("Can not publish the message ", e);
} finally {
SuperTenantCarbonContext.endTenantFlow();
}
// try {
// if (broker != null) {
//
// broker.publishRobust(message, ServiceStatisticsPublisherConstants.BAM_REG_PATH);
// if (log.isDebugEnabled()) {
// log.debug("Event is published" + message.getMessage());
// }
// }
// } catch (Exception e) {
// log.error("EventPublisher - Unable to publish event", e);
// }
}
}
private OMElement constructEventPayLoad(StatisticData statData) {
SystemStatistics systemStatistics = statData.getSystemStatistics();
Collection<OperationStatisticData> operationStatisticsList = statData.getOperationStatisticsList();
Collection<ServiceStatisticData> serviceStatisticsList = statData.getServiceStatisticsList();
Timestamp timestamp = statData.getTimestamp();
List<EventData> opData = new ArrayList<EventData>();
List<EventData> serviceData = new ArrayList<EventData>();
for (OperationStatisticData operationStats : operationStatisticsList) {
if (operationStats.isUpdateFlag()) {
opData.add(PublisherUtils.getOperationEventData(operationStats, timestamp));
}
}
for (ServiceStatisticData serviceStats : serviceStatisticsList) {
if (serviceStats.isUpdateFlag()) {
serviceData.add(PublisherUtils.getServiceEventData(serviceStats, timestamp));
}
}
MessageContext msgContext = statData.getMsgCtxOfStatData();
EventData systemData = PublisherUtils.getSystemEventData(statData, systemStatistics);
OMElement payLoad = PublisherUtils.getEventPayload(msgContext, systemData, serviceData, opData);
return payLoad;
}
public void destroy() {
if (log.isDebugEnabled()) {
log.debug("Terminating BAM EventPublisher");
}
}
}
| [
"denis@a5903396-d722-0410-b921-86c7d4935375"
] | denis@a5903396-d722-0410-b921-86c7d4935375 |
6417af2781d36bb75c679d5159e6dc642b3639d6 | b061cea483ccea772aa1bb8d0688e3039ebfc5cc | /Arvore/pt2/No.java | 8f4a8b3819ec7e64d9bfbdd95ed36dcdba26d60d | [] | no_license | magaum/EstruturaDeDados | 3be2e5b690b7ca2bd35d8423a28bf8ba26d34ac4 | 9de74a4764eb93ebf79ea6f3a77f34a89134a40e | refs/heads/master | 2021-01-19T14:18:36.434367 | 2018-01-05T12:42:02 | 2018-01-05T12:42:02 | 100,895,308 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 83 | java | package aula7pt2;
public class No {
int conteudo;
No esquerdo, direito;
}
| [
"[email protected]"
] | |
d1280c48158a5dce4a5eb9965db78056107b186b | 0601f96e7f38d146a69c17ea1d02948601eb1b2e | /Verifier App/code/app/src/main/java/in/gov/uidai/auasample/model/piddata_pojo/Param.java | c92efd0bdd1a8e856c89b81b2ea991455f4c8457 | [] | no_license | ExcitedRutvik/UIDAI_HACKATHON_2021 | 0ea1651cc95359a4756552c0f2e9e93ea9c806a1 | 8661bf02c9ebce9a521d5ff1473af180772f3223 | refs/heads/master | 2023-08-30T07:57:34.933766 | 2021-10-31T17:16:26 | 2021-10-31T17:16:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 736 | java | package in.gov.uidai.auasample.model.piddata_pojo;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
@XStreamAlias("Param")
public class Param
{
@XStreamAsAttribute
private String name = "";
@XStreamAsAttribute
private String value = "";
public String getName ()
{
return name;
}
public void setName (String name)
{
this.name = name;
}
public String getValue ()
{
return value;
}
public void setValue (String value)
{
this.value = value;
}
@Override
public String toString()
{
return "ClassPojo [name = "+name+", value = "+value+"]";
}
} | [
"[email protected]"
] | |
df4a165e81faacfb66c6d0afa71f957d14c1f0b1 | 1f635051c047b412bfc861df2d134c43aec7e47e | /src/Formulario/Formulario.java | 4346d080bd05f1a25c500ac2239d0a65f59d1226 | [] | no_license | Yure999/Repositorio-Prueba-showHunt | 741fab4b8108a4d96b2e34a5b0423911411a705f | 91cf8f944596b3f5315a180d3752d2177245474a | refs/heads/master | 2020-12-23T17:55:43.638417 | 2020-02-13T07:53:28 | 2020-02-13T07:53:28 | 237,225,082 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Java | false | false | 5,358 | java | package Formulario;
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.ScrollPaneConstants;
import javax.swing.JScrollBar;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JList;
import javax.swing.border.CompoundBorder;
import javax.swing.border.LineBorder;
import java.awt.Color;
import javax.swing.AbstractListModel;
import javax.swing.JTextArea;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JCheckBox;
import javax.swing.JRadioButton;
import javax.swing.JRadioButtonMenuItem;
import javax.swing.ButtonGroup;
import java.awt.event.InputMethodListener;
import java.awt.event.InputMethodEvent;
import java.awt.event.ItemListener;
import java.awt.event.ItemEvent;
import javax.swing.JPasswordField;
import javax.swing.JSpinner;
import javax.swing.SpinnerNumberModel;
import java.awt.Font;
import javax.swing.ListSelectionModel;
public class Formulario extends JFrame {
private JFrame frame;
private JTextField textField;
private JComboBox comboBox;
private JCheckBox chckbxSeleccionado;
private JRadioButton rdbtnMale;
private JRadioButton rdbtnFemale;
private final ButtonGroup buttonGroup = new ButtonGroup();
private JPasswordField pwdPassword;
private JSpinner spinner;
private JList list;
/**
* Create the application.
*/
@SuppressWarnings("unchecked")
public Formulario() {
setBounds(100, 100, 563, 327);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
getContentPane().setLayout(null);
JLabel lblLabel = new JLabel("Busqueda:");
lblLabel.setBounds(10, 11, 136, 23);
getContentPane().add(lblLabel);
JButton btnBuscar = new JButton("Buscar");
btnBuscar.setEnabled(false);
btnBuscar.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (!textField.getText().isEmpty())
comboBox.addItem(textField.getText());
if (chckbxSeleccionado.isSelected()) {
System.out.println("Esta Seleccionado");
textField.setEnabled(false);
} else
System.out.println("No seleccionado");
}
});
btnBuscar.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
System.out.println(pwdPassword.getPassword());
}
});
btnBuscar.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
System.out.println(list.getSelectedValuesList());
}
});
btnBuscar.setBounds(426, 11, 89, 23);
getContentPane().add(btnBuscar);
comboBox = new JComboBox();
comboBox.addItem("Lugar");
comboBox.addItem("Comida");
comboBox.addItem("Pago");
comboBox.setBounds(340, 11, 76, 22);
getContentPane().add(comboBox);
textField = new JTextField();
textField.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
System.out.println("Hola");
btnBuscar.setEnabled(true);
}
});
textField.setBounds(66, 12, 276, 20);
getContentPane().add(textField);
textField.setColumns(10);
chckbxSeleccionado = new JCheckBox("Seleccionado");
chckbxSeleccionado.setBounds(395, 61, 128, 23);
getContentPane().add(chckbxSeleccionado);
rdbtnMale = new JRadioButton("Male");
rdbtnMale.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
String texto = ((JRadioButton) e.getSource()).getText();
if (e.getStateChange() == ItemEvent.DESELECTED)
System.out.format("Botón %s deseleccionado.\n", texto);
else if (e.getStateChange() == ItemEvent.SELECTED)
System.out.format("Botón %s seleccionado.\n", texto);
}
});
buttonGroup.add(rdbtnMale);
rdbtnMale.setBounds(20, 41, 109, 23);
getContentPane().add(rdbtnMale);
rdbtnFemale = new JRadioButton("Female");
rdbtnFemale.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
String texto = ((JRadioButton) e.getSource()).getText();
if (e.getStateChange() == ItemEvent.DESELECTED)
System.out.format("Botón %s deseleccionado.\n", texto);
else if (e.getStateChange() == ItemEvent.SELECTED)
System.out.format("Botón %s seleccionado.\n", texto);
}
});
buttonGroup.add(rdbtnFemale);
rdbtnFemale.setBounds(20, 67, 109, 23);
getContentPane().add(rdbtnFemale);
pwdPassword = new JPasswordField();
pwdPassword.setEchoChar('*');
pwdPassword.setBounds(20, 123, 128, 19);
getContentPane().add(pwdPassword);
spinner = new JSpinner();
spinner.setModel(new SpinnerNumberModel(0, 0, 200, 1));
spinner.setBounds(20, 166, 39, 30);
getContentPane().add(spinner);
JScrollPane scrollPane = new JScrollPane();
scrollPane.setBounds(395, 123, 109, 103);
getContentPane().add(scrollPane);
list = new JList();
list.setFont(new Font("Tahoma", Font.PLAIN, 17));
list.setModel(new AbstractListModel() {
String[] values = new String[] {"Pipo", "Es", "Un", "Buen", "Perro"};
public int getSize() {
return values.length;
}
public Object getElementAt(int index) {
return values[index];
}
});
scrollPane.setViewportView(list);
}
} | [
"[email protected]"
] | |
9c4d559cd9938df422410c404219265e09fe9d6e | 852847c76c60e15d3178242ea6ee5dd1b05fea51 | /mobile/src/main/java/haejung/com/fridge/ui/base/FragmentInteractionListener.java | 1e6fd4066490836ec8efc6483eab8128c43826b4 | [
"Apache-2.0"
] | permissive | uhufor/android-app-fridge-manager | 843223738a3d9bf44921ffe52c936fced910c8f1 | fe7b81eed58330543da6aa47a6c70d9db2bfa64a | refs/heads/master | 2023-07-24T00:00:11.480860 | 2017-01-22T13:03:13 | 2017-01-22T13:03:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 162 | java | package haejung.com.fridge.ui.base;
/**
* Created by ka on 2017. 1. 1..
*/
public interface FragmentInteractionListener {
void onFragmentInteraction();
}
| [
"[email protected]"
] | |
60a6f2de052940f63fde2aae30073e6f8857f5c6 | 9b32926df2e61d54bd5939d624ec7708044cb97f | /src/main/java/com/rocket/summer/framework/context/support/DefaultLifecycleProcessor.java | 587cd10b6a6b08e7c64ca58cb311243534a21924 | [] | no_license | goder037/summer | d521c0b15c55692f9fd8ba2c0079bfb2331ef722 | 6b51014e9a3e3d85fb48899aa3898812826378d5 | refs/heads/master | 2022-10-08T12:23:58.088119 | 2019-11-19T07:58:13 | 2019-11-19T07:58:13 | 89,110,409 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 16,006 | java | package com.rocket.summer.framework.context.support;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.rocket.summer.framework.beans.factory.BeanFactory;
import com.rocket.summer.framework.beans.factory.BeanFactoryAware;
import com.rocket.summer.framework.beans.factory.BeanFactoryUtils;
import com.rocket.summer.framework.beans.factory.config.ConfigurableListableBeanFactory;
import com.rocket.summer.framework.context.ApplicationContextException;
import com.rocket.summer.framework.context.Lifecycle;
import com.rocket.summer.framework.context.LifecycleProcessor;
import com.rocket.summer.framework.context.Phased;
import com.rocket.summer.framework.context.SmartLifecycle;
/**
* Default implementation of the {@link LifecycleProcessor} strategy.
*
* @author Mark Fisher
* @author Juergen Hoeller
* @since 3.0
*/
public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactoryAware {
private final Log logger = LogFactory.getLog(getClass());
private volatile long timeoutPerShutdownPhase = 30000;
private volatile boolean running;
private volatile ConfigurableListableBeanFactory beanFactory;
/**
* Specify the maximum time allotted in milliseconds for the shutdown of
* any phase (group of SmartLifecycle beans with the same 'phase' value).
* <p>The default value is 30 seconds.
*/
public void setTimeoutPerShutdownPhase(long timeoutPerShutdownPhase) {
this.timeoutPerShutdownPhase = timeoutPerShutdownPhase;
}
@Override
public void setBeanFactory(BeanFactory beanFactory) {
if (!(beanFactory instanceof ConfigurableListableBeanFactory)) {
throw new IllegalArgumentException(
"DefaultLifecycleProcessor requires a ConfigurableListableBeanFactory: " + beanFactory);
}
this.beanFactory = (ConfigurableListableBeanFactory) beanFactory;
}
// Lifecycle implementation
/**
* Start all registered beans that implement {@link Lifecycle} and are <i>not</i>
* already running. Any bean that implements {@link SmartLifecycle} will be
* started within its 'phase', and all phases will be ordered from lowest to
* highest value. All beans that do not implement {@link SmartLifecycle} will be
* started in the default phase 0. A bean declared as a dependency of another bean
* will be started before the dependent bean regardless of the declared phase.
*/
@Override
public void start() {
startBeans(false);
this.running = true;
}
/**
* Stop all registered beans that implement {@link Lifecycle} and <i>are</i>
* currently running. Any bean that implements {@link SmartLifecycle} will be
* stopped within its 'phase', and all phases will be ordered from highest to
* lowest value. All beans that do not implement {@link SmartLifecycle} will be
* stopped in the default phase 0. A bean declared as dependent on another bean
* will be stopped before the dependency bean regardless of the declared phase.
*/
@Override
public void stop() {
stopBeans();
this.running = false;
}
@Override
public void onRefresh() {
startBeans(true);
this.running = true;
}
@Override
public void onClose() {
stopBeans();
this.running = false;
}
@Override
public boolean isRunning() {
return this.running;
}
// Internal helpers
private void startBeans(boolean autoStartupOnly) {
Map<String, Lifecycle> lifecycleBeans = getLifecycleBeans();
Map<Integer, LifecycleGroup> phases = new HashMap<Integer, LifecycleGroup>();
for (Map.Entry<String, ? extends Lifecycle> entry : lifecycleBeans.entrySet()) {
Lifecycle bean = entry.getValue();
if (!autoStartupOnly || (bean instanceof SmartLifecycle && ((SmartLifecycle) bean).isAutoStartup())) {
int phase = getPhase(bean);
LifecycleGroup group = phases.get(phase);
if (group == null) {
group = new LifecycleGroup(phase, this.timeoutPerShutdownPhase, lifecycleBeans, autoStartupOnly);
phases.put(phase, group);
}
group.add(entry.getKey(), bean);
}
}
if (!phases.isEmpty()) {
List<Integer> keys = new ArrayList<Integer>(phases.keySet());
Collections.sort(keys);
for (Integer key : keys) {
phases.get(key).start();
}
}
}
/**
* Start the specified bean as part of the given set of Lifecycle beans,
* making sure that any beans that it depends on are started first.
* @param lifecycleBeans a Map with bean name as key and Lifecycle instance as value
* @param beanName the name of the bean to start
*/
private void doStart(Map<String, ? extends Lifecycle> lifecycleBeans, String beanName, boolean autoStartupOnly) {
Lifecycle bean = lifecycleBeans.remove(beanName);
if (bean != null && bean != this) {
String[] dependenciesForBean = this.beanFactory.getDependenciesForBean(beanName);
for (String dependency : dependenciesForBean) {
doStart(lifecycleBeans, dependency, autoStartupOnly);
}
if (!bean.isRunning() &&
(!autoStartupOnly || !(bean instanceof SmartLifecycle) || ((SmartLifecycle) bean).isAutoStartup())) {
if (logger.isDebugEnabled()) {
logger.debug("Starting bean '" + beanName + "' of type [" + bean.getClass().getName() + "]");
}
try {
bean.start();
}
catch (Throwable ex) {
throw new ApplicationContextException("Failed to start bean '" + beanName + "'", ex);
}
if (logger.isDebugEnabled()) {
logger.debug("Successfully started bean '" + beanName + "'");
}
}
}
}
private void stopBeans() {
Map<String, Lifecycle> lifecycleBeans = getLifecycleBeans();
Map<Integer, LifecycleGroup> phases = new HashMap<Integer, LifecycleGroup>();
for (Map.Entry<String, Lifecycle> entry : lifecycleBeans.entrySet()) {
Lifecycle bean = entry.getValue();
int shutdownPhase = getPhase(bean);
LifecycleGroup group = phases.get(shutdownPhase);
if (group == null) {
group = new LifecycleGroup(shutdownPhase, this.timeoutPerShutdownPhase, lifecycleBeans, false);
phases.put(shutdownPhase, group);
}
group.add(entry.getKey(), bean);
}
if (!phases.isEmpty()) {
List<Integer> keys = new ArrayList<Integer>(phases.keySet());
Collections.sort(keys, Collections.reverseOrder());
for (Integer key : keys) {
phases.get(key).stop();
}
}
}
/**
* Stop the specified bean as part of the given set of Lifecycle beans,
* making sure that any beans that depends on it are stopped first.
* @param lifecycleBeans a Map with bean name as key and Lifecycle instance as value
* @param beanName the name of the bean to stop
*/
private void doStop(Map<String, ? extends Lifecycle> lifecycleBeans, final String beanName,
final CountDownLatch latch, final Set<String> countDownBeanNames) {
Lifecycle bean = lifecycleBeans.remove(beanName);
if (bean != null) {
String[] dependentBeans = this.beanFactory.getDependentBeans(beanName);
for (String dependentBean : dependentBeans) {
doStop(lifecycleBeans, dependentBean, latch, countDownBeanNames);
}
try {
if (bean.isRunning()) {
if (bean instanceof SmartLifecycle) {
if (logger.isDebugEnabled()) {
logger.debug("Asking bean '" + beanName + "' of type [" +
bean.getClass().getName() + "] to stop");
}
countDownBeanNames.add(beanName);
((SmartLifecycle) bean).stop(new Runnable() {
@Override
public void run() {
latch.countDown();
countDownBeanNames.remove(beanName);
if (logger.isDebugEnabled()) {
logger.debug("Bean '" + beanName + "' completed its stop procedure");
}
}
});
}
else {
if (logger.isDebugEnabled()) {
logger.debug("Stopping bean '" + beanName + "' of type [" +
bean.getClass().getName() + "]");
}
bean.stop();
if (logger.isDebugEnabled()) {
logger.debug("Successfully stopped bean '" + beanName + "'");
}
}
}
else if (bean instanceof SmartLifecycle) {
// Don't wait for beans that aren't running...
latch.countDown();
}
}
catch (Throwable ex) {
if (logger.isWarnEnabled()) {
logger.warn("Failed to stop bean '" + beanName + "'", ex);
}
}
}
}
// overridable hooks
/**
* Retrieve all applicable Lifecycle beans: all singletons that have already been created,
* as well as all SmartLifecycle beans (even if they are marked as lazy-init).
* @return the Map of applicable beans, with bean names as keys and bean instances as values
*/
protected Map<String, Lifecycle> getLifecycleBeans() {
Map<String, Lifecycle> beans = new LinkedHashMap<String, Lifecycle>();
String[] beanNames = this.beanFactory.getBeanNamesForType(Lifecycle.class, false, false);
for (String beanName : beanNames) {
String beanNameToRegister = BeanFactoryUtils.transformedBeanName(beanName);
boolean isFactoryBean = this.beanFactory.isFactoryBean(beanNameToRegister);
String beanNameToCheck = (isFactoryBean ? BeanFactory.FACTORY_BEAN_PREFIX + beanName : beanName);
if ((this.beanFactory.containsSingleton(beanNameToRegister) &&
(!isFactoryBean || Lifecycle.class.isAssignableFrom(this.beanFactory.getType(beanNameToCheck)))) ||
SmartLifecycle.class.isAssignableFrom(this.beanFactory.getType(beanNameToCheck))) {
Lifecycle bean = this.beanFactory.getBean(beanNameToCheck, Lifecycle.class);
if (bean != this) {
beans.put(beanNameToRegister, bean);
}
}
}
return beans;
}
/**
* Determine the lifecycle phase of the given bean.
* <p>The default implementation checks for the {@link Phased} interface, using
* a default of 0 otherwise. Can be overridden to apply other/further policies.
* @param bean the bean to introspect
* @return the phase (an integer value)
* @see Phased#getPhase()
* @see SmartLifecycle
*/
protected int getPhase(Lifecycle bean) {
return (bean instanceof Phased ? ((Phased) bean).getPhase() : 0);
}
/**
* Helper class for maintaining a group of Lifecycle beans that should be started
* and stopped together based on their 'phase' value (or the default value of 0).
*/
private class LifecycleGroup {
private final int phase;
private final long timeout;
private final Map<String, ? extends Lifecycle> lifecycleBeans;
private final boolean autoStartupOnly;
private final List<LifecycleGroupMember> members = new ArrayList<LifecycleGroupMember>();
private int smartMemberCount;
public LifecycleGroup(
int phase, long timeout, Map<String, ? extends Lifecycle> lifecycleBeans, boolean autoStartupOnly) {
this.phase = phase;
this.timeout = timeout;
this.lifecycleBeans = lifecycleBeans;
this.autoStartupOnly = autoStartupOnly;
}
public void add(String name, Lifecycle bean) {
this.members.add(new LifecycleGroupMember(name, bean));
if (bean instanceof SmartLifecycle) {
this.smartMemberCount++;
}
}
public void start() {
if (this.members.isEmpty()) {
return;
}
if (logger.isInfoEnabled()) {
logger.info("Starting beans in phase " + this.phase);
}
Collections.sort(this.members);
for (LifecycleGroupMember member : this.members) {
if (this.lifecycleBeans.containsKey(member.name)) {
doStart(this.lifecycleBeans, member.name, this.autoStartupOnly);
}
}
}
public void stop() {
if (this.members.isEmpty()) {
return;
}
if (logger.isInfoEnabled()) {
logger.info("Stopping beans in phase " + this.phase);
}
Collections.sort(this.members, Collections.reverseOrder());
CountDownLatch latch = new CountDownLatch(this.smartMemberCount);
Set<String> countDownBeanNames = Collections.synchronizedSet(new LinkedHashSet<String>());
for (LifecycleGroupMember member : this.members) {
if (this.lifecycleBeans.containsKey(member.name)) {
doStop(this.lifecycleBeans, member.name, latch, countDownBeanNames);
}
else if (member.bean instanceof SmartLifecycle) {
// Already removed: must have been a dependent bean from another phase
latch.countDown();
}
}
try {
latch.await(this.timeout, TimeUnit.MILLISECONDS);
if (latch.getCount() > 0 && !countDownBeanNames.isEmpty() && logger.isWarnEnabled()) {
logger.warn("Failed to shut down " + countDownBeanNames.size() + " bean" +
(countDownBeanNames.size() > 1 ? "s" : "") + " with phase value " +
this.phase + " within timeout of " + this.timeout + ": " + countDownBeanNames);
}
}
catch (InterruptedException ex) {
Thread.currentThread().interrupt();
}
}
}
/**
* Adapts the Comparable interface onto the lifecycle phase model.
*/
private class LifecycleGroupMember implements Comparable<LifecycleGroupMember> {
private final String name;
private final Lifecycle bean;
LifecycleGroupMember(String name, Lifecycle bean) {
this.name = name;
this.bean = bean;
}
@Override
public int compareTo(LifecycleGroupMember other) {
int thisPhase = getPhase(this.bean);
int otherPhase = getPhase(other.bean);
return (thisPhase == otherPhase ? 0 : (thisPhase < otherPhase) ? -1 : 1);
}
}
}
| [
"[email protected]"
] | |
7c0e175ef5f6625744f937f30e4d4759417b9ab0 | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/2/2_15c22ed2147d863a990d5bd5f90327813151e1ba/ThreadSafeSingleton/2_15c22ed2147d863a990d5bd5f90327813151e1ba_ThreadSafeSingleton_s.java | 1c7aa7a4e271b605d44bc87faf4bb694db0d8e41 | [] | 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 | 614 | java | package guibin.zhang.java;
/**
*
* Using double check locking to create thread safe singleton.
*
* @author Gubin Zhang <[email protected]>
*/
public class ThreadSafeSingleton {
private static volatile ThreadSafeSingleton instance;//vilatile variable
public static ThreadSafeSingleton getInstance() {
if (instance == null) {
synchronized(ThreadSafeSingleton.class) {
if (instance == null) {
instance = new ThreadSafeSingleton();
}
}
}
return instance;
}
}
| [
"[email protected]"
] | |
d75a07b6134c6299fda0e9e40e80f12b19d950ed | 480bfb715d7578b43c23c8e9471c0e64a9ff3ce1 | /src/main/java/com/hellonms/platforms/emp_orange/client_swt/page/PanelBuilderIf.java | 036d202ab53715c5e1894ae9aee423909f17781e | [
"Apache-2.0"
] | permissive | paul-hyun/emp | 3b98a8b4258426d4476ab95aa8732b778926b531 | 2dd66647c5522cbc59c786d413ed790a1f14f46c | refs/heads/master | 2021-05-22T00:47:03.583641 | 2020-04-04T04:34:51 | 2020-04-04T04:34:51 | 252,890,886 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,302 | java | package com.hellonms.platforms.emp_orange.client_swt.page;
import org.eclipse.swt.widgets.Composite;
import com.hellonms.platforms.emp_onion.client_swt.widget.page.PanelChartIf;
import com.hellonms.platforms.emp_onion.client_swt.widget.page.PanelInputAt;
import com.hellonms.platforms.emp_onion.client_swt.widget.page.PanelInputAt.PANEL_INPUT_TYPE;
import com.hellonms.platforms.emp_onion.client_swt.widget.page.PanelInputAt.PanelInputListenerIf;
import com.hellonms.platforms.emp_onion.client_swt.widget.page.PanelTable.PanelTableListenerIf;
import com.hellonms.platforms.emp_onion.client_swt.widget.page.PanelTableIf;
import com.hellonms.platforms.emp_onion.client_swt.widget.page.PanelTreeIf;
import com.hellonms.platforms.emp_orange.client_swt.widget.page.PanelFieldAt.PanelFieldListenerIf;
import com.hellonms.platforms.emp_orange.client_swt.widget.page.PanelFieldIf;
import com.hellonms.platforms.emp_orange.share.model.emp_model.EMP_MODEL_NE_INFO;
import com.hellonms.platforms.emp_orange.share.model.emp_model.EMP_MODEL_NE_INFO_FIELD;
/**
* <p>
* PanelBuilderIf
* </p>
*
* @since 1.6
* @create 2015. 5. 19.
* @modified 2015. 6. 3.
* @author jungsun
*/
public interface PanelBuilderIf {
public interface ChartEnumIf {
}
public interface InputEnumIf {
}
public interface TableEnumIf {
}
public interface TreeEnumIf {
}
public PanelChartIf createPanelChart(ChartEnumIf chartEnum, Composite parent, int style, Object... datas);
public PanelInputAt<?> createPanelInput(InputEnumIf inputEnum, Composite parent, int style, PANEL_INPUT_TYPE panelInputType, PanelInputListenerIf listener, Object... datas);
public PanelFieldIf createPanelFieldKey(Composite parent, EMP_MODEL_NE_INFO ne_info_def, EMP_MODEL_NE_INFO_FIELD ne_info_field_def, boolean enabled, PanelFieldListenerIf listener, Object... datas);
public PanelFieldIf createPanelFieldValue(Composite parent, EMP_MODEL_NE_INFO ne_info_def, EMP_MODEL_NE_INFO_FIELD ne_info_field_def, boolean enabled, PanelFieldListenerIf listener, Object... datas);
public PanelTableIf createPanelTable(TableEnumIf tableEnum, Composite parent, int style, int rowCount, PanelTableListenerIf listener, Object... datas);
public PanelTreeIf createPanelTree(TreeEnumIf treeEnum, Composite parent, int style, Object... datas);
}
| [
"[email protected]"
] | |
d18721819f077a0921694d9d017286fc658ddb4a | 0721305fd9b1c643a7687b6382dccc56a82a2dad | /src/app.zenly.locator_4.8.0_base_source_from_JADX/sources/com/google/android/gms/internal/clearcut/C10289c5.java | 38958d8d8ec8d6cfb7a82e609b90bc8262a2b224 | [] | no_license | a2en/Zenly_re | 09c635ad886c8285f70a8292ae4f74167a4ad620 | f87af0c2dd0bc14fd772c69d5bc70cd8aa727516 | refs/heads/master | 2020-12-13T17:07:11.442473 | 2020-01-17T04:32:44 | 2020-01-17T04:32:44 | 234,470,083 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,687 | java | package com.google.android.gms.internal.clearcut;
import android.content.Context;
import android.util.Log;
import com.appsflyer.share.Constants;
import com.google.android.gms.clearcut.ClearcutLogger.zza;
import com.google.android.gms.clearcut.zze;
import com.google.android.gms.common.p309i.C10079b;
import com.google.android.gms.internal.clearcut.C10385q4.C10387b;
import com.google.android.gms.internal.clearcut.C10385q4.C10387b.C10388a;
import com.google.android.gms.phenotype.C10666a;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
/* renamed from: com.google.android.gms.internal.clearcut.c5 */
public final class C10289c5 implements zza {
/* renamed from: b */
private static final Charset f26939b = Charset.forName("UTF-8");
/* renamed from: c */
private static final C10362n f26940c;
/* renamed from: d */
private static final C10362n f26941d;
/* renamed from: e */
private static final ConcurrentHashMap<String, C10297e<C10385q4>> f26942e = new ConcurrentHashMap<>();
/* renamed from: f */
private static final HashMap<String, C10297e<String>> f26943f = new HashMap<>();
/* renamed from: g */
private static Boolean f26944g = null;
/* renamed from: h */
private static Long f26945h = null;
/* renamed from: i */
private static final C10297e<Boolean> f26946i = f26940c.mo28063a("enable_log_sampling_rules", false);
/* renamed from: a */
private final Context f26947a;
static {
String str = "com.google.android.gms.clearcut.public";
f26940c = new C10362n(C10666a.m27182a(str)).mo28064a("gms:playlog:service:samplingrules_").mo28065b("LogSamplingRules__");
f26941d = new C10362n(C10666a.m27182a(str)).mo28064a("gms:playlog:service:sampling_").mo28065b("LogSampling__");
}
public C10289c5(Context context) {
this.f26947a = context;
Context context2 = this.f26947a;
if (context2 != null) {
C10297e.m26044a(context2);
}
}
/* renamed from: a */
private static long m26007a(String str, long j) {
if (str == null || str.isEmpty()) {
return C10442z4.m26659a(ByteBuffer.allocate(8).putLong(j).array());
}
byte[] bytes = str.getBytes(f26939b);
ByteBuffer allocate = ByteBuffer.allocate(bytes.length + 8);
allocate.put(bytes);
allocate.putLong(j);
return C10442z4.m26659a(allocate.array());
}
/* renamed from: a */
private static C10387b m26008a(String str) {
String str2;
int i;
if (str == null) {
return null;
}
int indexOf = str.indexOf(44);
if (indexOf >= 0) {
str2 = str.substring(0, indexOf);
i = indexOf + 1;
} else {
str2 = "";
i = 0;
}
int indexOf2 = str.indexOf(47, i);
String str3 = "LogSamplerImpl";
if (indexOf2 <= 0) {
String str4 = "Failed to parse the rule: ";
String valueOf = String.valueOf(str);
Log.e(str3, valueOf.length() != 0 ? str4.concat(valueOf) : new String(str4));
return null;
}
try {
long parseLong = Long.parseLong(str.substring(i, indexOf2));
long parseLong2 = Long.parseLong(str.substring(indexOf2 + 1));
if (parseLong < 0 || parseLong2 < 0) {
StringBuilder sb = new StringBuilder(72);
sb.append("negative values not supported: ");
sb.append(parseLong);
sb.append(Constants.URL_PATH_DELIMITER);
sb.append(parseLong2);
Log.e(str3, sb.toString());
return null;
}
C10388a h = C10387b.m26478h();
h.mo28112a(str2);
h.mo28111a(parseLong);
h.mo28113b(parseLong2);
return (C10387b) h.mo27817c();
} catch (NumberFormatException e) {
String str5 = "parseLong() failed while parsing: ";
String valueOf2 = String.valueOf(str);
Log.e(str3, valueOf2.length() != 0 ? str5.concat(valueOf2) : new String(str5), e);
return null;
}
}
/* renamed from: a */
private static boolean m26009a(long j, long j2, long j3) {
if (j2 >= 0 && j3 > 0) {
if ((j >= 0 ? j % j3 : (((Long.MAX_VALUE % j3) + 1) + ((j & Long.MAX_VALUE) % j3)) % j3) >= j2) {
return false;
}
}
return true;
}
/* renamed from: a */
private static boolean m26010a(Context context) {
if (f26944g == null) {
f26944g = Boolean.valueOf(C10079b.m25337a(context).mo27330a("com.google.android.providers.gsf.permission.READ_GSERVICES") == 0);
}
return f26944g.booleanValue();
}
/* renamed from: b */
private static long m26011b(Context context) {
if (f26945h == null) {
long j = 0;
if (context == null) {
return 0;
}
if (m26010a(context)) {
j = C10310f5.m26109a(context.getContentResolver(), "android_id", 0);
}
f26945h = Long.valueOf(j);
}
return f26945h.longValue();
}
public final boolean zza(zze zze) {
List<C10387b> list;
zzr zzr = zze.f26248e;
String str = zzr.f27369k;
int i = zzr.f27365g;
C10418v4 v4Var = zze.f26256m;
int i2 = v4Var != null ? v4Var.f27232j : 0;
String str2 = null;
if (!((Boolean) f26946i.mo27883a()).booleanValue()) {
if (str == null || str.isEmpty()) {
str = i >= 0 ? String.valueOf(i) : null;
}
if (str != null) {
Context context = this.f26947a;
if (context != null && m26010a(context)) {
C10297e eVar = (C10297e) f26943f.get(str);
if (eVar == null) {
eVar = f26941d.mo28062a(str, (String) null);
f26943f.put(str, eVar);
}
str2 = (String) eVar.mo27883a();
}
C10387b a = m26008a(str2);
if (a != null) {
return m26009a(m26007a(a.mo28108e(), m26011b(this.f26947a)), a.mo28109f(), a.mo28110g());
}
}
} else {
if (str == null || str.isEmpty()) {
str = i >= 0 ? String.valueOf(i) : null;
}
if (str != null) {
if (this.f26947a == null) {
list = Collections.emptyList();
} else {
C10297e eVar2 = (C10297e) f26942e.get(str);
if (eVar2 == null) {
eVar2 = f26940c.mo28061a(str, C10385q4.m26468d(), C10296d5.f26956a);
C10297e eVar3 = (C10297e) f26942e.putIfAbsent(str, eVar2);
if (eVar3 != null) {
eVar2 = eVar3;
}
}
list = ((C10385q4) eVar2.mo27883a()).mo28105c();
}
for (C10387b bVar : list) {
if ((!bVar.mo28107d() || bVar.mo28106c() == 0 || bVar.mo28106c() == i2) && !m26009a(m26007a(bVar.mo28108e(), m26011b(this.f26947a)), bVar.mo28109f(), bVar.mo28110g())) {
return false;
}
}
}
}
return true;
}
}
| [
"[email protected]"
] | |
1d56a5f5d62ea8a952b748b940c14dd586d1859a | b4934ebe8c2d812eabb6cda5d41ccb4143df760f | /app/src/androidTest/java/com/acharcitox/fruteriabit/ExampleInstrumentedTest.java | 801d90a6ef852d490b2e8bda419fda10034318a5 | [] | no_license | Acharcitox/FruteriaBit | 53f9d29073c0b2fd454931a2e67c83173515b364 | efed5c95f2fe5b530c58d304e34c706260e0cbec | refs/heads/master | 2023-03-21T09:23:03.856114 | 2021-03-18T01:16:30 | 2021-03-18T01:16:30 | 348,900,518 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 766 | java | package com.acharcitox.fruteriabit;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.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.getInstrumentation().getTargetContext();
assertEquals("com.acharcitox.fruteriabit", appContext.getPackageName());
}
} | [
"[email protected]"
] | |
13fef372d283e3dbe5dd183ac66c140e473edd21 | 355964d7bea5544f0dcf2116750b7dfa1e9a8702 | /whileLoops/DoWhileLoops.java | 9a72dc51298afbc7ca1021fa6832ec98cc4917b8 | [] | no_license | depan6265/Java-Programs | 041936a316cc5b6e96752af734d4d568073b52a8 | 0fd604445d76d5461c698005687fe85ede841b34 | refs/heads/master | 2022-12-28T00:36:47.412617 | 2020-10-12T16:20:22 | 2020-10-12T16:20:22 | 303,448,459 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 279 | java | package whileLoops;
import java.util.Scanner;
public class DoWhileLoops {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = 1;
do {
n = sc.nextInt();
System.out.println("Number is " + n);
}while(n != 0);
}
}
| [
"[email protected]"
] | |
bb842bdd2c5f9b2aa3a7ce76af63b6c34b96bfae | fa745ba4dbffcdb0d199369234a28353e524dfb4 | /src/main/java/com/blz/controller/GuestbookController.java | bfbac2188fcf5af5160d82106c704027a2e20cff | [] | no_license | ITblz/MyBlogCode | a2c6a3eefd2748c26c6f3dfd32f13d73a0b70438 | 50a3e9c3ccbcc8721c7bb66db77a0e9f0a808d0c | refs/heads/master | 2022-12-24T22:53:59.736600 | 2020-02-11T13:10:00 | 2020-02-11T13:10:00 | 239,759,465 | 3 | 0 | null | 2022-12-16T05:00:54 | 2020-02-11T12:44:02 | CSS | UTF-8 | Java | false | false | 3,114 | java | package com.blz.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.blz.domain.Guestbook;
import com.blz.service.GuestbookService;
import com.blz.utils.ParserJSONUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import java.util.*;
@Controller
@RequestMapping("guestbook")
public class GuestbookController {
@Autowired
private GuestbookService guestbookService;
@RequestMapping("/list/{offset}/{rows}")
public @ResponseBody List<Guestbook> findGuestbookList(@PathVariable("offset") Integer offset, @PathVariable("rows")Integer rows){
return guestbookService.findGuestbookListByChecked(offset,rows);
}
@RequestMapping("/insert")
public @ResponseBody Integer insert(@RequestBody Guestbook guestbook){
//System.out.println(guestbook);
return guestbookService.insert(guestbook);
}
@RequestMapping("/showGuestbookList.do")
public @ResponseBody Map<String,Object> findGuestbookList(){
List<Guestbook> guestbookList = guestbookService.findGuestbookList(1,1000);
Map<String,Object> map = new HashMap<>();
map.put("total",guestbookList.size());
map.put("rows",guestbookList);
return map;
}
/**
* 批量更新留言的是否通过审核字段
* @return
*/
@RequestMapping(value = "/batchUpdateCheckedFiled.do",method = RequestMethod.POST)
@ResponseBody
public Map<String, Object> batchUpdateGuestbookCheckedFiled(@RequestBody String ids){
List<String> idList = ParserJSONUtil.parseBatchDeleteJSONIds(ids);
long res = guestbookService.batchUpdateGuestbookCheckedFiled(idList);
Map<String,Object> map = new HashMap<>();
if (res == idList.size()){
map.put("status","success");
map.put("msg","全部更新成功!");
}else if (res == -1){
map.put("status","error");
map.put("msg","更新失败!");
}
else {
map.put("status","exception");
map.put("msg","更新有异常!");
}
map.put("rows",res);
return map;
}
@RequestMapping(value = "/batchDelete.do",method = RequestMethod.POST)
@ResponseBody
public Map<String,Object> batchDelete(@RequestBody String ids){
List<String> idList = ParserJSONUtil.parseBatchDeleteJSONIds(ids);
long res = guestbookService.batchDelete(idList);
System.out.println(res);
Map<String,Object> map = new HashMap<>();
if (res == idList.size()){
map.put("status","success");
map.put("msg","全部删除成功!");
}else if (res == -1){
map.put("status","error");
map.put("msg","删除失败!");
}
else {
map.put("status","exception");
map.put("msg","删除有异常!");
}
map.put("rows",res);
return map;
}
}
| [
"[email protected]"
] | |
df99662452479331cbf59cf230f77fd053077192 | 74b47b895b2f739612371f871c7f940502e7165b | /aws-java-sdk-api-gateway/src/main/java/com/amazonaws/services/apigateway/model/transform/DeploymentMarshaller.java | 67fab6fe4988995bb46a78892d4a3c9a25338ac8 | [
"Apache-2.0"
] | permissive | baganda07/aws-sdk-java | fe1958ed679cd95b4c48f971393bf03eb5512799 | f19bdb30177106b5d6394223a40a382b87adf742 | refs/heads/master | 2022-11-09T21:55:43.857201 | 2022-10-24T21:08:19 | 2022-10-24T21:08:19 | 221,028,223 | 0 | 0 | Apache-2.0 | 2019-11-11T16:57:12 | 2019-11-11T16:57:11 | null | UTF-8 | Java | false | false | 2,874 | java | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.apigateway.model.transform;
import java.util.Map;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.apigateway.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* DeploymentMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class DeploymentMarshaller {
private static final MarshallingInfo<String> ID_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("id").build();
private static final MarshallingInfo<String> DESCRIPTION_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("description").build();
private static final MarshallingInfo<java.util.Date> CREATEDDATE_BINDING = MarshallingInfo.builder(MarshallingType.DATE)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("createdDate").timestampFormat("unixTimestamp").build();
private static final MarshallingInfo<Map> APISUMMARY_BINDING = MarshallingInfo.builder(MarshallingType.MAP).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("apiSummary").build();
private static final DeploymentMarshaller instance = new DeploymentMarshaller();
public static DeploymentMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(Deployment deployment, ProtocolMarshaller protocolMarshaller) {
if (deployment == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(deployment.getId(), ID_BINDING);
protocolMarshaller.marshall(deployment.getDescription(), DESCRIPTION_BINDING);
protocolMarshaller.marshall(deployment.getCreatedDate(), CREATEDDATE_BINDING);
protocolMarshaller.marshall(deployment.getApiSummary(), APISUMMARY_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}
| [
""
] | |
5ecb3db67a95e96cb69e1c9128a70d00bd3c69a3 | dd89674a5ae73d2995ef126e0a373f5837856b39 | /app/build/generated/source/r/debug/android/support/v7/mediarouter/R.java | fb85f30596b5651c49ab0372032089d156b0955c | [] | no_license | aguanslamet/dahari | 83985efed21b0f4b87f5225f8aa523170d2c8ffa | 56367b6c8f5189b505de97bcbf70be920c1948e3 | refs/heads/master | 2020-08-05T07:38:07.245149 | 2019-07-28T09:29:53 | 2019-07-28T09:29:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 135,480 | 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.mediarouter;
public final class R {
public static final class 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 class 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 = 0x7f030025;
public static final int alertDialogCenterButtons = 0x7f030026;
public static final int alertDialogStyle = 0x7f030027;
public static final int alertDialogTheme = 0x7f030028;
public static final int allowStacking = 0x7f03002a;
public static final int alpha = 0x7f03002b;
public static final int alphabeticModifiers = 0x7f03002d;
public static final int arrowHeadLength = 0x7f030030;
public static final int arrowShaftLength = 0x7f030031;
public static final int autoCompleteTextViewStyle = 0x7f030032;
public static final int autoSizeMaxTextSize = 0x7f030033;
public static final int autoSizeMinTextSize = 0x7f030034;
public static final int autoSizePresetSizes = 0x7f030035;
public static final int autoSizeStepGranularity = 0x7f030036;
public static final int autoSizeTextType = 0x7f030037;
public static final int background = 0x7f030038;
public static final int backgroundSplit = 0x7f030039;
public static final int backgroundStacked = 0x7f03003a;
public static final int backgroundTint = 0x7f03003b;
public static final int backgroundTintMode = 0x7f03003c;
public static final int barLength = 0x7f03003d;
public static final int borderlessButtonStyle = 0x7f03003e;
public static final int buttonBarButtonStyle = 0x7f03003f;
public static final int buttonBarNegativeButtonStyle = 0x7f030040;
public static final int buttonBarNeutralButtonStyle = 0x7f030041;
public static final int buttonBarPositiveButtonStyle = 0x7f030042;
public static final int buttonBarStyle = 0x7f030043;
public static final int buttonGravity = 0x7f030044;
public static final int buttonPanelSideLayout = 0x7f030046;
public static final int buttonStyle = 0x7f030048;
public static final int buttonStyleSmall = 0x7f030049;
public static final int buttonTint = 0x7f03004a;
public static final int buttonTintMode = 0x7f03004b;
public static final int checkboxStyle = 0x7f030075;
public static final int checkedTextViewStyle = 0x7f030076;
public static final int closeIcon = 0x7f030079;
public static final int closeItemLayout = 0x7f03007a;
public static final int collapseContentDescription = 0x7f03007b;
public static final int collapseIcon = 0x7f03007c;
public static final int color = 0x7f03007d;
public static final int colorAccent = 0x7f03007e;
public static final int colorBackgroundFloating = 0x7f03007f;
public static final int colorButtonNormal = 0x7f030080;
public static final int colorControlActivated = 0x7f030081;
public static final int colorControlHighlight = 0x7f030082;
public static final int colorControlNormal = 0x7f030083;
public static final int colorError = 0x7f030084;
public static final int colorPrimary = 0x7f030085;
public static final int colorPrimaryDark = 0x7f030086;
public static final int colorSwitchThumbNormal = 0x7f030088;
public static final int commitIcon = 0x7f030089;
public static final int contentDescription = 0x7f03008a;
public static final int contentInsetEnd = 0x7f03008b;
public static final int contentInsetEndWithActions = 0x7f03008c;
public static final int contentInsetLeft = 0x7f03008d;
public static final int contentInsetRight = 0x7f03008e;
public static final int contentInsetStart = 0x7f03008f;
public static final int contentInsetStartWithNavigation = 0x7f030090;
public static final int controlBackground = 0x7f030092;
public static final int customNavigationLayout = 0x7f030096;
public static final int defaultQueryHint = 0x7f03009b;
public static final int dialogPreferredPadding = 0x7f03009d;
public static final int dialogTheme = 0x7f03009e;
public static final int displayOptions = 0x7f03009f;
public static final int divider = 0x7f0300a0;
public static final int dividerHorizontal = 0x7f0300a1;
public static final int dividerPadding = 0x7f0300a2;
public static final int dividerVertical = 0x7f0300a3;
public static final int drawableSize = 0x7f0300a5;
public static final int drawerArrowStyle = 0x7f0300a6;
public static final int dropDownListViewStyle = 0x7f0300a7;
public static final int dropdownListPreferredItemHeight = 0x7f0300a8;
public static final int editTextBackground = 0x7f0300a9;
public static final int editTextColor = 0x7f0300aa;
public static final int editTextStyle = 0x7f0300ab;
public static final int elevation = 0x7f0300ac;
public static final int expandActivityOverflowButtonDrawable = 0x7f0300ae;
public static final int externalRouteEnabledDrawable = 0x7f0300af;
public static final int font = 0x7f0300b2;
public static final int fontFamily = 0x7f0300b3;
public static final int fontProviderAuthority = 0x7f0300b4;
public static final int fontProviderCerts = 0x7f0300b5;
public static final int fontProviderFetchStrategy = 0x7f0300b6;
public static final int fontProviderFetchTimeout = 0x7f0300b7;
public static final int fontProviderPackage = 0x7f0300b8;
public static final int fontProviderQuery = 0x7f0300b9;
public static final int fontStyle = 0x7f0300ba;
public static final int fontWeight = 0x7f0300bc;
public static final int gapBetweenBars = 0x7f0300bf;
public static final int goIcon = 0x7f0300c0;
public static final int height = 0x7f0300c1;
public static final int hideOnContentScroll = 0x7f0300c2;
public static final int homeAsUpIndicator = 0x7f0300c3;
public static final int homeLayout = 0x7f0300c4;
public static final int icon = 0x7f0300c5;
public static final int iconTint = 0x7f0300c6;
public static final int iconTintMode = 0x7f0300c7;
public static final int iconifiedByDefault = 0x7f0300c8;
public static final int imageButtonStyle = 0x7f0300cb;
public static final int indeterminateProgressStyle = 0x7f0300cc;
public static final int initialActivityCount = 0x7f0300ce;
public static final int isLightTheme = 0x7f0300d1;
public static final int itemPadding = 0x7f0300d2;
public static final int layout = 0x7f0300d9;
public static final int listChoiceBackgroundIndicator = 0x7f0300e1;
public static final int listDividerAlertDialog = 0x7f0300e2;
public static final int listItemLayout = 0x7f0300e3;
public static final int listLayout = 0x7f0300e4;
public static final int listMenuViewStyle = 0x7f0300e5;
public static final int listPopupWindowStyle = 0x7f0300e6;
public static final int listPreferredItemHeight = 0x7f0300e7;
public static final int listPreferredItemHeightLarge = 0x7f0300e8;
public static final int listPreferredItemHeightSmall = 0x7f0300e9;
public static final int listPreferredItemPaddingLeft = 0x7f0300ea;
public static final int listPreferredItemPaddingRight = 0x7f0300eb;
public static final int logo = 0x7f0300ed;
public static final int logoDescription = 0x7f0300ee;
public static final int maxButtonHeight = 0x7f0300f7;
public static final int measureWithLargestChild = 0x7f0300f8;
public static final int mediaRouteAudioTrackDrawable = 0x7f0300f9;
public static final int mediaRouteButtonStyle = 0x7f0300fa;
public static final int mediaRouteButtonTint = 0x7f0300fb;
public static final int mediaRouteCloseDrawable = 0x7f0300fc;
public static final int mediaRouteControlPanelThemeOverlay = 0x7f0300fd;
public static final int mediaRouteDefaultIconDrawable = 0x7f0300fe;
public static final int mediaRoutePauseDrawable = 0x7f0300ff;
public static final int mediaRoutePlayDrawable = 0x7f030100;
public static final int mediaRouteSpeakerGroupIconDrawable = 0x7f030101;
public static final int mediaRouteSpeakerIconDrawable = 0x7f030102;
public static final int mediaRouteStopDrawable = 0x7f030103;
public static final int mediaRouteTheme = 0x7f030104;
public static final int mediaRouteTvIconDrawable = 0x7f030105;
public static final int multiChoiceItemLayout = 0x7f030106;
public static final int navigationContentDescription = 0x7f030107;
public static final int navigationIcon = 0x7f030108;
public static final int navigationMode = 0x7f030109;
public static final int numericModifiers = 0x7f03010b;
public static final int overlapAnchor = 0x7f03010c;
public static final int paddingBottomNoButtons = 0x7f03010d;
public static final int paddingEnd = 0x7f03010e;
public static final int paddingStart = 0x7f03010f;
public static final int paddingTopNoTitle = 0x7f030110;
public static final int panelBackground = 0x7f030111;
public static final int panelMenuListTheme = 0x7f030112;
public static final int panelMenuListWidth = 0x7f030113;
public static final int popupMenuStyle = 0x7f030119;
public static final int popupTheme = 0x7f03011a;
public static final int popupWindowStyle = 0x7f03011b;
public static final int preserveIconSpacing = 0x7f03011c;
public static final int progressBarPadding = 0x7f03011d;
public static final int progressBarStyle = 0x7f03011e;
public static final int queryBackground = 0x7f03011f;
public static final int queryHint = 0x7f030120;
public static final int radioButtonStyle = 0x7f030121;
public static final int ratingBarStyle = 0x7f030122;
public static final int ratingBarStyleIndicator = 0x7f030123;
public static final int ratingBarStyleSmall = 0x7f030124;
public static final int searchHintIcon = 0x7f030129;
public static final int searchIcon = 0x7f03012a;
public static final int searchViewStyle = 0x7f03012c;
public static final int seekBarStyle = 0x7f030132;
public static final int selectableItemBackground = 0x7f030133;
public static final int selectableItemBackgroundBorderless = 0x7f030134;
public static final int showAsAction = 0x7f030137;
public static final int showDividers = 0x7f030138;
public static final int showText = 0x7f030139;
public static final int showTitle = 0x7f03013a;
public static final int singleChoiceItemLayout = 0x7f03013b;
public static final int spinBars = 0x7f03013d;
public static final int spinnerDropDownItemStyle = 0x7f03013e;
public static final int spinnerStyle = 0x7f03013f;
public static final int splitTrack = 0x7f030140;
public static final int srcCompat = 0x7f030141;
public static final int state_above_anchor = 0x7f030142;
public static final int subMenuArrow = 0x7f030144;
public static final int submitBackground = 0x7f030145;
public static final int subtitle = 0x7f030147;
public static final int subtitleTextAppearance = 0x7f030148;
public static final int subtitleTextColor = 0x7f030149;
public static final int subtitleTextStyle = 0x7f03014a;
public static final int suggestionRowLayout = 0x7f03014b;
public static final int switchMinWidth = 0x7f03014c;
public static final int switchPadding = 0x7f03014d;
public static final int switchStyle = 0x7f03014e;
public static final int switchTextAppearance = 0x7f03014f;
public static final int textAllCaps = 0x7f030150;
public static final int textAppearanceLargePopupMenu = 0x7f030151;
public static final int textAppearanceListItem = 0x7f030152;
public static final int textAppearanceListItemSecondary = 0x7f030153;
public static final int textAppearanceListItemSmall = 0x7f030154;
public static final int textAppearancePopupMenuHeader = 0x7f030155;
public static final int textAppearanceSearchResultSubtitle = 0x7f030156;
public static final int textAppearanceSearchResultTitle = 0x7f030157;
public static final int textAppearanceSmallPopupMenu = 0x7f030158;
public static final int textColorAlertDialogListItem = 0x7f030159;
public static final int textColorSearchUrl = 0x7f03015a;
public static final int theme = 0x7f03015b;
public static final int thickness = 0x7f03015c;
public static final int thumbTextPadding = 0x7f03015d;
public static final int thumbTint = 0x7f03015e;
public static final int thumbTintMode = 0x7f03015f;
public static final int tickMark = 0x7f030160;
public static final int tickMarkTint = 0x7f030161;
public static final int tickMarkTintMode = 0x7f030162;
public static final int tint = 0x7f030163;
public static final int tintMode = 0x7f030164;
public static final int title = 0x7f030165;
public static final int titleMargin = 0x7f030166;
public static final int titleMarginBottom = 0x7f030167;
public static final int titleMarginEnd = 0x7f030168;
public static final int titleMarginStart = 0x7f030169;
public static final int titleMarginTop = 0x7f03016a;
public static final int titleMargins = 0x7f03016b;
public static final int titleTextAppearance = 0x7f03016c;
public static final int titleTextColor = 0x7f03016d;
public static final int titleTextStyle = 0x7f03016e;
public static final int toolbarNavigationButtonStyle = 0x7f030170;
public static final int toolbarStyle = 0x7f030171;
public static final int tooltipForegroundColor = 0x7f030173;
public static final int tooltipFrameBackground = 0x7f030174;
public static final int tooltipText = 0x7f030175;
public static final int track = 0x7f030176;
public static final int trackTint = 0x7f030177;
public static final int trackTintMode = 0x7f030178;
public static final int voiceIcon = 0x7f030187;
public static final int windowActionBar = 0x7f030188;
public static final int windowActionBarOverlay = 0x7f030189;
public static final int windowActionModeOverlay = 0x7f03018a;
public static final int windowFixedHeightMajor = 0x7f03018b;
public static final int windowFixedHeightMinor = 0x7f03018c;
public static final int windowFixedWidthMajor = 0x7f03018d;
public static final int windowFixedWidthMinor = 0x7f03018e;
public static final int windowMinWidthMajor = 0x7f03018f;
public static final int windowMinWidthMinor = 0x7f030190;
public static final int windowNoTitle = 0x7f030191;
}
public static final class 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 {
public static final int abc_background_cache_hint_selector_material_dark = 0x7f050000;
public static final int abc_background_cache_hint_selector_material_light = 0x7f050001;
public static final int abc_btn_colored_borderless_text_material = 0x7f050002;
public static final int abc_btn_colored_text_material = 0x7f050003;
public static final int abc_color_highlight_material = 0x7f050004;
public static final int abc_hint_foreground_material_dark = 0x7f050005;
public static final int abc_hint_foreground_material_light = 0x7f050006;
public static final int abc_input_method_navigation_guard = 0x7f050007;
public static final int abc_primary_text_disable_only_material_dark = 0x7f050008;
public static final int abc_primary_text_disable_only_material_light = 0x7f050009;
public static final int abc_primary_text_material_dark = 0x7f05000a;
public static final int abc_primary_text_material_light = 0x7f05000b;
public static final int abc_search_url_text = 0x7f05000c;
public static final int abc_search_url_text_normal = 0x7f05000d;
public static final int abc_search_url_text_pressed = 0x7f05000e;
public static final int abc_search_url_text_selected = 0x7f05000f;
public static final int abc_secondary_text_material_dark = 0x7f050010;
public static final int abc_secondary_text_material_light = 0x7f050011;
public static final int abc_tint_btn_checkable = 0x7f050012;
public static final int abc_tint_default = 0x7f050013;
public static final int abc_tint_edittext = 0x7f050014;
public static final int abc_tint_seek_thumb = 0x7f050015;
public static final int abc_tint_spinner = 0x7f050016;
public static final int abc_tint_switch_track = 0x7f050017;
public static final int accent_material_dark = 0x7f050018;
public static final int accent_material_light = 0x7f050019;
public static final int background_floating_material_dark = 0x7f05001d;
public static final int background_floating_material_light = 0x7f05001e;
public static final int background_material_dark = 0x7f05001f;
public static final int background_material_light = 0x7f050020;
public static final int bright_foreground_disabled_material_dark = 0x7f050026;
public static final int bright_foreground_disabled_material_light = 0x7f050027;
public static final int bright_foreground_inverse_material_dark = 0x7f050028;
public static final int bright_foreground_inverse_material_light = 0x7f050029;
public static final int bright_foreground_material_dark = 0x7f05002a;
public static final int bright_foreground_material_light = 0x7f05002b;
public static final int button_material_dark = 0x7f05002c;
public static final int button_material_light = 0x7f05002d;
public static final int dim_foreground_disabled_material_dark = 0x7f050048;
public static final int dim_foreground_disabled_material_light = 0x7f050049;
public static final int dim_foreground_material_dark = 0x7f05004a;
public static final int dim_foreground_material_light = 0x7f05004b;
public static final int foreground_material_dark = 0x7f05004e;
public static final int foreground_material_light = 0x7f05004f;
public static final int highlighted_text_material_dark = 0x7f050053;
public static final int highlighted_text_material_light = 0x7f050054;
public static final int material_blue_grey_800 = 0x7f050056;
public static final int material_blue_grey_900 = 0x7f050057;
public static final int material_blue_grey_950 = 0x7f050058;
public static final int material_deep_teal_200 = 0x7f050059;
public static final int material_deep_teal_500 = 0x7f05005a;
public static final int material_grey_100 = 0x7f05005b;
public static final int material_grey_300 = 0x7f05005c;
public static final int material_grey_50 = 0x7f05005d;
public static final int material_grey_600 = 0x7f05005e;
public static final int material_grey_800 = 0x7f05005f;
public static final int material_grey_850 = 0x7f050060;
public static final int material_grey_900 = 0x7f050061;
public static final int notification_action_color_filter = 0x7f050062;
public static final int notification_icon_bg_color = 0x7f050063;
public static final int notification_material_background_media_default_color = 0x7f050064;
public static final int primary_dark_material_dark = 0x7f05006b;
public static final int primary_dark_material_light = 0x7f05006c;
public static final int primary_material_dark = 0x7f05006d;
public static final int primary_material_light = 0x7f05006e;
public static final int primary_text_default_material_dark = 0x7f05006f;
public static final int primary_text_default_material_light = 0x7f050070;
public static final int primary_text_disabled_material_dark = 0x7f050071;
public static final int primary_text_disabled_material_light = 0x7f050072;
public static final int ripple_material_dark = 0x7f050073;
public static final int ripple_material_light = 0x7f050074;
public static final int secondary_text_default_material_dark = 0x7f050075;
public static final int secondary_text_default_material_light = 0x7f050076;
public static final int secondary_text_disabled_material_dark = 0x7f050077;
public static final int secondary_text_disabled_material_light = 0x7f050078;
public static final int switch_thumb_disabled_material_dark = 0x7f050079;
public static final int switch_thumb_disabled_material_light = 0x7f05007a;
public static final int switch_thumb_material_dark = 0x7f05007b;
public static final int switch_thumb_material_light = 0x7f05007c;
public static final int switch_thumb_normal_material_dark = 0x7f05007d;
public static final int switch_thumb_normal_material_light = 0x7f05007e;
public static final int tooltip_background_dark = 0x7f05007f;
public static final int tooltip_background_light = 0x7f050080;
}
public static final class 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_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_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 = 0x7f060068;
public static final int compat_button_inset_vertical_material = 0x7f060069;
public static final int compat_button_padding_horizontal_material = 0x7f06006a;
public static final int compat_button_padding_vertical_material = 0x7f06006b;
public static final int compat_control_corner_material = 0x7f06006c;
public static final int disabled_alpha_material_dark = 0x7f06006f;
public static final int disabled_alpha_material_light = 0x7f060070;
public static final int highlight_alpha_material_colored = 0x7f060073;
public static final int highlight_alpha_material_dark = 0x7f060074;
public static final int highlight_alpha_material_light = 0x7f060075;
public static final int hint_alpha_material_dark = 0x7f060076;
public static final int hint_alpha_material_light = 0x7f060077;
public static final int hint_pressed_alpha_material_dark = 0x7f060078;
public static final int hint_pressed_alpha_material_light = 0x7f060079;
public static final int mr_controller_volume_group_list_item_height = 0x7f060084;
public static final int mr_controller_volume_group_list_item_icon_size = 0x7f060085;
public static final int mr_controller_volume_group_list_max_height = 0x7f060086;
public static final int mr_controller_volume_group_list_padding_top = 0x7f060087;
public static final int mr_dialog_fixed_width_major = 0x7f060088;
public static final int mr_dialog_fixed_width_minor = 0x7f060089;
public static final int notification_action_icon_size = 0x7f06008a;
public static final int notification_action_text_size = 0x7f06008b;
public static final int notification_big_circle_margin = 0x7f06008c;
public static final int notification_content_margin_start = 0x7f06008d;
public static final int notification_large_icon_height = 0x7f06008e;
public static final int notification_large_icon_width = 0x7f06008f;
public static final int notification_main_column_padding_top = 0x7f060090;
public static final int notification_media_narrow_margin = 0x7f060091;
public static final int notification_right_icon_size = 0x7f060092;
public static final int notification_right_side_padding_top = 0x7f060093;
public static final int notification_small_icon_background_padding = 0x7f060094;
public static final int notification_small_icon_size_as_large = 0x7f060095;
public static final int notification_subtext_size = 0x7f060096;
public static final int notification_top_pad = 0x7f060097;
public static final int notification_top_pad_large_text = 0x7f060098;
public static final int tooltip_corner_radius = 0x7f0600ab;
public static final int tooltip_horizontal_padding = 0x7f0600ac;
public static final int tooltip_margin = 0x7f0600ad;
public static final int tooltip_precise_anchor_extra_offset = 0x7f0600ae;
public static final int tooltip_precise_anchor_threshold = 0x7f0600af;
public static final int tooltip_vertical_padding = 0x7f0600b0;
public static final int tooltip_y_offset_non_touch = 0x7f0600b1;
public static final int tooltip_y_offset_touch = 0x7f0600b2;
}
public static final class drawable {
public static final int abc_ab_share_pack_mtrl_alpha = 0x7f070000;
public static final int abc_action_bar_item_background_material = 0x7f070001;
public static final int abc_btn_borderless_material = 0x7f070002;
public static final int abc_btn_check_material = 0x7f070003;
public static final int abc_btn_check_to_on_mtrl_000 = 0x7f070004;
public static final int abc_btn_check_to_on_mtrl_015 = 0x7f070005;
public static final int abc_btn_colored_material = 0x7f070006;
public static final int abc_btn_default_mtrl_shape = 0x7f070007;
public static final int abc_btn_radio_material = 0x7f070008;
public static final int abc_btn_radio_to_on_mtrl_000 = 0x7f070009;
public static final int abc_btn_radio_to_on_mtrl_015 = 0x7f07000a;
public static final int abc_btn_switch_to_on_mtrl_00001 = 0x7f07000b;
public static final int abc_btn_switch_to_on_mtrl_00012 = 0x7f07000c;
public static final int abc_cab_background_internal_bg = 0x7f07000d;
public static final int abc_cab_background_top_material = 0x7f07000e;
public static final int abc_cab_background_top_mtrl_alpha = 0x7f07000f;
public static final int abc_control_background_material = 0x7f070010;
public static final int abc_dialog_material_background = 0x7f070011;
public static final int abc_edit_text_material = 0x7f070012;
public static final int abc_ic_ab_back_material = 0x7f070013;
public static final int abc_ic_arrow_drop_right_black_24dp = 0x7f070014;
public static final int abc_ic_clear_material = 0x7f070015;
public static final int abc_ic_commit_search_api_mtrl_alpha = 0x7f070016;
public static final int abc_ic_go_search_api_material = 0x7f070017;
public static final int abc_ic_menu_copy_mtrl_am_alpha = 0x7f070018;
public static final int abc_ic_menu_cut_mtrl_alpha = 0x7f070019;
public static final int abc_ic_menu_overflow_material = 0x7f07001a;
public static final int abc_ic_menu_paste_mtrl_am_alpha = 0x7f07001b;
public static final int abc_ic_menu_selectall_mtrl_alpha = 0x7f07001c;
public static final int abc_ic_menu_share_mtrl_alpha = 0x7f07001d;
public static final int abc_ic_search_api_material = 0x7f07001e;
public static final int abc_ic_star_black_16dp = 0x7f07001f;
public static final int abc_ic_star_black_36dp = 0x7f070020;
public static final int abc_ic_star_black_48dp = 0x7f070021;
public static final int abc_ic_star_half_black_16dp = 0x7f070022;
public static final int abc_ic_star_half_black_36dp = 0x7f070023;
public static final int abc_ic_star_half_black_48dp = 0x7f070024;
public static final int abc_ic_voice_search_api_material = 0x7f070025;
public static final int abc_item_background_holo_dark = 0x7f070026;
public static final int abc_item_background_holo_light = 0x7f070027;
public static final int abc_list_divider_mtrl_alpha = 0x7f070029;
public static final int abc_list_focused_holo = 0x7f07002a;
public static final int abc_list_longpressed_holo = 0x7f07002b;
public static final int abc_list_pressed_holo_dark = 0x7f07002c;
public static final int abc_list_pressed_holo_light = 0x7f07002d;
public static final int abc_list_selector_background_transition_holo_dark = 0x7f07002e;
public static final int abc_list_selector_background_transition_holo_light = 0x7f07002f;
public static final int abc_list_selector_disabled_holo_dark = 0x7f070030;
public static final int abc_list_selector_disabled_holo_light = 0x7f070031;
public static final int abc_list_selector_holo_dark = 0x7f070032;
public static final int abc_list_selector_holo_light = 0x7f070033;
public static final int abc_menu_hardkey_panel_mtrl_mult = 0x7f070034;
public static final int abc_popup_background_mtrl_mult = 0x7f070035;
public static final int abc_ratingbar_indicator_material = 0x7f070036;
public static final int abc_ratingbar_material = 0x7f070037;
public static final int abc_ratingbar_small_material = 0x7f070038;
public static final int abc_scrubber_control_off_mtrl_alpha = 0x7f070039;
public static final int abc_scrubber_control_to_pressed_mtrl_000 = 0x7f07003a;
public static final int abc_scrubber_control_to_pressed_mtrl_005 = 0x7f07003b;
public static final int abc_scrubber_primary_mtrl_alpha = 0x7f07003c;
public static final int abc_scrubber_track_mtrl_alpha = 0x7f07003d;
public static final int abc_seekbar_thumb_material = 0x7f07003e;
public static final int abc_seekbar_tick_mark_material = 0x7f07003f;
public static final int abc_seekbar_track_material = 0x7f070040;
public static final int abc_spinner_mtrl_am_alpha = 0x7f070041;
public static final int abc_spinner_textfield_background_material = 0x7f070042;
public static final int abc_switch_thumb_material = 0x7f070043;
public static final int abc_switch_track_mtrl_alpha = 0x7f070044;
public static final int abc_tab_indicator_material = 0x7f070045;
public static final int abc_tab_indicator_mtrl_alpha = 0x7f070046;
public static final int abc_text_cursor_material = 0x7f070047;
public static final int abc_text_select_handle_left_mtrl_dark = 0x7f070048;
public static final int abc_text_select_handle_left_mtrl_light = 0x7f070049;
public static final int abc_text_select_handle_middle_mtrl_dark = 0x7f07004a;
public static final int abc_text_select_handle_middle_mtrl_light = 0x7f07004b;
public static final int abc_text_select_handle_right_mtrl_dark = 0x7f07004c;
public static final int abc_text_select_handle_right_mtrl_light = 0x7f07004d;
public static final int abc_textfield_activated_mtrl_alpha = 0x7f07004e;
public static final int abc_textfield_default_mtrl_alpha = 0x7f07004f;
public static final int abc_textfield_search_activated_mtrl_alpha = 0x7f070050;
public static final int abc_textfield_search_default_mtrl_alpha = 0x7f070051;
public static final int abc_textfield_search_material = 0x7f070052;
public static final int abc_vector_test = 0x7f070053;
public static final int ic_audiotrack_dark = 0x7f0700c2;
public static final int ic_audiotrack_light = 0x7f0700c3;
public static final int ic_dialog_close_dark = 0x7f0700c8;
public static final int ic_dialog_close_light = 0x7f0700c9;
public static final int ic_group_collapse_00 = 0x7f0700cd;
public static final int ic_group_collapse_01 = 0x7f0700ce;
public static final int ic_group_collapse_02 = 0x7f0700cf;
public static final int ic_group_collapse_03 = 0x7f0700d0;
public static final int ic_group_collapse_04 = 0x7f0700d1;
public static final int ic_group_collapse_05 = 0x7f0700d2;
public static final int ic_group_collapse_06 = 0x7f0700d3;
public static final int ic_group_collapse_07 = 0x7f0700d4;
public static final int ic_group_collapse_08 = 0x7f0700d5;
public static final int ic_group_collapse_09 = 0x7f0700d6;
public static final int ic_group_collapse_10 = 0x7f0700d7;
public static final int ic_group_collapse_11 = 0x7f0700d8;
public static final int ic_group_collapse_12 = 0x7f0700d9;
public static final int ic_group_collapse_13 = 0x7f0700da;
public static final int ic_group_collapse_14 = 0x7f0700db;
public static final int ic_group_collapse_15 = 0x7f0700dc;
public static final int ic_group_expand_00 = 0x7f0700dd;
public static final int ic_group_expand_01 = 0x7f0700de;
public static final int ic_group_expand_02 = 0x7f0700df;
public static final int ic_group_expand_03 = 0x7f0700e0;
public static final int ic_group_expand_04 = 0x7f0700e1;
public static final int ic_group_expand_05 = 0x7f0700e2;
public static final int ic_group_expand_06 = 0x7f0700e3;
public static final int ic_group_expand_07 = 0x7f0700e4;
public static final int ic_group_expand_08 = 0x7f0700e5;
public static final int ic_group_expand_09 = 0x7f0700e6;
public static final int ic_group_expand_10 = 0x7f0700e7;
public static final int ic_group_expand_11 = 0x7f0700e8;
public static final int ic_group_expand_12 = 0x7f0700e9;
public static final int ic_group_expand_13 = 0x7f0700ea;
public static final int ic_group_expand_14 = 0x7f0700eb;
public static final int ic_group_expand_15 = 0x7f0700ec;
public static final int ic_media_pause_dark = 0x7f0700ef;
public static final int ic_media_pause_light = 0x7f0700f0;
public static final int ic_media_play_dark = 0x7f0700f1;
public static final int ic_media_play_light = 0x7f0700f2;
public static final int ic_media_stop_dark = 0x7f0700f3;
public static final int ic_media_stop_light = 0x7f0700f4;
public static final int ic_mr_button_connected_00_dark = 0x7f0700f7;
public static final int ic_mr_button_connected_00_light = 0x7f0700f8;
public static final int ic_mr_button_connected_01_dark = 0x7f0700f9;
public static final int ic_mr_button_connected_01_light = 0x7f0700fa;
public static final int ic_mr_button_connected_02_dark = 0x7f0700fb;
public static final int ic_mr_button_connected_02_light = 0x7f0700fc;
public static final int ic_mr_button_connected_03_dark = 0x7f0700fd;
public static final int ic_mr_button_connected_03_light = 0x7f0700fe;
public static final int ic_mr_button_connected_04_dark = 0x7f0700ff;
public static final int ic_mr_button_connected_04_light = 0x7f070100;
public static final int ic_mr_button_connected_05_dark = 0x7f070101;
public static final int ic_mr_button_connected_05_light = 0x7f070102;
public static final int ic_mr_button_connected_06_dark = 0x7f070103;
public static final int ic_mr_button_connected_06_light = 0x7f070104;
public static final int ic_mr_button_connected_07_dark = 0x7f070105;
public static final int ic_mr_button_connected_07_light = 0x7f070106;
public static final int ic_mr_button_connected_08_dark = 0x7f070107;
public static final int ic_mr_button_connected_08_light = 0x7f070108;
public static final int ic_mr_button_connected_09_dark = 0x7f070109;
public static final int ic_mr_button_connected_09_light = 0x7f07010a;
public static final int ic_mr_button_connected_10_dark = 0x7f07010b;
public static final int ic_mr_button_connected_10_light = 0x7f07010c;
public static final int ic_mr_button_connected_11_dark = 0x7f07010d;
public static final int ic_mr_button_connected_11_light = 0x7f07010e;
public static final int ic_mr_button_connected_12_dark = 0x7f07010f;
public static final int ic_mr_button_connected_12_light = 0x7f070110;
public static final int ic_mr_button_connected_13_dark = 0x7f070111;
public static final int ic_mr_button_connected_13_light = 0x7f070112;
public static final int ic_mr_button_connected_14_dark = 0x7f070113;
public static final int ic_mr_button_connected_14_light = 0x7f070114;
public static final int ic_mr_button_connected_15_dark = 0x7f070115;
public static final int ic_mr_button_connected_15_light = 0x7f070116;
public static final int ic_mr_button_connected_16_dark = 0x7f070117;
public static final int ic_mr_button_connected_16_light = 0x7f070118;
public static final int ic_mr_button_connected_17_dark = 0x7f070119;
public static final int ic_mr_button_connected_17_light = 0x7f07011a;
public static final int ic_mr_button_connected_18_dark = 0x7f07011b;
public static final int ic_mr_button_connected_18_light = 0x7f07011c;
public static final int ic_mr_button_connected_19_dark = 0x7f07011d;
public static final int ic_mr_button_connected_19_light = 0x7f07011e;
public static final int ic_mr_button_connected_20_dark = 0x7f07011f;
public static final int ic_mr_button_connected_20_light = 0x7f070120;
public static final int ic_mr_button_connected_21_dark = 0x7f070121;
public static final int ic_mr_button_connected_21_light = 0x7f070122;
public static final int ic_mr_button_connected_22_dark = 0x7f070123;
public static final int ic_mr_button_connected_22_light = 0x7f070124;
public static final int ic_mr_button_connected_23_dark = 0x7f070125;
public static final int ic_mr_button_connected_23_light = 0x7f070126;
public static final int ic_mr_button_connected_24_dark = 0x7f070127;
public static final int ic_mr_button_connected_24_light = 0x7f070128;
public static final int ic_mr_button_connected_25_dark = 0x7f070129;
public static final int ic_mr_button_connected_25_light = 0x7f07012a;
public static final int ic_mr_button_connected_26_dark = 0x7f07012b;
public static final int ic_mr_button_connected_26_light = 0x7f07012c;
public static final int ic_mr_button_connected_27_dark = 0x7f07012d;
public static final int ic_mr_button_connected_27_light = 0x7f07012e;
public static final int ic_mr_button_connected_28_dark = 0x7f07012f;
public static final int ic_mr_button_connected_28_light = 0x7f070130;
public static final int ic_mr_button_connected_29_dark = 0x7f070131;
public static final int ic_mr_button_connected_29_light = 0x7f070132;
public static final int ic_mr_button_connected_30_dark = 0x7f070133;
public static final int ic_mr_button_connected_30_light = 0x7f070134;
public static final int ic_mr_button_connecting_00_dark = 0x7f070135;
public static final int ic_mr_button_connecting_00_light = 0x7f070136;
public static final int ic_mr_button_connecting_01_dark = 0x7f070137;
public static final int ic_mr_button_connecting_01_light = 0x7f070138;
public static final int ic_mr_button_connecting_02_dark = 0x7f070139;
public static final int ic_mr_button_connecting_02_light = 0x7f07013a;
public static final int ic_mr_button_connecting_03_dark = 0x7f07013b;
public static final int ic_mr_button_connecting_03_light = 0x7f07013c;
public static final int ic_mr_button_connecting_04_dark = 0x7f07013d;
public static final int ic_mr_button_connecting_04_light = 0x7f07013e;
public static final int ic_mr_button_connecting_05_dark = 0x7f07013f;
public static final int ic_mr_button_connecting_05_light = 0x7f070140;
public static final int ic_mr_button_connecting_06_dark = 0x7f070141;
public static final int ic_mr_button_connecting_06_light = 0x7f070142;
public static final int ic_mr_button_connecting_07_dark = 0x7f070143;
public static final int ic_mr_button_connecting_07_light = 0x7f070144;
public static final int ic_mr_button_connecting_08_dark = 0x7f070145;
public static final int ic_mr_button_connecting_08_light = 0x7f070146;
public static final int ic_mr_button_connecting_09_dark = 0x7f070147;
public static final int ic_mr_button_connecting_09_light = 0x7f070148;
public static final int ic_mr_button_connecting_10_dark = 0x7f070149;
public static final int ic_mr_button_connecting_10_light = 0x7f07014a;
public static final int ic_mr_button_connecting_11_dark = 0x7f07014b;
public static final int ic_mr_button_connecting_11_light = 0x7f07014c;
public static final int ic_mr_button_connecting_12_dark = 0x7f07014d;
public static final int ic_mr_button_connecting_12_light = 0x7f07014e;
public static final int ic_mr_button_connecting_13_dark = 0x7f07014f;
public static final int ic_mr_button_connecting_13_light = 0x7f070150;
public static final int ic_mr_button_connecting_14_dark = 0x7f070151;
public static final int ic_mr_button_connecting_14_light = 0x7f070152;
public static final int ic_mr_button_connecting_15_dark = 0x7f070153;
public static final int ic_mr_button_connecting_15_light = 0x7f070154;
public static final int ic_mr_button_connecting_16_dark = 0x7f070155;
public static final int ic_mr_button_connecting_16_light = 0x7f070156;
public static final int ic_mr_button_connecting_17_dark = 0x7f070157;
public static final int ic_mr_button_connecting_17_light = 0x7f070158;
public static final int ic_mr_button_connecting_18_dark = 0x7f070159;
public static final int ic_mr_button_connecting_18_light = 0x7f07015a;
public static final int ic_mr_button_connecting_19_dark = 0x7f07015b;
public static final int ic_mr_button_connecting_19_light = 0x7f07015c;
public static final int ic_mr_button_connecting_20_dark = 0x7f07015d;
public static final int ic_mr_button_connecting_20_light = 0x7f07015e;
public static final int ic_mr_button_connecting_21_dark = 0x7f07015f;
public static final int ic_mr_button_connecting_21_light = 0x7f070160;
public static final int ic_mr_button_connecting_22_dark = 0x7f070161;
public static final int ic_mr_button_connecting_22_light = 0x7f070162;
public static final int ic_mr_button_connecting_23_dark = 0x7f070163;
public static final int ic_mr_button_connecting_23_light = 0x7f070164;
public static final int ic_mr_button_connecting_24_dark = 0x7f070165;
public static final int ic_mr_button_connecting_24_light = 0x7f070166;
public static final int ic_mr_button_connecting_25_dark = 0x7f070167;
public static final int ic_mr_button_connecting_25_light = 0x7f070168;
public static final int ic_mr_button_connecting_26_dark = 0x7f070169;
public static final int ic_mr_button_connecting_26_light = 0x7f07016a;
public static final int ic_mr_button_connecting_27_dark = 0x7f07016b;
public static final int ic_mr_button_connecting_27_light = 0x7f07016c;
public static final int ic_mr_button_connecting_28_dark = 0x7f07016d;
public static final int ic_mr_button_connecting_28_light = 0x7f07016e;
public static final int ic_mr_button_connecting_29_dark = 0x7f07016f;
public static final int ic_mr_button_connecting_29_light = 0x7f070170;
public static final int ic_mr_button_connecting_30_dark = 0x7f070171;
public static final int ic_mr_button_connecting_30_light = 0x7f070172;
public static final int ic_mr_button_disabled_dark = 0x7f070173;
public static final int ic_mr_button_disabled_light = 0x7f070174;
public static final int ic_mr_button_disconnected_dark = 0x7f070175;
public static final int ic_mr_button_disconnected_light = 0x7f070176;
public static final int ic_mr_button_grey = 0x7f070177;
public static final int ic_vol_type_speaker_dark = 0x7f070180;
public static final int ic_vol_type_speaker_group_dark = 0x7f070181;
public static final int ic_vol_type_speaker_group_light = 0x7f070182;
public static final int ic_vol_type_speaker_light = 0x7f070183;
public static final int ic_vol_type_tv_dark = 0x7f070184;
public static final int ic_vol_type_tv_light = 0x7f070185;
public static final int mr_button_connected_dark = 0x7f07018b;
public static final int mr_button_connected_light = 0x7f07018c;
public static final int mr_button_connecting_dark = 0x7f07018d;
public static final int mr_button_connecting_light = 0x7f07018e;
public static final int mr_button_dark = 0x7f07018f;
public static final int mr_button_light = 0x7f070190;
public static final int mr_dialog_close_dark = 0x7f070191;
public static final int mr_dialog_close_light = 0x7f070192;
public static final int mr_dialog_material_background_dark = 0x7f070193;
public static final int mr_dialog_material_background_light = 0x7f070194;
public static final int mr_group_collapse = 0x7f070195;
public static final int mr_group_expand = 0x7f070196;
public static final int mr_media_pause_dark = 0x7f070197;
public static final int mr_media_pause_light = 0x7f070198;
public static final int mr_media_play_dark = 0x7f070199;
public static final int mr_media_play_light = 0x7f07019a;
public static final int mr_media_stop_dark = 0x7f07019b;
public static final int mr_media_stop_light = 0x7f07019c;
public static final int mr_vol_type_audiotrack_dark = 0x7f07019d;
public static final int mr_vol_type_audiotrack_light = 0x7f07019e;
public static final int notification_action_background = 0x7f07019f;
public static final int notification_bg = 0x7f0701a0;
public static final int notification_bg_low = 0x7f0701a1;
public static final int notification_bg_low_normal = 0x7f0701a2;
public static final int notification_bg_low_pressed = 0x7f0701a3;
public static final int notification_bg_normal = 0x7f0701a4;
public static final int notification_bg_normal_pressed = 0x7f0701a5;
public static final int notification_icon_background = 0x7f0701a6;
public static final int notification_template_icon_bg = 0x7f0701a7;
public static final int notification_template_icon_low_bg = 0x7f0701a8;
public static final int notification_tile_bg = 0x7f0701a9;
public static final int notify_panel_notification_icon_bg = 0x7f0701aa;
public static final int tooltip_frame_dark = 0x7f0701e0;
public static final int tooltip_frame_light = 0x7f0701e1;
}
public static final class id {
public static final int action0 = 0x7f080006;
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 = 0x7f08001e;
public static final int alertTitle = 0x7f080021;
public static final int async = 0x7f080028;
public static final int blocking = 0x7f08002e;
public static final int buttonPanel = 0x7f08003f;
public static final int cancel_action = 0x7f080049;
public static final int checkbox = 0x7f08005b;
public static final int chronometer = 0x7f08005c;
public static final int contentPanel = 0x7f080065;
public static final int custom = 0x7f080068;
public static final int customPanel = 0x7f080069;
public static final int decor_content_parent = 0x7f08006c;
public static final int default_activity_button = 0x7f08006d;
public static final int edit_query = 0x7f080075;
public static final int end_padder = 0x7f080078;
public static final int expand_activities_button = 0x7f08007a;
public static final int expanded_menu = 0x7f08007c;
public static final int forever = 0x7f080080;
public static final int home = 0x7f08008a;
public static final int icon = 0x7f08008e;
public static final int icon_group = 0x7f08008f;
public static final int image = 0x7f080094;
public static final int info = 0x7f0800a0;
public static final int italic = 0x7f0800a7;
public static final int line1 = 0x7f0800be;
public static final int line3 = 0x7f0800bf;
public static final int listMode = 0x7f0800c0;
public static final int list_item = 0x7f0800c3;
public static final int media_actions = 0x7f0800cf;
public static final int message = 0x7f0800d0;
public static final int mr_art = 0x7f0800d3;
public static final int mr_chooser_list = 0x7f0800d4;
public static final int mr_chooser_route_desc = 0x7f0800d5;
public static final int mr_chooser_route_icon = 0x7f0800d6;
public static final int mr_chooser_route_name = 0x7f0800d7;
public static final int mr_chooser_title = 0x7f0800d8;
public static final int mr_close = 0x7f0800d9;
public static final int mr_control_divider = 0x7f0800da;
public static final int mr_control_playback_ctrl = 0x7f0800db;
public static final int mr_control_subtitle = 0x7f0800dc;
public static final int mr_control_title = 0x7f0800dd;
public static final int mr_control_title_container = 0x7f0800de;
public static final int mr_custom_control = 0x7f0800df;
public static final int mr_default_control = 0x7f0800e0;
public static final int mr_dialog_area = 0x7f0800e1;
public static final int mr_expandable_area = 0x7f0800e2;
public static final int mr_group_expand_collapse = 0x7f0800e3;
public static final int mr_media_main_control = 0x7f0800e4;
public static final int mr_name = 0x7f0800e5;
public static final int mr_playback_control = 0x7f0800e6;
public static final int mr_title_bar = 0x7f0800e7;
public static final int mr_volume_control = 0x7f0800e8;
public static final int mr_volume_group_list = 0x7f0800e9;
public static final int mr_volume_item_icon = 0x7f0800ea;
public static final int mr_volume_slider = 0x7f0800eb;
public static final int multiply = 0x7f0800ec;
public static final int none = 0x7f0800ee;
public static final int normal = 0x7f0800ef;
public static final int notification_background = 0x7f0800f0;
public static final int notification_main_column = 0x7f0800f1;
public static final int notification_main_column_container = 0x7f0800f2;
public static final int parentPanel = 0x7f0800f5;
public static final int progress_circular = 0x7f080102;
public static final int progress_horizontal = 0x7f080103;
public static final int radio = 0x7f080104;
public static final int right_icon = 0x7f080107;
public static final int right_side = 0x7f080108;
public static final int screen = 0x7f08010b;
public static final int scrollIndicatorDown = 0x7f08010c;
public static final int scrollIndicatorUp = 0x7f08010d;
public static final int scrollView = 0x7f08010e;
public static final int search_badge = 0x7f08010f;
public static final int search_bar = 0x7f080110;
public static final int search_button = 0x7f080111;
public static final int search_close_btn = 0x7f080112;
public static final int search_edit_frame = 0x7f080113;
public static final int search_go_btn = 0x7f080114;
public static final int search_mag_icon = 0x7f080115;
public static final int search_plate = 0x7f080116;
public static final int search_src_text = 0x7f080117;
public static final int search_voice_btn = 0x7f080118;
public static final int select_dialog_listview = 0x7f08011b;
public static final int shortcut = 0x7f08011d;
public static final int spacer = 0x7f080122;
public static final int split_action_bar = 0x7f080123;
public static final int src_atop = 0x7f080124;
public static final int src_in = 0x7f080125;
public static final int src_over = 0x7f080126;
public static final int status_bar_latest_event_content = 0x7f08012a;
public static final int submenuarrow = 0x7f08012d;
public static final int submit_area = 0x7f08012e;
public static final int tabMode = 0x7f080130;
public static final int text = 0x7f080137;
public static final int text2 = 0x7f080139;
public static final int textSpacerNoButtons = 0x7f08013a;
public static final int textSpacerNoTitle = 0x7f08013b;
public static final int time = 0x7f08013f;
public static final int title = 0x7f080140;
public static final int titleDividerNoCustom = 0x7f080141;
public static final int title_template = 0x7f080142;
public static final int topPanel = 0x7f080146;
public static final int uniform = 0x7f080163;
public static final int up = 0x7f080164;
public static final int volume_item_container = 0x7f080167;
public static final int wrap_content = 0x7f08016b;
}
public static final class 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 = 0x7f090002;
public static final int config_tooltipAnimTime = 0x7f090004;
public static final int mr_controller_volume_group_list_animation_duration_ms = 0x7f090006;
public static final int mr_controller_volume_group_list_fade_in_duration_ms = 0x7f090007;
public static final int mr_controller_volume_group_list_fade_out_duration_ms = 0x7f090008;
public static final int status_bar_notification_info_maxnum = 0x7f090009;
}
public static final class interpolator {
public static final int mr_fast_out_slow_in = 0x7f0a0000;
public static final int mr_linear_out_slow_in = 0x7f0a0001;
}
public static final class 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_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 mr_chooser_dialog = 0x7f0b0037;
public static final int mr_chooser_list_item = 0x7f0b0038;
public static final int mr_controller_material_dialog_b = 0x7f0b0039;
public static final int mr_controller_volume_item = 0x7f0b003a;
public static final int mr_playback_control = 0x7f0b003b;
public static final int mr_volume_control = 0x7f0b003c;
public static final int notification_action = 0x7f0b003d;
public static final int notification_action_tombstone = 0x7f0b003e;
public static final int notification_media_action = 0x7f0b003f;
public static final int notification_media_cancel_action = 0x7f0b0040;
public static final int notification_template_big_media = 0x7f0b0041;
public static final int notification_template_big_media_custom = 0x7f0b0042;
public static final int notification_template_big_media_narrow = 0x7f0b0043;
public static final int notification_template_big_media_narrow_custom = 0x7f0b0044;
public static final int notification_template_custom_big = 0x7f0b0045;
public static final int notification_template_icon_group = 0x7f0b0046;
public static final int notification_template_lines_media = 0x7f0b0047;
public static final int notification_template_media = 0x7f0b0048;
public static final int notification_template_media_custom = 0x7f0b0049;
public static final int notification_template_part_chronometer = 0x7f0b004a;
public static final int notification_template_part_time = 0x7f0b004b;
public static final int select_dialog_item_material = 0x7f0b0050;
public static final int select_dialog_multichoice_material = 0x7f0b0051;
public static final int select_dialog_singlechoice_material = 0x7f0b0052;
public static final int support_simple_spinner_dropdown_item = 0x7f0b0053;
}
public static final class string {
public static final int abc_action_bar_home_description = 0x7f0d0000;
public static final int abc_action_bar_up_description = 0x7f0d0001;
public static final int abc_action_menu_overflow_description = 0x7f0d0002;
public static final int abc_action_mode_done = 0x7f0d0003;
public static final int abc_activity_chooser_view_see_all = 0x7f0d0004;
public static final int abc_activitychooserview_choose_application = 0x7f0d0005;
public static final int abc_capital_off = 0x7f0d0006;
public static final int abc_capital_on = 0x7f0d0007;
public static final int abc_font_family_body_1_material = 0x7f0d0008;
public static final int abc_font_family_body_2_material = 0x7f0d0009;
public static final int abc_font_family_button_material = 0x7f0d000a;
public static final int abc_font_family_caption_material = 0x7f0d000b;
public static final int abc_font_family_display_1_material = 0x7f0d000c;
public static final int abc_font_family_display_2_material = 0x7f0d000d;
public static final int abc_font_family_display_3_material = 0x7f0d000e;
public static final int abc_font_family_display_4_material = 0x7f0d000f;
public static final int abc_font_family_headline_material = 0x7f0d0010;
public static final int abc_font_family_menu_material = 0x7f0d0011;
public static final int abc_font_family_subhead_material = 0x7f0d0012;
public static final int abc_font_family_title_material = 0x7f0d0013;
public static final int abc_search_hint = 0x7f0d001e;
public static final int abc_searchview_description_clear = 0x7f0d001f;
public static final int abc_searchview_description_query = 0x7f0d0020;
public static final int abc_searchview_description_search = 0x7f0d0021;
public static final int abc_searchview_description_submit = 0x7f0d0022;
public static final int abc_searchview_description_voice = 0x7f0d0023;
public static final int abc_shareactionprovider_share_with = 0x7f0d0024;
public static final int abc_shareactionprovider_share_with_application = 0x7f0d0025;
public static final int abc_toolbar_collapse_description = 0x7f0d0026;
public static final int mr_button_content_description = 0x7f0d007b;
public static final int mr_cast_button_connected = 0x7f0d007c;
public static final int mr_cast_button_connecting = 0x7f0d007d;
public static final int mr_cast_button_disconnected = 0x7f0d007e;
public static final int mr_chooser_searching = 0x7f0d007f;
public static final int mr_chooser_title = 0x7f0d0080;
public static final int mr_controller_album_art = 0x7f0d0081;
public static final int mr_controller_casting_screen = 0x7f0d0082;
public static final int mr_controller_close_description = 0x7f0d0083;
public static final int mr_controller_collapse_group = 0x7f0d0084;
public static final int mr_controller_disconnect = 0x7f0d0085;
public static final int mr_controller_expand_group = 0x7f0d0086;
public static final int mr_controller_no_info_available = 0x7f0d0087;
public static final int mr_controller_no_media_selected = 0x7f0d0088;
public static final int mr_controller_pause = 0x7f0d0089;
public static final int mr_controller_play = 0x7f0d008a;
public static final int mr_controller_stop = 0x7f0d008b;
public static final int mr_controller_stop_casting = 0x7f0d008c;
public static final int mr_controller_volume_slider = 0x7f0d008d;
public static final int mr_system_route_name = 0x7f0d008e;
public static final int mr_user_route_category_name = 0x7f0d008f;
public static final int search_menu_title = 0x7f0d0099;
public static final int status_bar_notification_info_overflow = 0x7f0d009a;
}
public static final class style {
public static final int AlertDialog_AppCompat = 0x7f0e0000;
public static final int AlertDialog_AppCompat_Light = 0x7f0e0001;
public static final int Animation_AppCompat_Dialog = 0x7f0e0002;
public static final int Animation_AppCompat_DropDownUp = 0x7f0e0003;
public static final int Animation_AppCompat_Tooltip = 0x7f0e0004;
public static final int Base_AlertDialog_AppCompat = 0x7f0e0007;
public static final int Base_AlertDialog_AppCompat_Light = 0x7f0e0008;
public static final int Base_Animation_AppCompat_Dialog = 0x7f0e0009;
public static final int Base_Animation_AppCompat_DropDownUp = 0x7f0e000a;
public static final int Base_Animation_AppCompat_Tooltip = 0x7f0e000b;
public static final int Base_DialogWindowTitleBackground_AppCompat = 0x7f0e000d;
public static final int Base_DialogWindowTitle_AppCompat = 0x7f0e000c;
public static final int Base_TextAppearance_AppCompat = 0x7f0e000e;
public static final int Base_TextAppearance_AppCompat_Body1 = 0x7f0e000f;
public static final int Base_TextAppearance_AppCompat_Body2 = 0x7f0e0010;
public static final int Base_TextAppearance_AppCompat_Button = 0x7f0e0011;
public static final int Base_TextAppearance_AppCompat_Caption = 0x7f0e0012;
public static final int Base_TextAppearance_AppCompat_Display1 = 0x7f0e0013;
public static final int Base_TextAppearance_AppCompat_Display2 = 0x7f0e0014;
public static final int Base_TextAppearance_AppCompat_Display3 = 0x7f0e0015;
public static final int Base_TextAppearance_AppCompat_Display4 = 0x7f0e0016;
public static final int Base_TextAppearance_AppCompat_Headline = 0x7f0e0017;
public static final int Base_TextAppearance_AppCompat_Inverse = 0x7f0e0018;
public static final int Base_TextAppearance_AppCompat_Large = 0x7f0e0019;
public static final int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f0e001a;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0e001b;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0e001c;
public static final int Base_TextAppearance_AppCompat_Medium = 0x7f0e001d;
public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f0e001e;
public static final int Base_TextAppearance_AppCompat_Menu = 0x7f0e001f;
public static final int Base_TextAppearance_AppCompat_SearchResult = 0x7f0e0020;
public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0e0021;
public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f0e0022;
public static final int Base_TextAppearance_AppCompat_Small = 0x7f0e0023;
public static final int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f0e0024;
public static final int Base_TextAppearance_AppCompat_Subhead = 0x7f0e0025;
public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f0e0026;
public static final int Base_TextAppearance_AppCompat_Title = 0x7f0e0027;
public static final int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f0e0028;
public static final int Base_TextAppearance_AppCompat_Tooltip = 0x7f0e0029;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0e002a;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0e002b;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0e002c;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0e002d;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0e002e;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0e002f;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0e0030;
public static final int Base_TextAppearance_AppCompat_Widget_Button = 0x7f0e0031;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f0e0032;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Colored = 0x7f0e0033;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0e0034;
public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0e0035;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0e0036;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0e0037;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0e0038;
public static final int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f0e0039;
public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0e003a;
public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0e003b;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0e003c;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0e003d;
public static final int Base_ThemeOverlay_AppCompat = 0x7f0e004c;
public static final int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f0e004d;
public static final int Base_ThemeOverlay_AppCompat_Dark = 0x7f0e004e;
public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0e004f;
public static final int Base_ThemeOverlay_AppCompat_Dialog = 0x7f0e0050;
public static final int Base_ThemeOverlay_AppCompat_Dialog_Alert = 0x7f0e0051;
public static final int Base_ThemeOverlay_AppCompat_Light = 0x7f0e0052;
public static final int Base_Theme_AppCompat = 0x7f0e003e;
public static final int Base_Theme_AppCompat_CompactMenu = 0x7f0e003f;
public static final int Base_Theme_AppCompat_Dialog = 0x7f0e0040;
public static final int Base_Theme_AppCompat_DialogWhenLarge = 0x7f0e0044;
public static final int Base_Theme_AppCompat_Dialog_Alert = 0x7f0e0041;
public static final int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f0e0042;
public static final int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f0e0043;
public static final int Base_Theme_AppCompat_Light = 0x7f0e0045;
public static final int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f0e0046;
public static final int Base_Theme_AppCompat_Light_Dialog = 0x7f0e0047;
public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f0e004b;
public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f0e0048;
public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f0e0049;
public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0e004a;
public static final int Base_V21_ThemeOverlay_AppCompat_Dialog = 0x7f0e0057;
public static final int Base_V21_Theme_AppCompat = 0x7f0e0053;
public static final int Base_V21_Theme_AppCompat_Dialog = 0x7f0e0054;
public static final int Base_V21_Theme_AppCompat_Light = 0x7f0e0055;
public static final int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f0e0056;
public static final int Base_V22_Theme_AppCompat = 0x7f0e0058;
public static final int Base_V22_Theme_AppCompat_Light = 0x7f0e0059;
public static final int Base_V23_Theme_AppCompat = 0x7f0e005a;
public static final int Base_V23_Theme_AppCompat_Light = 0x7f0e005b;
public static final int Base_V26_Theme_AppCompat = 0x7f0e005c;
public static final int Base_V26_Theme_AppCompat_Light = 0x7f0e005d;
public static final int Base_V26_Widget_AppCompat_Toolbar = 0x7f0e005e;
public static final int Base_V7_ThemeOverlay_AppCompat_Dialog = 0x7f0e0065;
public static final int Base_V7_Theme_AppCompat = 0x7f0e0061;
public static final int Base_V7_Theme_AppCompat_Dialog = 0x7f0e0062;
public static final int Base_V7_Theme_AppCompat_Light = 0x7f0e0063;
public static final int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f0e0064;
public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f0e0066;
public static final int Base_V7_Widget_AppCompat_EditText = 0x7f0e0067;
public static final int Base_V7_Widget_AppCompat_Toolbar = 0x7f0e0068;
public static final int Base_Widget_AppCompat_ActionBar = 0x7f0e0069;
public static final int Base_Widget_AppCompat_ActionBar_Solid = 0x7f0e006a;
public static final int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f0e006b;
public static final int Base_Widget_AppCompat_ActionBar_TabText = 0x7f0e006c;
public static final int Base_Widget_AppCompat_ActionBar_TabView = 0x7f0e006d;
public static final int Base_Widget_AppCompat_ActionButton = 0x7f0e006e;
public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f0e006f;
public static final int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f0e0070;
public static final int Base_Widget_AppCompat_ActionMode = 0x7f0e0071;
public static final int Base_Widget_AppCompat_ActivityChooserView = 0x7f0e0072;
public static final int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f0e0073;
public static final int Base_Widget_AppCompat_Button = 0x7f0e0074;
public static final int Base_Widget_AppCompat_ButtonBar = 0x7f0e007a;
public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0e007b;
public static final int Base_Widget_AppCompat_Button_Borderless = 0x7f0e0075;
public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f0e0076;
public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0e0077;
public static final int Base_Widget_AppCompat_Button_Colored = 0x7f0e0078;
public static final int Base_Widget_AppCompat_Button_Small = 0x7f0e0079;
public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f0e007c;
public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f0e007d;
public static final int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f0e007e;
public static final int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f0e007f;
public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f0e0080;
public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f0e0081;
public static final int Base_Widget_AppCompat_EditText = 0x7f0e0082;
public static final int Base_Widget_AppCompat_ImageButton = 0x7f0e0083;
public static final int Base_Widget_AppCompat_Light_ActionBar = 0x7f0e0084;
public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f0e0085;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0e0086;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f0e0087;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0e0088;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f0e0089;
public static final int Base_Widget_AppCompat_Light_PopupMenu = 0x7f0e008a;
public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0e008b;
public static final int Base_Widget_AppCompat_ListMenuView = 0x7f0e008c;
public static final int Base_Widget_AppCompat_ListPopupWindow = 0x7f0e008d;
public static final int Base_Widget_AppCompat_ListView = 0x7f0e008e;
public static final int Base_Widget_AppCompat_ListView_DropDown = 0x7f0e008f;
public static final int Base_Widget_AppCompat_ListView_Menu = 0x7f0e0090;
public static final int Base_Widget_AppCompat_PopupMenu = 0x7f0e0091;
public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f0e0092;
public static final int Base_Widget_AppCompat_PopupWindow = 0x7f0e0093;
public static final int Base_Widget_AppCompat_ProgressBar = 0x7f0e0094;
public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f0e0095;
public static final int Base_Widget_AppCompat_RatingBar = 0x7f0e0096;
public static final int Base_Widget_AppCompat_RatingBar_Indicator = 0x7f0e0097;
public static final int Base_Widget_AppCompat_RatingBar_Small = 0x7f0e0098;
public static final int Base_Widget_AppCompat_SearchView = 0x7f0e0099;
public static final int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f0e009a;
public static final int Base_Widget_AppCompat_SeekBar = 0x7f0e009b;
public static final int Base_Widget_AppCompat_SeekBar_Discrete = 0x7f0e009c;
public static final int Base_Widget_AppCompat_Spinner = 0x7f0e009d;
public static final int Base_Widget_AppCompat_Spinner_Underlined = 0x7f0e009e;
public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f0e009f;
public static final int Base_Widget_AppCompat_Toolbar = 0x7f0e00a0;
public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0e00a1;
public static final int Platform_AppCompat = 0x7f0e00a6;
public static final int Platform_AppCompat_Light = 0x7f0e00a7;
public static final int Platform_ThemeOverlay_AppCompat = 0x7f0e00a8;
public static final int Platform_ThemeOverlay_AppCompat_Dark = 0x7f0e00a9;
public static final int Platform_ThemeOverlay_AppCompat_Light = 0x7f0e00aa;
public static final int Platform_V21_AppCompat = 0x7f0e00ab;
public static final int Platform_V21_AppCompat_Light = 0x7f0e00ac;
public static final int Platform_V25_AppCompat = 0x7f0e00ad;
public static final int Platform_V25_AppCompat_Light = 0x7f0e00ae;
public static final int Platform_Widget_AppCompat_Spinner = 0x7f0e00af;
public static final int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f0e00b0;
public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f0e00b1;
public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f0e00b2;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f0e00b3;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f0e00b4;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f0e00b7;
public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f0e00be;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f0e00b9;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f0e00ba;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f0e00bb;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f0e00bc;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f0e00bd;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 0x7f0e00bf;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 0x7f0e00c0;
public static final int TextAppearance_AppCompat = 0x7f0e00c1;
public static final int TextAppearance_AppCompat_Body1 = 0x7f0e00c2;
public static final int TextAppearance_AppCompat_Body2 = 0x7f0e00c3;
public static final int TextAppearance_AppCompat_Button = 0x7f0e00c4;
public static final int TextAppearance_AppCompat_Caption = 0x7f0e00c5;
public static final int TextAppearance_AppCompat_Display1 = 0x7f0e00c6;
public static final int TextAppearance_AppCompat_Display2 = 0x7f0e00c7;
public static final int TextAppearance_AppCompat_Display3 = 0x7f0e00c8;
public static final int TextAppearance_AppCompat_Display4 = 0x7f0e00c9;
public static final int TextAppearance_AppCompat_Headline = 0x7f0e00ca;
public static final int TextAppearance_AppCompat_Inverse = 0x7f0e00cb;
public static final int TextAppearance_AppCompat_Large = 0x7f0e00cc;
public static final int TextAppearance_AppCompat_Large_Inverse = 0x7f0e00cd;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0e00ce;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0e00cf;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0e00d0;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0e00d1;
public static final int TextAppearance_AppCompat_Medium = 0x7f0e00d2;
public static final int TextAppearance_AppCompat_Medium_Inverse = 0x7f0e00d3;
public static final int TextAppearance_AppCompat_Menu = 0x7f0e00d4;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0e00d5;
public static final int TextAppearance_AppCompat_SearchResult_Title = 0x7f0e00d6;
public static final int TextAppearance_AppCompat_Small = 0x7f0e00d7;
public static final int TextAppearance_AppCompat_Small_Inverse = 0x7f0e00d8;
public static final int TextAppearance_AppCompat_Subhead = 0x7f0e00d9;
public static final int TextAppearance_AppCompat_Subhead_Inverse = 0x7f0e00da;
public static final int TextAppearance_AppCompat_Title = 0x7f0e00db;
public static final int TextAppearance_AppCompat_Title_Inverse = 0x7f0e00dc;
public static final int TextAppearance_AppCompat_Tooltip = 0x7f0e00dd;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0e00de;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0e00df;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0e00e0;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0e00e1;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0e00e2;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0e00e3;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f0e00e4;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0e00e5;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f0e00e6;
public static final int TextAppearance_AppCompat_Widget_Button = 0x7f0e00e7;
public static final int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 0x7f0e00e8;
public static final int TextAppearance_AppCompat_Widget_Button_Colored = 0x7f0e00e9;
public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0e00ea;
public static final int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0e00eb;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Header = 0x7f0e00ec;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0e00ed;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0e00ee;
public static final int TextAppearance_AppCompat_Widget_Switch = 0x7f0e00ef;
public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0e00f0;
public static final int TextAppearance_Compat_Notification = 0x7f0e00f5;
public static final int TextAppearance_Compat_Notification_Info = 0x7f0e00f6;
public static final int TextAppearance_Compat_Notification_Info_Media = 0x7f0e00f7;
public static final int TextAppearance_Compat_Notification_Line2 = 0x7f0e00f8;
public static final int TextAppearance_Compat_Notification_Line2_Media = 0x7f0e00f9;
public static final int TextAppearance_Compat_Notification_Media = 0x7f0e00fa;
public static final int TextAppearance_Compat_Notification_Time = 0x7f0e00fb;
public static final int TextAppearance_Compat_Notification_Time_Media = 0x7f0e00fc;
public static final int TextAppearance_Compat_Notification_Title = 0x7f0e00fd;
public static final int TextAppearance_Compat_Notification_Title_Media = 0x7f0e00fe;
public static final int TextAppearance_MediaRouter_PrimaryText = 0x7f0e00ff;
public static final int TextAppearance_MediaRouter_SecondaryText = 0x7f0e0100;
public static final int TextAppearance_MediaRouter_Title = 0x7f0e0101;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0e0102;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0e0103;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0e0104;
public static final int ThemeOverlay_AppCompat = 0x7f0e0121;
public static final int ThemeOverlay_AppCompat_ActionBar = 0x7f0e0122;
public static final int ThemeOverlay_AppCompat_Dark = 0x7f0e0123;
public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0e0124;
public static final int ThemeOverlay_AppCompat_Dialog = 0x7f0e0125;
public static final int ThemeOverlay_AppCompat_Dialog_Alert = 0x7f0e0126;
public static final int ThemeOverlay_AppCompat_Light = 0x7f0e0127;
public static final int ThemeOverlay_MediaRouter_Dark = 0x7f0e0128;
public static final int ThemeOverlay_MediaRouter_Light = 0x7f0e0129;
public static final int Theme_AppCompat = 0x7f0e0105;
public static final int Theme_AppCompat_CompactMenu = 0x7f0e0106;
public static final int Theme_AppCompat_DayNight = 0x7f0e0107;
public static final int Theme_AppCompat_DayNight_DarkActionBar = 0x7f0e0108;
public static final int Theme_AppCompat_DayNight_Dialog = 0x7f0e0109;
public static final int Theme_AppCompat_DayNight_DialogWhenLarge = 0x7f0e010c;
public static final int Theme_AppCompat_DayNight_Dialog_Alert = 0x7f0e010a;
public static final int Theme_AppCompat_DayNight_Dialog_MinWidth = 0x7f0e010b;
public static final int Theme_AppCompat_DayNight_NoActionBar = 0x7f0e010d;
public static final int Theme_AppCompat_Dialog = 0x7f0e010e;
public static final int Theme_AppCompat_DialogWhenLarge = 0x7f0e0111;
public static final int Theme_AppCompat_Dialog_Alert = 0x7f0e010f;
public static final int Theme_AppCompat_Dialog_MinWidth = 0x7f0e0110;
public static final int Theme_AppCompat_Light = 0x7f0e0112;
public static final int Theme_AppCompat_Light_DarkActionBar = 0x7f0e0113;
public static final int Theme_AppCompat_Light_Dialog = 0x7f0e0114;
public static final int Theme_AppCompat_Light_DialogWhenLarge = 0x7f0e0117;
public static final int Theme_AppCompat_Light_Dialog_Alert = 0x7f0e0115;
public static final int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0e0116;
public static final int Theme_AppCompat_Light_NoActionBar = 0x7f0e0118;
public static final int Theme_AppCompat_NoActionBar = 0x7f0e0119;
public static final int Theme_MediaRouter = 0x7f0e011d;
public static final int Theme_MediaRouter_Light = 0x7f0e011e;
public static final int Theme_MediaRouter_LightControlPanel = 0x7f0e0120;
public static final int Theme_MediaRouter_Light_DarkControlPanel = 0x7f0e011f;
public static final int Widget_AppCompat_ActionBar = 0x7f0e012e;
public static final int Widget_AppCompat_ActionBar_Solid = 0x7f0e012f;
public static final int Widget_AppCompat_ActionBar_TabBar = 0x7f0e0130;
public static final int Widget_AppCompat_ActionBar_TabText = 0x7f0e0131;
public static final int Widget_AppCompat_ActionBar_TabView = 0x7f0e0132;
public static final int Widget_AppCompat_ActionButton = 0x7f0e0133;
public static final int Widget_AppCompat_ActionButton_CloseMode = 0x7f0e0134;
public static final int Widget_AppCompat_ActionButton_Overflow = 0x7f0e0135;
public static final int Widget_AppCompat_ActionMode = 0x7f0e0136;
public static final int Widget_AppCompat_ActivityChooserView = 0x7f0e0137;
public static final int Widget_AppCompat_AutoCompleteTextView = 0x7f0e0138;
public static final int Widget_AppCompat_Button = 0x7f0e0139;
public static final int Widget_AppCompat_ButtonBar = 0x7f0e013f;
public static final int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0e0140;
public static final int Widget_AppCompat_Button_Borderless = 0x7f0e013a;
public static final int Widget_AppCompat_Button_Borderless_Colored = 0x7f0e013b;
public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0e013c;
public static final int Widget_AppCompat_Button_Colored = 0x7f0e013d;
public static final int Widget_AppCompat_Button_Small = 0x7f0e013e;
public static final int Widget_AppCompat_CompoundButton_CheckBox = 0x7f0e0141;
public static final int Widget_AppCompat_CompoundButton_RadioButton = 0x7f0e0142;
public static final int Widget_AppCompat_CompoundButton_Switch = 0x7f0e0143;
public static final int Widget_AppCompat_DrawerArrowToggle = 0x7f0e0144;
public static final int Widget_AppCompat_DropDownItem_Spinner = 0x7f0e0145;
public static final int Widget_AppCompat_EditText = 0x7f0e0146;
public static final int Widget_AppCompat_ImageButton = 0x7f0e0147;
public static final int Widget_AppCompat_Light_ActionBar = 0x7f0e0148;
public static final int Widget_AppCompat_Light_ActionBar_Solid = 0x7f0e0149;
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f0e014a;
public static final int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0e014b;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f0e014c;
public static final int Widget_AppCompat_Light_ActionBar_TabText = 0x7f0e014d;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0e014e;
public static final int Widget_AppCompat_Light_ActionBar_TabView = 0x7f0e014f;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f0e0150;
public static final int Widget_AppCompat_Light_ActionButton = 0x7f0e0151;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f0e0152;
public static final int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f0e0153;
public static final int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f0e0154;
public static final int Widget_AppCompat_Light_ActivityChooserView = 0x7f0e0155;
public static final int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f0e0156;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f0e0157;
public static final int Widget_AppCompat_Light_ListPopupWindow = 0x7f0e0158;
public static final int Widget_AppCompat_Light_ListView_DropDown = 0x7f0e0159;
public static final int Widget_AppCompat_Light_PopupMenu = 0x7f0e015a;
public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0e015b;
public static final int Widget_AppCompat_Light_SearchView = 0x7f0e015c;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f0e015d;
public static final int Widget_AppCompat_ListMenuView = 0x7f0e015e;
public static final int Widget_AppCompat_ListPopupWindow = 0x7f0e015f;
public static final int Widget_AppCompat_ListView = 0x7f0e0160;
public static final int Widget_AppCompat_ListView_DropDown = 0x7f0e0161;
public static final int Widget_AppCompat_ListView_Menu = 0x7f0e0162;
public static final int Widget_AppCompat_PopupMenu = 0x7f0e0163;
public static final int Widget_AppCompat_PopupMenu_Overflow = 0x7f0e0164;
public static final int Widget_AppCompat_PopupWindow = 0x7f0e0165;
public static final int Widget_AppCompat_ProgressBar = 0x7f0e0166;
public static final int Widget_AppCompat_ProgressBar_Horizontal = 0x7f0e0167;
public static final int Widget_AppCompat_RatingBar = 0x7f0e0168;
public static final int Widget_AppCompat_RatingBar_Indicator = 0x7f0e0169;
public static final int Widget_AppCompat_RatingBar_Small = 0x7f0e016a;
public static final int Widget_AppCompat_SearchView = 0x7f0e016b;
public static final int Widget_AppCompat_SearchView_ActionBar = 0x7f0e016c;
public static final int Widget_AppCompat_SeekBar = 0x7f0e016d;
public static final int Widget_AppCompat_SeekBar_Discrete = 0x7f0e016e;
public static final int Widget_AppCompat_Spinner = 0x7f0e016f;
public static final int Widget_AppCompat_Spinner_DropDown = 0x7f0e0170;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f0e0171;
public static final int Widget_AppCompat_Spinner_Underlined = 0x7f0e0172;
public static final int Widget_AppCompat_TextView_SpinnerItem = 0x7f0e0173;
public static final int Widget_AppCompat_Toolbar = 0x7f0e0174;
public static final int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0e0175;
public static final int Widget_Compat_NotificationActionContainer = 0x7f0e0176;
public static final int Widget_Compat_NotificationActionText = 0x7f0e0177;
public static final int Widget_MediaRouter_Light_MediaRouteButton = 0x7f0e0178;
public static final int Widget_MediaRouter_MediaRouteButton = 0x7f0e0179;
}
public static final class styleable {
public static final int[] ActionBar = { 0x7f030038, 0x7f030039, 0x7f03003a, 0x7f03008b, 0x7f03008c, 0x7f03008d, 0x7f03008e, 0x7f03008f, 0x7f030090, 0x7f030096, 0x7f03009f, 0x7f0300a0, 0x7f0300ac, 0x7f0300c1, 0x7f0300c2, 0x7f0300c3, 0x7f0300c4, 0x7f0300c5, 0x7f0300cc, 0x7f0300d2, 0x7f0300ed, 0x7f030109, 0x7f03011a, 0x7f03011d, 0x7f03011e, 0x7f030147, 0x7f03014a, 0x7f030165, 0x7f03016e };
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 = { 0x010100b3 };
public static final int ActionBarLayout_android_layout_gravity = 0;
public static final int[] ActionMenuItemView = { 0x0101013f };
public static final int ActionMenuItemView_android_minWidth = 0;
public static final int[] ActionMode = { 0x7f030038, 0x7f030039, 0x7f03007a, 0x7f0300c1, 0x7f03014a, 0x7f03016e };
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 = { 0x7f0300ae, 0x7f0300ce };
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 0;
public static final int ActivityChooserView_initialActivityCount = 1;
public static final int[] AlertDialog = { 0x010100f2, 0x7f030045, 0x7f030046, 0x7f0300e3, 0x7f0300e4, 0x7f030106, 0x7f03013a, 0x7f03013b };
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[] AppCompatImageView = { 0x01010119, 0x7f030141, 0x7f030163, 0x7f030164 };
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 = { 0x01010142, 0x7f030160, 0x7f030161, 0x7f030162 };
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 = { 0x01010034, 0x0101016d, 0x0101016e, 0x0101016f, 0x01010170, 0x01010392, 0x01010393 };
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 = { 0x01010034, 0x7f030033, 0x7f030034, 0x7f030035, 0x7f030036, 0x7f030037, 0x7f0300b1, 0x7f0300b3, 0x7f0300d4, 0x7f0300e0, 0x7f030150 };
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 = { 0x01010057, 0x010100ae, 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, 0x7f030025, 0x7f030026, 0x7f030027, 0x7f030028, 0x7f030032, 0x7f03003e, 0x7f03003f, 0x7f030040, 0x7f030041, 0x7f030042, 0x7f030043, 0x7f030048, 0x7f030049, 0x7f030075, 0x7f030076, 0x7f03007e, 0x7f03007f, 0x7f030080, 0x7f030081, 0x7f030082, 0x7f030083, 0x7f030084, 0x7f030085, 0x7f030086, 0x7f030088, 0x7f030092, 0x7f03009c, 0x7f03009d, 0x7f03009e, 0x7f0300a1, 0x7f0300a3, 0x7f0300a7, 0x7f0300a8, 0x7f0300a9, 0x7f0300aa, 0x7f0300ab, 0x7f0300c3, 0x7f0300cb, 0x7f0300e1, 0x7f0300e2, 0x7f0300e5, 0x7f0300e6, 0x7f0300e7, 0x7f0300e8, 0x7f0300e9, 0x7f0300ea, 0x7f0300eb, 0x7f030111, 0x7f030112, 0x7f030113, 0x7f030119, 0x7f03011b, 0x7f030121, 0x7f030122, 0x7f030123, 0x7f030124, 0x7f03012c, 0x7f030132, 0x7f030133, 0x7f030134, 0x7f03013e, 0x7f03013f, 0x7f03014e, 0x7f030151, 0x7f030152, 0x7f030153, 0x7f030154, 0x7f030155, 0x7f030156, 0x7f030157, 0x7f030158, 0x7f030159, 0x7f03015a, 0x7f030170, 0x7f030171, 0x7f030173, 0x7f030174, 0x7f030186, 0x7f030188, 0x7f030189, 0x7f03018a, 0x7f03018b, 0x7f03018c, 0x7f03018d, 0x7f03018e, 0x7f03018f, 0x7f030190, 0x7f030191 };
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 = { 0x7f03002a };
public static final int ButtonBarLayout_allowStacking = 0;
public static final int[] ColorStateListItem = { 0x010101a5, 0x0101031f, 0x7f03002b };
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 = { 0x01010107, 0x7f03004a, 0x7f03004b };
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[] DrawerArrowToggle = { 0x7f030030, 0x7f030031, 0x7f03003d, 0x7f03007d, 0x7f0300a5, 0x7f0300bf, 0x7f03013d, 0x7f03015c };
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 = { 0x7f0300b4, 0x7f0300b5, 0x7f0300b6, 0x7f0300b7, 0x7f0300b8, 0x7f0300b9 };
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 = { 0x01010532, 0x01010533, 0x0101053f, 0x0101056f, 0x01010570, 0x7f0300b2, 0x7f0300ba, 0x7f0300bb, 0x7f0300bc, 0x7f03017a };
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[] LinearLayoutCompat = { 0x010100af, 0x010100c4, 0x01010126, 0x01010127, 0x01010128, 0x7f0300a0, 0x7f0300a2, 0x7f0300f8, 0x7f030138 };
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 = { 0x010100b3, 0x010100f4, 0x010100f5, 0x01010181 };
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 = { 0x010102ac, 0x010102ad };
public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0;
public static final int ListPopupWindow_android_dropDownVerticalOffset = 1;
public static final int[] MediaRouteButton = { 0x0101013f, 0x01010140, 0x7f0300af, 0x7f0300fb };
public static final int MediaRouteButton_android_minWidth = 0;
public static final int MediaRouteButton_android_minHeight = 1;
public static final int MediaRouteButton_externalRouteEnabledDrawable = 2;
public static final int MediaRouteButton_mediaRouteButtonTint = 3;
public static final int[] MenuGroup = { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 };
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 = { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f03000d, 0x7f03001f, 0x7f030020, 0x7f03002d, 0x7f03008a, 0x7f0300c6, 0x7f0300c7, 0x7f03010b, 0x7f030137, 0x7f030175 };
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 = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x7f03011c, 0x7f030144 };
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 = { 0x01010176, 0x010102c9, 0x7f03010c };
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 = { 0x7f030142 };
public static final int PopupWindowBackgroundState_state_above_anchor = 0;
public static final int[] RecycleListView = { 0x7f03010d, 0x7f030110 };
public static final int RecycleListView_paddingBottomNoButtons = 0;
public static final int RecycleListView_paddingTopNoTitle = 1;
public static final int[] SearchView = { 0x010100da, 0x0101011f, 0x01010220, 0x01010264, 0x7f030079, 0x7f030089, 0x7f03009b, 0x7f0300c0, 0x7f0300c8, 0x7f0300d9, 0x7f03011f, 0x7f030120, 0x7f030129, 0x7f03012a, 0x7f030145, 0x7f03014b, 0x7f030187 };
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 = { 0x010100b2, 0x01010176, 0x0101017b, 0x01010262, 0x7f03011a };
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[] SwitchCompat = { 0x01010124, 0x01010125, 0x01010142, 0x7f030139, 0x7f030140, 0x7f03014c, 0x7f03014d, 0x7f03014f, 0x7f03015d, 0x7f03015e, 0x7f03015f, 0x7f030176, 0x7f030177, 0x7f030178 };
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 = { 0x01010095, 0x01010096, 0x01010097, 0x01010098, 0x0101009a, 0x0101009b, 0x01010161, 0x01010162, 0x01010163, 0x01010164, 0x010103ac, 0x7f0300b3, 0x7f030150 };
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 = { 0x010100af, 0x01010140, 0x7f030044, 0x7f03007b, 0x7f03007c, 0x7f03008b, 0x7f03008c, 0x7f03008d, 0x7f03008e, 0x7f03008f, 0x7f030090, 0x7f0300ed, 0x7f0300ee, 0x7f0300f7, 0x7f030107, 0x7f030108, 0x7f03011a, 0x7f030147, 0x7f030148, 0x7f030149, 0x7f030165, 0x7f030166, 0x7f030167, 0x7f030168, 0x7f030169, 0x7f03016a, 0x7f03016b, 0x7f03016c, 0x7f03016d };
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 = { 0x01010000, 0x010100da, 0x7f03010e, 0x7f03010f, 0x7f03015b };
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 = { 0x010100d4, 0x7f03003b, 0x7f03003c };
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 = { 0x010100d0, 0x010100f2, 0x010100f3 };
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]"
] | |
1e922e4e23886942095ed36cb8ab6eeb816eedba | 0ceafc2afe5981fd28ce0185e0170d4b6dbf6241 | /AlgoKit (3rdp)/Code-store v1.0/yaal/archive/2014.04/2014.04.12 - Google Code Jam Qualification Round 2014/TaskC.java | 648a5abcd442d917aa4840bb9d429c69090a61f3 | [] | no_license | brainail/.happy-coooding | 1cd617f6525367133a598bee7efb9bf6275df68e | cc30c45c7c9b9164095905cc3922a91d54ecbd15 | refs/heads/master | 2021-06-09T02:54:36.259884 | 2021-04-16T22:35:24 | 2021-04-16T22:35:24 | 153,018,855 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,847 | java | package net.egork;
import net.egork.misc.ArrayUtils;
import net.egork.utils.io.InputReader;
import net.egork.utils.io.OutputWriter;
public class TaskC {
public void solve(int testNumber, InputReader in, OutputWriter out) {
int rowCount = in.readInt();
int columnCount = in.readInt();
int mines = in.readInt();
out.printLine("Case #" + testNumber + ":");
char[][] answer = new char[rowCount][columnCount];
int notMines = 0;
if (mines + 1 == rowCount * columnCount) {
ArrayUtils.fill(answer, '*');
answer[0][0] = 'c';
} else if (rowCount == 1 || columnCount == 1) {
notMines = 1;
answer[0][0] = 'c';
for (int i = 0; i < rowCount; i++) {
for (int j = 0; j < columnCount; j++) {
if (answer[i][j] == 0) {
if (notMines + mines == rowCount * columnCount)
answer[i][j] = '*';
else {
answer[i][j] = '.';
notMines++;
}
}
}
}
} else if (rowCount == 2 || columnCount == 2) {
if (mines % 2 != 0 || rowCount * columnCount - mines == 2)
answer = null;
else {
if (rowCount == 2) {
for (int i = 0; i < columnCount - mines / 2; i++) {
answer[0][i] = answer[1][i] = '.';
}
for (int i = columnCount - mines / 2; i < columnCount; i++) {
answer[0][i] = answer[1][i] = '*';
}
answer[0][0] = 'c';
} else {
for (int i = 0; i < rowCount - mines / 2; i++) {
answer[i][0] = answer[i][1] = '.';
}
for (int i = rowCount - mines / 2; i < rowCount; i++) {
answer[i][0] = answer[i][1] = '*';
}
answer[0][0] = 'c';
}
}
} else {
int requiredNotMines = rowCount * columnCount - mines;
if (requiredNotMines == 3 || requiredNotMines == 5 || requiredNotMines == 7 || requiredNotMines == 2)
answer = null;
else {
if (requiredNotMines % 2 == 1) {
answer[2][0] = answer[2][1] = answer[2][2] = '.';
notMines += 3;
}
for (int i = 0; i < columnCount; i++) {
if (notMines + mines == rowCount * columnCount)
answer[0][i] = answer[1][i] = '*';
else {
answer[0][i] = answer[1][i] = '.';
notMines += 2;
}
}
for (int i = 2; i < rowCount; i++) {
if (answer[i][0] == 0) {
if (notMines + mines == rowCount * columnCount)
answer[i][0] = answer[i][1] = '*';
else {
answer[i][0] = answer[i][1] = '.';
notMines += 2;
}
}
}
for (int i = 2; i < rowCount; i++) {
for (int j = 2; j < columnCount; j++) {
if (answer[i][j] == 0) {
if (notMines + mines == rowCount * columnCount)
answer[i][j] = '*';
else {
answer[i][j] = '.';
notMines++;
}
}
}
}
answer[0][0] = 'c';
}
}
if (answer == null)
out.printLine("Impossible");
else {
for (char[] row : answer)
out.printLine(row);
}
}
}
| [
"[email protected]"
] | |
1267711ff0c40e46f31dcb76f82176d642faf6aa | 7042d59562ebd69c7cfa982d9eeccb24fb10fa68 | /Materias Obrigatorias/3º Semestre/COO - Computação Orientada a Objetos/Patricia/Códigos/Apresentação/Garconete.java | 29e7c0000d203ae3b855f0eec6dfb1e78373299a | [] | no_license | ThallesRg/drivesi | fa79f894ae1ddbb563283fee9885e0b24e5c49d8 | cd8462815949cb9fd4aa775138f48a4b7f8b0f04 | refs/heads/master | 2023-04-30T08:00:36.731137 | 2021-05-28T05:29:45 | 2021-05-28T05:29:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 770 | java | import java.util.Iterator;
public class Garconete{
Menu restDFlorindaMenu;
Menu vendaChavesMenu;
public Garconete(Menu restDFlorindaMenu, Menu vendaChavesMenu){
this.restDFlorindaMenu = restDFlorindaMenu;
this.vendaChavesMenu = vendaChavesMenu;
}
public void printMenu(){
Iterator restIterator = restDFlorindaMenu.createIterator();
Iterator vendIterator = vendaChavesMenu.createIterator();
System.out.println("MENU\n------\nRefeicoes");
printMenu(restIterator);
System.out.println("Refrescos");
printMenu(vendIterator);
}
public void printMenu(Iterator iterator){
while(iterator.hasNext()){
MenuItem menuItem = (MenuItem)iterator.next();
System.out.print(menuItem.getNome()+" - ");
System.out.println(menuItem.getPreco());
}
}
} | [
"[email protected]"
] | |
e071fdbe8b0975130e10cc49bdb36f1e5c6de58f | 84b2403aea00c97fa230a70134a99e2c0dd1414d | /src/javatest/object2/Line.java | 779106009ab08dff30f48d5308d7c3a8b2da21e4 | [] | no_license | littlecorgi-twk/KotlinStudy | d18c6d0bad7e498c6928bb2551d6b86fb52d44c7 | f2c7df528275be4fc0550230ae06cd3d145f96d7 | refs/heads/master | 2023-01-07T00:03:43.431157 | 2020-11-08T03:35:03 | 2020-11-08T03:35:03 | 272,717,860 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,009 | java | package com.littlecorgi.suanfa.object2;
public class Line {
static class Point {
private int x;
private int y;
public Point(int x, int y) {
this.x = x;
this.y = y;
}
public int getX() {
return x;
}
public void setX(int x) {
this.x = x;
}
public int getY() {
return y;
}
public void setY(int y) {
this.y = y;
}
}
private Point point1;
private Point point2;
public Line(Point point1, Point point2) {
this.point1 = point1;
this.point2 = point2;
}
public Line(int x1, int y1, int x2, int y2) {
this.point1 = new Point(x1, y1);
this.point2 = new Point(x2, y2);
}
public double length() {
return Math.sqrt(Math.sqrt(point1.x - point2.x) + Math.sqrt(point1.y - point2.y));
}
public boolean isHorizontal() {
int height = point1.y - point2.y;
return height == 0;
}
public boolean isVertical() {
int width = point1.x - point2.x;
return width == 0;
}
public double slope() {
return ((double) point1.x - point2.x) / (point1.y - point2.y);
}
public String mid() {
return "(" + (point1.x - point2.x) + "," + (point1.y - point2.y) + ")";
}
public boolean equals(Line _line) {
return this.length() == _line.length();
}
public static void main(String[] args) {
Line l1 = new Line(1, 2, 3, 4);
Point point1 = new Line.Point(1, 2);
Point point2 = new Point(3, 4);
Line l2 = new Line(point1, point2);
System.out.println("l1是不是水平的:" + l1.isHorizontal());
System.out.println("l2是不是垂直的:" + l2.isVertical());
System.out.println("l1的斜率:" + l1.slope());
System.out.println("l2的中点:" + l2.mid());
System.out.println("l1和l2是否相等:" + l1.equals(l2));
}
}
| [
"[email protected]"
] | |
61fb0b642fd221d64c4d16ca7f8601a527c8f4ab | 7fefac528534690cfffa015cbce01e58cf6878ef | /src/test/java/org/iton/jssi/query/AndTest.java | be6da079866cd52fe3973f41a3aa0c38947f6c87 | [
"MIT"
] | permissive | ITON-Solutions/revocable-anonymous-credentials | b78186cb9677f16533fb9151d8ba3d9de7901a4f | b416a5baaf9c9c0cd89541f0307e1985fbe31437 | refs/heads/master | 2022-11-10T02:20:15.312204 | 2020-06-29T09:59:37 | 2020-06-29T09:59:37 | 267,557,950 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,690 | java | /*
*
* The MIT License
*
* Copyright 2019 ITON Solutions.
*
* 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.
*/
package org.iton.jssi.query;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class AndTest {
@Test
void Empty() throws JsonProcessingException {
String query = "{\"$and\":[]}";
String result = Query.build(query).toString();
assertEquals(query, result);
}
@Test
void Eq() throws JsonProcessingException {
String query = String.format("{\"$and\":[{\"%s\":\"%s\"}]}", "name", "value");
String result = Query.build(query).toString();
assertEquals(query, result);
}
@Test
void Neq() throws JsonProcessingException {
String query = String.format("{\"$and\":[{\"%s\":{\"$neq\":\"%s\"}}]}", "name", "value");
String result = Query.build(query).toString();
assertEquals(query, result);
}
@Test
void Gt() throws JsonProcessingException {
String query = String.format("{\"$and\":[{\"%s\":{\"$gt\":\"%s\"}}]}", "name", "value");
String result = Query.build(query).toString();
assertEquals(query, result);
}
@Test
void Gte() throws JsonProcessingException {
String query = String.format("{\"$and\":[{\"%s\":{\"$gte\":\"%s\"}}]}", "name", "value");
String result = Query.build(query).toString();
assertEquals(query, result);
}
@Test
void Lt() throws JsonProcessingException {
String query = String.format("{\"$and\":[{\"%s\":{\"$lt\":\"%s\"}}]}", "name", "value");
String result = Query.build(query).toString();
assertEquals(query, result);
}
@Test
void Lte() throws JsonProcessingException {
String query = String.format("{\"$and\":[{\"%s\":{\"$lte\":\"%s\"}}]}", "name", "value");
String result = Query.build(query).toString();
assertEquals(query, result);
}
@Test
void Like() throws JsonProcessingException {
String query = String.format("{\"$and\":[{\"%s\":{\"$like\":\"%s\"}}]}", "name", "value");
String result = Query.build(query).toString();
assertEquals(query, result);
}
@Test
void SingleIn() throws JsonProcessingException {
String query = String.format("{\"$and\":[{\"%s\":{\"$in\":[\"%s\"]}}]}", "name", "value");
String result = Query.build(query).toString();
assertEquals(query, result);
}
@Test
void ListEq() throws JsonProcessingException {
String query = String.format("{\"$and\":[{\"%s\":\"%s\"},{\"%s\":\"%s\"},{\"%s\":\"%s\"}]}", "name1", "value1", "name2", "value2", "name3", "value3");
String result = Query.build(query).toString();
assertEquals(query, result);
}
@Test
void ListNeq() throws JsonProcessingException {
String query = String.format("{\"$and\":[{\"%s\":{\"$neq\":\"%s\"}},{\"%s\":{\"$neq\":\"%s\"}},{\"%s\":{\"$neq\":\"%s\"}}]}", "name1", "value1", "name2", "value2", "name3", "value3");
String result = Query.build(query).toString();
assertEquals(query, result);
}
@Test
void ListGt() throws JsonProcessingException {
String query = String.format("{\"$and\":[{\"%s\":{\"$gt\":\"%s\"}},{\"%s\":{\"$gt\":\"%s\"}},{\"%s\":{\"$gt\":\"%s\"}}]}", "name1", "value1", "name2", "value2", "name3", "value3");
String result = Query.build(query).toString();
assertEquals(query, result);
}
@Test
void ListGte() throws JsonProcessingException {
String query = String.format("{\"$and\":[{\"%s\":{\"$gte\":\"%s\"}},{\"%s\":{\"$gte\":\"%s\"}},{\"%s\":{\"$gte\":\"%s\"}}]}", "name1", "value1", "name2", "value2", "name3", "value3");
String result = Query.build(query).toString();
assertEquals(query, result);
}
@Test
void ListLt() throws JsonProcessingException {
String query = String.format("{\"$and\":[{\"%s\":{\"$lt\":\"%s\"}},{\"%s\":{\"$lt\":\"%s\"}},{\"%s\":{\"$lt\":\"%s\"}}]}", "name1", "value1", "name2", "value2", "name3", "value3");
String result = Query.build(query).toString();
assertEquals(query, result);
}
@Test
void ListLte() throws JsonProcessingException {
String query = String.format("{\"$and\":[{\"%s\":{\"$lte\":\"%s\"}},{\"%s\":{\"$lte\":\"%s\"}},{\"%s\":{\"$lte\":\"%s\"}}]}", "name1", "value1", "name2", "value2", "name3", "value3");
String result = Query.build(query).toString();
assertEquals(query, result);
}
@Test
void ListLike() throws JsonProcessingException {
String query = String.format("{\"$and\":[{\"%s\":{\"$like\":\"%s\"}},{\"%s\":{\"$like\":\"%s\"}},{\"%s\":{\"$like\":\"%s\"}}]}", "name1", "value1", "name2", "value2", "name3", "value3");
String result = Query.build(query).toString();
assertEquals(query, result);
}
@Test
void ListIn() throws JsonProcessingException {
String query = String.format("{\"$and\":[{\"%s\":{\"$in\":[\"%s\"]}},{\"%s\":{\"$in\":[\"%s\"]}},{\"%s\":{\"$in\":[\"%s\"]}}]}", "name1", "value1", "name2", "value2", "name3", "value3");
Query result = Query.build(query);
assertEquals(query, result.toString());
}
@Test
void ListNot() throws JsonProcessingException {
String query = String.format("{\"$and\":[{\"$not\":{\"%s\":\"%s\"}},{\"$not\":{\"%s\":\"%s\"}},{\"$not\":{\"%s\":\"%s\"}}]}", "name1", "value1", "name2", "value2", "name3", "value3");
Query result = Query.build(query);
assertEquals(query, result.toString());
}
@Test
void Mixed() throws JsonProcessingException {
String query = String.format("{\"$and\":[{\"%s\":\"%s\"},{\"%s\":{\"$neq\":\"%s\"}},{\"%s\":{\"$gt\":\"%s\"}},{\"%s\":{\"$gte\":\"%s\"}},{\"%s\":{\"$lt\":\"%s\"}},{\"%s\":{\"$lte\":\"%s\"}},{\"%s\":{\"$like\":\"%s\"}},{\"%s\":{\"$in\":[\"%s\",\"%s\"]}},{\"$not\":{\"%s\":\"%s\"}}]}",
"name1", "value1",
"name2", "value2",
"name3", "value3",
"name4", "value4",
"name5", "value5",
"name6", "value6",
"name7", "value7",
"name8", "value8a", "value8b",
"name9", "value9");
Query result = Query.build(query);
assertEquals(query, result.toString());
}
} | [
"[email protected]"
] | |
ea89d10685120ce684386f15ea80603c921d78de | 78c6b0676de4419e586ca4479c6bad4f9b670afa | /AgsServiceSecurity/src/com/esrichina/BP/security/AgsAdminSecurity.java | 85078eb30e345007aff636c1a6da7be45acf3200 | [] | no_license | fossilbin/agsServicesSecurity | ddc40453bdfea18489f98c35957d093ab221b58e | 262e3db898fcff7cccf58eecd4e48ee43abffe96 | refs/heads/master | 2016-09-09T17:03:31.237544 | 2013-11-16T02:52:25 | 2013-11-16T02:52:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 836 | java | package com.esrichina.BP.security;
import net.sf.json.JSONObject;
import com.esrichina.BP.request.HttpRequest;
public class AgsAdminSecurity {
private void pushIdentityToDatabase(String rootUrl, String token, boolean sure){
JSONObject params = new JSONObject();
JSONObject properties = new JSONObject();
properties.accumulate("PushIdentityToDatabase", sure);
params.accumulate("token", token);
params.accumulate("properties", properties.toString());
HttpRequest.postRequest(rootUrl+"/system/properties/update", params.toString(), "POST");
}
public void setPushIdentityToDatabase(String rootUrl, String token){
pushIdentityToDatabase(rootUrl, token, true);
}
public void cancelPushIdentityToDatabase(String rootUrl, String token){
pushIdentityToDatabase(rootUrl, token, false);
}
}
| [
"[email protected]"
] | |
99bccaf31e81d5ac44af9bc72ec0eaa3d385687d | c632be558f680f86b59ea15feddce48ea05a4f60 | /수정본_14/JiManagement/app/src/main/java/com/example/park/management/BoardRequest.java | 8bd50baaf088a54afedf3d446d99cf5aa1c79e39 | [] | no_license | jisung0920/project_alpa | 854ec9e6163d3b19032e287e5aae83e174b86172 | 9156faefb7ccb48c841d3e8846cffff2724659f6 | refs/heads/master | 2021-01-12T00:22:56.511593 | 2017-02-26T16:17:59 | 2017-02-26T16:17:59 | 78,716,251 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 886 | java | package com.example.park.management;
import android.util.Log;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.toolbox.StringRequest;
import java.util.HashMap;
import java.util.Map;
/**
* Created by jisung on 2017. 2. 20..
*/
public class BoardRequest extends StringRequest {
final static private String URL = "http://jisung0920.cafe24.com/Url.php";
private Map<String, String> parameters;
public BoardRequest(String UnivURL, String DepartURL, String AlpaURL, Response.Listener<String> listener) {
super(Request.Method.POST, URL, listener, null);
parameters = new HashMap<>();
parameters.put("UnivURL", UnivURL);
parameters.put("DepartURL",DepartURL);
parameters.put("AlpaURL",AlpaURL);
}
public Map<String, String> getParams() {
return parameters;
}
}
| [
"[email protected]"
] | |
729612f5da2f496ad6e5ff6047c9472a53d6cabf | a0589595e87991003565ff3808fc01df7fb5bd9b | /command/src/com/manoj/designpatterns/command/Person.java | 0b16d7dc48f267eabbd0239375b08e61e4897276 | [] | no_license | gmanojnair/designpatterns | 21184e65cf6e26e1e044f99a5a18ac1dff7da5aa | 9f5d5f2e8efdc3ba5eccaedba0e52c9b692066ba | refs/heads/master | 2021-01-22T04:18:17.754152 | 2017-02-13T05:15:46 | 2017-02-13T05:15:46 | 81,529,275 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 275 | java | package com.manoj.designpatterns.command;
public class Person {
boolean visible = false;
public boolean isVisible() {
return visible;
}
public void setVisible(boolean visible) {
this.visible = visible;
System.out.println(" Person Visible "+ visible);
}
}
| [
"[email protected]"
] | |
0260ba6200b90bc9c1cb5b9b3d254aeac00fd67e | dc14e73137a49dacb9662304c98b90eb29e41c4d | /src/main/java/aranyaszok/Ice.java | 46f6abfe625700c109fddf314fd5829ace074b3b | [] | no_license | reattila/TheIceAdventure-aranyaszok-team | 412890c498fc3c796bf2594e97ca64245f0ad89c | 51e94f9ef44b4d8a3904778674bc3c67b4f43487 | refs/heads/main | 2023-05-28T07:49:48.317239 | 2021-06-15T16:06:54 | 2021-06-15T16:06:54 | 377,213,318 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,382 | java | package main.java.aranyaszok;
/**
* Egy mezo, aminek vegtelen a kapacitasa. Allhat rajta epulet. Lehet rajta es belefagyva is Item.
* Az ososztalya a Water.
*
* @author aranyaszok
*/
public class Ice extends Water {
private static final long serialVersionUID = -6499634921991988351L;
/**
* A Digging fugveny hivatott arra, hogy a jegrol a
* ho retegeket eltavolitsuk vagy ha nincs rajta ho akkor
* egy targyat kias a jegbol
*
* @param i - megadja hogy hany reteg havat tuntessen el a jeg feluleterol
*/
public void Digging(int i) {
if (snowLayers > 0) {
snowLayers -= i;
if (snowLayers < 0)
snowLayers = 0;
}
else {
if(frozenItems.size() > 0 && floatingItems.size() < 8) {
floatingItems.add(frozenItems.get(0));
frozenItems.remove(0);
}
}
}
@Override
public void ReactToStep() {
if(bears.size() > 0)
bears.get(0).Attack();
}
/**
* A jegen levo epuletet a kapott Building-re allitja
*
* @oaram b a beallitando epulet
*/
public void SetBuilding(Building b) {
building = b;
}
/**
*Ezzel a foggvennyel lehet a jegtabla kapacitasarol
*informaciot szerezni a researchernek
*
* @return a jegtabla kapacitasarol ad informaciot
*/
public int GetCapacity() {
return -1;
}
/**
* A toString() fuggveny definialja felul
*/
@Override
public String toString() {
return "Ice";
}
}
| [
"[email protected]"
] | |
57bb542e35ef8a01d5bc93c2ff6aec3fccc06a43 | 6cd64504c63b0186e10e7c8b0eebe7bb1ed708e2 | /boot-planb/service/src/main/java/cn/com/jcgroup/service/service/FinanceDetailService.java | 81f0f70a0f43ae733d577c6cb05ac71caf0d245a | [] | no_license | scq355/spring-boot | cb9925ea12b8033e4c3489124613eeaecd0018a5 | 1d746305e68def1c2a3e15ff69720bb06f13bb28 | refs/heads/master | 2023-07-08T03:19:26.830992 | 2020-08-04T06:34:54 | 2020-08-04T06:34:54 | 166,948,881 | 0 | 0 | null | 2023-09-13T21:58:59 | 2019-01-22T07:33:34 | Java | UTF-8 | Java | false | false | 8,709 | java | package cn.com.jcgroup.service.service;
import cn.com.jcgroup.service.domain.*;
import cn.com.jcgroup.service.enums.AgencyEnum;
import cn.com.jcgroup.service.repositories.*;
import cn.com.jcgroup.service.util.NumberUtil;
import cn.com.jcgroup.service.util.RandomUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.util.List;
@Service
public class FinanceDetailService {
private static final Logger LOG = LoggerFactory.getLogger(FinanceDetailService.class);
@Autowired
private PbFinanceAgencyRepository pbFinanceAgencyRepository;
@Autowired
private PbFinanceSummaryRepository pbFinanceSummaryRepository;
@Autowired
private PbAgencyRepository pbAgencyRepository;
@Autowired
private PbPrivateFundRepository pbPrivateFundRepository;
@Autowired
private PbCompanyAgencyRelationRepository pbCompanyAgencyRelationRepository;
/**
* 机构添加
*/
@Transactional
public void agencyAdd(JSONObject jsonObject, String typeCode) {
PbAgency agency = JSONObject.parseObject(jsonObject.toJSONString(), PbAgency.class);
agency.setUpdateTime(new Date());
agency.setCreateTime(new Date());
agency.setIsShow("1");
for (int i = 0; i < 3; i++) {
String agencyCode = RandomUtil.generateAgencyCode();
PbAgency pbAgency = pbAgencyRepository.findByAgencyCode(agencyCode);
if (pbAgency != null) {
continue;
} else {
agency.setAgencyCode(agencyCode);
pbAgencyRepository.save(agency);
PbCompanyAgencyRelation companyAgencyRelation = new PbCompanyAgencyRelation();
companyAgencyRelation.setComAgencyRelationCode(agencyCode);
companyAgencyRelation.setCompanyCode(jsonObject.getString("companyCode"));
companyAgencyRelation.setType(typeCode);
companyAgencyRelation.setId(pbCompanyAgencyRelationRepository.findSeqId());
pbCompanyAgencyRelationRepository.save(companyAgencyRelation);
break;
}
}
}
/**
* 金融机构添加
*/
public void financeAgencyAdd(JSONObject jsonObject) {
PbFinanceAgency financeAgency = JSONObject.parseObject(jsonObject.toJSONString(), PbFinanceAgency.class);
financeAgency.setIsShow("1");
financeAgency.setCreateTime(new Date());
financeAgency.setUpdateTime(new Date());
for (int i = 0; i < 3; i++) {
String financeAgencyCode = RandomUtil.generateAgencyCode();
PbFinanceAgency pbFinanceAgency = pbFinanceAgencyRepository.findByFinanceAgencyCode(financeAgencyCode);
if (pbFinanceAgency != null) {
continue;
} else {
financeAgency.setFinanceAgencyCode(financeAgencyCode);
pbFinanceAgencyRepository.save(financeAgency);
PbCompanyAgencyRelation companyAgencyRelation = new PbCompanyAgencyRelation();
companyAgencyRelation.setComAgencyRelationCode(financeAgencyCode);
companyAgencyRelation.setCompanyCode(jsonObject.getString("companyCode"));
companyAgencyRelation.setType(AgencyEnum.FINANCE_AGENCY.getCode());
pbCompanyAgencyRelationRepository.save(companyAgencyRelation);
break;
}
}
}
/**
* 金融机构
*/
public JSONObject findFinanceAgencyByAgencyCode(String financeAgencyCode) {
JSONObject jsonObject;
try {
PbFinanceAgency financeAgency = pbFinanceAgencyRepository.findByFinanceAgencyCode(financeAgencyCode);
if (financeAgency != null) {
jsonObject = (JSONObject) JSON.toJSON(financeAgency);
return jsonObject;
}
} catch (Exception e) {
LOG.error(e.getMessage(), e);
}
return null;
}
/**
* 显示汇总数据
* @param companyCode
* @return
*/
public JSONArray findFinanceSummary(String companyCode) {
JSONArray jsonArray = new JSONArray();
List<PbFinanceSummary> summaryList = pbFinanceSummaryRepository.findAllByCompanyCode(companyCode);
if (summaryList != null && !summaryList.isEmpty()) {
for (PbFinanceSummary summary : summaryList) {
JSONObject jsonObject = new JSONObject();
jsonObject.put("agency", NumberUtil.unitTenThousand(summary.getAgency()));
jsonObject.put("cost", NumberUtil.unitTenThousand(summary.getFinancialCostAvg()));
jsonObject.put("financial", NumberUtil.unitTenThousand(summary.getFinancialAgency()));
jsonObject.put("other", NumberUtil.unitTenThousand(summary.getRemain()));
jsonObject.put("private", NumberUtil.unitTenThousand(summary.getPrivateFund()));
jsonObject.put("raise_amount", NumberUtil.unitTenThousand(summary.getAmountRaised()));
jsonObject.put("type_name", summary.getType());
jsonArray.add(jsonObject);
}
}
return jsonArray;
}
/**
* 获取机构信息
*/
public JSONObject findAngecyByAgencyCodeAndType(String agencyCode, String agencyType) {
PbAgency agency = pbAgencyRepository.findByAgencyCodeAndType(agencyCode, agencyType);
JSONObject jsonObject = new JSONObject();
if (agency != null) {
jsonObject = (JSONObject) JSON.toJSON(agency);
}
return jsonObject;
}
/**
* 查询基金名称
* @author LiuYong
*/
public String findAgencyName(String agencyCode, String agencyType){
String name = "";
if(StringUtils.isBlank(agencyCode) || StringUtils.isBlank(agencyType)){
LOG.error("[机构列表]机构编码或机构类别为空");
}else{
AgencyEnum agencyEnum = AgencyEnum.convertToEnum(agencyType);
if(agencyEnum == null){
LOG.error("[机构列表]机构类别转换错误,type={}",agencyType);
}else if(AgencyEnum.PRIVATE_FUND == agencyEnum){
//私募基金
name = pbPrivateFundRepository.findFundName(agencyCode);
}else if(AgencyEnum.FINANCE_AGENCY == agencyEnum){
name = pbFinanceAgencyRepository.findAgencyName(agencyCode);
}else{
name = pbAgencyRepository.findAgencyName(agencyCode);
}
}
return name;
}
/**
* 获取私募数据
* @param fundCode
* @return
*/
public JSONObject findPrivateFundByFundCode(String fundCode) {
JSONObject jsonObject = new JSONObject();
PbPrivateFund privateFund = pbPrivateFundRepository.findByFundCode(fundCode);
if (privateFund != null) {
jsonObject.put("apr", privateFund.getApr());
jsonObject.put("capitalUse", privateFund.getCapitalUse());
jsonObject.put("consignFee", privateFund.getConsignFee());
jsonObject.put("createTime", privateFund.getCreateTime());
jsonObject.put("custodyFee", privateFund.getCustodyFee());
jsonObject.put("financeSide", privateFund.getFinanceSide());
jsonObject.put("fundCode", privateFund.getFundCode());
jsonObject.put("fundCompany", privateFund.getFundCompany());
jsonObject.put("fundDuration", privateFund.getFundDuration());
jsonObject.put("fundManager", privateFund.getFundManager());
jsonObject.put("guarantor", privateFund.getGuarantor());
jsonObject.put("investFee", privateFund.getInvestFee());
jsonObject.put("isShow", privateFund.getIsShow());
jsonObject.put("manageFee", privateFund.getManageFee());
jsonObject.put("periodInfo", privateFund.getPeriodInfo());
jsonObject.put("raiseAmount", privateFund.getRaiseAmount());
jsonObject.put("realAmount", privateFund.getRealAmount());
jsonObject.put("riskControl", privateFund.getRiskControl());
jsonObject.put("riskLevel", privateFund.getRiskLevel());
jsonObject.put("updateTime", privateFund.getUpdateTime());
}
return jsonObject;
}
}
| [
"[email protected]"
] | |
2099efdd482a3d7571b8382c8eb4c4ae074f5872 | e8c78601a5479e74eaf60ada5467167e8d080cbb | /13_ORM/src/main/java/com/atsistemas/curso/aplicacion/jpa/Configuracion.java | b68ccc85b1ebc45ea6c74364b41b81419c38c86f | [] | no_license | jmmy85/PracticasCursoSpring | d060415223bbacd4c38a305ec4a1d1a4d3444e28 | 372a1925a1b82e054ca774ba35c0b66d6d250a19 | refs/heads/master | 2020-05-24T07:50:38.947746 | 2017-03-14T09:42:48 | 2017-03-14T09:42:48 | 84,836,965 | 0 | 0 | null | null | null | null | ISO-8859-1 | Java | false | false | 2,911 | java | package com.atsistemas.curso.aplicacion.jpa;
import java.util.Properties;
import javax.persistence.EntityManagerFactory;
import javax.sql.DataSource;
import org.apache.commons.dbcp2.BasicDataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ClassPathResource;
import org.springframework.orm.jpa.JpaTransactionManager;
import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@Configuration
@ComponentScans({
@ComponentScan("com.atsistemas.curso.persistencia.jpa"),
@ComponentScan("com.atsistemas.curso.negocio")
})
@EnableTransactionManagement
public class Configuracion {
@Bean
public JpaTransactionManager jpaTransactionManager(EntityManagerFactory entityManagerFactory) {
return new JpaTransactionManager(entityManagerFactory);
}
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactory(DataSource dataSource) {
LocalContainerEntityManagerFactoryBean entityManagerFactoryBean = new LocalContainerEntityManagerFactoryBean();
entityManagerFactoryBean.setDataSource(dataSource);
entityManagerFactoryBean.setPackagesToScan("com.atsistemas.curso.entidades");
entityManagerFactoryBean.setJpaVendorAdapter(new HibernateJpaVendorAdapter());
Properties properties = new Properties();
properties.setProperty("hibernate.dialect", "org.hibernate.dialect.DerbyTenSevenDialect");
properties.setProperty("hibernate.show_sql","true");
properties.setProperty("hibernate.format_sql","true");
properties.setProperty("hibernate.hbm2ddl.auto","validate");
entityManagerFactoryBean.setJpaProperties(properties);
return entityManagerFactoryBean;
}
@Bean
public DataSource datasource(
@Value("${db.user}") String user,
@Value("${db.password}") String password,
@Value("${db.url}") String url,
@Value("${db.driver.class.name}") String driverClassName){
BasicDataSource ds = new BasicDataSource();
ds.setDriverClassName(driverClassName);
ds.setUrl(url);
ds.setUsername(user);
ds.setPassword(password);
return ds;
}
// Tipología que permite al contexto spring leer con las sintaxis ${key}
@Bean
public PropertyPlaceholderConfigurer properties() {
PropertyPlaceholderConfigurer propertyPlaceholderConfigurer = new PropertyPlaceholderConfigurer();
propertyPlaceholderConfigurer.setLocation(new ClassPathResource("Configuracion.properties"));
return propertyPlaceholderConfigurer;
}
}
| [
"[email protected]"
] | |
a226a792c758dab4648da771106a8d57b7237a11 | 493954b57b8fb50347c906f8208ee094751d8fef | /cuneiform-cmdline/src/main/java/de/huberlin/wbi/cuneiform/cmdline/main/JsonSummary.java | 98c904c74d120c3cab610bf7e123bfeb7e6c7200 | [
"Apache-2.0"
] | permissive | iguberman/cuneiform | 4c05883a27f20d36c991de4421254aacc2efc144 | 7d365c75febfd865059e01eb6072b4f7bf6fc210 | refs/heads/master | 2021-01-22T06:37:39.038705 | 2016-02-08T16:51:56 | 2016-02-08T16:51:56 | 48,980,076 | 1 | 1 | null | 2016-01-04T06:56:12 | 2016-01-04T06:56:12 | null | UTF-8 | Java | false | false | 1,939 | java | package de.huberlin.wbi.cuneiform.cmdline.main;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import de.huberlin.wbi.cuneiform.core.cre.LocalCreActor;
import de.huberlin.wbi.cuneiform.core.semanticmodel.CompoundExpr;
import de.huberlin.wbi.cuneiform.core.semanticmodel.NotDerivableException;
public class JsonSummary {
private final UUID runId;
private final Path buildDir;
private final List<String> output;
public JsonSummary( UUID runId, Path buildDir, CompoundExpr output )
throws NotDerivableException {
if( runId == null )
throw new NullPointerException( "Run Id must not be null." );
if( buildDir == null )
throw new NullPointerException( "Build directory must not be null." );
if( output == null )
this.output = new ArrayList<>();
else
this.output = output.normalize();
this.runId = runId;
this.buildDir = buildDir;
}
@Override
public String toString() {
StringBuffer buf;
String s;
int i, n;
boolean res, comma;
Path candidate;
buf = new StringBuffer();
buf.append( "{\n" );
buf.append( " \"runId\":\"" ).append( runId ).append( "\",\n" );
buf.append( " \"output\":[" );
res = false;
if( !output.isEmpty() ) {
n = output.size();
comma = false;
for( i = 0; i < n; i++ ) {
if( comma )
buf.append( ", " );
comma = true;
s = output.get( i );
candidate = buildDir.resolve( LocalCreActor.PATH_CENTRALREPO ).resolve( s );
if( Files.exists( candidate ) ) {
s = candidate.toAbsolutePath().toString();
res = true;
}
buf.append( '"' ).append( s ).append( '"' );
}
}
buf.append( "],\n" );
buf.append( " \"type\":\"" );
if( res )
buf.append( "File" );
else
buf.append( "String" );
buf.append( "\"\n" );
buf.append( "}\n" );
return buf.toString();
}
}
| [
"[email protected]"
] | |
c9d63821afa2b81911d2962bb496c0c4d08a03af | c66926c36a20b5752fb40b48e95e3b4a4a5a5b2b | /src/main/java/br/com/zupacademy/murilo/casadocodigo/categoria/CategoriaRepository.java | 87919d1c5db6675b091309312e30078a3fe0616f | [
"Apache-2.0"
] | permissive | muriloguerreiro/orange-talents-06-template-casa-do-codigo | 1646f2c9a88db762755287b2859184523873ae23 | aa4d29913de80a2dd6ba137e961bef4f63652757 | refs/heads/main | 2023-06-10T07:49:52.017679 | 2021-07-05T19:34:07 | 2021-07-05T19:34:07 | 381,138,311 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 277 | java | package br.com.zupacademy.murilo.casadocodigo.categoria;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
public interface CategoriaRepository extends JpaRepository<Categoria, Long>{
Optional<Categoria> findByNome(String nome);
}
| [
"[email protected]"
] | |
284c02f0ea71b64c5dfa3e8d8dc3df1856ef8d42 | fca6e069c335dc8442618e36d4c0f97ede2c6a06 | /src/com/mixshare/rapid_evolution/ui/widgets/filter/options/AbstractSearchOptionsUI.java | fe6163d5a01fb9153def8a63891785b7f780c9c7 | [] | no_license | divideby0/RapidEvolution3 | 127255648bae55e778321067cd7bb5b979684b2c | f04058c6abfe520442a75b3485147f570f7d538e | refs/heads/master | 2020-03-22T00:56:26.188151 | 2018-06-30T20:41:26 | 2018-06-30T20:41:26 | 139,274,034 | 0 | 0 | null | 2018-06-30T19:19:57 | 2018-06-30T19:19:57 | null | UTF-8 | Java | false | false | 399 | java | package com.mixshare.rapid_evolution.ui.widgets.filter.options;
import com.mixshare.rapid_evolution.data.search.parameters.SearchParameters;
import com.trolltech.qt.gui.QWidget;
abstract public class AbstractSearchOptionsUI extends QWidget {
protected int currentCount;
public int getCurrentCount() { return currentCount; }
abstract public int update(SearchParameters songParameters);
}
| [
"[email protected]"
] | |
1ca74247b4d137eb558f13b43bd3d556e8288eed | b1b02537a1d2e170f9974c3f7a75f0439997ef08 | /assignment 2/tinyVars/src/ast/PROCDEF.java | b1d4a5f871973b0edd55a59e1c04ab7dd4a823b5 | [] | no_license | Max980109/CPSC410-assignment | 1e672d1afb19bbdcc91f42db044f85f79760bc1f | 91bd757c820dd4335dd7a4692bfc6a3d840acfe1 | refs/heads/master | 2022-10-22T13:33:42.371973 | 2020-06-17T07:23:34 | 2020-06-17T07:23:34 | 266,894,617 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 666 | java | package ast;
import java.util.Map;
import libs.Node;
public class PROCDEF extends Node {
private String name;
private EXP procbody;
@Override
public void parse() {
tokenizer.getAndCheckNext("def");
name = tokenizer.getNext();
procbody = (PROCBODY) EXP.makeExp(tokenizer);
if (!(procbody instanceof PROCBODY)) {
throw new RuntimeException("not a procbody");
}
procbody.parse();
}
@Override
public Integer evaluate(Map<String, Object> symbolTable) {
System.out.println("Define procedure " + name);
symbolTable.put(name, procbody);
return null;
}
} | [
"[email protected]"
] | |
62661ab6cdb9b17496ffea28e84fe3bb184c6abe | 533969d13c0038add6e2f389f22e2dddd72dbb8a | /backend/src/main/java/com/bulletjournal/notifications/RemoveTaskEvent.java | f97e290b8f1979e2416478a46ea09520ecdc8e63 | [] | no_license | ywang214/BulletJournal | 5f7d571aef77c378e340e35eba7b84b1fce39f95 | 928be93bb0c9c30b12f12d03e5d678083923f365 | refs/heads/master | 2022-04-19T03:38:53.633779 | 2020-04-10T04:13:30 | 2020-04-10T04:13:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 624 | java | package com.bulletjournal.notifications;
import com.bulletjournal.contents.ContentType;
import java.util.List;
public class RemoveTaskEvent extends Informed {
public RemoveTaskEvent(Event event, String originator) {
super(event, originator);
}
public RemoveTaskEvent(List<Event> events, String originator) {
super(events, originator);
}
@Override
public ContentType getContentType() {
return ContentType.TASK;
}
@Override
protected String getEventTitle(Event event) {
return this.getOriginator() + " removed Task " + event.getContentName();
}
}
| [
"[email protected]"
] | |
15a683075f7daeaeafaebcc793ac22996e58f1a1 | f7d49589011e715ab2adebdfd108090cdf0ee48c | /hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapreduce/TestWALInputFormat.java | 48e85183923e7ed037ce0dc3e698191fe561389d | [
"Apache-2.0",
"CC-BY-3.0",
"BSD-3-Clause",
"LicenseRef-scancode-protobuf",
"MIT",
"BSD-2-Clause"
] | permissive | eomiks/hbase | 9d53d4f96c18122e6f0db050f5b1fea13070c76e | 4f491fd5e40c0986dc92f8b231d419a2b07e5a0e | refs/heads/master | 2022-04-30T17:28:56.455615 | 2022-03-27T23:53:28 | 2022-03-27T23:53:28 | 202,088,365 | 1 | 0 | Apache-2.0 | 2019-08-13T07:24:59 | 2019-08-13T07:24:55 | null | UTF-8 | Java | false | false | 3,226 | java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.apache.hadoop.hbase.mapreduce;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.LocatedFileStatus;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hbase.HBaseClassTestRule;
import org.apache.hadoop.hbase.testclassification.MapReduceTests;
import org.apache.hadoop.hbase.testclassification.SmallTests;
import org.apache.hadoop.hbase.util.EnvironmentEdgeManager;
import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.mockito.Mockito;
@Category({ MapReduceTests.class, SmallTests.class})
public class TestWALInputFormat {
@ClassRule
public static final HBaseClassTestRule CLASS_RULE =
HBaseClassTestRule.forClass(TestWALInputFormat.class);
/**
* Test the primitive start/end time filtering.
*/
@Test
public void testAddFile() {
List<FileStatus> lfss = new ArrayList<>();
LocatedFileStatus lfs = Mockito.mock(LocatedFileStatus.class);
long now = EnvironmentEdgeManager.currentTime();
Mockito.when(lfs.getPath()).thenReturn(new Path("/name." + now));
WALInputFormat.addFile(lfss, lfs, now, now);
assertEquals(1, lfss.size());
WALInputFormat.addFile(lfss, lfs, now - 1, now - 1);
assertEquals(1, lfss.size());
WALInputFormat.addFile(lfss, lfs, now - 2, now - 1);
assertEquals(1, lfss.size());
WALInputFormat.addFile(lfss, lfs, now - 2, now);
assertEquals(2, lfss.size());
WALInputFormat.addFile(lfss, lfs, Long.MIN_VALUE, now);
assertEquals(3, lfss.size());
WALInputFormat.addFile(lfss, lfs, Long.MIN_VALUE, Long.MAX_VALUE);
assertEquals(4, lfss.size());
WALInputFormat.addFile(lfss, lfs, now, now + 2);
assertEquals(5, lfss.size());
WALInputFormat.addFile(lfss, lfs, now + 1, now + 2);
assertEquals(5, lfss.size());
Mockito.when(lfs.getPath()).thenReturn(new Path("/name"));
WALInputFormat.addFile(lfss, lfs, Long.MIN_VALUE, Long.MAX_VALUE);
assertEquals(6, lfss.size());
Mockito.when(lfs.getPath()).thenReturn(new Path("/name.123"));
WALInputFormat.addFile(lfss, lfs, Long.MIN_VALUE, Long.MAX_VALUE);
assertEquals(7, lfss.size());
Mockito.when(lfs.getPath()).thenReturn(new Path("/name." + now + ".meta"));
WALInputFormat.addFile(lfss, lfs, now, now);
assertEquals(8, lfss.size());
}
}
| [
"[email protected]"
] | |
582ad0648831c385da26a51616e13bf3030a2eac | 105bf5b818c08d651afcada5b45c956476f68afd | /src/ch05/User.java | 68a4b5624fb91b68dfcc09569c205a6fd34ec04f | [] | no_license | fengkunpeng/untitled1 | 090a7bd691aefc8ec290d128761c0eb18c397361 | c4e2dc45fb4e354a9200e6e36c88f1c0853016b0 | refs/heads/master | 2020-04-26T18:41:23.691688 | 2019-03-04T13:39:55 | 2019-03-04T13:39:55 | 173,751,846 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 643 | java | //package ch05;
//public class User {
// private String name;
// private int age;
// public int id;
//
// public User(){
//
// }
//
// public User (String name,int age,int id){
// this.name=name;
// this.age=age;
// this.id=id;
// }
//
// public void foo(){
//
// }
//
// private void goo(int i, double d){
// System.out.println("goo.............."+i+d);
// }
// @Override
// public String toString() {
// return "User{" +
// "name='" + name + '\'' +
// ", age=" + age +
// ", id=" + id +
// '}';
// }
//}
| [
"[email protected]"
] | |
6cb217fcef783a3fedd0a5c784803efb87938917 | 50866b04ad0490255d05ad6ee81ccb84df1b0d9d | /app/src/test/java/developer/ishank/forlalit/sir/lsacademy/ExampleUnitTest.java | da9181f46d7e41b9793b3919399657c93f7e7f58 | [] | no_license | IshankSingh/LSACADEMY | eca29f0b6f3a7a2d4e96a52d705eff35a6efdcd0 | 740182115e2b2409b1d750d22f8a2d8bd1ebe96c | refs/heads/master | 2022-06-09T18:44:12.528792 | 2020-05-06T14:49:55 | 2020-05-06T14:49:55 | 261,790,274 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 400 | java | package developer.ishank.forlalit.sir.lsacademy;
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]"
] | |
d5600f4ee1a8fd9e4848b1b5c8e06b57da54fea2 | 4d0392aeca1f067ea98ab13d67629826c87fdf15 | /jmetal/base/variable/Permutation.java | d60d888db042b32cba0f4b3ff13071fc3affa318 | [] | no_license | phoenix-1-2/Software-Refactoring | 2583cebdcfb329eeba28f6b864dea928af1b5091 | bbca336f157d52c5d0c89c1e8f54a50a7ddccb4b | refs/heads/main | 2023-03-21T04:38:22.436799 | 2021-03-13T14:27:21 | 2021-03-13T14:27:21 | 328,653,960 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,723 | java | /**
* Permutation.java
*
* @author juanjo durillo
* @version 1.0
*/
package jmetal.base.variable;
import jmetal.base.Variable;
/**
* Implements a permutation of integer decision variable
*/
public class Permutation extends Variable
{
/**
* Stores a permutation of <code>int</code> values
*/
public int[] vector_;
/**
* Stores the length of the permutation
*/
public int size_;
/**
* Constructor
*/
public Permutation()
{
size_ = 0;
vector_ = null;
} // Permutation
/**
* Constructor
*
* @param size Length of the permutation
*/
/*
* public Permutation(int size) { setVariableType(VariableType_.Permutation)
* ;
*
* size_ = size; vector_ = new int[size_];
*
* int [] randomSequence = new int[size_];
*
* for(int k = 0; k < size_; k++){ int num = PseudoRandom.randInt();
* randomSequence[k] = num; vector_[k] = k; }
*
* // sort value and store index as fragment order for(int i = 0; i <
* size_-1; i++){ for(int j = i+1; j < size_; j++) { if(randomSequence[i] >
* randomSequence[j]){ int temp = randomSequence[i]; randomSequence[i] =
* randomSequence[j]; randomSequence[j] = temp;
*
* temp = vector_[i]; vector_[i] = vector_[j]; vector_[j] = temp; } } } }
* //Permutation
*/
/**
* Constructor
*
* @param size Length of the permutation This constructor has been
* contributed by Madan Sathe
*/
public Permutation(int size)
{
size_ = size;
vector_ = new int[size_];
randomize();
} // Constructor
public void randomize()
{
java.util.ArrayList<Integer> randomSequence = new java.util.ArrayList<Integer>(size_);
for (int i = 0; i < size_; i++)
randomSequence.add(i);
java.util.Collections.shuffle(randomSequence);
for (int j = 0; j < randomSequence.size(); j++)
vector_[j] = randomSequence.get(j);
}
/**
* Copy Constructor
*
* @param permutation The permutation to copy
*/
public Permutation(Permutation permutation)
{
size_ = permutation.size_;
vector_ = new int[size_];
for (int i = 0; i < size_; i++)
{
vector_[i] = permutation.vector_[i];
}
} // Permutation
/**
* Create an exact copy of the <code>Permutation</code> object.
*
* @return An exact copy of the object.
*/
public Variable deepCopy()
{
return new Permutation(this);
} // deepCopy
/**
* Returns the length of the permutation.
*
* @return The length
*/
public int getLength()
{
return size_;
} // getNumberOfBits
/**
* Returns a string representing the object
*
* @return The string
*/
public String toString()
{
String string;
string = "";
for (int i = 0; i < size_; i++)
string += vector_[i] + " ";
return string;
} // toString
}
| [
"[email protected]"
] | |
a3e00907d5eb9dab0a405e5a913eac669c158c71 | 0867f19515d737575973db8325bfdf1f808d81c1 | /src/Coalesce.Framework.Persistance/derby/persister/src/test/java/com/incadencecorp/coalesce/framework/persistance/derby/DerbyPersistorTest.java | a75d781d635a9aef27dbc2c061df14e862369db0 | [] | no_license | wdrescher/coalesce | 638bbcba064b5024d6b6a64e89bc391bc9c9334e | 653d9211e58151a24a2932a1e03cfdfc4eecb3f3 | refs/heads/master | 2020-03-26T21:02:41.910055 | 2018-08-09T14:56:53 | 2018-08-09T15:22:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,946 | java | /*-----------------------------------------------------------------------------'
Copyright 2017 - InCadence Strategic Solutions Inc., All Rights Reserved
Notwithstanding any contractor copyright notice, the Government has Unlimited
Rights in this work as defined by DFARS 252.227-7013 and 252.227-7014. Use
of this work other than as specifically authorized by these DFARS Clauses may
violate Government rights in this work.
DFARS Clause reference: 252.227-7013 (a)(16) and 252.227-7014 (a)(16)
Unlimited Rights. The Government has the right to use, modify, reproduce,
perform, display, release or disclose this computer software and to have or
authorize others to do so.
Distribution Statement D. Distribution authorized to the Department of
Defense and U.S. DoD contractors only in support of U.S. DoD efforts.
-----------------------------------------------------------------------------*/
package com.incadencecorp.coalesce.framework.persistance.derby;
import java.nio.file.Paths;
import org.junit.BeforeClass;
import com.incadencecorp.coalesce.framework.persistance.AbstractCoalescePersistorTest;
import com.incadencecorp.unity.common.connectors.FilePropertyConnector;
/**
* This implementation execute test against {@link DerbyPersistor}.
*
* @author mdaconta
*/
public class DerbyPersistorTest extends AbstractCoalescePersistorTest<DerbyPersistor> {
/**
* Initializes the test configuration.
*/
@BeforeClass
public static void initialize() throws Exception
{
System.setProperty("derby.system.home", Paths.get("target", "derby").toFile().getAbsolutePath());
FilePropertyConnector connector = new FilePropertyConnector(Paths.get("src", "test", "resources"));
connector.setReadOnly(true);
DerbySettings.setConnector(connector);
}
@Override
protected DerbyPersistor createPersister()
{
return new DerbyPersistor();
}
}
| [
"[email protected]"
] | |
307a379d8ba16d1613b71590ed550c083f0d7bff | 8368da64900865a635b46f7b1647243d80e87cc4 | /src/src/main/java/ece/ntua/softeng/api/JsonLoginRepresentation.java | 398614e7508c18569c5816f9f3f517ac80d47114 | [] | no_license | StefanosPoulidis/Software-Engineering | 1d130d345d48b838ecc7037bb306035f48238c4c | 4ab05f61eb7ac834af1f3bfde73588ec585b22d5 | refs/heads/master | 2022-12-15T14:25:49.681268 | 2020-09-21T09:27:24 | 2020-09-21T09:27:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 604 | java | package ece.ntua.softeng.api;
import com.google.gson.Gson;
import org.restlet.data.MediaType;
import org.restlet.representation.WriterRepresentation;
import java.io.IOException;
import java.io.Writer;
public class JsonLoginRepresentation extends WriterRepresentation {
private final String userPass;
public JsonLoginRepresentation(String userPass) {
super(MediaType.APPLICATION_JSON);
this.userPass = userPass;
}
@Override
public void write(Writer writer) throws IOException {
Gson gson = new Gson();
writer.write(gson.toJson(userPass));
}
}
| [
"[email protected]"
] | |
59f57d7df5d7bb18ca238bd90597d6bbbf2a0f0e | 4ca71f735cc55e4a3469558783fdac2e49ae12d6 | /23_temporizador_ejb/src/ejbs/TemporizadorEjb.java | c7ed6dfb2131203158b142ea2e1737399dcbedfe | [] | no_license | oobregon/curso_arquitecto_javaee_ejb_jpa | e23ee99fff2ca56e8b5d1ef74a176e81a7b4f2b5 | 4570e8aea0a8b664ee286a70bf2b37334f0e1e19 | refs/heads/master | 2022-07-08T20:45:28.870120 | 2019-12-04T21:37:15 | 2019-12-04T21:37:15 | 212,338,462 | 0 | 0 | null | 2022-06-21T02:05:20 | 2019-10-02T12:40:01 | Java | WINDOWS-1250 | Java | false | false | 767 | java | package ejbs;
import javax.annotation.Resource;
import javax.ejb.LocalBean;
import javax.ejb.SessionContext;
import javax.ejb.Stateless;
import javax.ejb.Timeout;
import javax.ejb.Timer;
/**
* Session Bean implementation class TemporizadorEjb
*/
@Stateless
@LocalBean
public class TemporizadorEjb implements TemporizadorEjbLocal {
@Resource
SessionContext sc;
Timer tm;
@Timeout
void imprimirMensaje(Timer t) {
System.out.println("Imprimiendo el mensaje periódico "+t.getInfo());
}
@Override
public void iniciarTemporizador(long periodo) {
tm=sc.getTimerService().createTimer(3000, periodo, "mensaje de temporizador");
}
@Override
public void detenerTemporizador() {
tm.cancel();
}
}
| [
"[email protected]"
] | |
448b51d3e4908b353e22a68b771854b1859d4346 | a9ae2d0f80d6bbdf58b85706d0349a701df9818f | /mall-coupon/src/main/java/com/shop/mall/coupon/service/impl/SeckillSkuNoticeServiceImpl.java | cc1d6869839ccb0f2525fe11e02b73c2a6223ce9 | [] | no_license | maple2012/guilimall | efc9f6a8520ee136de0ac905518b301270826751 | 7548b2c7319e1521d3a0c17580a226e632b2c479 | refs/heads/master | 2023-01-27T17:44:17.655066 | 2020-11-30T16:42:41 | 2020-11-30T16:42:41 | 315,351,407 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,049 | java | package com.shop.mall.coupon.service.impl;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shop.common.utils.PageUtils;
import com.shop.common.utils.Query;
import com.shop.mall.coupon.dao.SeckillSkuNoticeDao;
import com.shop.mall.coupon.entity.SeckillSkuNoticeEntity;
import com.shop.mall.coupon.service.SeckillSkuNoticeService;
@Service("seckillSkuNoticeService")
public class SeckillSkuNoticeServiceImpl extends ServiceImpl<SeckillSkuNoticeDao, SeckillSkuNoticeEntity> implements SeckillSkuNoticeService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
IPage<SeckillSkuNoticeEntity> page = this.page(
new Query<SeckillSkuNoticeEntity>().getPage(params),
new QueryWrapper<SeckillSkuNoticeEntity>()
);
return new PageUtils(page);
}
} | [
"[email protected]"
] | |
e406dcb515f6b9914d3126c2776ca6e7e6512767 | d2ce9af7b398f16865bd9871a0c3180e092e46e5 | /vksdk_library/src/main/java/com/vk/sdk/api/methods/VKApiUsers.java | 6615bdb84b00294335b6dc699bdfffc5954cf68a | [
"MIT"
] | permissive | elagin/motocitizen | b3ce3431e2d2e903fde29fa026365e1fa3d1d84c | 0b7bfd41c7701d19872deebd83fce0d60908383e | refs/heads/master | 2020-04-04T21:07:18.377180 | 2018-09-05T11:55:37 | 2018-09-05T11:55:37 | 41,307,837 | 1 | 0 | MIT | 2019-04-18T14:24:46 | 2015-08-24T14:28:50 | Java | UTF-8 | Java | false | false | 4,576 | java | //
// Copyright (c) 2014 VK.com
//
// 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.
//
package com.vk.sdk.api.methods;
import com.vk.sdk.api.VKApiConst;
import com.vk.sdk.api.VKParameters;
import com.vk.sdk.api.VKParser;
import com.vk.sdk.api.VKRequest;
import com.vk.sdk.api.model.VKApiUserFull;
import com.vk.sdk.api.model.VKList;
import com.vk.sdk.api.model.VKUsersArray;
import org.json.JSONObject;
/**
* Builds requests for API.users part
*/
public class VKApiUsers extends VKApiBase {
/**
* Returns basic information about current user
*
* @return Request for load
*/
public VKRequest get() {
return get(null);
}
/**
* https://vk.com/dev/users.get
*
* @param params use parameters from description with VKApiConst class
* @return Request for load
*/
public VKRequest get(VKParameters params) {
return prepareRequest("get", params, new VKParser() {
@Override
public Object createModel(JSONObject object) {
return new VKList<>(object, VKApiUserFull.class);
}
});
}
/**
* https://vk.com/dev/users.search
*
* @param params use parameters from description with VKApiConst class
* @return Request for load
*/
public VKRequest search(VKParameters params) {
return prepareRequest("search", params, VKUsersArray.class);
}
/**
* https://vk.com/dev/users.isAppUser
*
* @return Request for load
*/
public VKRequest isAppUser() {
return prepareRequest("isAppUser", null);
}
/**
* https://vk.com/dev/users.isAppUser
*
* @param userID ID of user to check
* @return Request for load
*/
public VKRequest isAppUser(final int userID) {
return prepareRequest("isAppUser",
new VKParameters() {
/**
*
*/
private static final long serialVersionUID = 7458591447441581671L;
{
put(VKApiConst.USER_ID, String.valueOf(userID));
}
});
}
/**
* https://vk.com/dev/users.getSubscriptions
*
* @return Request for load
*/
public VKRequest getSubscriptions() {
return getSubscriptions(null);
}
/**
* https://vk.com/dev/users.getSubscriptions
*
* @param params use parameters from description with VKApiConst class
* @return Request for load
*/
public VKRequest getSubscriptions(VKParameters params) {
return prepareRequest("getSubscriptions", params);
}
/**
* https://vk.com/dev/users.getFollowers
*
* @return Request for load
*/
public VKRequest getFollowers() {
return getFollowers(null);
}
/**
* https://vk.com/dev/users.getFollowers
*
* @param params use parameters from description with VKApiConst class
* @return Request for load
*/
public VKRequest getFollowers(VKParameters params) {
return prepareRequest("getFollowers", params);
}
/**
* https://vk.com/dev/users.report
* Created on 29.01.14.
*
* @param params use parameters from description with VKApiConst class
* @return Request for load
*/
public VKRequest report(VKParameters params) {
return prepareRequest("report", params);
}
@Override
protected String getMethodsGroup() {
return "users";
}
} | [
"[email protected]"
] | |
675d938d73f2540efec764b5ce59761cfeb35933 | 0e0dbea05a445fdd1e1e16ddb0bb979b86d316b5 | /ROMES 2.0/src/evevtListener/miniTableEvent_Order.java | 3ab31fcc2bf8de5a5c8c762645d018123b0f9030 | [] | no_license | footion/romesupdateing | 384bba98f2e160fdd2626c1c48807f6b6b6829b1 | f331be9806d6b49e0ee7e60d9def97487a733856 | refs/heads/master | 2022-11-23T04:05:27.992924 | 2020-08-03T09:02:01 | 2020-08-03T09:02:01 | 284,614,911 | 0 | 0 | null | 2020-08-03T05:50:52 | 2020-08-03T05:50:52 | null | UHC | Java | false | false | 4,458 | java | package evevtListener;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JOptionPane;
import javax.swing.ListModel;
import factory.stringFactory;
import layoutSetting.miniTable;
import registrationFrame.companyRegistration;
import registrationFrame.orderRegistration;
import selectFrame.selectFrame;
public class miniTableEvent_Order implements MouseListener,KeyListener{
miniTable miniTable;
selectFrame SelectFrame;
public miniTableEvent_Order(miniTable minitable) {
miniTable=minitable;
}
@Override
public void mouseClicked(MouseEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void mouseEntered(MouseEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void mouseExited(MouseEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void mousePressed(MouseEvent arg0) {
//refresh totalPrice
orderRegistration.totalPrice.refreshPrice();
//call selectFrame
if(miniTable.table.getSelectedColumn()==0) {
//createSelectFrame
SelectFrame=createModelSelectFrame();
//addActionListener
SelectFrame.okBtn.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0) {
// TODO Auto-generated method stub
miniTable.table.setValueAt(SelectFrame.dataList.getSelectedValue(),miniTable.table.getSelectedRow(), 0);
SelectFrame.dispose();
}
});
SelectFrame.enumTypePanel.button.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0) {
// TODO Auto-generated method stub
enumTypeEvent();
}
});
}
}
@Override
public void mouseReleased(MouseEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void keyPressed(KeyEvent e) {
// TODO Auto-generated method stub
if (e.getKeyCode() == KeyEvent.VK_ENTER) {
orderRegistration.totalPrice.refreshPrice();
}
}
@Override
public void keyReleased(KeyEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void keyTyped(KeyEvent arg0) {
// TODO Auto-generated method stub
}
selectFrame createModelSelectFrame() {
String dataTest [] = new String[30];
for(int i=0;i<30;i++) {
dataTest[i]="model"+Integer.toString(i+1);
}
String title="Model Representative";
String type ="model";
String[] listData=dataTest;
selectFrame selectFrame=new selectFrame(title, type, listData);
selectFrame.enumTypePanel.textField.addKeyListener(selectFrameEvent_miniTable());
selectFrame.dataList.addKeyListener(selectFrameEvent_miniTable());
return selectFrame;
}
void enumTypeEvent() {
boolean confirmData=false;
ListModel model = SelectFrame.dataList.getModel();
for(int i=0; i< model.getSize();i++) {
String data = (String) model.getElementAt(i);
if(data.equals(SelectFrame.enumTypePanel.textField.getText())) {
confirmData=true;
miniTable.table.setValueAt(SelectFrame.enumTypePanel.textField.getText(),miniTable.table.getSelectedRow(), 0);
SelectFrame.dispose();
break;
}
}
if(confirmData==false) {
noneData();
}
}
void noneData() {
int confirm = JOptionPane.showConfirmDialog(null, "등록되어 있지 않은 "+stringFactory.TYPE_MODEL+"입니다. 등록하시겠습니까 ?","등록되어 있지 않음",JOptionPane.YES_NO_OPTION);
if(confirm==0) {
SelectFrame.dispose();
}
}
KeyListener selectFrameEvent_miniTable() {
KeyListener keyListener = new KeyListener() {
@Override
public void keyTyped(KeyEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void keyReleased(KeyEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void keyPressed(KeyEvent e) {
// TODO Auto-generated method stub
System.out.println("Press Key");
if (e.getKeyCode() == KeyEvent.VK_ENTER) {
System.out.println("Press Enter");
if(e.getSource()==SelectFrame.dataList) {
System.out.println("select data");
miniTable.table.setValueAt(SelectFrame.dataList.getSelectedValue(),miniTable.table.getSelectedRow(), 0);
SelectFrame.dispose();
}
if(e.getSource()==SelectFrame.enumTypePanel.textField) {
enumTypeEvent();
}
}
}
};
return keyListener;
}
}
| [
"[email protected]"
] | |
7fb3350783e2e9dc5dd8e940c199a22c01205347 | b40cc41805488b822f7e38f330a309b9cc955bf9 | /src/main/java/com/signer/vendas/security/JWTUtil.java | 4c86f673f015afbcfe6efdcdcca00a366ec4f743 | [] | no_license | BrunoTardio/signer.vendas | d9cee7a0cdd6b847088e18296b126ac3df8d2e8b | 36fcb33d356aae7c89c405fd6cbb0ece2cb36d87 | refs/heads/master | 2020-04-24T07:18:27.166074 | 2019-05-20T18:23:40 | 2019-05-20T18:23:40 | 171,783,307 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,393 | java | package com.signer.vendas.security;
import java.util.Date;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
@Component
public class JWTUtil {
@Value("${jwt.secret}")
private String secret;
@Value("${jwt.expiration}")
private Long expiration;
public String generateToken(String username) {
return Jwts.builder()
.setSubject(username)
.setExpiration(new Date(System.currentTimeMillis() + expiration))
.signWith(SignatureAlgorithm.HS512, secret.getBytes())
.compact();
}
public boolean tokenValido(String token) {
Claims claims = getClaims(token);
if (claims != null) {
String username = claims.getSubject();
Date expirationDate = claims.getExpiration();
Date now = new Date(System.currentTimeMillis());
if (username != null && expirationDate != null && now.before(expirationDate)) {
return true;
}
}
return false;
}
public String getUsername(String token) {
Claims claims = getClaims(token);
if (claims != null) {
return claims.getSubject();
}
return null;
}
private Claims getClaims(String token) {
try {
return Jwts.parser().setSigningKey(secret.getBytes()).parseClaimsJws(token).getBody();
}
catch (Exception e) {
return null;
}
}
}
| [
"[email protected]"
] | |
d26e6e1acb9a49721e9f49f23e91043b5fa2ca74 | fc8341d316725ab0ae344252b0fd3c8e42efe8b1 | /src/main/java/Dominio/Localidad.java | 4182e2fbe49723077aa358eb942e5effbdb4fb20 | [] | no_license | dariokozicki/ejercicioMercap | 8682110a48a1cf421872d239c871d1b13281bc47 | 82b968fd9afe27ea5ee74e55b2995e4a20f2fe69 | refs/heads/master | 2020-06-24T19:02:02.107800 | 2019-07-28T05:38:49 | 2019-07-28T05:38:49 | 199,055,553 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 198 | java | package Dominio;
public class Localidad {
private double monto;
public Localidad(double monto){
this.monto = monto;
}
public double monto(){
return monto;
}
}
| [
"[email protected]"
] | |
7ff371d96a6de951ae53123a06c62fe474a637e5 | 48492dd566572588d61554fce48b31e2f68bb154 | /src/com/codename1/entities/User.java | e13f0725d71fe8ce77bb0034e3d3efd72b34f91d | [] | no_license | KarimAlouini/karhabti_Mobile | 0385b9fa465c2563805f374230b46992ec4bce9a | e4ee3e9c660cc92736512b24262332ba5a28a88e | refs/heads/master | 2020-03-11T19:11:42.863125 | 2017-05-15T01:26:13 | 2017-05-15T01:26:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,109 | 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 com.codename1.entities;
/*
* 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.
*/
/*
* 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.
*/
import java.io.InputStream;
/**
*
* @author anas
*/
public class User {
int id;
String username;
String email;
String password;
String role;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
public User(String username, String email, String password, String role) {
this.username = username;
this.email = email;
this.password = password;
this.role = role;
}
public User(int id, String username, String email, String password, String role) {
this.id = id;
this.username = username;
this.email = email;
this.password = password;
this.role = role;
}
public User() {
}
public User(String username, String email, String password) {
this.username = username;
this.email = email;
this.password = password;
}
}
| [
"[email protected]"
] | |
717bac73638e0c875d64d03fd529d36ba5b977c0 | fc191858c3f6c67c147f1c103bdd6530ce072c45 | /ejobzz/src/main/java/com/techNarayana/ejobzz/exception/ValidatorException.java | 0b9692f47442b114235e379917c84a7f0ef3658b | [] | no_license | Proxy108/123.DilipRaman | 3a4798f117ed673b0d0aded9f8342578957b526d | caea971048eb34c82ed0184be2a45ce07c091027 | refs/heads/master | 2021-01-10T16:07:51.525058 | 2015-10-07T10:27:06 | 2015-10-07T10:27:06 | 43,801,377 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 430 | java | package com.techNarayana.ejobzz.exception;
import org.apache.log4j.Logger;
public class ValidatorException extends Exception {
/**
*
*/
private static final long serialVersionUID = -8246001808906782379L;
private static final Logger logger = Logger.getLogger(ValidatorException.class);
public ValidatorException(String message) {
super(message);
logger.debug("Validation exception"+message);
}
}
| [
"HKit 3@HKit3-PC"
] | HKit 3@HKit3-PC |
4f6ac11d646c50552e7ea3050b577b00d7a9fd31 | dbec830edeb45f9952ef7b16a44f64e7036e1de8 | /app/src/main/java/com/github/neighbortrader/foodboardapp/ui/about/AboutActivity.java | d788965482e75b083533ed18d933427e55cfff80 | [] | no_license | neighbortrader/FoodBoardApp | d23ebc0bf98caf14d6999ddb7f43e6ee93fb818a | a284a7c33b8fd9a885e68d6c90514862483a0ac7 | refs/heads/master | 2020-07-08T05:10:13.833347 | 2019-11-26T08:57:56 | 2019-11-26T08:57:56 | 203,574,199 | 1 | 0 | null | 2019-10-24T20:46:41 | 2019-08-21T11:55:35 | Java | UTF-8 | Java | false | false | 1,020 | java | package com.github.neighbortrader.foodboardapp.ui.about;
import android.os.Bundle;
import android.view.MenuItem;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.github.neighbortrader.foodboardapp.R;
import com.google.android.material.textview.MaterialTextView;
import butterknife.BindView;
import butterknife.ButterKnife;
public class AboutActivity extends AppCompatActivity {
@BindView(R.id.aboutTextView)
MaterialTextView aboutTextView;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.about);
ButterKnife.bind(this);
aboutTextView.setText(getString(R.string.general_about));
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
if (item.getItemId() == android.R.id.home) {
onBackPressed();
return true;
}
return super.onOptionsItemSelected(item);
}
}
| [
"[email protected]"
] | |
d6a73a2beaa82bd4b705b4eb040832c0a80ad350 | ee6281540c1b0b59bfc9bfad3c4f7851ca9067eb | /src/es/Daniel_Gil_Ejercicios_Condicionales/Ejercicio_Condicional_Estatura.java | 9a7dcb5db0fefc42df7c61b60405cf81f2bd8b94 | [] | no_license | Celot1979/JAVA | 7f798806b3b66e9eb995a906769645d6b46c130c | 2b72a2213d926074712ad0fc9e5d5cea86458ece | refs/heads/master | 2023-05-04T22:23:03.820017 | 2021-05-20T07:37:09 | 2021-05-20T07:37:09 | 330,958,420 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 815 | java | package es.Daniel_Gil_Ejercicios_Condicionales;
import javax.swing.JOptionPane;
public class Ejercicio_Condicional_Estatura {
public static void main(String[] args) {
// TODO Auto-generated method stub
String genero = JOptionPane.showInputDialog("Eres hombre o mujer");
int peso_ideal;
if (genero.equals("Hombre")) {
int estatura = Integer.parseInt(JOptionPane.showInputDialog("Indique su estatura, por favor"));
peso_ideal = estatura - 120;
JOptionPane.showMessageDialog(null, "Tu peso ideal es " + peso_ideal + " kg");
}else {
int estatura = Integer.parseInt(JOptionPane.showInputDialog("Indique su estatura, por favor"));
int peso_ideal_dos = estatura - 110;
JOptionPane.showMessageDialog(null, "Tu peso ideal es " + peso_ideal_dos+ " kg");
}
}
}
| [
"[email protected]"
] | |
7013da9971ccf504c770c63288755b9af2f3e63b | 1f91cf15d43d89ed4d5f109e4358857dc121b96b | /Validation/My-Spring5-Validation-example/src/main/java/com/app02/validator/ch05/valid/AppConfig6.java | ccad0761af229b720e8a83b6a9c74fb6c932d5d5 | [] | no_license | softwareengineerhub/spring | 384aa3f0f423db4ffbc0aef6684e1706f724e1ed | fdd961e839892eb78f831b5490f7a59442911b45 | refs/heads/master | 2023-06-23T15:30:45.090708 | 2023-06-08T08:27:37 | 2023-06-08T08:27:37 | 147,172,612 | 0 | 0 | null | 2023-01-27T20:08:46 | 2018-09-03T08:11:35 | Java | UTF-8 | Java | false | false | 743 | 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 com.app02.validator.ch05.valid;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;
/**
*
* @author Denys.Prokopiuk
*/
@Configuration
@ComponentScan(basePackages = "com.app02.validator.ch05.valid")
public class AppConfig6 {
@Bean
public LocalValidatorFactoryBean validator() {
return new LocalValidatorFactoryBean();
}
}
| [
"[email protected]"
] | |
ac0d1634430cd21c82a5f681c96ce249fc1f2171 | 17cde1f20857176bfb266f1ac7aa5cdb6081e21d | /StudyStudy/app/src/main/java/com/example/studystudy/MainActivity.java | 4242bb98bc714a1bd42f6545c30cd41e03b07e3f | [] | no_license | ilsave/AndroidProjects | 593eda244d677e93bfd895d1c98f490a02e0a3ea | 283277d1022ab603c8c2226f009232ec099d5618 | refs/heads/master | 2022-12-22T03:12:29.635873 | 2020-09-24T05:35:28 | 2020-09-24T05:35:28 | 272,698,121 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,483 | java | package com.example.studystudy;
import com.firebase.ui.auth.AuthUI;
import com.firebase.ui.auth.IdpResponse;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.android.material.tabs.TabItem;
import com.google.android.material.tabs.TabLayout;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;
import com.google.firebase.firestore.FirebaseFirestore;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewpager.widget.ViewPager;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Toast;
import androidx.appcompat.widget.Toolbar;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class MainActivity extends AppCompatActivity {
private static final int RC_SIGN_IN = 123;
private Toolbar mToolbar;
private TabLayout mTablayout;
private TabItem TabItemMyNews;
private TabItem TabItemMyChats;
private TabItem TabItemMyAccount;
private ViewPager ViewPagerMyPager;
private PageController mPageController;
private FirebaseFirestore db;
private int onlineIdentifictor = 0;
// public RecyclerView recyclerViewNotes;
public String facultai;
public ArrayList<UserTeacher> teacherList = new ArrayList<>();
public ArrayList<UserStudent> studentList = new ArrayList<>();
//registration
private FirebaseAuth mAuth;
/**
* Dispatch incoming result to the correct fragment.
*
* @param requestCode
* @param resultCode
* @param data
*/
@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == RC_SIGN_IN) {
IdpResponse response = IdpResponse.fromResultIntent(data);
if (resultCode == RESULT_OK) {
// Successfully signed in
FirebaseUser user = mAuth.getCurrentUser();
if (user != null) {
Toast.makeText(this, user.getEmail()+" is logged ", Toast.LENGTH_SHORT).show();
}
} else {
if (response != null) {
Toast.makeText(this, "error" + response.getError(), Toast.LENGTH_SHORT).show();
}
}
}
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main_menu, menu);
return super.onCreateOptionsMenu(menu);
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
if (item.getItemId() == R.id.itemSignOut){
mAuth.signOut();
signOut();
}
return super.onOptionsItemSelected(item);
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// recyclerViewNotes = findViewById(R.id.recyclerViewNotes);
db = FirebaseFirestore.getInstance();
mAuth = FirebaseAuth.getInstance();//tk singleton
mToolbar = findViewById(R.id.toolBar);
setSupportActionBar(mToolbar);
getSupportActionBar().setTitle("StudyStudy");
mTablayout = findViewById(R.id.tabLayout);
TabItemMyNews = findViewById(R.id.tabItemNews);
TabItemMyChats = findViewById(R.id.tabItemChats);
TabItemMyAccount = findViewById(R.id.tabItemMyaccount);
ViewPagerMyPager = findViewById(R.id.viewPager);
// Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.fragmentMainEducation);
//fragment.set
mPageController = new PageController(getSupportFragmentManager(), mTablayout.getTabCount());
ViewPagerMyPager.setAdapter(mPageController);
mTablayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
@Override
public void onTabSelected(TabLayout.Tab tab) {
ViewPagerMyPager.setCurrentItem(tab.getPosition());
}
@Override
public void onTabUnselected(TabLayout.Tab tab) {
}
@Override
public void onTabReselected(TabLayout.Tab tab) {
}
});
ViewPagerMyPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(mTablayout));
if (mAuth.getCurrentUser() != null) {
Toast.makeText(this, "this user is logged", Toast.LENGTH_SHORT).show();
} else {
signOut();
}
//FragmentManager fragmentManager = getSupportFragmentManager();
}
public void onClickAddNews (View view){
Intent intent = new Intent(this, AddNewsActivity.class);
// Intent intent1 = new Intent(this.getContext(), AddNewsActivity.class);
startActivity(intent);
// Intent intent= new Intent(view.getContext(), AddNewsActivity.class);
// view.getContext().startActivity(intent);
}
private void signOut(){
Intent intent = new Intent(this, RegisterActivity.class);
startActivity(intent);
}
}
| [
"[email protected]"
] | |
862aeada5b747e13b3704b8b7584154c8fdd1dba | dd518485694340fa0339a1dc13bb38d3774f7d7e | /src/br/quixada/ufc/ws/model/Usuario.java | e50a0ac5629ecceb78049e21dd785fe02f40e8e9 | [
"Apache-2.0"
] | permissive | gleydson/WebService | 908c1cae1352007028e1882561a99e220054408a | f7e15b64eac340f654c28106645022ae6ae53a16 | refs/heads/master | 2021-06-15T18:38:21.715460 | 2017-04-26T00:50:30 | 2017-04-26T00:50:30 | 75,109,692 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,129 | java | package br.quixada.ufc.ws.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@Entity(name = "usuario")
public class Usuario {
@Id
@Column(name = "idUsuario")
@GeneratedValue(strategy = GenerationType.AUTO)
private Long idUsuario;
@Column(name = "nome")
private String nome;
@Column(name = "email", unique = true)
private String email;
@Column(name = "senha")
private String senha;
//GETs & SETs
public Long getIdUsuario() {
return idUsuario;
}
public void setIdUsuario(Long idUsuario) {
this.idUsuario = idUsuario;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getSenha() {
return senha;
}
public void setSenha(String senha) {
this.senha = senha;
}
}
| [
"[email protected]"
] | |
b1dc25043135143a99524f8ab192d89776c4b2e8 | 4688ad55a38019a4ed3a69d232fc2af95a8f6a5e | /myHotel/src/main/java/com/example/hotel/myHotel/entry/Permission.java | 5174ff4e1a30db4589bedef20f2965239d9b041b | [] | no_license | Bruceguli/mySpringbootBase | 763c99279a0f2630a391ade79e5abe5fd3660cec | 045a03eec7014df882da8f862070939b951f8bbc | refs/heads/master | 2022-07-17T09:45:31.532993 | 2019-07-24T08:42:52 | 2019-07-24T08:42:52 | 198,588,184 | 0 | 0 | null | 2021-06-04T02:05:54 | 2019-07-24T08:05:28 | Java | UTF-8 | Java | false | false | 1,269 | java | package com.example.hotel.myHotel.entry;
public class Permission {
private Integer id;
private String name;
private String permissionUrl;
private String method;
private String description;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPermissionUrl() {
return permissionUrl;
}
public void setPermissionUrl(String permissionUrl) {
this.permissionUrl = permissionUrl;
}
public String getMethod() {
return method;
}
public void setMethod(String method) {
this.method = method;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public String toString() {
return "Permission{" +
"id=" + id +
", name=" + name +
", permissionUrl=" + permissionUrl +
", method=" + method +
", description=" + description +
'}';
}
} | [
"[email protected]"
] | |
605baf022a2437113046a5f5ea15ca7e1e15a548 | decae1a6243cc170083f94b6e5eaea4a5ff45822 | /src/main/java/com/sow/arrays/SmallestNumInArray.java | 6c1d68bb1045791892a7761a6ddb7de0a921adb7 | [] | no_license | sowmya-mathad/java-practice-programs | 0875c3b7da885efc17270d7a3bacb07d2779e979 | 6dc40255ec7aecf4e9e590d061628e154d676275 | refs/heads/master | 2022-11-19T18:19:22.836704 | 2020-06-23T05:17:22 | 2020-06-23T05:17:22 | 271,346,068 | 0 | 0 | null | 2020-06-23T05:17:24 | 2020-06-10T17:49:01 | Java | UTF-8 | Java | false | false | 548 | java | package com.sow.arrays;
public class SmallestNumInArray {
public static int getSmallest(int[] a, int total) {
int temp;
for (int i = 0; i < total; i++) {
for (int j = i + 1; j < total; j++) {
if (a[i] > a[j]) {
temp = a[i];
a[i] = a[j];
a[j] = temp;
}
}
}
return a[0];
}
public static void main(String args[]) {
int a[] = { 1, 2, 5, 6, 3, 0 };
int b[] = { 44, 66, 99, 77, 33, 22, 55 };
System.out.println("Smallest: " + getSmallest(a, 6));
System.out.println("Smallest: " + getSmallest(b, 7));
}
} | [
"[email protected]"
] | |
c177635b5b91e6f5881b4123107cc7d83140e03a | 3ef55e152decb43bdd90e3de821ffea1a2ec8f75 | /large/module1998_internal/src/java/module1998_internal/a/Foo1.java | fa57e7c03c50e1b5d5bfd12809d9d1af99927258 | [
"BSD-3-Clause"
] | permissive | salesforce/bazel-ls-demo-project | 5cc6ef749d65d6626080f3a94239b6a509ef145a | 948ed278f87338edd7e40af68b8690ae4f73ebf0 | refs/heads/master | 2023-06-24T08:06:06.084651 | 2023-03-14T11:54:29 | 2023-03-14T11:54:29 | 241,489,944 | 0 | 5 | BSD-3-Clause | 2023-03-27T11:28:14 | 2020-02-18T23:30:47 | Java | UTF-8 | Java | false | false | 1,515 | java | package module1998_internal.a;
import java.beans.beancontext.*;
import java.io.*;
import java.rmi.*;
/**
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
* labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
* Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
*
* @see java.io.File
* @see java.rmi.Remote
* @see java.nio.file.FileStore
*/
@SuppressWarnings("all")
public abstract class Foo1<D> extends module1998_internal.a.Foo0<D> implements module1998_internal.a.IFoo1<D> {
java.sql.Array f0 = null;
java.util.logging.Filter f1 = null;
java.util.zip.Deflater f2 = null;
public D element;
public static Foo1 instance;
public static Foo1 getInstance() {
return instance;
}
public static <T> T create(java.util.List<T> input) {
return module1998_internal.a.Foo0.create(input);
}
public String getName() {
return module1998_internal.a.Foo0.getInstance().getName();
}
public void setName(String string) {
module1998_internal.a.Foo0.getInstance().setName(getName());
return;
}
public D get() {
return (D)module1998_internal.a.Foo0.getInstance().get();
}
public void set(Object element) {
this.element = (D)element;
module1998_internal.a.Foo0.getInstance().set(this.element);
}
public D call() throws Exception {
return (D)module1998_internal.a.Foo0.getInstance().call();
}
}
| [
"[email protected]"
] | |
4a68f966f24cd629e563c34095aef4f93398ab8c | a98fdbbfd9bc8cb9e347168c3efe6b9c234c0f2b | /src/main/java/com/imagevideoapp/daoImpl/SeedDataDaoImpl.java | 766c1e98050b42442a9adc1600d1c156e7cd5fbc | [] | no_license | manish263160/ImageVideoApp | 90fd198643fe9a5d288d979cec336d7f1e8b7b77 | 6392fd01a98af3a5e56fb58f3bea5266bce6da30 | refs/heads/master | 2022-12-22T06:00:13.775269 | 2019-12-13T17:01:32 | 2019-12-13T17:01:32 | 87,408,814 | 0 | 0 | null | 2017-05-21T15:07:19 | 2017-04-06T09:01:57 | JavaScript | UTF-8 | Java | false | false | 405 | java | package com.imagevideoapp.daoImpl;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Repository;
import com.imagevideoapp.dao.SeedDataDao;
import com.imagevideoapp.support.ImageVideoJdbcDaoSupport;
@Repository
public class SeedDataDaoImpl extends ImageVideoJdbcDaoSupport implements SeedDataDao {
private static final Logger logger = Logger.getLogger(SeedDataDaoImpl.class);
}
| [
"[email protected]"
] | |
fae5b6cf8348e6c975c5f70ee0bf5c29c6d217e6 | 83d56024094d15f64e07650dd2b606a38d7ec5f1 | /sicc_druida/fuentes/java/CobGuionArgumCabecViewListFormatter.java | a38681df038b84a5787ac1f2511a8d1efc8bb03c | [] | no_license | cdiglesias/SICC | bdeba6af8f49e8d038ef30b61fcc6371c1083840 | 72fedb14a03cb4a77f62885bec3226dbbed6a5bb | refs/heads/master | 2021-01-19T19:45:14.788800 | 2016-04-07T16:20:51 | 2016-04-07T16:20:51 | null | 0 | 0 | null | null | null | null | ISO-8859-10 | Java | false | false | 2,837 | java |
/*
INDRA/CAR/mmg
$Id: CobGuionArgumCabecViewListFormatter.java,v 1.1 2009/12/03 18:42:06 pecbazalar Exp $
DESC
*/
import java.util.Vector;
import java.util.Hashtable;
import java.util.Enumeration;
import es.indra.belcorp.mso.*;
import es.indra.druida.DruidaFormatoObjeto;
import es.indra.druida.belcorp.MMGDruidaFormatoObjeto;
import es.indra.druida.belcorp.MMGDruidaHelper;
import es.indra.mare.common.dto.IMareDTO;
import java.util.HashMap;
import java.text.DecimalFormatSymbols;
import es.indra.mare.common.mgu.manager.Property;
import es.indra.utils.*;
/**
* Clase de formateo de objetos "CobGuionArgumCabecView" para Druida
*
* @author Indra
*/
public class CobGuionArgumCabecViewListFormatter extends MMGDruidaFormatoObjeto {
public CobGuionArgumCabecViewListFormatter() {
}
public void formatea(String s, Object obj) throws Exception {
IMareDTO dto = (IMareDTO) obj;
Vector cobGuionArgumCabecViewList = (Vector) dto.getProperty("result");
Vector result = new Vector();
HashMap propiedades = this.getUserProperties();
Property propiedadFecha = (Property)propiedades.get("FormatoFecha");
Property propiedadMiles = (Property)propiedades.get("FormatoNumericoSeparadorMiles");
Property propiedadDecimal = (Property)propiedades.get("FormatoNumericoSeparadorDecimales");
DecimalFormatSymbols symbols = new DecimalFormatSymbols();
symbols.setDecimalSeparator(propiedadDecimal.getValue().toString().charAt(0));
symbols.setGroupingSeparator(propiedadMiles.getValue().toString().charAt(0));
for (int i = 0; i < cobGuionArgumCabecViewList.size(); i++) {
CobGuionArgumCabecViewData cobGuionArgumCabecViewData = (CobGuionArgumCabecViewData) cobGuionArgumCabecViewList.elementAt(i);
Vector row = new Vector();
// Aņadir la clave
Hashtable primaryKey = cobGuionArgumCabecViewData.mmgGetPrimaryKey();
Enumeration keys = primaryKey.keys();
while (keys.hasMoreElements()) {
Object element = primaryKey.get(keys.nextElement());
row.add((element != null ? element.toString() : ""));
}
// Aņadir el resto de atributos
row.add((cobGuionArgumCabecViewData.getCodGuiaArgu() != null ?
FormatUtils.formatObject(cobGuionArgumCabecViewData.getCodGuiaArgu(),
MMGDruidaHelper.getUserDecimalFormatPattern(this),
symbols) : ""));
row.add((cobGuionArgumCabecViewData.getDescripcion() != null ?
FormatUtils.formatObject(cobGuionArgumCabecViewData.getDescripcion(),
MMGDruidaHelper.getUserDecimalFormatPattern(this),
symbols) : ""));
// Aņadir el atributo timestamp. Por ahora queda deshabilitado (ponemos un 0) ya que no hay bloqueos....
//row.add(new Long(cobGuionArgumCabecViewData.jdoGetTimeStamp()).toString());
row.add(new Long(0).toString());
result.add(row);
}
setCampo(s, result);
}
}
| [
"[email protected]"
] | |
65422e4fec1701990e153bf020db3f9ae660cce7 | 97f6d5e5910b134f82b7d41c2a887228439d9058 | /seleniumproject/src/main/java/com/epam/seleniumproject/AppTest.java | f120f3fe5c51f22341ffb47959b0c960089e8af6 | [] | no_license | saiteja8848/ResourceDevelopment | d3e21a90cb0710328a3ecd21d0e71fb83d35e469 | 153ad8ae800d1dd7ccbf52100eac2e9fe9f52ffb | refs/heads/master | 2022-04-26T09:29:44.478165 | 2020-03-16T14:49:11 | 2020-03-16T14:49:11 | 234,357,404 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 905 | java | package com.epam.seleniumproject;
import java.io.IOException;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
public class AppTest {
public static void main(String args[]) throws IOException {
String current=System.getProperty("user.dir");
//XSSFWorkbook x = new XSSFWorkbook("C:\\Users\\User\\Desktop\\seleniumproject\\src\\test\\resources\\TestData\\TestDataInput.xlsx");
XSSFWorkbook x = new XSSFWorkbook(current+"/src/test/resources/TestData/TestDataInput.xlsx");
XSSFSheet s= x.getSheet("Sheet1");
String cellvalue= s.getRow(1).getCell(0).getStringCellValue();
System.out.println(cellvalue);
System.out.println(s.getPhysicalNumberOfRows());
// Logger logger =LogManager.getLogger(pratice.class);
}
}
| [
"[email protected]"
] | |
53400405186252e2aa7f7bcb3048111a8523cda7 | 37b1343af31f288c548c6d7704e7bbbca1cab2a8 | /naavisEngage/src/com/versawork/http/ccd/ObjectFactory.java | a81db04505ca4f394d7b30cd509e59d35761e058 | [] | no_license | saubhagya1987/myproj3 | 5ccb63ee3896fe0ed2c1b880261078ed8f9dcbe4 | 02424bbdf0695672bf4400318863abaaa7e9f5de | refs/heads/master | 2021-01-13T15:32:10.944419 | 2017-03-17T19:01:30 | 2017-03-17T19:01:30 | 85,320,324 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 16,814 | java | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// 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: 2014.08.13 at 04:21:51 PM IST
//
package com.versawork.http.ccd;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each Java content interface and Java
* element interface generated in the org.hl7.v3 package.
* <p>
* An ObjectFactory allows you to programatically construct new instances of the
* Java representation for XML content. The Java representation of XML content
* can consist of schema derived interfaces and classes representing the binding
* of schema type definitions, element declarations and model groups. Factory
* methods for each of these are provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
private final static QName _EffectiveTime_QNAME = new QName("urn:hl7-org:v3", "effectiveTime");
private final static QName _Value_QNAME = new QName("urn:hl7-org:v3", "value");
private final static QName _State_QNAME = new QName("urn:hl7-org:v3", "state");
private final static QName _Th_QNAME = new QName("urn:hl7-org:v3", "th");
private final static QName _City_QNAME = new QName("urn:hl7-org:v3", "city");
private final static QName _SoftwareName_QNAME = new QName("urn:hl7-org:v3", "softwareName");
private final static QName _ManufacturerModelName_QNAME = new QName("urn:hl7-org:v3", "manufacturerModelName");
private final static QName _PostalCode_QNAME = new QName("urn:hl7-org:v3", "postalCode");
private final static QName _StreetAddressLine_QNAME = new QName("urn:hl7-org:v3", "streetAddressLine");
private final static QName _Title_QNAME = new QName("urn:hl7-org:v3", "title");
private final static QName _Content_QNAME = new QName("urn:hl7-org:v3", "content");
private final static QName _Family_QNAME = new QName("urn:hl7-org:v3", "family");
/**
* Create a new ObjectFactory that can be used to create new instances of
* schema derived classes for package: org.hl7.v3
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link AssignedCustodian }
*
*/
public AssignedCustodian createAssignedCustodian() {
return new AssignedCustodian();
}
/**
* Create an instance of {@link RepresentedCustodianOrganization }
*
*/
public RepresentedCustodianOrganization createRepresentedCustodianOrganization() {
return new RepresentedCustodianOrganization();
}
/**
* Create an instance of {@link Id }
*
*/
public Id createId() {
return new Id();
}
/**
* Create an instance of {@link Name }
*
*/
public Name createName() {
return new Name();
}
/**
* Create an instance of {@link Given }
*
*/
public Given createGiven() {
return new Given();
}
/**
* Create an instance of {@link Suffix }
*
*/
public Suffix createSuffix() {
return new Suffix();
}
/**
* Create an instance of {@link Telecom }
*
*/
public Telecom createTelecom() {
return new Telecom();
}
/**
* Create an instance of {@link Addr }
*
*/
public Addr createAddr() {
return new Addr();
}
/**
* Create an instance of {@link LanguageCommunication }
*
*/
public LanguageCommunication createLanguageCommunication() {
return new LanguageCommunication();
}
/**
* Create an instance of {@link LanguageCode }
*
*/
public LanguageCode createLanguageCode() {
return new LanguageCode();
}
/**
* Create an instance of {@link PreferenceInd }
*
*/
public PreferenceInd createPreferenceInd() {
return new PreferenceInd();
}
/**
* Create an instance of {@link Tr }
*
*/
public Tr createTr() {
return new Tr();
}
/**
* Create an instance of {@link Td }
*
*/
public Td createTd() {
return new Td();
}
/**
* Create an instance of {@link RecordTarget }
*
*/
public RecordTarget createRecordTarget() {
return new RecordTarget();
}
/**
* Create an instance of {@link PatientRole }
*
*/
public PatientRole createPatientRole() {
return new PatientRole();
}
/**
* Create an instance of {@link Patient }
*
*/
public Patient createPatient() {
return new Patient();
}
/**
* Create an instance of {@link AdministrativeGenderCode }
*
*/
public AdministrativeGenderCode createAdministrativeGenderCode() {
return new AdministrativeGenderCode();
}
/**
* Create an instance of {@link BirthTime }
*
*/
public BirthTime createBirthTime() {
return new BirthTime();
}
/**
* Create an instance of {@link RaceCode }
*
*/
public RaceCode createRaceCode() {
return new RaceCode();
}
/**
* Create an instance of {@link EthnicGroupCode }
*
*/
public EthnicGroupCode createEthnicGroupCode() {
return new EthnicGroupCode();
}
/**
* Create an instance of {@link Encounter }
*
*/
public Encounter createEncounter() {
return new Encounter();
}
/**
* Create an instance of {@link TemplateId }
*
*/
public TemplateId createTemplateId() {
return new TemplateId();
}
/**
* Create an instance of {@link Code }
*
*/
public Code createCode() {
return new Code();
}
/**
* Create an instance of {@link OriginalText }
*
*/
public OriginalText createOriginalText() {
return new OriginalText();
}
/**
* Create an instance of {@link Reference }
*
*/
public Reference createReference() {
return new Reference();
}
/**
* Create an instance of {@link TEffectiveTime }
*
*/
public TEffectiveTime createTEffectiveTime() {
return new TEffectiveTime();
}
/**
* Create an instance of {@link Performer }
*
*/
public Performer createPerformer() {
return new Performer();
}
/**
* Create an instance of {@link FunctionCode }
*
*/
public FunctionCode createFunctionCode() {
return new FunctionCode();
}
/**
* Create an instance of {@link AssignedEntity }
*
*/
public AssignedEntity createAssignedEntity() {
return new AssignedEntity();
}
/**
* Create an instance of {@link AssignedPerson }
*
*/
public AssignedPerson createAssignedPerson() {
return new AssignedPerson();
}
/**
* Create an instance of {@link RepresentedOrganization }
*
*/
public RepresentedOrganization createRepresentedOrganization() {
return new RepresentedOrganization();
}
/**
* Create an instance of {@link SubstanceAdministration }
*
*/
public SubstanceAdministration createSubstanceAdministration() {
return new SubstanceAdministration();
}
/**
* Create an instance of {@link StatusCode }
*
*/
public StatusCode createStatusCode() {
return new StatusCode();
}
/**
* Create an instance of {@link Consumable }
*
*/
public Consumable createConsumable() {
return new Consumable();
}
/**
* Create an instance of {@link ManufacturedProduct }
*
*/
public ManufacturedProduct createManufacturedProduct() {
return new ManufacturedProduct();
}
/**
* Create an instance of {@link ManufacturedMaterial }
*
*/
public ManufacturedMaterial createManufacturedMaterial() {
return new ManufacturedMaterial();
}
/**
* Create an instance of {@link Text }
*
*/
public Text createText() {
return new Text();
}
/**
* Create an instance of {@link Table }
*
*/
public Table createTable() {
return new Table();
}
/**
* Create an instance of {@link Thead }
*
*/
public Thead createThead() {
return new Thead();
}
/**
* Create an instance of {@link Tbody }
*
*/
public Tbody createTbody() {
return new Tbody();
}
/**
* Create an instance of {@link RepeatNumber }
*
*/
public RepeatNumber createRepeatNumber() {
return new RepeatNumber();
}
/**
* Create an instance of {@link DoseQuantity }
*
*/
public DoseQuantity createDoseQuantity() {
return new DoseQuantity();
}
/**
* Create an instance of {@link EntryRelationship }
*
*/
public EntryRelationship createEntryRelationship() {
return new EntryRelationship();
}
/**
* Create an instance of {@link Observation }
*
*/
public Observation createObservation() {
return new Observation();
}
/**
* Create an instance of {@link TValue }
*
*/
public TValue createTValue() {
return new TValue();
}
/**
* Create an instance of {@link Participant }
*
*/
public Participant createParticipant() {
return new Participant();
}
/**
* Create an instance of {@link Time }
*
*/
public Time createTime() {
return new Time();
}
/**
* Create an instance of {@link Low }
*
*/
public Low createLow() {
return new Low();
}
/**
* Create an instance of {@link High }
*
*/
public High createHigh() {
return new High();
}
/**
* Create an instance of {@link ParticipantRole }
*
*/
public ParticipantRole createParticipantRole() {
return new ParticipantRole();
}
/**
* Create an instance of {@link PlayingEntity }
*
*/
public PlayingEntity createPlayingEntity() {
return new PlayingEntity();
}
/**
* Create an instance of {@link AssociatedEntity }
*
*/
public AssociatedEntity createAssociatedEntity() {
return new AssociatedEntity();
}
/**
* Create an instance of {@link AssociatedPerson }
*
*/
public AssociatedPerson createAssociatedPerson() {
return new AssociatedPerson();
}
/**
* Create an instance of {@link InterpretationCode }
*
*/
public InterpretationCode createInterpretationCode() {
return new InterpretationCode();
}
/**
* Create an instance of {@link ReferenceRange }
*
*/
public ReferenceRange createReferenceRange() {
return new ReferenceRange();
}
/**
* Create an instance of {@link ObservationRange }
*
*/
public ObservationRange createObservationRange() {
return new ObservationRange();
}
/**
* Create an instance of {@link Supply }
*
*/
public Supply createSupply() {
return new Supply();
}
/**
* Create an instance of {@link Quantity }
*
*/
public Quantity createQuantity() {
return new Quantity();
}
/**
* Create an instance of {@link Product }
*
*/
public Product createProduct() {
return new Product();
}
/**
* Create an instance of {@link Author }
*
*/
public Author createAuthor() {
return new Author();
}
/**
* Create an instance of {@link AssignedAuthor }
*
*/
public AssignedAuthor createAssignedAuthor() {
return new AssignedAuthor();
}
/**
* Create an instance of {@link AssignedAuthoringDevice }
*
*/
public AssignedAuthoringDevice createAssignedAuthoringDevice() {
return new AssignedAuthoringDevice();
}
/**
* Create an instance of {@link Act }
*
*/
public Act createAct() {
return new Act();
}
/**
* Create an instance of {@link Component }
*
*/
public Component createComponent() {
return new Component();
}
/**
* Create an instance of {@link StructuredBody }
*
*/
public StructuredBody createStructuredBody() {
return new StructuredBody();
}
/**
* Create an instance of {@link Section }
*
*/
public Section createSection() {
return new Section();
}
/**
* Create an instance of {@link Entry }
*
*/
public Entry createEntry() {
return new Entry();
}
/**
* Create an instance of {@link Procedure }
*
*/
public Procedure createProcedure() {
return new Procedure();
}
/**
* Create an instance of {@link Organizer }
*
*/
public Organizer createOrganizer() {
return new Organizer();
}
/**
* Create an instance of {@link ClinicalDocument }
*
*/
public ClinicalDocument createClinicalDocument() {
return new ClinicalDocument();
}
/**
* Create an instance of {@link RealmCode }
*
*/
public RealmCode createRealmCode() {
return new RealmCode();
}
/**
* Create an instance of {@link TypeId }
*
*/
public TypeId createTypeId() {
return new TypeId();
}
/**
* Create an instance of {@link ConfidentialityCode }
*
*/
public ConfidentialityCode createConfidentialityCode() {
return new ConfidentialityCode();
}
/**
* Create an instance of {@link Custodian }
*
*/
public Custodian createCustodian() {
return new Custodian();
}
/**
* Create an instance of {@link DocumentationOf }
*
*/
public DocumentationOf createDocumentationOf() {
return new DocumentationOf();
}
/**
* Create an instance of {@link ServiceEvent }
*
*/
public ServiceEvent createServiceEvent() {
return new ServiceEvent();
}
/**
* Create an instance of {@link CE }
*
*/
public CE createCE() {
return new CE();
}
/**
* Create an instance of {@link PQ }
*
*/
public PQ createPQ() {
return new PQ();
}
/**
* Create an instance of {@link CD }
*
*/
public CD createCD() {
return new CD();
}
/**
* Create an instance of {@link IVLTS }
*
*/
public IVLTS createIVLTS() {
return new IVLTS();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link TEffectiveTime }
* {@code >}
*
*/
@XmlElementDecl(namespace = "urn:hl7-org:v3", name = "effectiveTime")
public JAXBElement<TEffectiveTime> createEffectiveTime(TEffectiveTime value) {
return new JAXBElement<TEffectiveTime>(_EffectiveTime_QNAME, TEffectiveTime.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link TValue }{@code >}
*
*/
@XmlElementDecl(namespace = "urn:hl7-org:v3", name = "value")
public JAXBElement<TValue> createValue(TValue value) {
return new JAXBElement<TValue>(_Value_QNAME, TValue.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
@XmlElementDecl(namespace = "urn:hl7-org:v3", name = "state")
public JAXBElement<String> createState(String value) {
return new JAXBElement<String>(_State_QNAME, String.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
@XmlElementDecl(namespace = "urn:hl7-org:v3", name = "th")
public JAXBElement<String> createTh(String value) {
return new JAXBElement<String>(_Th_QNAME, String.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
@XmlElementDecl(namespace = "urn:hl7-org:v3", name = "city")
public JAXBElement<String> createCity(String value) {
return new JAXBElement<String>(_City_QNAME, String.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
@XmlElementDecl(namespace = "urn:hl7-org:v3", name = "softwareName")
public JAXBElement<String> createSoftwareName(String value) {
return new JAXBElement<String>(_SoftwareName_QNAME, String.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
@XmlElementDecl(namespace = "urn:hl7-org:v3", name = "manufacturerModelName")
public JAXBElement<String> createManufacturerModelName(String value) {
return new JAXBElement<String>(_ManufacturerModelName_QNAME, String.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}
*
*/
@XmlElementDecl(namespace = "urn:hl7-org:v3", name = "postalCode")
public JAXBElement<Integer> createPostalCode(Integer value) {
return new JAXBElement<Integer>(_PostalCode_QNAME, Integer.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
@XmlElementDecl(namespace = "urn:hl7-org:v3", name = "streetAddressLine")
public JAXBElement<String> createStreetAddressLine(String value) {
return new JAXBElement<String>(_StreetAddressLine_QNAME, String.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
@XmlElementDecl(namespace = "urn:hl7-org:v3", name = "title")
public JAXBElement<String> createTitle(String value) {
return new JAXBElement<String>(_Title_QNAME, String.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
@XmlElementDecl(namespace = "urn:hl7-org:v3", name = "content")
public JAXBElement<String> createContent(String value) {
return new JAXBElement<String>(_Content_QNAME, String.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}
*
*/
@XmlElementDecl(namespace = "urn:hl7-org:v3", name = "family")
public JAXBElement<String> createFamily(String value) {
return new JAXBElement<String>(_Family_QNAME, String.class, null, value);
}
}
| [
"[email protected]"
] | |
cb31c31c5bdd80db0dab7196d507dc7a11672431 | f75b4a766d292b8f6ed75f44f9c25e66554ea2df | /common-db/src/main/java/com/ahut/core/common/db/constant/DBProvider.java | 704134e91ab023e0df96216378ecde6376b288ff | [] | no_license | xiaoqiangOB/cloud-demo | 31ec10dbba41acdefdbff1b63bd94454a11de3e3 | 00ccfa959f49a3e5c6c2b4d7d2d9af8b541d6898 | refs/heads/master | 2021-07-20T03:33:47.111357 | 2017-10-30T00:34:22 | 2017-10-30T00:34:22 | 108,056,966 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 222 | java | package com.ahut.core.common.db.constant;
/**
* Created by c2292 on 2017/10/24.
*/
public enum DBProvider {
ORACLE,
MYSQL,
INFORMIX,
SYSBASE,
DB2,
POSTGRESQL,
DERBY,
MSSQL,
UNKNOWN
}
| [
"[email protected]"
] | |
7f3d44ff96a7232839181a046b17a19dbd436a55 | 0a981f71f855fd480bf556474ddd16e58dceb160 | /Music/app/src/main/java/com/music/activity/MediaPlaybackActivity.java | 25fc7714b4a6224391d0c16e9d533b130b1a6230 | [] | no_license | yueerba/Music | 2ac29456a72bcd6e84c52e63c886029d79a92ea8 | ecc793ac13e9f8a0a51f9645d1b6d96953d2732d | refs/heads/master | 2021-01-20T06:12:34.781077 | 2016-10-20T05:27:20 | 2016-10-20T05:27:20 | 71,428,084 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 14,819 | java | package com.music.activity;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.ServiceConnection;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.os.RemoteException;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.PopupWindow;
import android.widget.SeekBar;
import android.widget.TextView;
import com.music.AppInfo;
import com.music.IMediaPlaybackService;
import com.music.R;
import com.music.adapter.NowListAdapter;
import com.music.base.IConstants;
import com.music.entity.MusicInfo;
import com.music.fragment.LyricsFragment;
import com.music.fragment.RhythmFragment;
import com.music.service.MusicControl;
import com.music.service.MusicUtil;
import com.music.util.SharedPreferencesUtil;
import com.music.view.indicator.CirclePageIndicator;
import java.util.ArrayList;
import java.util.List;
/**
* Created by dingfeng on 2016/4/15.
*/
public class MediaPlaybackActivity extends BaseActivity implements View.OnClickListener {
private static final String TAG = MediaPlaybackActivity.class.getSimpleName();
private static final int REFRESH_PROGRESS = 0;
ImageView iv_back;
TextView tv_title;
ViewPager mViewpager;
CirclePageIndicator indicator;
SeekBar mSeekBar;
ImageView iv_playback_pre;
ImageView iv_playback_pause;
ImageView iv_playback_next;
ImageView playmode;
ImageView nowlist;
private MyAdapter mPagerAdapter;
private List<Fragment> mFragmentList;
LyricsFragment lyricsFragment;
RhythmFragment rhythmFragment;
private int mProgress;
private MusicInfo mCurrent;
private MusicUtil.ServiceToken mToken;
private IMediaPlaybackService mService = null;
BroadcastReceiver mStatusListener = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if (action.equals(MusicControl.PLAYSTATE_CHANGED)) {
updateCurrentMusic();
setPauseButtonImage();
} else if (action.equals(MusicControl.META_CHANGED)) {
updateCurrentMusic();
setPauseButtonImage();
lyricsFragment.loadLyric(mCurrent);
}
}
};
Handler mHandler = new Handler() {
@Override
public void handleMessage(Message msg) {
// TODO Auto-generated method stub
super.handleMessage(msg);
switch (msg.what) {
case REFRESH_PROGRESS:
refreshSeekBar();
mHandler.sendEmptyMessageDelayed(REFRESH_PROGRESS, 500);
break;
default:
break;
}
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_media_play);
Intent intent = getIntent();
mCurrent = intent.getParcelableExtra("current");
mFragmentList = new ArrayList<>();
lyricsFragment = new LyricsFragment();
rhythmFragment = new RhythmFragment();
mFragmentList.add(lyricsFragment);
mFragmentList.add(rhythmFragment);
initView();
// bind service
mToken = MusicUtil.bindToService(this, serviceConnection);
IntentFilter f = new IntentFilter();
f.addAction(MusicControl.PLAYSTATE_CHANGED);
f.addAction(MusicControl.META_CHANGED);
registerReceiver(mStatusListener, f);
}
private void initView() {
iv_back = (ImageView) findViewById(R.id.iv_back);
iv_back.setOnClickListener(backClickListener);
tv_title = (TextView) findViewById(R.id.tv_title);
tv_title.setText(mCurrent.getMusicName());
iv_playback_pre = (ImageView) findViewById(R.id.iv_playback_pre);
iv_playback_pre.setOnClickListener(this);
iv_playback_pause = (ImageView) findViewById(R.id.iv_playback_pause);
iv_playback_pause.setOnClickListener(this);
iv_playback_next = (ImageView) findViewById(R.id.iv_playback_next);
iv_playback_next.setOnClickListener(this);
playmode = (ImageView) findViewById(R.id.playmode);
playmode.setOnClickListener(this);
updatePlayModeState();
nowlist = (ImageView) findViewById(R.id.nowlist);
nowlist.setOnClickListener(this);
mSeekBar = (SeekBar) findViewById(R.id.sk_progress);
mSeekBar.setOnSeekBarChangeListener(onSeekBarChangeListener);
mViewpager = (ViewPager) findViewById(R.id.viewpager);
mPagerAdapter = new MyAdapter(getSupportFragmentManager(), mFragmentList);
mViewpager.setAdapter(mPagerAdapter);
indicator = (CirclePageIndicator) findViewById(R.id.indicator);
indicator.setViewPager(mViewpager);
}
ServiceConnection serviceConnection = new ServiceConnection() {
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
mService = IMediaPlaybackService.Stub.asInterface(service);
setPauseButtonImage();
updateSeekBar();
}
@Override
public void onServiceDisconnected(ComponentName name) {
}
};
@Override
public void onClick(View view) {
// TODO Auto-generated method stub
switch (view.getId()) {
case R.id.iv_playback_pre:
pre();
break;
case R.id.iv_playback_pause:
doPauseResume();
break;
case R.id.iv_playback_next:
next();
break;
case R.id.playmode:
setPlayMode();
break;
case R.id.nowlist:
showNowPlayingList(view);
break;
default:
break;
}
}
SeekBar.OnSeekBarChangeListener onSeekBarChangeListener = new SeekBar.OnSeekBarChangeListener() {
@Override
public void onProgressChanged(SeekBar seekbar, int progress, boolean fromUser) {
// TODO Auto-generated method stub
if (seekbar == mSeekBar) {
mProgress = progress;
}
}
@Override
public void onStartTrackingTouch(SeekBar seekbar) {
// TODO Auto-generated method stub
if (seekbar == mSeekBar) {
try {
mService.pause();
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
@Override
public void onStopTrackingTouch(SeekBar seekbar) {
// TODO Auto-generated method stub
if (seekbar == mSeekBar) {
try {
mService.seekTo(mProgress);
mService.rePlay();
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
};
@Override
protected void onResume() {
// TODO Auto-generated method stub
super.onResume();
}
@Override
protected void onStop() {
super.onStop();
}
@Override
protected void onDestroy() {
// TODO Auto-generated method stub
super.onDestroy();
unregisterReceiver(mStatusListener);
mHandler.removeMessages(REFRESH_PROGRESS);
MusicUtil.unbindFromService(mToken);
mService = null;
}
private void updateSeekBar() {
refreshSeekBar();
mHandler.sendEmptyMessageDelayed(REFRESH_PROGRESS, 500);
}
private void updateCurrentMusic() {
try {
mCurrent = mService.getCurrentMusic();
if (mCurrent != null) {
tv_title.setText(mCurrent.getMusicName());
}
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
private void pre() {
if (mService != null) {
try {
mService.pre();
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
private void next() {
if (mService != null) {
try {
mService.next();
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
private void refreshSeekBar() {
try {
if (mService != null && mService.isPlaying()) {
long duration = mService.duration();
long position = mService.position();
int rate = 0;
if (duration != 0) {
rate = (int) ((float) position / duration * 100);
}
mSeekBar.setProgress(rate);
lyricsFragment.slideLyricLine(position);
}
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
private void doPauseResume() {
try {
if (mService != null) {
if (mService.isPlaying()) {
mService.pause();
} else {
mService.rePlay();
}
setPauseButtonImage();
}
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
private void setPauseButtonImage() {
try {
if (mService != null && mService.isPlaying()) {
iv_playback_pause.setImageResource(R.drawable.img_playback_pause);
} else {
iv_playback_pause.setImageResource(R.drawable.img_playback_play);
}
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
private void updatePlayModeState() {
int mode = SharedPreferencesUtil.getInstance().getShare("play_mode", 0);
Drawable drawable;
switch (mode) {
case IConstants.ORDER_PLAY:
drawable = getResources().getDrawable(R.drawable.media_playmode_normal);
playmode.setImageDrawable(drawable);
break;
case IConstants.LIST_LOOP_PLAY:
drawable = getResources().getDrawable(R.drawable.media_playmode_repeat_all);
playmode.setImageDrawable(drawable);
break;
case IConstants.RANDOM_PLAY:
drawable = getResources().getDrawable(R.drawable.media_playmode_shuffle);
playmode.setImageDrawable(drawable);
break;
case IConstants.SINGLE_LOOP_PLAY:
drawable = getResources().getDrawable(R.drawable.media_playmode_single_repeat);
playmode.setImageDrawable(drawable);
break;
default:
break;
}
}
private void showNowPlayingList(View view) {
View contentView = LayoutInflater.from(this).inflate(R.layout.now_list, null);
final PopupWindow popupWindow = new PopupWindow(contentView, AppInfo.screenWidth * 2 / 3, AppInfo.screenHeight * 2 / 3, true);
popupWindow.setOutsideTouchable(true);
popupWindow.setBackgroundDrawable(new BitmapDrawable());
popupWindow.setAnimationStyle(R.style.popwin_anim_style2);
int[] location = new int[2];
iv_playback_pause.getLocationOnScreen(location);
popupWindow.showAtLocation(view, Gravity.NO_GRAVITY, location[0], location[1] - popupWindow.getHeight());
ListView listView = (ListView) contentView.findViewById(R.id.listview);
try {
List<MusicInfo> nowlist = mService.getPlayList();
NowListAdapter adapter = new NowListAdapter(this, nowlist);
listView.setAdapter(adapter);
listView.setSelection(mService.getCurrentPos());
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
try {
mService.play(position);
} catch (RemoteException e) {
e.printStackTrace();
}
}
});
} catch (RemoteException e) {
e.printStackTrace();
}
}
private void setPlayMode() {
int mode = SharedPreferencesUtil.getInstance().getShare("play_mode", 0);
if (mode == IConstants.SINGLE_LOOP_PLAY) {
mode = IConstants.ORDER_PLAY;
} else {
mode++;
}
SharedPreferencesUtil.getInstance().putShare("play_mode", mode);
updatePlayModeState();
}
private class MyAdapter extends FragmentPagerAdapter {
private List<Fragment> fragmentlist;
public MyAdapter(FragmentManager fm, List<Fragment> list) {
super(fm);
this.fragmentlist = list;
}
@Override
public Fragment getItem(int position) {
// TODO Auto-generated method stub
return fragmentlist.get(position);
}
@Override
public int getCount() {
// TODO Auto-generated method stub
return fragmentlist.size();
}
@Override
public void destroyItem(ViewGroup container, int position, Object object) {
// TODO Auto-generated method stub
super.destroyItem(container, position, object);
}
@Override
public Object instantiateItem(ViewGroup container, int position) {
// TODO Auto-generated method stub
return super.instantiateItem(container, position);
}
}
}
| [
"[email protected]"
] | |
372c1bd1d46090e7419455d69f2ef895a7465949 | c64d062a224709336b85c12f2c024767d553aa57 | /src/main/java/org/yash/messenger/database/DatabaseClass.java | 767906767dde949605e71b339e0b524f4c756b05 | [] | no_license | yasharmaster/messenger | 364f49804585421aa43d6b926fa6f4edaca4cc47 | 5437d866079ced727403013417fb580fb34535e0 | refs/heads/master | 2021-01-01T05:55:55.545848 | 2017-07-23T11:37:03 | 2017-07-23T11:37:03 | 97,310,813 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 481 | java | package org.yash.messenger.database;
import java.util.HashMap;
import java.util.Map;
import org.yash.messenger.model.Message;
import org.yash.messenger.model.Profile;
public class DatabaseClass {
private static Map<Long, Message> messages = new HashMap<>();
private static Map<String, Profile> profiles = new HashMap<>();
public static Map<Long, Message> getMessages() {
return messages;
}
public static Map<String, Profile> getProfiles() {
return profiles;
}
}
| [
"[email protected]"
] | |
29428f848680ad9b012e8662e108274f98797590 | 3ad3281364e09ac5d8b86a349b0bd8409e171f8b | /mamu.repository/src/main/java/com/mamu/repository/annotation/Link.java | 19d267e95df25af28c192c5af7c49436b9354279 | [
"Apache-2.0"
] | permissive | johnny0917/mamu | f83df4a1ef0643296ea5c254e14a9f07ae06e475 | dcb6b69ca93d308578cba8dfdb580a12aa10a2a1 | refs/heads/master | 2021-01-21T14:12:15.993786 | 2016-04-14T09:21:14 | 2016-04-14T09:21:14 | 37,758,435 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 389 | java | package com.mamu.repository.annotation;
import java.lang.annotation.*;
import org.apache.tinkerpop.gremlin.structure.Direction;
/**
* Created by Johnny
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD, ElementType.FIELD })
public @interface Link {
String value() default "";
String name() default "";
Direction direction() default Direction.OUT;
}
| [
"[email protected]"
] | |
aa29a31c07d5d4d52ee1167da5691d3af9f3572a | 3849cf0662e9d6c50555b6da72025d0d81f55c64 | /src/mvn-module/src/test/java/adv/TestType.java | eb87c00022b644e5fbee08d247a5004b2cbb0320 | [] | no_license | rsgilbert/junit5-lessons | 52e13097c54792adef240c899d03158dbe186681 | 6e5339ab3e9c29ac45b07bdcec96be51983c2539 | refs/heads/master | 2023-05-18T18:11:51.453276 | 2021-06-12T15:06:17 | 2021-06-12T15:06:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 460 | java | package adv;
import com.sun.org.apache.xpath.internal.operations.Bool;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class TestType {
Logger log = LoggerFactory.getLogger(getClass());
@Test
void checkObj() {
// Output: INFO: Obj true is of type class java.lang.Boolean
Object obj = true;
log.info("Obj {} is of type {}", new Object[] {obj, obj.getClass()});
}
}
| [
"[email protected]"
] | |
aeb20eee2a60286f65a045a89e26a2296f7f59d1 | 1de215e1cc58e581a1e59bc4897c709af655d835 | /app/src/androidTest/java/com/rjr/materi1/ExampleInstrumentedTest.java | 5274d80029607ad22900b46fddb712cdc55cd7ba | [] | no_license | Richmondjanusrafiiaryanto/Materi1 | ead0da8d34d4bdcd17c5e3ed035f9a63b1ae7cd4 | 6679f2c765a0cc10c4ac01a1e5ebcc0da95ed6ab | refs/heads/master | 2023-03-03T22:26:16.136001 | 2021-02-10T04:09:36 | 2021-02-10T04:09:36 | 337,609,104 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 744 | java | package com.rjr.materi1;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.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.getInstrumentation().getTargetContext();
assertEquals("com.rjr.materi1", appContext.getPackageName());
}
} | [
"[email protected]"
] | |
83dc80759b914f0682f12232c078b8d013b98a5c | 3bf27f45f2f9f4c4fff1bf8cd86ca02aa134b50e | /app/src/main/java/com/wenliu/chocolabsexam/base/BaseActivity.java | 077b6dfb49b0e992aa8a967ec0008a3391b3ca96 | [] | no_license | Wen-Liu/Drama | 335ed0d6a64226dbcc88cd9dee75dd131d3ec65c | d563fe1ba75ff3e67bbaa23cff923d86d5435331 | refs/heads/master | 2020-03-21T20:31:18.119588 | 2018-06-28T15:35:46 | 2018-06-28T15:35:46 | 139,012,554 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,851 | java | package com.wenliu.chocolabsexam.base;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import com.wenliu.chocolabsexam.Constants;
public class BaseActivity extends AppCompatActivity {
private static final String TAG = Constants.TAG_BASE_ACTIVITY;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.d(TAG, "onCreate: ");
setStatusBar();
}
private void setStatusBar() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { //4.4
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { //5.0
Window window = getWindow();
window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
| View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
window.setStatusBarColor(Color.TRANSPARENT); //calculateStatusColor(Color.WHITE, (int) alphaValue)
}
}
public int getStatusBarHeight() {
int result = 0;
int resourceId = getResources().getIdentifier("status_bar_height", "dimen", "android");
if (resourceId > 0) { // resourceId > 0 means get resource id, = 0 means not get
result = getResources().getDimensionPixelSize(resourceId);
Log.d(Constants.TAG_BASE_ACTIVITY, "getStatusBarHeight: " + result);
}
return result;
}
}
| [
"[email protected]"
] | |
c86ffcb6f545f3d64f2de4cd1d22546f15933056 | 151bb763303d2bf84a3e43443fe9fdae9f78f3e0 | /app/src/main/java/songzhihao/bwei/com/daohang/Message_fragment.java | 083b779a3e18f91c7df77873d8c61a82b8757d1f | [] | no_license | fendoudexiaohao/daohang | 3b8d55acf0da97465d206f1ea12e059c8e184c62 | 4a19ae2aeea16e0007c4af2fc056a4114b34acfb | refs/heads/master | 2020-05-21T02:20:06.522581 | 2017-03-10T12:35:30 | 2017-03-10T12:35:30 | 84,558,610 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 530 | java | package songzhihao.bwei.com.daohang;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* A simple {@link Fragment} subclass.
*/
public class Message_fragment extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
return inflater.inflate(R.layout.message_fragment, container, false);
}
}
| [
"[email protected]"
] | |
b99299207166ba52832b8acdc390224de938782b | 55062f968efdcddb4b5506874c226de17432e665 | /storm-hbase/src/main/java/org/apache/storm/future/windowing/TimestampExtractor.java | 731450acd37fbd7bb6c4f6ce0da4bbed9eb39ea0 | [] | no_license | DoggggSiDong/storm-external-0.9.X | ec89b3be127e7a413925483cef95cbef4eb8bfb4 | 2f78d675952c80560b0c49dff88292e5dc38e1d1 | refs/heads/master | 2020-03-22T11:06:04.444914 | 2018-07-09T07:20:47 | 2018-07-09T07:20:47 | 139,946,717 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,253 | java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.apache.storm.future.windowing;
import backtype.storm.tuple.Tuple;
import java.io.Serializable;
/**
* Interface to be implemented for extracting timestamp from a tuple.
*/
public interface TimestampExtractor extends Serializable {
/**
* Return the tuple timestamp indicating the time when the event happened.
*
* @param tuple the tuple
* @return the timestamp
*/
long extractTimestamp(Tuple tuple);
}
| [
"[email protected]"
] | |
45cfe9e6342fa6ad27a200886e9867b5179f3bc7 | fe50b7a453219d413c73be42c3cfa69d7880ea88 | /app/src/main/java/com/example/lctripsteward/bottomnavigation/home/game/SetDataSourceActivity.java | 5c549e5333a078b52bb00339e86796d7e8234115 | [] | no_license | Seraph1211/LCTripSteward | eae0d8e57a09d3405f491d9f72c6799b6f0d971a | 3569dcf4701c237eb46b1d5d645c6869e68d050a | refs/heads/master | 2022-10-13T04:24:35.390524 | 2020-06-10T01:54:05 | 2020-06-10T01:54:05 | 271,150,728 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,976 | java | package com.example.lctripsteward.bottomnavigation.home.game;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.SwitchCompat;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.CompoundButton;
import com.example.lctripsteward.R;
import com.example.lctripsteward.utils.ToastUtils;
/**
* 用户选择地铁等公共交通出行方式的数据来源
* 用户只能选择一个公共交通平台作为数据来源
* 用户可以在不同的公共交通出行平台之间切换
* 默认数据来源为长沙地铁
*/
public class SetDataSourceActivity extends AppCompatActivity {
private Context context;
private SwitchCompat switchChangSha;
private SwitchCompat switchWuhan;
private SwitchCompat switchXuZhou;
private SwitchCompat switchChongQing;
private SwitchCompat switchBeiJing;
private SwitchCompat switchShenZhen;
private SwitchCompat switchChosen; //已被选中的switch
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_set_data_source);
initView();
}
private void initView(){
context = SetDataSourceActivity.this;
switchChangSha = findViewById(R.id.switch_changsha);
switchChosen = switchChangSha;
switchChangSha.setChecked(true);
switchChangSha.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if(isChecked){
switchChosen.setChecked(false);
switchChosen = switchChangSha;
showLoadingDialog();
}
}
});
switchWuhan = findViewById(R.id.switch_wuhan);
switchWuhan.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if(isChecked){
switchChosen.setChecked(false);
switchChosen = switchWuhan;
showLoadingDialog();
}
}
});
switchXuZhou = findViewById(R.id.switch_xuzhou);
switchXuZhou.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if(isChecked){
switchChosen.setChecked(false);
switchChosen = switchXuZhou;
showLoadingDialog();
}
}
});
switchChongQing = findViewById(R.id.switch_chongqing);
switchChongQing.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if(isChecked){
switchChosen.setChecked(false);
switchChosen = switchChongQing;
showLoadingDialog();
}
}
});
switchBeiJing = findViewById(R.id.switch_beijing);
switchBeiJing.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if(isChecked){
switchChosen.setChecked(false);
switchChosen = switchBeiJing;
showLoadingDialog();
}
}
});
switchShenZhen = findViewById(R.id.switch_shenzhen);
switchShenZhen.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if(isChecked){
switchChosen.setChecked(false);
switchChosen = switchShenZhen;
showLoadingDialog();
}
}
});
}
private void showLoadingDialog(){
final ProgressDialog dialog = ProgressDialog.show(context, "提示", "数据同步中,请稍后..."
,false,false);
new Thread(new Runnable() {
@Override
public void run() {
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
dialog.dismiss();
ToastUtils.showToast(context, "数据同步成功!");
}
}).start();
}
public void back(View view){
finish();
}
}
| [
"[email protected]"
] | |
0f1c739ffff14f3b20c96b0fdb5bec538b3889c1 | 386e74047c9fa9c76f09434f94d296c17d4c1a87 | /src/controllers/Students.java | 381ee99dd9ff4fe533c649bec4da21570562e8e2 | [] | no_license | VicenteAguileraPerez/GenericApiRest | b74582bc86b8c9e2555e80aba71ef161e2f826eb | 00ced49cb47fdb8f5188916dac349d819372d0bc | refs/heads/master | 2022-12-27T23:31:32.388519 | 2020-10-02T00:39:51 | 2020-10-02T00:39:51 | 299,757,771 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,195 | java | package controllers;
import java.io.IOException;
import java.util.stream.Collectors;
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 org.json.JSONArray;
import org.json.JSONObject;
import utility.helpers.FilesHelper;
import utility.helpers.JSONHelper;
import utility.helpers.StaticHelper;
@WebServlet("/students")
public class Students extends HttpServlet
{
private FilesHelper files = new FilesHelper(StaticHelper.DATABASENAME, "");
private static final long serialVersionUID = 1L;
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
String page = request.getParameter(StaticHelper.PAGE);
String idStudent = request.getParameter(StaticHelper.ID);
response.setContentType("text/json");
if(page!=null && page.equals(StaticHelper.STUDENTS) && idStudent==null)
{
try
{
JSONArray jsonArray = files.readDataJson();
if(jsonArray.isEmpty())
{
response.sendError(HttpServletResponse.SC_NO_CONTENT);
}
else
{
response.getWriter().println(jsonArray);
}
}
catch(Exception e)
{
e.printStackTrace();
System.out.println("It has a mistake");
files=null;
response.sendError(HttpServletResponse.SC_NOT_ACCEPTABLE);
}
}
else if(page!=null && page.equals(StaticHelper.STUDENT))
{
try
{
if(idStudent!=null && !idStudent.isBlank())
{
System.out.println("params"+page+" "+idStudent);
JSONArray jsonArray = new JSONHelper().searchInformation(files.readDataJson(), idStudent, "id");
if(jsonArray.isEmpty())
{
response.sendError(HttpServletResponse.SC_NO_CONTENT);
}
else
{
System.out.println("Student" + jsonArray);
response.getWriter().println(jsonArray);
}
}
else
{
response.sendError(HttpServletResponse.SC_NO_CONTENT);
}
}
catch(Exception e)
{
e.printStackTrace();
System.out.println("It has a mistake");
response.sendError(HttpServletResponse.SC_NOT_ACCEPTABLE);
files=null;
}
}
else
{
response.sendError(HttpServletResponse.SC_NOT_FOUND);
//getServletContext().getRequestDispatcher("/notFound.jsp").forward(request, response);
System.out.println("Error");
//response.setContentType("text/html");
//response.getWriter().println("<h1>Hello</h1>");
}
// obtener todos los estudiantes
}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{
//No id wee need to send all the data and return id
//200 o 500
try {
String data = request.getReader().lines().collect(Collectors.joining(System.lineSeparator()));
System.out.println(data);
response.setContentType("text/html");
JSONHelper jsonHelper = new JSONHelper();
JSONObject jsonObject = jsonHelper.getNewJsonObject(data);
System.out.println(jsonObject);
String id = files.saveData(jsonObject, true);
if(id!=null)
{
//response.getWriter().println("<h3>Successful register of Student the id is: "+id+"</h3>");
response.sendError(HttpServletResponse.SC_OK);
}
else {
//response.getWriter().println("<h3>Failed the registration of the student</h3>");
response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
}
}
catch(Exception e)
{
System.out.println("It has a mistake");
response.sendError(HttpServletResponse.SC_NOT_ACCEPTABLE);
}
}
protected void doPut(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{
//No id wee need to send all the data and return id
//200 o 500
try {
String data = request.getReader().lines().collect(Collectors.joining(System.lineSeparator()));
System.out.println(data);
response.setContentType("text/html");
JSONHelper jsonHelper = new JSONHelper();
JSONObject jsonObject = jsonHelper.getNewJsonObject(data);
System.out.println(jsonObject);
String id = files.saveData(jsonObject,StaticHelper.UPDATING);
if(id!=null)
{
response.getWriter().println("<h3>Successful updating of Student the id is: "+id+"</h3>");
}
else {
response.getWriter().println("<h3>Failed the updating of the student</h3>");
}
}
catch(Exception e)
{
System.out.println("It has a mistake");
response.sendError(HttpServletResponse.SC_NOT_ACCEPTABLE);
}
}
protected void doDelete(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{
//No id wee need to send all the data and return id
//200 o 500
try {
String data = request.getReader().lines().collect(Collectors.joining(System.lineSeparator()));
System.out.println(data);
response.setContentType("text/html");
JSONHelper jsonHelper = new JSONHelper();
JSONObject jsonObject = jsonHelper.getNewJsonObject(data);
System.out.println(jsonObject);
String id = files.saveData(jsonObject,StaticHelper.DELETING);
if(id!=null)
{
response.getWriter().println("<h3>Successful deleting of Student the id is: "+id+"</h3>");
}
else {
response.getWriter().println("<h3>Failed the deleting of the student</h3>");
}
}
catch(Exception e)
{
System.out.println("It has a mistake");
response.sendError(HttpServletResponse.SC_NOT_ACCEPTABLE);
}
}
}
/** parte del menu
*if(page!=null && page.equals("students"))
{
getServletContext().getRequestDispatcher("/students.jsp").forward(request, response);
}
else if(page!=null && page.equals("student"))
{
getServletContext().getRequestDispatcher("/student.jsp").forward(request, response);
}
else
{
getServletContext().getRequestDispatcher("/notFound.jsp").forward(request, response);
//response.setContentType("text/html");
//response.getWriter().println("<h1>Hello</h1>");
}
*/
| [
"[email protected]"
] | |
65373fe2b4081c8777721ad533fd5268e85db20c | 98ae8d03ed7cdf999f533bbf479e55dccd582113 | /src/de/doridian/jbasic/tokens/io/CLLToken.java | c701a729be6fa41aa35d400345dfb88982a2ab2d | [] | no_license | Doridian/ShaderDemo | b0695ca7d46c27f59eb273045b04cbdedecd077c | 5a0bf6d7ee057451b28025e7fc1a490f300d8608 | refs/heads/master | 2016-09-05T23:00:03.611500 | 2014-12-23T18:25:45 | 2014-12-23T18:25:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 311 | java | package de.doridian.jbasic.tokens.io;
import de.doridian.jbasic.tokens.AbstractToken;
@AbstractToken.TokenName("CLL")
public class CLLToken extends AbstractToken {
@Override
public String getCode(String prefix) {
return prefix + "$io.clearLine(" + getAsAssignmentParameters(0) + ");";
}
}
| [
"[email protected]"
] | |
19386a2fc355923aa2c3d5c12b3f6e1e2126539a | 683eff62ba4d58b8768565a7230ff717591ce310 | /A10_jQuery/src/a2_Json/Product.java | d3a2ac8be9648c65337de59979db820c7e89ef92 | [] | no_license | kailoke/JavaWeb-Learning | c6da1920de6bb3f1a763bd087ecb15357d8a87ab | dd8c2bc6fb4b69ad0ef1e4f9c73bcffd766d7a71 | refs/heads/master | 2021-01-01T00:08:34.004229 | 2020-03-10T07:36:50 | 2020-03-10T07:37:55 | 239,091,252 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 683 | java | package a2_Json;
/**
* 测试FastJson使用方法
*/
public class Product {
private int id;
private String name;
private int count;
private double price;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
}
| [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.