query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Constructor con valores por defecto
public Parametros() { semilla = SEMILLA_DEFECTO; numeroPistas = NUMERO_PISTAS_DEFECTO; duracionSlot = DURACION_SLOT_DEFECTO; frecuencia = FRECUENCIA_DEFECTO; duracionMedia = DURACION_MEDIA_DEFECTO; duracionDesviacion = DURACION_DESVIACION_DEFECTO; duracionMinima = DURACION_MINIMA_DEFECTO; demoraMedia = DEMORA_MEDIA_DEFECTO; demoraDesviacion = DEMORA_DESVIACION_DEFECTO; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ValorVariavel() {\r\n }", "public Pasien() {\r\n }", "Constructor() {\r\n\t\t \r\n\t }", "public Valvula(){}", "public Alojamiento() {\r\n\t}", "public Propuestas() {}", "public AntrianPasien() {\r\n\r\n }", "public Caso_de_uso () {\n }", "protected Asignatura()\r\n\t{}", "public Curso() {\r\n }", "public prueba()\r\n {\r\n }", "public Constructor(){\n\t\t\n\t}", "public Vehiculo() {\r\n }", "public Corso() {\n\n }", "public Kullanici() {}", "public Chauffeur() {\r\n\t}", "public Car () {\n\n Make = \"\";\n Model = \"\";\n Year = 2017;\n Price = 0.00;\n }", "public Carrera(){\n }", "public Lanceur() {\n\t}", "public Parameters() {\n\t}", "public Candidatura (){\n \n }", "public Datos(){\n }", "public Documento() {\n\n\t}", "public Value() {\n }", "public Postoj() {}", "public BaseParameters(){\r\n\t}", "public SlanjePoruke() {\n }", "public Estado() {\r\n }", "private Value() {\n\t}", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public BabbleValue() {}", "public Livro() {\n\n\t}", "public Estado() {\r\n //Constructor vacio\r\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private Values(){}", "public Doc_estado() {\n }", "public Estado() {\n }", "public Oveja() {\r\n this.nombreOveja = \"Oveja\";\r\n }", "public InitialData(){}", "public Plato(){\n\t\t\n\t}", "protected Approche() {\n }", "public CampoModelo(String valor, String etiqueta, Integer longitud)\n/* 10: */ {\n/* 11:17 */ this.valor = valor;\n/* 12:18 */ this.etiqueta = etiqueta;\n/* 13:19 */ this.longitud = longitud;\n/* 14: */ }", "public void initialize() {\n\n fechaDeLaVisita.set(LocalDate.now());\n\n if (medico.get() != null) {\n medico.get().clear();\n } else {\n medico.set(new Medico());\n }\n\n turnoVisita.set(\"\");\n visitaAcompanadaSN.set(false);\n lugarVisita.set(\"\");\n if (causa.get() != null) {\n causa.get().clear();\n } else {\n causa.set(new Causa());\n }\n\n if (promocion.get() != null) {\n promocion.get().clear();\n } else {\n promocion.set(new Promocion());\n }\n\n observacion.set(\"\");\n persistida.set(false);\n persistidoGraf.set(MaterialDesignIcon.SYNC_PROBLEM.graphic());\n\n fechaCreacion.set(LocalDateTime.now());\n\n }", "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "public TParametrosVOImpl() {\r\n }", "public void init() {\n \n }", "public Busca(){\n }", "public User() {\r\n this(\"\", \"\");\r\n }", "public Venda() {\n }", "public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }", "public AfiliadoVista() {\r\n }", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}", "public Value(){}", "public CuentaDeposito() {\n super();\n }", "Data() {\n\t\t// dia = 01;\n\t\t// mes = 01;\n\t\t// ano = 1970;\n\t\tthis(1, 1, 1970); // usar um construtor dentro de outro\n\t}", "public Pitonyak_09_02() {\r\n }", "public Cgg_jur_anticipo(){}", "public Propiedad(){\n\t}", "public Achterbahn() {\n }", "public Troco() {\n }", "public Data() {\n \n }", "public TebakNusantara()\n {\n }", "public Odontologo() {\n }", "public MPaciente() {\r\n\t}", "public solicitudControlador() {\n }", "private BaseDatos() {\n }", "public RequestValues() {\n //mUserId = userId;\n }", "public Methods() { // ini adalah sebuah construktor kosong tidak ada parameternya\n System.out.println(\"Ini adalah Sebuah construktor \");\n }", "public Cohete() {\n\n\t}", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "public Exercicio(){\n \n }", "private Params()\n {\n }", "public CyanSus() {\n\n }", "public Casa() { \n \n /* Cuando se crea la casa, tambien se debe crear la puerta */\n \n laPuerta = new Puerta();\n \n /* se pone la letra F por que son de tipo float */\n laPuerta.setAncho(2.3F);\n laPuerta.setAlto(1.5F);\n \n }", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public Setting() {\n\t}", "public Produto() {}", "public Prova() {}", "public Libro() {\r\n }", "public Value() {}", "public Ciudad()\n {\n\n }", "public AllOne() {\n \n }", "public AvaliacaoRisco() {\n }", "public Nota() {\n }", "public Supercar() {\r\n\t\t\r\n\t}", "public Funcionario() {\r\n\t\t\r\n\t}", "public PSRelation()\n {\n }", "public Respuesta() {\n }", "public FicheConnaissance() {\r\n }", "public Puntaje() {\n nombre = \"\";\n puntos = 0;\n }", "public Clade() {}", "public DetArqueoRunt () {\r\n\r\n }", "public Banco(){}", "public void constructor() {\n setEdibleAnimals();\n }", "public Ov_Chipkaart() {\n\t\t\n\t}", "public User(){\n this(null, null);\n }", "public Aritmetica(){ }", "public void init(){\n \n }", "public CLElenco() {\n /** rimanda al costruttore di questa classe */\n this(null);\n }" ]
[ "0.7359346", "0.7190805", "0.7132344", "0.70304984", "0.7002759", "0.69547325", "0.6928974", "0.6906747", "0.68966645", "0.68798465", "0.68308204", "0.67957324", "0.6789768", "0.67595", "0.6736077", "0.67322683", "0.6724538", "0.6722362", "0.67208904", "0.670681", "0.6694418", "0.66865784", "0.6631067", "0.66298926", "0.6628582", "0.6625795", "0.6621404", "0.6619722", "0.6618368", "0.65897113", "0.6587105", "0.6585472", "0.6560756", "0.65344715", "0.65343404", "0.653281", "0.6526768", "0.6520557", "0.6519598", "0.65091795", "0.6507571", "0.6497609", "0.6497428", "0.6495985", "0.64941084", "0.6493948", "0.6492704", "0.64915013", "0.6490333", "0.6489319", "0.64828", "0.64821506", "0.64807624", "0.64732146", "0.6470489", "0.647009", "0.6469964", "0.6469285", "0.6468075", "0.6467606", "0.6465558", "0.645197", "0.645152", "0.6449178", "0.6443846", "0.643184", "0.6431762", "0.6427177", "0.6423293", "0.64199376", "0.6417681", "0.6417562", "0.6416821", "0.6414211", "0.64116305", "0.6409487", "0.64058495", "0.64056706", "0.64041907", "0.64041114", "0.6403274", "0.6401478", "0.6398806", "0.6393855", "0.63932174", "0.6391797", "0.638991", "0.6388209", "0.63832724", "0.6383066", "0.6377272", "0.6376978", "0.63742566", "0.6372818", "0.63706374", "0.6369794", "0.63695794", "0.6363053", "0.63630223", "0.63604975" ]
0.6425663
68
Intervalo medio de tiempo entre llegadas
public double getEntreLlegadas() { return 60.0 / frecuencia; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int interval() {\n return 30;\n }", "private int normalizeTime() {\n int currentTimeSeconds = (int) (System.currentTimeMillis() / 1000);\n\n // The graphing interval in minutes\n // TODO not hardcoded :3\n int interval = 30;\n\n // calculate the devisor denominator\n int denom = interval * 60;\n\n return (int) Math.round((currentTimeSeconds - (denom / 2d)) / denom) * denom;\n }", "public int getIntervalMinutes();", "long getIntervalInSeconds();", "public int getInterval() { return _interval; }", "net.opengis.gml.x32.TimeIntervalLengthType getTimeInterval();", "public static long getIntervalNumber() {\n return getSecondsSinceEpoch() / SECS_TO_10MINS;\n }", "public int getInterdigitInterval();", "public int getInterval() {\r\n return interval;\r\n }", "public double interval() {\n return interval;\n }", "public float getFrameRate() { return 1000f/_interval; }", "public long getIntervalInMs() {\n return intervalInMs;\n }", "public long getIntervals(){\n return this.interval;\n }", "public int getAvpfRrInterval();", "public int getHowManyInPeriod();", "void setStatisticsInterval(long interval, TimeUnit timeUnit);", "long getSamplePeriod();", "double getPeriod();", "int getPeriod();", "public Interval getInterval() { return interval; }", "@Override\n\tpublic int withIntervalInSeconds() {\n\t\treturn 10;\n\t}", "public int getIntervalHours();", "private double ticsCalc(double deltaRange, int ticlimit){\n\t\t\tdouble tics = Math.pow(10, (int)Math.log10(deltaRange/ticlimit));\n\t\t\twhile(2.0*(deltaRange/(tics)) <= ticlimit) {\n\t\t\t\ttics /= 2.0;\n\t\t\t}\n\t\t\twhile((deltaRange/(tics))/2 >= ticlimit) {\n\t\t\t\ttics *= 2.0;\n\t\t\t}\n\t\t\treturn tics;\n\t\t}", "private void parseIntoInterval(DefaultTimeInterval ti, String token) {\r\n\t\ttoken = token.toUpperCase();\r\n\t\tint interval = 0;\r\n\t\tif (token.indexOf(MIN_INTERVAL_STR) > 0) {\r\n\t\t\tinterval = new Integer(token.substring(0, token\r\n\t\t\t\t\t.indexOf(MIN_INTERVAL_STR))).intValue();\r\n\t\t\tti._numberOfIntervals[MIN_INTERVAL] += interval;\r\n\t\t} else if (token.indexOf(HOUR_INTERVAL_STR) > 0) {\r\n\t\t\tinterval = new Integer(token.substring(0, token\r\n\t\t\t\t\t.indexOf(HOUR_INTERVAL_STR))).intValue();\r\n\t\t\tti._numberOfIntervals[HOUR_INTERVAL] += interval;\r\n\t\t} else if (token.indexOf(DAY_INTERVAL_STR) > 0) {\r\n\t\t\tinterval = new Integer(token.substring(0, token\r\n\t\t\t\t\t.indexOf(DAY_INTERVAL_STR))).intValue();\r\n\t\t\tti._numberOfIntervals[DAY_INTERVAL] += interval;\r\n\t\t} else if (token.indexOf(WEEK_INTERVAL_STR) > 0) {\r\n\t\t\tinterval = new Integer(token.substring(0, token\r\n\t\t\t\t\t.indexOf(WEEK_INTERVAL_STR))).intValue();\r\n\t\t\tti._numberOfIntervals[WEEK_INTERVAL] += interval;\r\n\t\t} else if (token.indexOf(MONTH_INTERVAL_STR) > 0) {\r\n\t\t\tinterval = new Integer(token.substring(0, token\r\n\t\t\t\t\t.indexOf(MONTH_INTERVAL_STR))).intValue();\r\n\t\t\tti._numberOfIntervals[MONTH_INTERVAL] += interval;\r\n\t\t} else if (token.indexOf(YEAR_INTERVAL_STR) > 0) {\r\n\t\t\tinterval = new Integer(token.substring(0, token\r\n\t\t\t\t\t.indexOf(YEAR_INTERVAL_STR))).intValue();\r\n\t\t\tti._numberOfIntervals[YEAR_INTERVAL] += interval;\r\n\t\t} else if (token.indexOf(DECADE_INTERVAL_STR) > 0) {\r\n\t\t\tinterval = new Integer(token.substring(0, token\r\n\t\t\t\t\t.indexOf(DECADE_INTERVAL_STR))).intValue();\r\n\t\t\tti._numberOfIntervals[DECADE_INTERVAL] += interval;\r\n\t\t} else if (token.indexOf(CENTURY_INTERVAL_STR) > 0) {\r\n\t\t\tinterval = new Integer(token.substring(0, token\r\n\t\t\t\t\t.indexOf(CENTURY_INTERVAL_STR))).intValue();\r\n\t\t\tti._numberOfIntervals[CENTURY_INTERVAL] += interval;\r\n\t\t}\r\n\t}", "public void durata(long start, long stop){\n\t\tlong durata = stop - start;\n\t\tlong secondi = durata % 60;\n\t\tlong minuti = durata / 60;\n\t\t\n\t\tSystem.out.println(\"Durata: \" + minuti + \"m \" + secondi + \"s\");\n\t}", "Intervalle(double bas, double haut){\n this.inf = bas;\n this.sup = haut;\n }", "Millimeter createMillimeter();", "public int getIntervalSeconds() {\n return this.intervalSeconds;\n }", "public int getIntervalLength() {\r\n\t\treturn Integer.parseInt(properties.getProperty(KEY_INTERVAL_LENGTH)) * 1000;\r\n \t}", "public long getSamplingPeriod();", "double getSignalPeriod();", "public Integer getInterval() {\n\t\treturn interval;\n\t}", "private void generateIntervalArray(){\n BigDecimal maximumValue = this.getTfMaximumInterval();\n BigDecimal minimumValue = this.getTfMinimumInterval();\n BigDecimal stepValue = this.getTfStepInterval();\n \n intervalArray = new ArrayList<BigDecimal>();\n BigDecimal step = maximumValue;\n \n //Adiciona os valores \"inteiros\"\n while(step.doubleValue() >= minimumValue.doubleValue()){\n intervalArray.add(step);\n step = step.subtract(stepValue);\n }\n }", "public int calculateTimeForDeceleration(int i) {\n return super.calculateTimeForDeceleration(i) * 4;\n }", "public long getIntervalSeconds()\n {\n return __m_IntervalSeconds;\n }", "@Override\n public double getMaxTimeBeetween2Measurement() {\n return super.getMaxTimeBeetween2Measurement();\n }", "public float getMaxTimeSeconds() { return getMaxTime()/1000f; }", "public double period()\n\t{\n\t\tdouble n = meanMotion();\n\t\tdouble period = 2.0 * Constants.pi / n;\n\t\treturn period;\n\t}", "int getTtiSeconds();", "float getBlackoutPeriod();", "private int get_delay() {\n double exp = slider1.getValue() / 100.0 - 9; // Range -9, 1\n exp = Math.min(0, exp); // Range -9, 0\n return (int) (Math.pow(10.0, exp) * 100000000.0);\n }", "public static String getUserFriendlyInterval(long i) {\r\n long interval = i;\r\n \r\n if(interval != 0) {\r\n long remainMs;\r\n String result = \"\";\r\n \r\n // time categories in milliseconds\r\n int secMs = 1000;\r\n int minMs = secMs*60;\r\n int hourMs = minMs*60;\r\n int dayMs = hourMs*24;\r\n\r\n int days = (int)interval/dayMs;\r\n remainMs = interval%dayMs;\r\n //#debug\r\n//# System.out.println(\"days: \"+days);\r\n\r\n int hours = (int)remainMs/hourMs;\r\n remainMs = remainMs%hourMs;\r\n //#debug\r\n//# System.out.println(\"hours: \"+hours);\r\n\r\n int min = (int)remainMs/minMs;\r\n remainMs = remainMs%minMs;\r\n //#debug\r\n//# System.out.println(\"minutes: \"+min);\r\n\r\n int sec = (int)remainMs/secMs;\r\n //#debug\r\n//# System.out.println(\"seconds: \"+sec);\r\n\r\n if(days > 0) {\r\n result = days+Locale.get(\"text.days\")+\" \";\r\n }\r\n if(hours > 0 || days > 0) {\r\n result += hours+Locale.get(\"text.hours\")+\" \";\r\n }\r\n if(min > 0 || hours > 0) {\r\n result += min+Locale.get(\"text.min\")+\" \";\r\n }\r\n if(sec > 0 || min > 0) {\r\n result += sec+Locale.get(\"text.sec\");\r\n }\r\n return result;\r\n }\r\n return \"0 \"+Locale.get(\"text.sec\");\r\n }", "Period mo20733e();", "public TimeInterval createByMultiplying(int factor) {\r\n\t\tDefaultTimeInterval nti = new DefaultTimeInterval();\r\n\t\tfor (int i = 1; i < _numberOfIntervals.length; i++) {\r\n\t\t\tnti._numberOfIntervals[i] = factor * this._numberOfIntervals[i];\r\n\t\t}\r\n\t\treturn nti;\r\n\t}", "BigInteger getPeriod();", "public void setInterdigitInterval(int interval);", "double getMinTimerTrig();", "public static void intervalRange() {\n Observable.intervalRange(0L, 10L, 0L, 10L, TimeUnit.MILLISECONDS).\n subscribe(new MyObserver<>());\n }", "public void realocareThreadsDistribution(){\n for(int i=1;i<=nrThreads;i++){\n if(listofIntervalsForEachThread[i] == null)\n listofIntervalsForEachThread[i] = new IntervalClass();\n this.listofIntervalsForEachThread[i].setStart(0);\n this.listofIntervalsForEachThread[i].setEnd(0);\n }\n if(this.nrThreads>=this.borderArray.size())\n for(int i=0;i<this.borderArray.size();i++){\n this.listofIntervalsForEachThread[i+1].setStart(i);\n this.listofIntervalsForEachThread[i+1].setEnd(i);\n }\n else{\n int nrForEachThread = this.borderArray.size()/nrThreads;\n int difSurplus = this.borderArray.size()%nrThreads;\n int difRate;\n int lastAdded = 0;\n for(int i=1;i<=this.nrThreads;i++){\n if(difSurplus > 0){\n difRate = 1;\n difSurplus--;\n }\n else difRate = 0;\n \n this.listofIntervalsForEachThread[i].setStart(lastAdded);\n lastAdded = lastAdded + difRate + nrForEachThread - 1;\n this.listofIntervalsForEachThread[i].setEnd(lastAdded);\n lastAdded++;\n }\n }\n }", "private int toTime(int i) {\n int count = 0;\n\n //hours units\n count += toLeds((i / 6000) % 10);\n //hours tens\n count += toLeds(((i / 6000) % 100) / 10);\n\n //minutes units\n count += toLeds((i / 60) % 10);\n //minutes tens\n count += toLeds(((i / 60) % 100) / 10);\n\n //seconds units\n count += toLeds((i % 60) % 10);\n //seconds tens\n count += toLeds(((i % 60) % 100) / 10);\n\n return count;\n }", "private int secToMin(int sec){\n return sec/60;\n }", "public TimeInterval create(TimeInterval ti) {\r\n\t\tDefaultTimeInterval nti = new DefaultTimeInterval();\r\n\t\tfor (int i = 0; i < _numberOfIntervals.length; i++)\r\n\t\t\tnti._numberOfIntervals[i] = this._numberOfIntervals[i];\r\n\t\treturn nti;\r\n\t}", "public Double getCostInterval();", "public void setMiliSeconds(int nt) {\r\n\t\tthis.milis = nt;\r\n\t}", "public Interval(){\r\n firstExtreme = 0.0d;\r\n secondExtreme = 0.0d;\r\n feIncluded = '(';\r\n seIncluded = ')';\r\n }", "@Test\n\tpublic void testMakeMeterSectionTimes() {\n\t\tScorePiece sp = new ScorePiece(MIDIImport.importMidiFile(midiTestGetMeterKeyInfo));\n\t\tScoreMetricalTimeLine smtl = new ScoreMetricalTimeLine(sp.getMetricalTimeLine());\n\n\t\tList<Long> expected = Arrays.asList(new Long[]{\n\t\t\t(long) 0, \n\t\t\t(long) 1800000, \n\t\t\t(long) 11400000, \n\t\t\t(long) 25800000, \n\t\t\t(long) 30600000, \n\t\t\t(long) 31350000\n\t\t});\n\n\t\tList<Long> actual = smtl.makeMeterSectionTimes();\n\n\t\tassertEquals(expected.size(), actual.size());\n\t\tfor (int i = 0; i < expected.size(); i++) {\n\t\t\tassertEquals(expected.get(i), actual.get(i));\t\t\n\t\t}\n\t\tassertEquals(expected, actual);\n\t}", "protected int getNumberOfPeriods()\n {\n return 2;\n }", "public double GenerateTime() {\r\n double d = R.nextDouble();\r\n double generatedtime=mean+range*(d-0.5);\r\n return generatedtime;\r\n }", "RampDownTimer getRampDownTimer();", "public static void main(String[] args) {\n Instant instant = Instant.now();\n System.out.println(instant);\n\n //Seria impossivel guardar em long o nanos segundos desde 1970\n //Entao foi criado 2 variaveis\n System.out.println(instant.getEpochSecond()); //Segundo atual desde 1970\n System.out.println(instant.getNano()); //Tempo em nanos segundos do ultimo segundo - Max: 999.999.999\n\n //Adicionando segundos a um instant - 1970 + o tempo adicionado\n System.out.println(Instant.ofEpochSecond(3));\n //Da pra ajustar o nanosegundos do ofepochsecond, sobrecarregando o método com os mesmos\n System.out.println(Instant.ofEpochSecond(3,90_000_000));\n System.out.println(Instant.ofEpochSecond(2,1_000_000_000));\n System.out.println(Instant.ofEpochSecond(4,-1_000_000_000));\n\n System.out.println(\"---------DURATION---------\");\n //Duration\n //Pegar intervalos de data\n LocalDateTime dt1 = LocalDateTime.now();\n LocalDateTime dt2 = LocalDateTime.of(2017,1,1,23,0,0);\n\n LocalTime time1 = LocalTime.now();\n LocalTime time2 = LocalTime.of(5,0,0);\n\n //Duration - Intervalo entre data\n Duration d1 = Duration.between(dt1,dt2);\n System.out.println(d1);\n\n //Duration - Intervalo entre time\n Duration d2 = Duration.between(time1,time2);\n System.out.println(d2);\n\n //Duration - Instant\n Duration d3 = Duration.between(Instant.now(),Instant.now().plusSeconds(1000));\n //PlusSeconds - Adiciona alguns segundos ao instant\n System.out.println(d3);\n\n //Nao pode usar LocalDate no Instant\n //Nao pode misturar LocalDateTime com LocalTime\n// Duration d4 = Duration.between(dt2,time2);\n// Duration d5 = Duration.between(LocalDate.now(),LocalDate.now().plusDays(20));\n\n //Comparar LocalDateTime com LocalTime\n Duration d6 = Duration.between(dt2,time2.atDate(dt2.toLocalDate()));\n\n //Criar duration especificando minutes, horas e dias e outros exceto meses\n Duration d7 = Duration.ofMinutes(3);\n Duration d8 = Duration.ofDays(10);\n System.out.println(d7);\n System.out.println(d8);\n\n\n System.out.println(\"---------PERIOD---------\");\n\n //Verificar intervalo entre duas datas\n Period p1 = Period.between(dt1.toLocalDate(),dt2.toLocalDate());\n System.out.println(p1);\n\n //Criando um Period\n Period p2 = Period.ofDays(10);\n Period p3 = Period.ofWeeks(58);\n System.out.println(p2);\n System.out.println(p3);\n\n //Transformar semanas em meses\n// System.out.println(Period.between(LocalDate.now(), LocalDate.now().plusDays(p3.getDays())).getMonths());\n LocalDateTime now = LocalDateTime.now();\n System.out.println(now.until(now.plusDays(p3.getDays()),ChronoUnit.MONTHS));\n //Until significa até - ou seja ele contou do dia atual até o dia marcado\n\n System.out.println(\"---------CHRONOUNIT---------\");\n //Pegar intervalo entre duas datas\n LocalDateTime aniversario = LocalDateTime.of(1975,8,23,12,0,0);\n\n //Imprimindo intervalos com ChronoUnit\n System.out.println(ChronoUnit.DAYS.between(aniversario,now));\n System.out.println(ChronoUnit.WEEKS.between(aniversario,now));\n System.out.println(ChronoUnit.MONTHS.between(aniversario,now));\n System.out.println(ChronoUnit.YEARS.between(aniversario,now));\n\n\n\n\n\n\n }", "public Integer getTicksPerBeat() {\n int ticks = 1;\n int gcd;\n for (int i = 0; i < phrases.size(); i++) {\n int phraseTicks = phrases.get(i).getTicks();\n /**\n * Computing the gcd of the two will help us compute the LCM.\n */\n gcd = 1;\n if (phraseTicks % 2 == 0 && ticks % 2 == 0)\n gcd = 2;\n for (int j = 3; j <= Math.min(phraseTicks, ticks); j++) {\n if (phraseTicks % j == 0 && ticks % j == 0) {\n gcd = j;\n }\n }\n /**\n * Compute the least common multiple of ticks and phraseTicks\n */\n ticks = phraseTicks * ticks / gcd;\n }\n return ticks;\n }", "private int getDurationInBlocks(long duration) {\n\t\tlong minute = 1000 * 60;\n\t\t// If the duration is less than a single block, return 1\n\t\tif (duration < MINUTES_PER_BLOCK * minute) {\n\t\t\treturn 1;\n\t\t}\n\t\tlong hour = 60 * minute;\n\t\tlong day = 24 * hour;\n\t\tlong week = 7 * day;\n\t\tint blocks = 0;\n\n\t\tif (duration > week) {\n\t\t\tblocks += (duration / week) * 7 * 24 * BLOCKS_IN_HOUR;\n\t\t\tduration = duration % week;\n\t\t}\n\t\tif (duration > day) {\n\t\t\tblocks += (duration / day) * 24 * BLOCKS_IN_HOUR;\n\t\t\tduration = duration % day;\n\t\t}\n\t\tif (duration > hour) {\n\t\t\tblocks += (duration / hour) * BLOCKS_IN_HOUR;\n\t\t\tduration = duration % hour;\n\t\t}\n\t\tif (duration > minute) {\n\t\t\tblocks += (duration / minute) / MINUTES_PER_BLOCK;\n\t\t}\n\t\treturn blocks;\n\t}", "public void _setTicks() {\n if (!Double.isNaN(tickIncrement)) {\n setTicksByIncr(tickIncrement);\n return;\n }\n double diff = Math.abs(max - min);\n if (!(diff > 0.)) {\n int tn = 2;\n tn += nanW > 0 ? 2 : 0;\n tn += negW > 0 ? 2 : 0;\n tn += nanW > 0 || negW > 0 ? 2 : 0;\n tn += posW > 0 ? 4 : 0;\n ticks = new double[tn];\n int i = 0;\n if (nanW > 0) {\n ticks[i++] = 0.;\n ticks[i++] = Double.NaN;\n if (!(negW > 0)) {\n ticks[i++] = 0. + nanW;\n ticks[i++] = Double.NaN;\n }\n }\n if (negW > 0) {\n ticks[i++] = 0. + nanW;\n ticks[i++] = Double.NEGATIVE_INFINITY;\n ticks[i++] = 0. + nanW + negW;\n ticks[i++] = Double.NEGATIVE_INFINITY;\n }\n ticks[i++] = 0. + nanW + posW;\n ticks[i++] = min;\n if (posW > 0) {\n ticks[i++] = size-posW+1;\n ticks[i++] = Double.POSITIVE_INFINITY;\n ticks[i++] = size-1;\n ticks[i++] = Double.POSITIVE_INFINITY;\n }\n return;\n }\n double exp = Math.log(diff) * 0.43429448190325176; // log10\n int expi = -(int)Math.floor(exp);\n double scale = Math.pow(10.,expi);\n double smin = Math.floor(min * scale);\n double smax = Math.ceil(max * scale);\n int siz = size - nanW - negW - nanW;\n int sdiff = (int)(smax - smin);\n if (sdiff > siz/2)\n scale *= .5;\n else if (sdiff < 3)\n scale *= 4;\n else if (sdiff < 5)\n scale *= 2;\n double incr = 1./scale;\n int count = 0;\n double sval = smin / scale;\n if (max > min) {\n smin = Math.ceil(min * scale);\n smax = Math.floor(max * scale) / scale + .2 * incr;\n sval = smin / scale;\n while ( sval <= smax ) {\n count+=2;\n sval += incr;\n }\n } else {\n incr *= -1.;\n smin = Math.floor(min * scale);\n smax = Math.ceil(max * scale) / scale + .2 * incr;\n sval = smin / scale;\n while ( sval >= smax ) {\n count+=2;\n sval += incr;\n }\n }\n int tn = count;\n tn += nanW > 0 ? 2 : 0;\n tn += negW > 0 ? 2 : 0;\n tn += nanW > 0 || negW > 0 ? 2 : 0;\n tn += posW > 0 ? 4 : 0;\n sval = smin / scale;\n ticks = new double[tn];\n int pi = 0; // pixelIndex\n if (nanW > 0 && pi < tn) {\n ticks[pi++] = 0.;\n ticks[pi++] = Double.NaN;\n if (!(negW > 0)) {\n ticks[pi++] = 0. + nanW;\n ticks[pi++] = Double.NaN;\n }\n }\n if (negW > 0 && pi < tn) {\n ticks[pi++] = 0. + nanW;\n ticks[pi++] = Double.NEGATIVE_INFINITY;\n ticks[pi++] = 0. + nanW + negW;\n ticks[pi++] = Double.NEGATIVE_INFINITY;\n }\n for (int i = 0; i < count && pi < tn; i += 2) {\n ticks[pi++] = nanW + negW + (siz - 1) * ((sval - min ) / (max - min));\n ticks[pi++] = Math.round(sval*scale)/scale;\n sval += incr;\n }\n if (posW > 0 && pi < tn) {\n ticks[pi++] = size-posW+1;\n ticks[pi++] = Double.POSITIVE_INFINITY;\n ticks[pi++] = size-1;\n ticks[pi++] = Double.POSITIVE_INFINITY;\n }\n }", "public int getMinuteFraction()\n {\n return (((int)(hours*100.0)%100)*60)/100;\n }", "public int getMiliSeconds() {\r\n\t\treturn milis;\r\n\t}", "int getMaxTicksLimit();", "private double timeFractionBasedOnLevel(){\n // assume AnimationTimer speed to be relevant to 60 fps\n switch (board.getLevel()){\n case 0 -> {\n return 60.0 / 48.0;\n }\n case 1 -> {\n return 60.0 / 43.0;\n }\n case 2 -> {\n return 60.0 / 38.0;\n }\n case 3 -> {\n return 60.0 / 33.0;\n }\n case 4 -> {\n return 60.0 / 28.0;\n }\n case 5 -> {\n return 60.0 / 23.0;\n }\n case 6 -> {\n return 60.0 / 18.0;\n }\n case 7 -> {\n return 60.0 / 13.0;\n }\n case 8 -> {\n return 60.0 / 8.0;\n }\n case 9 -> {\n return 60.0 / 6.0;\n }\n case 10, 11, 12 -> {\n return 60.0 / 5.0;\n }\n case 13, 14, 15 -> {\n return 60.0 / 4.0;\n }\n case 16, 17, 18 -> {\n return 60.0 / 3.0;\n }\n case 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 -> {\n return 60.0 / 2.0;\n }\n default -> {\n return 60.0 / 1.01;\n }\n }\n }", "public int compare(TimeInterval ti) {\r\n\t\tlong diff = 0;\r\n\t\tfor (int field = 8; field >= 1; field--) {\r\n\t\t\tdiff += (getNumberOfIntervals(field) - ti\r\n\t\t\t\t\t.getNumberOfIntervals(field))\r\n\t\t\t\t\t* getMaximumNumberOfMinutesInField(field);\r\n\t\t}\r\n\t\tif (diff == 0)\r\n\t\t\treturn 0;\r\n\t\telse if (diff > 0)\r\n\t\t\treturn 1;\r\n\t\telse\r\n\t\t\treturn -1;\r\n\t}", "public int getDuration( ) {\nreturn numberOfPayments / MONTHS;\n}", "@Override\n protected Interval adjustInterval(Interval i) {\n RangeDivision iInfo = RangeDivision.getRangeDivision(i, TimeLineController.getJodaTimeZone());\n final long lowerBound = iInfo.getLowerBound();\n final long upperBound = iInfo.getUpperBound();\n final DateTime lowerDate = new DateTime(lowerBound, TimeLineController.getJodaTimeZone());\n final DateTime upperDate = new DateTime(upperBound, TimeLineController.getJodaTimeZone());\n //add extra block to end that gets cut of by conversion from string/category.\n return new Interval(lowerDate, upperDate.plus(countsChart.rangeInfo.getPeriodSize().toUnitPeriod()));\n }", "public void temporizadorTiempo() {\n Timer timer = new Timer();\n tareaRestar = new TimerTask() {\n @Override\n public void run() {\n tiempoRonda--;\n }\n };\n timer.schedule(tareaRestar, 1,1000);\n }", "Integer networkTickRate();", "public static double centiMetresPerSecondToMetrePerSecond(double num) { return (num/100); }", "public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }", "private KilometersPerHour() {}", "public double getAsSeconds()\n {\n return itsValue / 1000000.0;\n }", "public double getSecs( );", "public static void main(String[] args) {\n int horaSalida;\n int minutosSalida;\n int horaLlegada;\n int minutosLlegada;\n //Salida:\n int duracion;\n //condiciones y restricciones: el vuelo puede pasar de medianoche y no dura mas de 24h\n Scanner sc = new Scanner(System.in);\n do {\n System.out.println(\"Ingrese la hora de salida\");\n horaSalida = sc.nextInt();\n System.out.println(\"Ingrese los minutos\");\n minutosSalida = sc.nextInt();\n\n System.out.println(\"Ingrese la hora de llegada\");\n horaLlegada = sc.nextInt();\n System.out.println(\"Ingrese los minutos\");\n minutosLlegada = sc.nextInt();\n if (horaSalida > 24 || horaLlegada > 24 || minutosSalida > 60 || minutosLlegada > 60) {\n System.out.println(\"Los datos no han sido ingresados correctamente, vuelva a intentarlo\");\n }\n } while (horaSalida > 24 || horaLlegada > 24 || minutosSalida > 60 || minutosLlegada > 60);\n\n //Conversion de horas y minutos en solo minutos 19<2\n if (horaSalida > horaLlegada) {//caso 1\n horaLlegada = 24 + horaLlegada;//para poder restarlo a eso las h y m de salida\n }\n if (horaLlegada == horaSalida && (minutosSalida > minutosLlegada || minutosSalida == minutosLlegada)) {//caso 2\n horaLlegada = 24 + horaLlegada;//para poder restarlo a eso las h y m de salida\n }\n duracion = ((horaLlegada * 60) + minutosLlegada) - ((horaSalida * 60) + minutosSalida);\n\n if (duracion >= 1440) {//24*60=1440 si se pasa esto significa que el vuelo dura mas de 24h ex: 3:41 y llego 3:20\n System.out.print(\"El vuelo no puede durar mas de 24 horas \");\n } else {\n System.out.print(\"La duracion del vuelo es \" + duracion + \" minutos o \");\n //CODICIONES PARA EL AFFICHAGE\n if ((duracion / 60) < 10) {\n System.out.print(\"0\");\n }\n System.out.print(duracion / 60 + \"h\");\n\n if ((duracion % 60) < 10) {\n System.out.print(\"0\");\n }\n System.out.print(duracion % 60 + \"m\");\n }\n }", "public abstract int getTicks();", "public int getNetworkTransmissionInterval(){\n return (networkIntervalSteps + 1) * 10;\n }", "public TimeIntervalFormatter(final Context context, final TimeUnit unit, final int[][] intervals) {\n super(context);\n this.unit = unit;\n intervalList = new ArrayList<>(intervals.length);\n for(int[] interval : intervals)\n if (interval.length > 1) intervalList.add(interval);\n }", "public double getPauseBetweenMIDISends() \n {\n return 0.0;\n }", "protected static List<Integer> createTestIntervals( Element elem )\n throws XMLParsingException {\n\n List<Element> list = XMLTools.getElements( elem, StringTools.concat( 100, \"./\", dotPrefix, \"Value\" ), cnxt );\n List<Integer> testIntervals = new ArrayList<Integer>();\n for ( Element child : list ) {\n testIntervals.add( XMLTools.getRequiredNodeAsInt( child, \".\", cnxt ) );\n }\n return testIntervals;\n }", "public int getLoopInterval()\r\n {\r\n return loopInterval;\r\n }", "public TimeInterval createByAdding(TimeInterval ti) {\r\n\t\tDefaultTimeInterval nti = new DefaultTimeInterval();\r\n\t\tfor (int i = 1; i < _numberOfIntervals.length; i++) {\r\n\t\t\tnti._numberOfIntervals[i] = this._numberOfIntervals[i]\r\n\t\t\t\t\t+ ti.getNumberOfIntervals(i);\r\n\t\t}\r\n\t\treturn nti;\r\n\t}", "public static void dormir(long milis)\r\n\t{\r\n\t\tlong inicial=System.currentTimeMillis();\r\n\t\twhile(System.currentTimeMillis()-inicial < milis) {/*Esperar a que pase el tiempo*/}\r\n\t}", "Constant getCyclePeriodConstant();", "@Override\n public double salario() {\n return 2600 * 1.10;\n }", "public double getStopTime();", "public int getDimes()\n {\n\treturn dimes;\n }", "private static float calculateStepRate(int stepCount) {\n\n return (float) stepCount / (float) secsPerMinute;\n\n }", "public static double getTimeStep(Cell[] cells){\n return cells[0].dx / Math.abs(Info.ADVECTION_VEL) * Info.CFL; \n }", "public int getminutoStamina(){\n return tiempoReal;\n }", "private int melodyHelper(ArrayList<Integer> melody, int[] scale, int i) {\n int target = melody.get(i);\n int track = 0;\n while (target < 0) {\n target += scale.length - 1;\n track--; \n }\n while (target >= scale.length - 1) {\n target -= scale.length - 1;\n track++;\n }\n return scale[target] + track * 12;\n }", "public double getTempoManipulator(int time) {\n if (time < duration * ((double) pStart / 100)) // BEFORE INCREASE\n return roundWithPrecision(pOffset, 3);\n else if (time > duration * (((double) pStart + (double) pDuration) / 100)) // AFTER INCREASE\n return roundWithPrecision(pOffset * pManipulation, 3);\n else // DURING INCREASE\n {\n double startOfIncrease = (((double) pStart) / 100 * duration);\n double lengthOfIncrease = (((double) pDuration) / 100 * duration);\n\n double at = time - startOfIncrease;\n double atModifier = at / lengthOfIncrease;\n return roundWithPrecision(((1 + ((pManipulation - 1) * atModifier)) * pOffset), 3);\n }\n }", "static int calculateTimeDelta(TimeInterval interval_1, TimeInterval interval_2) {\n TimeInterval earlier;\n TimeInterval later;\n if (interval_1.getStartTime().before(interval_2.getStartTime())) {\n earlier = interval_1;\n later = interval_2;\n } else {\n earlier = interval_2;\n later = interval_1;\n }\n\n return (int) (later.getStartTime().getTime() - earlier.getStopTime().getTime());\n }", "@JSProperty(\"tickInterval\")\n double getTickInterval();", "int getRecurrenceDuration();", "int getTickLength();", "RampUpTimer getRampUpTimer();" ]
[ "0.6810421", "0.6645972", "0.65825486", "0.6471379", "0.63406664", "0.62967664", "0.62340426", "0.6191362", "0.6179394", "0.61748034", "0.5951615", "0.59460884", "0.5920553", "0.59158397", "0.5865446", "0.58368033", "0.5830048", "0.5793081", "0.5748323", "0.5726708", "0.56397086", "0.5631994", "0.5630101", "0.56277406", "0.5609848", "0.5609379", "0.55993205", "0.55968", "0.55795455", "0.55664253", "0.55556476", "0.55517924", "0.5543673", "0.5536489", "0.5533266", "0.54798037", "0.5463069", "0.5449939", "0.5443547", "0.5427333", "0.5409323", "0.5399614", "0.5368809", "0.53586394", "0.5355633", "0.5343106", "0.53235996", "0.5297685", "0.5294241", "0.5291972", "0.5290426", "0.5282684", "0.5274159", "0.52701724", "0.5268434", "0.52663475", "0.5262478", "0.52610224", "0.5258878", "0.52503383", "0.52446455", "0.5240077", "0.52370894", "0.5235661", "0.52281034", "0.5225448", "0.52105796", "0.52042687", "0.5198355", "0.5192685", "0.5184529", "0.5178034", "0.5176058", "0.5166118", "0.51658744", "0.5159052", "0.51588076", "0.51553345", "0.5150554", "0.514853", "0.51456606", "0.5145491", "0.5138195", "0.512933", "0.5128374", "0.512565", "0.5123446", "0.5123114", "0.5113698", "0.5113513", "0.5109079", "0.51024175", "0.51017845", "0.5095507", "0.50881153", "0.50873065", "0.50852466", "0.5083359", "0.50816554", "0.50806075" ]
0.5440417
39
Frecuencia de llegadas de aeronaves
public double getFrecuencia() { return frecuencia; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void berechneUmfang() {\r\n\t\tfor (int i = 1; i < m_ANZAHL_POINTS; i++) {\r\n\t\t\tm_umfang += m_pointArray[i].distance(m_pointArray[i-1]);\t\t\r\n\t\t}\r\n\t}", "private void arretes_fG(){\n\t\tthis.cube[31] = this.cube[28]; \n\t\tthis.cube[28] = this.cube[30];\n\t\tthis.cube[30] = this.cube[34];\n\t\tthis.cube[34] = this.cube[32];\n\t\tthis.cube[32] = this.cube[31];\n\t}", "public int getFlores(int avenida, int calle);", "@Override\n float luas() {\n float luas = (float) (Math.PI * r * r);\n System.out.println(\"Luas lingkaran adalah \" + luas);\n return luas;\n }", "double defendre();", "public void mo3811g() {\n this.f1490s.mo3763i();\n this.f1491t.mo3763i();\n this.f1492u.mo3763i();\n this.f1493v.mo3763i();\n this.f1494w.mo3763i();\n this.f1495x.mo3763i();\n this.f1496y.mo3763i();\n this.f1497z.mo3763i();\n this.f1429D = null;\n this.f1461aj = 0.0f;\n this.f1430E = 0;\n this.f1431F = 0;\n this.f1432G = 0.0f;\n this.f1433H = -1;\n this.f1434I = 0;\n this.f1435J = 0;\n this.f1462ak = 0;\n this.f1463al = 0;\n this.f1464am = 0;\n this.f1465an = 0;\n this.f1438M = 0;\n this.f1439N = 0;\n this.f1440O = 0;\n this.f1441P = 0;\n this.f1442Q = 0;\n this.f1466ao = 0;\n this.f1467ap = 0;\n float f = f1425R;\n this.f1443S = f;\n this.f1444T = f;\n this.f1428C[0] = EnumC0282a.FIXED;\n this.f1428C[1] = EnumC0282a.FIXED;\n this.f1468aq = null;\n this.f1469ar = 0;\n this.f1470as = 0;\n this.f1472au = null;\n this.f1445U = false;\n this.f1446V = false;\n this.f1450Z = 0;\n this.f1452aa = 0;\n this.f1453ab = false;\n this.f1454ac = false;\n float[] fArr = this.f1455ad;\n fArr[0] = -1.0f;\n fArr[1] = -1.0f;\n this.f1451a = -1;\n this.f1473b = -1;\n int[] iArr = this.f1460ai;\n iArr[0] = Integer.MAX_VALUE;\n iArr[1] = Integer.MAX_VALUE;\n this.f1476e = 0;\n this.f1477f = 0;\n this.f1481j = 1.0f;\n this.f1484m = 1.0f;\n this.f1480i = Integer.MAX_VALUE;\n this.f1483l = Integer.MAX_VALUE;\n this.f1479h = 0;\n this.f1482k = 0;\n this.f1487p = -1;\n this.f1488q = 1.0f;\n ResolutionDimension nVar = this.f1474c;\n if (nVar != null) {\n nVar.mo3878b();\n }\n ResolutionDimension nVar2 = this.f1475d;\n if (nVar2 != null) {\n nVar2.mo3878b();\n }\n this.f1489r = null;\n this.f1447W = false;\n this.f1448X = false;\n this.f1449Y = false;\n }", "public double getFLAngle(){\r\n \treturn frontLeftPot.get() - FLOFFSET;\r\n }", "public void leerPlanesDietas();", "private void arretes_fR(){\n\t\tthis.cube[13] = this.cube[10]; \n\t\tthis.cube[10] = this.cube[12];\n\t\tthis.cube[12] = this.cube[16];\n\t\tthis.cube[16] = this.cube[14];\n\t\tthis.cube[14] = this.cube[13];\n\t}", "public void recarga(){\n \tthis.fuerza *= 1.1;\n \tthis.vitalidad *= 1.1; \n }", "public void mo1290f() {\n int size = this.f2112j.size();\n while (true) {\n size--;\n if (size < 0) {\n break;\n }\n C0467b bVar = this.f2112j.get(size);\n View view = bVar.f2127a.f996a;\n view.setTranslationY(0.0f);\n view.setTranslationX(0.0f);\n mo1287c(bVar.f2127a);\n this.f2112j.remove(size);\n }\n int size2 = this.f2110h.size();\n while (true) {\n size2--;\n if (size2 < 0) {\n break;\n }\n mo1287c(this.f2110h.get(size2));\n this.f2110h.remove(size2);\n }\n int size3 = this.f2111i.size();\n while (true) {\n size3--;\n if (size3 < 0) {\n break;\n }\n RecyclerView.C0145a0 a0Var = this.f2111i.get(size3);\n a0Var.f996a.setAlpha(1.0f);\n mo1287c(a0Var);\n this.f2111i.remove(size3);\n }\n int size4 = this.f2113k.size();\n while (true) {\n size4--;\n if (size4 < 0) {\n break;\n }\n C0466a aVar = this.f2113k.get(size4);\n RecyclerView.C0145a0 a0Var2 = aVar.f2121a;\n if (a0Var2 != null) {\n mo2786m(aVar, a0Var2);\n }\n RecyclerView.C0145a0 a0Var3 = aVar.f2122b;\n if (a0Var3 != null) {\n mo2786m(aVar, a0Var3);\n }\n }\n this.f2113k.clear();\n if (mo1291g()) {\n int size5 = this.f2115m.size();\n while (true) {\n size5--;\n if (size5 < 0) {\n break;\n }\n ArrayList arrayList = this.f2115m.get(size5);\n int size6 = arrayList.size();\n while (true) {\n size6--;\n if (size6 >= 0) {\n C0467b bVar2 = (C0467b) arrayList.get(size6);\n View view2 = bVar2.f2127a.f996a;\n view2.setTranslationY(0.0f);\n view2.setTranslationX(0.0f);\n mo1287c(bVar2.f2127a);\n arrayList.remove(size6);\n if (arrayList.isEmpty()) {\n this.f2115m.remove(arrayList);\n }\n }\n }\n }\n int size7 = this.f2114l.size();\n while (true) {\n size7--;\n if (size7 < 0) {\n break;\n }\n ArrayList arrayList2 = this.f2114l.get(size7);\n int size8 = arrayList2.size();\n while (true) {\n size8--;\n if (size8 >= 0) {\n RecyclerView.C0145a0 a0Var4 = (RecyclerView.C0145a0) arrayList2.get(size8);\n a0Var4.f996a.setAlpha(1.0f);\n mo1287c(a0Var4);\n arrayList2.remove(size8);\n if (arrayList2.isEmpty()) {\n this.f2114l.remove(arrayList2);\n }\n }\n }\n }\n int size9 = this.f2116n.size();\n while (true) {\n size9--;\n if (size9 >= 0) {\n ArrayList arrayList3 = this.f2116n.get(size9);\n int size10 = arrayList3.size();\n while (true) {\n size10--;\n if (size10 >= 0) {\n C0466a aVar2 = (C0466a) arrayList3.get(size10);\n RecyclerView.C0145a0 a0Var5 = aVar2.f2121a;\n if (a0Var5 != null) {\n mo2786m(aVar2, a0Var5);\n }\n RecyclerView.C0145a0 a0Var6 = aVar2.f2122b;\n if (a0Var6 != null) {\n mo2786m(aVar2, a0Var6);\n }\n if (arrayList3.isEmpty()) {\n this.f2116n.remove(arrayList3);\n }\n }\n }\n } else {\n mo2783j(this.f2119q);\n mo2783j(this.f2118p);\n mo2783j(this.f2117o);\n mo2783j(this.f2120r);\n mo1288d();\n return;\n }\n }\n }\n }", "public void ferdig(){\n antallTelegrafister--;\n }", "private void arretes_fW(){\n\t\tthis.cube[4] = this.cube[1]; \n\t\tthis.cube[1] = this.cube[3];\n\t\tthis.cube[3] = this.cube[7];\n\t\tthis.cube[7] = this.cube[5];\n\t\tthis.cube[5] = this.cube[4];\n\t}", "private void arretes_fO(){\n\t\tthis.cube[40] = this.cube[37]; \n\t\tthis.cube[37] = this.cube[39];\n\t\tthis.cube[39] = this.cube[43];\n\t\tthis.cube[43] = this.cube[41];\n\t\tthis.cube[41] = this.cube[40];\n\t}", "public static Resultado Def_FA(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n //Calcular la ocupacion del espectro para cada camino k\n for(int i=0;i<capacidad;i++){\n for(Nodo n=ksp[k].getInicio();n.getSiguiente().getSiguiente()!=null;n=n.getSiguiente()){\n //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\n if(G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0){\n OE[i]=0;\n break;\n }\n }\n }\n \n inicio=fin=cont=0;\n for(int i=0;i<capacidad;i++){\n if(OE[i]==1){\n inicio=i;\n for(int j=inicio;j<capacidad;j++){\n if(OE[j]==1){\n cont++;\n }\n else{\n cont=0;\n break;\n }\n //si se encontro un bloque valido, salimos de todos los bloques\n if(cont==demanda.getNroFS()){\n fin=j;\n fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada=0;\n break;\n }\n }\n k++;\n }\n \n /*if(demandaColocada==0){\n return null; // Si no se encontro, en ningun camino un bloque contiguo de FSs, retorna null.\n }*/\n \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n \n \n int caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }", "private void moverFondo() {\n ActualizaPosicionesFondos();\n noAleatorio = MathUtils.random(1, 5); // crea los numeros para cambiar los mapas de manera aleatoria\n if (xFondo == -texturaFondoBase.getWidth()){\n //Cambio de fondo base\n texturaFondoBase= mapaAleatorio(noAleatorio);\n modificacionFondoBase= true; //Avisa que ya se modifico los fondos de inicio.\n }\n if (xFondo == -(texturaFondoApoyo.getWidth()+texturaFondoBase.getWidth())){\n //Cambio fondo de apoyo\n texturaFondoApoyo= mapaAleatorio(noAleatorio);\n xFondo= 0; //al pasar el segundo fondo regresa el puntero al primer fondo.\n modificacionFondoBase= true; //Avisa que ya se modifico los fondos de inicio.\n }\n }", "public void fjernAlle() {\n listehode.neste = null;\n antall = 0;\n }", "public void adjust_FineFuelMoisture(){\r\n\t// If FFM is one or less we set it to one\t\t\r\n\tif ((FFM-1)<=0){\r\n\t\tFFM=1;\r\n\t}else{\r\n\t\t//add 5 percent FFM for each Herb stage greater than one\r\n\t\tFFM=FFM+(iherb-1)*5;\r\n\t}\r\n}", "@Override\r\n\tpublic BoundingRechteck[] flaechen() {\r\n\t\t\r\n\t\treturn new BoundingRechteck[] { new BoundingRechteck(0,0,0,0)};\r\n\t\t/*BoundingRechteck[] ret = new BoundingRechteck[formen.length];\r\n\t\tfor (int i = 0; i < formen.length; i++) {\r\n\t\t\tret[i] = formen[i].dimension();\r\n\t\t}\r\n\t\treturn ret;\r\n\t\t*/\r\n\t}", "private void m23260f() {\n Shimmer aVar;\n Shader shader;\n Rect bounds = getBounds();\n int width = bounds.width();\n int height = bounds.height();\n if (width != 0 && height != 0 && (aVar = this.f19138f) != null) {\n int a = aVar.mo28981a(width);\n int b = this.f19138f.mo28983b(height);\n boolean z = true;\n if (this.f19138f.f19117g != 1) {\n if (!(this.f19138f.f19114d == 1 || this.f19138f.f19114d == 3)) {\n z = false;\n }\n if (z) {\n a = 0;\n }\n if (!z) {\n b = 0;\n }\n shader = new LinearGradient(0.0f, 0.0f, (float) a, (float) b, this.f19138f.f19112b, this.f19138f.f19111a, Shader.TileMode.CLAMP);\n } else {\n shader = new RadialGradient(((float) a) / 2.0f, ((float) b) / 2.0f, (float) (((double) Math.max(a, b)) / Math.sqrt(2.0d)), this.f19138f.f19112b, this.f19138f.f19111a, Shader.TileMode.CLAMP);\n }\n this.f19134b.setShader(shader);\n }\n }", "public void dessiner() {\n\t\tafficherMatriceLignes(m.getCopiePartielle(progresAffichage), gc);\r\n\t}", "private void arretes_fB(){\n\t\tthis.cube[22] = this.cube[19]; \n\t\tthis.cube[19] = this.cube[21];\n\t\tthis.cube[21] = this.cube[25];\n\t\tthis.cube[25] = this.cube[23];\n\t\tthis.cube[23] = this.cube[22];\n\t}", "private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "float getMonatl_kosten();", "public double getEntreLlegadas() {\r\n return 60.0 / frecuencia;\r\n }", "float getFull();", "private void aretes_aG(){\n\t\tthis.cube[31] = this.cube[14]; \n\t\tthis.cube[14] = this.cube[5];\n\t\tthis.cube[5] = this.cube[41];\n\t\tthis.cube[41] = this.cube[50];\n\t\tthis.cube[50] = this.cube[31];\n\t}", "public static Resultado KSP_FF_Algorithm_MBBR(GrafoMatriz G, GrafoMatriz Gaux, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n \n /*Definicion de variables las variables*/\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n \n /*Probamos para cada camino, si exite espectro para ubicar la damanda*/\n int k=0;\n while(k<ksp.length && ksp[k]!=null && demandaColocada==0){\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n /*Calcular la ocupacion del espectro para cada camino k*/\n for(int i=0;i<capacidad;i++){\n for(Nodo n=ksp[k].getInicio();n.getSiguiente().getSiguiente()!=null;n=n.getSiguiente()){\n if(G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0 ||\n Gaux.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0 ){\n OE[i]=0;\n break;\n }\n }\n }\n /*Teniendo la ocupacion del espectro del camino k, buscamos un bloque continuo de FS\n * que satisfazca la demanda.\n */\n inicio=fin=cont=0;\n for(int i=0;i<capacidad;i++){\n if(OE[i]==1){\n inicio=i;\n for(int j=inicio;j<capacidad;j++){\n if(OE[j]==1){\n cont++;\n }\n else{\n cont=0;\n break;\n }\n //si se encontro un bloque valido, salimos de todos los bloques\n if(cont==demanda.getNroFS()){\n fin=j;\n demandaColocada=1;\n break;\n }\n }\n }\n if(demandaColocada==1){\n break;\n }\n }\n k++;\n }\n \n if(demandaColocada==0){\n return null; // Si no se encontro, en ningun camino un bloque contiguo de FSs, retorna null.\n }\n /*Bloque contiguoo encontrado, asignamos los indices del espectro a utilizar \n * y retornamos el resultado\n */\n Resultado r= new Resultado();\n r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);\n return r;\n }", "public static Resultado Def_FACA(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n //Calcular la ocupacion del espectro para cada camino k\n for(int i=0;i<capacidad;i++){\n for(Nodo n=ksp[k].getInicio();n.getSiguiente().getSiguiente()!=null;n=n.getSiguiente()){\n //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\n if(G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0){\n OE[i]=0;\n break;\n }\n }\n }\n \n inicio=fin=cont=0;\n for(int i=0;i<capacidad;i++){\n if(OE[i]==1){\n inicio=i;\n for(int j=inicio;j<capacidad;j++){\n if(OE[j]==1){\n cont++;\n }\n else{\n cont=0;\n break;\n }\n //si se encontro un bloque valido, salimos de todos los bloques\n if(cont==demanda.getNroFS()){\n fin=j;\n fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada = 0;\n break;\n }\n }\n k++;\n }\n \n /*if(demandaColocada==0){\n return null; // Si no se encontro, en ningun camino un bloque contiguo de FSs, retorna null.\n }*/\n \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n int [] cortesSlots = new int [2];\n double corte = -1;\n double Fcmt = 9999999;\n double FcmtAux = -1;\n \n int caminoElegido = -1;\n\n //controla que exista un resultado\n boolean nulo = true;\n\n ArrayList<Integer> indiceL = new ArrayList<Integer>();\n \n //contar los cortes de cada candidato\n for (int i=0; i<kspUbicados.size(); i++){\n cortesSlots = Utilitarios.nroCuts(kspUbicados.get(i), G, capacidad);\n if (cortesSlots != null){\n corte = (double)cortesSlots[0];\n \n indiceL = Utilitarios.buscarIndices(kspUbicados.get(i), G, capacidad);\n \n \n //contar los desalineamientos\n double desalineamiento = (double)Utilitarios.contarDesalineamiento(kspUbicados.get(i), G, capacidad, cortesSlots[1]);\n \n double capacidadLibre = (double)Utilitarios.contarCapacidadLibre(kspUbicados.get(i),G,capacidad);\n \n double saltos = (double)Utilitarios.calcularSaltos(kspUbicados.get(i));\n \n \n double vecinos = (double)Utilitarios.contarVecinos(kspUbicados.get(i),G,capacidad);\n \n\n \n FcmtAux = corte + (desalineamiento/(demanda.getNroFS()*vecinos)) + (saltos *(demanda.getNroFS()/capacidadLibre)); \n \n if (FcmtAux<Fcmt){\n Fcmt = FcmtAux;\n caminoElegido = i;\n }\n \n nulo = false;\n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n \n }\n }\n \n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n //caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n if (nulo || caminoElegido==-1){\n return null;\n }\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }", "private void devolver100() {\n cambio = cambio - 100;\n de100--;\n cambio100++;\n }", "public double getFlete(){\n return localFlete;\n }", "private void coins_fG(){\n\t\tthis.cube[31] = this.cube[27]; \n\t\tthis.cube[27] = this.cube[33];\n\t\tthis.cube[33] = this.cube[35];\n\t\tthis.cube[35] = this.cube[29];\n\t\tthis.cube[29] = this.cube[31];\n\t}", "private void redeyeEffect(float[] f) {\n float val = 0;\n Log.i(\"kike\", \"valor efecte: \" + val + \" barra: \");\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_REDEYE);\n effect.setParameter(\"centers\", f);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "public void mo4354a() {\n this.f3151a = 0;\n this.f3152b = false;\n this.f3153c = false;\n this.f3154d = false;\n }", "private void dibujarArregloCamionetas() {\n\n timerCrearEnemigo += Gdx.graphics.getDeltaTime();\n if (timerCrearEnemigo>=TIEMPO_CREA_ENEMIGO) {\n timerCrearEnemigo = 0;\n TIEMPO_CREA_ENEMIGO = tiempoBase + MathUtils.random()*2;\n if (tiempoBase>0) {\n tiempoBase -= 0.01f;\n }\n\n camioneta= new Camioneta(texturaCamioneta,ANCHO,60f);\n arrEnemigosCamioneta.add(camioneta);\n\n\n }\n\n //Si el vehiculo se paso de la pantalla, lo borra\n for (int i = arrEnemigosCamioneta.size-1; i >= 0; i--) {\n Camioneta camioneta1 = arrEnemigosCamioneta.get(i);\n if (camioneta1.sprite.getX() < 0- camioneta1.sprite.getWidth()) {\n arrEnemigosCamioneta.removeIndex(i);\n\n }\n }\n }", "public final void mo12412a() {\n long j = -1;\n this.f1569g = this.f1564b - this.f1563a;\n this.f1570h = this.f1565c - this.f1564b;\n this.f1571i = this.f1566d - this.f1565c;\n this.f1572j = this.f1567e - this.f1566d;\n this.f1573k = this.f1568f - this.f1567e;\n long j2 = this.f1569g;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1569g = j2;\n j2 = this.f1570h;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1570h = j2;\n j2 = this.f1571i;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1571i = j2;\n j2 = this.f1572j;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1572j = j2;\n j2 = this.f1573k;\n if (j2 >= 0) {\n j = j2;\n }\n this.f1573k = j;\n }", "public final void mo9756A() {\n int i = this.f9072g + this.f9073h;\n this.f9072g = i;\n int i2 = i - this.f9075j;\n int i3 = this.f9077l;\n if (i2 > i3) {\n int i4 = i2 - i3;\n this.f9073h = i4;\n this.f9072g = i - i4;\n return;\n }\n this.f9073h = 0;\n }", "private ArrayList[] blxAlpha(ArrayList[] madre, ArrayList[] padre, Random al)\n\t{\n\t\tint numAtributos = madre.length;\n\t\tdouble max = 0;\n\t\tdouble min = 0;\n\t\tdouble I = 0;\n\t\tArrayList[] hijo = new ArrayList[numAtributos];\n\t\t\n\t\t\n\t\tfor (int i = 0; i < numAtributos; i++)\t\t//Para cada atributo\n\t\t{\n\t\t\thijo[i] = new ArrayList();\n\t\t\t\n\t\t\t// El primer y el último valor de cada atributo no cambia\n\t\t\thijo[i].add(madre[i].get(0));\n\t\t\t\n\t\t\tint numParticiones = madre[i].size();\n\t\t\t\n\t\t\tfor (int j = 1; j < numParticiones-1;j++)\n\t\t\t{\n\t\t\t\tif ((Double)(madre[i].get(j)) < (Double)(padre[i].get(j)))\n\t\t\t\t{\t\n\t\t\t\t\tmax = (Double)(padre[i].get(j));\n\t\t\t\t\tmin = (Double)(madre[i].get(j));\n\t\t\t\t}\n\t\t\t\telse\t\t\t\t\t\t\t//Si el gen de la madre es mayor\n\t\t\t\t{\n\t\t\t\t\tmin = (Double)(padre[i].get(j));\n\t\t\t\t\tmax = (Double)(madre[i].get(j));\n\t\t\t\t}\t\t\t\t\t \n\t\t\t\tI = max - min;\t//Obtenemos la diferencia\n\t\t\t\tmin = min - I * 0.15;\t//Calculamos el extremo inferior\n\t\t\t\tmax = max + I * 0.15;\t//Calculamos el extremo superior\n\t\t\t\thijo[i].add(min + al.nextDouble() * (max - min));\t//Calculamos un punto aleatorio dentro del intervalo\n\t\t\t}\n\t\t\t\n\t\t\t// El primer y el último valor de cada atributo no cambia\n\t\t\thijo[i].add(madre[i].get(numParticiones-1));\n\t\t}\n\t\t\n\t\t// Validación del individuo\n\t\t\n\t\t// Ponemos a mínimo los valores menores que el mínimo y al máximo los valores menores que el máximo\n\t\tfor(int i=0;i < numAtributos; i++)\n\t\t{\n\t\t\tint numParticiones = hijo[i].size();\n\t\t\t\n\t\t\tmin = ((Double)(hijo[i].get(0)));\n\t\t\tmax = ((Double)(hijo[i].get(numParticiones-1)));\n\t\t\t\n\t\t\tfor (int j = 1; j < numParticiones-1;j++)\n\t\t\t{\n\t\t\t\tif(((Double)(hijo[i].get(j))) < min)\n\t\t\t\t{\n\t\t\t\t\thijo[i].add(j, min);\n\t\t\t\t}\n\t\t\t\telse if((((Double)(hijo[i].get(j))) > max))\n\t\t\t\t{\n\t\t\t\t\thijo[i].add(j, max);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Ordenamos los valores de menor a mayor\n\t\tfor(int i=0;i < numAtributos; i++)\n\t\t{\n\t\t\tint numParticiones = hijo[i].size();\n\t\t\t\n\t\t\tfor (int j = 1; j < numParticiones-2;j++)\n\t\t\t{\n\t\t\t\tfor(int k = 1; k < numParticiones-2; k++)\n\t\t\t\t{\n\t\t\t\t\tdouble temp = ((Double)(hijo[i].get(k)));\n\t\t\t\t\tdouble compara = ((Double)(hijo[i].get(k+1)));\n\t\t\t\t\t\n\t\t\t\t\tif(temp > compara)\n\t\t\t\t\t{\n\t\t\t\t\t\thijo[i].remove(k);\n\t\t\t\t\t\thijo[i].add(k, compara);\n\t\t\t\t\t\thijo[i].remove(k+1);\n\t\t\t\t\t\thijo[i].add(k+1, temp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn hijo;\t\n\t}", "private void almacenarFallos() {\n BaseDatos bd = new BaseDatos(this);\n// Log.i(\"FALLOS\",\"Nmero de fallos final: \"+fallos);\n bd.updatePalabra(palabraActual.getId(),fallos);\n\n bd.close();\n }", "public static void main(String[] args) {\n Flughafen pad = new Flughafen();\n pad.name = \"Paderborn\";\n pad.treibstoffLager = 1000000;\n \n System.out.println(\"\\\"*** Unser Flughafen ***\");\n System.out.println(\"Flughafen \" + pad.name);\n System.out.println(\"Am Gate 1: \" + pad.gate1);\n System.out.println(\"Am Gate 2: \" + pad.gate2);\n System.out.println(\"Am Gate 3: \" + pad.gate3);\n System.out.println(\"Treibstoff: \" + pad.treibstoffLager);\n System.out.println(\"***********************\");\n\n // Boeing 747, https://de.wikipedia.org/wiki/Boeing_747#747-400\n Passagierflugzeug lh1 = new Passagierflugzeug();\n lh1.kennzeichen =\"D-ABTL\";\n lh1.passagiere=360;\n lh1.besatzung=20;\n lh1.treibstoff= 1000;\n \n pad.treibstoffLager -= lh1.tanken(1000);\n \n pad.gate1 = lh1;\n System.out.println(\"Flugzeug an Gate 1: \" + pad.gate1);\n\n\n // Airbus A380 https://de.wikipedia.org/wiki/Airbus_A380#A380-800\n Passagierflugzeug lh2 = new Passagierflugzeug();\n lh2.kennzeichen =\"D-AIMN\";\n lh2.passagiere=360;\n lh2.besatzung=16;\n lh2.treibstoff= 4000;\n \n pad.treibstoffLager -= lh2.tanken(4000);\n \n pad.gate2 = lh2;\n System.out.println(\"Am Gate 2: \" + pad.gate2);\n \n System.out.println(\"*** Unser Flughafen ***\");\n System.out.println(\"Flughafen \" + pad.name);\n System.out.println(\"Am Gate 1: \" + pad.gate1);\n System.out.println(\"Am Gate 2: \" + pad.gate2);\n System.out.println(\"Am Gate 3: \" + pad.gate3);\n System.out.println(\"Treibstoff: \" + pad.treibstoffLager);\n System.out.println(\"***********************\");\n \n\n System.out.println(\"Ablegen Gate 1\");\n pad.gate1 = null;\n System.out.println(\"Flugzeug an Gate 1: \" + pad.gate1);\n System.out.println(\"Rundflug von \" + lh1.kennzeichen);\n System.out.println(\"Anlegen von \" + lh1.kennzeichen + \" an Gate 3\");\n pad.gate3 = lh1;\n\n System.out.println(\"*** Unser Flughafen ***\");\n System.out.println(\"Flughafen \" + pad.name);\n System.out.println(\"Am Gate 1: \" + pad.gate1);\n System.out.println(\"Am Gate 2: \" + pad.gate2);\n System.out.println(\"Am Gate 3: \" + pad.gate3);\n System.out.println(\"Treibstoff: \" + pad.treibstoffLager);\n System.out.println(\"***********************\");\n \n }", "public void azzera() { setEnergia(0.0); }", "public void mo3770E() {\n int i = this.f1434I;\n int i2 = this.f1435J;\n this.f1462ak = i;\n this.f1463al = i2;\n this.f1464am = (this.f1430E + i) - i;\n this.f1465an = (this.f1431F + i2) - i2;\n }", "public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\treturn total;\n}", "private void m20210g() {\n C8466a aVar = this.f18650f;\n if (aVar != null && this.f18666v > 0) {\n aVar.mo25957a(this.f18645a.mo25936a(), this.f18666v);\n this.f18666v = 0;\n }\n }", "public void vergissAlles() {\n\t\tmerker.clear();\n\t}", "ArrayList<Float> pierwszaPredykcja()\n\t{\n\t\tif (Stale.scenariusz<100)\n\t\t{\n\t\t\treturn pierwszaPredykcjaNormal();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//dla scenariusza testowego cnea predykcji jest ustawiana na 0.30\n\t\t\tArrayList<Float> L1 = new ArrayList<>();\n\t\t\tL1.add(0.30f);\n\t\t\treturn L1;\n\t\t}\n\t}", "@Override\n\tpublic void frenar() {\n\t\tvelocidadActual = 0;\n\t}", "private void sterben()\n {\n lebendig = false;\n if(position != null) {\n feld.raeumen(position);\n position = null;\n feld = null;\n }\n }", "public void mo10714f() {\n if (!this.f10687i) {\n this.f10687i = true;\n this.f10685g.mo10714f();\n }\n }", "protected void calculerAire() {\r\n\t\taire = Math.PI * rayonV * rayonH;\r\n\t\t\r\n\t}", "@Override\n public int calculerSurface() {\n return (int)(Math.PI * carre(rayon));\n }", "public void mo3609a() {\n this.f18079a.m14050a();\n }", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "void mo21075f();", "private void straightenEffect(int barra) {\n float val = barra * 1.8f;\n Log.i(\"kike\", \"valor efecte: \" + val + \" barra: \" + barra);\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_STRAIGHTEN);\n effect.setParameter(\"angle\", val);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "public void mo4361Y() {\n this.f3169c = -1;\n }", "public void setFlete(double param){\n \n this.localFlete=param;\n \n\n }", "public void setFlores(int avenida, int calle, int cant);", "abstract float getKeliling();", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "void evoluer()\n {\n int taille = grille.length;\n int nbVivantes = 0;\n for(int i=-1; i<2; i++)\n {\n int xx = ((x+i)+taille)%taille; // si x+i=-1, xx=taille-1. si x+i=taille, xx=0\n for(int j=-1; j<2; j++)\n {\n if (i==0 && j==0) continue;\n int yy = ((y+j)+taille)%taille;\n if (grille[xx][yy].vivante) nbVivantes++;\n }\n }\n if (nbVivantes<=1 || nbVivantes>=4) {vientDeChanger = (vivante==true); vivante = false;}\n if (nbVivantes==3) {vientDeChanger = (vivante==false); vivante = true;}\n }", "private void ActualizaPosicionesFondos() {\n xFondo-=10; //Es el cursor de la posición\n xFondoBase-=10; //Aqui se puede implementar metodo de modificacion de velocidad de fondo.\n xFondoApoyo-=10;\n if (xFondo == -texturaFondoBase.getWidth()){\n xFondoBase = xFondoApoyo+texturaFondoApoyo.getWidth();\n cambiosFondo++;\n }\n if (xFondo == -(texturaFondoApoyo.getWidth()+texturaFondoBase.getWidth())) {\n xFondoApoyo = xFondoBase+texturaFondoBase.getWidth();\n cambiosFondo++;\n }\n }", "@Override\n public int altura() {\n return altura(this.raiz);\n }", "public void m1290a() {\r\n if (this.f760i != null) {\r\n if (this.f760i.f769a > 0.0d) {\r\n this.f766o = this.f760i.f769a;\r\n }\r\n if (this.f760i.f770b > 0.0d) {\r\n this.f767p = this.f760i.f770b;\r\n }\r\n if (this.f760i.f771c > 0.0d) {\r\n this.f752a = this.f760i.f771c;\r\n }\r\n this.f753b = this.f760i.f772d;\r\n this.f754c = this.f760i.f773e;\r\n this.f755d = this.f760i.f774f;\r\n if (this.f760i.f775g >= 0) {\r\n this.f756e = this.f760i.f775g;\r\n }\r\n if (this.f760i.f776h >= 0) {\r\n this.f757f = this.f760i.f776h;\r\n }\r\n if (this.f760i.f777i >= 0) {\r\n this.f758g = this.f760i.f777i;\r\n }\r\n }\r\n this.f759h = new double[(this.f757f + 1)];\r\n for (int i = 0; i <= this.f757f; i++) {\r\n this.f759h[i] = this.f752a / ((double) m1283a(2, i));\r\n }\r\n this.f761j = m1288a(new ac(this.f767p, this.f766o, true));\r\n this.f762k = this.f761j.m829g();\r\n this.f763l = new Point(this.f765n.m1391c() / 2, this.f765n.m1393d() / 2);\r\n this.f764m = new C0223a();\r\n this.f764m.f748a = -2.0037508E7f;\r\n this.f764m.f749b = 2.0037508E7f;\r\n this.f764m.f750c = 2.0037508E7f;\r\n this.f764m.f751d = -2.0037508E7f;\r\n }", "public void onderbreek(){\n \n }", "private void aretes_aR(){\n\t\tthis.cube[13] = this.cube[52]; \n\t\tthis.cube[52] = this.cube[19];\n\t\tthis.cube[19] = this.cube[1];\n\t\tthis.cube[1] = this.cube[28];\n\t\tthis.cube[28] = this.cube[13];\n\t}", "public void mo14071a(int i, float f) {\n View m = mo23948m();\n if (m != null) {\n float f2 = i == 1 ? f : i == 2 ? 1.0f : 0.0f;\n this.f15642X.setRotation(9.0f * f2);\n float f3 = (f2 * 0.205f) + 1.0f;\n this.f15641W.setScaleX(f3);\n this.f15641W.setScaleY(f3);\n float f4 = i == 0 ? 1.0f - f : 0.0f;\n this.f15638T.setRotation(-9.0f * f4);\n float f5 = (f4 * 0.205f) + 1.0f;\n this.f15637S.setScaleX(f5);\n this.f15637S.setScaleY(f5);\n if (this.f15656l0) {\n if (f == 0.0f && (i == 0 || i == 2)) {\n this.f15656l0 = false;\n } else {\n return;\n }\n }\n if (i != 1) {\n f = 1.0f - f;\n }\n float f6 = 1.0f - f;\n float f7 = (0.205f * f6) + 1.0f;\n this.f15639U.setScaleX(f7);\n this.f15639U.setScaleY(f7);\n float f8 = (float) ((int) (((float) f15633z0) * f));\n this.f15643Y.setTranslationY(f8);\n this.f15643Y.setAlpha(f6);\n this.f15639U.setTranslationY(f8);\n int measuredWidth = (m.getMeasuredWidth() / 2) - f15630A0;\n int i2 = f15632y0;\n int i3 = (int) (((float) ((measuredWidth - i2) - (i2 / 2))) * f);\n this.f15637S.setTranslationX((float) i3);\n this.f15641W.setTranslationX((float) (-i3));\n this.f15664t0.onViewPagerScrolled(f, f15633z0);\n }\n }", "public void angreifen(Lebewesen lebewesen) {\n\t\tdouble zahl = Math.random(); //generiert eine Zahl (double) zwischen 0 und 1\r\n\t\tif(zahl < 0.9d){ //leichtverletzen\r\n\t\t\tlebewesen.leichtVerletzen();\r\n\t\t\t//System.out.println(\"Monster: \"+ this.aktuellerZustand);\r\n\t\t}else if(zahl < 0.98d){ //schwer verletzen\r\n\t\t\tlebewesen.starkVerletzen();\r\n\t\t\t//System.out.println(\"Monster: \"+ this.aktuellerZustand);\r\n\t\t}else{ //direkt töten\r\n\t\t\tlebewesen.toetlichVerletzen();\r\n\t\t\t//System.out.println(\"Monster: \"+ this.aktuellerZustand);\r\n\t\t}\r\n\t}", "private void deplacerBall() {\n\t\tassert(f.getLevel() != null);\n\t\t\n\t\tLevel l = f.getLevel();\n\t\t\n\t\tif(l.getBall() == null ) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(l.getType() == Type.AUTOMATIQUE) {\n\t\t\tif( l.getBall().getPosY()<f.getHauteurFenetre()*1/5) {//defilement vers le haut\n\t\t\t\tf.defilerEcranY(false);\n\t\t\t}\n\t\t\tif( l.getBall().getPosY()>f.getHauteurFenetre()*4/5) {//defilement vers le bas\n\t\t\t\tf.defilerEcranY(true);\n\t\t\t}\n\t\t\tif( l.getBall().getPosX()<f.getLargeurFenetre()*1/5) {//defilement vers la gauche\n\t\t\t\tf.defilerEcranX(true);\n\t\t\t}\n\t\t\tif( l.getBall().getPosX()>f.getLargeurFenetre()*4/5) {//defilement vers la droite\n\t\t\t\tf.defilerEcranX(false);\n\t\t\t}\n\t\t}else if(l.getType() == Type.INVERSE){\n\t\t\tif( l.getBall().getPosY()>f.getHauteurFenetre()*3/5) {//defilement vers le haut\n\t\t\t\tf.defilerEcranY(true);\n\t\t\t}\n\t\t}else {\n\t\t\tif( l.getBall().getPosY()<f.getHauteurFenetre()*2/5) {//defilement vers le haut\n\t\t\t\tf.defilerEcranY(false);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(l.getType() == Type.AUTOMATIQUE) {//mode automatique -> deplacement automatique\n\t\t\tl.getBall().deplacer();\n\t\t}else {\n\t\t\tl.getBall().deplacer();\n\t\t\tl.getBall().gravityY(l.gravityY());//la balle tombe selon la gravite\n\t\t}\n\t}", "private void mo3747b() {\n this.f1427B.add(this.f1490s);\n this.f1427B.add(this.f1491t);\n this.f1427B.add(this.f1492u);\n this.f1427B.add(this.f1493v);\n this.f1427B.add(this.f1495x);\n this.f1427B.add(this.f1496y);\n this.f1427B.add(this.f1497z);\n this.f1427B.add(this.f1494w);\n }", "@Override\n\tpublic double mangeLegumes() {\n\t\treturn quantiteLegumes*this.getPoids();\n\t}", "private void coins_fR(){\n\t\tthis.cube[13] = this.cube[9]; \n\t\tthis.cube[9] = this.cube[15];\n\t\tthis.cube[15] = this.cube[17];\n\t\tthis.cube[17] = this.cube[11];\n\t\tthis.cube[11] = this.cube[13];\n\t}", "float getMagnitude();", "protected void ligneDroite() {\n\t\tboolean accelerer = true;\n\t\twhile (ev3.SUIVRE == seenColor) {\n\t\t\tev3.begSync();\n\t\t\tev3.avance();\n\t\t\tev3.endSync();\n\t\t\tif (ev3.getLigne() < 15 && accelerer) {\n\t\t\t\tev3.accelerer();\n\t\t\t\tev3.setLigne(ev3.getLigne() + 1);\n\t\t\t} else if (ev3.getLigne() == 30 && accelerer) {\n\t\t\t\taccelerer = false;\n\t\t\t} else if (ev3.getLigne() == 7) {\n\t\t\t\taccelerer = true;\n\t\t\t} else if (accelerer == false) {\n\t\t\t\tev3.decelerer();\n\t\t\t\tev3.setLigne(ev3.getLigne() - 1);\n\t\t\t}\n\t\t\tseenColor = find.whatColor(ev3.lireColor());\n\t\t}\n\t}", "public void rellenarTerreno() {\n Random rnd = new Random();\r\n int restante = V;\r\n int[][] aux = terreno;\r\n do {\r\n for (int i = 0; i < Filas; i++) {\r\n for (int j = 0; j < Columnas; j++) {\r\n if (restante > max) {\r\n int peso = rnd.nextInt(max);\r\n if (aux[i][j] + peso <= max) {\r\n aux[i][j] += peso;\r\n restante -= peso;\r\n }\r\n } else {\r\n if (aux[i][j] + restante <= max) {\r\n aux[i][j] += restante;\r\n restante = 0;\r\n }\r\n }\r\n }\r\n }\r\n } while (restante != 0);\r\n }", "private static void afisareSubsecventaMaxima() {\n afisareSir(citireSir().SecvMax());\n }", "public void mo21890a() {\n mo21891a(this.f24566d);\n }", "float calcularFinal(){\n return (calif1*0.3f)+(calif2*0.3f)+(calif3*0.4f);// debo agregar la f para que lo tome como float y no como double\r\n }", "private final void m718m() {\n boolean z;\n akl akl = this.f531p.f603f;\n if (this.f539x) {\n z = true;\n } else {\n z = akl != null && akl.f577a.mo1491f();\n }\n akp akp = this.f533r;\n if (z != akp.f617g) {\n this.f533r = new akp(akp.f611a, akp.f612b, akp.f613c, akp.f614d, akp.f615e, akp.f616f, z, akp.f618h, akp.f619i, akp.f620j, akp.f621k, akp.f622l, akp.f623m);\n }\n }", "public logicaEnemigos(){\n\t\t//le damos una velocidad inicial al enemigo\n\t\tsuVelocidad = 50;\n\t\tsuDireccionActual = 0.0;\n\t\tposX = 500 ;\n\t\tposY = 10;\n\t}", "public void acquistaLattina() throws LattineFiniteException {\n\t\tif(nLattine <= 0) {\n\t\t\tthrow new LattineFiniteException();\n\t\t}\n\t\t\n\t\tnGettoni++;\n\t\tnLattine--;\n\t}", "private void resetFlanker() {\n\n for (int i = 0; i < width; i++) {\n frontLinePatientCounters[i] = 0;\n flankersCount[i] = 0;\n flankerOffsets[i].clear();\n }\n leftFlankerIndices = MathUtils.getHexagonalIndicesRingAtOffset(0);\n rightFlankerIndices = MathUtils.getHexagonalIndicesRingAtOffset(0);\n }", "private void m76767e() {\n m76765c();\n this.f61649f -= this.f61648e;\n if (this.f61649f < 0) {\n this.f61649f = 0;\n }\n m76768f();\n }", "@Override\n\tpublic void onRed() {\n\t\taddSequential(new DriveStraightByDistance(PEG_STRAIGHT - ROBOT_LENGTH / 2), 3.5);\n\t\t//TODO: might need to change to a little less\n\t\taddSequential(new TurnDegrees(90), 2.5);\n\t\taddSequential(new DriveStraightByDistance(EXTRA_DIS), 4);\n\t\taddSequential(new OpenPlacer2());\n\t\taddSequential(new ArcadeDriveByValues(-0.5, -0.5), 1);// TODO change commad\n\t\taddSequential(new ClosePlacer());\n\t}", "public void peluangKelasterhadapFitur() {\n fakultas[0]=gaussFK[0]*gaussFK[1]*gaussFK[2]*gaussFK[3]*gaussFK[4]*gaussFK[5]*gaussFK[6]*gaussFK[7]*gaussFK[8]*gaussFK[9];\n fakultas[1]=gaussFILKOM[0]*gaussFILKOM[1]*gaussFILKOM[2]*gaussFILKOM[3]*gaussFILKOM[4]*gaussFILKOM[5]*gaussFILKOM[6]*gaussFILKOM[7]*gaussFILKOM[8]*gaussFILKOM[9];\n fakultas[2]=gaussFT[0]*gaussFT[1]*gaussFT[2]*gaussFT[3]*gaussFT[4]*gaussFT[5]*gaussFT[6]*gaussFT[7]*gaussFT[8]*gaussFT[9];\n fakultas[3]=gaussFMIPA[0]*gaussFMIPA[1]*gaussFMIPA[2]*gaussFMIPA[3]*gaussFMIPA[4]*gaussFMIPA[5]*gaussFMIPA[6]*gaussFMIPA[7]*gaussFMIPA[8]*gaussFMIPA[9];\n fakultas[4]=gaussFP[0]*gaussFP[1]*gaussFP[2]*gaussFP[3]*gaussFP[4]*gaussFP[5]*gaussFP[6]*gaussFP[7]*gaussFP[8]*gaussFP[9];\n fakultas[5]=gaussFPT[0]*gaussFPT[1]*gaussFPT[2]*gaussFPT[3]*gaussFPT[4]*gaussFPT[5]*gaussFPT[6]*gaussFPT[7]*gaussFPT[8]*gaussFPT[9];\n fakultas[6]=gaussFTP[0]*gaussFTP[1]*gaussFTP[2]*gaussFTP[3]*gaussFTP[4]*gaussFTP[5]*gaussFTP[6]*gaussFTP[7]*gaussFTP[8]*gaussFTP[9];\n fakultas[7]=gaussFPIK[0]*gaussFPIK[1]*gaussFPIK[2]*gaussFPIK[3]*gaussFPIK[4]*gaussFPIK[5]*gaussFPIK[6]*gaussFPIK[7]*gaussFPIK[8]*gaussFPIK[9];\n fakultas[8]=gaussNon[0]*gaussNon[1]*gaussNon[2]*gaussNon[3]*gaussNon[4]*gaussNon[5]*gaussNon[6]*gaussNon[7]*gaussNon[8]*gaussNon[9];\n }", "private void nourrireLePeuple() {\n\t\t\tint totalDepense = (int)((population * 1) + (populationColoniale * 0.8) + ((armee + armeeDeployee()) * nourritureParArmee));\r\n\t\t\tnourriture -= totalDepense;\r\n\t\t\tenFamine = (nourriture > 0) ? false : true;\r\n\t\t}", "public int getDegreesOfFreedom() {return nu;}", "public void mo7213b() {\n this.f18795a = null;\n this.f18796b = null;\n this.f18797c = null;\n }", "private static void drukaf()\n\t{\n\t\tint a;\n\t\tint oplossing;\n\t\tfor(a=1; a<10; a++)\n\t\t{\n\t\t\tint b;\n\t\t\tfor(b=1; b<10; b++)\n\t\t\t{\n\t\t\t\toplossing = a*b;\n\t\t\t\tSystem.out.println(a + \" x \" + b + \" = \" + oplossing);\n\t\t\t}\t\n\t\t}\n\t}", "@Override\n\tpublic void verkaufen() {\n\t\tif( (bestand - abgenommeneMenge) < 0)\n\t\t\tthis.setBestand(0);\n\t\telse\n\t\t\tthis.setBestand(this.getBestand() - abgenommeneMenge);\n//\t\tSystem.out.println(\"Bestand danach:\" + bestand);\n\t}", "public void leerAlimentos();", "public static Resultado PCF(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n \n //*Definicion de variables las variables\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n //Calcular la ocupacion del espectro para cada camino k\n for(int i=0;i<capacidad;i++){\n for(Nodo n=ksp[k].getInicio();n.getSiguiente().getSiguiente()!=null;n=n.getSiguiente()){\n //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\n if(G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0){\n OE[i]=0;\n break;\n }\n }\n }\n \n inicio=fin=cont=0;\n for(int i=0;i<capacidad;i++){\n if(OE[i]==1){\n inicio=i;\n for(int j=inicio;j<capacidad;j++){\n if(OE[j]==1){\n cont++;\n }\n else{\n cont=0;\n break;\n }\n //si se encontro un bloque valido, salimos de todos los bloques\n if(cont==demanda.getNroFS()){\n fin=j;\n fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada = 0;\n break;\n }\n }\n k++;\n }\n \n /*if(demandaColocada==0){\n return null; // Si no se encontro, en ningun camino un bloque contiguo de FSs, retorna null.\n }*/\n \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n int [] cortesSlots = new int [2];\n double corte = -1;\n double Fcmt = 9999999;\n double FcmtAux = -1;\n \n int caminoElegido = -1;\n\n //controla que exista un resultado\n boolean nulo = true;\n\n ArrayList<Integer> indiceL = new ArrayList<Integer>();\n \n //contar los cortes de cada candidato\n for (int i=0; i<kspUbicados.size(); i++){\n cortesSlots = Utilitarios.nroCuts(kspUbicados.get(i), G, capacidad);\n if (cortesSlots != null){\n \n corte = (double)cortesSlots[0];\n \n indiceL = Utilitarios.buscarIndices(kspUbicados.get(i), G, capacidad);\n \n double saltos = (double)Utilitarios.calcularSaltos(kspUbicados.get(i));\n \n double slotsDemanda = demanda.getNroFS();\n \n //contar los desalineamientos\n double desalineamiento = (double)Utilitarios.contarDesalineamiento(kspUbicados.get(i), G, capacidad, cortesSlots[1]);\n \n double capacidadLibre = (double)Utilitarios.contarCapacidadLibre(kspUbicados.get(i),G,capacidad);\n \n \n \n \n // double vecinos = (double)Utilitarios.contarVecinos(kspUbicados.get(i),G,capacidad);\n \n\n \n //FcmtAux = corte + (desalineamiento/(demanda.getNroFS()*vecinos)) + (saltos *(demanda.getNroFS()/capacidadLibre)); \n \n FcmtAux = ((saltos*slotsDemanda) + corte + desalineamiento)/capacidadLibre;\n \n if (FcmtAux<Fcmt){\n Fcmt = FcmtAux;\n caminoElegido = i;\n }\n \n nulo = false;\n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n \n }\n }\n \n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n //caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n if (nulo || caminoElegido==-1){\n return null;\n }\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }", "public void mo35052a() {\n this.f30707l = true;\n }", "private final void m5314a() {\n this.f6561e = getContext().getResources().getDimensionPixelOffset(R.dimen.channel_items_list_fade_width);\n this.f6563g = new Rect();\n }", "public void luchar(Luchador[] luchador) {\n\t\tfor (int i = 0 ; i < this.vencidos.length ; i++) {\n\t\t\tif (this.id != i || this.vencidos[i] == 0) {\n\t\t\t\t// si el peso y la altura es mayor le gano\n\t\t\t\tif (this.peso >= luchador[i].peso && this.altura >= luchador[i].altura) {\n\t\t\t\t\tthis.vencidos[i] = 1;\n\t\t\t\t\tluchador[i].vencidos[id] = -1;\n\t\t\t\t\t//Si le gano recorro todo el array del derrotado para saber a quienes le gano y darlos por ganados\n\t\t\t\t\tfor (int j = 0 ; j < this.vencidos.length ; j++) {\n\t\t\t\t\t\tif (luchador[i].vencidos[j] == 1) {\n\t\t\t\t\t\t\tthis.vencidos[j] = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tthis.vencidos[i] = -1;\n\t\t\t\t\tluchador[i].vencidos[id] = 1;\n\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\t\n\t\t\n\t}", "public void draw() {\n background(0); // Color de Fondo - Negro\n // Se mencionan cada una de las funciones a utilizar en la class.\n a.movbolitas1(); // a.funcion es para las funciones principales.\n a.bolita2();\n a.movbolitas();\n a.bolita1();\n a.triangulo();\n a.triangulo1();\n c.movbolitas(); // c.funcion y m.funci\\u00f3n es para las mismas\n // funciones anteriores que se repetir\\u00e1n\n c.bolita1();\n c.movbolitas();\n c.bolita2();\n m.movbolitas();\n m.bolita1();\n m.movbolitas1();\n m.bolita2();\n a.circulos();\n}", "public void borra() {\n dib.borra();\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta(); \n }", "public final void mo3704f() {\n this.f1880a.f1299i = null;\n this.f1880a.f1302l = 0;\n super.mo3704f();\n }", "public void accionFinRonda() {\n\t\t//Si ha ganado alguien pero aun no se ha vencido al mejor de 3\n\t\tif(hayGanador()==0 && finRonda) {\n\t\t\t//Se reinicia el tiempo\n\t\t\thandler.getGame().tiempoRestante=99;\n\t\t\t\n\t\t\tif(fighter2==0) {\n\t\t\t\tworld=new WorldBrazil(handler,fighter1,fighter2,mode);\n\t\t\t}\n\t\t\telse if(fighter2==1) {\n\t\t\t\tworld=new WorldChina(handler,fighter1,fighter2,mode);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tworld=new WorldJapan(handler,fighter1,fighter2,mode);\n\t\t\t}\n\t\t\tfinRonda=false;\n\t\t\t\n\t\t\t//Va a comenzar una nueva ronda\n\t\t\tcontadorRonda++;\n\t\t\tmsjRonda=true;\n\t\t\tif(contadorRonda==2) {\n\t\t\t\thandler.getGame().setSoundEffect(22,true);\n\t\t\t}\n\t\t\telse if(contadorRonda==3) {\n\t\t\t\thandler.getGame().setSoundEffect(23,true);\n\t\t\t}\n\t\t}\n\t\t//Si ha ganado alguien y ya hay vencedor al mejor de 3 se muestran las caras reventadas\n\t\telse if(hayGanador()!=0 && finRonda){\n\t\t\tfighting=false;\n\t\t\thandler.getGame().setFighting(false);\n\t\t\tfinRonda=false;\n\t\t\thandler.getGame().setFade(true);\n\t\t\thandler.getGame().setCurrentSong(1);\n\t\t\t//Si ha sido la primera pelea\n\t\t\tif(handler.getGame().getNumPelea()==0) {\n\t\t\t\t//Si gana el player1 se sigue con el modo historia\n\t\t\t\tif(hayGanador()==1) {\n\t\t\t\t\t//Contar la pelea en la que se esta\n\t\t\t\t\thandler.getGame().setNumPelea(handler.getGame().getNumPelea()+1);\n\t\t\t\t\tfighterToSelectFighter=fighter1;\n\t\t\t\t}\n\t\t\t\t//Si gana la CPU se reinicia el modo historia\n\t\t\t\telse if(hayGanador()==2) {\n\t\t\t\t\thandler.getGame().setNumPelea(0);\n\t\t\t\t\t//fighterToSelectFighter=3;\n\t\t\t\t\tmostrarScoreLose=true;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Ha terminado el modo historia asi que se vuelve a empezar\n\t\t\telse {\n\t\t\t\thandler.getGame().setNumPelea(0);\n\t\t\t\t\n\t\t\t\t//Si ganas la segunda pelea del modo historia se muestra el final\n\t\t\t\tif(hayGanador()==1) {\n\t\t\t\t\tmostrarScoreWin=true;\n\t\t\t\t}\n\t\t\t\t//Si pierdes la segunda pelea del modo historia se va directamente a ScoreState\n\t\t\t\telse if(hayGanador()==2) {\n\t\t\t\t\tmostrarScoreLose=true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t}" ]
[ "0.64335513", "0.6393337", "0.61501336", "0.612534", "0.61240125", "0.61114097", "0.6110236", "0.60423225", "0.6027882", "0.60099655", "0.59381413", "0.5929637", "0.5920289", "0.59066397", "0.5904452", "0.589259", "0.58796483", "0.5879078", "0.58709806", "0.58676916", "0.5866749", "0.58226407", "0.5810809", "0.5771703", "0.575779", "0.575582", "0.57302725", "0.5726374", "0.5724954", "0.5715716", "0.5713441", "0.5677108", "0.5674821", "0.5667161", "0.56449383", "0.5630227", "0.562494", "0.56128496", "0.5595886", "0.5585085", "0.5581008", "0.5580377", "0.5577708", "0.55775094", "0.55760545", "0.55638623", "0.5561569", "0.55613774", "0.5559579", "0.5556729", "0.5554036", "0.5531457", "0.5524371", "0.55231065", "0.5518979", "0.5504957", "0.55002224", "0.54967844", "0.54850847", "0.54831296", "0.54706556", "0.5467539", "0.5460672", "0.5458697", "0.5453968", "0.5452672", "0.54523873", "0.5449992", "0.5449969", "0.54490066", "0.5438186", "0.5430221", "0.542226", "0.542047", "0.5419949", "0.5416953", "0.5414744", "0.54107565", "0.54080623", "0.54072034", "0.5405999", "0.54043597", "0.54025316", "0.5382796", "0.53824705", "0.538084", "0.53777486", "0.53743136", "0.5373324", "0.5371972", "0.536888", "0.5365648", "0.5341892", "0.53406155", "0.53368676", "0.53314334", "0.5327286", "0.5326888", "0.5326072", "0.5324901" ]
0.5644715
35
Constructor that will be automatically called as soon as the object of the class is created
public RemoveProductCart(WebDriver driver) { this.driver=driver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Constructor(){\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "private Instantiation(){}", "public void init() {\n \n }", "@Override public void init()\n\t\t{\n\t\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private SingleObject()\r\n {\r\n }", "public void init(){}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "public ObjectFactory() {\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "public void init(){\n \n }", "public ObjectFactory() {\r\n\t}", "public Hello()\n {\n // initialise instance variables\n \n }", "defaultConstructor(){}", "public void init() {\r\n\t\t// to override\r\n\t}", "public void init() { }", "public void init() { }", "public void init() {}", "public void init() {}", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "protected abstract void construct();", "public Chick() {\n\t}", "public Activator() {\r\n\t}", "@Override\n void init() {\n }", "public void init() {\n\t\t}", "@Override\n public void init() {\n }", "public CyanSus() {\n\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "public Instance() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "private SingleObject(){}", "private void init() {\n }", "public Factory() {\n\t\tsuper();\n\t}", "public Aanbieder() {\r\n\t\t}", "public Lanceur() {\n\t}", "public void init()\n {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public Supercar() {\r\n\t\t\r\n\t}", "public void init() {\n\n }", "public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "public void init() {\n\t\t \r\n\t\t }", "@Override\n protected void init() {\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }" ]
[ "0.80309963", "0.79807293", "0.78478545", "0.73197395", "0.7279825", "0.72712153", "0.72614425", "0.72479063", "0.72102004", "0.7189117", "0.7175273", "0.7163286", "0.71590513", "0.7156519", "0.7155913", "0.710279", "0.7095514", "0.70946497", "0.70946497", "0.7086645", "0.7086645", "0.7077791", "0.7074864", "0.70745164", "0.70745164", "0.70745164", "0.70644915", "0.7054961", "0.7029147", "0.702421", "0.70183367", "0.70073396", "0.70058566", "0.6988711", "0.6988711", "0.6988711", "0.6988711", "0.69870013", "0.69868606", "0.69843554", "0.69843554", "0.69843554", "0.69843554", "0.6981531", "0.69683397", "0.69601566", "0.69542235", "0.69512063", "0.6947135", "0.69459826", "0.6936854", "0.69364184", "0.69364184", "0.6924103", "0.6924103", "0.69161725", "0.6912797", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272", "0.6910272" ]
0.0
-1
Click on Remove Btn to select a product
public void RemoveproductCartSaucedemo() { driver.findElement(RemoveProduct).click(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Remove_button() {\n\t\tProduct product = (Product) lsvProduct.getSelectionModel().getSelectedItem();\n\t\tif (product!=null) {\n\t\t\tint ind = lsvProduct.getSelectionModel().getSelectedIndex();\n\t\t\tcart.removeProduct(product);\n\t\t\tcart.removePrice(ind);\n\t\t\tcart.removeUnit(ind);\n\t\t}\n\t\tthis.defaultSetup();\n\t}", "public void clickRemoveButton_SPOItem(int noitemremove) {\n for (int i = 1; i <= noitemremove; i++) {\n WebElement clickremove = getDriver().findElement(By.xpath(\"//*[@id='productGroup_2']/li[\" + i + \"]//a[text()='Remove']\"));\n String nameofproduct = getDriver().findElement(By.xpath(\"//*[@id='productGroup_2']/li[\" + i + \"]//*[@class='product_name']/span\")).getText();\n clickremove.click();\n System.out.println(\"=== Name of the product Removed: \" + nameofproduct);\n listOfDeletedItemNameShoppingCart.add(nameofproduct);\n }\n }", "private JButton createButtonRemoveProduct() {\n\n this.buttonRemoveProduct = new JButton(\"Remove product\");\n this.buttonRemoveProduct.setEnabled(false);\n\n this.buttonRemoveProduct.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n\n try {\n int index = jListProduct.getSelectedIndex();\n boolean removedProduct = removeProduct(index);\n if (removedProduct) {\n buttonRemoveProduct.setEnabled(false);\n JOptionPane.showMessageDialog(rootPane,\n \"Product removed sucessfully.!\",\n \"Product removal\",\n JOptionPane.INFORMATION_MESSAGE);\n }\n\n } catch (IllegalArgumentException ex) {\n\n JOptionPane.showMessageDialog(DemonstrationApplication.this,\n ex.getMessage(),\n \"Erro a remover produto\",\n JOptionPane.WARNING_MESSAGE);\n }\n }\n });\n\n return this.buttonRemoveProduct;\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t\t\t\t\t\troot.getChildren().remove(product);\r\n\t\t\t\t\t\t\t}", "@FXML\n\tprivate void deleteButtonAction(ActionEvent clickEvent) {\n\t\t\n\t\tPart deletePartFromProduct = partListProductTable.getSelectionModel().getSelectedItem();\n\t\t\n\t\tif (deletePartFromProduct != null) {\n\t\t\t\n\t\t\tAlert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Pressing OK will remove the part from the product.\\n\\n\" + \"Are you sure you want to remove the part?\");\n\t\t\n\t\t\tOptional<ButtonType> result = alert.showAndWait();\n\t\t\n\t\t\tif (result.isPresent() && result.get() == ButtonType.OK) {\n\t\t\t\n\t\t\t\tdummyList.remove(deletePartFromProduct);\n\n\t\t\t}\n\t\t}\n\t}", "private void btnRemoveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRemoveActionPerformed\n if(tblOrders.getSelectedRow() == -1)\n {\n lblMessage.setText(\"Select Product First\");\n }\n else\n {\n DefaultTableModel model = (DefaultTableModel)tblOrders.getModel();\n int productId = \n Integer.parseInt(String.valueOf(model.getValueAt(tblOrders.getSelectedRow(), 0)));\n \n loggedInCustomer.findLatestOrder().removeOrderLine(productId);\n \n model.removeRow(tblOrders.getSelectedRow());\n \n lblMessage.setText(\"Product Has Been Removed\");\n lblTotalCost.setText(\"£\" + String.format(\"%.02f\",loggedInCustomer.findLatestOrder().getOrderTotal()));\n }\n }", "public void onClick(View v) {\n removeTocart();\n ProductListFragment.updateQuantity(selectedData.getProdId(), selectedData.getCount());\n }", "public void selectProduct() {\n\t\tActions obj = new Actions(driver);\n\t\tobj.moveToElement(driver.findElements(By.xpath(\".//*[@id='center_column']/ul/li\")).get(0)).build().perform();\n\t\tdriver.findElement(By.xpath(\".//*[@id='center_column']/ul/li[1]/div/div[2]/div[2]/a[1]/span\")).click();\n\t}", "protected void removeButtonActionPerformed() {\n\t\tFoodTruckManagementSystem ftms = FoodTruckManagementSystem.getInstance();\n\t\t// Initialize controller\n\t\tMenuController mc = new MenuControllerAdapter();\n\n\t\t// Get selected supply type\n\t\tSupply supply = null;\n\t\ttry {\n\t\t\tsupply = item.getSupply(supplyList.getSelectedIndex());\n\t\t} catch (NullPointerException | IndexOutOfBoundsException e) {\n\t\t}\n\t\t\n\t\t// Remove from item\n\t\ttry {\n\t\t\tmc.removeIngredient(item, supply);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\t\n\t\trefreshData();\n\t\t\n\t}", "public void deleteProduct()\n {\n ObservableList<Product> productRowSelected;\n productRowSelected = productTableView.getSelectionModel().getSelectedItems();\n int index = productTableView.getSelectionModel().getFocusedIndex();\n Product product = productTableView.getItems().get(index);\n if(productRowSelected.isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please select the Product you want to delete.\");\n alert.show();\n } else if (!product.getAllAssociatedParts().isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"This Product still has a Part associated with it. \\n\" +\n \"Please modify the Product and remove the Part.\");\n alert.show();\n } else {\n alert.setAlertType(Alert.AlertType.CONFIRMATION);\n alert.setContentText(\"Are you sure you want to delete this Product?\");\n alert.showAndWait();\n ButtonType result = alert.getResult();\n if(result == ButtonType.OK)\n {\n Inventory.deleteProduct(product);\n }\n }\n }", "public void removeExtras() {\n Object selected = extraSelected.getSelectionModel().getSelectedItem();\n sandwhich.remove(selected);\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraSelected.getItems().remove(selected);\n extraOptions.getItems().add(selected);\n }", "public void removeItem() {\r\n\t\tlog.info(\"Remove item\");\r\n\t\tsu.waitElementClickableAndClick(LocatorType.Xpath, CartSplitViewField.Remove.getName());\r\n\t}", "public void clickRemoveButton_CNCItem(int noitemremove) {\n for (int i = 1; i <= noitemremove; i++) {\n WebElement clickremove = getDriver().findElement(By.xpath(\"//*[@id='productGroup_1']/li[\" + i + \"]//a[text()='Remove']\"));\n String nameofproduct = getDriver().findElement(By.xpath(\"//*[@id='productGroup_1']/li[\" + i + \"]//*[@class='product_name']/span\")).getText();\n clickremove.click();\n System.out.println(\"=== Name of the product Removed: \" + nameofproduct);\n listOfDeletedItemNameShoppingCart.add(nameofproduct);\n }\n }", "void removeProduct(Product product);", "public void clickDeleteProductandApply()throws Exception{\r\n SearchPageFactory pageFactory = new SearchPageFactory(driver);\r\n clickElement(pageFactory.wishListItemDeleteButton,Constant.explicitTime);\r\n clickElement(pageFactory.wishListItemDeleteOkButton,Constant.explicitTime);\r\n }", "@FXML\n\tpublic void deleteProduct(ActionEvent event) {\n\t\tif (!txtDeleteProductName.getText().equals(\"\")) {\n\t\t\ttry {\n\n\t\t\t\tList<Product> productToDelete = restaurant.findSameProduct(txtDeleteProductName.getText());\n\t\t\t\tboolean delete = restaurant.deleteProduct(txtDeleteProductName.getText());\n\t\t\t\tif (delete == true) {\n\t\t\t\t\tfor (int i = 0; i < productOptions.size(); i++) {\n\t\t\t\t\t\tfor (int j = 0; j < productToDelete.size(); j++) {\n\t\t\t\t\t\t\tif (productOptions.get(i) != null && productOptions.get(i)\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(productToDelete.get(j).getReferenceId())) {\n\t\t\t\t\t\t\t\tproductOptions.remove(productToDelete.get(j).getReferenceId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttxtDeleteProductName.setText(\"\");\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los productos\");\n\t\t\t\tdialog.setTitle(\"Error guardar datos\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Los campos deben ser llenados\");\n\t\t\tdialog.setTitle(\"Error, Campo sin datos\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "public void removeBtn(){\r\n\t\t\r\n\t\tWorkflowEntry entryToBeRemoved = (WorkflowEntry) tableView.getSelectionModel().getSelectedItem();\r\n\t\t\r\n\t\tdata.remove(entryToBeRemoved);\r\n\t\t\r\n\t}", "public void userClicksRemoveItemsFromCartButton() {\n UtilityHelper.waitUntilClickable(UnavailableItems_Modal_Button);\n UtilityHelper.click(UnavailableItems_Modal_Button);\n UtilityHelper.waitUntilElementNotVisible(UnavailableItems_Modal);\n }", "@FXML\n private void btnSlett() {\n int valgtIndex = tblData.getSelectionModel().getSelectedIndex();\n if (valgtIndex >=0) {\n System.out.println(tblData.getSelectionModel().getSelectedIndex());\n dRegister.removeInded(valgtIndex);\n } else {\n dialogs.showNoSelectDialog(\"Vennligst velg en komponent i tabellen\");\n }\n }", "public void buttonDelete(ActionEvent event) {\n\t\tObservableList<Player> allProduct, SinglePlayer;\n\t\tallProduct = tableview.getItems();\n\t\tSinglePlayer = tableview.getSelectionModel().getSelectedItems();\n\t\tSinglePlayer.forEach(allProduct::remove);\n\t}", "public void selectAProduct() {\n specificProduct.click();\n }", "public void actionPerformed(ActionEvent e) {\n JButton button = (JButton) e.getSource();\n if(button.getText().equals(removeButton.getText()))\n {\n if(textItemName.getText().length() == 0)\n {\n Item item = dep.getListProducts().getItemId(Integer.parseInt(textItemId.getText()));\n if(item == null)\n {\n noRemove.setVisible(true);\n noCorespondence.setVisible(false);\n }\n else\n {\n dep.getListProducts().remove(item);\n Notification notification = new Notification(depId,Integer.parseInt(textItemId.getText()),NotificationType.REMOVE);\n dep.NotifyRemove(notification);\n noRemove.setVisible(false);\n tableModel.fireTableDataChanged();\n dispose();\n }\n }\n if(textItemId.getText().length() == 0)\n {\n Item item = dep.getListProducts().getItemName(textItemName.getText());\n if(item == null)\n {\n noRemove.setVisible(true);\n noCorespondence.setVisible(false);\n }\n else\n {\n dep.getListProducts().remove(item);\n Notification notification = new Notification(depId,item.getId(),NotificationType.REMOVE);\n dep.NotifyRemove(notification);\n noRemove.setVisible(false);\n tableModel.fireTableDataChanged();\n dispose();\n }\n }\n if(textItemId.getText().length() != 0 && textItemId.getText().length() != 0)\n {\n Item item = dep.getListProducts().getItemId(Integer.parseInt(textItemId.getText()));\n if(item == null)\n {\n noRemove.setVisible(true);\n noCorespondence.setVisible(false);\n }\n else\n {\n if(item.getName().equals(textItemName.getText()))\n {\n dep.getListProducts().remove(item);\n Notification notification = new Notification(depId,Integer.parseInt(textItemId.getText()),NotificationType.MODIFY);\n dep.NotifyRemove(notification);\n noCorespondence.setVisible(false);\n tableModel.fireTableDataChanged();\n dispose();\n }\n else\n {\n noCorespondence.setVisible(true);\n }\n }\n }\n\n }\n }", "public void buttonRemoveItem(ActionEvent actionEvent) {\n }", "@FXML void onActionModifyProductRemovePart(ActionEvent event) {\n Part selectedPart = associatedPartTableView.getSelectionModel().getSelectedItem();\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Do you want to delete this part?\");\n Optional<ButtonType> result = alert.showAndWait();\n if(result.isPresent() && result.get() == ButtonType.OK) {\n tmpAssociatedParts.remove(selectedPart);\n }\n }", "private void removeFinalBtn()\n {\n if (finalListModel.size() <= 0)\n JOptionPane.showMessageDialog(null, \"Cannot remove more buttons\");\n else\n if(finalListModel.size() <= order.getSelectedIndex())\n JOptionPane.showMessageDialog(null, \"Sorry, try to pick the previous buttons first \");\n else\n finalListModel.remove(order.getSelectedIndex());\n }", "@Override\r\n public void onClick(View view) {\n productsRef.child(selectedProduct.getProductId()).removeValue().addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n alertDialog.dismiss();\r\n }\r\n });\r\n }", "@Override\r\n\t\t\t\t\tprotected void updateItem(Object arg0, boolean arg1) {\n\t\t\t\t\t\tsuper.updateItem(arg0, arg1);\r\n\t\t\t\t\t\tif (arg1) {\r\n\t\t\t\t\t\t\tsetGraphic(null);\r\n\t\t\t\t\t\t\tsetText(null);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tbtn.setOnAction(new EventHandler<ActionEvent>() {\r\n\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void handle(ActionEvent arg0) {\r\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getItems().get(getIndex());\r\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getSelectionModel().getSelectedItem();\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\t\t\t\t\t\tif(ConnectionManager.queryInsert(conn, \"DELETE FROM dbo.product WHERE id=\"+data.getId())>0) {\r\n\t\t\t\t\t\t\t\t\t\ttxt_cost.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_date.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_name.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_price.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_qty.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_search.clear();\r\n\t\t\t\t\t\t\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\tsetGraphic(btn);\r\n\t\t\t\t\t\t\tsetText(null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "private void removeProduct() {\n\t\tif (!CartController.getInstance().isCartEmpty()) {\n\t\t\tSystem.out.println(\"Enter Product Id - \");\n\t\t\tint productId = getValidInteger(\"Enter Product Id - \");\n\t\t\twhile (!CartController.getInstance().isProductPresentInCart(\n\t\t\t\t\tproductId)) {\n\t\t\t\tSystem.out.println(\"Enter Valid Product Id - \");\n\t\t\t\tproductId = getValidInteger(\"Enter Product Id - \");\n\t\t\t}\n\t\t\tCartController.getInstance().removeProductFromCart(productId);\n\t\t} else {\n\t\t\tDisplayOutput.getInstance().displayOutput(\n\t\t\t\t\t\"\\n-----Cart Is Empty----\\n\");\n\t\t}\n\t}", "@FXML\n private void setRemoveButton() {\n Coach selectedRow = coachesTable.getSelectionModel().getSelectedItem();\n try {\n Connection conn = DatabaseHandler.getInstance().getConnection();\n try (Statement st = conn.createStatement()) {\n st.execute(\"delete from szkolka.uzytkownik where id_u=\" + selectedRow.getId() + \";\");\n coachesTable.getItems().remove(coachesTable.getSelectionModel().getSelectedItem());\n removeButton.setDisable(true);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@FXML\n\tprivate void addButtonAction(ActionEvent clickEvent) {\n\t\t\n\t\tPart addPartToProduct = partSearchProductTable.getSelectionModel().getSelectedItem();\n\t\t\n\t\tif (addPartToProduct != null) {\n\t\t\t\n\t\t\tif(dummyList.contains(addPartToProduct) == false) {\n\t\t\t\t\n\t\t\t\tdummyList.add(addPartToProduct);\n\t\t\t}\n\t\t}\n\t}", "public void onClick(View v) {\n llAdd_remove.setVisibility(View.VISIBLE);\n btnAdd.setVisibility(View.GONE);\n addTocart();\n ProductListFragment.updateQuantity(selectedData.getProdId(), selectedData.getCount());\n }", "public SimpleProductWithSpecialPriceDetailPage removeProductGalleryFromSimpleProducttWithSpecialPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProductWithSpecialPriceDetailPage();\n }", "public void clickOnAllRemoveBtns3() {\n int counter=0;\n try {\n for (WebElementFacade product : list){\n if (product.containsElements(By.cssSelector(\".remove\"))){\n System.out.println(counter);\n removeBtn.click();\n counter++;\n System.out.println(counter);\n Actions action = new Actions(getDriver());\n WebElement element = getDriver().findElement(By.cssSelector(\".remove\"));\n action.moveToElement(element).perform();\n // removeBtn.click();\n //cartBtn.click();\n }\n }\n }catch (StaleElementReferenceException e){\n e.printStackTrace();\n }\n }", "@Override\n public void onClick(View v) {\n for (ObjectStock s : product.getStocks()) {\n stockDataSource.deleteStock(s);\n }\n\n productDataSource.deleteProduct(product);\n popupWindowIsOn = false;\n popupWindow.dismiss();\n Toast toast = Toast.makeText(getBaseContext(),\n R.string.product_deleted, Toast.LENGTH_LONG);\n\n toast.show();\n\n finish();\n Intent i = new Intent(getBaseContext(), MyProducts.class);\n startActivity(i);\n }", "private void btn_clearitemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_clearitemActionPerformed\n //Code to remove only item detailsdsfsdf\n txt_iniId.setText(\"\");\n cbo_iniName.setSelectedItem(0);\n txt_inQty.setText(\"\");\n }", "public SimpleProduct3WithSpecialPriceDetailPage removeProductGalleryFromSimpleProduct3tWithSpecialPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProduct3WithSpecialPriceDetailPage();\n }", "public void ClearAdd(){\n \n PID.setText(\"\");\n MN.setText(\"\");\n PN.setText(\"\");\n price.setText(\"\");\n category.setSelectedIndex(0);\n buttonGroup1.clearSelection();\n }", "public SimpleProduct4WithOriginalPriceDetailPage removeProductGalleryFromSimpleProduct4tWithOriginalPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProduct4WithOriginalPriceDetailPage();\n }", "@Override\n public void onClick(View v)\n {\n CharSequence options[] = new CharSequence[] //this will popup with options when any item is clicked\n {\n \"Edit\",\n \"Remove\"\n };\n AlertDialog.Builder builder = new AlertDialog.Builder(CartListActivity.this);\n builder.setTitle(\"Cart Options:\");\n\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which)\n {\n if(which == 0)\n {\n Intent intent = new Intent(CartListActivity.this, ProductDetailActivity.class);\n intent.putExtra(\"pCode\", model.getProductCode());\n startActivity(intent);\n }\n if(which == 1)\n {\n cartListRef.child(\"User List\").child(\"Products\")\n .child(model.getProductCode())\n .removeValue()\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task)\n {\n if (task.isSuccessful())\n {\n Toast.makeText(CartListActivity.this, \"Item Removed Successfully.\", Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(CartListActivity.this, NavMainActivity.class);\n startActivity(intent);\n }\n\n }\n });\n }\n }\n });\n builder.show();\n }", "@Override\n public void onClick(ClickEvent event) {\n onRemoveAction();\n }", "public UserWhishlistPage clickRemoveButton(){\r\n\t\tclickByXpath(\"//span[@class='btn btn-sm btn-block btn-danger removewish remove_btn']\");\r\n\t\t//driver.switchTo().alert().accept();\t\t\r\n\t\treturn this;\r\n\t}", "public ConfigProductWithSpecialPriceDetailPage removeProductGalleryFromConfigProductWithSpecialPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new ConfigProductWithSpecialPriceDetailPage();\n }", "void removeProduct(int position) throws ProductNotFoundException;", "public SimpleProduct1WithOriginalPriceDetailPage removeProductGalleryFromSimpleProduct1tWithOriginalPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProduct1WithOriginalPriceDetailPage();\n }", "public void removeTopProductFromCart() {\n\t\tWebElement result=null;\n\t\tString xpath=buildXPathToRemove(1);\n\t\tresult = selenium.findElement(By.xpath(xpath));\n\t\tresult.click();\n\t}", "public ConfigProductWithOriginalPriceDetailPage removeProductGalleryFromConfigProductWithOriginalPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new ConfigProductWithOriginalPriceDetailPage();\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\t//sample product buttons\n\t\t\t\t\t//should be refactored\n\t\t\t\t\tproductBtnList.clear();\n\t\t\t\t\tproductPanel.removeAll();\n\t\t\t\t\tproductPanel.validate();\n\t\t\t\t\tJButton productButton1 = new ProductButton(\"productButton1\");\n\t\t\t\t\tproductButton1.addActionListener(new ActionListener() {\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\tpidField.setText(((ProductButton) productButton1).getPid());\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tproductBtnList.add(productButton1);\n\t\t\t\t\tproductPanel.add(productButton1);\n\t\t\t\t\t\n\t\t\t\t\tJButton productButton2 = new ProductButton(\"productButton2\");\n\t\t\t\t\tproductButton2.addActionListener(new ActionListener() {\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\tpidField.setText(((ProductButton) productButton2).getPid());\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tproductBtnList.add(productButton2);\n\t\t\t\t\tproductPanel.add(productButton2);\n\t\t\t\t\t\n\t\t\t\t\tJButton productButton3 = new ProductButton(\"productButton3\");\n\t\t\t\t\tproductButton3.addActionListener(new ActionListener() {\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\tpidField.setText(((ProductButton) productButton3).getPid());\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tproductBtnList.add(productButton3);\n\t\t\t\t\tproductPanel.add(productButton3);\n\t\t\t\t\t\n\t\t\t\t\tproductList = queryHandler.getSampleProducts(sample);\n\t\t\t\t\t\n\t\t\t\t\tfor (Product product : productList) {\n\t\t\t\t\t\tJButton prodButton = productBtnList.remove(0);\n\t\t\t\t\t\t\n\t\t\t\t\t\tprodButton.setText(product.getName());\n\t\t\t\t\t\t((ProductButton) prodButton).setPid(product.getPid());\n\t\t\t\t\t\t((ProductButton) prodButton).setImgurl(product.getImgurl());\n\t\t\t\t\t\t((ProductButton) prodButton).setImage();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Error Retrieving Sample Products\");\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}", "@Override\r\n\t\t\t\t\t\t\t\tpublic void handle(ActionEvent arg0) {\n\r\n\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getItems().get(getIndex());\r\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getSelectionModel().getSelectedItem();\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\t\t\t\t\t\tif(ConnectionManager.queryInsert(conn, \"DELETE FROM dbo.product WHERE id=\"+data.getId())>0) {\r\n\t\t\t\t\t\t\t\t\t\ttxt_cost.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_date.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_name.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_price.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_qty.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_search.clear();\r\n\t\t\t\t\t\t\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.out.println(\"btnDelete\");\n\t\t\t\tint i = table.getSelectedRow();\n\t\t\t\tif (i >= 0) {\n\t\t\t\t\tSystem.out.println(\"row-Delete\" + i);\n\t\t\t\t\tSystem.out.println(\"row-Delete\" + textSuppD.getText());\n\t\t\t\t\tint suppID = Integer.parseInt(textSuppD.getText().trim());\n\n\t\t\t\t\tDatabase db = new Database();\n\t\t\t\t\tSuppliersDAO suppDAO = new SuppliersDAO(db);\n\t\t\t\t\tSuppliersModel suppModel = new SuppliersModel();\n\t\t\t\t\tsuppModel.setSuppliers_id(suppID);\n\t\t\t\t\tsuppDAO.Delete(suppModel);\n\t\t\t\t\tdb.commit();\n\t\t\t\t\tdb.close();\n\n\t\t\t\t\tmodel.removeRow(i);\n\t\t\t\t} else {\n\t\t\t\t}\n\t\t\t}", "@Override\n public void onClick(View view) {\n //Get the current adapter position\n int adapterPosition = getAdapterPosition();\n if (adapterPosition > RecyclerView.NO_POSITION) {\n //When the item position is valid\n\n //Take action based on the id of the View being clicked\n if (view.getId() == R.id.imgbtn_item_product_config_attr_remove) {\n //For the Remove Action ImageButton\n\n //Delete the record at the position clicked\n deleteRecord(adapterPosition);\n }\n }\n }", "@FXML\n\tvoid RemoveVisitor_Button_Clicked(ActionEvent event) {\n\t\tint index = listViewVisitors.getSelectionModel().getSelectedIndex();\n\t\tif (index == -1 || index == 0) {\n\t\t\tPopUp.showInformation(\"Visitor remove\", \"Visitor remove\", \"Please select one of the additional visitor\");\n\t\t\treturn;\n\t\t}\n\t\tif (listViewVisitors.getItems().size() == 2) {\n\t\t\tPlaceOrder_Button.setDisable(true);\n\t\t\tRemoveVisitor_Button.setDisable(true);\n\t\t}\n\t\tstringList.remove(listViewVisitors.getSelectionModel().getSelectedItem());\n\t\tvisitorsIDArray.remove(index);\n\t\tvisitorsCounter--;\n\t}", "public void deleteSelection() {\n deleteFurniture(Home.getFurnitureSubList(this.home.getSelectedItems())); \n }", "@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tInputDialog id1=new InputDialog(sShell,\"删除商品\",\"输入商品编号\",\"\",null);\r\n\t\t\t\tif(id1.open()==0){\r\n\t\t\t\t\tinput=id1.getValue();\r\n\t\t\t\t\tif(input.equals(\"\")) return;\r\n\t\t\t\t}\r\n\t\t\t\telse return;\r\n\t\t\t\t\r\n\t\t\t\tCommonADO ado=CommonADO.getCommonADO();\r\n\t\t\t\tString sql=\"delete from Goods where GoodsNo='\"+input+\"'\";\r\n\t\t\t\tado.executeUpdate(sql);\r\n\t\t\t\t//createCompositeGoodsShow();\r\n\t\t\t\tcompositeGoodsShow.dispose();\t\t\t\t\r\n\t\t\t\tcreateCompositeGoodsShow();\r\n\t\t\t\t\r\n\t\t\t\tcompositeGoodsMange.layout(true);\r\n\t\t\t}", "private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTIFICATION);\n\n\t\t\t// navigate back\n\t\t\tViewNavigator.require().navigateBack();\n\n\t\t}).open();\n\t}", "@FXML\n void removeAssociatedPart(ActionEvent event) {\n\n Part selectedPart = assocPartTableView.getSelectionModel().getSelectedItem();\n\n if (selectedPart == null) {\n AlartMessage.displayAlertAdd(6);\n } else {\n\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Alert\");\n alert.setContentText(\"Are you sure you want to remove the selected part?\");\n Optional<ButtonType> result = alert.showAndWait();\n\n if (result.isPresent() && result.get() == ButtonType.OK) {\n assocParts.remove(selectedPart);\n assocPartTableView.setItems(assocParts);\n }\n }\n }", "void btnRemoveDelivery(Delivery delivery);", "public void removeClicked(View v){\n android.util.Log.d(this.getClass().getSimpleName(), \"remove Clicked\");\n String delete = \"delete from partner where partner.name=?;\";\n try {\n PartnerDB db = new PartnerDB((Context) this);\n SQLiteDatabase plcDB = db.openDB();\n plcDB.execSQL(delete, new String[]{this.selectedPartner});\n plcDB.close();\n db.close();\n }catch(Exception e){\n android.util.Log.w(this.getClass().getSimpleName(),\" error trying to delete partner\");\n }\n this.selectedPartner = this.setupselectSpinner1();\n this.loadFields();\n }", "@FXML\n private void removeSelectedCivilization(ActionEvent event) {\n \tPair<String,Integer> removeCivil = tableCivilizations.getSelectionModel().getSelectedItem();\n \t\n \tif(removeCivil == null) {\n \t\telementNotSelectedAlert();\n \t}\n \telse {\n \t\tcivilizationsTemp.remove(removeCivil);\n \t\ttableCivilizations.getItems().remove(removeCivil);\n \t}\n \n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tItemType i = getSelectedItem();\n\t\t\t\tif(i != null)\n\t\t\t\t{\t\n\n\t\t\t\t\tfinal String msg = \"Delete \"+i.getName() + \"?\";\n\t\t\t\t\tif(!confirmDelete(msg))\n\t\t\t\t\t\treturn;\n\t\t\t\t\ti.removeContainer(GeneralItemList.this);\n\t\t\t\t\ti.destroy();\n\t\t\t\t}\n\t\t\t\titems.remove(i);\n\t\t\t\tlist.clearSelection();\n\t\t\t\tlist.repaint(100);\t\t\t\t\n\t\t\t}", "public void onClick(View v) {\n addTocart();\n ProductListFragment.updateQuantity(selectedData.getProdId(), selectedData.getCount());\n }", "public void onClick(View v) {\n addTocart();\n ProductListFragment.updateQuantity(selectedData.getProdId(), selectedData.getCount());\n }", "private void removeButtonClicked(View view) {\n\n }", "@FXML private void handleAddProdDelete(ActionEvent event) {\n Part partDeleting = fxidAddProdSelectedParts.getSelectionModel().getSelectedItem();\n \n if (partDeleting != null) {\n //Display Confirm Box\n Alert confirmDelete = new Alert(Alert.AlertType.CONFIRMATION);\n confirmDelete.setHeaderText(\"Are you sure?\");\n confirmDelete.setContentText(\"Are you sure you want to remove the \" + partDeleting.getName() + \" part?\");\n Optional<ButtonType> result = confirmDelete.showAndWait();\n //If they click OK\n if (result.get() == ButtonType.OK) {\n //Delete the part.\n partToSave.remove(partDeleting);\n //Refresh the list view.\n fxidAddProdSelectedParts.setItems(partToSave);\n\n Alert successDelete = new Alert(Alert.AlertType.CONFIRMATION);\n successDelete.setHeaderText(\"Confirmation\");\n successDelete.setContentText(partDeleting.getName() + \" has been removed from product.\");\n successDelete.showAndWait();\n }\n } \n }", "public void clearSelected() {\n ObservableList<Extra> selected = extraSelected.getItems();\n for(int i =0; i < selected.size(); i++){\n sandwhich.remove(selected.get(i));\n }\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraOptions.getItems().addAll(selected);\n extraSelected.getItems().removeAll(selected);\n\n\n }", "@Test\r\n\tpublic void remove_items() {\r\n//Go to http://www.automationpractice.com\r\n//Mouse hover on product one\r\n//Click 'Add to Cart'\r\n//Click 'Continue shopping' button\r\n//Verify Cart has text '1 Product'\r\n//Mouse hover over 'Cart 1 product' button\r\n//Verify product listed\r\n//Now mouse hover on another product\r\n//click 'Add to cart' button\r\n//Click on Porceed to checkout\r\n//Mouse hover over 'Cart 2 product' button\r\n//Verify 2 product listed now\r\n//click 'X'button for first product\r\n//Verify 1 product deleted and other remain\r\n\r\n\t}", "public void handleDeleteProducts()\n {\n Product productToDelete = getProductToModify();\n\n if (productToDelete != null)\n {\n // Ask user for confirmation to remove the product from product table\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation\");\n alert.setHeaderText(\"Delete Confirmation\");\n alert.setContentText(\"Are you sure you want to delete this product?\");\n ButtonType confirm = new ButtonType(\"Yes\", ButtonBar.ButtonData.YES);\n ButtonType deny = new ButtonType(\"No\", ButtonBar.ButtonData.NO);\n ButtonType cancel = new ButtonType(\"Cancel\", ButtonBar.ButtonData.CANCEL_CLOSE);\n alert.getButtonTypes().setAll(confirm, deny, cancel);\n alert.showAndWait().ifPresent(type ->{\n if (type == confirm)\n {\n // User cannot delete products with associated parts\n if (productToDelete.getAllAssociatedParts().size() > 0)\n {\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\n alert2.setTitle(\"Action is Forbidden!\");\n alert2.setHeaderText(\"Action is Forbidden!\");\n alert2.setContentText(\"Products with associated parts cannot be deleted!\\n \" +\n \"Please remove associated parts from product and try again!\");\n alert2.show();\n }\n else\n {\n // delete the product\n inventory.deleteProduct(productToDelete);\n updateProducts();\n productTable.getSelectionModel().clearSelection();\n }\n }\n });\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No product was selected!\");\n alert.setContentText(\"Please select a product to delete from the part table!\");\n alert.show();\n }\n this.productTable.getSelectionModel().clearSelection();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jcProdCategory = new javax.swing.JComboBox();\n jLabel3 = new javax.swing.JLabel();\n jcProdId = new javax.swing.JComboBox();\n btnRemove = new javax.swing.JButton();\n btnBack = new javax.swing.JButton();\n jPanel10 = new javax.swing.JPanel();\n jLabel9 = new javax.swing.JLabel();\n lblLogout1 = new javax.swing.JLabel();\n lblUsername = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setFont(new java.awt.Font(\"Tw Cen MT\", 1, 30)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Product Removing Frame\");\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Chose Product To Remove\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Showcard Gothic\", 1, 20), new java.awt.Color(0, 0, 51))); // NOI18N\n\n jLabel2.setFont(new java.awt.Font(\"Showcard Gothic\", 1, 16)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(0, 0, 51));\n jLabel2.setText(\"Product Category\");\n\n jcProdCategory.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jcProdCategoryActionPerformed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Showcard Gothic\", 1, 16)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(0, 0, 51));\n jLabel3.setText(\"Product ID\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGap(56, 56, 56)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 73, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jcProdCategory, 0, 203, Short.MAX_VALUE)\n .addComponent(jcProdId, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(0, 70, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(53, 53, 53)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jcProdCategory, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addGap(41, 41, 41)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jcProdId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addContainerGap(52, Short.MAX_VALUE))\n );\n\n btnRemove.setBackground(new java.awt.Color(0, 0, 51));\n btnRemove.setFont(new java.awt.Font(\"Showcard Gothic\", 1, 18)); // NOI18N\n btnRemove.setForeground(new java.awt.Color(255, 255, 255));\n btnRemove.setText(\"Remove Product\");\n btnRemove.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRemoveActionPerformed(evt);\n }\n });\n\n btnBack.setBackground(new java.awt.Color(0, 0, 51));\n btnBack.setFont(new java.awt.Font(\"Showcard Gothic\", 1, 18)); // NOI18N\n btnBack.setForeground(new java.awt.Color(255, 255, 255));\n btnBack.setText(\"Back\");\n btnBack.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBackActionPerformed(evt);\n }\n });\n\n jPanel10.setBackground(new java.awt.Color(0, 0, 51));\n\n jLabel9.setFont(new java.awt.Font(\"Showcard Gothic\", 1, 36)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 255, 255));\n jLabel9.setText(\"Remove Product Frame\");\n\n lblLogout1.setFont(new java.awt.Font(\"Showcard Gothic\", 0, 14)); // NOI18N\n lblLogout1.setForeground(new java.awt.Color(255, 255, 255));\n lblLogout1.setText(\"Logout\");\n lblLogout1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lblLogout1MouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n lblLogout1MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n lblLogout1MouseExited(evt);\n }\n });\n\n lblUsername.setFont(new java.awt.Font(\"Showcard Gothic\", 0, 14)); // NOI18N\n lblUsername.setForeground(new java.awt.Color(255, 255, 255));\n lblUsername.setText(\"Hello \");\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGap(37, 37, 37)\n .addComponent(lblUsername)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 250, Short.MAX_VALUE)\n .addComponent(jLabel9)\n .addGap(233, 233, 233)\n .addComponent(lblLogout1)\n .addGap(42, 42, 42))\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(lblUsername, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblLogout1))\n .addContainerGap(23, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(125, 125, 125))\n .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(271, 271, 271)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(btnRemove)\n .addGap(181, 181, 181)\n .addComponent(btnBack))\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btnBack, btnRemove});\n\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel1)\n .addGap(29, 29, 29)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnRemove)\n .addComponent(btnBack))\n .addContainerGap(92, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "public void removeProduct(ProductBarcode code) throws NoSuchElementException;", "@Override\n\tpublic void deleteSelected() {\n\n\t}", "private void deleteButton(Button b) {\n DefaultListModel m = (DefaultListModel) srcList.getModel();\n int i;\n for (i = 0; i < m.getSize(); ++i) {\n if (m.get(i) == b) {\n break;\n }\n }\n if (i == m.getSize()) {\n m.addElement(b);\n }\n }", "private void removeProduct(int id)\n {\n manager.removeProduct(id);\n }", "public void actionPerformed(ActionEvent arg){\n\t\t\t\tif(editSuppIdCombo.getSelectedIndex() != 0){\n\t\t\t\t\tfor(Supplier supplier: suppliers){\n\t\t\t\t\t\tif(supplier.getId() == Integer.parseInt(editSuppIdCombo.getSelectedItem().toString())){\n\t\t\t\t\t\t\tlistOfSuppliers.removeElement(editSuppIdCombo.getSelectedItem().toString());\n\t\t\t\t\t\t\tsuppIdCombo.removeItem(editSuppIdCombo.getSelectedItem());\n\t\t\t\t\t\t\tsuppNameCombo.removeItem(editSuppIdCombo.getSelectedItem());\n\t\t\t\t\t\t\teditSuppIdCombo.removeItem(editSuppIdCombo.getSelectedItem());\n\t\t\t\t\t\t\tsuppliers.remove(supplier);\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Supplier Deleted\");\n\t\t\t\t\t\t\teditSuppIdCombo.setSelectedIndex(0);\n\t\t\t\t\t\t\teditSupplierName.setText(\"\");\n\t\t\t\t\t\t\teditSupplierAddress.setText(\"\");\n\t\t\t\t\t\t\teditSupplierEmail.setText(\"\");\n\t\t\t\t\t\t\teditSupplierPhone.setText(\"\");\n\t\t\t\t\t\t\teditSupplierDelivery.setText(\"\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select a Valid Supplier.\");\n\t\t\t\t}\n\t\t\t}", "void onProductClick(Product product, int code);", "@FXML\n\t private void deleteProduct (ActionEvent actionEvent) throws SQLException, ClassNotFoundException {\n\t try {\n\t ProductDAO.deleteProdWithId(prodIdText.getText());\n\t resultArea.setText(\"Product deleted! Product id: \" + prodIdText.getText() + \"\\n\");\n\t } catch (SQLException e) {\n\t resultArea.setText(\"Problem occurred while deleting product \" + e);\n\t throw e;\n\t }\n\t }", "public void removeSelectedAction() {\n\t\tvar selectedItems = pairsListView.getSelectionModel().getSelectedItems();\n\t\tpairsListView.getItems().removeAll(selectedItems);\n\t}", "@FXML\n\tpublic void deleteProductType(ActionEvent event) {\n\t\tif (!txtDeleteProductTypeName.getText().equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tboolean remove = restaurant.deleteproductType(txtDeleteProductTypeName.getText());\n\t\t\t\tif (remove == true) {\n\t\t\t\t\ttypeOptions.remove(txtDeleteProductTypeName.getText());\n\t\t\t\t\ttxtDeleteProductTypeName.setText(\"\");\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los datos\");\n\t\t\t\tdialog.setTitle(\"Error guardar datos\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Los campos deben ser llenados\");\n\t\t\tdialog.setTitle(\"Error, Campo sin datos\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "@Override\n public void pickItem(int position) {\n setProductPicked(-1, position);\n }", "@FXML\n private void removeCarButtonPress(){\n database.getCurrentUser().removeCar(carListView.getSelectionModel().getSelectedIndex());\n }", "public void deleteItem() {\n\t\tMobileElement el = driver.findElement(By.xpath(\"//android.view.View[@resource-id='\" + deleteButton + \"']\"));\n\t\tel.findElementByClassName(\"android.widget.Button\").click();\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void clickRemoveButtonInPictureTab(){\r\n\t\t\t\r\n\t\t\tMcsElement.getElementByXpath(driver, \"//div[contains(@class,'x-panel-noborder') and not(contains(@class,'x-hide-display'))]//div[contains(@class,'x-panel-bbar')]//button[contains(text(),'Remove')]\").click();\r\n\t\t\t\r\n\t\t\tReporter.log(\"Clicked on Remove button in Picture Tab\", true);\r\n\t\t}", "public void menuForProductManagement(){\r\n\r\n System.out.println(\"## ORGANICS ' E HOSGELDINIZ \"+ currentGuest.getName() + \" ##\");\r\n\r\n System.out.println(\"##############################\");\r\n System.out.println(\"# GIRIS PANELI #\");\r\n System.out.println(\"##############################\");\r\n System.out.println(\"# 1-Urun ekle #\");\r\n System.out.println(\"# 2-Urunleri Goster #\");\r\n System.out.println(\"# 3-Urun sil #\");\r\n System.out.println(\"# 4-Cıkıs #\");\r\n System.out.println(\"##############################\");\r\n\r\n Scanner scanner = new Scanner(System.in);\r\n int choice;\r\n int indexDelete;\r\n choice = scanner.nextInt();\r\n while(choice!=4){\r\n if(choice == 1){\r\n addProduct();\r\n }\r\n else if(choice ==2){\r\n printAllProduct();\r\n }\r\n else if(choice ==3){\r\n printAllProduct();\r\n System.out.print(\"Urunu silmek icin index' i giriniz -->\");\r\n indexDelete = scanner.nextInt();\r\n deleteProduct(indexDelete);\r\n printAllProduct();\r\n\r\n }\r\n System.out.print(\"\\n(1: Urun ekle)\\n\"+ \"(2: Urunleri Goster)\\n\" +\"(3: Urun Sil)\\n\" +\r\n \"(4: Cıkıs) -->\");\r\n System.out.println(\"\\nDevam etmek icin seciminizi giriniz :\\n\");\r\n choice = scanner.nextInt();\r\n }\r\n\r\n\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(cbElPuesto.getSelectedIndex()!=0) {\n\t\t\t\t\tString eliminar=((String) cbElPuesto.getSelectedItem());\n\t\t\t\t\tSystem.out.println(eliminar);\n\t\t\t\t\tdata.setQuery(\"DELETE FROM TipoPuesto WHERE puesto='\"+eliminar+\"'\");\n\t\t\t\t\tcbElPuesto.removeAllItems();\n\t\t\t\t\tcbEdPuesto.removeAllItems();\n\t\t\t\t\tcbElPuesto.addItem(\"Seleccione un hospital...\");\n\t\t\t\t\tcbEdPuesto.addItem(\"Seleccione un hospital...\");\n\t\t\t\t\tJOptionPane.showMessageDialog(btnEliminar,\"Eliminación exitosa\");\n\t\t\t\t\tregistros=(ResultSet) data.getQuery(\"Select * from TipoPuesto\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\twhile(registros.next()) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcbElPuesto.addItem(registros.getString(\"puesto\"));\n\t\t\t\t\t\t\tcbEdPuesto.addItem(registros.getString(\"puesto\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t}", "private void removeJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeJMenuItemActionPerformed\n removeJButton.doClick();\n }", "@FXML\n private void rowSelected() {\n if (coachesTable.getSelectionModel().getSelectedItem() != null) {\n removeButton.setDisable(false);\n }\n }", "private void setupRemoveOffering() {\n\t\tmakeButton(\"Remove Offering\", (ActionEvent e) -> {\n\t\t\ttry {\n\t\t\t\tint row = table.getSelectedRow();\n\n\t\t\t\tif (row < 0) {\n\t\t\t\t\tJOptionPane.showMessageDialog(getRootPane(), \"Please select a section\", \"Error\",\n\t\t\t\t\t\t\tJOptionPane.OK_OPTION);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tString[] inputs = getInputs(new String[] { \"Section Number:\" });\n\n\t\t\t\tif (inputs == null)\n\t\t\t\t\treturn;\n\n\t\t\t\tint courseId = adCon.getCourseIdFromRow(row);\n\t\t\t\tint secNum = Integer.parseInt(inputs[0]);\n\n\t\t\t\tint offeringId = adCon.getOfferingId(courseId, secNum);\n\t\t\t\tadCon.removeOffering(offeringId);\n\t\t\t\tupdateCourses();\n\t\t\t\tupdateTextArea(adCon.searchCourseById(courseId));\n\n\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\tJOptionPane.showMessageDialog(getRootPane(), \"Section number must be a number\", \"Error\",\n\t\t\t\t\t\tJOptionPane.OK_OPTION);\n\t\t\t}\n\n\t\t\tcourseInfo.setText(\"Offering deleted.\");\n\t\t});\n\t}", "public void clickProductDetailsAddToCartBtn(){\n clickElement(productDetailsAddToCart);\n }", "private void deleteProduct() {\n // Only perform the delete if this is an existing Product.\n if (mCurrentProductUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentProductUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentProductUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_product_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_product_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "private void deleteBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_deleteBtnMouseClicked\n\n String id = searchidTxt.getText();\n try {\n\n String Query = \"DELETE from stock where Product_ID =?\";\n\n pstm = con.prepareStatement(Query);\n pstm.setInt(1, Integer.parseInt(id));\n pstm.executeUpdate();\n\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"ID Not Found \");\n }\n //Refresh Table\n refTable();\n\n //by Default hide Update button\n deleteBtn.setVisible(false);\n\n //Clear all Fields\n clearFields();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString input = (String)comboBoxProductTitle.getSelectedItem();\n\t\t\t\t//String input = productTitleTextField.getText();\n\t\t\t\t\n\t\t\t\tif(input.trim().equals(\"Select\")){ \n\t\t\t\t\tproductTextArea.setText(\"\");\n\t\t\t\t\tproductTextArea.setCaretPosition(0);\n\t\t\t\t\tlistOfProdIds.setSelectedItem(\"Select\");\n\t\t\t\t\tlistOfProductAuthor.setSelectedItem(\"Select\");\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select Product Title From Drop Down Menu\");\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tproductTextArea.setText(product.viewProductByTitle(input, products));\t//viewInvoiceByCustomer() is in the Invoice class\n\t\t\t\t\tproductTextArea.setCaretPosition(0);\n\t\t\t\t\tlistOfProdIds.setSelectedItem(\"Select\");\n\t\t\t\t\tlistofProductTitle.setSelectedItem(\"Select\");\n\t\t\t\t\tlistOfProductAuthor.setSelectedItem(\"Select\");\n\t\t\t\t\tpriceRange.clearSelection();\n\t\t\t\t\tquantity.clearSelection();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}", "void clickProduct(View v);", "@FXML\n\tpublic void disableProduct(ActionEvent event) {\n\t\tif (!txtNameDisableProduct.getText().equals(\"\")) {\n\t\t\tList<Product> searchedProducts = restaurant.findSameProduct(txtNameDisableProduct.getText());\n\t\t\tif (!searchedProducts.isEmpty()) {\n\t\t\t\ttry {\n\t\t\t\t\tfor (int i = 0; i < searchedProducts.size(); i++) {\n\t\t\t\t\t\tsearchedProducts.get(i).setCondition(Condition.INACTIVE);\n\t\t\t\t\t}\n\t\t\t\t\trestaurant.saveProductsData();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"El producto ha sido deshabilitado\");\n\t\t\t\t\tdialog.setTitle(\"Producto Deshabilitado\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t\ttxtNameDisableProduct.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los productos\");\n\t\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Este Producto no existe\");\n\t\t\t\tdialog.setTitle(\"Error, objeto no existente\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Debe ingresar el nombre del producto\");\n\t\t\tdialog.setTitle(\"Error\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "private void selectDetailWithMouse() {\n int selectedRowIndex=jt.convertRowIndexToModel(jt.getSelectedRow());\n String[] choices={\"Update Row\",\"Delete\",\"Cancel\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"Product ID: \"+jtModel.getValueAt(selectedRowIndex, 0).toString()+\"\\n\"+\"Product Name: \"+jtModel.getValueAt(selectedRowIndex,1), \"View Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n tfPaintId.setText(jtModel.getValueAt(selectedRowIndex,0).toString());\n tfName.setText(jtModel.getValueAt(selectedRowIndex, 1).toString());\n tfPrice.setText(jtModel.getValueAt(selectedRowIndex, 2).toString());\n tfColor.setText(jtModel.getValueAt(selectedRowIndex, 3).toString());\n tfQuantity.setText(jtModel.getValueAt(selectedRowIndex, 8).toString());\n rwCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 4));\n typeCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 6));\n bCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 5));\n switch(jtModel.getValueAt(selectedRowIndex, 7).toString()) {\n case \"High\":\n high.setSelected(true);\n break;\n case \"Mild\":\n mild.setSelected(true);\n break;\n case \"Medium\":\n medium.setSelected(true);\n break;\n }\n }\n else if(option==1)\n {\n jtModel.removeRow(selectedRowIndex);\n JOptionPane.showMessageDialog(rootPane,\" Detail successfully deleted\");\n }\n else \n {\n \n } \n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tTableRow selected=null;\n\t\t\t\tfor(int i=0;i<table.getChildCount() && selected==null;i++){\n\t\t\t\t\tTableRow row = (TableRow)table.getChildAt(i);\n\t\t\t\t\tif(row.isSelected()){\n\t\t\t\t\t\tselected=row;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(selected==null){\n\t\t\t\t\t//Creamos un toast para avisar\n\t\t\t\t\tResources res = getResources();\n\t\t\t\t\tString text = String.format(res.getString(R.string.selectBill));\n\t\t\t\t\tToast msg = Toast.makeText(getBaseContext(),text, Toast.LENGTH_LONG);\n\t\t\t\t\tmsg.show();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tTextView idFactura = (TextView) selected.getChildAt(1);\n\t\t\t\t\tTextView nameClient = (TextView) selected.getChildAt(0);\n\t\t\t\t\t\n\t\t\t\t\tGlobalStatic data = (GlobalStatic) getApplicationContext();\n\t\t\t\t\t\n\t\t\t\t\tdata.cliente = data.getCliente((String)nameClient.getText());\n\t\t\t\t\tdata.factura = data.getFacturasId(data.cliente, Integer.parseInt((String)idFactura.getText()));\n\t\t\t\t\t\n\t\t\t\t\tdata.db.removeBill(data);\n\t\t\t\t\tdata.cliente.removeFactura(data.factura);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\ttable.removeView(selected);\n\t\t\t\t}\n\t\t\t\n\t\t\t}", "public void onActionDeleteProduct(ActionEvent actionEvent) throws IOException {\r\n\r\n try {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to delete the selected item?\");\r\n\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n\r\n if (productsTableView.getSelectionModel().getSelectedItem() != null) {\r\n Product product = productsTableView.getSelectionModel().getSelectedItem();\r\n if (product.getAllAssociatedParts().size() == 0) {\r\n\r\n Inventory.deleteProduct(productsTableView.getSelectionModel().getSelectedItem());\r\n Parent root = FXMLLoader.load(getClass().getResource(\"/View_Controller/mainScreen.fxml\"));\r\n Stage stage = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();\r\n Scene scene = new Scene(root, 1062, 498);\r\n stage.setTitle(\"Main Screen\");\r\n stage.setScene(scene);\r\n stage.show();\r\n } else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Products with associated parts cannot be deleted.\");\r\n alert2.showAndWait();\r\n }\r\n }\r\n else {\r\n Alert alert3 = new Alert(Alert.AlertType.ERROR);\r\n alert3.setContentText(\"Click on an item to delete.\");\r\n alert3.showAndWait();\r\n }\r\n }\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }", "public void removeIngre(Button btn, RecipeTM tm, ObservableList<RecipeTM> obList) {\r\n btn.setOnAction((e) -> {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Warning\");\r\n alert.setContentText(\"Are you sure ?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK) {\r\n try {\r\n deleteResIngre(tm.getIngreID(), cmbCakeID.getSelectionModel().getSelectedItem());\r\n } catch (SQLException | ClassNotFoundException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n obList.remove(tm);\r\n tblRecipe.refresh();\r\n }\r\n });\r\n }", "@FXML public void mainFormClicked(MouseEvent event)\n {\n // Unselect parts in table when user clicks on border pane\n partTable.getSelectionModel().clearSelection();\n productTable.getSelectionModel().clearSelection();\n }", "@Override\n public void deselectGolem() {\n }", "private void removePressed() {\n\t\ts = allMedia.getSelectedValuesList();\n\t\t// now remove all the value that are in the list from the default list model\n\t\tfor(Object o : s){\n\t\t\tif(l.contains(o)){\n\t\t\t\tl.removeElement(o);\n\t\t\t}\n\t\t}\n\t}", "@FXML\n public void removeIngredFromMeal(){\n if (ingredientsForMeal.getSelectionModel().getSelectedItem() == null){\n mealBox.errorDiaglogBox(\"Remove ingredient\", \"Please select an ingredient to remove\");\n } else {\n try{\n Ingredient ingredientToRemove = ingredientsForMeal.getSelectionModel().getSelectedItem();\n newIngredients.remove(ingredientToRemove);\n } catch (Exception e){\n System.out.println(\"Couldnt remove item from meal\");\n mealBox.errorDiaglogBox(\"Remove ingredient\", \"Error removing ingredient\");\n }\n }\n }", "@Override\n public void perform() {\n pickList.advanced().getSourceList().getItem(ChoicePickerHelper.byIndex().last()).select();\n pickList.advanced().getAddButtonElement().click();\n pickList.advanced().getRemoveButtonElement().click();\n }" ]
[ "0.8415045", "0.6846508", "0.6825443", "0.6820247", "0.68177027", "0.6797787", "0.6797381", "0.67059857", "0.6663737", "0.6637527", "0.66168493", "0.66111875", "0.66040057", "0.65979815", "0.6572211", "0.65445596", "0.6524408", "0.64848024", "0.64754766", "0.64697146", "0.64597595", "0.6428648", "0.6390526", "0.6359204", "0.63501936", "0.63378173", "0.6320023", "0.63180345", "0.6315274", "0.62965155", "0.6283042", "0.62554115", "0.62338084", "0.6215017", "0.6209279", "0.62065864", "0.61983556", "0.6174164", "0.6172886", "0.6166526", "0.61665064", "0.6162669", "0.6136643", "0.6132479", "0.61316264", "0.61272603", "0.6111745", "0.6102931", "0.6075393", "0.6061193", "0.6045303", "0.60405374", "0.6031749", "0.6020626", "0.60092425", "0.6002551", "0.5998819", "0.5994699", "0.59923434", "0.59690285", "0.59690285", "0.59598225", "0.5959164", "0.5955458", "0.5949713", "0.5947539", "0.59458756", "0.5945454", "0.5940125", "0.5916292", "0.59131163", "0.59111905", "0.5910415", "0.5908287", "0.5900932", "0.5897806", "0.58877254", "0.5885262", "0.5866506", "0.5861245", "0.58500606", "0.5843245", "0.58342314", "0.5828978", "0.5826631", "0.5816774", "0.58133394", "0.58090484", "0.5808135", "0.58029354", "0.57922035", "0.5782816", "0.57825947", "0.5779392", "0.57719654", "0.57693434", "0.5768914", "0.5761478", "0.5758316", "0.5748546" ]
0.70550066
1
Get the allRequiredConnectionIdsPresent value.
public List<String> allRequiredConnectionIdsPresent() { return this.allRequiredConnectionIdsPresent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> oneConnectionIdMustBePresent() {\n return this.oneConnectionIdMustBePresent;\n }", "public MergingPrerequisites withAllRequiredConnectionIdsPresent(List<String> allRequiredConnectionIdsPresent) {\n this.allRequiredConnectionIdsPresent = allRequiredConnectionIdsPresent;\n return this;\n }", "public static String[] getAvailableIDs();", "public boolean isSetCommodityIds() {\n return this.commodityIds != null;\n }", "public Optional<ImmutableList<String>> getPushIds() {\n return pushIds;\n }", "public boolean isSetIds() {\n return this.ids != null;\n }", "public boolean isSetIds() {\n return this.ids != null;\n }", "public boolean isSetIds() {\n return this.ids != null;\n }", "public boolean isSetIds() {\n return this.ids != null;\n }", "public ArrayList<Integer> getConnections(){\n return connectedKeys;\n }", "public boolean isSetAccountIds() {\n return this.accountIds != null;\n }", "public boolean isSetAccountIds() {\n return this.accountIds != null;\n }", "public ArrayList<Integer> getConnections() {\n\t\treturn connections;\n\t}", "public Set<JenkinsActiveConfiguration> getPendingActiveConfigurations() {\n return pendingActiveConfigurations;\n }", "Vector<JPPFClientConnection> getAvailableConnections();", "public int getSrcIdCount() {\n return srcId_.size();\n }", "public List<Integer> getConIds(ConProcess conProcess) throws AppException;", "public int getPlayerIdsCount() {\n return playerIds_.size();\n }", "public static java.lang.String[] getAvailableIDs() { throw new RuntimeException(\"Stub!\"); }", "public boolean isSetEntityIds() {\n return this.entityIds != null;\n }", "public boolean isSetEntityIds() {\n return this.entityIds != null;\n }", "public boolean isSetEntityIds() {\n return this.entityIds != null;\n }", "public boolean isSetEntityIds() {\n return this.entityIds != null;\n }", "public boolean isSetEntityIds() {\n return this.entityIds != null;\n }", "public boolean isSetEntityIds() {\n return this.entityIds != null;\n }", "public int getPlayerIdsCount() {\n return playerIds_.size();\n }", "public String [] getDirectConnectGatewayIds() {\n return this.DirectConnectGatewayIds;\n }", "public boolean isSetProductids() {\n return this.productids != null;\n }", "@Override\n public String[] getAllResourceJids(\n boolean connected\n ) throws RemoteException {\n ArrayList<String> resources = new ArrayList<String>();\n for (AccountConnection state: connections.values()) {\n if (state.getCurrentState() !=\n AccountConnection.State.Connected) {\n continue;\n }\n String jid = state.getConnection().getResourceJid();\n if (jid != null) {\n resources.add(jid);\n }\n }\n return resources.toArray(new String[resources.size()]);\n }", "public boolean[] getIsConnected()\n {\n if(isDestroyed) throw new RuntimeException(\"pvaClientMultiChannel was destroyed\");\n for(int i=0; i<numChannel; ++i) {\n PvaClientChannel pvaClientChannel = pvaClientChannelArray[i];\n if(pvaClientChannel==null) {\n isConnected[i] = false;\n continue;\n }\n Channel channel = pvaClientChannel.getChannel();\n ConnectionState stateNow = channel.getConnectionState();\n isConnected[i] = (stateNow==ConnectionState.CONNECTED) ? true : false;\n }\n return isConnected;\n }", "public boolean isSetAssignOrderCount() {\n return __isset_bit_vector.get(__ASSIGNORDERCOUNT_ISSET_ID);\n }", "public Set<String> getActiveGroupIds()\n {\n return myActiveGroups.stream().filter(g -> !g.activationProperty().isActivatingOrDeactivating()).map(g -> g.getId())\n .collect(Collectors.toSet());\n }", "public static Set<Integer> getAppids() {\n return APP_IDS.ids;\n }", "public PoolPartyRequest[] getPoolPartyRequests() {\n return poolPartyRequests;\n }", "@Override\n\tpublic List<String> getConnectorIds() {\n\t\treturn connectorIds;\n\t}", "int getIdsCount();", "protected Set<String> getDefaultActiveGroupIds()\n {\n Set<String> result = New.set();\n\n if (myDefaultActiveLayers != null)\n {\n result.addAll(myDefaultActiveLayers.getGroupIds());\n }\n return result;\n }", "java.util.List<Integer> getSrcIdList();", "public int getDatasetIdsCount() {\n return datasetIds_.size();\n }", "public boolean isActive(){\n return (registeredParticipants.size() == connections().size());\n }", "@Override\n public int getRowCount() {\n return connectionList.size();\n }", "public static long getConnections() {\n return connections;\n }", "public java.util.List<String> getQuickConnectIds() {\n return quickConnectIds;\n }", "public static long getBlockedConnections() {\n return blocks;\n }", "com.microsoft.schemas.crm._2011.contracts.ArrayOfRequiredResource getRequiredResources();", "public boolean isSetRequests() {\n return this.requests != null;\n }", "public String[] getRequestIds() {\r\n String[] toReturn = new String[0];\r\n\r\n String[] paramFields = {\"item_delimiter\"};\r\n SocketMessage request = new SocketMessage(\"admin\", \"req_list\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\",\r\n paramFields);\r\n request.setValue(\"item_delimiter\", ITEM_DELIMITER);\r\n\r\n SocketMessage response = handleMessage(request);\r\n if (!isSuccessful(response)) {\r\n if (\"\".equals(response.getErrorCode())) {\r\n setError(\"APIL_0221\", \"couldn't get Request IDs\");\r\n } else {\r\n wrapError(\"APIL_0221\", \"couldn't get Request IDs\");\r\n }\r\n return toReturn;\r\n } else {\r\n toReturn = StringTool.stringToArray(response.getValue(\"req_ids\").trim(), ITEM_DELIMITER);\r\n }\r\n\r\n return toReturn;\r\n }", "public int getDatasetIdsCount() {\n return datasetIds_.size();\n }", "public int getMinConnections() {\n return minConnections;\n }", "public String getResourceIds() {\n return resourceIds;\n }", "protected Set<Endpoint> getConnectedEndpoints() {\n return new HashSet<>(mEstablishedConnections.values());\n }", "Collection<TcpIpConnection> getActiveConnections();", "public boolean allConnected()\n {\n if(isDestroyed) throw new RuntimeException(\"pvaClientMultiChannel was destroyed\");\n return (numConnected==numChannel) ? true : false;\n }", "public char[] getConns() {\n return conns;\n }", "protected Set<String> getUserActivatedGroupIds()\n {\n Set<String> result = New.set();\n DataGroupInfoActiveSet initialActiveSet = myActiveSetConfig.getSetByName(USER_ACTIVATED_SET_NAME);\n if (initialActiveSet != null)\n {\n result.addAll(initialActiveSet.getGroupIds());\n }\n return result;\n }", "public MergingPrerequisites withOneConnectionIdMustBePresent(List<String> oneConnectionIdMustBePresent) {\n this.oneConnectionIdMustBePresent = oneConnectionIdMustBePresent;\n return this;\n }", "public boolean isEveryIdValid()\n {\n return(idValidation.size()==0);\n }", "protected int[] GetConnectedJunctions() {\n\t\tint Size = this.JunctionsConnectedList.length;\n\t\tint[] ReturnArray = new int[Size];\n\n\t\tfor(int i=0; i<Size; i++) {\n\t\t\tReturnArray[i] = this.JunctionsConnectedList[i][0];\n\t\t}\n\n\t\treturn ReturnArray;\n\t}", "public int getRequestedValuesCount() {\n return requestedValues_.size();\n }", "public synchronized List<ServerThread> getConnectionArray() {\r\n return connectionArray;\r\n }", "public int getRequestedValuesCount() {\n return requestedValues_.size();\n }", "public int[] getIDs(){\r\n\t\tint[] id = new int[Config.MAX_CLIENTS];\r\n\t\tfor(int i=0; i< Config.MAX_CLIENTS;i++){\r\n\t\t\tid[i] = clients[i].getID();\r\n\t\t}\r\n\t\treturn id;\r\n\t}", "public String getDatabaseConnectionPoolMinNumberConnections(){\n \t\treturn getProperty(\"org.sagebionetworks.pool.min.number.connections\");\n \t}", "public Long[] getInitiatorIDs() { return this.initiatorIDs; }", "public int getOtherIdsCount() {\n return otherIds_.size();\n }", "boolean getPersonCharacteristicIdsNull();", "public Collection<SendenDevice> getClientsConnected() {\n return clientsConnected.values();\n }", "public Long [] getCapManagedIds() {\n return this.CapManagedIds;\n }", "boolean isSetRequiredResources();", "public ArrayList<Connection> getConnections(){\n\t\treturn manager.getConnectionsWith(this);\n\t}", "public int getOtherIdsCount() {\n return otherIds_.size();\n }", "public Set<String> getMatchingIds() {\n return matchingIds;\n }", "@Override\n\tpublic String[] getIds() {\n\t\treturn null;\n\t}", "public int getNumOfRequiredDevices() {\n return mRequiredDeviceNumber;\n }", "public boolean hasConnProps() {\n return connPropsBuilder_ != null || connProps_ != null;\n }", "public List<String> getRequired() {\n\t\treturn required;\n\t}", "public ArrayList<AStarNode> getConnections() {\n return connected;\n }", "public static Integer numValidClients() {\n return getLoggedInUserConnections().size() + anonClients.size();\n }", "java.util.List<io.netifi.proteus.admin.om.Connection> \n getConnectionsList();", "public java.util.List<Integer>\n getSrcIdList() {\n return srcId_;\n }", "Collection<TcpIpConnection> getConnections();", "public static synchronized String[] getSessionIds() {\n String[] ids = new String[statemap.size()];\n statemap.keySet().toArray(ids);\n return ids;\n }", "public Object getNumberOfConnectedComponents() {\r\n\t\tConnectivityInspector<Country, DefaultEdge> inspector=new ConnectivityInspector<Country, DefaultEdge>(graph);\r\n\t\treturn inspector.connectedSets().size();\r\n\t}", "public boolean isSetIncludeVariantIds() {\r\n return this.includeVariantIds != null;\r\n }", "Integer getTransactionsPending() {\n\t\tif (transactionMonitor != null) {\n\t\t\treturn transactionMonitor.getPendingTransactions();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public boolean hasConnProps() {\n return connProps_ != null;\n }", "Optional<List<ConnectionResponse>> retrieveConnections();", "public static Collection<Integer[]> getEncoderDIOCrossConnectCollection() {\n Collection<Integer[]> encoderPortPairs = new ArrayList<Integer[]>();\n assert getDIOCrossConnect().size() == 2;\n encoderPortPairs.addAll(\n getPairArray(getDIOCrossConnect().get(0), getDIOCrossConnect().get(1), false));\n encoderPortPairs.addAll(\n getPairArray(getDIOCrossConnect().get(1), getDIOCrossConnect().get(0), false));\n assert encoderPortPairs.size() == 8;\n return encoderPortPairs;\n }", "public static long getNumberOfOpenConnections() {\n return openConnections.size();\n }", "boolean hasConnProps();", "public boolean isSetReferralLogIds() {\n return this.referralLogIds != null;\n }", "public boolean getPersonCharacteristicIdsNull() {\n return personCharacteristicIdsNull_;\n }", "public boolean getPersonCharacteristicIdsNull() {\n return personCharacteristicIdsNull_;\n }", "@Override\n public int getDeviceConfigurationCount() {\n int product = 1;\n\n for (CloudConfigurationDimension dimension : getDimensions()) {\n product *= dimension.getEnabledTypes().size();\n }\n\n return product;\n }", "long[] getAllServerSocketIds();", "public Set<Long> allOrganizationIds() {\n return new HashSet<Long>( );\n }", "public int getInviteeIdsCount() {\n return inviteeIds_.size();\n }", "public Connections getConnections() {\r\n return connections;\r\n }", "public com.google.protobuf.ProtocolStringList\n getDatasetIdsList() {\n return datasetIds_;\n }", "public String [] _truncatable_ids()\r\n {\r\n return _ids_list;\r\n }" ]
[ "0.6892625", "0.6676988", "0.547994", "0.53608966", "0.524248", "0.5208438", "0.5208438", "0.5208438", "0.5208438", "0.5187376", "0.50100356", "0.50100356", "0.49777257", "0.49661803", "0.4943286", "0.4936065", "0.488888", "0.48806337", "0.48779398", "0.4864959", "0.4864959", "0.4864959", "0.4864959", "0.4864959", "0.4864959", "0.48619866", "0.48504013", "0.48422116", "0.47748727", "0.47584367", "0.4757361", "0.47345507", "0.47239164", "0.4723417", "0.47009662", "0.46935076", "0.4688067", "0.46846277", "0.4680377", "0.46786642", "0.46769425", "0.46704733", "0.46661445", "0.46610987", "0.46586096", "0.46550342", "0.46498346", "0.46486032", "0.46282002", "0.4616078", "0.46065524", "0.46039593", "0.4595717", "0.45951077", "0.45909813", "0.458171", "0.45743337", "0.4565208", "0.45608282", "0.45535305", "0.45511252", "0.45500714", "0.4548618", "0.45472717", "0.4545914", "0.4540727", "0.4536416", "0.45291668", "0.4527595", "0.45226905", "0.45221424", "0.45200607", "0.45098642", "0.4506449", "0.45060825", "0.44901726", "0.44886538", "0.44845074", "0.44840053", "0.44826135", "0.44818372", "0.44741526", "0.4473929", "0.4469731", "0.44556156", "0.44546625", "0.4449514", "0.44477502", "0.44469774", "0.44420668", "0.4433055", "0.44284973", "0.4423955", "0.44233963", "0.44151163", "0.4414198", "0.44141123", "0.44115293", "0.44077453", "0.44052204" ]
0.85535896
0
Set the allRequiredConnectionIdsPresent value.
public MergingPrerequisites withAllRequiredConnectionIdsPresent(List<String> allRequiredConnectionIdsPresent) { this.allRequiredConnectionIdsPresent = allRequiredConnectionIdsPresent; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> allRequiredConnectionIdsPresent() {\n return this.allRequiredConnectionIdsPresent;\n }", "public List<String> oneConnectionIdMustBePresent() {\n return this.oneConnectionIdMustBePresent;\n }", "private void setNodeConnectionRequirement() {\n for (NodeRecord node : registeredNodes.values()) {\n node.setNumberOfConnectionsNodeNeedsToInitiate(requiredConnections);\n }\n }", "@NoProxy\n public void setAvailableUids(final Set<String> val) {\n availableUids = val;\n }", "public MergingPrerequisites withOneConnectionIdMustBePresent(List<String> oneConnectionIdMustBePresent) {\n this.oneConnectionIdMustBePresent = oneConnectionIdMustBePresent;\n return this;\n }", "void setRequiredResources(com.microsoft.schemas.crm._2011.contracts.ArrayOfRequiredResource requiredResources);", "public void setRequireAll(final boolean flag) {\n checkSetterPreconditions();\n requireAll = flag;\n }", "public void setAllMissing();", "void setAvailableGames(Set<Integer> gameIds);", "public void setAllLoaded(boolean value) {\n this.allLoaded = value;\n }", "public boolean isSetCommodityIds() {\n return this.commodityIds != null;\n }", "public void setPoolPartyRequests(\n final PoolPartyRequest[] thePoolPartyRequests) {\n poolPartyRequests = thePoolPartyRequests;\n }", "public boolean isSetIds() {\n return this.ids != null;\n }", "public boolean isSetIds() {\n return this.ids != null;\n }", "public boolean isSetIds() {\n return this.ids != null;\n }", "public boolean isSetIds() {\n return this.ids != null;\n }", "private void assignMissingResidueIds() {\n \t\tfor (Atom atom: atomVector) {\n \t\t\tif (atom.residue_id == Integer.MIN_VALUE) {\n \t\t\t\tatom.residue_id = atom.authorResidue_id;\n \t\t\t\tatom.nonpolymer = true;\n \t\t\t}\n \t\t}\n \t}", "public void setUpdateAllIntrospectedResources (boolean updateAllIntrospectedResources) {\n this.updateAllIntrospectedResources = updateAllIntrospectedResources;\n }", "public void setNilEndpoints()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas.xrm._2014.contracts.EndpointCollection target = null;\r\n target = (com.microsoft.schemas.xrm._2014.contracts.EndpointCollection)get_store().find_element_user(ENDPOINTS$0, 0);\r\n if (target == null)\r\n {\r\n target = (com.microsoft.schemas.xrm._2014.contracts.EndpointCollection)get_store().add_element_user(ENDPOINTS$0);\r\n }\r\n target.setNil();\r\n }\r\n }", "public boolean isSetProductids() {\n return this.productids != null;\n }", "public synchronized void setConnectionArray(List<ServerThread> connectionArray) {\r\n this.connectionArray = connectionArray;\r\n }", "public boolean isSetEntityIds() {\n return this.entityIds != null;\n }", "public boolean isSetEntityIds() {\n return this.entityIds != null;\n }", "public boolean isSetEntityIds() {\n return this.entityIds != null;\n }", "public boolean isSetEntityIds() {\n return this.entityIds != null;\n }", "public boolean isSetEntityIds() {\n return this.entityIds != null;\n }", "public boolean isSetEntityIds() {\n return this.entityIds != null;\n }", "public boolean isEveryIdValid()\n {\n return(idValidation.size()==0);\n }", "private void addAllSrcId(\n Iterable<? extends Integer> values) {\n ensureSrcIdIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, srcId_);\n }", "void setNilRequiredResources();", "public boolean isSetAccountIds() {\n return this.accountIds != null;\n }", "public boolean isSetAccountIds() {\n return this.accountIds != null;\n }", "void setPermittedModules(ArrayList<Integer> permittedModules);", "@Override\n public void preAllocateIds(int requestSize) {\n // do nothing by default\n }", "public final void setAllRowsReceivedFromServer(boolean b) {\n if (b && qryclsimpEnabled_) {\n // @AGG this only sets a boolean on the ResultSet\n //netResultSet_.markClosedOnServer();\n }\n allRowsReceivedFromServer_ = b;\n }", "public void setAllPaths(boolean allPaths) {\n\t\tthis.allPaths = allPaths;\n\t}", "public boolean isSetSldAll()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SLDALL$6) != 0;\n }\n }", "void setAllEdges(List<IEdge> allEdges);", "public boolean isSetAssignOrderCount() {\n return __isset_bit_vector.get(__ASSIGNORDERCOUNT_ISSET_ID);\n }", "private void setValidSourcesRequired ( final String validSourcesRequired )\n {\n if ( ( validSourcesRequired == null ) || validSourcesRequired.isEmpty () )\n {\n this.noOfValidSourcesRequired = 0;\n return;\n }\n // special case 100%:\n // all values must be valid to have a valid result\n if ( validSourcesRequired.equals ( \"100%\" ) )\n {\n this.noOfValidSourcesRequired = this.sourceIds.size ();\n return;\n }\n try\n {\n if ( validSourcesRequired.endsWith ( \"%\" ) )\n {\n // handle percentages\n final int percent = Integer.parseInt ( validSourcesRequired.replace ( \"%\", \"\" ) );\n if ( percent >= 100 )\n {\n this.noOfValidSourcesRequired = this.sourceIds.size ();\n return;\n }\n this.noOfValidSourcesRequired = Long.valueOf ( Math.round ( ( percent * this.sourceIds.size () ) / 100.0 ) ).intValue ();\n }\n else\n {\n // handle absolute values\n this.noOfValidSourcesRequired = Integer.parseInt ( validSourcesRequired );\n if ( this.noOfValidSourcesRequired > this.sourceIds.size () )\n {\n logger.warn ( \"'validSourcesRequired' was '{}' which should be less then the number of all elements\", validSourcesRequired, this.sourceIds.size () );\n this.noOfValidSourcesRequired = this.sourceIds.size ();\n }\n }\n }\n catch ( final NumberFormatException e )\n {\n logger.warn ( \"'validSourcesRequired' was '{}' which could not be parsed\", validSourcesRequired, e );\n // re-throw for the CA to get notified\n throw e;\n }\n }", "void setActivePeers(List<Uuid> activePeers) throws RemoteException;", "boolean isSetRequiredResources();", "public void setSldAll(org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty sldAll)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty)get_store().find_element_user(SLDALL$6, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty)get_store().add_element_user(SLDALL$6);\n }\n target.set(sldAll);\n }\n }", "public void setAnyAvailable(boolean anyAvailable) {\r\n\t\tthis.anyAvailable = anyAvailable;\r\n\t}", "private void setSewarageApplicationIdgenIds(SewerageConnectionRequest request) {\n\t\tList<String> applicationNumbers = new ArrayList<>();\n\t\tif (request.getSewerageConnection().getApplicationStatus() != null && request.isDisconnectRequest()) {\n\t\t\tapplicationNumbers = getIdList(request.getRequestInfo(),\n\t\t\t\t\trequest.getSewerageConnection().getTenantId(), config.getSewerageDisconnectionIdGenName(),\n\t\t\t\t\tconfig.getSewerageDisconnectionIdGenFormat(), 1);\n\t\t} else {\n\t\t\tapplicationNumbers = getIdList(request.getRequestInfo(),\n\t\t\t\t\trequest.getSewerageConnection().getTenantId(), config.getSewerageApplicationIdGenName(),\n\t\t\t\t\tconfig.getSewerageApplicationIdGenFormat(), 1);\n\t\t}\n\t\tif (CollectionUtils.isEmpty(applicationNumbers) || applicationNumbers.size() != 1) {\n\t\t\tMap<String, String> errorMap = new HashMap<>();\n\t\t\terrorMap.put(\"IDGEN ERROR \",\n\t\t\t\t\t\"The Id of SewerageConnection returned by idgen is not equal to number of SewerageConnection\");\n\t\t\tthrow new CustomException(errorMap);\n\t\t}\n\t\trequest.getSewerageConnection().setApplicationNo(applicationNumbers.listIterator().next());\n\t}", "public boolean requireAllPresenceValues() throws android.os.RemoteException;", "public void setTrustAllSSLCertificates(boolean trustAllSSLCertificates) {\n this.trustAllSSLCertificates = trustAllSSLCertificates;\n }", "void setDisjoint(DisjointSet disjoint);", "public void enableAdvertisingIdCollection(boolean enabled) {\n tracker.enableAdvertisingIdCollection(enabled);\n }", "@Override\n public boolean addAll(Collection<? extends Integer> clctn) {\n for(int i : clctn){\n if(!definedOn.contains(i)){\n return false;\n }\n }\n \n return super.addAll(clctn);\n }", "public Builder addAllSrcId(\n Iterable<? extends Integer> values) {\n copyOnWrite();\n instance.addAllSrcId(values);\n return this;\n }", "private void setAllAvailable() {\r\n for (int large = 0; large < 9; large++) {\r\n for (int small = 0; small < 9; small++) {\r\n Tile tile = mSmallTiles[large][small];\r\n if (tile.getOwner() == Tile.Owner.NEITHER)\r\n addAvailable(tile);\r\n }\r\n }\r\n }", "@Override\n\tpublic void setIds(String[] ids) {\n\t\t\n\t}", "public void setDirectConnectGatewayIds(String [] DirectConnectGatewayIds) {\n this.DirectConnectGatewayIds = DirectConnectGatewayIds;\n }", "void setNilPoolId();", "protected void setAll() {\n for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {\n \tthis.setBitAt(i);\n } \t\n }", "void setConstraints(com.microsoft.schemas.crm._2011.contracts.ArrayOfConstraintRelation constraints);", "public Builder setImmediateOutputAllPrefetch(boolean value) {\n bitField0_ |= 0x00000004;\n immediateOutputAllPrefetch_ = value;\n onChanged();\n return this;\n }", "private static void initializeAllGenresList(){\n\t\tfor(int i = 0; i < 13; i ++){\n\t\t\tALL_GENRES.add(new HashSet<String>());\n\t\t}\n\t}", "void setNilConstraints();", "public void setCapManagedIds(Long [] CapManagedIds) {\n this.CapManagedIds = CapManagedIds;\n }", "protected void setProtocolReadyOps(int nOps)\n {\n m_nOpsReadyProtocol = nOps;\n }", "public boolean isUpdateAllIntrospectedResources () {\n return updateAllIntrospectedResources;\n }", "@Override\n public boolean supportsUpdateSetAssociationId() {\n return false;\n }", "public final void setRequired() {_occ.setRequired();}", "public void updatejbAllCID(Connection con) throws SQLException {\r\n int maxCID = Queries.getMaxCID(con);\r\n cbAllCID.addItem(maxCID);\r\n cbAllCID.setSelectedIndex(cbAllCID.getItemCount() - 1);\r\n }", "public void setQuickConnectIds(java.util.Collection<String> quickConnectIds) {\n if (quickConnectIds == null) {\n this.quickConnectIds = null;\n return;\n }\n\n this.quickConnectIds = new java.util.ArrayList<String>(quickConnectIds);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public void setRequiredParameters(String... requiredPropertiesParameter) {\n for (String item : requiredPropertiesParameter) {\n requiredParameters.add(item);\n }\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public void setProductIds(Set<Long> productIdsIn) {\n productIds = productIdsIn;\n }", "public void setAllSpacesOwned(boolean ifAllSpacesOwned){\n\t\tallSpacesOwned = ifAllSpacesOwned;\n\t}", "public boolean isSetCarproviceid() {\n return __isset_bit_vector.get(__CARPROVICEID_ISSET_ID);\n }", "private static Set<String> gatherAllowedRegisterIDs(\r\n\t\t\tfinal int allowedRegistersCount) {\r\n\t\tSet<String> allowedRegisterIDs = new TreeSet<String>();\r\n\t\tfor (int i = 1; i <= allowedRegistersCount; i++) {\r\n\t\t\tallowedRegisterIDs.add(String.valueOf(100 + i));\r\n\t\t}\r\n\t\tLOGGER.debug(\"Allowed register IDs are - {}\", allowedRegisterIDs);\r\n\t\treturn allowedRegisterIDs;\r\n\t}", "protected void setRequestedClients(int requestedClients) {\n mRequestedClients = requestedClients;\n }", "private void connectToAll() {\n for (AStarNode node : getNodes()) {\n node.resetConnection();\n for (AStarNode connect : getNodes()) {\n if (isValid(node, connect)) {\n node.connect(connect);\n }\n }\n }\n }", "public void setAllContactId(final String val) {\n if (Util.checkNull(val) != null) {\n ctctId.setA(val);\n }\n }", "public boolean isSetMBlockIds() {\n return this.mBlockIds != null;\n }", "boolean isOptionsConsistentIncludingAllRequired(Integer optionId1,\n Integer optionId2);", "public boolean isSetIncludeVariantIds() {\r\n return this.includeVariantIds != null;\r\n }", "public Builder setPersonCharacteristicIdsNull(boolean value) {\n \n personCharacteristicIdsNull_ = value;\n onChanged();\n return this;\n }", "public void setMinConnections(int minConnections) {\n this.minConnections = minConnections;\n saveProperties();\n }", "public void setCompanies(java.util.Set<vn.com.phuclocbao.entity.CompanyEntity> _companies)\n {\n companies = _companies;\n }", "public void setConnected(boolean connected);", "public boolean isSetReferralLogIds() {\n return this.referralLogIds != null;\n }" ]
[ "0.655063", "0.54466856", "0.53570276", "0.52218616", "0.49843553", "0.488587", "0.48221266", "0.4784387", "0.4756867", "0.46969387", "0.46844393", "0.46143082", "0.4526068", "0.4526068", "0.4526068", "0.4526068", "0.4483049", "0.44752842", "0.44673258", "0.43882018", "0.4379037", "0.43261868", "0.43261868", "0.43261868", "0.43261868", "0.43261868", "0.43261868", "0.43145043", "0.4301438", "0.43006176", "0.42943263", "0.42943263", "0.4253498", "0.42415738", "0.42407688", "0.4225968", "0.42214912", "0.42104077", "0.4208964", "0.42085665", "0.42026672", "0.41911024", "0.4181183", "0.4180243", "0.41792166", "0.4168795", "0.41665745", "0.41516775", "0.41477022", "0.41310763", "0.4118207", "0.40862614", "0.40813872", "0.40789965", "0.407857", "0.4074086", "0.40456098", "0.40319878", "0.40308693", "0.40272337", "0.4022015", "0.40142822", "0.40082133", "0.40031865", "0.39990583", "0.39853847", "0.39782867", "0.39770433", "0.39770433", "0.39770433", "0.39770433", "0.39770433", "0.39770433", "0.39770433", "0.39770433", "0.39770433", "0.39770433", "0.39770433", "0.39770433", "0.39770433", "0.39770433", "0.39770433", "0.39770433", "0.3975868", "0.39735147", "0.3973471", "0.39602953", "0.39576265", "0.3952189", "0.39505294", "0.39483997", "0.39434546", "0.39407033", "0.39374012", "0.39371106", "0.39340353", "0.39305252", "0.39269793", "0.3925075", "0.39197463" ]
0.74445975
0
Get the oneConnectionIdMustBePresent value.
public List<String> oneConnectionIdMustBePresent() { return this.oneConnectionIdMustBePresent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MergingPrerequisites withOneConnectionIdMustBePresent(List<String> oneConnectionIdMustBePresent) {\n this.oneConnectionIdMustBePresent = oneConnectionIdMustBePresent;\n return this;\n }", "boolean getCampaignIdNull();", "public boolean isSetCreateId() {\n return this.createId != null;\n }", "boolean getXAxisCharacteristicIdNull();", "public boolean getCampaignIdNull() {\n return campaignIdNull_;\n }", "public List<String> allRequiredConnectionIdsPresent() {\n return this.allRequiredConnectionIdsPresent;\n }", "public boolean getCampaignIdNull() {\n return campaignIdNull_;\n }", "boolean getValueCharacteristicIdNull();", "public boolean isSetClientID() {\n return this.clientID != null;\n }", "public boolean isSetCreaterId() {\n return EncodingUtils.testBit(__isset_bitfield, __CREATERID_ISSET_ID);\n }", "public boolean hasClientId() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "public boolean hasClientId() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "public boolean getXAxisCharacteristicIdNull() {\n return xAxisCharacteristicIdNull_;\n }", "boolean hasPlayerId();", "public boolean getXAxisCharacteristicIdNull() {\n return xAxisCharacteristicIdNull_;\n }", "public boolean hasPlayerId() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public boolean getPlayerOne()\n\t{\n\t\treturn playerOne;\n\t}", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "@java.lang.Override\n public boolean hasPlayerId() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "com.google.protobuf.ByteString\n getUserIdOneBytes();", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasDriverId() {\n return fieldSetFlags()[1];\n }", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"7267xxxxxxxxxxxxxx\", value = \"Telnyx connection ID used in the call.\")\n @JsonProperty(JSON_PROPERTY_CONNECTION_ID)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getConnectionId() {\n return connectionId;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"7267xxxxxxxxxxxxxx\", value = \"Telnyx connection ID used in the call.\")\n @JsonProperty(JSON_PROPERTY_CONNECTION_ID)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getConnectionId() {\n return connectionId;\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean hasCampaignId();", "boolean hasCampaignId();", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "public boolean hasChannelId()\n {\n return channelId != null && channelId.length() > 0;\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean isNilPoolId();", "@java.lang.Override\n public boolean hasId() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "public boolean hasCampaignId() {\n return campaignIdBuilder_ != null || campaignId_ != null;\n }", "public boolean hasCampaignId() {\n return campaignIdBuilder_ != null || campaignId_ != null;\n }", "public Integer getInspectCaseReadyPunishId() {\n return inspectCaseReadyPunishId;\n }", "boolean hasSuccessorId();", "String getEmptyId();", "@java.lang.Override\n public boolean hasId() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "@java.lang.Override\n public boolean hasRequesterId() {\n return ((bitField0_ & 0x00000040) != 0);\n }", "@java.lang.Override\n public boolean hasRequesterId() {\n return ((bitField0_ & 0x00000040) != 0);\n }", "public boolean hasContextId() {\n return fieldSetFlags()[0];\n }", "public boolean isSetPreRepayId() {\n return EncodingUtils.testBit(__isset_bitfield, __PREREPAYID_ISSET_ID);\n }", "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "boolean hasValueCharacteristicId();", "boolean getNodeCharacteristicIdNull();", "public boolean hasUserid() {\n return fieldSetFlags()[1];\n }", "public boolean hasID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasCampaignId() {\n return campaignId_ != null;\n }" ]
[ "0.55050504", "0.5467213", "0.52264506", "0.5165798", "0.5156019", "0.51297146", "0.51147664", "0.5111636", "0.51080567", "0.50988317", "0.50950485", "0.50857896", "0.50742483", "0.5061719", "0.5060747", "0.505506", "0.50244427", "0.50236803", "0.50236803", "0.50235933", "0.5023112", "0.5023112", "0.5023112", "0.5023112", "0.5023112", "0.5023112", "0.5023112", "0.5023112", "0.5023112", "0.5023112", "0.5023112", "0.5023112", "0.5023112", "0.5023112", "0.5023112", "0.50168025", "0.5016371", "0.50139594", "0.50139594", "0.5009468", "0.50075835", "0.50075835", "0.5003262", "0.5003262", "0.5003262", "0.5003262", "0.5003262", "0.5003262", "0.5003262", "0.5003262", "0.5003262", "0.5003262", "0.5003262", "0.5003262", "0.5003262", "0.5003262", "0.5003262", "0.5003262", "0.5003262", "0.5001764", "0.5001764", "0.5001764", "0.49883917", "0.49872196", "0.49872196", "0.498223", "0.498223", "0.4974227", "0.49722645", "0.49668542", "0.49668542", "0.49666277", "0.49614003", "0.4941798", "0.49294114", "0.4928191", "0.4928191", "0.4921909", "0.49209297", "0.49203032", "0.4912515", "0.49064195", "0.49040714", "0.4899199", "0.48968068", "0.48965654", "0.48965654", "0.4873274", "0.4872417", "0.4871235", "0.48705697", "0.4870074", "0.4870074", "0.48697823", "0.48697823", "0.48697823", "0.48697823", "0.48697823", "0.48697823", "0.4857464" ]
0.71195245
0
Set the oneConnectionIdMustBePresent value.
public MergingPrerequisites withOneConnectionIdMustBePresent(List<String> oneConnectionIdMustBePresent) { this.oneConnectionIdMustBePresent = oneConnectionIdMustBePresent; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> oneConnectionIdMustBePresent() {\n return this.oneConnectionIdMustBePresent;\n }", "public Builder setValueCharacteristicIdNull(boolean value) {\n \n valueCharacteristicIdNull_ = value;\n onChanged();\n return this;\n }", "public Builder setConnectionId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n connectionId_ = value;\n onChanged();\n return this;\n }", "public Builder setConnectionId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n connectionId_ = value;\n onChanged();\n return this;\n }", "public Builder setConnectionId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n connectionId_ = value;\n onChanged();\n return this;\n }", "public Builder setXAxisCharacteristicIdNull(boolean value) {\n \n xAxisCharacteristicIdNull_ = value;\n onChanged();\n return this;\n }", "public void requirePatientId() {\n hasPatientIdParam = true;\n }", "public Builder setConnectionIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n connectionId_ = value;\n onChanged();\n return this;\n }", "public Builder setConnectionIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n connectionId_ = value;\n onChanged();\n return this;\n }", "public Builder setConnectionIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n connectionId_ = value;\n onChanged();\n return this;\n }", "public void setConnectionId(long value) {\n this.connectionId = value;\n }", "public void setConnectionId(long id) {\n connId = id;\n }", "public void setOne_time_only(int one_time_only) {\n this.one_time_only = one_time_only;\n }", "public Builder setNodeCharacteristicIdNull(boolean value) {\n \n nodeCharacteristicIdNull_ = value;\n onChanged();\n return this;\n }", "public void setAlwaysId(String alwaysId) {\r\n\t\t\tthis.alwaysId = alwaysId;\r\n\t\t}", "public Builder setOrderPersonIdNull(boolean value) {\n \n orderPersonIdNull_ = value;\n onChanged();\n return this;\n }", "public void setOneWay(boolean oneWay) {\n this.oneWay = oneWay;\n }", "public Builder setCampaignIdNull(boolean value) {\n \n campaignIdNull_ = value;\n onChanged();\n return this;\n }", "public Builder setPersonCharacteristicIdsNull(boolean value) {\n \n personCharacteristicIdsNull_ = value;\n onChanged();\n return this;\n }", "void ensureConnection(String id);", "@Test\n public void testSetBusinessId() {\n \n assertNull(o1.getBusinessId());\n o1.setBusinessId(Integer.MIN_VALUE);\n assertNotNull(o1.getBusinessId());\n assertEquals(new Integer(Integer.MIN_VALUE), o1.getBusinessId());\n }", "private void setConnectionNO(SewerageConnectionRequest request) {\n\t\tList<String> connectionNumbers = getIdList(request.getRequestInfo(),\n\t\t\t\trequest.getSewerageConnection().getTenantId(), config.getSewerageIdGenName(),\n\t\t\t\tconfig.getSewerageIdGenFormat(), 1);\n\n\t\tif (CollectionUtils.isEmpty(connectionNumbers) || connectionNumbers.size() != 1) {\n\t\t\tMap<String, String> errorMap = new HashMap<>();\n\t\t\terrorMap.put(\"IDGEN_ERROR\",\n\t\t\t\t\t\"The Id of Sewerage Connection returned by idgen is not equal to number of Sewerage Connection\");\n\t\t\tthrow new CustomException(errorMap);\n\t\t}\n\n\t\trequest.getSewerageConnection().setConnectionNo(connectionNumbers.listIterator().next());\n\t}", "public boolean isSetCreateId() {\n return this.createId != null;\n }", "public void setIdPermisosNull(boolean idPermisosNull)\r\n\t{\r\n\t\tthis.idPermisosNull = idPermisosNull;\r\n\t}", "public boolean isSetCreaterId() {\n return EncodingUtils.testBit(__isset_bitfield, __CREATERID_ISSET_ID);\n }", "public void setPresentid(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localPresentidTracker = true;\r\n } else {\r\n localPresentidTracker = false;\r\n \r\n }\r\n \r\n this.localPresentid=param;\r\n \r\n\r\n }", "public void setInspectCaseReadyPunishId(Integer inspectCaseReadyPunishId) {\n this.inspectCaseReadyPunishId = inspectCaseReadyPunishId;\n }", "public boolean isSetClientID() {\n return this.clientID != null;\n }", "void setNilPoolId();", "public boolean isSetSourceId() {\r\n return EncodingUtils.testBit(__isset_bitfield, __SOURCEID_ISSET_ID);\r\n }", "public boolean isSetSourceId() {\r\n return EncodingUtils.testBit(__isset_bitfield, __SOURCEID_ISSET_ID);\r\n }", "public boolean isSetSourceId() {\r\n return EncodingUtils.testBit(__isset_bitfield, __SOURCEID_ISSET_ID);\r\n }", "public boolean isSetSourceId() {\r\n return EncodingUtils.testBit(__isset_bitfield, __SOURCEID_ISSET_ID);\r\n }", "boolean isSetServiceId();", "public boolean getXAxisCharacteristicIdNull() {\n return xAxisCharacteristicIdNull_;\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "boolean getXAxisCharacteristicIdNull();", "@Test\r\n\tpublic void testSetGetIdValid() {\r\n\t\tDoctor doctor = new Doctor();\r\n\t\tdoctor.setId(idValid);\r\n\t\tassertEquals(idValid, doctor.getId());\r\n\t}", "public Builder setUnitIdNull(boolean value) {\n \n unitIdNull_ = value;\n onChanged();\n return this;\n }", "public boolean getXAxisCharacteristicIdNull() {\n return xAxisCharacteristicIdNull_;\n }", "boolean isSetID();", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public void setStart(int startId) throws IllegalArgumentException, IllegalStateException;", "public void setOneClickEnabled(boolean value) {\n this.oneClickEnabled = value;\n }", "public void setOnlyid(String onlyid) {\n this.onlyid = onlyid == null ? null : onlyid.trim();\n }", "public void setConid(String conid) {\n this.conid = conid == null ? null : conid.trim();\n }", "public void willStartOne() {\n startOne();\n }", "public Builder setTreeNodeIdNull(boolean value) {\n \n treeNodeIdNull_ = value;\n onChanged();\n return this;\n }", "public boolean isSetPreRepayId() {\n return EncodingUtils.testBit(__isset_bitfield, __PREREPAYID_ISSET_ID);\n }", "public void setCallId(String callId) throws ParseException,NullPointerException;", "public void setConnection(Connection connection) {\n //doNothing\n }", "public boolean isSetBrokerId() {\n return EncodingUtils.testBit(__isset_bitfield, __BROKERID_ISSET_ID);\n }", "public boolean isSetRecomId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __RECOMID_ISSET_ID);\n }", "public boolean isSetObjId() {\r\n return EncodingUtils.testBit(__isset_bitfield, __OBJID_ISSET_ID);\r\n }", "public boolean isSetNodeId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __NODEID_ISSET_ID);\n }", "public Builder setOneof1120(int value) {\n hugeOneofCase_ = 1120;\n hugeOneof_ = value;\n onChanged();\n return this;\n }", "public boolean isSetId() {\r\n return this.id != null;\r\n }", "public void assignOneGroup(final boolean val) {\n oneGroup = val;\n }", "boolean getCampaignIdNull();", "protected void prepareSharedConnection(Connection connection) throws JMSException {\n String clientId = getClientId();\n if (clientId != null) {\n connection.setClientID(clientId);\n }\n }", "public Builder setOneof1321(int value) {\n hugeOneofCase_ = 1321;\n hugeOneof_ = value;\n onChanged();\n return this;\n }", "public boolean isSetSnapearn_id() {\n return EncodingUtils.testBit(__isset_bitfield, __SNAPEARN_ID_ISSET_ID);\n }", "public boolean isSetObjectId() {\r\n return EncodingUtils.testBit(__isset_bitfield, __OBJECTID_ISSET_ID);\r\n }", "public boolean isSetObjectId() {\r\n return EncodingUtils.testBit(__isset_bitfield, __OBJECTID_ISSET_ID);\r\n }", "public boolean isSetObjectId() {\r\n return EncodingUtils.testBit(__isset_bitfield, __OBJECTID_ISSET_ID);\r\n }", "public boolean isSetObjectId() {\r\n return EncodingUtils.testBit(__isset_bitfield, __OBJECTID_ISSET_ID);\r\n }", "public boolean isSetObjectId() {\r\n return EncodingUtils.testBit(__isset_bitfield, __OBJECTID_ISSET_ID);\r\n }", "public boolean isSetObjectId() {\r\n return EncodingUtils.testBit(__isset_bitfield, __OBJECTID_ISSET_ID);\r\n }", "public boolean isSetId() {\n return this.id != null;\n }", "public boolean isSetId() {\n return this.id != null;\n }", "public boolean isSetId() {\n return this.id != null;\n }", "public boolean isSetId() {\n return this.id != null;\n }", "private void enforceCanSetDeviceOwnerLocked(\n CallerIdentity caller, @Nullable ComponentName owner, @UserIdInt int deviceOwnerUserId,\n boolean hasIncompatibleAccountsOrNonAdb) {\n if (!isAdb(caller)) {\n Preconditions.checkCallAuthorization(\n hasCallingOrSelfPermission(permission.MANAGE_PROFILE_AND_DEVICE_OWNERS));\n }\n\n final int code = checkDeviceOwnerProvisioningPreConditionLocked(owner,\n /* deviceOwnerUserId= */ deviceOwnerUserId, /* callingUserId*/ caller.getUserId(),\n isAdb(caller), hasIncompatibleAccountsOrNonAdb);\n if (code != STATUS_OK) {\n throw new IllegalStateException(\n computeProvisioningErrorString(code, deviceOwnerUserId));\n }\n }", "public boolean isSetCompanyId() {\n return EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public Builder setOneof1123(int value) {\n hugeOneofCase_ = 1123;\n hugeOneof_ = value;\n onChanged();\n return this;\n }", "public void setSingleInclude(final SingleIncludeChecker singleInclude) {\n this.singleInclude = singleInclude;\n }", "public void setConnectionId(String connectionId) {\n this.connectionId = connectionId;\n }", "public Builder setOneof1125(int value) {\n hugeOneofCase_ = 1125;\n hugeOneof_ = value;\n onChanged();\n return this;\n }", "public boolean isSetUserid() {\n return this.userid != null;\n }", "public void setStartConnected(boolean startConnected) {\r\n this.startConnected = startConnected;\r\n }", "public boolean isSetCarproviceid() {\n return __isset_bit_vector.get(__CARPROVICEID_ISSET_ID);\n }", "public SetOnceRef(boolean allowNull) {\n this(null, allowNull, false);\n }", "boolean isNilPoolId();", "public Builder setOneof1121(int value) {\n hugeOneofCase_ = 1121;\n hugeOneof_ = value;\n onChanged();\n return this;\n }", "public boolean isSetUserProfileId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __USERPROFILEID_ISSET_ID);\n }" ]
[ "0.58624333", "0.5136447", "0.512689", "0.512689", "0.512689", "0.5087482", "0.50199795", "0.50004905", "0.50004905", "0.50004905", "0.48240337", "0.48050532", "0.47935927", "0.47763216", "0.4749815", "0.4706924", "0.47063237", "0.47013903", "0.4699013", "0.46164197", "0.4607849", "0.45909035", "0.45544648", "0.4531675", "0.45202237", "0.45175362", "0.449938", "0.44862577", "0.44672814", "0.4463508", "0.4463508", "0.4463508", "0.4463508", "0.44534832", "0.4426034", "0.4408381", "0.44073406", "0.44003725", "0.4395181", "0.4389873", "0.43735978", "0.43509796", "0.43509796", "0.43509796", "0.43509796", "0.43509796", "0.43509796", "0.43509796", "0.43509796", "0.43509796", "0.43509796", "0.43509796", "0.43509796", "0.43509796", "0.43509796", "0.43509796", "0.43509796", "0.43477198", "0.43472165", "0.43380114", "0.43363702", "0.43279704", "0.43268418", "0.43013212", "0.42974824", "0.4296365", "0.42914572", "0.42827445", "0.42666328", "0.42623052", "0.4256935", "0.42492104", "0.42486614", "0.42462367", "0.42372558", "0.42339516", "0.42324346", "0.42318717", "0.42318717", "0.42318717", "0.42318717", "0.42318717", "0.42318717", "0.42294464", "0.42294464", "0.4228465", "0.4228465", "0.42276382", "0.4227525", "0.42264596", "0.42241085", "0.42179328", "0.42135948", "0.42134005", "0.42092052", "0.42085838", "0.42034632", "0.420312", "0.41970378", "0.41899663" ]
0.59972787
0
Cached enemy player ========================================================= Returns object that is responsible for the production queue.
public static AtlantisProductionStrategy getProductionStrategy() { return AtlantisConfig.getProductionStrategy(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Enemy getEnemyPlayer() {\n return batMan.getEnemyPlayer();\n }", "public Enemy getEnemy(){\n return enemy;\n }", "public EpicPlayer getEpicPlayer(){ return epicPlayer; }", "protected Player getPlayer() { return player; }", "public Enemy summon() {\n\t\treturn null;\n\t}", "public Player getPlayer()\r\n {\r\n return player;\r\n }", "public Player getPlayer(){\r\n\t\treturn acquiredBy;\r\n\t}", "public Player getPlayer() { return player; }", "public Player getCurrentPlayer(){\n return this.currentPlayer;\n }", "public Player getPlayer() {\r\n return player;\r\n }", "public EnemyManager getEnemyManager() {\n return map.getEnemyManager();\n }", "Player getPlayer();", "public Player getPlayer() { return player;}", "protected Entity findPlayerToAttack()\n {\n EntityPlayer var1 = this.worldObj.getClosestVulnerablePlayerToEntity(this, 16.0D);\n return var1 != null && this.canEntityBeSeen(var1) ? var1 : null;\n }", "public MapLocation getEnemySwarmTarget() {\n\t\tdouble a = Math.sqrt(vecEnemyX * vecEnemyX + vecEnemyY * vecEnemyY) + .001;\n\n\t\treturn new MapLocation((int) (vecEnemyX * 7 / a) + br.curLoc.x,\n\t\t\t\t(int) (vecEnemyY * 7 / a) + br.curLoc.y);\n\n\t}", "public Player getPlayer() {\n return p;\n }", "public Player getPlayer();", "public Player getPlayer();", "public PlayerEntity getPlayer() {\n return player;\n }", "public PlayerEntity getPlayer() {\n return player;\n }", "public Card enemyPlayCard(){ //Is it really worth the effort to give the enemy a full deck/temp hand? Having 2-4 basic abilities that vary should be enough.\n if(!(enemyHand.isEmpty())){\n return enemyHand.get(0);\n } else {\n return null;\n }\n }", "public synchronized Player getPlayerIfNotFull() {\n if (player1 == null) {\n player1 = new Player(order, 'X');\n order++;\n nrOfPlayers++;\n return player1;\n } else if (player2 == null) {\n player2 = new Player(order, 'O');\n order = 0;\n nrOfPlayers++;\n started = true;\n return player2;\n }\n return null;\n }", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\n return player;\n }", "public Player getCurrent(){\n\t\tPlayer p;\n\t\ttry{\n\t\t\tp = this.players.get(this.currElem);\n\t\t\t\n\t\t} catch(IndexOutOfBoundsException e){\n\t\t\tSystem.out.println(\"There isn't any players.\");\n\t\t\tp = null;\n\t\t}\n\t\t\t\n\t\treturn p; \n\t}", "Player getDormantPlayer();", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer(){\n\t\treturn this.player;\n\t}", "public PlayerState getEnemy()\n {\n if(this.turnOfPlayer == playerBlack)\n {\n return playerWhite;\n }\n return playerBlack;\n }", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer(){\r\n return player;\r\n }", "protected Player getPlayer() {\n return getGame().getPlayers().get(0);\n }", "public PlayerProfile getPlayer(P player){\n\n if(playerMap.containsKey(player)){\n //Player is safe to send\n return playerMap.get(player);\n } else {\n //Player isn't safe to send\n System.out.println(\"Tried to grab player \" + player.getName() + \"'s data, but it's not available\");\n return null;\n }\n }", "public Enemy getEnemy(int whichEnemy);", "public Player getPlayer() {\n\t\treturn p;\n\t}", "Player currentPlayer();", "public Pokemon getEnemyPokemon()\r\n {\r\n return enemyPokemon;\r\n }", "protected Entity findPlayerToAttack() {\n/* 339 */ double var1 = 8.0D;\n/* 340 */ return getIsSummoned() ? null : this.field_70170_p.func_72890_a(this, var1);\n/* */ }", "public Player getPlayer()\r\n\t{\r\n\t\treturn mPlayer;\r\n\t}", "Player getCurrentPlayer();", "Player getCurrentPlayer();", "public Player getPlayer() {\r\n return world.getPlayer();\r\n }", "public EntityPlayerMP getEntity()\n\t{\n\t\tif(isOnline())\n\t\t{\n\t\t\tentity = PlayerManager.getPlayer(name);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tItemInWorldManager itemInWorldManager = new ItemInWorldManager(Server.getServer().worldServerForDimension(0));\n\t\t\tentity = new EntityPlayerMP(Server.getServer(), Server.getServer().worldServerForDimension(0), name, itemInWorldManager);\n\t\t\tServer.getConfigurationManager().readPlayerDataFromFile(entity);\n\t\t}\n\t\treturn entity;\n\t}", "public Player getPlayer() {\r\n\t\treturn player;\r\n\t}", "private EntityLivingBase findPlayerToAttack() {\n EntityPlayer player = entity.worldObj.getClosestVulnerablePlayerToEntity(entity, aggroRange);\n if ( player != null && !player.capabilities.isCreativeMode && entity.canEntityBeSeen(player) )\n \treturn player;\n\n EntityLivingBase target = entity.getLastAttacker();\n if ( isTargetValid(target) && entity.canEntityBeSeen(target) )\n \treturn target;\n\n \treturn null;\n }", "public AbstractGameObject getPlayer() {\n return this.player;\n }", "public Player currentPlayer() {\n\t\treturn (currentPlayer);\n\t}", "public Player nextPlayer() {\r\n if (this.ordering==null || this.ordering.isEmpty()) {\r\n nextTurn();\r\n }\r\n Player p = this.ordering.poll();\r\n p.setEnergy(p.getBaseEnergy());\r\n p.disableShield();\r\n playerToPlay = p;\r\n p.setAsTurn(true);\r\n return p;\r\n }", "public Player getCurrentPlayer(){\n String playerId = getUser().get_playerId();\n\n Player player = null;\n\n try {\n player = getCurrentGame().getPlayer(playerId);\n } catch(InvalidGameException e) {\n e.printStackTrace();\n System.out.println(\"This is the real Error\");\n }\n\n return player;\n }", "public Player getPlayer() {\n\t\treturn this.player;\r\n\t}", "public Player getPlayer() {\n return me;\n }", "public static Player getCurrPlayer(){\n\t\treturn players.get(curr);\n\t}", "public Player getActivePlayer() {\r\n return activePlayer;\r\n }", "public Enemy getNextEnemy() {\n return findNextEnemy(0);\n }", "public final Player getPlayer() {\n return player;\n }", "public Enemy getEnemy(String name) {\n\n // For all enemies\n for (Entity curEnt : getEntityList()) {\n\n // If current enemy name matches given name\n if (curEnt.getName().equalsIgnoreCase(name)) {\n\n // Return enemy\n return (Enemy) curEnt;\n }\n }\n\n // If no enemy was found, return null\n return null;\n }", "@Override\r\n\tpublic EnemySprites getEnemy(int level) {\r\n \tint enemyCount = 3;\r\n \tRandom rand = new Random();\r\n \tint enemyNum = rand.nextInt(enemyCount);\r\n \tswitch(enemyNum){\r\n \tcase 0:\r\n \t\t//return new goblin(level);\r\n \t\tbreak;\r\n \tcase 1:\r\n \t\t//return new kobold(level);\r\n \t\tbreak;\r\n \tcase 2:\r\n \t\t//return new Bandit(level);\r\n \t\tbreak;\r\n \tdefault:\r\n \t\treturn null; \t\t\r\n \t}\r\n \treturn null;\r\n }", "@Override\npublic Player<T> getCurrentPlayer() {\n\treturn currentPlayer;\n}", "public int getPlayer()\n {\n return this.player;\n }", "public Player getPlayer() {\n\t\treturn this.player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getCurrentPlayer() {\n return currentPlayer;\n }", "public Player getCurrentPlayer() {\n return currentPlayer;\n }", "public Player getInactivePlayer() {\n if (redPlayer.equals(getActivePlayer()))\n return whitePlayer;\n else\n return redPlayer;\n }", "public static synchronized Player getInstance(){\n if(Player.player == null){\n Player.player = new Player();\n }\n return Player.player;\n }", "public ServerPlayer getCurrentPlayer() {\r\n\t\treturn this.currentPlayer;\r\n\t}", "public int getCurrentPlayer(){\n return this.currentPlayer;\n }", "public Player getPlayer() {\n return humanPlayer;\n }", "public Sprite getPlayer() {\n\t\treturn player;\n\t}", "public Player getCurrentPlayer()\n\t{\n\t\treturn current;\n\t}", "@Override\n\tpublic Player getPlayer() {\n\t\treturn null;\n\t}", "public Player getActivePlayer() {\n return activePlayer;\n }", "public Strider getPlayer() {\n return player;\n }", "public DefensivePlayers(){}", "public static EnemyCacheScreen getMe()\n\t{\n\t\treturn me;\n\t}", "public ArrayList<Enemy> getEnemies()\r\n\t{\r\n\t\treturn enemy;\r\n\t}", "public Player getPlayerToOfferTo() {\n return playerToOfferTo;\n }", "@SuppressWarnings(\"unused\")\n public static IHubParkourPlayer getPlayer(Player player) throws NullPointerException {\n if (player == null) {\n throw new NullPointerException(\"Player cannot be null\");\n }\n return CacheManager.getPlayer(player);\n }", "private void greedyEnemySpawner(float enemyCap, IEnemyService spawner, World world, GameData gameData) {\r\n while (enemyCap >= MEDIUM_ENEMY_COST) {\r\n\r\n if (enemyCap >= MEDIUM_ENEMY_COST + BIG_ENEMY_COST) {\r\n spawnBigAndMediumEnemy(spawner, world, gameData);\r\n enemyCap -= MEDIUM_ENEMY_COST + BIG_ENEMY_COST;\r\n\r\n } else if (enemyCap >= BIG_ENEMY_COST) {\r\n spawnBigEnemy(spawner, world, gameData);\r\n enemyCap -= BIG_ENEMY_COST;\r\n\r\n } else {\r\n spawnMediumEnemy(spawner, world, gameData);\r\n enemyCap -= MEDIUM_ENEMY_COST;\r\n }\r\n }\r\n }", "public static EntityPlayer getPlayer() {\n\t\treturn ModLoader.getMinecraftInstance().thePlayer;\n\t}", "public PlayersHolder() {\n randomRoomPlayers = new LinkedBlockingQueue<>();\n freePlayersRoom = new FreePlayers();\n }", "public abstract Player getOpponent();", "@Override\r\n\t/**\r\n\t * Each enemy has a unique health and scales as the game goes along\r\n\t */\r\n\tpublic int enemyHealth() {\n\t\treturn enemyHealth;\r\n\t}", "public Player getPlayer2(){\n return jugador2;\n }", "public Player getActivePlayer() {\n if (getActiveColor() == Piece.COLOR.RED)\n return getRedPlayer();\n else\n return getWhitePlayer();\n }", "public Player getPlayer() {\n\t\t\treturn player;\n\t\t}", "public Piece getCurrPlayer() {\n return this.currPlayer;\n }", "@NotNull\n @Override\n public FPlayer getFPlayer(@NotNull OfflinePlayer player) {\n return new MassiveCoreFactionsPlayer(MPlayer.get(player));\n }", "public PlayerID getPlayer(){\n\t\treturn this.player;\n\t}", "public Player getPlayer() {\n return (roomPlayer);\n }", "public int getPlayer() {\r\n\t\treturn myPlayer;\r\n\t}", "public MapLocation getEnemySwarmCenter() {\n\t\treturn new MapLocation(centerEnemyX, centerEnemyY);\n\t}" ]
[ "0.6210905", "0.6033432", "0.59682715", "0.5957493", "0.5954605", "0.59337705", "0.5872342", "0.58644336", "0.58425087", "0.5826521", "0.58089525", "0.57942873", "0.5788308", "0.57846236", "0.57832706", "0.5777271", "0.57692677", "0.57692677", "0.57444876", "0.57444876", "0.5740398", "0.5726453", "0.57124525", "0.57124525", "0.57124525", "0.57124525", "0.57124525", "0.57039595", "0.56846744", "0.5681549", "0.5675979", "0.567234", "0.5661673", "0.5661251", "0.56577533", "0.56504136", "0.5650054", "0.5649436", "0.56213593", "0.56165284", "0.5612621", "0.5605949", "0.5597248", "0.5597248", "0.55890757", "0.5574086", "0.5567826", "0.5563635", "0.55556434", "0.55488724", "0.5548597", "0.55342144", "0.55321056", "0.55168736", "0.55075896", "0.55067515", "0.5505819", "0.54905784", "0.54880786", "0.5485545", "0.54818475", "0.5474142", "0.5470461", "0.5469915", "0.5469915", "0.5469915", "0.5469915", "0.5469915", "0.5469915", "0.5469915", "0.5466841", "0.5466841", "0.5465121", "0.54443854", "0.5436396", "0.54302865", "0.54296327", "0.5425451", "0.54253584", "0.5419767", "0.54179186", "0.54037637", "0.5402472", "0.53885525", "0.53744423", "0.537321", "0.53729075", "0.5368789", "0.5363624", "0.5338437", "0.5333668", "0.5329997", "0.532727", "0.53267777", "0.5322744", "0.5318697", "0.53167063", "0.53123724", "0.5312044", "0.5311547", "0.5307395" ]
0.0
-1
Returns true if we have all techs needed for given unit (but we may NOT have some of the buildings!).
public static boolean hasTechToProduce(UnitType unitType) { // Needs to have tech TechType techType = TechType.TechTypes.getTechType(unitType.getRequiredTechID()); if (techType != null && techType != TechType.TechTypes.None && !AtlantisTech.isResearched(techType)) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean hasTechAndBuildingsToProduce(UnitType unitType) {\n return hasTechToProduce(unitType) && hasBuildingsToProduce(unitType);\n }", "public static boolean hasBuildingsToProduce(UnitType unitType) {\n\n // Need to have every prerequisite building\n for (Integer unitTypeID : unitType.getRequiredUnits().keySet()) {\n UnitType requiredUnitType = UnitType.getByID(unitTypeID);\n \n// if (requiredUnitType.isLarva()) {\n// continue;\n// }\n// System.out.println(\"=req: \" + requiredUnitType);\n if (!requiredUnitType.isBuilding()) {\n// System.out.println(\" continue\");\n continue;\n }\n \n int requiredAmount = unitType.getRequiredUnits().get(unitTypeID);\n int weHaveAmount = requiredUnitType.isLarva() ? \n SelectUnits.ourLarva().count() : SelectUnits.our().ofType(requiredUnitType).count();\n// System.out.println(requiredUnitType + \" x\" + requiredAmount);\n// System.out.println(\" and we have: \" + weHaveAmount);\n if (weHaveAmount < requiredAmount) {\n return false;\n }\n }\n return true;\n }", "public boolean needUnits(){\n\t\tif(units.size() >= maxUnits){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private boolean hasTools() {\n return hasTools(getAIUnit());\n }", "public boolean canBuildEquipment(EquipmentType equipmentType) {\n for (AbstractGoods requiredGoods : equipmentType.getGoodsRequired()) {\n if (getGoodsCount(requiredGoods.getType()) < requiredGoods.getAmount()) {\n return false;\n }\n }\n return true;\n }", "public boolean canBuild(int numToBuild) \n\t{\n\t\t return (numBuildings+numToBuild) <= MAX_NUM_UNITS;\n\t}", "private static boolean hasTools(AIUnit aiUnit) {\n return aiUnit.getUnit().hasAbility(\"model.ability.improveTerrain\");\n }", "boolean getWary(Unit unit);", "boolean hasUses();", "public boolean hasValidUnitNum() {\n return getTotalUnits() <= 22;\n }", "boolean hasBuild();", "public boolean checkBuildings(){\n\t\tfor(Structure building : this.buildings){\n\t\t\tif(!building.isDestroyed()){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean allMUsSet() {\n\t\tVector meaningUnits = Model.getIllocutionUnitRoots().getMeaningUnits();\n\t\tfor (int i = 0; i < meaningUnits.size(); i++) {\n\t\t\tMeaningUnit mu = (MeaningUnit) meaningUnits.get(i);\n\t\t\tVector sememeGroups = mu.getSememeGroups();\n\t\t\tif (sememeGroups.isEmpty()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean canRent(SportEquipment unit, Map<SportEquipment, Integer> shop) {\n boolean ans = false;\n for (SportEquipment item : shop.keySet()) {\n if (item.equals(unit)) {\n if (shop.get(item) >= 1) {\n ans = true;\n }\n }\n }\n return ans;\n }", "boolean hasSoftware();", "boolean hasFeaturesUsed();", "public boolean hasBUSUNIT() {\n return fieldSetFlags()[0];\n }", "boolean hasManufacturer();", "Unit getHasUnit();", "private boolean isBuilt() {\n\t\t\tif (name == null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (WeaponFlavor flavor: WeaponFlavor.values()) {\n\t\t\t\tif (flavors.get(flavor) == null) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "public boolean hasUnitId() {\n return unitIdBuilder_ != null || unitId_ != null;\n }", "public boolean isIndustrial() {\n return getStructureType() == EquipmentType.T_STRUCTURE_INDUSTRIAL;\n }", "private boolean canBuy(BuildingType x) {\r\n return gameDetails.buildingsStats.get(x).price <= myself.energy;\r\n }", "public boolean isFull() {\n return numOfGoods == cargoSpace;\n }", "public boolean isUseful(Buildable buildable,HashSet<Class> useful){\n Boolean isUseful = false;\n //Iterate through each class in the set, and if the class is the same as the buildable's class, set isUseful to true\n for (Class i: useful\n ) {\n if(i.equals(buildable.getClass())){\n isUseful=true;\n }\n }\n return isUseful;\n }", "public final boolean inUse()\n{\n\tif (_buildTime > 0)\n\t{\n\t\treturn false;\n\t}\n\treturn (_base.getAvailableQuarters() - _rules.getPersonnel() < _base.getUsedQuarters() ||\n\t\t\t_base.getAvailableStores() - _rules.getStorage() < _base.getUsedStores() ||\n\t\t\t_base.getAvailableLaboratories() - _rules.getLaboratories() < _base.getUsedLaboratories() ||\n\t\t\t_base.getAvailableWorkshops() - _rules.getWorkshops() < _base.getUsedWorkshops() ||\n\t\t\t_base.getAvailableHangars() - _rules.getCrafts() < _base.getUsedHangars());\n}", "public final boolean hasDeponents() {\r\n synchronized (f_seaLock) {\r\n return !f_deponents.isEmpty();\r\n }\r\n }", "public static boolean canAfford(UnitType unitType) {\n return hasMinerals(unitType.getMineralPrice()) && hasGas(unitType.getGasPrice());\n }", "public boolean isHealthy() {\r\n boolean healthy = true;\r\n\r\n for (Meter m: meters) {\r\n if (!m.isHealthy()) healthy = false;\r\n }\r\n\r\n return healthy;\r\n }", "boolean hasGoodsType();", "public boolean airportIsBuilt() {\n\t\tif(projectsAvailable.isEmpty() && projectsActive.isEmpty()) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean canAdd(UnitType unitType) {\n return workPlaces > 0\n && unitType.hasSkill()\n && unitType.getSkill() >= minSkill\n && unitType.getSkill() <= maxSkill;\n }", "public boolean hasUnitId() {\n return unitId_ != null;\n }", "public boolean canProvideEquipment(List<EquipmentType> equipment) {\n for (EquipmentType e : equipment) {\n if (!canProvideEquipment(e)) return false;\n }\n return true;\n }", "public boolean hasIndustrialTSM() {\n for (Mounted m : getEquipment()) {\n if ((m.getType() instanceof MiscType) && m.getType().hasFlag(MiscType.F_INDUSTRIAL_TSM)) {\n return true;\n }\n }\n return false;\n }", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "public static boolean hasSubUnits( int nIdUnit )\n {\n return _dao.hasSubUnits( nIdUnit, _plugin );\n }", "public boolean isFullySupplied()\n {\n boolean isFull = !model.needsFuel() || (model.maxFuel == fuel);\n isFull &= (model.maxAmmo == ammo);\n return isFull;\n }", "private boolean hasOnlyStandardUnit() {\n for (int i = 0; i < _elements.length; i++) {\n Unit<?> u = _elements[i]._unit;\n if (!u.isSI())\n return false;\n }\n return true;\n }", "boolean hasUsage();", "boolean hasProduces();", "public boolean hasProduct() {\n return productBuilder_ != null || product_ != null;\n }", "public boolean contains(Unit u)\r\n\t{\r\n\t\treturn units.contains(u);\r\n\t}", "public boolean isUnit() {\n\t\tboolean unit = false;\n\t\tif(this.head == null){\n\t\t\treturn true;\n\t\t}\n\t\tif(Math.pow(this.head.factor, this.head.power) == 1.0){\n\t\t\tunit = true;\n\t\t}\n\t\treturn unit;\n\t}", "boolean canBuildDome(Tile t);", "public boolean isValid() {\n return super.isValid()\n && getUnit().isPerson()\n && checkTileImprovementPlan(tileImprovementPlan)\n && (hasTools() || checkColonyForTools(getAIUnit(), colonyWithTools));\n }", "private boolean constrainedOnValidUnitName(String unitNameWithoutPrefix){\n if(unitNameWithoutPrefix.isEmpty())\n return false;\n\n return unitsDataModel != null && unitsDataModel.getUnitsContentQuerier().containsUnit(unitNameWithoutPrefix);\n }", "public boolean canProvideEquipment(EquipmentType equipmentType) {\n for (AbstractGoods goods : equipmentType.getGoodsRequired()) {\n int available = getGoodsCount(goods.getType());\n \n int breedingNumber = goods.getType().getBreedingNumber();\n if (breedingNumber != GoodsType.INFINITY) {\n available -= breedingNumber;\n }\n \n if (available < goods.getAmount()) return false;\n }\n return true;\n }", "private boolean roomShouldHaveMonsters() {\n return contents.contains(roomContents.MONSTERS)\n || contents.contains(roomContents.EXPLORATION)\n || contents.contains(roomContents.KEY)\n || contents.contains(roomContents.FINAL_KEY);\n }", "public Boolean isFull() {\n\t\tif (this.mVehicles.size() == this.mCapacity)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "private boolean checkMultipleUnitEdit() {\r\n\t\tboolean flag=false;\r\n\t\tfor(UIUnitType model:uiUnitType.getUnitValueList()){\r\n\t\t\tif(model.isInputDisplayItem()){\r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "private boolean hasCapacity() {\n int used = 0 + evaluations.size() * 2;\n int available = Runtime.getRuntime().availableProcessors() * ServerRunner.getProcessorMultiplier();\n return used < available;\n }", "boolean hasUnitId();", "private boolean isAvailable() {\n\t\tfor (int i = 0; i < lawsuitsAsClaimant.size(); i++) {\n\t\t\tif (lawsuitsAsClaimant.get(i).isActive()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Check lawsuits as Defendant\n\t\tfor (int i = 0; i < lawsuitsAsDefendant.size(); i++) {\n\t\t\tif (lawsuitsAsDefendant.get(i).isActive()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean isAvailable(){\r\n // return statement\r\n return (veh == null);\r\n }", "private boolean hasRequirements() {\n \t\tif (checkHasRequirements) {\n \t\t\thasRequirements = pullRequired(requiredInput, false);\n \t\t\tcheckHasRequirements = false;\n \t\t}\n \t\treturn hasRequirements;\n \t}", "public boolean hasBUSUNITID() {\n return fieldSetFlags()[4];\n }", "@Override\n\tpublic boolean isComplete() {\n\t\tboolean empties = nbEmptyMetrics == 0;\n\t\t// 2. all submetrics are complete\n\t\tboolean subs = true;\n\t\tfor (AbstractMetric m : metrics)\n\t\t\tsubs = subs && m.isComplete();\n\t\t// 3. the sum of weights is 1\n\t\tdouble weight = 0;\n\t\tfor (int i = 0; i < metrics.size(); i++)\n\t\t\tweight += this.weight.get(i);\n\t\tboolean sum = weight == 1.0;\n\t\treturn empties && subs && sum;\n\t}", "private boolean hasSubComponents( PartNoKey aPartNo ) {\n DataSetArgument lArgs = new DataSetArgument();\n lArgs.add( aPartNo, \"aPartNoDbId\", \"aPartNoId\" );\n\n DataSet lDs = QueryExecutor.executeQuery( sDatabaseConnectionRule.getConnection(),\n \"com.mxi.mx.web.query.part.getSubComponentsByPart\", lArgs );\n\n if ( lDs.isEmpty() ) {\n return false;\n }\n\n return true;\n }", "boolean hasCapacity();", "public boolean isFull(){\n\t\tfor(int i = 0; i < INVENTORY_SLOTS; i++){\n\t\t\tif(inventoryItems[i] == null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean checkAvailability(int num_used) {\n return num_used != this.num_uses;\n }", "public boolean perdu() {\r\n return this.robots.isEmpty();\r\n }", "boolean hasGeoTargets();", "boolean hasQuantity();", "protected boolean canAccept(RequiredSpecs specs){\r\n\t\tif(getMemory() > specs.getMemory() && getCpu() > specs.getCpu()){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean hasOverallSampling() {\n return overallSamplingBuilder_ != null || overallSampling_ != null;\n }", "public static boolean hasProcessRequiringWork(Building manufacturingBuilding, int skill) {\n\n\t\tboolean result = false;\n\n\t\tIterator<ManufactureProcess> i = manufacturingBuilding.getManufacture().getProcesses().iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tManufactureProcess process = i.next();\n\t\t\tboolean workRequired = (process.getWorkTimeRemaining() > 0D);\n\t\t\tboolean skillRequired = (process.getInfo().getSkillLevelRequired() <= skill);\n\t\t\tif (workRequired && skillRequired)\n\t\t\t\tresult = true;\n\t\t}\n\n\t\treturn result;\n\t}", "private boolean isAllTestsRun() {\n Collection<TestPackage> pkgs = getTestPackages();\n for (TestPackage pkg : pkgs) {\n if (!pkg.isAllTestsRun()) {\n return false;\n }\n }\n return true;\n }", "public boolean hasAll() {\n return allBuilder_ != null || all_ != null;\n }", "public boolean hasAll() {\n return allBuilder_ != null || all_ != null;\n }", "public boolean hasTourists() {\n return touristsBuilder_ != null || tourists_ != null;\n }", "boolean hasBillingSetup();", "private boolean hasGoodwill(MaintenanceRequest maintenanceRequest){\n\t\tMaintenanceRequestTask task = null;\n\t\tboolean isGoodwill = false;\n\t\t\n\t\tif(!MALUtilities.isEmpty(maintenanceRequest.getMrqMrqId())){\n\t\t\tisGoodwill = true;\n\t\t}\n\t\t\t\t\n\t\tfor (Iterator<MaintenanceRequestTask> mrt = maintenanceRequest.getMaintenanceRequestTasks().iterator(); mrt.hasNext() && !isGoodwill;){\n\t\t\ttask = (MaintenanceRequestTask)mrt.next();\n\t\t\tif(!(MALUtilities.isEmpty(task.getGoodwillCost()) || task.getGoodwillCost().compareTo(new BigDecimal(0)) < 1)){\n\t\t\t\tisGoodwill = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\treturn isGoodwill;\n\t}", "public boolean hasIllegalGoods() {\n return cargoHold.hasIllegalGoods();\n }", "public boolean enoughSpaceToBuy(Player p, int numGoods) {\n // check size of cargoArr\n return numGoods <= p.getShip().numOpenSlots();\n }", "private void checkBuildHouse() {\n\t\tdouble moneyToSpend = calculateMoneyToSpend();\n\t\tif(moneyToSpend > 0) {\n\t\t\tArrayList<PropertyCard> cardsToBuildOn = new ArrayList<>();\n\t\t\tfor(PropertyCard c: getCards()) {\n\t\t\t\tif(isCollectionFull(c)) {\n\t\t\t\t\tcardsToBuildOn.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Sorts so that the most expensive properties are at the start\n\t\t\tCollections.sort(cardsToBuildOn, Collections.reverseOrder());\n\t\t\tint moneySpent = 0;\n\t\t\tfor(PropertyCard c: cardsToBuildOn) {\n\t\t\t\twhile(c.getHousePrice()+moneySpent<=moneyToSpend && c.hasSpaceForHouse()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, getName()+ \" built a house on \" + c.getName());\n\t\t\t\t\tbuildHouse(c);\n\t\t\t\t\tmoneySpent+=c.getHousePrice();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "boolean isUsed();", "boolean isUsed();", "public boolean hasTangents() {\n if (tangents != null) {\n return tangents.length > 0;\n }\n return false;\n }", "boolean getEntrench(Unit unit);", "boolean isAlive(Unit unit);", "public boolean isComplete()\n {\n return (name != null) && (spacecraft != null) &&\n (sensor != null) && (description != null);\n }", "private boolean hasShadowedCompulationUnit(ICompilationUnit unit, String swcPath)\n {\n List<IDefinition> definitionPromises = unit.getDefinitionPromises(); \n if (definitionPromises == null || definitionPromises.size() == 0)\n return false;\n\n ASProjectScope scope = getScope();\n Set<IDefinition> toDefs = scope.getShadowedDefinitions(definitionPromises.get(0));\n if (toDefs != null)\n {\n for (IDefinition def : toDefs)\n {\n ICompilationUnit shadowedUnit = scope.getCompilationUnitForDefinition(def);\n \n // Test if a shadowed unit is in the same swc.\n if (swcPath.equals(shadowedUnit.getAbsoluteFilename()))\n {\n return true;\n }\n }\n }\n \n return false;\n }", "public boolean isSetBusinessUnit() {\n return this.businessUnit != null;\n }", "private static boolean checkColonyForTools(AIUnit aiUnit, Colony colony) {\n return colony != null\n && !colony.isDisposed()\n && colony.getOwner() == aiUnit.getUnit().getOwner()\n && colony.canProvideEquipment(Unit.Role.PIONEER\n .getRoleEquipment(colony.getSpecification()));\n }", "public boolean checkPlantCanHarvest() {\n\t\tint l = 0;//check Harvest\n\t\tfor(Plant p : getListofplant()){\n\t\t\tif(p.canHarvest()){\n\t\t\t\tl++;\n\t\t\t}\n\t\t}\n\t\tif(l == 0){\n\t\t\treturn false;\n\t\t}\n\t\telse return true;\n\t}", "public boolean hasChameleonShield() {\n for (Mounted mEquip : getMisc()) {\n MiscType mtype = (MiscType) mEquip.getType();\n if (mtype.hasFlag(MiscType.F_CHAMELEON_SHIELD)) {\n // The Mek has Chameleon Light Polarization Field\n return true;\n }\n }\n return false;\n }", "boolean hasIsPerformOf();", "public boolean isFull() \n\t{\n\t\tif (this.numIngredients==ingredients.length())\n\t\t\treturn true;\n\t\t\n\t\telse\n\t\t\treturn false;\n\t}", "public static boolean isSomethingToAttackDefined() {\n\t\treturn _attackTargetUnit != null && !_attackTargetUnit.getType().isOnGeyser();\n\t}", "public final boolean canUse(){\n\t\tmaintain();\n\t\t//check if grown if not try to grow\n\t\tif(grown){\t\n\t\t\tif(host.getStrength()>USE_COST){\n\t\t\t\thost.expend(USE_COST);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thost.expend(host.getStrength());\n\t\t\t}\n\t\t}\n\t\telse{\t\t\t\n\t\t\tcanGrow(host, this);\n\t\t}\t\n\t\treturn false;\n\t}", "public boolean isSomethingBuyable(GameClient game){\n for(Level l : Level.values()){\n for(ColorDevCard c : ColorDevCard.values()){\n try {\n NumberOfResources cost = dashBoard[l.ordinal()][c.ordinal()].getCost();\n cost = cost.safe_sub(game.getMe().getDiscounted());\n game.getMe().getDepots().getResources().sub(cost);\n return true;\n } catch (OutOfResourcesException | NullPointerException ignored) {}\n }\n }\n return false;\n }", "public boolean isInterestedInAllItems();", "boolean isItEmpty(){\n\t\t\tif (this.items.isEmpty() && (this.receptacle.isEmpty() || findSpecialtyContainers())){//if there's nothing in there.\n\t\t\t\tSystem.out.println(\"\\nThere's nothing here to do anything with.\");\n\t\t\t\treturn true;}\n\t\t\treturn false;\n\t\t}", "private boolean hasTrainPassed(Train train){\n\t\tif (train==null)\n\t\t\treturn true;\n\t\tfor (Car c : cars)\n\t\t\tfor (Car c2 : train.getCars())\n\t\t\t\tfor (Point2D.Float p : c.getPoints())\n\t\t\t\t\tif (c2.contains(p))\n\t\t\t\t\t\treturn false;\n\t\treturn true;\n\t}" ]
[ "0.7459601", "0.7384629", "0.6813257", "0.64556473", "0.6348037", "0.631412", "0.62958854", "0.62369466", "0.6218536", "0.61616313", "0.6149052", "0.6128578", "0.6031334", "0.6029038", "0.6015781", "0.6009328", "0.60007477", "0.5993997", "0.599141", "0.5989987", "0.5958898", "0.5911914", "0.58796626", "0.58779776", "0.58737844", "0.586277", "0.5858478", "0.58361924", "0.5786332", "0.57702905", "0.5762115", "0.57461107", "0.5701505", "0.5696765", "0.5694797", "0.5686032", "0.5686032", "0.5686032", "0.5686032", "0.5686032", "0.5679918", "0.5676747", "0.56673247", "0.5666141", "0.5664901", "0.5634934", "0.5612031", "0.56055075", "0.55856264", "0.5547264", "0.55333465", "0.55318975", "0.55106443", "0.5508144", "0.55076194", "0.5507286", "0.5504173", "0.5494511", "0.5483216", "0.5461605", "0.5453982", "0.54333526", "0.5410793", "0.5407437", "0.5406342", "0.53976065", "0.53967375", "0.53873384", "0.5380807", "0.5376965", "0.5370683", "0.5367713", "0.5365115", "0.5364836", "0.5364836", "0.53642714", "0.5360624", "0.5352276", "0.53521305", "0.53506565", "0.53460634", "0.53409946", "0.53409946", "0.5336018", "0.5332095", "0.532906", "0.53236026", "0.5321585", "0.5320811", "0.53184813", "0.5312305", "0.5306355", "0.5304202", "0.52968574", "0.52909285", "0.5278751", "0.5277717", "0.5272649", "0.52667344", "0.52644444" ]
0.7010665
2
Returns true if we have all buildings needed for given unit.
public static boolean hasBuildingsToProduce(UnitType unitType) { // Need to have every prerequisite building for (Integer unitTypeID : unitType.getRequiredUnits().keySet()) { UnitType requiredUnitType = UnitType.getByID(unitTypeID); // if (requiredUnitType.isLarva()) { // continue; // } // System.out.println("=req: " + requiredUnitType); if (!requiredUnitType.isBuilding()) { // System.out.println(" continue"); continue; } int requiredAmount = unitType.getRequiredUnits().get(unitTypeID); int weHaveAmount = requiredUnitType.isLarva() ? SelectUnits.ourLarva().count() : SelectUnits.our().ofType(requiredUnitType).count(); // System.out.println(requiredUnitType + " x" + requiredAmount); // System.out.println(" and we have: " + weHaveAmount); if (weHaveAmount < requiredAmount) { return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkBuildings(){\n\t\tfor(Structure building : this.buildings){\n\t\t\tif(!building.isDestroyed()){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static boolean hasTechAndBuildingsToProduce(UnitType unitType) {\n return hasTechToProduce(unitType) && hasBuildingsToProduce(unitType);\n }", "boolean hasBuild();", "public boolean canBuild(int numToBuild) \n\t{\n\t\t return (numBuildings+numToBuild) <= MAX_NUM_UNITS;\n\t}", "public boolean needUnits(){\n\t\tif(units.size() >= maxUnits){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean airportIsBuilt() {\n\t\tif(projectsAvailable.isEmpty() && projectsActive.isEmpty()) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean hasAll() {\n return allBuilder_ != null || all_ != null;\n }", "public boolean hasAll() {\n return allBuilder_ != null || all_ != null;\n }", "private boolean isBuilt() {\n\t\t\tif (name == null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (WeaponFlavor flavor: WeaponFlavor.values()) {\n\t\t\t\tif (flavors.get(flavor) == null) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "public boolean isFull() {\n return numOfGoods == cargoSpace;\n }", "private void checkBuildHouse() {\n\t\tdouble moneyToSpend = calculateMoneyToSpend();\n\t\tif(moneyToSpend > 0) {\n\t\t\tArrayList<PropertyCard> cardsToBuildOn = new ArrayList<>();\n\t\t\tfor(PropertyCard c: getCards()) {\n\t\t\t\tif(isCollectionFull(c)) {\n\t\t\t\t\tcardsToBuildOn.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Sorts so that the most expensive properties are at the start\n\t\t\tCollections.sort(cardsToBuildOn, Collections.reverseOrder());\n\t\t\tint moneySpent = 0;\n\t\t\tfor(PropertyCard c: cardsToBuildOn) {\n\t\t\t\twhile(c.getHousePrice()+moneySpent<=moneyToSpend && c.hasSpaceForHouse()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, getName()+ \" built a house on \" + c.getName());\n\t\t\t\t\tbuildHouse(c);\n\t\t\t\t\tmoneySpent+=c.getHousePrice();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean increaseBuildings() {\r\n\t\tif ((this.buildings + 1) <= TOTAL_BUILDINGS) {\r\n\t\t\tthis.buildings = this.buildings + 1;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean isBuilt()\n {\n return (dbMap != null);\n }", "public boolean isBuilt()\n {\n return (dbMap != null);\n }", "public boolean isBuilt()\r\n {\r\n return (dbMap != null);\r\n }", "public boolean hasUnitId() {\n return unitIdBuilder_ != null || unitId_ != null;\n }", "public boolean hasAll() {\n return all_ != null;\n }", "public boolean hasAll() {\n return all_ != null;\n }", "public boolean hasValidUnitNum() {\n return getTotalUnits() <= 22;\n }", "@Override\n\tpublic boolean isComplete() {\n\t\tboolean empties = nbEmptyMetrics == 0;\n\t\t// 2. all submetrics are complete\n\t\tboolean subs = true;\n\t\tfor (AbstractMetric m : metrics)\n\t\t\tsubs = subs && m.isComplete();\n\t\t// 3. the sum of weights is 1\n\t\tdouble weight = 0;\n\t\tfor (int i = 0; i < metrics.size(); i++)\n\t\t\tweight += this.weight.get(i);\n\t\tboolean sum = weight == 1.0;\n\t\treturn empties && subs && sum;\n\t}", "@java.lang.Override\n public boolean hasBuild() {\n return instance.hasBuild();\n }", "private boolean isTreeFull() {\n // The number of leaf nodes required to store the whole vector\n // (each leaf node stores 32 elements).\n int requiredLeafNodes = (totalSize >>> 5);\n\n // The maximum number of leaf nodes we can have in a tree of this\n // depth (each interior node stores 32 children).\n int maxLeafNodes = (1 << treeDepth);\n\n return (requiredLeafNodes > maxLeafNodes);\n }", "public boolean isComplete()\n {\n return (name != null) && (spacecraft != null) &&\n (sensor != null) && (description != null);\n }", "public static boolean isFinishedCity()\r\n {\r\n try\r\n {\r\n Building b = astApp.getBuildings().get( astApp.getBuildings().size() - 1 );\r\n \r\n if( b.getBuilding().getXLocation() + b.getBuilding().getWidth() >= 700 )\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }\r\n catch( ArrayIndexOutOfBoundsException e )\r\n {\r\n return false;\r\n }\r\n }", "private boolean allMUsSet() {\n\t\tVector meaningUnits = Model.getIllocutionUnitRoots().getMeaningUnits();\n\t\tfor (int i = 0; i < meaningUnits.size(); i++) {\n\t\t\tMeaningUnit mu = (MeaningUnit) meaningUnits.get(i);\n\t\t\tVector sememeGroups = mu.getSememeGroups();\n\t\t\tif (sememeGroups.isEmpty()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public Boolean isFull() {\n\t\tif (this.mVehicles.size() == this.mCapacity)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public final boolean hasDeponents() {\r\n synchronized (f_seaLock) {\r\n return !f_deponents.isEmpty();\r\n }\r\n }", "public boolean checkIfFull() {\n this.isFull = true;\n for(int i=0; i<this.size; i++) {\n for(int j=0; j<this.size; j++) if(this.state[i][j].isEmpty) this.isFull = false;\n }\n }", "public boolean isUseful(Buildable buildable,HashSet<Class> useful){\n Boolean isUseful = false;\n //Iterate through each class in the set, and if the class is the same as the buildable's class, set isUseful to true\n for (Class i: useful\n ) {\n if(i.equals(buildable.getClass())){\n isUseful=true;\n }\n }\n return isUseful;\n }", "private boolean hasTools() {\n return hasTools(getAIUnit());\n }", "private boolean isComplete() {\n for (boolean b : bitfield) {\n if (!b) {\n return false;\n }\n }\n return true;\n }", "boolean getWary(Unit unit);", "public boolean isEmpty() {\n return unitChanges == null || unitChanges.isEmpty();\n }", "Unit getHasUnit();", "public boolean isComplete() {\n\t\tboolean complete = false;\n\t\tcomplete = !(hasInstInQueue());\n\n\t\tfor (int i = 0; i < MemReservationTomasulo.length && complete; i++) {\n\t\t\tcomplete = !MemReservationTomasulo[i].isBusy();\n\t\t}\n\n\t\tfor (int i = 0; i < alu_rsTomasulo.length && complete; i++) {\n\t\t\tcomplete = !alu_rsTomasulo[i].isBusy();\n\t\t}\n\n\t\treturn complete;\n\t}", "public boolean isFull() {\n for (int r = 0; r < 6; r++) {\n for (int c = 0; c < 7; c++) {\n if (!hasPiece(r, c)) {\n return false;\n }\n }\n }\n return true;\n }", "boolean hasAll();", "boolean hasAll();", "public boolean availableSquare(Location location)\n {\n boolean available = false;\n if(countTrees() + countGrasses() <= 10) {\n available = true;\n }\n return available;\n }", "boolean complete() {\n\t\tint sizes = 1;\n\n\t\tfor (int i = 0; i <= matrix.length - 1; i++) {\n\t\t\tfor (int j = 4; j >= sizes; j--) {\n\t\t\t\tint cost = getCost(i,j);\n\t\t\t\tif (cost == 0) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsizes = sizes + 1;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isFull() \n\t{\n\t\tif (this.numIngredients==ingredients.length())\n\t\t\treturn true;\n\t\t\n\t\telse\n\t\t\treturn false;\n\t}", "public boolean isEmpty() {\n\t\tboolean empty = true;\n\n\t\tfor(LinkedList<Passenger> queue : queues) { // loop through each queue to see if its empty.\n\t\t\tif(!queue.isEmpty()){\n\t\t\t\tempty = false;\n\t\t\t}\n \t}\n\t\treturn empty;\n }", "public boolean isEmpty(){\n\t\treturn ( startQueue.isEmpty() && finishQueue.isEmpty() && completedRuns.isEmpty() );\n\t}", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasOccupation();", "boolean hasNumberOfTasksDeterminingBuildDuration();", "public boolean isBuildingNeeded(org.eclipse.emf.common.util.URI uri) {\n\t\treturn false;\n\t}", "public boolean isBuildingNeeded(org.eclipse.emf.common.util.URI uri) {\n\t\treturn false;\n\t}", "public boolean isComplete() {\n return addedFrontWork.size() == 0 && addedBackWork.size() == 0 && sawAllDone.get();\n }", "public boolean hasPieces() {\n return !(pieces.isEmpty());\n }", "boolean hasUses();", "public boolean contains(Unit u)\r\n\t{\r\n\t\treturn units.contains(u);\r\n\t}", "public boolean isFull() {\n return this.chromosomes.size() >= Defines.popSize;\n }", "public static boolean hasTechToProduce(UnitType unitType) {\n\n // Needs to have tech\n TechType techType = TechType.TechTypes.getTechType(unitType.getRequiredTechID());\n if (techType != null && techType != TechType.TechTypes.None && !AtlantisTech.isResearched(techType)) {\n return false;\n }\n\n return true;\n }", "public boolean isFull() {\n int size = 0;\n for (int i = 0; i < items.length; i++) {\n if (items[i] != null) {\n size++;\n }\n }\n return size == items.length;\n }", "public boolean allCalculationsDone() {\r\n return progressBarMap.isEmpty();\r\n }", "public final boolean inUse()\n{\n\tif (_buildTime > 0)\n\t{\n\t\treturn false;\n\t}\n\treturn (_base.getAvailableQuarters() - _rules.getPersonnel() < _base.getUsedQuarters() ||\n\t\t\t_base.getAvailableStores() - _rules.getStorage() < _base.getUsedStores() ||\n\t\t\t_base.getAvailableLaboratories() - _rules.getLaboratories() < _base.getUsedLaboratories() ||\n\t\t\t_base.getAvailableWorkshops() - _rules.getWorkshops() < _base.getUsedWorkshops() ||\n\t\t\t_base.getAvailableHangars() - _rules.getCrafts() < _base.getUsedHangars());\n}", "public boolean isFullySupplied()\n {\n boolean isFull = !model.needsFuel() || (model.maxFuel == fuel);\n isFull &= (model.maxAmmo == ammo);\n return isFull;\n }", "public final boolean hasDependents() {\r\n synchronized (f_seaLock) {\r\n return !f_dependents.isEmpty();\r\n }\r\n }", "public boolean hasUnitId() {\n return unitId_ != null;\n }", "public boolean hasBUSUNIT() {\n return fieldSetFlags()[0];\n }", "boolean isItEmpty(){\n\t\t\tif (this.items.isEmpty() && (this.receptacle.isEmpty() || findSpecialtyContainers())){//if there's nothing in there.\n\t\t\t\tSystem.out.println(\"\\nThere's nothing here to do anything with.\");\n\t\t\t\treturn true;}\n\t\t\treturn false;\n\t\t}", "public boolean isFull() {\n\t\t\n\t\tif (currentOccup < maxOccup)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "private boolean hasShadowedCompulationUnit(ICompilationUnit unit, String swcPath)\n {\n List<IDefinition> definitionPromises = unit.getDefinitionPromises(); \n if (definitionPromises == null || definitionPromises.size() == 0)\n return false;\n\n ASProjectScope scope = getScope();\n Set<IDefinition> toDefs = scope.getShadowedDefinitions(definitionPromises.get(0));\n if (toDefs != null)\n {\n for (IDefinition def : toDefs)\n {\n ICompilationUnit shadowedUnit = scope.getCompilationUnitForDefinition(def);\n \n // Test if a shadowed unit is in the same swc.\n if (swcPath.equals(shadowedUnit.getAbsoluteFilename()))\n {\n return true;\n }\n }\n }\n \n return false;\n }", "public boolean isFull(){\n\t\tfor(int i = 0; i < INVENTORY_SLOTS; i++){\n\t\t\tif(inventoryItems[i] == null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean checkNotDone() {\n boolean notDone = false;\n blocksPut = 0;\n \n for(int y = 0; y < buildHeight+1; y++) {\n for(int z = 0; z < buildSize; z++) {\n for(int x = 0; x < buildSize; x++) {\n if(myIal.lookBlock(x, y, z).equals(\"air\")) {\n notDone = true;\n } else {\n blocksPut++;\n }\n }\n }\n }\n\n return notDone;\n }", "private boolean hasCapacity() {\n int used = 0 + evaluations.size() * 2;\n int available = Runtime.getRuntime().availableProcessors() * ServerRunner.getProcessorMultiplier();\n return used < available;\n }", "boolean hasGeoTargets();", "boolean hasCompleteStore();", "private boolean canRent(SportEquipment unit, Map<SportEquipment, Integer> shop) {\n boolean ans = false;\n for (SportEquipment item : shop.keySet()) {\n if (item.equals(unit)) {\n if (shop.get(item) >= 1) {\n ans = true;\n }\n }\n }\n return ans;\n }", "public boolean isFull() {\r\n return solutions().size() == maxSize;\r\n }", "boolean isFullHouse();", "public boolean isHealthy() {\r\n boolean healthy = true;\r\n\r\n for (Meter m: meters) {\r\n if (!m.isHealthy()) healthy = false;\r\n }\r\n\r\n return healthy;\r\n }", "public boolean isFullyCovered() {\n for (boolean i:mCovered) {\n if (!i) return false;\n }\n return true;\n }", "public boolean is_full(){\n return this.habitant.size() >= Constantes.HOUSE_FULL;\n }", "private boolean canBuy(BuildingType x) {\r\n return gameDetails.buildingsStats.get(x).price <= myself.energy;\r\n }", "public boolean checkFull() {\n\t\tif (studlist.size() == maxstudents) {\n\t\t\tfull = true;\n\t\t}\n\t\treturn full;\n\t}", "private boolean isAllTestsRun() {\n Collection<TestPackage> pkgs = getTestPackages();\n for (TestPackage pkg : pkgs) {\n if (!pkg.isAllTestsRun()) {\n return false;\n }\n }\n return true;\n }", "boolean isFinished() {\n\t\tif (this.currentRoom.isExit() && this.currentRoom.getMonsters().isEmpty()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isFull(){\r\n\t\tfor(int i = 0; i < boardSize; i++){\r\n\t\t\tif(board[i] == Box.EMPTY){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isFull() {\r\n return placeCounter == dimension * dimension;\r\n }", "public boolean isValid() {\n\t\t//for every city\n\t\tfor(int i = 0; i < numKingdoms; i++) {\n\t\t\t//check its adjacency list\n\t\t\tfor(int j = 0; j < numKingdoms; j++) {\n\n\t\t\t\t//if reachable from i and if j has been conquered\n\t\t\t\tif(cost[i][j] > 0 && conquered.contains(j)) {\n\t\t\t\t\t//yes, this city has been conquered\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private boolean roomShouldHaveMonsters() {\n return contents.contains(roomContents.MONSTERS)\n || contents.contains(roomContents.EXPLORATION)\n || contents.contains(roomContents.KEY)\n || contents.contains(roomContents.FINAL_KEY);\n }", "public boolean isFull() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (getBoard()[i][j] == null)\n return false;\n }\n }\n return true;\n }", "public boolean buildBuilding(String buildingType) {\n\t\tString type = buildingType.toLowerCase();\n\t\tthis.gc.placeBuilding(type);\n\n\t\tboolean placementSuccesfull = this.gc.isPlacementSuccesfull();\n\n\t\treturn placementSuccesfull;\n\n\t}", "public boolean canBuildNextStage() {\r\n\t\tSystem.out.print(\"Checking if \" + stages[stagesCompleted]\r\n\t\t\t\t+ \" can be built:\");\r\n\t\tSimpleResList costSRL = SimpleResList\r\n\t\t\t\t.buildCostList(stages[stagesCompleted]);\r\n\t\tSystem.out\r\n\t\t\t\t.println((canBuildStage(stages[stagesCompleted], costSRL) ? \" true \"\r\n\t\t\t\t\t\t: \" false \"));\r\n\t\t// TODO needs code to see if there is enough money to buy the goods from\r\n\t\t// the neighbors(if they have the goods).....look buildCommandOptions\r\n\t\treturn canBuildStage(stages[stagesCompleted], costSRL); // this is only\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// checking to\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// see if this\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// board can\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// afford it\r\n\t}", "public boolean hasOverallSampling() {\n return overallSamplingBuilder_ != null || overallSampling_ != null;\n }", "private static boolean hasTools(AIUnit aiUnit) {\n return aiUnit.getUnit().hasAbility(\"model.ability.improveTerrain\");\n }", "public static boolean hasProcessRequiringWork(Building manufacturingBuilding, int skill) {\n\n\t\tboolean result = false;\n\n\t\tIterator<ManufactureProcess> i = manufacturingBuilding.getManufacture().getProcesses().iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tManufactureProcess process = i.next();\n\t\t\tboolean workRequired = (process.getWorkTimeRemaining() > 0D);\n\t\t\tboolean skillRequired = (process.getInfo().getSkillLevelRequired() <= skill);\n\t\t\tif (workRequired && skillRequired)\n\t\t\t\tresult = true;\n\t\t}\n\n\t\treturn result;\n\t}", "private boolean ifFull() {\n return items.length == size;\n }", "public boolean isOccupied() {\n return piece != null;\n }", "public boolean wasBuilt() {\n \t\treturn triggerForLastBuild != -1;\n \t}", "private boolean boardIsFull() {\n int numberOfFieldsOnBoard = boardSize * boardSize;\n return (numberOfFieldsOnBoard == this.numberOfOccupiedFields);\n }", "public boolean isSuccessful() {\r\n return isTargetTemplateSetPresent() && missing.isEmpty();\r\n }", "public boolean isCompleted()\n\t{\n\t\treturn pieces.length == existing.cardinality();\n\t}", "public boolean canBuildEquipment(EquipmentType equipmentType) {\n for (AbstractGoods requiredGoods : equipmentType.getGoodsRequired()) {\n if (getGoodsCount(requiredGoods.getType()) < requiredGoods.getAmount()) {\n return false;\n }\n }\n return true;\n }", "public boolean isEmpty(){\n\t\treturn isPassable&&!containsItems()&&!containsMonster()&&tileItems.noGold();\r\n\t}" ]
[ "0.69554347", "0.686156", "0.6779698", "0.65610933", "0.65174574", "0.63659847", "0.624116", "0.624116", "0.6214262", "0.6175303", "0.6032179", "0.60076", "0.5985433", "0.5985433", "0.59054095", "0.58888125", "0.5873359", "0.5873359", "0.58515775", "0.5826989", "0.5807363", "0.57845354", "0.5765689", "0.5763515", "0.5759586", "0.5750617", "0.5746745", "0.5745039", "0.57391125", "0.573606", "0.5733102", "0.5721278", "0.5711574", "0.57040083", "0.57012683", "0.56984425", "0.56720614", "0.56720614", "0.56670916", "0.5663767", "0.5658539", "0.5658173", "0.5657437", "0.56515753", "0.56515753", "0.56515753", "0.56515753", "0.56515753", "0.5650068", "0.56383944", "0.56383944", "0.5632821", "0.5615833", "0.5602768", "0.55987793", "0.55933756", "0.55814165", "0.55792433", "0.5571415", "0.556297", "0.5557197", "0.55424976", "0.5535188", "0.5530155", "0.5504943", "0.54972845", "0.5486269", "0.5482076", "0.54770964", "0.5474801", "0.5470484", "0.5470014", "0.5468218", "0.5467433", "0.54646677", "0.5464424", "0.54616904", "0.54551506", "0.5453561", "0.5451673", "0.5438707", "0.54364383", "0.54317856", "0.5428022", "0.5425131", "0.5422816", "0.5418803", "0.54106134", "0.5408476", "0.5397211", "0.53972083", "0.5378456", "0.53741014", "0.537258", "0.53709215", "0.5370833", "0.5370042", "0.5366106", "0.5356986", "0.53564453" ]
0.779495
0
Returns true if it's possible to produce unit (or building) of given type.
public static boolean hasTechAndBuildingsToProduce(UnitType unitType) { return hasTechToProduce(unitType) && hasBuildingsToProduce(unitType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean hasBuildingsToProduce(UnitType unitType) {\n\n // Need to have every prerequisite building\n for (Integer unitTypeID : unitType.getRequiredUnits().keySet()) {\n UnitType requiredUnitType = UnitType.getByID(unitTypeID);\n \n// if (requiredUnitType.isLarva()) {\n// continue;\n// }\n// System.out.println(\"=req: \" + requiredUnitType);\n if (!requiredUnitType.isBuilding()) {\n// System.out.println(\" continue\");\n continue;\n }\n \n int requiredAmount = unitType.getRequiredUnits().get(unitTypeID);\n int weHaveAmount = requiredUnitType.isLarva() ? \n SelectUnits.ourLarva().count() : SelectUnits.our().ofType(requiredUnitType).count();\n// System.out.println(requiredUnitType + \" x\" + requiredAmount);\n// System.out.println(\" and we have: \" + weHaveAmount);\n if (weHaveAmount < requiredAmount) {\n return false;\n }\n }\n return true;\n }", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "public static boolean hasTechToProduce(UnitType unitType) {\n\n // Needs to have tech\n TechType techType = TechType.TechTypes.getTechType(unitType.getRequiredTechID());\n if (techType != null && techType != TechType.TechTypes.None && !AtlantisTech.isResearched(techType)) {\n return false;\n }\n\n return true;\n }", "public boolean canBuild(Vertex vertex, int type) {\n \t\tif (type == Vertex.TOWN && towns >= MAX_TOWNS)\n \t\t\treturn false;\n \t\telse if (type == Vertex.CITY && cities >= MAX_CITIES)\n \t\t\treturn false;\n \n \t\treturn vertex.canBuild(this, type, board.isSetupPhase());\n \t}", "public static boolean canAfford(UnitType unitType) {\n return hasMinerals(unitType.getMineralPrice()) && hasGas(unitType.getGasPrice());\n }", "public boolean canAdd(UnitType unitType) {\n return workPlaces > 0\n && unitType.hasSkill()\n && unitType.getSkill() >= minSkill\n && unitType.getSkill() <= maxSkill;\n }", "public boolean isValidForType(Type t) {\n\t\tswitch (t) {\n\t\t\tcase BOOLEAN: if ((this==INCREMENT)||(this==DECREMENT)) return false;\n\t\t\tdefault: return true;\n\t\t}\n\t}", "boolean isSupportedType(String type) {\n // No bigBed support yet (but it's coming).\n if (type.startsWith(\"bigBed\")) {\n return false;\n }\n \n // No bigWig support yet (but it's coming).\n if (type.startsWith(\"bigWig\")) {\n return false;\n }\n \n // Actual data is contained in an external file, but the file is identified by a number, not a path.\n if (type.startsWith(\"wigMaf\")) {\n return false;\n }\n \n // We can probably the support BAM, but not implemented yet.\n if (type.equals(\"bam\")) {\n return false;\n }\n \n // Not one of our rejected types.\n return true;\n }", "public boolean needsAllocation(TypeReference type) {\n if (type == null) {\n throw new IllegalArgumentException(\"The argument type may not be null\");\n }\n\n if (seenTypes.containsKey(type)) {\n if (seenTypes.get(type).size() > 1) { // TODO INCORRECT may all be UNALLOCATED\n return false;\n } else {\n return (seenTypes.get(type).get(0).status == ValueStatus.UNALLOCATED);\n }\n } else {\n return true;\n }\n }", "public boolean canRun(NodeType type) {\n return childNodeTypes.contains(type);\n }", "boolean hasProduceResType();", "public boolean buildBuilding(String buildingType) {\n\t\tString type = buildingType.toLowerCase();\n\t\tthis.gc.placeBuilding(type);\n\n\t\tboolean placementSuccesfull = this.gc.isPlacementSuccesfull();\n\n\t\treturn placementSuccesfull;\n\n\t}", "protected boolean isApplicableType(Datatype type) {\n\t\treturn true;\n\t}", "public abstract boolean isTypeCorrect();", "Unit getHasUnit();", "boolean isMake();", "public boolean canBuildEquipment(EquipmentType equipmentType) {\n for (AbstractGoods requiredGoods : equipmentType.getGoodsRequired()) {\n if (getGoodsCount(requiredGoods.getType()) < requiredGoods.getAmount()) {\n return false;\n }\n }\n return true;\n }", "public boolean needsPhi(TypeReference type) {\n if (type == null) {\n throw new IllegalArgumentException(\"The argument type may not be null\");\n }\n\n boolean seenLive = false;\n\n if (seenTypes.containsKey(type)) {\n \n for (ManagedParameter param : seenTypes.get(type)) { // TODO: Check all these\n if ((param.status == ValueStatus.FREE)) { // TODO: What about scopes\n return true;\n }\n\n if (param.status == ValueStatus.ALLOCATED) {\n if (seenLive) {\n return true;\n } else {\n seenLive = true;\n }\n }\n }\n } else {\n throw new IllegalArgumentException(\"Type \" + type + \" has never been seen before!\");\n }\n\n throw new IllegalStateException(\"No suitable candidate has been found\"); // TODO WRONG text\n }", "public boolean isSalvageable(Material type);", "public boolean isUnit() {\n\t\tboolean unit = false;\n\t\tif(this.head == null){\n\t\t\treturn true;\n\t\t}\n\t\tif(Math.pow(this.head.factor, this.head.power) == 1.0){\n\t\t\tunit = true;\n\t\t}\n\t\treturn unit;\n\t}", "public boolean canProvidePower(PowerTypes type);", "public static boolean isUsableType(byte t) {\n switch (t) {\n case UNKNOWN: return false ;\n case NULL: return false ;\n case ERROR: return false ;\n default :return true ;\n }\n }", "private static boolean checkType(String type) {\n ParameterHelpers.checkParameter(type, \"type\");\n\n if (type.equals(TYPE_REGISTERED)) {\n return true;\n } else if (type.equals(TYPE_UNREGISTERED)) {\n return false;\n } else {\n throw new IllegalArgumentException(\"type must be 'Registered' or 'Unregistered'\");\n }\n }", "abstract protected boolean checkType(String myType);", "private boolean validateType(int type)\n {\n return PSSecurityProvider.isSupportedType(type);\n }", "<T> boolean canProvide(Class<T> type);", "boolean getWary(Unit unit);", "public abstract boolean isTypeOf(ItemType type);", "public boolean canBePromotedTo(ItemType type) {\n return this.isTypeOf(type);\n }", "boolean canBuildDome(Tile t);", "boolean hasGoodsType();", "boolean isSatisfiableFor(AResourceType type, int amount) ;", "public boolean canReproduce() {\r\n ArrayList<Cell> neighbours = getNeighbours(FIRSTLAYER);\r\n\r\n int numOfSameT = 0;\r\n int numOfEmpty = 0;\r\n int numOfFoodC = 0;\r\n\r\n for (Cell cell : neighbours) {\r\n if (isSameType(cell.getInhabit())) {\r\n numOfSameT++;\r\n } else if (cell.getInhabit() == null && isTerrainAccessiable(cell)) {\r\n numOfEmpty++;\r\n } else if (isEdible(cell.getInhabit())) {\r\n numOfFoodC++;\r\n }\r\n }\r\n\r\n return (numOfSameT >= numOfSameTypeNeighbourToReproduce() \r\n && numOfEmpty >= numOfEmptyToReproduce()\r\n && numOfFoodC >= numOfFoodCellToReproduce());\r\n }", "boolean hasMachineType();", "boolean canBuildBlock(Tile t);", "@objid (\"617db225-55b6-11e2-877f-002564c97630\")\n @Override\n public boolean canCreate(Class<? extends MObject> type) {\n return false;\n }", "private boolean canSelectCurWorldType() {\n WorldType worldtype = WorldType.WORLD_TYPES[this.selectedIndex];\n if (worldtype != null && worldtype.canBeCreated()) {\n return worldtype == WorldType.DEBUG_ALL_BLOCK_STATES ? hasShiftDown() : true;\n } else {\n return false;\n }\n }", "public boolean canBuild(int numToBuild) \n\t{\n\t\t return (numBuildings+numToBuild) <= MAX_NUM_UNITS;\n\t}", "public boolean canBuild(Player player, Location location) {\n\t\tif (mayor.equals(player.getUniqueId()) || councils.containsKey(player.getUniqueId())) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tPlot plot = getPlotHere(location);\n\t\t\treturn plot != null && plot.canBuild(player, location);\n\t\t}\n\t}", "public boolean is( Type type ) {\n return this.type == type;\n }", "public boolean needUnits(){\n\t\tif(units.size() >= maxUnits){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "boolean hasCardType();", "protected abstract boolean isSupportedTestType(Properties prop);", "public boolean verificaTipo(String tipo) {\r\n\t\tif(tipo.equals(\"single\") || tipo.equals(\"double\") || tipo.equals(\"suite\")) return true;\r\n\t\telse return false;\r\n\t}", "boolean hasProduces();", "boolean hasHasAlcoholSpecimanType();", "public boolean build(Vertex vertex, int type) {\n \t\tif (vertex == null || !canBuild(vertex, type))\n \t\t\treturn false;\n \n \t\tboolean setup = board.isSetupPhase();\n \n \t\t// check resources based on type we want to build\n \t\tif (type == Vertex.TOWN) {\n \t\t\tif (!setup && !affordTown())\n \t\t\t\treturn false;\n \t\t} else if (type == Vertex.CITY) {\n \t\t\tif (!setup && !affordCity())\n \t\t\t\treturn false;\n \t\t} else {\n \t\t\t// invalid type\n \t\t\treturn false;\n \t\t}\n \n \t\tif (!vertex.build(this, type, setup))\n \t\t\treturn false;\n \n \t\t// deduct resources based on type\n \t\tif (vertex.getBuilding() == Vertex.TOWN) {\n \t\t\tif (!setup) {\n \t\t\t\tuseResources(Type.BRICK, 1);\n \t\t\t\tuseResources(Type.LUMBER, 1);\n \t\t\t\tuseResources(Type.GRAIN, 1);\n \t\t\t\tuseResources(Type.WOOL, 1);\n \t\t\t}\n \t\t\ttowns += 1;\n \t\t\tsettlements.add(vertex);\n \t\t\tboard.checkLongestRoad();\n \t\t} else {\n \t\t\tif (!setup) {\n \t\t\t\tuseResources(Type.GRAIN, 2);\n \t\t\t\tuseResources(Type.ORE, 3);\n \t\t\t}\n \t\t\ttowns -= 1;\n \t\t\tcities += 1;\n \t\t}\n \n \t\t// collect resources for second town during setup\n \t\tif (board.isSetupPhase2()) {\n \t\t\tfor (int i = 0; i < 3; i++) {\n \t\t\t\tHexagon hexagon = vertex.getHexagon(i);\n \t\t\t\tif (hexagon != null && hexagon.getType() != Type.DESERT)\n \t\t\t\t\taddResources(hexagon.getType(), 1);\n \t\t\t}\n \t\t}\n \n \t\tlastTown = vertex;\n \n \t\tappendAction(type == Vertex.TOWN ? R.string.player_town\n \t\t\t\t: R.string.player_city);\n \n \t\treturn true;\n \t}", "public boolean isTypeRegistrationRequired() {\n return typeRegistrationRequired;\n }", "public boolean isForGenere();", "public abstract boolean isUsable();", "boolean contains(String type) {\n for (ASTNode child : children) {\n if (child.getType().equals(type)) return true;\n }\n\n return false;\n }", "@Override\n\t\t\t\tpublic <T> boolean canProvide(Class<T> type) {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public boolean isType() {\n return type;\n }", "boolean isApplicableForAllAssetTypes();", "@Test\n public void typeTest() {\n assertTrue(red_piece.getType() == Piece.Type.SINGLE);\n red_piece.king();\n assertTrue(red_piece.getType() == Piece.Type.KING);\n assertTrue(white_piece.getType() == Piece.Type.SINGLE);\n }", "protected boolean isSpecial(Player pl, byte type) {\n\t\treturn type == GameMap.WALL || (type == GameMap.SPAWNER && !(pl instanceof Ghost));\n\t}", "private boolean isBuilt() {\n\t\t\tif (name == null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (WeaponFlavor flavor: WeaponFlavor.values()) {\n\t\t\t\tif (flavors.get(flavor) == null) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "public boolean contains(int type) {\n\t\tint n = check(type);\n\t\treturn n >= 64 ? (n1 & mask(n - 64)) != 0L : (n0 & mask(n)) != 0L;\n\t}", "private boolean validateType(int type)\n {\n return type >=0 && type < TYPE_ENUM.length;\n }" ]
[ "0.7086388", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.6715041", "0.66725004", "0.6592929", "0.6530589", "0.64310396", "0.6397637", "0.6332461", "0.62945145", "0.6289067", "0.6270834", "0.619987", "0.61786294", "0.6174503", "0.60903984", "0.60485077", "0.604407", "0.60097575", "0.5982701", "0.59768397", "0.59714127", "0.59349126", "0.59222", "0.58789015", "0.58592296", "0.5852686", "0.5832638", "0.5830715", "0.5828636", "0.582084", "0.580988", "0.5784294", "0.5753859", "0.574699", "0.57429403", "0.5739662", "0.57374716", "0.5726824", "0.5685984", "0.56511164", "0.56331146", "0.56315595", "0.5613735", "0.5607055", "0.5604774", "0.5599428", "0.55964", "0.55962664", "0.5588035", "0.55783004", "0.5577327", "0.5555813", "0.5547462", "0.5546989", "0.5531909", "0.5525669", "0.5524816", "0.5524753", "0.55197245" ]
0.70058346
1
========================================================= Changes game speed. 0 fastest 1 very quick 20 around default
public static void changeSpeed(int speed) { AtlantisConfig.GAME_SPEED = speed; getBwapi().setGameSpeed(AtlantisConfig.GAME_SPEED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateSpeed() {\n\t\t// should work b/c of integer arithmetic\n\t\tif(isTwoPlayer)\n\t\t\treturn;\n\t\t//System.out.println(\"speed up factor: \" + speedUpFactor);\n\t\t//System.out.println(\"numlinescleared/6: \" + numLinesCleared/6);\n\t\tif (speedUpFactor != numLinesCleared/6) {\n\t\t\t// speed by 10% every lines cleared, needs to be checked\n\t\t\tspeedUpFactor = numLinesCleared/6;\n\t\t\tif(!(defaultSpeed - 30*speedUpFactor <= 0))\n\t\t\t\tdefaultSpeed = defaultSpeed - 30*speedUpFactor;\n\t\t\tlevel = speedUpFactor;\n\t\t}\n\t\t//System.out.println(\"default speed: \" + defaultSpeed);\n\t}", "public void faster()\n {\n if(speed < 9){\n speed += 1;\n }\n }", "void changeUpdateSpeed();", "public void changeSpeed(int speed);", "public void setSpeed() {\r\n\t\tthis.currSpeed = this.maxSpeed * this.myStrategy.setEffort(this.distRun);\r\n\t}", "public void setCurrentSpeed (double speed);", "public void changeSpeed() {\n Random gen = new Random();\n speedX += gen.nextInt(3);\n speedY += gen.nextInt(3);\n }", "private void changeSpeed() {\n\t\tint t = ((JSlider)components.get(\"speedSlider\")).getValue();\n\t\tsim.setRunSpeed(t);\n\t}", "public void increaseSpeed() {\r\n\tupdateTimer.setDelay((int)Math.floor(updateTimer.getDelay()*0.95));\r\n\t\t}", "public void setSpeed(int value) {\n speed = value;\n if (speed < 40) {\n speedIter = speed == 0 ? 0 : speed / 4 + 1;\n speedWait = (44 - speed) * 3;\n fieldDispRate = 20;\n listDispRate = 20;\n } else if (speed < 100) {\n speedIter = speed * 2 - 70;\n fieldDispRate = (speed - 40) * speed / 50;\n speedWait = 1;\n listDispRate = 1000;\n } else {\n speedIter = 10000;\n fieldDispRate = 2000;\n speedWait = 1;\n listDispRate = 4000;\n }\n }", "public void setSpeed(int s){\r\n\t\tspeed = s;\r\n\t}", "void simulationSpeedChange(int value);", "public void setSpeed(float val) {speed = val;}", "public void startEngine(){\n currentSpeed = 0.1;\n }", "public void setSpeed() {\r\n\t\tint delay = 0;\r\n\t\tint value = h.getS(\"speed\").getValue();\r\n\t\t\r\n\t\tif(value == 0) {\r\n\t\t\ttimer.stop();\r\n\t\t} else if(value >= 1 && value < 50) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (1) == delay (5000). value (50) == delay (25)\r\n\t\t\tdelay = (int)(a1 * (Math.pow(25/5000.0000, value / 49.0000)));\r\n\t\t} else if(value >= 50 && value <= 100) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (50) == delay(25). value (100) == delay (1)\r\n\t\t\tdelay = (int)(a2 * (Math.pow(1/25.0000, value/50.0000)));\r\n\t\t}\r\n\t\ttimer.setDelay(delay);\r\n\t}", "private int speed() {\n final int slowfactor = 3;\n return speed * (cd.isSlow(curpos) ? slowfactor : 1);\n }", "@Override\r\n\tpublic void speed() {\n\t}", "public void setSpeed(int wpm);", "public void setSpeed(int newSpeed)\n {\n speed = newSpeed;\n }", "public void faster() {\n myTimer.setDelay((int) (myTimer.getDelay() * SPEED_FACTOR));\n }", "public abstract void setSpeed(int sp);", "public void go()\n {\n for( int i = 0; i<3; i++)m[i].setSpeed(720);\n step();\n for( int i = 0; i<3; i++)m[i].regulateSpeed(false);\n step();\n }", "public static void move()\n\t{\n\t\tswitch(step)\n\t\t{\n\t\t\tcase 0:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 1;\n\t\t\tbreak;\n\t\t\t// 1. Right wheels forward\n\t\t\tcase 1:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, .5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 2;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 3;\n\t\t\tbreak;\n\t\t\t// 2. Right wheels back\n\t\t\tcase 3:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, -.5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 4;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 5;\n\t\t\tbreak;\n\t\t\t// 3. Left wheels forward\n\t\t\tcase 5:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(.5, 0);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 6;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 7;\n\t\t\tbreak;\n\t\t\t// 4. Left wheels back\n\t\t\tcase 7:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(-.5, 0);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 8;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 9;\n\t\t\tbreak;\n\t\t\t// 5. Intake pick up\n\t\t\tcase 9:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, 0);\n\t\t\t\t\tshoot(.5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 10;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\ttimer.start();\n\t\t\t\tstep = 11;\n\t\t\tbreak;\n\t\t\t// 6. Intake shoot\n\t\t\tcase 11:\n\t\t\t\tif(timer.get() < time)\n\t\t\t\t{\n\t\t\t\t\tsetSpeed(0, 0);\n\t\t\t\t\tpickUp(.5);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttimer.reset();\n\t\t\t\t\tstep = 12;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\t// Stop and reset everything\n\t\t\tcase 12:\n\t\t\t\tsetSpeed(0, 0);\n\t\t\t\tpickUp(0);\n\t\t\t\tshoot(0);\n\t\t\t\ttimer.reset();\n\t\t\tbreak;\n\t\t}\n\t}", "int getSpeed();", "int getSpeed();", "int getSpeed();", "int getSpeed();", "int getSpeed();", "int getSpeed();", "public void calcSpeed(){\r\n Random rand = new Random();\r\n tire = rand.nextInt(10)+1;\r\n engine = rand.nextInt(10)+1;\r\n weight = rand.nextInt(10)+1;\r\n speed = ((double)(tire+engine+weight))/3;\r\n\r\n //round speed to 2 decimal places\r\n speed = speed*100;\r\n speed = Math.round(speed);\r\n speed = speed/100;\r\n }", "public synchronized void updateGameDataAtFastRate() {\n scheduleGameUpdate(fastUpdateSpeed);\n }", "public void setSpeed(int value) {\n this.speed = value;\n }", "public int getSpeed()\r\n\t{\n\t\treturn 90;\r\n\t}", "public void accelerate(){\n speed += 5;\n }", "void setFastSpeed () {\n if (stepDelay == fastSpeed)\n return;\n stepDelay = fastSpeed;\n step();\n resetLoop();\n }", "private int newSpeed() {\n //makes a random speed for the ball in (-50,-15)U(15,50)\n int n = r.nextInt(71) - 35;\n if (n < 0) {\n n = n - 15;\n } else {\n n = n + 15;\n }\n return n;\n }", "public void setSpeed(int speed) {\n this.speed = speed;\n }", "@Override\n\t\tpublic int getSpeed() {\n\t\t\treturn i+20;\n\t\t}", "void OnSpeedChanges(float speed);", "public void setSpeed(float speed) {\n this.speed = (int) speed * 13;\n }", "public void setSpeed(int newSpeed)\n\t{\n\t\tspeed = newSpeed;\n\t}", "public void setSpeed(double speed)\r\n {\r\n this.speed = speed;\r\n }", "public void doubleSpeed()\r\n {\r\n \tthis.speed= speed-125;\r\n \tgrafico.setVelocidad(speed);\r\n }", "public void setSpeed(double multiplier);", "@Override\r\n public int paddleSpeed() {\r\n return 5;\r\n }", "@Override\npublic int run(int speed) {\n\t\n\treturn getSpeed();\n}", "void changeSpeed(int speed) {\n\n this.speed = speed;\n }", "@Override\n protected double speedFactor() {\n return getEnginePower() * 0.003;\n }", "public void setSpeed() {\n\t\tthis.ySpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t\tthis.xSpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t}", "public void setSpeed(int speed) {\n thread.setSpeed(speed);\n }", "public void setSpeed() {\n //assigns the speed based on the shuffleboard with a default value of zero\n double tempSpeed = setpoint.getDouble(0.0);\n\n //runs the proportional control system based on the aquired speed\n controlRotator.proportionalSpeedSetter(tempSpeed);\n }", "public void setSpeed(int newSpeed){\n\t\tmyVaisseau=Isep.getListeVaisseau();\n\t\tspeed=newSpeed;\t\t\n\t}", "private int adjustSpeed(int speed)\n {\n int result = speed;\n if (speed >= FASTEST)\n {\n result = MAX_SPEED;\n }\n else if (speed <= SLOWEST)\n {\n result = MIN_SPEED;\n }\n return result;\n }", "@Override\n\tpublic void increaseSpeed() {\n\t\tSystem.out.println(\"increaseSpeed\");\n\t\t\n\t}", "double getSpeed();", "public void setSpeed( Vector2 sp ) { speed = sp; }", "@Override\n\t\tpublic int getSpeed() {\n\t\t\treturn i+30;\n\t\t}", "public void setSpeed(double speed) {\n \tthis.speed = speed;\n }", "int getSimspeed();", "public static void updateDisplaySpeed()\n {\n double oneSecond = 1000;\n //speed.setText( Double.toString(((main.Game.worldTime.getDelay())/oneSecond)) + \" (sec./Day)\" );\n }", "public void currentSpeed()\n\t{\n\t\tif(speed == 0)\n\t\t{\n\t\t\tSystem.out.println(\"The bike is in rest\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"The bike is in motion\");\n\t\t\t\n\t\t}\n\t}", "public void setSpeed(float speed) {\n this.speed = speed;\n }", "public void setSpeed(float speed) {\n this.speed = speed;\n }", "public void increaseSpeed()\r\n\t{\r\n\t\t//Do nothing if maximum speed is achieved\r\n\t\tif(currentSpeed == SnakeSpeed.MAX)\r\n\t\t\treturn;\r\n\t\t//Else, increase the speed to next level\r\n\t\telse if(currentSpeed == SnakeSpeed.DEFAULT)\r\n\t\t{\r\n\t\t\tcurrentSpeed = SnakeSpeed.MEDIUM;\r\n\t\t}\r\n\t\telse if(currentSpeed == SnakeSpeed.MEDIUM)\r\n\t\t{\r\n\t\t\tcurrentSpeed = SnakeSpeed.MAX;\r\n\t\t}\r\n\r\n\t\t//Set the updated speed for the snake of the current player \r\n\t\tsnakes.get(snakeIndex).setSnakeSpeed(currentSpeed);\r\n\t}", "public void setSpeed(int speed) {\n\t\tthis.speed = speed;\n\t}", "public void setSpeed(int speed) {\n\t\tthis.speed = speed;\n\t}", "public void setSpeed(int speed) {\n\t\tthis.speed = speed;\n\t}", "public void setSpeed(double speed) {\n this.speed = speed;\n }", "public void setSpeed(double speed) {\n this.speed = speed;\n }", "@Override\n\tpublic void setSpeed(float speed) {\n\t\t\n\t}", "public int paddleSpeed() {\r\n return 10;\r\n }", "public void increaseSpeed() {\n\t\t\n\t\tif(this.getSpeed() < this.getMaximumSpeed()) {\n\t\t\tthis.setSpeed(this.getSpeed() + 5);\n\t\t\tSystem.out.println(\"increase speed by 5 \\n\");\n\t\t}else {\n\t\t\tSystem.out.println(\"You already reach at the max speed \" + this.getMaximumSpeed() +\"\\n\");\n\t\t}\n\n\t}", "void setTime(){\n gTime += ((float)millis()/1000 - millisOld)*(gSpeed/4);\n if(gTime >= 4) gTime = 0;\n millisOld = (float)millis()/1000;\n }", "private void setUpPlayerSpeed() \n {\n \tcalculateMovementSpeeds();\n \t\n \tSystem.out.println(\"height : \" + height);\n \tSystem.out.println(\"\\nsetupPlayerSpeed\");\n \tSystem.out.println(\"==============\");\n \tSystem.out.println(\" walkSpeed : \" + walkSpeed);\n \tSystem.out.println(\" maxRunSpeed : \" + maxRunSpeed);\n \tSystem.out.println(\" accelerationRate : \" + accelerationRate);\n \tSystem.out.println(\" maxAccelRate : \" + maxAccelRate);\n \tSystem.out.println(\" initialJumpSpeed : \" + initialJumpSpeed);\n \tSystem.out.println(\" maxJumpSpeed : \" + maxJumpSpeed);\n \tSystem.out.println(\" jumpIncr : \" + jumpIncr);\n \tSystem.out.println(\" maxFallSpeed : \" + maxFallSpeed);\n \t\n \t//System.exit(-1);\n\t}", "public synchronized void start() {\n // For max accuracy, reset oldTime to really reflect how much\n // time will have passed since we wanted to start the updating\n oldTime = System.nanoTime();\n updateGameDataAtSlowRate();\n }", "public synchronized void updateGameDataAtSlowRate() {\n scheduleGameUpdate(slowUpdateSpeed);\n }", "int paddleSpeed();", "public void setSpeed(double speed) {\r\n this.speed = Math.min(1.0, Math.max(speed, 0));\r\n }", "public void setWalkSpeed(int n)\n{\n walkSpeed = n;\n}", "@Override\n\tpublic void setSpeed(double speed) {\n\n\t}", "public int paddleSpeed() {\n return 5;\n }", "private int SpeedCalculation(int speed)\r\n\t{\t\r\n\t\tif(up||down)\r\n\t\treturn (int) ((speed/12.5)+1); //Speed divided by (100/(parts-1)) = 1-9\r\n\t\telse return (int) (0); \r\n\t}", "public static void setGlobalFlowSpeed(Context context, int speed){\n SharedPreferences.Editor edit = context.getSharedPreferences(\"DEFAULTS\", Context.MODE_PRIVATE).edit();\n edit.putInt(\"globalSpeed\", speed);\n edit.apply();\n\n }", "public abstract int getSpeed();", "public abstract int getSpeed();", "void setSpeed(RobotSpeedValue newSpeed);", "public double getCurrentSpeed();", "public void speedUp(){\r\n\t\tmoveSpeed+=1;\r\n\t\tmoveTimer.setDelay(1000/moveSpeed);\r\n\t}", "public int speed()\n \n {\n \t\n\t\treturn (((7 - speedClass) * 5 ) + 7);\n }", "public void setSpeed(float speed_)\n\t{\n\t\tthis.speed=speed_;\n\t}", "private void setSpeed() {\n double cVel = cAccel*0.1;\n speed += round(mpsToMph(cVel), 2);\n speedOutput.setText(String.valueOf(speed));\n }", "public void setSpeed(long speed) {\n\t\tmSpeed = speed;\n\t}", "public void increaseSpeed() {\n\t\tSystem.out.println(\"Cyborg speeds up!!!\");\n\t\tfor (int i = 0; i < gameObjects.size(); i++)\n\t\t{\n\t\t\tif (gameObjects.get(i) instanceof Cyborg)\n\t\t\t{\n\t\t\t\t((Cyborg) gameObjects.get(i)).increaseSpeed();\n\t\t\t}\n\t\t}\n\t}", "public ConstantSpeedMessageGenerator setSpeed(final double speed) {\n this.speed = speed;\n\n if (speed > 0) { // -1 = unlimited speed\n buffer = new long[(int) Math.round(Math.ceil(speed))];\n pointer = 0;\n\n for (int i = 0; i < (int) Math.round(Math.ceil(speed)); i++) {\n buffer[i] = 0;\n }\n\n breakDuration = (int) Math.round(1000 / speed); // will be 0 for speed > 1000\n }\n\n return this;\n }", "public void incWalkSpeed(int n)\n{\n walkSpeed = walkSpeed - n;\n}", "void setNormalSpeed () {\n if (stepDelay == normalSpeed)\n return;\n stepDelay = normalSpeed;\n resetLoop();\n }", "public void setSpeed(final int speed) {\n mSpeed = speed;\n }", "public double getSpeed();", "public void turnSlower() {\n rightMotor.resetTachoCount();\n rightMotor.setSpeed(DEFAULT_TURN_SPEED/3);\n leftMotor.setSpeed(DEFAULT_TURN_SPEED/3);\n rightMotor.forward();\n leftMotor.backward();\n }", "public void SpeedControl(long iDasherX, long iDasherY, double dFrameRate) {}" ]
[ "0.7613897", "0.7590296", "0.74744016", "0.73641926", "0.72694504", "0.72258925", "0.72184706", "0.7199545", "0.71733755", "0.7115425", "0.70949167", "0.7083425", "0.7044232", "0.70156866", "0.7006622", "0.69794863", "0.6948179", "0.6943582", "0.69067365", "0.6906466", "0.68933445", "0.6892998", "0.68708086", "0.686052", "0.686052", "0.686052", "0.686052", "0.686052", "0.686052", "0.6857774", "0.68564004", "0.6856061", "0.68415403", "0.6841486", "0.682301", "0.6804415", "0.6800873", "0.6794922", "0.67920244", "0.67861885", "0.6777855", "0.6775505", "0.67750144", "0.6774383", "0.6768171", "0.675968", "0.6751546", "0.67478603", "0.6743747", "0.6727021", "0.6717068", "0.67078274", "0.6706238", "0.6695725", "0.6689794", "0.6689159", "0.6688179", "0.6681872", "0.66794235", "0.66700596", "0.6668538", "0.6655206", "0.6655206", "0.66430444", "0.66206545", "0.66206545", "0.66206545", "0.66189617", "0.66189617", "0.66030014", "0.66015404", "0.6594525", "0.6589167", "0.65875155", "0.6581231", "0.6576239", "0.6573552", "0.65721846", "0.6539968", "0.6537178", "0.65352035", "0.6524284", "0.65168285", "0.65145206", "0.65145206", "0.6512709", "0.6500383", "0.649427", "0.6489516", "0.64751893", "0.6472605", "0.6471399", "0.6454382", "0.64503473", "0.64377576", "0.6437021", "0.6419245", "0.64191073", "0.64155805", "0.6415075" ]
0.70030844
15
Returns approximate number of ingame seconds elapsed.
public static int getTimeSeconds() { return Atlantis.getBwapi().getFrameCount() / 30; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected double getElapsedTime() {\n\t\treturn Utilities.getTime() - startTime;\n\t}", "long getElapsedTime();", "public double getElapsedTime(){\n double CurrentTime = System.currentTimeMillis();\n double ElapseTime = (CurrentTime - startTime)/1000;\n return ElapseTime;\n }", "long elapsedTime();", "public double computeElapsedTime() {\r\n\r\n long now = System.currentTimeMillis();\r\n\r\n elapsedTime = (double) (now - startTime);\r\n\r\n // if elasedTime is invalid, then set it to 0\r\n if (elapsedTime <= 0) {\r\n elapsedTime = (double) 0.0;\r\n }\r\n\r\n return (double) (elapsedTime / 1000.0); // return in seconds!!\r\n }", "public long timeElapsed()\n {\n return (System.currentTimeMillis() - this.startTime) / 1000;\n }", "public float getSecondsElapsed() { return _startTime==0? 0 : (System.currentTimeMillis() - _startTime)/1000f; }", "public static long GetElapsedTime() {\n\t\treturn System.currentTimeMillis() - _lTime;\n\t}", "public double getElapsedTime() {\r\n return (double) (elapsedTime / 1000.0); // convert from milliseconds to seconds\r\n }", "public static long getElapsedTimeSecs() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = ((System.nanoTime() - startTime)/1000000);\n\t\t} else {\n\t\t\telapsed = ((stopTime - startTime)/1000000);\n\t\t}\n\t\treturn elapsed;\n\t}", "public double time() {\n long diff = System.nanoTime() - start;\n double seconds = diff * 0.000000001;\n return seconds;\n }", "public int getSessionAverageAliveTime();", "public static long getElapsedTime() {\n long time = System.currentTimeMillis() - START_TIME;\n // long time = System.nanoTime() / 1000000;\n return time;\n }", "public long getElapsedTimeSecs() {\n return running ? ((System.currentTimeMillis() - startTime) / 1000) % 60 : 0;\n }", "public long getElapsedTime(){\n long timePassed = endTime - startTime;\n return timePassed;\n }", "public long getTimeElapsed() {\r\n\t long now = new Date().getTime();\r\n\t long timePassedSinceLastUpdate = now - this.updatedSimTimeAt;\r\n\t return this.pTrialTime + timePassedSinceLastUpdate;\r\n\t}", "public long getElapsedSeconds() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed / nsPerSs;\n\t}", "public static long getElapsedTime() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed;\n\t}", "public long getTimeTaken();", "public double getElapsedTime()\n\t{\n\t\treturn elapsedTime;\n\t}", "public String elapsedTime() {\n return totalWatch.toString();\n }", "@Override\n public float getTimeInSeconds() {\n return getTime() * INVERSE_TIMER_RESOLUTION;\n }", "public long getElapsedTimeMili() {\n return running ? ((System.currentTimeMillis() - startTime)/100) % 1000 : 0;\n }", "public long getElapsedTime()\r\n {\r\n if(isRunning)\r\n {\r\n long endTime = System.currentTimeMillis();\r\n return elapsedTime=endTime-startTime;\r\n }\r\n else\r\n {\r\n return elapsedTime;\r\n }\r\n }", "public double getSecs( );", "public String getElapsedTime() {\n\n long elapsed;\n int mins;\n int secs;\n int millis;\n\n if (running) {\n elapsed = System.currentTimeMillis() - startTime;\n } else {\n elapsed = stopTime - startTime;\n }\n\n mins = (int) (elapsed / 60000);\n secs = (int) (elapsed - mins * 60000) / 1000;\n millis = (int) (elapsed - mins * 60000 - secs * 1000);\n\n //Keeps 3 digits when a second rolls over. Perhaps find a better way of doing this\n return (String.format(\"%02d\", mins) + \":\" + String.format(\"%02d\", secs) + \":\"\n + String.format(\"%03d\", millis));\n }", "private static float tock(){\n\t\treturn (System.currentTimeMillis() - startTime);\n\t}", "public long getElapsedTime() {\n\t\treturn this.getTime();\n\t}", "private long getGameDuration() {\n return ((System.currentTimeMillis() - startGameTime) / 1000);\n }", "public int getTotalTime();", "public static double getExecutionTimeInSeconds(){\n\t\treturn (executionTime * (1.0e-9));\n\t}", "public float eventAgeSeconds() { return neventAgeSeconds(address()); }", "public long getSessionDuration(){\n return (currentTime-startTime)/1000;\n }", "public long getElapsedNanoSecond() {\n long elapsed;\n if (running) {\n elapsed = (System.nanoTime() - startTime);\n } else {\n elapsed = (stopTime - startTime);\n }\n return elapsed;\n }", "public long getTimeRemaining() {\n int timer = 180000; //3 minutes for the game in milliseconds\n long timeElapsed = System.currentTimeMillis() - startTime;\n long timeRemaining = timer - timeElapsed + bonusTime;\n long timeInSeconds = timeRemaining / 1000;\n long seconds = timeInSeconds % 60;\n long minutes = timeInSeconds / 60;\n if (seconds < 0 || minutes < 0) { //so negative numbers don't show\n seconds = 0;\n minutes = 0;\n }\n return timeInSeconds;\n }", "public float getTime() {\n return Math.abs(endTime - startTime) / 1000000f;\n }", "public float getTimeSeconds() { return getTime()/1000f; }", "public int getUpSeconds() {\n return (int)((_uptime % 60000) / 1000);\n }", "public long elapsedTime(){\n\n // calculate elapsed time by getting current CPU time and substracting the CPU time from when we started the stopwatch\n\n // this does not stop the stopwatch\n\n return (magicBean.getCurrentThreadCpuTime() - stopWatchStartTimeNanoSecs);\n\n }", "@DISPID(55)\r\n\t// = 0x37. The runtime will prefer the VTID if present\r\n\t@VTID(53)\r\n\tint actualCPUTime_Seconds();", "public long getElapsedMilliSecond() {\n long elapsed;\n if (running) {\n elapsed = (System.nanoTime() - startTime) / 1000000;\n } else {\n elapsed = (stopTime - startTime) / 1000000;\n }\n return elapsed;\n }", "@DISPID(70)\r\n\t// = 0x46. The runtime will prefer the VTID if present\r\n\t@VTID(68)\r\n\tint averageCPUTime_Seconds();", "public double getUserTimeSec() {\n\treturn getUserTime() / Math.pow(10, 9);\n}", "int time()\n\t{\n\t\treturn totalTick;\n\t}", "public float getElapsed()\n {\n return this.elapsed;\n }", "public int getEat_time()\n\t{\n\t\treturn eat_time;\n\t}", "public long timeLeftInSeconds(){\n Date currTime = new Date();\n long diff = hackathonEndTime.getTime() - currTime.getTime();\n long diffSec = diff/1000;\n\n //truncate to show relevant time\n if(diffSec > 34.5*3600){diffSec = (long)(34.5*3600);}\n if(diffSec < 0){diffSec = 0;}\n\n return diffSec;\n }", "public long getElapsedMilliseconds() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed / nsPerMs;\n\t}", "public long elapsedMillis() {\n/* 162 */ return elapsedTime(TimeUnit.MILLISECONDS);\n/* */ }", "public double getTimeRemaining() {\n\t\treturn (startingTime + duration) - System.currentTimeMillis();\n\t}", "public abstract float getSecondsPerUpdate();", "public long getElapsedMs()\n\t{\n\t\tif (m_running)\n\t\t{\n\t\t\tlong systemMs = SystemClock.elapsedRealtime();\n\t\t\treturn m_elapsedMs + (systemMs - m_lastMs);\n\t\t}\n\n\t\treturn m_elapsedMs;\n\t}", "int getTtiSeconds();", "public int totalTime()\n {\n return departureTime - arrivalTime;\n }", "private long CurrentTime(){\n return (TotalRunTime + System.nanoTime() - StartTime)/1000000;\n }", "public long getSecondsUntilNextExecutionTime() {\n\t\treturn (getNextExecutionTime().getTime() - System.currentTimeMillis()) / 1000;\n\t\t\n\t}", "protected static double getFPGATime() {\n return (System.currentTimeMillis() - startTime) / 1000.0;\n }", "public long getElapsedTicks() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed / nsPerTick;\n\t}", "public double getSystemTimeSec() {\n\treturn getSystemTime() / Math.pow(10, 9);\n}", "public long age() {\n if (startTime == 0) {\n return 0;\n } else {\n return (System.currentTimeMillis() - this.startTime) / 1000;\n }\n }", "public String getEstimatedRemainingTime() {\n long d = executable.getParent().getEstimatedDuration();\n if(d<0) return \"N/A\";\n \n long eta = d-(System.currentTimeMillis()-startTime);\n if(eta<=0) return \"N/A\";\n \n return Util.getTimeSpanString(eta);\n }", "public double getAltRms() {\n\t\treturn 3600.0 * Math.sqrt(1000.0 * altInt / (double) (updateTimeStamp - startTime));\n\t}", "public int getTotalOftimePlayed() {\n return secToMin(statistics.get(TypeOfGames.SIMGAME).getTotalOfTime()\n + statistics.get(TypeOfGames.EASYCOMPUTERGAME).getTotalOfTime()\n + statistics.get(TypeOfGames.HARDCOMPUTERGAME).getTotalOfTime());\n }", "public Long getElapsedTime() {\n return elapsedTime;\n }", "public String getElapsedTime() {\n return elapsedTime;\n }", "public int getTime(){\n return (timerStarted > 0) ? (int) ((System.currentTimeMillis() - timerStarted) / 1000L) : 0;\n }", "@DISPID(65)\r\n\t// = 0x41. The runtime will prefer the VTID if present\r\n\t@VTID(63)\r\n\tint averageRunTime_Seconds();", "public long getElapsedHours() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed / nsPerHh;\n\t}", "public long getElapsedTime() {\n long additionalRealTime = 0;\n\n if(mStartTime > 0) {\n additionalRealTime = System.currentTimeMillis() - mStartTime;\n }\n return mElapsedTime + additionalRealTime;\n }", "public long timeAlg(){\n long startTime = System.nanoTime();\n \n this.doTheAlgorithm();\n \n long endTime = System.nanoTime();\n long elapsedTime = endTime - startTime;\n \n return elapsedTime;\n }", "public double getAnimationSeconds()\n\t{\n\t\treturn seconds_passed;\n\t}", "long getElapsedTime(Context context);", "public static double toc() {\n\t\treturn System.currentTimeMillis() / 1000d - t;\n\t}", "public static double tic() {\n\t\tt = System.currentTimeMillis() / 1000d;\n\t\treturn t;\n\t}", "public String getElapsed() {\n\t\tString timeFormatted = \"\";\n\t\ttimeFormatted = this.formatTime(this.getElapsedTicks());\n\t\treturn timeFormatted;\n\t}", "@Override\n\tpublic long getTime() {\n\t\treturn System.nanoTime() - startTime;\n\t}", "public double readClock()\n {\n return (System.currentTimeMillis() - startingTime) / 1000.0;\n }", "public long getOccupiedSeconds(){\n \t\treturn occupiedSeconds;\n \t}", "public String estimatedTime() {\n int m = (int)(getFreeBytes()/500000000);\n return (m <= 1) ? \"a minute\" : m+\" minutes\";\n }", "public static float getCurrentTime(){\n return (float)(System.currentTimeMillis()-t0)/1000.0f;\r\n }", "public float getTime()\r\n\t{\r\n\t\treturn runningTime;\r\n\t}", "private static String elapsed(long start) {\r\n\treturn \": elapsed : \" + (System.currentTimeMillis() - start) + \" ms \";\r\n }", "public double getTime()\n {\n long l = System.currentTimeMillis()-base;\n return l/1000.0;\n }", "private int timeToNextAttack() {\n return ATTACK_SPEED - mAttacker.getSpeed();\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Long getWorkElapsed() {\n return (java.lang.Long)__getInternalInterface().getFieldValue(WORKELAPSED_PROP.get());\n }", "public String getElapsedTime() {\n /**\n * Joda instruction credit to BalusC @ stackoverflow.com\n * http://stackoverflow.com/posts/2179831/revisions\n */\n Period delta = new Period(getOccurrenceTime(), DateTime.now());\n return\n // 1+ weeks\n (delta.getWeeks() >= 1) ? delta.getWeeks()+\"w\" :\n // 1+ days\n (delta.getDays() >= 1) ? delta.getDays()+\"d\" :\n // 1+ hours\n (delta.getHours() >= 1) ? delta.getHours()+\"h\" :\n // 1+ minutes\n (delta.getMinutes() >= 1) ? delta.getMinutes()+\"m\" :\n // 1+ seconds\n delta.getSeconds()+\"s\";\n }", "public long getRemainingTime() {\n if (isPaused()) {\n return pausedPoint;\n }\n long res = (long) ((spedEndTime - SystemClock.elapsedRealtime()) * speed);\n return res > 0 ? res : 0;\n }", "@DISPID(60)\r\n\t// = 0x3c. The runtime will prefer the VTID if present\r\n\t@VTID(58)\r\n\tint actualRunTime_Seconds();", "public double time()\n\t{\n\t\treturn _dblTime;\n\t}", "public double time()\n\t{\n\t\treturn _dblTime;\n\t}", "public double getCpuTimeSec() {\n\treturn getCpuTime() / Math.pow(10, 9);\t\t\n}", "public int getSecondsPassed()\n {\n return this.seconds;\n }", "public static double getSecondsTime() {\n\t\treturn (TimeUtils.millis() - time) / 1000.0;\n\t}", "long duration();", "public double getTotalTime()\n\t{\n\t\treturn this.timeBallHitsGround;\n\t}", "public static long getTotalHitTime() {\r\n return _time;\r\n }", "public double getAsSeconds()\n {\n return itsValue / 1000000.0;\n }", "long getTotalDoExamTime();", "int getPaceSeconds() {\r\n\t\tint m = getContents(minutes);\r\n\t\tint s = getContents(seconds);\r\n\t\treturn 60*m +s;\r\n\t}", "public long getTotalTime() {\n var timeStarted = getStartTime();\n var timeFinished = getEndTime();\n return timeStarted.until(timeFinished, SECONDS);\n }" ]
[ "0.72465885", "0.7216343", "0.7200033", "0.71831876", "0.7105128", "0.7092058", "0.70663285", "0.7059589", "0.7033453", "0.7005631", "0.69903475", "0.6986917", "0.6975632", "0.6968416", "0.6928406", "0.6927054", "0.688925", "0.6852936", "0.6710486", "0.670662", "0.6677942", "0.66721296", "0.6667372", "0.66346335", "0.6632482", "0.66226745", "0.66139174", "0.66025686", "0.660197", "0.6600305", "0.6593689", "0.6580945", "0.65749454", "0.6564112", "0.65501785", "0.65293443", "0.65183204", "0.64859796", "0.64807725", "0.6467081", "0.64579296", "0.64471024", "0.6429777", "0.6427763", "0.6427685", "0.642012", "0.641826", "0.6395655", "0.6394867", "0.63665515", "0.6365342", "0.63525367", "0.63454723", "0.63440514", "0.6342779", "0.6341914", "0.6331476", "0.63284034", "0.63276863", "0.63266337", "0.6296369", "0.62959266", "0.6291243", "0.62901217", "0.6283486", "0.6259988", "0.6237585", "0.62366015", "0.6231148", "0.62302583", "0.62299985", "0.62120134", "0.6197255", "0.61947286", "0.61865836", "0.6175457", "0.61676264", "0.61672693", "0.61609524", "0.61421317", "0.6132477", "0.61159605", "0.6110697", "0.61089826", "0.6107505", "0.6102239", "0.6099234", "0.6099082", "0.6098862", "0.6098862", "0.60983974", "0.6098357", "0.609659", "0.6080828", "0.6075466", "0.6067715", "0.60654724", "0.60596764", "0.6058045", "0.6055563" ]
0.6662895
23
Returns number of frames elapsed.
public static int getTimeFrames() { return Atlantis.getBwapi().getFrameCount(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getFrameDuration();", "int getFramesCount();", "int getNumberFrames();", "public int getTotalFrames() {\n int frame = 0;\n for (MOFPartPolyAnimEntry entry : getEntryList().getEntries())\n frame += entry.getDuration();\n return frame;\n }", "public double getFrameTime() {\n\n\t\t// Convert from milliseconds to seconds\n\t\treturn getInteger(ADACDictionary.FRAME_TIME) / 1000;\n\n\t}", "public static int getTimeSeconds() {\n return Atlantis.getBwapi().getFrameCount() / 30;\n }", "public float getFramesPerSecond() {\n return 1 / frametime;\n }", "public int getFrames() {\r\n return frames;\r\n }", "long elapsedTime();", "@Override\n\tpublic float getTimePerFrame() {\n\t\treturn tpf;\n\t}", "protected int getFramesPased() {\r\n\t\treturn framesPassed;\r\n\t}", "public int getFrameCount() {\n return frameCount;\n }", "public synchronized int getFPS() {\n return fps;\n }", "private double computeFPS(double t)\n {\n\tif (t == 0 || !drawAnimation.value) {\n\t numPrevT = 0;\n\t return 0;\n\t}\n\n\tint which = numPrevT % prevT.length;\n\tdouble tdiff = t - prevT[which];\n\n\tprevT[which] = t;\n\tnumPrevT++;\n\n\t// Only compute frame rate when valid\n\tif (numPrevT <= prevT.length || tdiff <= 0) {\n\t return 0;\n\t}\n\n\treturn prevT.length / tdiff;\n }", "long getElapsedTime();", "@HaxeMethodBody(\n\t\t\"{% if extra.fps %}return {{ extra.fps }};{% else %}return 60;{% end %}\"\n\t)\n\tpublic static int getFramesPerSecond() {\n\t\treturn 60;\n\t}", "public int getFPS() {\n\t\treturn renderer.getFps();\n\t}", "private int getFramePerSecond(Rectangle rect){\n final long recordTime=1000;\n int countFrame=0;\n try {\n Robot bot=new Robot();\n final long startTime=System.currentTimeMillis();\n while((System.currentTimeMillis()-startTime)<=recordTime){\n bot.createScreenCapture(rect);\n countFrame++;\n }\n System.out.println(\"FramePerSecond is : \"+countFrame);\n return countFrame;\n } catch (AWTException e) {\n e.printStackTrace();\n }\n return 0;\n }", "public float getElapsed()\n {\n return this.elapsed;\n }", "public int delta()\r\n\t{\r\n\t\treturn smooth ? (resolution / fps) : duration;\r\n\t}", "public long timeElapsed()\n {\n return (System.currentTimeMillis() - this.startTime) / 1000;\n }", "public int getNumFrames() {\n if ( dofs == null ) return 0;\n return dofs.length;\n }", "public double getAnimationSeconds()\n\t{\n\t\treturn seconds_passed;\n\t}", "public double getFPS() {\n return fps;\n }", "public native int getNumFrames() throws MagickException;", "public int getFrameLength() {\n return frameLength;\n }", "String getFPS();", "public double getElapsedTime(){\n double CurrentTime = System.currentTimeMillis();\n double ElapseTime = (CurrentTime - startTime)/1000;\n return ElapseTime;\n }", "public static long getElapsedTimeSecs() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = ((System.nanoTime() - startTime)/1000000);\n\t\t} else {\n\t\t\telapsed = ((stopTime - startTime)/1000000);\n\t\t}\n\t\treturn elapsed;\n\t}", "public long getElapsedTime(){\n long timePassed = endTime - startTime;\n return timePassed;\n }", "@java.lang.Override\n public com.google.protobuf.UInt64Value getFramesCount() {\n return framesCount_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : framesCount_;\n }", "public long getTimeTaken();", "public double getElapsedTime()\n\t{\n\t\treturn elapsedTime;\n\t}", "@Override\n\tpublic float getFrameRate() {\n\t\treturn fps;\n\t}", "Integer getFrameRate() {\n return frameRate;\n }", "public double getFps() {\n return fps;\n }", "public double getCurrentTime() {\n\t\tif (playing)\n\t\t\treturn (System.nanoTime() - startNanoTime) / 1e9 + startTime;\n\t\telse if (currentFile == null)\n\t\t\treturn -1;\n\t\tif (debug)\n\t\t\tSystem.err.println(\"getCurrentTime(): not playing\");\n\t\treturn currentPosition / currentFile.frameSize / currentFile.frameRate;\n\t}", "protected double getElapsedTime() {\n\t\treturn Utilities.getTime() - startTime;\n\t}", "public long getElapsedTime()\r\n {\r\n if(isRunning)\r\n {\r\n long endTime = System.currentTimeMillis();\r\n return elapsedTime=endTime-startTime;\r\n }\r\n else\r\n {\r\n return elapsedTime;\r\n }\r\n }", "public static long GetElapsedTime() {\n\t\treturn System.currentTimeMillis() - _lTime;\n\t}", "long duration();", "public double getSpeedPerFrame(){\r\n\t\treturn speed;\r\n\t}", "public static long getElapsedTime() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed;\n\t}", "public double getElapsedTime() {\r\n return (double) (elapsedTime / 1000.0); // convert from milliseconds to seconds\r\n }", "int getSubframesCount();", "public long getElapsedTimeSecs() {\n return running ? ((System.currentTimeMillis() - startTime) / 1000) % 60 : 0;\n }", "public long getElapsedTime() {\n\t\treturn this.getTime();\n\t}", "public long getElapsedMs()\n\t{\n\t\tif (m_running)\n\t\t{\n\t\t\tlong systemMs = SystemClock.elapsedRealtime();\n\t\t\treturn m_elapsedMs + (systemMs - m_lastMs);\n\t\t}\n\n\t\treturn m_elapsedMs;\n\t}", "public static long getElapsedTime() {\n long time = System.currentTimeMillis() - START_TIME;\n // long time = System.nanoTime() / 1000000;\n return time;\n }", "private static int getDuration() {\n\t\tStack<Object> stack = b.getCurrentWorkFrame();\n\t\tObject obj = stack.peek();\n\t\tif (Simulator.DEBUG)\n\t\t\tSystem.out.println(b.printStack() + \"...\");\n\t\tif (obj instanceof WorkFrame)\n\t\t\tthrow new RuntimeException(\"***ERROR: the next obj on stack should\"\n\t\t\t\t\t+ \"be an activity! WF_Sim.getDuration\" + obj.toString());\n\t\tActivityInstance ai = (ActivityInstance) stack.peek();\n\t\tif (ai.getActivity() instanceof CompositeActivity) {\n\t\t\tCompositeActivity comp = (CompositeActivity) ai.getActivity();\n\t\t\tif (frameInImpassed(comp))\n\t\t\t\treturn -1;\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"***ERROR: push shouldn't have ended \" +\n\t\t\t\t\t\"with a composite on top\");\n\t\t}\n\t\treturn ai.getDuration();\n\t}", "private double updateFrameRate(long now) {\n long oldFrameTime = frameTimes[frameTimeIndex];\n frameTimes[frameTimeIndex] = now;\n frameTimeIndex = (frameTimeIndex + 1) % frameTimes.length;\n if (numFrameTimes < frameTimes.length) {\n numFrameTimes++;\n }\n long elapsedNanos = now - oldFrameTime;\n long elapsedNanosPerFrame = elapsedNanos / numFrameTimes;\n double frameRate = 1_000_000_000.0 / elapsedNanosPerFrame;\n return frameRate;\n }", "public double time() {\n long diff = System.nanoTime() - start;\n double seconds = diff * 0.000000001;\n return seconds;\n }", "public long duration() {\n\t\treturn end - start;\n\t}", "public com.google.protobuf.UInt64Value getFramesCount() {\n if (framesCountBuilder_ == null) {\n return framesCount_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : framesCount_;\n } else {\n return framesCountBuilder_.getMessage();\n }\n }", "int getFrame() {\n return currFrame;\n }", "public long getTimeElapsed() {\r\n\t long now = new Date().getTime();\r\n\t long timePassedSinceLastUpdate = now - this.updatedSimTimeAt;\r\n\t return this.pTrialTime + timePassedSinceLastUpdate;\r\n\t}", "public int getTotalTime();", "public long elapsedTime(){\n\n // calculate elapsed time by getting current CPU time and substracting the CPU time from when we started the stopwatch\n\n // this does not stop the stopwatch\n\n return (magicBean.getCurrentThreadCpuTime() - stopWatchStartTimeNanoSecs);\n\n }", "public long getElapsedTicks() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed / nsPerTick;\n\t}", "public long elapsedMillis() {\n/* 162 */ return elapsedTime(TimeUnit.MILLISECONDS);\n/* */ }", "public abstract float getSecondsPerUpdate();", "public int getTargetFPS() {\r\n return fps;\r\n }", "public int getFps() {\n\t\treturn fpsTemp;\n\t}", "public int getFrame() {\r\n return frame;\r\n }", "public String elapsedTime() {\n return totalWatch.toString();\n }", "public void processFrame(float deltaTime);", "public float getSecondsElapsed() { return _startTime==0? 0 : (System.currentTimeMillis() - _startTime)/1000f; }", "public int getFrame()\n\t{\n\t\treturn currFrame;\n\t}", "public int getFrameInterval() {\n if (mPresentationEngine == null) {\n return 0;\n }\n return mPresentationEngine.getFrameInterval();\n }", "int time()\n\t{\n\t\treturn totalTick;\n\t}", "public double computeElapsedTime() {\r\n\r\n long now = System.currentTimeMillis();\r\n\r\n elapsedTime = (double) (now - startTime);\r\n\r\n // if elasedTime is invalid, then set it to 0\r\n if (elapsedTime <= 0) {\r\n elapsedTime = (double) 0.0;\r\n }\r\n\r\n return (double) (elapsedTime / 1000.0); // return in seconds!!\r\n }", "public int getDuration() {\n\t\treturn (int) ((endTime.getTime()-startTime.getTime())/1000) + 1;\n\t}", "public double readClock()\n {\n\tif (frameByFrameClock) {\n\t return frameNumber * (1/30.0f);\n\t} else {\n\t long elapsed;\n\t \n\t if (drawAnimation.value) {\n\t\t// Time during animation\n\t\telapsed = System.currentTimeMillis() - startTime;\n\t } else {\n\t\t// Time during pause\n\t\telapsed = pauseTime - startTime;\n\t }\n\t \n\t return elapsed / 1000.0f;\n\t}\n }", "public long getElapsedSeconds() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed / nsPerSs;\n\t}", "public Long getElapsedTime() {\n return elapsedTime;\n }", "public float getFrameRate() { return 1000f/_interval; }", "public int getScore() {\n int totalScore = 0;\n for (Frame current : frames) {\n totalScore += current.getScore();\n }\n return totalScore;\n }", "public double getFPS() {\n\t\treturn frequency;\n\t}", "public static long getTotalHitTime() {\r\n return _time;\r\n }", "@XmlElement(name = \"numberOfFrames\")\n public int getNumberOfFramesSerialize() {\n return timeManager.numberOfFrames;\n }", "private int mRead() {\n\t\t// read in a full buffer of bytes from the file\n\t\tint bytesRead = rawBytes.length;\n\t\tif (loop) {\n\t\t\treadBytesLoop();\n\t\t} else {\n\t\t\tbytesRead = readBytes();\n\t\t}\n\t\t// convert them to floating point\n\t\tint frameCount = bytesRead / format.getFrameSize();\n\t\tsynchronized (buffer) {\n\t\t\tbuffer.setSamplesFromBytes(rawBytes, 0, format, 0, frameCount);\n\t\t}\n\n\t\treturn frameCount;\n\t}", "public double getTotalTime()\n\t{\n\t\treturn this.timeBallHitsGround;\n\t}", "public float getMovementAnimationDuration() {\r\n\t\treturn (TILESIZE / getMovementSpeed()) * TARGET_FRAME_DELTA;\r\n\t}", "public int getWidth() {\r\n return frameWidth;\r\n }", "protected abstract float getFrameTimeNormalAnimation();", "public int getFrameDelay() {\n\t\treturn frameDelay;\n\t}", "public int getTimeLength() {\r\n return timeLength;\r\n }", "@DISPID(55)\r\n\t// = 0x37. The runtime will prefer the VTID if present\r\n\t@VTID(53)\r\n\tint actualCPUTime_Seconds();", "public long getSampleFrameLength() {\n\t\treturn ais.getFrameLength();\n\t}", "public float getTime()\r\n\t{\r\n\t\treturn runningTime;\r\n\t}", "long getElapsedTime(Context context);", "public int totalTime(){\n\t\t\n\t\tint time=0;\n\t\t\n\t\n\t\tfor(int i=0; (i<songList.length);i++){\n\t\t\t\n\t\t\tif(songList[i]!=null){\n\t\t\t\n\t\t\ttime+= songList[i].getDuration();\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn time;\n\t\t\n\t}", "@java.lang.Override\n public com.google.protobuf.UInt64ValueOrBuilder getFramesCountOrBuilder() {\n return getFramesCount();\n }", "int getRunningDuration();", "public float getTime() {\n return Math.abs(endTime - startTime) / 1000000f;\n }", "public int getSecondsPassed()\n {\n return this.seconds;\n }", "public String getTimeframe() {\n return this.timeframe;\n }", "public String getElapsedTime() {\n return elapsedTime;\n }", "private long getGameDuration() {\n return ((System.currentTimeMillis() - startGameTime) / 1000);\n }", "public double getSecs( );" ]
[ "0.7519336", "0.74644643", "0.73234886", "0.72275573", "0.7161156", "0.700501", "0.6937332", "0.6852544", "0.6745452", "0.6739652", "0.6735573", "0.6720378", "0.6651899", "0.6588729", "0.6583715", "0.6572621", "0.657172", "0.6510062", "0.6502684", "0.646121", "0.64501613", "0.64031404", "0.6400787", "0.6398151", "0.63454664", "0.6320434", "0.63143647", "0.63041955", "0.6294979", "0.6293523", "0.6266577", "0.6258821", "0.62441254", "0.62271094", "0.62240446", "0.62210125", "0.6205778", "0.61813587", "0.6168626", "0.6168234", "0.61652", "0.6159637", "0.6155369", "0.6151173", "0.6132736", "0.6125264", "0.6098525", "0.6064201", "0.6052543", "0.6045618", "0.6044479", "0.60439616", "0.6041974", "0.60406035", "0.6035096", "0.6022645", "0.60122466", "0.60058796", "0.59936374", "0.59909457", "0.59752643", "0.59542954", "0.5942489", "0.59368455", "0.5929754", "0.5904042", "0.58877647", "0.58862925", "0.5882894", "0.5858361", "0.5851287", "0.58449376", "0.5834249", "0.58226573", "0.57790804", "0.57699704", "0.5761182", "0.5755264", "0.57448137", "0.574335", "0.57346517", "0.57188725", "0.5706639", "0.57025474", "0.5701525", "0.5693281", "0.5681804", "0.56792414", "0.5675433", "0.56694883", "0.56575775", "0.564897", "0.5646369", "0.5646121", "0.5642426", "0.56421345", "0.56340414", "0.563199", "0.56272393", "0.5626019" ]
0.76117074
0
Number of free supply.
public static int getSupplyFree() { return getSupplyTotal() - getSupplyUsed(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getSupplyUsed() {\n return Atlantis.getBwapi().getSelf().getSupplyUsed() / 2;\n }", "int getTotalFree();", "public static int totalSupply() {\n return totalSupplyGet();\n }", "public int getAvailableCount();", "public int getTotalSupply() {\n if (this.totalSupply == -1) {\n int tempTotalSupply = 0;\n for (G good : this.goods) {\n tempTotalSupply += good.getSupply();\n }\n this.totalSupply = tempTotalSupply;\n }\n return this.totalSupply;\n }", "private int getNumberOfFreeChairs() {\n return this.numberOfChairs - waitingStudents.size();\n }", "public static int getSupplyTotal() {\n return Atlantis.getBwapi().getSelf().getSupplyTotal() / 2;\n }", "public int available() {\n return numAvailable;\n }", "public Integer getFreeTimes() {\r\n return freeTimes;\r\n }", "public int getFreeSpace() {\n\t\treturn this.getWeightLimit() - this.getCarriedWeight();\n\t}", "public int freeCapacity() {\n\t\treturn this.capacity - this.flow;\n\t}", "public Integer getFreeSlots() {\n return AvailableSlots.size();\n }", "int available() {\n return numAvailable;\n }", "@Override\n\tpublic int numUses() {\n\t\treturn this.use;\n\t}", "public int getFreeListSize() {\n return this.mFreeList.size();\n }", "public double getAvailable() {\r\n\t\treturn this.capacity - flow;\r\n\t}", "public Integer getFreePermits() {\n return (Integer) getAttributeInternal(FREEPERMITS);\n }", "public Double getTotalAvailable(){\n return totalAvailable;\n }", "public int getRemainingUses() {\n return remainingUses;\n }", "public int passengers(){\n return currentCapacity(); \n }", "public int getCountExemplarsFree() {\r\n \t\tif (book == null) {\r\n \t\t\treturn 0;\r\n \t\t}\r\n \r\n \t\tint freeCount = 0;\r\n \t\tList<Exemplar> exemplars = exemplarMgr.findByBook(book);\r\n \t\t// list exemplars\r\n \t\tfor (Exemplar exemplar : exemplars) {\r\n \t\t\tif (!exemplar.getIsBorrowed()) {\r\n \t\t\t\tfreeCount++;\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\treturn freeCount;\r\n \t}", "@Override\n public int requestAvailableCapacity() {\n int total = facility.getCapacity();\n for (Facility facility : facilities) {\n total += facility.getCapacity();\n }\n return total;\n }", "public int getSpace(){\n // iterate through nodes\n int totalSpace = 0;\n Collection<SupplyNode> nodeCol = t.values();\n Iterator<SupplyNode> it = nodeCol.iterator();\n \n // multiply resource count by resource space\n while (it.hasNext()){\n SupplyNode s = it.next();\n totalSpace += (s.getCurrent()*s.getResource().getCost());\n }\n \n // return\n return totalSpace;\n }", "public int getFreezers ()\n {\n return (freezers);\n }", "protected long getBytesFree()\r\n {\r\n return this.bytesFree.get();\r\n }", "public int getAvailNumComps(){\n return this.mFarm.getAvailNumComps();\n }", "public int getFreeSpace() {\n\t\tif(coordinate.size() == 0)\n\t\t\treturn -1;\n\t\tint rnd = new Random(new Date().getTime()).nextInt(coordinate.size());\n\t\tint value = coordinate.get(rnd);\n\t\tcoordinate.remove(rnd);\n\t\treturn value;\n\t}", "public final int Available() {\n\t\treturn m_rxlen;\n\t}", "protected int numberRemainingTickets()\n\t{\n\t\treturn tickets.size();\n\t}", "public int howManyAvailable(Item i){/*NOT IMPLEMENTED*/return 0;}", "public int getFreeSpace() throws YAPI_Exception\n {\n return get_freeSpace();\n }", "public int getCountOfFreeDevices() {\n int count = 0;\n for (TestDevice td : mDevices) {\n if (td.getStatus() == TestDevice.STATUS_IDLE) {\n count++;\n }\n }\n return count;\n }", "public int getFreeSpace() {\n return capacity - storage;\n }", "private int currentCapacity(){\n int total = 0;\n \n for(int i = Elevator.MIN_FLOOR; i <= Elevator.MAX_FLOOR; i++){\n total += destinedPassengers[i];\n }\n \n return total;\n }", "public int countAvailablePowers (Power p) {\n return countPowers(p, 1);\n }", "public long getFreeSpace(){\n return freeSpace;\n }", "public int getAvailDoorCount() {\n int count = 0;\n for (Door d: getDoors()) {\n if (!d.getUsed()) {\n count++;\n }\n }\n return count;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "int getNewlyAvailableQuestsCount();", "public int getShipPartsNeededCount() {\n return (maxDays * 2) / 3;\n }", "@Override\n\tpublic long getUsedSpace()\n\t{\n\t\treturn 0;\n\t}", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public long getMinFree() {\n return params.getMinimumFree() * 1024 * 1024;\n }", "public int getCapacity( )\n {\n // Implemented by student.\n }", "public int getSlotCount() { \n return getSlotCount0();\n }", "public StationBikeCounters (int freeSlots) {\r\n\t\tthis.freeSlots=freeSlots;\r\n\t}", "int getUsedPoints();", "int getUsedPoints();", "int getUsedPoints();", "public Long used() {\n return this.used;\n }", "public void setTotalAvailable(Double totalAvailable){\n this.totalAvailable = totalAvailable;\n }", "public synchronized int getAvailableCapacity() {\n \n return (max_capacity-this.capacity);\n }", "public double getQueueFree(){\n\t\treturn unitSpaceAvailable;\n\t}", "public final long getAvailable()\n\t{\n\t\treturn entrySize - entryOffset;\n\t}", "private long getFree(String path) {\n StatFs statFs = new StatFs(path);\n\n if (Constants.BETA)\n Log.i(\"DeviceModel\", \"Free on \"+path+\"=\"+statFs.getBlockSize());\n return (isJellyBean)\n ? statFs.getAvailableBlocksLong() * statFs.getBlockSizeLong()\n : (long)statFs.getAvailableBlocks() * (long)statFs.getBlockSize();\n }", "public int size() {\n return used;\n }", "public BigDecimal getAvailable() {\n return available;\n }", "public Long getUsed() {\r\n return used;\r\n }", "public int getTotalCapacity() {\n return totalCapacity;\n }", "@Query\n\tpublic int countFreeUin();", "public int getNewlyAvailableQuestsCount() {\n return newlyAvailableQuests_.size();\n }", "int getPurchasableOffersCount();", "public static int size_receivets() {\n return (32 / 8);\n }", "public void setFreeTimes(Integer freeTimes) {\r\n this.freeTimes = freeTimes;\r\n }", "public static final int quantityAvailable(String productKey) {\n\t\tInteger tValue = sConsumableProducts.get(productKey);\n\t\tif (tValue == null) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn tValue.intValue();\n\t\t}\n\t}", "public int getCapacity() {\n switch (getID()) {\n case 5509:\n return 3;\n case 5510:\n case 5511:\n return 6;\n case 5512:\n case 5513:\n return 9;\n case 5514:\n case 5515:\n default:\n return 12;\n }\n }", "protected final static int getPurchases(final Profile prf) {\n return Coltil.size(prf.availableClothings) + Coltil.size(prf.availableHats)\r\n \t\t+ Coltil.size(prf.availableJumpModes) + Coltil.size(prf.availableAssists)\r\n \t\t+ Coltil.size(prf.availableSpecialAnimals) + Coltil.size(prf.availableBirds) - 1;\r\n }", "public final int getLength()\n {\n return m_firstFree;\n }", "public long getFreeDiskSpace() {\n\n\t// Get the data of the BAM.\n\tbyte [] bamData = getSector( 18, 0).getDataBytes();\n\n\tlong result = 0L; // Buffer for the result.\n\n\t// Just count the set bits from 0x04 to 0x8f.\n\tfor( int currentByteIndex = 0x04; currentByteIndex <= 0x8f; ++currentByteIndex) {\n\t \n\t // Get the current byte from the BAM.\n\t byte currentBamByte = bamData[ currentByteIndex];\n\n\t // Count the set bits in the current byte.\n\t for( int currentBit = 1; currentBit <= 0x80; currentBit <<= 1) {\n\n\t\tif( ( currentBamByte & currentBit) != 0) { // Is this block available?\n\n\t\t // Yes => add this free sector to the result;\n\t\t result += getUnitSize();\n\t\t}\n\t }\n\t}\n\n\treturn result; // Return the result.\n }", "public final int size()\n {\n return m_firstFree;\n }", "BigDecimal getCacheSpaceAvailable();", "public int UnassignedCount() {\n \t\treturn jobqueue.size();\n \t}", "public static int getCapacity () {\n\t\tcapacity = nbrOfHouses*Barn.getCapacity();\n\t\treturn capacity;\n\t}", "private int findFreeSlot(){\n\t\tfor(int i = 0; i < INVENTORY_SLOTS; i++){\n\t\t\tif(inventoryItems[i] == null){\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "public static int consumedPower(){\n int consumedPower = 0;\n for (ElectricalHomeDevice device : allTrunedOnDevices){\n consumedPower += device.getDevicePower();\n }\n return consumedPower;\n }", "public int numSpaceLeft()\n {\n \n return itemLimit - itemsHeld;\n }", "int getReaultCount();", "public float getCapacity();", "public NM getNumberOfItemsPerUnit() { \r\n\t\tNM retVal = this.getTypedField(14, 0);\r\n\t\treturn retVal;\r\n }", "long getTotalFreeSpaceInBytes();", "long getTotalFreeSpaceInBytes();", "int count() {\n return index.capacity() / 24;\n }", "public int getFree() {\n\t\t\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif(!this.get(i).clientAlive) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t\t\n\t}", "@Schema(example = \"0x174876e800\", required = true, description = \"Total issue count (in hexadecimal)\")\n public String getTotalSupply() {\n return totalSupply;\n }", "public int readyCount ()\n\t{\n\t\tint count =0;\n\t\tIterator<Player> it = iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tPlayer p = it.next();\n\t\t\tif(p.available())\n\t\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}", "public int getFuelCapacity() {\r\n return fuelCapacity;\r\n }", "public Integer getFreeTixianTimes() {\r\n return freeTixianTimes;\r\n }", "public long getTotalFreeSpaceInBytes() {\n return totalFreeSpaceInBytes_;\n }", "public long getTotalFreeSpaceInBytes() {\n return totalFreeSpaceInBytes_;\n }", "@Override\n\tpublic long getFreeBlocks() {\n\t\treturn 0;\n\t}", "public int getproductCount() {\n\t\treturn getFieldCount(productPlate);\n\t}", "@Override\n\t\tpublic long usage() {\n\t\t\t\n\t\t\treturn super.usage();\n\t\t}", "@Override\n\tpublic int howmuch() {\n\t\treturn price;\n\t}", "public int getRemainingCapacity() { // get the remaining capacity\n\t\treturn maximumCapacity - cargoCapacity;\n\t}", "public int size() {\n int found = 0;\n Node<T> it = head.get();\n // Do a raw count.\n for (int i = 0; i < capacity; i++) {\n if (!it.free.get()) {\n found += 1;\n }\n it = it.next;\n }\n return found;\n }", "public int getSupplyReadinessRate() {\n return supplyReadinessRate;\n }" ]
[ "0.77858627", "0.7750841", "0.76119316", "0.73121464", "0.71639353", "0.7149762", "0.70644116", "0.70597804", "0.6961488", "0.69433296", "0.6929255", "0.69029814", "0.68458766", "0.683331", "0.6824184", "0.6799182", "0.67989546", "0.67792493", "0.67783946", "0.6769156", "0.6768675", "0.6767127", "0.67265266", "0.67096", "0.670292", "0.66569173", "0.66176474", "0.65471745", "0.6534876", "0.65237445", "0.64998496", "0.64978296", "0.6487972", "0.646818", "0.646193", "0.64522344", "0.64277923", "0.6411839", "0.6411839", "0.6411839", "0.64045286", "0.64034116", "0.6384522", "0.6379882", "0.6379882", "0.6379882", "0.63507587", "0.6311479", "0.6283393", "0.62774825", "0.62767154", "0.62767154", "0.62767154", "0.6264524", "0.6261382", "0.62601346", "0.6250858", "0.62498", "0.62180376", "0.6211483", "0.6206381", "0.6201694", "0.6184327", "0.6174761", "0.6154671", "0.61506915", "0.61461854", "0.613877", "0.6136079", "0.6135774", "0.61333084", "0.61214924", "0.6113431", "0.6108058", "0.6106646", "0.6101762", "0.6089544", "0.6083593", "0.6075203", "0.6073987", "0.60722315", "0.60708934", "0.6069066", "0.60687286", "0.60687286", "0.60680944", "0.6066227", "0.6063558", "0.60605794", "0.60596085", "0.60566473", "0.6049247", "0.6049247", "0.60235924", "0.6020157", "0.60180575", "0.6017063", "0.6013687", "0.6010626", "0.60090023" ]
0.84079856
0
Number of supply used.
public static int getSupplyUsed() { return Atlantis.getBwapi().getSelf().getSupplyUsed() / 2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int totalSupply() {\n return totalSupplyGet();\n }", "public static int getSupplyFree() {\n return getSupplyTotal() - getSupplyUsed();\n }", "@Override\n\tpublic int numUses() {\n\t\treturn this.use;\n\t}", "public int getTotalSupply() {\n if (this.totalSupply == -1) {\n int tempTotalSupply = 0;\n for (G good : this.goods) {\n tempTotalSupply += good.getSupply();\n }\n this.totalSupply = tempTotalSupply;\n }\n return this.totalSupply;\n }", "public static int getSupplyTotal() {\n return Atlantis.getBwapi().getSelf().getSupplyTotal() / 2;\n }", "public int getAvailableCount();", "int getTotalFree();", "public int getRemainingUses() {\n return remainingUses;\n }", "public int passengers(){\n return currentCapacity(); \n }", "public int getSpace(){\n // iterate through nodes\n int totalSpace = 0;\n Collection<SupplyNode> nodeCol = t.values();\n Iterator<SupplyNode> it = nodeCol.iterator();\n \n // multiply resource count by resource space\n while (it.hasNext()){\n SupplyNode s = it.next();\n totalSpace += (s.getCurrent()*s.getResource().getCost());\n }\n \n // return\n return totalSpace;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUses() {\n return statUse.getDenominator();\n }", "public int countAvailablePowers (Power p) {\n return countPowers(p, 1);\n }", "public int getAvailNumComps(){\n return this.mFarm.getAvailNumComps();\n }", "@Override\n\t\tpublic long usage() {\n\t\t\t\n\t\t\treturn super.usage();\n\t\t}", "public Long used() {\n return this.used;\n }", "private int getNumberOfFreeChairs() {\n return this.numberOfChairs - waitingStudents.size();\n }", "public static int consumedPower(){\n int consumedPower = 0;\n for (ElectricalHomeDevice device : allTrunedOnDevices){\n consumedPower += device.getDevicePower();\n }\n return consumedPower;\n }", "public int getAvailDoorCount() {\n int count = 0;\n for (Door d: getDoors()) {\n if (!d.getUsed()) {\n count++;\n }\n }\n return count;\n }", "int getUsedPoints();", "int getUsedPoints();", "int getUsedPoints();", "public Long getUsed() {\r\n return used;\r\n }", "public int getShipPartsNeededCount() {\n return (maxDays * 2) / 3;\n }", "@Override\n\tpublic int howmuch() {\n\t\treturn price;\n\t}", "@Override\n public int requestAvailableCapacity() {\n int total = facility.getCapacity();\n for (Facility facility : facilities) {\n total += facility.getCapacity();\n }\n return total;\n }", "public int getproductCount() {\n\t\treturn getFieldCount(productPlate);\n\t}", "public int getTouchCount()\n {\n return m_cUses;\n }", "public int available() {\n return numAvailable;\n }", "@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}", "public int getSlotCount() { \n return getSlotCount0();\n }", "public int countUsedPowers (Power p) {\n return countPowers(p, 2);\n }", "public int size() {\n return used;\n }", "int getReaultCount();", "public int numberOfTires() {\n int tires = 4;\n return tires;\n }", "int getSnInfoCount();", "int getSnInfoCount();", "int getSnInfoCount();", "public Double getTotalAvailable(){\n return totalAvailable;\n }", "int available() {\n return numAvailable;\n }", "public NM getNumberOfItemsPerUnit() { \r\n\t\tNM retVal = this.getTypedField(14, 0);\r\n\t\treturn retVal;\r\n }", "int getPurchasableOffersCount();", "public int getCapacity( )\n {\n // Implemented by student.\n }", "@Override\n\tpublic long getUsedSpace()\n\t{\n\t\treturn 0;\n\t}", "protected int numberRemainingTickets()\n\t{\n\t\treturn tickets.size();\n\t}", "public int getSupplyReadinessRate() {\n return supplyReadinessRate;\n }", "public int howManyAvailable(Item i){/*NOT IMPLEMENTED*/return 0;}", "@Override\r\n\tpublic int getPegCount() {\r\n\t\tint shipSize = 3;\r\n\t\treturn shipSize;\r\n\t}", "@Override\n\tpublic int getUses() {\n\t\treturn heldObj.getUses();\n\t}", "public Integer getFreeTimes() {\r\n return freeTimes;\r\n }", "public int getSupplies() {\n\t\treturn supplies;\n\t}", "protected int getWoodCount() {\n\t\treturn ent.getItemCount(Block.wood.blockID);\n\t}", "int getNewlyAvailableQuestsCount();", "int getDataScansCount();", "int getNumberOfCavalry();", "public static int size_receivets() {\n return (32 / 8);\n }", "public int GetSizeOfComputerHand(){\n return handComputer.size();\n }", "private int currentCapacity(){\n int total = 0;\n \n for(int i = Elevator.MIN_FLOOR; i <= Elevator.MAX_FLOOR; i++){\n total += destinedPassengers[i];\n }\n \n return total;\n }", "private int getNumberOfBoxesOfAllShips() {\r\n int count = 30;\r\n return count;\r\n }", "@Schema(example = \"0x174876e800\", required = true, description = \"Total issue count (in hexadecimal)\")\n public String getTotalSupply() {\n return totalSupply;\n }", "int getNumOfBuyOrders();", "public int getTotRuptures();", "public long count() {\n\t\treturn 0;\n\t}", "public long count() {\n\t\treturn 0;\n\t}", "public double getTotalNumCpus () { return n.getResources(RESOURCETYPE_CPU).stream().mapToDouble(r->r.getCapacity()).sum (); }", "@Override\n public double total() {\n return 2500;\n }", "public Long usage() {\n return this.usage;\n }", "int getNumOfSellOrders();", "public int getFreezers ()\n {\n return (freezers);\n }", "private void incrementUsageCount() {\n usageCount++;\n }", "public int getNumberShips();", "public double getAvailable() {\r\n\t\treturn this.capacity - flow;\r\n\t}", "public static int getCapacity () {\n\t\tcapacity = nbrOfHouses*Barn.getCapacity();\n\t\treturn capacity;\n\t}", "int count() {\n return index.capacity() / 24;\n }", "public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}", "public int totalParties() {\n return numParties;\n }", "@Override\n\tpublic int selectReserveCount() {\n\t\treturn dgCallServiceMapper.selectReserveCount();\n\t}", "public int getCount(){\n int c = 0;\n for(String s : this.counts){\n c += Integer.parseInt(s);\n }\n return c;\n }", "public java.lang.Integer getUsedCounter() {\n\t\treturn this.usedCounter;\n\t}", "public long getBytesUsed(){\r\n\t\treturn bytesUsed;\r\n\t}", "int getAcksCount();", "int getAcksCount();", "protected final static int getPurchases(final Profile prf) {\n return Coltil.size(prf.availableClothings) + Coltil.size(prf.availableHats)\r\n \t\t+ Coltil.size(prf.availableJumpModes) + Coltil.size(prf.availableAssists)\r\n \t\t+ Coltil.size(prf.availableSpecialAnimals) + Coltil.size(prf.availableBirds) - 1;\r\n }", "public int lireCount() {\n\t\treturn cpt;\n\t}", "public int getEquipmentCount() {\r\n\t\tint ret = 0;\r\n\t\tPerson p = model.getData();\r\n\t\tif ( p!=null ) {\r\n\t\t\tret = p.getEquipmentCount();\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "public int getCapacity() {\n switch (getID()) {\n case 5509:\n return 3;\n case 5510:\n case 5511:\n return 6;\n case 5512:\n case 5513:\n return 9;\n case 5514:\n case 5515:\n default:\n return 12;\n }\n }", "public int getRemainingPausesCount() {\r\n return remainingPausesCount;\r\n }", "int getTotalLeased();", "public int getTotalCapacity() {\n return totalCapacity;\n }", "public int getNumberOfProducts ()\n {\n return (numberOfProducts);\n }", "public void buyFuelGainMultiply() {\n this.fuelGainMultiply++;\n }", "public int sizeOfSoftwareArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SOFTWARE$20);\n }\n }", "public Integer getBuyCount() {\n return buyCount;\n }", "public NM getPsl14_NumberOfItemsPerUnit() { \r\n\t\tNM retVal = this.getTypedField(14, 0);\r\n\t\treturn retVal;\r\n }", "public int getWordsQuantity(){\n\t\treturn counter;\n\t}" ]
[ "0.7959107", "0.769782", "0.76877517", "0.74830884", "0.7346501", "0.72638106", "0.6995668", "0.69542867", "0.68659174", "0.6782424", "0.6778341", "0.6778341", "0.6778341", "0.67254096", "0.67254096", "0.67254096", "0.67008513", "0.66912097", "0.66911954", "0.66826624", "0.6664498", "0.6651499", "0.66509765", "0.6606164", "0.6594107", "0.6594107", "0.6594107", "0.6590648", "0.6589298", "0.6572416", "0.65542525", "0.65398073", "0.6537638", "0.65370655", "0.65313256", "0.65289605", "0.6525958", "0.64952576", "0.64934933", "0.64682627", "0.6464388", "0.6464388", "0.6464388", "0.6463465", "0.64554584", "0.6447215", "0.6413085", "0.640488", "0.639729", "0.6394049", "0.63891107", "0.6388866", "0.63842005", "0.63802296", "0.63794875", "0.6373997", "0.6358825", "0.6351247", "0.63321316", "0.63226265", "0.63105166", "0.63044983", "0.6297134", "0.6290828", "0.62719584", "0.62690943", "0.6262819", "0.6258878", "0.6258878", "0.62567645", "0.62552327", "0.6254696", "0.62451303", "0.6228327", "0.6224253", "0.6220945", "0.6217883", "0.62141514", "0.62132066", "0.6204502", "0.6199449", "0.61965483", "0.6195163", "0.6184442", "0.61819464", "0.61765414", "0.61765414", "0.6175839", "0.61740077", "0.616291", "0.61534774", "0.61524594", "0.6152061", "0.6150841", "0.6145162", "0.6142866", "0.6138028", "0.6133091", "0.613157", "0.61308825" ]
0.8211073
0
Number of supply totally available.
public static int getSupplyTotal() { return Atlantis.getBwapi().getSelf().getSupplyTotal() / 2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int totalSupply() {\n return totalSupplyGet();\n }", "public static int getSupplyUsed() {\n return Atlantis.getBwapi().getSelf().getSupplyUsed() / 2;\n }", "public int getAvailableCount();", "public static int getSupplyFree() {\n return getSupplyTotal() - getSupplyUsed();\n }", "public int getTotalSupply() {\n if (this.totalSupply == -1) {\n int tempTotalSupply = 0;\n for (G good : this.goods) {\n tempTotalSupply += good.getSupply();\n }\n this.totalSupply = tempTotalSupply;\n }\n return this.totalSupply;\n }", "public int available() {\n return numAvailable;\n }", "int available() {\n return numAvailable;\n }", "int getTotalFree();", "public int getAvailNumComps(){\n return this.mFarm.getAvailNumComps();\n }", "public Double getTotalAvailable(){\n return totalAvailable;\n }", "@Override\n public int requestAvailableCapacity() {\n int total = facility.getCapacity();\n for (Facility facility : facilities) {\n total += facility.getCapacity();\n }\n return total;\n }", "public int howManyAvailable(Item i){/*NOT IMPLEMENTED*/return 0;}", "@Override\n\tpublic int numUses() {\n\t\treturn this.use;\n\t}", "public int countAvailablePowers (Power p) {\n return countPowers(p, 1);\n }", "public int passengers(){\n return currentCapacity(); \n }", "int getPurchasableOffersCount();", "int getNewlyAvailableQuestsCount();", "private int getNumberOfFreeChairs() {\n return this.numberOfChairs - waitingStudents.size();\n }", "public int getAvailDoorCount() {\n int count = 0;\n for (Door d: getDoors()) {\n if (!d.getUsed()) {\n count++;\n }\n }\n return count;\n }", "public int getRemainingUses() {\n return remainingUses;\n }", "public int getSpace(){\n // iterate through nodes\n int totalSpace = 0;\n Collection<SupplyNode> nodeCol = t.values();\n Iterator<SupplyNode> it = nodeCol.iterator();\n \n // multiply resource count by resource space\n while (it.hasNext()){\n SupplyNode s = it.next();\n totalSpace += (s.getCurrent()*s.getResource().getCost());\n }\n \n // return\n return totalSpace;\n }", "public static final int quantityAvailable(String productKey) {\n\t\tInteger tValue = sConsumableProducts.get(productKey);\n\t\tif (tValue == null) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn tValue.intValue();\n\t\t}\n\t}", "public double getAvailable() {\r\n\t\treturn this.capacity - flow;\r\n\t}", "public int getShipPartsNeededCount() {\n return (maxDays * 2) / 3;\n }", "public int readyCount ()\n\t{\n\t\tint count =0;\n\t\tIterator<Player> it = iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tPlayer p = it.next();\n\t\t\tif(p.available())\n\t\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}", "@Override\n\tpublic int selectReserveCount() {\n\t\treturn dgCallServiceMapper.selectReserveCount();\n\t}", "public int getSlotCount() { \n return getSlotCount0();\n }", "public int getCountOfFreeDevices() {\n int count = 0;\n for (TestDevice td : mDevices) {\n if (td.getStatus() == TestDevice.STATUS_IDLE) {\n count++;\n }\n }\n return count;\n }", "int getReaultCount();", "public Integer getFreePermits() {\n return (Integer) getAttributeInternal(FREEPERMITS);\n }", "int getSnInfoCount();", "int getSnInfoCount();", "int getSnInfoCount();", "public int getTotalResultsAvailable() {\n\t\tint total = 0;\n\t\tif (results != null) {\n\t\t\tBigInteger count = results.getTotalResultsAvailable();\n\t\t\ttotal = count.intValue();\n\t\t}\n\t\treturn total;\n\t}", "public int getSupplyReadinessRate() {\n return supplyReadinessRate;\n }", "int getNumberOfCavalry();", "public int getFreezers ()\n {\n return (freezers);\n }", "private int currentCapacity(){\n int total = 0;\n \n for(int i = Elevator.MIN_FLOOR; i <= Elevator.MAX_FLOOR; i++){\n total += destinedPassengers[i];\n }\n \n return total;\n }", "public int getproductCount() {\n\t\treturn getFieldCount(productPlate);\n\t}", "int getNumOfBuyOrders();", "public Integer getFreeSlots() {\n return AvailableSlots.size();\n }", "int getReservePokemonCount();", "public int getLengthAvailableProducts(Player customer){\n\t\treturn this.getAvailableProducts(customer).size();\n\t}", "int getNumOfSellOrders();", "private int getNumberOfBoxesOfAllShips() {\r\n int count = 30;\r\n return count;\r\n }", "public static int consumedPower(){\n int consumedPower = 0;\n for (ElectricalHomeDevice device : allTrunedOnDevices){\n consumedPower += device.getDevicePower();\n }\n return consumedPower;\n }", "private String getSeatsAvailable(){\n int Available= CourseCapacity - RegisteredStudents.size();\n return Available+\"/\"+ CourseCapacity;\n }", "public final int Available() {\n\t\treturn m_rxlen;\n\t}", "private int getFromSellableInventoryService() {\n Map<String, String> pathVars = Maps.newHashMap();\n pathVars.put(\"location\", LOCATION);\n pathVars.put(\"sku\", SKU);\n try {\n InventoryDto inventory = restTemplate.getForObject(\n \"http://localhost:9093/inventory/locations/{location}/skus/{sku}\", InventoryDto.class, pathVars);\n\n return inventory.getCount();\n } catch (RestClientException e) {\n return 0;\n }\n }", "public int getNumberOfProducts ()\n {\n return (numberOfProducts);\n }", "int getAcksCount();", "int getAcksCount();", "int numSeatsAvailable();", "protected final static int getPurchases(final Profile prf) {\n return Coltil.size(prf.availableClothings) + Coltil.size(prf.availableHats)\r\n \t\t+ Coltil.size(prf.availableJumpModes) + Coltil.size(prf.availableAssists)\r\n \t\t+ Coltil.size(prf.availableSpecialAnimals) + Coltil.size(prf.availableBirds) - 1;\r\n }", "public int getNumberShips();", "public void setTotalAvailable(Double totalAvailable){\n this.totalAvailable = totalAvailable;\n }", "int getDisksCount();", "public int getCapacity( )\n {\n // Implemented by student.\n }", "public NM getNumberOfItemsPerUnit() { \r\n\t\tNM retVal = this.getTypedField(14, 0);\r\n\t\treturn retVal;\r\n }", "public int getNumberAvailableSeats(){\n int out = Integer.MAX_VALUE;\n for(int i=0; i<flights.size();i++){\n for(int j=0; j<availabilities.size(); j++) {\n if (flights.get(i).getFlightNumber().equals(availabilities.get(j).getFlightNumber())) {\n if (availabilities.get(i).getNumberAvailableSeatsLeg1() < out) {\n out = availabilities.get(i).getNumberAvailableSeatsLeg1();\n }\n if (availabilities.get(i).getNumberAvailableSeatsLeg2() != null) {\n if (availabilities.get(i).getNumberAvailableSeatsLeg2() < out) {\n out = availabilities.get(i).getNumberAvailableSeatsLeg2();\n }\n }\n break;\n }\n }\n }\n return out;\n }", "public final long getAvailable()\n\t{\n\t\treturn entrySize - entryOffset;\n\t}", "public BigDecimal getAvailable() {\n return available;\n }", "public int getCopiesAvailable() {\n\t\treturn this.copiesAvailable;\n\t}", "int getPriceCount();", "protected int numberRemainingTickets()\n\t{\n\t\treturn tickets.size();\n\t}", "public int getSupplies() {\n\t\treturn supplies;\n\t}", "int getDeliveriesCount();", "public int getProductCount();", "int getUsedPoints();", "int getUsedPoints();", "int getUsedPoints();", "@Override\n\tpublic int howmuch() {\n\t\treturn price;\n\t}", "public int totalParties() {\n return numParties;\n }", "public int getEquipmentCount() {\r\n\t\tint ret = 0;\r\n\t\tPerson p = model.getData();\r\n\t\tif ( p!=null ) {\r\n\t\t\tret = p.getEquipmentCount();\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "int getDataScansCount();", "int getPickupsCount();", "int getSystemCount();", "public int getFreeSpace() {\n\t\treturn this.getWeightLimit() - this.getCarriedWeight();\n\t}", "public int getNewlyAvailableQuestsCount() {\n return newlyAvailableQuests_.size();\n }", "public int getcountdrumentry(String capacity) {\n\t\tString countQuery = \"SELECT * FROM \" + DATABASE_TABLE +\" WHERE \"+Drum_Capacity+\" = '\"+capacity+\"'\";\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t int cnt = cursor.getCount();\n\t cursor.close();\n\t return cnt;\n\t\n\t}", "public int getCountExemplarsFree() {\r\n \t\tif (book == null) {\r\n \t\t\treturn 0;\r\n \t\t}\r\n \r\n \t\tint freeCount = 0;\r\n \t\tList<Exemplar> exemplars = exemplarMgr.findByBook(book);\r\n \t\t// list exemplars\r\n \t\tfor (Exemplar exemplar : exemplars) {\r\n \t\t\tif (!exemplar.getIsBorrowed()) {\r\n \t\t\t\tfreeCount++;\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\treturn freeCount;\r\n \t}", "java.math.BigInteger getNumberOfInstallments();", "public int getTotRuptures();", "public int getDownloadedPcs()\n\t{\n\t\treturn existing.cardinality();\n\t}", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "BigDecimal getCacheSpaceAvailable();", "@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}", "public int getTotalCapacity() {\n return totalCapacity;\n }", "public int countActive() {\n int result = 0;\n \n synchronized (m_reservableListMutex) {\n final Iterator iterator = m_reservables.iterator();\n \n while (iterator.hasNext()) {\n final Reservable reservable = (Reservable)iterator.next();\n \n if (!reservable.isClosed() && !reservable.isSentinel()) {\n ++result;\n }\n }\n }\n \n return result;\n }", "public double getTotalNumCpus () { return n.getResources(RESOURCETYPE_CPU).stream().mapToDouble(r->r.getCapacity()).sum (); }", "public static int size_receivets() {\n return (32 / 8);\n }", "int getNoOfParties();", "public int getNumResources() {\n \t\tint count = 0;\n \t\tfor (int i = 0; i < resources.length; i++)\n \t\t\tcount += resources[i];\n \n \t\treturn count;\n \t}", "int getReqCount();", "public static int getCapacity () {\n\t\tcapacity = nbrOfHouses*Barn.getCapacity();\n\t\treturn capacity;\n\t}", "int getBuyQuantity();", "public Integer getFreeTimes() {\r\n return freeTimes;\r\n }", "public int sizeOfSoftwareArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SOFTWARE$20);\n }\n }" ]
[ "0.8024762", "0.79585874", "0.7955324", "0.7897677", "0.74359584", "0.736655", "0.72732896", "0.726622", "0.7137895", "0.70961654", "0.7010467", "0.7003824", "0.6914271", "0.68768203", "0.68396527", "0.67658126", "0.67608565", "0.6755895", "0.6699794", "0.6686543", "0.6681667", "0.6668934", "0.66314167", "0.6626283", "0.6623617", "0.6601778", "0.65947366", "0.6592343", "0.65890497", "0.6580254", "0.65735394", "0.65735394", "0.65735394", "0.65626335", "0.65483856", "0.65398985", "0.6531774", "0.6507531", "0.650127", "0.6478233", "0.64712596", "0.6453188", "0.6452356", "0.644044", "0.64392686", "0.64259756", "0.6424788", "0.6424104", "0.64236087", "0.6421543", "0.64116997", "0.64116997", "0.6401364", "0.639331", "0.63849634", "0.6378854", "0.637824", "0.6377859", "0.6368977", "0.63655424", "0.6354403", "0.6353351", "0.6348345", "0.6347378", "0.6332649", "0.6331057", "0.6329197", "0.63240933", "0.6322682", "0.6322682", "0.6322682", "0.6314145", "0.63111836", "0.6298839", "0.62914115", "0.62712544", "0.6266756", "0.62384707", "0.6235462", "0.62299883", "0.6226003", "0.62257385", "0.6212017", "0.6208272", "0.62067145", "0.62067145", "0.62067145", "0.6204598", "0.6196398", "0.61943394", "0.61900413", "0.6189897", "0.6188083", "0.61848897", "0.6177269", "0.6175469", "0.616776", "0.61650014", "0.61611825", "0.61561036" ]
0.7306273
6
========================================================= Auxiliary Returns random int number from range [min, max], both inclusive.
public static int rand(int min, int max) { return RUtilities.rand(min, max); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int randInt(final int min, final int max) {\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n return rand.nextInt((max - min) + 1) + min;\n }", "private static int randInt(int min, int max) {\n Random rand = new Random();\n\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n int randomNum = rand.nextInt((max - min) + 1) + min;\n\n return randomNum;\n }", "static int getRandint(int min, int max) {\r\n\t\tRandom r = new Random();\r\n\t\treturn r.nextInt((max - min) + 1) + min;\r\n\t}", "public int randInt(int min, int max) {\n Random rand = new Random();\n\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n int randomNum = rand.nextInt((max - min) + 1) + min;\n\n return randomNum;\n}", "public int originalgetRandomPositiveInt(int min, int max){\r\n int number = getRandomPositiveInt(); \r\n return (int)number%(max - min + 1)+min;\r\n }", "private static int getRandomNumber(int min, int max) \n { //generates a random number within a range\n return (min + rand.nextInt((max - min) + 1));\n }", "public int randomInt(int min, int max) {\n\t\t\t\t // NOTE: Usually this should be a field rather than a method\n\t\t\t\t // variable so that it is not re-seeded every call.\n\t\t\t\t Random rand = new Random();\n\t\t\t\t // nextInt is normally exclusive of the top value,\n\t\t\t\t // so add 1 to make it inclusive\n\t\t\t\t int randomNum = rand.nextInt((max - min) + 1) + min;\n\t\t\t\t return randomNum;\n\t\t\t\t}", "public int randint(int max, int min)\n {\n Random rand = new Random();\n int randomNum = rand.nextInt((max - min) + 1) + min;\n return randomNum;\n }", "public static int randInt(int min, int max) {\n\t\t// nextInt is normally exclusive of the top value,\n\t\t// so add 1 to make it inclusive\n\t\tint randomNum = rd.nextInt((max - min) + 1) + min;\n\n\t\treturn randomNum;\n\t}", "int randomIntInRange(int min, int max) {\n\t\tRandom rand = new Random();\n\t\treturn rand.nextInt(max + 1 - min) + min;\n\t}", "private static int randomInt(int min, int max) {\n if (min >= max) {\n throw new IllegalArgumentException(\"max must be greater than min\");\n }\n\n Random r = new Random();\n return r.nextInt(max - min) + min;\n }", "private int randomIntRange(int min, int max) {\r\n Random random = new Random();\r\n if (min < 0 || max < 0) {\r\n return (random.nextInt(Math.abs(max - min)) + Math.abs(min) + 1) * -1;\r\n }\r\n return random.nextInt(max - min) + min + 1;\r\n }", "public static int getRandom(int min, int max){\n\t int x = (int)(Math.random()*((max-min)+1))+min;\n\t return x;\n\t}", "private int getRandomNumberInRange(int min, int max) {\n Random rand = new Random();\n return rand.nextInt((max - min) + 1) + min;\n }", "public static int randInt(int min, int max) {\r\n\t Random rand = new Random();\r\n\t int randomNum = rand.nextInt((max - min) + 1) + min;\r\n\t return randomNum;\r\n\t}", "public static int randInt(int min, int max) \n\t{\n\t Random rand = new Random();\n\n\t // nextInt is normally exclusive of the top value,\n\t // so add 1 to make it inclusive\n\t int randomNum = rand.nextInt((max - min) + 1) + min;\n\n\t return randomNum;\n\t}", "private int randomRange(int min, int max) {\n\t\tRandom random = new Random();\n\t\treturn random.nextInt((max - min) + 1) + min;\n\t}", "private static int generateRandomNumber(int min, int max) {\n return (int)Math.floor(Math.random() * (max - min + 1)) + min;\n }", "public int randomInt(int min, int max) {\r\n\t\treturn (int)(Math.random()*(max-min))+min;\r\n\t}", "public static int randInt(int min, int max) {\n int randomNum = random.nextInt((max - min) + 1) + min;\n return randomNum;\n }", "public int randInt(int min, int max) {\n\t Random rand = new Random();\n\n\t // nextInt is normally exclusive of the top value,\n\t // so add 1 to make it inclusive\n\t int randomNum = rand.nextInt((max - min) + 1) + min;\n\n\t return randomNum;\n\t }", "public static int randInt(int min, int max) {\n\t Random rand = new Random();\n\n\t // nextInt is normally exclusive of the top value,\n\t // so add 1 to make it inclusive\n\t int randomNum = rand.nextInt((max - min) + 1) + min;\n\n\t return randomNum;\n\t}", "public static int randInt(int min, int max) {\n\t Random rand = new Random();\n\n\t // nextInt is normally exclusive of the top value,\n\t // so add 1 to make it inclusive\n\t int randomNum = rand.nextInt((max - min) + 1) + min;\n\n\t return randomNum;\n\t}", "public static int randInt(int min, int max) {\n\t Random rand = new Random();\n\n\t // nextInt is normally exclusive of the top value,\n\t // so add 1 to make it inclusive\n\t int randomNum = rand.nextInt((max - min) + 1) + min;\n\n\t return randomNum;\n\t}", "private int _getRandomFromRange(int min, int max) {\n\t \n return min + random_.nextInt(max - min + 1);\n }", "public static int getRandomInt(int min, int max) {\n return getInstance().rand.nextInt((max - min) + 1) + min;\n }", "private static int random(int min, int max) {\r\n\t\tRandom rand = java.util.concurrent.ThreadLocalRandom.current();\r\n\t\treturn min + (int) (rand.nextDouble()*(max-min));\r\n\t}", "public static int RandomNumber(int min, int max){\n Random random = new Random();\n int randomNum = random.nextInt((max - min)+1)+min;\n return randomNum;\n }", "private static int getRandomNumberInRange(int min, int max) {\n\n if (min >= max) {\n throw new IllegalArgumentException(\"max must be greater than min\");\n }\n Random r = new Random();\n return r.nextInt((max - min) + 1) + min;\n }", "public static int getRandomNumber(int min, int max){\r\n Random r = new Random();\r\n return r.nextInt((max - min) +1) + min;\r\n }", "public static int randInt(int min, int max) {\n\n // NOTE: Usually this should be a field rather than a method\n // variable so that it is not re-seeded every call.\n Random rand = new Random();\n\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n int randomNum = rand.nextInt((max - min) + 1) + min;\n\n return randomNum;\n }", "private int getRandomNumberInRange(int min, int max) {\r\n\r\n\t\tRandom r = new Random();\r\n\t\treturn ((r.nextInt(max - min) + 1) + min)*40;\r\n\t}", "protected int random(int min, int max) {\n\t\treturn this.rand.nextInt(max-min) + min;\n\t}", "public static int generateIntRange(int min, int max) {\n return random.nextInt(max - min + 1) + min;\n }", "public static int randInt(int min, int max) {\n\n // Usually this can be a field rather than a method variable\n Random rand = new Random();\n\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n int randomNum = rand.nextInt((max - min) + 1) + min;\n\n return randomNum;\n }", "public static int randomInt(int min, int max) {\n Random rand = new Random();\n int randomNum = rand.nextInt((max - min) + 1) + min;\n return randomNum;\n }", "public static int randInt(int min, int max) {\n Random rand = new Random();\n\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n int randomNum = rand.nextInt((max - min) + 1) + min;\n\n return randomNum;\n }", "public static int randInt(int min, int max) {\n Random rand = new Random();\n\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n int randomNum = rand.nextInt((max - min) + 1) + min;\n\n return randomNum;\n }", "public static int randInt(int min, int max) {\r\n\r\n\t\t\t// Usually this can be a field rather than a method variable\r\n\t\t\tRandom rand = new Random();\r\n\r\n\t\t\t// nextInt is normally exclusive of the top value,\r\n\t\t\t// so add 1 to make it inclusive\r\n\t\t\tint randomNum = rand.nextInt((max - min) + 1) + min;\r\n\r\n\t\t\treturn randomNum;\r\n\t\t}", "public static int random(int min, int max) {\r\n\t\tint diff = max - min + 1;\r\n\t\treturn ((int) (Math.random() * diff)) + min;\r\n\t}", "public int randInt(int min, int max) {\n\t\tint randomNum = rand.nextInt((max - min) + 1) + min;\n\n\t\treturn randomNum;\n\t}", "public static int randomNumber(){\r\n int max = 10;\r\n int min = 0;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }", "private int generateWholoeNumInRange( int min, int max ) {\r\n\r\n // Evaluate random number from min to max including min and max\r\n return (int)(Math.random()*(max - min + 1) + min);\r\n\r\n }", "private static int randomBetween(Random r, int min, int max) {\n return r.nextInt(max - min) + min;\n }", "public static int randInt(int min, int max) {\n\t\tRandom rand = new Random();\n\n\t\t// nextInt is normally exclusive of the top value,\n\t\t// so add 1 to make it inclusive\n\t\tint randomNum = rand.nextInt((max - min) + 1) + min;\n\n\t\treturn randomNum;\n\t}", "public static int randInt(int min, int max) {\n\t\tRandom rand = new Random();\n\n\t\t// nextInt is normally exclusive of the top value,\n\t\t// so add 1 to make it inclusive\n\t\tint randomNum = rand.nextInt((max - min) + 1) + min;\n\n\t\treturn randomNum;\n\t}", "public static int randInt(int min, int max) {\n\t\trand = new Random();\n\n\t\t// nextInt is normally exclusive of the top value,\n\t\t// so add 1 to make it inclusive\n\t\tint randomNum = rand.nextInt((max - min) + 1) + min;\n\n\t\treturn randomNum;\n\t}", "public int getNumber(int min, int max) {\n return (int)(Math.random()* (max-min+1)) + min;\n }", "public static int randInt(int min, int max) {\n Random rand = new Random();\n return rand.nextInt((max - min) + 1) + min;\n }", "public static int randNum(int min, int max) {\r\n\t\treturn ThreadLocalRandom.current().nextInt(min, max + 1);\r\n\t}", "public static int randInt(int min, int max) {\n Random rand = new Random();\n\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n\n return rand.nextInt((max - min) + 1) + min;\n }", "public static int random(int min, int max) {\n return (int) Math.floor(Math.random() * (max - min + 1) + min);\n }", "protected static int randBetween(int min, int max) {\n\t\tRandom rand = new Random();\n\t\treturn rand.nextInt(max - (min + 1)) + min;\n\t}", "private static int generateRandom(int min, int max) {\n // max - min + 1 will create a number in the range of min and max, including max. If you don´t want to include it, just delete the +1.\n // adding min to it will finally create the number in the range between min and max\n return r.nextInt(max-min+1) + min;\n }", "public static int getRandomNumberInRange(int min, int max) {\n\n if (min > max) {\n throw new IllegalArgumentException(\"max must be greater than min\");\n }\n\n Random r = new Random();\n return r.nextInt((max - min) + 1) + min;\n }", "public static int getRandomNumberInRange(int min, int max) {\r\n\t\tif (min >= max) {\r\n\t\t\tthrow new IllegalArgumentException(\"max must be greater than min\");\r\n\t\t}\r\n\t\tRandom r = new Random();\r\n\t\treturn r.nextInt((max - min) + 1) + min;\r\n\t}", "public int getRandomNumberInInterval() {\n\t\treturn getRandomNumberUsingNextInt(min, max);\n\t}", "public static int randInt(int incMin, int incMax){\n\n int rand=incMin+rng.nextInt((incMax-incMin)-1);\n return rand;\n }", "public int getRandomArbitrary(int min, int max) {\n\t\treturn (int) (Math.random() * (max - min) + min);\n\t}", "public static int generate(int min, int max) {\n\t\n\treturn min + (int) (Math.random() * ((max - min) + 1));\n\t\n\t}", "public static int createRandom(int min, int max){\n\t\tif (min == max){\n\t\t\treturn min;\n\t\t}\n\t\telse{\t\t\t\n\t\t\treturn (int)(Math.random() * (max - min) + min); \n\t\t}\n\t}", "public static int randomNumberAlg(){\r\n int max = 10;\r\n int min = 1;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }", "public static int generatRandomPositiveNegitiveValue(int max , int min) {\n\t int ii = -min + (int) (Math.random() * ((max - (-min)) + 1));\n\t return ii;\n\t}", "public final int random(int min, int max) {\n return Utils.random(min, max);\n }", "public static int randint(int min, int max) {\n return (int) ((((Math.random()) * 100) % (max - min + 1)) + min);\n }", "public int randomGenerator(int min, int max) {\n int random = (int) ((Math.random()*((max-min)+1))+min);\n return random;\n }", "public int randomValueFromClosedInterval(int min, int max, MersenneTwisterFast random)\n {\n if (max - min < 0) // we had an overflow\n {\n int l = 0;\n do l = random.nextInt();\n while(l < min || l > max);\n return l;\n }\n else return min + random.nextInt(max - min + 1);\n }", "public static int randInt() {\n\t\tint min = 10;\n\t\tint max = 99999999;\n\t\tRandom rand = new Random();\n\t\tint randomNum = (rand.nextInt((max - min) + 1) + rand.nextInt((max - min) + 1)) / 2;\n\t\treturn randomNum;\n\t}", "public final static int getRandomInt(final int min, final int max, final Random random) {\n final int dif = max - min;\n final float number = random.nextFloat(); // 0 <= number < 1\n\n return min + Math.round(number * dif);\n }", "public static int nextInt(int minVal, int maxVal) {\n\t\treturn minVal + Utilities.rand.nextInt((maxVal - minVal));\n\t}", "public static int getRandomNumber(int min, int max) throws IOException {\n\t\tif (min >= max) {\n\t\t\tTestNotify.fatal(\"Max must be greater than Min\");\n\t\t}\n\n\t\treturn (int)(Math.random() * ((max - min) + 1)) + min;\n\t}", "public static int nextInt (int min, int max) {\n int x = get().nextInt(max-min+1);\n return x+min;\n }", "public int generateRandomNumber(int min, int max) {\n\t\tif (min >= max) {\n\t\t\tthrow new IllegalArgumentException(\"max must be greater than min\");\n\t\t}\n\t\tRandom r = new Random();\n\t\treturn (r.nextInt((max - min) + 1) + min);\n\t}", "public static int randomRangeBound(int minDigits, int maxDigits) {\r\n int digitBoundDiff = maxDigits - minDigits + 1;\r\n int i = rn.nextInt() % digitBoundDiff;\r\n if (i < 0) {\r\n i = -i;\r\n }\r\n return minDigits + i;\r\n }", "private static int randomNumberBetween(final int start, final int end) {\n\t\treturn start + (int) Math.round(Math.random() * (end - start));\n\t}", "public static int generateRandomIntegerNumber(int minNumber, int maxNumber){\n\n Random rndmGnrtr = new Random();\n return rndmGnrtr.nextInt(maxNumber - minNumber + 1) + minNumber; // minNumber + for avoid 0\n }", "public static int randomRound(){\r\n int max = 1000;\r\n int min = 0;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n return randNum;\r\n }", "public static int customRandom(int range)\n {\n \tint random = (int)(Math.random()*10)%range;\n\t\n\treturn random;\n }", "private static int newSecretNumber(int min, int max)\n {\n Random rnd = new Random();\n return rnd.nextInt((max + 1 - min) + min);\n }", "public static int randomNumber100(){\r\n int max = 100;\r\n int min = 0;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }", "private int randomInt(int lower, int upper) {\n\t\treturn (int) ((upper - lower + 1) * Math.random()) + lower;\n\t}", "public static double rng(double min, double max) {\r\n\r\n return (Math.random() * ((max - min) + 1)) + min;\r\n }", "public int coordinateGenerator(int max, int min) {\n\t\tRandom r = new Random();\n\t\tint a =r.nextInt(max - min) + min;\n\t\treturn a;\n\t}", "int getRandom(int max);", "public static int randIntDigits(int min, int max) {\n\t\tRandom rand = new Random();\n\t\tint randomNum = (rand.nextInt((max - min) + 1) + rand.nextInt((max - min) + 1)) / 2;\n\t\treturn randomNum;\n\t}", "private int randomInt(final int start, final int end) {\n return random.nextInt(end - start + 1) + start;\n }", "public double rand (double min, double max) {\r\n\t\tdouble r = rand();\r\n\t\tr = min + (max - min) * r;\r\n\t\treturn r;\r\n\t}", "public static int generateRandomNumber(int min, int max) {\n\t\tint mynumber = 0;\n\t\ttry {\n\t\t\tlogger.info(\"Generating Randon Number\");\n\t\t\tRandom r = new Random();\n\t\t\tmynumber = r.nextInt(max - min) + min;\n\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Error ocurred while generating Randon Num\"\n\t\t\t\t\t+ e.getMessage());\n\t\t}\n\t\treturn mynumber;\n\t}", "public static int getRandomInteger(int maximum, int minimum) {\n return ((int) (Math.random() * (maximum - minimum))) + minimum;\n }", "public static int intSample(int range) throws IllegalArgumentException {\n return random_.nextInt(range);\n }", "public static int generatesRandomIntBetween(int start, int end) {\n return start + (int) Math.round(Math.random() * (end - start));\n }", "private static int randInt(int max) {\n\t\tRandom rand = new Random(System.currentTimeMillis());\n\t\treturn rand.nextInt(max + 1);\n\t}", "float getRandomValue(float min, float max)\r\n\t{\n\t\tRandom r = new Random(/*SEED!!!*/);\r\n\t\t//get a float between 0 and 1 then multiply it by the min/max difference.\r\n\t\tfloat num = r.nextFloat();\r\n\t\tnum = num * (max-min) + min;\r\n\t\treturn num;\r\n\t}", "public static int randomNumber(int start, int end) {\n long range = (long) end - (long) start + 1;\n // compute a fraction of the range, 0 <= frac < range\n long fraction = (long) (range * RANDOM.nextDouble());\n return (int) (fraction + start);\n }", "private int getRandomInteger(int start, int end){\n\t\tif (start > end) {\n\t\t\tthrow new IllegalArgumentException(\"Start cannot exceed End.\");\n\t\t}\n\t\tRandom random = new Random();\n\t\tlong range = (long)end - (long)start + 1;\n\t\tlong fraction = (long)(range * random.nextDouble());\n\t\tint randomNumber = (int)(fraction + start); \n\t\treturn(randomNumber);\n\t}", "public static int getRandomInt(int max) {\n\t\tif (max<1){\n\t\t\tmax = 1;\n\t\t}\n\t\treturn rand.nextInt(max);\n\t}", "public int nextInt(int range) {\n int i = Math.abs(rand.nextInt());\n return (i % (range));\n }", "private static int randInt(int lower, int upper) {\n\t\tRandom random = new Random();\n\t\treturn random.nextInt((upper - lower) + 1) + lower;\n\t}", "public static int randomNumber50(){\r\n int max = 50;\r\n int min = 0;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }", "public static int getRandomInt(int max) {\n\t\treturn rand.nextInt(max);\n\t}" ]
[ "0.8723456", "0.8702804", "0.86215156", "0.86188704", "0.8527583", "0.846902", "0.84515506", "0.84511197", "0.844315", "0.8440646", "0.8431071", "0.8430012", "0.8403477", "0.8384328", "0.8380379", "0.83782345", "0.8373744", "0.83635616", "0.8361019", "0.83531713", "0.8347856", "0.83243185", "0.83243185", "0.83243185", "0.832249", "0.8319665", "0.8307776", "0.8302839", "0.83008164", "0.8297391", "0.82935", "0.8281327", "0.82791245", "0.8272251", "0.82570565", "0.823894", "0.8216536", "0.8216536", "0.8215527", "0.82024276", "0.8193403", "0.8193054", "0.8191703", "0.8182351", "0.815224", "0.815224", "0.81516", "0.81476223", "0.81405365", "0.81379634", "0.81298333", "0.81128496", "0.809804", "0.8062227", "0.805737", "0.8030351", "0.801997", "0.79967695", "0.7992083", "0.79891926", "0.79666317", "0.7958447", "0.79554886", "0.79491115", "0.79405874", "0.79265076", "0.7894397", "0.78810155", "0.7844048", "0.7808079", "0.7748075", "0.77471024", "0.77465665", "0.77320015", "0.7704952", "0.7703377", "0.7608768", "0.7605097", "0.7586979", "0.75812054", "0.7574301", "0.7567361", "0.75551754", "0.7552328", "0.7551221", "0.75493485", "0.75230753", "0.7519919", "0.7499356", "0.7493363", "0.74693424", "0.7449266", "0.7444188", "0.74344224", "0.7424553", "0.7423852", "0.7421914", "0.7409836", "0.74064875", "0.7403418" ]
0.7991137
59
Returns true if user plays as Terran.
public static boolean playsAsTerran() { return AtlantisConfig.MY_RACE.equals(RaceTypes.Terran); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean isEnemyTerran() {\n return AtlantisGame.enemy().getRace().equals(RaceTypes.Terran);\n }", "public static boolean playsAsProtoss() {\n return AtlantisConfig.MY_RACE.equals(RaceTypes.Protoss);\n }", "public boolean isTankRole() {\n\n return heroRole.equals(HeroRole.TANK);\n }", "public boolean isOnPlayerOne() {\r\n\t\treturn onTraderOne;\r\n\t}", "public boolean isTie() {\n if (gameStatus == null) return false;\n return gameStatus.isTie()\n || (gameStatus.getPlayerOnePoints() != -1\n && gameStatus.getPlayerOnePoints() == gameStatus.getPlayerTwoPoints()\n && isGameOver()\n && gameStatus.getWinner() == null);\n }", "public boolean isTypal() {\n return typal;\n }", "public boolean isTibetan();", "public boolean isTorn() {\n\t\treturn this.torn;\n\t}", "public boolean isTorn() {\n\t\treturn isTorn;\n\t}", "public boolean isRedstoneTorch() {\n return this.type == Type.REDSTONE_TORCH;\n }", "public static boolean playsAsZerg() {\n return AtlantisConfig.MY_RACE.equals(RaceTypes.Zerg);\n }", "private static boolean showTrinket(Trinket t, OutputType outputType) {\n\t\tswitch (outputType) {\n\t\t\tcase POSSESS:\n\t\t\t\tif (t.count > 0) { return true; }\n\t\t\t\tbreak;\n\t\t\tcase POSSESS_WITH_DUPLICATES:\n\t\t\t\tif (t.count >= MINIMUM_DUPLICATE_NUMBER) { return true; }\n\t\t\t\tbreak;\n\t\t\tcase DO_NOT_POSSESS:\n\t\t\t\tif (t.count == 0) { return true; }\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t\treturn false;\n\t}", "boolean isPlayable();", "public boolean isTorch() {\n return this.type == Type.TORCH;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isTallied();", "public boolean Tie() {\n\t\tboolean isTie = false;\n\t\tfor(int i=1;i<numPlayers;i++)\t{\n\t\t\tif(!isTie)\t{\n\t\t\t\tif(!record[i].equalsIgnoreCase(\"p\") && record[i-1].equalsIgnoreCase(\"p\"))\t{\n\t\t\t\t\tisTie = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn isTie;\n\t}", "public boolean isTamed() {\n return tamed;\n }", "@Override\r\n\t\tpublic boolean isPlayer() {\n\t\t\treturn state.isPlayer();\r\n\t\t}", "public boolean isRetweet() {\n\t\treturn text.trim().startsWith(\"RT @\");\n\t}", "public boolean isHuman() {\n \t\treturn (type == PLAYER_HUMAN);\n \t}", "public int isTurtleShowing () {\n if (myTurtleShowing) return 1;\n return 0;\n }", "@Override\n public boolean isPlayer() {\n return super.isPlayer();\n }", "public boolean isAccepted_tou();", "@Override\r\n\t\t\tpublic ExecuteResult execute(float deltaTime) {\n\t\t\t\tif(!man.getInfo().getSchool().isTeacherWork()){\r\n\t\t\t\t\treturn ExecuteResult.FALSE;\r\n\t\t\t\t}\r\n\t\t\t\treturn ExecuteResult.TRUE;\r\n\t\t\t}", "public boolean isDuringSportsActivity() {\n return (mStatus == 1);\n }", "public abstract boolean isPlayer();", "boolean isPlayableInGame();", "void play(boolean fromUser);", "@SuppressWarnings(\"static-access\")\n\tpublic boolean isPlay(){\n\t\treturn this.isPlay;\n\t}", "public void setTypal(boolean value) {\n this.typal = value;\n }", "private boolean outputUtterance(Utterance utterance, BulkTimer timer) {\n\tboolean ok = true;\n\tFreeTTSSpeakable speakable = utterance.getSpeakable();\n\n\tif (!speakable.isCompleted()) {\n\t if (utterance.isFirst()) {\n\t\tgetAudioPlayer().reset();\n\t\tspeakable.started();\n\t\tlog(\" --- started ---\");\n\t }\n\n\t // log(\" utt: \" + utterance.getString(\"input_text\"));\n\t try {\n if (!speakable.isCompleted()) {\n runProcessor(audioOutput, utterance, timer);\n } else {\n ok = false;\n }\n\t } catch (ProcessException pe) {\n\t\tok = false;\n\t }\n\t if (ok && utterance.isLast()) {\n\t\tgetAudioPlayer().drain();\n speakable.completed();\n log(\" --- completed ---\");\n\t } else if (!ok) {\n\t\t// getAudioPlayer().drain();\n\t\tspeakable.cancelled();\n log(\" --- cancelled ---\");\n\t } else {\n log(\" --- not last: \" + speakable.getText() + \" --- \");\n }\n log(\"Calling speakable.completed() on \" + speakable.getText());\n } else {\n\t ok = false;\n log(\"STRANGE: speakable already completed: \" +speakable.getText());\n\t}\n\treturn ok;\n }", "public boolean isPlayer() {\n return player != null;\n }", "public boolean isCashierTrainee() {\n\t\treturn this.cashierTrainee;\n\t}", "public boolean voikoSulkea() {\n handleTallenna();\n return true;\n }", "public boolean getAccepted_tou();", "private boolean handleTShout(String line){\n if (line.indexOf(\"t-shouts: \") == -1)\n return false;\n \n Matcher matcher = TSHOUT_REGEX.matcher(line);\n if (!matcher.matches())\n return false;\n\n String username = matcher.group(1);\n String titles = matcher.group(2);\n String message = matcher.group(3);\n\n if (!processTShout(username, titles, message))\n processLine(line);\n\n return true;\n }", "private boolean shouldPlayerSkipThirst(EntityPlayer player)\n\t{\n\t\treturn player.isSpectator() || player.isCreative();\n\t}", "public boolean kiemTraPSToiGian(){\n if (timUSCLN(tuSo,mauSo) == 1){\n return true;\n }else {\n return false;\n }\n }", "public boolean topPlayerWon() {\n return winner == 2;\n }", "boolean hasFairplay();", "abstract public boolean isTurtleCommand();", "public boolean isMyTurn() {\n if (gameStatus == null || userId == null) return false;\n return userId.equals(gameStatus.getActivePlayer());\n }", "public boolean isMissedTW() {\n return missedTW;\n }", "public boolean isTutorialMode() {\n\t\treturn (this.tutorial != null);\n\t}", "public boolean isSpectator()\n {\n NetworkPlayerInfo networkplayerinfo = Minecraft.getMinecraft().getNetHandler().getPlayerInfo(this.getGameProfile().getId());\n return networkplayerinfo != null && networkplayerinfo.getGameType() == GameType.SPECTATOR;\n }", "public static boolean coinToss() {\n double flip = Math.random();\n if (flip < .50) // tails\n return false;\n else // heads\n return true; \n }", "public boolean getIsTurtleActive(){\n return isTurtleActive;\n }", "public boolean isRadiant(JsonNode player) {\n return player.get(\"player_slot\").asInt() < 128;\n }", "public boolean isBot() {\n \t\treturn (type == PLAYER_BOT);\n \t}", "public boolean isTurtleVisible(){\n return isTurtleVisible;\n }", "public boolean canCompete(String t){\n\t\tif(talents != null)\n\t\t{\n\t\t\tint i;\n\t\t\tfor(i = 0; i < talents.length; i++)\n\t\t\t\tif (talents[i] == t)\n\t\t\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n }", "public boolean isJackOLantern() {\n return this.type == Type.JACKOLANTERN;\n }", "public boolean canTake(EntityPlayer player) {\n \t\treturn (outputIsReal || ((currentRecipe != null) &&\n \t\t (currentRecipe.canCraft(crafting, new CraftingSourceStation(entity, player))) &&\n \t\t (progress >= craftingTime) &&\n \t\t ((player != null) ||\n \t\t ((progress >= GlobalConfig.stationAutocraftDelaySetting.getValue()) &&\n \t\t hasRequirements()))));\n \t}", "void isRaining (boolean isRain) {\n\t\tif (isRain) {\n\t\t\tSystem.out.println(\"Please take the umbrella\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Please go for a walk\");\n\t\t}\n\t}", "public boolean playPet(String toy) {\r\n switch (toy) {\r\n case (\"ball\"): {\r\n if ((this.player.getMoney() - ball.getCost()) >= 0) {\r\n player.play(ball);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n case (\"doll\"): {\r\n if ((this.player.getMoney() - doll.getCost()) >= 0) {\r\n player.play(doll);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n case (\"frisbee\"): {\r\n if ((this.player.getMoney() - frisbee.getCost()) >= 0) {\r\n player.play(frisbee);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n case (\"feather toy\"): {\r\n if ((this.player.getMoney() - featherToy.getCost()) >= 0) {\r\n player.play(featherToy);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "Boolean isMuted() {\n return execute(\"player.muted\");\n }", "public static boolean hasTeacherAccess(final String username)\n\t{\n\t\tif (!username2accesses.containsKey(username)) return false;\n\t\tfinal List<Access> accesses = username2accesses.get(username);\n\t\tfor (final Access access : accesses)\n\t\t{\n\t\t\tRole role = access.getRole();\n\t\t\tif (role.equals(Role.DEAN) || role.equals(Role.DEAN_OF_STUDIES) || role.equals(Role.LECTURER))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean getTripPaused() {\n\t\tsharedPreferences = context.getSharedPreferences(\"TRIP\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getBoolean(\"isTripPaused\", false);\n\t}", "public boolean isAutoTeam() {\n return isPreventCollision() && getBoolean(\"auto-team\", true);\n }", "private boolean sameTeamCheck(char state)\r\n {\r\n if((state == 'b' && isHuman) || (state == 'p' && !isHuman))\r\n return true;\r\n return false;\r\n }", "public boolean checkPlays(Player player){\n return true;\n }", "public void setAsPlayer(){\n\t\tthis.isPlayer = true;\n\t}", "@Override\r\n\tpublic boolean canPlay() {\n\t\treturn false;\r\n\t}", "private boolean shouldSnakeSeekTruman(Point snake, int trux, int truy){\n\t\treturn (Math.abs(snake.x - trux) < SNAKE_ATTACK_RANGE && Math.abs(snake.y - truy) < SNAKE_ATTACK_RANGE);\n\t}", "public boolean isSpeaking() {\n return (mSelf.mIsSpeaking && (mSpeechQueue.size() < 1));\n }", "@Override\r\n\tpublic boolean canShow() {\r\n\t\treturn super.canShow() &&\r\n\t\t\t\t(getSpeakControl().isSpeaking() || getSpeakControl().isPaused());\r\n\t}", "public Wrapper isTeacher() {\n Wrapper<HashMap<String, Boolean>> wrapper = new Wrapper();\n HashMap<String, Boolean> out = new HashMap<>();\n try {\n out.put(\"teacher\", user.isTeacher());\n wrapper.setData(out);\n wrapper.setSucces(true);\n } catch (Exception e) {\n wrapper.setSucces(false);\n wrapper.setMsg(e.toString());\n }\n return wrapper;\n }", "@Override\n public boolean canInteractWith(EntityPlayer player)\n {\n return teKeeper.isUsableByPlayer(player);\n }", "public boolean expectToBeat(RugbyTeam aTeam) {\r\n\r\n\t\tif (this.hasRitual == true && aTeam.hasRitual == false) {\r\n\t\t\treturn true;\r\n\t\t} else if ((this.wins - this.losses) > (aTeam.wins - aTeam.losses)) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean isScuttle() {\n return scuttle;\n }", "public boolean isRocky()\r\n\t{\r\n\t\treturn isRocky;\r\n\t}", "@Override\n public final boolean canStand(Playery player) {\n return true;\n }", "public boolean isGameRunning()\n\t{\n\t\treturn zegar.isRunning() || wToku;\n\t}", "private boolean canResumeGame() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n && isGamePaused();\n }", "public boolean checkForUser(Player p) {\n\t\tif(p.getName(p).equals(\"user\")) {\n\t\t\treturn true;\t\t\t\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isHuman() {\r\n return human;\r\n }", "public boolean isTermine() {\n\t\treturn getStatut().equals(StatusBonPreparation.TERMINER);\n\t}", "boolean isPlayerTurn();", "public boolean isGoal() {\n return (man == 0);\n }", "public boolean meTurn(){\n return (isWhite && isWhitePlayer) || (!isWhite && !isWhitePlayer);\n }", "public boolean isPlaying() {\n\t\treturn state == State.INGAME;\n\t}", "public boolean isPlaying() {\n return params.isPlay();\n }", "private boolean isCorrect() {\n return !console.getTrueFalse(\"Is this correct?>>> \");\n }", "public boolean isValidInStandardTournamentFormat() {\n\t\treturn this.validFormats.contains(TournamentFormat.STANDARD);\n\t}", "public boolean inflictStaffTrance() {\n /**\n * A Staff has 20% chance of inflicting trance.\n */\n if (this.getWeapon() instanceof Staff) {\n int seed = 100;\n Random random = new Random(seed);\n int value = random.nextInt(seed);\n return value < 21;\n }\n\n return false;\n }", "public boolean userType()\n {\n return false;\n }", "public boolean isTerritoryBelongsCurrentPlayer() {\n if(selectedTerritoryByPlayer.getConquerID() == null)\n return false;\n return selectedTerritoryByPlayer.getConquerID().equals(currentPlayerTurn.getID());\n }", "@Override\n public boolean isPlaying()\n {\n final String funcName = \"isPlaying\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%s\", Boolean.toString(playing));\n }\n\n return playing;\n }", "public boolean isPlayerTurn() {\n return playerTurn;\n }", "public boolean isTripAbandon() {\n\t\tsharedPreferences = context.getSharedPreferences(\"TRIP\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getBoolean(\"isTripAbandon\", false);\n\t}", "public boolean isGoal() {\n return humming() = 0;\n }", "boolean hasPlainRedeem();", "public boolean isControlledByPlayer(Player player) {\r\n if (territories == null) {\r\n return false;\r\n }\r\n\r\n for (Territory territory : territories) {\r\n if (!territory.getPlayer().equals(player)) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }", "public synchronized boolean voteTeam() {\n //tally the votes\n int yes = 0, no = 0;\n for (boolean vote : playerVotes.values()) {\n if (vote) {\n yes++;\n } else {\n no++;\n }\n }\n\n if (yes > no) {\n doMissionState = voteTeamState.acceptTeam();\n state = State.DO_MISSION;\n successiveRejections = 0;\n teamMemberChoices = new HashMap<>();\n return true;\n } else {\n pickTeamState = voteTeamState.rejectTeam();\n state = State.PICK_TEAM;\n successiveRejections++;\n teamSelection = new HashSet<>();\n return false;\n }\n }", "public boolean isRocky() {\r\n\t\treturn this.rocky;\r\n\t}", "public boolean isBot(){\n return false;\n }", "public boolean isStorniert() {\n\t\treturn this.storniert;\n\t}", "public boolean tienePapel()\n {\n //COMPLETE\n return this.hojas > 0;\n }", "public boolean isTallGrass() {\n return this.type == Type.TALL_GRASS;\n }", "public boolean userStillInGame() {\n return playersInGame.contains(humanPlayer);\n }" ]
[ "0.6632215", "0.62531155", "0.59903747", "0.5940961", "0.5916532", "0.5909826", "0.58972496", "0.581774", "0.579628", "0.5765916", "0.57291293", "0.57031304", "0.5698337", "0.56240064", "0.5613103", "0.5605918", "0.5538483", "0.55171454", "0.5505936", "0.54938936", "0.5471412", "0.54659927", "0.5458401", "0.5440496", "0.5423606", "0.5403547", "0.53492475", "0.53158444", "0.53112644", "0.53051317", "0.53019756", "0.5297772", "0.52925867", "0.5288127", "0.5249812", "0.52401304", "0.5236913", "0.52031505", "0.51885533", "0.51873815", "0.5185656", "0.51852053", "0.517927", "0.5174201", "0.5172544", "0.51656264", "0.51588184", "0.5158464", "0.5155433", "0.5154739", "0.5149833", "0.51430345", "0.5134154", "0.5130449", "0.5128277", "0.51176673", "0.5114569", "0.5110898", "0.5105854", "0.5091121", "0.509074", "0.50797933", "0.5077868", "0.50642467", "0.50635517", "0.50569516", "0.50527704", "0.5042964", "0.504277", "0.50421757", "0.5028017", "0.5026489", "0.50245", "0.50224215", "0.5016871", "0.50162554", "0.50134957", "0.5009569", "0.4998197", "0.49975458", "0.49969706", "0.49968594", "0.4992482", "0.49879637", "0.49842903", "0.49766138", "0.49639162", "0.49621183", "0.49526626", "0.4951782", "0.4950805", "0.49425876", "0.49424523", "0.49408102", "0.49340597", "0.49326432", "0.4923783", "0.4921755", "0.49179658", "0.49175394" ]
0.85807836
0
Returns true if user plays as Protoss.
public static boolean playsAsProtoss() { return AtlantisConfig.MY_RACE.equals(RaceTypes.Protoss); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isPlayable();", "@SuppressWarnings(\"static-access\")\n\tpublic boolean isPlay(){\n\t\treturn this.isPlay;\n\t}", "boolean isMultiplayer();", "@Override\r\n\t\tpublic boolean isPlayer() {\n\t\t\treturn state.isPlayer();\r\n\t\t}", "public boolean isPlaying() {\n return params.isPlay();\n }", "@Override\n public boolean isPlayer() {\n return super.isPlayer();\n }", "boolean isPlayableInGame();", "public static boolean isEnemyProtoss() {\n return AtlantisGame.enemy().getRace().equals(RaceTypes.Protoss);\n }", "Boolean isPlaying() {\n return execute(\"player.playing\");\n }", "public boolean isSoundPCSpeakerEnabled()\r\n {\r\n return isSoundPCSpeakerEnabled;\r\n }", "public boolean isMultiplayer() {\n return multiplayerGameManager.isMultiplayer();\n }", "public boolean isSinglePlayer() {\n\t\treturn false;\n\t}", "public boolean isSpectator()\n {\n NetworkPlayerInfo networkplayerinfo = Minecraft.getMinecraft().getNetHandler().getPlayerInfo(this.getGameProfile().getId());\n return networkplayerinfo != null && networkplayerinfo.getGameType() == GameType.SPECTATOR;\n }", "public boolean isPlayable() {\n return (mFlags & FLAG_PLAYABLE) != 0;\n }", "public boolean checkPlays(Player player){\n return true;\n }", "public boolean isPlayer() {\n return player != null;\n }", "public abstract boolean isPlayer();", "public boolean isBot() {\n \t\treturn (type == PLAYER_BOT);\n \t}", "@Override\r\n\tpublic boolean canPlay() {\n\t\treturn false;\r\n\t}", "boolean hasSendPlayerName();", "private boolean canPauseGame() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n && gameStateManager.getState().equals(GameState.PLAY);\n }", "void play(boolean fromUser);", "public boolean isPlaying() {\n\t\treturn state == State.INGAME;\n\t}", "@Override\r\n\tpublic boolean canShow() {\r\n\t\treturn super.canShow() &&\r\n\t\t\t\t(getSpeakControl().isSpeaking() || getSpeakControl().isPaused());\r\n\t}", "@Override\n public boolean isPlaying()\n {\n final String funcName = \"isPlaying\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%s\", Boolean.toString(playing));\n }\n\n return playing;\n }", "public boolean isPumpkin() {\n return this.type == Type.PUMPKIN;\n }", "public boolean isPlaying() {\n\t\treturn mIsSupposedToBePlaying;\n\t}", "public boolean isSpeaking() {\n return (mSelf.mIsSpeaking && (mSpeechQueue.size() < 1));\n }", "public boolean isTalking()\n\t{\n\t\treturn m_isTalking;\n\t}", "public boolean isPaused(){\r\n\t\tif (this.pauseGame(_p)){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\t\r\n\t}", "public boolean isPlayByPlayMenuSelected() {\n return playByPlayMenuSelected;\n }", "boolean hasChatType();", "protected boolean isPlayer(final CommandSender sender) {\n\t\tif (sender instanceof Player) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tChatUtil.sendBrandingMessage(sender, this.mustBePlayerMessage);\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isMultiplayer() {\n return multiplayer;\n }", "public boolean isHasPlayers() {\n\t\treturn HasPlayers;\n\t}", "public boolean isPlaying() {\n\t\treturn AL10.alGetSourcei(id, AL10.AL_SOURCE_STATE) == AL10.AL_PLAYING;\n\t}", "public boolean isOnline() {\n \t\treturn (type == PLAYER_ONLINE);\n \t}", "public boolean isHasPlayer() {\n\t\treturn HasPlayer;\n\t}", "public boolean isOnPlayerOne() {\r\n\t\treturn onTraderOne;\r\n\t}", "public boolean isPlaying() {\n return state.isActive();\n }", "public boolean isCurrentPlayer() {\n return playerStatus.isActive;\n }", "public boolean isBot() {\n//\t\treturn this.getUserIO().checkConnection();\n\t\treturn false;\n\t}", "public void setAsPlayer(){\n\t\tthis.isPlayer = true;\n\t}", "boolean hasSendPlayerId();", "public boolean playing() {\n\t\treturn sound.isPlaying();\n\t}", "boolean hasStartGameRequest();", "public boolean hasPlaySeconds() {\n return fieldSetFlags()[3];\n }", "public boolean playGeneric(InputStream stream){\r\n\t\ttry{\r\n\t\t\tplayer.open(stream);\r\n\t\t\tplayer.play();\r\n\t\t\tselectedSource = \"Streaming\";\r\n\t\t\treturn true;\r\n\t\t}catch(Exception e){\r\n\t\t\tSystem.err.println(\"ERROR: BASICPLAYER INTERNAL PLAY CODE HAS FAULTED.\");\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean canResumeGame() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n && isGamePaused();\n }", "boolean isPlaying() { return playing; }", "Boolean isMuted() {\n return execute(\"player.muted\");\n }", "public boolean isPlaying() {\n \t\treturn isPlaying;\n \t}", "public boolean isPlayerPlaying() {\n return this.player.getMasterMediaPlayer().isPlaying();\n }", "boolean isSoundPlaying() {\n return (audioTrack.getPlayState() == AudioTrack.PLAYSTATE_PLAYING);\n }", "public boolean isFirstPlayer()\r\n\t{\r\n\t\tgetStartGameDataFromServer();\r\n\t\treturn isFirstPlayer;\r\n\t}", "public boolean isSound() {\n\t\treturn true;\n\t}", "public boolean isHuman() {\n \t\treturn (type == PLAYER_HUMAN);\n \t}", "public boolean soundDeviceCanPlayback(String device);", "public boolean isOnline()\n\t{\n\t\treturn PlayerManager.getPlayer(name)!=null;\n\t}", "public static boolean getIsPlayersTurn()\r\n {\r\n return isPlayersTurn;\r\n }", "public boolean isPlaying() {\n\t\treturn isPlaying;\n\t}", "public boolean isPlaying() {\n return mPlaying || mStateManager.isPlaying();\n\t}", "@Override\n\tpublic void canSpeak() {\n\t\t\n\t}", "public boolean hasConversation() {\n return typeCase_ == 2;\n }", "public boolean isGameRunning()\n\t{\n\t\treturn zegar.isRunning() || wToku;\n\t}", "public boolean isPlaying() {\n return isPlaying(mController);\n }", "public boolean isPaused() {\n synchronized (lockForPause) {\n return (pause == true);\n }\n }", "public boolean playsSound() {\r\n\t\treturn playsSound;\r\n\t}", "public boolean isSidePlayerOpen() {\n return this.sidePlayer;\n }", "boolean isLocalVideoStreaming(Call call);", "public boolean startGame() {\n\t\tif(!ackReadyToPlay){\n\t\t\tackReadyToPlay = true;\n\t\t\tSystem.out\n\t\t\t.println(\"PPL: StartGameBean vom typ RESULT empfangen von: \" + jid);\n\t\t\treturn game.playerReadyToPlay(this);\n\t\t}\n\t\treturn false;\n\t}", "public boolean isSetPlayer() {\n return this.player != null;\n }", "public static boolean canPlayVoice(String pcFileName) {\n return false;\n }", "boolean play();", "public boolean isBot(){\n return false;\n }", "boolean isPulsing();", "public boolean hasConversation() {\n return typeCase_ == 2;\n }", "public boolean doesGuiPauseGame()\r\n\t{\r\n\t\treturn false;\r\n\t}", "boolean isPwc();", "public boolean doesGuiPauseGame() {\n\t\treturn false;\n\t}", "public boolean shouldPause(){\n for(int i:pauses){\n if(stageNum == i){\n return true;\n }\n }\n return false;\n }", "public boolean isChatEnabled();", "protected abstract boolean isPlayerActivatable(PlayerSimple player);", "public boolean doesGuiPauseGame() {\r\n\t\treturn false;\r\n\t}", "public boolean isSymmetricRtp()\n { return symmetric_rtp;\n }", "public boolean canGameStart() {\n\t\tif (users.getSize() >= quantidadeDeJogadoresMinimos) {\n\t\t\t// Jogo pode comešar\n\t\t\treturn true;\n\n\t\t}\n\t\t// Jogo nao pode comešar\n\t\treturn false;\n\t}", "public boolean isMainPlayerOpen() {\n return this.mainPlayer;\n }", "protected boolean isPassenger() {\n\t\tif (request.getSession().getAttribute(\"type\") == null)\n\t\t\treturn false;\n\t\treturn request.getSession().getAttribute(\"type\").equals(\"passenger\");\n\t}", "public Boolean isRtcPEnable() {\n\t\treturn rtcPEnable;\n\t}", "public boolean needPlayer() {\n\t\treturn false;\n\t}", "public static boolean isReceivingSong(Player player) {\n\t\treturn ((plugin.playingSongs.get(player.getUniqueId()) != null) \n\t\t\t\t&& (!plugin.playingSongs.get(player.getUniqueId()).isEmpty()));\n\t}", "public boolean checkForUser(Player p) {\n\t\tif(p.getName(p).equals(\"user\")) {\n\t\t\treturn true;\t\t\t\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isPaused() {\n return _isPaused;\n }", "public boolean speak(String text) {\n\treturn speak(new FreeTTSSpeakableImpl(text));\n }", "protected boolean isPilot() {\n\t\tif (request.getSession().getAttribute(\"type\") == null)\n\t\t\treturn false;\n\t\treturn request.getSession().getAttribute(\"type\").equals(\"pilot\");\n\t}", "public boolean speak(InputStream inputStream) {\n\treturn speak(new FreeTTSSpeakableImpl(inputStream));\n }", "public boolean isPaused() {\n return this.paused;\n }", "public boolean speak(Document doc) {\n\treturn speak(new FreeTTSSpeakableImpl(doc));\n }", "@Override\n public final boolean doesGuiPauseGame() {\n return shouldPauseGame;\n }", "public boolean isDuringSportsActivity() {\n return (mStatus == 1);\n }" ]
[ "0.64636177", "0.6329168", "0.6212117", "0.62099314", "0.62057465", "0.6194762", "0.61741006", "0.61673635", "0.6062599", "0.6055121", "0.6054197", "0.603274", "0.6007746", "0.59826165", "0.5969128", "0.59576887", "0.59565943", "0.5944372", "0.5932724", "0.59297276", "0.5924246", "0.5875903", "0.58466196", "0.58019996", "0.5769954", "0.5765123", "0.5763637", "0.57446533", "0.57387435", "0.57387155", "0.57380617", "0.5733221", "0.57214254", "0.57050663", "0.5689357", "0.56810766", "0.5648909", "0.5647837", "0.5632807", "0.56316185", "0.5609457", "0.56079155", "0.5607256", "0.56040823", "0.55475086", "0.5545944", "0.5542673", "0.5537676", "0.55352914", "0.5527428", "0.55154717", "0.55065763", "0.5499847", "0.5494938", "0.5480767", "0.54697096", "0.54616004", "0.5453813", "0.5451729", "0.544352", "0.5439161", "0.54365206", "0.5435522", "0.542784", "0.5427201", "0.542238", "0.5419465", "0.54111916", "0.5410644", "0.54104275", "0.5407356", "0.5394693", "0.53925306", "0.5391438", "0.5384588", "0.5383124", "0.5370767", "0.5370727", "0.53671277", "0.5363488", "0.53573406", "0.53511167", "0.5347755", "0.5345302", "0.5343753", "0.5333525", "0.53296375", "0.53248304", "0.53203666", "0.5317486", "0.53117263", "0.53109396", "0.5310047", "0.5307871", "0.5302552", "0.52983767", "0.529723", "0.5292831", "0.52830637", "0.5277039" ]
0.84288174
0
Returns true if user plays as Zerg.
public static boolean playsAsZerg() { return AtlantisConfig.MY_RACE.equals(RaceTypes.Zerg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isZengin() {\n\t\treturn zengin;\n\t}", "public static boolean isEnemyZerg() {\n return AtlantisGame.enemy().getRace().equals(RaceTypes.Zerg);\n }", "public boolean isGameRunning()\n\t{\n\t\treturn zegar.isRunning() || wToku;\n\t}", "public boolean isGuest() {\n\t\treturn (getUser().getName().equals(\"guest\"));\n\t}", "@Override\n public boolean isPlayer() {\n return super.isPlayer();\n }", "@Override\r\n\t\tpublic boolean isPlayer() {\n\t\t\treturn state.isPlayer();\r\n\t\t}", "boolean isPlayable();", "public final boolean zzh() {\n return zzq() && this.zzz <= zzgod.GROUP.zza();\n }", "public final boolean zze() {\n return false;\n }", "public final boolean zzk() {\n return (this.zzy & 256) != 0;\n }", "public boolean isUforeberegning() {\n\t\treturn false;\n\t}", "private boolean m11885j() {\n IUser a = ((C3592a) C3596c.m13172a(C3592a.class)).user().mo22165a();\n if (!C9290a.f25466a && a != null && a.isEnableShowCommerceSale()) {\n if (this.f9687p == LiveMode.VIDEO) {\n return true;\n }\n LiveMode liveMode = this.f9687p;\n LiveMode liveMode2 = LiveMode.THIRD_PARTY;\n }\n return false;\n }", "boolean isPlayableInGame();", "@ZAttr(id=257)\n public boolean isAuthFallbackToLocal() {\n return getBooleanAttr(Provisioning.A_zimbraAuthFallbackToLocal, false);\n }", "public static boolean playsAsProtoss() {\n return AtlantisConfig.MY_RACE.equals(RaceTypes.Protoss);\n }", "boolean isTurnedFaceUp();", "public boolean isSpectator()\n {\n NetworkPlayerInfo networkplayerinfo = Minecraft.getMinecraft().getNetHandler().getPlayerInfo(this.getGameProfile().getId());\n return networkplayerinfo != null && networkplayerinfo.getGameType() == GameType.SPECTATOR;\n }", "public abstract boolean isPlayer();", "boolean hasToForeman();", "boolean isMultiplayer();", "public final synchronized boolean zzaq() {\n return zzar() != null;\n }", "public boolean zugVerschrotten() {\n if (depot > 0) {\n geld = geld + getGeldZugZurueck();\n depot--;\n return true;\n } else {\n return false;\n }\n }", "public boolean isPlayer() {\n return player != null;\n }", "public boolean isOnline ( ) {\n\t\treturn getBukkitPlayerOptional ( ).isPresent ( );\n\t}", "public final boolean zzc() {\n return false;\n }", "protected boolean isPassenger() {\n\t\tif (request.getSession().getAttribute(\"type\") == null)\n\t\t\treturn false;\n\t\treturn request.getSession().getAttribute(\"type\").equals(\"passenger\");\n\t}", "private static boolean zza() {\n Object object = zzc;\n synchronized (object) {\n return false;\n }\n }", "public boolean needPlayer() {\n\t\treturn false;\n\t}", "@Override\n public boolean isChasingPlayer()\n {\n return(chasingPlayer);\n }", "public boolean isFacingUp()\n {\n return facingUp;\n }", "public final boolean zze(Context context) {\n if (this.zzdg == null) {\n this.zzdg = Boolean.valueOf(context.checkCallingOrSelfPermission(\"android.permission.ACCESS_NETWORK_STATE\") == 0);\n }\n if (!this.zzdf.booleanValue() && Log.isLoggable(\"FirebaseInstanceId\", 3)) {\n Log.d(\"FirebaseInstanceId\", \"Missing Permission: android.permission.ACCESS_NETWORK_STATE this should normally be included by the manifest merger, but may needed to be manually added to your manifest\");\n }\n return this.zzdg.booleanValue();\n }", "public final boolean cZQ() {\n boolean z = false;\n AppMethodBeat.i(7676);\n try {\n z = cZv().icy.afj(\"favorite\");\n AppMethodBeat.o(7676);\n } catch (Exception e) {\n ab.printErrStackTrace(\"MicroMsg.WebViewMenuHelper\", e, \"\", new Object[z]);\n AppMethodBeat.o(7676);\n }\n return z;\n }", "boolean hasDame();", "public boolean isOnline()\n\t{\n\t\treturn PlayerManager.getPlayer(name)!=null;\n\t}", "boolean hasSendPlayerName();", "public boolean isBot(){\n return false;\n }", "public static boolean isLoggedIn() {\n\t\treturn arcade.hasPlayer();\n\t}", "public boolean isBot() {\n//\t\treturn this.getUserIO().checkConnection();\n\t\treturn false;\n\t}", "public boolean canGameStart() {\n\t\tif (users.getSize() >= quantidadeDeJogadoresMinimos) {\n\t\t\t// Jogo pode comešar\n\t\t\treturn true;\n\n\t\t}\n\t\t// Jogo nao pode comešar\n\t\treturn false;\n\t}", "boolean isIngameMenuUp() {\n return this.game.r instanceof oz;\n }", "public static boolean playsAsTerran() {\n return AtlantisConfig.MY_RACE.equals(RaceTypes.Terran);\n }", "public boolean isOnPlayerOne() {\r\n\t\treturn onTraderOne;\r\n\t}", "public boolean isHuman() {\r\n return human;\r\n }", "public boolean isLaunched();", "public boolean isVerkauft() {\n\t\treturn this.verkauft;\n\t}", "@Override\n public final boolean canStand(Playery player) {\n return true;\n }", "public boolean isHonorSystemProxy() {\n return honorSystemProxy;\n }", "public boolean aDz() {\n return true;\n }", "public boolean isEveryone();", "public boolean userStillInGame() {\n return playersInGame.contains(humanPlayer);\n }", "boolean isPlayerTurn();", "boolean isStartup();", "public boolean isWardenAS() {\n return this.wardenAS;\n }", "public boolean isUlaz() {\n return ulaz;\n }", "public Boolean isSitzplatz() {\n\t\treturn this.sitzplatz;\n\t}", "void play(boolean fromUser);", "public boolean isFromAuthoritative()\n {\n if ((this.flag & 0x0400) == 0)\n {\n // not from a authoritative server\n return false;\n }\n\n else return true;\n }", "public boolean isHuman() {\n \t\treturn (type == PLAYER_HUMAN);\n \t}", "boolean getToForeman();", "public boolean isRocky()\r\n\t{\r\n\t\treturn isRocky;\r\n\t}", "public Boolean waitingUser(){\n\t\tif (currentPlayer == 0){\n\t\t\tSystem.out.println(\"You are the first player, changing waitingUser to true\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean isCurrentUserVendedor() {\n return UserRole.VENDEDOR.equals(CURRENT_USER.getUserRole());\n }", "boolean isGameSpedUp();", "public boolean hasTurnPowerUp() {\n\n for (PowerUp i : powerUpList)\n if (i.isTurnPowerup())\n return true;\n\n return false;\n }", "public boolean isEngineOn();", "@Override\r\n\tpublic boolean canShow() {\r\n\t\treturn super.canShow() &&\r\n\t\t\t\t(getSpeakControl().isSpeaking() || getSpeakControl().isPaused());\r\n\t}", "public boolean isCharged();", "public boolean isBear() {\n return false;\n }", "@Override\n\tpublic boolean isOnline() {\n\t\treturn bukkitPlayer != null && bukkitPlayer.isOnline();\n\t}", "boolean hasZ();", "boolean hasZ();", "private void IsAbleToGebruikEigenschap() throws RemoteException {\n boolean eigenschapGebruikt = speler.EigenschapGebruikt();\n if (eigenschapGebruikt == true) {\n gebruikEigenschap.setDisable(true);\n }\n }", "public boolean isShootUp() {\n return shootUp;\n }", "@JsonIgnore\n public boolean isWelshLanguageRequested() {\n Optional<String> languageValue = Optional.ofNullable(languageRequirement);\n if (languageValue.isEmpty()) {\n return false;\n }\n return languageValue.get().equals(\"Yes\");\n }", "public boolean canDisplayAwayMessage() {\n long now = System.currentTimeMillis();\n\n if (this.playerAwayMsgTimeStamp + PlayerImpl.AWAY_MSG_DISPLAY_PERIOD < now) {\n this.playerAwayMsgTimeStamp = now;\n return true;\n }\n\n return false;\n }", "public boolean isGoal(){\n char c = this.getGoalLetter();\n return 'a' <= c && c <= 'z'; // will return true if goalLetter is a lowercase letter\n }", "boolean hasHangmogName();", "boolean hasStartGameRequest();", "public boolean isRocky() {\r\n\t\treturn this.rocky;\r\n\t}", "public boolean isAllowGuestControl() {\r\n return allowGuestControl;\r\n }", "final boolean isPlayerAuthenticated(String playerUuid) {\r\n\t\tInstallationLogic logic = (InstallationLogic) getSpringContext()\r\n\t\t\t\t.getBean(\"installationLogic\");\r\n\t\treturn logic.getInstallationByUuid(playerUuid) != null;\r\n\t}", "@XmlTransient\n\tpublic boolean isCanActivateUser() {\n\t\treturn (isSecurityAdministrator() && isSelfRegistrationEnabled());\n\t}", "boolean hasYaw();", "boolean hasYaw();", "public boolean isPlayerAlive() {\r\n\t\treturn !(this.getRobotsAlive().isEmpty());\r\n\t}", "public boolean voikoSulkea() {\n handleTallenna();\n return true;\n }", "boolean hasAccZ();", "public final boolean zzy(int i) {\n try {\n Bundle zzmr = this.zzael ? this.zzbtp.zzmr() : this.zzaau.zzarc ? this.zzbtp.getInterstitialAdapterInfo() : this.zzbtp.zzmq();\n return zzmr != null && (zzmr.getInt(\"capabilities\", 0) & i) == i;\n } catch (RemoteException unused) {\n zzakb.zzdk(\"Could not get adapter info. Returning false\");\n return false;\n }\n }", "protected boolean hasGameStarted() {\r\n return super.hasGameStarted();\r\n }", "public boolean isPlaying() {\n\t\treturn state == State.INGAME;\n\t}", "public boolean hasTurn() {\n\t\treturn world.getCurrentPlayer() == this;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isTurning();", "@Override\r\n\tpublic boolean canPlay() {\n\t\treturn false;\r\n\t}", "public Boolean isNoGoZone() {\r\n\t return this.noGoZone;\r\n\t }", "public boolean whoIsHere(){\r\n\t\treturn otherPlayer;\r\n\t}", "public boolean hasWG() {\n Plugin plugin = getServer().getPluginManager().getPlugin(\"WorldGuard\");\n return plugin != null;\n }", "private boolean canEnlist() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n || uiStateManager.getState().equals(GameUIState.STANDBY);\n }", "public boolean quitGame() {\n\t\treturn game.quitPlayer(this, \"sieler gibt auf\");\t\t\n\t}", "public boolean isGoal() {\n return (man == 0);\n }", "public boolean isMyTurn() {\n if (gameStatus == null || userId == null) return false;\n return userId.equals(gameStatus.getActivePlayer());\n }" ]
[ "0.67962414", "0.6430835", "0.60201573", "0.59571046", "0.59546137", "0.58356863", "0.5774859", "0.57710576", "0.57486427", "0.5748213", "0.57348406", "0.57289296", "0.56788665", "0.5643299", "0.5627588", "0.5581305", "0.5570861", "0.55544233", "0.55471176", "0.554436", "0.55091816", "0.5497875", "0.54968935", "0.5468192", "0.54660404", "0.54650116", "0.54583794", "0.54500514", "0.5443846", "0.54324496", "0.54099786", "0.54077893", "0.5400443", "0.5399236", "0.53989357", "0.5398786", "0.539584", "0.5395797", "0.5388558", "0.5383614", "0.53835243", "0.5381318", "0.53602886", "0.5353351", "0.53485787", "0.53447664", "0.5342902", "0.5342243", "0.53234357", "0.5316938", "0.53138775", "0.5306886", "0.53057903", "0.5305736", "0.5305618", "0.5304442", "0.5303781", "0.5303023", "0.53019917", "0.5298544", "0.52980363", "0.52925456", "0.5274682", "0.52720344", "0.5271438", "0.5269167", "0.5263873", "0.5261147", "0.52586114", "0.525617", "0.525617", "0.5253564", "0.5252727", "0.5240496", "0.52358997", "0.5234622", "0.52257794", "0.5225231", "0.5220855", "0.52197737", "0.5213302", "0.52017605", "0.5194921", "0.5194921", "0.5194464", "0.51912034", "0.51898646", "0.51884294", "0.518599", "0.5183605", "0.51789945", "0.5174788", "0.51733315", "0.51726353", "0.51691514", "0.5169128", "0.516461", "0.5164335", "0.5152686", "0.5149806" ]
0.82019365
0
Returns true if enemy plays as Terran.
public static boolean isEnemyTerran() { return AtlantisGame.enemy().getRace().equals(RaceTypes.Terran); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean playsAsTerran() {\n return AtlantisConfig.MY_RACE.equals(RaceTypes.Terran);\n }", "public boolean isTie() {\n if (gameStatus == null) return false;\n return gameStatus.isTie()\n || (gameStatus.getPlayerOnePoints() != -1\n && gameStatus.getPlayerOnePoints() == gameStatus.getPlayerTwoPoints()\n && isGameOver()\n && gameStatus.getWinner() == null);\n }", "public boolean isTankRole() {\n\n return heroRole.equals(HeroRole.TANK);\n }", "public boolean Tie() {\n\t\tboolean isTie = false;\n\t\tfor(int i=1;i<numPlayers;i++)\t{\n\t\t\tif(!isTie)\t{\n\t\t\t\tif(!record[i].equalsIgnoreCase(\"p\") && record[i-1].equalsIgnoreCase(\"p\"))\t{\n\t\t\t\t\tisTie = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn isTie;\n\t}", "public static boolean isEnemyProtoss() {\n return AtlantisGame.enemy().getRace().equals(RaceTypes.Protoss);\n }", "public boolean isRedstoneTorch() {\n return this.type == Type.REDSTONE_TORCH;\n }", "public boolean isOnPlayerOne() {\r\n\t\treturn onTraderOne;\r\n\t}", "public boolean isHuman() {\n \t\treturn (type == PLAYER_HUMAN);\n \t}", "public boolean isTypal() {\n return typal;\n }", "public boolean wantsToAttack() {\n boolean ret = false;\n \n potentialAttackers.clear(); //Previous potentials might no longer be adjacent to an enemy\n \n //Look at all my territories. If it has enough troops to smack someone, it does.\n for(Territory t : gameController.getBoard().getAgentsTerritories(this)){\n if(t.getNumTroops() > 1){\n \n //Check adjacent territories to see if we can do anything about it.\n List<Territory> adjs = gameController.getBoard().getAdjacentTerritories(t);\n for(Territory adj : adjs){\n //Record a boolean so we don't need to call it twice;\n boolean yes = !adj.getOwner().equals(this);\n \n //Check if we have an acceptable chance of success\n int tTroops = t.getNumTroops() - 1;\n int aTroops = adj.getNumTroops();\n double odds = MarkovLookupTable.getOddsOfSuccessfulAttack(tTroops, aTroops);\n yes &= Double.compare(odds, ACCEPTABLE_RISK) >= 0;\n \n //If we can attack with this territory, yes will be true, throw this Territory\n //in the list of potential attackers if it isn't already in there.\n if(yes){\n if(!potentialAttackers.contains(t)){\n potentialAttackers.add(t);\n }\n }\n ret |= yes; //Ret will be set to true and can't be unset if even 1 t can attack\n }\n }\n }\n \n return ret;\n }", "public boolean isTorn() {\n\t\treturn isTorn;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isTallied();", "public static boolean playsAsProtoss() {\n return AtlantisConfig.MY_RACE.equals(RaceTypes.Protoss);\n }", "public boolean isTorch() {\n return this.type == Type.TORCH;\n }", "public boolean isTamed() {\n return tamed;\n }", "public boolean isTallGrass() {\n return this.type == Type.TALL_GRASS;\n }", "public boolean isTibetan();", "public boolean isTorn() {\n\t\treturn this.torn;\n\t}", "public boolean playPet(String toy) {\r\n switch (toy) {\r\n case (\"ball\"): {\r\n if ((this.player.getMoney() - ball.getCost()) >= 0) {\r\n player.play(ball);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n case (\"doll\"): {\r\n if ((this.player.getMoney() - doll.getCost()) >= 0) {\r\n player.play(doll);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n case (\"frisbee\"): {\r\n if ((this.player.getMoney() - frisbee.getCost()) >= 0) {\r\n player.play(frisbee);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n case (\"feather toy\"): {\r\n if ((this.player.getMoney() - featherToy.getCost()) >= 0) {\r\n player.play(featherToy);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "public boolean topPlayerWon() {\n return winner == 2;\n }", "public boolean hasTarget() { \n if (isReal) {\n return get(\"tv\") == 1; // cleaned return statement up\n } else {\n return hasTargetSim.getBoolean(false);\n }\n }", "@Override\n\tpublic boolean isGameTied() {\t\n\t\treturn false;\n\t}", "public abstract boolean isPlayer();", "@Override\r\n\t\tpublic boolean isPlayer() {\n\t\t\treturn state.isPlayer();\r\n\t\t}", "private boolean isTargetingPlayer(Entity entity) {\n if (!plugin.getConfiguration().relativeAgeEnabled()) return false;\n if (entity instanceof Creature) {\n Creature creature = (Creature) entity;\n if (creature.getTarget() != null && creature.getTarget().getType().equals(EntityType.PLAYER)) {\n lastTargeted.put(entity.getUniqueId(), entity.getTicksLived());\n return true;\n }\n }\n return false;\n }", "@Override\n public boolean isPlayer() {\n return super.isPlayer();\n }", "public boolean isBot() {\n \t\treturn (type == PLAYER_BOT);\n \t}", "private static boolean showTrinket(Trinket t, OutputType outputType) {\n\t\tswitch (outputType) {\n\t\t\tcase POSSESS:\n\t\t\t\tif (t.count > 0) { return true; }\n\t\t\t\tbreak;\n\t\t\tcase POSSESS_WITH_DUPLICATES:\n\t\t\t\tif (t.count >= MINIMUM_DUPLICATE_NUMBER) { return true; }\n\t\t\t\tbreak;\n\t\t\tcase DO_NOT_POSSESS:\n\t\t\t\tif (t.count == 0) { return true; }\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t\treturn false;\n\t}", "private boolean isTeamAWinner(BattleFactory factory) {\r\n\t\tBattle battle = factory.generateBattle();\r\n\t\tdo {\r\n\t\t\tBattleAction action = battle.nextAction();\r\n\t\t\tif (action instanceof ActionFinish) {\r\n\t\t\t\tif (((ActionFinish) action).teamAVictor) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} while (!battle.isOver());\r\n\t\treturn false;\r\n\t}", "public boolean canThreaten(ChessPiece occupant) {\n\t\treturn (occupant.getPlayer() != owner.getPlayer());\n\t}", "public static boolean isEnemyZerg() {\n return AtlantisGame.enemy().getRace().equals(RaceTypes.Zerg);\n }", "public boolean isPlayer() {\n return player != null;\n }", "public boolean isDuringSportsActivity() {\n return (mStatus == 1);\n }", "public boolean expectToBeat(RugbyTeam aTeam) {\r\n\r\n\t\tif (this.hasRitual == true && aTeam.hasRitual == false) {\r\n\t\t\treturn true;\r\n\t\t} else if ((this.wins - this.losses) > (aTeam.wins - aTeam.losses)) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean meTurn(){\n return (isWhite && isWhitePlayer) || (!isWhite && !isWhitePlayer);\n }", "public boolean isMissedTW() {\n return missedTW;\n }", "public int isTurtleShowing () {\n if (myTurtleShowing) return 1;\n return 0;\n }", "public static boolean checkVictory(){\n\t\tboolean victory = true;\n\t\t\n\t\tfor (int i = 0; i < enemyList.length && victory; i++) {\n\t\t\tif (enemyList[i].isAlive()) {\n\t\t\t\tvictory = false;\n\t\t\t}\n\t\t}\n\t\treturn victory;\n\t}", "boolean hasTargetPlayerName();", "public boolean inTie() {\n return this.tie;\n }", "public static boolean playsAsZerg() {\n return AtlantisConfig.MY_RACE.equals(RaceTypes.Zerg);\n }", "public boolean isTurnOngoing() {\n int numEntitiesWithActions = 0;\n for (Entity entity : entitiesInCombat) {\n if (entity.canAct()) {\n numEntitiesWithActions++;\n }\n }\n return numEntitiesWithActions > 0;\n }", "public boolean isAutoTeam() {\n return isPreventCollision() && getBoolean(\"auto-team\", true);\n }", "@Override\r\n\t\t\tpublic ExecuteResult execute(float deltaTime) {\n\t\t\t\tif(!man.getInfo().getSchool().isTeacherWork()){\r\n\t\t\t\t\treturn ExecuteResult.FALSE;\r\n\t\t\t\t}\r\n\t\t\t\treturn ExecuteResult.TRUE;\r\n\t\t\t}", "public boolean shouldTrack( ScannedRobotEvent e )\r\n {\n return ( enemy.none() || e.getDistance() < enemy.getDistance() - 70\r\n || e.getName().equals( enemy.getName() ) );\r\n }", "public boolean isPlayerInThisGame(Player player) {\n return player.equals(getRedPlayer()) || player.equals(getWhitePlayer());\n }", "public boolean getAttack(IEntity enemyUnit){\n return tempUnit.getAttack(enemyUnit);\n }", "public boolean shouldExecute() {\n LivingEntity livingentity = ShulkerEntity.this.getAttackTarget();\n if (livingentity != null && livingentity.isAlive()) {\n return ShulkerEntity.this.world.getDifficulty() != Difficulty.PEACEFUL;\n } else {\n return false;\n }\n }", "public void isStillInCombat() {\n isInCombat = enemiesInCombat.size() > 0;\n }", "public boolean inflictStaffTrance() {\n /**\n * A Staff has 20% chance of inflicting trance.\n */\n if (this.getWeapon() instanceof Staff) {\n int seed = 100;\n Random random = new Random(seed);\n int value = random.nextInt(seed);\n return value < 21;\n }\n\n return false;\n }", "boolean isPlayableInGame();", "boolean isPlayable();", "public static boolean coinToss() {\n double flip = Math.random();\n if (flip < .50) // tails\n return false;\n else // heads\n return true; \n }", "@Override\n public boolean isChasingPlayer()\n {\n return(chasingPlayer);\n }", "public boolean isTargetTerritoryValid() {\n return isTargetTerritoryOneBlockAway();\n }", "private boolean outputUtterance(Utterance utterance, BulkTimer timer) {\n\tboolean ok = true;\n\tFreeTTSSpeakable speakable = utterance.getSpeakable();\n\n\tif (!speakable.isCompleted()) {\n\t if (utterance.isFirst()) {\n\t\tgetAudioPlayer().reset();\n\t\tspeakable.started();\n\t\tlog(\" --- started ---\");\n\t }\n\n\t // log(\" utt: \" + utterance.getString(\"input_text\"));\n\t try {\n if (!speakable.isCompleted()) {\n runProcessor(audioOutput, utterance, timer);\n } else {\n ok = false;\n }\n\t } catch (ProcessException pe) {\n\t\tok = false;\n\t }\n\t if (ok && utterance.isLast()) {\n\t\tgetAudioPlayer().drain();\n speakable.completed();\n log(\" --- completed ---\");\n\t } else if (!ok) {\n\t\t// getAudioPlayer().drain();\n\t\tspeakable.cancelled();\n log(\" --- cancelled ---\");\n\t } else {\n log(\" --- not last: \" + speakable.getText() + \" --- \");\n }\n log(\"Calling speakable.completed() on \" + speakable.getText());\n } else {\n\t ok = false;\n log(\"STRANGE: speakable already completed: \" +speakable.getText());\n\t}\n\treturn ok;\n }", "private void checkVictory()\n {\n if(throne.getEnemyHealth() <= 0)\n {\n System.out.println(\"Congrats! The land is now free from all chaos and destruction. You are now very rich and wealthy. Yay\");\n alive = false;\n }\n }", "private boolean sameTeamCheck(char state)\r\n {\r\n if((state == 'b' && isHuman) || (state == 'p' && !isHuman))\r\n return true;\r\n return false;\r\n }", "public boolean isGoal() {\n return humming() = 0;\n }", "public boolean isEnemy(Piece piece) {\n\t\treturn piece == null ? false : piece.team != this.team;\n\t}", "public boolean isGoal() {\n return (man == 0);\n }", "boolean isRedTeam() {\n return ( START_AS_RED ? (!color_flipped_) : color_flipped_ );\n }", "@Override\n\tpublic boolean shouldExecute() {\n\t\tif (!theEntityTameable.isTamed())\n\t\t\treturn false;\n\t\telse {\n\t\t\tfinal EntityLivingBase var1 = theEntityTameable.getOwner();\n\n\t\t\tif (var1 == null)\n\t\t\t\treturn false;\n\t\t\telse {\n\t\t\t\ttheTarget = var1.getLastAttacker();\n\t\t\t\tfinal int var2 = var1.getLastAttackerTime();\n\t\t\t\treturn var2 != field_142050_e\n\t\t\t\t\t\t&& isSuitableTarget(theTarget, false)\n\t\t\t\t\t\t&& theEntityTameable.func_142018_a(theTarget, var1);\n\t\t\t}\n\t\t}\n\t}", "public boolean isWon() {\r\n\t\tif (winner(CROSS) || winner(NOUGHT))\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "private boolean shouldSnakeSeekTruman(Point snake, int trux, int truy){\n\t\treturn (Math.abs(snake.x - trux) < SNAKE_ATTACK_RANGE && Math.abs(snake.y - truy) < SNAKE_ATTACK_RANGE);\n\t}", "public boolean isCurrentPlayerHungry() {\r\n\tboolean isHungry = true;\r\n\tint length = this.territory[this.currentSide].length;\r\n\tfor (short i = 0; i < length && isHungry; i++) {\r\n\t isHungry = (this.territory[this.currentSide][i] == 0);\r\n\t}\r\n\r\n\treturn isHungry;\r\n }", "@Override\n\tpublic boolean isIsTeamMatch() {\n\t\treturn _esfTournament.isIsTeamMatch();\n\t}", "private boolean shootAt(Enemy enemy) {\n if (nextAttack == 0) {\n enemy.setHealth(enemy.getHealth() - tower.getDamage());\n shotEnemy = enemy;\n return true;\n }\n return false;\n }", "public boolean tienePapel()\n {\n //COMPLETE\n return this.hojas > 0;\n }", "public void setTypal(boolean value) {\n this.typal = value;\n }", "public boolean isThundering()\n {\n return thundering;\n }", "public boolean isSpellCaster() {\r\n if (_index == 2 || _index == 3 || _index == 6 || _index == 8 ||\r\n _index == 10 || _index == 11 || _index == 14 || _index == 16) {\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean isControlledByPlayer(Player player) {\r\n if (territories == null) {\r\n return false;\r\n }\r\n\r\n for (Territory territory : territories) {\r\n if (!territory.getPlayer().equals(player)) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }", "public boolean isCashierTrainee() {\n\t\treturn this.cashierTrainee;\n\t}", "abstract public boolean isTurtleCommand();", "public boolean turretAngleOnTarget() {\n return this.turretPIDController.atSetpoint();\n }", "public boolean isHero() {\n\t\treturn hero;\n\t}", "public boolean hasTomb(String player) {\r\n\t\treturn tombs.containsKey(player);\r\n\t}", "public boolean isCauldron() {\n return this.type == Type.CAULDRON;\n }", "public boolean playerWins(){\n return playerFoundTreasure(curPlayerRow, curPlayerCol);\n }", "public void isTimed(boolean yn) {\n timed = yn;\n }", "public boolean whoIsHere(){\r\n\t\treturn otherPlayer;\r\n\t}", "boolean isPlayerTurn();", "public static boolean isTeen(int number) {\n\t\t\t// TODO Write an implementation for this method declaration\n\t\t\tif(number >= 13 && number <= 19) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t}", "@Override\n public final boolean canStand(Playery player) {\n return true;\n }", "public boolean isAiTurn() {\n return whosTurn() == aiPlayer;\n }", "private boolean isTargetTerritoryOneBlockAway() {\n for(Territory territory:getCurrentPlayerTerritories()) {\n if(Math.abs(territory.getID()-selectedTerritoryByPlayer.getID()) == 1) {\n int minID = Math.min(territory.getID(),selectedTerritoryByPlayer.getID());\n int maxID = Math.max(territory.getID(),selectedTerritoryByPlayer.getID());\n if(maxID % gameDescriptor.getColumns() == 0)\n return true;\n if((minID % gameDescriptor.getColumns() != 0 )\n && (minID / gameDescriptor.getColumns() == maxID / gameDescriptor.getColumns())) {\n return true;\n }\n }\n else if(Math.abs(territory.getID()-selectedTerritoryByPlayer.getID()) == gameDescriptor.getColumns())\n return true;\n }\n return false;\n }", "public boolean isCaught() {\n\t\tboolean temp = pokemon.catchCheck();\n\t\tif (temp) {\n\t\t\ttrainer.addPokemon(pokemon);\n\t\t}\n\t\treturn temp;\n\t}", "public boolean isAttack() {\n\t\treturn attack;\n\t}", "boolean hasMainUtteranceTargetLevel();", "public boolean shouldTrack( ScannedRobotEvent e )\n {\n // track if we have no enemy, the one we found is significantly\n // closer, or we scanned the one we've been tracking.\n return ( enemy.none() || e.getDistance() < enemy.getDistance() - 70\n || e.getName().equals( enemy.getName() ) );\n }", "private boolean shouldPlayerSkipThirst(EntityPlayer player)\n\t{\n\t\treturn player.isSpectator() || player.isCreative();\n\t}", "public boolean servesDinner() {\n return convertBool(mDinner);\n }", "boolean canRobPlayer(HexLocation location, int victimIndex);", "@Override\n public boolean hasTarget() {\n if (targets.size < Rules.Player.SideKicks.HeatTurret.MAX_TARGETS) {\n return false;\n }\n for (int i = 0; i < targets.size; i++) {\n Enemy currentTarget = targets.get(i);\n if (currentTarget.isDead()) {\n targets.removeIndex(i);\n return true;\n }\n }\n return false;\n }", "private boolean shouldBecomeCombatEngineer() {\r\n\t\tdouble machineUnitsCount = this.getNumberOfMachineUnits();\r\n\t\tdouble combatEngineers = this.informationStorage.getWorkerConfig().getTotalCombatEngineerCount();\r\n\r\n\t\treturn combatEngineers / machineUnitsCount <= this.combatEngineerTriggerPercentageEnroll;\r\n\t}", "public boolean canAttack(Combatant aCombatant)\n\t{\n\t\treturn false;\n\t}", "public boolean getSteady() {\n\t\treturn (getTaskType() == TASK_STEADY);\n\t}", "public boolean isPlayerWinner(int player)\n {\n return players[player] == 100;\n }", "private boolean shouldStopBeingCombatEngineer() {\r\n\t\tdouble machineUnitsCount = this.getNumberOfMachineUnits();\r\n\t\tdouble combatEngineers = this.informationStorage.getWorkerConfig().getTotalCombatEngineerCount();\r\n\r\n\t\treturn combatEngineers / machineUnitsCount >= this.combatEngineerTriggerPercentageCancel;\r\n\t}" ]
[ "0.820851", "0.6892357", "0.62911856", "0.62639225", "0.6228606", "0.6226359", "0.6078766", "0.60481715", "0.60068995", "0.5916473", "0.5915535", "0.5903742", "0.5846598", "0.58368045", "0.58004665", "0.5799688", "0.576913", "0.57393485", "0.5726945", "0.56836104", "0.56656706", "0.5651328", "0.56100434", "0.559297", "0.5561922", "0.5561564", "0.55511886", "0.5542553", "0.5541356", "0.5536472", "0.55263984", "0.5516123", "0.5513284", "0.55063754", "0.5502967", "0.54705185", "0.5464943", "0.5463107", "0.54459155", "0.5444351", "0.5443628", "0.5422016", "0.54211307", "0.540331", "0.53981465", "0.5397983", "0.5392457", "0.5388672", "0.5386075", "0.5376092", "0.5370694", "0.5362038", "0.5358569", "0.53535086", "0.5346581", "0.5342866", "0.5340323", "0.53209776", "0.53138345", "0.531349", "0.53061265", "0.5305365", "0.53051335", "0.5301362", "0.5298274", "0.5294275", "0.5286801", "0.52772874", "0.5259009", "0.52559006", "0.5255874", "0.52522516", "0.5250952", "0.5249868", "0.52484953", "0.52474993", "0.5221416", "0.5218828", "0.5213996", "0.51996434", "0.5194145", "0.5190082", "0.51866", "0.51766306", "0.5174786", "0.51729774", "0.51728284", "0.5170295", "0.5164727", "0.51638544", "0.5160824", "0.51592064", "0.5155669", "0.51548004", "0.5151527", "0.5150012", "0.51487535", "0.5139506", "0.5136445", "0.51324373" ]
0.83035487
0
Returns true if enemy plays as Protoss.
public static boolean isEnemyProtoss() { return AtlantisGame.enemy().getRace().equals(RaceTypes.Protoss); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean playsAsProtoss() {\n return AtlantisConfig.MY_RACE.equals(RaceTypes.Protoss);\n }", "@Override\n public boolean isPlayer() {\n return super.isPlayer();\n }", "@Override\r\n\t\tpublic boolean isPlayer() {\n\t\t\treturn state.isPlayer();\r\n\t\t}", "public abstract boolean isPlayer();", "boolean isPlayableInGame();", "public boolean isPlayer() {\n return player != null;\n }", "public boolean isBot() {\n \t\treturn (type == PLAYER_BOT);\n \t}", "boolean isPlayable();", "public boolean isTie() {\n if (gameStatus == null) return false;\n return gameStatus.isTie()\n || (gameStatus.getPlayerOnePoints() != -1\n && gameStatus.getPlayerOnePoints() == gameStatus.getPlayerTwoPoints()\n && isGameOver()\n && gameStatus.getWinner() == null);\n }", "boolean hasSendPlayerName();", "public boolean checkPlays(Player player){\n return true;\n }", "@SuppressWarnings(\"static-access\")\n\tpublic boolean isPlay(){\n\t\treturn this.isPlay;\n\t}", "public boolean isSinglePlayer() {\n\t\treturn false;\n\t}", "public boolean isHuman() {\n \t\treturn (type == PLAYER_HUMAN);\n \t}", "public boolean Tie() {\n\t\tboolean isTie = false;\n\t\tfor(int i=1;i<numPlayers;i++)\t{\n\t\t\tif(!isTie)\t{\n\t\t\t\tif(!record[i].equalsIgnoreCase(\"p\") && record[i-1].equalsIgnoreCase(\"p\"))\t{\n\t\t\t\t\tisTie = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn isTie;\n\t}", "public boolean isPaused(){\r\n\t\tif (this.pauseGame(_p)){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\t\r\n\t}", "boolean hasTargetPlayerName();", "public boolean isPlayerAlive() {\r\n\t\treturn !(this.getRobotsAlive().isEmpty());\r\n\t}", "public boolean isOnPlayerOne() {\r\n\t\treturn onTraderOne;\r\n\t}", "public boolean isHasPlayer() {\n\t\treturn HasPlayer;\n\t}", "public boolean playPet(String toy) {\r\n switch (toy) {\r\n case (\"ball\"): {\r\n if ((this.player.getMoney() - ball.getCost()) >= 0) {\r\n player.play(ball);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n case (\"doll\"): {\r\n if ((this.player.getMoney() - doll.getCost()) >= 0) {\r\n player.play(doll);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n case (\"frisbee\"): {\r\n if ((this.player.getMoney() - frisbee.getCost()) >= 0) {\r\n player.play(frisbee);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n case (\"feather toy\"): {\r\n if ((this.player.getMoney() - featherToy.getCost()) >= 0) {\r\n player.play(featherToy);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "boolean isMultiplayer();", "@Override\n public boolean isPlaying()\n {\n final String funcName = \"isPlaying\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%s\", Boolean.toString(playing));\n }\n\n return playing;\n }", "private boolean canPauseGame() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n && gameStateManager.getState().equals(GameState.PLAY);\n }", "protected boolean isPlayer(final CommandSender sender) {\n\t\tif (sender instanceof Player) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tChatUtil.sendBrandingMessage(sender, this.mustBePlayerMessage);\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isGameWon(){\r\n for(Card c: this.cards){\r\n if (c.getFace() == false){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public boolean isOnline() {\n \t\treturn (type == PLAYER_ONLINE);\n \t}", "public boolean isPlayable() {\n return (mFlags & FLAG_PLAYABLE) != 0;\n }", "boolean isGameSpedUp();", "public boolean topPlayerWon() {\n return winner == 2;\n }", "public boolean isPlayerInThisGame(Player player) {\n return player.equals(getRedPlayer()) || player.equals(getWhitePlayer());\n }", "@Override\n public boolean isChasingPlayer()\n {\n return(chasingPlayer);\n }", "public boolean isPlaying() {\n\t\treturn state == State.INGAME;\n\t}", "private boolean isOver() {\r\n return players.size() == 1;\r\n }", "private boolean isTargetingPlayer(Entity entity) {\n if (!plugin.getConfiguration().relativeAgeEnabled()) return false;\n if (entity instanceof Creature) {\n Creature creature = (Creature) entity;\n if (creature.getTarget() != null && creature.getTarget().getType().equals(EntityType.PLAYER)) {\n lastTargeted.put(entity.getUniqueId(), entity.getTicksLived());\n return true;\n }\n }\n return false;\n }", "boolean hasSendPlayerId();", "@java.lang.Override\n public boolean hasPlayer() {\n return player_ != null;\n }", "@Override\r\n\tpublic boolean canPlay() {\n\t\treturn false;\r\n\t}", "public boolean gameWon(){\n return false;\n }", "public boolean isMultiplayer() {\n return multiplayerGameManager.isMultiplayer();\n }", "public boolean isPlaying() {\n return params.isPlay();\n }", "Boolean isPlaying() {\n return execute(\"player.playing\");\n }", "public boolean meTurn(){\n return (isWhite && isWhitePlayer) || (!isWhite && !isWhitePlayer);\n }", "public static boolean getIsPlayersTurn()\r\n {\r\n return isPlayersTurn;\r\n }", "public boolean isSpectator()\n {\n NetworkPlayerInfo networkplayerinfo = Minecraft.getMinecraft().getNetHandler().getPlayerInfo(this.getGameProfile().getId());\n return networkplayerinfo != null && networkplayerinfo.getGameType() == GameType.SPECTATOR;\n }", "@Override\n public final boolean canStand(Playery player) {\n return true;\n }", "public boolean playerWonGame(Player player) {\n if (playerWonGameWithDiagonalLine(player) || playerWonGameWithHorizontalLine(player)\n || playerWonGameWithVerticalLine(player)) {\n return true; \n }\n return false; \n \n }", "public boolean isPlayerWinner(int player)\n {\n return players[player] == 100;\n }", "protected abstract boolean isPlayerActivatable(PlayerSimple player);", "public boolean isDuringSportsActivity() {\n return (mStatus == 1);\n }", "public abstract boolean isPossible(Player p);", "public boolean isHasPlayers() {\n\t\treturn HasPlayers;\n\t}", "public boolean gameIsOver() {\r\n int cpt = 0;\r\n for (Player p : players) {\r\n if (p.getLife() > 0) {\r\n cpt++;\r\n }\r\n }\r\n return cpt==1;\r\n }", "public boolean amIWinning(){\n if (playerScore > oppoScore) {\n return true;\n } else {\n return false;\n }\n }", "public boolean gameWon(){\n\t\treturn Game.gameWon;\n\t}", "public void setAsPlayer(){\n\t\tthis.isPlayer = true;\n\t}", "public boolean needPlayer() {\n\t\treturn false;\n\t}", "boolean isPlayerTurn();", "public boolean shouldPause(){\n for(int i:pauses){\n if(stageNum == i){\n return true;\n }\n }\n return false;\n }", "public boolean isGameRunning()\n\t{\n\t\treturn zegar.isRunning() || wToku;\n\t}", "@Override\n public boolean isLocalPlayersTurn() {\n return getTeam().equals(currentBoard.turn());\n }", "public boolean isCurrentPlayer() {\n return playerStatus.isActive;\n }", "public boolean whoIsHere(){\r\n\t\treturn otherPlayer;\r\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isTurning();", "public boolean isSetPlayer() {\n return this.player != null;\n }", "public boolean hasPlayer() {\n return playerBuilder_ != null || player_ != null;\n }", "public boolean continueGame(){\n for (Player p : super.getPlayers()) {\n // check if p is dead\n if (p.isDead()) {\n return false;\n }\n }\n return true;\n }", "@java.lang.Override\n public boolean hasOpponent() {\n return opponent_ != null;\n }", "public boolean isVisionary(EntityPlayer player);", "public boolean isInPlay() {\n\t\tif (getX() < LEFT_FIELD_LIMIT || getX() > RIGHT_FIELD_LIMIT || \n\t\t\t\t getY() <= MINIMUM_FOOTBALL_Y) {\n\t\t\tinPlay_ = false;\n\t\t\treturn inPlay_;\n\t\t} \n\t\treturn inPlay_;\n\t}", "private boolean didPlayerWin() {\r\n for (int i = 0; i < targets.length; i++) {\r\n if (targets[i].getHitPoints() != 0) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public boolean isOnline()\n\t{\n\t\treturn PlayerManager.getPlayer(name)!=null;\n\t}", "public boolean isSidePlayerOpen() {\n return this.sidePlayer;\n }", "public boolean checkPet() {\r\n return this.player.pet.getIsAlive();\r\n }", "@Override\n\tpublic boolean isGameTied() {\t\n\t\treturn false;\n\t}", "boolean isPlaying() { return playing; }", "public static boolean playsAsTerran() {\n return AtlantisConfig.MY_RACE.equals(RaceTypes.Terran);\n }", "public boolean isTalking()\n\t{\n\t\treturn m_isTalking;\n\t}", "private boolean playerWonGameWithVerticalLine(Player player) {\n char playerSymbol = player.getType(); \n for (int i = 0; i < 3; i++) {\n if (boardState[0][i] == playerSymbol && boardState[1][i] == playerSymbol \n && boardState[2][i] == playerSymbol) {\n return true; \n }\n \n }\n return false; \n }", "boolean hasPlayerBag();", "public void isGameOver() { \r\n myGameOver = true;\r\n myGamePaused = true; \r\n }", "public boolean isPlayerTurn() {\n return playerTurn;\n }", "public boolean isSoundPCSpeakerEnabled()\r\n {\r\n return isSoundPCSpeakerEnabled;\r\n }", "public boolean isGameOver() {\n if (!isFirstTurn) {\n if (state.score().totalPoints(TeamId.TEAM_1)>=Jass.WINNING_POINTS||state.score().totalPoints(TeamId.TEAM_2)>=Jass.WINNING_POINTS) {\n return true;\n }\n else {\n return false;\n }\n } \n else {return false;}\n }", "public boolean isSpeaking() {\n return (mSelf.mIsSpeaking && (mSpeechQueue.size() < 1));\n }", "public boolean getPlayerState()\n\t{\n\t\treturn blnPlayerState;\n\t\t\n\t}", "public boolean isWinnerMe() {\n if (gameStatus == null || userId == null) return false;\n return userId.equals(gameStatus.getWinner())\n || (getMyPlayerNumber() == 1 && getPlayerTwoPoints() == 0)\n || (getMyPlayerNumber() == 2 && getPlayerOnePoints() == 0)\n || getMyPlayerNumber() == 1 && getPlayerOnePoints() > getPlayerTwoPoints()\n || getMyPlayerNumber() == 2 && getPlayerOnePoints() < getPlayerTwoPoints();\n }", "public boolean isPlaying() {\n\t\treturn AL10.alGetSourcei(id, AL10.AL_SOURCE_STATE) == AL10.AL_PLAYING;\n\t}", "boolean hasTargetPlayerId();", "public synchronized boolean HaveWon() {\n if (maxScore <= score) {\n return true;\n }\n return false;\n }", "public boolean isMainPlayerOpen() {\n return this.mainPlayer;\n }", "public boolean sendSonicTime(final CommandSender p, final String playername) {\n\t\tif (doingCommand.contains(p.getName())) { //Check if already doing command\n\t\t\treturn false;\n\t\t}\n\t\tdoingCommand.add(p.getName());\n\t\t_.msg(p, GameMode.Sonic, \"Gathering \" + playername + \"'s stats...\");\n\t\t_T.run_ASync(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tif (con.isClosed() || !isAlive) {\n\t\t\t\t\t\tif (!connect()) {\n\t\t\t\t\t\t\tthrow new SQLException(\"Failed to connect with SQL.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString[] messages = new String[7];\n\t\t\t\t\tResultSet allScoresRS = con.createStatement().executeQuery( //Gather all scores\n\t\t\t\t\t\t\"SELECT `player`, `finish`, `checkpoint1`, `checkpoint2`, `checkpoint3`, `checkpoint4`, `checkpoint5` \" +\n\t\t\t\t\t\t\"FROM `sonicleaderboard` \" +\n\t\t\t\t\t\t\"ORDER BY `sonicleaderboard`.`finish` ASC;\"\n\t\t\t\t\t);\n\t\t\t\t\tboolean playerFound = false;\n\t\t\t\t\tHashSet<String> foundPlayers = new HashSet<>();\n\t\t\t\t\tint rank = 0;\n\t\t\t\t\twhile (allScoresRS.next()) { //Loop thru scores\n\t\t\t\t\t\tString foundPlayer = allScoresRS.getString(1).toLowerCase(); //Get the player\n\t\t\t\t\t\tif (foundPlayers.contains(foundPlayer)) { //If player already found\n\t\t\t\t\t\t\tcontinue; //Skip\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfoundPlayers.add(foundPlayer);\n\t\t\t\t\t\trank++;\n\t\t\t\t\t\tif (foundPlayer.equals(playername.toLowerCase())) { //Requested player found\n\t\t\t\t\t\t\tplayerFound = true; //Send player's time\n\t\t\t\t\t\t\tmessages[0] = playername + \"'s All-Time High Score = \" + ChatColor.GREEN + _.getGameController().getTimeString(0, allScoresRS.getLong(2)) + ChatColor.WHITE + \" | Ranked \" + ChatColor.GREEN + \"#\" + rank;\n\t\t\t\t\t\t\tmessages[1] = checkpointString(1, allScoresRS.getLong(3));\n\t\t\t\t\t\t\tmessages[2] = checkpointString(2, allScoresRS.getLong(4));\n\t\t\t\t\t\t\tmessages[3] = checkpointString(3, allScoresRS.getLong(5));\n\t\t\t\t\t\t\tmessages[4] = checkpointString(4, allScoresRS.getLong(6)); \n\t\t\t\t\t\t\tmessages[5] = checkpointString(5, allScoresRS.getLong(7));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!playerFound) { //Player hasn't been found\n\t\t\t\t\t\tsendMessage(p, playername + \" hasn't finished Sonic yet.\");\n\t\t\t\t\t\tdoingCommand.remove(p.getName());\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//Get monthly time\n\t\t\t\t\tPreparedStatement prep = con.prepareStatement(\n\t\t\t\t\t\t\"SELECT `player`, `finish` \" +\n\t\t\t\t\t\t\"FROM `sonicleaderboard` \" +\n\t\t\t\t\t\t\"WHERE `finish_timestamp` BETWEEN ? AND ? \" +\n\t\t\t\t\t\t\"ORDER BY `sonicleaderboard`.`finish` ASC;\"\n\t\t\t\t\t);\n\t\t\t\t\t//Set dates\n\t\t\t\t\tprep.setDate(1, startDateSQL);\n\t\t\t\t\tprep.setDate(2, endDateSQL);\n\t\t\t\t\t\n\t\t\t\t\tplayerFound = false; rank = 0; foundPlayers.clear();\n\t\t\t\t\tResultSet monthlyRS = prep.executeQuery();\n\t\t\t\t\twhile (monthlyRS.next()) { //Loop thru all monthly scores\n\t\t\t\t\t\tString monthlyPlayer = monthlyRS.getString(1).toLowerCase();\n\t\t\t\t\t\tif (foundPlayers.contains(monthlyPlayer)) { //Player already found\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfoundPlayers.add(monthlyPlayer);\n\t\t\t\t\t\trank++;\n\t\t\t\t\t\tif (monthlyPlayer.equals(playername.toLowerCase())) { //If the player\n\t\t\t\t\t\t\tplayerFound = true;\n\t\t\t\t\t\t\tmessages[6] = playername + \"'s Monthly (\" + monthString + \") High Score = \" + ChatColor.GREEN + _.getGameController().getTimeString(0, monthlyRS.getLong(2)) + ChatColor.WHITE + \" | Ranked \" + ChatColor.GREEN + \"#\" + rank;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (!playerFound) {\n\t\t\t\t\t\tmessages[6] = playername + \" hasn't raced in this month (\" + monthString + \") yet.\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfor (String msg : messages) { //Send strings\n\t\t\t\t\t\tif (msg == null) continue;\n\t\t\t\t\t\tsendMessage(p, msg);\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t_.log(Level.SEVERE, GameMode.Sonic, \"Failed to get \" + playername + \"'s time! SQLException: \" + e.getMessage());\n\t\t\t\t\t_.badMsg(p, \"Something went wrong gathering \" + playername + \"'s time. Contact Stoux!\");\n\t\t\t\t}\n\t\t\t\tdoingCommand.remove(p.getName());\n\t\t\t}\n\t\t});\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean playerWon() {\n\t\treturn lastPlayerWin;\n\t}", "public boolean isWon() {\r\n\t\tif (winner(CROSS) || winner(NOUGHT))\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "private boolean checkSeesPlayer(int x, int y) {\r\n\t\tint enemy;\r\n\t\tif (creature.getCreature().team == 1) {\r\n\t\t\tenemy = 2;\r\n\t\t} else if (creature.getCreature().team == 2) {\r\n\t\t\tenemy = 1;\r\n\t\t} else {\r\n\t\t\tenemy = 0; //No enemy\r\n\t\t}\r\n\t\tRectangle r = new Rectangle(); // Location Rectangle\r\n\t\tr.width = Tile.TILEWIDTH;\r\n\t\tr.height = Tile.TILEHEIGHT;\r\n\t\tr.x = x * Tile.TILEWIDTH;\r\n\t\tr.y = y * Tile.TILEHEIGHT;\r\n\t\tfor(Creature c : handler.getWorld().getEntityManager().getCreatures()) {\r\n\t\t\tif (c.getCreature().team == enemy) {\r\n\t\t\t\tif(c.getCollisionBounds(0, 0).intersects(r)) {\r\n\t\t\t\t\tseenEnemy = c;\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean userStillInGame() {\n return playersInGame.contains(humanPlayer);\n }", "public boolean isSpawn()\n\t{\n\t\treturn block == Block.FRUIT_SPAWN || block == Block.GHOST_SPAWN || block == Block.PAC_SPAWN;\n\t}", "public boolean isAlive(){\r\n if (currHP > 0){\r\n return true;\r\n }\r\n return false;\r\n }", "@Test\n public void testStop() {\n plugin.start(gameData, world);\n plugin.stop();\n\n boolean hasPlayer = false;\n for (Entity e : world.getEntities(EntityType.PLAYER)) {\n\n hasPlayer = true;\n\n }\n assertFalse(hasPlayer);\n }", "public boolean playing() {\n\t\treturn sound.isPlaying();\n\t}" ]
[ "0.795299", "0.65949446", "0.65259266", "0.6466124", "0.6442982", "0.64307916", "0.6413243", "0.6347229", "0.6285313", "0.62846506", "0.61352515", "0.6093142", "0.6080482", "0.60726154", "0.6058642", "0.6044542", "0.60307366", "0.6021465", "0.60108393", "0.5998392", "0.59916633", "0.59849143", "0.59747297", "0.5947208", "0.59400344", "0.5924062", "0.59212047", "0.59208304", "0.59196043", "0.5902755", "0.58966976", "0.58940405", "0.5874714", "0.58606285", "0.58381593", "0.58209646", "0.58179605", "0.5816116", "0.58132476", "0.58068246", "0.5788299", "0.57723993", "0.5769598", "0.5763515", "0.5751526", "0.5750625", "0.57470596", "0.5712375", "0.5707775", "0.57075346", "0.5699284", "0.5696043", "0.5694961", "0.5694705", "0.5692933", "0.56862366", "0.5683849", "0.5681471", "0.5675744", "0.5669423", "0.5656168", "0.5647722", "0.56394213", "0.5632525", "0.56107503", "0.5609269", "0.5606987", "0.56042814", "0.5601388", "0.5597415", "0.5594327", "0.55919564", "0.55879986", "0.5584216", "0.55797744", "0.5572231", "0.5571616", "0.55659664", "0.55655736", "0.5559128", "0.5548645", "0.55411685", "0.5539068", "0.5538602", "0.55329466", "0.5531542", "0.55309474", "0.5519964", "0.55175626", "0.55103415", "0.55095327", "0.5499147", "0.54959565", "0.54953516", "0.5494724", "0.54933226", "0.5483135", "0.54808646", "0.5463529", "0.5460252" ]
0.8083085
0
Returns true if enemy plays as Zerg.
public static boolean isEnemyZerg() { return AtlantisGame.enemy().getRace().equals(RaceTypes.Zerg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean playsAsZerg() {\n return AtlantisConfig.MY_RACE.equals(RaceTypes.Zerg);\n }", "public boolean isZengin() {\n\t\treturn zengin;\n\t}", "@Override\n public boolean isPlayer() {\n return super.isPlayer();\n }", "@Override\n public boolean isChasingPlayer()\n {\n return(chasingPlayer);\n }", "@Override\r\n\t\tpublic boolean isPlayer() {\n\t\t\treturn state.isPlayer();\r\n\t\t}", "public boolean isGameRunning()\n\t{\n\t\treturn zegar.isRunning() || wToku;\n\t}", "public abstract boolean isPlayer();", "public static boolean isEnemyProtoss() {\n return AtlantisGame.enemy().getRace().equals(RaceTypes.Protoss);\n }", "public boolean isEnderChest() {\n return this.type == Type.ENDERCHEST;\n }", "public boolean isGameWon(){\r\n for(Card c: this.cards){\r\n if (c.getFace() == false){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public boolean isHuman() {\n \t\treturn (type == PLAYER_HUMAN);\n \t}", "public static boolean characterDeathCheck(){\n if (MainCharacter.hpNow <= 0){\n return true;\n }\n return false;\n }", "boolean isGameSpedUp();", "boolean isPlayableInGame();", "public boolean isPlayer() {\n return player != null;\n }", "public final boolean zze() {\n return false;\n }", "public boolean gameWon(){\n return false;\n }", "public boolean isTie() {\n if (gameStatus == null) return false;\n return gameStatus.isTie()\n || (gameStatus.getPlayerOnePoints() != -1\n && gameStatus.getPlayerOnePoints() == gameStatus.getPlayerTwoPoints()\n && isGameOver()\n && gameStatus.getWinner() == null);\n }", "public boolean avengersAlive() {\n\t\tif (avengersHp <= 0) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isEngineOn();", "public final boolean zzh() {\n return zzq() && this.zzz <= zzgod.GROUP.zza();\n }", "public boolean isOnFight();", "public static boolean isEnemyTerran() {\n return AtlantisGame.enemy().getRace().equals(RaceTypes.Terran);\n }", "public boolean isPlayerAlive() {\r\n\t\treturn !(this.getRobotsAlive().isEmpty());\r\n\t}", "boolean hasTargetPlayerName();", "public boolean meTurn(){\n return (isWhite && isWhitePlayer) || (!isWhite && !isWhitePlayer);\n }", "boolean isPlayable();", "private boolean shouldBecomeCombatEngineer() {\r\n\t\tdouble machineUnitsCount = this.getNumberOfMachineUnits();\r\n\t\tdouble combatEngineers = this.informationStorage.getWorkerConfig().getTotalCombatEngineerCount();\r\n\r\n\t\treturn combatEngineers / machineUnitsCount <= this.combatEngineerTriggerPercentageEnroll;\r\n\t}", "public boolean gameWon(){\n\t\treturn Game.gameWon;\n\t}", "public boolean isGround()\n {\n return true;\n }", "@Override\n\tpublic boolean isGameTied() {\t\n\t\treturn false;\n\t}", "public boolean isPlayerDefeated() {\n if (player.getHealth() <= 0) {\n return true;\n }\n return false;\n }", "public boolean isOnPlayerOne() {\r\n\t\treturn onTraderOne;\r\n\t}", "public boolean isEnder(){\n\t\treturn ender;\n\t}", "public boolean whoIsHere(){\r\n\t\treturn otherPlayer;\r\n\t}", "public boolean sendDeath() {\n return true;\n }", "public boolean isAttack() {\n\t\treturn attack;\n\t}", "public boolean Tie() {\n\t\tboolean isTie = false;\n\t\tfor(int i=1;i<numPlayers;i++)\t{\n\t\t\tif(!isTie)\t{\n\t\t\t\tif(!record[i].equalsIgnoreCase(\"p\") && record[i-1].equalsIgnoreCase(\"p\"))\t{\n\t\t\t\t\tisTie = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn isTie;\n\t}", "boolean isPlayerTurn();", "public boolean canFly() {\n\t\treturn !isEgg() && !isHatchling();\n\t}", "public boolean isBattleOver(){\n\n if(battleEnemies.size() == 0) {\n System.out.println(\"Battle over all enemies dead\");\n findDefeated();\n cleanStatuses();\n result = true;\n\n return true;\n }\n if(character.getCurrHP() <= 0){\n System.out.println(\"Battle over character has died\");\n //findDefeated();\n cleanStatuses();\n result = false;\n\n return true;\n }\n //System.out.printf(\"remaining enemies: %s\\n\", battleEnemies.size());\n return false;\n }", "public boolean isAlive() {\r\n\t\treturn hp > 0;\r\n\t}", "public boolean eat() {\n\n if (this.hungerLevel > 0) {\n --this.hungerLevel; // Lower hunger after eating.\n return true;\n }\n return false;\n }", "public static boolean playsAsTerran() {\n return AtlantisConfig.MY_RACE.equals(RaceTypes.Terran);\n }", "public boolean isAlive(){\r\n if (currHP > 0){\r\n return true;\r\n }\r\n return false;\r\n }", "private boolean isGameOver() {\n\t\tfor (int i = 0; i < this.board.getHeight(); i++) {\n\t\t\tif (this.board.getModel(i, 0) instanceof AbstractZombie) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isAlive(){\n if(this.hp <= 0){\n return false;\n }\n else{\n return true;\n }\n }", "public final boolean zzk() {\n return (this.zzy & 256) != 0;\n }", "public boolean isGoal(){\n char c = this.getGoalLetter();\n return 'a' <= c && c <= 'z'; // will return true if goalLetter is a lowercase letter\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isTurning();", "public boolean servesDinner() {\n return convertBool(mDinner);\n }", "@Override\n public final boolean canStand(Playery player) {\n return true;\n }", "boolean isTurnedFaceUp();", "boolean hasMinigameAction();", "boolean isIngameMenuUp() {\n return this.game.r instanceof oz;\n }", "public boolean hasGameEnded() {\n return winner != 0;\n }", "public static boolean playsAsProtoss() {\n return AtlantisConfig.MY_RACE.equals(RaceTypes.Protoss);\n }", "boolean GameOver() {\n\t\treturn player.isDead();\n\t}", "boolean hasSendPlayerName();", "Boolean checkEndGame() {\n for (WarPlayer player : players) {\n if (player.getHand().size() == 0)\n return true;\n }\n return false;\n }", "boolean canRobPlayer(HexLocation location, int victimIndex);", "public boolean canSurf()\n\t{\n\t\treturn getTrainingLevel() >= 25;\n\t}", "boolean canFall();", "public boolean topPlayerWon() {\n return winner == 2;\n }", "public static boolean isSomethingToAttackDefined() {\n\t\treturn _attackTargetUnit != null && !_attackTargetUnit.getType().isOnGeyser();\n\t}", "public boolean isOnGround() {\n return this.sim_pos.getY() <= 2;\n }", "public static boolean monsterDeathCheck(){\n if (currentMonster.currentHp <= 0){\n return true;\n }\n return false;\n }", "public boolean isHero() {\n\t\treturn hero;\n\t}", "public boolean needPlayer() {\n\t\treturn false;\n\t}", "public boolean isSpawn()\n\t{\n\t\treturn block == Block.FRUIT_SPAWN || block == Block.GHOST_SPAWN || block == Block.PAC_SPAWN;\n\t}", "boolean hasPlayerBag();", "public boolean isBear() {\n return false;\n }", "public boolean getCanSpawnHere()\n {\n return this.isValidLightLevel() && super.getCanSpawnHere();\n }", "public boolean isByeMatch()\r\n\t{\r\n\t\treturn isByeMatch;\r\n\t}", "public boolean isDeath() {\n return death;\n }", "public boolean isAiTurn() {\n return whosTurn() == aiPlayer;\n }", "public boolean isHeads() {\n return (face == 0);\n }", "boolean hasDame();", "private boolean shouldStopBeingCombatEngineer() {\r\n\t\tdouble machineUnitsCount = this.getNumberOfMachineUnits();\r\n\t\tdouble combatEngineers = this.informationStorage.getWorkerConfig().getTotalCombatEngineerCount();\r\n\r\n\t\treturn combatEngineers / machineUnitsCount >= this.combatEngineerTriggerPercentageCancel;\r\n\t}", "public boolean timeUp(){\n return timeAlive == pok.getSpawnTime(); \n }", "public boolean isGoal() {\n return (man == 0);\n }", "public boolean isWon() {\r\n\t\tif (winner(CROSS) || winner(NOUGHT))\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "public void isStillInCombat() {\n isInCombat = enemiesInCombat.size() > 0;\n }", "public boolean isBot() {\n \t\treturn (type == PLAYER_BOT);\n \t}", "public boolean isEnchanted() {\n return enchanted;\n }", "@Override\n public boolean activate() {\n return Monsters.flameNpc() == null;\n }", "public boolean isShootUp() {\n return shootUp;\n }", "public boolean gameOver(){\n\t\treturn this.lives < 1;\n\t}", "public boolean isAlive() {\n return health > 0;\n }", "boolean isGameOver() {\n return getMenu() instanceof ch;\n }", "public boolean canMove ()\n {\n return ((ActiveAdvancer)_advancer).canMove();\n }", "public boolean isTurned(){\n\treturn IS_TURNED;\n }", "private boolean checkNearbyVillagers() {\n\t\tIterator<Integer> it = sprites.keySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tSprite as = sprites.get(it.next());\n\t\t\tif (as instanceof Villager) {\n\t\t\t\tVillager v = (Villager) as;\n\t\t\t\tif (v.checkTalkable(player.pos, player.direction)) {\n\t\t\t\t\treturn executeTalkableVillager(v);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean shouldTrack( ScannedRobotEvent e )\r\n {\n return ( enemy.none() || e.getDistance() < enemy.getDistance() - 70\r\n || e.getName().equals( enemy.getName() ) );\r\n }", "public boolean isAttackState() {\n return States.attack.contains(this.state);\n }", "public boolean isWin_CommanderVimes(){\r\n // player got LordSelachii card\r\n Player playerHoldCard = null;\r\n for (Player player : discWorld.getPlayer_HASH().values()) {\r\n if (player.getPersonalityCardID() == 7) {\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }\r\n \r\n if(playerHoldCard != null){\r\n if(discWorld.getShuffled_PlayerCard().size() == 0){\r\n return true;\r\n }\r\n } \r\n \r\n return false;\r\n }", "public boolean isAlive(){\r\n\t\tif(dead==true){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public boolean continueGame(){\n for (Player p : super.getPlayers()) {\n // check if p is dead\n if (p.isDead()) {\n return false;\n }\n }\n return true;\n }", "public boolean isEndGameSpectator() {\n\t\treturn endGameSpectator;\n\t}", "@Override\n public boolean isAlive() {\n return health > 0f;\n }" ]
[ "0.8081331", "0.65634704", "0.6407118", "0.62434536", "0.62429446", "0.6226715", "0.62248117", "0.6179186", "0.61545", "0.6152559", "0.61384255", "0.6135872", "0.613109", "0.6130894", "0.6097331", "0.6085326", "0.60488164", "0.6038526", "0.6032233", "0.6014486", "0.6004941", "0.59976435", "0.5987615", "0.5964991", "0.59577644", "0.59512323", "0.59454525", "0.5938648", "0.59345454", "0.59338915", "0.59329057", "0.5917076", "0.59082717", "0.5899418", "0.5887738", "0.5877184", "0.5875008", "0.587205", "0.5854185", "0.5830341", "0.58276653", "0.5825914", "0.5819648", "0.58168167", "0.5810057", "0.580966", "0.5807573", "0.579826", "0.57934725", "0.57896453", "0.5786969", "0.5783767", "0.578099", "0.57808876", "0.5775249", "0.5774561", "0.57708204", "0.576842", "0.5766949", "0.5763032", "0.57629395", "0.5761302", "0.5759739", "0.5756114", "0.57549906", "0.57534313", "0.57522345", "0.5745896", "0.57352376", "0.57313675", "0.5721495", "0.5709976", "0.5705435", "0.57050973", "0.57024175", "0.5685992", "0.56811273", "0.5674226", "0.56728876", "0.5664181", "0.56566834", "0.56508374", "0.56503904", "0.5649778", "0.5646398", "0.5642995", "0.5641986", "0.56417346", "0.5635576", "0.56355655", "0.56324065", "0.56307006", "0.56291115", "0.56271327", "0.56253195", "0.5614624", "0.5609536", "0.56042135", "0.5603964", "0.5602266" ]
0.8248876
0
Returns true if we can afford given amount of minerals.
public static boolean hasMinerals(int mineralsToAfford) { return getMinerals() >= mineralsToAfford; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean increaseMinions() {\r\n\t\tif (this.minions < TOTAL_MINIONS) {\r\n\t\t\tthis.minions = this.minions + 1;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static boolean canAfford(int minerals, int gas) {\n return hasMinerals(minerals) && hasGas(gas);\n }", "public boolean isFullySupplied()\n {\n boolean isFull = !model.needsFuel() || (model.maxFuel == fuel);\n isFull &= (model.maxAmmo == ammo);\n return isFull;\n }", "public boolean hasBust()\n {\n return getSumOfCards(false) > 21;\n }", "public boolean couldBeProfitable(){\n return this.priceBought < this.maximumMachineProfit;\n }", "private boolean IsBust(Player player) {\n if (CalcHandSum(player, player.getHand()) > 21) {\n return true;\n } else {\n return false;\n }\n }", "private boolean tryPay() {\n return new Random().nextInt(100) + 1 <= 50;\n }", "private boolean checkGreedyWinRate() {\r\n return myTotal.get(0) > enTotal.get(0)+2 && (myself.health > 50 || myself.health > opponent.health);\r\n }", "private boolean caughtTwenty(){\n\t\treturn (theTrainer.getPokedex().size() >= 20);\n\t}", "boolean hasBonusMoney();", "public boolean hasBust() {\n\t\treturn this.hand.countValue().first() > 21;\n\t}", "public boolean hit() {\r\n add(deck.deal());\r\n return getHandValue() <= 21;\r\n }", "private boolean isEligibleForRealMin() {\n return eligibleForRealMin;\n }", "public boolean checkIfPlayerHoldsExplosive () { return noOfExplosives > 0; }", "public boolean canBuy(@NotNull AmmoAmountUncapped cost){\n return cost.canBeBought(this);\n }", "private boolean checkGreedyEnergy() {\r\n return myTotal.get(2) < 10 || (myTotal.get(2) < 13 && myTotal.get(2) <= enTotal.get(2));\r\n }", "private boolean canMageHarrasing(Creature m) {\n return (heroC.getX() - m.getX()) * (heroC.getX() - m.getX()) == (heroC.getY() - m.getY()) * (heroC.getY() - m.getY());\n }", "@Override\r\n\tpublic int isMinimalCostToReach17Plus()\r\n\t{\r\n\t\treturn 1;\r\n\t}", "public boolean isApplicable(DevelopmentCard card) {\n\t\treturn (this.familyMember.getActionValue()\n\t\t\t\t+ this.getPlayer().getBonuses().getActivationVariation(card.getCardType())\n\t\t\t\t+ paidServants >= card.getActivationCost());\n\t}", "public static boolean isBusted(Player player) {\r\n if(total(player).min() > 21 && total(player).min() != 32) {\r\n return true;\r\n }\r\n return false;\r\n }", "static boolean getMauled(){\n\t\t\tif (Person.player.inventory.contains(Item.repellent)) //if you have the goose repellent...\n\t\t\t\treturn (MainFile.getRandomNumber(240) == 12); //drastically lowers your chance of being mauled.\n\t\t\treturn (MainFile.getRandomNumber(20) == 12);//generates a random number for if you don't have it, and if it's 12 you get mauled\n\t\t}", "private static boolean hasFunds(double cost)\n {\n if (Clock.getRoundNum() < 200) { //TODO edit this out if necessary\n return rc.getTeamOre() > cost;\n } else {\n return rc.getTeamOre() > cost*2;\n }\n }", "private boolean canIBuyLevels(int levels){\n return (this.level + levels < 10);\n }", "boolean monkeyBusiness(Monkey[] monkeys) {\n boolean allSmiles;\n int smiles = 0;\n for(Monkey monkey: monkeys) {\n if(monkey.smile) {\n smiles++;\n }\n }\n allSmiles = smiles >= (double) monkeys.length / 2;\n return allSmiles;\n }", "boolean isNilMultipleBetMinimum();", "public boolean isBusted() {\n\t\tif (hand.checkHandValue() > 21) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean checkNaturals() {\n return getSize() == 2 && handValue() == 21;\n }", "boolean isSetMultipleBetMinimum();", "public synchronized boolean HaveWon() {\n if (maxScore <= score) {\n return true;\n }\n return false;\n }", "public boolean canITake(final double pWeight){\n return (pWeight+this.aWeight <= this.aStrong) ;\n }", "@Override\n public boolean check(RealPlayer realPlayer) {\n for (Map.Entry<Resource, Integer> entry : productionPowerInput.entrySet()) {\n if (entry.getValue() > realPlayer.getPersonalBoard().getSpecificResourceCount(entry.getKey().getResourceType()))\n return false;\n }\n return true;\n }", "public boolean canSpawnMore() {\n for(int e: enemiesLeft) {\n if(e > 0) {\n return true;\n }\n }\n\n return false;\n }", "public boolean canCredit(double amount);", "public boolean canProtectPieces() {\r\n\t\treturn (cityCards.stream().anyMatch(c -> (c.isSmallGods() && !c.isDisabled())\r\n\t\t\t\t&& money >= PROTECTION_COST)); \r\n\t}", "public boolean canHit() {\n\t\treturn this.hand.countValue().first() < 17;\n\t}", "public boolean zombiesNearbyExceedCap(Player player) {\n int zombies = 0;\n double dist = plugin.CONFIG.SPAWNING_RADIUS_MAX / 2;\n for (Entity ent : player.getNearbyEntities(dist, dist, dist)) {\n if (ent.getType().equals(EntityType.ZOMBIE)) zombies++;\n }\n return zombies >= plugin.CONFIG.SPAWNING_NEARBY_CAP;\n }", "private boolean hasEatenPowerUp() {\r\n if (snake[HEAD].row == powerUp.row && \r\n snake[HEAD].column == powerUp.column) { \r\n growSnake();\r\n newPowerUp();\r\n MainClass.totalPoints++;\r\n return true;\r\n }\r\n return false;\r\n }", "@Override\n public boolean validate() {\n int numFeathers = c.getInventory().count(FEATHERS);\n return (c.getSkills().getRealLevel(Skill.FISHING) >= 20 && !c.isCollectFeathers());\n }", "private boolean isApproved() {\r\n if (rnd.nextInt(10) < 5) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n\r\n }", "public Boolean checkBust() {\n\t\tif (getHandValue() > 21) {\n\t\t\tSystem.out.println(name + \" Busted!\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isSelectedPlayerHasEnoughMoney(Supplier <Integer> amountOfMoney) {\n return amountOfMoney.get() <= getCurrentPlayerFunds();\n }", "public static boolean checkBlackjack(ArrayList<Player> players) {\r\n for(Player player : players) {\r\n if(total(player).min() == 32) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "private boolean checkGreedyDefense() {\r\n return enTotal.get(2)+1 < myTotal.get(2) && enTotal.get(0)+1 < myTotal.get(0);\r\n }", "@Override\r\n\tpublic boolean IsSatisfiedBy(Member member) {\n\t\tboolean res=member.getLoans().stream().filter(Loan::hasNotBeenReturned).count()<3;\r\n\t\treturn res;\r\n\t}", "private static boolean checkIfNeedMore(int[] costToPayToCheck){\n boolean result = false;\n List<PowerUpLM> copyOfPowerUpLMList = copyOf(tmpAmmoInPowerUp);\n\n if(costToPayToCheck[GeneralInfo.RED_ROOM_ID] > 0){\n result = true;\n }\n else{\n tmpAmmoInAmmoBox[GeneralInfo.RED_ROOM_ID] = 0;\n for(PowerUpLM power: copyOfPowerUpLMList){\n if(power.getGainAmmoColor().equals(AmmoType.RED))\n tmpAmmoInPowerUp.remove(power);\n }\n }\n\n if(costToPayToCheck[GeneralInfo.BLUE_ROOM_ID] > 0){\n result = true;\n }\n else{\n tmpAmmoInAmmoBox[GeneralInfo.BLUE_ROOM_ID] = 0;\n for(PowerUpLM power: copyOfPowerUpLMList){\n if (power.getGainAmmoColor().equals(AmmoType.BLUE))\n tmpAmmoInPowerUp.remove(power);\n }\n }\n\n if(costToPayToCheck[GeneralInfo.YELLOW_ROOM_ID] > 0){\n result = true;\n }\n else{\n tmpAmmoInAmmoBox[GeneralInfo.YELLOW_ROOM_ID] = 0;\n for(PowerUpLM power: copyOfPowerUpLMList){\n if(power.getGainAmmoColor().equals(AmmoType.YELLOW))\n tmpAmmoInPowerUp.remove(power);\n }\n }\n\n return result;\n }", "boolean hasMinExperience();", "public boolean lowQuantity(){\r\n if(getToolQuantity() < 40)\r\n return true;\r\n return false;\r\n }", "public boolean isWin_DragonKingOfArms(){\r\n // player got LordSelachii card\r\n /*Player playerHoldCard = null;\r\n for (Player player : discWorld.getPlayer_HASH().values()) {\r\n if (player.getPersonalityCardID() == 5) {\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }*/\r\n int count = 0;\r\n for(TroubleMarker troubleMarker : discWorld.getTroubleMarker_HASH().values()){\r\n if(troubleMarker.getAreaNumber() != ConstantField.DEFAULT_PIECE_AREA_NUMBER){\r\n count++;\r\n }\r\n }\r\n \r\n if(count >= 8){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n \r\n }", "public boolean hit()\n\t{\n\t\taddCardToHand(new BlackJackCard());\n\t\treturn getHandValue() <= 21;\n\t}", "public static boolean weAreMuchStronger() {\n return ourArmyRelativeStrength() >= muchStrongerPercent();\n }", "private boolean checkGreedyIronCurtain() {\r\n return (myself.health < 30 || enTotal.get(0) >= 8 || opponent.isIronCurtainActive || this.myTotal.get(0) < this.enTotal.get(0));\r\n }", "private boolean isAtLeastOneMemberNotToFarAwayFromSpawnPoint(final LinkedList<Fightable> kis) {\n\t\t\n\t\tfor (Fightable ki : kis) {\n\t\t\tif (Points.distBetweenTwoPoints(ki.getCoord(), ki.getSpawnPoint()) \n\t\t\t\t\t< ki.getAttributeValue(Attribute.viewRange) * VIEWRANGE_FACTOR) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean setWorth(int newWorth)\n {\n boolean valid = false;\n if (newWorth > 0)\n {\n worth = newWorth;\n valid = true;\n }\n return valid;\n }", "public boolean meetsMinimumLength(){\n\n return alg.meetsMinimumLength(input.getText().toString());\n }", "@Override\n public boolean pee() {\n boolean rta = false;\n if (Dice.roll() - Spartan.getPeeBuff() > 3) {\n rta = true;\n }\n return rta;\n }", "public boolean affordCard() {\n \t\treturn (FREE_BUILD || getResources(Type.WOOL) >= 1\n \t\t\t\t&& getResources(Type.GRAIN) >= 1 && getResources(Type.ORE) >= 1);\n \t}", "@Override\n public boolean isPointRequirementMet(final int awardedPoints) {\n totalPoints += awardedPoints;\n\n requirementMet = totalPoints >= requiredPoints;\n\n log.info(\"Points awarded: '{}', New total points: '{}', Required total points: '{}', met: '{}'\",\n new Object[] {awardedPoints, totalPoints, requiredPoints, requirementMet});\n\n return requirementMet;\n }", "public boolean areAllAtLeast(int level) {\r\n for (int i = 0; i < SKILL_NAME.length; i++) {\r\n if (!ENABLED_SKILLS[i]) {\r\n continue;\r\n }\r\n // TODO CONSTRUCTION\r\n if (Objects.equals(SKILL_NAME[i], \"Construction\")) {\r\n continue;\r\n }\r\n if (getStaticLevel(i) < level) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public boolean isGranted(){\n\n// if (BallotBoxState.Granted.equals(getBallotBoxState()) || this.quorum.get() <= 0) {\n// setBallotBoxState(BallotBoxState.Granted);\n// return true;\n// }\n// return false;\n\n return this.quorum.get() <= 0;\n }", "private boolean shouldApplyGFTGun(double aimedEnemyDistance, int enemiesCount) {\n double totalIncreasePercentageDistance = enemiesCount * PERCENTAGE_INCREASING_DISTANCE_FOR_EACH_ADDITIONAL_ENEMY;\n boolean result = aimedEnemyDistance <= FURTHEST_DISTANCE_TO_FIRE_ONE_ON_ONE * (1 + totalIncreasePercentageDistance);\n return result;\n }", "boolean isSetSingleBetMinimum();", "boolean isNilSingleBetMinimum();", "private boolean shouldBecomeCombatEngineer() {\r\n\t\tdouble machineUnitsCount = this.getNumberOfMachineUnits();\r\n\t\tdouble combatEngineers = this.informationStorage.getWorkerConfig().getTotalCombatEngineerCount();\r\n\r\n\t\treturn combatEngineers / machineUnitsCount <= this.combatEngineerTriggerPercentageEnroll;\r\n\t}", "boolean expendEnergy(double amount) {\r\n if (amount <= energy) {\r\n energy -= amount;\r\n return true;\r\n }\r\n else\r\n return false;\r\n }", "boolean hasBonusExp();", "boolean hasBonusExp();", "boolean hasBonusExp();", "public boolean hasEnoughStudents() {\n if (this.students.size() >= minStudents) {\n return true;\n } else return false;\n }", "public boolean checkBonus() {\r\n\t\tif (bonus) {\r\n\t\t\tbonus = false;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean canTakeBandanaFrom(Unit other) {\n return getCalories() >= (2 * other.getCalories());\n }", "boolean canUseBonus(int order);", "public boolean isAuctionAtMaxCapacity() {\n\t\treturn getInventoryCount() == maxItemsSold;\t\n\t}", "public boolean canBuy(int shares, Stock s) {\n boolean can = false;\n if (money-(shares*s.getPrice())>0){//checks if user can afford it\n can = true;\n }\n return can;\n }", "@Override\n\tpublic boolean applyWorkPermit() {\n\t\tboolean isSuccess = InternationalStudent.passBySuccessRate((float) 0.6);\n\t\tif (isSuccess) {\n\t\t\tthis.hasWorkPermit = true;\n\t\t}\n\t\treturn isSuccess;\n\t}", "public static boolean canPack (int bigCount, int smallCount, int goal){\n\n int bigSmallCountSum = 0;\n\n //MAKE bigCount increments of 5\n if (bigCount == 1) {\n bigCount = 5;\n } else if (bigCount == 2) {\n bigCount = 10;\n } else if (bigCount == 3) {\n bigCount = 15;\n } else if (bigCount == 4) {\n bigCount = 20;\n } else if (bigCount == 5) {\n bigCount = 25;\n } else if (bigCount == 6) {\n bigCount = 30;\n }\n\n bigSmallCountSum = bigCount + smallCount;\n\n //INVALID\n if(bigCount < 0 || smallCount < 0 || goal < 0 || bigSmallCountSum < 0){\n return false;\n }\n\n //PRINT\n System.out.println(\"BigCount = \" + bigCount);\n\n System.out.println(\"SmallCount \" + smallCount);\n\n System.out.println(\"Total = \" + bigSmallCountSum);\n\n System.out.println(\"Goal = \" + goal);\n\n System.out.println(\"Remainder = \" + smallCount % goal);\n\n //CONDITION\n if(bigSmallCountSum == goal){\n return true;\n } else if(smallCount % goal > 0) {\n return true;\n }\n\n return false;\n }", "public boolean affordTown() {\n \t\treturn (FREE_BUILD || towns < MAX_TOWNS\n \t\t\t\t&& getResources(Type.BRICK) >= 1\n \t\t\t\t&& getResources(Type.LUMBER) >= 1\n \t\t\t\t&& getResources(Type.GRAIN) >= 1\n \t\t\t\t&& getResources(Type.WOOL) >= 1);\n \t}", "public boolean maxPeersReached(){\n\t\tif(peers.size()>=maxpeers){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean enoughSpaceToBuy(Player p, int numGoods) {\n // check size of cargoArr\n return numGoods <= p.getShip().numOpenSlots();\n }", "protected boolean canBeBought(@NotNull AmmoAmountUncapped funds){\n for (AmmoColor i: AmmoColor.values()){\n if (getAmounts().get(i)>funds.getAmounts().get(i)){\n return false;\n }\n }\n return true;\n }", "public boolean canDonate() {\n\t\treturn (dataSize() >= Math.ceil(degree / 2.0));\n\t}", "public boolean nearMaxRescue() {\n double water = this.waterLevel;\n double no = (this.configuration.getMaximalLimitLevel()\n - this.configuration.getMaximalNormalLevel()) / 2;\n if (water > this.configuration.getMaximalLimitLevel()\n || water > this.configuration.getMaximalLimitLevel() - no) {\n return true;\n } else if (water < this.configuration.getMinimalLimitLevel()\n || water < this.configuration.getMinimalLimitLevel() + no) {\n\n return true;\n }\n return false;\n }", "public static boolean hasGas(int gasToAfford) {\n return getGas() >= gasToAfford;\n }", "@Override\n public boolean isLegal(List<Integer> selectedCards)\n {\n //checks if the two cards selected added together equal 13\n if(selectedCards.size() == 2)\n {\n if(containsSum13(selectedCards))\n {\n \treturn true;\n }\n }\n \n //checks if the selected card is a K\n if(selectedCards.size() == 1)\n {\n \treturn containsK(selectedCards);\n }\n return false;\n \n }", "public boolean hitDealer() {\r\n while (getHandValue() <= 16) {\r\n hit();\r\n }\r\n return getHandValue() <= 21;\r\n }", "boolean isSetWagerMinimum();", "public static boolean canBuyGroupClaimer(Player player) {\n ClaimProfile profile = ProfileManager.getInstance().getProfile(player);\n\n int normalChunks = 0;\n int groupChunks = 0;\n\n for (ChunkData claimedChunk : profile.getClaimedChunks()) {\n if (claimedChunk.isGroupChunk()) {\n groupChunks++;\n } else {\n normalChunks++;\n }\n }\n\n return 2 * normalChunks > groupChunks;\n }", "public boolean checkWeight() {\r\n\t\tif ((_15mWeight + _1hWeight + _4hWeight + _12hWeight + _1dWeight + _2dWeight + _7dWeight) == 100) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t//make sure to handle this\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "boolean hasAmount();", "boolean hasAmount();", "public boolean canReceiveItem(Player character) {\n boolean canPick = true;\n Item item = character.items.get(character.getItemOwned2().getName());\n double totalWeight = items.getTotalWeight() + item.getWeight();\n if(totalWeight > maxWeight) {\n canPick = false;\n }\n return canPick; \n }", "public static boolean canAfford(UnitType unitType) {\n return hasMinerals(unitType.getMineralPrice()) && hasGas(unitType.getGasPrice());\n }", "public final boolean canUse(){\n\t\tmaintain();\n\t\t//check if grown if not try to grow\n\t\tif(grown){\t\n\t\t\tif(host.getStrength()>USE_COST){\n\t\t\t\thost.expend(USE_COST);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thost.expend(host.getStrength());\n\t\t\t}\n\t\t}\n\t\telse{\t\t\t\n\t\t\tcanGrow(host, this);\n\t\t}\t\n\t\treturn false;\n\t}", "private boolean isSelectedArmyForceBigEnough() {\n return selectedArmyForce.getTotalPower() >= selectedTerritoryByPlayer.getArmyThreshold();\n }", "public boolean affordRoad() {\n \t\treturn (FREE_BUILD || roads.size() < MAX_ROADS\n \t\t\t\t&& getResources(Type.BRICK) >= 1\n \t\t\t\t&& getResources(Type.LUMBER) >= 1);\n \t}", "public boolean canCarry(Item item) {\n\t\tif (rocketWeight + item.getWeight() <= maxWeight) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean shouldHit() {\r\n\t\tif(getHandVal() < 17) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false; \r\n\t}", "public Boolean invested() {\r\n\t\tif(allocated() >= getAmount()) {\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean hasPower(){\n \thasPowerUp=false;\n \tRandom rand = new Random();\n \tint num = rand.nextInt(6);//one in six chance of getting power up\n \tif(num==0){\n \t\thasPowerUp=true;\n \t}\n \treturn hasPowerUp;\n }", "public boolean isBust() {\n\t\tif(handValue() > 21) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean finalMilestoneAccomplished()\n {\n if( (firstMilestoneAccomplished()) &&\n (secondMilestoneAccomplished()) &&\n (thirdMilestoneAccomplished()) &&\n (beliefs.puzzle[2][1] == 10) &&\n (beliefs.puzzle[2][2] == 11) &&\n (beliefs.puzzle[2][3] == 12) &&\n (beliefs.puzzle[3][1] == 14) &&\n (beliefs.puzzle[3][2] == 15)\n\n )\n return true;\n else\n return false;\n }" ]
[ "0.647429", "0.634345", "0.6317827", "0.6120791", "0.61132556", "0.6091154", "0.60383797", "0.60355127", "0.60268795", "0.6015661", "0.6010231", "0.5967878", "0.59581065", "0.5947052", "0.5928837", "0.5921253", "0.59141195", "0.59065706", "0.5901816", "0.590159", "0.5900951", "0.5872669", "0.58699334", "0.5837834", "0.58307725", "0.5806026", "0.57980746", "0.5795162", "0.57926583", "0.5786674", "0.5784319", "0.57809633", "0.5779038", "0.5762125", "0.57620835", "0.5760148", "0.57566315", "0.57462513", "0.57438636", "0.57372683", "0.5736736", "0.5728", "0.5726547", "0.5721924", "0.5715158", "0.5714462", "0.57144165", "0.57098293", "0.57064205", "0.5688786", "0.5686635", "0.5684073", "0.5675696", "0.56740195", "0.56700134", "0.56653744", "0.5663237", "0.5662785", "0.56615716", "0.5650971", "0.5642704", "0.5637244", "0.56357217", "0.56354505", "0.563213", "0.563213", "0.563213", "0.5614752", "0.5613846", "0.5603748", "0.5601268", "0.5599927", "0.55968654", "0.55894506", "0.5587528", "0.557344", "0.5570467", "0.5570433", "0.55686855", "0.5555038", "0.5549798", "0.55413896", "0.55355805", "0.5533015", "0.5530293", "0.55249", "0.5522683", "0.55223984", "0.55223984", "0.5521578", "0.55184543", "0.5514041", "0.5512517", "0.5493284", "0.5486828", "0.5486654", "0.54690945", "0.54633456", "0.54630446", "0.54576445" ]
0.772548
0
Returns true if we can afford given amount of gas.
public static boolean hasGas(int gasToAfford) { return getGas() >= gasToAfford; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canCredit(double amount);", "public boolean canBuy(@NotNull AmmoAmountUncapped cost){\n return cost.canBeBought(this);\n }", "public static boolean canAfford(int minerals, int gas) {\n return hasMinerals(minerals) && hasGas(gas);\n }", "public boolean canTakeCharge();", "private boolean tryPay() {\n return new Random().nextInt(100) + 1 <= 50;\n }", "boolean expendEnergy(double amount) {\r\n if (amount <= energy) {\r\n energy -= amount;\r\n return true;\r\n }\r\n else\r\n return false;\r\n }", "public boolean hasBust()\n {\n return getSumOfCards(false) > 21;\n }", "boolean canCharge(ItemStack stack);", "boolean check(double amount) {\n\t\treturn (balance >= amount);\n\t}", "boolean hasAmount();", "boolean hasAmount();", "private boolean canBuy(BuildingType x) {\r\n return gameDetails.buildingsStats.get(x).price <= myself.energy;\r\n }", "private static boolean hasFunds(double cost)\n {\n if (Clock.getRoundNum() < 200) { //TODO edit this out if necessary\n return rc.getTeamOre() > cost;\n } else {\n return rc.getTeamOre() > cost*2;\n }\n }", "public boolean isValidTransfer(double amount) {\n boolean amt = amount >= 0;\n boolean bal = false;\n if (amount <= this.balance + 100 && this.balance > 0) {\n bal = true;\n }\n return amt && bal && !isFreeze();\n }", "boolean hasAllowedCredit();", "boolean canCharge(ItemStack me);", "boolean canBuy( final Item item )\n {\n return !ship.contains( item ) && item.getPrice() <= credits;\n }", "public boolean payGold(int amount) {\n if (gold < amount) { return false; }\n gold = gold - amount;\n return true;\n }", "@Override\n public boolean canCharge() {\n return super.canCharge() && !(game.getOptions().booleanOption(\"no_clan_physical\") && isClan());\n }", "public boolean canBuy(int shares, Stock s) {\n boolean can = false;\n if (money-(shares*s.getPrice())>0){//checks if user can afford it\n can = true;\n }\n return can;\n }", "boolean hasMoney();", "public boolean isApplicable(DevelopmentCard card) {\n\t\treturn (this.familyMember.getActionValue()\n\t\t\t\t+ this.getPlayer().getBonuses().getActivationVariation(card.getCardType())\n\t\t\t\t+ paidServants >= card.getActivationCost());\n\t}", "public final boolean canUse(){\n\t\tmaintain();\n\t\t//check if grown if not try to grow\n\t\tif(grown){\t\n\t\t\tif(host.getStrength()>USE_COST){\n\t\t\t\thost.expend(USE_COST);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thost.expend(host.getStrength());\n\t\t\t}\n\t\t}\n\t\telse{\t\t\t\n\t\t\tcanGrow(host, this);\n\t\t}\t\n\t\treturn false;\n\t}", "public boolean canProtectPieces() {\r\n\t\treturn (cityCards.stream().anyMatch(c -> (c.isSmallGods() && !c.isDisabled())\r\n\t\t\t\t&& money >= PROTECTION_COST)); \r\n\t}", "public static boolean canAfford(UpgradeType upgrade) {\n return hasMinerals(upgrade.getMineralPriceBase()) && hasGas(upgrade.getGasPriceBase());\n }", "private boolean IsBust(Player player) {\n if (CalcHandSum(player, player.getHand()) > 21) {\n return true;\n } else {\n return false;\n }\n }", "boolean hasBonusMoney();", "boolean CanBuySettlement();", "public boolean hit() {\r\n add(deck.deal());\r\n return getHandValue() <= 21;\r\n }", "public static boolean canAfford(UnitType unitType) {\n return hasMinerals(unitType.getMineralPrice()) && hasGas(unitType.getGasPrice());\n }", "public boolean canITake(final double pWeight){\n return (pWeight+this.aWeight <= this.aStrong) ;\n }", "private boolean CheckCostToBuildOrUpgrade(double cost)\r\n {\r\n return cost <= this.bitcoins;\r\n }", "public boolean hasBust() {\n\t\treturn this.hand.countValue().first() > 21;\n\t}", "private boolean isValidTransaction(double remainingCreditLimit, double transactionAmount){\n return transactionAmount <= remainingCreditLimit;\n }", "public boolean checkIfEnough(Account account, float amount) {\n float remaining = account.getBalance() - amount;\n if (remaining >= 0) {\n return true;\n }\n return false;\n }", "private boolean checkGreedyEnergy() {\r\n return myTotal.get(2) < 10 || (myTotal.get(2) < 13 && myTotal.get(2) <= enTotal.get(2));\r\n }", "public Boolean checkBust() {\n\t\tif (getHandValue() > 21) {\n\t\t\tSystem.out.println(name + \" Busted!\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean isAutoRedeem();", "public boolean isBurning()\n {\n return this.fuel > 0 && this.canSmelt();\n }", "public boolean couldBeProfitable(){\n return this.priceBought < this.maximumMachineProfit;\n }", "public void gas(double amount){\n if(acceptedValueRange(amount)){\n incrementSpeed(Math.abs(amount));\n }\n }", "private boolean checkCost(int owner, ItemType item) {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public void gas(double amount){\n if (amount >= 0.0 && amount <= 1.0 && !isLoaded) {\n incrementSpeed(amount);\n }\n }", "boolean hasGemReward();", "boolean hasMoneyValue();", "boolean hasMoneyValue();", "public static final void canGrow(Creature host, Organ g){\n\t\tif(host.getStrength()>g.CREATION_COST){\n\t\t\thost.expend(g.CREATION_COST);\n\t\t\tgrown = true;\n\t\t}\n\t}", "public Boolean invested() {\r\n\t\tif(allocated() >= getAmount()) {\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean isBusted() {\n\t\tif (hand.checkHandValue() > 21) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void lastChanceGas()\n {\n System.out.print( \"Tank capacity: \" );\n int capacity = scan.nextInt();\n System.out.print( \"Gage reading: \" );\n int gage = scan.nextInt();\n System.out.print( \"Miles per gallon: \" );\n int mpg = scan.nextInt();\n double gasLeft = capacity * ( gage * 0.01 );\n double milesDriveable = gasLeft * mpg;\n if ( milesDriveable >= 200 )\n {\n System.out.println( \"Safe to Proceed!\" );\n }\n else\n {\n System.out.println( \"Get Gas!\" );\n }\n\n }", "private boolean canMageHarrasing(Creature m) {\n return (heroC.getX() - m.getX()) * (heroC.getX() - m.getX()) == (heroC.getY() - m.getY()) * (heroC.getY() - m.getY());\n }", "boolean hasTransactionAmountMicros();", "public boolean isBust() {\n\t\tif(handValue() > 21) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean affordCard() {\n \t\treturn (FREE_BUILD || getResources(Type.WOOL) >= 1\n \t\t\t\t&& getResources(Type.GRAIN) >= 1 && getResources(Type.ORE) >= 1);\n \t}", "private boolean checkGreedyIronCurtain() {\r\n return (myself.health < 30 || enTotal.get(0) >= 8 || opponent.isIronCurtainActive || this.myTotal.get(0) < this.enTotal.get(0));\r\n }", "public boolean checkIfPlayerHoldsExplosive () { return noOfExplosives > 0; }", "protected boolean canBeBought(@NotNull AmmoAmountUncapped funds){\n for (AmmoColor i: AmmoColor.values()){\n if (getAmounts().get(i)>funds.getAmounts().get(i)){\n return false;\n }\n }\n return true;\n }", "public Boolean isTransmissionEffective() { return random.nextDouble() < transmissionProb; }", "public boolean canDonate() {\n\t\treturn (dataSize() >= Math.ceil(degree / 2.0));\n\t}", "private static boolean checkIfNeedMore(int[] costToPayToCheck){\n boolean result = false;\n List<PowerUpLM> copyOfPowerUpLMList = copyOf(tmpAmmoInPowerUp);\n\n if(costToPayToCheck[GeneralInfo.RED_ROOM_ID] > 0){\n result = true;\n }\n else{\n tmpAmmoInAmmoBox[GeneralInfo.RED_ROOM_ID] = 0;\n for(PowerUpLM power: copyOfPowerUpLMList){\n if(power.getGainAmmoColor().equals(AmmoType.RED))\n tmpAmmoInPowerUp.remove(power);\n }\n }\n\n if(costToPayToCheck[GeneralInfo.BLUE_ROOM_ID] > 0){\n result = true;\n }\n else{\n tmpAmmoInAmmoBox[GeneralInfo.BLUE_ROOM_ID] = 0;\n for(PowerUpLM power: copyOfPowerUpLMList){\n if (power.getGainAmmoColor().equals(AmmoType.BLUE))\n tmpAmmoInPowerUp.remove(power);\n }\n }\n\n if(costToPayToCheck[GeneralInfo.YELLOW_ROOM_ID] > 0){\n result = true;\n }\n else{\n tmpAmmoInAmmoBox[GeneralInfo.YELLOW_ROOM_ID] = 0;\n for(PowerUpLM power: copyOfPowerUpLMList){\n if(power.getGainAmmoColor().equals(AmmoType.YELLOW))\n tmpAmmoInPowerUp.remove(power);\n }\n }\n\n return result;\n }", "public static boolean weAreMuchStronger() {\n return ourArmyRelativeStrength() >= muchStrongerPercent();\n }", "@Override\n public boolean canMakeChange(Integer amount) {\n return amount < getRegisterTotal() && changeStrategy.canMakeChangeForAmount(getRegister(), amount);\n }", "private boolean hasCostAvoidance(MaintenanceRequestTask maintenanceRequestTask){\n\t\tboolean isGoodwill = false;\n\t\tboolean isCostAvoidance = false;\n\t\t\n\t\tisGoodwill = hasGoodwill(maintenanceRequestTask.getMaintenanceRequest());\t\n\t\t\n\t\tif(isGoodwill && !maintenanceRequestTask.getMaintenanceRequest().getMaintReqStatus().equals(MaintenanceRequestStatusEnum.MAINT_REQUEST_STATUS_COMPLETE.getCode()) \n\t\t\t\t&& MALUtilities.isEmpty(maintenanceRequestTask.getCostAvoidanceAmount())){\n\t\t\tisCostAvoidance = true;\n\t\t} else if (!(MALUtilities.isEmpty(maintenanceRequestTask.getCostAvoidanceAmount()) \n\t\t\t\t|| maintenanceRequestTask.getCostAvoidanceAmount().compareTo(new BigDecimal(0)) < 1)){\n\t\t\tisCostAvoidance = true;\n\t\t} else {\n\t\t\tisCostAvoidance = false;\n\t\t}\t\t\t\n\t\t \n\t\treturn isCostAvoidance;\n\t}", "public boolean hit()\n\t{\n\t\taddCardToHand(new BlackJackCard());\n\t\treturn getHandValue() <= 21;\n\t}", "private boolean canTakeBandanaFrom(Unit other) {\n return getCalories() >= (2 * other.getCalories());\n }", "public boolean couldWrap(Cargo other) {\n return getCarrierTarget() == other.getCarrierTarget()\n && getNewSpace() < 0 && other.getNewSpace() < 0;\n }", "public boolean isBuyable();", "public boolean canBeUsed() {\r\n\t\tLocalDate today = LocalDate.now();\r\n\r\n\t\tlong daysDifference = ChronoUnit.DAYS.between(today, expirationDate);\r\n\t\tif (daysDifference >= 0) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "boolean hasStrength();", "public boolean canSpendMoney(int cost) {\r\n\t\tif (money - cost >= 0) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean isSelectedArmyForceBigEnough() {\n return selectedArmyForce.getTotalPower() >= selectedTerritoryByPlayer.getArmyThreshold();\n }", "public boolean enoughSpaceToBuy(Player p, int numGoods) {\n // check size of cargoArr\n return numGoods <= p.getShip().numOpenSlots();\n }", "public boolean isGranted(){\n\n// if (BallotBoxState.Granted.equals(getBallotBoxState()) || this.quorum.get() <= 0) {\n// setBallotBoxState(BallotBoxState.Granted);\n// return true;\n// }\n// return false;\n\n return this.quorum.get() <= 0;\n }", "boolean hasBonusExp();", "boolean hasBonusExp();", "boolean hasBonusExp();", "public boolean iConomyCheck(Player player, String action) {\r\n\t\tif (Worker.getPayement() != null && this.getConfig().getBoolean(\"use-iConomy\", true)\r\n\t\t\t\t&& !this.hasPerm(player, \"tomb.free\", false)) {\r\n\t\t\tif (Worker.getPayement().hasAccount(player.getName())) {\r\n\t\t\t\tif (!Worker.getPayement().getAccount(player.getName())\r\n\t\t\t\t\t\t.hasEnough(this.getConfig().getDouble(action, 1.0))) {\r\n\t\t\t\t\tplayer.sendMessage(graveDigger + ChatColor.RED + \"You don't have \"\r\n\t\t\t\t\t\t\t+ Worker.getPayement().format(this.getConfig().getDouble(action, 1.0))\r\n\t\t\t\t\t\t\t+ \" to pay me.\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tWorker.getPayement().getAccount(player.getName())\r\n\t\t\t\t\t\t\t.subtract(this.getConfig().getDouble(action, 1.0));\r\n\t\t\t\t\tif (this.getConfig().getDouble(action, 1.0) != 0)\r\n\t\t\t\t\t\tplayer.sendMessage(graveDigger\r\n\t\t\t\t\t\t\t\t+ Worker.getPayement().format(\r\n\t\t\t\t\t\t\t\t\t\tthis.getConfig().getDouble(action, 1.0))\r\n\t\t\t\t\t\t\t\t+ ChatColor.DARK_GRAY + \" used to paying me.\");\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tplayer.sendMessage(graveDigger + ChatColor.RED\r\n\t\t\t\t\t\t+ \"You must have an account to paying me.\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isFullySupplied()\n {\n boolean isFull = !model.needsFuel() || (model.maxFuel == fuel);\n isFull &= (model.maxAmmo == ammo);\n return isFull;\n }", "public boolean isSelectedPlayerHasEnoughMoney(Supplier <Integer> amountOfMoney) {\n return amountOfMoney.get() <= getCurrentPlayerFunds();\n }", "public boolean isPaid(){\n return this.totalPaid>=this.getGrandTotal();\n }", "private boolean checkCost(int owner, ItemType item) {\n\t\tint[] cost = item.getCost();\n\t\tResourceManager rm = (ResourceManager) GameManager.get()\n\t\t\t\t.getManager(ResourceManager.class);\n\t\tif (rm.getRocks(owner) < cost[0]) {\n\t\t\treturn false;\n\t\t} else if (rm.getCrystal(owner) < cost[1]) {\n\t\t\treturn false;\n\t\t} else if (rm.getBiomass(owner) < cost[2]) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "protected boolean ensureBalance(BigInteger value)\n {\n String account = appContext.getSettingProvider().getSelectedAccount();\n\n BigInteger balance = appContext.getServiceProvider().getAccountService().getAccountBalance(account).get();\n if(balance == null)\n {\n appContext.getMessageService().showErrorMessage(\"Cannot reach the exchange service. Try again later.\");\n return false;\n }\n\n if(balance.compareTo(value) < 0)\n {\n appContext.getMessageService().showErrorMessage(\"You need at least \" + value.toString() + \" wei to do that!\");\n return false;\n }\n\n return true;\n }", "boolean isSatisfiableFor(AResourceType type, int amount) ;", "@Override\r\n\tprotected boolean puedeExtraer(double monto) {\n\t\treturn ((super.getSaldo() - monto) >= 0) ? true : false;\r\n\t}", "boolean hasDamage();", "boolean hasDamage();", "boolean hasDamage();", "boolean hasDamage();", "boolean hasDamage();", "boolean canCarry(Item specifiedItem);", "protected abstract boolean canHaveAsPrice(DukatAmount price);", "public boolean canHit() {\n\t\treturn this.hand.countValue().first() < 17;\n\t}", "public boolean isExpired(){\r\n float empty = 0.0f;\r\n return empty == getAmount();\r\n \r\n }", "public boolean isSomethingBuyable(GameClient game){\n for(Level l : Level.values()){\n for(ColorDevCard c : ColorDevCard.values()){\n try {\n NumberOfResources cost = dashBoard[l.ordinal()][c.ordinal()].getCost();\n cost = cost.safe_sub(game.getMe().getDiscounted());\n game.getMe().getDepots().getResources().sub(cost);\n return true;\n } catch (OutOfResourcesException | NullPointerException ignored) {}\n }\n }\n return false;\n }", "private void checkChargeTime() {\n\t\tif (elapsedTimeSeconds > chargeTimeP1) {\n\t\t\tplayerCharge.put(dolphinNodeOne, false);\n\t\t}\n\t}", "public boolean canCarry(Item item) {\n\t\tif (rocketWeight + item.getWeight() <= maxWeight) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean affordTown() {\n \t\treturn (FREE_BUILD || towns < MAX_TOWNS\n \t\t\t\t&& getResources(Type.BRICK) >= 1\n \t\t\t\t&& getResources(Type.LUMBER) >= 1\n \t\t\t\t&& getResources(Type.GRAIN) >= 1\n \t\t\t\t&& getResources(Type.WOOL) >= 1);\n \t}", "boolean hasPayment();", "boolean hasPayment();", "public int canCompleteCircuit(int[] gas, int[] cost) {\n for (int start = 0; start < gas.length; start++) {\n int[] f = new int[gas.length + 1];\n for (int i = 0; i <= gas.length; i++) {\n f[i] = Integer.MIN_VALUE;\n }\n\n f[0] = 0;\n for (int i = 1; i <= gas.length; i++) {\n f[i] = f[i - 1] + gas[(i - 1 + start) % gas.length] - cost[(i - 1 + start) % gas.length];\n if (f[i] < 0) {\n break;\n }\n }\n\n if (f[gas.length] >= 0) {\n return start;\n }\n }\n\n return -1;\n }" ]
[ "0.67432034", "0.66307694", "0.65911555", "0.65617794", "0.6448914", "0.63907", "0.6380732", "0.6349847", "0.63424987", "0.6302113", "0.6302113", "0.6292373", "0.6289785", "0.61839634", "0.61812806", "0.6177685", "0.61635375", "0.61634487", "0.6135553", "0.6102779", "0.60945266", "0.6077671", "0.605452", "0.60440063", "0.6017798", "0.6013834", "0.60109293", "0.6007388", "0.5994028", "0.59857076", "0.5950178", "0.59373665", "0.59317935", "0.59176517", "0.58951175", "0.58729863", "0.58728856", "0.5872807", "0.5844887", "0.5841966", "0.5816338", "0.5815528", "0.5807625", "0.580112", "0.5772401", "0.5772401", "0.57575554", "0.57473826", "0.57451624", "0.5731863", "0.572952", "0.5727395", "0.5724728", "0.5714352", "0.5713342", "0.57127863", "0.5702285", "0.5702116", "0.57011014", "0.5687594", "0.5685766", "0.56628644", "0.56580305", "0.56545836", "0.56511176", "0.5645083", "0.56393445", "0.5630744", "0.561523", "0.5611269", "0.5595584", "0.55921996", "0.5587005", "0.55830795", "0.55830795", "0.55830795", "0.55809903", "0.55688745", "0.5566484", "0.55587435", "0.5553317", "0.55438656", "0.5542342", "0.5538119", "0.55200034", "0.55200034", "0.55200034", "0.55200034", "0.55200034", "0.55167836", "0.55163664", "0.5515926", "0.5513089", "0.5512988", "0.5509703", "0.55004984", "0.54997504", "0.54977643", "0.54977643", "0.5492884" ]
0.7718315
0
Returns true if we can afford minerals and gas for given unit type.
public static boolean canAfford(UnitType unitType) { return hasMinerals(unitType.getMineralPrice()) && hasGas(unitType.getGasPrice()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canAdd(UnitType unitType) {\n return workPlaces > 0\n && unitType.hasSkill()\n && unitType.getSkill() >= minSkill\n && unitType.getSkill() <= maxSkill;\n }", "public static boolean hasBuildingsToProduce(UnitType unitType) {\n\n // Need to have every prerequisite building\n for (Integer unitTypeID : unitType.getRequiredUnits().keySet()) {\n UnitType requiredUnitType = UnitType.getByID(unitTypeID);\n \n// if (requiredUnitType.isLarva()) {\n// continue;\n// }\n// System.out.println(\"=req: \" + requiredUnitType);\n if (!requiredUnitType.isBuilding()) {\n// System.out.println(\" continue\");\n continue;\n }\n \n int requiredAmount = unitType.getRequiredUnits().get(unitTypeID);\n int weHaveAmount = requiredUnitType.isLarva() ? \n SelectUnits.ourLarva().count() : SelectUnits.our().ofType(requiredUnitType).count();\n// System.out.println(requiredUnitType + \" x\" + requiredAmount);\n// System.out.println(\" and we have: \" + weHaveAmount);\n if (weHaveAmount < requiredAmount) {\n return false;\n }\n }\n return true;\n }", "public static boolean hasTechAndBuildingsToProduce(UnitType unitType) {\n return hasTechToProduce(unitType) && hasBuildingsToProduce(unitType);\n }", "public static boolean canAfford(UpgradeType upgrade) {\n return hasMinerals(upgrade.getMineralPriceBase()) && hasGas(upgrade.getGasPriceBase());\n }", "boolean isSatisfiableFor(AResourceType type, int amount) ;", "public boolean canProvidePower(PowerTypes type);", "public boolean chargeTerritory(Unit u) //this method charges the territory that this tile is in for a unit bought\r\n {\n \tTerritory t = getTerritory();\r\n \tif(u instanceof Peasant)\r\n \t{\r\n \t\tif(t.money > 5)\r\n \t\t{\r\n \t\t\tt.money -= 5;\r\n \t\t\t\r\n// \t\t\tt.availbleUnits();\r\n \t\t\treturn true;\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\treturn false;\r\n \t\t}\r\n \t\t\r\n \t}\r\n \telse if(u instanceof Castle)\r\n \t{\r\n \t\tif(t.money > 10)\r\n \t\t{\r\n \t\t\tt.money -= 10;\r\n// \t\t\tt.availbleUnits();\r\n \t\t\treturn true;\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\treturn false;\r\n \t\t}\r\n \t}\r\n \telse\r\n \t{\r\n \t\tSystem.out.println(\"Something went wrong with charging for a unit, the unit was a \" + u );\r\n \t}\r\n \treturn false;\r\n \t\r\n \t\r\n }", "public boolean isSalvageable(Material type);", "public static boolean canAfford(int minerals, int gas) {\n return hasMinerals(minerals) && hasGas(gas);\n }", "public static boolean hasTechToProduce(UnitType unitType) {\n\n // Needs to have tech\n TechType techType = TechType.TechTypes.getTechType(unitType.getRequiredTechID());\n if (techType != null && techType != TechType.TechTypes.None && !AtlantisTech.isResearched(techType)) {\n return false;\n }\n\n return true;\n }", "public boolean needsAllocation(TypeReference type) {\n if (type == null) {\n throw new IllegalArgumentException(\"The argument type may not be null\");\n }\n\n if (seenTypes.containsKey(type)) {\n if (seenTypes.get(type).size() > 1) { // TODO INCORRECT may all be UNALLOCATED\n return false;\n } else {\n return (seenTypes.get(type).get(0).status == ValueStatus.UNALLOCATED);\n }\n } else {\n return true;\n }\n }", "public boolean isFullySupplied()\n {\n boolean isFull = !model.needsFuel() || (model.maxFuel == fuel);\n isFull &= (model.maxAmmo == ammo);\n return isFull;\n }", "public boolean hasMASCAndSuperCharger() {\n boolean hasMASC = false;\n boolean hasSuperCharger = false;\n for (Mounted m : getEquipment()) {\n if (!m.isInoperable() && (m.getType() instanceof MiscType) && m.getType().hasFlag(MiscType.F_MASC) && m.getType().hasSubType(MiscType.S_SUPERCHARGER)) {\n hasSuperCharger = true;\n }\n if (!m.isInoperable() && (m.getType() instanceof MiscType) && m.getType().hasFlag(MiscType.F_MASC) && !m.getType().hasSubType(MiscType.S_SUPERCHARGER)) {\n hasMASC = true;\n }\n }\n return hasMASC && hasSuperCharger;\n }", "private boolean canRent(SportEquipment unit, Map<SportEquipment, Integer> shop) {\n boolean ans = false;\n for (SportEquipment item : shop.keySet()) {\n if (item.equals(unit)) {\n if (shop.get(item) >= 1) {\n ans = true;\n }\n }\n }\n return ans;\n }", "public boolean canBuildEquipment(EquipmentType equipmentType) {\n for (AbstractGoods requiredGoods : equipmentType.getGoodsRequired()) {\n if (getGoodsCount(requiredGoods.getType()) < requiredGoods.getAmount()) {\n return false;\n }\n }\n return true;\n }", "private boolean canBuy(BuildingType x) {\r\n return gameDetails.buildingsStats.get(x).price <= myself.energy;\r\n }", "Unit getHasUnit();", "boolean getWary(Unit unit);", "boolean hasHasAlcoholSpecimanType();", "public boolean hasArmedMASCAndSuperCharger() {\n boolean hasMASC = false;\n boolean hasSuperCharger = false;\n for (Mounted m : getEquipment()) {\n if (!m.isDestroyed() && !m.isBreached() && (m.getType() instanceof MiscType) && m.getType().hasFlag(MiscType.F_MASC) && m.curMode().equals(\"Armed\") && m.getType().hasSubType(MiscType.S_SUPERCHARGER)) {\n hasSuperCharger = true;\n }\n if (!m.isDestroyed() && !m.isBreached() && (m.getType() instanceof MiscType) && m.getType().hasFlag(MiscType.F_MASC) && m.curMode().equals(\"Armed\") && !m.getType().hasSubType(MiscType.S_SUPERCHARGER)) {\n hasMASC = true;\n }\n }\n return hasMASC && hasSuperCharger;\n }", "public boolean isValidForType(Type t) {\n\t\tswitch (t) {\n\t\t\tcase BOOLEAN: if ((this==INCREMENT)||(this==DECREMENT)) return false;\n\t\t\tdefault: return true;\n\t\t}\n\t}", "boolean checkForShortCircuit(CaveGen g) {\n int i = g.placedMapUnits.size() - 1;\n MapUnit m = g.placedMapUnits.get(i);\n if (i >= Parser.scUnitTypes.length) return false;\n if (Parser.scUnitTypes[i] != -1) {\n String targetName = g.spawnMapUnitsSorted.get(Parser.scUnitTypes[i]).name;\n if (!targetName.equals(m.name))\n return true;\n } \n if (Parser.scRots[i] != -1) {\n if (m.rotation != Parser.scRots[i])\n return true;\n } \n if (Parser.scUnitIdsFrom[i] != -1 \n && Parser.scDoorsFrom[i] != -1\n && Parser.scDoorsTo[i] != -1) {\n Door d = m.doors.get(Parser.scDoorsTo[i]);\n if (d.adjacentDoor == null || d.adjacentDoor.mapUnit == null)\n return true;\n MapUnit o = d.adjacentDoor.mapUnit;\n if (g.placedMapUnits.indexOf(o) != Parser.scUnitIdsFrom[i])\n return true;\n if (o.doors.indexOf(d.adjacentDoor) != Parser.scDoorsFrom[i])\n return true;\n }\n else {\n if (Parser.scDoorsTo[i] != -1) {\n Door d = m.doors.get(Parser.scDoorsTo[i]);\n if (d.adjacentDoor == null || d.adjacentDoor.mapUnit == null)\n return true;\n }\n if (Parser.scUnitIdsFrom[i] != -1 \n && Parser.scDoorsFrom[i] != -1) {\n boolean isGood = false;\n for (Door d: m.doors) {\n if (d.adjacentDoor == null || d.adjacentDoor.mapUnit == null)\n continue;\n MapUnit o = d.adjacentDoor.mapUnit;\n if (g.placedMapUnits.indexOf(o) != Parser.scUnitIdsFrom[i])\n continue;\n if (o.doors.indexOf(d.adjacentDoor) != Parser.scDoorsFrom[i])\n continue;\n isGood = true;\n }\n if (!isGood) return true;\n }\n else if (Parser.scUnitIdsFrom[i] != -1) {\n boolean isGood = false;\n for (Door d: m.doors) {\n if (d.adjacentDoor == null || d.adjacentDoor.mapUnit == null)\n continue;\n MapUnit o = d.adjacentDoor.mapUnit;\n if (g.placedMapUnits.indexOf(o) != Parser.scUnitIdsFrom[i])\n continue;\n isGood = true;\n }\n if (!isGood) return true;\n }\n }\n return false;\n }", "@Override\n public boolean canCharge() {\n return super.canCharge() && !(game.getOptions().booleanOption(\"no_clan_physical\") && isClan());\n }", "private boolean isAvailable() {\n\t\tfor (int i = 0; i < lawsuitsAsClaimant.size(); i++) {\n\t\t\tif (lawsuitsAsClaimant.get(i).isActive()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Check lawsuits as Defendant\n\t\tfor (int i = 0; i < lawsuitsAsDefendant.size(); i++) {\n\t\t\tif (lawsuitsAsDefendant.get(i).isActive()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean canTakeBandanaFrom(Unit other) {\n return getCalories() >= (2 * other.getCalories());\n }", "public boolean canRelayPower(PowerTypes type);", "public boolean canBuild(Vertex vertex, int type) {\n \t\tif (type == Vertex.TOWN && towns >= MAX_TOWNS)\n \t\t\treturn false;\n \t\telse if (type == Vertex.CITY && cities >= MAX_CITIES)\n \t\t\treturn false;\n \n \t\treturn vertex.canBuild(this, type, board.isSetupPhase());\n \t}", "boolean hasReqardTypeThirty();", "boolean hasReqardTypeThree();", "public boolean canBuy(@NotNull AmmoAmountUncapped cost){\n return cost.canBeBought(this);\n }", "public boolean canTakeCharge();", "public boolean isUnit() {\n\t\tboolean unit = false;\n\t\tif(this.head == null){\n\t\t\treturn true;\n\t\t}\n\t\tif(Math.pow(this.head.factor, this.head.power) == 1.0){\n\t\t\tunit = true;\n\t\t}\n\t\treturn unit;\n\t}", "public static boolean hasGas(int gasToAfford) {\n return getGas() >= gasToAfford;\n }", "boolean testMag(Tester t) {\n return t.checkExpect(this.p6.magnitude(), 1) && t.checkExpect(this.p7.magnitude(), 1)\n && t.checkExpect(this.p2.magnitude(), 150);\n }", "boolean CanBuySettlement();", "boolean antecedentsContain(LayerType type) {\n if (this.antecedents.size() == 0)\n return false;\n\n boolean antecendentsContainType = false;\n\n for (LayerType t: this.antecedents)\n if (t == type)\n antecendentsContainType = true;\n\n return antecendentsContainType;\n }", "public boolean affordTown() {\n \t\treturn (FREE_BUILD || towns < MAX_TOWNS\n \t\t\t\t&& getResources(Type.BRICK) >= 1\n \t\t\t\t&& getResources(Type.LUMBER) >= 1\n \t\t\t\t&& getResources(Type.GRAIN) >= 1\n \t\t\t\t&& getResources(Type.WOOL) >= 1);\n \t}", "public boolean needUnits(){\n\t\tif(units.size() >= maxUnits){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "protected boolean canSustainPlant(IBlockState state){\n return state.getBlock() == getSoilBlock();\n }", "public boolean canProvideEquipment(EquipmentType equipmentType) {\n for (AbstractGoods goods : equipmentType.getGoodsRequired()) {\n int available = getGoodsCount(goods.getType());\n \n int breedingNumber = goods.getType().getBreedingNumber();\n if (breedingNumber != GoodsType.INFINITY) {\n available -= breedingNumber;\n }\n \n if (available < goods.getAmount()) return false;\n }\n return true;\n }", "public Boolean isSummable();", "public boolean canProtectPieces() {\r\n\t\treturn (cityCards.stream().anyMatch(c -> (c.isSmallGods() && !c.isDisabled())\r\n\t\t\t\t&& money >= PROTECTION_COST)); \r\n\t}", "@Override\n public boolean isChameleonShieldActive() {\n if (!isShutDown()) {\n for (Mounted m : getMisc()) {\n EquipmentType type = m.getType();\n if (type.hasFlag(MiscType.F_CHAMELEON_SHIELD) && m.curMode().equals(\"On\") && m.isReady()) {\n return true;\n }\n }\n }\n return false;\n }", "public boolean affordCard() {\n \t\treturn (FREE_BUILD || getResources(Type.WOOL) >= 1\n \t\t\t\t&& getResources(Type.GRAIN) >= 1 && getResources(Type.ORE) >= 1);\n \t}", "boolean isSetValueQuantity();", "public boolean canBurnStun();", "boolean hasStrength();", "public boolean canReproduce() {\r\n ArrayList<Cell> neighbours = getNeighbours(FIRSTLAYER);\r\n\r\n int numOfSameT = 0;\r\n int numOfEmpty = 0;\r\n int numOfFoodC = 0;\r\n\r\n for (Cell cell : neighbours) {\r\n if (isSameType(cell.getInhabit())) {\r\n numOfSameT++;\r\n } else if (cell.getInhabit() == null && isTerrainAccessiable(cell)) {\r\n numOfEmpty++;\r\n } else if (isEdible(cell.getInhabit())) {\r\n numOfFoodC++;\r\n }\r\n }\r\n\r\n return (numOfSameT >= numOfSameTypeNeighbourToReproduce() \r\n && numOfEmpty >= numOfEmptyToReproduce()\r\n && numOfFoodC >= numOfFoodCellToReproduce());\r\n }", "boolean isApplicableForAllAssetTypes();", "public boolean hasValidUnitNum() {\n return getTotalUnits() <= 22;\n }", "boolean hasGoodsType();", "public final boolean canUse(){\n\t\tmaintain();\n\t\t//check if grown if not try to grow\n\t\tif(grown){\t\n\t\t\tif(host.getStrength()>USE_COST){\n\t\t\t\thost.expend(USE_COST);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thost.expend(host.getStrength());\n\t\t\t}\n\t\t}\n\t\telse{\t\t\t\n\t\t\tcanGrow(host, this);\n\t\t}\t\n\t\treturn false;\n\t}", "public boolean hasChameleonShield() {\n for (Mounted mEquip : getMisc()) {\n MiscType mtype = (MiscType) mEquip.getType();\n if (mtype.hasFlag(MiscType.F_CHAMELEON_SHIELD)) {\n // The Mek has Chameleon Light Polarization Field\n return true;\n }\n }\n return false;\n }", "public boolean canDoBuySettlement(){\n\t\t if(resourceCardHand.canDoPayForSettlement() == false || playerPieces.hasAvailableSettlement() == false) {\n\t\t\t return false;\n\t\t }\n\t\t // If the player does not have a valid place to put a settlement on the map, we won't let the player buy one\n\t\t if(playerPieces.canPlaceASettlementOnTheMap() == false) {\n\t\t\t return false;\n\t\t }\n\t\t return true;\n\t }", "boolean containsRequirementFor(AResourceType type);", "private boolean isUsed(String couponType) { // 0 = not used , 1 = used\n\t\tif (1 == Integer.parseInt(couponType)) // used\n\t\t\treturn true;\n\t\treturn false;\n\t}", "private boolean canMageHarrasing(Creature m) {\n return (heroC.getX() - m.getX()) * (heroC.getX() - m.getX()) == (heroC.getY() - m.getY()) * (heroC.getY() - m.getY());\n }", "boolean getEntrench(Unit unit);", "public boolean canBePromotedTo(ItemType type) {\n return this.isTypeOf(type);\n }", "boolean hasBillingSetup();", "public boolean isValid() {\n return super.isValid()\n && getUnit().isPerson()\n && checkTileImprovementPlan(tileImprovementPlan)\n && (hasTools() || checkColonyForTools(getAIUnit(), colonyWithTools));\n }", "private boolean checkMultipleUnitEdit() {\r\n\t\tboolean flag=false;\r\n\t\tfor(UIUnitType model:uiUnitType.getUnitValueList()){\r\n\t\t\tif(model.isInputDisplayItem()){\r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "public final boolean isCompatibleWith (Unit unit) {\n\t\tif (((unit.mksa|this.mksa)&_abs) != 0) \t\t// Special dates\n\t\t\treturn((this.mksa^_abs) == unit.mksa) ;\n\t\treturn((mksa&(~(_log|_mag))) == (unit.mksa&(~(_log|_mag)))) ;\n\t}", "public boolean needsPhi(TypeReference type) {\n if (type == null) {\n throw new IllegalArgumentException(\"The argument type may not be null\");\n }\n\n boolean seenLive = false;\n\n if (seenTypes.containsKey(type)) {\n \n for (ManagedParameter param : seenTypes.get(type)) { // TODO: Check all these\n if ((param.status == ValueStatus.FREE)) { // TODO: What about scopes\n return true;\n }\n\n if (param.status == ValueStatus.ALLOCATED) {\n if (seenLive) {\n return true;\n } else {\n seenLive = true;\n }\n }\n }\n } else {\n throw new IllegalArgumentException(\"Type \" + type + \" has never been seen before!\");\n }\n\n throw new IllegalStateException(\"No suitable candidate has been found\"); // TODO WRONG text\n }", "public boolean isFull() {\n return numOfGoods == cargoSpace;\n }", "boolean hasReqardTypeFifteen();", "boolean hasManufacturer();", "public boolean isMaint() {\n for (Transmitter t : getTransmitters()) {\n if (t.getTxStatus() == TxStatus.MAINT) {\n return true;\n }\n }\n\n return false;\n }", "public boolean canTrade(Type type, int[] trade) {\n \t\tint value = 0;\n \t\tfor (int i = 0; i < Hexagon.TYPES.length; i++) {\n \t\t\tif (Hexagon.TYPES[i] == Type.DESERT)\n \t\t\t\tcontinue;\n \n \t\t\t// check for specific 2:1 trader\n \t\t\tif (hasTrader(Hexagon.TYPES[i])\n \t\t\t\t\t&& getResources(Hexagon.TYPES[i]) >= 2 && trade[i] >= 2)\n \t\t\t\treturn true;\n \n \t\t\t// deduct from number of resource cards needed\n \t\t\tint number = getResources(Hexagon.TYPES[i]);\n \t\t\tif (number >= trade[i])\n \t\t\t\tvalue += trade[i];\n \t\t}\n \n \t\treturn (value >= tradeValue);\n \t}", "private boolean hasOnlyStandardUnit() {\n for (int i = 0; i < _elements.length; i++) {\n Unit<?> u = _elements[i]._unit;\n if (!u.isSI())\n return false;\n }\n return true;\n }", "public boolean isApplicable(DevelopmentCard card) {\n\t\treturn (this.familyMember.getActionValue()\n\t\t\t\t+ this.getPlayer().getBonuses().getActivationVariation(card.getCardType())\n\t\t\t\t+ paidServants >= card.getActivationCost());\n\t}", "public boolean isProduced(){\n if(!step1.isEmpty()&&!step2.isEmpty()&&!step3.isEmpty()){\n return true;\n }else {\n return false;\n }\n }", "private boolean shouldBecomeCombatEngineer() {\r\n\t\tdouble machineUnitsCount = this.getNumberOfMachineUnits();\r\n\t\tdouble combatEngineers = this.informationStorage.getWorkerConfig().getTotalCombatEngineerCount();\r\n\r\n\t\treturn combatEngineers / machineUnitsCount <= this.combatEngineerTriggerPercentageEnroll;\r\n\t}", "public boolean hasMunicipality() {\n\t\tif (this.settlement == null && this.city == null) {\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}", "public abstract boolean isUsable();", "private boolean validaCompra() {\n\n List<Purchase> purchasesList = billingClient.queryPurchases(INAPP).getPurchasesList();\n if (purchasesList != null && !purchasesList.isEmpty()) {\n for (Purchase purchase : purchasesList) {\n if (purchase.getSku().equals(skuId)) {\n return true;\n }\n }\n }\n return false;\n\n }", "boolean hasTransactionAmountMicros();", "boolean hasQuantity();", "boolean hasReqardTypeTen();", "@Override\n\tpublic boolean shouldExecute() {\n\t\tif (!theEntity.isTamed())\n\t\t\treturn false;\n\t\telse if (theEntity.isInWater())\n\t\t\treturn false;\n\t\telse if (!theEntity.onGround)\n\t\t\treturn false;\n\t\telse {\n\t\t\tfinal EntityLivingBase var1 = theEntity.getOwner();\n\t\t\treturn var1 == null ? true\n\t\t\t\t\t: theEntity.getDistanceSqToEntity(var1) < 144.0D\n\t\t\t\t\t\t\t&& var1.getAITarget() != null ? false : isSitting;\n\t\t}\n\t}", "public boolean checkNaturals() {\n return getSize() == 2 && handValue() == 21;\n }", "protected boolean isApplicableType(Datatype type) {\n\t\treturn true;\n\t}", "boolean isFullHouse();", "public boolean areAllAtLeast(int level) {\r\n for (int i = 0; i < SKILL_NAME.length; i++) {\r\n if (!ENABLED_SKILLS[i]) {\r\n continue;\r\n }\r\n // TODO CONSTRUCTION\r\n if (Objects.equals(SKILL_NAME[i], \"Construction\")) {\r\n continue;\r\n }\r\n if (getStaticLevel(i) < level) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public boolean isIndustrial() {\n return getStructureType() == EquipmentType.T_STRUCTURE_INDUSTRIAL;\n }", "private boolean allMUsSet() {\n\t\tVector meaningUnits = Model.getIllocutionUnitRoots().getMeaningUnits();\n\t\tfor (int i = 0; i < meaningUnits.size(); i++) {\n\t\t\tMeaningUnit mu = (MeaningUnit) meaningUnits.get(i);\n\t\t\tVector sememeGroups = mu.getSememeGroups();\n\t\t\tif (sememeGroups.isEmpty()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean canDo (Player player, Type type, boolean isAdmin){\r\n\t\tif (isAdmin || isOwner(player.getName()))\r\n\t\t\treturn true;\r\n\t\t\r\n\t\tif (!isMember(player.getName()))\r\n\t\t\treturn false; \r\n\t\t\r\n\t\tswitch (type) {\r\n\t\t\tcase ADD:\r\n\t\t\tcase GET:\r\n\t\t\t\treturn true;\r\n\t\t\tdefault:\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean checkPlantCanHarvest() {\n\t\tint l = 0;//check Harvest\n\t\tfor(Plant p : getListofplant()){\n\t\t\tif(p.canHarvest()){\n\t\t\t\tl++;\n\t\t\t}\n\t\t}\n\t\tif(l == 0){\n\t\t\treturn false;\n\t\t}\n\t\telse return true;\n\t}", "@Override\n public boolean isValid() {\n return (27 - Inventory.getAll().length <= Inventory.find(\"Soft clay\").length)\n || (Inventory.find(\"Soft clay\").length < 1 || Inventory\n .find(\"Astral rune\").length < 1)\n && !Banking.isBankScreenOpen()\n && GlassBlower.antiban.canInteractObject();\n }", "boolean hasMainUtteranceDynamicGain();", "public boolean canUseWeaponEffect(FullEffect effect){\n List<Color> priceTmp;\n if(effect.getPrice() != null){\n priceTmp = new ArrayList<>(effect.getPrice());\n return controlPayment(priceTmp);\n }\n return true;\n }", "boolean canBuildBlock(Tile t);", "boolean hasIsPerformOf();", "public boolean contains(int type) {\n\t\tint n = check(type);\n\t\treturn n >= 64 ? (n1 & mask(n - 64)) != 0L : (n0 & mask(n)) != 0L;\n\t}", "public boolean hasIndustrialTSM() {\n for (Mounted m : getEquipment()) {\n if ((m.getType() instanceof MiscType) && m.getType().hasFlag(MiscType.F_INDUSTRIAL_TSM)) {\n return true;\n }\n }\n return false;\n }", "private boolean isStateFullyDetermined() {\n switch (hasSubstance) {\n case No:\n case Unknown:\n return false;\n case Yes:\n // if already established has substance, continue checking only until\n // reach threshold\n return (substanceMin <= 0) ? true : substanceCnt >= substanceMin;\n }\n throw new ShouldNotHappenException();\n }", "public boolean test(FluidVolume volume) {\n\t\treturn volume.test(getFluid()) && volume.hasAvailable(getAmount());\n\t}", "public boolean isBuyable();", "boolean isMake();", "private boolean isEligibleForRealMin() {\n return eligibleForRealMin;\n }" ]
[ "0.66027063", "0.6493202", "0.6307329", "0.6207871", "0.62065154", "0.6091603", "0.60858464", "0.60572124", "0.59660906", "0.58311635", "0.58191633", "0.5791439", "0.57655036", "0.5749138", "0.5741757", "0.57263446", "0.572153", "0.5707073", "0.5694382", "0.5684528", "0.56633216", "0.563071", "0.56255096", "0.55954146", "0.5586358", "0.5572292", "0.5542806", "0.5524638", "0.5508764", "0.5500752", "0.5471087", "0.5459889", "0.5449803", "0.5449555", "0.54449356", "0.54442894", "0.5441821", "0.5432457", "0.5427862", "0.5403853", "0.5400845", "0.5389393", "0.5379614", "0.53414875", "0.53403986", "0.53386277", "0.533509", "0.5330264", "0.5329414", "0.5328708", "0.5311112", "0.5310269", "0.5307918", "0.5286842", "0.527369", "0.52718943", "0.5262092", "0.52592486", "0.52589136", "0.52489835", "0.52389395", "0.5223886", "0.52216154", "0.52145416", "0.5212516", "0.52090687", "0.5208093", "0.51974106", "0.51966256", "0.51918536", "0.5189522", "0.51861393", "0.5182105", "0.51711667", "0.51581126", "0.5157344", "0.5155642", "0.51499784", "0.51498", "0.51434934", "0.5136645", "0.51361954", "0.513587", "0.5133657", "0.51297325", "0.51253456", "0.510491", "0.50987774", "0.50977933", "0.5096213", "0.50770414", "0.50756234", "0.5074412", "0.5068148", "0.5068092", "0.5067824", "0.5065904", "0.50657135", "0.50629336", "0.5061967" ]
0.8105448
0
Returns true if we can afford minerals and gas for given upgrade.
public static boolean canAfford(UpgradeType upgrade) { return hasMinerals(upgrade.getMineralPriceBase()) && hasGas(upgrade.getGasPriceBase()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean canAfford(int minerals, int gas) {\n return hasMinerals(minerals) && hasGas(gas);\n }", "private boolean CheckCostToBuildOrUpgrade(double cost)\r\n {\r\n return cost <= this.bitcoins;\r\n }", "public boolean isUpgrading() {\n this.readLock.lock();\n\n try {\n return !(upgradeStatus.isCompleted() &&\n cancelUpgradeStatus.isCompleted());\n } finally {\n this.readLock.unlock();\n }\n }", "public static boolean hasGas(int gasToAfford) {\n return getGas() >= gasToAfford;\n }", "public boolean isApplicable(DevelopmentCard card) {\n\t\treturn (this.familyMember.getActionValue()\n\t\t\t\t+ this.getPlayer().getBonuses().getActivationVariation(card.getCardType())\n\t\t\t\t+ paidServants >= card.getActivationCost());\n\t}", "public boolean isUpgrade( )\n {\n return _bUpgrade;\n }", "public boolean isAutomaticBuild() {\n return !needsGoodsToBuild() && getUpgradesFrom() == null;\n }", "boolean hasGemReward();", "public static boolean hasMinerals(int mineralsToAfford) {\n return getMinerals() >= mineralsToAfford;\n }", "public boolean canUpgrade(){\n\t\treturn level < 2;\n\t}", "public boolean affordCard() {\n \t\treturn (FREE_BUILD || getResources(Type.WOOL) >= 1\n \t\t\t\t&& getResources(Type.GRAIN) >= 1 && getResources(Type.ORE) >= 1);\n \t}", "public final boolean canUse(){\n\t\tmaintain();\n\t\t//check if grown if not try to grow\n\t\tif(grown){\t\n\t\t\tif(host.getStrength()>USE_COST){\n\t\t\t\thost.expend(USE_COST);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thost.expend(host.getStrength());\n\t\t\t}\n\t\t}\n\t\telse{\t\t\t\n\t\t\tcanGrow(host, this);\n\t\t}\t\n\t\treturn false;\n\t}", "public boolean canUpgrade(User user, Island island) {\r\n\t\tboolean can = true;\r\n\t\t\r\n\t\tif (this.islandUpgradeAddon.isLevelProvided() &&\r\n\t\t\tthis.islandUpgradeAddon.getIslandUpgradesManager().getIslandLevel(island) < this.upgradeValues.getIslandLevel()) {\r\n\t\t\t\r\n\t\t\tcan = false;\r\n\t\t}\r\n\t\t\r\n\t\tif (this.islandUpgradeAddon.isVaultProvided() &&\r\n\t\t\t!this.islandUpgradeAddon.getVaultHook().has(user, this.upgradeValues.getMoneyCost())) {\r\n\t\t\t\r\n\t\t\tcan = false;\r\n\t\t}\r\n\t\t\r\n\t\treturn can;\r\n\t}", "public boolean isFullySupplied()\n {\n boolean isFull = !model.needsFuel() || (model.maxFuel == fuel);\n isFull &= (model.maxAmmo == ammo);\n return isFull;\n }", "boolean isAutoRedeem();", "public boolean needsRepair() {\n if (id == 5509) {\n return false;\n }\n return inventory.contains(id + 1);\n }", "public boolean hasArmedMASCAndSuperCharger() {\n boolean hasMASC = false;\n boolean hasSuperCharger = false;\n for (Mounted m : getEquipment()) {\n if (!m.isDestroyed() && !m.isBreached() && (m.getType() instanceof MiscType) && m.getType().hasFlag(MiscType.F_MASC) && m.curMode().equals(\"Armed\") && m.getType().hasSubType(MiscType.S_SUPERCHARGER)) {\n hasSuperCharger = true;\n }\n if (!m.isDestroyed() && !m.isBreached() && (m.getType() instanceof MiscType) && m.getType().hasFlag(MiscType.F_MASC) && m.curMode().equals(\"Armed\") && !m.getType().hasSubType(MiscType.S_SUPERCHARGER)) {\n hasMASC = true;\n }\n }\n return hasMASC && hasSuperCharger;\n }", "boolean CanBuySettlement();", "public boolean canBuy(@NotNull AmmoAmountUncapped cost){\n return cost.canBeBought(this);\n }", "boolean hasStrength();", "public static boolean canAfford(UnitType unitType) {\n return hasMinerals(unitType.getMineralPrice()) && hasGas(unitType.getGasPrice());\n }", "public boolean upgrades(ApplicationVersion version) {\n return application.map(version::compareTo).orElse(0) < 0;\n }", "@Override\r\n\tpublic int isMinimalCostToReach17Plus()\r\n\t{\r\n\t\treturn 1;\r\n\t}", "public boolean upgradeBitcoinMiner(BitcoinMiner miner) throws NotEnoughBitcoinsException{\r\n try {\r\n this.removeBitcoins(miner.getCost());\r\n return miner.upgrade();\r\n } catch (NoUpgradeAllowedException ex) {\r\n Logger.getLogger(Player.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return false;\r\n }", "public boolean needsRepairing() {\n boolean returner = false;\n for (Pouch pouch : pouchesUsed) {\n returner = returner || pouch.needsRepair();\n }\n return returner;\n }", "public Boolean checkBust() {\n\t\tif (getHandValue() > 21) {\n\t\t\tSystem.out.println(name + \" Busted!\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "protected boolean upgradeCluster() throws Throwable {\n \n // need to ping hcdev from master before and after\n if (!pingFromMaster(hostname))\n return false;\n \n String minorVersion = null;\n String currentVersion = null;\n String s = null;\n Log.INFO(\"Getting Minor Version...\");\n runSystemCommand(MINOR_VERSION_COMMAND);\n while ((s = stdout.readLine()) != null) {\n minorVersion = s.trim();\n Log.INFO(s);\n }\n Log.INFO(\"Getting Major Version...\");\n runSystemCommand(\n PRE_VERSION_COMMAND + minorVersion + POST_VERSION_COMMAND);\n while ((s = stdout.readLine()) != null) {\n currentVersion = s.trim();\n Log.INFO(\"Current Version: \" + currentVersion);\n }\n String url =\n \"http://\" + UPGRADE_DOMAIN + \"/~hcbuild/repository/releases/1.1/\"\n + currentVersion + \"/AUTOBUILT/pkgdir/st5800_\"\n + currentVersion + \".iso\";\n Log.INFO(\"Validating URL...\");\n runSystemCommand(\"wget -O - -q \" + url + \" 2>&1 >> /dev/null\");\n while ((s = stdout.readLine()) != null)\n Log.INFO(s);\n\n if (currentVersion != null) {\n stdout = cli.runCommand(\n \t\t\"upgrade -c \" + masterCell + \" -F download \" + url);\n String line;\n while ((line = stdout.readLine()) != null) {\n if (line.contains(\"bytes successfully\")) {\n Log.INFO(\" ---> \" + line);\n return pingFromMaster(hostname);\n }\n }\n Log.ERROR(\"Problem with upgrade detected... failing test\");\n }\n return false;\n }", "private boolean arEngineAbilityCheck() {\n boolean isInstallArEngineApk = AREnginesApk.isAREngineApkReady(this);\n if (!isInstallArEngineApk && isRemindInstall) {\n Toast.makeText(this, \"Please agree to install.\", Toast.LENGTH_LONG).show();\n finish();\n }\n Log.d(TAG, \"Is Install AR Engine Apk: \" + isInstallArEngineApk);\n if (!isInstallArEngineApk) {\n startActivity(new Intent(this, ConnectAppMarketActivity.class));\n isRemindInstall = true;\n }\n return AREnginesApk.isAREngineApkReady(this);\n }", "private boolean canBuy(BuildingType x) {\r\n return gameDetails.buildingsStats.get(x).price <= myself.energy;\r\n }", "public boolean canBurnStun();", "public boolean hasMASCAndSuperCharger() {\n boolean hasMASC = false;\n boolean hasSuperCharger = false;\n for (Mounted m : getEquipment()) {\n if (!m.isInoperable() && (m.getType() instanceof MiscType) && m.getType().hasFlag(MiscType.F_MASC) && m.getType().hasSubType(MiscType.S_SUPERCHARGER)) {\n hasSuperCharger = true;\n }\n if (!m.isInoperable() && (m.getType() instanceof MiscType) && m.getType().hasFlag(MiscType.F_MASC) && !m.getType().hasSubType(MiscType.S_SUPERCHARGER)) {\n hasMASC = true;\n }\n }\n return hasMASC && hasSuperCharger;\n }", "Boolean isAllowingNewAuctions();", "private boolean isAvailable() {\n\t\tfor (int i = 0; i < lawsuitsAsClaimant.size(); i++) {\n\t\t\tif (lawsuitsAsClaimant.get(i).isActive()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Check lawsuits as Defendant\n\t\tfor (int i = 0; i < lawsuitsAsDefendant.size(); i++) {\n\t\t\tif (lawsuitsAsDefendant.get(i).isActive()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static boolean weAreMuchStronger() {\n return ourArmyRelativeStrength() >= muchStrongerPercent();\n }", "public boolean goldilocksCheck() {\n\t\treturn (waterConcentration > 0.25 && heat > 32);\r\n\t}", "private boolean shouldBecomeCombatEngineer() {\r\n\t\tdouble machineUnitsCount = this.getNumberOfMachineUnits();\r\n\t\tdouble combatEngineers = this.informationStorage.getWorkerConfig().getTotalCombatEngineerCount();\r\n\r\n\t\treturn combatEngineers / machineUnitsCount <= this.combatEngineerTriggerPercentageEnroll;\r\n\t}", "@Test\n public void testPermitUpgradeUberNew() {\n assertFalse(underTest.permitCmAndStackUpgrade(\"2.2.0\", \"3.2.0\"));\n\n assertFalse(underTest.permitExtensionUpgrade(\"2.2.0\", \"3.2.0\"));\n }", "public boolean hasPower(){\n \thasPowerUp=false;\n \tRandom rand = new Random();\n \tint num = rand.nextInt(6);//one in six chance of getting power up\n \tif(num==0){\n \t\thasPowerUp=true;\n \t}\n \treturn hasPowerUp;\n }", "boolean canBuy( final Item item )\n {\n return !ship.contains( item ) && item.getPrice() <= credits;\n }", "public boolean hasTurnPowerUp() {\n\n for (PowerUp i : powerUpList)\n if (i.isTurnPowerup())\n return true;\n\n return false;\n }", "@Override\n public boolean canCharge() {\n return super.canCharge() && !(game.getOptions().booleanOption(\"no_clan_physical\") && isClan());\n }", "boolean hasBillingSetup();", "private boolean canMageHarrasing(Creature m) {\n return (heroC.getX() - m.getX()) * (heroC.getX() - m.getX()) == (heroC.getY() - m.getY()) * (heroC.getY() - m.getY());\n }", "boolean hasArmor();", "public boolean isEarned(GeyserAdvancement advancement) {\n boolean earned = false;\n if (advancement.getRequirements().size() == 0) {\n // Minecraft handles this case, so we better as well\n return false;\n }\n Map<String, Long> progress = storedAdvancementProgress.get(advancement.getId());\n if (progress != null) {\n // Each advancement's requirement must be fulfilled\n // For example, [[zombie, blaze, skeleton]] means that one of those three categories must be achieved\n // But [[zombie], [blaze], [skeleton]] means that all three requirements must be completed\n for (List<String> requirements : advancement.getRequirements()) {\n boolean requirementsDone = false;\n for (String requirement : requirements) {\n Long obtained = progress.get(requirement);\n // -1 means that this particular component required for completing the advancement\n // has yet to be fulfilled\n if (obtained != null && !obtained.equals(-1L)) {\n requirementsDone = true;\n break;\n }\n }\n if (!requirementsDone) {\n return false;\n }\n }\n earned = true;\n }\n return earned;\n }", "boolean isDegraded();", "private boolean foundChavrousse(ArrayList<Gelt> m_gelts, Gelt m_gelt) {\n\t\tplay.Logger.info(\"Found Chavrousee Algorithm Started\");\n\t\tboolean isUpdate = false;\n\t\tfor (Gelt currGelt : m_gelts) {\n\t\t\tif (!isUpdate) {\n\t\t\t\tif ((currGelt.getDebterID() == m_gelt.getDebterID())\n\t\t\t\t\t\t&& (currGelt.getEntitledID() == m_gelt.getEntitledID())\n\t\t\t\t\t\t&& (currGelt.getGroupID() == m_gelt.getGroupID())) {\n\t\t\t\t\tcurrGelt.setnAmount(currGelt.getAmount() + m_gelt.getAmount());\n\t\t\t\t\tisUpdate = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tplay.Logger.info(\"Found Chavrousee Algorithm Finished with value : \" + isUpdate);\n\t\treturn isUpdate;\n\t}", "private boolean canPickUpPackage(Drone drone, WorldDelivery delivery){\n\t\t//check if the drone ID and the delivery drone ID match\n\t\tString droneID = drone.getDroneID();\n\t\tString deliveryDroneID = delivery.getDeliveryDroneID();\n\t\t//if not return false\n\t\tif(!droneID.equals(deliveryDroneID)){\n\n\t\t\treturn false;\n\t\t}\n\t\t//get the package source airport and position\n\t\tint sourceAirportID = delivery.getSourceAirport();\n//\t\tint sourceGateNumber = delivery.getSourceAirportGate();\n\t\t//get the position of the gate\n\t\tMap<Integer, WorldAirport> airports = this.getAirportMap();\n\t\tWorldAirport airport = airports.get(sourceAirportID);\n//\t\tVector dronePos = drone.getPosition();\n//\t\tfloat distanceToGate = airport.distanceToGate(sourceGateNumber, dronePos);\n//\n//\t\treturn distanceToGate <= MAX_TRANSFER_DISTANCE\n//\t\tif(drone.getDroneID().equals(\"0\")){\n//\t\t\tSystem.out.println(\"drone is at gate zone: \" + airport.isAtGateZone(drone.getPosition(), drone.getDroneID()));\n//\t\t}\n\t\treturn airport.isAtGateZone(drone.getPosition());\n\t}", "public default boolean needsReagents()\r\n\t{\r\n\t\tfor(ItemStack stack : getReagents()) if(!stack.isEmpty()) return true;\r\n\t\treturn true;\r\n\t}", "public boolean isBuyable();", "private boolean IsBust(Player player) {\n if (CalcHandSum(player, player.getHand()) > 21) {\n return true;\n } else {\n return false;\n }\n }", "public boolean isBurning()\n {\n return this.fuel > 0 && this.canSmelt();\n }", "public boolean canDoBuySettlement(){\n\t\t if(resourceCardHand.canDoPayForSettlement() == false || playerPieces.hasAvailableSettlement() == false) {\n\t\t\t return false;\n\t\t }\n\t\t // If the player does not have a valid place to put a settlement on the map, we won't let the player buy one\n\t\t if(playerPieces.canPlaceASettlementOnTheMap() == false) {\n\t\t\t return false;\n\t\t }\n\t\t return true;\n\t }", "public boolean upgradeSoftwareInjector(SoftwareInjector injector) {\r\n if(injector.getCost() <= this.getBitcoins())\r\n {\r\n try {\r\n if(injector.upgrade()) \r\n { \r\n\r\n this.removeBitcoins(injector.getCost()); \r\n return true;\r\n\r\n }\r\n }\r\n catch (NotEnoughBitcoinsException | NoUpgradeAllowedException ex) {\r\n new Log(LogState.ERROR, ex.getMessage());\r\n }\r\n }\r\n return false;\r\n }", "public boolean canTakeCharge();", "boolean hasTxpower();", "private boolean requiresUpgrade(TableInfo tableInfo) {\n if (tableInfo.isBackedByDataset()) {\n String cdapVersion = tableInfo.getParameters().get(Constants.Explore.CDAP_VERSION);\n // for now, good enough to check if it contains the version or not.\n // In the future we can actually do version comparison with ProjectInfo.Version\n return cdapVersion == null;\n }\n return false;\n }", "public void checkActivation() {\n\t\tplayer.getPackets().sendConfigByFile(10907, 1);\n\t\tplayer.getPackets().sendConfigByFile(10902, 1);\n\t\tfor (int x = 0; x <= 12; x++) {\n\t\t\tif (player.getActivatedLodestones()[x] == true) {\n\t\t\t\tplayer.getPackets().sendConfigByFile(CONFIG_IDS[x], 1);\n\t\t\t}\n\t\t}\n\t\tif (player.getActivatedLodestones()[13] == true) {\n\t\t\tplayer.getPackets().sendConfigByFile(CONFIG_IDS[13], 190);\n\t\t}\n\t\tif (player.getActivatedLodestones()[14] == true) {\n\t\t\tplayer.getPackets().sendConfigByFile(CONFIG_IDS[14], 15);\n\t\t}\n\t}", "public boolean isFuelAvailable()\n\t{\n\t\tInventory inv = getPowerSourceInventory();\n\t\tif (inv == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn getFuel().allIn(inv);\n\t\t}\n\t}", "boolean hasHeadGear();", "boolean canCharge(ItemStack stack);", "public boolean canProtectPieces() {\r\n\t\treturn (cityCards.stream().anyMatch(c -> (c.isSmallGods() && !c.isDisabled())\r\n\t\t\t\t&& money >= PROTECTION_COST)); \r\n\t}", "public boolean couldBeProfitable(){\n return this.priceBought < this.maximumMachineProfit;\n }", "public boolean fuelIsFull() throws Exception;", "private boolean canAddSupport() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n || uiStateManager.getState().equals(GameUIState.STANDBY);\n }", "private boolean hasEatenPowerUp() {\r\n if (snake[HEAD].row == powerUp.row && \r\n snake[HEAD].column == powerUp.column) { \r\n growSnake();\r\n newPowerUp();\r\n MainClass.totalPoints++;\r\n return true;\r\n }\r\n return false;\r\n }", "private boolean isSpaceOnBoardAvailable(Integer newPassengers){\n\t\t\n\t\treturn newPassengers + this.numberOnBoard <= this.numberOfSeats;\n\t}", "public void checkForNewPowers () {\n Power[] powers = Power.values(); \n\t\tfor (Power power : powers) {\n\t\t SuperPower superPower = power.getSuperPower();\n\t\t superPower.awardIfQualified(this);\n\t\t}\n }", "@Override\n\tpublic boolean checkSeatsForSumAvailableDAO(EventSignUp e) {\n\t\treturn false;\n\t}", "@SuppressWarnings(\"SameParameterValue\")\n boolean canUpgrade(String transport) {\n return (!mUpgrading.get() && mTransport.getName().equals(Polling.NAME) && transport.equals(WebSocket.NAME));\n }", "public boolean upgrades(Version version) {\n return platform.map(version::compareTo).orElse(0) < 0;\n }", "public boolean checkPlantCanHarvest() {\n\t\tint l = 0;//check Harvest\n\t\tfor(Plant p : getListofplant()){\n\t\t\tif(p.canHarvest()){\n\t\t\t\tl++;\n\t\t\t}\n\t\t}\n\t\tif(l == 0){\n\t\t\treturn false;\n\t\t}\n\t\telse return true;\n\t}", "@Override\n public boolean isChameleonShieldActive() {\n if (!isShutDown()) {\n for (Mounted m : getMisc()) {\n EquipmentType type = m.getType();\n if (type.hasFlag(MiscType.F_CHAMELEON_SHIELD) && m.curMode().equals(\"On\") && m.isReady()) {\n return true;\n }\n }\n }\n return false;\n }", "private boolean DeriveStockWith_FundIsAvailable() {\n\t\tif (getFunds() > 0) {\n\t\t\tif (calculateInputStock_Items() > getFunds()) {\n\t\t\t\tSystem.err.println(\"Insufficient Funds, Cannot restock\");\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t\t// available funds can accommodate input stock requirement\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.err.println(\"Insufficient Funds\");\n\t\t}\n\t\treturn false;\n\t}", "public boolean checkWeight() {\r\n\t\tif ((_15mWeight + _1hWeight + _4hWeight + _12hWeight + _1dWeight + _2dWeight + _7dWeight) == 100) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t//make sure to handle this\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean canITake(final double pWeight){\n return (pWeight+this.aWeight <= this.aStrong) ;\n }", "public boolean hasBust() {\n\t\treturn this.hand.countValue().first() > 21;\n\t}", "final boolean hanArribatAlFinal() {\n int cont = 0;\n for (int i = 0; i < soldats.size(); i++) {\n if (soldats.get(i).isHaArribat()) {\n cont++;\n }\n }\n\n if (cont == soldats.size()) {\n\n return true;\n }\n\n return false;\n\n }", "public boolean canBuildNextStage() {\r\n\t\tSystem.out.print(\"Checking if \" + stages[stagesCompleted]\r\n\t\t\t\t+ \" can be built:\");\r\n\t\tSimpleResList costSRL = SimpleResList\r\n\t\t\t\t.buildCostList(stages[stagesCompleted]);\r\n\t\tSystem.out\r\n\t\t\t\t.println((canBuildStage(stages[stagesCompleted], costSRL) ? \" true \"\r\n\t\t\t\t\t\t: \" false \"));\r\n\t\t// TODO needs code to see if there is enough money to buy the goods from\r\n\t\t// the neighbors(if they have the goods).....look buildCommandOptions\r\n\t\treturn canBuildStage(stages[stagesCompleted], costSRL); // this is only\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// checking to\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// see if this\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// board can\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// afford it\r\n\t}", "private boolean setupEconomy() {\n if (getServer().getPluginManager().getPlugin(\"Vault\") == null) {\n return false;\n }\n RegisteredServiceProvider<Economy> rsp = getServer().getServicesManager().getRegistration(Economy.class);\n if (rsp == null) {\n return false;\n }\n econ = rsp.getProvider();\n return econ != null;\n }", "private boolean validaCompra() {\n\n List<Purchase> purchasesList = billingClient.queryPurchases(INAPP).getPurchasesList();\n if (purchasesList != null && !purchasesList.isEmpty()) {\n for (Purchase purchase : purchasesList) {\n if (purchase.getSku().equals(skuId)) {\n return true;\n }\n }\n }\n return false;\n\n }", "public boolean hasBust()\n {\n return getSumOfCards(false) > 21;\n }", "public void buyCargoUpgrades()\n {\n if(play_state.getMoney() >= cargo_upgrade_cost) {\n play_state.setMoney(play_state.getMoney() - cargo_upgrade_cost);\n cargo_upgrade_cost += 100;\n play_state.getDriller().addCapacity(5);\n }\n }", "private boolean checkGreedyEnergy() {\r\n return myTotal.get(2) < 10 || (myTotal.get(2) < 13 && myTotal.get(2) <= enTotal.get(2));\r\n }", "public boolean isBusted() {\n\t\tif (hand.checkHandValue() > 21) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private static boolean checkIfNeedMore(int[] costToPayToCheck){\n boolean result = false;\n List<PowerUpLM> copyOfPowerUpLMList = copyOf(tmpAmmoInPowerUp);\n\n if(costToPayToCheck[GeneralInfo.RED_ROOM_ID] > 0){\n result = true;\n }\n else{\n tmpAmmoInAmmoBox[GeneralInfo.RED_ROOM_ID] = 0;\n for(PowerUpLM power: copyOfPowerUpLMList){\n if(power.getGainAmmoColor().equals(AmmoType.RED))\n tmpAmmoInPowerUp.remove(power);\n }\n }\n\n if(costToPayToCheck[GeneralInfo.BLUE_ROOM_ID] > 0){\n result = true;\n }\n else{\n tmpAmmoInAmmoBox[GeneralInfo.BLUE_ROOM_ID] = 0;\n for(PowerUpLM power: copyOfPowerUpLMList){\n if (power.getGainAmmoColor().equals(AmmoType.BLUE))\n tmpAmmoInPowerUp.remove(power);\n }\n }\n\n if(costToPayToCheck[GeneralInfo.YELLOW_ROOM_ID] > 0){\n result = true;\n }\n else{\n tmpAmmoInAmmoBox[GeneralInfo.YELLOW_ROOM_ID] = 0;\n for(PowerUpLM power: copyOfPowerUpLMList){\n if(power.getGainAmmoColor().equals(AmmoType.YELLOW))\n tmpAmmoInPowerUp.remove(power);\n }\n }\n\n return result;\n }", "public boolean isHasPowerUp() {\n\t\treturn hasPowerUp;\n\t}", "@Override\n public boolean isValid() {\n return (27 - Inventory.getAll().length <= Inventory.find(\"Soft clay\").length)\n || (Inventory.find(\"Soft clay\").length < 1 || Inventory\n .find(\"Astral rune\").length < 1)\n && !Banking.isBankScreenOpen()\n && GlassBlower.antiban.canInteractObject();\n }", "boolean hasGenesis();", "public boolean isGranted(){\n\n// if (BallotBoxState.Granted.equals(getBallotBoxState()) || this.quorum.get() <= 0) {\n// setBallotBoxState(BallotBoxState.Granted);\n// return true;\n// }\n// return false;\n\n return this.quorum.get() <= 0;\n }", "boolean hasPower();", "public boolean isAffectingDropsAndPowerups() {\n \t\treturn level >= Upgrades.SLOW_UPGRADE_NO_AFFECT_DROPS_AND_POWERUPS;\n \t}", "private void upgrade() {\n String[] upgradeOptions = currentPlayer.getLocation().getUpgradeStrings(currentPlayer.getRank());\n // String[] upgradeTypes = {\"credits\", \"dollars\"}; // credits come before dollars for each rank in getUpgradeStrings()\n // String upgradeCostChosen;\n // String upgradeTypeChosen;\n String upgradeChoice;\n\n // choose upgrade\n if (currentPlayer.isComputer()) {\n // get next rank above player's rank\n // String upgradeRankChosen = Integer.toString(currentPlayer.getRank()+1);\n \n // randomly choose between the credit option or the dollar option for the next rank 1 above the player's current rank\n Random rand = new Random();\n int randInt = rand.nextInt(2); \n upgradeChoice = upgradeOptions[randInt];\n }\n else { // if current player is human\n // choose upgrade manually\n upgradeChoice = view.showUpgradePopUp(upgradeOptions);\n }\n\n // parse upgradeChosen and do upgrade\n String[] upgradesSplit = upgradeChoice.split(\"\\\\s+\");\n if(upgradesSplit[4].equals(\"dollars\")){ // upgrade in dollars\n if(Integer.valueOf(upgradesSplit[3]) > currentPlayer.getDollars()){ // upgrade fails\n view.showPopUp(currentPlayer.isComputer(), \"You don't have enough dollars for this upgrade\");\n }\n else{ // upgrade succeeds\n currentPlayer.incDollars(-1*(Integer.valueOf(upgradesSplit[3])));\n currentPlayer.setRank(Integer.valueOf(upgradesSplit[1]));\n view.showPopUp(currentPlayer.isComputer(), \"You are now level \" + upgradesSplit[1]);\n }\n }\n else { // upgrade in credits\n if(Integer.valueOf(upgradesSplit[3]) > currentPlayer.getCredits()){ // upgrade fails\n view.showPopUp(currentPlayer.isComputer(), \"You don't have enough credits for this upgrade\");\n }\n else{ // upgrade succeeds\n currentPlayer.incCredits(-1*(Integer.valueOf(upgradesSplit[3])));\n currentPlayer.setRank(Integer.valueOf(upgradesSplit[1]));\n view.showPopUp(currentPlayer.isComputer(), \"You are now level \" + upgradesSplit[1]);\n \n }\n }\n }", "private boolean check() {\n if (!isBST()) System.out.println(\"Not in symmetric order\");\n if (!isSizeConsistent()) System.out.println(\"Subtree counts not consistent\");\n if (!isRankConsistent()) System.out.println(\"Ranks not consistent\");\n return isBST() && isSizeConsistent() && isRankConsistent();\n }", "private boolean isCheckMate() {\n if (whitePlayer.getOccupiedSet().isEmpty()) {\n System.out.println(\"BLACK PLAYER WINS\");\n return true;\n }\n else if (blackPlayer.getOccupiedSet().isEmpty()) {\n System.out.println(\"WHITE PLAYER WINS\");\n return true;\n }\n else return false;\n }", "public boolean isToDeploy() {\r\n\t\treturn attachUpdates>0 || catUpdates>0 || catTransUpdates>0 || prodUpdates>0 || prodTransUpdates>0 || menuUpdates>0;\r\n\t}", "@Override\n public boolean activate() {\n // We only want to go to the bank if our inventory is full and we aren't already there.\n return Mining.isInvFull() && !Constants.BANK_AREA.contains(Players.getLocal());\n }", "public boolean canOfferInsurance() {\n\t\treturn this.hand.getCards().get(0) == Card.ACE;\n\t}", "public boolean isAvailable(){\n\t\ttry{\n\t\t\tgetPrimingsInternal(\"Test\", \"ATGATGATGATGATGATGATG\");\n\t\t}\n\t\tcatch(IOException e){\n\t\t\treturn false;\n\t\t}\n\t\tcatch(InterruptedException e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean hasLicensePlate() {\n return licensePlateBuilder_ != null || licensePlate_ != null;\n }" ]
[ "0.67711955", "0.60152644", "0.60124826", "0.59621906", "0.5861356", "0.58183545", "0.5788026", "0.57536954", "0.57159835", "0.57109183", "0.5699414", "0.56779206", "0.5665742", "0.56295174", "0.55615", "0.5557663", "0.5555484", "0.55517083", "0.55271864", "0.5521724", "0.54908156", "0.5488701", "0.54851377", "0.54847133", "0.546181", "0.5441829", "0.54334754", "0.54311526", "0.54304475", "0.54276884", "0.5421217", "0.5420203", "0.54138786", "0.5406262", "0.5401203", "0.5400104", "0.5377242", "0.5355938", "0.534917", "0.53466094", "0.53381526", "0.5336478", "0.53364223", "0.5333627", "0.5333342", "0.5330655", "0.53129196", "0.5307896", "0.53076977", "0.5301603", "0.5297651", "0.5293853", "0.5293493", "0.52730435", "0.52727693", "0.5268289", "0.5263914", "0.52594453", "0.5259236", "0.5255276", "0.5250206", "0.52425116", "0.5241644", "0.52367187", "0.5235419", "0.52340186", "0.52305645", "0.5228816", "0.5225319", "0.52124494", "0.5202426", "0.5201892", "0.5200295", "0.51935", "0.51924485", "0.5186223", "0.51781374", "0.5169064", "0.5167647", "0.516251", "0.51572454", "0.5154404", "0.5153695", "0.51501065", "0.51476574", "0.5143134", "0.5137838", "0.5137194", "0.5128779", "0.51182723", "0.5112148", "0.5109855", "0.51040345", "0.51000637", "0.50993085", "0.5095726", "0.509366", "0.509337", "0.5091939", "0.50905985" ]
0.81920904
0
Returns true if we can afford both so many minerals and gas at the same time.
public static boolean canAfford(int minerals, int gas) { return hasMinerals(minerals) && hasGas(gas); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isFullySupplied()\n {\n boolean isFull = !model.needsFuel() || (model.maxFuel == fuel);\n isFull &= (model.maxAmmo == ammo);\n return isFull;\n }", "public static boolean hasGas(int gasToAfford) {\n return getGas() >= gasToAfford;\n }", "public boolean hasBust() {\n\t\treturn this.hand.countValue().first() > 21;\n\t}", "public static boolean hasMinerals(int mineralsToAfford) {\n return getMinerals() >= mineralsToAfford;\n }", "private boolean checkGreedyEnergy() {\r\n return myTotal.get(2) < 10 || (myTotal.get(2) < 13 && myTotal.get(2) <= enTotal.get(2));\r\n }", "private boolean canMageHarrasing(Creature m) {\n return (heroC.getX() - m.getX()) * (heroC.getX() - m.getX()) == (heroC.getY() - m.getY()) * (heroC.getY() - m.getY());\n }", "private boolean isSelectedArmyForceBigEnough() {\n return selectedArmyForce.getTotalPower() >= selectedTerritoryByPlayer.getArmyThreshold();\n }", "public boolean hasBust()\n {\n return getSumOfCards(false) > 21;\n }", "boolean checkForShortCircuit(CaveGen g) {\n int i = g.placedMapUnits.size() - 1;\n MapUnit m = g.placedMapUnits.get(i);\n if (i >= Parser.scUnitTypes.length) return false;\n if (Parser.scUnitTypes[i] != -1) {\n String targetName = g.spawnMapUnitsSorted.get(Parser.scUnitTypes[i]).name;\n if (!targetName.equals(m.name))\n return true;\n } \n if (Parser.scRots[i] != -1) {\n if (m.rotation != Parser.scRots[i])\n return true;\n } \n if (Parser.scUnitIdsFrom[i] != -1 \n && Parser.scDoorsFrom[i] != -1\n && Parser.scDoorsTo[i] != -1) {\n Door d = m.doors.get(Parser.scDoorsTo[i]);\n if (d.adjacentDoor == null || d.adjacentDoor.mapUnit == null)\n return true;\n MapUnit o = d.adjacentDoor.mapUnit;\n if (g.placedMapUnits.indexOf(o) != Parser.scUnitIdsFrom[i])\n return true;\n if (o.doors.indexOf(d.adjacentDoor) != Parser.scDoorsFrom[i])\n return true;\n }\n else {\n if (Parser.scDoorsTo[i] != -1) {\n Door d = m.doors.get(Parser.scDoorsTo[i]);\n if (d.adjacentDoor == null || d.adjacentDoor.mapUnit == null)\n return true;\n }\n if (Parser.scUnitIdsFrom[i] != -1 \n && Parser.scDoorsFrom[i] != -1) {\n boolean isGood = false;\n for (Door d: m.doors) {\n if (d.adjacentDoor == null || d.adjacentDoor.mapUnit == null)\n continue;\n MapUnit o = d.adjacentDoor.mapUnit;\n if (g.placedMapUnits.indexOf(o) != Parser.scUnitIdsFrom[i])\n continue;\n if (o.doors.indexOf(d.adjacentDoor) != Parser.scDoorsFrom[i])\n continue;\n isGood = true;\n }\n if (!isGood) return true;\n }\n else if (Parser.scUnitIdsFrom[i] != -1) {\n boolean isGood = false;\n for (Door d: m.doors) {\n if (d.adjacentDoor == null || d.adjacentDoor.mapUnit == null)\n continue;\n MapUnit o = d.adjacentDoor.mapUnit;\n if (g.placedMapUnits.indexOf(o) != Parser.scUnitIdsFrom[i])\n continue;\n isGood = true;\n }\n if (!isGood) return true;\n }\n }\n return false;\n }", "public boolean canSpawnMore() {\n for(int e: enemiesLeft) {\n if(e > 0) {\n return true;\n }\n }\n\n return false;\n }", "public boolean couldBeProfitable(){\n return this.priceBought < this.maximumMachineProfit;\n }", "private static boolean checkIfNeedMore(int[] costToPayToCheck){\n boolean result = false;\n List<PowerUpLM> copyOfPowerUpLMList = copyOf(tmpAmmoInPowerUp);\n\n if(costToPayToCheck[GeneralInfo.RED_ROOM_ID] > 0){\n result = true;\n }\n else{\n tmpAmmoInAmmoBox[GeneralInfo.RED_ROOM_ID] = 0;\n for(PowerUpLM power: copyOfPowerUpLMList){\n if(power.getGainAmmoColor().equals(AmmoType.RED))\n tmpAmmoInPowerUp.remove(power);\n }\n }\n\n if(costToPayToCheck[GeneralInfo.BLUE_ROOM_ID] > 0){\n result = true;\n }\n else{\n tmpAmmoInAmmoBox[GeneralInfo.BLUE_ROOM_ID] = 0;\n for(PowerUpLM power: copyOfPowerUpLMList){\n if (power.getGainAmmoColor().equals(AmmoType.BLUE))\n tmpAmmoInPowerUp.remove(power);\n }\n }\n\n if(costToPayToCheck[GeneralInfo.YELLOW_ROOM_ID] > 0){\n result = true;\n }\n else{\n tmpAmmoInAmmoBox[GeneralInfo.YELLOW_ROOM_ID] = 0;\n for(PowerUpLM power: copyOfPowerUpLMList){\n if(power.getGainAmmoColor().equals(AmmoType.YELLOW))\n tmpAmmoInPowerUp.remove(power);\n }\n }\n\n return result;\n }", "public final boolean canUse(){\n\t\tmaintain();\n\t\t//check if grown if not try to grow\n\t\tif(grown){\t\n\t\t\tif(host.getStrength()>USE_COST){\n\t\t\t\thost.expend(USE_COST);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thost.expend(host.getStrength());\n\t\t\t}\n\t\t}\n\t\telse{\t\t\t\n\t\t\tcanGrow(host, this);\n\t\t}\t\n\t\treturn false;\n\t}", "public boolean increaseMinions() {\r\n\t\tif (this.minions < TOTAL_MINIONS) {\r\n\t\t\tthis.minions = this.minions + 1;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private static boolean hasCapacityForMultiEvaluation() {\n // return true;\n int threshold = 3;\n int available = Runtime.getRuntime().availableProcessors() * ServerRunner.getProcessorMultiplier();\n return available >= threshold;\n }", "public boolean checkIfPlayerHoldsExplosive () { return noOfExplosives > 0; }", "private boolean caughtTwenty(){\n\t\treturn (theTrainer.getPokedex().size() >= 20);\n\t}", "final boolean hanArribatAlFinal() {\n int cont = 0;\n for (int i = 0; i < soldats.size(); i++) {\n if (soldats.get(i).isHaArribat()) {\n cont++;\n }\n }\n\n if (cont == soldats.size()) {\n\n return true;\n }\n\n return false;\n\n }", "private boolean hasCapacity() {\n int used = 0 + evaluations.size() * 2;\n int available = Runtime.getRuntime().availableProcessors() * ServerRunner.getProcessorMultiplier();\n return used < available;\n }", "public boolean canReproduce() {\r\n ArrayList<Cell> neighbours = getNeighbours(FIRSTLAYER);\r\n\r\n int numOfSameT = 0;\r\n int numOfEmpty = 0;\r\n int numOfFoodC = 0;\r\n\r\n for (Cell cell : neighbours) {\r\n if (isSameType(cell.getInhabit())) {\r\n numOfSameT++;\r\n } else if (cell.getInhabit() == null && isTerrainAccessiable(cell)) {\r\n numOfEmpty++;\r\n } else if (isEdible(cell.getInhabit())) {\r\n numOfFoodC++;\r\n }\r\n }\r\n\r\n return (numOfSameT >= numOfSameTypeNeighbourToReproduce() \r\n && numOfEmpty >= numOfEmptyToReproduce()\r\n && numOfFoodC >= numOfFoodCellToReproduce());\r\n }", "private boolean canTakeBandanaFrom(Unit other) {\n return getCalories() >= (2 * other.getCalories());\n }", "private boolean shouldBecomeCombatEngineer() {\r\n\t\tdouble machineUnitsCount = this.getNumberOfMachineUnits();\r\n\t\tdouble combatEngineers = this.informationStorage.getWorkerConfig().getTotalCombatEngineerCount();\r\n\r\n\t\treturn combatEngineers / machineUnitsCount <= this.combatEngineerTriggerPercentageEnroll;\r\n\t}", "public final boolean inUse()\n{\n\tif (_buildTime > 0)\n\t{\n\t\treturn false;\n\t}\n\treturn (_base.getAvailableQuarters() - _rules.getPersonnel() < _base.getUsedQuarters() ||\n\t\t\t_base.getAvailableStores() - _rules.getStorage() < _base.getUsedStores() ||\n\t\t\t_base.getAvailableLaboratories() - _rules.getLaboratories() < _base.getUsedLaboratories() ||\n\t\t\t_base.getAvailableWorkshops() - _rules.getWorkshops() < _base.getUsedWorkshops() ||\n\t\t\t_base.getAvailableHangars() - _rules.getCrafts() < _base.getUsedHangars());\n}", "private boolean hasEatenPowerUp() {\r\n if (snake[HEAD].row == powerUp.row && \r\n snake[HEAD].column == powerUp.column) { \r\n growSnake();\r\n newPowerUp();\r\n MainClass.totalPoints++;\r\n return true;\r\n }\r\n return false;\r\n }", "public default boolean needsReagents()\r\n\t{\r\n\t\tfor(ItemStack stack : getReagents()) if(!stack.isEmpty()) return true;\r\n\t\treturn true;\r\n\t}", "public boolean goldilocksCheck() {\n\t\treturn (waterConcentration > 0.25 && heat > 32);\r\n\t}", "protected boolean canBeBought(@NotNull AmmoAmountUncapped funds){\n for (AmmoColor i: AmmoColor.values()){\n if (getAmounts().get(i)>funds.getAmounts().get(i)){\n return false;\n }\n }\n return true;\n }", "public static boolean weAreMuchStronger() {\n return ourArmyRelativeStrength() >= muchStrongerPercent();\n }", "public Boolean isFull() {\n\t\tif (this.mVehicles.size() == this.mCapacity)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public boolean isValid() {\n\t\tif(goals1 == goals2 && !usedExtraTime)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "private boolean caughtEmAll(){\n\t\tint howMany = 1;\n\t\tArrayList<Pokemon> pokedex = theTrainer.getPokedex();\n\t\tCollections.sort(pokedex);\n\t\tfor(int i = 0; i < pokedex.size() - 1; i++){\n\t\t\tif(pokedex.get(i+1).getPokemonID() != pokedex.get(i).getPokemonID()){\n\t\t\t\thowMany++;\n\t\t\t}\n\t\t}\n\t\treturn (howMany == 10);\n\t}", "public boolean isClearingMines();", "private boolean IsBust(Player player) {\n if (CalcHandSum(player, player.getHand()) > 21) {\n return true;\n } else {\n return false;\n }\n }", "public boolean isFarmBig() {\r\n if(usedPopulation / maxPopulation > 0.8) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }", "public boolean canProtectPieces() {\r\n\t\treturn (cityCards.stream().anyMatch(c -> (c.isSmallGods() && !c.isDisabled())\r\n\t\t\t\t&& money >= PROTECTION_COST)); \r\n\t}", "public boolean canHit() {\n\t\treturn this.hand.countValue().first() < 17;\n\t}", "public boolean hit() {\r\n add(deck.deal());\r\n return getHandValue() <= 21;\r\n }", "boolean isSetMultipleBetMinimum();", "private boolean checkGreedyIronCurtain() {\r\n return (myself.health < 30 || enTotal.get(0) >= 8 || opponent.isIronCurtainActive || this.myTotal.get(0) < this.enTotal.get(0));\r\n }", "private boolean canBuy(BuildingType x) {\r\n return gameDetails.buildingsStats.get(x).price <= myself.energy;\r\n }", "public boolean needsRepair() {\n if (id == 5509) {\n return false;\n }\n return inventory.contains(id + 1);\n }", "private boolean tryPay() {\n return new Random().nextInt(100) + 1 <= 50;\n }", "private boolean isEligibleForRealMin() {\n return eligibleForRealMin;\n }", "boolean shipGrow(Tester t) {\n return t.checkExpect(this.ship1.grow(), 10) && t.checkExpect(this.ship9.grow(), 8);\n }", "public boolean isFull() {\n return numOfGoods == cargoSpace;\n }", "private boolean shouldApply() {\n return nextRandomInt() >= unappliedJobCutoff;\n }", "private boolean isTargetTerritoryOneBlockAway() {\n for(Territory territory:getCurrentPlayerTerritories()) {\n if(Math.abs(territory.getID()-selectedTerritoryByPlayer.getID()) == 1) {\n int minID = Math.min(territory.getID(),selectedTerritoryByPlayer.getID());\n int maxID = Math.max(territory.getID(),selectedTerritoryByPlayer.getID());\n if(maxID % gameDescriptor.getColumns() == 0)\n return true;\n if((minID % gameDescriptor.getColumns() != 0 )\n && (minID / gameDescriptor.getColumns() == maxID / gameDescriptor.getColumns())) {\n return true;\n }\n }\n else if(Math.abs(territory.getID()-selectedTerritoryByPlayer.getID()) == gameDescriptor.getColumns())\n return true;\n }\n return false;\n }", "boolean hasMainUtteranceDynamicGain();", "private boolean foundChavrousse(ArrayList<Gelt> m_gelts, Gelt m_gelt) {\n\t\tplay.Logger.info(\"Found Chavrousee Algorithm Started\");\n\t\tboolean isUpdate = false;\n\t\tfor (Gelt currGelt : m_gelts) {\n\t\t\tif (!isUpdate) {\n\t\t\t\tif ((currGelt.getDebterID() == m_gelt.getDebterID())\n\t\t\t\t\t\t&& (currGelt.getEntitledID() == m_gelt.getEntitledID())\n\t\t\t\t\t\t&& (currGelt.getGroupID() == m_gelt.getGroupID())) {\n\t\t\t\t\tcurrGelt.setnAmount(currGelt.getAmount() + m_gelt.getAmount());\n\t\t\t\t\tisUpdate = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tplay.Logger.info(\"Found Chavrousee Algorithm Finished with value : \" + isUpdate);\n\t\treturn isUpdate;\n\t}", "private boolean isAtLeastOneMemberNotToFarAwayFromSpawnPoint(final LinkedList<Fightable> kis) {\n\t\t\n\t\tfor (Fightable ki : kis) {\n\t\t\tif (Points.distBetweenTwoPoints(ki.getCoord(), ki.getSpawnPoint()) \n\t\t\t\t\t< ki.getAttributeValue(Attribute.viewRange) * VIEWRANGE_FACTOR) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "boolean isNilMultipleBetMinimum();", "static boolean getMauled(){\n\t\t\tif (Person.player.inventory.contains(Item.repellent)) //if you have the goose repellent...\n\t\t\t\treturn (MainFile.getRandomNumber(240) == 12); //drastically lowers your chance of being mauled.\n\t\t\treturn (MainFile.getRandomNumber(20) == 12);//generates a random number for if you don't have it, and if it's 12 you get mauled\n\t\t}", "private boolean canSmelt()\n {\n ItemStack var1 = FurnaceRecipes.smelting().getSmeltingResult(this.furnaceItemStacks[0]);\n if (var1 == null) return false;\n if (this.furnaceItemStacks[2] == null) return true;\n if (!this.furnaceItemStacks[2].isItemEqual(var1)) return false;\n int result = furnaceItemStacks[2].stackSize + var1.stackSize;\n return (result <= getInventoryStackLimit() && result <= var1.getMaxStackSize());\n }", "public boolean enoughSpaceToBuy(Player p, int numGoods) {\n // check size of cargoArr\n return numGoods <= p.getShip().numOpenSlots();\n }", "public boolean canBuy(@NotNull AmmoAmountUncapped cost){\n return cost.canBeBought(this);\n }", "private boolean checkGreedyDefense() {\r\n return enTotal.get(2)+1 < myTotal.get(2) && enTotal.get(0)+1 < myTotal.get(0);\r\n }", "public boolean needsRepairing() {\n boolean returner = false;\n for (Pouch pouch : pouchesUsed) {\n returner = returner || pouch.needsRepair();\n }\n return returner;\n }", "private static boolean hasFunds(double cost)\n {\n if (Clock.getRoundNum() < 200) { //TODO edit this out if necessary\n return rc.getTeamOre() > cost;\n } else {\n return rc.getTeamOre() > cost*2;\n }\n }", "public boolean getComingMore() {\n return (comingVehicle+depoVehicle) <= getPart().intValue()+1;\n }", "public boolean isSpare(){\r\n\t\tif( this.firstThrow + this.secondThrow == 10\r\n\t\t\t&& !this.isStrike())\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "@Override\n public boolean isFinished() {\n// return false;\n return LightningMath.epsilonEqual(shooter.getFlywheelMotor1Velocity(), shooter.motor1setpoint, Constants.FLYWHEEL_EPSILON) &&\n LightningMath.epsilonEqual(shooter.getFlywheelMotor2Velocity(), shooter.motor2setpoint, Constants.FLYWHEEL_EPSILON) &&\n LightningMath.epsilonEqual(shooter.getFlywheelMotor3Velocity(), shooter.motor3setpoint, Constants.FLYWHEEL_EPSILON);\n }", "boolean hasMaxMP();", "boolean hasMaxMP();", "boolean hasMaxMP();", "boolean hasMaxMP();", "boolean hasMaxMP();", "boolean hasMaxMP();", "public boolean work() {\n // get the next block so the cart knows where to mine\n Vec3 next = getNextblock();\n // save thee coordinates for easy access\n int x = (int) next.xCoord;\n int y = (int) next.yCoord;\n int z = (int) next.zCoord;\n\n // loop through the blocks in the \"hole\" in front of the cart\n\n for (int i = -getRange(); i <= getRange(); i++) {\n for (int j = -getRange(); j <= getRange(); j++) {\n // calculate the coordinates of this \"hole\"\n int coordX = x + i;\n int coordY = y - 1;\n int coordZ = z + j;\n\n if (farm(coordX, coordY, coordZ)) {\n return true;\n } else if (till(coordX, coordY, coordZ)) {\n return true;\n } else if (plant(coordX, coordY, coordZ)) {\n return true;\n }\n }\n }\n\n return false;\n }", "boolean monkeyBusiness(Monkey[] monkeys) {\n boolean allSmiles;\n int smiles = 0;\n for(Monkey monkey: monkeys) {\n if(monkey.smile) {\n smiles++;\n }\n }\n allSmiles = smiles >= (double) monkeys.length / 2;\n return allSmiles;\n }", "@Override\n public boolean check(RealPlayer realPlayer) {\n for (Map.Entry<Resource, Integer> entry : productionPowerInput.entrySet()) {\n if (entry.getValue() > realPlayer.getPersonalBoard().getSpecificResourceCount(entry.getKey().getResourceType()))\n return false;\n }\n return true;\n }", "boolean canBuy( final Item item )\n {\n return !ship.contains( item ) && item.getPrice() <= credits;\n }", "public boolean couldWrap(Cargo other) {\n return getCarrierTarget() == other.getCarrierTarget()\n && getNewSpace() < 0 && other.getNewSpace() < 0;\n }", "public static boolean canAfford(UpgradeType upgrade) {\n return hasMinerals(upgrade.getMineralPriceBase()) && hasGas(upgrade.getGasPriceBase());\n }", "public boolean isAuctionAtMaxCapacity() {\n\t\treturn getInventoryCount() == maxItemsSold;\t\n\t}", "public boolean istVoll()\n\t{\n\t return (_spalte0 > 0) && (_spalte1 > 0) && (_spalte2 > 0);\n\t}", "private boolean acceptable(long t0, List<AcceptableState> quorumConfiguration, Set<String> workers) {\n long t = System.nanoTime() / 1000000 - t0;\n for (AcceptableState condition : quorumConfiguration) {\n if (t < condition.milliseconds && workers.size() >= condition.workers) {\n return true;\n }\n }\n return false;\n }", "public boolean isWin_DragonKingOfArms(){\r\n // player got LordSelachii card\r\n /*Player playerHoldCard = null;\r\n for (Player player : discWorld.getPlayer_HASH().values()) {\r\n if (player.getPersonalityCardID() == 5) {\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }*/\r\n int count = 0;\r\n for(TroubleMarker troubleMarker : discWorld.getTroubleMarker_HASH().values()){\r\n if(troubleMarker.getAreaNumber() != ConstantField.DEFAULT_PIECE_AREA_NUMBER){\r\n count++;\r\n }\r\n }\r\n \r\n if(count >= 8){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n \r\n }", "boolean JoiningCriteriaMet() {\n\t\tfor(int i = timeService.getCurrentYear()-1; i > timeService.getCurrentYear() - KyotoEntryYears; i--) {\n\t\t\tif (carbonOutputMap.get(i) > emissionsTargetMap.get(i)) {\n\t\t\t\treturn(false);\n\t\t\t}\n\t\t}\n\t\treturn(true); // \n\t}", "public boolean isPossibleTransit(State s, Action a) {\r\n//\t\tint newWorkloadLevel = s.getWorkload() + a.getChangedWorkload();\r\n\t\tint maxBatteryLevel = getNextBatteryLevel(s, a);\r\n\t\tint maxActionLevel = s.getWorkload();\r\n\r\n\t if((a.getChangedWorkload() <= maxActionLevel) && (a.getBatteryUsed() <= maxBatteryLevel))\r\n\t {\r\n\t\treturn true;\r\n\t }\r\n\t else { \r\n\t \treturn false;\r\n\t }\r\n\t}", "public boolean isTheOnlyGold() {\n return (numM == 1) && (numG == 1) ;\n }", "private boolean shouldRush(GameInfo intel) {\n if (intel.getNumPlayers() > 2) {\n return false;\n }\n\n final GameMap gameMap = intel.getGamemap();\n final Map<Integer, Ship> myShips = gameMap.getMyPlayer().getShips();\n\n // get enemy player ships\n for (Player player : gameMap.getAllPlayers()) {\n if (player.getId() != gameMap.getMyPlayerId()) {\n for (Ship ship : player.getShips().values()) {\n for (Ship myShip : myShips.values()) {\n if (myShip.getDistanceTo(ship) < RUSH_MAX_DISTANCE) {\n return true;\n }\n }\n }\n }\n }\n\n return false;\n }", "private boolean shouldStopBeingCombatEngineer() {\r\n\t\tdouble machineUnitsCount = this.getNumberOfMachineUnits();\r\n\t\tdouble combatEngineers = this.informationStorage.getWorkerConfig().getTotalCombatEngineerCount();\r\n\r\n\t\treturn combatEngineers / machineUnitsCount >= this.combatEngineerTriggerPercentageCancel;\r\n\t}", "private boolean capacityController(Arrival newArrival) {\n int[] duration = calculateDuration(newArrival);\n for (int i = duration[0]; i <= duration[1]; i++) {\n if (this.parentTrainStation.getMaxCapacity() <= capacityArray[i]) {\n return false;\n }\n }\n for (int i = duration[0]; i <= duration[1]; i++) {\n capacityArray[i]++;\n }\n return true;\n }", "public Boolean isTransmissionEffective() { return random.nextDouble() < transmissionProb; }", "public boolean isPossible(Order order) {\n for (DishWrapper dishWrapper : order.getItems()) {\n for (Ingredient ingredient : dishWrapper.getDish().getIngredients()) {\n if (dishWrapper.getAmount() * ingredient.getAmount() > stock.get(stock.indexOf(ingredient)).getAmount()) {\n return false;\n }\n }\n }\n return true;\n }", "public boolean affordCard() {\n \t\treturn (FREE_BUILD || getResources(Type.WOOL) >= 1\n \t\t\t\t&& getResources(Type.GRAIN) >= 1 && getResources(Type.ORE) >= 1);\n \t}", "public boolean isBurning()\n {\n return this.fuel > 0 && this.canSmelt();\n }", "private boolean canReduceBins() {\n\t\tint oldBinCount = binCount;\n\t\tboolean canReduce = false;\n\t\tbinCount = binCount / 2;\n\t\tint[] chromosome = eliteChromosome.clone();\n\n\t\tif (getFitness(chromosome) <= binCount)\n\t\t\tcanReduce = true;\n\t\telse\n\t\t\tcanReduce = false;\n\t\tbinCount = oldBinCount; //no side effects\n\t\treturn canReduce;\n\t}", "public static boolean canBuyGroupClaimer(Player player) {\n ClaimProfile profile = ProfileManager.getInstance().getProfile(player);\n\n int normalChunks = 0;\n int groupChunks = 0;\n\n for (ChunkData claimedChunk : profile.getClaimedChunks()) {\n if (claimedChunk.isGroupChunk()) {\n groupChunks++;\n } else {\n normalChunks++;\n }\n }\n\n return 2 * normalChunks > groupChunks;\n }", "private boolean isStateFullyDetermined() {\n switch (hasSubstance) {\n case No:\n case Unknown:\n return false;\n case Yes:\n // if already established has substance, continue checking only until\n // reach threshold\n return (substanceMin <= 0) ? true : substanceCnt >= substanceMin;\n }\n throw new ShouldNotHappenException();\n }", "boolean hasCapacity();", "public boolean isProduced(){\n if(!step1.isEmpty()&&!step2.isEmpty()&&!step3.isEmpty()){\n return true;\n }else {\n return false;\n }\n }", "private boolean checkStock(){\n int i;\n int inventorySize = inventory.size();\n int count = 0;\n for(i = 0; i < inventorySize; i++){\n count = count + inventory.get(i).getStock();\n\n }\n //System.out.println(\"Count was: \" + count);\n if(count < 1){\n return false;\n }else{\n return true;\n }\n }", "private boolean isCheckMate() {\n if (whitePlayer.getOccupiedSet().isEmpty()) {\n System.out.println(\"BLACK PLAYER WINS\");\n return true;\n }\n else if (blackPlayer.getOccupiedSet().isEmpty()) {\n System.out.println(\"WHITE PLAYER WINS\");\n return true;\n }\n else return false;\n }", "public boolean isApplicable(DevelopmentCard card) {\n\t\treturn (this.familyMember.getActionValue()\n\t\t\t\t+ this.getPlayer().getBonuses().getActivationVariation(card.getCardType())\n\t\t\t\t+ paidServants >= card.getActivationCost());\n\t}", "boolean hasGemReward();", "private void checkIsBetterSolution() {\n if (solution == null) {\n solution = generateSolution();\n //Si la solucion que propone esta iteracion es mejor que las anteriores la guardamos como mejor solucion\n } else if (getHealthFromAvailableWorkers(availableWorkersHours, errorPoints.size()) < solution.getHealth()) {\n solution = generateSolution();\n }\n }", "boolean isPossible() {\n return (sideOne + sideTwo > sideThree) && (sideTwo + sideThree > sideOne) && (sideThree + sideOne > sideTwo);\n }", "public boolean isAllBurntUp() {\n return (flammableItemCount == itemsOnFire);\n }", "public boolean affordRoad() {\n \t\treturn (FREE_BUILD || roads.size() < MAX_ROADS\n \t\t\t\t&& getResources(Type.BRICK) >= 1\n \t\t\t\t&& getResources(Type.LUMBER) >= 1);\n \t}" ]
[ "0.6633408", "0.6501874", "0.63022244", "0.63000077", "0.6259472", "0.6192585", "0.61858845", "0.6146416", "0.6095795", "0.6093444", "0.6086315", "0.6064096", "0.6059406", "0.6057788", "0.60376626", "0.60327184", "0.6017728", "0.60024375", "0.59936064", "0.5982213", "0.5973915", "0.5968118", "0.5966487", "0.592047", "0.5905911", "0.5903565", "0.58967364", "0.58928955", "0.5884345", "0.5869751", "0.58680475", "0.58614844", "0.5860105", "0.5858278", "0.58561385", "0.58511263", "0.58404505", "0.58173835", "0.5817261", "0.58162606", "0.5810424", "0.5793633", "0.57935154", "0.57847446", "0.57800317", "0.57796746", "0.5775373", "0.5774603", "0.57724816", "0.57615715", "0.57594407", "0.5751707", "0.5749767", "0.57465833", "0.57440686", "0.5740253", "0.57342815", "0.5724854", "0.57234997", "0.5723293", "0.5723136", "0.57127434", "0.57127434", "0.57127434", "0.57127434", "0.57127434", "0.57127434", "0.5711007", "0.5702313", "0.5699035", "0.5692861", "0.56925255", "0.5689607", "0.56854916", "0.5679353", "0.56618494", "0.5660923", "0.56603134", "0.56564116", "0.56440264", "0.5639954", "0.5638904", "0.563827", "0.56339437", "0.56320316", "0.5628418", "0.56221986", "0.5619922", "0.56184417", "0.5615894", "0.56135684", "0.5612559", "0.5608223", "0.56065273", "0.55965775", "0.5594201", "0.55923474", "0.55904", "0.5589451", "0.55852586" ]
0.6490026
2
========================================================= Utility Sends ingame message that will be visible by other players.
public static void sendMessage(String message) { getBwapi().sendText(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendGameInfoToAll(){\r\n\t\t\r\n\t\tVector<Player> players = lobby.getLobbyPlayers();\t\r\n\t\tString message = \"UDGM\" + lobby.getGameString();\r\n\t\t\r\n\t\tif(!players.isEmpty()){\r\n\t \tfor(int i=0; i<players.size(); i++){\t \t\t\r\n\t \t\tsendOnePlayer(players.get(i), message);\t \t\t\r\n\t \t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void tellPlayer(String message) {\n\t\tSystem.out.println(message);\n\t}", "public void sendNameInfoToAll(){\r\n\t\t\r\n\t\tVector<Player> players = lobby.getLobbyPlayers();\t\r\n\t\tString message = \"UDNM\" + lobby.getNameString();\r\n\t\t\r\n\t\tif(!players.isEmpty()){\r\n\t \tfor(int i=0; i<players.size(); i++){\t \t\t\r\n\t \t\tsendOnePlayer(players.get(i), message);\t \t\t\r\n\t \t}\r\n\t\t}\r\n\t}", "public void printVictoryMessage() { //main playing method\r\n System.out.println(\"Congrats \" + name + \" you won!!!\");\r\n }", "public void playHoomans() {\r\n System.out.println(\"Thanks for killing each other, human!\");\r\n }", "private void sendMessage(String message){\n\t\ttry{\n\t\t\toutput.writeObject(\"Punk Ass Server: \" + message);\n\t\t\toutput.flush();\n\t\t\tshowMessage(\"\\nPunk Ass Server: \" + message); \n\t\t}catch(IOException ioe){\n\t\t\tchatWindow.append(\"\\n Message not sent, try again or typing something else\");\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Override\n public void sendChatMessage(EntityPlayer player) {\n }", "public void doSendMsg() {\n FacesContext fctx = FacesContext.getCurrentInstance();\n HttpSession sess = (HttpSession) fctx.getExternalContext().getSession(false);\n SEHRMessagingListener chatHdl = (SEHRMessagingListener) sess.getAttribute(\"ChatHandler\");\n if (chatHdl.isSession()) {\n //TODO implement chat via sehr.xnet.DOMAIN.chat to all...\n if (room.equalsIgnoreCase(\"public\")) {\n //send public inside zone\n chatHdl.sendMsg(this.text, SEHRMessagingListener.PUBLIC, moduleCtrl.getLocalZoneID(), -1, -1);\n } else {\n chatHdl.sendMsg(this.text, SEHRMessagingListener.PRIVATE_USER, moduleCtrl.getLocalZoneID(), -1, curUserToChat.getUsrid());\n }\n this.text = \"\";\n }\n //return \"pm:vwChatRoom\";\n }", "public void outputMessage(String gameMessage){\n System.out.println(gameMessage);\n }", "private void sendMessage(String message){\n try{\n output.writeObject(nickname+\" : \" + message);\n output.flush();\n showMessage(\"\\n\"+nickname+\" : \" + message);\n }catch(IOException ioException){\n chatWindow.append(\"\\n Oops! Something went wrong!\");\n }\n }", "private void sendMessage(CommandSender p, String msg) {\n\t\tif (p instanceof Player) {\n\t\t\tif (!((Player) p).isOnline()) return;\n\t\t}\n\t\t_.msg(p, GameMode.Sonic, msg);\n\t}", "public void sendChat(String message) {\n\t\tenqueue(\"PRIVMSG #\"+Executable.targetChannel+\" :imGlitch \"+message);\n\t}", "public abstract void sendPrivateMessage(String nickname, String message);", "public String callPlayer() {\n\t\treturn \"OVER HERE!!\";\n\t}", "public abstract void sendConfirmationMessage(Player player);", "public void sendChat(String client, String message) {\n\t\t//enqueue(\"PRIVMSG #\"+myself+\" :.w \"+client + \" imGlitch \" + message); //whisper\n\t\tenqueue(\"PRIVMSG #\"+Executable.targetChannel+\" :imGlitch (@\"+client + \") \" + message);\n\t}", "public void send_message(){\n logical_clock++;\n System.out.println(\"Send Message Clock:\" +logical_clock);\n encrypt(logical_clock);\n\n }", "void notifyPlayerJoined(String username);", "public void notifyTurn(String name) {\n if(name.equals(username) && !(client.getPlayer() instanceof ComputerPlayer)) {\n JOptionPane.showMessageDialog(frame, \"It's your turn!\");\n } else if(!(client.getPlayer() instanceof ComputerPlayer)) {\n JOptionPane.showMessageDialog(frame, \"It's \" + name + \"'s turn!\");\n }\n inventoryArea.append(\"\\n\\nIt's \" + name + \"'s turn\");\n }", "static private void TalkTo() {\n if (BSChristiansen.getCurrentRoom() == currentRoom) {\n System.out.println(BSChristiansen.getDescription() + \", yet he still gives you good advice:\\n\");\n System.out.println(BSChristiansen.getDialog(0));\n System.out.println(\"\");\n woundedSurvivor();\n } else if (mysteriousCrab.getCurrentRoom() == currentRoom && inventory.getInventory().containsKey(\"Shroom\")) {\n System.out.println(mysteriousCrab.getDescription() + \"\\n\" + mysteriousCrab.getDialog(0));\n } else {\n System.out.println(\"There is nobody to communicate with in this Room\");\n }\n\n }", "public void clientShout(String message) {\n\t\tfor (final Player player : this.players) {\n\t\t\tplayer.sendMessage(message);\n\t\t}\n\t}", "public void sendMessage() {\n\t\tString myPosition=this.agent.getCurrentPosition();\n\t\tif (myPosition!=null){\n\t\t\t\n\t\t\tList<String> wumpusPos = ((CustomAgent)this.myAgent).getStenchs();\n\t\t\t\n\t\t\tif(!wumpusPos.isEmpty()) {\n\t\t\t\tList<String> agents =this.agent.getYellowpage().getOtherAgents(this.agent);\n\t\t\t\t\n\t\t\t\tACLMessage msg=new ACLMessage(ACLMessage.INFORM);\n\t\t\t\tmsg.setSender(this.myAgent.getAID());\n\t\t\t\tmsg.setProtocol(\"WumpusPos\");\n\t\t\t\tmsg.setContent(wumpusPos.get(0)+\",\"+myPosition);\n\t\t\t\t\n\t\t\t\tfor(String a:agents) {\n\t\t\t\t\tif(this.agent.getConversationID(a)>=0) {\n\t\t\t\t\t\tif(a!=null) msg.addReceiver(new AID(a,AID.ISLOCALNAME));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.agent.sendMessage(msg);\n\t\t\t\tthis.lastPos=myPosition;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "private void sendGameCommand(){\n\n }", "@Override\r\n public void sendClientGame(ClientGame clientGame) {\r\n\r\n //System.out.println(\"Invio \"+clientGame+clientGame.getReserve()+\" a \"+username);\r\n ClientGameNetObject clientGameNetObject = new ClientGameNetObject(MessageHeaderEnum.CLIENTGAME.toString(),clientGame);\r\n //System.out.println(clientGameNetObject+\" : \"+clientGameNetObject.getClientGame().getReserve()+\" : \"+clientGame.getActivePlayerUsername());\r\n sendObject(clientGameNetObject);\r\n }", "public void sendMessage(String msg) {\n Player player = RegionOwn.server.getPlayer(name);\n if (player != null) {\n player.sendMessage(msg);\n } else if (RegionOwn.pm.isPluginEnabled(\"TextPlayer\")) {\n User user = TextPlayer.findUser(name);\n user.sendText(\"Region Security System\", msg);\n }\n }", "public void showMessage(String message);", "public void sendStartGame (){\n connect();\n try{\n doStream.writeUTF(\"GAME_START\");\n doStream.writeUTF(currentUser.getUserName());\n\n } catch (IOException e){\n e.printStackTrace();\n }\n disconnect();\n }", "public static void privateMessage(Player fromPlayer, Player toPlayer, String[] message) {\n PlayerDataObject fromPDO = PlayerManager.getPlayerDataObject(fromPlayer);\n PlayerDataObject toPDO = PlayerManager.getPlayerDataObject(toPlayer);\n //target.sendMessage(ChatColor.DARK_GRAY + \"[\" + player.getFriendlyName() + ChatColor.DARK_GRAY + \" > you]: \" + ChatColor.WHITE + String.join(\" \", Arrays.copyOfRange(arg3, 1, arg3.length)).trim());\n //player.sendMessage(ChatColor.DARK_GRAY + \"[You > \" + target.getDisplayName() + ChatColor.DARK_GRAY + \"]: \" + ChatColor.WHITE + String.join(\" \", Arrays.copyOfRange(arg3, 1, arg3.length)).trim());\n ComponentBuilder toComp = new ComponentBuilder(ChatColor.DARK_GRAY + \"[\" + fromPDO.getFriendlyName() + ChatColor.DARK_GRAY + \" > you]\" + ChatColor.WHITE + \":\");\n toComp.event(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(\"PM \" + fromPDO.getPlainNick()).create()));\n toComp.event(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, \"/pm \" + fromPDO.getName() + \" \"));\n toComp.append(\" \").reset();\n \n ComponentBuilder fromComp = new ComponentBuilder(ChatColor.DARK_GRAY + \"[You > \" + toPDO.getDisplayName() + ChatColor.DARK_GRAY + \"]\" + ChatColor.WHITE + \":\");\n fromComp.event(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(\"PM \" + toPDO.getPlainNick()).create()));\n fromComp.event(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, \"/pm \" + toPDO.getName() + \" \"));\n fromComp.append(\" \").reset();\n \n TextComponent messageComp = new TextComponent();\n for (String part : message) {\n if (part.matches(\"^.*(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|].*$\")) {\n messageComp.addExtra(assembleURLComponent(part));\n messageComp.addExtra(\" \");\n } else {\n messageComp.addExtra(part + \" \");\n }\n }\n \n BaseComponent[] toMSG = toComp\n .append(messageComp)\n .create();\n BaseComponent[] fromMsg = fromComp\n .append(messageComp)\n .create();\n \n toPDO.sendMessageIf(toMSG);\n fromPDO.sendMessageIf(fromMsg);\n }", "public void announceToPlayers(String message)\n\t{\n\t\tfor (Creature temp : getCharactersInside())\n\t\t{\n\t\t\tif (temp instanceof PlayerInstance)\n\t\t\t{\n\t\t\t\t((PlayerInstance) temp).sendMessage(message);\n\t\t\t}\n\t\t}\n\t}", "public synchronized void sendPrivateMessageToPlayer(Player player, String message) {\n SlackUser user;\n if (isTestingMode) {\n user = session.findUserByUserName(testingModeUserName);\n } else {\n user = session.findUserByUserName(player.getUserName());\n }\n SlackMessageHandle<SlackChannelReply> openDirectHandle = session.openDirectMessageChannel(user);\n SlackChannel directChannel = openDirectHandle.getReply().getSlackChannel();\n session.sendMessage(directChannel, message, null);\n }", "public static void displayWelcomeMessage(Player player) {\r\n\t\t\r\n\t\t//Insert Blank lines to clear previous chat from other servers\r\n\t\t//or the players last session.\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\t\r\n\t\tString welcomeMessage = \" \\n\" + \" \\n\" + ChatColor.GOLD + \" \" + ChatColor.BOLD \r\n\t\t\t\t+ \"MinePile: \" + ChatColor.WHITE + \"\" + ChatColor.BOLD + \"RPGMMO \" + plugin.getPluginVersion() + \" \\n\" + \r\n\t\t\t\tChatColor.RESET + ChatColor.GRAY + \" http://www.MinePile.com/\" + \" \\n\" + \r\n\t\t\t\t\" \\n\" + \" \\n\";\r\n\t\tplayer.sendMessage(welcomeMessage);\r\n\t}", "public static void inter(Player player, int number, String message) {\n\t\tplayer.getPackets().sendIComponentText(275, number, message);\n\t}", "public void sendJoiningPlayer() {\r\n Player p = nui.getPlayerOne();\r\n XferJoinPlayer xfer = new XferJoinPlayer(p);\r\n nui.notifyJoinConnected();\r\n networkPlayer.sendOutput(xfer);\r\n }", "private void sendCustomMessage(String message, String alli) {\n String frontA = \"V\" + alli;\n String gobbleDeGuck = \"<ID 0><CLR><WIN 0 0 287 31><POS 0 0><SL><S S><BL N><CS 3><GRN><T>\";\n String mid = message;\n String ender = \"</T>\";\n String sendableMsgString = frontA + gobbleDeGuck + mid + ender;\n //\n sendRawMessage(sendableMsgString);\n }", "private void sendPlayerChat1(String s) {\n\t\tc.getPA().sendFrame200(969, 591);\n\t\tc.getPA().sendFrame126(c.playerName, 970);\n\t\tc.getPA().sendFrame126(s, 971);\n\t\tc.getPA().sendFrame185(969);\n\t\tc.getPA().sendFrame164(968);\n\t}", "void sendMessage() {\n\n\t}", "public void sendMessage()\r\n {\r\n MessageScreen messageScreen = new MessageScreen(_lastMessageSent);\r\n pushScreen(messageScreen);\r\n }", "void win() {\n if (_game.isWon()) {\n showMessage(\"Congratulations you win!!\", \"WIN\", \"plain\");\n }\n }", "@Override\n public void youWin(Map<String, Integer> rankingMap) {\n try {\n if (getClientInterface() != null)\n getClientInterface().gameEnded(\"YOU WON, CONGRATS BUDDY!!\", rankingMap);\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending you won error\");\n }\n }", "public void sendToCurrClient ( String message ){\n currClient.send( message );\n ServerConnection[] clients = new ServerConnection[]{client1, client2, client3};\n for(ServerConnection c: clients){\n if(c != currClient && c != null )\n if ( !message.contains(\"You won\") )\n c.send(\"Wait for \" + currClient.getName() + \" to end his turn\" );\n else c.send(\"You lost the match. \" + currClient.getName() + \" won the game.\");\n }\n }", "private void broadcast(String message)\n \t{\n \t\tfor(int i = 0; i < players.length; i++)\n \t\t{\n // PROTOCOL\n \t\t\tplayers[i].sendMessage(message);\n // PROTOCOL\n \t\t}\n \t}", "public void sendMessage(String msg) {\n\t\tplayer.sendMessage(msg);\n\t}", "private void sendHelloMessage(String uName){\n HelloMessage hello = new HelloMessage(uName);\n ni.performSendHello(hello);\n Logger.log(\"Sending Hello to everyone \");\n\n }", "public void youWinByAbandonment() {\n try {\n if (getClientInterface() != null)\n getClientInterface().gameEndedByAbandonment(\"YOU WON BECAUSE YOUR OPPONENTS HAVE ABANDONED!!\");\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending ended by abandonment error\");\n }\n }", "private void sendMessagetoRespectivePlayer(int num) {\n Message msg1;\n if(flag == \"player1\"){\n prevP1 = num;\n int newPositionGroup = num / 10;\n if(winningHoleGroup == newPositionGroup){\n msg1 = p1Handler.obtainMessage(3);\n }\n else if((winningHoleGroup == newPositionGroup-1) || (winningHoleGroup == newPositionGroup+1)){\n msg1 = p1Handler.obtainMessage(4);\n }\n else{\n msg1 = p1Handler.obtainMessage(5);\n }\n p1Handler.sendMessage(msg1);\n }\n else{\n prevP2 = num;\n int newPositionGroup = num / 10;\n if(winningHoleGroup == newPositionGroup){\n msg1 = p2Handler.obtainMessage(3);\n }\n else if((winningHoleGroup == newPositionGroup-1) || (winningHoleGroup == newPositionGroup+1)){\n msg1 = p2Handler.obtainMessage(4);\n }\n else{\n msg1 = p2Handler.obtainMessage(5);\n }\n p2Handler.sendMessage(msg1);\n }\n }", "public void sendGameInfo(Player plr){\r\n\t\t\r\n\t\tString message = \"UDGM\" + lobby.getGameString();\r\n\t\tsendOnePlayer(plr, message);\r\n\t}", "public void displayMessage(String message) {\n gameWindowController.showMessage(message);\n }", "private void sendActionBar(@NonNull final String message) {\n for(UUID playerID : getNewsRecipient()) {\n if(isOnline(playerID)) {\n @NonNull final CraftPlayer player = (CraftPlayer) Bukkit.getPlayer(playerID);\n final String actionMsg = \"{\\\"text\\\":\\\"\" + message + \"\\\"}\";\n final PacketPlayOutChat PACKET = new PacketPlayOutChat(IChatBaseComponent.ChatSerializer.a(actionMsg), (byte) 2);\n player.getHandle().playerConnection.sendPacket(PACKET);\n } else {\n getNewsRecipient().remove(playerID);\n }}\n\n }", "public void tellEveryone(String message) \r\n\t{\r\n\t\tIterator it = Output_Streams_Client.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tPrintWriter writer = (PrintWriter) it.next();\r\n\t\t\t\twriter.println(message);\r\n\t\t\t\tChat.append(\"Sending : \" + message + \"\\n\");\r\n\t\t\t\twriter.flush();\r\n\t\t\t\tChat.setCaretPosition(Chat.getDocument().getLength());\r\n\r\n\t\t\t} \r\n\t\t\tcatch (Exception ex) \r\n\t\t\t{\r\n\t\t\t\tChat.append(\"Mistake to tell everyone \\n\");\r\n\t\t\t}\r\n\t\t} \r\n\t}", "protected boolean processSayTell(String username, String titles, int gameNumber, String message){return false;}", "public String playerWon() {\n\t\tString message = \"Congratulations \"+name+ \"! \";\n\t\tRandom rand = new Random();\n\t\tswitch(rand.nextInt(3)) {\n\t\t\tcase 0:\n\t\t\t\tmessage+=\"Can you stop now? You're too good at this!\";\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tmessage+=\"You OBLITERATED the opponent!\";\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tmessage+=\"You sent them to the Shadow Realm\";\n\t\t}\n\t\treturn message;\n\t}", "static synchronized void SendMessage(String message, ClientHandler user, boolean same) throws IOException\r\n {\r\n String mes = message;\r\n if(!same)\r\n mes = user.username + \": \" + mes;\r\n //System.out.println(mes);\r\n\r\n chatLogWriter.write(mes + \"\\n\");\r\n chatLogWriter.flush();\r\n\r\n for (ClientHandler ch : users)\r\n {\r\n if(!ch.equals(user))\r\n ch.WriteCypherMessage(mes);\r\n else if(same)\r\n ch.WriteCypherMessage(message);\r\n }\r\n }", "void sendMessage(String msg);", "public void playAI() {\r\n // An item has been added to the ticket. Fire an event and let everyone know.\r\n System.out.println(\"You're going to lose foolish human!\");\r\n }", "public void displayMessage(String message){\n gameState = GameState.MESSAGE;\n currentMessage = message;\n notifyObservers();\n currentMessage = \"\";\n }", "private void showTurn()\n {\n if( PlayerOneTurn == true )\n {\n if( messageShown == false )\n {\n JOptionPane.showMessageDialog( null, playerOneName + \"it is your turn.\", \"for playerOne\", JOptionPane.PLAIN_MESSAGE );\n \n }\n }\n else\n {\n if( messageShown == false )\n {\n JOptionPane.showMessageDialog( null, playerTwoName + \"it is your turn.\", \"for playerTwo\", JOptionPane.PLAIN_MESSAGE );\n \n }\n }\n }", "public void notify(CommandSender player, String message) {\n\t\tplayer.sendMessage(ChatColor.GRAY + \"[\" + ChatColor.GOLD + \"BattleKits\" + ChatColor.GRAY + \"]\" + ChatColor.YELLOW + message);\n\t}", "@Override\n\tpublic void execute() {\n\t\t\n\t\tif (GamesHandler.test) {\n\t\t\tserverModel = ServerFacadeTest.getSingleton().getGameModel(gameID);\n\t\t} else {\n\t\t\tserverModel = ServerFacade.getSingleton().getGameModel(gameID);\n\t\t}\n\t\t\n\t\tPlayer player = serverModel.getPlayers().get(sender);\n\t\tDevCardList playerOldDevCards = player.getOldDevCards();\n\t\t\n\t\tplayerOldDevCards.setRoadBuilding(playerOldDevCards.getRoadBuilding() - 1);\n\t\t\n\t\tserverModel.getMap().addRoad(new Road(sender, spot1));\n\t\tserverModel.getMap().addRoad(new Road(sender, spot2));\n\t\t\n\t\tplayer.setRoads(player.getRoads() - 2);\n\t\t\n\t\tplayer.setPlayedDevCard(true);\n\t\t\n\t\tMessageLine line = new MessageLine();\n\t\tString username = player.getName();\n\t\tif(username.toLowerCase().equals(\"ife\") || username.toLowerCase().equals(\"ogeorge\")){\n\t\t\tline.setMessage(\"Ife built a couple of roads to try to catch up with Paul, but Daniel always wins anyway\");\n\t\t}\n\t\telse{\n\t\t\tline.setMessage(username + \" built a couple roads with a road building development card\");\n\t\t}\n//\t\tline.setMessage(username + \" built a couple roads with a road building development card\");\n\t\tline.setSource(username);\n\t\tserverModel.getLog().addLine(line);\n\t}", "@Override\n public void gameOver() {\n messagePanel.showMessage(image);\n setEnabled(false);\n }", "public synchronized void sendPublicMessageToPlayer(Player recipient, String message) {\n session.sendMessage(gameChannel, recipient.getUserName() + \", \" + message,null);\n }", "public void notify(Player player, String message) {\n\t\tplayer.sendMessage(ChatColor.GRAY + \"[\" + ChatColor.GOLD + \"BattleKits\" + ChatColor.GRAY + \"]\" + ChatColor.YELLOW + message);\n\t}", "void messageSent();", "public void talk() throws IOException, InterruptedException{\n\t\ttoServer.println(\"PICKUP\");\n\t\ttoServer.println(\"HELLO\");\n\t\ttoServer.println(\"LOOK\");\n\t\twhile (!gameOver){\n\t\t\tThread.sleep(500);\n\t\t\ttoServer.println(queue.take());\n\t\t\ttoServer.println(\"LOOK\");\n\t\t}\n\t}", "@FXML\n private void sendMessage(ActionEvent actionEvent) {\n String playerName = RiskMain.getInstance().getDomain().getPlayerName();\n System.out.println(messageInput.getText());\n String text = playerName + \": \" + messageInput.getText();\n if (RiskMain.getInstance().getDomain().isServer()) {\n this.serverInterface = RiskMain.getInstance().getDomain().getServer();\n this.serverInterface\n .sendMessageChat(RiskMain.getInstance().getDomain().getPlayerName(),\n messageInput.getText(), recipientList.getValue());\n } else {\n this.clientPlayerInterface = RiskMain.getInstance().getDomain().getClient();\n this.clientPlayerInterface.sendMessageChat(RiskMain.getInstance().getDomain().getPlayerName(),\n messageInput.getText(), recipientList.getValue());\n }\n }", "private void sendAIUIMessage(String message) {\n AIUIMessage msg = new AIUIMessage(AIUIConstant.CMD_WRITE, 0, 0, \"data_type=text\", message.getBytes());\n mAiuiAgent.sendMessage(msg);\n }", "public void sendMessage(int value, String uname, String msg) {\n\t\t\tif (value == 1) {\n\t\t\t\toutput.println(uname + \" : \" + msg);\n\t\t\t} else if (value == 3) {\n\t\t\t\toutput.println(\"Server: The User \" + msg + \" does not Exis!!\");\n\t\t\t} else if (value == 5) {\n\t\t\t\toutput.println(\"Server: Private Message to yourself!\");\n\t\t\t} else {\n\t\t\t\toutput.println(uname + \"(Private)\" + \" : \" + msg);\n\t\t\t}\n\t\t}", "public static void main(String[] args) {\r\n\t\tint portNumber = 1500;\r\n\t\tString serverAddress = \"localhost\";\r\n\t\tString userName = \"Anonymous\";\r\n\t\tint type = 1;\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Enter Character Name: \");\r\n\t\tuserName = scan.nextLine();\r\n\t\tSystem.out.println(\"Type '1' to be a warrior\");\r\n\t\tSystem.out.println(\"Type '2' to be a wizard\");\r\n\t\tSystem.out.println(\"Type '3' to be a paladin\");\r\n\t\ttype = Integer.parseInt(scan.nextLine());\r\n\r\n\t\tswitch(type) {\r\n\t\t\tcase 1:\r\n\t\t\t\tp = new Player(userName, 1);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tp = new Player(userName, 2);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\tp = new Player(userName, 3);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tp = new Player(userName, 1);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tClient client = new Client(serverAddress, portNumber, p);\r\n\t\tif(!client.start())\r\n\t\t\treturn;\r\n\t\t\r\n\t\tSystem.out.println(\"Instructions:\");\r\n\t\tSystem.out.println(\"1. Simply type the message to send broadcast to all active clients\");\r\n\t\tSystem.out.println(\"2. Type 'LIST PARTY' to see who is in the game\");\r\n\t\tSystem.out.println(\"3. Type 'STATUS' to show your stats.\");\r\n\t\tSystem.out.println(\"4. Type 'ENEMIES' to show enemies in room\");\r\n\t\tSystem.out.println(\"5. Type 'TURN' to show your parties remaining turns.\");\r\n\t\tSystem.out.println(\"6. Type 'ATTACK X' where X is the enemy target.\");\r\n\t\tSystem.out.println(\"7. Type 'QUIT' to close the game\\n\");\r\n\t\t\r\n\t\twhile(true) {\r\n\t\t\tSystem.out.print(\"> \");\r\n\t\t\tString msg = scan.nextLine();\r\n\t\t\tif(msg.equalsIgnoreCase(\"QUIT\")) {\r\n\t\t\t\tclient.sendMessage(\"QUIT\");\r\n\t\t\t\tbreak;\r\n\t\t\t}else if(msg.length() > 0){\r\n\t\t\t\tclient.sendMessage(msg);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tscan.close();\r\n\t\tclient.disconnect();\t\r\n\t}", "@Override\n public void showMessage() {\n MessageHandler.getInstance()\n .writeMessage(\"This Base is different! \\n Behold!\");\n Player p = ((RomInntrenger) GameApplication.getInstance()).getClosestPlayer(transform.getGlobalPosition());\n p.getCurrentWeapon().setWeaponBase(cli);\n collider.destroy();\n destroy();\n\n }", "public void sendMessage(String userID, String message){\n\n\t\t// Checking if the user is available before sending the message.\n\n\n\t\tif(chatInstanceMap.containsKey(userID)\n\t\t\t\t&& isLoggedInWithVisgo(userID)){\n\n\t\t\ttry {\n\t\t\t\tchatInstanceMap.get(userID).sendMessage(message);\n\n\n\t\t\t} catch (XMPPException e) {\n\n\t\t\t\tSystem.out.print(\"Problem with sending message :: \" + message);\n\t\t\t\t//e.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void sendMessage() {\n\t\t\n\t}", "public static void generalChat(Player player, String message) {\n BaseComponent[] baseComp = assembleChatMessage(createNamePredicate(player.getName(), player.getDisplayName(), \"\", \":\", ChatColor.WHITE), message);\n broadcast(baseComp);\n }", "public void playerWon()\r\n {\r\n \r\n }", "@Override\n\t\t\t\t\t public void visit(Player player) {\n\t\t\t\t\t\t\tPacketSendUtility.sendPacket(player, SM_SYSTEM_MESSAGE.STR_MSG_HF_ShugoCaravanAppear);\n\t\t\t\t\t }", "public void winMessage() {\r\n\t\tSystem.out.print(\"\\n\\nCongratulations! You've won the game! :D\");\r\n\t\tSystem.exit(0);\r\n\t}", "public void otherSentence()\n {\n // Receive the string from the other player\n if (other == 1)\n {\n record.append(\"Red: \" + theClientChat.recvString() + \"\\n\");\n }\n else\n {\n record.append(\"Yellow: \" + theClientChat.recvString() + \"\\n\");\n }\n }", "public boolean sendHipChatMessage(String hipChatKey, String message) {\n\t\tthrow new NotImplementedException();\n\t}", "boolean hasSendPlayerName();", "private void renderGuiGameOverMessage (SpriteBatch batch)\n\t{\n\t\tfloat x = cameraGUI.viewportWidth / 2;\n\t\tfloat y = cameraGUI.viewportHeight / 2;\n\t\t\n\t\tif (worldController.isGameOver())\n\t\t{\n\t\t\tBitmapFont fontGameOver = Assets.instance.fonts.defaultBig;\n\t\t\tfontGameOver.setColor(1, 0.75f, 0.25f, 1);\n\t\t\t\n\n\t\t\tfontGameOver.draw(batch, \"GAME OVER\", x, y, 1, Align.center, false);\n\t\t\t\n\t\t\tfontGameOver.setColor(1, 1, 1, 1);\n\t\t}\n\t}", "public void requestChat(String otherUsername) {\n System.out.println(\"Requesting chat with \" + otherUsername);\n toServer.println(\"newchat\" + \" \" + username + \" \" + otherUsername);\n toServer.flush();\n }", "public void welcomeToGame() {\r\n System.out.println(\" _____ _____ _ \\n\" +\r\n\" / ____| / ____| | | \\n\" +\r\n\" | (___ _ __ __ _ ___ ___ | | _ __ __ _ __ __ | | ___ _ __ \\n\" +\r\n\" \\\\___ \\\\ | '_ \\\\ / _` | / __| / _ \\\\ | | | '__| / _` | \\\\ \\\\ /\\\\ / / | | / _ \\\\ | '__|\\n\" +\r\n\" ____) | | |_) | | (_| | | (__ | __/ | |____ | | | (_| | \\\\ V V / | | | __/ | | \\n\" +\r\n\" |_____/ | .__/ \\\\__,_| \\\\___| \\\\___| \\\\_____| |_| \\\\__,_| \\\\_/\\\\_/ |_| \\\\___| |_| \\n\" +\r\n\" | | \\n\" +\r\n\" |_| \\n\\n\");\r\n System.out.println(\"=== WELCOME ===\\n\");\r\n System.out.println(\"Welcome to the game\\n\");\r\n System.out.println(\"Intro Blah blah blah\");\r\n System.out.println(\"Intro Blah blah blah\");\r\n System.out.println(\"Intro Blah blah blah\");\r\n System.out.println(\"Intro Blah blah blah\");\r\n }", "private String waitPrint(){return \"waiting for other players...\";}", "public void displayWelcomeMsg();", "void message(String response, GameChatEvent cause) throws InterruptedException, IOException;", "public void sendeLobby();", "public static void sendMessage(String s) {\r\n sendRaw(\"PRIVMSG \" + channel + \" :\" + s + \"\\n\");\r\n Console.writeLine(nick + \": \" + s);\r\n }", "public void talking(){\n System.out.println(\"PetOwner : *says something*\");\n }", "void message(){\n\t\tSystem.out.println(\"Hello dude as e dey go \\\\ we go see for that side\");\n\t\tSystem.out.print (\" \\\"So it is what it is\\\" \");\n\n\t}", "@Override\n public String getMessage() {\n return \" ** I'm a friendly ENEMY! **\";\n }", "public static void sendOK() {\n try {\n Server destServer = ServerState.getInstance().getServers().get(sourceID);\n MessageTransfer.sendServer(\n ServerMessage.getOk( String.valueOf(ServerState.getInstance().getSelfID()) ),\n destServer\n );\n System.out.println(\"INFO : Sent OK to s\"+destServer.getServerID());\n }\n catch(Exception e) {\n System.out.println(\"INFO : Server s\"+sourceID+\" has failed. OK message cannot be sent\");\n }\n }", "void drawMessage(String message);", "public void showMessage(String message) \r\n\t\t{\t\t\t\r\n\t\t}", "public static void WelcomeMessage () {\n System.out.println(\"===============================================\");\r\n System.out.println(\" C O M P U T E R\");\r\n System.out.println(\" S C I E N C E\");\r\n System.out.println(\" R O U L E T T E\");\r\n System.out.println(\"====================================== v1.2 ===\");\r\n System.out.println();\r\n }", "public void messageToAll(String s) {\n\t\tfor(ClientThread player: players) {\n\t\t\tplayer.send(new Package(\"MESSAGE\",s));\n\t\t}\n\t\t\n\t}", "public void displayMessage(String message){\n\n\t\tElement mes = nifty.getScreen(\"hud\").findElementByName(\"MessagePanel\");\n\t\tmes.getRenderer(TextRenderer.class).setText(message);\n\t\tmes.startEffect(EffectEventId.onCustom);\n\t}", "public void doChatMessage(GameServer gameServer, User user, String name, String message) {\n if (message.startsWith(\"/\")) {\n String toSend = \"\";\n if (message.startsWith(\"/help\")) {\n //Todo: do help\n toSend = \"List of all inner chat commands:\\n\" +\n \"/help (Command) --> Gets help for that command\\n\" +\n \"/list [all, online, RankName, lobby, clients, propertys] --> get a list of users that meet the criteria\\n\" +\n \"/ping --> Pong!\";\n }\n if (message.startsWith(\"/list all\")) {\n List<String> toSendList = Authenticate.getUserList();\n //toSend = Authenticate.getUserList();\n for (String string: toSendList) {\n toSend += string + \"\\n\";\n }\n }\n else if (message.startsWith(\"/ping\")) {\n toSend = \"Pong\";\n }\n else if (message.startsWith(\"/list lobby\")) {\n Lobby lobby = user.getCurrentLobby();\n if (lobby != null) {\n List<User> users = lobby.getUsers();\n for (User u: users) {\n toSend += u.chatFormatDisplay() + \"\\n\";\n }\n }\n }\n else if (message.startsWith(\"/list clients\")) {\n if (Authenticate.checkRank(user.getRank(), Rank.Op)) {\n for (ClientWorker w: gameServer.getClients()) {\n toSend += w.toString() + \"\\n\";\n }\n }\n }\n else if (message.startsWith(\"/list propertys\")) {\n if (Authenticate.checkRank(user.getRank(), Rank.Op)) {\n toSend = Settings.listPropertys();\n }\n }\n else if (message.startsWith(\"/changeproperty\")) {\n if (Authenticate.checkRank(user.getRank(), Rank.Op)) {\n String[] split = message.split(\" \");\n Settings.setProperty(split[1], split[2]);\n toSend = \"Changed property: \" + split[1] + \" to \" + split[2] + \".\\n\" + Settings.listPropertys();\n }\n }\n else if (message.startsWith(\"/loadpropertys\")) {\n if (Authenticate.checkRank(user.getRank(), Rank.Op)) {\n Settings.load();\n toSend = \"Loaded propertys.\\n\" + Settings.listPropertys();\n }\n }\n\n else if (message.startsWith(\"/snake\")) {\n if (user.getCurrentLobby() == null) {\n SingleUserChatContext chatContext = new SingleUserChatContext(user, \"Snake-->\" + user.getName(), \"Snake\");\n addNewContext(chatContext);\n SnakeLobby snakeLobby = new SnakeLobby(user, chatContext);\n user.setCurrentLobby(snakeLobby);\n gameServer.lobbys.addNewLobby(snakeLobby);\n snakeLobby.start();\n }\n }\n\n else if (message.startsWith(\"/statesnake\")) {\n if (user.getCurrentLobby() == null) {\n SingleUserChatContext chatContext = new SingleUserChatContext(user, \"Snake-->\" + user.getName(), \"Snake\");\n addNewContext(chatContext);\n StateSnakeLobby snakeLobby = new StateSnakeLobby(user, chatContext);\n user.setCurrentLobby(snakeLobby);\n gameServer.lobbys.addNewLobby(snakeLobby);\n snakeLobby.start();\n }\n }\n\n else if (message.startsWith(\"/leavelobby\")) {\n Lobby lobby = user.getCurrentLobby();\n if (lobby != null) {\n gameServer.lobbys.removeUser(lobby, user);\n toSend = \"Left the lobby\";\n }\n }\n\n// else if (message.startsWith(\"/load\")) {\n// String[] split = message.split(\" \");\n// File file = new File(split[1]);\n// System.out.println(file.exists());\n// if (file.exists()) {\n// try {\n// String in = \"\";\n// BufferedReader reader = new BufferedReader(new FileReader(file));\n// while ((in = reader.readLine()) != null) {toSend += in + \"\\n\";}\n// reader.close();\n// //toSend = in;\n// //Get the chat context, if it exists send the chat message\n// ChatContext chatContext = getContext(name);\n// if (chatContext == null) return;\n// chatContext.sendMessage(toSend);\n// toSend = \"\";\n// }\n// catch (Exception e) {\n// e.printStackTrace();\n// }\n// }\n// }\n\n if (!toSend.isEmpty()) {\n StringWriter stringWriter = new StringWriter();\n new JSONWriter(stringWriter).object()\n .key(\"argument\").value(\"chatmessage\")\n .key(\"name\").value(\"Server-->\" + user.getName())\n .key(\"displayname\").value(\"Server\")\n .key(\"message\").value(toSend)\n .endObject();\n user.clientWorker.sendMessage(stringWriter.toString());\n }\n\n }\n else {\n //Get the chat context, if it exists send the chat message\n ChatContext chatContext = getContext(name);\n if (chatContext == null) return;\n chatContext.sendMessage(user.chatFormatDisplay() + \" \" + message);\n }\n }", "public void display(String message){\n\t\tString temp = message+\"\";\n\t\tString[] parts = temp.split(\"---\");\t\t\n\t\tif (parts[0].equals(\"#quit\")){\n\t\t\ttry{\n\t\t\t\tclient.closeConnection();\n\t\t\t\tSystem.out.println(\"> \" + \"Server: Server has shut down!\");\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Enexpected error while reading from console!\");\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (!(parts[2].equals(client.getUID()) || parts[2].equals(\"*\"))){ // if this message was not meant for me\n\t\t\treturn;\n\t\t}\n\t\telse{ // message was meant for me or everybody\n\t\t\tfor (int i =0; i < blockedList.size(); i++){\n\t\t\t\tif (parts[1].equals(blockedList.get(i))){\n\t\t\t\t\treturn; // the message is from somebody i've blocked\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tswitch (parts[0]){\n\t\t\t\tcase \"#block\":\n\t\t\t\t\tif (parts[3].equals(\"blockInvalid\")){\n\t\t\t\t\t\tSystem.out.println(\"The user you wish to block does not exist\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (parts[3].equals(\"blockSameUser\")){\n\t\t\t\t\t\tSystem.out.println(\"You cannot block yourself!!\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tboolean exists = false;\n\t\t\t\t\t\tfor(int i=0; i<blockedList.size();i++){\n\t\t\t\t\t\t\tif(parts[3].equals(blockedList.get(i))){\n\t\t\t\t\t\t\t\texists = true;\n\t\t\t\t\t\t\t\tSystem.out.println(\"You have already blocked the user: \"+parts[3]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!exists){\n\t\t\t\t\t\t\tblockedList.add(parts[3]);\n\t\t\t\t\t\t\tSystem.out.println(\"You have blocked user: \"+parts[3]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"#unblock\":\n\t\t\t\t\tif (parts[3].equals(\"unblockInvalid\")){\n\t\t\t\t\t\tSystem.out.println(\"The user you wish to unblock does not exist\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (parts[3].equals(\"unblockSameUser\")){\n\t\t\t\t\t\tSystem.out.println(\"You cannot unblock yourself!!\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tboolean exists = false;\n\t\t\t\t\t\tfor(int i=0; i<blockedList.size();i++){\n\t\t\t\t\t\t\tif(parts[3].equals(blockedList.get(i))){\n\t\t\t\t\t\t\t\texists = true;\n\t\t\t\t\t\t\t\tblockedList.remove(i);\n\t\t\t\t\t\t\t\tSystem.out.println(\"You have unblocked user: \"+ parts[3]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!exists){\n\t\t\t\t\t\t\tSystem.out.println(\"The user: \"+parts[3]+\" was not previously blocked!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"#blocked\":\n\t\t\t\t\tboolean exists = false;\n\t\t\t\t\tfor(int i=0; i<whoBlocksMe.size();i++){\n\t\t\t\t\t\tif(parts[3].equals(whoBlocksMe.get(i)))\n\t\t\t\t\t\t\texists = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(!exists) whoBlocksMe.add(parts[3]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"#unblocked\":\n\t\t\t\t\tfor(int i=0;i<whoBlocksMe.size();i++){\n\t\t\t\t\t\tif(parts[3].equals(whoBlocksMe.get(i))){\n\t\t\t\t\t\t\twhoBlocksMe.remove(i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"> \" + parts[1] + \": \" + parts[3]);\n\t\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "public void sendNameInfo(Player plr){\r\n\t\t\r\n\t\tString message = \"UDNM\" + lobby.getNameString();\r\n\t\tsendOnePlayer(plr, message);\r\n\t}", "public void welcomePlayer(Player p);", "private void b_sendActionPerformed(java.awt.event.ActionEvent evt) { \r\n\t\tString nothing = \"\";\r\n\t\tif ((b_sendText.getText()).equals(nothing)) {\r\n\t\t\tb_sendText.setText(\"\");\r\n\t\t\tb_sendText.requestFocus();\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttry {\r\n\t\t\t\ttellEveryone(\"Server\" + \":\" + b_sendText.getText() + \":\" + \"Chat\");\r\n\t\t\t\tPrint_Writer.flush(); // flushes the buffer\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t}\r\n\t\t\tb_sendText.setText(\"\");\r\n\t\t\tb_sendText.requestFocus();\r\n\t\t}\r\n\r\n\t\tb_sendText.setText(\"\");\r\n\t\tb_sendText.requestFocus();\r\n\r\n\t}", "public void sendVoteNotification() {\n\t\t\t\t\tWorld.sendWorldMessage(\"<img=5>[Vote Feed]: colorhere\" + getDisplayName() + \" </col>voted for\" + \n\t\t\t\t\t\t\t\t\t\t\t\"colorhere \"+ voteDisplayAmount +\" Vote Tickets!</col> \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"World votes are now at colorhere\"+ WorldVote.getVotes()+\"</col>.\", false);\t\n\t}", "public void sendInvite(String userName)\n\t{\n\t\tString user = userName.split(\": \")[1];\n\t\tUserBean receiver = null;\n\t\t\n\t\tfor(UserBean u: this.onlineUsers)\n\t\t{\n\t\t\tif(u.getUserName().equals(user))\n\t\t\t{\n\t\t\t\treceiver = u;\n\t\t\t\tSystem.out.println(user);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSocket controlSocket;\n\t\ttry {\n\t\t\tSystem.out.println(\"Setting up connection to: \" + receiver.getIpAddress());\n\t\t\tcontrolSocket = new Socket(receiver.getIpAddress(), Model.controlDataSocketNumber);\n\t\t\tObjectOutputStream toPeer = new ObjectOutputStream(controlSocket.getOutputStream());\n\t\t\tClientMessage c = new ClientMessage();\n\t\t\tc.setCommand(\"INVITE\");\n\t\t\tc.setUser(new UserBean(this.hostName, this.userName, this.ipAddress));\n\t\t\tthis.piece = this.generatePiece();\n\t\t\tc.setPiece(piece);\n\t\t\t\n\t\t\tthis.opponent = receiver;\n\t\t\t\n\t\t\ttoPeer.writeObject(c);\n\t\t\t\n\t\t\tcontrolSocket.close();\n\t\t\t\n\t\t} catch (IOException e) {\t\t\t\n\t\t\te.printStackTrace();\n\t\t} \n\n\t}" ]
[ "0.70041174", "0.69627184", "0.667426", "0.6673806", "0.66530895", "0.66454285", "0.6607921", "0.6507117", "0.64629775", "0.64344114", "0.63857204", "0.6372061", "0.6368359", "0.63651687", "0.6340596", "0.6306788", "0.6282045", "0.6251836", "0.6249998", "0.6244156", "0.6223769", "0.6208339", "0.6169697", "0.6162103", "0.61615217", "0.6149317", "0.61471546", "0.6139271", "0.61281055", "0.61154556", "0.6113183", "0.6088295", "0.607484", "0.60748243", "0.60687405", "0.6062398", "0.60616356", "0.6060898", "0.6058657", "0.6039175", "0.6028154", "0.60217893", "0.6020825", "0.6020087", "0.6011067", "0.60042036", "0.6003547", "0.5999742", "0.5955634", "0.59537375", "0.59535", "0.59353757", "0.59326977", "0.59233135", "0.5922411", "0.59093523", "0.5902921", "0.58866787", "0.5883429", "0.5875972", "0.5869461", "0.5865734", "0.5861081", "0.58551514", "0.5851608", "0.5840016", "0.58129126", "0.5804469", "0.57997996", "0.57983404", "0.5795973", "0.5794909", "0.5792849", "0.5792406", "0.5786693", "0.5785467", "0.5768114", "0.5763222", "0.5761694", "0.5755191", "0.5751608", "0.5743509", "0.5740898", "0.57401747", "0.57376146", "0.57355076", "0.5733365", "0.57294494", "0.57271063", "0.5725324", "0.572366", "0.5722783", "0.57166106", "0.5715926", "0.57154113", "0.57149523", "0.57142603", "0.5711143", "0.57072425", "0.5706413", "0.5704756" ]
0.0
-1
konstruktor koji prima konktetne vrijednosti za x, y i radius
Circle2D(double newX, double newY, double newRadius){ this.x = newX; this.y = newY; this.radius = newRadius; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getRadius();", "public Coordinate getCircle();", "public double getRadius(){return radius;}", "public double getCircleRadius();", "long getRadius();", "public double getRadius() { return radius; }", "int getRadius();", "public int getRadius() { return radius; }", "public abstract float getRadius();", "public abstract float getRadius();", "public double getRadius(){\n return radius;\n }", "private double getRadius() {\n\t\treturn Math.min(getWidth(), getHeight()) / 2.0 * RADIUS_MODIFIER;\n\t}", "public abstract double getRadiusX();", "public double getRadius(){\r\n return radius;\r\n }", "public Circle() {\r\n this.radius = 0.0;\r\n this.center = new Point();\r\n }", "public double getRadius(){\n return r;\n }", "public double getRadius() {\n return radius; \n }", "public abstract double getBoundingCircleRadius();", "public double getRadius(){\n\t\treturn radius;\n\t}", "public double getRadius()\r\n {\r\n return radius;\r\n }", "public void setRadius(int radius);", "public double getRadius() {\n return radius;\n }", "public String toString()\r\n {\r\n return \"Center = \" + \"[\" + x + \", \" + y + \"]\" +\r\n \"; Radius = \" + radius;\r\n }", "public Circle(double radius){ // 2 constructor\n this.radius = radius;\n this.color = DEFAULT_COLOR;\n }", "public Circle(double radius){\n// Set the this.X to the args\n//Force any var radius < 0 to 0\n this.radius = Math.max(0, radius);\n }", "public double getRadius()\r\n\t{\r\n\t\treturn radius;\r\n\t}", "public int radius()\n\t{\n\t\treturn radius;\n\t}", "public Circle(double radius){\n this.radius = radius;\n }", "public int getRadius() {\n return radius;\n }", "public float getRadius() {\n return radius;\n }", "public KreisGrafik(int radius) {\n\t\tthis.setRadius(radius);\n\t}", "public double getRadius() {\n return radius;\n }", "public double getRadius() {\n return radius;\n }", "public double getRadius() {\n return radius;\n }", "public double getRadius() {\n return radius;\n }", "public double getRadius() {\n return radius;\n }", "public double getRadius() {\n return radius;\n }", "public double getRadius() {\n return radius;\n }", "public double getRadius() {\n return radius;\n }", "public double getRadius() {\n return radius;\n }", "public double getRadius() {\n return radius;\n }", "public Circle (double jejari, double x) {\r\n\t \tthis.jejari = jejari;\r\n\t \tthis.x = x;\r\n\t \tbilObjekWujud++;\r\n\t }", "public Porteur_img_eau(int x, int y, int rayon){\n Circle fond_eau = new Circle(x,y, rayon);\n fond_eau.setFill(Color.BLUE);\n this.getChildren().add(fond_eau);\n this.setLayoutX(x);\n this.setLayoutY(y);\n\n }", "public int getRadius_() {\r\n\t\treturn radius_;\r\n\t}", "public int getRadius()\n\t{\n\t\treturn radius;\n\t}", "public Circle(double r)\n {\n setRad(r);\n\n }", "public double getCircunference(){\n return 2.0 * radius * Math.PI; \n }", "public Circle() {\n radius = 1.0;\n color = \"red\";\n }", "public double getRadius() { return radius.get(); }", "public double getRadius() {\n double x = radius;\n return x;\n\n }", "private void configureLocation() {\n radius = size / 2;\n circleX = bounds.left + radius;\n circleY = bounds.top + radius;\n }", "public double getRadius() {\r\n\t\treturn radius;\r\n\t}", "public float getRadius()\n {\n return _radius;\n }", "@Override\r\n\tpublic double getRadius() {\n\t\treturn 0;\r\n\t}", "public Circle() {\n radius = 1.0;\n color = \"red\";\n }", "public Circle(double jejari){\r\n\t\t// this();//panggil default constructor\r\n\t\t this.jejari = jejari;\r\n\t\t x = 5;\r\n\t\t// this(jejari, 59); //panggil constructor 2 parameter\r\n\t\tbilObjekWujud++;\r\n\t}", "public float radius() {\n\t\treturn radius;\n\t}", "public int getFixedRadius ( ) {\r\n\t\treturn plot_radius;\r\n\t}", "public abstract double getRadiusY();", "public Circle(double radius){\n\t\tradius =this.radius;\n\t\tcolor =\"Red\";\n\t}", "public int getRadius() {\n\t\treturn radius;\n\t}", "public int getRadius()\n {\n return this.radius;\n }", "public Circle(Point o, double r) {\n origin = new Point(o);\n radius = r;\n }", "public int getRadius() {\n return radius_;\n }", "public double getRadius() {\r\n\t\treturn _radius;\r\n\t}", "public Circle(double r) {\n this.r = r;\n this.center = new Point(0,0);\n }", "SimpleCircle() {\n\t\tradius=1;\n\t}", "public void plotinit() {\r\n\r\n\t\tfloat dx;\r\n\t\tfloat dy;\r\n\t\tfloat d;\r\n\r\n\t\tdy = ymax - ymin;\r\n\t\tdx = xmax - xmin;\r\n\t\td = (dx > dy ? dx : dy) * 1.1f;\r\n\r\n\t\tpxmin = xmin - (d - dx) / 2.0f;\r\n\t\tpxmax = xmax + (d - dx) / 2.0f;\r\n\t\tpymin = ymin - (d - dy) / 2.0f;\r\n\t\tpymax = ymax + (d - dy) / 2.0f;\r\n\r\n\t\tcradius = (pxmax - pxmin) / 350.0f;\r\n\r\n\t}", "private static void calculateRadiusforCircle()\r\n\t{\r\n\t\tsensorRadius = Math.sqrt((double) averageDensity / (double) numberOfSensors);\r\n\t\tsensorRadius = sensorRadius * unitSizeForCircle;\r\n\t\tnoOfCellRowsCoulmns = (int) (unitSizeForSquare / sensorRadius);\r\n\t\tcell = new Cell[noOfCellRowsCoulmns + 2][noOfCellRowsCoulmns + 3];\r\n\t\tinitializeCell(noOfCellRowsCoulmns + 2, noOfCellRowsCoulmns + 3);\r\n\t}", "public double getRadius() {\n\t\treturn radius;\n\t}", "public double getRadius() {\n\t\treturn radius;\n\t}", "boolean hasRadius();", "boolean hasRadius();", "private void addCircle() {\n\t\tdouble r = getRadius();\n\t\tadd(new GOval(getWidth() / 2.0 - r, getHeight() / 2.0 - r, 2 * r, 2 * r));\n\t}", "public int getRadius() {\r\n\t\treturn this.radius;\r\n\t}", "public int getWidth(){ return widthRadius; }", "private double findOuterRadius(double x, double y) {\n\t\tdouble dX = (lastClick.getX() - x);\n\t\tdouble dY = (lastClick.getY() - y);\n\t\tdouble dSquared = Math.pow(dX, 2) + Math.pow(dY, 2);\n\t\tdouble r = Math.sqrt(dSquared)/2.0;\n\t\tif (dX > 0) r = -r;\n\t\treturn r;\n\t}", "private void drawCenter(double x, double y) {\n\t\tdouble r = findCenterRadius(x, y);\n\t\tGPoint corner = findCenterCorner(r, x ,y);\n\t\tcenterCircle = new GOval(2*r,2*r);\n\t\tadd(centerCircle, corner);\n\t\t//GPoint center = new GPoint(corner.getX() - r, corner.getY() - r );\n\t}", "public int getRadius() {\r\n\t\treturn majorAxis;\r\n\t}", "@Test\n\tpublic void testCircleRadiusOne()\n\t{\n\t\tfinal EllipseRegionOfInterest ellipse = new EllipseRegionOfInterest( 2 );\n\t\tellipse.setOrigin( new double[] { 1, 1 } );\n\t\tellipse.setRadius( 1 );\n\t\ttestEllipse( ellipse );\n\n\t}", "private void setPenRadius() {\n\t}", "public Circle(double r)\r\n\t{\r\n\t\tradius=r;\r\n\t}", "public float getSphereRadius();", "public double getRadius() {\n\t\treturn r;\n\t}", "public Circle(int x, int y, int r) {\n super(x-r,y-r);\n name = \"Circle\";\n width = 2*r;\n height = 2*r;\n radius = r;\n }", "private double findCenterRadius(double x, double y) {\n\t\tdouble dX = Math.abs(lastClick.getX() - x);\n\t\tdouble dY = Math.abs(lastClick.getY() - y);\n\t\tdouble dSquared = Math.pow(dX, 2) + Math.pow(dY, 2);\n\t\tdouble r = Math.sqrt(dSquared) / 2.0;\n\t\treturn r;\n\t}", "public Circle(){\r\n\t \t// System.out.println(\"Default constructor dipanggil.\");\r\n\t \tjejari = 1;\r\n\t \tx = 5;\r\n\t \tbilObjekWujud++;\r\n\t }", "Double getMinCurvatureRadius();", "public Circle() {\n\t\tr=0.0; //by defalut set radius to something so we have a circle \n\t}", "public int getRadius() {\n return radius_;\n }", "public Circle(double r) {\n radius = r;\n color = \"red\";\n }", "public Circle(double r) {\n radius = r;\n color = \"red\";\n }", "public Double getRadius() {\n return this.radius;\n }", "public void setRadius(double n)\r\n\t{\r\n\t\tradius = n;\r\n\t}", "public Circle(){\n\t\t\n\t\tradius = 1.0;\n\t\tcolor =\"Red\";\n\t}", "public void setRadius(double radius){\n this.radius = radius;\n }", "public void setRadius(int r) {\n this.radius = r;\n }", "public Circle(int x, int y, int r, Color c) {\n super(x-r,y-r);\n color = c;\n name = \"Circle\";\n width = 2*r;\n height = 2*r;\n radius = r;\n }", "int getBallRadius();", "public DoubleProperty radiusProperty() { return radius; }", "SimpleCircle() {\n\t\tradius = 1;\n\t}" ]
[ "0.7137577", "0.6995768", "0.69618165", "0.69439656", "0.69367886", "0.69087917", "0.6868397", "0.68683463", "0.68593335", "0.68593335", "0.6819599", "0.6719856", "0.6700105", "0.6675351", "0.6670556", "0.66372806", "0.66293293", "0.66067296", "0.658956", "0.65590936", "0.6539467", "0.6513938", "0.6502885", "0.64949536", "0.64681554", "0.64664763", "0.6463641", "0.6448719", "0.6442159", "0.643377", "0.6416074", "0.6385245", "0.6385245", "0.6385245", "0.6385245", "0.6385245", "0.6385245", "0.6385245", "0.6385245", "0.6385245", "0.6385245", "0.63768524", "0.6373061", "0.63591576", "0.6357552", "0.63561296", "0.63513255", "0.63498473", "0.63470143", "0.63397217", "0.63362366", "0.6333707", "0.63336354", "0.6329306", "0.6315513", "0.6308481", "0.6305053", "0.63028914", "0.62908006", "0.6284265", "0.6268934", "0.62665015", "0.62624437", "0.62553126", "0.6251406", "0.6239093", "0.6232874", "0.6230681", "0.6223271", "0.62172186", "0.62172186", "0.62146556", "0.62146556", "0.6212148", "0.6209927", "0.62021136", "0.61981183", "0.6189436", "0.61889094", "0.61879176", "0.6179703", "0.6175163", "0.61729604", "0.6172097", "0.6171171", "0.6166122", "0.61588025", "0.61503917", "0.61480415", "0.6142171", "0.6139601", "0.6121473", "0.61162525", "0.611505", "0.61086667", "0.61051077", "0.6101677", "0.6099255", "0.6094596", "0.60878634", "0.608449" ]
0.0
-1
/ metod koji racuna povrsinu kruga
public double getArea(){ double povrsina = PI * this.radius * this.radius; return povrsina; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "void Hrana(String start,String cil, char druh){\n\t\tint iStart = index(start);\n\t\tint iCil = index(cil);\n\t\t\n\t\tif(iStart == -1)\n\t\t\treturn;\n\t\tif(iCil == -1)\n\t\t\treturn;\n\t\t//orientovana hrana\n\t\tif(druh == '-' || druh == '>'){\n\t\t\tmatice[iStart][iCil] = 1;\n\t\t\tvrchP[iStart].pocetSousedu = vrchP[iStart].pocetSousedu +1;\n\t\t}\n\t\t\n\t\t//neorientovana\n\t\tif(druh == '-'){\n\t\t\tmatice[iCil][iStart] = 1;\n\t\t\tvrchP[iCil].pocetSousedu = vrchP[iCil].pocetSousedu +1;\t\n\t\t}\n\t\t\n\t\tHrana pom = new Hrana(start,cil,'W',druh);\n\t\thrana[pocetHr] = pom;\n\t\tpocetHr++;\n\t\t\n\t\t\n\t}", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "public PregledPoruka() {\n preuzmiMape();\n preuzmiPoruke();\n }", "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }", "public void urciStupneVrcholu(){\n\t\tfor(int i = 0;i < vrchP.length; i++){\n\t\t\tstupenVrcholu(vrchP[i].klic);\n\t\t}\n\t}", "private static PohonAVL seimbangkanKembaliKanan(PohonAVL p) {\n //...\n // Write your codes in here\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }", "public static void main(String [] agrs){\n\r\n\r\n Kaczka gumowa = new GumowaKaczka();\r\n gumowa.ustawKwakanieInterfejs(2);\r\n gumowa.ustawLatanieInterfejs(new SzybkieLatanie());\r\n gumowa.wyswietl();\r\n System.out.println(gumowa.kwacz());\r\n System.out.println(gumowa.lec());\r\n Kaczka dzika = new DzikaKaczka();\r\n // dzika.ustawLatanieInterfejs(1);\r\n dzika.wyswietl();\r\n System.out.println(dzika.lec());\r\n System.out.println(dzika.kwacz());\r\n\r\n\r\n// Polecenie[] polecenieWlacz;\r\n// Polecenie[] polecanieWylacz;\r\n// Polecenie polecenieWycofaj;\r\n//\r\n// polecanieWylacz = new Polecenie[7];\r\n// polecenieWlacz = new Polecenie[7];\r\n//\r\n// Swiatlo swiatlo = new Swiatlo();\r\n// polecanieWylacz[0] = new PolecenieWylaczSwiatlo(swiatlo);\r\n// polecenieWlacz[0] = new PolecenieWlaczSwiatlo(swiatlo);\r\n//\r\n//\r\n//\r\n//\r\n// polecenieWlacz[0].wykonaj();\r\n// polecanieWylacz[0].wykonaj();\r\n// polecenieWlacz[0].wykonaj();\r\n// polecenieWycofaj = polecanieWylacz[0];\r\n//// polecenieWycofaj = polecenieWlacz[0];\r\n// polecenieWycofaj.wykonaj();\r\n// polecenieWycofaj.wykonaj();\r\n//// polecenieWycofaj.wycofaj();\r\n//\r\n// WiezaStereo wiezaStereo = new WiezaStereo();\r\n//\r\n// polecenieWlacz[1] = new PolecenieWiezaStereoWlaczCD(wiezaStereo);\r\n//\r\n// polecenieWlacz[1].wykonaj();\r\n\r\n\r\n\r\n }", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public int AmbosHijosR() { //Hecho por mi\n return AmbosHijosR(raiz);\n }", "private TreeNode napraviStabloUtil(List<TreeNode> cvorovi, int pocetni, int krajnji) {\n// osnovni slučaj\n if (pocetni > krajnji) {\n return null;\n }\n /* Nadji srednji element i proglasi ga korenom */\n int mid = (pocetni + krajnji) / 2;\n TreeNode cvor = cvorovi.get(mid);\n /* Koristeci indeks u infiks obilasku\n* konstruiši levo i desno podstablo */\n cvor.left = napraviStabloUtil(cvorovi, pocetni, mid - 1);\n cvor.right = napraviStabloUtil(cvorovi, mid + 1, krajnji);\n return cvor;\n }", "private SolmuKaksiKolme succSolmu2(SolmuKaksiKolme s) {\n //seuraaja ei tarpeen\n if (s.getOikea() == null) {\n return null;\n }\n\n SolmuKaksiKolme it = s.getOikea();\n\n while (it.getVasen() != null) {\n it = it.getVasen();\n }\n return it;\n }", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "private String vylozZvieraZVozidla() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz index zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Zivocich ziv = zoo.vylozZivocicha(pozicia-1);\r\n if (ziv == null) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n }\r\n zoo.pridajZivocicha(ziv);\r\n return \"Zviera \" + ziv\r\n + \"\\n\\tbolo vylozene z prepravneho vozidla\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "private static void etapa3Urna() {\n\t\t\n\t\turna.contabilizarVotosPorCandidato(enderecoCandidatos);\n\t\t\n\t}", "@Override\n\tpublic IVector krizaj(IVector prva, IVector druga) {\n\t\treturn null;\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Unesite tezinu(u gramima) prvog pakovanja: \");\r\n\t\tdouble gram1=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite cijenu prvog pakovanja: \");\r\n\t\tdouble km1=provjera();\r\n\r\n\t\tSystem.out.println(\"Unesite tezinu(u gramima) drugog pakovanja: \");\r\n\t\tdouble gram2=provjera();\r\n\r\n\t\tSystem.out.println(\"Unesite cijenu drugog pakovanja: \");\r\n\t\tdouble km2=provjera();\r\n\t\t\r\n\t\t\r\n\t\t//na kraju ih uporedimo i onaj sa manjom ukupnom cijenom je jeftiniji tj povoljniji\r\n\t\tif((km1/gram1)<(km2/gram2)){\r\n\t\t\tSystem.out.println(\"Prvo pakovanje je povoljnije!!!\");\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Drugo pakovanje je povoljnije!!!\");\r\n\t\t}\r\n\t\t\r\n\t\tunos.close();\r\n\t}", "private boolean spoji(int direkcija) {\r\n\t\tint pocetna;\r\n\t\tint pomak;\r\n\t\tboolean spojeno = false;\r\n\t\tboolean bilo_promjene = false;\r\n\t\t\r\n\t\t// pomjeranje desno i lijevo\r\n\t\tif(direkcija == 1 || direkcija == 2) {\r\n\t\t\tpocetna = 6 - 3*direkcija; // pocetna je ili 3 ili 0\r\n\t\t\tpomak = 2*direkcija - 3; // pomak je ili -1 ili 1\r\n\t\t\t\r\n\t\t\t// ovaj dio vrsi samo spajanje polja\r\n\t\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\t\tfor(int j = pocetna ; j != pocetna + 3 * pomak ; j += pomak)\r\n\t\t\t\t\tif(spojeno)\r\n\t\t\t\t\t\tspojeno = false;\r\n\t\t\t\t\telse if(tabela[i][j] != 0 && tabela[i][j] == tabela[i][j + pomak]) {\r\n\t\t\t\t\t\ttabela[i][j] = 2 * tabela[i][j];\r\n\t\t\t\t\t\tif(!igrajPoslijePobjede && tabela[i][j] == 8) // ako je igrac pobijedio (po prvi put, tj. nije bio nastavak igre)\r\n\t\t\t\t\t\t\tpobjeda = true;\r\n\t\t\t\t\t\ttabela[i][j + pomak] = 0;\r\n\t\t\t\t\t\tspojeno = true;\r\n\t\t\t\t\t\tbilo_promjene = true;\r\n\t\t\t\t\t\tbroj_slobodnih++;\r\n\t\t\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// pomjeranje gore i dole\r\n\t\telse {\r\n\t\t\tpocetna = direkcija; // pocetna je ili 3 ili 0\r\n\t\t\tpomak = 1 - (2*direkcija)/3; // pomak je ili -1 ili 1\r\n\t\t\t\r\n\t\t\t// ovaj dio vrsi samo spajanje polja\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++) {\r\n\t\t\t\tfor(int i = pocetna ; i != pocetna + 3 * pomak ; i += pomak)\r\n\t\t\t\t\tif(spojeno)\r\n\t\t\t\t\t\tspojeno = false;\r\n\t\t\t\t\telse if(tabela[i][j] != 0 && tabela[i][j] == tabela[i + pomak][j]) {\r\n\t\t\t\t\t\ttabela[i][j] = 2 * tabela[i][j];\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(!igrajPoslijePobjede && tabela[i][j] == 8) // ako je igrac pobijedio (po prvi put, tj. nije bio nastavak igre)\r\n\t\t\t\t\t\t\tpobjeda = true;\r\n\t\t\t\t\t\ttabela[i + pomak][j] = 0;\r\n\t\t\t\t\t\tspojeno = true;\r\n\t\t\t\t\t\tbilo_promjene = true;\r\n\t\t\t\t\t\tbroj_slobodnih++;\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn bilo_promjene;\r\n\t}", "private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}", "void rajib () {\n\t\t \n\t\t System.out.println(\"Rajib is IT Eng\");\n\t }", "protected void pretragaGledalac() {\n\t\tString Gledalac=tfPretraga.getText();\r\n\r\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:Kontroler.getInstanca().vratiRezervacije()) {\r\n\t\t\tif(r.getImePrezime().toLowerCase().contains(Gledalac.toLowerCase())) {\r\n\t\t\t\r\n\t\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\t\tdtm.addRow(redovi);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public static void TroskoviPredjenogPuta() {\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje zelite da racunate predjeni put!\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tSystem.out.println(\"Unesite broj kilometara koje ste presli sa odgovarajucim vozilom\");\n\t\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\t\tVozilo v = Main.getVozilaAll().get(redniBroj);\n\t\t\t\tdouble rezultat;\n\t\t\t\tif(v.getGorivaVozila().size()>1) {\n\t\t\t\t\tGorivo g = UtillMethod.izabirGoriva();\n\t\t\t\t\trezultat = cenaTroskaVoz(v,km,g);\n\t\t\t\t}else {\n\t\t\t\t\t rezultat = cenaTroskaVoz(v,km,v.getGorivaVozila().get(0));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Cena troskova za predjeni put je \" + rezultat + \"Dinara!\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}", "private void poetries() {\n\n\t}", "private void pojedi (int i, int j) {\n\t\trezultat++;\n\t\tthis.zmija.add(0, new Cvor(i,j));\n\t\tthis.dodajZmiju();\n\t\tthis.dodajHranu();\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "private boolean esVocalMayuscula(char letra)\n\t{\n\t\t\n\t\tboolean esVocal;\n\t\tswitch (letra) {\n\t\tcase 'A':\n\t\t\t esVocal=true;\n\t\t\t break;\n\t\tcase 'E':\n\t\t\t esVocal=true;\n\t\t\t break;\n\t\tcase 'I':\n\t\t\t esVocal=true;\n\t\t\t break;\n\t\tcase 'O':\n\t\t\t esVocal=true;\n\t\t\t break;\n\t\tcase 'U':\n\t\t\t esVocal=true;\n\t\t\tbreak;\n\n\t\tdefault: esVocal = false;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn esVocal;\n\t}", "public String apavada_para_rupa(String X_anta, String X_adi)\n {\n\n // this will deal with para_rupa and purva_rupa aapavaads\n\n // making life easier by dealing with ITRANS CODING\n\n Log.info(\"*******ENTERED AAPAVADA NIYAMA 2**********\");\n String anta = EncodingUtil.convertSLPToUniformItrans(X_anta); // anta\n // is\n // ITRANS\n // equivalent\n String adi = EncodingUtil.convertSLPToUniformItrans(X_adi); // adi is\n // ITRANS\n // equivalent\n\n String return_me = \"UNAPPLICABLE\";\n\n // 216\n\n // 218 Vik Semantic Dependency\n // **********ELSE IF****************//\n if (VowelUtil.isAkaranta(anta) && (adi.equals(\"eva\")))\n\n {\n Log.info(\" Rules 215 applies\");\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + para_rupa(X_anta, X_adi) + \"**\";\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"eve caniyoge\");\n comments.setSutraProc(\"para-rupa-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = depend + \"akaranta word followed by the word 'eva' used to imply uncertainity.\\n\" + \" <a> (a/A/a3) + eva (implying uncertainty) = para-rupa ekadesha\\n\" + \"Blocks all other rules. If the condition of uncertainty is \" + \"not expressed this rule doesnot apply.\";\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // 217 Vik Semantic Dependency not working\n // **********ELSE IF****************//\n else if (is_akaranta_upsarga(X_anta) && (X_adi.startsWith(\"e\") || X_adi.startsWith(\"o\"))) // USing\n // X_adi,\n // switched\n // to\n // Sharfe\n // Encoding\n {\n Log.info(\" Came in Rule 217 \");\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + para_rupa(X_anta, X_adi) + \"**\";\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.97\");\n comments.setSutraPath(\"e~Ni pararUpam\");\n comments.setSutraProc(\"para-rupa-ekadesh\");\n comments.setSource(Comments.sutra);\n String cond1 = depend + \"akaranta-upsarga followed by verbal form beginning with \" + \"'e' or 'o' results in 'para-rupa-ekadesha.\\n\" + \"<akranta-upasarga> a/A/a3 + <e~N> e/o-initial Verbal Form = para-rupa ekadesha\\n\" + \"This Condition will block autsargic vriddhi.\";\n comments.setConditions(cond1);\n\n }\n // **********END OF ELSE IF****************//\n\n // Removed Below We are not dealing with Internal sandhi any more\n\n /***********************************************************************\n * // From SKT Pathan Path Pg. 107 //**********ELSE IF\n **********************************************************************/\n //\n // else if ( /*(sandhi.internal == true ) && */ Vowel.is_aganta(X_anta)\n /***********************************************************************\n * && X_adi.equals(\"am\") ) { return_me = purva_rupa(X_anta,X_adi);\n * //sandhi_notes = PRV + apavada + sutra + \"'ami pUrvaH'(6.1.107).\" +\n * \"\\nBlocks Ayadi Sandhi\"; vowel_notes.start_adding_notes();\n * vowel_notes.set_sutra_num(\"6.1.107\") ; vowel_notes.setSutraPath(\"ami\n * pUrvaH\") ; vowel_notes.set_sutra_proc(\"purva-rupa-ekadesh\");\n * vowel_notes.set_source(tippani.sutra) ; String cond1 =\"Blocks Ayadi\n * Sandhi.\"; vowel_notes.set_conditions(cond1); } //**********END OF\n * ELSE IF\n **********************************************************************/\n //\n // 219\n // 220\n // **********ELSE IF****************//\n else if (anta.equals(\"sIma\") && (adi.equals(\"anta\"))) // USing X_adi,\n // switched to\n // Sharfe\n // Encoding\n {// checked:29-6\n Log.info(\" Rules 220 applies\");\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + para_rupa(X_anta, X_adi) + \"**\";\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"sImantaH kesheSu\");\n comments.setSutraProc(\"para-rupa-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = depend + \"if the word sImanta is used in relation to hairs of the \" + \"the head(kesha) this is the correct form.Otherwise not.\\n\" + \"sIma + anta = para-rupa ekadesh. If used in relation to hairs\";\n comments.setConditions(cond1);\n }\n\n // **********END OF ELSE IF****************//\n // 221\n else if (VowelUtil.isAkaranta(X_anta) && (adi.equals(\"otu\") || adi.equals(\"oSTha\"))) // USing\n // X_adi,\n // switched\n // to\n // Sharfe\n // Encoding\n {// checked:29-6\n Log.info(\" Rules 220 applies\");\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + para_rupa(X_anta, X_adi) + \"**\";\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"otvoSThayoH samAse vA\");\n comments.setSutraProc(\"para-rupa-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = depend + \"This is a optional form which is permitted along \" + \"with the regular form if an akaranta word is followed by 'otu' and 'oSTha' \" + \"to form a Compund Word.\\n\" + \" a + otu/oSTha = para-rupa, other Sandhis permitted\";\n comments.setConditions(cond1);\n\n }\n // 222\n // 223a -now working... make diff rule for \"A\" or consider it...did\n // check 223b\n // **********ELSE IF****************//\n else if (VowelUtil.isAkaranta(X_anta) && (adi.equals(\"om\") && adi.equals(\"A\"))) // USing\n // X_adi,\n // switched\n // to\n // Sharfe\n // Encoding\n {// checked:29-6\n return_me = para_rupa(X_anta, X_adi);\n // sandhi_notes = PAR + apavada + sutra + \"'omA~Nosca'(6.1.92).\" +\n // \"\\nBlocks Vrddhi Sandhi\";\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.92\");\n comments.setSutraPath(\"omA~Noshca\");\n comments.setSutraProc(\"para-rupa ekadesh\");\n comments.setSource(Comments.sutra);\n String cond1 = \"om/aa~N + iti = para-rupa sandhi.Blocks Vrddhi and/or Dirgha Sandhi\";\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // 223b\n // **********ELSE IF****************//\n /*\n * else if (Vowel.is_akaranta(X_anta) && adi.equals(\"A\") ) // USing\n * X_adi, switched to Sharfe Encoding { return_me =\n * utsarga_sandhi(X_anta,X_adi) + \", \" + para_rupa(X_anta,X_adi) + \"**\";\n * /*sandhi_notes = usg1 + sandhi_notes + \"\\n\" + usg2 ; //sandhi_notes+=\n * PAR + apavada + sutra + \"'omA~Nosca'(6.1.92).\" + depend + //\n * \"\\nCondition: If the 'A' of String 2 is 'A~N' then this rule is used \"+ // \"\n * which blocks Dirgha Sandhi\"; // vowel_notes.start_adding_notes();\n * vowel_notes.set_sutra_num(\"6.1.92\") ;\n * vowel_notes.setSutraPath(\"omA~Nosca\") ;\n * vowel_notes.set_sutra_proc(\"para-rupa ekadesh\");\n * vowel_notes.set_source(tippani.sutra) ; String cond1 =\"If the 'A' of\n * String 2 is 'A~N' then this rule is used \"+ \" which blocks Dirgha\n * Sandhi\"; vowel_notes.set_conditions(cond1);\n * }\n */\n // **********END OF ELSE IF****************//\n // 224 Vik Semantic Dependency - apadAnta\n // **********ELSE IF****************//\n else if ( /*\n * (sandhi.internal == true ) && (SandhiBean.padanta ==\n * false) &&\n */\n VowelUtil.isAkaranta(X_anta) && adi.equals(\"us\"))\n {// checked:29-6\n return_me = para_rupa(X_anta, X_adi);\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.63\");\n comments.setSutraPath(\"usyapadAntAt\");\n comments.setSutraProc(\"para-rupa ekadesh\");\n comments.setSource(Comments.sutra);\n String cond1 = \"Non-padanta <a> + 'us' affix = para-rupa.Blocks Vrddhi Sandhi\";\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // 225 Vik Semantic Dependency - apadAnta\n // **********ELSE IF****************//\n // else if ( /*(sandhi.internal == true )&& ( SandhiBean.padanta ==\n // false) && */\n /*\n * X_anta.endsWith(\"a\") && ( X_adi.startsWith(\"a\") ||\n * X_adi.startsWith(\"e\") || X_adi.startsWith(\"o\") ) ) {//checked:29-6\n * \n * return_me = para_rupa(X_anta,X_adi);\n * vowel_notes.start_adding_notes(); vowel_notes.set_sutra_num(\"6.1.94\") ;\n * vowel_notes.setSutraPath(\"ato guNe\") ;\n * vowel_notes.set_sutra_proc(\"para-rupa ekadesh\");\n * vowel_notes.set_source(tippani.sutra) ; String cond1 =\"Blocks Vrddhi\n * Sandhi\"; vowel_notes.set_conditions(cond1); }\n */// **********END OF ELSE IF****************//\n // 226 - 231\n // 232 Vik Semantic Dependency - padanta\n // Purva Rupa Sandhi Begins\n // **********ELSE IF****************//\n else if ( /* (SandhiBean.padanta == true ) && */\n (X_anta.endsWith(\"e\") || X_anta.endsWith(\"o\")) && X_adi.startsWith(\"a\"))\n {// checked:29-6\n if (anta.equals(\"go\"))\n ; // condition will be handled elsewhere\n else\n {\n\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + purva_rupa(X_anta, X_adi);\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.105\");\n comments.setSutraPath(\"e~NaH padAntAdati\");\n comments.setSutraProc(\"purva-rupa ekadesh\");\n comments.setSource(Comments.sutra);\n String cond1 = padanta + \"If a padanta word ending in either 'e' or 'o' is followed by an 'a' purva-rupa ekadesh takes place\" + \"\\npadanta <e~N> 'e/o' + 'a' = purva-rupa ekadesha. Blocks Ayadi Sandhi\";\n comments.setConditions(cond1);\n\n }\n }\n // **********END OF ELSE IF****************//\n\n Log.info(\"return_me == \" + return_me);\n Log.info(\"*******EXITED AAPAVADA NIYAMA 2**********\");\n\n if (return_me.equals(\"UNAPPLICABLE\"))\n {\n return_me = apavada_prakruti_bhava(X_anta, X_adi); // search for\n // more apavada\n // rules\n }\n return return_me; // apavada rules formulated by Panini apply\n }", "public void zmiana_rozmiaru_okna()\n {\n b.dostosowanie_rozmiaru(getWidth(),getHeight());\n w.dostosowanie_rozmiaru(getWidth(),getHeight());\n\n for (Pilka np : p) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Naboj np : n) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Bonus np : bon) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n\n }", "public static void main(String[] args) {\n\n // Pitamo korisnika za ime fajla koji korisitmo\n String imeFajla = Svetovid.in.readLine(\"Unesite ime fajla:\");\n\n // Poziv prvog nacina ispisivanja\n citajSveRedove(imeFajla);\n\n // Moramo zatvoriti fajl da bi ga opet citali ispocetka\n Svetovid.in(imeFajla).close();\n\n // Poziv drugog nacina ispisivanja\n citajSveRedoveAlt(imeFajla);\n\n }", "private void logika_rozpocznij(){\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tclass Ulamek{\r\n\t\t\tprivate int licznik, mianownik;\r\n\r\n\t\t\tpublic void ustawLicznik (int l){\r\n\t\t\t\tlicznik=l;\r\n\t\t\t}\r\n\t\t\tpublic void ustawMianownik (int m){\r\n\t\t\t\tmianownik=m;\r\n\t\t\t}\r\n\t\t\tpublic void ustawUlamek (int u1, int u2){\r\n\t\t\t\tlicznik=u1;\r\n\t\t\t\tmianownik=u2;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void wyswietl (){\r\n\t\t\t\t\r\n\t\t\t\tint przod, reszta, przod_dlugosc, mianownik_dlugosc, licznik_dlugosc;\r\n\t\t\t\tString przod_zamiana, mianownik_string, licznik_string;\r\n\t\t\t\tdouble wynik;\r\n\t\t\t\t\r\n\t\t\t\tif (mianownik!=0 && licznik !=0){\r\n\t\t\t\tprzod=licznik/mianownik;\r\n\t\t\t\treszta=licznik-(przod*mianownik);\r\n\t\t\t\tprzod_zamiana=\"\"+przod;\r\n\t\t\t\tprzod_dlugosc=przod_zamiana.length();\r\n\t\t\t\twynik=1.0*licznik/mianownik;\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t licznik++;\r\n\t\t\t\t\t}while (licznik!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(reszta);\r\n\t\t\t}\r\n\r\n\t\t\t\t//zamiana na stringa i liczenie\r\n\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//brak calości\r\n\t\t\t\tif(przod==0){\r\n\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\tif(przod!=0){\r\n\t\t\t\tSystem.out.print(\" \"+przod+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik2 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik2++;\r\n\t\t\t\t\t\r\n\t\t\t\t}while (licznik2!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t System.out.println();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t//jezeli blad \r\n\t\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\tlicznik_string=\"\"+licznik;\r\n\t\t\t\t\tlicznik_dlugosc=licznik_string.length();\r\n\t\t\t\t\tif(licznik_dlugosc>mianownik_dlugosc){\r\n\t\t\t\t\t\tmianownik_dlugosc=licznik_dlugosc;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//gora\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t//if(licznik==0){\r\n\t\t\t\t\t//System.out.print(\" \");\r\n\t\t\t\t\t//}\r\n\r\n\t\t\t\t\tSystem.out.println(licznik);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//srodek\r\n\t\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\tint licznik3 = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t licznik3++;\r\n\t\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t\t System.out.print(\" = \"+\"ERR\");\r\n\r\n\t\t\t\t System.out.println();\r\n\t\t\t\t\t\r\n\t\t\t\t //dol\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t\t\t System.out.println();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t Ulamek u1=new Ulamek();\r\n\t\t Ulamek u2=new Ulamek();\r\n\r\n\t\t u1.ustawLicznik(3);\r\n\t\t u1.ustawMianownik(5);\r\n\r\n\t\t u2.ustawLicznik(142);\r\n\t\t u2.ustawMianownik(8);\r\n\r\n\t\t u1.wyswietl();\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\t \r\n\t\t u2.wyswietl();\r\n\r\n\r\n\r\n\r\n\t\t u2.ustawUlamek(100,0);\r\n\r\n\r\n\t\t u2.wyswietl();\r\n\r\n\t}", "protected void podesiRaspUlaznice(String nazivPredstave) {\n\t\tfor (Predstave p:Kontroler.getInstanca().vratiRepertoar())\r\n\t\t\tif(p.getNazivPredstave().equals(nazivPredstave))\r\n\t\t\t\tnoviBrRasUl=p.getBrojRaspolozivihUlaznica();\r\n\t}", "public ArrayList<ArrayList<Float>> predykcjaCenNaRynkuLokalnym()\n\t{\n\t\tfloat cenaMinimalnaNaRynkuLokalnym= Stale.cenaMinimalnaNaRynkuLokalnym;\n\t\tfloat cenaMaksymalnaNaRynkuLokalnym = Stale.cenaDystrybutoraZewnetrznego;\n\t\t\n\t\t//tu siedzi to rozroznienie czy z generatora czy predykcja z poprzendiej symualcji\n\t\tArrayList<Float> normalnaPredykcja = pierwszaPredykcja();\n\t\tpriceVectorsList.add(normalnaPredykcja);\n\t\t\n\t\tArrayList<ArrayList<Float>> listaPredykcjiCen= new ArrayList<ArrayList<Float>>();\n\t\t\n\t\t\n\t\t//nizsza \n\t\tArrayList<Float> predykcjaZNizszaCena=new ArrayList<Float>(normalnaPredykcja);\t\t\n\t\tArrayList<Float> predykcjaZWyzszaCena=new ArrayList<Float>(normalnaPredykcja);\n\t\t\n\t\tfloat nizszaCena =(normalnaPredykcja.get(0)+cenaMinimalnaNaRynkuLokalnym)/2 ;\n\t\tfloat wyzszaCena=(normalnaPredykcja.get(0)+cenaMaksymalnaNaRynkuLokalnym)/2;\n\t\t\n\t\tpredykcjaZNizszaCena.set(0, nizszaCena);\n\t\tpredykcjaZWyzszaCena.set(0, wyzszaCena);\n\t\t\n\t\tlistaPredykcjiCen.add(predykcjaZNizszaCena);\n\t\tlistaPredykcjiCen.add(normalnaPredykcja);\n\t\tlistaPredykcjiCen.add(predykcjaZWyzszaCena);\n\t\t\n\t\t//reporting - zapisz zadeklarowan cene\n\t\trynekHistory.dodajZadeklarowanaCene(normalnaPredykcja.get(0));\n\t\t\n\t\t\n\t\treturn listaPredykcjiCen;\t\n\t}", "public abstract String dohvatiKontakt();", "public void ucitajPotez(Potez potez) {\n\t\tint red = potez.vratiRed();\n\t\tint kolona = potez.vratiKolonu();\n\t\ttabla[red][kolona] = potez.vratiRezultat();\n\n\t\tif (potez.vratiRezultat() == Polje1.potopljen) {\n\t\t\tint gornjiRed, gornjaKolona;\n\t\t\tboolean cont1 = false;\n\t\t\tboolean cont2 = false;\n\t\t\tboolean redar = false;\n\t\t\tboolean kolonar = false;\n\t\t\twhile (redar == false) {\n\t\t\t\tif (red == 0) {\n\t\t\t\t\tgornjiRed = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjiRed = red - 1;\n\t\t\t\t}\n\t\t\t\tif (red == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\tred--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjiRed++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen || tabla[gornjiRed][kolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\t\tred++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tredar = true;\n\t\t\t}\n\t\t\tcont1 = false;\n\t\t\tcont2 = false;\n\t\t\tred = potez.vratiRed();\n\t\t\twhile (kolonar == false) {\n\t\t\t\tif (kolona == 0) {\n\t\t\t\t\tgornjaKolona = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjaKolona = kolona - 1;\n\t\t\t\t}\n\t\t\t\tif (kolona == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\tkolona--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjaKolona++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen || tabla[red][gornjaKolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\t\tkolona++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tkolonar = true;\n\n\t\t\t}\n\n\t\t}\n\n\n\t}", "void novyVrchol(String klic){\n\t\tVrchol pom = new Vrchol(klic,'B');\n\t\t\n\t\tvrchP[pocet] = pom;\n\t\tpocet++;\n\t\n\t}", "@Test\n public void testAlunPainotus() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n String kysymys = k.alunPainotus(true);\n\n\n assertEquals(\"AlunPainoitus ei toimi\", \"sana\", kysymys);\n }", "public static void trazenjeVozila(Iznajmljivac o) {\n\t\tLocalDate pocetniDatum = UtillMethod.unosDatum(\"pocetni\");\n\t\tLocalDate krajnjiDatum = UtillMethod.unosDatum(\"krajnji\");\n\t\tSystem.out.println(\"------------------------------------\");\n\t\tSystem.out.println(\"Provera dostupnosti vozila u toku...\\n\");\n\t\tArrayList<Vozilo> dostupnaVoz = new ArrayList<Vozilo>();\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tif (!postojiLiRezervacija(v, pocetniDatum, krajnjiDatum) && !v.isVozObrisano()) {\n\t\t\t\tSystem.out.println(i + \"-\" + v.getVrstaVozila() + \"-\" + \"Registarski broj\" + \"-\" + v.getRegBR()\n\t\t\t\t\t\t+ \"-Potrosnja na 100km-\" + v.getPotrosnja100() + \"litara\");\n\t\t\t\ti++;\n\t\t\t\tdostupnaVoz.add(v);\n\t\t\t}\n\t\t}\n\t\tif (i > 0) {\n\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\tSystem.out.println(\"Ukucajte kilometrazu koju planirate da predjete:\");\n\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\tint km1 = (int) km;\n\t\t\tporedjenjeVozila d1 = new poredjenjeVozila(km1);\n\t\t\tCollections.sort(dostupnaVoz,d1);\n\t\t\tint e = 0;\n\t\t\tfor(Vozilo v : dostupnaVoz) {\n\t\t\t\tdouble temp = cenaTroskaVoz(v, km, v.getGorivaVozila().get(0));\n\t\t\t\tSystem.out.println(e + \" - \" + v.getVrstaVozila()+ \"-Registarski broj: \"+ v.getRegBR()+\" | \"+ \"Cena na dan:\"+v.getCenaDan() +\" | Broj sedista:\"+ v.getBrSedist()+ \" | Broj vrata:\"+ v.getBrVrata() + \"| Cena troskova puta:\" + temp + \" Dinara\");\n\t\t\t\te++;\n\t\t\t}\n\t\t\tSystem.out.println(\"---------------------------------------\");\n\t\t\tSystem.out.println(\"Unesite redni broj vozila kojeg zelite:\");\n\t\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\t\tif (redniBroj < dostupnaVoz.size()) {\n\t\t\t\tDateTimeFormatter formatters = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\t\t\tString pocetni = pocetniDatum.format(formatters);\n\t\t\t\tString krajnji = krajnjiDatum.format(formatters);\n\t\t\t\tdouble cena = UtillMethod.cenaIznaj(pocetniDatum, krajnjiDatum, dostupnaVoz.get(redniBroj));\n\t\t\t\tRezervacija novaRez = new Rezervacija(dostupnaVoz.get(redniBroj), o, cena, false, pocetni, krajnji);\n\t\t\t\tMain.getRezervacijeAll().add(novaRez);\n\t\t\t\tSystem.out.println(\"Uspesno ste napravili rezervaciju!\");\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t\tSystem.out.println(novaRez);\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Nema dostupnih vozila za rezervaaciju.\");\n\t\t}\n\t}", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "void zmniejszBieg();", "private String elaboraRitorno() {\n String testo = VUOTA;\n String titoloPaginaMadre = getTitoloPaginaMadre();\n\n if (usaHeadRitorno) {\n if (text.isValid(titoloPaginaMadre)) {\n testo += \"Torna a|\" + titoloPaginaMadre;\n testo = LibWiki.setGraffe(testo);\n }// fine del blocco if\n }// fine del blocco if\n\n return testo;\n }", "void tampilKarakterA();", "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "public void naplnVrcholy() {\r\n System.out.println(\"Zadajte pocet vrcholov: \");\r\n pocetVrcholov = skener.nextInt();\r\n for (int i=0; i < pocetVrcholov; i++) {\r\n nekonecno = (int)(Double.POSITIVE_INFINITY);\r\n if(i==0) { //pre prvy vrchol potrebujeme nastavit vzdialenost 0 \r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu, 0, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n } else { //ostatne budu mat nekonecno alebo v tomto pripade 9999 (lebo tuto hodnotu v mensich grafoch nepresiahnem)\r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu,nekonecno, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n }\r\n }\r\n }", "public int orientaceGrafu(){\n\t\tint poc = 0;\n\t\tfor(int i = 0 ; i < hrana.length ; i++){\n\t\t\tif(!oriNeboNeoriHrana(hrana[i].zacatek,hrana[i].konec))\n\t\t\t poc++;\n\t\t}\n\t\tif(poc == 0 )\n\t\t\treturn 0;\n\t\t\n\t\tif(poc == pocetHr)\n\t\t\treturn 1;\n\t\t\n\t\t\n\t\t\treturn 2;\n\t\t \n\t\t\n\t\t\t\t\t\n\t}", "private void kasvata() {\n T[] uusi = (T[]) new Object[this.arvot.length * 3 / 2 + 1];\n for (int i = 0; i < this.arvot.length; i++) {\n uusi[i] = this.arvot[i];\n }\n this.arvot = uusi;\n }", "@Test\n public void yksiVasemmalle() {\n char[][] kartta = Labyrintti.lueLabyrintti(\"src/main/resources/labyrinttiTestiVasen.txt\");\n assertFalse(kartta == null);\n Labyrintti labyrintti = new Labyrintti(kartta);\n RatkaisuLeveyshaulla ratkaisuSyvyyshaulla = new RatkaisuLeveyshaulla(labyrintti);\n String ratkaisu = ratkaisuSyvyyshaulla.ratkaisu();\n assertTrue(Tarkistaja.tarkista(ratkaisu, labyrintti));\n }", "void sepia();", "void sepia();", "public void setRua(String rua) {this.rua = rua;}", "Petunia() {\r\n\t\t}", "private Zivocich vytvorZivocicha() {\r\n final String[] zFarba = {\"cervena\", \"zelena\", \"modra\", \"zlta\", \"zlto-zelena\"};\r\n Zivocich zviera = null;\r\n double kolkoVazi = 0.0;\r\n\r\n //-- Vygenerujeme zviera\r\n int vygenerovane = 1 + generator.nextInt(4); //cislo <1,4>\r\n\r\n switch (vygenerovane) {\r\n case 1: //blcha \r\n double kolkoDoskoci=3 * generator.nextDouble() ; //cislo <0;2.99>\r\n double kolkoVyskoci=3 * generator.nextDouble() ; //cislo <0;2.99>\r\n zviera=new Blcha(6,kolkoDoskoci,kolkoVyskoci);\r\n break;\r\n case 2: //simpanz\r\n kolkoVazi=3 + (97 * generator.nextDouble()); //cislo <3;99.9>\r\n boolean cviceny;\r\n cviceny=generator.nextBoolean(); \r\n zviera=new Simpanz(kolkoVazi,cviceny);\r\n break;\r\n case 3: //papagaj\r\n kolkoVazi = 0.1 + (5*generator.nextDouble()); // cislo <0.1; 6>\r\n String farba = zFarba[generator.nextInt(5)]; // farba zo zoznamu\r\n zviera = new Papagaj(\"Ara\", 2, kolkoVazi, farba); \r\n break;\r\n case 4: //slon\r\n kolkoVazi=20 + (480*generator.nextDouble()); //cislo <20;500> \r\n int pocet=generator.nextInt(50); //pocet zubov bude <0,49>\r\n zviera=new Slon(kolkoVazi,pocet);\r\n break;\r\n } //------------------------------------------------------------- switch --\r\n return zviera;\r\n }", "@Override\n public int altura() {\n return altura(this.raiz);\n }", "public void realizacjap34() {\n System.out.println(\"REALIZACJA PUNKTU 3\\n\");\n\n System.out.println(\"\\nWyszukiwanie osob po imieniu (Piotr) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoImieniu(Listy.osoby, \"Piotr\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po nazwisku (Oleszczuk) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoNazwisku(Listy.osoby, \"Oleszczuk\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy mniejszym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyMniejszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy większym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyWiekszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy równym 5============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyRownym(Listy.osoby, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin mniejszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachMniejszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin wiekszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachWiekszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin równej 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachRownych(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji wiekszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiWiekszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji mniejszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiMniejszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji rownej 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiRownej(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stanowisku (Adiunkt) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStanowisku(Listy.osoby, \"Adiunkt\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studenta po numerze indeksu (123456) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzStudentaPoIndeksie(Listy.osoby, \"123456\"));\n\n System.out.println(\"\\nWyszukiwanie studentów po roku studiów (1) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoRokuStudiow(Listy.osoby, 1).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studentów po kierunku (Informatyka Stosowana) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoKierunku(Listy.osoby, \"Informatyka Stosowana\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursu po nazwie (Analiza Matematyczna 1) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzKursPoNazwie(Listy.kursy, \"Analiza Matematyczna 1\"));\n\n System.out.println(\"\\nWyszukiwanie kursów po liczbie ects (5) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoECTS(Listy.kursy, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursów po prowadzacym+\"+Listy.osoby.get(0).getImie()+\" \"+Listy.osoby.get(0).getNazwisko()+\" ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoProwadzacym(Listy.kursy, Listy.osoby.get(0)).forEach(System.out::println);\n\n\n //REALIZACJA PUNKTU 4\n System.out.println(\"=====================================================================================================================\");\n System.out.println(\"REALIZACJA PUNKTU 4\");\n System.out.println(\"=====================================================================================================================\\n\");\n System.out.println(\"Kursy:\\n\");\n for (Kurs kurs : Listy.kursy) {\n System.out.println(kurs.toString());\n }\n\n System.out.println(\"\\nOsoby:\\n\");\n for (Osoba osoba : Listy.osoby) {\n System.out.println(\"OSOBA====================================================================================================\");\n System.out.println(osoba.toString());\n System.out.println();\n }\n }", "public String gjejZinxhirin(String start, String end) throws Exception {\n\t\tif (start.length() != end.length())\n\t\t\tthrow new RuntimeException(\"fjalet duhet te jene te te njejtes gjatesi\");\n\n\t\t// nese fjala e pare dhe fjala destinuese jane te njejta nuk ka nevoj per kerkim\n\t\tif (start.equals(end))\n\t\t\treturn start;\n\n\t\t// lexojm dhe i shtojm fjalet nga skedari ku gjinden te gjitha fjalet\n\t\tlexoFjaletNeKeteGjatesi(start.length());\n\n\t\t/*\n\t\t * Kontrollojm se a e ekziston ajo fjale ne fjalor qe te mos behet kerkimi per\n\t\t * dicka qe nuk ekziston\n\t\t */\n\t\tif (!fjalet.contains(start)) {\n\t\t\tthrow new Exception(\"Kjo fjale nuk ekziston ne fjalor\");\n\t\t}\n\t\tif (!fjalet.contains(end)) {\n\t\t\tthrow new Exception(\"Kjo fjale nuk ekziston ne fjalor\");\n\t\t}\n\n\t\t// riinicializojm kandidatet e ri dhe fjalet e shtuara\n\t\tkandidatet = new LinkedList<>();\n\t\tshtuar = new HashMap<>();\n\t\tnumerimi = 0;\n\n\t\tkandidatet.add(start);\n\t\tshtuar.put(start, null);\n\n\t\t/*\n\t\t * fillojm kerkimin e fjaleve por i vendosim nje limit deri 15000 fjale, qe te\n\t\t * mos mbetet programi duke kerkuar pafundesisht\n\t\t */\n\t\twhile (kandidatet.size() > 0) {\n\t\t\tif (numerimi++ > 15000)\n\t\t\t\tthrow new RuntimeException(\"exceeded search limit\");\n\n\t\t\tString c = (String) kandidatet.remove(0);\n\n\t\t\tIterator<String> iter = fjalet.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tString w = (String) iter.next();\n\t\t\t\tif (!shtuar.containsKey(w) && adjacent(c, w)) {\n\t\t\t\t\tshtuar.put(w, c);\n\n\t\t\t\t\tif (end.equals(w)) {\n\t\t\t\t\t\treturn rregulloParaqitjenEZinxhirit(w);\n\t\t\t\t\t}\n\n\t\t\t\t\tkandidatet.add(w);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "public String apavada_prakruti_bhava(String X_anta, String X_adi)\n {\n\n Log.info(\"*******ENTERED AAPAVADA NIYAMA 3**********\");\n String anta = EncodingUtil.convertSLPToUniformItrans(X_anta); // anta\n // is\n // ITRANS\n // equivalent\n String adi = EncodingUtil.convertSLPToUniformItrans(X_adi); // adi is\n // ITRANS\n // equivalent\n\n String return_me = \"UNAPPLICABLE\";\n // 249\n if (VowelUtil.isPlutanta(X_anta) && X_adi.equals(\"iti\"))\n {// checked:29-6\n\n return_me = prakruti_bhava(X_anta, X_adi) + \", \" + utsarga_sandhi(X_anta, X_adi) + \"**\";\n ;\n /*\n * sandhi_notes = usg1 + sandhi_notes + \"\\nRegular Sandhis which\n * were being blocked by \" + \"pluta-pragRRihyA-aci-nityam(6.1.121)\n * are allowed by \" + \" 'apluta-vadupasthite' (6.2.125)\" + \"\\n\" +\n * usg2 ;\n * \n * sandhi_notes+= Prkr + apavada + depend + sutra +\n * \"pluta-pragRRihyA aci nityam' (6.1.121)\" + \"\\nCondition: Only if\n * String 1 is a Vedic Usage(Arsha-prayoga)\";\n * \n * //This note below goes after the Notes returned fropm\n * utsarga_sandhi above String cond1 = \"\\nRegular Sandhis which were\n * being blocked by \" + \"'pluta-pragRRihyA-aci-nityam'(6.1.121) are\n * allowed by \" + \" 'apluta-vadupasthite' (6.2.125)\";\n * vowel_notes.append_condition(cond1); ;\n */\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n comments.decrementPointer();\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.121\");\n comments.setSutraPath(\"pluta-pragRRihyA aci nityam\");\n comments.setSutraProc(\"Prakruti Bhava\");\n comments.setSource(Comments.sutra);\n String cond1 = \"pluta-ending word or a pragRRihya followed by any Vowel result in Prakruti bhava sandhi.\\n\" + \"<pluta-ending> || pragRRihya + vowel = prakruti bhava.\";\n comments.setConditions(cond1);\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.2.125\");\n comments.setSutraPath(\"apluta-vadupasthite\");\n comments.setSutraProc(\"utsargic Sandhis Unblocked\");\n comments.setSource(Comments.sutra);\n String cond2 = depend + \"According to 6.1.121 plutantas followed by Vowels result in prakruti-bhaava\\n\" + \"However if the word 'iti' used is non-Vedic, then regular sandhis block 6.1.121.\";\n\n comments.setConditions(cond2);\n\n }\n\n // 250\n else if ((X_anta.endsWith(\"I3\") || X_anta.endsWith(\"i3\")) && VowelUtil.isAjadi(X_adi))\n // was making mistake of using vowel.is_Vowel(X_adi) */ )\n {// checked:29-6\n Log.info(\"came in 250\");\n return_me = utsarga_sandhi(X_anta, X_adi); // fixed error above:\n // was sending ITRANS\n // values rather than\n // SLP\n /*\n * sandhi_notes += apavada + sutra + \"'I3 cAkravarmaNasya'\n * (6.1.126)\" + \"Blocks 'pluta-pragRRihyA aci nityam' (6.1.121)\";\n */\n // vowel_notes.start_adding_notes();\n // vowel_notes.set_sutra_num(\"6.1.126\") ;\n // vowel_notes.setSutraPath(\"I3 cAkravarmaNasya\") ;\n // vowel_notes.set_sutra_proc(\"para-rupa ekadesh\");\n // vowel_notes.set_source(tippani.sutra) ;\n String cond1 = \"According to chaakravarman pluta 'i' should be trated as non-plutanta.\\n\" + \"Given in Panini Sutra 'I3 cAkravarmaNasya' (6.1.126). This sutra allows General Sandhis to operate by blocking\" + \"'pluta-pragRRihyA aci nityam' (6.1.121)\";\n comments.append_condition(cond1);\n\n }\n // prakrutibhava starts\n // 233-239 Vedic Usages\n // 243 : error (now fixed) shivA# isAgacha printing as sh-kaar ha-kaar\n // ikaar etc should be shakaar ikaar\n // **********ELSE IF****************//\n else if ((VowelUtil.isPlutanta(X_anta) || this.pragrhya == true) && VowelUtil.isAjadi(X_adi))\n // was making mistake of using Vowel.is_Vowel(X_adi) */ )\n {// checked:29-6\n Log.info(\"came in 243\");\n return_me = prakruti_bhava(X_anta, X_adi); // fixed error above:\n // was sending ITRANS\n // values rather than\n // SLP\n // sandhi_notes = Prkr + sutra + \"pluta-pragRRihyA aci nityam'\n // (6.1.121)\";\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.121\");\n comments.setSutraPath(\"pluta-pragRRihyA aci nityam\");\n comments.setSutraProc(\"prakruti bhava\");\n comments.setSource(Comments.sutra);\n String cond1 = \"pragRRihyas or plutantas followed by any vowel result in NO SANDHI which is prakruti bhava\"; // Fill\n // Later\n comments.setConditions(cond1);\n\n }\n // **********END OF ELSE IF****************//\n\n // **********ELSE IF****************//\n else if (anta.equals(\"go\") && adi.equals(\"indra\")) // Avan~Na Adesh\n {// checked:29-6\n String avang_adesh = EncodingUtil.convertSLPToUniformItrans(\"gava\"); // transform\n // ITRANS\n // gava\n // to\n // SLP\n return_me = guna_sandhi(avang_adesh, X_adi);\n // We have to remove guna_sandhi default notes\n // this is done by\n comments.decrementPointer();\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.120\");\n comments.setSutraPath(\"indre ca\");\n comments.setSutraProc(\"ava~nga Adesha followed by Guna Sandhi\");\n comments.setSource(Comments.sutra);\n String cond1 = \"Blocks Prakruti Bhava, and Ayadi Sandhi.\\n go + indra = go + ava~N + indra = gava + indra = gavendra.\"; // Fill\n // Later\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // 241 242 Vik.\n // **********ELSE IF****************//\n else if (anta.equals(\"go\") && VowelUtil.isAjadi(X_adi))\n {// checked:29-6\n\n return_me = utsarga_sandhi(X_anta, X_adi); //\n String avang_adesh = EncodingUtil.convertSLPToUniformItrans(\"gava\"); // transform\n // ITRANS\n // gava\n // to\n // SLP\n return_me += \", \" + utsarga_sandhi(avang_adesh, X_adi);\n\n // We have to remove utsarga_sandhi default notes\n // this is done by\n comments.decrementPointer();\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.119\");\n comments.setSutraPath(\"ava~N sphoTayanasya\");\n comments.setSutraProc(\"ava~nga Adesha followed by Regular Vowel Sandhis\");\n comments.setSource(Comments.sutra);\n String cond1 = padanta + \"View Only Supported by Sphotaayana Acharya.\\n\" + \"padanta 'go' + Vowel gets an avana~N-adesh resulting in gava + Vowel.\"; // Fill\n // Later...filled\n comments.setConditions(cond1);\n\n if (X_adi.startsWith(\"a\"))\n {\n return_me += \", \" + prakruti_bhava(X_anta, X_adi);\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.118\");\n comments.setSutraPath(\"sarvatra vibhaaSaa goH\");\n comments.setSutraProc(\"Optional Prakruti Bhava for 'go'(cow)implying words ending in 'e' or 'o'.\");\n comments.setSource(Comments.sutra);\n String cond2 = \"Padanta Dependency. Prakruti bhava if 'go' is followed by any other Phoneme.\"; // Fill\n // Later\n comments.setConditions(cond2);\n\n return_me += \", \" + purva_rupa(X_anta, X_adi);\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.105\");\n comments.setSutraPath(\"e~NaH padAntAdati\");\n comments.setSutraProc(\"purva-rupa ekadesh\");\n comments.setSource(Comments.sutra);\n String cond3 = padanta + \"If a padanta word ending in either 'e' or 'o' is followed by an 'a' purva-rupa ekadesh takes place\" + \"\\npadanta <e~N> 'e/o' + 'a' = purva-rupa ekadesha. Blocks Ayadi Sandhi\";\n comments.setConditions(cond3);\n\n }\n }\n // **********END OF ELSE IF****************//\n\n // 243\n\n // 244\n\n // 246 -250 , 253-260\n\n Log.info(\"return_me == \" + return_me);\n Log.info(\"*******EXITED AAPAVADA NIYAMA3s**********\");\n\n return return_me; // apavada rules formulated by Panini\n }", "public static void main(String[] args) {\n\t\tString palabra=\"supercalifragilisticoespialidoso\";\r\n\t\tString nuevaPalabra = sustituye(palabra);\r\n\t\tSystem.out.println(palabra);\r\n\t\tSystem.out.println(nuevaPalabra);\r\n\t}", "public static void main(String[] args) {\n char [] letra = new char [27];\n letra [0] = 'A';\n letra [1] = 'B';\n letra [2] = 'C';\n letra [3] = 'D';\n letra [4] = 'E';\n letra [5] = 'F';\n letra [6] = 'G';\n letra [7] = 'H';\n letra [8] = 'I';\n letra [9] = 'J';\n letra [10] = 'K';\n letra [11] = 'L';\n letra [12] = 'M';\n letra [13] = 'N';\n letra [14] = 'Ñ';\n letra [15] = 'O';\n letra [16] = 'P';\n letra [17] = 'Q';\n letra [18] = 'R';\n letra [19] = 'S';\n letra [20] = 'T';\n letra [21] = 'U';\n letra [22] = 'V';\n letra [23] = 'W';\n letra [24] = 'X';\n letra [25] = 'Y';\n letra [26] = 'Z';\n int [] contadores = new int [27];\n pedirCadena();\n comprobarvocales(letra,contadores);\n }", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void leerAlimentos();", "public String apavada_vriddhi(String X_anta, String X_adi)\n {\n\n Log.info(\"*******ENTERED AAPAVADA NIYAMA UNO**********\");\n Log.info(\"X_adi == \" + X_adi);\n String anta = EncodingUtil.convertSLPToUniformItrans(X_anta);\n // x.transform(X_anta); // anta is ITRANS equivalent\n String adi = EncodingUtil.convertSLPToUniformItrans(X_adi);\n // x.transform(X_adi); // adi is ITRANS equivalent\n\n Log.info(\"adi == \" + adi);\n\n String return_me = \"UNAPPLICABLE\";\n\n boolean bool1 = VowelUtil.isAkaranta(X_anta) && (adi.equals(\"eti\") || adi.equals(\"edhati\"));\n boolean bool2 = VowelUtil.isAkaranta(X_anta) && adi.equals(\"UTh\");\n\n // 203\n // **********IF****************//\n if (X_anta.endsWith(\"f\") && X_adi.startsWith(\"f\")) // watch out!!! must\n // be SLP not ITRANS\n {// checked:29-6\n String strip1 = VarnaUtil.stripAntyaVarna(X_anta);\n String strip2 = VarnaUtil.stripAdiVarna(X_adi);\n\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + strip1 + \"f\" + strip2;\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"RRiti RRi vA vacanam\");\n comments.setSutraProc(\"hrasva RRikara ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"small RRi followed by small RRi merge to become small RRi.\\n\" + \"RRi + RRi = RRi\";\n comments.setConditions(cond1);\n\n } // end of main if\n // **********END OF IF****************//\n\n // 204\n // **********IF****************//\n else if (X_anta.endsWith(\"f\") && X_adi.startsWith(\"x\")) // watch out!!!\n // must be SLP\n // not ITRANS\n { // checked:29-6 // SLP x = ITRANS LLi\n String strip1 = VarnaUtil.stripAntyaVarna(X_anta);\n String strip2 = VarnaUtil.stripAdiVarna(X_adi);\n\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + strip1 + \"x\" + strip2; // SLP\n // x =\n // ITRANS\n // LLi\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"LLiti LLi vA vacanam\");\n comments.setSutraProc(\"hrasva LLikara ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \" RRi/RRI followed by small LLi merge to become small LLi.\\n RRi/RRI + LLi = LLi\";\n comments.setConditions(cond1);\n\n } // end of main if\n // **********END OF IF****************//\n\n // 207a-b\n // **********ELSE IF****************//\n else if (bool1 || bool2)\n {\n // checked:29-6\n return_me = vriddhi_sandhi(X_anta, X_adi);\n\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n comments.decrementPointer();\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.86\");\n comments.setSutraPath(\"eti-edhati-UThsu\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.sutra);\n\n String cond1 = \"akaara followed by declensions of 'iN', 'edha' and 'UTh\" + \"<eti/edhati/UTh> are replaced by their vRRiddhi counterpart.\\n\" + \"a/A/a3 + eti/edhati/UTha = VRRiddhi Counterpart.\\n\" + \"Pls. Note.My Program cannot handle all the declensions of given roots.\" + \"Hence will only work for one instance of Third Person Singular Form\";\n comments.setConditions(cond1);\n\n String cond2 = \"Blocks para-rupa Sandhi given by 'e~ni pararUpam' which had blocked Normal Vriddhi Sandhi\";\n\n if (bool1)\n comments.append_condition(cond2);\n else if (bool2) comments.append_condition(\"Blocks 'Ad guNaH'\");\n\n }\n\n // **********END OF ELSE IF****************//\n\n // 208\n // **********ELSE IF****************//\n else if (anta.equals(\"akSa\") && adi.equals(\"UhinI\"))\n {// checked:29-6\n return_me = \"akzOhiRI\"; // u to have give in SLP..had\n // ITRANS....fixed\n // not sending to vrridhit_sandhi becose of Na-inclusion\n // vriddhi_sandhi(X_anta,X_adi);\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n // ***/vowel_notes.decrement_pointer();/***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"akSAdUhinyAm\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"akSa + UhinI = akshauhiNI.Vartika blocks guna-sandhi ato allow vRRiddhi-ekadesh\";\n comments.setConditions(cond1);\n\n }\n // **********END OF ELSE IF****************//\n\n // 209\n // **********ELSE IF****************//\n else if (anta.equals(\"pra\") && (adi.equals(\"Uha\") || adi.equals(\"UDha\") || adi.equals(\"UDhi\") || adi.equals(\"eSa\") || adi.equals(\"eSya\")))\n // checked:29-6\n {\n return_me = vriddhi_sandhi(X_anta, X_adi);\n\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"prAd-Uha-UDha-UDhi-eSa-eSyeSu\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"upasarga 'pra' + <prAd/Uha/UDha/UDhi/eSa/eSya> = vRRiddhi-ekadesha.\" + \"\\nVartika blocks para-rupa Sandhi and/or guna Sandhi to allow vRRidhi-ekadesh.\";\n\n comments.setConditions(cond1);\n\n }\n\n // **********END OF ELSE IF****************//\n\n // 210\n // **********ELSE IF****************//\n else if (anta.equals(\"sva\") && (adi.equals(\"ira\") || adi.equals(\"irin\")))\n {\n // checked:29-6\n return_me = vriddhi_sandhi(X_anta, X_adi);\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"svaadireriNoH\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"sva + <ira/irin> = vRRIddhi.\\n Blocks Guna Sandhi.\" + \"\\nPls. note. My program does not cover sandhi with declensions.\";\n comments.setConditions(cond1);\n }\n\n // **********END OF ELSE IF****************//\n\n // 211 Vik. Semantic Dependency\n // **********ELSE IF****************//\n else if (VowelUtil.isAkaranta(X_anta) && X_adi.equals(\"fta\"))// adi.equals(\"RRita\"))\n {\n // checked:29-6\n // not working for 'a' but working for 'A'. Find out why...fixed\n\n return_me = utsarga_prakruti_bhava(X_anta, X_adi) + \", \" + vriddhi_sandhi(X_anta, X_adi) + \"**\";\n\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"RRite ca tRRitIyAsamAse\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"If an akaranta ('a/aa/a3'-terminating phoneme) is going to form a Tritiya Samas compound with a RRi-initial word\" + \" vRRiddhi-ekadesha takes place blocking other rules.\\n\" + \"a/A/a3 + RRi -> Tritiya Samaasa Compound -> vRRiddhi-ekadesh\" + depend;\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // 212-213\n // **********ELSE IF****************//\n else if ((anta.equals(\"pra\") || anta.equals(\"vatsatara\") || anta.equals(\"kambala\") || anta.equals(\"vasana\") || anta.equals(\"RRiNa\") || anta.equals(\"dasha\")) && adi.equals(\"RRiNa\"))\n\n // checked:29-6\n { // pra condition not working...fixed now . 5 MAR 05\n // return_me = guna_sandhi(X_anta,X_adi) + \", \" +\n // prakruti_bhava(X_anta,X_adi)\n\n return_me = vriddhi_sandhi(X_anta, X_adi);\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n // vowel_notes.set_sutra_num(\"\") ;\n comments.setVartikaPath(\"pra-vatsatara-kambala-vasanArNa dashaanAm RRiNe\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"If 'pra' etc are followed by the word 'RRiNa',\" + \" vRRiddhi-ekadesh takes place blocking Guna and Prakruti Bhava Sandhis.\" + \"\\n<pra/vatsatara/kambala/vasana/RRiNa/dash> + RRiNa = vRRiddhi\";\n comments.setConditions(cond1);\n }\n // ???? also implement prakruti bhava\n\n /**\n * **YEs ACCORDING TO SWAMI DS but not according to Bhaimi Bhashya else\n * if ( adi.equals(\"RRiNa\") && (anta.equals(\"RRiNa\") ||\n * anta.equals(\"dasha\")) ) { return_me = vriddhi_sandhi(X_anta,X_adi);\n * //*sandhi_notes = VE + apavada + vartika + \"'RRiNa dashAbhyAm ca'.\" +\n * \"\\nBlocks Guna and Prakruti Bhava Sandhi\";\n * \n * vowel_notes.start_adding_notes(); vowel_notes.set_sutra_num(\"\") ;\n * vowel_notes.set_vartika_path(\"RRiNa dashAbhyAm ca\") ;\n * vowel_notes.set_sutra_proc(\"Vriddhi-ekadesh\");\n * vowel_notes.set_source(tippani.vartika) ; String cond1 =depend +\n * \"Blocks Guna and Prakruti Bhava Sandhi\";\n * vowel_notes.set_conditions(cond1);\n * /* return_me = utsarga_prakruti_bhava(X_anta,X_adi) + \", \" +\n * vriddhi_sandhi(X_anta,X_adi) + \"**\"; sandhi_notes = usg1 +\n * sandhi_notes; sandhi_notes+= \"\\n\" + usg2 + VE +apavada + vartika +\n * \"'RRiNa dashAbhyAm ca'.\" + depend; // .... this was when I assumed\n * this niyama is optional with other // ???? also implement prakruti\n * bhava }\n */\n // **********END OF ELSE IF****************//\n // 214 Vik. Semantic Dependency\n // **********ELSE IF****************//\n else if (anta.equals(\"A\") && VowelUtil.isAjadi(X_adi))\n {\n // checked:29-6\n // rules is A + Vowel = VRddhi\n\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + vriddhi_sandhi(X_anta, X_adi) + \"**\";\n /*******************************************************************\n * sandhi_notes = usg1 + sandhi_notes + \"\\n\" + usg2 ; // We have to\n * remove vriddhi_sandhi default notes // this is done by /\n ******************************************************************/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.87\");\n comments.setSutraPath(\"ATashca\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = depend + \"if String 1 equals 'aa' and implies 'AT'-Agama and \" + \"String 2 is a verbal form. E.g. A + IkSata = aikSata not ekSata.\\n\" + \" 'aa' + Verbal Form = vRRiddhi-ekadesh\";\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // **********ELSE IF****************//\n // akaranta uparga mein error....fixed 4 MAR\n // 215 Vik Semantic Dependency\n else if (is_akaranta_upsarga(X_anta) && X_adi.startsWith(\"f\")) // RRi\n // ==\n // SLP\n // 'f'USing\n // X_adi,\n // switched\n // to\n // Sharfe\n // Encoding\n { // according to Vedanga Prakash Sandhi Vishaya RRIkara is being\n // translated\n // but checked with SC Basu Trans. it is RRIta not RRikara\n // checked:29-6\n\n Log.info(\" Rules 215 applies\");\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + vriddhi_sandhi(X_anta, X_adi) + \"**\";\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n // vowel_notes.decrement_pointer();\n\n // July 14 2005.. I have removed the above line\n // vowel_notes.decrement_pointer();\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.88\");\n comments.setSutraPath(\"upasargAdRRiti dhAtau\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = depend + \"akaranta upsarga(preverb) followed by verbal form begining with short RRi.\\n \" + \"preverb ending in <a> + verbal form begining with RRi = vRRiddhi-ekadesha\\n\";\n\n /*\n * \"By 6.1.88 it should block all \" + \"optional forms but by 'vA\n * supyApishaleH' (6.1.89) subantas are \" + \"permitted the Guna\n * option.\";\n */\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n Log.info(\"return_me == \" + return_me);\n Log.info(\"*******EXITED AAPAVADA NIYAMA UNO**********\");\n\n if (return_me.equals(\"UNAPPLICABLE\"))\n {\n return_me = apavada_para_rupa(X_anta, X_adi); // search for more\n // apavada rules\n }\n return return_me; // apavada rules formulated by Panini apply\n }", "public void vaaraSyote() {\n System.out.println(\"En ymmärtänyt\");\n kierros();\n }", "public void tradOra(){\r\n leerOracion();\r\n String res=\"\";\r\n for(int i=0; i<orac.size(); i++){\r\n res+=tradPal(rz, orac.get(i).trim())+\" \";\r\n }\r\n System.out.println(res);\r\n }", "private zza.zza()\n\t\t{\n\t\t}", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "public String annulerRv(){\n\t\t// Traitement ici ... \n\t\treturn AFFICHER;\n\t}", "private static boolean poserTapis(){\n\t\tSystem.out.println(\"Choisisser une premiere case pour poser la premiere partie du tapis\");\n\t\tint premiereCaseTapis = console.obtenirDirection();\n\t\tint direction = premiereCaseTapis;\n\t\tint posXTapis = 0, posYTapis = 0;\n\n\t\t//Pose du premier carre de tapis\n\t\ttry{\n\t\t\tif(premiereCaseTapis == 1){\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()-2][jeu.getAssam().getYPion()-1].setCouleurTapis(tour);\n\t\t\t\tposXTapis = jeu.getAssam().getXPion()-2;\n\t\t\t\tposYTapis = jeu.getAssam().getYPion()-1;\n\t\t\t}\n\n\t\t\telse if(premiereCaseTapis == 2){\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()][jeu.getAssam().getYPion()-1].setCouleurTapis(tour);\n\t\t\t\tposXTapis = jeu.getAssam().getXPion();\n\t\t\t\tposYTapis = jeu.getAssam().getYPion()-1;\n\t\t\t}\n\n\t\t\telse if(premiereCaseTapis == 3){\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()-1][jeu.getAssam().getYPion()-2].setCouleurTapis(tour);\n\t\t\t\tposYTapis = jeu.getAssam().getYPion()-2;\n\t\t\t\tposXTapis = jeu.getAssam().getXPion()-1;\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()-1][jeu.getAssam().getYPion()].setCouleurTapis(tour);\n\t\t\t\tposYTapis = jeu.getAssam().getYPion();\n\t\t\t\tposXTapis = jeu.getAssam().getXPion()-1;\n\t\t\t}\n\n\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\tconsole.afficherImpossiblePoserTapis();\n\t\t\treturn false;\n\t\t}\n\n\n\n\n\t\tconsole.afficherJeu();\n\t\tSystem.out.println(\"Choisissez la deuxieme case\");\n\n\t\t//Pose du second petit carre de tapis\n\t\twhile(true){\n\t\t\tint d = console.obtenirDirection();\n\t\t\t//pour ne pas faire de demi tour ou erreur de d\n\t\t\tif(direction == 1 && d == 2 || direction == 2 && d == 1 || direction == 3 && d == 4 || direction == 4 && d == 3 || d<1 || d>4){\n\t\t\t\tconsole.afficherImpossibleChoisirDirection();\n\t\t\t} else {\n\t\t\t\ttry{\n\t\t\t\t\tif(d == 1){\n\t\t\t\t\t\tjeu.cases[posXTapis-1][posYTapis].setCouleurTapis(tour);\n\t\t\t\t\t}\n\n\t\t\t\t\telse if(d == 2){\n\t\t\t\t\t\tjeu.cases[posXTapis+1][posYTapis].setCouleurTapis(tour);\n\t\t\t\t\t}\n\n\t\t\t\t\telse if(d == 3){\n\t\t\t\t\t\tjeu.cases[posXTapis][posYTapis-1].setCouleurTapis(tour);\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tjeu.cases[posXTapis][posYTapis+1].setCouleurTapis(tour);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\t\t\tconsole.afficherImpossiblePoserTapis();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tjeu.getJoueurs()[tour-1].useTapis();\n\t\treturn true;\n\n\n\t}", "public static void main(String[] args) {\n String[] Ime={\"Marko\", \"Petar\", \"Milan\"};\n String[] Prezime= {\"Markovic\", \"Petrovic\",\"Milanovic\"}; \n \n // kratka forma for petlje\n // ovo ce biti dovoljno za sad\n for(int i=0;i<Ime.length;i++){ \t \n \n \t\t \tSystem.out.println(Ime[i]+\" \"+Prezime[i]);\n \t \n }\n \n\t\t\n\t\t\n\t\t\n\t}", "public void statoIniziale()\n {\n int r, c;\n for (r=0; r<DIM_LATO; r++)\n for (c=0; c<DIM_LATO; c++)\n {\n if (eNera(r,c))\n {\n if (r<3) // le tre righe in alto\n contenutoCaselle[r][c] = PEDINA_NERA;\n else if (r>4) // le tre righe in basso\n contenutoCaselle[r][c] = PEDINA_BIANCA;\n else contenutoCaselle[r][c] = VUOTA; // le 2 righe centrali\n }\n else contenutoCaselle[r][c] = VUOTA; // caselle bianche\n }\n }", "public int generateRoshambo(){\n ;]\n\n }", "public boolean voikoSulkea() {\n handleTallenna();\n return true;\n }", "public void vincula(){\n for (Nodo n : exps)\n n.vincula();\n }", "@Override\r\n\tpublic double obliczCenePoRabacie(double cena){\n\t\tcena = cena - kwotaRabatu;\r\n\t\treturn cena;\r\n\t\t\r\n\t}", "public void asignarRaza(int raza);", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "@Override\n public ArrayList<String> kaikkiMahdollisetSiirrot(int x, int y, Ruutu[][] ruudukko) {\n ArrayList<String> siirrot = new ArrayList<>();\n if (x - 1 >= 0 && y - 2 >= 0 && (ruudukko[x - 1][y - 2].getNappula() == null || !onkoSamaVari(ruudukko[x - 1][y - 2].getNappula()))) {\n siirrot.add(\"\" + (x - 1) + (y - 2));\n }\n if (x - 2 >= 0 && y - 1 >= 0 && (ruudukko[x - 2][y - 1].getNappula() == null || !onkoSamaVari(ruudukko[x - 2][y - 1].getNappula()))) {\n siirrot.add(\"\" + (x - 2) + (y - 1));\n }\n if (x - 1 >= 0 && y + 2 <= 7 && (ruudukko[x - 1][y + 2].getNappula() == null || !onkoSamaVari(ruudukko[x - 1][y + 2].getNappula()))) {\n siirrot.add(\"\" + (x - 1) + (y + 2));\n }\n if (x - 2 >= 0 && y + 1 <= 7 && (ruudukko[x - 2][y + 1].getNappula() == null || !onkoSamaVari(ruudukko[x - 2][y + 1].getNappula()))) {\n siirrot.add(\"\" + (x - 2) + (y + 1));\n }\n if (x + 1 <= 7 && y - 2 >= 0 && (ruudukko[x + 1][y - 2].getNappula() == null || !onkoSamaVari(ruudukko[x + 1][y - 2].getNappula()))) {\n siirrot.add(\"\" + (x + 1) + (y - 2));\n }\n if (x + 2 <= 7 && y - 1 >= 0 && (ruudukko[x + 2][y - 1].getNappula() == null || !onkoSamaVari(ruudukko[x + 2][y - 1].getNappula()))) {\n siirrot.add(\"\" + (x + 2) + (y - 1));\n }\n if (x + 1 <= 7 && y + 2 <= 7 && (ruudukko[x + 1][y + 2].getNappula() == null || !onkoSamaVari(ruudukko[x + 1][y + 2].getNappula()))) {\n siirrot.add(\"\" + (x + 1) + (y + 2));\n }\n if (x + 2 <= 7 && y + 1 <= 7 && (ruudukko[x + 2][y + 1].getNappula() == null || !onkoSamaVari(ruudukko[x + 2][y + 1].getNappula()))) {\n siirrot.add(\"\" + (x + 2) + (y + 1));\n }\n return siirrot;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"ahoj\");\r\n\r\n\t\tprazdnaMatica();\r\n\r\n\t\t// vypisZoznamu();\r\n\r\n\t\t// System.out.println(pole[zacy][zacx]);\r\n\r\n\t\t// pom = geny.get(0);\r\n\t\t// pom.dlzka = trasa(pom);\r\n\r\n\t}", "@Test\n public void testTarkistaVastaus() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n\n\n assertEquals(\"Sanan tarkastus ei toimi\", true, k.tarkistaVastaus(\"vastine\"));\n }", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "public PileSearchRecode() {\n }", "public void klikkaa(Tavarat tavarat, Klikattava klikattava);", "private void nuskaitymas() {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Iveskite zodi\");\n zodis = sc.nextLine();\n patikrinimas(zodis);\n }", "public void RuchyKlas() {\n\t\tSystem.out.println(\"RuchyKlas\");\n\t\tPlansza.getNiewolnikNaPLanszy().Ruch();\n\t\tPlansza.getRzemieslnikNaPlanszy().Ruch();\n\t\tPlansza.getArystokrataNaPlanszy().Ruch();\n\t}", "private static void ucitajVaspitace(Vrtic v, String fn)\n {\n if(!Svetovid.testIn(fn))\n return;\n\n System.out.println(\"Ucitavam vaspitace...\");\n\n while(Svetovid.in(fn).hasMore())\n v.dodaj(Svetovid.in(fn).readLine());\n\n Svetovid.in(fn).close();\n }", "private static void izpisiNavodila() {\n System.err.println(\"java ... [<datoteka.png>] [<sirina>x<visina>]\");\n System.err.println();\n System.err.println(\"java ...\");\n System.err.println(\" sliko nariše v okno velikosti 800 krat 600\");\n System.err.println();\n System.err.println(\"java ... 640x480\");\n System.err.println(\" sliko nariše v okno velikosti 640 krat 480\");\n System.err.println();\n System.err.println(\"java ... primer.png\");\n System.err.println(\" izdela sliko primer.png velikosti 800 krat 600\");\n System.err.println();\n System.err.println(\"java ... primer.png 640x480\");\n System.err.println(\" izdela sliko primer.png velikosti 640 krat 480\");\n }", "static void perform_rpo(String passed){\n\t\tint type = type_of_rpo(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\treturn_not_parity(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "private int generujViacZvierat(int pocet){\r\n int poc = 0;\r\n for (int i = 0; i < pocet; i++) {\r\n if (zoo.pridajZivocicha(vytvorZivocicha())) poc++;\r\n }\r\n return poc;\r\n }", "public void przestaw(int ktoraRamkaKurwa){ //0 nic, 1 korwin, 2 nosacz\n\n\t\tthis.ktoraRamkaKurwa = ktoraRamkaKurwa;\n\t\tktoraRamka++; \n\t}", "public abstract String mo9238av();", "private static int zamijeniDvijeKarte(int[] spil) {\n\t\tint prva =randomKarta (spil);\n\t\tint druga = randomKarta (spil);\n\t\tzamijeni (spil, prva, druga);\n\t\t\n\t\treturn spil, prva, druga;\n\t}", "public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}", "public void obliczSzanseWykolejenia(Tramwaj tramwaj, Pogoda pogoda, Motorniczy motorniczy, Przystanek przystanek){\r\n RegulyWykolejen regulyWykolejen= new RegulyWykolejen();\r\n this.szansaWykolejenia = pogoda.getRyzyko() + przystanek.getStanTechnicznyPrzystanku() + tramwaj.getStanTechTramwaju() + regulyWykolejen.regulaWiek(motorniczy.getWiek()) + regulyWykolejen.regulaDoswiadczenie(motorniczy.getDoswiadczenie());\r\n }", "void berechneUmfang() {\r\n\t\tfor (int i = 1; i < m_ANZAHL_POINTS; i++) {\r\n\t\t\tm_umfang += m_pointArray[i].distance(m_pointArray[i-1]);\t\t\r\n\t\t}\r\n\t}" ]
[ "0.634762", "0.61452436", "0.612364", "0.60984874", "0.60955393", "0.6062688", "0.60131216", "0.60109836", "0.6009785", "0.59991777", "0.59721553", "0.5968054", "0.59431744", "0.59396684", "0.58932793", "0.58853185", "0.5876934", "0.5857764", "0.58577543", "0.58499706", "0.5847261", "0.58449614", "0.58422863", "0.5833334", "0.5797635", "0.57958436", "0.5794096", "0.5785953", "0.5782624", "0.57719225", "0.57705605", "0.5769121", "0.57690287", "0.5764832", "0.5760392", "0.57540846", "0.5752877", "0.5751687", "0.5740875", "0.5723714", "0.57233375", "0.571949", "0.5715748", "0.5709906", "0.5700311", "0.56949824", "0.56937236", "0.56736916", "0.56723106", "0.56639653", "0.5658723", "0.56541395", "0.5651969", "0.56492126", "0.56492126", "0.5644572", "0.5633873", "0.5627601", "0.56268674", "0.5626237", "0.56258005", "0.56240696", "0.56235117", "0.5621365", "0.5620109", "0.5617615", "0.56170464", "0.56124943", "0.5606812", "0.56065094", "0.5597478", "0.5581215", "0.5576976", "0.55753165", "0.5564036", "0.5548946", "0.5547878", "0.55441034", "0.5539027", "0.55385226", "0.5527461", "0.5513931", "0.55069983", "0.54927653", "0.5488575", "0.5482853", "0.548284", "0.5475693", "0.54754376", "0.5474679", "0.54738975", "0.5470987", "0.5465643", "0.546393", "0.5457553", "0.54537785", "0.5452996", "0.5452907", "0.54515254", "0.54512584", "0.5444784" ]
0.0
-1
/ metoda koja racuna obim kruga
public double getPerimeter(){ double obim = 2 * PI * this.radius; return obim; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "public static void main(String [] agrs){\n\r\n\r\n Kaczka gumowa = new GumowaKaczka();\r\n gumowa.ustawKwakanieInterfejs(2);\r\n gumowa.ustawLatanieInterfejs(new SzybkieLatanie());\r\n gumowa.wyswietl();\r\n System.out.println(gumowa.kwacz());\r\n System.out.println(gumowa.lec());\r\n Kaczka dzika = new DzikaKaczka();\r\n // dzika.ustawLatanieInterfejs(1);\r\n dzika.wyswietl();\r\n System.out.println(dzika.lec());\r\n System.out.println(dzika.kwacz());\r\n\r\n\r\n// Polecenie[] polecenieWlacz;\r\n// Polecenie[] polecanieWylacz;\r\n// Polecenie polecenieWycofaj;\r\n//\r\n// polecanieWylacz = new Polecenie[7];\r\n// polecenieWlacz = new Polecenie[7];\r\n//\r\n// Swiatlo swiatlo = new Swiatlo();\r\n// polecanieWylacz[0] = new PolecenieWylaczSwiatlo(swiatlo);\r\n// polecenieWlacz[0] = new PolecenieWlaczSwiatlo(swiatlo);\r\n//\r\n//\r\n//\r\n//\r\n// polecenieWlacz[0].wykonaj();\r\n// polecanieWylacz[0].wykonaj();\r\n// polecenieWlacz[0].wykonaj();\r\n// polecenieWycofaj = polecanieWylacz[0];\r\n//// polecenieWycofaj = polecenieWlacz[0];\r\n// polecenieWycofaj.wykonaj();\r\n// polecenieWycofaj.wykonaj();\r\n//// polecenieWycofaj.wycofaj();\r\n//\r\n// WiezaStereo wiezaStereo = new WiezaStereo();\r\n//\r\n// polecenieWlacz[1] = new PolecenieWiezaStereoWlaczCD(wiezaStereo);\r\n//\r\n// polecenieWlacz[1].wykonaj();\r\n\r\n\r\n\r\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "public abstract String dohvatiKontakt();", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "public void zmiana_rozmiaru_okna()\n {\n b.dostosowanie_rozmiaru(getWidth(),getHeight());\n w.dostosowanie_rozmiaru(getWidth(),getHeight());\n\n for (Pilka np : p) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Naboj np : n) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Bonus np : bon) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n\n }", "private void pojedi (int i, int j) {\n\t\trezultat++;\n\t\tthis.zmija.add(0, new Cvor(i,j));\n\t\tthis.dodajZmiju();\n\t\tthis.dodajHranu();\n\t}", "private TreeNode napraviStabloUtil(List<TreeNode> cvorovi, int pocetni, int krajnji) {\n// osnovni slučaj\n if (pocetni > krajnji) {\n return null;\n }\n /* Nadji srednji element i proglasi ga korenom */\n int mid = (pocetni + krajnji) / 2;\n TreeNode cvor = cvorovi.get(mid);\n /* Koristeci indeks u infiks obilasku\n* konstruiši levo i desno podstablo */\n cvor.left = napraviStabloUtil(cvorovi, pocetni, mid - 1);\n cvor.right = napraviStabloUtil(cvorovi, mid + 1, krajnji);\n return cvor;\n }", "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }", "private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "public static void trazenjeVozila(Iznajmljivac o) {\n\t\tLocalDate pocetniDatum = UtillMethod.unosDatum(\"pocetni\");\n\t\tLocalDate krajnjiDatum = UtillMethod.unosDatum(\"krajnji\");\n\t\tSystem.out.println(\"------------------------------------\");\n\t\tSystem.out.println(\"Provera dostupnosti vozila u toku...\\n\");\n\t\tArrayList<Vozilo> dostupnaVoz = new ArrayList<Vozilo>();\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tif (!postojiLiRezervacija(v, pocetniDatum, krajnjiDatum) && !v.isVozObrisano()) {\n\t\t\t\tSystem.out.println(i + \"-\" + v.getVrstaVozila() + \"-\" + \"Registarski broj\" + \"-\" + v.getRegBR()\n\t\t\t\t\t\t+ \"-Potrosnja na 100km-\" + v.getPotrosnja100() + \"litara\");\n\t\t\t\ti++;\n\t\t\t\tdostupnaVoz.add(v);\n\t\t\t}\n\t\t}\n\t\tif (i > 0) {\n\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\tSystem.out.println(\"Ukucajte kilometrazu koju planirate da predjete:\");\n\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\tint km1 = (int) km;\n\t\t\tporedjenjeVozila d1 = new poredjenjeVozila(km1);\n\t\t\tCollections.sort(dostupnaVoz,d1);\n\t\t\tint e = 0;\n\t\t\tfor(Vozilo v : dostupnaVoz) {\n\t\t\t\tdouble temp = cenaTroskaVoz(v, km, v.getGorivaVozila().get(0));\n\t\t\t\tSystem.out.println(e + \" - \" + v.getVrstaVozila()+ \"-Registarski broj: \"+ v.getRegBR()+\" | \"+ \"Cena na dan:\"+v.getCenaDan() +\" | Broj sedista:\"+ v.getBrSedist()+ \" | Broj vrata:\"+ v.getBrVrata() + \"| Cena troskova puta:\" + temp + \" Dinara\");\n\t\t\t\te++;\n\t\t\t}\n\t\t\tSystem.out.println(\"---------------------------------------\");\n\t\t\tSystem.out.println(\"Unesite redni broj vozila kojeg zelite:\");\n\t\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\t\tif (redniBroj < dostupnaVoz.size()) {\n\t\t\t\tDateTimeFormatter formatters = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\t\t\tString pocetni = pocetniDatum.format(formatters);\n\t\t\t\tString krajnji = krajnjiDatum.format(formatters);\n\t\t\t\tdouble cena = UtillMethod.cenaIznaj(pocetniDatum, krajnjiDatum, dostupnaVoz.get(redniBroj));\n\t\t\t\tRezervacija novaRez = new Rezervacija(dostupnaVoz.get(redniBroj), o, cena, false, pocetni, krajnji);\n\t\t\t\tMain.getRezervacijeAll().add(novaRez);\n\t\t\t\tSystem.out.println(\"Uspesno ste napravili rezervaciju!\");\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t\tSystem.out.println(novaRez);\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Nema dostupnih vozila za rezervaaciju.\");\n\t\t}\n\t}", "public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}", "public void urciStupneVrcholu(){\n\t\tfor(int i = 0;i < vrchP.length; i++){\n\t\t\tstupenVrcholu(vrchP[i].klic);\n\t\t}\n\t}", "private boolean spoji(int direkcija) {\r\n\t\tint pocetna;\r\n\t\tint pomak;\r\n\t\tboolean spojeno = false;\r\n\t\tboolean bilo_promjene = false;\r\n\t\t\r\n\t\t// pomjeranje desno i lijevo\r\n\t\tif(direkcija == 1 || direkcija == 2) {\r\n\t\t\tpocetna = 6 - 3*direkcija; // pocetna je ili 3 ili 0\r\n\t\t\tpomak = 2*direkcija - 3; // pomak je ili -1 ili 1\r\n\t\t\t\r\n\t\t\t// ovaj dio vrsi samo spajanje polja\r\n\t\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\t\tfor(int j = pocetna ; j != pocetna + 3 * pomak ; j += pomak)\r\n\t\t\t\t\tif(spojeno)\r\n\t\t\t\t\t\tspojeno = false;\r\n\t\t\t\t\telse if(tabela[i][j] != 0 && tabela[i][j] == tabela[i][j + pomak]) {\r\n\t\t\t\t\t\ttabela[i][j] = 2 * tabela[i][j];\r\n\t\t\t\t\t\tif(!igrajPoslijePobjede && tabela[i][j] == 8) // ako je igrac pobijedio (po prvi put, tj. nije bio nastavak igre)\r\n\t\t\t\t\t\t\tpobjeda = true;\r\n\t\t\t\t\t\ttabela[i][j + pomak] = 0;\r\n\t\t\t\t\t\tspojeno = true;\r\n\t\t\t\t\t\tbilo_promjene = true;\r\n\t\t\t\t\t\tbroj_slobodnih++;\r\n\t\t\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// pomjeranje gore i dole\r\n\t\telse {\r\n\t\t\tpocetna = direkcija; // pocetna je ili 3 ili 0\r\n\t\t\tpomak = 1 - (2*direkcija)/3; // pomak je ili -1 ili 1\r\n\t\t\t\r\n\t\t\t// ovaj dio vrsi samo spajanje polja\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++) {\r\n\t\t\t\tfor(int i = pocetna ; i != pocetna + 3 * pomak ; i += pomak)\r\n\t\t\t\t\tif(spojeno)\r\n\t\t\t\t\t\tspojeno = false;\r\n\t\t\t\t\telse if(tabela[i][j] != 0 && tabela[i][j] == tabela[i + pomak][j]) {\r\n\t\t\t\t\t\ttabela[i][j] = 2 * tabela[i][j];\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(!igrajPoslijePobjede && tabela[i][j] == 8) // ako je igrac pobijedio (po prvi put, tj. nije bio nastavak igre)\r\n\t\t\t\t\t\t\tpobjeda = true;\r\n\t\t\t\t\t\ttabela[i + pomak][j] = 0;\r\n\t\t\t\t\t\tspojeno = true;\r\n\t\t\t\t\t\tbilo_promjene = true;\r\n\t\t\t\t\t\tbroj_slobodnih++;\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn bilo_promjene;\r\n\t}", "private void logika_rozpocznij(){\n\t}", "private static PohonAVL seimbangkanKembaliKanan(PohonAVL p) {\n //...\n // Write your codes in here\n }", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "public ArrayList<ArrayList<Float>> predykcjaCenNaRynkuLokalnym()\n\t{\n\t\tfloat cenaMinimalnaNaRynkuLokalnym= Stale.cenaMinimalnaNaRynkuLokalnym;\n\t\tfloat cenaMaksymalnaNaRynkuLokalnym = Stale.cenaDystrybutoraZewnetrznego;\n\t\t\n\t\t//tu siedzi to rozroznienie czy z generatora czy predykcja z poprzendiej symualcji\n\t\tArrayList<Float> normalnaPredykcja = pierwszaPredykcja();\n\t\tpriceVectorsList.add(normalnaPredykcja);\n\t\t\n\t\tArrayList<ArrayList<Float>> listaPredykcjiCen= new ArrayList<ArrayList<Float>>();\n\t\t\n\t\t\n\t\t//nizsza \n\t\tArrayList<Float> predykcjaZNizszaCena=new ArrayList<Float>(normalnaPredykcja);\t\t\n\t\tArrayList<Float> predykcjaZWyzszaCena=new ArrayList<Float>(normalnaPredykcja);\n\t\t\n\t\tfloat nizszaCena =(normalnaPredykcja.get(0)+cenaMinimalnaNaRynkuLokalnym)/2 ;\n\t\tfloat wyzszaCena=(normalnaPredykcja.get(0)+cenaMaksymalnaNaRynkuLokalnym)/2;\n\t\t\n\t\tpredykcjaZNizszaCena.set(0, nizszaCena);\n\t\tpredykcjaZWyzszaCena.set(0, wyzszaCena);\n\t\t\n\t\tlistaPredykcjiCen.add(predykcjaZNizszaCena);\n\t\tlistaPredykcjiCen.add(normalnaPredykcja);\n\t\tlistaPredykcjiCen.add(predykcjaZWyzszaCena);\n\t\t\n\t\t//reporting - zapisz zadeklarowan cene\n\t\trynekHistory.dodajZadeklarowanaCene(normalnaPredykcja.get(0));\n\t\t\n\t\t\n\t\treturn listaPredykcjiCen;\t\n\t}", "public void naplnVrcholy() {\r\n System.out.println(\"Zadajte pocet vrcholov: \");\r\n pocetVrcholov = skener.nextInt();\r\n for (int i=0; i < pocetVrcholov; i++) {\r\n nekonecno = (int)(Double.POSITIVE_INFINITY);\r\n if(i==0) { //pre prvy vrchol potrebujeme nastavit vzdialenost 0 \r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu, 0, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n } else { //ostatne budu mat nekonecno alebo v tomto pripade 9999 (lebo tuto hodnotu v mensich grafoch nepresiahnem)\r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu,nekonecno, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n }\r\n }\r\n }", "void zmniejszBieg();", "public static void main(String[] args) {\n\t\t\r\n\t\tclass Ulamek{\r\n\t\t\tprivate int licznik, mianownik;\r\n\r\n\t\t\tpublic void ustawLicznik (int l){\r\n\t\t\t\tlicznik=l;\r\n\t\t\t}\r\n\t\t\tpublic void ustawMianownik (int m){\r\n\t\t\t\tmianownik=m;\r\n\t\t\t}\r\n\t\t\tpublic void ustawUlamek (int u1, int u2){\r\n\t\t\t\tlicznik=u1;\r\n\t\t\t\tmianownik=u2;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void wyswietl (){\r\n\t\t\t\t\r\n\t\t\t\tint przod, reszta, przod_dlugosc, mianownik_dlugosc, licznik_dlugosc;\r\n\t\t\t\tString przod_zamiana, mianownik_string, licznik_string;\r\n\t\t\t\tdouble wynik;\r\n\t\t\t\t\r\n\t\t\t\tif (mianownik!=0 && licznik !=0){\r\n\t\t\t\tprzod=licznik/mianownik;\r\n\t\t\t\treszta=licznik-(przod*mianownik);\r\n\t\t\t\tprzod_zamiana=\"\"+przod;\r\n\t\t\t\tprzod_dlugosc=przod_zamiana.length();\r\n\t\t\t\twynik=1.0*licznik/mianownik;\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t licznik++;\r\n\t\t\t\t\t}while (licznik!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(reszta);\r\n\t\t\t}\r\n\r\n\t\t\t\t//zamiana na stringa i liczenie\r\n\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//brak calości\r\n\t\t\t\tif(przod==0){\r\n\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\tif(przod!=0){\r\n\t\t\t\tSystem.out.print(\" \"+przod+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik2 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik2++;\r\n\t\t\t\t\t\r\n\t\t\t\t}while (licznik2!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t System.out.println();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t//jezeli blad \r\n\t\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\tlicznik_string=\"\"+licznik;\r\n\t\t\t\t\tlicznik_dlugosc=licznik_string.length();\r\n\t\t\t\t\tif(licznik_dlugosc>mianownik_dlugosc){\r\n\t\t\t\t\t\tmianownik_dlugosc=licznik_dlugosc;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//gora\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t//if(licznik==0){\r\n\t\t\t\t\t//System.out.print(\" \");\r\n\t\t\t\t\t//}\r\n\r\n\t\t\t\t\tSystem.out.println(licznik);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//srodek\r\n\t\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\tint licznik3 = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t licznik3++;\r\n\t\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t\t System.out.print(\" = \"+\"ERR\");\r\n\r\n\t\t\t\t System.out.println();\r\n\t\t\t\t\t\r\n\t\t\t\t //dol\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t\t\t System.out.println();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t Ulamek u1=new Ulamek();\r\n\t\t Ulamek u2=new Ulamek();\r\n\r\n\t\t u1.ustawLicznik(3);\r\n\t\t u1.ustawMianownik(5);\r\n\r\n\t\t u2.ustawLicznik(142);\r\n\t\t u2.ustawMianownik(8);\r\n\r\n\t\t u1.wyswietl();\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\t \r\n\t\t u2.wyswietl();\r\n\r\n\r\n\r\n\r\n\t\t u2.ustawUlamek(100,0);\r\n\r\n\r\n\t\t u2.wyswietl();\r\n\r\n\t}", "void Hrana(String start,String cil, char druh){\n\t\tint iStart = index(start);\n\t\tint iCil = index(cil);\n\t\t\n\t\tif(iStart == -1)\n\t\t\treturn;\n\t\tif(iCil == -1)\n\t\t\treturn;\n\t\t//orientovana hrana\n\t\tif(druh == '-' || druh == '>'){\n\t\t\tmatice[iStart][iCil] = 1;\n\t\t\tvrchP[iStart].pocetSousedu = vrchP[iStart].pocetSousedu +1;\n\t\t}\n\t\t\n\t\t//neorientovana\n\t\tif(druh == '-'){\n\t\t\tmatice[iCil][iStart] = 1;\n\t\t\tvrchP[iCil].pocetSousedu = vrchP[iCil].pocetSousedu +1;\t\n\t\t}\n\t\t\n\t\tHrana pom = new Hrana(start,cil,'W',druh);\n\t\thrana[pocetHr] = pom;\n\t\tpocetHr++;\n\t\t\n\t\t\n\t}", "public static void TroskoviPredjenogPuta() {\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje zelite da racunate predjeni put!\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tSystem.out.println(\"Unesite broj kilometara koje ste presli sa odgovarajucim vozilom\");\n\t\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\t\tVozilo v = Main.getVozilaAll().get(redniBroj);\n\t\t\t\tdouble rezultat;\n\t\t\t\tif(v.getGorivaVozila().size()>1) {\n\t\t\t\t\tGorivo g = UtillMethod.izabirGoriva();\n\t\t\t\t\trezultat = cenaTroskaVoz(v,km,g);\n\t\t\t\t}else {\n\t\t\t\t\t rezultat = cenaTroskaVoz(v,km,v.getGorivaVozila().get(0));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Cena troskova za predjeni put je \" + rezultat + \"Dinara!\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}", "public void obliczSzanseWykolejenia(Tramwaj tramwaj, Pogoda pogoda, Motorniczy motorniczy, Przystanek przystanek){\r\n RegulyWykolejen regulyWykolejen= new RegulyWykolejen();\r\n this.szansaWykolejenia = pogoda.getRyzyko() + przystanek.getStanTechnicznyPrzystanku() + tramwaj.getStanTechTramwaju() + regulyWykolejen.regulaWiek(motorniczy.getWiek()) + regulyWykolejen.regulaDoswiadczenie(motorniczy.getDoswiadczenie());\r\n }", "void rozpiszKontraktyPart2NoEV(int index,float wolumenHandlu, float sumaKupna,float sumaSprzedazy )\n\t{\n\t\tArrayList<Prosument> listaProsumentowTrue =listaProsumentowWrap.getListaProsumentow();\n\t\t\n\n\t\tint a=0;\n\t\twhile (a<listaProsumentowTrue.size())\n\t\t{\n\t\t\t\t\t\t\n\t\t\t// ustala bianrke kupuj\n\t\t\t// ustala clakowita sprzedaz (jako consumption)\n\t\t\t//ustala calkowite kupno (jako generacje)\n\t\t\tDayData constrainMarker = new DayData();\n\t\t\t\n\t\t\tArrayList<Point> L1\t=listaFunkcjiUzytecznosci.get(a);\n\t\t\t\n\t\t\t//energia jaka zadeklarowal prosument ze sprzeda/kupi\n\t\t\tfloat energia = L1.get(index).getIloscEnergiiDoKupienia();\n\t\t\t\n\t\t\tif (energia>0)\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoKupienia = energia/sumaKupna*wolumenHandlu;\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(1);\n\t\t\t\tconstrainMarker.setGeneration(iloscEnergiiDoKupienia);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoKupienia,a);\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoSprzedania = energia/sumaSprzedazy*wolumenHandlu;\n\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(0);\n\t\t\t\tconstrainMarker.setConsumption(iloscEnergiiDoSprzedania);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoSprzedania,a);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<Float> priceVector = priceVectorsList.get(priceVectorsList.size()-1);\n\t\t\t\n\t\t\t//poinformuj prosumenta o wyniakch handlu i dostosuj go do wynikow\n\t\t\tlistaProsumentowTrue.get(a).getKontrakt(priceVector,constrainMarker);\n\t\t\t\n\t\t\ta++;\n\t\t}\n\t}", "private Karta kartaErabaki(ArrayList<ArrayList<Karta>> pMatrizea) \r\n\t{\r\n\t\tKarta karta = (Karta) new KartaNormala(ElementuMota.ELURRA,0,KoloreMota.BERDEA);\r\n\t\tfor(int i=0;i<pMatrizea.size();i++) \r\n\t\t{\r\n\t\t\tfor(int x=0;x<5;x++) \r\n\t\t\t{\r\n\t\t\t\tif(pMatrizea.get(i).get(0).getElementua()!=pMatrizea.get(i).get(1).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getElementua()!=this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getElementua()!=this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getBalioa()>karta.getBalioa() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getErabilgarria()) \r\n\t\t\t\t{\r\n\t\t\t\t\tkarta = lortuJolastekoKartaPosz(x);\r\n\t\t\t\t}\r\n\t\t\t\tif(pMatrizea.get(i).get(0).getElementua()==pMatrizea.get(i).get(1).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getElementua()==this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getElementua()==this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getBalioa()>karta.getBalioa() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getErabilgarria()) \r\n\t\t\t\t{\r\n\t\t\t\t\tkarta = this.lortuJolastekoKartaPosz(x);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn karta;\r\n\t}", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "public void zpracujObjednavky()\n\t{\n\t\tint idtmp = 0;\n\t\tfloat delkaCesty = 0;\n\t\t\n\t\tif (this.objednavky.isEmpty())\n\t\t{\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tNakladak nakl = (Nakladak) getVolneAuto();\n\t\t\n\t\tnakl.poloha[0] = this.poloha[0];\n\t\tnakl.poloha[1] = this.poloha[1];\n\t\tObjednavka ob = this.objednavky.remove();\n\n\t\t/*System.out.println();\n\t\tSystem.out.println(\"Objednavka hospody:\" + ob.id + \" se zpracuje pres trasu: \");\n\t\t */\n\t\tdelkaCesty += vyberCestu(this.id, ob.id, nakl);\n\t\t\n\t\twhile(nakl.pridejObjednavku(ob))\n\t\t{\n\t\t\tidtmp = ob.id;\n\t\t\t\n\t\t\tob = vyberObjednavku(ob.id);\n\t\t\tif (ob == null)\n\t\t\t{\n\t\t\t\tob=nakl.objednavky.getLast();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tobjednavky.remove(ob);\n\t\t\t\n\t\t\tdelkaCesty += vyberCestu(idtmp, ob.id, nakl);\n\t\t\t\n\t\t\tif((nakl.objem > 24)||(13-Simulator.getCas().hodina)*(nakl.RYCHLOST) + 100 < delkaCesty){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t/*\n\t\t\tif((Simulator.getCas().hodina > 12) && (delkaCesty > 80) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif((Simulator.getCas().hodina > 9) && (delkaCesty > 130) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}*/\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t//cesta zpatky\n\t\tvyberCestu(ob.id, this.id, nakl);\n\t\tif (nakl.objem >= 1)\n\t\t{\n\t\t\tnakl.kDispozici = false;\n\t\t\tnakl.jede = true;\n\t\t\t//vytvoreni nove polozky seznamu pro statistiku\n\t\t\tnakl.novaStatCesta();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnakl.resetCesta();\n\t\t}\n\t}", "private Zivocich vytvorZivocicha() {\r\n final String[] zFarba = {\"cervena\", \"zelena\", \"modra\", \"zlta\", \"zlto-zelena\"};\r\n Zivocich zviera = null;\r\n double kolkoVazi = 0.0;\r\n\r\n //-- Vygenerujeme zviera\r\n int vygenerovane = 1 + generator.nextInt(4); //cislo <1,4>\r\n\r\n switch (vygenerovane) {\r\n case 1: //blcha \r\n double kolkoDoskoci=3 * generator.nextDouble() ; //cislo <0;2.99>\r\n double kolkoVyskoci=3 * generator.nextDouble() ; //cislo <0;2.99>\r\n zviera=new Blcha(6,kolkoDoskoci,kolkoVyskoci);\r\n break;\r\n case 2: //simpanz\r\n kolkoVazi=3 + (97 * generator.nextDouble()); //cislo <3;99.9>\r\n boolean cviceny;\r\n cviceny=generator.nextBoolean(); \r\n zviera=new Simpanz(kolkoVazi,cviceny);\r\n break;\r\n case 3: //papagaj\r\n kolkoVazi = 0.1 + (5*generator.nextDouble()); // cislo <0.1; 6>\r\n String farba = zFarba[generator.nextInt(5)]; // farba zo zoznamu\r\n zviera = new Papagaj(\"Ara\", 2, kolkoVazi, farba); \r\n break;\r\n case 4: //slon\r\n kolkoVazi=20 + (480*generator.nextDouble()); //cislo <20;500> \r\n int pocet=generator.nextInt(50); //pocet zubov bude <0,49>\r\n zviera=new Slon(kolkoVazi,pocet);\r\n break;\r\n } //------------------------------------------------------------- switch --\r\n return zviera;\r\n }", "@Override\n\tpublic IVector krizaj(IVector prva, IVector druga) {\n\t\treturn null;\n\t}", "private String vylozZvieraZVozidla() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz index zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Zivocich ziv = zoo.vylozZivocicha(pozicia-1);\r\n if (ziv == null) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n }\r\n zoo.pridajZivocicha(ziv);\r\n return \"Zviera \" + ziv\r\n + \"\\n\\tbolo vylozene z prepravneho vozidla\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "void tampilKarakterA();", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "float getMonatl_kosten();", "@Test\n public void yksiVasemmalle() {\n char[][] kartta = Labyrintti.lueLabyrintti(\"src/main/resources/labyrinttiTestiVasen.txt\");\n assertFalse(kartta == null);\n Labyrintti labyrintti = new Labyrintti(kartta);\n RatkaisuLeveyshaulla ratkaisuSyvyyshaulla = new RatkaisuLeveyshaulla(labyrintti);\n String ratkaisu = ratkaisuSyvyyshaulla.ratkaisu();\n assertTrue(Tarkistaja.tarkista(ratkaisu, labyrintti));\n }", "private static int zamijeniDvijeKarte(int[] spil) {\n\t\tint prva =randomKarta (spil);\n\t\tint druga = randomKarta (spil);\n\t\tzamijeni (spil, prva, druga);\n\t\t\n\t\treturn spil, prva, druga;\n\t}", "void berechneUmfang() {\r\n\t\tfor (int i = 1; i < m_ANZAHL_POINTS; i++) {\r\n\t\t\tm_umfang += m_pointArray[i].distance(m_pointArray[i-1]);\t\t\r\n\t\t}\r\n\t}", "@Override\n public ArrayList<String> kaikkiMahdollisetSiirrot(int x, int y, Ruutu[][] ruudukko) {\n ArrayList<String> siirrot = new ArrayList<>();\n if (x - 1 >= 0 && y - 2 >= 0 && (ruudukko[x - 1][y - 2].getNappula() == null || !onkoSamaVari(ruudukko[x - 1][y - 2].getNappula()))) {\n siirrot.add(\"\" + (x - 1) + (y - 2));\n }\n if (x - 2 >= 0 && y - 1 >= 0 && (ruudukko[x - 2][y - 1].getNappula() == null || !onkoSamaVari(ruudukko[x - 2][y - 1].getNappula()))) {\n siirrot.add(\"\" + (x - 2) + (y - 1));\n }\n if (x - 1 >= 0 && y + 2 <= 7 && (ruudukko[x - 1][y + 2].getNappula() == null || !onkoSamaVari(ruudukko[x - 1][y + 2].getNappula()))) {\n siirrot.add(\"\" + (x - 1) + (y + 2));\n }\n if (x - 2 >= 0 && y + 1 <= 7 && (ruudukko[x - 2][y + 1].getNappula() == null || !onkoSamaVari(ruudukko[x - 2][y + 1].getNappula()))) {\n siirrot.add(\"\" + (x - 2) + (y + 1));\n }\n if (x + 1 <= 7 && y - 2 >= 0 && (ruudukko[x + 1][y - 2].getNappula() == null || !onkoSamaVari(ruudukko[x + 1][y - 2].getNappula()))) {\n siirrot.add(\"\" + (x + 1) + (y - 2));\n }\n if (x + 2 <= 7 && y - 1 >= 0 && (ruudukko[x + 2][y - 1].getNappula() == null || !onkoSamaVari(ruudukko[x + 2][y - 1].getNappula()))) {\n siirrot.add(\"\" + (x + 2) + (y - 1));\n }\n if (x + 1 <= 7 && y + 2 <= 7 && (ruudukko[x + 1][y + 2].getNappula() == null || !onkoSamaVari(ruudukko[x + 1][y + 2].getNappula()))) {\n siirrot.add(\"\" + (x + 1) + (y + 2));\n }\n if (x + 2 <= 7 && y + 1 <= 7 && (ruudukko[x + 2][y + 1].getNappula() == null || !onkoSamaVari(ruudukko[x + 2][y + 1].getNappula()))) {\n siirrot.add(\"\" + (x + 2) + (y + 1));\n }\n return siirrot;\n }", "public void ucitajPotez(Potez potez) {\n\t\tint red = potez.vratiRed();\n\t\tint kolona = potez.vratiKolonu();\n\t\ttabla[red][kolona] = potez.vratiRezultat();\n\n\t\tif (potez.vratiRezultat() == Polje1.potopljen) {\n\t\t\tint gornjiRed, gornjaKolona;\n\t\t\tboolean cont1 = false;\n\t\t\tboolean cont2 = false;\n\t\t\tboolean redar = false;\n\t\t\tboolean kolonar = false;\n\t\t\twhile (redar == false) {\n\t\t\t\tif (red == 0) {\n\t\t\t\t\tgornjiRed = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjiRed = red - 1;\n\t\t\t\t}\n\t\t\t\tif (red == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\tred--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjiRed++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen || tabla[gornjiRed][kolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\t\tred++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tredar = true;\n\t\t\t}\n\t\t\tcont1 = false;\n\t\t\tcont2 = false;\n\t\t\tred = potez.vratiRed();\n\t\t\twhile (kolonar == false) {\n\t\t\t\tif (kolona == 0) {\n\t\t\t\t\tgornjaKolona = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjaKolona = kolona - 1;\n\t\t\t\t}\n\t\t\t\tif (kolona == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\tkolona--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjaKolona++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen || tabla[red][gornjaKolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\t\tkolona++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tkolonar = true;\n\n\t\t\t}\n\n\t\t}\n\n\n\t}", "private boolean pomjeri(int direkcija) {\t\r\n\t\t/**\r\n\t\t * Atribut predstavlja zadnje polje u smjeru direkcije u redu ili koloni (zavisno od toga da li je\r\n\t\t * pomjeranje horizontalno ili vertikalno).\r\n\t\t */\r\n\t\tint pocetna;\r\n\t\t/**\r\n\t\t * Atribut govori u kojem smjeru se pomjera trenutnaPozicija (smjer je suprotan direkciji poteza).\r\n\t\t */\r\n\t\tint pomak;\r\n\t\t/**\r\n\t\t * Atribut predstavlja prvo prazno polje na koje se moze pomjeriti iduce neprazno polje.\r\n\t\t */\r\n\t\tint trenutnaPozicija;\r\n\t\t/**\r\n\t\t * Atribut se postavlja na true ukoliko dodje do nekog pomjeranja (promjene u odnosu na prijasnje stanje tabele).\r\n\t\t */\r\n\t\tboolean bilo_promjene = false;\r\n\t\t\r\n\t\t// pomjeranje desno i lijevo\r\n\t\tif(direkcija == 1 || direkcija == 2) {\r\n\t\t\tpocetna = 6 - 3*direkcija; // pocetna je ili 3 ili 0\r\n\t\t\tpomak = 2*direkcija - 3; // pomak je ili -1 ili 1\r\n\t\t\ttrenutnaPozicija = pocetna;\r\n\t\t\t\r\n\t\t\t// ovaj dio vrsi samo pomjeranje polja\r\n\t\t\tfor(int i = 0 ; i < 4 ; i++) {\r\n\t\t\t\tfor(int j = pocetna ; j != pocetna + 4 * pomak ; j += pomak) {\r\n\t\t\t\t\tif(tabela[i][trenutnaPozicija] != 0) // ukoliko se na pocetku desi da to polje nije slobodno\r\n\t\t\t\t\t\ttrenutnaPozicija += pomak;\r\n\t\t\t\t\telse if (tabela[i][j] != 0) { // pomjeri to polje u smjeru direkcija\r\n\t\t\t\t\t\ttabela[i][trenutnaPozicija] = tabela[i][j];\r\n\t\t\t\t\t\ttabela[i][j] = 0;\r\n\t\t\t\t\t\ttrenutnaPozicija += pomak;\r\n\t\t\t\t\t\tbilo_promjene = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\ttrenutnaPozicija = pocetna;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// pomjeranje gore i dole\r\n\t\telse {\r\n\t\t\tpocetna = direkcija; // pocetna je ili 3 ili 0\r\n\t\t\tpomak = 1 - (2*direkcija)/3; // pomak je ili -1 ili 1\r\n\t\t\ttrenutnaPozicija = pocetna;\r\n\t\t\t\r\n\t\t\t// ovaj dio vrsi samo pomjeranje polja\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++) {\r\n\t\t\t\tfor(int i = pocetna ; i != pocetna + 4 * pomak ; i += pomak) {\r\n\t\t\t\t\tif(tabela[trenutnaPozicija][j] != 0) // ukoliko se na pocetku desi da to polje nije slobodno\r\n\t\t\t\t\t\ttrenutnaPozicija += pomak;\r\n\t\t\t\t\telse if (tabela[i][j] != 0) { // pomjeri to polje u smjeru direkcija\r\n\t\t\t\t\t\ttabela[trenutnaPozicija][j] = tabela[i][j];\r\n\t\t\t\t\t\ttabela[i][j] = 0;\r\n\t\t\t\t\t\ttrenutnaPozicija += pomak;\r\n\t\t\t\t\t\tbilo_promjene = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\ttrenutnaPozicija = pocetna;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn bilo_promjene;\r\n\t}", "private SolmuKaksiKolme succSolmu2(SolmuKaksiKolme s) {\n //seuraaja ei tarpeen\n if (s.getOikea() == null) {\n return null;\n }\n\n SolmuKaksiKolme it = s.getOikea();\n\n while (it.getVasen() != null) {\n it = it.getVasen();\n }\n return it;\n }", "boolean sprawdz_przegrana(){\n for(int i=0;i<figura_jakas.getWspolzedne_figorki().size();i++)\n if(sprawdz_kolizje_z_innymi_klockami(0))\n return true;\n return false;\n }", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "void novyVrchol(String klic){\n\t\tVrchol pom = new Vrchol(klic,'B');\n\t\t\n\t\tvrchP[pocet] = pom;\n\t\tpocet++;\n\t\n\t}", "public void dodajZmijuPocetak() {\n\t\tthis.zmija.add(new Cvor(1,4));\n\t\tthis.zmija.add(new Cvor(1,3));\n\t\tthis.zmija.add(new Cvor(1,2));\n\t\t\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\tthis.tabla[i][j] = 'O';\n\t\t\n\t\tfor (int k = 1; k < this.zmija.size(); k++) {\n\t\t\ti = this.zmija.get(k).i;\n\t\t\tj = this.zmija.get(k).j;\n\t\t\tthis.tabla[i][j] = 'o';\n\t\t}\t\n\t}", "public String [] losuj(){\n int licznik = 0;\n String [] wybrane = new String[5];\n while(licznik<5){ // Dla jednego gracza\n int kolor = (int) (Math.random()*4);\n int wartosc = (int) (Math.random()*13);\n if(czyWybrana[kolor][wartosc]==false){\n czyWybrana[kolor][wartosc]=true;\n wybrane[licznik]=karty[kolor][wartosc]+\".jpg\";\n licznik++;\n }\n }\n return wybrane;// tablica z 5 wylosowanymi kartami\n }", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }", "float znajdzOstatecznaCene()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCene\");\n\t\t//print (\"znajdzOstatecznaCene \"+iteracja);\n\t\t\n\t\t//debug\n\t\tBoolean debug = false;\n\t\tif (LokalneCentrum.getCurrentHour().equals(\"03:00\"))\n\t\t{\n\t\t\tprint(\"03:00 on the clock\",debug);\n\t\t\tdebug=false;\n\t\t}\n\t\t\n\t\t//wszystkie ceny jakie byly oglaszan ne na najblizszy slot w \n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tprint(\"ceny na najblizszy slot \"+cenyNaNajblizszySlot.size());\n\n\t\t\n\t\t//do rpzerobienia problemu minimalizacji na maksymalizacje\n\t\tint inverter =-1;\n\t\t\n\t\ti=0;\n\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\tfloat minimuCena =cena;\t\t\n\t\tfloat minimumValue =inverter*funkcjaRynku2(cena, false,true);\n\t\ti++;\n\t\t\n\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), minimuCena);\n\t\t\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tcena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =inverter*funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), cena);\n\n\t\t\tif (value<minimumValue)\n\t\t\t{\n\t\t\t\tminimuCena =cena;\n\t\t\t\tminimumValue = value;\n\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(debug)\n\t\t{\n\t\t\tgetInput(\"03:00 end\");\n\t\t}\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCene - nto finished\");\n\t\treturn minimuCena;\n\t\t\n\t}", "@Test\n public void kaasunKonstruktoriToimiiOikeinTest() {\n assertEquals(rikkihappo.toString(),\"Rikkihappo Moolimassa: 0.098079\\n tiheys: 1800.0\\n lämpötila: 298.15\\n diffuusiotilavuus: 50.17\\npitoisuus: 1.0E12\");\n }", "public void RuchyKlas() {\n\t\tSystem.out.println(\"RuchyKlas\");\n\t\tPlansza.getNiewolnikNaPLanszy().Ruch();\n\t\tPlansza.getRzemieslnikNaPlanszy().Ruch();\n\t\tPlansza.getArystokrataNaPlanszy().Ruch();\n\t}", "private void laskeMatkojenKesto() {\n matkojenkesto = 0.0;\n\n for (Matka m : matkat) {\n matkojenkesto += m.getKesto();\n }\n }", "public void realizacjap34() {\n System.out.println(\"REALIZACJA PUNKTU 3\\n\");\n\n System.out.println(\"\\nWyszukiwanie osob po imieniu (Piotr) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoImieniu(Listy.osoby, \"Piotr\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po nazwisku (Oleszczuk) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoNazwisku(Listy.osoby, \"Oleszczuk\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy mniejszym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyMniejszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy większym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyWiekszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy równym 5============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyRownym(Listy.osoby, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin mniejszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachMniejszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin wiekszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachWiekszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin równej 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachRownych(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji wiekszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiWiekszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji mniejszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiMniejszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji rownej 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiRownej(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stanowisku (Adiunkt) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStanowisku(Listy.osoby, \"Adiunkt\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studenta po numerze indeksu (123456) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzStudentaPoIndeksie(Listy.osoby, \"123456\"));\n\n System.out.println(\"\\nWyszukiwanie studentów po roku studiów (1) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoRokuStudiow(Listy.osoby, 1).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studentów po kierunku (Informatyka Stosowana) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoKierunku(Listy.osoby, \"Informatyka Stosowana\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursu po nazwie (Analiza Matematyczna 1) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzKursPoNazwie(Listy.kursy, \"Analiza Matematyczna 1\"));\n\n System.out.println(\"\\nWyszukiwanie kursów po liczbie ects (5) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoECTS(Listy.kursy, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursów po prowadzacym+\"+Listy.osoby.get(0).getImie()+\" \"+Listy.osoby.get(0).getNazwisko()+\" ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoProwadzacym(Listy.kursy, Listy.osoby.get(0)).forEach(System.out::println);\n\n\n //REALIZACJA PUNKTU 4\n System.out.println(\"=====================================================================================================================\");\n System.out.println(\"REALIZACJA PUNKTU 4\");\n System.out.println(\"=====================================================================================================================\\n\");\n System.out.println(\"Kursy:\\n\");\n for (Kurs kurs : Listy.kursy) {\n System.out.println(kurs.toString());\n }\n\n System.out.println(\"\\nOsoby:\\n\");\n for (Osoba osoba : Listy.osoby) {\n System.out.println(\"OSOBA====================================================================================================\");\n System.out.println(osoba.toString());\n System.out.println();\n }\n }", "public void przestaw(int ktoraRamkaKurwa){ //0 nic, 1 korwin, 2 nosacz\n\n\t\tthis.ktoraRamkaKurwa = ktoraRamkaKurwa;\n\t\tktoraRamka++; \n\t}", "private void poetries() {\n\n\t}", "public void klikkaa(Tavarat tavarat, Klikattava klikattava);", "public int orientaceGrafu(){\n\t\tint poc = 0;\n\t\tfor(int i = 0 ; i < hrana.length ; i++){\n\t\t\tif(!oriNeboNeoriHrana(hrana[i].zacatek,hrana[i].konec))\n\t\t\t poc++;\n\t\t}\n\t\tif(poc == 0 )\n\t\t\treturn 0;\n\t\t\n\t\tif(poc == pocetHr)\n\t\t\treturn 1;\n\t\t\n\t\t\n\t\t\treturn 2;\n\t\t \n\t\t\n\t\t\t\t\t\n\t}", "public void getK_Gelisir(){\n K_Gelistir();\r\n }", "private void poczatkowe_zmienne()\n {\n konfiguracja.loadProperties();\n predkosc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(\"predkosc_wroga\"));\n czas_watku=Integer.parseInt(konfiguracja.properties.getProperty(\"czas_watku\"));\n punkty_poziomu=Integer.parseInt(konfiguracja.properties.getProperty(\"punkty_poziomu\"));\n zmienne_poziomu(poziom);\n }", "public static void dodavanjePutnickogVozila() {\n\t\tString vrstaVozila = \"Putnicko Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja100 = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 10000;\n\t\tdouble cenaServisa = 8000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedist = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tPutnickoVozilo vozilo = new PutnickoVozilo(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja100, predjeno,\n\t\t\t\tpreServisa, cenaServisa, cenaDan, brSedist, brVrata, vozObrisano, servisiNadVozilom);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"---------------------------------------\");\n\t}", "@Override\r\n\tpublic double obliczCenePoRabacie(double cena){\n\t\tcena = cena - kwotaRabatu;\r\n\t\treturn cena;\r\n\t\t\r\n\t}", "public void asetaTeksti(){\n }", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "public String gjejZinxhirin(String start, String end) throws Exception {\n\t\tif (start.length() != end.length())\n\t\t\tthrow new RuntimeException(\"fjalet duhet te jene te te njejtes gjatesi\");\n\n\t\t// nese fjala e pare dhe fjala destinuese jane te njejta nuk ka nevoj per kerkim\n\t\tif (start.equals(end))\n\t\t\treturn start;\n\n\t\t// lexojm dhe i shtojm fjalet nga skedari ku gjinden te gjitha fjalet\n\t\tlexoFjaletNeKeteGjatesi(start.length());\n\n\t\t/*\n\t\t * Kontrollojm se a e ekziston ajo fjale ne fjalor qe te mos behet kerkimi per\n\t\t * dicka qe nuk ekziston\n\t\t */\n\t\tif (!fjalet.contains(start)) {\n\t\t\tthrow new Exception(\"Kjo fjale nuk ekziston ne fjalor\");\n\t\t}\n\t\tif (!fjalet.contains(end)) {\n\t\t\tthrow new Exception(\"Kjo fjale nuk ekziston ne fjalor\");\n\t\t}\n\n\t\t// riinicializojm kandidatet e ri dhe fjalet e shtuara\n\t\tkandidatet = new LinkedList<>();\n\t\tshtuar = new HashMap<>();\n\t\tnumerimi = 0;\n\n\t\tkandidatet.add(start);\n\t\tshtuar.put(start, null);\n\n\t\t/*\n\t\t * fillojm kerkimin e fjaleve por i vendosim nje limit deri 15000 fjale, qe te\n\t\t * mos mbetet programi duke kerkuar pafundesisht\n\t\t */\n\t\twhile (kandidatet.size() > 0) {\n\t\t\tif (numerimi++ > 15000)\n\t\t\t\tthrow new RuntimeException(\"exceeded search limit\");\n\n\t\t\tString c = (String) kandidatet.remove(0);\n\n\t\t\tIterator<String> iter = fjalet.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tString w = (String) iter.next();\n\t\t\t\tif (!shtuar.containsKey(w) && adjacent(c, w)) {\n\t\t\t\t\tshtuar.put(w, c);\n\n\t\t\t\t\tif (end.equals(w)) {\n\t\t\t\t\t\treturn rregulloParaqitjenEZinxhirit(w);\n\t\t\t\t\t}\n\n\t\t\t\t\tkandidatet.add(w);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn null;\n\t}", "private void zmienne_poziomu(int poziom)\n {\n liczba_zyc =Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_zyc\"));\n liczba_naboi=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_naboi\"));\n liczba_zyc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_zyc_wroga\"));\n liczba_pilek=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_pilek\"));\n predkosc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_predkosc_wroga\"));\n bonusy_poziomu=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_bonusy_poziomu\"));\n rozmiar_pilki=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_rozmiar_pilki\"));\n zmiana_ruchu_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_zmiana_ruchu_wroga\"));\n czas_gry=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_czas_gry\"));\n }", "public void pobierzukladprzegladRZiSBO() {\r\n if (uklad.getUklad() == null) {\r\n uklad = ukladBRDAO.findukladBRPodatnikRokPodstawowy(wpisView.getPodatnikObiekt(), wpisView.getRokWpisuSt());\r\n }\r\n List<PozycjaRZiSBilans> pozycje = UkladBRBean.pobierzpozycje(pozycjaRZiSDAO, pozycjaBilansDAO, uklad, \"\", \"r\");\r\n UkladBRBean.czyscPozycje(pozycje);\r\n rootProjektRZiS.getChildren().clear();\r\n List<StronaWiersza> zapisy = StronaWierszaBean.pobraniezapisowwynikoweBO(stronaWierszaDAO, wpisView);\r\n try {\r\n PozycjaRZiSFKBean.ustawRoota(rootProjektRZiS, pozycje, zapisy);\r\n level = PozycjaRZiSFKBean.ustawLevel(rootProjektRZiS, pozycje);\r\n Msg.msg(\"i\", \"Pobrano układ \");\r\n } catch (Exception e) {\r\n E.e(e);\r\n rootProjektRZiS.getChildren().clear();\r\n Msg.msg(\"e\", e.getLocalizedMessage());\r\n }\r\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Unesite tezinu(u gramima) prvog pakovanja: \");\r\n\t\tdouble gram1=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite cijenu prvog pakovanja: \");\r\n\t\tdouble km1=provjera();\r\n\r\n\t\tSystem.out.println(\"Unesite tezinu(u gramima) drugog pakovanja: \");\r\n\t\tdouble gram2=provjera();\r\n\r\n\t\tSystem.out.println(\"Unesite cijenu drugog pakovanja: \");\r\n\t\tdouble km2=provjera();\r\n\t\t\r\n\t\t\r\n\t\t//na kraju ih uporedimo i onaj sa manjom ukupnom cijenom je jeftiniji tj povoljniji\r\n\t\tif((km1/gram1)<(km2/gram2)){\r\n\t\t\tSystem.out.println(\"Prvo pakovanje je povoljnije!!!\");\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Drugo pakovanje je povoljnije!!!\");\r\n\t\t}\r\n\t\t\r\n\t\tunos.close();\r\n\t}", "public MatkaKokoelma() {\n tallentaja = new TXTTallentaja();\n matkat = new ArrayList<Matka>();\n matkojenkesto = 0.0;\n }", "public boolean kraj() {\r\n\t\treturn (broj_slobodnih == 0 && !mozeLiSeSpojiti());\r\n\t}", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "public void ZbierzTowaryKlas() {\n\t\tSystem.out.println(\"ZbierzTowaryKlas\");\n\t\tfor(int i=0;i<Plansza.getTowarNaPlanszy().size();i++) {\n\t\t\tfor(Towar towar : Plansza.getTowarNaPlanszy()) {\n\t\t\t\t\n\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getNiewolnikNaPLanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getNiewolnikNaPLanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t//Szansa Niewolnika na zdobycie dwoch razy wiecej towarow\n\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getNiewolnicySzansa()) {\n\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikTowarow(Plansza.getNiewolnikNaPLanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getRzemieslnikNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getRzemieslnikNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikTowarow(Plansza.getRzemieslnikNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getArystokrataNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getArystokrataNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikTowarow(Plansza.getArystokrataNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private int obliczDowoz() {\n int x=this.klient.getX();\n int y=this.klient.getY();\n double odl=Math.sqrt((Math.pow((x-189),2))+(Math.pow((y-189),2)));\n int kilometry=(int)(odl*0.5); //50 gr za kilometr\n return kilometry;\n }", "public void testOctaedre() {\n\t\t\t\n\t\t\tSolide i = Octaedre.octaedre();\n\t\t\t\n\t\t\t/* creation de points qui ont les memes coordonnees que ceux qui \n\t\t\t * constituent notre solide (car octaedre() n'a pas de parametres)\n\t\t\t */\n\t\t\t\n\t\t\tPoint p1 = new Point(-25, 0,-25);\n\t\t\tPoint p2 = new Point(-25, 0,25);\n\t\t\tPoint p3 = new Point(25, 0,-25);\n\t\t\tPoint p4 = new Point(25,0,25);\n\t\t\tfloat hauteur = (float) (50/Math.sqrt(2));\n\t\t\t// on se sert de la hauteur pour donnee les coordonees des sommets manquant\n\t\t\tPoint p5 = new Point(0, hauteur,0);\n\t\t\tPoint p6 = new Point(0,-hauteur,0);\n\t\t\t\n\t\t\t//On teste si les points de l'octaedre i sont bien les memes que ceux créés\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getAbscisse()==(p1.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(1).getAbscisse()==(p2.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(5).getAbscisse()==(p3.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(3).getAbscisse()==(p4.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(2).getAbscisse()==(p5.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(0).getAbscisse()==(p6.getAbscisse()));\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getOrdonnee()==(p1.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(1).getOrdonnee()==(p2.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(5).getOrdonnee()==(p3.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(3).getOrdonnee()==(p4.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(2).getOrdonnee()==(p5.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(0).getOrdonnee()==(p6.getOrdonnee()));\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getProfondeur()==(p1.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(1).getProfondeur()==(p2.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(5).getProfondeur()==(p3.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(3).getProfondeur()==(p4.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(2).getProfondeur()==(p5.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(0).getProfondeur()==(p6.getProfondeur()));\n\t\t\t\n\t\t\t//On teste si les faces de l'octaedre contiennent bien les points créés\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(0).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(0).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(0).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(1).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(1).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(1).contient(p6));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(2).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(2).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(2).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(3).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(3).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(3).contient(p6));\n\t\t\n\t\t\tassertTrue(i.getFaces().get(4).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(4).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(4).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(5).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(5).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(5).contient(p6));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(6).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(6).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(6).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(7).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(7).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(7).contient(p6));\n\t\t\t\n\t\t\t\n\t\t\t\n\t}", "public PregledPoruka() {\n preuzmiMape();\n preuzmiPoruke();\n }", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "public int AmbosHijosR() { //Hecho por mi\n return AmbosHijosR(raiz);\n }", "private static void etapa3Urna() {\n\t\t\n\t\turna.contabilizarVotosPorCandidato(enderecoCandidatos);\n\t\t\n\t}", "@Override\n\tpublic void obavesti(KruznaFigura figura) {\n\t\t\n\t}", "public boolean probajGusarski(int red, int kolona) {// 1 polje\n\n\t\tif (red > 9 || kolona > 9)\n\t\t\treturn false;\n\t\tif (tabla[red][kolona] != Polje1.slobodan)\n\t\t\treturn false;\n\n\t\tint redIznadNemoguc, kolonaLevoNemoguca, redIspodNemoguc, kolonaDesnoNemoguca;\n\n\t\tif (red == 9)\n\t\t\tredIspodNemoguc = red;\n\t\telse\n\t\t\tredIspodNemoguc = red + 1;\n\n\t\tif (red == 0)\n\t\t\tredIznadNemoguc = red;\n\t\telse\n\t\t\tredIznadNemoguc = red - 1;\n\n\t\tif (kolona == 9)\n\t\t\tkolonaDesnoNemoguca = kolona;\n\t\telse\n\t\t\tkolonaDesnoNemoguca = kolona + 1;\n\n\t\tif (kolona == 0)\n\t\t\tkolonaLevoNemoguca = kolona;\n\t\telse\n\t\t\tkolonaLevoNemoguca = kolona - 1;\n\t\tfor (int i = redIznadNemoguc; i <= redIspodNemoguc; i++)\n\t\t\tfor (int j = kolonaLevoNemoguca; j <= kolonaDesnoNemoguca; j++)\n\t\t\t\ttabla[i][j] = Polje1.nemoguc;\n\n\t\ttabla[red][kolona] = Polje1.zauzet;\n\t\tlistaBrodova[brojBrodova] = new Brod1(new Koordinate1(red, kolona), 1, Orijentacije1.horizontalno);\n\t\tpreostalo += 1;\n\t\tbrojBrodova++;\n\t\treturn true;\n\t}", "public static Pot oceni_rdec(Igra igra) {\n\t\tTocka[][] plosca = igra.getPlosca();\n\t\tint N = Igra.N;\n\t\t\n\t\t// Najbolsa pot za rdecega.\n\t\tSet<Vrednost> rdeca_pot = new HashSet<Vrednost>();\n\t\t// Tabela za dinamicno iskanje najkrajse poti, elementi so objetki razreda Vrednosti.\n\t\tVrednost[][] tabela_dolzin_rdeci = new Vrednost[N][N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\ttabela_dolzin_rdeci[i][j] = new Vrednost(new Koordinati(j, i));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 1. vrstico, napolnimo rocno.\n\t\tfor (int j = 0; j < N; j++) {\n\t\t\tif (plosca[0][j].polje == Polje.Rdec) tabela_dolzin_rdeci[0][j].vrednost = 0;\n\t\t\tif (plosca[0][j].polje == Polje.PRAZNO) tabela_dolzin_rdeci[0][j].vrednost = 1;\n\t\t}\n\t\t\n\t\t// Ostalo pa dinamicno.\n\t\tfor (int i = 1; i < N; i++) {\n\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\n\t\t\t\t// definiramo polja, ki nas zanimajo\n\t\t\t\tint levo_levo_zg;\n\t\t\t\tint levo_zg;\n\t\t\t\tint desno_desno_zg;\n\t\t\t\tint desno_zg;\n\t\t\t\tint zgoraj;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Dolocimo vrednosti polj, ki nas zanimajo, tu so nekatera polja od nasega oddaljena za dve polji,\n\t\t\t\t// to je glavna skrivnost argumenta, saj ce nam nasprotnik ne more prepreciti povezave dveh polj, ki nista\n\t\t\t\t// takojsnji sosedi ju smatramo kot ze povezani (tu pridejo v igro objekti razreda Skok).\n\t\t\t\ttry {\n\t\t\t\t\tif (plosca[i - 1][j].polje == Polje.PRAZNO && plosca[i][j - 1].polje == Polje.PRAZNO) {\n\t\t\t\t\t\tlevo_levo_zg = tabela_dolzin_rdeci[i - 1][j - 1].vrednost;\n\t\t\t\t\t}\n\t\t\t\t\telse levo_levo_zg = POLNO;\n\t\t\t\t} catch (ArrayIndexOutOfBoundsException e) { levo_levo_zg = POLNO; }\n\t\t\t\t\n\t\t\t\ttry { levo_zg = tabela_dolzin_rdeci[i - 1][j].vrednost; } \n\t\t\t\tcatch (ArrayIndexOutOfBoundsException e) { levo_zg = POLNO; }\n\t\t\t\ttry { desno_zg = tabela_dolzin_rdeci[i - 1][j + 1].vrednost; } \n\t\t\t\tcatch (ArrayIndexOutOfBoundsException e) { desno_zg = POLNO; }\n\t\t\t\ttry {\n\t\t\t\t\tif (plosca[i][j + 1].polje == Polje.PRAZNO && plosca[i - 1][j + 1].polje == Polje.PRAZNO) {\n\t\t\t\t\t\tdesno_desno_zg = tabela_dolzin_rdeci[i - 1][j + 2].vrednost;\n\t\t\t\t\t}\n\t\t\t\t\telse desno_desno_zg = POLNO;\n\t\t\t\t} catch (ArrayIndexOutOfBoundsException e) { desno_desno_zg = POLNO; }\n\t\t\t\ttry {\n\t\t\t\t\tif (plosca[i - 1][j].polje == Polje.PRAZNO && plosca[i - 1][j + 1].polje == Polje.PRAZNO) {\n\t\t\t\t\t\tzgoraj = tabela_dolzin_rdeci[i - 2][j + 1].vrednost;\n\t\t\t\t\t}\n\t\t\t\t\telse zgoraj = POLNO;\n\t\t\t\t} catch (ArrayIndexOutOfBoundsException e) { zgoraj = POLNO; }\n\t\t\t\t\n\t\t\t\t// Preverimo, katero polje je najboljse (cez katerega bomo najhitreje povezali obe strani).\n\t\t\t\tVrednost pointer = null;\n\t\t\t\tSkok skok = null;\n\t\t\t\tint vrednost_polja;\n\t\t\t\tvrednost_polja = Math.min(levo_levo_zg, Math.min(levo_zg, Math.min(desno_zg, Math.min(desno_desno_zg, zgoraj))));\n\t\t\t\t\n\t\t\t\t// Ce to polje ni v neposredni blizini, v tabelo shranimo ustrezen Skok, da vemo, da tu se nimamo povezave,\n\t\t\t\t// a nas nasprotnik ne more zapreti.\n\t\t\t\tif (vrednost_polja != POLNO) {\n\t\t\t\t\tif (vrednost_polja == levo_levo_zg) {\n\t\t\t\t\t\tpointer = tabela_dolzin_rdeci[i - 1][j - 1];\n\t\t\t\t\t\tskok = Skok.Skok1;\n\t\t\t\t\t}\n\t\t\t\t\tif (vrednost_polja == levo_zg) pointer = tabela_dolzin_rdeci[i - 1][j];\n\t\t\t\t\tif (vrednost_polja == desno_desno_zg) {\n\t\t\t\t\t\tpointer = tabela_dolzin_rdeci[i - 1][j + 2];\n\t\t\t\t\t\tskok = Skok.Skok3;\n\t\t\t\t\t}\n\t\t\t\t\tif (vrednost_polja == desno_zg) pointer = tabela_dolzin_rdeci[i - 1][j + 1];\n\t\t\t\t\tif (vrednost_polja == zgoraj) {\n\t\t\t\t\t\tpointer = tabela_dolzin_rdeci[i - 2][j + 1];\n\t\t\t\t\t\tskok = Skok.Skok2;\n\t\t\t\t\t}\n\t\t\t\t\tif (plosca[i][j].polje == Polje.PRAZNO) vrednost_polja += 1;\n\t\t\t\t\tif (plosca[i][j].polje == Polje.Moder) vrednost_polja = POLNO;\n\t\t\t\t}\n\t\t\t\ttabela_dolzin_rdeci[i][j].vrednost = vrednost_polja;\n\t\t\t\ttabela_dolzin_rdeci[i][j].pointer = pointer;\n\t\t\t\ttabela_dolzin_rdeci[i][j].skok = skok;\n\t\t\t}\n\t\t\t\n\t\t\t// Ponovni pregled. Prej smo gledali le polja nad nasim poljem, sedaj pa pogledamo se oba soseda v \n\t\t\t// smeri, ki ni neposredno smer napredovanja. Vse naredimo enako kot zgoraj, le da sedaj nimamo Skokov.\n\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\tint levo;\n\t\t\t\tint desno;\n\t\t\t\tint vrednost_polja = tabela_dolzin_rdeci[i][j].vrednost;\n\t\t\t\tVrednost pointer = tabela_dolzin_rdeci[i][j].pointer;\n\t\t\t\tSkok skok = tabela_dolzin_rdeci[i][j].skok;\n\t\t\t\tVrednost nov_pointer = pointer;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\ttry { levo = tabela_dolzin_rdeci[i][j - 1].vrednost; } \n\t\t\t\tcatch (ArrayIndexOutOfBoundsException e) { levo = POLNO; }\n\t\t\t\ttry { desno = tabela_dolzin_rdeci[i][j + 1].vrednost; } \n\t\t\t\tcatch (ArrayIndexOutOfBoundsException e) { desno = POLNO; }\n\t\t\t\t\n\t\t\t\tif (levo != POLNO && levo < vrednost_polja) {\n\t\t\t\t\tif (plosca[i][j].polje == Polje.Rdec) vrednost_polja = levo;\n\t\t\t\t\tif (plosca[i][j].polje == Polje.PRAZNO) vrednost_polja = levo + 1;\n\t\t\t\t\tnov_pointer = tabela_dolzin_rdeci[i][j - 1];\n\t\t\t\t\tskok = null;\n\t\t\t\t}\n\t\t\t\tif (desno != POLNO && desno < vrednost_polja) {\n\t\t\t\t\tif (plosca[i][j].polje == Polje.Rdec) vrednost_polja = desno;\n\t\t\t\t\tif (plosca[i][j].polje == Polje.PRAZNO) vrednost_polja = desno + 1;\n\t\t\t\t\tnov_pointer = tabela_dolzin_rdeci[i][j + 1];\n\t\t\t\t\tskok = null;\n\t\t\t\t}\n\t\t\t\ttabela_dolzin_rdeci[i][j].vrednost = vrednost_polja;\n\t\t\t\ttabela_dolzin_rdeci[i][j].pointer = nov_pointer;\n\t\t\t\ttabela_dolzin_rdeci[i][j].skok = skok;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Izracunamo dolzino najkrajse poti do zmage. \n\t\t// Ta dolzina je lahko 0, pa se nismo zmagali, saj moramo povezati se tista polja,\n\t\t// kjer imamo dve moznosti za zmago, torej Skoke, a takrat nas nasprotnik ne more vec ustaviti.\n\t\tint najmanjsa_rdeca = POLNO;\n\t\tVrednost pointer_rdeca = null;\n\t\tfor (int j = 0; j < N; j++) {\n\t\t\tint vrednost = tabela_dolzin_rdeci[N - 1][j].vrednost;\n\t\t\tif (najmanjsa_rdeca > vrednost) {\n\t\t\t\tnajmanjsa_rdeca = vrednost;\n\t\t\t\tpointer_rdeca = tabela_dolzin_rdeci[N - 1][j];\n\t\t\t}\t\n\t\t}\n\t\t\n\t\n\t\t// Izracunamo najkraso pot, to potrebujemo v Izbira potez.\n\t\tVrednost spremenljivka = pointer_rdeca;\n\t\twhile (spremenljivka != null) {\n\t\t\trdeca_pot.add(spremenljivka);\n\t\t\tspremenljivka = spremenljivka.pointer;\n\t\t}\n\t\t\n\t\treturn new Pot(najmanjsa_rdeca, rdeca_pot);\n\t}", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }", "public void Zabojstwa() {\n\t\tSystem.out.println(\"Zabojstwa\");\n\t\tfor(int i=0;i<Plansza.getNiebezpieczenstwoNaPlanszy().size();i++) {\n\t\t\tfor(GenerujNiebezpieczenstwo niebez : Plansza.getNiebezpieczenstwoNaPlanszy()) {\n\n\t\t\t\tif(niebez.getZabojca() instanceof DzikieZwierzeta) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getUbrania() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getNiewolnikNaPLanszy().getJedzenie() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(Plansza.getNiewolnikNaPLanszy().getUbrania() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(Plansza.getNiewolnikNaPLanszy().getJedzenie() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikNiebezpieczenstw(Plansza.getNiewolnikNaPLanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Bandyci) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getMaterialy() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getRzemieslnikNaPlanszy().getNarzedzia() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getRzemieslnicySzansa()) {\n\t\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(Plansza.getRzemieslnikNaPlanszy().getMaterialy() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(Plansza.getRzemieslnikNaPlanszy().getNarzedzia() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getRzemieslnikNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Zlodzieje) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getTowary() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getArystokrataNaPlanszy().getZloto() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setTowary(Plansza.getArystokrataNaPlanszy().getTowary() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setZloto(Plansza.getArystokrataNaPlanszy().getZloto() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getArystokrataNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public void trykkPaa() throws TrykketPaaBombe {\n // Ingenting skal skje dersom en av disse er true;\n if (brettTapt || trykketPaa || flagget) {\n return;\n }\n\n // Om ruten er en bombe taper man brettet\n if (bombe) {\n trykketPaa = true;\n setText(\"x\");\n setBackground(new Background(new BackgroundFill(Color.RED, CornerRadii.EMPTY, Insets.EMPTY)));\n throw new TrykketPaaBombe();\n }\n // Om ruten har null naboer skal et stoerre omraade aapnes\n else if (bombeNaboer == 0) {\n Lenkeliste<Rute> besokt = new Lenkeliste<Rute>();\n Lenkeliste<Rute> aapneDisse = new Lenkeliste<Rute>();\n aapneDisse.leggTil(this);\n // Rekursiv metode som fyller aapneDisse med riktige ruter\n finnAapentOmraade(besokt, aapneDisse);\n for (Rute r : aapneDisse) {\n r.aapne();\n }\n } else {\n aapne();\n }\n }", "private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}", "public static void main(String[] args) {\n\n\t\tWpis osobaPierwsza = new Osoba(\"Bartek\",\"Dettlaff\",\"Ks.Popiełuszki 21\", new NrTelefoniczny(\"44\",\"507546055\"));\n\t\tWpis osobaDruga = new Osoba(\"Kamil\",\"Jurek\",\"Londynska 7\", new NrTelefoniczny(\"42\",\"665768312\"));\n\t\tWpis osobaTrzecia = new Osoba(\"Patryk\",\"Gitner\",\"Nosowska 78\", new NrTelefoniczny(\"24\",\"634754542\"));\n\t\tWpis firmaPierwsza = new Firma(\"Biedronka\",\"Zwierzeca 32\", new NrTelefoniczny(\"57\", \"504342341\"));\n\t\tWpis firmaDruga = new Firma(\"Microsoft\",\"Informatycza 1\", new NrTelefoniczny(\"56\", \"504327321\"));\n\t\t\n\t\tTreeMap<NrTelefoniczny, Wpis> ksiazka = new TreeMap<NrTelefoniczny, Wpis>();\n\t\t\n\t\tksiazka.put(osobaPierwsza.pobierzNrTelefoniczny(), osobaPierwsza);\n\t\tksiazka.put(osobaDruga.pobierzNrTelefoniczny(), osobaDruga);\n\t\tksiazka.put(osobaTrzecia.pobierzNrTelefoniczny(), osobaTrzecia);\n ksiazka.put(firmaPierwsza.pobierzNrTelefoniczny(), firmaPierwsza);\n ksiazka.put(firmaDruga.pobierzNrTelefoniczny(), firmaDruga);\n\t\t\n\t\tfor(Map.Entry<NrTelefoniczny, Wpis> map: ksiazka.entrySet()) {\n\t\t\t\tmap.getValue().opis();\n\t\t}\n\t}", "ArrayList<Float> pierwszaPredykcja()\n\t{\n\t\tif (Stale.scenariusz<100)\n\t\t{\n\t\t\treturn pierwszaPredykcjaNormal();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//dla scenariusza testowego cnea predykcji jest ustawiana na 0.30\n\t\t\tArrayList<Float> L1 = new ArrayList<>();\n\t\t\tL1.add(0.30f);\n\t\t\treturn L1;\n\t\t}\n\t}", "void crtajKocka( Graphics g ) {\n double teta = Math.PI * a / 180.0;\n double fi = Math.PI * izvishuvanje / 180.0;\n float kosinusT = (float)Math.cos( teta ), sinusT = (float)Math.sin( teta );\n float kosinusP = (float)Math.cos( fi ), sinusP = (float)Math.sin( fi );\n float kosinusTkosinusP = kosinusT*kosinusP, kosinusTsinusP = kosinusT*sinusP,\n sinusTkosinusP = sinusT*kosinusP, sinusTsinusP = sinusT*sinusP;\n\n // project vertices onto the 2D viewport\n Point[] tocki;\n tocki = new Point[ stranaKocka.length ];\n int j;\n int merka = sirina/4;\n float blisku = 3; // distance from eye to near plane\n float bliskuDoObjekt = 1.5f; // distance from near plane to center of object\n for ( j = 0; j < stranaKocka.length; ++j ) {\n int x0 = stranaKocka[j].x;\n int y0 = stranaKocka[j].y;\n int z0 = stranaKocka[j].z;\n\n // compute an orthographic projection\n float x1 = kosinusT*x0 + sinusT*z0;\n float y1 = -sinusTsinusP*x0 + kosinusP*y0 + kosinusTsinusP*z0;\n\n // now adjust things to get a perspective projection\n float z1 = kosinusTkosinusP*z0 - sinusTkosinusP*x0 - sinusP*y0;\n x1 = x1*blisku/(z1+blisku+bliskuDoObjekt);\n y1 = y1*blisku/(z1+blisku+bliskuDoObjekt);\n\n // the 0.5 is to round off when converting to int\n tocki[j] = new Point(\n (int)(sirina/2 + merka*x1 + 0.5),\n (int)(visina/2 - merka*y1 + 0.5)\n );\n }\n\n // draw the wireframe\n g.setColor( Color.LIGHT_GRAY);\n g.fillRect( 0, 0, sirina, visina );\n g.setColor( Color.white );\n for ( j = 0; j < rabovi.length; ++j ) {\n g.drawLine(\n tocki[ rabovi[j].a ].x, tocki[ rabovi[j].a ].y,\n tocki[ rabovi[j].b ].x, tocki[ rabovi[j].b ].y\n );\n }\n }", "protected void pretragaGledalac() {\n\t\tString Gledalac=tfPretraga.getText();\r\n\r\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:Kontroler.getInstanca().vratiRezervacije()) {\r\n\t\t\tif(r.getImePrezime().toLowerCase().contains(Gledalac.toLowerCase())) {\r\n\t\t\t\r\n\t\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\t\tdtm.addRow(redovi);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public ListaBrojeva izdvojElmenteNaParnimPozicijama() {\n if (prvi != null) {\n ListaBrojeva parni = new ListaBrojeva();\n \n Element tek = prvi;\n Element preth = null;\n Element parniKraj = null;\n int br = 0;\n \n while (tek.veza != null) {\n preth = tek;\n tek = tek.veza;\n \n if (br % 2 != 0) {\n preth.veza = tek.veza;\n if (parni.prvi == null) {\n parni.prvi = tek;\n parniKraj = tek;\n tek.veza = null; \n } else {\n parniKraj.veza = tek;\n tek.veza = null;\n parniKraj = parniKraj.veza;\n }\n tek = preth;\n }\n br++;\n }\n /*prvi element iz liste je paran, ali je preskocen, \n tako da ga sad izbacujemo iz liste i dodajemo u novu*/\n Element pom = prvi;\n prvi = prvi.veza;\n pom.veza = parni.prvi;\n parni.prvi = pom;\n return parni;\n }\n return null;\n }", "public static void dodavanjeTeretnogVozila() {\n\t\tString vrstaVozila = \"Teretno Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 20000;\n\t\tdouble cenaServisa = 10000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedista = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tSystem.out.println(\"Unesite maximalnu masu koje vozilo moze da prenosi u KG !!\");\n\t\tint maxMasauKg = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite maximalnu visinu u m:\");\n\t\tdouble visinauM = UtillMethod.unesiteBroj();\n\t\tTeretnaVozila vozilo = new TeretnaVozila(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja, predjeno, preServisa,\n\t\t\t\tcenaServisa, cenaDan, brSedista, brVrata, vozObrisano, servisiNadVozilom, maxMasauKg, visinauM);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"--------------------------------------\");\n\t}", "public static void main(String[] args) {\n\t\tnew Ventana();\n/*\n\t\tCollection<MuroDeEnergia> muros = new ArrayList<MuroDeEnergia>();\n\t\tCollection<NaveInvasora> naves = new ArrayList<NaveInvasora>();\n\t\tBateria jugador = new Bateria();\n\t\t\n\t\tJuego.getInstancia();\n\t\tmuros = Juego.getInstancia().getMuros();\n\t\tnaves = Juego.getInstancia().getEnemigos();\n\t\tjugador = Juego.getInstancia().getJugador();\n\t\t\n\t\tIterator<MuroDeEnergia> i;\n\t\tfor (i = muros.iterator(); i.hasNext();) {\n\t\t\tMuroDeEnergia act = i.next();\n\t\t\tSystem.out.println(\"El muro \" + act.getCodigoMuro() + \" esta ubicado en: (\" + act.getCoordenadaX() + \", \" + act.getCoordenadaY() + \")\");\n\t\t}\n\t\t\n\t\tIterator<NaveInvasora> j;\n\t\tfor (j = naves.iterator(); j.hasNext();) {\n\t\t\tNaveInvasora act = j.next();\n\t\t\tSystem.out.println(\"El enemigo \" + act.getCodigoNave() + \" esta ubicado en: (\" + act.getCoordenadaX() + \", \" + act.getCoordenadaY() + \")\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\n\t\tSystem.out.println(\"Hay \" + muros.size() + \" muros de energia.\");\n\t\tJuego.getInstancia().destruirMuro(1);\n\t\tSystem.out.println(\"El muro 1 fue destruido.\");\n\t\tmuros = Juego.getInstancia().getMuros();\n\t\tSystem.out.println(\"Hay \" + muros.size() + \" muros de energia.\");\n\t\t\n\t\tSystem.out.println(\"Hay \" + naves.size() + \" enemigos. El jugador tiene \" + jugador.getPuntos() + \" puntos.\");\n\t\tJuego.getInstancia().destruirNave(9);\n\t\tSystem.out.println(\"La nave 9 fue destruida.\");\n\t\tnaves = Juego.getInstancia().getEnemigos();\n\t\tSystem.out.println(\"Hay \" + naves.size() + \" enemigos. El jugador tiene \" + jugador.getPuntos() + \" puntos.\");\n\t\tSystem.out.println(\"Usted esta en el nivel \" + Juego.getInstancia().getDificultad());\n\t\tSystem.out.println(\"Destruyendo naves...\");\n\t\tint idNave = 0;\n\t\twhile(idNave < 15) {\n\n\t\t\tJuego.getInstancia().destruirNave(idNave);\n\n\t\t\tidNave++;\n\n\t\t}\n\t\tSystem.out.println(\"Todas las naves fueron destruidas. Usted esta en el nivel \" + Juego.getInstancia().getDificultad() + \".\");\n\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\t\t\n\t\tSystem.out.println(\"El jugador se mueve a la izquierda\");\n\t\tJuego.getInstancia().presionaFlechaIzq();\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\t\t\n\t\tSystem.out.println(\"El jugador se mueve a la izquierda\");\n\t\tJuego.getInstancia().presionaFlechaIzq();\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\n\t\tSystem.out.println(\"El jugador se mueve a la derecha\");\n\t\tJuego.getInstancia().presionaFlechaDer();\n\t\tSystem.out.println(\"El jugador esta ubicado en (\" + jugador.getCoordenadaX() + \", \" + jugador.getCoordenadaY() + \")\" );\n\n\t\tSystem.out.println(\"Se termina el juego:\");\n\t\tJuego.getInstancia().finalizarJuego();\n\t\t\n*/\n\t}", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public boolean Wygrana() {\n\t\tSystem.out.println(\"Wygrana\");\n\t\tif(SprawdzanieWygranej.WygranaNiewolnikow()) {\n\t\t\tZapisOdczyt.setWygranaKlasa(Plansza.getNiewolnikNaPLanszy());\n\t\t\tZapisOdczyt.setWygranaKlasaPopulacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t\n\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getPopulacja() >= Plansza.getArystokrataNaPlanszy().getPopulacja()) {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getRzemieslnikNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getArystokrataNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getArystokrataNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getRzemieslnikNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\tif(SprawdzanieWygranej.WygranaRzemieslnikow()) {\n\t\t\tZapisOdczyt.setWygranaKlasa(Plansza.getRzemieslnikNaPlanszy());\n\t\t\tZapisOdczyt.setWygranaKlasaPopulacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t\n\t\t\tif(Plansza.getNiewolnikNaPLanszy().getPopulacja() >= Plansza.getArystokrataNaPlanszy().getPopulacja()) {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getNiewolnikNaPLanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getArystokrataNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getArystokrataNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getNiewolnikNaPLanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\tif(SprawdzanieWygranej.WygranaArystokracji()) {\n\t\t\tZapisOdczyt.setWygranaKlasa(Plansza.getArystokrataNaPlanszy());\n\t\t\tZapisOdczyt.setWygranaKlasaPopulacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t\n\t\t\tif(Plansza.getNiewolnikNaPLanszy().getPopulacja() >= Plansza.getRzemieslnikNaPlanszy().getPopulacja()) {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getNiewolnikNaPLanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getRzemieslnikNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getRzemieslnikNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getNiewolnikNaPLanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}" ]
[ "0.65698117", "0.64471203", "0.632283", "0.6236948", "0.6230116", "0.61952204", "0.6182099", "0.61786056", "0.61576074", "0.6123129", "0.6112027", "0.61102945", "0.61086774", "0.6052995", "0.6039606", "0.6034907", "0.6020101", "0.6014699", "0.6010881", "0.6006924", "0.60060185", "0.6001843", "0.59938234", "0.5988332", "0.59878063", "0.5983887", "0.59718776", "0.59601384", "0.59501374", "0.59430224", "0.59246016", "0.59236664", "0.5906234", "0.59058", "0.5905453", "0.58984774", "0.58873075", "0.5874994", "0.5873174", "0.5862584", "0.585939", "0.58552027", "0.58476967", "0.5835862", "0.58296484", "0.58286476", "0.58233607", "0.58193326", "0.58181804", "0.5816513", "0.5816506", "0.58114666", "0.5808345", "0.5801907", "0.57960266", "0.5788188", "0.57863164", "0.5779334", "0.57734334", "0.5773274", "0.5772734", "0.5772262", "0.57437205", "0.5740572", "0.5738977", "0.5737107", "0.5735565", "0.5722163", "0.5716552", "0.57142544", "0.5713595", "0.57099986", "0.5701489", "0.57012403", "0.5688509", "0.5677734", "0.5673821", "0.5673328", "0.5672955", "0.5669048", "0.56618077", "0.5661108", "0.56532896", "0.56495404", "0.56368315", "0.563432", "0.5633904", "0.56307214", "0.5629424", "0.56287515", "0.56194866", "0.56177264", "0.561343", "0.56128323", "0.56060654", "0.5597756", "0.55956984", "0.559397", "0.55926603", "0.5592279", "0.5587005" ]
0.0
-1
/ metoda koja testira da li se tacka nalazi unutar kruga
public boolean contains(double x, double y){ boolean contains = false; //odredjivanje koliko je tacka udaljena od centra kruga, pomocu pitagorine teoreme double udaljenost = Math.sqrt(Math.pow((this.x - x), 2) + Math.pow((this.y - y), 2)); //ako je radijus veci ili jednak udaljenosti tacke od centra kruga, tacka se nalazi u krugu if(this.radius >= udaljenost){ contains = true; } return contains; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "@Test\r\n\tpublic void testPelikulaBaloratuDutenErabiltzaileenZerrenda() {\n\t\tArrayList<Integer> zer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p1.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(e1.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertFalse(zer.contains(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p2.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 4);\r\n\t\tassertTrue(zer.contains(e1.getId()));\r\n\t\tassertTrue(zer.contains(e2.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertTrue(zer.contains(e4.getId()));\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p3.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(e2.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertFalse(zer.contains(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p4.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(e1.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertFalse(zer.contains(e4.getId()));\r\n\t\t\r\n\t}", "@Test\n\tpublic void testKargatuGorde() throws IOException {\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\n\t\tassertEquals(0, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gorde();\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\n\t\tErabiltzaileLista.getErabiltzaileLista().kargatu();\n\t\tassertEquals(0, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\t//Erabiltzaile bat gordeta\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tErabiltzaileLista.getErabiltzaileLista().gorde();\n\t\tassertEquals(1, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\n\t\tErabiltzaileLista.getErabiltzaileLista().kargatu();\n\t\tassertEquals(1, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tassertNotNull( ErabiltzaileLista.getErabiltzaileLista().bilatuErabiltzaile(\"Martin\", \"123456\"));\n\t\t//Erabiltzaile asko gordeta\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Mikel\", \"123456\",\"123456\");\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Edgar\", \"123456\",\"123456\");\n\t\tassertEquals(3, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gorde();\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\n\t\tErabiltzaileLista.getErabiltzaileLista().kargatu();\n\t\tassertEquals(3, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tassertNotNull( ErabiltzaileLista.getErabiltzaileLista().bilatuErabiltzaile(\"Martin\", \"123456\"));\n\t\tassertNotNull( ErabiltzaileLista.getErabiltzaileLista().bilatuErabiltzaile(\"Mikel\", \"123456\"));\n\t\tassertNotNull( ErabiltzaileLista.getErabiltzaileLista().bilatuErabiltzaile(\"Edgar\", \"123456\"));\n\n\n\t}", "@Test\n public void testAvaaRuutu() {\n int x = 0;\n int y = 0;\n Peli pjeli = new Peli(new Alue(3, 0));\n pjeli.avaaRuutu(x, y);\n ArrayList[] lista = pjeli.getAlue().getRuudukko();\n ArrayList<Ruutu> ruudut = lista[0];\n assertEquals(true, ruudut.get(0).isAvattu());\n assertEquals(false, pjeli.isLahetetty());\n }", "private static void cajas() {\n\t\t\n\t}", "@Test\n public void testLukitseRuutu() {\n System.out.println(\"lukitseRuutu\");\n int x = 0;\n int y = 0;\n Peli peli = new Peli(new Alue(3, 1));\n peli.lukitseRuutu(x, y);\n ArrayList[] lista = peli.getAlue().getRuudukko();\n ArrayList<Ruutu> ruudut = lista[0];\n assertEquals(true, ruudut.get(0).isLukittu());\n }", "@Test\r\n\tpublic void testErabiltzaileakBaloratuDituenPelikulenZerrenda() {\n\t\tArrayList<Integer> zer = BalorazioenMatrizea.getBalorazioenMatrizea().erabiltzaileakBaloratuDituenPelikulenZerrenda(e1.getId());\r\n\t\tassertTrue(zer.size() == 3);\r\n\t\tassertTrue(zer.contains(p1.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p2.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p4.getPelikulaId()));\r\n\t\tassertFalse(zer.contains(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().erabiltzaileakBaloratuDituenPelikulenZerrenda(e2.getId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(p2.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p3.getPelikulaId()));\r\n\t\tassertFalse(zer.contains(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().erabiltzaileakBaloratuDituenPelikulenZerrenda(e3.getId());\r\n\t\tassertTrue(zer.size() == 4);\r\n\t\tassertTrue(zer.contains(p1.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p2.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p3.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p4.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().erabiltzaileakBaloratuDituenPelikulenZerrenda(e4.getId());\r\n\t\tassertTrue(zer.size() == 1);\r\n\t\tassertTrue(zer.contains(p2.getPelikulaId()));\r\n\t\tassertFalse(zer.contains(p1.getPelikulaId()));\r\n\t\t\r\n\t}", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "@Test\n\tpublic void testGehituErabiltzaile() {\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\t\t\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tassertEquals(1, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Mikel\", \"123456\",\"123456\");\n\t\tassertEquals(2,ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tassertEquals(2, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t}", "@Test\r\n\tpublic void testGetPeliBalorazioak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 4);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.5);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 3);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 2);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 3.5);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 4);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 5);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\r\n\t}", "@Test\r\n\tpublic void testGetPeliBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == -2.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.75);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 1.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// p1 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"-1,6398\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",1491\"));\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",4472\"));\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"1,0435\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "@Test\r\n public void elCerdoNoSePuedeAtender() {\n }", "@Test\r\n\tpublic void testGetErabBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == -0.5);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == -2.75);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 0.75);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 1.75);\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// e1 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(df.format(bek.getBalioa(p1.getPelikulaId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p2.getPelikulaId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 1);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == -1);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(p1.getPelikulaId())).equals(\"-1,6398\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p2.getPelikulaId())).equals(\",1491\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p3.getPelikulaId())).equals(\",4472\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p4.getPelikulaId())).equals(\"1,0435\"));\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "@Test\r\n\tpublic void testGetErabBalorazioak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 4);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 3);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 3.5);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 2);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 1);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 4);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 5);\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 3.5);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t}", "@Test\n public void testLisaa33() { // Oluet: 33\n Oluet oluet = new Oluet(); \n Olut karjala1 = new Olut(), karjala2 = new Olut(); \n assertEquals(\"From: Oluet line: 36\", 0, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 37\", 1, oluet.getLkm()); \n oluet.lisaa(karjala2); assertEquals(\"From: Oluet line: 38\", 2, oluet.getLkm()); \n assertEquals(\"From: Oluet line: 39\", 2, oluet.getAlkiot()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 40\", 3, oluet.getLkm()); \n assertEquals(\"From: Oluet line: 41\", 4, oluet.getAlkiot()); \n assertEquals(\"From: Oluet line: 42\", karjala1, oluet.tuoOlut(0)); \n assertEquals(\"From: Oluet line: 43\", karjala2, oluet.tuoOlut(1)); \n assertEquals(\"From: Oluet line: 44\", karjala1, oluet.tuoOlut(2)); \n assertEquals(\"From: Oluet line: 45\", false, oluet.tuoOlut(1) == karjala1); \n assertEquals(\"From: Oluet line: 46\", true, oluet.tuoOlut(1) == karjala2); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 47\", 4, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 48\", 5, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 49\", 6, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 50\", 7, oluet.getLkm()); \n }", "@Test\n public void testExistenceTestuJedneOsoby() {\n osBeznyMuz = new Osoba(120, 150, Barva.MODRA);\n testJedneOsoby(osBeznyMuz, 120, 150, 70, 140, Barva.MODRA);\n }", "public void test5(){\r\n\t\tZug zug1 = st.zugErstellen(1, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(0, 3, \"Zug 2\"); \r\n\t}", "@Test\n public void testAlunPainotus() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n String kysymys = k.alunPainotus(true);\n\n\n assertEquals(\"AlunPainoitus ei toimi\", \"sana\", kysymys);\n }", "@Test\n public void testTarkistaVastaus() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n\n\n assertEquals(\"Sanan tarkastus ei toimi\", true, k.tarkistaVastaus(\"vastine\"));\n }", "public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}", "@Test\n public void z_topDown_TC03() {\n try {\n Intrebare intrebare = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"M\");\n Intrebare intrebare1 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"A\");\n Intrebare intrebare2 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"B\");\n Intrebare intrebare3 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"C\");\n assertTrue(true);\n assertTrue(appService.exists(intrebare));\n assertTrue(appService.exists(intrebare1));\n assertTrue(appService.exists(intrebare2));\n assertTrue(appService.exists(intrebare3));\n\n try {\n ccir2082MV.evaluator.model.Test test = appService.createNewTest();\n assertTrue(test.getIntrebari().contains(intrebare));\n assertTrue(test.getIntrebari().contains(intrebare1));\n assertTrue(test.getIntrebari().contains(intrebare2));\n assertTrue(test.getIntrebari().contains(intrebare3));\n assertTrue(test.getIntrebari().size() == 5);\n } catch (NotAbleToCreateTestException e) {\n assertTrue(false);\n }\n\n Statistica statistica = appService.getStatistica();\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"Literatura\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"Literatura\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"M\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"M\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"A\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"A\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"B\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"B\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"C\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"C\")==1);\n\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n } catch (NotAbleToCreateStatisticsException e) {\n assertTrue(false);\n }\n }", "@Test\n public void yksiVasemmalle() {\n char[][] kartta = Labyrintti.lueLabyrintti(\"src/main/resources/labyrinttiTestiVasen.txt\");\n assertFalse(kartta == null);\n Labyrintti labyrintti = new Labyrintti(kartta);\n RatkaisuLeveyshaulla ratkaisuSyvyyshaulla = new RatkaisuLeveyshaulla(labyrintti);\n String ratkaisu = ratkaisuSyvyyshaulla.ratkaisu();\n assertTrue(Tarkistaja.tarkista(ratkaisu, labyrintti));\n }", "public void testAuta()\n\t{\n\t\tNakladak nakl = new Nakladak(Simulator.getCas());\n\t\tnakl.poloha[0] = this.poloha[0];\n\t\tnakl.poloha[1] = this.poloha[1];\n\t\t//cesta po prekladistich\n\t\tfor(int i=4001;i<4009;i++)\n\t\t{\n\t\t\tnakl.cesta.add(i);\n\t\t}\n\t\tnakl.kDispozici = false;\n\t\tnakl.jede = true;\n\t\tsim.addObserver(nakl);\n\t\t\n\t\tthis.vozy.add(nakl);\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Test\n public void testGetOikein1() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n k.tarkistaVastaus(\"vastine\");\n k.tarkistaVastaus(\"trololololoo\");\n int virheita = k.getOikein();\n// System.out.println(virheita);\n\n assertEquals(\"Oikein menneiden sanojen tarkastukset ei laske virheitä oikein\", 1, virheita);\n }", "public void trykkPaa() throws TrykketPaaBombe {\n // Ingenting skal skje dersom en av disse er true;\n if (brettTapt || trykketPaa || flagget) {\n return;\n }\n\n // Om ruten er en bombe taper man brettet\n if (bombe) {\n trykketPaa = true;\n setText(\"x\");\n setBackground(new Background(new BackgroundFill(Color.RED, CornerRadii.EMPTY, Insets.EMPTY)));\n throw new TrykketPaaBombe();\n }\n // Om ruten har null naboer skal et stoerre omraade aapnes\n else if (bombeNaboer == 0) {\n Lenkeliste<Rute> besokt = new Lenkeliste<Rute>();\n Lenkeliste<Rute> aapneDisse = new Lenkeliste<Rute>();\n aapneDisse.leggTil(this);\n // Rekursiv metode som fyller aapneDisse med riktige ruter\n finnAapentOmraade(besokt, aapneDisse);\n for (Rute r : aapneDisse) {\n r.aapne();\n }\n } else {\n aapne();\n }\n }", "@Test\n public void nelioMuodostuu() {\n ArrayList lista=this.tetrimino.palautaKuvio();\n assertEquals(lista.size(), 4);\n \n }", "@Test\n public void sucheReihen() throws Exception {\n System.out.println(\"sucheReihen\");\n KategorieKey key = null;\n List<Reihe> expResult = null;\n List<Reihe> result = SaalHelper.sucheReihen(key);\n assertEquals(expResult, result);\n \n }", "public void test2(){\r\n\t\tZug zug1 = st.zugErstellen(2, 2, \"Zug 1\");\r\n\t\tst.fahren();\r\n\t}", "public void realizacjap34() {\n System.out.println(\"REALIZACJA PUNKTU 3\\n\");\n\n System.out.println(\"\\nWyszukiwanie osob po imieniu (Piotr) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoImieniu(Listy.osoby, \"Piotr\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po nazwisku (Oleszczuk) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoNazwisku(Listy.osoby, \"Oleszczuk\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy mniejszym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyMniejszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy większym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyWiekszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy równym 5============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyRownym(Listy.osoby, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin mniejszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachMniejszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin wiekszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachWiekszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin równej 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachRownych(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji wiekszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiWiekszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji mniejszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiMniejszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji rownej 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiRownej(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stanowisku (Adiunkt) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStanowisku(Listy.osoby, \"Adiunkt\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studenta po numerze indeksu (123456) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzStudentaPoIndeksie(Listy.osoby, \"123456\"));\n\n System.out.println(\"\\nWyszukiwanie studentów po roku studiów (1) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoRokuStudiow(Listy.osoby, 1).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studentów po kierunku (Informatyka Stosowana) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoKierunku(Listy.osoby, \"Informatyka Stosowana\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursu po nazwie (Analiza Matematyczna 1) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzKursPoNazwie(Listy.kursy, \"Analiza Matematyczna 1\"));\n\n System.out.println(\"\\nWyszukiwanie kursów po liczbie ects (5) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoECTS(Listy.kursy, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursów po prowadzacym+\"+Listy.osoby.get(0).getImie()+\" \"+Listy.osoby.get(0).getNazwisko()+\" ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoProwadzacym(Listy.kursy, Listy.osoby.get(0)).forEach(System.out::println);\n\n\n //REALIZACJA PUNKTU 4\n System.out.println(\"=====================================================================================================================\");\n System.out.println(\"REALIZACJA PUNKTU 4\");\n System.out.println(\"=====================================================================================================================\\n\");\n System.out.println(\"Kursy:\\n\");\n for (Kurs kurs : Listy.kursy) {\n System.out.println(kurs.toString());\n }\n\n System.out.println(\"\\nOsoby:\\n\");\n for (Osoba osoba : Listy.osoby) {\n System.out.println(\"OSOBA====================================================================================================\");\n System.out.println(osoba.toString());\n System.out.println();\n }\n }", "@Test\n\tpublic void ricercaSinteticaClassificatoreGSAFigli() {\n\n\t}", "public void testFilaSuperiorLlena( )\n {\n setupEscenario2( );\n triqui.limpiarTablero( );\n triqui.marcarCasilla( 1, marcaJugador1 );\n triqui.marcarCasilla( 2, marcaJugador1 );\n triqui.marcarCasilla( 3, marcaJugador1 );\n assertTrue( triqui.filaSuperiorLlena( marcaJugador1 ) );\n assertTrue( triqui.ganoJuego( marcaJugador1 ) );\n }", "@Test\n public void testKatsokoko() {\n \n assertEquals(50, testi.ruudunkoko);\n }", "public void testCasillasJugador1( )\n {\n setupEscenario1( );\n int tamanho = casillasJugador1.size( );\n int casilla;\n int i = 0;\n while( i < tamanho )\n {\n casilla = ( ( Integer )casillasJugador1.get( i ) ).intValue( );\n assertEquals( marcaJugador1, triqui.obtenerMarcaCasilla( casilla ) );\n i++;\n }\n }", "public void testFilaMediaLlena( )\n {\n setupEscenario3( );\n triqui.limpiarTablero( );\n triqui.marcarCasilla( 4, marcaJugador1 );\n triqui.marcarCasilla( 5, marcaJugador1 );\n triqui.marcarCasilla( 6, marcaJugador1 );\n assertTrue( triqui.filaMediaLlena( marcaJugador1 ) );\n assertTrue( triqui.ganoJuego( marcaJugador1 ) );\n }", "@Test\n public void testBuscarJugador() {\n ArrayList<Jugador> jugadores;\n jugadores = new ArrayList<>();\n System.out.println(\"Prueba 5\");\n Jugador ju = new Jugador(\"005\", \"Sebas\", 0, 0);\n jugadores.add(ju);\n int encontrado= util.buscarJugador(\"005\", jugadores);\n assertEquals(0, encontrado);\n }", "@Test\n public void testPartieContinue(){\n Joueur NORD = new Joueur(\"NORD\");\n Joueur SUD = new Joueur(\"SUD\");\n assertTrue(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n // avec des bases injouables\n NORD.setAscendant(61);\n NORD.setDescendant(0);\n SUD.setAscendant(61);\n SUD.setDescendant(0);\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0, false));\n // avec un jeu vide\n NORD.jeu.clear();\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0, false));\n\n SUD.jeu.clear();\n NORD.jeu.add(0,59);\n NORD.jeu.add(1,58);\n NORD.setAscendant(57);\n NORD.setDescendant(2);\n SUD.setAscendant(1);\n SUD.setDescendant(60);\n assertTrue(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n NORD.setAscendant(58);\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n //cas spécifique\n NORD.setAscendant(49);\n NORD.setDescendant(2);\n SUD.setAscendant(53);\n SUD.setDescendant(9);\n SUD.jeu.add(0,34);\n SUD.jeu.add(1,44);\n SUD.jeu.add(2,38);\n SUD.jeu.add(3,6);\n SUD.jeu.add(4,41);\n SUD.jeu.add(5,39);\n assertTrue(Regles.partieContinue(SUD.clone(), NORD.clone(), 0, false));\n\n\n }", "public void testFilaInferiorLlena( )\n {\n setupEscenario1( );\n triqui.limpiarTablero( );\n triqui.marcarCasilla( 7, marcaJugador1 );\n triqui.marcarCasilla( 8, marcaJugador1 );\n triqui.marcarCasilla( 9, marcaJugador1 );\n assertTrue( triqui.filaInferiorLlena( marcaJugador1 ) );\n assertTrue( triqui.ganoJuego( marcaJugador1 ) );\n }", "public void testCasillasJugador2( )\n {\n setupEscenario2( );\n int tamanho = casillasJugador2.size( );\n int casilla;\n int i = 0;\n while( i < tamanho )\n {\n casilla = ( ( Integer )casillasJugador2.get( i ) ).intValue( );\n assertEquals( marcaJugador2, triqui.obtenerMarcaCasilla( casilla ) );\n i++;\n }\n }", "@Test\n\tpublic void testRicercaArticolo1() {\n\t\tString ricerca = \"No\";\n\t\tArrayList<Articolo> trovati = (ArrayList<Articolo>) \n\t\t\t\tb1.ricercaArticolo(ricerca);\n\t\tassertTrue(\"La lista deve essere vuota\", trovati.isEmpty());\n\t}", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Test\n public void z_topDown_TC02() {\n try {\n Intrebare intrebare = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"M\");\n Intrebare intrebare1 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"A\");\n Intrebare intrebare2 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"B\");\n Intrebare intrebare3 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"C\");\n assertTrue(true);\n assertTrue(appService.exists(intrebare));\n assertTrue(appService.exists(intrebare1));\n assertTrue(appService.exists(intrebare2));\n assertTrue(appService.exists(intrebare3));\n\n try {\n ccir2082MV.evaluator.model.Test test = appService.createNewTest();\n assertTrue(test.getIntrebari().contains(intrebare));\n assertTrue(test.getIntrebari().contains(intrebare1));\n assertTrue(test.getIntrebari().contains(intrebare2));\n assertTrue(test.getIntrebari().contains(intrebare3));\n assertTrue(test.getIntrebari().size() == 5);\n } catch (NotAbleToCreateTestException e) {\n assertTrue(false);\n }\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n }\n }", "@Test\n public void testGetYhteensa() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n k.tarkistaVastaus(\"vaarav vastaus\");\n k.tarkistaVastaus(\"trololololoo\");\n int virheita = k.getYhteensa();\n\n assertEquals(\"Sanan tarkastus ei toimi\", 2, virheita);\n }", "public void testTableroLleno( )\n {\n setupEscenario2( );\n for( int i = 1; i <= 9; i++ )\n {\n triqui.marcarCasilla( i, marcaJugador1 );\n }\n assertTrue( triqui.tableroLleno( ) );\n }", "@Test\n public void konstruktoriAsettaaSateenOikein() {\n assertEquals(3.0, lierio.getSade(), 1);\n }", "@Test\r\n public void testLaskeSolmut() {\r\n AvlPuu puu = new AvlPuu();\r\n Noodi noodi = new Noodi(0,0);\r\n noodi.setMatkaJaljella(10);\r\n noodi.setTehtyMatka(0);\r\n PuuSolmu solmu = new PuuSolmu(noodi);\r\n puu.insert(noodi);\r\n Noodi noodi2 = new Noodi(1,0);\r\n noodi2.setMatkaJaljella(9);\r\n noodi2.setTehtyMatka(noodi);\r\n PuuSolmu solmu2 = new PuuSolmu(noodi2);\r\n puu.insert(noodi2);\r\n assertEquals(puu.laskeSolmut(), 2);\r\n }", "private static PohonAVL seimbangkanKembaliKanan(PohonAVL p) {\n //...\n // Write your codes in here\n }", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "@Test \r\n\t\r\n\tpublic void ataqueDeMagoSinMagia(){\r\n\t\tPersonaje perso=new Humano();\r\n\t\tEspecialidad mago=new Hechicero();\r\n\t\tperso.setCasta(mago);\r\n\t\tperso.bonificacionDeCasta();\r\n\t\t\r\n\t\tPersonaje enemigo=new Orco();\r\n\t\tEspecialidad guerrero=new Guerrero();\r\n\t\tenemigo.setCasta(guerrero);\r\n\t\tenemigo.bonificacionDeCasta();\r\n\t\t\r\n\t\tAssert.assertEquals(50,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(44,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t\t\r\n\t\t//ataque normal\r\n\t\tperso.atacar(enemigo);\r\n\t\t\r\n\t\tAssert.assertEquals(50,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(32,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t\t\r\n\t\t// utilizar hechizo\r\n\t\tperso.getCasta().getHechicero().agregarHechizo(\"Engorgio\", new Engorgio());\r\n\t\tperso.getCasta().getHechicero().hechizar(\"Engorgio\",enemigo);\r\n\t\t\r\n\t\tAssert.assertEquals(20,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(32,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t}", "public void testaReclamacao() {\n\t}", "@Test\n public void testJatka() {\n System.out.println(\"jatka\");\n Peli peli = new Peli(new Alue(3, 1));\n peli.jatka();\n assertEquals(peli.isHavio(), false);\n assertEquals(peli.getMenetykset(), 1);\n\n }", "public void testAltaVehiculo(){\r\n\t}", "@Test\r\n\tpublic void testFineTurno() {\r\n\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\tthis.giocatori.add(new Giocatore());\r\n\t\t\tfor (int j = 0; j < 4; j++) {\r\n\t\t\t\tthis.giocatori.get(i).getFamigliare(j).setPosizionato(true);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.giocatoreDiTurno = this.giocatori.get(1);\r\n\t\tassertTrue(this.giocatoreDelTurnoSuccessivo(giocatoreDiTurno) == null);\r\n\t}", "@Test\n public void testGetVastaus() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n String vastaus = k.getVastaus();\n assertEquals(\"getVastaus ei toimi odoitetusti\", \"vastine\", vastaus);\n }", "@Test\n\tpublic void testRicercaArticolo3() {\n\t\tArticolo l1 = new Libro(\"Titolo1\", \"Autore\", \"Genere\", \n\t\t\t\t\"Collocazione\", b1, 012345 , \"Casa Editrice\", 150);\n\t\tb1.getPossiede().add(l1);\n\t\tString ricerca = \"Titolo1\";\n\t\tArrayList<Articolo> trovati = (ArrayList<Articolo>) \n\t\t\t\tb1.ricercaArticolo(ricerca);\n\t\tassertTrue(\"La lista deve contenere l1\", trovati.contains(l1));\n\t}", "@Test\n public void kaasunKonstruktoriToimiiOikeinTest() {\n assertEquals(rikkihappo.toString(),\"Rikkihappo Moolimassa: 0.098079\\n tiheys: 1800.0\\n lämpötila: 298.15\\n diffuusiotilavuus: 50.17\\npitoisuus: 1.0E12\");\n }", "@Test\n public void testGetVaarin() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n k.tarkistaVastaus(\"vaarav vastaus\");\n k.tarkistaVastaus(\"trololololoo\");\n int virheita = k.getVaarin();\n\n assertEquals(\"Väärin menneiden tarkistusten lasku ei toimi\", 2, virheita);\n }", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "@Test\n\tpublic void testRicercaArticolo2() {\n\t\tArticolo l1 = new Libro(\"Titolo1\", \"Autore\", \"Genere\", \n\t\t\t\t\"Collocazione\", b1, 012345 , \"Casa Editrice\", 150);\n\t\tb1.getPossiede().add(l1);\n\t\tString ricerca = \"NO\";\n\t\tArrayList<Articolo> trovati = (ArrayList<Articolo>) \n\t\t\t\tb1.ricercaArticolo(ricerca);\n\t\tassertTrue(\"La lista deve essere vuota\", trovati.isEmpty());\n\t}", "public void testColumnaIzquierdaLlena( )\n {\n setupEscenario2( );\n triqui.limpiarTablero( );\n triqui.marcarCasilla( 1, marcaJugador1 );\n triqui.marcarCasilla( 4, marcaJugador1 );\n triqui.marcarCasilla( 7, marcaJugador1 );\n assertTrue( triqui.columnaIzquierdaLlena( marcaJugador1 ) );\n assertTrue( triqui.ganoJuego( marcaJugador1 ) );\n }", "public void testTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(); \n\n\t\tshowData_skpp(data,\"penerbit\",\"jumlah_surat\");\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tclass Ulamek{\r\n\t\t\tprivate int licznik, mianownik;\r\n\r\n\t\t\tpublic void ustawLicznik (int l){\r\n\t\t\t\tlicznik=l;\r\n\t\t\t}\r\n\t\t\tpublic void ustawMianownik (int m){\r\n\t\t\t\tmianownik=m;\r\n\t\t\t}\r\n\t\t\tpublic void ustawUlamek (int u1, int u2){\r\n\t\t\t\tlicznik=u1;\r\n\t\t\t\tmianownik=u2;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void wyswietl (){\r\n\t\t\t\t\r\n\t\t\t\tint przod, reszta, przod_dlugosc, mianownik_dlugosc, licznik_dlugosc;\r\n\t\t\t\tString przod_zamiana, mianownik_string, licznik_string;\r\n\t\t\t\tdouble wynik;\r\n\t\t\t\t\r\n\t\t\t\tif (mianownik!=0 && licznik !=0){\r\n\t\t\t\tprzod=licznik/mianownik;\r\n\t\t\t\treszta=licznik-(przod*mianownik);\r\n\t\t\t\tprzod_zamiana=\"\"+przod;\r\n\t\t\t\tprzod_dlugosc=przod_zamiana.length();\r\n\t\t\t\twynik=1.0*licznik/mianownik;\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t licznik++;\r\n\t\t\t\t\t}while (licznik!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(reszta);\r\n\t\t\t}\r\n\r\n\t\t\t\t//zamiana na stringa i liczenie\r\n\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//brak calości\r\n\t\t\t\tif(przod==0){\r\n\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\tif(przod!=0){\r\n\t\t\t\tSystem.out.print(\" \"+przod+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik2 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik2++;\r\n\t\t\t\t\t\r\n\t\t\t\t}while (licznik2!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t System.out.println();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t//jezeli blad \r\n\t\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\tlicznik_string=\"\"+licznik;\r\n\t\t\t\t\tlicznik_dlugosc=licznik_string.length();\r\n\t\t\t\t\tif(licznik_dlugosc>mianownik_dlugosc){\r\n\t\t\t\t\t\tmianownik_dlugosc=licznik_dlugosc;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//gora\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t//if(licznik==0){\r\n\t\t\t\t\t//System.out.print(\" \");\r\n\t\t\t\t\t//}\r\n\r\n\t\t\t\t\tSystem.out.println(licznik);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//srodek\r\n\t\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\tint licznik3 = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t licznik3++;\r\n\t\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t\t System.out.print(\" = \"+\"ERR\");\r\n\r\n\t\t\t\t System.out.println();\r\n\t\t\t\t\t\r\n\t\t\t\t //dol\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t\t\t System.out.println();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t Ulamek u1=new Ulamek();\r\n\t\t Ulamek u2=new Ulamek();\r\n\r\n\t\t u1.ustawLicznik(3);\r\n\t\t u1.ustawMianownik(5);\r\n\r\n\t\t u2.ustawLicznik(142);\r\n\t\t u2.ustawMianownik(8);\r\n\r\n\t\t u1.wyswietl();\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\t \r\n\t\t u2.wyswietl();\r\n\r\n\r\n\r\n\r\n\t\t u2.ustawUlamek(100,0);\r\n\r\n\r\n\t\t u2.wyswietl();\r\n\r\n\t}", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "public void test1(){\r\n\t\tZug zug1 = st.zugErstellen(3, 2, \"Zug 1\");\r\n\t\tst.blockFahren();\r\n\t\tst.blockFahren();\r\n\t\tZug zug2 = st.zugErstellen(2, 3, \"Zug 2\");\r\n\t\tg.textAusgeben(\"Position Zug1: \"+zug1.getPosition()+\"\\n\"+\"Position Zug2: \"+zug2.getPosition());\r\n\t\tst.fahren();\r\n\t}", "@Test(priority = 11)\n\t public void testJuzLists_From_Juz_0_10_OnAlQuranPage() throws Exception {\n\t System.out.println(\"<------Testing Juz Lists From_Juz_1_10 On Al-Quran Page------->\\n\");\n\t testJuz_chunk_wise(0, 10);\n\t }", "public void asetaTeksti(){\n }", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "public void ajaTesti() {\n \n long summa1 = 0;\n long summa2 = 0;\n int laskuri1=0; //test\n int laskuri2=0;\n \n Taytto tulosN = null;\n TayttoDP tulosDP = null;\n \n //rotatoidaan testien suoritusjärjestystä kerran\n int rot = 2;\n for (int i=0;i<rot;i++) {\n //random järjestys\n //Tavara[] ar = shuffleTavarat();\n\n Tavara[] ar = this.tavarat;\n Taytto tayttoN = new Taytto(ar, sakki);\n TayttoDP tayttoDP = new TayttoDP(ar, sakki);\n\n long aikaAlussa = 0;\n long aikaLopussa = 0;\n long aika = 0;\n\n int sisatoisto=this.toistokoe;\n //rotatoidaan testien ajojärjestys\n long sum1=0; \n long sum2=0; \n\n //ignoorataan 10 ensimmäistä tuloksista, lisätään siksi 10 ylimääräistä toistokierrosta\n for (int j=0;j<sisatoisto;j++) {\n\n if (i%2==0) {\n laskuri1++;\n\n // Mittaus naivi-algoritmi\n aikaAlussa = System.nanoTime();\n tayttoN.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n //ignoorataan 10 ensimmäistä tuloksista\n if(j>=0) sum1+=aika;\n\n // Mittaus DP -algoritmi\n aikaAlussa = System.nanoTime();\n tayttoDP.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n if(j>=0) sum2+=aika;\n }\n else {\n laskuri2++; //test\n\n // Mittaus DP -algoritmi\n aikaAlussa = System.nanoTime();\n tayttoDP.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n if(j>=0) sum2+=aika;\n \n // Mittaus naivi-algoritmi\n aikaAlussa = System.nanoTime();\n tayttoN.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n if (j>=0) sum1+=aika;\n }\n\n //Tarkistus, että tulos sama kummallakin algoritmilla\n if (tayttoN.annaMaxArvo()!=tayttoDP.annaMaxArvo()) {\n System.out.println(\"Taytto1: Arvo: \" + tayttoN.annaMaxArvo() + \" , jono :\" + tayttoN.annaMaxJono());\n System.out.println(\"Taytto2: Arvo: \" + tayttoDP.annaMaxArvo() + \" , jono :\" + tayttoDP.annaMaxJono()); \n break;\n }\n \n \n }\n summa1+=sum1/(sisatoisto);\n summa2+=sum2/(sisatoisto);\n \n tulosN=tayttoN;\n tulosDP=tayttoDP;\n \n }\n// System.out.println(laskuri1);\n// System.out.println(laskuri2);\n\n \n long keskiarvo1 = summa1/rot;\n long keskiarvo2 = summa2/rot;\n\n String[] kootN = tulosN.annaMaxJono().split(\" \");\n int kokoN = 0;\n for (int i = 0; i < kootN.length; i++) {\n try {\n kokoN += this.tavarat[Integer.parseInt(kootN[i])-1].annaKoko();\n } catch (NumberFormatException nfe) {};\n } \n \n String[] kootDP = tulosDP.annaMaxJono().split(\" \");\n int kokoDP = 0;\n for (int i = 0; i < kootDP.length; i++) {\n try {\n kokoDP += this.tavarat[Integer.parseInt(kootDP[i])-1].annaKoko();\n } catch (NumberFormatException nfe) {};\n } \n\n System.out.println(this.nimi);\n System.out.println(\"Tavarat: \" + annaTavaroidenKokoJaArvo());\n System.out.println(\"Sakki \" + this.sakki.annaKoko() + \", lkm \" + this.koko + \", toistot \" + toistokoe);\n System.out.println(\"Keskiarvo (ms) Naiivi: \" + keskiarvo1/1000 + \", DP: \" + keskiarvo2/1000);\n System.out.println(\"Tulos Naiivi: maksimiarvo: \" + tulosN.annaMaxArvo() + \" koko: \" + kokoN + \" maksimiarvon toteuttavien travaroiden järjestysnumerot: \"); \n System.out.println(tulosN.annaMaxJono());\n System.out.println(\"Tulos DP: maksimiarvo: \" + tulosDP.annaMaxArvo() + \" koko: \" + kokoDP + \" maksimiarvon toteuttavien travaroiden järjestysnumerot: \");\n System.out.println(tulosDP.annaMaxJono());\n \n }", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "public void testColumnaDerechaLlena( )\n {\n setupEscenario1( );\n triqui.limpiarTablero( );\n triqui.marcarCasilla( 3, marcaJugador1 );\n triqui.marcarCasilla( 6, marcaJugador1 );\n triqui.marcarCasilla( 9, marcaJugador1 );\n assertTrue( triqui.columnaDerechaLlena( marcaJugador1 ) );\n assertTrue( triqui.ganoJuego( marcaJugador1 ) );\n }", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "@Test\n\tpublic void testAdmitirJugadores() {\n\t\tSalaDeJuego sala = new SalaDeJuego(\"sala1\");\n\t\tassertEquals(0, sala.getCantJugadores());\n\t\t//Crea un jugador y lo admite. Consulta por cantidad de jugadores = 1\n\t\tJugador jugador1 = new Jugador(\"Maikcrosoft\", 1);\n\t\tassertTrue(sala.admitirJugador(jugador1));\n\t\tassertEquals(1, sala.getCantJugadores());\n\t\t//Crea un jugador y lo admite. Consulta por cantidad de jugadores = 2\n\t\tJugador jugador2 = new Jugador(\"crosoft\", 2);\n\t\tassertTrue(sala.admitirJugador(jugador2));\n\t\tassertEquals(2, sala.getCantJugadores());\n\t\t//Crea un tercer jugador y lo admite. Consulta por cantidad de jugadores = 3\n\t\tJugador jugador3 = new Jugador(\"soft\", 3);\n\t\tassertTrue(sala.admitirJugador(jugador3));\n\t\tassertEquals(3, sala.getCantJugadores());\n\t\t//Crea un cuarto jugador y lo admite. Consulta por cantidad de jugadores = 4\n\t\tJugador jugador4 = new Jugador(\"croso\", 4);\n\t\tassertTrue(sala.admitirJugador(jugador4));\n\t\tassertEquals(4, sala.getCantJugadores());\n\t\t//Crea un quinto jugador y verifica que lo rechace. \n\t\tJugador jugador5 = new Jugador(\"ikcro\", 5);\n\t\tassertFalse(sala.admitirJugador(jugador5));\n\t}", "void kiemTraThangHopLi() {\n }", "@Test(priority = 0)\n\t public void testSurahLists_From_Surah_0_10_OnAlQuranPage() throws\n\t Exception {\n\t System.out.println(\"<------Testing Surah Lists From_Surah_1_10 On Al-Quran Page------->\\n\");\n\t testSurahs_chunk_wise(0, 10);\n\t }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "@Test\r\n\t\tpublic void testMovimientoTorreBlanca0() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreBlanca0,\r\n\t\t\t\t\t\"Error al comprobar los movimientos de la torre blanca en el inicio de una aprtida en la posición 1a. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "@Test\n public void bateauAtNoBateau() {\n Player p = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n Grille g = new Grille(10, 10, j, p);\n\n Bateaux ba = new ContreTorpilleur(new Place[]{new Place(\"A5\")}, j, p, true);\n g.setListBateaux(Collections.singletonList(ba));\n\n Bateaux b = j.bateauAt(new Place(\"A6\"), g);\n\n assertNull(\"Il n'y a pas de bateau ici\", b);\n }", "@Test\r\n\t\tpublic void testMovimientoTorreNegra0() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreNegra0,\r\n\t\t\t\t\t\"Error al comprobar los movimientos del rey negro en el inicio de una aprtida en la posición 8a. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "@Test\n public void tilimaksuKutsuuTilisiirtoaOikeillaParametreilla() {\n when(this.varasto.saldo(1)).thenReturn(10);\n when(this.varasto.haeTuote(1)).thenReturn(new Tuote(1, \"maito\", 5));\n \n this.kauppa.aloitaAsiointi();\n this.kauppa.lisaaKoriin(1);\n this.kauppa.tilimaksu(\"johannes\", \"12345\");\n verify(this.pankki).tilisiirto(eq(\"johannes\"), anyInt(), eq(\"12345\"), anyString(), eq(5));\n \n }", "public abstract String dohvatiKontakt();", "@Test\n\tpublic void peorCasoOrderAndSelectTest() {\n\t\tint longitud = 16;\n\t\tInteger[] conjunto = new Integer[longitud];\n\t\tfor (int i = 0; i < conjunto.length; i++)\n\t\t\tconjunto[i] = 1; \n\t\tint k = longitud - 1;\n\t\tassertEquals(new Integer(15), buscador.buscarEstadisticoDeOrdenK(conjunto, k));\n\t}", "@Test\r\n public void testCalculerValeurTerrainAgricole() {\n Lot lot1 = new Lot(\"Lot1\", 2, 0, 300, \"14-02-2019\");\r\n Lot lot2 = new Lot(\"Lot2\", 2, 0, 600, \"12-06-2019\");\r\n Lot lot3 = new Lot(\"Lot3\", 2, 0, 1500, \"04-02-2019\");\r\n List<Lot> lots = new ArrayList();\r\n lots.add(lot1);\r\n lots.add(lot2);\r\n lots.add(lot3);\r\n // Terrain (typeTerrain, prix_min2, prix_min2, listLot)\r\n Terrain terrain = new Terrain(0, 50.00, 75.00, lots);\r\n Agricole.calculerValeurTerrainAgricole(terrain);\r\n // valFonciereAttendue = 50.0*300 + 50.0*600 + 50.0*1500 + 733.77 +\r\n // nbreDroitPassage = 500-(2*(5/100*300*50)) + 500-(2*(5/100*600*50))+\r\n // 500-(2*(5/100*1500*50)\r\n double valFonciereAttendue = 110233.8;\r\n double taxeScolaireAttendue=1322.85;\r\n double taxeMunicipaleAttendue = 2755.85;\r\n boolean resultat = valFonciereAttendue == terrain.getValeur_fonciere_totale()\r\n && taxeScolaireAttendue == terrain.getTaxe_scolaire()\r\n && taxeMunicipaleAttendue == terrain.getTaxe_municipale();\r\n assertTrue(\"valfoncièreAttendue: \" + valFonciereAttendue+\", vs valeur obtenue: \"+terrain.getValeur_fonciere_totale()\r\n + \"\\ntaxe scolaire attendue: \" + taxeScolaireAttendue+\", vs valeur obtenue: \"+terrain.getTaxe_scolaire()\r\n + \"\\ntaxe muninipale attendue: \" + taxeMunicipaleAttendue+\", vs valeur obtenue: \"+terrain.getTaxe_municipale(), \r\n resultat); \r\n \r\n }", "@Test\r\n\t\tpublic void testMovimientoTorreBlanca0a() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreBlanca0a,\r\n\t\t\t\t\t\"Error al comprobar los movimientos de la torre blanca en el inicio de una aprtida en la posición 1h. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "@Test\n\tpublic void testNoNulos() {\n\t\tassertNotNull(\"Error: La bici es nula\", bicicleta);\n\t\tassertNotNull(\"Error: La velocidad es nula\", bicicleta.getVelocidad());\n\t\tassertNotNull(\"Error: El espacio es nulo\", bicicleta.getEspacioRecorrido());\n\t\tassertNotNull(\"Error: El piñon actual es nulo\", bicicleta.getPinhonactual());\n\t\tassertNotNull(\"Error: El plato actual es nulo\", bicicleta.getPlatoactual());\n\t\tassertNotNull(\"Error: El radio de la rueda es nulo\", bicicleta.getRadiorueda());\n\t}", "@Test\r\n public void testSamaPuu() {\r\n AvlPuu puu = new AvlPuu();\r\n Noodi noodi = new Noodi(0,0);\r\n noodi.setMatkaJaljella(10);\r\n noodi.setTehtyMatka(0);\r\n PuuSolmu solmu = new PuuSolmu(noodi);\r\n puu.insert(noodi);\r\n Noodi noodi2 = new Noodi(1,0);\r\n noodi2.setMatkaJaljella(9);\r\n noodi2.setTehtyMatka(noodi);\r\n PuuSolmu solmu2 = new PuuSolmu(noodi2);\r\n puu.insert(noodi2);\r\n \r\n AvlPuu puu2 = new AvlPuu();\r\n puu2.insert(noodi);\r\n puu2.insert(noodi2);\r\n assertTrue(puu.SamaPuu(puu2));\r\n\r\n }", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "@Test\n public void testGetKysyttavaSana() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n String joo = k.asetaKysymys(a, true, 1);\n assertEquals(\"SgetKysyttäva sana ei toimi odotetusti\", \"sana\", joo);\n }", "@Test\n public void testTraduccion() {\n ArrayList<Association<String, String>> arrayAs = new ArrayList<>();\n String in=\"cat\";\n String es=\"gato\";\n Association h=new Association (in, es);\n arrayAs.add(h);\n in=\"ballon\";\n es=\"globo\";\n Association k=new Association (in, es);\n arrayAs.add(k);\n Diccionario dicc = new Diccionario(arrayAs);//al crear un objeto diccionario igualmente se evalua el metodo de AddAss() ya que en el constructor se llama\n String palabrain=\"cat\";\n String expResult=dicc.traduccion(dicc.getRaiz(), palabrain);\n String palabra = \"gato\";\n assertEquals(expResult, palabra);\n }", "@Test\n public void sucheSaeleBezT() throws Exception {\n System.out.println(\"sucheSaele nach Bezeichnung\");\n bezeichnung = \"Halle 1\";\n typ = \"\";\n plaetzeMin = null;\n ort = null;\n SaalDAO dao=DAOFactory.getSaalDAO();\n query = \"bezeichnung like '%\" + bezeichnung + \"%' \";\n explist = dao.find(query);\n System.out.println(query);\n List<Saal> result = SaalHelper.sucheSaele(bezeichnung, typ, plaetzeMin, ort);\n assertEquals(explist, result);\n \n }", "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }", "@Test\n public void testAsetaKysymys() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n String sana = k.asetaKysymys(a, true, 1);\n String vastaus = k.getVastaus();\n assertEquals(\"kysymykse nasettaminen ei toimi\", \"sana\", sana);\n }", "@Test\r\n public void testPartido2() throws Exception { \r\n P2.fijarEquipos(\"Barça\",\"Depor\"); \r\n P2.comenzar(); \r\n P2.tantoLocal();\r\n P2.terminar(); \r\n assertEquals(\"Barça\",P2.ganador());\r\n }", "@Test\r\n\t\tpublic void testMovimientoTorreNegra0a() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreNegra0a,\r\n\t\t\t\t\t\"Error al comprobar los movimientos del rey negro en el inicio de una aprtida en la posición 8h. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "public void test4(){\r\n\t\tZug zug0 = st.zugErstellen(0, 3, \"Zug 0\");\r\n\t\tst.blockFahren();\r\n\t\td.getSignal(21).setStellung(true);\r\n\t\td.getWeiche(17).setStellung(false);\r\n\t\tst.blockFahren();\r\n\t\td.getSignal(18).setStellung(true);\r\n\t\td.getWeiche(39).setStellung(false);\r\n\t\tst.blockFahren();\r\n\t\tst.fahren();\r\n\t}", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "@Test(priority = 14)\n\tpublic void testTranslationsLists_From_Translation_0_10_OnAlQuranPage() throws Exception {\n\t\tSystem.out.println(\"<------Testing Translations Lists From_Translation_1_10 On Al-Quran Page------->\\n\");\n\t\ttestTranslations_chunk_Wise(0, 10);\n\t}", "@Test\r\n public void testLookup() {\r\n AvlPuu puu = new AvlPuu();\r\n Noodi noodi = new Noodi(0,0);\r\n noodi.setMatkaJaljella(10);\r\n noodi.setTehtyMatka(0);\r\n PuuSolmu solmu = new PuuSolmu(noodi);\r\n puu.insert(noodi);\r\n assertTrue(puu.lookup(noodi)); \r\n }" ]
[ "0.6942594", "0.67839015", "0.6719528", "0.6706511", "0.66967756", "0.66943765", "0.6666107", "0.6599785", "0.6571836", "0.6549125", "0.65339094", "0.6525305", "0.6498957", "0.64887434", "0.64886147", "0.64696735", "0.64577454", "0.6395921", "0.63907063", "0.6368594", "0.6359692", "0.6330269", "0.62969476", "0.62964046", "0.62884754", "0.6268035", "0.6267773", "0.626064", "0.62462896", "0.62358785", "0.62181103", "0.619368", "0.6190204", "0.61900604", "0.6177081", "0.6163739", "0.61533237", "0.61463004", "0.61352485", "0.6132489", "0.61312205", "0.61119294", "0.610199", "0.6092121", "0.6091072", "0.6069453", "0.606611", "0.6059011", "0.6052879", "0.6047353", "0.603432", "0.602313", "0.60086", "0.6000967", "0.59981436", "0.5987282", "0.5984318", "0.59728396", "0.59705895", "0.59664565", "0.5949783", "0.5944756", "0.5942419", "0.5935914", "0.59339845", "0.59312165", "0.5911941", "0.5911877", "0.59108126", "0.59099835", "0.59003717", "0.5897906", "0.58954453", "0.588973", "0.5886042", "0.58840233", "0.58820635", "0.587527", "0.5870464", "0.5870376", "0.5866423", "0.58602357", "0.5859917", "0.5859451", "0.5855576", "0.58409745", "0.5836772", "0.5835269", "0.58349395", "0.58337235", "0.58299804", "0.5829928", "0.5816049", "0.5815416", "0.5814573", "0.5808967", "0.5804762", "0.5804639", "0.58015805", "0.57984257", "0.57982403" ]
0.0
-1
/ metoda koja testira da li se krug nalazi unutar kruga
public boolean contains(Circle2D circle){ boolean contains = false; //odredjivanje koliko je centar drugog kruga udaljena od centra prvog kruga, pomocu pitagorine teoreme double udaljenost = Math.sqrt(Math.pow((this.x - circle.getX()), 2) + Math.pow((this.y - circle.getY()), 2)); if(this.radius >= udaljenost + circle.radius){ contains = true; } return contains; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "@Test\n public void yksiVasemmalle() {\n char[][] kartta = Labyrintti.lueLabyrintti(\"src/main/resources/labyrinttiTestiVasen.txt\");\n assertFalse(kartta == null);\n Labyrintti labyrintti = new Labyrintti(kartta);\n RatkaisuLeveyshaulla ratkaisuSyvyyshaulla = new RatkaisuLeveyshaulla(labyrintti);\n String ratkaisu = ratkaisuSyvyyshaulla.ratkaisu();\n assertTrue(Tarkistaja.tarkista(ratkaisu, labyrintti));\n }", "@Test\n public void testAvaaRuutu() {\n int x = 0;\n int y = 0;\n Peli pjeli = new Peli(new Alue(3, 0));\n pjeli.avaaRuutu(x, y);\n ArrayList[] lista = pjeli.getAlue().getRuudukko();\n ArrayList<Ruutu> ruudut = lista[0];\n assertEquals(true, ruudut.get(0).isAvattu());\n assertEquals(false, pjeli.isLahetetty());\n }", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "@Test\n public void testLukitseRuutu() {\n System.out.println(\"lukitseRuutu\");\n int x = 0;\n int y = 0;\n Peli peli = new Peli(new Alue(3, 1));\n peli.lukitseRuutu(x, y);\n ArrayList[] lista = peli.getAlue().getRuudukko();\n ArrayList<Ruutu> ruudut = lista[0];\n assertEquals(true, ruudut.get(0).isLukittu());\n }", "public void test5(){\r\n\t\tZug zug1 = st.zugErstellen(1, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(0, 3, \"Zug 2\"); \r\n\t}", "public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}", "@Test\n\tpublic void testKargatuGorde() throws IOException {\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\n\t\tassertEquals(0, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gorde();\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\n\t\tErabiltzaileLista.getErabiltzaileLista().kargatu();\n\t\tassertEquals(0, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\t//Erabiltzaile bat gordeta\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tErabiltzaileLista.getErabiltzaileLista().gorde();\n\t\tassertEquals(1, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\n\t\tErabiltzaileLista.getErabiltzaileLista().kargatu();\n\t\tassertEquals(1, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tassertNotNull( ErabiltzaileLista.getErabiltzaileLista().bilatuErabiltzaile(\"Martin\", \"123456\"));\n\t\t//Erabiltzaile asko gordeta\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Mikel\", \"123456\",\"123456\");\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Edgar\", \"123456\",\"123456\");\n\t\tassertEquals(3, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gorde();\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\n\t\tErabiltzaileLista.getErabiltzaileLista().kargatu();\n\t\tassertEquals(3, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tassertNotNull( ErabiltzaileLista.getErabiltzaileLista().bilatuErabiltzaile(\"Martin\", \"123456\"));\n\t\tassertNotNull( ErabiltzaileLista.getErabiltzaileLista().bilatuErabiltzaile(\"Mikel\", \"123456\"));\n\t\tassertNotNull( ErabiltzaileLista.getErabiltzaileLista().bilatuErabiltzaile(\"Edgar\", \"123456\"));\n\n\n\t}", "@Test\n public void testExistenceTestuJedneOsoby() {\n osBeznyMuz = new Osoba(120, 150, Barva.MODRA);\n testJedneOsoby(osBeznyMuz, 120, 150, 70, 140, Barva.MODRA);\n }", "@Test\n public void kaasunKonstruktoriToimiiOikeinTest() {\n assertEquals(rikkihappo.toString(),\"Rikkihappo Moolimassa: 0.098079\\n tiheys: 1800.0\\n lämpötila: 298.15\\n diffuusiotilavuus: 50.17\\npitoisuus: 1.0E12\");\n }", "@Test\n\tpublic void testGehituErabiltzaile() {\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\t\t\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tassertEquals(1, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Mikel\", \"123456\",\"123456\");\n\t\tassertEquals(2,ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tassertEquals(2, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t}", "public void test2(){\r\n\t\tZug zug1 = st.zugErstellen(2, 2, \"Zug 1\");\r\n\t\tst.fahren();\r\n\t}", "@Test\n public void testTarkistaVastaus() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n\n\n assertEquals(\"Sanan tarkastus ei toimi\", true, k.tarkistaVastaus(\"vastine\"));\n }", "@Test\n public void testGetOikein1() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n k.tarkistaVastaus(\"vastine\");\n k.tarkistaVastaus(\"trololololoo\");\n int virheita = k.getOikein();\n// System.out.println(virheita);\n\n assertEquals(\"Oikein menneiden sanojen tarkastukset ei laske virheitä oikein\", 1, virheita);\n }", "public abstract String dohvatiKontakt();", "@Test\n public void testLisaa33() { // Oluet: 33\n Oluet oluet = new Oluet(); \n Olut karjala1 = new Olut(), karjala2 = new Olut(); \n assertEquals(\"From: Oluet line: 36\", 0, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 37\", 1, oluet.getLkm()); \n oluet.lisaa(karjala2); assertEquals(\"From: Oluet line: 38\", 2, oluet.getLkm()); \n assertEquals(\"From: Oluet line: 39\", 2, oluet.getAlkiot()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 40\", 3, oluet.getLkm()); \n assertEquals(\"From: Oluet line: 41\", 4, oluet.getAlkiot()); \n assertEquals(\"From: Oluet line: 42\", karjala1, oluet.tuoOlut(0)); \n assertEquals(\"From: Oluet line: 43\", karjala2, oluet.tuoOlut(1)); \n assertEquals(\"From: Oluet line: 44\", karjala1, oluet.tuoOlut(2)); \n assertEquals(\"From: Oluet line: 45\", false, oluet.tuoOlut(1) == karjala1); \n assertEquals(\"From: Oluet line: 46\", true, oluet.tuoOlut(1) == karjala2); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 47\", 4, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 48\", 5, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 49\", 6, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 50\", 7, oluet.getLkm()); \n }", "@Test\n public void testAlunPainotus() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n String kysymys = k.alunPainotus(true);\n\n\n assertEquals(\"AlunPainoitus ei toimi\", \"sana\", kysymys);\n }", "@Test\n public void testKatsokoko() {\n \n assertEquals(50, testi.ruudunkoko);\n }", "@Test\n public void konstruktoriAsettaaSateenOikein() {\n assertEquals(3.0, lierio.getSade(), 1);\n }", "@Test\n\tpublic void ricercaSinteticaClassificatoreGSAFigli() {\n\n\t}", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "@Test\r\n\tpublic void testGetPeliBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == -2.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.75);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 1.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// p1 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"-1,6398\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",1491\"));\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",4472\"));\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"1,0435\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "@Test\n public void testGetVaarin() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n k.tarkistaVastaus(\"vaarav vastaus\");\n k.tarkistaVastaus(\"trololololoo\");\n int virheita = k.getVaarin();\n\n assertEquals(\"Väärin menneiden tarkistusten lasku ei toimi\", 2, virheita);\n }", "public void testTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(); \n\n\t\tshowData_skpp(data,\"penerbit\",\"jumlah_surat\");\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tclass Ulamek{\r\n\t\t\tprivate int licznik, mianownik;\r\n\r\n\t\t\tpublic void ustawLicznik (int l){\r\n\t\t\t\tlicznik=l;\r\n\t\t\t}\r\n\t\t\tpublic void ustawMianownik (int m){\r\n\t\t\t\tmianownik=m;\r\n\t\t\t}\r\n\t\t\tpublic void ustawUlamek (int u1, int u2){\r\n\t\t\t\tlicznik=u1;\r\n\t\t\t\tmianownik=u2;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void wyswietl (){\r\n\t\t\t\t\r\n\t\t\t\tint przod, reszta, przod_dlugosc, mianownik_dlugosc, licznik_dlugosc;\r\n\t\t\t\tString przod_zamiana, mianownik_string, licznik_string;\r\n\t\t\t\tdouble wynik;\r\n\t\t\t\t\r\n\t\t\t\tif (mianownik!=0 && licznik !=0){\r\n\t\t\t\tprzod=licznik/mianownik;\r\n\t\t\t\treszta=licznik-(przod*mianownik);\r\n\t\t\t\tprzod_zamiana=\"\"+przod;\r\n\t\t\t\tprzod_dlugosc=przod_zamiana.length();\r\n\t\t\t\twynik=1.0*licznik/mianownik;\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t licznik++;\r\n\t\t\t\t\t}while (licznik!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(reszta);\r\n\t\t\t}\r\n\r\n\t\t\t\t//zamiana na stringa i liczenie\r\n\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//brak calości\r\n\t\t\t\tif(przod==0){\r\n\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\tif(przod!=0){\r\n\t\t\t\tSystem.out.print(\" \"+przod+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik2 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik2++;\r\n\t\t\t\t\t\r\n\t\t\t\t}while (licznik2!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t System.out.println();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t//jezeli blad \r\n\t\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\tlicznik_string=\"\"+licznik;\r\n\t\t\t\t\tlicznik_dlugosc=licznik_string.length();\r\n\t\t\t\t\tif(licznik_dlugosc>mianownik_dlugosc){\r\n\t\t\t\t\t\tmianownik_dlugosc=licznik_dlugosc;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//gora\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t//if(licznik==0){\r\n\t\t\t\t\t//System.out.print(\" \");\r\n\t\t\t\t\t//}\r\n\r\n\t\t\t\t\tSystem.out.println(licznik);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//srodek\r\n\t\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\tint licznik3 = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t licznik3++;\r\n\t\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t\t System.out.print(\" = \"+\"ERR\");\r\n\r\n\t\t\t\t System.out.println();\r\n\t\t\t\t\t\r\n\t\t\t\t //dol\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t\t\t System.out.println();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t Ulamek u1=new Ulamek();\r\n\t\t Ulamek u2=new Ulamek();\r\n\r\n\t\t u1.ustawLicznik(3);\r\n\t\t u1.ustawMianownik(5);\r\n\r\n\t\t u2.ustawLicznik(142);\r\n\t\t u2.ustawMianownik(8);\r\n\r\n\t\t u1.wyswietl();\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\t \r\n\t\t u2.wyswietl();\r\n\r\n\r\n\r\n\r\n\t\t u2.ustawUlamek(100,0);\r\n\r\n\r\n\t\t u2.wyswietl();\r\n\r\n\t}", "@Test\r\n\tpublic void testPelikulaBaloratuDutenErabiltzaileenZerrenda() {\n\t\tArrayList<Integer> zer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p1.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(e1.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertFalse(zer.contains(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p2.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 4);\r\n\t\tassertTrue(zer.contains(e1.getId()));\r\n\t\tassertTrue(zer.contains(e2.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertTrue(zer.contains(e4.getId()));\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p3.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(e2.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertFalse(zer.contains(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p4.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(e1.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertFalse(zer.contains(e4.getId()));\r\n\t\t\r\n\t}", "@Test\n public void testGetYhteensa() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n k.tarkistaVastaus(\"vaarav vastaus\");\n k.tarkistaVastaus(\"trololololoo\");\n int virheita = k.getYhteensa();\n\n assertEquals(\"Sanan tarkastus ei toimi\", 2, virheita);\n }", "@Test\n public void testGetVastaus() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n String vastaus = k.getVastaus();\n assertEquals(\"getVastaus ei toimi odoitetusti\", \"vastine\", vastaus);\n }", "@Test\r\n public void testLaskeSolmut() {\r\n AvlPuu puu = new AvlPuu();\r\n Noodi noodi = new Noodi(0,0);\r\n noodi.setMatkaJaljella(10);\r\n noodi.setTehtyMatka(0);\r\n PuuSolmu solmu = new PuuSolmu(noodi);\r\n puu.insert(noodi);\r\n Noodi noodi2 = new Noodi(1,0);\r\n noodi2.setMatkaJaljella(9);\r\n noodi2.setTehtyMatka(noodi);\r\n PuuSolmu solmu2 = new PuuSolmu(noodi2);\r\n puu.insert(noodi2);\r\n assertEquals(puu.laskeSolmut(), 2);\r\n }", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "@Test\r\n\tpublic void testGetErabBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == -0.5);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == -2.75);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 0.75);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 1.75);\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// e1 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(df.format(bek.getBalioa(p1.getPelikulaId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p2.getPelikulaId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 1);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == -1);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(p1.getPelikulaId())).equals(\"-1,6398\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p2.getPelikulaId())).equals(\",1491\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p3.getPelikulaId())).equals(\",4472\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p4.getPelikulaId())).equals(\"1,0435\"));\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "@Test\r\n public void elCerdoNoSePuedeAtender() {\n }", "@Test\r\n\tpublic void testGetPeliBalorazioak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 4);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.5);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 3);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 2);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 3.5);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 4);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 5);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\r\n\t}", "public void realizacjap34() {\n System.out.println(\"REALIZACJA PUNKTU 3\\n\");\n\n System.out.println(\"\\nWyszukiwanie osob po imieniu (Piotr) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoImieniu(Listy.osoby, \"Piotr\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po nazwisku (Oleszczuk) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoNazwisku(Listy.osoby, \"Oleszczuk\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy mniejszym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyMniejszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy większym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyWiekszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy równym 5============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyRownym(Listy.osoby, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin mniejszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachMniejszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin wiekszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachWiekszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin równej 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachRownych(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji wiekszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiWiekszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji mniejszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiMniejszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji rownej 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiRownej(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stanowisku (Adiunkt) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStanowisku(Listy.osoby, \"Adiunkt\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studenta po numerze indeksu (123456) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzStudentaPoIndeksie(Listy.osoby, \"123456\"));\n\n System.out.println(\"\\nWyszukiwanie studentów po roku studiów (1) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoRokuStudiow(Listy.osoby, 1).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studentów po kierunku (Informatyka Stosowana) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoKierunku(Listy.osoby, \"Informatyka Stosowana\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursu po nazwie (Analiza Matematyczna 1) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzKursPoNazwie(Listy.kursy, \"Analiza Matematyczna 1\"));\n\n System.out.println(\"\\nWyszukiwanie kursów po liczbie ects (5) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoECTS(Listy.kursy, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursów po prowadzacym+\"+Listy.osoby.get(0).getImie()+\" \"+Listy.osoby.get(0).getNazwisko()+\" ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoProwadzacym(Listy.kursy, Listy.osoby.get(0)).forEach(System.out::println);\n\n\n //REALIZACJA PUNKTU 4\n System.out.println(\"=====================================================================================================================\");\n System.out.println(\"REALIZACJA PUNKTU 4\");\n System.out.println(\"=====================================================================================================================\\n\");\n System.out.println(\"Kursy:\\n\");\n for (Kurs kurs : Listy.kursy) {\n System.out.println(kurs.toString());\n }\n\n System.out.println(\"\\nOsoby:\\n\");\n for (Osoba osoba : Listy.osoby) {\n System.out.println(\"OSOBA====================================================================================================\");\n System.out.println(osoba.toString());\n System.out.println();\n }\n }", "public void testAuta()\n\t{\n\t\tNakladak nakl = new Nakladak(Simulator.getCas());\n\t\tnakl.poloha[0] = this.poloha[0];\n\t\tnakl.poloha[1] = this.poloha[1];\n\t\t//cesta po prekladistich\n\t\tfor(int i=4001;i<4009;i++)\n\t\t{\n\t\t\tnakl.cesta.add(i);\n\t\t}\n\t\tnakl.kDispozici = false;\n\t\tnakl.jede = true;\n\t\tsim.addObserver(nakl);\n\t\t\n\t\tthis.vozy.add(nakl);\n\t\t\n\t}", "@Test\n public void testJatka() {\n System.out.println(\"jatka\");\n Peli peli = new Peli(new Alue(3, 1));\n peli.jatka();\n assertEquals(peli.isHavio(), false);\n assertEquals(peli.getMenetykset(), 1);\n\n }", "@Test\r\n\tpublic void testErabiltzaileakBaloratuDituenPelikulenZerrenda() {\n\t\tArrayList<Integer> zer = BalorazioenMatrizea.getBalorazioenMatrizea().erabiltzaileakBaloratuDituenPelikulenZerrenda(e1.getId());\r\n\t\tassertTrue(zer.size() == 3);\r\n\t\tassertTrue(zer.contains(p1.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p2.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p4.getPelikulaId()));\r\n\t\tassertFalse(zer.contains(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().erabiltzaileakBaloratuDituenPelikulenZerrenda(e2.getId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(p2.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p3.getPelikulaId()));\r\n\t\tassertFalse(zer.contains(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().erabiltzaileakBaloratuDituenPelikulenZerrenda(e3.getId());\r\n\t\tassertTrue(zer.size() == 4);\r\n\t\tassertTrue(zer.contains(p1.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p2.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p3.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p4.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().erabiltzaileakBaloratuDituenPelikulenZerrenda(e4.getId());\r\n\t\tassertTrue(zer.size() == 1);\r\n\t\tassertTrue(zer.contains(p2.getPelikulaId()));\r\n\t\tassertFalse(zer.contains(p1.getPelikulaId()));\r\n\t\t\r\n\t}", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }", "private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "@Test\n public void sucheReihen() throws Exception {\n System.out.println(\"sucheReihen\");\n KategorieKey key = null;\n List<Reihe> expResult = null;\n List<Reihe> result = SaalHelper.sucheReihen(key);\n assertEquals(expResult, result);\n \n }", "private static PohonAVL seimbangkanKembaliKanan(PohonAVL p) {\n //...\n // Write your codes in here\n }", "public void testCasillasJugador2( )\n {\n setupEscenario2( );\n int tamanho = casillasJugador2.size( );\n int casilla;\n int i = 0;\n while( i < tamanho )\n {\n casilla = ( ( Integer )casillasJugador2.get( i ) ).intValue( );\n assertEquals( marcaJugador2, triqui.obtenerMarcaCasilla( casilla ) );\n i++;\n }\n }", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "private static void cajas() {\n\t\t\n\t}", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "public void ajaTesti() {\n \n long summa1 = 0;\n long summa2 = 0;\n int laskuri1=0; //test\n int laskuri2=0;\n \n Taytto tulosN = null;\n TayttoDP tulosDP = null;\n \n //rotatoidaan testien suoritusjärjestystä kerran\n int rot = 2;\n for (int i=0;i<rot;i++) {\n //random järjestys\n //Tavara[] ar = shuffleTavarat();\n\n Tavara[] ar = this.tavarat;\n Taytto tayttoN = new Taytto(ar, sakki);\n TayttoDP tayttoDP = new TayttoDP(ar, sakki);\n\n long aikaAlussa = 0;\n long aikaLopussa = 0;\n long aika = 0;\n\n int sisatoisto=this.toistokoe;\n //rotatoidaan testien ajojärjestys\n long sum1=0; \n long sum2=0; \n\n //ignoorataan 10 ensimmäistä tuloksista, lisätään siksi 10 ylimääräistä toistokierrosta\n for (int j=0;j<sisatoisto;j++) {\n\n if (i%2==0) {\n laskuri1++;\n\n // Mittaus naivi-algoritmi\n aikaAlussa = System.nanoTime();\n tayttoN.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n //ignoorataan 10 ensimmäistä tuloksista\n if(j>=0) sum1+=aika;\n\n // Mittaus DP -algoritmi\n aikaAlussa = System.nanoTime();\n tayttoDP.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n if(j>=0) sum2+=aika;\n }\n else {\n laskuri2++; //test\n\n // Mittaus DP -algoritmi\n aikaAlussa = System.nanoTime();\n tayttoDP.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n if(j>=0) sum2+=aika;\n \n // Mittaus naivi-algoritmi\n aikaAlussa = System.nanoTime();\n tayttoN.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n if (j>=0) sum1+=aika;\n }\n\n //Tarkistus, että tulos sama kummallakin algoritmilla\n if (tayttoN.annaMaxArvo()!=tayttoDP.annaMaxArvo()) {\n System.out.println(\"Taytto1: Arvo: \" + tayttoN.annaMaxArvo() + \" , jono :\" + tayttoN.annaMaxJono());\n System.out.println(\"Taytto2: Arvo: \" + tayttoDP.annaMaxArvo() + \" , jono :\" + tayttoDP.annaMaxJono()); \n break;\n }\n \n \n }\n summa1+=sum1/(sisatoisto);\n summa2+=sum2/(sisatoisto);\n \n tulosN=tayttoN;\n tulosDP=tayttoDP;\n \n }\n// System.out.println(laskuri1);\n// System.out.println(laskuri2);\n\n \n long keskiarvo1 = summa1/rot;\n long keskiarvo2 = summa2/rot;\n\n String[] kootN = tulosN.annaMaxJono().split(\" \");\n int kokoN = 0;\n for (int i = 0; i < kootN.length; i++) {\n try {\n kokoN += this.tavarat[Integer.parseInt(kootN[i])-1].annaKoko();\n } catch (NumberFormatException nfe) {};\n } \n \n String[] kootDP = tulosDP.annaMaxJono().split(\" \");\n int kokoDP = 0;\n for (int i = 0; i < kootDP.length; i++) {\n try {\n kokoDP += this.tavarat[Integer.parseInt(kootDP[i])-1].annaKoko();\n } catch (NumberFormatException nfe) {};\n } \n\n System.out.println(this.nimi);\n System.out.println(\"Tavarat: \" + annaTavaroidenKokoJaArvo());\n System.out.println(\"Sakki \" + this.sakki.annaKoko() + \", lkm \" + this.koko + \", toistot \" + toistokoe);\n System.out.println(\"Keskiarvo (ms) Naiivi: \" + keskiarvo1/1000 + \", DP: \" + keskiarvo2/1000);\n System.out.println(\"Tulos Naiivi: maksimiarvo: \" + tulosN.annaMaxArvo() + \" koko: \" + kokoN + \" maksimiarvon toteuttavien travaroiden järjestysnumerot: \"); \n System.out.println(tulosN.annaMaxJono());\n System.out.println(\"Tulos DP: maksimiarvo: \" + tulosDP.annaMaxArvo() + \" koko: \" + kokoDP + \" maksimiarvon toteuttavien travaroiden järjestysnumerot: \");\n System.out.println(tulosDP.annaMaxJono());\n \n }", "public void testCasillasJugador1( )\n {\n setupEscenario1( );\n int tamanho = casillasJugador1.size( );\n int casilla;\n int i = 0;\n while( i < tamanho )\n {\n casilla = ( ( Integer )casillasJugador1.get( i ) ).intValue( );\n assertEquals( marcaJugador1, triqui.obtenerMarcaCasilla( casilla ) );\n i++;\n }\n }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "public static void trazenjeVozila(Iznajmljivac o) {\n\t\tLocalDate pocetniDatum = UtillMethod.unosDatum(\"pocetni\");\n\t\tLocalDate krajnjiDatum = UtillMethod.unosDatum(\"krajnji\");\n\t\tSystem.out.println(\"------------------------------------\");\n\t\tSystem.out.println(\"Provera dostupnosti vozila u toku...\\n\");\n\t\tArrayList<Vozilo> dostupnaVoz = new ArrayList<Vozilo>();\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tif (!postojiLiRezervacija(v, pocetniDatum, krajnjiDatum) && !v.isVozObrisano()) {\n\t\t\t\tSystem.out.println(i + \"-\" + v.getVrstaVozila() + \"-\" + \"Registarski broj\" + \"-\" + v.getRegBR()\n\t\t\t\t\t\t+ \"-Potrosnja na 100km-\" + v.getPotrosnja100() + \"litara\");\n\t\t\t\ti++;\n\t\t\t\tdostupnaVoz.add(v);\n\t\t\t}\n\t\t}\n\t\tif (i > 0) {\n\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\tSystem.out.println(\"Ukucajte kilometrazu koju planirate da predjete:\");\n\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\tint km1 = (int) km;\n\t\t\tporedjenjeVozila d1 = new poredjenjeVozila(km1);\n\t\t\tCollections.sort(dostupnaVoz,d1);\n\t\t\tint e = 0;\n\t\t\tfor(Vozilo v : dostupnaVoz) {\n\t\t\t\tdouble temp = cenaTroskaVoz(v, km, v.getGorivaVozila().get(0));\n\t\t\t\tSystem.out.println(e + \" - \" + v.getVrstaVozila()+ \"-Registarski broj: \"+ v.getRegBR()+\" | \"+ \"Cena na dan:\"+v.getCenaDan() +\" | Broj sedista:\"+ v.getBrSedist()+ \" | Broj vrata:\"+ v.getBrVrata() + \"| Cena troskova puta:\" + temp + \" Dinara\");\n\t\t\t\te++;\n\t\t\t}\n\t\t\tSystem.out.println(\"---------------------------------------\");\n\t\t\tSystem.out.println(\"Unesite redni broj vozila kojeg zelite:\");\n\t\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\t\tif (redniBroj < dostupnaVoz.size()) {\n\t\t\t\tDateTimeFormatter formatters = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\t\t\tString pocetni = pocetniDatum.format(formatters);\n\t\t\t\tString krajnji = krajnjiDatum.format(formatters);\n\t\t\t\tdouble cena = UtillMethod.cenaIznaj(pocetniDatum, krajnjiDatum, dostupnaVoz.get(redniBroj));\n\t\t\t\tRezervacija novaRez = new Rezervacija(dostupnaVoz.get(redniBroj), o, cena, false, pocetni, krajnji);\n\t\t\t\tMain.getRezervacijeAll().add(novaRez);\n\t\t\t\tSystem.out.println(\"Uspesno ste napravili rezervaciju!\");\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t\tSystem.out.println(novaRez);\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Nema dostupnih vozila za rezervaaciju.\");\n\t\t}\n\t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "public void testNamaPNSYangSkepnyaDiterbitkanOlehPresiden(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPNSYangSkepnyaDiterbitkanOlehPresiden(); \n\n\t\tshowData(data,\"nip\",\"nama\",\"tanggal_lahir\",\"tanggal_berhenti\",\"pangkat\",\"masa_kerja\",\"penerbit\");\n\t}", "@Test\r\n\tpublic void testGetErabBalorazioak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 4);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 3);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 3.5);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 2);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 1);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 4);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 5);\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 3.5);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t}", "@Test\n public void nelioMuodostuu() {\n ArrayList lista=this.tetrimino.palautaKuvio();\n assertEquals(lista.size(), 4);\n \n }", "public void klikkaa(Tavarat tavarat, Klikattava klikattava);", "public static void main(String [] agrs){\n\r\n\r\n Kaczka gumowa = new GumowaKaczka();\r\n gumowa.ustawKwakanieInterfejs(2);\r\n gumowa.ustawLatanieInterfejs(new SzybkieLatanie());\r\n gumowa.wyswietl();\r\n System.out.println(gumowa.kwacz());\r\n System.out.println(gumowa.lec());\r\n Kaczka dzika = new DzikaKaczka();\r\n // dzika.ustawLatanieInterfejs(1);\r\n dzika.wyswietl();\r\n System.out.println(dzika.lec());\r\n System.out.println(dzika.kwacz());\r\n\r\n\r\n// Polecenie[] polecenieWlacz;\r\n// Polecenie[] polecanieWylacz;\r\n// Polecenie polecenieWycofaj;\r\n//\r\n// polecanieWylacz = new Polecenie[7];\r\n// polecenieWlacz = new Polecenie[7];\r\n//\r\n// Swiatlo swiatlo = new Swiatlo();\r\n// polecanieWylacz[0] = new PolecenieWylaczSwiatlo(swiatlo);\r\n// polecenieWlacz[0] = new PolecenieWlaczSwiatlo(swiatlo);\r\n//\r\n//\r\n//\r\n//\r\n// polecenieWlacz[0].wykonaj();\r\n// polecanieWylacz[0].wykonaj();\r\n// polecenieWlacz[0].wykonaj();\r\n// polecenieWycofaj = polecanieWylacz[0];\r\n//// polecenieWycofaj = polecenieWlacz[0];\r\n// polecenieWycofaj.wykonaj();\r\n// polecenieWycofaj.wykonaj();\r\n//// polecenieWycofaj.wycofaj();\r\n//\r\n// WiezaStereo wiezaStereo = new WiezaStereo();\r\n//\r\n// polecenieWlacz[1] = new PolecenieWiezaStereoWlaczCD(wiezaStereo);\r\n//\r\n// polecenieWlacz[1].wykonaj();\r\n\r\n\r\n\r\n }", "@Test\n public void tilimaksuKutsuuTilisiirtoaOikeillaParametreilla() {\n when(this.varasto.saldo(1)).thenReturn(10);\n when(this.varasto.haeTuote(1)).thenReturn(new Tuote(1, \"maito\", 5));\n \n this.kauppa.aloitaAsiointi();\n this.kauppa.lisaaKoriin(1);\n this.kauppa.tilimaksu(\"johannes\", \"12345\");\n verify(this.pankki).tilisiirto(eq(\"johannes\"), anyInt(), eq(\"12345\"), anyString(), eq(5));\n \n }", "private String elaboraRitorno() {\n String testo = VUOTA;\n String titoloPaginaMadre = getTitoloPaginaMadre();\n\n if (usaHeadRitorno) {\n if (text.isValid(titoloPaginaMadre)) {\n testo += \"Torna a|\" + titoloPaginaMadre;\n testo = LibWiki.setGraffe(testo);\n }// fine del blocco if\n }// fine del blocco if\n\n return testo;\n }", "@Test\r\n public void testAvlPuu() {\r\n AvlPuu puu = new AvlPuu();\r\n assertEquals(puu.laskeSolmut(), 0);\r\n }", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "@Test\n\tpublic void testCrearSalaDeJuego() {\n\t\tSalaDeJuego sala = new SalaDeJuego(\"sala1\");\n\t\tassertEquals(0, sala.getCantJugadores());\n\t}", "private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }", "public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }", "public void testAltaVehiculo(){\r\n\t}", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public void testFilaSuperiorLlena( )\n {\n setupEscenario2( );\n triqui.limpiarTablero( );\n triqui.marcarCasilla( 1, marcaJugador1 );\n triqui.marcarCasilla( 2, marcaJugador1 );\n triqui.marcarCasilla( 3, marcaJugador1 );\n assertTrue( triqui.filaSuperiorLlena( marcaJugador1 ) );\n assertTrue( triqui.ganoJuego( marcaJugador1 ) );\n }", "public String gjejZinxhirin(String start, String end) throws Exception {\n\t\tif (start.length() != end.length())\n\t\t\tthrow new RuntimeException(\"fjalet duhet te jene te te njejtes gjatesi\");\n\n\t\t// nese fjala e pare dhe fjala destinuese jane te njejta nuk ka nevoj per kerkim\n\t\tif (start.equals(end))\n\t\t\treturn start;\n\n\t\t// lexojm dhe i shtojm fjalet nga skedari ku gjinden te gjitha fjalet\n\t\tlexoFjaletNeKeteGjatesi(start.length());\n\n\t\t/*\n\t\t * Kontrollojm se a e ekziston ajo fjale ne fjalor qe te mos behet kerkimi per\n\t\t * dicka qe nuk ekziston\n\t\t */\n\t\tif (!fjalet.contains(start)) {\n\t\t\tthrow new Exception(\"Kjo fjale nuk ekziston ne fjalor\");\n\t\t}\n\t\tif (!fjalet.contains(end)) {\n\t\t\tthrow new Exception(\"Kjo fjale nuk ekziston ne fjalor\");\n\t\t}\n\n\t\t// riinicializojm kandidatet e ri dhe fjalet e shtuara\n\t\tkandidatet = new LinkedList<>();\n\t\tshtuar = new HashMap<>();\n\t\tnumerimi = 0;\n\n\t\tkandidatet.add(start);\n\t\tshtuar.put(start, null);\n\n\t\t/*\n\t\t * fillojm kerkimin e fjaleve por i vendosim nje limit deri 15000 fjale, qe te\n\t\t * mos mbetet programi duke kerkuar pafundesisht\n\t\t */\n\t\twhile (kandidatet.size() > 0) {\n\t\t\tif (numerimi++ > 15000)\n\t\t\t\tthrow new RuntimeException(\"exceeded search limit\");\n\n\t\t\tString c = (String) kandidatet.remove(0);\n\n\t\t\tIterator<String> iter = fjalet.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tString w = (String) iter.next();\n\t\t\t\tif (!shtuar.containsKey(w) && adjacent(c, w)) {\n\t\t\t\t\tshtuar.put(w, c);\n\n\t\t\t\t\tif (end.equals(w)) {\n\t\t\t\t\t\treturn rregulloParaqitjenEZinxhirit(w);\n\t\t\t\t\t}\n\n\t\t\t\t\tkandidatet.add(w);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn null;\n\t}", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "public static void dodavanjePutnickogVozila() {\n\t\tString vrstaVozila = \"Putnicko Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja100 = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 10000;\n\t\tdouble cenaServisa = 8000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedist = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tPutnickoVozilo vozilo = new PutnickoVozilo(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja100, predjeno,\n\t\t\t\tpreServisa, cenaServisa, cenaDan, brSedist, brVrata, vozObrisano, servisiNadVozilom);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"---------------------------------------\");\n\t}", "public void trykkPaa() throws TrykketPaaBombe {\n // Ingenting skal skje dersom en av disse er true;\n if (brettTapt || trykketPaa || flagget) {\n return;\n }\n\n // Om ruten er en bombe taper man brettet\n if (bombe) {\n trykketPaa = true;\n setText(\"x\");\n setBackground(new Background(new BackgroundFill(Color.RED, CornerRadii.EMPTY, Insets.EMPTY)));\n throw new TrykketPaaBombe();\n }\n // Om ruten har null naboer skal et stoerre omraade aapnes\n else if (bombeNaboer == 0) {\n Lenkeliste<Rute> besokt = new Lenkeliste<Rute>();\n Lenkeliste<Rute> aapneDisse = new Lenkeliste<Rute>();\n aapneDisse.leggTil(this);\n // Rekursiv metode som fyller aapneDisse med riktige ruter\n finnAapentOmraade(besokt, aapneDisse);\n for (Rute r : aapneDisse) {\n r.aapne();\n }\n } else {\n aapne();\n }\n }", "public void test1(){\r\n\t\tZug zug1 = st.zugErstellen(3, 2, \"Zug 1\");\r\n\t\tst.blockFahren();\r\n\t\tst.blockFahren();\r\n\t\tZug zug2 = st.zugErstellen(2, 3, \"Zug 2\");\r\n\t\tg.textAusgeben(\"Position Zug1: \"+zug1.getPosition()+\"\\n\"+\"Position Zug2: \"+zug2.getPosition());\r\n\t\tst.fahren();\r\n\t}", "public void test_ninjutsu()\n {\n if(this.strength>10) \n System.out.println(\"test ninjustsu reussi!\");\n\n else System.out.println(\"test ninjustsu perdu!\");;\n }", "@Test\n public void testBuscarJugador() {\n ArrayList<Jugador> jugadores;\n jugadores = new ArrayList<>();\n System.out.println(\"Prueba 5\");\n Jugador ju = new Jugador(\"005\", \"Sebas\", 0, 0);\n jugadores.add(ju);\n int encontrado= util.buscarJugador(\"005\", jugadores);\n assertEquals(0, encontrado);\n }", "public void testNamaPnsYangPensiunTahunIni(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPnsYangPensiunTahunIni(); \n\n\t\tshowData_YangpensiunTahunini(data,\"nip\",\"nama\",\"tmtpensiun\");\n\t}", "@Test\n public void testSetSiirSuunta() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n try {\n k.setSiirSuunta(-1);\n } catch (Exception e) {\n assertTrue(\"Sirtymissuunnan muutos aiheuttaa virheen\", true);\n }\n }", "public void ucitajPotez(Potez potez) {\n\t\tint red = potez.vratiRed();\n\t\tint kolona = potez.vratiKolonu();\n\t\ttabla[red][kolona] = potez.vratiRezultat();\n\n\t\tif (potez.vratiRezultat() == Polje1.potopljen) {\n\t\t\tint gornjiRed, gornjaKolona;\n\t\t\tboolean cont1 = false;\n\t\t\tboolean cont2 = false;\n\t\t\tboolean redar = false;\n\t\t\tboolean kolonar = false;\n\t\t\twhile (redar == false) {\n\t\t\t\tif (red == 0) {\n\t\t\t\t\tgornjiRed = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjiRed = red - 1;\n\t\t\t\t}\n\t\t\t\tif (red == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\tred--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjiRed++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen || tabla[gornjiRed][kolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\t\tred++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tredar = true;\n\t\t\t}\n\t\t\tcont1 = false;\n\t\t\tcont2 = false;\n\t\t\tred = potez.vratiRed();\n\t\t\twhile (kolonar == false) {\n\t\t\t\tif (kolona == 0) {\n\t\t\t\t\tgornjaKolona = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjaKolona = kolona - 1;\n\t\t\t\t}\n\t\t\t\tif (kolona == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\tkolona--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjaKolona++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen || tabla[red][gornjaKolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\t\tkolona++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tkolonar = true;\n\n\t\t\t}\n\n\t\t}\n\n\n\t}", "public void testFilaMediaLlena( )\n {\n setupEscenario3( );\n triqui.limpiarTablero( );\n triqui.marcarCasilla( 4, marcaJugador1 );\n triqui.marcarCasilla( 5, marcaJugador1 );\n triqui.marcarCasilla( 6, marcaJugador1 );\n assertTrue( triqui.filaMediaLlena( marcaJugador1 ) );\n assertTrue( triqui.ganoJuego( marcaJugador1 ) );\n }", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "public boolean testSouvislostiAStupneVrcholu(){\n\t\t\n\t\tif(!souvislost()){\n\t\t\tvys = \"Graf neni souvisly a proto nemuze byt ani Eulerovsky.\";\n\t\t\treturn false;\n\t\t}\n\t\tif(!muzeBytEuler()){\n\t\t\tvys = \"Stupne vrcholu nejsou bud sude nebo nebo si neodpovida jejich vstupni a vystupni stupen.\";\n\t\t\treturn false;\n\t\t}\n\t\tif(muzeBytEuler() && souvislost()){\n\t\t\tvys =\"Graf je souvisly a zaroven vsechny stupne jsou sude nebo jejich vstupni a vystupni stupen je roven.\";\n\t\t\treturn true;\n\t\t}\n\t\treturn true;\n\t}", "public void naplnVrcholy() {\r\n System.out.println(\"Zadajte pocet vrcholov: \");\r\n pocetVrcholov = skener.nextInt();\r\n for (int i=0; i < pocetVrcholov; i++) {\r\n nekonecno = (int)(Double.POSITIVE_INFINITY);\r\n if(i==0) { //pre prvy vrchol potrebujeme nastavit vzdialenost 0 \r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu, 0, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n } else { //ostatne budu mat nekonecno alebo v tomto pripade 9999 (lebo tuto hodnotu v mensich grafoch nepresiahnem)\r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu,nekonecno, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n }\r\n }\r\n }", "public boolean jeu() {\n int k;\n\n String compJoueur = \"\";\n String compOrdi = \"\";\n String reponse;\n\n boolean victoireJoueur = false;\n boolean victoireOrdi = false;\n String mystJoueur = challenger.nbMystere(); /**nb que le joueur doit trouver*/\n String mystOrdi = defenseur.nbMystere(); /**nb que l'ordinateur doit trouver*/\n String propOrdi = defenseur.proposition(); /**ordinateur genere un code aleatoire en premiere proposition*/\n log.info(\"Proposition ordinateur : \" + propOrdi); /**afficher proposition ordinateur*/\n String propJoueur = \"\";\n String goodResult = MethodesRepetitives.bonResultat();\n\n\n for (k = 1; !victoireJoueur && !victoireOrdi && k <= nbEssais; k++) { /**si ni le joueur ou l'ordinateur n'ont gagne et si le nombre d'essais n'est pas atteind, relancer*/\n\n compOrdi = MethodesRepetitives.compare(mystOrdi, propOrdi); /**lancer la methode de comparaison du niveau defenseur*/\n log.info(\"Reponse Ordinateur :\" + compOrdi); /**afficher la comparaison*/\n propJoueur = challenger.proposition(); /**demander une saisie au joueur selon le mode challenger*/\n compJoueur = MethodesRepetitives.compare(mystJoueur, propJoueur); /**comparer selon le mode challenger*/\n log.info(\"Reponse Joueur :\" + compJoueur); /**afficher la comparaison*/\n\n if (compOrdi.equals(goodResult)) { /**si l'ordinateur a gagne, changement de la valeur victoireOrdi*/\n victoireOrdi = true;\n }else if(compJoueur.equals(goodResult)) {/**si le joueur a gagne changement de la valeur victoireJoeur*/\n victoireJoueur = true;\n } else if (k < nbEssais) { /**sinon redemander un code a l'ordinateur selon les symboles de comparaison*/\n propOrdi = defenseur.ajuste(propOrdi, compOrdi);\n log.info(\"Proposition Ordinateur :\" + propOrdi);\n }\n }\n\n if (victoireOrdi || !victoireJoueur)/**si l'ordinateur ou le joueur perdent alors perdu sinon gagne*/\n victoireJoueur = false;\n else\n victoireJoueur = true;\n\n return victoireJoueur;\n\n\n }", "@Test\n public void sucheSaeleBezT() throws Exception {\n System.out.println(\"sucheSaele nach Bezeichnung\");\n bezeichnung = \"Halle 1\";\n typ = \"\";\n plaetzeMin = null;\n ort = null;\n SaalDAO dao=DAOFactory.getSaalDAO();\n query = \"bezeichnung like '%\" + bezeichnung + \"%' \";\n explist = dao.find(query);\n System.out.println(query);\n List<Saal> result = SaalHelper.sucheSaele(bezeichnung, typ, plaetzeMin, ort);\n assertEquals(explist, result);\n \n }", "void tampilKarakterA();", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "@Test\r\n public void testSamaPuu() {\r\n AvlPuu puu = new AvlPuu();\r\n Noodi noodi = new Noodi(0,0);\r\n noodi.setMatkaJaljella(10);\r\n noodi.setTehtyMatka(0);\r\n PuuSolmu solmu = new PuuSolmu(noodi);\r\n puu.insert(noodi);\r\n Noodi noodi2 = new Noodi(1,0);\r\n noodi2.setMatkaJaljella(9);\r\n noodi2.setTehtyMatka(noodi);\r\n PuuSolmu solmu2 = new PuuSolmu(noodi2);\r\n puu.insert(noodi2);\r\n \r\n AvlPuu puu2 = new AvlPuu();\r\n puu2.insert(noodi);\r\n puu2.insert(noodi2);\r\n assertTrue(puu.SamaPuu(puu2));\r\n\r\n }", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "@Test\n public void z_topDown_TC03() {\n try {\n Intrebare intrebare = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"M\");\n Intrebare intrebare1 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"A\");\n Intrebare intrebare2 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"B\");\n Intrebare intrebare3 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"C\");\n assertTrue(true);\n assertTrue(appService.exists(intrebare));\n assertTrue(appService.exists(intrebare1));\n assertTrue(appService.exists(intrebare2));\n assertTrue(appService.exists(intrebare3));\n\n try {\n ccir2082MV.evaluator.model.Test test = appService.createNewTest();\n assertTrue(test.getIntrebari().contains(intrebare));\n assertTrue(test.getIntrebari().contains(intrebare1));\n assertTrue(test.getIntrebari().contains(intrebare2));\n assertTrue(test.getIntrebari().contains(intrebare3));\n assertTrue(test.getIntrebari().size() == 5);\n } catch (NotAbleToCreateTestException e) {\n assertTrue(false);\n }\n\n Statistica statistica = appService.getStatistica();\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"Literatura\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"Literatura\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"M\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"M\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"A\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"A\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"B\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"B\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"C\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"C\")==1);\n\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n } catch (NotAbleToCreateStatisticsException e) {\n assertTrue(false);\n }\n }", "@Test\r\n public void testGetPracownik() {\r\n System.out.println(\"getPracownik\");\r\n Faktura instance = new Faktura();\r\n Pracownik expResult = null;\r\n Pracownik result = instance.getPracownik();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Unesite tezinu(u gramima) prvog pakovanja: \");\r\n\t\tdouble gram1=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite cijenu prvog pakovanja: \");\r\n\t\tdouble km1=provjera();\r\n\r\n\t\tSystem.out.println(\"Unesite tezinu(u gramima) drugog pakovanja: \");\r\n\t\tdouble gram2=provjera();\r\n\r\n\t\tSystem.out.println(\"Unesite cijenu drugog pakovanja: \");\r\n\t\tdouble km2=provjera();\r\n\t\t\r\n\t\t\r\n\t\t//na kraju ih uporedimo i onaj sa manjom ukupnom cijenom je jeftiniji tj povoljniji\r\n\t\tif((km1/gram1)<(km2/gram2)){\r\n\t\t\tSystem.out.println(\"Prvo pakovanje je povoljnije!!!\");\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Drugo pakovanje je povoljnije!!!\");\r\n\t\t}\r\n\t\t\r\n\t\tunos.close();\r\n\t}", "public void ZbierzTowaryKlas() {\n\t\tSystem.out.println(\"ZbierzTowaryKlas\");\n\t\tfor(int i=0;i<Plansza.getTowarNaPlanszy().size();i++) {\n\t\t\tfor(Towar towar : Plansza.getTowarNaPlanszy()) {\n\t\t\t\t\n\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getNiewolnikNaPLanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getNiewolnikNaPLanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t//Szansa Niewolnika na zdobycie dwoch razy wiecej towarow\n\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getNiewolnicySzansa()) {\n\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikTowarow(Plansza.getNiewolnikNaPLanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getRzemieslnikNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getRzemieslnikNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikTowarow(Plansza.getRzemieslnikNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getArystokrataNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getArystokrataNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikTowarow(Plansza.getArystokrataNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void asetaTeksti(){\n }", "@Test\n public void testPartieContinue(){\n Joueur NORD = new Joueur(\"NORD\");\n Joueur SUD = new Joueur(\"SUD\");\n assertTrue(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n // avec des bases injouables\n NORD.setAscendant(61);\n NORD.setDescendant(0);\n SUD.setAscendant(61);\n SUD.setDescendant(0);\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0, false));\n // avec un jeu vide\n NORD.jeu.clear();\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0, false));\n\n SUD.jeu.clear();\n NORD.jeu.add(0,59);\n NORD.jeu.add(1,58);\n NORD.setAscendant(57);\n NORD.setDescendant(2);\n SUD.setAscendant(1);\n SUD.setDescendant(60);\n assertTrue(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n NORD.setAscendant(58);\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n //cas spécifique\n NORD.setAscendant(49);\n NORD.setDescendant(2);\n SUD.setAscendant(53);\n SUD.setDescendant(9);\n SUD.jeu.add(0,34);\n SUD.jeu.add(1,44);\n SUD.jeu.add(2,38);\n SUD.jeu.add(3,6);\n SUD.jeu.add(4,41);\n SUD.jeu.add(5,39);\n assertTrue(Regles.partieContinue(SUD.clone(), NORD.clone(), 0, false));\n\n\n }", "public static void dodavanjeTeretnogVozila() {\n\t\tString vrstaVozila = \"Teretno Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 20000;\n\t\tdouble cenaServisa = 10000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedista = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tSystem.out.println(\"Unesite maximalnu masu koje vozilo moze da prenosi u KG !!\");\n\t\tint maxMasauKg = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite maximalnu visinu u m:\");\n\t\tdouble visinauM = UtillMethod.unesiteBroj();\n\t\tTeretnaVozila vozilo = new TeretnaVozila(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja, predjeno, preServisa,\n\t\t\t\tcenaServisa, cenaDan, brSedista, brVrata, vozObrisano, servisiNadVozilom, maxMasauKg, visinauM);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"--------------------------------------\");\n\t}", "public void urciStupneVrcholu(){\n\t\tfor(int i = 0;i < vrchP.length; i++){\n\t\t\tstupenVrcholu(vrchP[i].klic);\n\t\t}\n\t}", "@Test\n public void testGetKysyttavaSana() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n String joo = k.asetaKysymys(a, true, 1);\n assertEquals(\"SgetKysyttäva sana ei toimi odotetusti\", \"sana\", joo);\n }", "public void testTumPencereleriKapat() {\n System.out.println(\"tumPencereleriKapat\");\n Yakalayici instance = new Yakalayici();\n instance.tumPencereleriKapat();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }", "public void testFilaInferiorLlena( )\n {\n setupEscenario1( );\n triqui.limpiarTablero( );\n triqui.marcarCasilla( 7, marcaJugador1 );\n triqui.marcarCasilla( 8, marcaJugador1 );\n triqui.marcarCasilla( 9, marcaJugador1 );\n assertTrue( triqui.filaInferiorLlena( marcaJugador1 ) );\n assertTrue( triqui.ganoJuego( marcaJugador1 ) );\n }" ]
[ "0.71598566", "0.6886276", "0.6782096", "0.6778397", "0.6777126", "0.67548805", "0.6736905", "0.6677576", "0.6676154", "0.6630031", "0.6583113", "0.65669405", "0.65355563", "0.6526381", "0.65061975", "0.65049285", "0.6498125", "0.6493297", "0.64838856", "0.64721364", "0.6470894", "0.645423", "0.64449435", "0.64207816", "0.6410951", "0.64044017", "0.6403347", "0.6392533", "0.6380701", "0.63776237", "0.6373709", "0.6371596", "0.6336288", "0.63289076", "0.6324796", "0.6315898", "0.63080275", "0.6299041", "0.6292495", "0.6286418", "0.6285954", "0.62758327", "0.6259519", "0.62589663", "0.6257479", "0.62541807", "0.6252513", "0.6248639", "0.6239461", "0.6235125", "0.6229562", "0.62178445", "0.62150836", "0.6189559", "0.618871", "0.6185963", "0.6184374", "0.61765593", "0.6168637", "0.61665964", "0.61475205", "0.61341655", "0.6129134", "0.6119165", "0.6118893", "0.6118737", "0.6116912", "0.6112874", "0.61107165", "0.6102656", "0.6096109", "0.6093985", "0.60934716", "0.6092032", "0.608845", "0.60864764", "0.60861534", "0.60813576", "0.60799456", "0.6077165", "0.607702", "0.6073694", "0.6071222", "0.60710543", "0.6065358", "0.6062767", "0.6059622", "0.6057361", "0.60529524", "0.6046973", "0.6046646", "0.6035659", "0.60318935", "0.6031184", "0.6017684", "0.60093844", "0.6008931", "0.6007092", "0.5994902", "0.5994107", "0.5993222" ]
0.0
-1
/ metoda koja testira da li se dva kruga ukrstaju
public boolean overlaps(Circle2D circle){ boolean overlaps = false; //odredjivanje koliko je centar drugog kruga udaljena od centra prvog kruga, pomocu pitagorine teoreme double udaljenost = Math.sqrt(Math.pow((this.x - circle.getX()), 2) + Math.pow((this.y - circle.getY()), 2)); if(udaljenost < this.radius + circle.radius){ overlaps = true; } return overlaps; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "@Test\n public void testAvaaRuutu() {\n int x = 0;\n int y = 0;\n Peli pjeli = new Peli(new Alue(3, 0));\n pjeli.avaaRuutu(x, y);\n ArrayList[] lista = pjeli.getAlue().getRuudukko();\n ArrayList<Ruutu> ruudut = lista[0];\n assertEquals(true, ruudut.get(0).isAvattu());\n assertEquals(false, pjeli.isLahetetty());\n }", "@Test\n public void testLukitseRuutu() {\n System.out.println(\"lukitseRuutu\");\n int x = 0;\n int y = 0;\n Peli peli = new Peli(new Alue(3, 1));\n peli.lukitseRuutu(x, y);\n ArrayList[] lista = peli.getAlue().getRuudukko();\n ArrayList<Ruutu> ruudut = lista[0];\n assertEquals(true, ruudut.get(0).isLukittu());\n }", "@Test\r\n public void elCerdoNoSePuedeAtender() {\n }", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "@Test\n public void testKatsokoko() {\n \n assertEquals(50, testi.ruudunkoko);\n }", "@Test\n public void testExistenceTestuJedneOsoby() {\n osBeznyMuz = new Osoba(120, 150, Barva.MODRA);\n testJedneOsoby(osBeznyMuz, 120, 150, 70, 140, Barva.MODRA);\n }", "@Test\n public void yksiVasemmalle() {\n char[][] kartta = Labyrintti.lueLabyrintti(\"src/main/resources/labyrinttiTestiVasen.txt\");\n assertFalse(kartta == null);\n Labyrintti labyrintti = new Labyrintti(kartta);\n RatkaisuLeveyshaulla ratkaisuSyvyyshaulla = new RatkaisuLeveyshaulla(labyrintti);\n String ratkaisu = ratkaisuSyvyyshaulla.ratkaisu();\n assertTrue(Tarkistaja.tarkista(ratkaisu, labyrintti));\n }", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "@Test\n public void konstruktoriAsettaaSateenOikein() {\n assertEquals(3.0, lierio.getSade(), 1);\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "public void asetaTeksti(){\n }", "@Test\n\tpublic void testGehituErabiltzaile() {\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\t\t\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tassertEquals(1, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Mikel\", \"123456\",\"123456\");\n\t\tassertEquals(2,ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tassertEquals(2, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t}", "public void test5(){\r\n\t\tZug zug1 = st.zugErstellen(1, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(0, 3, \"Zug 2\"); \r\n\t}", "@Test\n public void kaasunKonstruktoriToimiiOikeinTest() {\n assertEquals(rikkihappo.toString(),\"Rikkihappo Moolimassa: 0.098079\\n tiheys: 1800.0\\n lämpötila: 298.15\\n diffuusiotilavuus: 50.17\\npitoisuus: 1.0E12\");\n }", "public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}", "@Test\n public void testAlunPainotus() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n String kysymys = k.alunPainotus(true);\n\n\n assertEquals(\"AlunPainoitus ei toimi\", \"sana\", kysymys);\n }", "private static void cajas() {\n\t\t\n\t}", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public void testTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(); \n\n\t\tshowData_skpp(data,\"penerbit\",\"jumlah_surat\");\n\t}", "@Test\n\tpublic void ricercaSinteticaClassificatoreGSAFigli() {\n\n\t}", "@Test\n public void testGetVastaus() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n String vastaus = k.getVastaus();\n assertEquals(\"getVastaus ei toimi odoitetusti\", \"vastine\", vastaus);\n }", "public void test2(){\r\n\t\tZug zug1 = st.zugErstellen(2, 2, \"Zug 1\");\r\n\t\tst.fahren();\r\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "public abstract String dohvatiKontakt();", "public void testAltaVehiculo(){\r\n\t}", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "@Test\n public void testTarkistaVastaus() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n\n\n assertEquals(\"Sanan tarkastus ei toimi\", true, k.tarkistaVastaus(\"vastine\"));\n }", "@Test\r\n public void testGetOrigen() {\r\n String expResult = \"origenprueba\";\r\n articuloPrueba.setOrigen(expResult);\r\n String result = articuloPrueba.getOrigen();\r\n assertEquals(expResult, result);\r\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tclass Ulamek{\r\n\t\t\tprivate int licznik, mianownik;\r\n\r\n\t\t\tpublic void ustawLicznik (int l){\r\n\t\t\t\tlicznik=l;\r\n\t\t\t}\r\n\t\t\tpublic void ustawMianownik (int m){\r\n\t\t\t\tmianownik=m;\r\n\t\t\t}\r\n\t\t\tpublic void ustawUlamek (int u1, int u2){\r\n\t\t\t\tlicznik=u1;\r\n\t\t\t\tmianownik=u2;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void wyswietl (){\r\n\t\t\t\t\r\n\t\t\t\tint przod, reszta, przod_dlugosc, mianownik_dlugosc, licznik_dlugosc;\r\n\t\t\t\tString przod_zamiana, mianownik_string, licznik_string;\r\n\t\t\t\tdouble wynik;\r\n\t\t\t\t\r\n\t\t\t\tif (mianownik!=0 && licznik !=0){\r\n\t\t\t\tprzod=licznik/mianownik;\r\n\t\t\t\treszta=licznik-(przod*mianownik);\r\n\t\t\t\tprzod_zamiana=\"\"+przod;\r\n\t\t\t\tprzod_dlugosc=przod_zamiana.length();\r\n\t\t\t\twynik=1.0*licznik/mianownik;\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t licznik++;\r\n\t\t\t\t\t}while (licznik!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(reszta);\r\n\t\t\t}\r\n\r\n\t\t\t\t//zamiana na stringa i liczenie\r\n\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//brak calości\r\n\t\t\t\tif(przod==0){\r\n\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\tif(przod!=0){\r\n\t\t\t\tSystem.out.print(\" \"+przod+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik2 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik2++;\r\n\t\t\t\t\t\r\n\t\t\t\t}while (licznik2!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t System.out.println();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t//jezeli blad \r\n\t\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\tlicznik_string=\"\"+licznik;\r\n\t\t\t\t\tlicznik_dlugosc=licznik_string.length();\r\n\t\t\t\t\tif(licznik_dlugosc>mianownik_dlugosc){\r\n\t\t\t\t\t\tmianownik_dlugosc=licznik_dlugosc;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//gora\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t//if(licznik==0){\r\n\t\t\t\t\t//System.out.print(\" \");\r\n\t\t\t\t\t//}\r\n\r\n\t\t\t\t\tSystem.out.println(licznik);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//srodek\r\n\t\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\tint licznik3 = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t licznik3++;\r\n\t\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t\t System.out.print(\" = \"+\"ERR\");\r\n\r\n\t\t\t\t System.out.println();\r\n\t\t\t\t\t\r\n\t\t\t\t //dol\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t\t\t System.out.println();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t Ulamek u1=new Ulamek();\r\n\t\t Ulamek u2=new Ulamek();\r\n\r\n\t\t u1.ustawLicznik(3);\r\n\t\t u1.ustawMianownik(5);\r\n\r\n\t\t u2.ustawLicznik(142);\r\n\t\t u2.ustawMianownik(8);\r\n\r\n\t\t u1.wyswietl();\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\t \r\n\t\t u2.wyswietl();\r\n\r\n\r\n\r\n\r\n\t\t u2.ustawUlamek(100,0);\r\n\r\n\r\n\t\t u2.wyswietl();\r\n\r\n\t}", "public void urciStupneVrcholu(){\n\t\tfor(int i = 0;i < vrchP.length; i++){\n\t\t\tstupenVrcholu(vrchP[i].klic);\n\t\t}\n\t}", "@Test\n public void testPrestarEjemplar() {\n System.out.println(\"prestarEjemplar\");\n Ejemplar ejemplar = new EjemplaresList().getEjemplares().get(1);\n Usuario usuario = new UsuariosList().getUsuarios().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Ejemplar result = instance.prestarEjemplar(ejemplar, usuario);\n Ejemplar expResult = ejemplar;\n expResult.setUsuarioId(usuario);\n \n assertEquals(expResult, result);\n\n }", "@Test\r\n\tpublic void testPelikulaBaloratuDutenErabiltzaileenZerrenda() {\n\t\tArrayList<Integer> zer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p1.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(e1.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertFalse(zer.contains(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p2.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 4);\r\n\t\tassertTrue(zer.contains(e1.getId()));\r\n\t\tassertTrue(zer.contains(e2.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertTrue(zer.contains(e4.getId()));\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p3.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(e2.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertFalse(zer.contains(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p4.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(e1.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertFalse(zer.contains(e4.getId()));\r\n\t\t\r\n\t}", "@Test\n public void testGetOikein1() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n k.tarkistaVastaus(\"vastine\");\n k.tarkistaVastaus(\"trololololoo\");\n int virheita = k.getOikein();\n// System.out.println(virheita);\n\n assertEquals(\"Oikein menneiden sanojen tarkastukset ei laske virheitä oikein\", 1, virheita);\n }", "@Test\r\n public void testSamaPuu() {\r\n AvlPuu puu = new AvlPuu();\r\n Noodi noodi = new Noodi(0,0);\r\n noodi.setMatkaJaljella(10);\r\n noodi.setTehtyMatka(0);\r\n PuuSolmu solmu = new PuuSolmu(noodi);\r\n puu.insert(noodi);\r\n Noodi noodi2 = new Noodi(1,0);\r\n noodi2.setMatkaJaljella(9);\r\n noodi2.setTehtyMatka(noodi);\r\n PuuSolmu solmu2 = new PuuSolmu(noodi2);\r\n puu.insert(noodi2);\r\n \r\n AvlPuu puu2 = new AvlPuu();\r\n puu2.insert(noodi);\r\n puu2.insert(noodi2);\r\n assertTrue(puu.SamaPuu(puu2));\r\n\r\n }", "@Test\r\n\tpublic void testGetPeliBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == -2.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.75);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 1.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// p1 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"-1,6398\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",1491\"));\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",4472\"));\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"1,0435\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "@Test\n public void testLisaa33() { // Oluet: 33\n Oluet oluet = new Oluet(); \n Olut karjala1 = new Olut(), karjala2 = new Olut(); \n assertEquals(\"From: Oluet line: 36\", 0, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 37\", 1, oluet.getLkm()); \n oluet.lisaa(karjala2); assertEquals(\"From: Oluet line: 38\", 2, oluet.getLkm()); \n assertEquals(\"From: Oluet line: 39\", 2, oluet.getAlkiot()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 40\", 3, oluet.getLkm()); \n assertEquals(\"From: Oluet line: 41\", 4, oluet.getAlkiot()); \n assertEquals(\"From: Oluet line: 42\", karjala1, oluet.tuoOlut(0)); \n assertEquals(\"From: Oluet line: 43\", karjala2, oluet.tuoOlut(1)); \n assertEquals(\"From: Oluet line: 44\", karjala1, oluet.tuoOlut(2)); \n assertEquals(\"From: Oluet line: 45\", false, oluet.tuoOlut(1) == karjala1); \n assertEquals(\"From: Oluet line: 46\", true, oluet.tuoOlut(1) == karjala2); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 47\", 4, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 48\", 5, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 49\", 6, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 50\", 7, oluet.getLkm()); \n }", "public void testAuta()\n\t{\n\t\tNakladak nakl = new Nakladak(Simulator.getCas());\n\t\tnakl.poloha[0] = this.poloha[0];\n\t\tnakl.poloha[1] = this.poloha[1];\n\t\t//cesta po prekladistich\n\t\tfor(int i=4001;i<4009;i++)\n\t\t{\n\t\t\tnakl.cesta.add(i);\n\t\t}\n\t\tnakl.kDispozici = false;\n\t\tnakl.jede = true;\n\t\tsim.addObserver(nakl);\n\t\t\n\t\tthis.vozy.add(nakl);\n\t\t\n\t}", "public void testNamaPnsYangPensiunTahunIni(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPnsYangPensiunTahunIni(); \n\n\t\tshowData_YangpensiunTahunini(data,\"nip\",\"nama\",\"tmtpensiun\");\n\t}", "@Test\r\n public void testAvlPuu() {\r\n AvlPuu puu = new AvlPuu();\r\n assertEquals(puu.laskeSolmut(), 0);\r\n }", "@Test\r\n\tpublic void testGetPeliBalorazioak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 4);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.5);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 3);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 2);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 3.5);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 4);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 5);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\r\n\t}", "@Test\r\n\tpublic void testGetErabBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == -0.5);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == -2.75);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 0.75);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 1.75);\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// e1 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(df.format(bek.getBalioa(p1.getPelikulaId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p2.getPelikulaId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 1);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == -1);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(p1.getPelikulaId())).equals(\"-1,6398\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p2.getPelikulaId())).equals(\",1491\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p3.getPelikulaId())).equals(\",4472\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p4.getPelikulaId())).equals(\"1,0435\"));\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "@Test\r\n public void testSetPracownik() {\r\n System.out.println(\"setPracownik\");\r\n Pracownik pracownik = null;\r\n Faktura instance = new Faktura();\r\n instance.setPracownik(pracownik);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public void testNamaPNSYangSkepnyaDiterbitkanOlehPresiden(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPNSYangSkepnyaDiterbitkanOlehPresiden(); \n\n\t\tshowData(data,\"nip\",\"nama\",\"tanggal_lahir\",\"tanggal_berhenti\",\"pangkat\",\"masa_kerja\",\"penerbit\");\n\t}", "@Test\r\n\tpublic void testErabiltzaileakBaloratuDituenPelikulenZerrenda() {\n\t\tArrayList<Integer> zer = BalorazioenMatrizea.getBalorazioenMatrizea().erabiltzaileakBaloratuDituenPelikulenZerrenda(e1.getId());\r\n\t\tassertTrue(zer.size() == 3);\r\n\t\tassertTrue(zer.contains(p1.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p2.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p4.getPelikulaId()));\r\n\t\tassertFalse(zer.contains(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().erabiltzaileakBaloratuDituenPelikulenZerrenda(e2.getId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(p2.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p3.getPelikulaId()));\r\n\t\tassertFalse(zer.contains(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().erabiltzaileakBaloratuDituenPelikulenZerrenda(e3.getId());\r\n\t\tassertTrue(zer.size() == 4);\r\n\t\tassertTrue(zer.contains(p1.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p2.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p3.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p4.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().erabiltzaileakBaloratuDituenPelikulenZerrenda(e4.getId());\r\n\t\tassertTrue(zer.size() == 1);\r\n\t\tassertTrue(zer.contains(p2.getPelikulaId()));\r\n\t\tassertFalse(zer.contains(p1.getPelikulaId()));\r\n\t\t\r\n\t}", "@Test\n public void sucheReihen() throws Exception {\n System.out.println(\"sucheReihen\");\n KategorieKey key = null;\n List<Reihe> expResult = null;\n List<Reihe> result = SaalHelper.sucheReihen(key);\n assertEquals(expResult, result);\n \n }", "@Test\n public void testGetVaarin() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n k.tarkistaVastaus(\"vaarav vastaus\");\n k.tarkistaVastaus(\"trololololoo\");\n int virheita = k.getVaarin();\n\n assertEquals(\"Väärin menneiden tarkistusten lasku ei toimi\", 2, virheita);\n }", "@Test\n\tpublic void testKargatuGorde() throws IOException {\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\n\t\tassertEquals(0, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gorde();\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\n\t\tErabiltzaileLista.getErabiltzaileLista().kargatu();\n\t\tassertEquals(0, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\t//Erabiltzaile bat gordeta\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tErabiltzaileLista.getErabiltzaileLista().gorde();\n\t\tassertEquals(1, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\n\t\tErabiltzaileLista.getErabiltzaileLista().kargatu();\n\t\tassertEquals(1, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tassertNotNull( ErabiltzaileLista.getErabiltzaileLista().bilatuErabiltzaile(\"Martin\", \"123456\"));\n\t\t//Erabiltzaile asko gordeta\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Mikel\", \"123456\",\"123456\");\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Edgar\", \"123456\",\"123456\");\n\t\tassertEquals(3, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gorde();\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\n\t\tErabiltzaileLista.getErabiltzaileLista().kargatu();\n\t\tassertEquals(3, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tassertNotNull( ErabiltzaileLista.getErabiltzaileLista().bilatuErabiltzaile(\"Martin\", \"123456\"));\n\t\tassertNotNull( ErabiltzaileLista.getErabiltzaileLista().bilatuErabiltzaile(\"Mikel\", \"123456\"));\n\t\tassertNotNull( ErabiltzaileLista.getErabiltzaileLista().bilatuErabiltzaile(\"Edgar\", \"123456\"));\n\n\n\t}", "@Test\r\n public void testLaskeSolmut() {\r\n AvlPuu puu = new AvlPuu();\r\n Noodi noodi = new Noodi(0,0);\r\n noodi.setMatkaJaljella(10);\r\n noodi.setTehtyMatka(0);\r\n PuuSolmu solmu = new PuuSolmu(noodi);\r\n puu.insert(noodi);\r\n Noodi noodi2 = new Noodi(1,0);\r\n noodi2.setMatkaJaljella(9);\r\n noodi2.setTehtyMatka(noodi);\r\n PuuSolmu solmu2 = new PuuSolmu(noodi2);\r\n puu.insert(noodi2);\r\n assertEquals(puu.laskeSolmut(), 2);\r\n }", "@Test\n @Ignore\n public void testUcitajKonfiguraciju() throws Exception {\n System.out.println(\"ucitajKonfiguraciju\");\n KonfiguracijaTxt instance = null;\n instance.ucitajKonfiguraciju();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testGetYhteensa() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n k.tarkistaVastaus(\"vaarav vastaus\");\n k.tarkistaVastaus(\"trololololoo\");\n int virheita = k.getYhteensa();\n\n assertEquals(\"Sanan tarkastus ei toimi\", 2, virheita);\n }", "public boolean testSouvislostiAStupneVrcholu(){\n\t\t\n\t\tif(!souvislost()){\n\t\t\tvys = \"Graf neni souvisly a proto nemuze byt ani Eulerovsky.\";\n\t\t\treturn false;\n\t\t}\n\t\tif(!muzeBytEuler()){\n\t\t\tvys = \"Stupne vrcholu nejsou bud sude nebo nebo si neodpovida jejich vstupni a vystupni stupen.\";\n\t\t\treturn false;\n\t\t}\n\t\tif(muzeBytEuler() && souvislost()){\n\t\t\tvys =\"Graf je souvisly a zaroven vsechny stupne jsou sude nebo jejich vstupni a vystupni stupen je roven.\";\n\t\t\treturn true;\n\t\t}\n\t\treturn true;\n\t}", "@Test\r\n\tpublic void testGetErabBalorazioak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 4);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 3);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 3.5);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 2);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 1);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 4);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 5);\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 3.5);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t}", "public void testBidu(){\n\t}", "@Test\n public void testJatka() {\n System.out.println(\"jatka\");\n Peli peli = new Peli(new Alue(3, 1));\n peli.jatka();\n assertEquals(peli.isHavio(), false);\n assertEquals(peli.getMenetykset(), 1);\n\n }", "@Test\n\tpublic void vero_se_e_solo_se_un_prestito_uguale_a_se_stesso() {\n\t\tassertTrue(prestito.equals(prestito),\"Prestito uguale sse uguale a se stesso\");\n\t}", "private static PohonAVL seimbangkanKembaliKanan(PohonAVL p) {\n //...\n // Write your codes in here\n }", "public void pobierzukladprzegladRZiSBO() {\r\n if (uklad.getUklad() == null) {\r\n uklad = ukladBRDAO.findukladBRPodatnikRokPodstawowy(wpisView.getPodatnikObiekt(), wpisView.getRokWpisuSt());\r\n }\r\n List<PozycjaRZiSBilans> pozycje = UkladBRBean.pobierzpozycje(pozycjaRZiSDAO, pozycjaBilansDAO, uklad, \"\", \"r\");\r\n UkladBRBean.czyscPozycje(pozycje);\r\n rootProjektRZiS.getChildren().clear();\r\n List<StronaWiersza> zapisy = StronaWierszaBean.pobraniezapisowwynikoweBO(stronaWierszaDAO, wpisView);\r\n try {\r\n PozycjaRZiSFKBean.ustawRoota(rootProjektRZiS, pozycje, zapisy);\r\n level = PozycjaRZiSFKBean.ustawLevel(rootProjektRZiS, pozycje);\r\n Msg.msg(\"i\", \"Pobrano układ \");\r\n } catch (Exception e) {\r\n E.e(e);\r\n rootProjektRZiS.getChildren().clear();\r\n Msg.msg(\"e\", e.getLocalizedMessage());\r\n }\r\n }", "@Then(\"^Tytuł sekcji jest inny niż oczekiwany$\")\n public void Tytuł_sekcji_jest_inny_niż_oczekiwany() throws Throwable {\n String nazwaSekcji = driver.findElement(By.xpath(\"/html/body/div[1]/div[7]/div/div/div[1]/div[1]/div[1]/p\")).getText();\n String docelowaNazwaSekcji = \"Strefa Logowania\";\n Assert.assertEquals(docelowaNazwaSekcji, nazwaSekcji);\n }", "@Test\n public void testSetSiirSuunta() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n try {\n k.setSiirSuunta(-1);\n } catch (Exception e) {\n assertTrue(\"Sirtymissuunnan muutos aiheuttaa virheen\", true);\n }\n }", "public void ucitajPotez(Potez potez) {\n\t\tint red = potez.vratiRed();\n\t\tint kolona = potez.vratiKolonu();\n\t\ttabla[red][kolona] = potez.vratiRezultat();\n\n\t\tif (potez.vratiRezultat() == Polje1.potopljen) {\n\t\t\tint gornjiRed, gornjaKolona;\n\t\t\tboolean cont1 = false;\n\t\t\tboolean cont2 = false;\n\t\t\tboolean redar = false;\n\t\t\tboolean kolonar = false;\n\t\t\twhile (redar == false) {\n\t\t\t\tif (red == 0) {\n\t\t\t\t\tgornjiRed = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjiRed = red - 1;\n\t\t\t\t}\n\t\t\t\tif (red == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\tred--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjiRed++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen || tabla[gornjiRed][kolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\t\tred++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tredar = true;\n\t\t\t}\n\t\t\tcont1 = false;\n\t\t\tcont2 = false;\n\t\t\tred = potez.vratiRed();\n\t\t\twhile (kolonar == false) {\n\t\t\t\tif (kolona == 0) {\n\t\t\t\t\tgornjaKolona = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjaKolona = kolona - 1;\n\t\t\t\t}\n\t\t\t\tif (kolona == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\tkolona--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjaKolona++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen || tabla[red][gornjaKolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\t\tkolona++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tkolonar = true;\n\n\t\t\t}\n\n\t\t}\n\n\n\t}", "@Test\n public void nelioMuodostuu() {\n ArrayList lista=this.tetrimino.palautaKuvio();\n assertEquals(lista.size(), 4);\n \n }", "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "private void logika_rozpocznij(){\n\t}", "@Test\n public void WertZuweisung (){\n String bez = \"Test\";\n String matGr = \"Test\";\n String zeichNr = \"Test\";\n float preis = 3;\n int ve = 1;\n try {\n Teilebestand teil = new Teilebestand();\n teil.setBezeichnung(bez);\n teil.setMaterialgruppe(matGr);\n teil.setPreis(preis);\n teil.setTyp(Teilebestand.Typ.kaufteile);\n teil.setZeichnungsnummer(zeichNr);\n teil.setVe(ve);\n \n teil.save();\n \n assertEquals(teil.getBezeichnung(), bez);\n assertEquals(teil.getMaterialgruppe(), matGr);\n assertEquals(teil.getPreis(), preis, 0.1);\n assertNotNull(preis);\n assertEquals(teil.getTyp(), Teilebestand.Typ.kaufteile);\n assertEquals(teil.getVe(), ve);\n assertNotNull(ve);\n assertEquals(teil.getZeichnungsnummer(), zeichNr);\n \n } catch (SQLException ex) {\n fail(ex.getSQLState());\n }\n \n \n \n \n }", "@Test\n public void test01(){\n //Kodumuzu tamamen dinamik yapmak icin 3 dataya ihtiyacım var\n //1-locate ===> Bunları Page Class'ından obje üreterek alabilirim\n //2-Test datalari ====> Bunlar icin obje olusturmama gerek yok,\n\n //ConfigReader Class'ında hersey static oldugu icin\n //sadece Class ismi ile herseye ulabailirim\n\n driver.get(ConfigReader.getProperty(\"kr_url\"));\n\n KoalaResortLoginPage koalaResortLoginPage = new KoalaResortLoginPage(driver);\n koalaResortLoginPage.ilkLoginLink.click();\n koalaResortLoginPage.kullaniciAdi.sendKeys(ConfigReader.getProperty(\"kr_valid_username\"));\n koalaResortLoginPage.passwordTextBox.sendKeys(ConfigReader.getProperty(\"kr_valid_password\"));\n koalaResortLoginPage.loginButonu.click();\n }", "private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}", "private String elaboraRitorno() {\n String testo = VUOTA;\n String titoloPaginaMadre = getTitoloPaginaMadre();\n\n if (usaHeadRitorno) {\n if (text.isValid(titoloPaginaMadre)) {\n testo += \"Torna a|\" + titoloPaginaMadre;\n testo = LibWiki.setGraffe(testo);\n }// fine del blocco if\n }// fine del blocco if\n\n return testo;\n }", "@Test\r\n public void testGetPracownik() {\r\n System.out.println(\"getPracownik\");\r\n Faktura instance = new Faktura();\r\n Pracownik expResult = null;\r\n Pracownik result = instance.getPracownik();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "@Test\n public void testSpremiKonfiguraciju() throws Exception {\n System.out.println(\"spremiKonfiguraciju\");\n KonfiguracijaTxt instance = new KonfiguracijaTxt(datKonf.getName());\n instance.spremiKonfiguraciju();\n assertTrue(datKonf.exists());\n }", "public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }", "public void obliczSzanseWykolejenia(Tramwaj tramwaj, Pogoda pogoda, Motorniczy motorniczy, Przystanek przystanek){\r\n RegulyWykolejen regulyWykolejen= new RegulyWykolejen();\r\n this.szansaWykolejenia = pogoda.getRyzyko() + przystanek.getStanTechnicznyPrzystanku() + tramwaj.getStanTechTramwaju() + regulyWykolejen.regulaWiek(motorniczy.getWiek()) + regulyWykolejen.regulaDoswiadczenie(motorniczy.getDoswiadczenie());\r\n }", "@Test\n public void sucheSaeleBezT() throws Exception {\n System.out.println(\"sucheSaele nach Bezeichnung\");\n bezeichnung = \"Halle 1\";\n typ = \"\";\n plaetzeMin = null;\n ort = null;\n SaalDAO dao=DAOFactory.getSaalDAO();\n query = \"bezeichnung like '%\" + bezeichnung + \"%' \";\n explist = dao.find(query);\n System.out.println(query);\n List<Saal> result = SaalHelper.sucheSaele(bezeichnung, typ, plaetzeMin, ort);\n assertEquals(explist, result);\n \n }", "public void trykkPaa() throws TrykketPaaBombe {\n // Ingenting skal skje dersom en av disse er true;\n if (brettTapt || trykketPaa || flagget) {\n return;\n }\n\n // Om ruten er en bombe taper man brettet\n if (bombe) {\n trykketPaa = true;\n setText(\"x\");\n setBackground(new Background(new BackgroundFill(Color.RED, CornerRadii.EMPTY, Insets.EMPTY)));\n throw new TrykketPaaBombe();\n }\n // Om ruten har null naboer skal et stoerre omraade aapnes\n else if (bombeNaboer == 0) {\n Lenkeliste<Rute> besokt = new Lenkeliste<Rute>();\n Lenkeliste<Rute> aapneDisse = new Lenkeliste<Rute>();\n aapneDisse.leggTil(this);\n // Rekursiv metode som fyller aapneDisse med riktige ruter\n finnAapentOmraade(besokt, aapneDisse);\n for (Rute r : aapneDisse) {\n r.aapne();\n }\n } else {\n aapne();\n }\n }", "private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }", "@Test\n public void shouldBeZeroForTolkienAuthor() {\n\n }", "public void setRua(String rua) {this.rua = rua;}", "private String vylozZvieraZVozidla() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz index zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Zivocich ziv = zoo.vylozZivocicha(pozicia-1);\r\n if (ziv == null) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n }\r\n zoo.pridajZivocicha(ziv);\r\n return \"Zviera \" + ziv\r\n + \"\\n\\tbolo vylozene z prepravneho vozidla\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }", "private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "public void realizacjap34() {\n System.out.println(\"REALIZACJA PUNKTU 3\\n\");\n\n System.out.println(\"\\nWyszukiwanie osob po imieniu (Piotr) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoImieniu(Listy.osoby, \"Piotr\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po nazwisku (Oleszczuk) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoNazwisku(Listy.osoby, \"Oleszczuk\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy mniejszym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyMniejszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy większym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyWiekszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy równym 5============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyRownym(Listy.osoby, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin mniejszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachMniejszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin wiekszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachWiekszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin równej 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachRownych(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji wiekszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiWiekszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji mniejszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiMniejszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji rownej 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiRownej(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stanowisku (Adiunkt) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStanowisku(Listy.osoby, \"Adiunkt\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studenta po numerze indeksu (123456) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzStudentaPoIndeksie(Listy.osoby, \"123456\"));\n\n System.out.println(\"\\nWyszukiwanie studentów po roku studiów (1) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoRokuStudiow(Listy.osoby, 1).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studentów po kierunku (Informatyka Stosowana) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoKierunku(Listy.osoby, \"Informatyka Stosowana\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursu po nazwie (Analiza Matematyczna 1) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzKursPoNazwie(Listy.kursy, \"Analiza Matematyczna 1\"));\n\n System.out.println(\"\\nWyszukiwanie kursów po liczbie ects (5) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoECTS(Listy.kursy, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursów po prowadzacym+\"+Listy.osoby.get(0).getImie()+\" \"+Listy.osoby.get(0).getNazwisko()+\" ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoProwadzacym(Listy.kursy, Listy.osoby.get(0)).forEach(System.out::println);\n\n\n //REALIZACJA PUNKTU 4\n System.out.println(\"=====================================================================================================================\");\n System.out.println(\"REALIZACJA PUNKTU 4\");\n System.out.println(\"=====================================================================================================================\\n\");\n System.out.println(\"Kursy:\\n\");\n for (Kurs kurs : Listy.kursy) {\n System.out.println(kurs.toString());\n }\n\n System.out.println(\"\\nOsoby:\\n\");\n for (Osoba osoba : Listy.osoby) {\n System.out.println(\"OSOBA====================================================================================================\");\n System.out.println(osoba.toString());\n System.out.println();\n }\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "@Test\r\n public void testWortUeberpruefen() {\r\n System.out.println(\"wortUeberpruefen\");\r\n String eingabewort = \"\";\r\n Turingband t = null;\r\n Texteinlesen instance = new Texteinlesen();\r\n instance.wortUeberpruefen(eingabewort, t);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "public RuimteFiguur() {\n kleur = \"zwart\";\n }", "public void testTumPencereleriKapat() {\n System.out.println(\"tumPencereleriKapat\");\n Yakalayici instance = new Yakalayici();\n instance.tumPencereleriKapat();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "private UsineJoueur() {}", "@Test\r\n public void testYhdista() {\r\n System.out.println(\"yhdista\");\r\n Pala toinenpala = null;\r\n Palahajautustaulu taulu = null;\r\n Pala instance = null;\r\n instance.yhdista(toinenpala, taulu);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\r\n public void testSetOrigen() {\r\n String expResult = \"pruebaorigen\";\r\n articuloPrueba.setOrigen(expResult);\r\n assertEquals(expResult, articuloPrueba.getOrigen());\r\n }", "private void remplirUtiliseData() {\n\t}", "@Override\n\tpublic void yürü() {\n\n\t}", "void tampilKarakterA();", "public static void TroskoviPredjenogPuta() {\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje zelite da racunate predjeni put!\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tSystem.out.println(\"Unesite broj kilometara koje ste presli sa odgovarajucim vozilom\");\n\t\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\t\tVozilo v = Main.getVozilaAll().get(redniBroj);\n\t\t\t\tdouble rezultat;\n\t\t\t\tif(v.getGorivaVozila().size()>1) {\n\t\t\t\t\tGorivo g = UtillMethod.izabirGoriva();\n\t\t\t\t\trezultat = cenaTroskaVoz(v,km,g);\n\t\t\t\t}else {\n\t\t\t\t\t rezultat = cenaTroskaVoz(v,km,v.getGorivaVozila().get(0));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Cena troskova za predjeni put je \" + rezultat + \"Dinara!\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}", "@Test\n public void testVoitto() {\n Peli peli = new Peli(new Alue(3, 0));\n peli.avaaRuutu(1, 1);\n boolean ododtus = true;\n boolean tulos = peli.voitto();\n assertEquals(ododtus, tulos);\n }", "@Test\n\tpublic void testCrearSalaDeJuego() {\n\t\tSalaDeJuego sala = new SalaDeJuego(\"sala1\");\n\t\tassertEquals(0, sala.getCantJugadores());\n\t}", "@Test\n public void tilimaksuKutsuuTilisiirtoaOikeillaParametreilla() {\n when(this.varasto.saldo(1)).thenReturn(10);\n when(this.varasto.haeTuote(1)).thenReturn(new Tuote(1, \"maito\", 5));\n \n this.kauppa.aloitaAsiointi();\n this.kauppa.lisaaKoriin(1);\n this.kauppa.tilimaksu(\"johannes\", \"12345\");\n verify(this.pankki).tilisiirto(eq(\"johannes\"), anyInt(), eq(\"12345\"), anyString(), eq(5));\n \n }", "public static void dodavanjePutnickogVozila() {\n\t\tString vrstaVozila = \"Putnicko Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja100 = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 10000;\n\t\tdouble cenaServisa = 8000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedist = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tPutnickoVozilo vozilo = new PutnickoVozilo(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja100, predjeno,\n\t\t\t\tpreServisa, cenaServisa, cenaDan, brSedist, brVrata, vozObrisano, servisiNadVozilom);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"---------------------------------------\");\n\t}", "@Test\n public void testDevolverEjemplar() {\n System.out.println(\"devolverEjemplar\");\n Ejemplar ejemplar = new EjemplaresList().getEjemplares().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Ejemplar result = instance.devolverEjemplar(ejemplar);\n Ejemplar expResult = ejemplar;\n expResult.setUsuarioId(null);\n \n assertEquals(expResult, result);\n\n }" ]
[ "0.68847394", "0.66820014", "0.6613551", "0.6581251", "0.6547025", "0.6491354", "0.64051133", "0.6379642", "0.63596505", "0.6338468", "0.63121206", "0.629273", "0.622702", "0.6225633", "0.6222519", "0.6219446", "0.6172969", "0.617152", "0.6168953", "0.616304", "0.6151342", "0.6150915", "0.6140786", "0.6122464", "0.611928", "0.61042786", "0.6093377", "0.60783195", "0.6077662", "0.60655314", "0.60620075", "0.60611963", "0.6041081", "0.6032516", "0.60242426", "0.6016054", "0.6012757", "0.6010839", "0.599531", "0.59920484", "0.59868604", "0.59856015", "0.59727615", "0.5972476", "0.5966344", "0.5960575", "0.5960255", "0.5958159", "0.5952362", "0.59502333", "0.59483606", "0.59421784", "0.59363943", "0.59183985", "0.5917074", "0.5916491", "0.5911348", "0.58952504", "0.58863264", "0.58837134", "0.5877334", "0.587727", "0.58697253", "0.5868475", "0.5859512", "0.5855173", "0.582819", "0.5818588", "0.5816804", "0.58104116", "0.5803339", "0.5803324", "0.5796054", "0.5793259", "0.57797444", "0.577851", "0.5773794", "0.5773013", "0.57659674", "0.5765294", "0.57611966", "0.5754124", "0.57492936", "0.5748374", "0.5748354", "0.5746707", "0.5746567", "0.5745676", "0.5744887", "0.574417", "0.57429725", "0.57332736", "0.57316697", "0.57316095", "0.5730475", "0.57212484", "0.5721178", "0.5721133", "0.57134396", "0.57098866", "0.5701386" ]
0.0
-1
Create a action to add a word to the current user dictionary.
public AddWordAction(JTextComponent jText, String word) { this(jText, word, Utils.getResource("Adicionar ao dicionário")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addWord(Word word);", "@Override\r\n public void actionPerformed(ActionEvent arg0) {\r\n UserDictionaryProvider provider = SpellChecker.getUserDictionaryProvider();\r\n if (provider != null) {\r\n provider.addWord(word);\r\n }\r\n Dictionary dictionary = SpellChecker.getCurrentDictionary();\r\n dictionary.add(word);\r\n dictionary.trimToSize();\r\n AutoSpellChecker.refresh(jText);\r\n }", "public void addWord(String word) {\n root.addWord(word);\n }", "public void add(T word);", "public void add(String word) {\n Signature sig = new Signature(word);\n add(sig, word);\n }", "public void add(String word) {\n\t\twordList.add(word);\n\t\t// TODO Add your code here\n\t}", "public void addWord(String word) {\n trie.insert(word);\n }", "public AddWordAction(JTextComponent jText, String word, String label) {\r\n super(label);\r\n this.word = word;\r\n this.jText = jText;\r\n }", "public void addWord(String word) {\n root = put(root, word, 0);\n }", "public void addWord(String word) {\n\t\taddWord(word, root);\n\t}", "void addWordToDoc(int doc,VocabWord word);", "public void addWord (String word) {\r\n word = word.toUpperCase ();\r\n if (word.length () > 1) {\r\n String s = validateWord (word);\r\n if (!s.equals (\"\")) {\r\n JOptionPane.showMessageDialog (null, \"The word you have entered contained invalid characters\\nInvalid characters are: \" + s, \"Error\",\r\n JOptionPane.ERROR_MESSAGE);\r\n return;\r\n }\r\n checkEasterEgg (word);\r\n words.add (word);\r\n Components.wordList.getContents ().addElement (word);\r\n } else {\r\n JOptionPane.showMessageDialog (null, \"The word you have entered does not meet the minimum requirement length of 2\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "public static void addKeyWord(String word)\r\n\t{\r\n\t\tkeywords.add(word);\r\n\t}", "private void addCustomWords() {\r\n\r\n }", "public void addUserDictionary(String dictionary) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_DICTIONARY, dictionary);\n\n // Inserting Row\n db.insert(TABLE_USER_DICTIONARIES, null, values);\n db.close(); // Closing database connection\n }", "public boolean addWord(String word) {\n return false;\n }", "public void populateWord(String word) {\n\t\tthis.add(word);\n\t}", "public void insert(String word, DictionaryData data) {\r\n\r\n dictionaryMap.put(word.toUpperCase(),data);\r\n }", "public boolean add(String word) {\r\n\t\treturn dict.add(word);\r\n\t}", "public void addWord(String word) {\n dataStructure.put(word, \"\");\n }", "public void add(LLNodeHash word){\n if (!checkWord(word)){\n put(word);\n }\n }", "public void addWord(String word) {\n if (word == null || word.equals(\"\")) return;\n char[] str = word.toCharArray();\n WordDictionary cur = this;\n for (char c: str) {\n if (cur.letters[c - 'a'] == null) cur.letters[c - 'a'] = new WordDictionary();\n cur = cur.letters[c - 'a'];\n }\n cur.end = true;\n }", "public void insert(String word) {\r\n tree.add(word);\r\n }", "@RequestMapping(value = \"/word/\", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)\r\n public ResponseEntity<Void> createWord(@RequestBody Word word, UriComponentsBuilder ucBuilder) {\r\n System.out.println(\"Creating Word \" + word.getWordInEnglish());\r\n \r\n if (WordService.isWordExist(word)) {\r\n System.out.println(\"A Word with name \" + word.getWordInEnglish() + \" already exist\");\r\n return new ResponseEntity<Void>(HttpStatus.CONFLICT);\r\n }\r\n \r\n WordService.saveWord(word);\r\n \r\n HttpHeaders headers = new HttpHeaders();\r\n headers.setLocation(ucBuilder.path(\"/word/{language}\").buildAndExpand(word.getWordInEnglish()).toUri());\r\n return new ResponseEntity<Void>(headers, HttpStatus.CREATED);\r\n }", "public void goToAddWord1(View v) {\n Intent myIntent = new Intent(this, AddWord1.class);\n startActivity(myIntent);\n }", "private void addWords(){\n wordList.add(\"EGE\");\n wordList.add(\"ABBAS\");\n wordList.add(\"KAZIM\");\n }", "@FXML\n\tpublic void addWord() {\n\n\t\twordList.add(new Word(TextFieldWord.getText(), TextFieldDescribe.getText(), liczbaznakow));\n\n\t\ttry {\n\n\t\t\tout = new PrintWriter(selectedFile);\n\n\t\t\tfor (int i = 0; i < wordList.size(); i++) {\n\n\t\t\t\tout.printf(\"%s;%s;%d;\",\n\n\t\t\t\t\t\twordList.get(i).getWord(), wordList.get(i).getDescribe(), wordList.get(i).getLiczbaznakow());\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (out != null)\n\t\t\t\tout.close();\n\t\t}\n\t}", "private void wordAdd(String word){\n if (!fileWords.containsKey(word)){\n fileWords.put(word,1);\n if (probabilities.containsKey(word)) {\n double oldCount = probabilities.get(word);\n probabilities.put(word, oldCount+1);\n } else {\n probabilities.put(word, 1.0);\n }\n }\n }", "public void add(String word, String file, int position) {\n\t \taddHelper(word, file, position);\n\t}", "public void addWord(int id, int start, int length, int[] type);", "public void addWord(String word) {\n CharNode target = root ;\n for(int i=0; i<word.length(); i++) {\n target = target.insertCharInChildren(word.charAt(i)) ;\n }\n target.end = true ;\n }", "public Future<Boolean> addToDictionary(String type, String word, String priority, String phonetic, String accent) throws DynamicCallException, ExecutionException {\n return call(\"addToDictionary\", type, word, priority, phonetic, accent);\n }", "public Boolean addToDictionary(String type, String word, String priority, String phonetic, String accent) throws DynamicCallException, ExecutionException {\n return (Boolean)call(\"addToDictionary\", type, word, priority, phonetic, accent).get();\n }", "public void insert(String word) {\n if (word == null) {\n return;\n }\n if (value == null) {\n value = new ArrayList<>();\n }\n value.add(word);\n }", "public void add(String word) {\n if (hashTable.contains(word)) {\n hashTable.put(word, hashTable.get(word) + 1);\n }\n else {\n hashTable.put(word,1);\n }\n }", "public void insert( Word x )\n {\n WordList whichList = theLists[ myhash( x.key ) ];\n //System.out.println(\"WordList found\");\n \n\t whichList.add( x );\n\t //System.out.println(\"Word \" + x.value + \" successfully added\");\n }", "public void addPos(String word, IPosition pos);", "public void addWord(String word) {\n // Write your code here\n TrieNode now = root;\n for(int i = 0; i < word.length(); i++) {\n Character c = word.charAt(i);\n if (!now.children.containsKey(c)) {\n now.children.put(c, new TrieNode());\n }\n now = now.children.get(c);\n }\n now.hasWord = true;\n }", "public void add(Word w)\n {\n words = words + w.getWords();\n syllables = syllables + w.getSyllables();\n sentences = sentences + w.getSentences();\n }", "void add(String prompt, UIMenuAction action);", "public void addWord(String word) {\n // Write your code here\n TrieNode now = root;\n for(int i = 0; i < word.length(); i++) {\n Character c = word.charAt(i);\n if (now.children[c - 'a'] == null) {\n now.children[c - 'a'] = new TrieNode();\n }\n now = now.children[c - 'a'];\n }\n now.hasWord = true;\n }", "public void add(String alphabetizedWord, String word){\n int index = word.length();\n if(index >= tree.size()){\n tree.setSize(index + 1);\n }\n if(tree.get(index) == null){\n tree.set(index, new Trie());\n }\n //add word to appropriate trie\n tree.get(index).addWord(alphabetizedWord, word);\n }", "public void putWord(String word) {\n if(index < words.length) {\n words[index] = word;\n }\n index++;\n }", "public static void addIntoPracticedWords(Word word) {\n word.setFavorited(true);\n favWords.add(word);\n // Set the word favourite status to true in dictionary after adding the word to practice list\n if (Dictionary.getDictionary().contains(word)) {\n Dictionary.getWord(word).setFavorited(true);\n }\n }", "public void addWord(String word) {\n TrieNode curr = root;\n for (char c : word.toCharArray()) {\n curr = curr.chars.computeIfAbsent(c, (k) -> new TrieNode());\n\n }\n curr.isWord = true;\n }", "public String add() {\r\n\t\tuserAdd = new User();\r\n\t\treturn \"add\";\r\n\t}", "public void addTWord(TWord tword){\n\t\tsentence.add(tword);\n\t}", "public void addWord(String word) {\n TrieNode node = root;\n char[] words = word.toCharArray();\n for (char c: words){\n if (node.children[c-'a'] == null){\n node.children[c-'a']=new TrieNode();\n }\n node = node.children[c-'a'];\n }\n node.item = word;\n }", "public void insert(String word) {\n insert(root, word, new Object(), 0);\n }", "boolean putWord(WordBean wordBean);", "public void addWord(String word) {\n TrieNode cur = root;\n for(char c : word.toCharArray()) {\n if(cur.next[c-'a'] == null) {\n cur.next[c-'a'] = new TrieNode(c);\n }\n cur = cur.next[c-'a'];\n }\n cur.isWord = true;\n }", "Builder addPotentialAction(String value);", "void addWordsToDoc(int doc,List<VocabWord> words);", "public void addTWord(String word){\n\t\tsentence.add(new TWord(word));\n\t}", "public void addWord(Word englishWord, Word frenchWord) {\n\t\tdictFr.add(frenchWord);\n\t\tdictEn.add(englishWord);\n\t\twordsAdded(englishWord, frenchWord);\n\t}", "public void addWord(String word) {\n maxLength = Math.max(maxLength, word.length());\n\n TrieNode temp = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n if (temp.children[c - 'a'] == null) {\n temp.children[c - 'a'] = new TrieNode(c);\n }\n temp = temp.children[c - 'a'];\n }\n temp.isWord = true;\n }", "public boolean addThemeWord(String word){\r\n\t\treturn themeWords.add(word);\r\n\t}", "void addHas_action(Action newHas_action);", "public void addWordCount(){\r\n\t\twordCount = wordCount + 1;\r\n\t}", "public abstract void addAction(Context context, NAAction action);", "private void addWordHelper( String word, int pos, TrieNode curNode )\n\t{\n\t\t//Check to see if the node has been occupied yet\n\t\tif( curNode.getLetters()[ (int)word.charAt(pos) - 97 ] == null )\n\t\t\t//If we are at the last character of the word\n\t\t\tif( pos >= word.length() - 1 )\n\t\t\t\t//Make sure the isWord property is set to true\n\t\t\t\tcurNode.setLetter( word.charAt( pos ), true );\n\t\t\telse\n\t\t\t\tcurNode.setLetter( word.charAt( pos ), false );\n\t\t\n\t\t//If it hasn't reached the last letter yet\n\t\tif( !( pos >= word.length() - 1 ) )\n\t\t\t//Keep on adding the word\n\t\t\taddWordHelper( word, pos + 1, curNode.getLetters()[ (int)word.charAt( pos ) - 97 ] );\n\t}", "public void addWord(String word) {\n // Write your code here\n TrieNode cur=root;\n for(int i=0;i<word.length();++i){\n char c=word.charAt(i);\n TrieNode nextNode=cur.children.get(c);\n if(nextNode==null){\n nextNode=new TrieNode();\n cur.children.put(c,nextNode);\n }\n cur=nextNode;\n }\n cur.hasWord=true;\n }", "public void addWord(String word) {\n TrieNode cur = root;\n for (int i=0; i<word.length(); i++) {\n int pos = word.charAt(i) - 'a';\n if (cur.next[pos] == null) {\n cur.next[pos] = new TrieNode();\n }\n cur = cur.next[pos];\n }\n cur.isWord = true;\n }", "public void addWord(String word) {\n //Corner Case\n if(word == null || word.length() == 0){\n return;\n }\n TrieNode node = root;\n int d = 0;\n \n while(d<word.length()){\n char c = word.charAt(d);\n if(node.next[c-'a']==null){\n node.next[c-'a'] = new TrieNode();\n }\n node = node.next[c-'a'];\n d++;\n }\n \n node.isWord = true;\n }", "void setWord(Word word);", "public void insert(String word) {\n this.root.insert(word);\n }", "public void addWord(String word) {\n char[] chs = word.toCharArray();\n TreeNode cur = root;\n for (int i = 0; i < chs.length; i++) {\n int ind = chs[i] - 'a';\n if (cur.map[ind] == null) {\n cur.map[ind] = new TreeNode();\n }\n cur = cur.map[ind];\n }\n cur.end = true;\n }", "public void addWord(String word) {\n TrieNode cur = root;\n for(int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n TrieNode node = cur.children.get(c);\n if(node == null) {\n node = new TrieNode();\n cur.children.put(c, node);\n }\n cur = node;\n }\n cur.isEnd = true;\n }", "public void addTWord(String word, String tag){\n\t\tTWord tword = new TWord(word, tag);\n\t\tsentence.add(tword);\n\t}", "public void addWord(String word) {\r\n Trie node = root;\r\n for(char ch: word.toCharArray()){\r\n if(node.child[ch - 'a'] == null)\r\n node.child[ch - 'a'] = new Trie(ch);\r\n node = node.child[ch - 'a'];\r\n }\r\n node.end = true;\r\n }", "public void addWord(String word) {\r\n Node node = root;\r\n for(char c : word.toCharArray()){\r\n node.nodes[c-'a'] = new Node();\r\n node = node.nodes[c-'a'];\r\n }\r\n node.isLeaf = true;\r\n }", "public void addWord(String word) {\n char[] wordChars = word.toCharArray();\n TrieNode curr = root;\n for (char c : wordChars) {\n if(curr.map.containsKey(c)) {\n curr = curr.map.get(c);\n } else {\n TrieNode newNode = new TrieNode();\n curr.map.put(c, newNode);\n curr = newNode;\n }\n }\n curr.isLeaf = true;\n }", "private void insertWordEntry(String file, String word, String partition) {\n\t\tArrayList<String> fileList = new ArrayList<String>();\n\t\tfileList.add(file);\n\t\tindexedDir.get(partition).put(word, fileList);\n\t}", "void skill( String key, String value ){\n developer.skills.add( value );\n }", "public void addWord(String word) {\n TrieNode curr = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n if (curr.children[c - 'a'] == null )\n curr.children[c - 'a'] = new TrieNode();\n curr = curr.children[c - 'a'];\n }\n curr.end = true;\n }", "public void addWord(String word)\n {\n TrieNode1 node = root;\n for (char c:word.toCharArray())\n {\n if (node.childerens[c-'a']==null)\n {\n node.childerens[c-'a'] = new TrieNode1();\n }\n node = node.childerens[c-'a'];\n }\n node.isEnd = true;\n\n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public void addToDictionary(String word, int n) {\n\t\tConcurrentNavigableMap<String, String> listVocabulary = dbStats\n\t\t\t\t.getTreeMap(\"voca\");\n\t\tString strTimes = listVocabulary.get(word);\n\t\tint times = 0;\n\t\tif (strTimes != null) {\n\t\t\ttimes = Integer.parseInt(strTimes);\n\t\t\ttimes = times + n;\n\t\t} else {\n\t\t\ttimes = n;\n\t\t}\n\t\tlistVocabulary.put(word, Integer.toString(times));\n\t}", "public void addWord(String word) {\n \tTrieNode curr=root;\n for(int i=0;i<word.length();i++){\n \tchar ch=word.charAt(i);\n \tif(curr.children[ch-'a']==null)\n \t\tcurr.children[ch-'a']=new TrieNode();\n \tif(i==word.length()-1)\n \t\tcurr.children[ch-'a'].isCompleteword=true;\n \t\n \tcurr=curr.children[ch-'a'];\n }\n }", "public void addWord(String word) {\n if (word != null){\n Map<Character, TrieNode> children=root.children;\n for (int i=0;i<word.length();i++){\n char c=word.charAt(i);\n TrieNode t;\n if (children.containsKey(c)){\n t=children.get(c);\n }else {\n t=new TrieNode(c);\n children.put(c, t);\n }\n children=t.children;\n if (i==word.length()-1){\n t.isLeaf=true;\n }\n }\n }\n }", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "public void addWord(String word) {\n TrieNode node = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n if (!node.children.containsKey(c)) {\n node.children.put(c, new TrieNode());\n }\n node = node.children.get(c);\n }\n node.isEnd = true;\n }", "public void setWord(String newWord)\n\t{\n\t\tword = newWord;\n\t}", "public void insert(String word) { \n char[] w = word.toCharArray(); \n insert(root, w, 0); \n }", "public Dictionary() { //constructor\r\n try {\r\n createDictionary(); //create dictionary\r\n addCustomWords(); //add any user define words in it\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void add(Mention mention, int sentenceOffset);", "public void insert(String word) {\n\t\tTrie curr = this;\n\t\tfor(Character ch : word.toCharArray()) {\n\t\t\tTrie n = curr.nodes[ch - 'a'];\n\t\t\t\n\t\t\tif (n == null) {\n\t\t\t\tn = new Trie();\n\t\t\t\tn.isWord = false;\n\t\t\t\tcurr.nodes[ch - 'a'] = n;\n\t\t\t}\n\t\t\t\n\t\t\tcurr = n;\n\t\t}\n\t\tcurr.isWord = true;\n\t}", "public void addWord(String word) {\n if (word !=null && word.length() > 0) {\n TrieNode t = this.root;\n for (int i = 0; i < word.length(); i++) {\n int offset = word.charAt(i) - 'a';\n if (t.children[offset] == null) {\n t.children[offset] = new TrieNode();\n }\n t = t.children[offset];\n if (i == word.length() - 1) {\n t.endWithWord = true;\n }\n }\n }\n }", "public void addAction(Action action) {\n\t\t\n\t}", "public void save() {\n MainActivity.db.updateWord(this);\n }", "@Override\n public void onClick(View view) {\n AddWordFromDaum();\n }", "public void dictionaryAdd(String engWord, String vietWord) {\n String[] explain = vietWord.split(\"\\n\");\n\n if (dictionary.getWordList().get(engWord) != null) {\n dictionary.getWordList().get(engWord).addAll(Arrays.asList(explain));\n } else {\n ArrayList<String> arrayList = new ArrayList<>(Arrays.asList(explain));\n dictionary.getWordList().put(engWord, arrayList);\n }\n }", "public void add (String word) {\n Trie pointeur ;\n\n if(word.length() != 0){\n String lettre = Character.toString(word.charAt(0));\n String ssChaine = word.substring(1);\n pointeur = this.fils.get(lettre);\n if(pointeur == null){\n pointeur = new Trie();\n this.fils.put(lettre,pointeur);\n\n }\n pointeur.add(ssChaine);\n if(ssChaine.length()==0){\n this.fin = true;\n }\n \n }\n \n }", "public void actionPerformed(ActionEvent event)\n\t\t\t\t{\n\t\t\t\t\tSet<String> currentDictionaryTree = treeHandler.convertFileToTree(selectedWord.dictionaryFile);\n\t\t\t\t\t\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tif(treeHandler.wordIsUnique(selectedWord.word, currentDictionaryTree)) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tselectedWord.added = true;\n\t\t\t\t\t\t\tout = new BufferedWriter(new FileWriter(selectedWord.dictionaryFile, true)); \n\t\t\t\t\t\t\tout.newLine();\n\t\t\t\t\t\t\tout.write(selectedWord.word);\n\t\t\t\t\t\t\tout.close();\n\n\t\t\t\t\t\t\t// Statistics updating after word is successfully added\n\t\t\t\t\t\t\tint loc = (selectedWord.inputFileIndex+1)*(selectedWord.dictionaryFileIndex+1);\n\t\t\t\t\t\t\tdisplay.numAdded.set(loc, Integer.valueOf(display.numAdded.get(loc) + 1));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\ttext.unhighlight(selectedWord);\n\t\t\t\t\t}\n\t\t\t\t\t/**\n\t\t\t\t * @exception IOException signals that there was an error in writing user added words to the corresponding dictionary\n\t\t\t\t */ \n\t\t\t\t\tcatch (IOException exception) \n\t\t\t\t\t{\n\t\t\t\t\t\texception.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}", "private void newWord() {\r\n defaultState();\r\n int random_id_String = 0;\r\n int random_id_Char[] = new int[4];\r\n Random random = new Random();\r\n if (wordNumber == WordCollection.NO_OF_WORDS) return;//quit if all word list is complete;\r\n wordNumber++;\r\n //in case the word has already occured\r\n while (currentWord.equals(\"\")) {\r\n random_id_String = random.nextInt(WordCollection.NO_OF_WORDS);\r\n currentWord = tempWord[random_id_String];\r\n }\r\n currentWord.toUpperCase();\r\n tempWord[random_id_String] = \"\";//so that this word will not be used again in the game session\r\n //generates 4 random nums each for each btn char\r\n for (int i = 0; i < 4; i++) {\r\n random_id_Char[i] = (random.nextInt(4));\r\n for (int j = i - 1; j >= 0; j--) {\r\n if (random_id_Char[i] == random_id_Char[j]) i--;\r\n }\r\n }\r\n\r\n btn1.setText((currentWord.charAt(random_id_Char[0]) + \"\").toUpperCase());\r\n btn2.setText((currentWord.charAt(random_id_Char[1]) + \"\").toUpperCase());\r\n btn3.setText((currentWord.charAt(random_id_Char[2]) + \"\").toUpperCase());\r\n btn4.setText((currentWord.charAt(random_id_Char[3]) + \"\").toUpperCase());\r\n }", "public void addElement(String word, String signature) {\n\t\tif(dictionaryMap.get(signature)!= null)\n\t\t\tdictionaryMap.get(signature).add(word);\n\t\telse {\n\t\t\tSet<String> newSignature = new TreeSet<>();\n\t\t\tnewSignature.add(word);\n\t\t\tdictionaryMap.put(signature, newSignature);\n\t\t}\n\t}", "private void addModifyButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addModifyButtonMouseClicked\n String inputWord = this.searchField.getText();\n String inputDefinition = this.getDefinitionTextArea().getText();\n WordDefinition wordToModifyAdd = new WordDefinition(inputWord, inputDefinition);\n \n // find the index of the matching tree\n char firstLetterOfWord = inputWord.toUpperCase().charAt(0);\n int index = -1;\n for(int i = 0 ; i < lexiNodeTrees.size() ; i++)\n {\n if(lexiNodeTrees.get(i).getCurrentCharacter() == firstLetterOfWord)\n {\n index = i;\n i = lexiNodeTrees.size();\n }\n }\n \n // if index was not found, we have to create a new tree\n if(index == -1)\n {\n lexiNodeTrees.add(new LexiNode(firstLetterOfWord));\n index = lexiNodeTrees.size() - 1;\n \n // only possibility here is to add the word since the tree was just craeted\n if(!lexiNodeTrees.get(index).addWord( wordToModifyAdd ))\n {\n // if there was an error adding the word \n JOptionPane.showMessageDialog(this, \"ERREUR: Le mot n'a pas pu \"\n + \"être modifié/ajouté\\n\\n\", \"ERREUR\", JOptionPane.ERROR_MESSAGE);\n }\n \n else // if add was successful\n {\n JOptionPane.showMessageDialog(this, \"Le mot a été ajouté!\\n\", \"INFORMATION\", \n JOptionPane.INFORMATION_MESSAGE);\n }\n }\n \n else // if index was found, we can modify/add the definition\n {\n if( !lexiNodeTrees.get(index).modifyWord( wordToModifyAdd ) )\n {\n System.out.println(\"hi\");\n // if there was an error modifying / adding the word \n JOptionPane.showMessageDialog(this, \"ERREUR: Le mot n'a pas pu \"\n + \"être modifié/ajouté\\n\\n\", \"ERREUR\", JOptionPane.ERROR_MESSAGE);\n }\n \n else // if modification was successful\n {\n JOptionPane.showMessageDialog(this, \"Le mot a été modifié!\\n\", \"INFORMATION\", \n JOptionPane.INFORMATION_MESSAGE);\n }\n }\n \n // refresh the list\n refreshAllWordsList();\n }", "public void insert(String word) {\n\t\t\tTrieNode curr = root;\n\t\t\tfor (char c : word.toCharArray()) {\n\t\t\t\tif (!curr.children.containsKey(c))\n\t\t\t\t\tcurr.children.put(c, new TrieNode());\n\t\t\t\tcurr = curr.children.get(c);\n\t\t\t}\n\t\t\tcurr.isWord = true;\n\t\t}", "public void insert(String word) {\n TrieNode node = root;\n\n // for each char in the word, add to the TrieNode\n for (char c: word.toCharArray()) {\n // if there are no such child, then we add it\n if (node.children[c - 'a'] == null) {\n node.children[c - 'a'] = new TrieNode(c);\n }\n // move the node to next layer\n node = node.children[c - 'a'];\n\n }\n // mark the isWord\n node.isWord = true;\n }", "int insert(WdWordDict record);" ]
[ "0.7505322", "0.7261651", "0.67016447", "0.664095", "0.6614351", "0.6535532", "0.65184575", "0.64887303", "0.64774686", "0.64533126", "0.64288396", "0.6384611", "0.63663745", "0.63282454", "0.6299207", "0.62487847", "0.62480986", "0.6189677", "0.61830527", "0.61419976", "0.6114707", "0.6106981", "0.6056686", "0.6007249", "0.5996356", "0.5986767", "0.5973229", "0.59725887", "0.5956771", "0.5936806", "0.5904284", "0.5892001", "0.5878341", "0.5876871", "0.5854094", "0.5852847", "0.58477134", "0.58474976", "0.5840622", "0.58225816", "0.5817809", "0.58095306", "0.5790594", "0.57854813", "0.5776469", "0.5758162", "0.5744517", "0.57379174", "0.5732217", "0.5726835", "0.57163715", "0.56952524", "0.56877136", "0.56786084", "0.56653774", "0.56625384", "0.5659408", "0.5656786", "0.56484556", "0.5629669", "0.56055945", "0.56033623", "0.55993325", "0.55833924", "0.55772424", "0.55588454", "0.5541965", "0.55344635", "0.55281204", "0.5524278", "0.5524012", "0.55224633", "0.55111116", "0.54938537", "0.5484101", "0.548305", "0.5475979", "0.54755986", "0.5460105", "0.5438401", "0.54295707", "0.54277396", "0.5421612", "0.5421184", "0.54201424", "0.54034626", "0.5402622", "0.5393188", "0.5393159", "0.53878766", "0.5383695", "0.537723", "0.5372371", "0.53404814", "0.53318626", "0.5326179", "0.53139", "0.5302177", "0.52982295", "0.5297446" ]
0.7017473
2
Create a action to add a word to the current user dictionary.
public AddWordAction(JTextComponent jText, String word, String label) { super(label); this.word = word; this.jText = jText; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addWord(Word word);", "@Override\r\n public void actionPerformed(ActionEvent arg0) {\r\n UserDictionaryProvider provider = SpellChecker.getUserDictionaryProvider();\r\n if (provider != null) {\r\n provider.addWord(word);\r\n }\r\n Dictionary dictionary = SpellChecker.getCurrentDictionary();\r\n dictionary.add(word);\r\n dictionary.trimToSize();\r\n AutoSpellChecker.refresh(jText);\r\n }", "public AddWordAction(JTextComponent jText, String word) {\r\n this(jText, word, Utils.getResource(\"Adicionar ao dicionário\"));\r\n }", "public void addWord(String word) {\n root.addWord(word);\n }", "public void add(T word);", "public void add(String word) {\n Signature sig = new Signature(word);\n add(sig, word);\n }", "public void add(String word) {\n\t\twordList.add(word);\n\t\t// TODO Add your code here\n\t}", "public void addWord(String word) {\n trie.insert(word);\n }", "public void addWord(String word) {\n root = put(root, word, 0);\n }", "public void addWord(String word) {\n\t\taddWord(word, root);\n\t}", "void addWordToDoc(int doc,VocabWord word);", "public void addWord (String word) {\r\n word = word.toUpperCase ();\r\n if (word.length () > 1) {\r\n String s = validateWord (word);\r\n if (!s.equals (\"\")) {\r\n JOptionPane.showMessageDialog (null, \"The word you have entered contained invalid characters\\nInvalid characters are: \" + s, \"Error\",\r\n JOptionPane.ERROR_MESSAGE);\r\n return;\r\n }\r\n checkEasterEgg (word);\r\n words.add (word);\r\n Components.wordList.getContents ().addElement (word);\r\n } else {\r\n JOptionPane.showMessageDialog (null, \"The word you have entered does not meet the minimum requirement length of 2\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "public static void addKeyWord(String word)\r\n\t{\r\n\t\tkeywords.add(word);\r\n\t}", "private void addCustomWords() {\r\n\r\n }", "public void addUserDictionary(String dictionary) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_DICTIONARY, dictionary);\n\n // Inserting Row\n db.insert(TABLE_USER_DICTIONARIES, null, values);\n db.close(); // Closing database connection\n }", "public boolean addWord(String word) {\n return false;\n }", "public void populateWord(String word) {\n\t\tthis.add(word);\n\t}", "public void insert(String word, DictionaryData data) {\r\n\r\n dictionaryMap.put(word.toUpperCase(),data);\r\n }", "public boolean add(String word) {\r\n\t\treturn dict.add(word);\r\n\t}", "public void addWord(String word) {\n dataStructure.put(word, \"\");\n }", "public void add(LLNodeHash word){\n if (!checkWord(word)){\n put(word);\n }\n }", "public void addWord(String word) {\n if (word == null || word.equals(\"\")) return;\n char[] str = word.toCharArray();\n WordDictionary cur = this;\n for (char c: str) {\n if (cur.letters[c - 'a'] == null) cur.letters[c - 'a'] = new WordDictionary();\n cur = cur.letters[c - 'a'];\n }\n cur.end = true;\n }", "public void insert(String word) {\r\n tree.add(word);\r\n }", "@RequestMapping(value = \"/word/\", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)\r\n public ResponseEntity<Void> createWord(@RequestBody Word word, UriComponentsBuilder ucBuilder) {\r\n System.out.println(\"Creating Word \" + word.getWordInEnglish());\r\n \r\n if (WordService.isWordExist(word)) {\r\n System.out.println(\"A Word with name \" + word.getWordInEnglish() + \" already exist\");\r\n return new ResponseEntity<Void>(HttpStatus.CONFLICT);\r\n }\r\n \r\n WordService.saveWord(word);\r\n \r\n HttpHeaders headers = new HttpHeaders();\r\n headers.setLocation(ucBuilder.path(\"/word/{language}\").buildAndExpand(word.getWordInEnglish()).toUri());\r\n return new ResponseEntity<Void>(headers, HttpStatus.CREATED);\r\n }", "public void goToAddWord1(View v) {\n Intent myIntent = new Intent(this, AddWord1.class);\n startActivity(myIntent);\n }", "private void addWords(){\n wordList.add(\"EGE\");\n wordList.add(\"ABBAS\");\n wordList.add(\"KAZIM\");\n }", "@FXML\n\tpublic void addWord() {\n\n\t\twordList.add(new Word(TextFieldWord.getText(), TextFieldDescribe.getText(), liczbaznakow));\n\n\t\ttry {\n\n\t\t\tout = new PrintWriter(selectedFile);\n\n\t\t\tfor (int i = 0; i < wordList.size(); i++) {\n\n\t\t\t\tout.printf(\"%s;%s;%d;\",\n\n\t\t\t\t\t\twordList.get(i).getWord(), wordList.get(i).getDescribe(), wordList.get(i).getLiczbaznakow());\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (out != null)\n\t\t\t\tout.close();\n\t\t}\n\t}", "private void wordAdd(String word){\n if (!fileWords.containsKey(word)){\n fileWords.put(word,1);\n if (probabilities.containsKey(word)) {\n double oldCount = probabilities.get(word);\n probabilities.put(word, oldCount+1);\n } else {\n probabilities.put(word, 1.0);\n }\n }\n }", "public void add(String word, String file, int position) {\n\t \taddHelper(word, file, position);\n\t}", "public void addWord(int id, int start, int length, int[] type);", "public void addWord(String word) {\n CharNode target = root ;\n for(int i=0; i<word.length(); i++) {\n target = target.insertCharInChildren(word.charAt(i)) ;\n }\n target.end = true ;\n }", "public Future<Boolean> addToDictionary(String type, String word, String priority, String phonetic, String accent) throws DynamicCallException, ExecutionException {\n return call(\"addToDictionary\", type, word, priority, phonetic, accent);\n }", "public Boolean addToDictionary(String type, String word, String priority, String phonetic, String accent) throws DynamicCallException, ExecutionException {\n return (Boolean)call(\"addToDictionary\", type, word, priority, phonetic, accent).get();\n }", "public void insert(String word) {\n if (word == null) {\n return;\n }\n if (value == null) {\n value = new ArrayList<>();\n }\n value.add(word);\n }", "public void insert( Word x )\n {\n WordList whichList = theLists[ myhash( x.key ) ];\n //System.out.println(\"WordList found\");\n \n\t whichList.add( x );\n\t //System.out.println(\"Word \" + x.value + \" successfully added\");\n }", "public void add(String word) {\n if (hashTable.contains(word)) {\n hashTable.put(word, hashTable.get(word) + 1);\n }\n else {\n hashTable.put(word,1);\n }\n }", "public void addPos(String word, IPosition pos);", "public void addWord(String word) {\n // Write your code here\n TrieNode now = root;\n for(int i = 0; i < word.length(); i++) {\n Character c = word.charAt(i);\n if (!now.children.containsKey(c)) {\n now.children.put(c, new TrieNode());\n }\n now = now.children.get(c);\n }\n now.hasWord = true;\n }", "public void add(Word w)\n {\n words = words + w.getWords();\n syllables = syllables + w.getSyllables();\n sentences = sentences + w.getSentences();\n }", "void add(String prompt, UIMenuAction action);", "public void addWord(String word) {\n // Write your code here\n TrieNode now = root;\n for(int i = 0; i < word.length(); i++) {\n Character c = word.charAt(i);\n if (now.children[c - 'a'] == null) {\n now.children[c - 'a'] = new TrieNode();\n }\n now = now.children[c - 'a'];\n }\n now.hasWord = true;\n }", "public void add(String alphabetizedWord, String word){\n int index = word.length();\n if(index >= tree.size()){\n tree.setSize(index + 1);\n }\n if(tree.get(index) == null){\n tree.set(index, new Trie());\n }\n //add word to appropriate trie\n tree.get(index).addWord(alphabetizedWord, word);\n }", "public void putWord(String word) {\n if(index < words.length) {\n words[index] = word;\n }\n index++;\n }", "public static void addIntoPracticedWords(Word word) {\n word.setFavorited(true);\n favWords.add(word);\n // Set the word favourite status to true in dictionary after adding the word to practice list\n if (Dictionary.getDictionary().contains(word)) {\n Dictionary.getWord(word).setFavorited(true);\n }\n }", "public void addWord(String word) {\n TrieNode curr = root;\n for (char c : word.toCharArray()) {\n curr = curr.chars.computeIfAbsent(c, (k) -> new TrieNode());\n\n }\n curr.isWord = true;\n }", "public String add() {\r\n\t\tuserAdd = new User();\r\n\t\treturn \"add\";\r\n\t}", "public void addTWord(TWord tword){\n\t\tsentence.add(tword);\n\t}", "public void addWord(String word) {\n TrieNode node = root;\n char[] words = word.toCharArray();\n for (char c: words){\n if (node.children[c-'a'] == null){\n node.children[c-'a']=new TrieNode();\n }\n node = node.children[c-'a'];\n }\n node.item = word;\n }", "public void insert(String word) {\n insert(root, word, new Object(), 0);\n }", "boolean putWord(WordBean wordBean);", "public void addWord(String word) {\n TrieNode cur = root;\n for(char c : word.toCharArray()) {\n if(cur.next[c-'a'] == null) {\n cur.next[c-'a'] = new TrieNode(c);\n }\n cur = cur.next[c-'a'];\n }\n cur.isWord = true;\n }", "Builder addPotentialAction(String value);", "void addWordsToDoc(int doc,List<VocabWord> words);", "public void addTWord(String word){\n\t\tsentence.add(new TWord(word));\n\t}", "void addHas_action(Action newHas_action);", "public void addWord(Word englishWord, Word frenchWord) {\n\t\tdictFr.add(frenchWord);\n\t\tdictEn.add(englishWord);\n\t\twordsAdded(englishWord, frenchWord);\n\t}", "public void addWord(String word) {\n maxLength = Math.max(maxLength, word.length());\n\n TrieNode temp = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n if (temp.children[c - 'a'] == null) {\n temp.children[c - 'a'] = new TrieNode(c);\n }\n temp = temp.children[c - 'a'];\n }\n temp.isWord = true;\n }", "public boolean addThemeWord(String word){\r\n\t\treturn themeWords.add(word);\r\n\t}", "public void addWordCount(){\r\n\t\twordCount = wordCount + 1;\r\n\t}", "public abstract void addAction(Context context, NAAction action);", "private void addWordHelper( String word, int pos, TrieNode curNode )\n\t{\n\t\t//Check to see if the node has been occupied yet\n\t\tif( curNode.getLetters()[ (int)word.charAt(pos) - 97 ] == null )\n\t\t\t//If we are at the last character of the word\n\t\t\tif( pos >= word.length() - 1 )\n\t\t\t\t//Make sure the isWord property is set to true\n\t\t\t\tcurNode.setLetter( word.charAt( pos ), true );\n\t\t\telse\n\t\t\t\tcurNode.setLetter( word.charAt( pos ), false );\n\t\t\n\t\t//If it hasn't reached the last letter yet\n\t\tif( !( pos >= word.length() - 1 ) )\n\t\t\t//Keep on adding the word\n\t\t\taddWordHelper( word, pos + 1, curNode.getLetters()[ (int)word.charAt( pos ) - 97 ] );\n\t}", "public void addWord(String word) {\n // Write your code here\n TrieNode cur=root;\n for(int i=0;i<word.length();++i){\n char c=word.charAt(i);\n TrieNode nextNode=cur.children.get(c);\n if(nextNode==null){\n nextNode=new TrieNode();\n cur.children.put(c,nextNode);\n }\n cur=nextNode;\n }\n cur.hasWord=true;\n }", "public void addWord(String word) {\n TrieNode cur = root;\n for (int i=0; i<word.length(); i++) {\n int pos = word.charAt(i) - 'a';\n if (cur.next[pos] == null) {\n cur.next[pos] = new TrieNode();\n }\n cur = cur.next[pos];\n }\n cur.isWord = true;\n }", "public void addWord(String word) {\n //Corner Case\n if(word == null || word.length() == 0){\n return;\n }\n TrieNode node = root;\n int d = 0;\n \n while(d<word.length()){\n char c = word.charAt(d);\n if(node.next[c-'a']==null){\n node.next[c-'a'] = new TrieNode();\n }\n node = node.next[c-'a'];\n d++;\n }\n \n node.isWord = true;\n }", "void setWord(Word word);", "public void insert(String word) {\n this.root.insert(word);\n }", "public void addWord(String word) {\n char[] chs = word.toCharArray();\n TreeNode cur = root;\n for (int i = 0; i < chs.length; i++) {\n int ind = chs[i] - 'a';\n if (cur.map[ind] == null) {\n cur.map[ind] = new TreeNode();\n }\n cur = cur.map[ind];\n }\n cur.end = true;\n }", "public void addWord(String word) {\n TrieNode cur = root;\n for(int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n TrieNode node = cur.children.get(c);\n if(node == null) {\n node = new TrieNode();\n cur.children.put(c, node);\n }\n cur = node;\n }\n cur.isEnd = true;\n }", "public void addTWord(String word, String tag){\n\t\tTWord tword = new TWord(word, tag);\n\t\tsentence.add(tword);\n\t}", "public void addWord(String word) {\r\n Node node = root;\r\n for(char c : word.toCharArray()){\r\n node.nodes[c-'a'] = new Node();\r\n node = node.nodes[c-'a'];\r\n }\r\n node.isLeaf = true;\r\n }", "public void addWord(String word) {\r\n Trie node = root;\r\n for(char ch: word.toCharArray()){\r\n if(node.child[ch - 'a'] == null)\r\n node.child[ch - 'a'] = new Trie(ch);\r\n node = node.child[ch - 'a'];\r\n }\r\n node.end = true;\r\n }", "public void addWord(String word) {\n char[] wordChars = word.toCharArray();\n TrieNode curr = root;\n for (char c : wordChars) {\n if(curr.map.containsKey(c)) {\n curr = curr.map.get(c);\n } else {\n TrieNode newNode = new TrieNode();\n curr.map.put(c, newNode);\n curr = newNode;\n }\n }\n curr.isLeaf = true;\n }", "private void insertWordEntry(String file, String word, String partition) {\n\t\tArrayList<String> fileList = new ArrayList<String>();\n\t\tfileList.add(file);\n\t\tindexedDir.get(partition).put(word, fileList);\n\t}", "void skill( String key, String value ){\n developer.skills.add( value );\n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public void addWord(String word) {\n TrieNode curr = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n if (curr.children[c - 'a'] == null )\n curr.children[c - 'a'] = new TrieNode();\n curr = curr.children[c - 'a'];\n }\n curr.end = true;\n }", "public void addWord(String word)\n {\n TrieNode1 node = root;\n for (char c:word.toCharArray())\n {\n if (node.childerens[c-'a']==null)\n {\n node.childerens[c-'a'] = new TrieNode1();\n }\n node = node.childerens[c-'a'];\n }\n node.isEnd = true;\n\n }", "public void addToDictionary(String word, int n) {\n\t\tConcurrentNavigableMap<String, String> listVocabulary = dbStats\n\t\t\t\t.getTreeMap(\"voca\");\n\t\tString strTimes = listVocabulary.get(word);\n\t\tint times = 0;\n\t\tif (strTimes != null) {\n\t\t\ttimes = Integer.parseInt(strTimes);\n\t\t\ttimes = times + n;\n\t\t} else {\n\t\t\ttimes = n;\n\t\t}\n\t\tlistVocabulary.put(word, Integer.toString(times));\n\t}", "public void addWord(String word) {\n \tTrieNode curr=root;\n for(int i=0;i<word.length();i++){\n \tchar ch=word.charAt(i);\n \tif(curr.children[ch-'a']==null)\n \t\tcurr.children[ch-'a']=new TrieNode();\n \tif(i==word.length()-1)\n \t\tcurr.children[ch-'a'].isCompleteword=true;\n \t\n \tcurr=curr.children[ch-'a'];\n }\n }", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "public void addWord(String word) {\n if (word != null){\n Map<Character, TrieNode> children=root.children;\n for (int i=0;i<word.length();i++){\n char c=word.charAt(i);\n TrieNode t;\n if (children.containsKey(c)){\n t=children.get(c);\n }else {\n t=new TrieNode(c);\n children.put(c, t);\n }\n children=t.children;\n if (i==word.length()-1){\n t.isLeaf=true;\n }\n }\n }\n }", "public void addWord(String word) {\n TrieNode node = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n if (!node.children.containsKey(c)) {\n node.children.put(c, new TrieNode());\n }\n node = node.children.get(c);\n }\n node.isEnd = true;\n }", "public Dictionary() { //constructor\r\n try {\r\n createDictionary(); //create dictionary\r\n addCustomWords(); //add any user define words in it\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void insert(String word) { \n char[] w = word.toCharArray(); \n insert(root, w, 0); \n }", "public void setWord(String newWord)\n\t{\n\t\tword = newWord;\n\t}", "public void add(Mention mention, int sentenceOffset);", "public void addAction(Action action) {\n\t\t\n\t}", "public void insert(String word) {\n\t\tTrie curr = this;\n\t\tfor(Character ch : word.toCharArray()) {\n\t\t\tTrie n = curr.nodes[ch - 'a'];\n\t\t\t\n\t\t\tif (n == null) {\n\t\t\t\tn = new Trie();\n\t\t\t\tn.isWord = false;\n\t\t\t\tcurr.nodes[ch - 'a'] = n;\n\t\t\t}\n\t\t\t\n\t\t\tcurr = n;\n\t\t}\n\t\tcurr.isWord = true;\n\t}", "public void addWord(String word) {\n if (word !=null && word.length() > 0) {\n TrieNode t = this.root;\n for (int i = 0; i < word.length(); i++) {\n int offset = word.charAt(i) - 'a';\n if (t.children[offset] == null) {\n t.children[offset] = new TrieNode();\n }\n t = t.children[offset];\n if (i == word.length() - 1) {\n t.endWithWord = true;\n }\n }\n }\n }", "public void save() {\n MainActivity.db.updateWord(this);\n }", "@Override\n public void onClick(View view) {\n AddWordFromDaum();\n }", "public void dictionaryAdd(String engWord, String vietWord) {\n String[] explain = vietWord.split(\"\\n\");\n\n if (dictionary.getWordList().get(engWord) != null) {\n dictionary.getWordList().get(engWord).addAll(Arrays.asList(explain));\n } else {\n ArrayList<String> arrayList = new ArrayList<>(Arrays.asList(explain));\n dictionary.getWordList().put(engWord, arrayList);\n }\n }", "public void add (String word) {\n Trie pointeur ;\n\n if(word.length() != 0){\n String lettre = Character.toString(word.charAt(0));\n String ssChaine = word.substring(1);\n pointeur = this.fils.get(lettre);\n if(pointeur == null){\n pointeur = new Trie();\n this.fils.put(lettre,pointeur);\n\n }\n pointeur.add(ssChaine);\n if(ssChaine.length()==0){\n this.fin = true;\n }\n \n }\n \n }", "public void actionPerformed(ActionEvent event)\n\t\t\t\t{\n\t\t\t\t\tSet<String> currentDictionaryTree = treeHandler.convertFileToTree(selectedWord.dictionaryFile);\n\t\t\t\t\t\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tif(treeHandler.wordIsUnique(selectedWord.word, currentDictionaryTree)) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tselectedWord.added = true;\n\t\t\t\t\t\t\tout = new BufferedWriter(new FileWriter(selectedWord.dictionaryFile, true)); \n\t\t\t\t\t\t\tout.newLine();\n\t\t\t\t\t\t\tout.write(selectedWord.word);\n\t\t\t\t\t\t\tout.close();\n\n\t\t\t\t\t\t\t// Statistics updating after word is successfully added\n\t\t\t\t\t\t\tint loc = (selectedWord.inputFileIndex+1)*(selectedWord.dictionaryFileIndex+1);\n\t\t\t\t\t\t\tdisplay.numAdded.set(loc, Integer.valueOf(display.numAdded.get(loc) + 1));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\ttext.unhighlight(selectedWord);\n\t\t\t\t\t}\n\t\t\t\t\t/**\n\t\t\t\t * @exception IOException signals that there was an error in writing user added words to the corresponding dictionary\n\t\t\t\t */ \n\t\t\t\t\tcatch (IOException exception) \n\t\t\t\t\t{\n\t\t\t\t\t\texception.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}", "private void newWord() {\r\n defaultState();\r\n int random_id_String = 0;\r\n int random_id_Char[] = new int[4];\r\n Random random = new Random();\r\n if (wordNumber == WordCollection.NO_OF_WORDS) return;//quit if all word list is complete;\r\n wordNumber++;\r\n //in case the word has already occured\r\n while (currentWord.equals(\"\")) {\r\n random_id_String = random.nextInt(WordCollection.NO_OF_WORDS);\r\n currentWord = tempWord[random_id_String];\r\n }\r\n currentWord.toUpperCase();\r\n tempWord[random_id_String] = \"\";//so that this word will not be used again in the game session\r\n //generates 4 random nums each for each btn char\r\n for (int i = 0; i < 4; i++) {\r\n random_id_Char[i] = (random.nextInt(4));\r\n for (int j = i - 1; j >= 0; j--) {\r\n if (random_id_Char[i] == random_id_Char[j]) i--;\r\n }\r\n }\r\n\r\n btn1.setText((currentWord.charAt(random_id_Char[0]) + \"\").toUpperCase());\r\n btn2.setText((currentWord.charAt(random_id_Char[1]) + \"\").toUpperCase());\r\n btn3.setText((currentWord.charAt(random_id_Char[2]) + \"\").toUpperCase());\r\n btn4.setText((currentWord.charAt(random_id_Char[3]) + \"\").toUpperCase());\r\n }", "public void addElement(String word, String signature) {\n\t\tif(dictionaryMap.get(signature)!= null)\n\t\t\tdictionaryMap.get(signature).add(word);\n\t\telse {\n\t\t\tSet<String> newSignature = new TreeSet<>();\n\t\t\tnewSignature.add(word);\n\t\t\tdictionaryMap.put(signature, newSignature);\n\t\t}\n\t}", "private void addModifyButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addModifyButtonMouseClicked\n String inputWord = this.searchField.getText();\n String inputDefinition = this.getDefinitionTextArea().getText();\n WordDefinition wordToModifyAdd = new WordDefinition(inputWord, inputDefinition);\n \n // find the index of the matching tree\n char firstLetterOfWord = inputWord.toUpperCase().charAt(0);\n int index = -1;\n for(int i = 0 ; i < lexiNodeTrees.size() ; i++)\n {\n if(lexiNodeTrees.get(i).getCurrentCharacter() == firstLetterOfWord)\n {\n index = i;\n i = lexiNodeTrees.size();\n }\n }\n \n // if index was not found, we have to create a new tree\n if(index == -1)\n {\n lexiNodeTrees.add(new LexiNode(firstLetterOfWord));\n index = lexiNodeTrees.size() - 1;\n \n // only possibility here is to add the word since the tree was just craeted\n if(!lexiNodeTrees.get(index).addWord( wordToModifyAdd ))\n {\n // if there was an error adding the word \n JOptionPane.showMessageDialog(this, \"ERREUR: Le mot n'a pas pu \"\n + \"être modifié/ajouté\\n\\n\", \"ERREUR\", JOptionPane.ERROR_MESSAGE);\n }\n \n else // if add was successful\n {\n JOptionPane.showMessageDialog(this, \"Le mot a été ajouté!\\n\", \"INFORMATION\", \n JOptionPane.INFORMATION_MESSAGE);\n }\n }\n \n else // if index was found, we can modify/add the definition\n {\n if( !lexiNodeTrees.get(index).modifyWord( wordToModifyAdd ) )\n {\n System.out.println(\"hi\");\n // if there was an error modifying / adding the word \n JOptionPane.showMessageDialog(this, \"ERREUR: Le mot n'a pas pu \"\n + \"être modifié/ajouté\\n\\n\", \"ERREUR\", JOptionPane.ERROR_MESSAGE);\n }\n \n else // if modification was successful\n {\n JOptionPane.showMessageDialog(this, \"Le mot a été modifié!\\n\", \"INFORMATION\", \n JOptionPane.INFORMATION_MESSAGE);\n }\n }\n \n // refresh the list\n refreshAllWordsList();\n }", "public void insert(String word) {\n\t\t\tTrieNode curr = root;\n\t\t\tfor (char c : word.toCharArray()) {\n\t\t\t\tif (!curr.children.containsKey(c))\n\t\t\t\t\tcurr.children.put(c, new TrieNode());\n\t\t\t\tcurr = curr.children.get(c);\n\t\t\t}\n\t\t\tcurr.isWord = true;\n\t\t}", "int insert(WdWordDict record);", "public void insert(String word) {\n TrieNode node = root;\n\n // for each char in the word, add to the TrieNode\n for (char c: word.toCharArray()) {\n // if there are no such child, then we add it\n if (node.children[c - 'a'] == null) {\n node.children[c - 'a'] = new TrieNode(c);\n }\n // move the node to next layer\n node = node.children[c - 'a'];\n\n }\n // mark the isWord\n node.isWord = true;\n }" ]
[ "0.7500738", "0.7262029", "0.7016383", "0.6696395", "0.6637828", "0.6609512", "0.6530394", "0.6513059", "0.64716125", "0.6447993", "0.6425262", "0.6379843", "0.6361034", "0.63264173", "0.62980926", "0.6243838", "0.62421113", "0.6185356", "0.6178592", "0.61358005", "0.61088747", "0.6101987", "0.60519123", "0.6003586", "0.5995922", "0.5983995", "0.5969906", "0.5966223", "0.595411", "0.5934039", "0.58998066", "0.5889815", "0.5876058", "0.58713406", "0.5849603", "0.5848368", "0.5845817", "0.58424115", "0.5836261", "0.58280534", "0.58131474", "0.580431", "0.5784182", "0.5780302", "0.57713825", "0.5759521", "0.5740375", "0.5733171", "0.572708", "0.57208455", "0.57113004", "0.56994355", "0.5685573", "0.5673775", "0.56605804", "0.5660517", "0.5657604", "0.5653927", "0.5645748", "0.5634925", "0.5601884", "0.5598422", "0.55941355", "0.5578134", "0.5572397", "0.55540997", "0.55377847", "0.5529239", "0.5523807", "0.55197525", "0.5519645", "0.551788", "0.55071074", "0.54937154", "0.5479984", "0.5479164", "0.5478346", "0.54723465", "0.54550874", "0.5434647", "0.5433382", "0.54225343", "0.54192275", "0.5417162", "0.5417019", "0.5403287", "0.53991604", "0.53976256", "0.53878313", "0.53841907", "0.53839236", "0.53718746", "0.5367497", "0.5340308", "0.5329498", "0.53209203", "0.53133327", "0.5296859", "0.52949184", "0.52932584" ]
0.64886916
8
Add the word to the current user directory.
@Override public void actionPerformed(ActionEvent arg0) { UserDictionaryProvider provider = SpellChecker.getUserDictionaryProvider(); if (provider != null) { provider.addWord(word); } Dictionary dictionary = SpellChecker.getCurrentDictionary(); dictionary.add(word); dictionary.trimToSize(); AutoSpellChecker.refresh(jText); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addWord(String word) {\n root.addWord(word);\n }", "public void addWord(String word) {\n root = put(root, word, 0);\n }", "public void addWord(String word) {\n\t\taddWord(word, root);\n\t}", "public void addWord(String word) {\n trie.insert(word);\n }", "public void add(String word) {\n Signature sig = new Signature(word);\n add(sig, word);\n }", "public void add(String word, String file, int position) {\n\t \taddHelper(word, file, position);\n\t}", "public void addWord(Word word);", "public void addWord(String word) {\n CharNode target = root ;\n for(int i=0; i<word.length(); i++) {\n target = target.insertCharInChildren(word.charAt(i)) ;\n }\n target.end = true ;\n }", "private void insertWordEntry(String file, String word, String partition) {\n\t\tArrayList<String> fileList = new ArrayList<String>();\n\t\tfileList.add(file);\n\t\tindexedDir.get(partition).put(word, fileList);\n\t}", "public void addWord (String word) {\r\n word = word.toUpperCase ();\r\n if (word.length () > 1) {\r\n String s = validateWord (word);\r\n if (!s.equals (\"\")) {\r\n JOptionPane.showMessageDialog (null, \"The word you have entered contained invalid characters\\nInvalid characters are: \" + s, \"Error\",\r\n JOptionPane.ERROR_MESSAGE);\r\n return;\r\n }\r\n checkEasterEgg (word);\r\n words.add (word);\r\n Components.wordList.getContents ().addElement (word);\r\n } else {\r\n JOptionPane.showMessageDialog (null, \"The word you have entered does not meet the minimum requirement length of 2\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "private void wordAdd(String word){\n if (!fileWords.containsKey(word)){\n fileWords.put(word,1);\n if (probabilities.containsKey(word)) {\n double oldCount = probabilities.get(word);\n probabilities.put(word, oldCount+1);\n } else {\n probabilities.put(word, 1.0);\n }\n }\n }", "public void add(String word) {\n\t\twordList.add(word);\n\t\t// TODO Add your code here\n\t}", "public void addWord(String word) {\n // Write your code here\n TrieNode now = root;\n for(int i = 0; i < word.length(); i++) {\n Character c = word.charAt(i);\n if (!now.children.containsKey(c)) {\n now.children.put(c, new TrieNode());\n }\n now = now.children.get(c);\n }\n now.hasWord = true;\n }", "public void insert(String word) {\r\n tree.add(word);\r\n }", "public void addWord(String word) {\n TrieNode curr = root;\n for (char c : word.toCharArray()) {\n curr = curr.chars.computeIfAbsent(c, (k) -> new TrieNode());\n\n }\n curr.isWord = true;\n }", "public void addWord(String word) {\n TrieNode cur = root;\n for(char c : word.toCharArray()) {\n if(cur.next[c-'a'] == null) {\n cur.next[c-'a'] = new TrieNode(c);\n }\n cur = cur.next[c-'a'];\n }\n cur.isWord = true;\n }", "public void addWord(String word) {\n TrieNode cur = root;\n for(int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n TrieNode node = cur.children.get(c);\n if(node == null) {\n node = new TrieNode();\n cur.children.put(c, node);\n }\n cur = node;\n }\n cur.isEnd = true;\n }", "public void addWord(String word) {\n TrieNode node = root;\n char[] words = word.toCharArray();\n for (char c: words){\n if (node.children[c-'a'] == null){\n node.children[c-'a']=new TrieNode();\n }\n node = node.children[c-'a'];\n }\n node.item = word;\n }", "public void addWord(String word) {\n // Write your code here\n TrieNode now = root;\n for(int i = 0; i < word.length(); i++) {\n Character c = word.charAt(i);\n if (now.children[c - 'a'] == null) {\n now.children[c - 'a'] = new TrieNode();\n }\n now = now.children[c - 'a'];\n }\n now.hasWord = true;\n }", "public void populateWord(String word) {\n\t\tthis.add(word);\n\t}", "public boolean addWord(String word) {\n return false;\n }", "public void addWord(String word) {\n TrieNode cur = root;\n for (int i=0; i<word.length(); i++) {\n int pos = word.charAt(i) - 'a';\n if (cur.next[pos] == null) {\n cur.next[pos] = new TrieNode();\n }\n cur = cur.next[pos];\n }\n cur.isWord = true;\n }", "public void addWord(String word) {\n TrieNode curr = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n if (curr.children[c - 'a'] == null )\n curr.children[c - 'a'] = new TrieNode();\n curr = curr.children[c - 'a'];\n }\n curr.end = true;\n }", "public void addWord(String word) {\n TrieNode node = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n if (!node.children.containsKey(c)) {\n node.children.put(c, new TrieNode());\n }\n node = node.children.get(c);\n }\n node.isEnd = true;\n }", "private void addWordHelper( String word, int pos, TrieNode curNode )\n\t{\n\t\t//Check to see if the node has been occupied yet\n\t\tif( curNode.getLetters()[ (int)word.charAt(pos) - 97 ] == null )\n\t\t\t//If we are at the last character of the word\n\t\t\tif( pos >= word.length() - 1 )\n\t\t\t\t//Make sure the isWord property is set to true\n\t\t\t\tcurNode.setLetter( word.charAt( pos ), true );\n\t\t\telse\n\t\t\t\tcurNode.setLetter( word.charAt( pos ), false );\n\t\t\n\t\t//If it hasn't reached the last letter yet\n\t\tif( !( pos >= word.length() - 1 ) )\n\t\t\t//Keep on adding the word\n\t\t\taddWordHelper( word, pos + 1, curNode.getLetters()[ (int)word.charAt( pos ) - 97 ] );\n\t}", "public void addWord(String word) {\n maxLength = Math.max(maxLength, word.length());\n\n TrieNode temp = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n if (temp.children[c - 'a'] == null) {\n temp.children[c - 'a'] = new TrieNode(c);\n }\n temp = temp.children[c - 'a'];\n }\n temp.isWord = true;\n }", "public static Path getWordsDir() {\n\t\treturn Paths.get(prefs.get(Constants.PREF_USERSAVE_DIR, null)).resolve(WORDS_DIR);\n\t}", "public void addWord(String word) {\n // Write your code here\n TrieNode cur=root;\n for(int i=0;i<word.length();++i){\n char c=word.charAt(i);\n TrieNode nextNode=cur.children.get(c);\n if(nextNode==null){\n nextNode=new TrieNode();\n cur.children.put(c,nextNode);\n }\n cur=nextNode;\n }\n cur.hasWord=true;\n }", "public static void addKeyWord(String word)\r\n\t{\r\n\t\tkeywords.add(word);\r\n\t}", "public void addWord(String word) {\r\n Node node = root;\r\n for(char c : word.toCharArray()){\r\n node.nodes[c-'a'] = new Node();\r\n node = node.nodes[c-'a'];\r\n }\r\n node.isLeaf = true;\r\n }", "public void addWord(String word) {\n char[] chs = word.toCharArray();\n TreeNode cur = root;\n for (int i = 0; i < chs.length; i++) {\n int ind = chs[i] - 'a';\n if (cur.map[ind] == null) {\n cur.map[ind] = new TreeNode();\n }\n cur = cur.map[ind];\n }\n cur.end = true;\n }", "public void addWord(String word) {\r\n Trie node = root;\r\n for(char ch: word.toCharArray()){\r\n if(node.child[ch - 'a'] == null)\r\n node.child[ch - 'a'] = new Trie(ch);\r\n node = node.child[ch - 'a'];\r\n }\r\n node.end = true;\r\n }", "public void insert(String word) {\n insert(root, word, new Object(), 0);\n }", "public void addWord(String word) {\n if (word != null){\n Map<Character, TrieNode> children=root.children;\n for (int i=0;i<word.length();i++){\n char c=word.charAt(i);\n TrieNode t;\n if (children.containsKey(c)){\n t=children.get(c);\n }else {\n t=new TrieNode(c);\n children.put(c, t);\n }\n children=t.children;\n if (i==word.length()-1){\n t.isLeaf=true;\n }\n }\n }\n }", "public void add (String word) {\n Trie pointeur ;\n\n if(word.length() != 0){\n String lettre = Character.toString(word.charAt(0));\n String ssChaine = word.substring(1);\n pointeur = this.fils.get(lettre);\n if(pointeur == null){\n pointeur = new Trie();\n this.fils.put(lettre,pointeur);\n\n }\n pointeur.add(ssChaine);\n if(ssChaine.length()==0){\n this.fin = true;\n }\n \n }\n \n }", "public void insert(String word) {\n this.root.insert(word);\n }", "public boolean addThemeWord(String word){\r\n\t\treturn themeWords.add(word);\r\n\t}", "public void addWord(String word) {\n //Corner Case\n if(word == null || word.length() == 0){\n return;\n }\n TrieNode node = root;\n int d = 0;\n \n while(d<word.length()){\n char c = word.charAt(d);\n if(node.next[c-'a']==null){\n node.next[c-'a'] = new TrieNode();\n }\n node = node.next[c-'a'];\n d++;\n }\n \n node.isWord = true;\n }", "public void addWord(String word)\n {\n TrieNode1 node = root;\n for (char c:word.toCharArray())\n {\n if (node.childerens[c-'a']==null)\n {\n node.childerens[c-'a'] = new TrieNode1();\n }\n node = node.childerens[c-'a'];\n }\n node.isEnd = true;\n\n }", "public void addWord(String word) {\n \tTrieNode curr=root;\n for(int i=0;i<word.length();i++){\n \tchar ch=word.charAt(i);\n \tif(curr.children[ch-'a']==null)\n \t\tcurr.children[ch-'a']=new TrieNode();\n \tif(i==word.length()-1)\n \t\tcurr.children[ch-'a'].isCompleteword=true;\n \t\n \tcurr=curr.children[ch-'a'];\n }\n }", "public AddWordAction(JTextComponent jText, String word) {\r\n this(jText, word, Utils.getResource(\"Adicionar ao dicionário\"));\r\n }", "public void addWord(String word) {\n dataStructure.put(word, \"\");\n }", "void addWordToDoc(int doc,VocabWord word);", "public void addWord(String word) {\n if (word !=null && word.length() > 0) {\n TrieNode t = this.root;\n for (int i = 0; i < word.length(); i++) {\n int offset = word.charAt(i) - 'a';\n if (t.children[offset] == null) {\n t.children[offset] = new TrieNode();\n }\n t = t.children[offset];\n if (i == word.length() - 1) {\n t.endWithWord = true;\n }\n }\n }\n }", "public void addWord(String word) {\n char[] wordChars = word.toCharArray();\n TrieNode curr = root;\n for (char c : wordChars) {\n if(curr.map.containsKey(c)) {\n curr = curr.map.get(c);\n } else {\n TrieNode newNode = new TrieNode();\n curr.map.put(c, newNode);\n curr = newNode;\n }\n }\n curr.isLeaf = true;\n }", "@FXML\n\tpublic void addWord() {\n\n\t\twordList.add(new Word(TextFieldWord.getText(), TextFieldDescribe.getText(), liczbaznakow));\n\n\t\ttry {\n\n\t\t\tout = new PrintWriter(selectedFile);\n\n\t\t\tfor (int i = 0; i < wordList.size(); i++) {\n\n\t\t\t\tout.printf(\"%s;%s;%d;\",\n\n\t\t\t\t\t\twordList.get(i).getWord(), wordList.get(i).getDescribe(), wordList.get(i).getLiczbaznakow());\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (out != null)\n\t\t\t\tout.close();\n\t\t}\n\t}", "public void addWord(String word) {\n HashMap<Character, TrieNode> children = root.children;\n TrieNode Tnode;\n char[] charArray = word.toCharArray();\n for (int i = 0; i < word.length(); i++) {\n if (children.containsKey(charArray[i])) {\n Tnode = children.get(charArray[i]);\n }\n else\n {\n Tnode = new TrieNode(charArray[i]);\n children.put(charArray[i], Tnode);\n }\n children = Tnode.children;\n\n if (i == word.length() - 1) {\n Tnode.isLeaf = true;\n }\n }\n }", "public void add(LLNodeHash word){\n if (!checkWord(word)){\n put(word);\n }\n }", "public void add(String alphabetizedWord, String word){\n int index = word.length();\n if(index >= tree.size()){\n tree.setSize(index + 1);\n }\n if(tree.get(index) == null){\n tree.set(index, new Trie());\n }\n //add word to appropriate trie\n tree.get(index).addWord(alphabetizedWord, word);\n }", "public void insert(String word) { \n char[] w = word.toCharArray(); \n insert(root, w, 0); \n }", "private static void addDir(String s) throws IOException { This enables the java.library.path to be modified at runtime\n // From a Sun engineer at\n // http://forums.sun.com/thread.jspa?threadID=707176\n //\n try {\n Field field = ClassLoader.class.getDeclaredField(\"usr_paths\");\n\n field.setAccessible(true);\n String[] paths = (String[]) field.get(null);\n for (String path : paths) {\n if (s.equals(path)) {\n return;\n }\n }\n String[] tmp = new String[paths.length + 1];\n System.arraycopy(paths, 0, tmp, 0, paths.length);\n tmp[paths.length] = s;\n field.set(null, tmp);\n System.setProperty(\"java.library.path\", System.getProperty(\"java.library.path\")\n + File.pathSeparator + s);\n } catch (IllegalAccessException e) {\n throw new IOException(\"Failed to get permissions to set library path\");\n } catch (NoSuchFieldException e) {\n throw new IOException(\"Failed to get field handle to set library path\");\n }\n }", "public void putWord(String word) {\n if(index < words.length) {\n words[index] = word;\n }\n index++;\n }", "public void insert(String word) {\n TrieNode node = root;\n\n // for each char in the word, add to the TrieNode\n for (char c: word.toCharArray()) {\n // if there are no such child, then we add it\n if (node.children[c - 'a'] == null) {\n node.children[c - 'a'] = new TrieNode(c);\n }\n // move the node to next layer\n node = node.children[c - 'a'];\n\n }\n // mark the isWord\n node.isWord = true;\n }", "public void addWord(String word) {\n all.add(word);\n TrieNode head = root;\n \n for (char i :word.toCharArray()){\n\n int k = i-'a';\n if (head.child[k]==null)\n {\n head.child[k] = new TrieNode();\n }\n head = head.child[k];\n \n }\n head.end = true;\n }", "public void addToFile(User newUser){\r\n //If the user name is not already in the file then we do not want to re-add the user.\r\n if (f.searchForUsername(newUser.getUsername()) == -1) {\r\n newUser.setPassword(encrypt(newUser.getPassword()));\r\n f.write(newUser);\r\n } else {\r\n System.err.println(\"User already exists\");\r\n }\r\n }", "public void insert(String word) {\n\t\t\tTrieNode curr = root;\n\t\t\tfor (char c : word.toCharArray()) {\n\t\t\t\tif (!curr.children.containsKey(c))\n\t\t\t\t\tcurr.children.put(c, new TrieNode());\n\t\t\t\tcurr = curr.children.get(c);\n\t\t\t}\n\t\t\tcurr.isWord = true;\n\t\t}", "@Override\n public void insert(String word) {\n root = insertIterative(word, root);\n }", "public void insert(String word) {\n Entry tempRoot = root;\n for(int i=0; i<word.length(); i++){\n char ch = word.charAt(i);\n Entry childNode = tempRoot.getChildNode(ch);\n if(childNode == null){\n tempRoot.setChildNode(new Entry(), ch);\n }\n tempRoot = tempRoot.getChildNode(ch);\n }\n\n tempRoot.setIsWord(true);\n }", "public void insert(String word) {\n TrieNode current = root;\n for(char c : word.toCharArray()){\n int index = c - 'a';\n if(current.childrens[index] == null)\n current.childrens[index] = new TrieNode(c);\n current = current.childrens[index];\n }\n current.eow = true;\n }", "public void insert(String word) {\n\t\tcur = root;\n\t\tfor (char c : word.toCharArray()) {\n\t\t\tif (cur.children[c - 'a'] == null) {\n\t\t\t\tcur.children[c - 'a'] = new TrieNode(c);\n\t\t\t}\n\t\t\tcur = cur.children[c - 'a'];\n\t\t}\n\t\tcur.isWord = true;\n\t}", "public void insert(String word) {\n TrieNode n = root;\n for(char c : word.toCharArray()) {\n if(n.children[c]==null) {\n n.children[c] = new TrieNode();\n }\n n = n.children[c];\n }\n n.isWord = true;\n n.word = word;\n }", "public void insert(String word) {\n TrieNode curr = root;\n for (char c : word.toCharArray()) {\n int idx = c - 'a';\n if (curr.children[idx] == null) {\n curr.children[idx] = new TrieNode();\n }\n curr = curr.children[idx];\n }\n curr.isWord = true;\n }", "public void addWord(String word) {\n if (word == null || word.equals(\"\")) return;\n char[] str = word.toCharArray();\n WordDictionary cur = this;\n for (char c: str) {\n if (cur.letters[c - 'a'] == null) cur.letters[c - 'a'] = new WordDictionary();\n cur = cur.letters[c - 'a'];\n }\n cur.end = true;\n }", "private void addToRoot(String line) {\r\n String[] components = line.split(\"\\\",\\\"\"); //get all components of line, that are [word, type, meaning]\r\n removeSpaces(components); //remove space and extra symbol from all components\r\n\r\n if (components.length == 3) { //if the components are valid\r\n\r\n boolean[] status = dict.addWord(components[0], components[1], components[2], 'a'); //try adding in add mode\r\n\r\n if (status[1]) { // if word already exists but have other meaning so need to append the meaning\r\n dict.addWord(components[0], components[1], components[2], 'u'); //add in update mdoe\r\n }\r\n }\r\n\r\n //System.out.println(\"Added word : \" + components[0]);\r\n }", "public void insert(String word) {\n TrieNode curr = root;\n for(char c : word.toCharArray()) {\n int idx = c - 'a';\n if(curr.children[idx] == null) {\n curr.children[idx] = new TrieNode();\n }\n curr = curr.children[idx];\n }\n curr.isWord = true;\n }", "public void insert(String word) {\n if (word == null) {\n return;\n }\n if (value == null) {\n value = new ArrayList<>();\n }\n value.add(word);\n }", "public static void save(Directory directory) {\n\t\tUtils.FileUtils.write(\n\t\t\t\tdirectory.getDocuments(), \n\t\t\t\tGlobal.Constants.DIRECTORY_LOCATION \n\t\t\t\t+ Global.Variables.session.getCurrentUser().getName() \n\t\t\t\t+ \"$\" + directory.getName()\n\t\t\t\t);\n\t}", "public void insert(String word) {\n TrieNode p = root;\n for (char c : word.toCharArray()) {\n int childIndex = (int)(c - 'a');\n if (p.children[childIndex] == null) {\n p.children[childIndex] = new TrieNode();\n }\n p = p.children[childIndex];\n }\n p.isWord = true;\n }", "public void insert(String word) {\n TrieNode cur = root;\n for (int i = 0 ; i < word.length(); i ++) {\n char ch = word.charAt(i);\n if (! cur.children.containsKey(ch)) {\n TrieNode child = new TrieNode(ch);\n cur.children.put(ch, child);\n }\n cur = cur.children.get(ch);\n }\n cur.isEnd = true;\n }", "private void storeKeyWord(String keyWord) {\n SharedPrefsUtils.setStringPreference(application.getApplicationContext(),\"KEY\",keyWord);\n }", "private void add_word(String word, String definition, String subword){\n\t\trepresentative_letter = subword.charAt(0);\n\t\tboolean child_has_been_added = false;\n\t\t\n\t\t//If we already have a child with that representative_letter, we\n\t\t//send the rest of the word to him.\n\t\tfor(LexiNode child: childs){\n\t\t\tif(subword.length() > 1 && subword.toLowerCase().charAt(1) == Character.toLowerCase(child.getRepresentative_letter())){\n\t\t\t\tchild.add_word(word, definition, subword.substring(1));\n\t\t\t\tchild_has_been_added = true;\n\t\t\t}\n\t\t}\n\t\tif(!child_has_been_added){\n\t\t\tif(subword.length() > 1){\n\t\t\t\tLexiNode child = new LexiNode();\n\t\t\t\tchilds.add(child);\n\t\t\t\ttry{\n\t\t\t\t\tchild.add_word(word, definition, subword.substring(1));\n\t\t\t\t}\n\t\t\t\tcatch(StringIndexOutOfBoundsException e){\n\t\t\t\t\tSystem.out.println(\"Error: \" + e);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (subword.length() == 1) {\n\t\t\t\tthis.current_word = word;\n\t\t\t\tthis.definition = definition;\n\t\t\t}\n\t\t}\n\t}", "public void insert(String word) {\n Node current = root;\n for (int i = 0; i < word.length(); ++i) {\n int c = word.charAt(i) - 'a';\n if (current.children[c] == null)\n current.children[c] = new Node(c);\n current = current.children[c];\n }\n current.isWord = true;\n }", "public void insert(String word) {\n TrieNode node = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n if (node.ch[c - 'a'] == null) {\n node.ch[c - 'a'] = new TrieNode();\n }\n node = node.ch[c - 'a'];\n }\n node.word = word;\n }", "public void addUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk addUser\");\r\n\t}", "private void insertPartitionEntry(String file, String word, String partition) {\n\t\tArrayList<String> fileList = new ArrayList<String>();\n\t\tfileList.add(file);\n\t\tMap<String, ArrayList<String>> wordMap = new HashMap<String, ArrayList<String>>();\n\t\twordMap.put(word, fileList);\n\n\t\tindexedDir.put(partition, wordMap);\n\t}", "public void SaveWord(String phrase) {\n\tOrdBok.SaveWord(phrase, 30);\r\n }", "public boolean add(String word) {\r\n\t\treturn dict.add(word);\r\n\t}", "public void insert(String word) {\n \tTrieNode cur=root;\n \tfor (int i = 0; i < word.length(); i++) {\n \t\t\tint ch=word.charAt(i)-'a';\n \t\t\tif(cur.next[ch]==null) {\n \t\t\t\tcur.next[ch]=new TrieNode();\n \t\t\t}\n \t\t\tcur=cur.next[ch];\n \t\t}\n \tcur.val=word;\n \tcur.isEnd=true;\n }", "public void insert(String word) {\n TrieNode cur = root;\n HashMap<Character, TrieNode> curChildren = root.children;\n char[] wordArray = word.toCharArray();\n for(int i = 0; i < wordArray.length; i++){\n char wc = wordArray[i];\n if(curChildren.containsKey(wc)){\n cur = curChildren.get(wc);\n } else {\n TrieNode newNode = new TrieNode(wc);\n curChildren.put(wc, newNode);\n cur = newNode;\n }\n curChildren = cur.children;\n if(i == wordArray.length - 1){\n cur.hasWord= true;\n }\n }\n }", "public void insert(String word){\n //initially curr is root\n TrieNode curr = root;\n for(int i=0; i<word.length(); i++){\n char c = word.charAt(i);\n //if char doesnot exist, add new trienode\n if(curr.children[c-'a'] == null){\n curr.children[c-'a'] = new TrieNode();\n }\n //curr++\n curr = curr.children[c-'a'];\n }\n //set curr.word to the word\n curr.word = word;\n }", "public void insert(String word) {\n\t\tTrie curr = this;\n\t\tfor(Character ch : word.toCharArray()) {\n\t\t\tTrie n = curr.nodes[ch - 'a'];\n\t\t\t\n\t\t\tif (n == null) {\n\t\t\t\tn = new Trie();\n\t\t\t\tn.isWord = false;\n\t\t\t\tcurr.nodes[ch - 'a'] = n;\n\t\t\t}\n\t\t\t\n\t\t\tcurr = n;\n\t\t}\n\t\tcurr.isWord = true;\n\t}", "private void addCustomWords() {\r\n\r\n }", "public void insert(String word) {\n Trie root = this;\n for (char c : word.toCharArray()) {\n if (root.next[c - 'a'] == null) {\n root.next[c - 'a'] = new Trie();\n }\n root = root.next[c - 'a'];\n }\n root.word = word;\n }", "public void setCurrent_word(String current_word){\n\t\tthis.current_word = current_word;\n\t}", "public void addPos(String word, IPosition pos);", "public void setWord(String newWord)\n\t{\n\t\tword = newWord;\n\t}", "public void insert(String word) {\n Node curr = root;\n\n for(int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n\n if(curr.children[c - 'a'] == null) {\n curr.children[c - 'a'] = new Node(c);\n }\n\n curr = curr.children[c - 'a'];\n }\n\n curr.isWord = true;\n }", "private static void addDirectoryToLibraryPath(String dir) throws IOException {\n try {\n Field field = ClassLoader.class.getDeclaredField(\"usr_paths\");\n field.setAccessible(true);\n String[] paths = (String[]) field.get(null);\n for (String path: paths) {\n if (dir.equals(path)) {\n return;\n }\n }\n String[] tmp = new String[paths.length + 1];\n System.arraycopy(paths, 0, tmp, 0, paths.length);\n tmp[paths.length] = dir;\n field.set(null, tmp);\n } catch (IllegalAccessException e) {\n throw new IOException(\"Failed to get permissions to set library path.\");\n } catch (NoSuchFieldException e) {\n throw new IOException(\"Failed to get field handle to set library path.\");\n }\n }", "public void add(String word, String url) {\n \n // don't need to add this word if it's a stop word\n for (String stopWord : Settings.getStopWords()) {\n if (word.equalsIgnoreCase(stopWord)) return;\n }\n \n // don't need to add this word if it's already in here\n StringNode check = locate(word);\n if (check != null) {\n check.getPagesContainingWord().add(url);\n return;\n }\n \n // not a stop word, not present--need to add it\n StringNode newNode = new StringNode(word, new URLLinkedList());\n newNode.getPagesContainingWord().add(url);\n if (first == null) { // if first is null, there's nothing in the list\n first = newNode; // set first to this new node\n newNode.getPagesContainingWord().add(url);\n }\n else { // first isn't null, so we want to find the correct place to put this new node\n StringNode current = first;\n // this barebones linked list is very inconvenient, so we have to make a special \n // check for the first item in the list.\n if (word.compareTo(current.getWord()) < 0) { // the word in the new node goes before the word in the first node\n first = newNode; // now the new node is the first one\n newNode.setNext(current); // and its next is the old first one\n }\n else if (!current.hasNext()) { // no next node, so this word goes after current\n current.setNext(newNode);\n }\n else { // new node doesn't go before first, so check the rest of the list\n boolean newNodePlaced = false;\n StringNode previous;\n while (current.hasNext() && !newNodePlaced) { \n previous = current;\n current = current.getNext(); // grab next node\n if (word.compareTo(current.getWord()) < 0) { // new word goes before this one\n// StringNode oldNext = current.getNext();\n// current.setNext(newNode);\n// newNode.setNext(oldNext);\n// newNodePlaced = true;\n previous.setNext(newNode);\n newNode.setNext(current);\n newNodePlaced = true;\n }\n }\n if (!newNodePlaced) { // if we're here and haven't yet placed the node, it goes at the end\n current.setNext(newNode);\n }\n }\n }\n size++;\n }", "public void insert(String word) {\n Node curr = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n Node subNode = curr.subNodes[c - 'a'];\n if (subNode == null) {\n subNode = new Node(c);\n curr.subNodes[c - 'a'] = subNode;\n }\n if (i == word.length() - 1) {\n subNode.isWord = true;\n }\n curr = subNode;\n }\n }", "public void insert(String word) {\n Node node = root;\n char[] chars = word.toCharArray();\n for (char c: chars) {\n int idx = c - 'a';\n Node next = node.children[idx];\n if (next == null) {\n next = new Node(null);\n node.children[idx] = next;\n }\n node = next;\n }\n node.val = word;\n }", "private static void addUser(String filename, String username, String userkey) {\n\t\ttry {\n\t\t\t// Open the user file, create new one if not exists\n\t\t\tFileWriter fileWriterUser = new FileWriter(filename, true);\n\t\t\t// User BufferedWriter to add new line\n\t\t\tBufferedWriter bufferedWriterdUser = new BufferedWriter(fileWriterUser);\n\n\t\t\t// Concatenate user name and key with a space\n\t\t\tbufferedWriterdUser.write(username + \" \" + userkey);\n\t\t\t// One user one line\n\t\t\tbufferedWriterdUser.newLine();\n\n\t\t\t// Always close files.\n\t\t\tbufferedWriterdUser.close();\n\t\t}\n\t\tcatch(FileNotFoundException ex) {\n\t\t\tSystem.out.println(\"Unable to open file '\" + filename + \"'\");\n\t\t}\n\t\tcatch(IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public void add(String word) {\n if (hashTable.contains(word)) {\n hashTable.put(word, hashTable.get(word) + 1);\n }\n else {\n hashTable.put(word,1);\n }\n }", "public void insert(String word) {\n Node currentNode = head;\n for (int i = 0; i < word.length(); i++) {\n char currentChar = word.charAt(i);\n if (currentNode.children.get(currentChar - 'a') == null) {\n currentNode.children.set(currentChar - 'a', new Node(false));\n }\n currentNode = currentNode.children.get(currentChar - 'a');\n }\n currentNode.setIsFinished(true);\n }", "public void insert(String word) {\n\t\t\n\t\tTrieNode current = root;\n\t\t\t\t\n\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\t\n\t\t\tCharacter ch = word.charAt(i);\n\t\t\t\n\t\t\tif (!current.getChild().containsKey(ch)) {\n\t\t\t\tTrieNode newNode = new TrieNode();\n\t\t\t\tcurrent.getChild().put(ch, newNode);\n\t\t\t}\n\t\t\t\n\t\t\tcurrent = current.getChild().get(ch);\t\n\t\t}\n\t\t\n\t\tcurrent.isLeaf = true;\t \n\t}", "public void insert(String word) {\n TrieNode node = root;\n\n for (char c: word.toCharArray()) {\n if (node.children[c - 'a'] == null) \n node.children[c - 'a'] = new TrieNode();\n\n node = node.children[c - 'a'];\n }\n\n node.word = word;\n }", "public void insert(String word) {\n\n int length = word.length();\n TrieNode node = root;\n for(int i=0; i<length; i++) {\n char curr = word.charAt(i);\n if(!node.containsKey(curr)){\n node.put(curr, new TrieNode());\n }\n node = node.get(curr);\n }\n node.setEnd();\n }", "public static void addIntoPracticedWords(Word word) {\n word.setFavorited(true);\n favWords.add(word);\n // Set the word favourite status to true in dictionary after adding the word to practice list\n if (Dictionary.getDictionary().contains(word)) {\n Dictionary.getWord(word).setFavorited(true);\n }\n }", "public void insert(String word) {\n TrieNode now = root;\n for(int i = 0; i < word.length(); i++) {\n Character c = word.charAt(i);\n if (!now.children.containsKey(c)) {\n now.children.put(c, new TrieNode());\n }\n now = now.children.get(c);\n }\n now.hasWord = true;\n}", "private void addFolder(){\n }" ]
[ "0.6489381", "0.644485", "0.6402157", "0.61583424", "0.611918", "0.60807765", "0.60222274", "0.59904236", "0.5912507", "0.59082323", "0.58545023", "0.5848224", "0.581429", "0.577529", "0.5759445", "0.57578266", "0.5731658", "0.5730758", "0.57151675", "0.5693262", "0.5685826", "0.56589764", "0.5654575", "0.56514156", "0.5647913", "0.56428206", "0.5640512", "0.56145084", "0.56133795", "0.5589674", "0.55780804", "0.5574915", "0.55488783", "0.5545422", "0.55346227", "0.5533344", "0.55324036", "0.55286235", "0.55245537", "0.5522897", "0.55141973", "0.5496851", "0.54883724", "0.5477696", "0.5473679", "0.54732484", "0.5445037", "0.543746", "0.5406723", "0.5405323", "0.5368807", "0.53645533", "0.53366303", "0.5332878", "0.53292114", "0.52804345", "0.52609545", "0.5252492", "0.5241513", "0.52306396", "0.52293676", "0.52229327", "0.52087235", "0.5208228", "0.5205211", "0.5203781", "0.5199313", "0.51976407", "0.51928884", "0.51925784", "0.51903737", "0.5184936", "0.517553", "0.5169977", "0.51609486", "0.51608783", "0.5156485", "0.5156074", "0.51550084", "0.51444244", "0.51357275", "0.5135271", "0.5134296", "0.513252", "0.51266456", "0.51162815", "0.5113272", "0.5108211", "0.51070654", "0.5098483", "0.50983864", "0.5094899", "0.5081629", "0.5075025", "0.50748956", "0.5071753", "0.5069494", "0.5066748", "0.50657594", "0.50652647" ]
0.55499625
32
TODO Autogenerated method stub
@Override public void update(StockDataRecord bo) throws SQLException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public StockDataRecord get(int id) throws SQLException, BusinessObjectException { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
System.out.println(bo.getPapername().toString()+";"+bo.getDate().toString()+";"+bo.getTime().toString()+";"+Double.toString(bo.getClose())+";"+Double.toString(bo.getVolume())); /if (this.checkRecordExistence(bo.getPapername().toString(), bo.getDate().toString(), bo.getTime().toString(), Double.toString(bo.getClose()), Double.toString(bo.getVolume())) ) throw new BusinessObjectException("This record is already exists.");
@Override public void create(StockDataRecord bo) throws SQLException, BusinessObjectException { this.addRecord( bo.getPapername().toString(), bo.getDate().toString(), bo.getTime().toString(), Double.toString(bo.getClose()), Double.toString(bo.getVolume()) ); bo.get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tvoid existDataInDBTest() {\n\t\tparkName = \"Haifa Park\";\n\t\tdate = new Date(120, 2, 1);\n\t\texpected = \"1 2 3 4 5 6 1 23 2 8 9 2 3 2 4 3 2 2 1 1 1 5 32 6 12 7 23 8 12 5 32 6 12 5 23 7\";\n\t\tresult = ReportsController.getReport(date, reportType, parkName);\n\n\t\tassertEquals(expected, result);\n\n\t}", "@Test\n\tvoid existDataInDBTest2() {\n\t\tparkName = \"Tel-Aviv Park\";\n\t\tdate = new Date(120, 5, 1);\n\t\texpected = \"11 22 33 44 55 66 17 23 5 8 4 2 3 2 54 34 2 32 1 61 1 75 32 46 12 67 23 82 12 56 32 36 12 85 232 7\";\n\t\tresult = ReportsController.getReport(date, reportType, parkName);\n\n\t\tassertEquals(expected, result);\n\n\t}", "public void createNewStock(Stock stock) throws DuplicateEntry, InvalidDateEntry {\n\t\tif (!validateDate(stock.getDate())) {\n\t\t\tlog.error(\"Date entered is a future date for:\" + stock.getStock() + \"date given : \" + stock.getDate());\n\t\t\tthrow new InvalidDateEntry(\n\t\t\t\t\t\"Date entered is a future date for: \" + stock.getStock() + \" date given : \" + stock.getDate());\n\t\t}\n\n\t\tif (checkForDuplicates(new StockId(stock.getStock(), stock.getDate()))) {\n\t\t\tlog.error(\"Duplcate Record for :\" + stock.getStock() + \"on \" + stock.getDate());\n\t\t\tthrow new DuplicateEntry(\"Duplcate Record for : \" + stock.getStock() + \" on \" + stock.getDate());\n\t\t}\n\n\t\tstockRepo.save(stock);\n\n\t}", "private void givenExchangeRateExistsForABaseAndDate() {\n }", "int insert(ItemStockDO record);", "int insert(ItemStockDO record);", "int insert(FinancialManagement record);", "@Override\r\n\tpublic boolean createBooking(Booking_IF bk) {\r\n\t\tPreparedStatement myStatement = null;\r\n\t\tString query = null;\r\n\t\tint count = 0;\r\n\t\ttry{\r\n\t\t\tquery = \"insert into Booking values(?,?);\";\r\n\t\t\tmyStatement = myCon.prepareStatement(query);\r\n\t\t\tmyStatement.setInt(2, bk.getUserid());\r\n\t\t\tmyStatement.setInt(1, bk.getShiftid());\r\n\t\t\tcount = myStatement.executeUpdate();\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally{\r\n\t\t\ttry {\r\n\t\t\t\tif (myStatement != null)\r\n\t\t\t\t\tmyStatement.close();\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(count!=1){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t}", "public boolean save()\n {//Save\n boolean savesucc=false;\n\n //INITIALISE USER OBJECT...\n hws.setItemCode(txtIC.getText());\n hws.setDate(txtDate.getText());\n hws.setItem(cboHW.getSelectedItem()+\"\");\n hws.setBrand(txtBrand.getText());\n hws.setSerial(txtSerial.getText());\n hws.setCapacity(txtCap.getText());\n hws.setMB(txtRMB.getText());\n hws.setSpeed(txtSpeed.getText());\n hws.setCPUType(txtCPT.getText());\n hws.setQuality(cboQuality.getSelectedItem()+\"\");\n hws.setIssued(cboIS.getSelectedItem()+\"\");\n hws.setEmpCode(EmpCode);\n hws.setWarranty(txtWar.getText());\n hws.setRemarks(txtRemarks.getText());\n\n try\n {\n savesucc = hwscon.insertData(hws);\n StartWorking(\"ADDING NEW RECORD\");\n JOptionPane.showMessageDialog(null, \"Server: Record Added!\", \"Information\", 1);\n getConnected();\n\n }catch(RemoteException re)\n {\n System.out.println(\"Client [frmHWStock]: SAVE DATA Error\");System.out.println(\"Error: \"+re.getMessage());\n JOptionPane.showMessageDialog(null, \"SAVE DATA Error\\nClient [frmHWStock]: \"+re.getMessage(),\n \"Error\", JOptionPane.ERROR_MESSAGE);\n return savesucc;\n }\n\n return savesucc;\n }", "void checkStationUIExists() {\n\n int recordCount = 9999;\n int duplicateCount = 0;\n\n String where = MrnStation.DATE_START + \"=\" +\n Tables.getDateFormat(station.getDateStart()) +\n \" and \" + MrnStation.LATITUDE +\n \" between \" + (station.getLatitude()-areaRangeVal) +\n \" and \" + (station.getLatitude()+areaRangeVal) +\n \" and \" + MrnStation.LONGITUDE +\n \" between \" + (station.getLongitude()-areaRangeVal) +\n \" and \" + (station.getLongitude()+areaRangeVal) ;\n if (dbg) System.out.println(\"<br>checkStationUIExists: where = \" + where);\n //outputDebug(\"checkStationUIExists: where = \" + where);\n\n MrnStation[] stns = new MrnStation().get(where);\n if (dbg) System.out.println(\"<br>checkStationUIExists: stns.length = \" + stns.length);\n //outputDebug(\"checkStationUIExists: number of stations found = \" + stns.length);\n\n String debugMessage = \"\\ncheckStationUIExists: duplicate UI check \\n \" +\n station.getDateStart(\"\").substring(0,10) +\n \", \" + ec.frm(station.getLatitude(),10,5) +\n \", \" + ec.frm(station.getLongitude(),10,5) +\n \", \" + station.getStnnam(\"\") +\n \" (\" + station.getStationId(\"\") + \")\";\n\n if (stns.length == 0) {\n outputDebug(debugMessage + \": duplicate UI not found\");\n } else {\n\n outputDebug(debugMessage);\n\n // check for duplicate station names (stnnam)\n while (recordCount > 0) {\n\n // count station names the same\n recordCount = 0;\n for (int i = 0; i < stns.length; i++) {\n if (stns[i].getStnnam(\"\").equals(station.getStnnam(\"\"))) {\n recordCount++;\n } // if (stns[i].getStnnam(\"\").equals(station.getStnnam(\"\")))\n } // for (int i = 0; i < stns.length; i++)\n\n if (dbg) System.out.println(\"<br>checkStationUIExists: recordCount = \" +\n recordCount + \", stnnam = \" + station.getStnnam(\"\"));\n\n debugMessage = \" \" + station.getStnnam(\"\") +\n \", recordCount (same stnnam) = \" + recordCount;\n\n if (recordCount > 0) {\n duplicateCount++;\n\n station.setStnnam(station.getStnnam(\"\") + duplicateCount);\n\n debugMessage += \" - new stnnam = \" +\n station.getStnnam(\"\");\n //outputDebug(debugMessage);\n if (dbg) System.out.println(\"checkStationUIExists: new stnnam = \" +\n station.getStnnam(\"\"));\n }// if (recordCount > 0)\n\n outputDebug(debugMessage);\n\n } // while (recordCount > 0)\n\n } // if (stns.length == 0)\n\n }", "if (payDateTime == adhocTicket.getPaidDateTime()) {\n System.out.println(\"Paid Date Time is passed\");\n }", "int insert(SupplyNeed record);", "int insert(OpeningRequirement record);", "int insert(SrmFundItem record);", "int insertSelective(SwmsStockOutRecordDetail record);", "int insert(Drug_OutWarehouse record);", "public boolean recordTrade(Trade trade) throws Exception;", "int insert(R_dept_trade record);", "@Override\n\tpublic void test00500Add_Validate_ExistingRecord() throws Exception\n\t{\n\t}", "public boolean exists() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry { return myData.record.exists(background.getClient()); }\n\t\tcatch (LDBException e) { setStatus(e); }\n\t\treturn false;\n\t}", "int insert(SellType record);", "public void verifyData() {\n\n saveDay();\n\n }", "int insert(DashboardGoods record);", "int insert(PineAlarm record);", "public void addCertainRow(String bookname, String ISBN, String author, String description,\n String quantity, String publisher, String category)\n {\n String insertStr;\n try{\n\n insertStr=\"INSERT IGNORE INTO material (bookname, ISBN, author, description, quantity, publisher, category) VALUES(\"\n +quotate(bookname)+\",\"\n +quotate(ISBN)+\",\"\n +quotate(author)+\",\"\n +quotate(publisher)+\",\"\n +quotate(quantity)+\",\"\n +quotate(publisher)+\",\"\n +quotate(category)\n +\")\";\n\n stmt.executeUpdate(insertStr);\n\n } catch(Exception e){\n System.out.println(\"Error occurred in inserting data\");\n }\n return;\n }", "int insert(NeeqCompanyAccountingFirmOnline record);", "int insert(SalGrade record);", "int insert(BasicInfoAnodeBurningLossRate record);", "int insert(PayLogInfoPo record);", "public boolean addBike(Bike bike, DockingStation dock){\n String dateTimeNow = new SimpleDateFormat(TIME_FORMAT).format(Calendar.getInstance().getTime());\n \tint bikeId = 1;\n \tdouble latitude;\n \tdouble longitude;\n double chargingLvl;\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(INSERT);\n PreparedStatement ps2 = con.prepareStatement(INSERT_DATA);\n PreparedStatement ps3 = con.prepareStatement(BIKE_ID_TYPE + bike.getTypeId());\n ResultSet rs = ps3.executeQuery()){\n \n con.setAutoCommit(false);\n \n if(rs.next()){\n int maxBikeId = rs.getInt(cBikeID);\n if(maxBikeId == 0){\n bikeId = bike.getTypeId() * 1000;\n }else{\n bikeId += maxBikeId;\n }\n }else{\n return false;\n }\n\n ps.setInt(1, bikeId);\n ps.setDate(2, bike.getSqlDate());\n ps.setDouble(3, bike.getPrice());\n ps.setString(4, bike.getMake());\n ps.setInt(5, bike.getTypeId());\n if(bike.getStationId() == 0){\n ps.setNull(6, INTEGER);\n }else{\n ps.setInt(6, bike.getStationId());\n }\n \n if (dock != null){\n latitude = dock.getCoordinateLat();\n longitude = dock.getCoordinateLng();\n chargingLvl = 100;\n ps.setInt(6, dock.getStationId());\n }else if(bike.getBikeData() != null){\n latitude = bike.getBikeData().getLatitude();\n longitude = bike.getBikeData().getLongitude();\n chargingLvl = bike.getBikeData().getChargingLvl();\n }else{ //If there's no selected dock or data input for the bike\n latitude = 63.434903; // The latitude & longitude of the \"company\"\n longitude = 10.402521;\n chargingLvl = 100;\n }\n ps2.setInt(1, bikeId);\n ps2.setString(2, dateTimeNow);\n ps2.setDouble(3,latitude);\n ps2.setDouble(4, longitude);\n ps2.setDouble(5, chargingLvl);\n ps2.setNull(6, INTEGER);\n\n ps.executeUpdate();\n ps2.executeUpdate();\n con.commit();\n con.setAutoCommit(true);\n return true;\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return false;\n }", "int insert(GoodsPo record);", "public static void test() {\n\n Reservation res1 =\n new Reservation(\n -1,\n \"Standard\",\n \"0000111\",\n Timestamp.valueOf(\"2019-06-11 16:10:00\"),\n Timestamp.valueOf(\"2019-06-15 09:00:00\"),\n \"525 W Broadway\",\n \"Vancouver\");\n ReservationsController.makeReservation(res1);\n\n RentalConfirmation rc1 =\n RentalsController.rentVehicle(res1, \"Mastercard\", \"389275920888492\", \"08/22\");\n\n System.out.println(\"Getting the rental added to the database\");\n Rental check = RentalsController.getRental(rc1.getRid());\n System.out.println(check);\n ArrayList<RentalReportCount> rentals =\n RentalsController.getDailyRentalCount(\"2019-11-20\", null, null);\n if (rentals != null && rentals.isEmpty()) {\n System.out.println(\"list is empty\");\n }\n System.out.println(rentals);\n\n RentalsController.deleteRental(rc1.getRid());\n }", "@Override\n\t\tpublic boolean checkReportIfExist(ArrayList<Object> msg) {\n\t\t\tString parkName = (String) msg.get(2);\n\t\t\tint month = ((Date) msg.get(1)).getMonth() + 1;\n\t\t\tif (hashMapDB.get(parkName).get(month) == null)\n\t\t\t\treturn false;\n\t\t\treturn true;\n\t\t}", "public boolean checkForAbsenceInDB(Absence absence) throws SQLException {\n int studentKey = absence.getStudentKey();\n java.sql.Date sqlDate = java.sql.Date.valueOf(absence.getDate()); // converts LocalDate date to sqlDate\n try(Connection con = dbc.getConnection()){\n String SQLStmt = \"SELECT * FROM ABSENCE WHERE StudentKey = '\" + studentKey + \"' AND DATE = '\" + sqlDate+\"';\";\n Statement stmt = con.createStatement();\n ResultSet rs = stmt.executeQuery(SQLStmt);\n while(rs.next())\n {\n return true; // Absence found\n }\n }\n return false; // No Absence found\n }", "int insert(Appraise record);", "int insert(FinMonthlySnapModel record);", "protected static Book goodBookValues(String bidField, String bnameField, String byearField, String bpriceField, String bauthorField, String bpublisherField) throws Exception{\n Book myBook;\n String [] ID,strPrice;\n String Name;\n int Year;\n double Price;\n \n try{\n ID = bidField.split(\"\\\\s+\"); // split using spaces\n if (ID.length > 1 || ID[0].equals(\"\")) // id should only be one word\n {\n throw new Exception (\"ERROR: The ID must be entered\\n\"); // if the id is empty, it must be conveyed to this user via this exception\n }\n if (ID[0].length() !=6) // id must be 6 digits\n throw new Exception (\"ERROR: ID must be 6 digits\\n\");\n if (!(ID[0].matches(\"[0-9]+\"))) // id must only be numbers\n throw new Exception (\"ERROR: ID must only contain numbers\");\n Name = bnameField;\n if (Name.equals(\"\")) // name must not be blank\n throw new Exception (\"ERROR: Name of product must be entered\\n\");\n if (byearField.equals(\"\") || byearField.length() != 4) // year field cannot be blank\n {\n throw new Exception (\"ERROR: Year of product must be 4 numbers\\n\");\n } else {\n Year = Integer.parseInt(byearField);\n if (Year > 9999 || Year < 1000)\n {\n throw new Exception (\"Error: Year must be between 1000 and 9999 years\");\n }\n }\n \n strPrice = bpriceField.split(\"\\\\s+\");\n if (strPrice.length > 1 || strPrice[0].equals(\"\"))\n Price = 0;\n else\n Price = Double.parseDouble(strPrice[0]);\n \n myBook = new Book(ID[0],Name,Year,Price,bauthorField,bpublisherField);\n ProductGUI.Display(\"Book fields are good\\n\");\n return myBook;\n } catch (Exception e){\n throw new Exception (e.getMessage());\n }\n \n }", "if (exitDateTime == adhocTicket.getExitDateTime()) {\n System.out.println(\"Exit Date Time is passed\");\n }", "int insert(BookInfo record);", "void investmentCheckBondExist(Bond bond) throws BankException, BondException {\n throw new BankException(\"This account does not support this feature\");\n }", "public static void main(String args[])\n {\n Location location = new Location(\"Depok\", \"Jawa Brat\", \"sebuah kota bukan kata\");\n DatabaseSupplier.addSupplier(new Supplier(\"Bambang\", \"[email protected]\", \"085866669999\",location));\n System.out.println(\"====Supplier Already Exist====\");\n DatabaseSupplier.addSupplier(new Supplier(\"Bambang\", \"[email protected]\", \"085966669999\",location));\n// for (Supplier i: DatabaseSupplier.getSupplierDatabase()\n// ) {\n// System.out.println(i);\n// }\n DatabaseItem.addItem(new Item(\"Ian\", ItemStatus.Refurbished, 10000, DatabaseSupplier.getSupplier(1), ItemCategory.Stationery));\n System.out.println(\"====Customer Already Exist====\");\n DatabaseItem.addItem(new Item(\"Ian\", ItemStatus.New, 10000, DatabaseSupplier.getSupplier(1), ItemCategory.Stationery));\n// for (Item i: DatabaseItem.getItemDatabase())\n// {\n// System.out.println(i);\n// }\n\n DatabaseCustomer.addCustomer(new Customer(\"Shiroe\", \"[email protected]\", \"shiroe69\", \"Shiroe2019\", 2010, 10, 1));\n System.out.println(\"====Supplier Item Exist====\");\n DatabaseCustomer.addCustomer(new Customer(\"Shiroe\", \"[email protected]\", \"shiroe70\", \"Shiroe2019\", 2010, 10, 2));\n// for (Customer i: DatabaseCustomer.getCustomerDatabase())\n// {\n// System.out.println(i);\n// }\n ArrayList<Integer> item = new ArrayList<Integer>();\n item.add(1);\n\n DatabaseInvoice.addInvoice(new Sell_Unpaid(item, DatabaseCustomer.getCustomer(1)));\n System.out.println(\"====Invoice Already Exist====\");\n DatabaseInvoice.addInvoice(new Sell_Unpaid(item, DatabaseCustomer.getCustomer(1)));\n\n System.out.println(\"====Invoice Not Found====\");\n DatabaseInvoice.removeInvoice(100);\n System.out.println(\"====Customer Not Found====\");\n DatabaseCustomer.removeCustomer(100);\n System.out.println(\"====Supplier Not Found====\");\n DatabaseSupplier.removeSupplier(100);\n System.out.println(\"====Item Not Found====\");\n DatabaseItem.removeItem(100);\n Customer customer2 = new Customer(\"Shiroe7\", \"[email protected]\", \"sh77iroe70\", \"Shiroe20i19\", 2010, 10, 2);\n System.out.println(\"====Dont Have Active====\");\n DatabaseInvoice.getActiveOrder(customer2);\n DatabaseCustomer.addCustomer(customer2);\n\n System.out.println(\"====Result====\");\n for (Supplier i: DatabaseSupplier.getSupplierDatabase())\n {\n System.out.println(i);\n }\n\n for (Customer i: DatabaseCustomer.getCustomerDatabase())\n {\n System.out.println(i);\n }\n\n for (Item i: DatabaseItem.getItemDatabase())\n {\n System.out.println(i);\n }\n\n for (Invoice i: DatabaseInvoice.getInvoiceDatabase())\n {\n System.out.println(i);\n }\n\n\n\n // for (Invoice i: DatabaseInvoice.getInvoiceDatabase())\n// {\n// System.out.println(i);\n// }\n Transaction.finishTransaction(DatabaseInvoice.getInvoice(1));\n Transaction.finishTransaction(DatabaseInvoice.getInvoice(3));\n// for (Invoice i: DatabaseInvoice.getInvoiceDatabase())\n// {\n// System.out.println(i);\n// }\n// Transaction.cancelTransaction(DatabaseInvoice.getInvoice(1));\n// for (Invoice i: DatabaseInvoice.getInvoiceDatabase())\n// {\n// System.out.println(i);\n// }\n }", "int insert(CustomReport record);", "int insert(BusinessRepayment record);", "boolean isComponentTempRecordExist(Record inputRecord);", "int insert(InternalTradeEpa022016 record);", "int insert(TCpyYearCheck record);", "public int saveRideDetail(String source,String destination,String timestamp,String userid,String type,String schedule,String sourcell,String destinationll,String genderpre)\n {\n int i=0;\n try\n {\n Connection con=getConnection();\n Double ts=Double.parseDouble(timestamp);\n PreparedStatement displaySta = con.prepareStatement(\"insert into ridedata(timestamp,source,destination,userid,type,schedule,sourcell,destinationll,pref,done)values(?,?,?,?,?,?,?,?,?,?)\");\n displaySta.setString(1, timestamp );\n displaySta.setString(2, source );\n displaySta.setString(3, destination );\n displaySta.setString(4, userid );\n displaySta.setString(5, type );\n displaySta.setString(6, schedule );\n displaySta.setString(7, sourcell );\n displaySta.setString(8, destinationll );\n displaySta.setString(9,genderpre);\n displaySta.setString(10,\"No\");\n i=displaySta.executeUpdate();\n displaySta.close();\n con.close();\n }\n catch(Exception ex)\n {\n System.out.println(ex.getMessage());\n }\n \n \n return i;\n }", "@Test\n\tvoid addReportDataToDBTest() {\n\t\tparkName = \"Haifa Park\";\n\t\tboolean condition = false;\n\t\tdate = new Date(120, 4, 1);\n\t\texpected = \"1 2 3 4 5 6 1 23 2 8 9 2 3 2 4 3 2 2 1 1 1 5 32 6 12 7 23 8 12 5 32 6 12 5 2 5\";\n\n\t\tString[] str = expected.split(\" \");\n\n\t\tif (ReportsController.CheckReportExistInDB(reportType, date, parkName))\n\t\t\tassertTrue(condition);\n\n\t\tReportsController.addReportToDB(reportType, date, new ArrayList<>(Arrays.asList(str)), parkName);\n\n\t\tresult = ReportsController.getReport(date, reportType, parkName);\n\n\t\tassertEquals(expected, result);\n\n\t}", "int insert(TBBearPer record);", "private void checkAndCompleteData(Shipping3VO vo, boolean create) throws Exception {\r\n\t\tif (create) {\r\n\t\t\tif (vo.getShippingId() != null) {\r\n\t\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\t\"Primary key is already set! This must be done automatically. Please, set it to null!\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (vo.getShippingId() == null) {\r\n\t\t\t\tthrow new IllegalArgumentException(\"Primary key is not set for update!\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t// check value object\r\n\t\tvo.checkValues(create);\r\n\t\t// TODO check primary keys for existence in DB\r\n\t}", "int insert(ActivityHongbaoPrize record);", "int insert(Report record);", "public boolean checkDuplicates() {\n List<Booking> dupbookings = new ArrayList<>();\n try {\n dupbookings = bookingHelper.checkDuplicates(b_facility.getId(), b_evdate, b_startTime, b_endTime);\n } catch (Exception e) {\n //facesMessage(\"No other bookings found for the day and time\");\n }\n return dupbookings.size() > 0;\n }", "@Override\n\tprotected boolean isExist(AbnormalDevice record) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void test00400Add_DuplicateRecord() throws Exception\n\t{\n\t\t// This method will not fail with Generate card numbers set to Y\n\t}", "public boolean insert(XINT_STD_REGIS_EXAM objval) {\n String sql = \"insert into XINT_STD_REGIS_EXAM(STD_CODE,YEAR,SEMESTER,COURSE_NO,EXAM_DATE,EXAM_PERIOD,EXAM_TYPE,INSERT_DATE) \"\n + \"values(?,?,?,?,TO_DATE(?, 'dd/mm/yyyy', 'NLS_CALENDAR=''THAI BUDDHA'' NLS_DATE_LANGUAGE=THAI'),?,?,SYSDATE)\";\n\n String[] genCol = {\"STD_CODE\"};\n int chk = db.insertRc(genCol, sql, objval.getSTD_CODE(), objval.getYEAR(), objval.getSEMESTER(), objval.getCOURSE_NO(),\n objval.getEXAM_DATE(), objval.getEXAM_PERIOD(), objval.getEXAM_TYPE());\n\n try {\n if (chk > 0) {\n return true;\n } else {\n return false;\n }\n } catch (Exception e) {\n return false;\n }\n\n }", "int insert(EcsSupplierRebate record);", "public void validateAdd(Stock s){\n Set<String> stock_symbols_set = new HashSet<>();\n for(Stock stock: stockList){\n stock_symbols_set.add(stock.getStockSymbol());\n }\n if(stock_symbols_set.contains(s.getStockSymbol())){\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setIcon(R.drawable.baseline_warning_black_36);\n builder.setMessage(\"Stock Symbol \" + s.getStockSymbol() + \" is already displayed. \");\n builder.setTitle(\"Duplicate Stock\");\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n else{\n stockList.add(s);\n //keep the list in alphabetical order\n Collections.sort(stockList, new Comparator<Stock>() {\n @Override\n public int compare(Stock t1, Stock t2) {\n return t1.getStockSymbol().compareTo(t2.getStockSymbol());\n }\n });\n\n writeJSONData();\n myAdapter.notifyDataSetChanged();\n }\n }", "String insert(BookDO record);", "int insert(IntegralBook record);", "int insertSelective(ItemStockDO record);", "@Test\n @DisplayName(\"Deve lançar erro de negocio ao tentar salvar um livro com isbn duplicado\")\n public void shouldNotSaveABookWithDuplicatedISBN() {\n given(bookToSaveMocked.getIsbn()).willReturn(BookHelperTest.DOM_CASMURRO_ISBN);\n given(bookRepositoryMocked.existsByIsbn(BookHelperTest.DOM_CASMURRO_ISBN)).willReturn(true);\n\n // When execute save\n Throwable exception = Assertions.catchThrowable(() -> bookService.save(bookToSaveMocked));\n\n // Then validate exception\n assertThat(exception)\n .isNotNull()\n .isInstanceOf(BusinessException.class)\n .hasMessage(\"Isbn ja cadastrado\");\n\n // And verify mocks interaction\n verify(bookToSaveMocked, times(1)).getIsbn();\n verify(bookRepositoryMocked, times(1)).existsByIsbn(BookHelperTest.DOM_CASMURRO_ISBN);\n }", "private void saveExpositionInDB(String badgeID, int expoSiteId, int expoMonth, int expoYear,\n Date expoDateBegin, Date expoDateEnd, String expoValue)\n throws SQLException {\n\n // do not process exposition is its value is 'M'.\n if(expoValue.equalsIgnoreCase(\"M\")){\n Logger.log(\"Skipped exposition because value is 'M'. (\"+badgeID+\",\"+expoMonth+\",\"+expoValue+\")\",Logger.ERROR_LEVEL_INFO);\n }\n else{\n try{\n // check if value is an integer, otherwise, skip\n Integer.parseInt(expoValue);\n\n // find badgePersonId exposed to this exposition\n psGetPersonIds.setString(1,badgeID);\n psGetPersonIds.setInt(2,expoSiteId);\n psGetPersonIds.setString(3,expoYear+\"\");\n psGetPersonIds.setString(4,expoYear+\"\");\n psGetPersonIds.setTimestamp(5,new Timestamp(expoDateBegin.getTime()));\n psGetPersonIds.setTimestamp(6,new Timestamp(expoDateEnd.getTime()));\n psGetPersonIds.setTimestamp(7,new Timestamp(expoDateBegin.getTime()));\n psGetPersonIds.setTimestamp(8,new Timestamp(expoDateEnd.getTime()));\n ResultSet rs = psGetPersonIds.executeQuery();\n\n // convert to site-id to site-name\n String expoSite = \"\";\n if(expoSiteId==1) expoSite = \"DOEL\";\n else if(expoSiteId==2) expoSite = \"TIHANGE\";\n else if(expoSiteId==3) expoSite = \"IRE\";\n else if(expoSiteId==4) expoSite = \"OTHER\";\n\n // at least one badge found, so add the expoValue to table Items.\n int personCount = 0, personid;\n while(rs.next()){\n // get personid belonging to the found badge\n personid = rs.getInt(\"BadgePersonId\");\n\n // create 3 items to be stored\n itemVOs = new Vector();\n\n // expoValue\n itemType = PREFIX+\"ITEM_TYPE_DOSIMETRY_\"+expoSite+\"_GLOBAL_MONTH\"+expoMonth;\n itemVO = new ItemVO(new Integer(IdentifierFactory.getInstance().getTemporaryNewIdentifier()),itemType,expoValue,new Date(),null);\n itemVOs.add(itemVO);\n\n // badgeID\n itemType = PREFIX+\"ITEM_TYPE_DOSIMETRY_BADGEID_\"+expoSite;\n itemVO = new ItemVO(new Integer(IdentifierFactory.getInstance().getTemporaryNewIdentifier()),itemType,badgeID,new Date(),null);\n itemVOs.add(itemVO);\n\n // expoYear\n itemType = PREFIX+\"ITEM_TYPE_DOSIMETRY_REGISTRATIONYEAR\";\n itemVO = new ItemVO(new Integer(IdentifierFactory.getInstance().getTemporaryNewIdentifier()),itemType,expoYear+\"\",new Date(),null);\n itemVOs.add(itemVO);\n\n storeTransaction(personid,itemVOs,expoSite,expoYear);\n personCount++;\n }\n\n rs.close();\n psGetPersonIds.close();\n // rs empty, no badge found\n if(personCount == 0){\n Logger.log(\"No Badges with BadgeId (\"+badgeID+\") for site (\"+expoSite+\",\"+expoSiteId+\") found in year (\"+expoYear+\").\",Logger.ERROR_LEVEL_INFO);\n }\n }\n // expoValue is no integer\n catch(NumberFormatException e){\n Logger.log(\"Exposition value is no Integer. (\"+badgeID+\",\"+expoMonth+\",\"+expoValue+\")\",Logger.ERROR_LEVEL_ERROR);\n if(Debug.enabled) Debug.println(\"ERROR : Exposition value is no Integer. (\"+badgeID+\",\"+expoMonth+\",\"+expoValue+\")\");\n }\n }\n }", "public void insert() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry { myData.record.save(background.getClient()); }\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "@Test\n public void testCheckExists()\n throws SQLException, ClassNotFoundException, InstantiationException,\n IllegalAccessException\n {\n int existingQuizId = 2;\n int unexistingQuizId = 945273;\n try {\n QuizModel.checkExists(existingQuizId);\n }\n catch (NoQuizFoundException e) {\n fail(\"A quiz should have been found.\");\n }\n try {\n QuizModel.checkExists(unexistingQuizId);\n fail(\"NO quiz should have been found.\");\n }\n catch (NoQuizFoundException e) {\n \n }\n }", "@Test\r\n public void testCreate() throws Exception {\r\n System.out.println(\"create\");\r\n Bureau obj = new Bureau(0,\"Test\",\"000000000\",\"\");\r\n BureauDAO instance = new BureauDAO();\r\n instance.setConnection(dbConnect);\r\n Bureau expResult = new Bureau(0,\"Test\",\"000000000\",\"\");\r\n Bureau result = instance.create(obj);\r\n \r\n assertEquals(\"sigles différents\",expResult.getSigle(), result.getSigle());\r\n assertEquals(\"tel différents\",expResult.getTel(), result.getTel());\r\n //etc\r\n assertNotEquals(\"id non généré\",expResult.getIdbur(),result.getIdbur());\r\n int idclient=result.getIdbur();\r\n obj=new Bureau(0,\"Test\",\"000000000\",\"\");\r\n try{\r\n Bureau result2 = instance.create(obj);\r\n fail(\"exception de doublon non déclenchée\");\r\n instance.delete(result2);\r\n }\r\n catch(SQLException e){}\r\n instance.delete(result);\r\n \r\n obj=new Bureau(0,\"Test2\",\"000000001\",\"\");\r\n try{\r\n Bureau result3 = instance.create(obj);\r\n fail(\"exception de code postal non déclenchée\");\r\n instance.delete(result3);\r\n }\r\n catch(SQLException e){}\r\n \r\n }", "int insert(Goods record);", "public boolean createPersonalDetails(Integer staffID, String surname, String name, Date dob, String address, String town, String county,\n String postCode, String telNo, String mobileNo, String emergencyContact, String emergencyContactNo){\n\n\n hrDB.addPDRecord(staffID, surname, name, dob, address, town, county,\n postCode, telNo, mobileNo, emergencyContact, emergencyContactNo);\n return true;\n\n\n }", "private String CheckRecordExistInAlarmDB(String alarmCount) {\n DataHolder mDataHolder;\n String url = \"select * from \" + mDbHelper.mTableAlarm + \" where \" + mDbHelper.mFieldAlarmUserId + \"= '\" + mPreferenceHelper.getUserId() + \"'\" + \" and \" + mDbHelper.mFieldAlarmCountNo + \"= '\" + alarmCount + \"'\";\n System.out.println(\" URL : \" + url);\n mDataHolder = mDbHelper.read(url);\n if (mDataHolder != null) {\n System.out.println(\" AlarmList : \" + url + \" : \" + mDataHolder.get_Listholder().size());\n if (mDataHolder != null && mDataHolder.get_Listholder().size() != 0) {\n return mDataHolder.get_Listholder().get(0).get(mDbHelper.mFieldAlarmLocalID);\n } else {\n return \"-1\";\n }\n }\n return \"-1\";\n }", "public int shareupp(Long comp_id, Long no_share)throws Exception {\n\tint i,j = 0,k = 0;\r\n\tjava.util.Date d=new java.util.Date();\r\n\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\tString s1=sd.format(d);\r\n\ti=DbConnect.getStatement().executeUpdate(\"update share_details set no_share=no_share+\"+no_share+\" where comp_id=\"+comp_id+\" and DATEOFTRANS='\"+s1+\"'\");\r\n\trs=DbConnect.getStatement().executeQuery(\"select * from moreshare where types='bought' and DATEOFTRANS='\"+s1+\"'\");\r\n\tif(rs.next()==true)\r\n\t{\r\n\t\tk=DbConnect.getStatement().executeUpdate(\"update moreshare set no_share=no_share+\"+no_share+\" where COMP_ID=\"+comp_id+\" and types='bought' and DATEOFTRANS='\"+s1+\"'\");\r\n\t}\r\n\telse\r\n\t{\r\n\t\tj=DbConnect.getStatement().executeUpdate(\"insert into moreshare values(\"+comp_id+\",\"+no_share+\",'bought','\"+s1+\"')\");\t\r\n\t}\r\n\t\r\n\tSystem.out.println(\"k value\"+k+\"and j value\"+j);\r\nreturn i;\r\n}", "int insert(FundsPackageRatio record);", "private boolean isExist(String name, Date date) {\n\t\t\n\t\tString sql = \"SELECT * from `expenses` WHERE Name='\"+name+\"' AND Date='\"+date+\"';\";\n\t\tResultSet rs = this.queryHandler.executeQuery(sql);\n\t\ttry {\n\t\t\tboolean exist = false;\n\t\t\twhile(rs.next()) {\n\t\t\t\texist = true;\n\t\t\t}\n\t\t\treturn exist;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.queryHandler.close();\n\t\treturn false;\n\t}", "public boolean checkIfExisting(ServiceRequest sr) throws SQLException\r\n {\r\n \tSystem.out.println(\"Entered checkIfExisting service request...\");\r\n \t\r\n \tSession session = sessionFactory.getCurrentSession();\r\n \tServiceRequest existingSR = null;\r\n \tboolean existing = false;\r\n \t\r\n \tint serviceId = 0;\r\n \tString preferredDate = null;\r\n \t\r\n \tQuery query = null;\r\n \t\r\n \tif (sr != null)\r\n \t{\r\n \t\tserviceId = sr.getServiceId();\r\n \t\tpreferredDate = sr.getPreferredDate();\r\n \t\t\r\n \t\tSystem.out.println(\"===================== serviceId: \" + serviceId);\r\n \t\tSystem.out.println(\"===================== preferredDate: \" + preferredDate);\r\n \t\t\r\n \t\t\r\n \t\ttry\r\n \t\t{\r\n \t\t\tquery = session.createQuery(GET_DUPLICATE_SERVICE_REQUEST_HQL);\r\n \t\t\r\n \t\tquery.setParameter(\"serviceId\", serviceId);\r\n \t\t\tquery.setParameter(\"preferredDate\", preferredDate);\r\n \t\t\t\r\n \t\t\tif (query.list() != null && query.list().size() > 0)\r\n \t\t\t{\r\n \t\t\t\texistingSR = (ServiceRequest) query.list().get(0);\r\n \t\t\t\t\r\n \t\t\t\tif (existingSR != null)\r\n \t \t{\r\n \t \t\tSystem.out.println(\"=========== existingSR ID: \" + existingSR.getId());\r\n \t \t\texisting = true;\r\n \t \t}\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"=========== NO DUPLICATE! \");\r\n \t\t\t}\r\n \t\t\t\r\n \t\t}\r\n \t\tcatch (Exception ex)\r\n \t\t{\r\n \t\t\tthrow new SQLException(\"Error in validating the request \" + ex.getMessage(), ex);\r\n \t\t}\t\r\n }\r\n \t\r\n \treturn existing;\r\n }", "@Test\n void checkBidAddedAfterSubscribeBidding(){\n tradingSystem.subscriberBidding(NofetID,NconnID,storeID,1,2950,1);\n boolean added=false;\n for (Bid b:store.getBids()\n ) {\n if(b.getProductID()==1&&b.getUserID()==NofetID&&b.getPrice()==2950&&b.getQuantity()==1){\n added=true;\n }\n }\n assertTrue(added);\n }", "public boolean checkIfExist(Coupon coupon) throws DbException;", "int insert(SsPaymentBillPerson record);", "int insert(cskaoyan_mall_order_goods record);", "int insert(FundManagerDo record);", "int insert(AoD5e466WorkingDay record);", "public boolean addBook(Books books){\n String sql=\"insert into Book(book_name,book_publish_date,book_author,book_price,scraption)values(?,?,?,?,?)\";\n boolean flag=dao.exeucteUpdate(sql,new Object[]{books.getBook_name(),books.getBook_publish_date(),\n books.getBook_author_name(),books.getBook_price(),books.getScraption()});\n return flag;\n }", "private void HaveDuplicate() {\n haveDuplicate = false;\n duplicateCounter = 0;\n try {\n query=\"SELECT * FROM category WHERE category_id = '\"+ txtCategoryNo.getText() +\"' OR category_name = '\"+\n txtCategoryName.getText() + \"'\";\n rset = connection.createStatement().executeQuery(query);\n while (rset.next()) {\n haveDuplicate = true;\n duplicateCounter++;\n }\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n\n }", "@SuppressWarnings({ \"unchecked\", \"static-access\" })\r\n\tpublic boolean checkArticleIsDuplicated(){\r\n\t\r\n\t\tnum_DupInDBLP = 0;\r\n\t\t\t\t\r\n\t\tCheckExist check = new CheckExist();\r\n\t\t\r\n\t\tnumberArray = (ArrayList<Integer>) check.CheckTitleSignaturePublications(dbsaPublicationCheckList).clone();\r\n\t\tduplicateNumber = numberArray.size();\r\n\t\t\r\n\t\tduplicationArtilce = false;\r\n\t\tif(numberArray.size() > 0){\r\n\t\t\tfor(int i = 0; i < numberArray.size(); i++)\r\n\t\t\t{\t\r\n\t\t\t\tmodel.setValueAt(true, numberArray.get(i), 8);\r\n\t\t\t\tresultsJTable.addRowToPaint(numberArray.get(i), Color.red);\r\n\t\t\t\tduplicationArtilce = true;\r\n\t\t\t\t\r\n\t\t\t\tnum_DupInDBLP ++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tgetFetcherInfo();\r\n\t\t//System.out.println(num_DupInDBLP);\r\n\t\tcheckDuplicateJButton.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\r\n\t\tDBSAApplication.statisticPanel.updateStatistic(num_Total);\r\n\t\treturn duplicationArtilce;\r\n\t}", "public int sharup(Long comp_id, Long no_share)throws Exception {\n\tint i,j = 0,k = 0;\r\n\tjava.util.Date d=new java.util.Date();\r\n\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\tString s1=sd.format(d);\r\n\ti=DbConnect.getStatement().executeUpdate(\"update share_details set no_share=no_share+\"+no_share+\" where comp_id=\"+comp_id+\" and DATEOFTRANS='\"+s1+\"'\");\r\n\trs=DbConnect.getStatement().executeQuery(\"select * from moreshare where types='sold' and DATEOFTRANS='\"+s1+\"'\");\r\n\tif(rs.next()==true)\r\n\t{\r\n\t\tk=DbConnect.getStatement().executeUpdate(\"update moreshare set no_share=no_share+\"+no_share+\" where COMP_ID=\"+comp_id+\" and types='sold' and DATEOFTRANS='\"+s1+\"'\");\r\n\t}\r\n\telse\r\n\t{\r\n\t\tj=DbConnect.getStatement().executeUpdate(\"insert into moreshare values(\"+comp_id+\",\"+no_share+\",'sold','\"+s1+\"')\");\t\r\n\t}\r\n\t\r\n\tSystem.out.println(\"k value\"+k+\"and j value\"+j);\r\nreturn i;\r\n}", "double addStock(String identifier, double amount, String date, double commission)\n throws IllegalArgumentException;", "@Override\n public ArrayList<PepDetailsHistory> getPepHistoryDetails(String orinNo) throws PEPPersistencyException{\n LOGGER.info(\"inside getPepHistoryDetails()\");\n List<PepDetailsHistory> pepList = new ArrayList<PepDetailsHistory>();\n Session session = this.sessionFactory.openSession();\n Query query = null;\n Transaction tx = session.beginTransaction();\n query = session.createSQLQuery(xqueryConstants.getPepHistoryDetails());\n query.setParameter(\"orinNo\", orinNo); \n query.setFetchSize(100);\n List<Object[]> rows = query.list();\n SimpleDateFormat formatter1 = new SimpleDateFormat(\"MM/dd/yyyy HH:mm\");\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssZZZ\");\n Date date = null;\n Date date1 = null;\n String createdOn = \"\";\n String updatedDate = \"\";\n \n \n try{\n \tProperties prop =PropertyLoader.getPropertyLoader(ImageConstants.LOAD_IMAGE_PROPERTY_FILE);\n for(Object[] row: rows){\n LOGGER.info(\"iterating pep history\");\n PepDetailsHistory pepHist = new PepDetailsHistory();\n pepHist.setPepOrinNumber(row[0]!=null?row[0].toString():null);\n \n \n \n if(null != row[6]){\n \tif(\"01\".equalsIgnoreCase(row[6].toString())){\n \t\tpepHist.setHistoryStatus(\"Was Initiated\");\n \t}\n \tif(\"02\".equalsIgnoreCase(row[6].toString())){\n \t\tpepHist.setHistoryStatus(\"Was Completed\");\n \t}\n\t\t\t\tif(\"03\".equalsIgnoreCase(row[6].toString())){\n\t\t\t\t\tpepHist.setHistoryStatus(\"Was Approved\");\n\t\t\t\t}\n\t\t\t\tif(\"04\".equalsIgnoreCase(row[6].toString())){\n\t\t\t\t\tpepHist.setHistoryStatus(\"Was Failed RRD Check\");\n\t\t\t\t}\n\t\t\t\tif(\"05\".equalsIgnoreCase(row[6].toString())){\n\t\t\t\t\tpepHist.setHistoryStatus(\"Was Deactivated\");\n\t\t\t\t}\n\t\t\t\tif(\"06\".equalsIgnoreCase(row[6].toString())){\n\t\t\t\t\tpepHist.setHistoryStatus(\"Was Closed\");\n\t\t\t\t}\n\t\t\t\tif(\"07\".equalsIgnoreCase(row[6].toString())){\n\t\t\t\t\tpepHist.setHistoryStatus(\"Was Rejected By DCA\");\n\t\t\t\t}\n\t\t\t\tif(\"08\".equalsIgnoreCase(row[6].toString())){\n\t\t\t\t\tpepHist.setHistoryStatus(\"Was Ready For Review\");\n\t\t\t\t}\n \t\n }else{\n \tpepHist.setHistoryStatus(\"\");\n }\n \n \n pepHist.setPepUpdatedBy(row[5]!=null?row[5].toString():null);\n \n if(row[2]!=null){\n \t\n \tdate = formatter.parse(row[2].toString());\n \tcreatedOn = formatter1.format(date);\n \tpepHist.setCreatedOn(createdOn!=null?createdOn.toString():null);\n \t\n \t\n }\n if(row[4]!=null){\n \tdate1 = formatter.parse(row[4].toString());\n \tupdatedDate = formatter1.format(date1);\n \tpepHist.setUpdateDate(updatedDate!=null?updatedDate.toString():null);\n }\n \n pepHist.setCreatedBy(row[1]!=null?row[1].toString():null);\n \n if(null != row[3]){\n \tString imageStateCode=row[3] == null? \"\" : row[3].toString();\n String imageStateDesc = prop.getProperty(\"Image\"+imageStateCode);\n \n String imageState = imageStateDesc == null ? \"\": imageStateDesc.toString();\n pepHist.setUpdatedStatus(imageState);\n }else{\n \tpepHist.setUpdatedStatus(\"\");\n }\n \n \n pepList.add(pepHist);\n \n }\n }catch(Exception e){\n \t\n }\n tx.commit();\n session.close();\n \n return (ArrayList<PepDetailsHistory>) pepList; \n }", "@Test\n public void testCreateAndReadPositive() throws Exception{\n Item item = new Item();\n item.setName(\"item\");\n item.setType(ItemTypes.ALCOHOLIC_BEVERAGE);\n itemDao.create(item);\n Assert.assertNotNull(itemDao.read(item.getName()));\n }", "int insert(SysNotice record);", "int insert(BpmInstanciaHistorica record);", "@Override\n public void onClick(View view) {\n boolean isInserted = app_db.insertHabit(\n app_utils.getCurrentDateInteger(),\n app_utils.getCurrentTimestampForSQLite(),\n \"soft_drink\"\n );\n if (isInserted)\n Toast.makeText(MainActivity.this, \"Soft Drink Inserted\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(MainActivity.this, \"Soft Drink Not Inserted\", Toast.LENGTH_LONG).show();\n }", "int insert(ErpOaLicKey record);", "int insert(SrHotelRoomInfo record);", "public void insertBooking(){\n \n Validator v = new Validator();\n if (createBookingType.getValue() == null)\n {\n \n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Booking Type!\")\n .showInformation();\n \n return;\n \n }\n if (createBookingType.getValue().toString().equals(\"Repair\"))\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Go to Diagnosis and Repair tab for creating Repair Bookings!\")\n .showInformation();\n \n \n if(v.checkBookingDate(parseToDate(createBookingDate.getValue(),createBookingTimeStart.localTimeProperty().getValue()),\n parseToDate(createBookingDate.getValue(),createBookingTimeEnd.localTimeProperty().getValue()))\n && customerSet)\n \n { \n \n int mID = GLOBAL.getMechanicID();\n \n try {\n mID = Integer.parseInt(createBookingMechanic.getSelectionModel().getSelectedItem().toString().substring(0,1));\n } catch (Exception ex) {\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Mechanic!\")\n .showInformation();\n return;\n }\n \n if (mID != GLOBAL.getMechanicID())\n if (!getAuth(mID)) return;\n \n createBookingClass();\n dbH.insertBooking(booking);\n booking.setID(dbH.getLastBookingID());\n appointment = createAppointment(booking);\n closeWindow();\n \n }\n else\n {\n String extra = \"\";\n if (!customerSet) extra = \" Customer and/or Vehicle is not set!\";\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Errors with booking:\"+v.getError()+extra)\n .showInformation();\n }\n \n }", "int insert(Book record);", "int insert(Book record);", "public boolean bookLot() {\r\n\t\tboolean bookUpdateSuccess = false;\r\n\t\t/**\r\n\t\t*\tSince connecting to database (DbConnection()) and updating data (executeUpdateParklot())\r\n\t\t* throw SQLException and throwing an exception from multiple levels again and again is not\r\n\t\t*\ta good way, so its is needed to catch the exception here.\r\n\t\t*/\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tCreate a connection to the database\r\n\t\t\t*/\r\n\t\t\tDbConnection bookLotConn = new DbConnection();\r\n\t\t\t/**\r\n\t\t\t*\tupdate the data in table\r\n\t\t\t*/\r\n\t\t\tbookUpdateSuccess = bookLotConn.executeUpdateParklot(lotNo, 1);\r\n\r\n\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSystem.out.println(\"**************Error Connecting to the Database**************\");\r\n\t\t\tSqlExcep.printStackTrace();\r\n\t\t} catch (ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\t//validateConn.closeDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t\treturn bookUpdateSuccess;\r\n\t}", "@Test(expected=DuplicateKeyException.class)\n\t\tpublic void testSave3()\n\t\t{\n\n\t\t\tChObject cho = repoTest.get(\"68268301\");\n\n\t\t\trepoTest.save(cho);\t\t\t//add chObject to repo\n\t\t\trepoTest.save(cho);\t\t\t//add duplicate record (not allowed...should throw exception)\n\t\t}", "if (charge == adhocTicket.getCharge()) {\n System.out.println(\"Charge is passed\");\n }", "@Test\n public void testProductMatchingExceptionThrown() throws Exception {\n service.loadFiles(); \n\n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"OH\");\n newOrder.setProductType(\"Reptile\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n boolean correctExceptionThrown = false;\n try {\n service.calculateNewOrderDataInput(newOrder);\n } catch (FlooringValidationException e) {\n correctExceptionThrown = true;\n }\n\n Assert.assertTrue(\"Must Match Products\", correctExceptionThrown);\n\n }", "void checkSurveyExists() {\n\n if (dbg) System.out.println(\"<br>checkSurveyExists: inventory = \" + inventory);\n if (dbg) System.out.println(\"<br>checkSurveyExists: survey = \" + survey);\n if (dbg) System.out.println(\"<br>checkSurveyExists: lineCount = \" + lineCount);\n\n // is the survey already loaded?\n surveyLoaded = false;\n surveyStatus = \"new\";\n\n boolean emptyFields = false;\n\n // survey_id may not be blank\n if (\"\".equals(survey.getSurveyId(\"\"))) {\n outputError((lineCount-1) + \" - Fatal - \" +\n \"Field empty - Survey-ID\");\n emptyFields = true;\n } // if (\"\".equals(survey.getSurveyId())\n\n // institute may not be blank\n if (\"\".equals(survey.getInstitute(\"\"))) {\n outputError((lineCount-1) + \" - Fatal - \" +\n \"Field empty - Institute (3-letter institute code: code 01 3)\");\n emptyFields = true;\n } // if (\"\".equals(survey.getInstitute())\n\n // domain may not be blank - only need to check if inventory does not exist\n if (dbg) System.out.println(\"<br>checkSurveyExists: inventoryExists = \" +\n inventoryExists);\n if (!inventoryExists) {\n if (\"\".equals(inventory.getDomain(\"\"))) {\n if (dataType == WATER) {\n outputError((lineCount-1) + \" - Fatal - \" +\n \"Field empty - Domain (code 01 4)\");\n emptyFields = true;\n } else {\n inventory.setDomain(\"DEEPSEA\");\n } // if (dataType == WATER) {\n } // if (\"\".equals(survey.getDomain())\n } // if (!inventoryExists)\n\n if (!emptyFields) {\n\n tSurvey = new MrnSurvey(survey.getSurveyId()).get();\n if (dbg) if (tSurvey.length > 0)\n System.out.println(\"<br>checkSurveyExists: tsurvey[0] = \" + tSurvey[0]);\n if (dbg) System.out.println(\"<br>checkSurveyExists: survey = \" + survey);\n if (tSurvey.length > 0) {\n //if (!tSurvey[0].getPlanam().equals(survey.getPlanam()) &&\n // !tSurvey[0].getExpnam().equals(survey.getExpnam()) &&\n // !tSurvey[0].getInstitute().equals(survey.getInstitute())) {\n if (!tSurvey[0].getPlanam(\"\").equals(survey.getPlanam(\"\")) ||\n !tSurvey[0].getExpnam(\"\").equals(survey.getExpnam(\"\")) ||\n !tSurvey[0].getInstitute(\"\").equals(survey.getInstitute(\"\"))) {\n\n outputError((lineCount-1) + \" - Fatal - \" +\n \"Survey-ID already in use: \" + survey.getSurveyId() +\n \": planam (code 01 1), expnam (code 01 2) or\\n\" +\n \" institute (code 01 3) not same as \" +\n \"in survey table\");\n } else {\n surveyLoaded = true;\n surveyStatus = \"dup\";\n } // if (!tSurvey.getPlanam().equals(survey.getPlanam()) &&\n } // if (tSurvey.length > 0)\n\n } // if (!emptyFields)\n\n // load the survey data (only if no errors)\n if (dbg) System.out.println(\"checkSurveyExists: loadflag = \" + loadFlag);\n if (dbg) System.out.println(\"checkSurveyExists: fatalCount = \" + fatalCount);\n if (dbg) System.out.println(\"checkSurveyExists: surveyLoaded = \" + surveyLoaded);\n if (loadFlag && (fatalCount == 0) && !surveyLoaded) {\n loadInventory();\n try {\n survey.put();\n } catch(Exception e) {\n System.err.println(\"checkSurveyExists: put survey = \" + survey);\n System.err.println(\"checkSurveyExists: put sql = \" + survey.getInsStr());\n e.printStackTrace();\n } // try-catch\n\n if (dbg3) System.out.println(\"<br>checkSurveyExists: put survey = \" + survey);\n } // if (loadFlag)\n\n institute = survey.getInstitute(\"\"); // 3-letter institute code\n\n }", "int insert(PrescriptionVerifyRecordDetail record);" ]
[ "0.5902319", "0.58985823", "0.5750226", "0.5655584", "0.5554846", "0.5554846", "0.5539447", "0.5487133", "0.54723924", "0.54445875", "0.5438454", "0.5438367", "0.53953004", "0.53850234", "0.537192", "0.53666764", "0.5362431", "0.53298736", "0.5318132", "0.53161776", "0.5296949", "0.5279053", "0.527457", "0.527048", "0.525986", "0.5255247", "0.5252284", "0.52434987", "0.5235664", "0.523373", "0.52225864", "0.5221098", "0.5218942", "0.52067393", "0.520061", "0.5199077", "0.5198229", "0.51969653", "0.51932466", "0.5191597", "0.5188293", "0.51802367", "0.51801634", "0.5178183", "0.51746035", "0.51654816", "0.5161916", "0.5152448", "0.5151106", "0.5148749", "0.51317525", "0.5123293", "0.51230884", "0.51184654", "0.51148224", "0.51038617", "0.5099336", "0.5092913", "0.5080737", "0.50799805", "0.5077688", "0.5076064", "0.50747436", "0.50745845", "0.50618327", "0.5056734", "0.5054868", "0.5050947", "0.50490963", "0.5042906", "0.5036002", "0.5033785", "0.5032821", "0.5027418", "0.50266445", "0.5024924", "0.50249004", "0.50212544", "0.5020785", "0.50179285", "0.5017586", "0.50145024", "0.4998505", "0.4993081", "0.4992505", "0.49915996", "0.4986887", "0.49792176", "0.4975145", "0.49742436", "0.49664086", "0.49655408", "0.49611646", "0.49611646", "0.49609253", "0.4960276", "0.49595717", "0.49490395", "0.49489272", "0.49487674" ]
0.6609519
0
Check not existing user
@Test public void checkForNonExistingUserCredential() { UserLogin userLogin = new UserLogin(); userLogin.setUserLogin("+380680000000"); userLogin.setUserPassword("12345"); boolean isThrow = false; try { UserResponse userResponse = loginsService.checkLoginSignInSignUp(userLogin, "SignIn"); } catch (ApplicationException e) { isThrow = true; } assertThat(isThrow); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean findUserIsExist(String name) {\n\t\treturn false;\r\n\t}", "public boolean existUser(String id);", "private void checkForUser(){\n if(mUserId != -1){\n return;\n }\n\n if(mPreferences == null) {\n getPrefs();\n }\n\n mUserId = mPreferences.getInt(USER_ID_KEY, -1);\n\n if(mUserId != -1){\n return;\n }\n\n //do we have any users at all?\n List<User> users = mUserDAO.getAllUsers();\n if(users.size() <= 0 ){\n User defaultUser = new User(\"din_djarin\",\"baby_yoda_ftw\");\n mUserDAO.insert(defaultUser);\n }\n }", "Boolean checkUserExists(String userName) throws AppException;", "boolean isUserExists(RegisterData data) throws DuplicateUserException;", "Boolean checkUserExists(Integer userId) throws AppException;", "private boolean isUserExists() {\n\t\treturn KliqDataStore.isUserExists(this.mobileNumber, null);\r\n\t}", "@Override\r\n\tpublic Boolean userExist(String username) {\n\t\treturn null;\r\n\t}", "private void checkUser() {\n\t\tlog.info(\"___________checkUser\");\n\t\tList<User> adminUser = userRepository.getByAuthority(AuthorityType.ROLE_ADMIN.toString());\n\t\tif (adminUser == null || adminUser.isEmpty()) {\n\t\t\tgenerateDefaultAdmin();\n\t\t}\n\t}", "private boolean IsUserExist(){\n SignupUser user =roomDB.dao().GetUserData(et_user.getText().toString());\n if(user!=null){\n if(!user.getEmail().isEmpty()){\n Toast.makeText(this, \"User is already registered!\", Toast.LENGTH_SHORT).show();\n return true;\n }\n\n }\n return false;\n }", "public boolean existsUser(String username);", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "public boolean isExistingUser() {\r\n return isExistingUser;\r\n }", "boolean userExists(HttpServletRequest request, String userId);", "public boolean doesTheUserExist(String user)\r\n\t {\r\n\t\t if (!users.get(user).equals(null))\r\n\t\t return true;\r\n\t\t return false;\r\n\t }", "private boolean userExists(Utente checkUser) {\n\t\tDB db = getDB();\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tfor(Map.Entry<Long, UtenteBase> user : users.entrySet())\n\t\t\tif(user.getValue() instanceof Utente && (((Utente)user.getValue()).getUsername().equals(checkUser.getUsername())))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}", "private static boolean doesUserExist () {\n String sqlRetrieveAisId = \"SELECT ais_id FROM users WHERE user_id=?\";\n \n boolean valid = false;\n try (Connection conn = Database.getConnection();\n PreparedStatement pstmt = conn.prepareStatement(sqlRetrieveAisId)) {\n \n pstmt.setInt(1, userId);\n \n ResultSet rs = pstmt.executeQuery();\n \n valid = rs.next() != false;\n } catch (SQLException se) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(1), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (IOException ioe) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n }\n \n return valid;\n }", "boolean exists(User user);", "@Test\n public void nonExistingUser() {\n boolean result = auth.authenticateUser(\"Spiderman\", \"fido\", 0); \n //Then\n assertThat(result, is(false));\n }", "@Override\n\tpublic boolean isUserExist(StudentForm student) {\n\t\treturn false;\n\t}", "boolean hasUserId();", "boolean hasUserId();", "boolean hasUserId();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "public boolean isUserExist(String email, String Password);", "public User userExist(User user);", "boolean isUserExist(String username, String password);", "boolean isUserExists(Username username);", "@Override\n public boolean isUserAlreadyExist(String email) throws UserException {\n User user;\n\n if (email == null || email.equals(\"\")) {\n logger.error(\"invalid user id: \" + email);\n return false;\n }\n try {\n user = userDAO.getUserById(email);\n return user != null;\n } catch (UserException e) {\n e.printStackTrace();\n logger.error(\"failed to delete a user with id: \" + email);\n return false;\n }\n }", "private boolean checkExistingUsername(String username) {\n boolean existingUsername = false;\n User user = userFacade.getUserByUsername(username);\n if (user != null) {\n existingUsername = true;\n }\n return existingUsername;\n }", "boolean hasObjUser();", "public boolean isThereSuchAUser(String username, String email) ;", "public boolean hasUser(){\n return numUser < MAX_USER;\n }", "private boolean checkNameExistModify(String userName, Integer id) {\n\n\t\tUser user = this.userDAO.getUserByName(userName);\n\t\tif (null != user && id != user.getUserId()) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean existUser(String campo1, String campo2);", "@Override\n\tpublic boolean userExists(String email) {\n\t\treturn (searchIndex(email) >= 0);\n\t}", "boolean hasUserName();", "public boolean isExistingUsername(String username) {\n boolean isExistingUser = false; \n \n List<User> retrievedUsersList = new LinkedList<User>(); \n retrievedUsersList = repo.returnAllUsers(); \n \n User aUser = null; \n for(var user : retrievedUsersList) {\n aUser = (User)user; \n \n if(aUser.username.equals(username)) {\n isExistingUser = true; \n }\n }\n \n return isExistingUser; \n }", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "private void checkUserExist() {\n\n final DatabaseReference mUseRef;\n\n\n if (mAuth.getCurrentUser() != null) {\n final String valid_user_id = mAuth.getCurrentUser().getUid();\n mDatabase.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.hasChild(valid_user_id)) {\n Intent singinIntent = new Intent(JoinActivity.this, MainActivity.class);\n singinIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(singinIntent);\n finish();\n } else {\n Toast.makeText(JoinActivity.this, \"You have to first setup your account!\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n }\n }", "public boolean isUser(String userName) throws Exception;", "private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}", "public boolean existsUser(String userId) {\n\t\treturn true;\n\t}", "private boolean checkNameExistAdd(String userName) {\n\n\t\tUser user = this.userDAO.getUserByName(userName);\n\t\tif (null != user) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean verifyUser(User user) {\n GetUserTask getUserTask = new GetUserTask();\n User temp = new User();\n\n try {\n temp = getUserTask.execute(user.getUserName()).get();\n }\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n catch (ExecutionException e) {\n e.printStackTrace();\n }\n\n //if user did not exist, add one\n if(temp == null){\n ElasticSearchUserController.AddUserTask addUserTask = new ElasticSearchUserController.AddUserTask();\n addUserTask.execute(user);\n return true;\n }\n return false;\n }", "@Override\n public boolean userExists(User user) {\n return DATABASE.getUsers().stream()\n .anyMatch(currentUser -> user.equals(currentUser));\n }", "@Test\n void doesNotFindNonexistentUser() {\n assertThat(userRepository.findUser(\"[email protected]\")).isEqualTo(null);\n }", "public boolean isUserExisted(String _fbEmail);", "private void isUserExist() {\n\n if (firebaseAuth.getCurrentUser() != null) {\n\n final String user_id = firebaseAuth.getCurrentUser().getUid();\n users_database_reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.hasChild(user_id)) {\n // sign in the user and go to main activity\n // Intent intent = new Intent(StartActivity.this, MainActivity.class);\n // intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(intent);\n } else {\n // go to profile page\n Intent intent = new Intent(MainActivity.this, Profile.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n }\n }", "private boolean isExistUserName(String userName, String userId) {\n User user = userService.findByUserNameAndStatus(userName, Constant.Status.ACTIVE.getValue());\n if (user != null && !user.getUserId().equals(userId)) {\n return true;\n }\n return false;\n }", "private int checkUserExists(String name)\r\n\t{\r\n\t\tfor (int i = 0; i < numOfUsers; i++)\r\n\t\t{\r\n\t\t\tif (name.equals(userAccounts[0][i]))\r\n\t\t\t\treturn i;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "private boolean correctUser() {\n // TODO mirar si l'usuari es unic a la base de dades\n return true;\n }", "public boolean checkUserId() {\n if (userIdEditText.getText().toString().isEmpty()) {\n userIdContainer.setError(getString(R.string.error_user_id));\n } else {\n userIdContainer.setError(null);\n }\n return !userIdEditText.getText().toString().isEmpty();\n }", "public Boolean user_exists (UserWS user) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tQuery i = null;\r\n\t\t\t\t\t\r\n\t\t\t\t\tiniciaOperacion();\r\n\t\t\t\t\ti = sesion.createQuery(\"SELECT u.id_user FROM User u WHERE u.mail = :login\"); \r\n\t\t\t\t i.setString(\"login\", user.getLogin());\r\n\t\t\t\t \r\n\t\t\t\t return (i.uniqueResult() != null);\r\n\t\t\t\t}", "boolean isUserExist(String username) throws ErrorConnectionException, TException;", "public Boolean isUsernameExist(String username);", "public boolean isExistingUser(String email){\n Long count = userRepository.countByEmail(email);\n\n return count > 0;\n }", "@Test\n\tpublic void testUserValidationIfThere() {\n\t\tUserFunctions userCollections = new UserFunctions();\n\t\t\n\t\tassertNotEquals(-1, userCollections.validatePotentialUser(\"jonasanJosuta\", \"zaPasshon\"));\n\t}", "public void checkUsernameExist() {\n\n try {\n BLUser bluser = new BLUser();\n User user = new User();\n\n ResultSet rs = bluser.selectUserIdFromUsername(txt_username.getText());\n\n user.setUsername(txt_username.getText());\n bluser.setUser(user);\n\n if (bluser.checkUsernameExist()) {\n \n populateDataOnTable();\n }// end if\n else {\n JOptionPane.showMessageDialog(rootPane, \"Invalid username!\");\n }// end else \n\n }// end try\n catch (Exception ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage(), \"Exception\", JOptionPane.INFORMATION_MESSAGE);\n }//end catch\n }", "@Given(\"^user is not registered$\")\n public void userIsNotRegistered() throws Throwable {\n }", "private boolean existsUser(Connection con) throws SQLException {\n\t\tlog.entry();\n\t\tboolean userExists = false;\n\t\tPreparedStatement ps = con.prepareStatement(\"SELECT COUNT(*) FROM Users \"\n\t\t + \"WHERE `id`=?;\");\n\t\ttry {\n\t\t\tps.setInt(1, id);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tif (rs.first() && rs.getInt(1) > 0) {\n\t\t\t\tuserExists = true;\n\t\t\t}\n\t\t} finally {\n\t\t\tcloseStatement(ps);\n\t\t}\n\t\tthrowSqlException();\n\t\tlog.exit();\n\t\treturn userExists;\n\t}", "boolean exists(String username);", "@Test\n public void testUserIdExists() {\n\n String userInput = \"guest.login\";\n Owner testUser = ownerHelper.validateUser(userInput, \"Pa$$w0rd\");\n assertEquals(testUser.getPassword(), owner3.getPassword());\n assertEquals(testUser.getFirstName(), owner3.getFirstName());\n assertEquals(testUser.getLastName(), owner3.getLastName());\n\n }", "private boolean isNotCurrentUser(User user) {\n if (user.getEmail().equals(mEncodedEmail)) {\n /* Toast appropriate error message if the user is trying to add themselves */\n Toast.makeText(mActivity,\n mActivity.getResources().getString(R.string.toast_you_cant_add_yourself),\n Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }", "boolean isUsernameExist(String username);", "@Override\n\tpublic boolean checkUser(String username) {\n\t\tboolean result = false;\n\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tQuery query = (Query) session.createQuery(\"from Member where username=?\");\n\n\t\tMember member = (Member) query.setString(0, username).uniqueResult();\n\t\tif (member != null) {\n\t\t\tresult = true;\n\t\t\tlogger.info(\"Member Exists\");\n\t\t} \n\n\t\treturn result;\n\n\t}", "protected boolean isValid(AccessUser obj)\n {\n return obj != null && obj.username != null && !getMembers().contains(obj);\n }", "@Test\n public void existingUserNOT_OK_PW() {\n boolean result = auth.authenticateUser(\"Ole\", \"fido\", 0); \n //Then\n assertThat(result, is(false));\n }", "public boolean isUser()\n\t{\n\t\treturn (id != -1);\n\t}", "public boolean hasAccount(String user);", "public boolean userDuplicateCheck(String username){\n ArrayList<User> users = new ArrayList<>(db.getAllUsers());\n\n for(User user : users){\n if(user.getUsername().equals(username)){\n return false;\n }\n }\n return true;\n }", "private boolean isUserExist(String friendName)\r\n\t{\r\n\t\tlogger.debug(\"->->->->-> Inside isUserExist method ->->->->->\");\r\n\t\tif(userDAO.getParticularUserbyUserName(friendName)==null){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}" ]
[ "0.74376816", "0.73503566", "0.73398995", "0.7278826", "0.7257307", "0.72571486", "0.72493494", "0.7155364", "0.71396613", "0.7132022", "0.713104", "0.71280664", "0.71280664", "0.71280664", "0.71280664", "0.71280664", "0.71280664", "0.71280664", "0.712606", "0.7090711", "0.7087769", "0.7078664", "0.7007136", "0.69557446", "0.6948725", "0.6930438", "0.6910491", "0.6910491", "0.6910491", "0.6904919", "0.6904919", "0.6904919", "0.6904919", "0.6904919", "0.6904919", "0.6904919", "0.6904919", "0.6904919", "0.6904919", "0.6904919", "0.6904919", "0.6904919", "0.6904919", "0.6904919", "0.6904919", "0.6904919", "0.6904919", "0.68918777", "0.6891296", "0.6886072", "0.6837176", "0.6824092", "0.6823324", "0.6819254", "0.68192375", "0.6805958", "0.67892313", "0.6783732", "0.67642766", "0.67608076", "0.67507297", "0.67080075", "0.67080075", "0.67080075", "0.67080075", "0.67080075", "0.67080075", "0.67032754", "0.66887593", "0.66818947", "0.66754925", "0.6675454", "0.6670556", "0.66641515", "0.66574085", "0.6652748", "0.66452116", "0.66404355", "0.6622422", "0.6620657", "0.65907186", "0.658628", "0.65854806", "0.6578787", "0.65683603", "0.65667963", "0.6555581", "0.6524584", "0.6505226", "0.65047956", "0.6504135", "0.64977837", "0.64947134", "0.64911354", "0.64726907", "0.646941", "0.64670336", "0.64639306", "0.6449785", "0.6446384" ]
0.66243774
78
Try to register user without repeated password
@Test public void createNewUserAndCheckIt() { UserLogin userLogin = new UserLogin(); userLogin.setUserLogin("068-068-68-68"); userLogin.setUserPassword("12345"); boolean isThrow = false; try { UserResponse userResponse = loginsService.checkLoginSignInSignUp(userLogin, "SignUp"); } catch (ApplicationException e) { isThrow = true; } assertThat(isThrow); //Successful registration userLogin.setUserPasswordNew("12345"); UserResponse userResponse = loginsService.checkLoginSignInSignUp(userLogin, "SignUp"); assertThat(userResponse.getUserPhone().equals(usersService.normalizeAndCheckPhoneFormat(userLogin.getUserLogin()))); assertThat(userResponse.getUserPoints()).size().isEqualTo(5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testNonMatchingPasswords() {\n registerUser(username, password, password + password, email, email, forename, surname, null);\n assertNull(userService.getUser(username));\n }", "@Test\n public void testPasswordHasNumbersAndLetters() {\n registerUser(username, \"123456789\");\n assertNull(userService.getUser(username));\n }", "public boolean register(String u_Name, String u_pw, String f_name){\n List<User> userList = userDao.getUserFromUsername(u_Name);\n //1.check if userName is used\n if (userList.size() != 0){ \n return false;\n }\n //2.create user and add to the DB\n User user = new User(u_Name, u_pw, f_name);\n userDao.addUser(user);\n //3.return true\n return true;\n }", "private void attemptRegister() {\n\n // Reinicia los errores de los EditText\n mEditEmail.setError(null);\n mEditFirstName.setError(null);\n mEditLastName.setError(null);\n mEditPassword.setError(null);\n mEditPasswordConfirm.setError(null);\n\n // Obtiene los valores ingresados por el usuario\n String email = Utils.checkEditTextForEmpty(getContext(),mEditEmail);\n String firstName = Utils.checkEditTextForEmpty(getContext(),mEditFirstName);\n String lastName = Utils.checkEditTextForEmpty(getContext(),mEditLastName);\n String password = Utils.checkEditTextForEmpty(getContext(),mEditPassword);\n String passwordConfirm = Utils.checkEditTextForEmpty(getContext(),mEditPasswordConfirm);\n\n //Revisa si hay valor vacío\n if (email == null || firstName == null || lastName == null || password == null || passwordConfirm == null) {\n return;\n }\n\n // Valida el correo\n if (!email.contains(\"@\")) {\n mEditEmail.setError(getString(R.string.error_invalid_email));\n mEditEmail.requestFocus();\n return;\n }\n\n // Valida la contraseña\n if (password.length() < 3) {\n mEditPassword.setError(getString(R.string.error_invalid_password));\n mEditPassword.requestFocus();\n return;\n }\n\n //Valida que las contraseñas hagan match\n if (!password.equals(passwordConfirm)) {\n mEditPasswordConfirm.setError(getString(R.string.error_invalid_password_confirmation));\n mEditPasswordConfirm.requestFocus();\n return;\n }\n\n // Intenta crear la cuenta\n Toast.makeText(getContext(), \"Bienvenido\", Toast.LENGTH_LONG).show();\n }", "private void register(String username,String password){\n\n }", "public void registerUser(String username, String password)\n {\n if(!spaceExists.spaceExists(SpaceUtils.getSpace()))\n {\n spaceExists.getSpaceExistsWarning(loginForm,\n \"\");\n }\n // check text fields are not blank\n if(StringUtils.isNotBlank(username) &&\n StringUtils.isNotBlank(password))\n {\n // Check length of password\n if(password.length() >= 6 &&\n password.length() <= 25)\n {\n // check username length\n if(username.length() >= 3 &&\n username.length() <= 20)\n {\n // continue\n String confirmDialogResponse = confirmPassword();\n\n// System.out.println(\"Dialog: \" + confirmDialogResponse);\n// System.out.println(\"Password: \"+password);\n if(password.equals(confirmDialogResponse))\n {\n // passwords match\n // save user to space\n try\n {\n // create new entry\n // encrypt password\n UserEntry user = new UserEntry();\n user.setUsername(username);\n user.setID(UUID.randomUUID());\n user.setSalt(CipherUtils.getSalt(30));\n user.setPassword(\n CipherUtils.generateSecurePassword(\n password, user.getSalt()));\n\n if(user.getSecureUsername().length() > 3)\n {\n // there are at least 3 non-special characters\n // create user\n if(userUtils.createUser(user) != null)\n {\n\n JOptionPane.showMessageDialog(loginForm,\n \"Welcome \" + user.getUsername() + \"!\");\n\n // remove loginForm\n loginForm.setVisible(false);\n loginForm.dispose();\n // Lease is renewed at every login\n userUtils.renewUserLease(user);\n\n // Debug:\n// UserEntry debug = (UserEntry) space.readIfExists(user, null, 3000);\n// System.out.println(\"User: \" + debug.getUsername() +\" Successfully added!\");\n// System.out.println(\"Main Form Created!\");\n\n // Create MainForm\n new MainForm(user);\n }\n else\n {\n // user already exists\n JOptionPane.showMessageDialog(loginForm,\n user.getUsername() + \" is taken.\");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Username must have at least 3 non-special characters. \");\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Passwords did not match!\");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Username must be 3 - 20 characters. \");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Password must be 6 - 25 characters. \");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"A username and password are required.\");\n }\n }", "@Override\n public String register(String name, String password) throws BakeryServiceException {\n if (name == null || password == null || name.length() < 3 || password.length() < 3)\n throw new BakeryServiceException(400);\n\n // check that the user does not already exist\n User existingUser = this.userDAO.getUserByName(name);\n if (existingUser != null)\n throw new BakeryServiceException(409);\n\n String passwordHash = BCrypt.hashpw(password, BCrypt.gensalt());\n String token = UUID.randomUUID().toString();\n this.userDAO.createUser(name, passwordHash, token);\n return token;\n }", "@Test\n\tpublic void registerUserFailingTest() throws RemoteException, NoSuchAlgorithmException, InvalidKeySpecException, IOException, InvalidKeyException, SignatureException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, UnrecoverableKeyException, KeyStoreException, CertificateException {\n\t\tPasswordManager pm = new PasswordManager(8080);\n\n\t\t// Register with a malformed message\n\t\tString response = pm.registerUser(DatatypeConverter.printBase64Binary(cliPubKey.getEncoded()), \n\t\t\t\tDigitalSignature.getSignature(cliPubKey.getEncoded(),servPrivKey));\n\t\t\n\t\t// Analyse the correctness of the answer\n\t\tAssert.assertEquals(response, \"Error-Error-Error-Error-Error\");\n\t}", "boolean register(String nickname, String password) {\n try {\n User user = new User(nickname, password);\n return this.append(user);\n } catch (IllegalArgumentException e) {\n return false;\n }\n }", "public void attemptRegister() throws IOException, ClassNotFoundException {\n\t\t// Reset errors.\n\t\t//mEmailView.setError(null);\n\t\t//mPasswordView.setError(null);\n\n\t\t// Reset errors.\n\t\tmFullNameView.setError(null);\t\t\n\t\tmEmailView.setError(null);\n\t\tmPasswordView.setError(null);\n\t\tLog.d(\"Rafa\",\"En el register .... \");\n\t\t\n\t\t// Store values at the time of the login attempt.\n\t\tmFullName = mFullNameView.getText().toString();\n\t\tmEmail = mEmailView.getText().toString();\n\t\tmPassword = mPasswordView.getText().toString();\n\n\t\tboolean cancel = false;\n\t\tView focusView = null;\n\n\t\tLog.d(\"Rafa\",\"En el register ... FullName \");\t\t\n\t\t// Check for a valid password.\n\t\tif (TextUtils.isEmpty(mFullName)) {\n\t\t\tmFullNameView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mFullNameView;\n\t\t\tcancel = true;\n\t\t} else if (mFullName.length() < 4) {\n\t\t\tmFullNameView.setError(getString(R.string.error_invalid_password));\n\t\t\tfocusView = mFullNameView;\n\t\t\tcancel = true;\n\t\t}\n\n\t\tLog.d(\"Rafa\",\"En el register ... Email \");\t\t\n\t\t// Check for a valid email address.\n\t\tif (TextUtils.isEmpty(mEmail)) {\n\t\t\tmEmailView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mEmailView;\n\t\t\tcancel = true;\n/*\t\t} else if (!mEmail.contains(\"preventa\")) {\n\t\t\tmEmailView.setError(getString(R.string.error_invalid_email));\n\t\t\tfocusView = mEmailView;\n\t\t\tcancel = true;\n*/\t\t\t\n\t\t}\t\t\n\t\t\n\t\tLog.d(\"Rafa\",\"En el register ... Password \");\n\t\t// Check for a valid password.\n\t\tif (TextUtils.isEmpty(mPassword)) {\n\t\t\tmPasswordView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mPasswordView;\n\t\t\tcancel = true;\n\t\t} else if (mPassword.length() < 4) {\n\t\t\tmPasswordView.setError(getString(R.string.error_invalid_password));\n\t\t\tfocusView = mPasswordView;\n\t\t\tcancel = true;\n\t\t}\n\n\t\t\n\t\tLog.d(\"Rafa\",\"pasa x aquí ... \" + mFullName + \"-\" + mEmail + \"-\" + mPassword);\n\t\t\n\t\tClass.forName(\"org.postgresql.Driver\");\n\t\tString url;\n\t\turl = \"jdbc:postgresql://192.168.4.20:5432/\" +\n\t\t\t\t\"curso\" +\n\t\t\t\t\"?sslfactory=org.postgresql.ssl.NonValidatingFactory\"; // +\n\t\t\t\t//\"&ssl=true\";\n\t\t\n\t\tConnection conn;\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(url,\"postgres\",\"\");\n\t\t\tPreparedStatement is = conn.prepareStatement(\n\t\t\t\t\t\"INSERT INTO registro (nombre_completo, ecorreo, password) VALUES (?, ?, ?);\");\n\t\t\t\n\t\t\tis.setString(1,mFullName);\n\t\t\tis.setString(2,mEmail);\n\t\t\tis.setString(3,mPassword);\n\t\t\t\n\t\t\tint rows = is.executeUpdate();\n\t\t\tis.close();\n\t\t\t\n\t\t\tLog.d(\"Rafa\",\"rows <\" + rows + \">\");\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tLog.d(\"Rafa\",\"SQLException \" + e.getErrorCode() + \"-\" + e.getCause() + \"-\" + e.getLocalizedMessage() + \"-\" + e.getMessage() );\t\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\t\n\t\tif (cancel) {\n\t\t\t// There was an error; don't attempt login and focus the first\n\t\t\t// form field with an error.\n\t\t\tfocusView.requestFocus();\n\t\t} else {\n\t\t\t// Show a progress spinner, and kick off a background task to\n\t\t\t// perform the user login attempt.\n\t\t\t//mLoginStatusMessageView.setText(R.string.login_progress_signing_in);\n\t\t\tToast.makeText(getApplicationContext(), \"Registrando:\" + mFullName + \"-\" + mEmail + \"-\" + mPassword , Toast.LENGTH_LONG).show();\t\t\t\n\t\t}\n\t}", "private void registerUser() {\n\n // Get register name\n EditText mRegisterNameField = (EditText) findViewById(R.id.register_name_field);\n String nickname = mRegisterNameField.getText().toString();\n\n // Get register email\n EditText mRegisterEmailField = (EditText) findViewById(R.id.register_email_field);\n String email = mRegisterEmailField.getText().toString();\n\n // Get register password\n EditText mRegisterPasswordField = (EditText) findViewById(R.id.register_password_field);\n String password = mRegisterPasswordField.getText().toString();\n\n AccountCredentials credentials = new AccountCredentials(email, password);\n credentials.setNickname(nickname);\n\n if (DataHolder.getInstance().isAnonymous()) {\n credentials.setOldUsername(DataHolder.getInstance().getUser().getUsername());\n }\n\n sendRegistrationRequest(credentials);\n }", "private void register(String username, String password) {\n User u = null;\n try {\n u = userDao.loadByLogin(username, password);\n } catch (Exception ignored) {}\n if (u == null) {\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"tmp_username\", username);\n editor.putString(\"tmp_password\", password);\n editor.commit();\n Intent intent = new Intent(LoginActivity.this, InfoActivity.class);\n startActivity(intent);\n } else {\n try {\n Toast.makeText(getApplicationContext(), \"Register Failed\", Toast.LENGTH_SHORT).show();\n } catch (Exception e) {\n Looper.prepare();\n Toast.makeText(getApplicationContext(), \"Register Failed\", Toast.LENGTH_SHORT).show();\n Looper.loop();\n }\n }\n }", "private void registerUser(final String firstName, final String lastName, final String email, final String password, final String reEnterPassword) {\n\n if (validRegister(firstName, lastName, email, password, reEnterPassword)){\n mSignUpPresenter.registerUser(NetworkUtils.getInstance(this), email, password, firstName, lastName);\n }\n\n }", "private void attemptRegister() {\n progressGenerator = new ProgressGenerator();\n\n // Reset errors.\n inputEmail.setError(null);\n inputPasswd.setError(null);\n\n // Store values at the time of the login attempt.\n String email = inputEmail.getText().toString();\n String password = inputPasswd.getText().toString();\n String confirmPassword = inputConfirmPasswd.getText().toString();\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n inputEmail.setError(getString(R.string.error_field_required));\n inputEmail.requestFocus();\n shake();\n return;\n } else if (!isEmailValid(email)) {\n inputEmail.setError(getString(R.string.error_invalid_email));\n inputEmail.requestFocus();\n shake();\n return;\n }\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password) || !isPasswordValid(password)) {\n inputPasswd.setError(getString(R.string.error_invalid_password));\n inputPasswd.requestFocus();\n shake();\n return;\n }\n\n // Check if passwords match\n if (!confirmPassword.equals(password)) {\n inputConfirmPasswd.setError(getString(R.string.error_password_does_not_match));\n inputConfirmPasswd.requestFocus();\n shake();\n return;\n }\n\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n isRegistering = true;\n btnRegister.requestFocus();\n\n progressGenerator.start(btnRegister);\n btnRegister.setEnabled(false);\n inputEmail.setEnabled(false);\n inputPasswd.setEnabled(false);\n inputConfirmPasswd.setEnabled(false);\n\n LoginAgent.getInstance().registerInBackground(email, password);\n }", "@Test\n public void testUserCanBeRegistered() {\n assert username.length() > 3 && username.length() < 16;\n registerUser(username, password);\n assertNotNull(userService.getUser(username));\n }", "@Test\n public void testPasswordGreaterThan7Characters() {\n password = \"123456a\";\n assert password.length() <= 7;\n registerUser(username, password);\n assertNull(userService.getUser(username));\n }", "private void attemptRegistration() {\n emailView.setError(null);\n passwordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = emailView.getText().toString();\n String password = passwordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password) || !isPasswordValid(password)) {\n passwordView.setError(getString(R.string.error_invalid_password));\n focusView = passwordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n emailView.setError(getString(R.string.error_field_required));\n focusView = emailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n emailView.setError(getString(R.string.error_invalid_email));\n focusView = emailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n createFirebaseUser();\n\n }\n }", "@Override\n\tpublic boolean register(UserInfo ui, String password) {\n\t\treturn _uim.insert(ui, password);\n\t}", "@Test\n\tpublic void registerUserTest() throws RemoteException, NoSuchAlgorithmException, InvalidKeySpecException, IOException, InvalidKeyException, SignatureException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, UnrecoverableKeyException, KeyStoreException, CertificateException {\n\t\t\n\t\t// Creation of the server\n\t\tPasswordManager pm = new PasswordManager(8080);\n\n\t\t// Normal register\n\t\tString response = pm.registerUser(DatatypeConverter.printBase64Binary(cliPubKey.getEncoded()), \n\t\t\t\tDigitalSignature.getSignature(cliPubKey.getEncoded(),cliPrivKey));\n\n\t\t// Analyse the correctness of the answer\n\t\tAssert.assertNotSame(response, \"Error: Could not validate signature.\");\n\t}", "@Transactional\n\tpublic int doRegister(String email, String password) throws NoSuchFieldException, SecurityException {\n\t\tUser user = userDao.findUser(email);\n\n\t\tif (user != null) {\n\t\t\t//邮箱已被注册\n\t\t\treturn -1;\n\t\t}\n\t\telse {\n\t\t\t//注册新用户\n\t\t\tuser = new User(1L, email, password, \"\", \"M\", 0, \"\");\n\t\t\tSystem.out.println(user);\n\t\t\tuserDao.save(user);\n\t\t\treturn 0;\n\t\t}\n\t}", "private final static void onRegister(TextField username, TextField email, PasswordField password, PasswordField passwordAgain)\n\t{\n\t\t// TODO no password = passwordAgain check\n\t\t// TODO check if username exists\n\t\t// TODO check if email exists\n\n\t\tint id = ProfileManipulation.getHighestId(\"Profile\", true);\n\t\tProfileManipulation.registerUser(id, username.getText(), email.getText(),\n\t\t\t\tpassword.getText());\n\t\tPartylize.setUsername(username.getText());\n\t\tPartylize.showMainScene();\n\t}", "public boolean checkRegister() {\n\n\t\tif (!email.getText().equals(\"\") && !username.getText().equals(\"\") && !psw.getText().equals(\"\")) {\n\t\t\tResultSet test = Database.getInstance().query(\"SELECT * FROM utilisateur\");\n\t\t\ttry {\n\t\t\t\twhile (test.next()) {\n\t\t\t\t\tif (test.getString(2).equals(username.getText()) && test.getString(4).equals(email.getText())\n\t\t\t\t\t\t\t&& test.getString(3).equals(psw.getText())) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn false;\n\n\t\t\t} catch (SQLException e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "void registerNewUser(String login, String name, String password, String matchingPassword,\n String email);", "private void attemptRegister() {\n if (mRegisterTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n mRePasswordView.setError(null);\n mNameView.setError(null);\n mSurnameView.setError(null);\n mUsernameView.setError(null);\n\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n String rePassword = mRePasswordView.getText().toString();\n String name = mNameView.getText().toString();\n String surname = mSurnameView.getText().toString();\n String username = mUsernameView.getText().toString();\n\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) &&!isPasswordValid(password, rePassword)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n } else if (!TextUtils.isEmpty(rePassword) &&!isPasswordMatch(password, rePassword)) {\n mRePasswordView.setError(getString(R.string.error_incorrect_password));\n focusView = mRePasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (TextUtils.isEmpty(name)) {\n mNameView.setError(getString(R.string.error_field_required));\n focusView = mNameView;\n cancel = true;\n }\n\n if (TextUtils.isEmpty(surname)) {\n mSurnameView.setError(getString(R.string.error_field_required));\n focusView = mSurnameView;\n cancel = true;\n }\n\n if (TextUtils.isEmpty(username)) {\n mUsernameView.setError(getString(R.string.error_field_required));\n focusView = mUsernameView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n String deviceId = Settings.Secure.getString(getApplicationContext().getContentResolver(),\n Settings.Secure.ANDROID_ID);\n\n if(deviceId == null)\n deviceId = \"oddDevice\";\n Log.d(\"Custom\" , deviceId);\n String gender = (String)mGender.getSelectedItem();\n String device = deviceId;\n mRegisterTask = new RegisterTask(email, password, name, surname, username, gender, device );\n\n mRegisterTask.execute((Void) null);\n }\n }", "@Test\n public void testPasswordExists() {\n String userInput = \"Mounta1nM@n\";\n Owner testUser = ownerHelper.validateUser(\"harry.louis\", userInput);\n assertEquals(testUser.getPassword(), owner1.getPassword());\n assertEquals(testUser.getFirstName(), owner1.getFirstName());\n assertEquals(testUser.getLastName(), owner1.getLastName());\n\n }", "void addUser() throws NoSuchAlgorithmException\r\n\t{\r\n\t\tSystem.out.print(\"Create a user ID: \");\r\n\t\tString userIDinput = scan.next();\r\n\t\tSystem.out.print(\"Create a password: \");\r\n\t\tmakePassword(userIDinput, scan.next());\r\n\t}", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "@Test\n public void testCantRegisterMismatchPassword() {\n enterValuesAndClick(\"name\", \"[email protected]\", \"123456\", \"123478\");\n checkErrors(nameNoError, emailNoError, pwdsDoNotMatchError, pwdsDoNotMatchError);\n }", "Boolean registerNewUser(User user);", "@Test \n\tpublic void testRegisterValidUser() throws Exception {\n\t\tapp.getMailinatorHelper().getEmailsNumber();\n//\t\tbasePage.fillInRegistrationForm();\n\t\t\n\t\t//Step 1: Register valid user\n\t\t//\t\tStep 1-1: Fill and send form\n\t\t//\t\tStep 1-2: Get confirm email\n\t\t//\t\tStep 1-3: Confirm registration\n\t\t//\t\tStep 1-4: Check relogin\n\t\t//\t\tStep 1-1: Register valid user\n\t\t//\t\tStep 1-1: Register valid user\n\t\t//Step 2: Check that user successfully registered\n\t\t\n\t}", "public boolean registerNewUser(String szUserName, String szTelephone,\n\t\t\tString szEmail, String szPassword) throws Exception {\n\t\t// INFO\n\t\tplay.Logger.info(\"<BUISNESS_LOGIC> Register new user : \");\n\t\tplay.Logger.info(\"============================\");\n\t\tplay.Logger.info(\"For : =>>\");\n\t\tplay.Logger.info(\"User name : \" + szUserName);\n\t\tplay.Logger.info(\"Telephone : \" + szTelephone);\n\t\tplay.Logger.info(\"Email : \" + szEmail);\n\t\tplay.Logger.info(\"Password : \" + szPassword);\n\t\tplay.Logger.info(\"============================\");\n\t\tboolean isRegitred = false;\n\t\tif (setterDB.registerNewUser(szUserName, szTelephone, szEmail, szPassword)) {\n\t\t\tisRegitred = true;\n\t\t}\n\t\treturn isRegitred;\n\t}", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "void register() {\n if (registerView.getFirstName().length() == 0 || registerView.getLastName().length() == 0 || registerView.getUsername().length() == 0 || registerView.getPassword().length() == 0) {\n IDialog invalidRegistrationDialog\n = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Fields must be non-empty!\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n } else {\n if (userController.registerUser(registerView.getFirstName(), registerView.getLastName(), registerView.getUsername(), registerView.getPassword()) != null) {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.MAIN_MENU));\n } else {\n IDialog invalidRegistrationDialog = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Username is already taken\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n }\n }\n }", "@Override\n\tpublic boolean registerUtente(Utente user) {\n\t\tif(!userExists(user)) {\n\t\t\tDB db = getDB();\n\t\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\t\tlong hash = (long) user.getUsername().hashCode();\n\t\t\tusers.put(hash, user);\n\t\t\tdb.commit();\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\t\n\t}", "@Test\n public void testNonMatchingEmails() {\n registerUser(username, password, password, email, \"1\" + email, forename, surname, null);\n assertNull(userService.getUser(username));\n }", "boolean userRegistration(UserDTO user) throws UserException,ConnectException;", "User register(String firstName, String lastName, String username, String email) throws UserNotFoundException, EmailExistException, UsernameExistsException, MessagingException;", "@Test\n public void testRegisterUser() throws AuthenticationException, IllegalAccessException {\n facade.registerUser(\"fiske\", \"JuiceIsLoose123/\");\n assertEquals(\"fiske\", facade.getVeryfiedUser(\"fiske\", \"JuiceIsLoose123/\").getUserName(), \"Expects user exist after register\");\n }", "@Test\n public void testCantRegisterInvalidEmailShortPassword() {\n enterValuesAndClick(\"name\", \"invalidemail\", \"124\", \"\");\n checkErrors(nameNoError, emailInvalidError, pwdTooShortError, pwdRepeatRequiredError);\n }", "private void register() {\r\n if (mName.getText().length() == 0) {\r\n mName.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mEmail.getText().length() == 0) {\r\n mEmail.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() == 0) {\r\n mPassword.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() < 6) {\r\n mPassword.setError(\"password must have at least 6 characters\");\r\n return;\r\n }\r\n\r\n\r\n final String email = mEmail.getText().toString();\r\n final String password = mPassword.getText().toString();\r\n final String name = mName.getText().toString();\r\n\r\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password).addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n if (!task.isSuccessful()) {\r\n Snackbar.make(view.findViewById(R.id.layout), \"sign up error\", Snackbar.LENGTH_SHORT).show();\r\n } else {\r\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\r\n\r\n //Saves the user's info in the database\r\n Map<String, Object> mNewUserMap = new HashMap<>();\r\n mNewUserMap.put(\"email\", email);\r\n mNewUserMap.put(\"name\", name);\r\n\r\n FirebaseDatabase.getInstance().getReference().child(\"users\").child(uid).updateChildren(mNewUserMap);\r\n }\r\n }\r\n });\r\n\r\n }", "@Override\n\tpublic boolean isValid() {\n\t\tif(password != null && password.length() > 0) {\n\t\t\tboolean rst = password.equals(repeatPassword);\n\t\t\tif(rst == false) {\n\t\t\t\tMap<String, String > validationRst = getValidationRst();\n\t\t\t\tvalidationRst.put(\"password\", \"重复输入的密码不一致\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn super.isValid();\n\t}", "boolean hasPassword2();", "@Test\n public void testInvalidUsernameGreaterThan15Characters() {\n username = UUID.randomUUID().toString();\n assert username.length() >= 16;\n registerUser(username, password);\n assertNull(userService.getUser(username));\n }", "@Test\n\tvoid repeatedUsernameTest() throws Exception {\n\t\tUser userObj = new User();\n\t\tuserObj.setName(\"Siva Murugan\");\n\t\tuserObj.setEmail(\"[email protected]\");\n\t\tuserObj.setGender(\"M\");\n\t\tuserObj.setMobileNumber(9878909878L);\n\t\tuserObj.setRole(\"C\");\n\t\tuserObj.setUsername(\"sivanew\");\n\t\tuserObj.setPassword(\"Siva123@\");\n\t\tString userJson = new ObjectMapper().writeValueAsString(userObj);\n\t\twhen(userService.registerUser(any(User.class))).thenThrow(new UsernameAlreadyExistException(\"E_UR01\"));\n\t\tmockMvc.perform(post(\"/vegapp/v1/users/register\").contentType(MediaType.APPLICATION_JSON).content(userJson))\n\t\t\t\t.andExpect(status().isConflict()).andExpect(jsonPath(\"$.errorMessage\").value(\"E_UR01\"));\n\t}", "@Test\n public void testRegister_emptyPassword() {\n SignUpRequest request = new SignUpRequest(DUPLICATE, \"\");\n\n dao.register(request);\n\n verify(controller).emptyFields();\n\n try {\n verify(connection, never()).register(request);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public List<String> register( RegistrationUser user )\n\t{\n\t\ttry\n\t\t{\n\t\t\t// Base64 codiertes Passwort decodieren\n\t\t\tbyte[] passwordBytes = CodecUtility.base64ToByte( user.getPassword() );\n\t\t\tuser.setPassword( StringUtils.toString( passwordBytes, ApiConstants.DEFAULT_CHARSET ) );\n\n\t\t\t// Passwortkomplexität prüfen\n\t\t\tvalidateCredentialComplexity( user.getPassword() );\n\n\t\t\t// 2-Faktor Secret für Nutzer erzeugen und Base32 codieren\n\t\t\tbyte[] totpSecretBytes = genTotpSecret();\n\t\t\tString totpSecretBase32 = CodecUtility.byteToBase32( totpSecretBytes );\n\n\t\t\t// Salt für Nutzer erzeugen und Base64 codieren\n\t\t\tbyte[] saltBytes = genSalt();\n\t\t\tString saltBase64 = CodecUtility.byteToBase64( saltBytes );\n\n\t\t\t// Salted Passwort-Hash für Nutzer erzeugen und Base64 codieren\n\t\t\tbyte[] digestBytes = genSaltedHash( user.getPassword(), saltBytes );\n\t\t\tString digestBase64 = CodecUtility.byteToBase64( digestBytes );\n\n\t\t\t// Salt für 2-Faktor Reset-Token erzeugen und Base64 codieren\n\t\t\tbyte[] totpResetTokenSaltBytes = genSalt();\n\t\t\tString totpResetTokenSaltBase64 = CodecUtility.byteToBase64( totpResetTokenSaltBytes );\n\n\t\t\t// 2-Faktor Reset-Token für Nutzer erzeugen\n\t\t\tString totpResetTokenBase32 = genTotpResetToken();\n\n\t\t\t// Salted 2-Faktor Reset-Token-Hash erzeugen und Base64 codieren\n\t\t\tbyte[] totpResetTokenDigestBytes = genSaltedHash( totpResetTokenBase32, totpResetTokenSaltBytes );\n\t\t\tString totpResetTokenDigestBase64 = CodecUtility.byteToBase64( totpResetTokenDigestBytes );\n\n\t\t\t// Benutzer Entität erzeugen\n\t\t\tEntityUser eUser = new EntityUser();\n\t\t\teUser.setUsername( user.getUsername() );\n\t\t\teUser.setTotpSecret( totpSecretBase32 );\n\t\t\teUser.setDigest( digestBase64 );\n\t\t\teUser.setSalt( saltBase64 );\n\t\t\teUser.setTotpResetToken( totpResetTokenDigestBase64 );\n\t\t\teUser.setTotpResetTokenSalt( totpResetTokenSaltBase64 );\n\n\t\t\t// Benutzer in der Datenbank speichern\n\t\t\tEntityUser eUserPersisted = m_userDAOBean.create( eUser );\n\n\t\t\t// TODO Prüfen ob Salt, SaltedHash oder TOTPSecret bereits von anderem Benutzer verwendet\n\n\t\t\t// Registrierungs QR-Code für Benutzer erzeugen\n\t\t\tString qrCodeUrl = getQRCodeURL( eUserPersisted.getUsername(), eUserPersisted.getTotpSecret() );\n\n\t\t\t// URL für QR-Code und TOTP Reset Token zurückgeben\n\t\t\tList<String> result = new ArrayList<String>();\n\t\t\tresult.add( qrCodeUrl );\n\t\t\tresult.add( totpResetTokenBase32 );\n\t\t\treturn result;\n\t\t}\n\t\tcatch (RuntimeException rex)\n\t\t{\n\t\t\tthrow rex;\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tthrow new GenericUserRegistrationException();\n\t\t}\n\t}", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "private void registerUser(){\r\n String E = Email.getText().toString().trim();\r\n String P = Password.getText().toString().trim();\r\n\r\n //if email is empty then give error\r\n if(E.isEmpty()){\r\n Email.setError(\"Email is required\");\r\n Email.requestFocus();\r\n return;\r\n }\r\n\r\n //if email is not an email format give error\r\n if(!Patterns.EMAIL_ADDRESS.matcher(E).matches()){\r\n Email.setError(\"Please enter a valid email\");\r\n Email.requestFocus();\r\n return;\r\n }\r\n //if password is empty then give error\r\n if(P.isEmpty()){\r\n Password.setError(\"Password is required\");\r\n Password.requestFocus();\r\n return;\r\n }\r\n //if password is less then 6 characters, give error.\r\n if(P.length()< 6){\r\n Password.setError(\"Minimum Password length has to be 6 or more characters\");\r\n Password.requestFocus();\r\n return;\r\n }\r\n //Calls the firebase method to create a new user.\r\n mAuth.createUserWithEmailAndPassword(E, P).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n if(task.isSuccessful()){\r\n Toast.makeText(getApplicationContext(),\"User register Sucessfully\",Toast.LENGTH_SHORT).show();\r\n }\r\n }\r\n });\r\n }", "@Override\n\tpublic boolean register(User user) {\n\t\tboolean flag = false;\n\t\tList<User> list = this.userDao.findAll(\"and userName = ?\", user.getUserName());\n\t\t//System.out.println(list.size());\n\t\tif(list.size() <= 0){\n\t\t\tthis.userDao.register(user);\n\t\t\tflag = true;\n\t\t}\n\t\treturn flag;\n\t}", "public Integer register(UserBean user, String password) {\n UserBean ubean = null;\n Integer res = null;\n UserBean ubeanuname = findUser(user.getUsername());\n UserBean ubeanemail = findUserByEmail(user.getEmail());\n if(ubeanuname == null && ubeanemail == null) {\n ResultSet resultSet = null;\n try {\n resultSet = queryUpdate(String.format(\n \"INSERT INTO %s (name,email,username,password,phone_number)\"\n + \"VALUES ('%s','%s','%s','%s','%s')\",\n tableName,user.name,user.email,user.username, password, user.phoneNumber\n ));\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try {\n ResultSet temp = query(String.format(\n \"SELECT * FROM %s WHERE username = '%s'\", this.tableName, user.getUsername()));\n if(temp.next()) {\n ubean = parseResultSet(temp);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n res = ubean.getId();\n }\n\n return res;\n }", "public void register(String firstname, String lastname, String username, String email, String password) {\n BasicDBObject query = new BasicDBObject();\n query.put(\"firstname\", firstname);\n query.put(\"lastname\", lastname);\n query.put(\"username\", username);\n query.put(\"email\", email);\n query.put(\"password\", password);\n query.put(\"rights\", 0);\n users.save(query);\n System.out.println(\"### DATABASE: user \" + username + \" registered ... password hash: \" + password);\n }", "@Override\n\tpublic PoolUser registerUser(PoolUser pooler, String password2) throws SQLException {\n\t\tif(null==db){\n\t\t\tdb = new DbConnection();\n\t\t\tdb.openConnection();\n\t\t}\n\t\tint n = db.addToUserDb(pooler);\n\t\tint m=0;\n\t\tif(n==1){\t\n\t\t\tm = db.addUserToLoginTable(pooler.getUserName(), password2);\t\t\t\n\t\t}if(n!=1||m!=1){\n\t\t\tpooler = null;\n\t\t}\n\t\treturn pooler;\n\t}", "@RequestMapping(value = \"register\", method = RequestMethod.POST)\n public String register(@ModelAttribute @Valid RegisterForm registerForm, Errors errors, HttpServletRequest request, Model model) {\n\n if (errors.hasErrors()) {\n model.addAttribute(\"title\", \"Register to RandNums\");\n model.addAttribute(\"sessionActive\", isSessionActive(request.getSession()));\n return \"login/register\";\n }\n\n User existingUser = userDao.findByUsername(registerForm.getUsername());\n\n if (existingUser != null) {\n errors.rejectValue(\"username\", \"username.alreadyexists\", \"A user with that username already exists\");\n model.addAttribute(\"title\", \"Register\");\n model.addAttribute(\"sessionActive\", isSessionActive(request.getSession()));\n return \"login/register\";\n }\n\n User newUser = new User(registerForm.getUsername(), registerForm.getEmail(), registerForm.getPassword());\n\n userDao.save(newUser);\n setUserInSession(request.getSession(), newUser);\n\n return \"redirect:/home\";\n }", "public static RegisterResult register(RegisterRequest r) {\n\n User new_user = new User(UUID.randomUUID().toString(), r.userName, r.password, r.email,\n r.firstName, r.lastName, r.gender);\n\n RegisterResult result = new RegisterResult();\n\n User test_user = UserDao.getUser(r.userName);\n if (test_user != null && !test_user.userName.equals(\"\"))\n {\n result.message = \"Error: Username already taken by another user\";\n result.success = false;\n return result;\n }\n\n result.authToken = UUID.randomUUID().toString();\n AuthTokenDao.updateToken(r.userName, result.authToken);\n\n Person p = new Person(new_user.personID, r.userName, r.firstName, r.lastName, r.gender);\n PersonDao.addPerson(p);\n\n result.userName = r.userName;\n result.personID = new_user.personID;\n UserDao.addUser(new_user);\n\n // Generate 4 generations of ancestry\n GenerateData.generateGenerations(r.userName, 4);\n\n result.success = true;\n\n return result;\n }", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "Registration(String u, char[] fPassword, char[] sPassword)\n\t{//constructor that initializes the variables above\n\t\tusername = u;\n\t\tfirstPassword = new String(fPassword);\n\t\tsecondPassword = new String(sPassword);\n\t}", "public void registar() {\r\n String user, pw, answer;\r\n boolean ret, privileged;\r\n Scanner s = new Scanner(System.in);\r\n System.out.print(\"Introduza o seu username: \");\r\n user = s.nextLine();\r\n System.out.print(\"Introduza a password: \");\r\n pw = s.nextLine();\r\n do {\r\n System.out.print(\"É um utilizador Premium? (s/n): \");\r\n answer = s.nextLine();\r\n } while (!answer.equals(\"s\") && !answer.equals(\"n\"));\r\n privileged = answer.equals(\"s\");\r\n ret = stub.register(user, pw, privileged);\r\n if (ret) System.out.println(\"Registo completo!\");\r\n else System.out.println(\"Ups! Esse username já existe...\");\r\n }", "@Test\r\n public void positiveRegistration() {\r\n driver.get(\"http://127.0.0.1:8888/wp-login.php?action=register\");\r\n StringBuilder sb = new StringBuilder(len);\r\n for (int i = 0; i < len; i++) {\r\n sb.append(AB.charAt(rnd.nextInt(AB.length())));\r\n }\r\n String charSequence = \"\";\r\n charSequence = sb.toString();\r\n WebElement loginField = driver.findElement(By.xpath(\"//input[@id='user_login']\"));\r\n loginField.sendKeys(charSequence);\r\n WebElement passwdField = driver.findElement(By.xpath(\"//input[@id='user_email']\"));\r\n passwdField.sendKeys(charSequence+\"@gmail.com\");\r\n\r\n WebElement registerButton = driver.findElement(By.xpath(\"//input[@name='wp-submit']\"));\r\n registerButton.click();\r\n\r\n WebElement registrationMessage = driver.findElement(By.xpath(\"//p[@class='message']\"));\r\n Assert.assertEquals(registrationMessage.getText(),\"Регистрация завершена. Проверьте вашу почту.\");\r\n }", "void validatePassword(String usid, String password) throws Exception;", "public User register(User user) throws NoSuchAlgorithmException, InvalidKeySpecException\n\t{\n\t\t\t\n\t\tUserDAO userdao=new UserDAO();\n\t\t\t\t\t\n\t\tString password = user.getPassword(); \n\t\tpassword=Hash.hashFunction(password);\n\t\tuser.setPassword(password);\n\t\t\t\t\n\t\tif(userdao.storeUser(user)){\n\t\t\tuser.setValid(true);\n\t\t}else{\n\t\t\tuser.setValid(false);\n\t\t}\n\t\treturn user;\n\t}", "@Test\n\t void testPassword() {\n\t\tString expected=passwordEncoder.encode(\"faizan@123\");\n\t\tString actual=user.getPassword();\n\t\tassertNotEquals(expected, actual);\n\t}", "@Test\n public void testRegisterDuplicateUsername() {\n SignUpRequest request = new SignUpRequest(DUPLICATE, \"Secret\");\n\n dao.register(request);\n\n verify(controller).duplicateUsername();\n\n try {\n verify(connection, never()).register(request);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "@Test\n\tpublic void registerUserTest4() throws Exception {\n\t\tSignUpRequest signUpRequest = new SignUpRequest(\"Marko\", \"Troskot\", \"MTro\", \"[email protected]\", \"pass123\", \"pass1234\");\n\n\t\tMockito.when(userService.existsByUsername(ArgumentMatchers.anyString())).thenReturn(false);\n\t\tMockito.when(userService.existsByEmail(ArgumentMatchers.anyString())).thenReturn(false);\n\n\t\tmockMvc.perform(post(\"/api/auth/signup\").contentType(MediaType.APPLICATION_JSON).content(objectMapper.writeValueAsString(signUpRequest)).characterEncoding(\"UTF-8\"))\n\t\t\t\t.andDo(print()).andExpect(status().is(400)).andExpect(status().reason(passwordsNoMatch));\n\t}", "public String register(String fname, String lname, String password, String again, String email, String pnumber) throws IOException, Exception {\n\t\tUser u = new User();\n\t\tUserDAOImpl ud = new UserDAOImpl();\n\n\t\tu.setfName(fname);\n\t\tu.setlName(lname);\n\t\tu.setEmail(email);\n\t\tu.setPassword(password);\n\t\tu.setPhoneNumber(pnumber);\n\n\t\treturn ud.register(u);\n\t}", "private boolean attemptRegistration() {\n\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String name = mFullName.getText().toString();\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n String confPassword = mPasswordConf.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n if(!TextUtils.isEmpty(confPassword) && !password.equals(confPassword)){\n mPasswordConf.setError(\"The passwords do not match\");\n focusView = mPasswordConf;\n cancel = true;\n }\n\n if(TextUtils.isEmpty(name)){\n mFullName.setError(getString(R.string.error_field_required));\n focusView = mFullName;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n return !cancel;\n }", "private void createUser(final String email, final String password) {\n\n }", "public boolean registerUser(String username, String password) throws SQLException {\n String user_row = String.format(\"INSERT INTO %s (%s, %s) VALUES (?, ?)\",\n table_users.name, table_users.cols.username, table_users.cols.hash_pw);\n //Encrypt password\n String salt = BCrypt.gensalt(FHALF_LENGTH, new SecureRandom());\n StringBuilder hash_pw = new StringBuilder(BCrypt.hashpw(password, salt));\n\n //Move second half of salt to end of string\n String lHalf = hash_pw.substring(FHALF_LENGTH, SALT_LENGTH);\n hash_pw.replace(FHALF_LENGTH, SALT_LENGTH, \"\");\n hash_pw.append(lHalf);\n\n //Set parameters\n PreparedStatement prepStmnt = con.prepareStatement(user_row);\n prepStmnt.setString(1, username);\n prepStmnt.setString(2, hash_pw.toString());\n int user_cols_changed = prepStmnt.executeUpdate();\n \n //Retrieve user id (FUCK)\n String retrieve = String.format(\"SELECT * FROM %s WHERE %s = ?\", table_users.name, table_users.cols.username);\n PreparedStatement stmnt = con.prepareStatement(retrieve);\n stmnt.setString(1, username);\n ResultSet curr_user = stmnt.executeQuery();\n curr_user.next();\n int id = curr_user.getInt(table_users.cols.id);\n \n //Insert row for user avatar info\n String avatar_row = String.format(\"INSERT INTO %s (%s) VALUES (?)\", table_avatars.name, table_avatars.cols.id);\n PreparedStatement avatar = con.prepareStatement(avatar_row);\n avatar.setInt(1, id);\n int avatar_cols_changed = avatar.executeUpdate();\n \n return user_cols_changed != 0 && avatar_cols_changed != 0;\n }", "public boolean checkUniqueLoginOnRegister(String login) {\n User user = userRepository.findByUsername(login);\n if (user == null) {\n return true;\n }\n return false;\n }", "@Override\n public boolean register(UserDTO user) throws WrongUserDatabase, UserDatabaseNotFoundException, UserExistsException {\n userRepository.addUser(user);\n return true;\n }", "public ErrorCode regist( String uname, String pass ){\n ErrorCode eCode = userBaseInfoManager.regist( uname, uname + \"nick\", pass );\n if( eCode.isSuccess() ) {\n User user = getUserByName( uname );\n initNewUser( user );\n }\n return eCode;\n }", "@RequestMapping(value = \"/registration/user\", method = RequestMethod.POST)\n public String registerNewUser(\n @ModelAttribute(\"registeredUser\") User user,\n BindingResult result,\n @RequestParam String passwordRepeat) throws ServiceException\n {\n userRegistrationValidator.validate(user, passwordRepeat, result);\n if (result.hasErrors())\n {\n return \"registration\";\n }\n userService.register(user);\n return \"authorization\";\n }", "public void registerUser(RegisterForm form) throws DAOException;", "public boolean registerNewUser(String un, String pw, String fn, String ln, String sq, String sa, int age) {\n\n boolean success;\n\n if (isUsernameExist(un)) {\n success = false;\n }\n else {\n // encrypting input password\n SHAEncryption sha = new SHAEncryption();\n String shaPW = sha.getSHA(pw);\n\n // accessing registeredUser table (collection)\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n\n // creating new user document based on the input from UI\n Document newUser = new Document(\"username\", un)\n .append(\"password\", shaPW)\n .append(\"firstName\", fn)\n .append(\"lastName\", ln)\n .append(\"age\", age)\n .append(\"secureQ\", sq)\n .append(\"secureA\", sa.toLowerCase())\n .append(\"status\", \"\")\n .append(\"hidefriends\",false)\n .append(\"hideposts\",false)\n .append(\"hideage\",false)\n .append(\"hidestatus\",false);\n\n // insert newUser into registeredUser collection\n collRU.insertOne(newUser);\n System.out.println(\"Username \" + un + \" is registered!\");\n success = true;\n \n // create followList for new user\n db.getCollection(\"followList\").insertOne(\n new Document(\"username\", un).append(\"following\", new ArrayList<String>()));\n }\n\n return success;\n }", "public void creatUser(String name, String phone, String email, String password);", "@Test\n public void testPasswordLowerBound()\n {\n String valid = repeatM(8);\n owner.setPassword(valid);\n assertEquals(0, validator.validate(owner).size());\n }", "@Override\n public void onClick(View v) {\n try {\n Login login = new Login();\n login.setSalt(new Date());\n login.setUsername(mUsernameInput.getText().toString());\n login.setPassword(login.hashedPassword(mPasswordInput.getText().toString()));\n\n if (mLoginDb.getLogin(login.getUsername()) == null && mPasswordInput.getText().toString().length() != 0) {\n mLoginDb.addLogin(login);\n mUserId = login.getId().toString();\n //Log.d(TAG, \"register \" + mUserId);\n Bundle bundle = new Bundle();\n Intent intent = PasswordListActivity.newIntent(getActivity());\n setBundles(bundle, intent);\n\n startActivity(intent, bundle);\n\n Toast.makeText(getActivity(),\n R.string.register_successful,\n Toast.LENGTH_SHORT).show();\n } else if (mUsernameInput.getText().toString().length() == 0) {\n Toast.makeText(getActivity(),\n R.string.register_username_length,\n Toast.LENGTH_SHORT).show();\n }\n else if (mPasswordInput.getText().toString().length() == 0) {\n Toast.makeText(getActivity(),\n R.string.register_password_length,\n Toast.LENGTH_SHORT).show();\n } else if (mLoginDb.getLogin(login.getUsername()).getUsername() != null) {\n Toast.makeText(getActivity(),\n R.string.register_exists,\n Toast.LENGTH_SHORT).show();\n } else {\n throw new Exception();\n }\n } catch (Exception e) {\n e.printStackTrace();\n Toast.makeText(getActivity(),\n R.string.register_error,\n Toast.LENGTH_SHORT).show();\n }\n }", "public boolean register(String name, Date birthday, int phone, String username, String password) {\n\t\tif (!userCatalog.isUser(username)) {\n\t\t\tUsuario user = new Usuario(name, birthday, phone, username, password);\n\t\t\tif (userCatalog.addUser(user))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void register(RegistrationDTO p) throws UserExistException {\n userLogic.register((Person) p);\n }", "@WebMethod public Pertsona register(String izena, String abizena1, String abizena2, String erabiltzaileIzena, String pasahitza, String telefonoa, String emaila, LocalDate jaiotzeData, String mota) throws UserAlreadyExist;", "@Transactional\n\tpublic void createRemindedPassword(RegisterUserForm ruf)\n\t{\n\t\tMd5PasswordEncoder passwordEncoder = new Md5PasswordEncoder();\n\t\tString hashedPassword = passwordEncoder.encodePassword(ruf.getPassword(), null);\n\t\n\t\t// create remindpassword for the user\n\t\t\n\t\tDate \t\tdt \t= new Date();\n\t\tTimestamp \tnow = new Timestamp(dt.getTime());\n\t\t\n\t\tString confKey \t= \"\" + dt;\n\t\tString confirmKey = encoder.encodeConfirmAccountHash(confKey);\n\t\tString sql = \"UPDATE confirmaccount SET confirmkey=:key, createdon=:date, remindpassword=BIT'1'\" +\n\t\t\t\t\" WHERE username=:user\";\n\t\tem.createNativeQuery(sql)\n\t\t.setParameter(\"user\", ruf.getUserName())\n\t\t.setParameter(\"date\", now)\n\t\t.setParameter(\"key\", confirmKey)\n\t\t.executeUpdate();\t\n\t}", "public static boolean validatorUserRegistrationInput(String login, String password, String repeatedPassword) throws InputException {\n boolean valid;\n if (login.length() == 0 || password.length() == 0 || repeatedPassword.length() == 0) {\n throw new InputException(MessageManager.EMPTY_FIELD_VALID_MESSAGE);\n }\n if (!checkWithRegex(login, PATTERN_LATIN_STRING_LENGTH20)) {\n throw new InputException(MessageManager.INCORRECT_LOGIN_VALID_MESSAGE);\n }\n if (!checkWithRegex(password, PATTERN_LATIN_STRING_LENGTH20)) {\n throw new InputException(MessageManager.INCORRECT_PASSWORD_MESSAGE);\n }\n if (!password.equals(repeatedPassword)) {\n throw new InputException(MessageManager.INCORRECT_REP_PASSWORD_VALID_MESSAGE);\n }\n valid = true;\n return valid;\n }", "private void registerNewUser(String _login, char[] _password) {\n try {\n File passwordFile = new File(\"passwords.txt\");\n FileWriter fw = new FileWriter(passwordFile, true);\n BufferedWriter bw = new BufferedWriter(fw);\n\n bw.write(_login);\n bw.write(\",\");\n bw.write(_password);\n bw.newLine();\n bw.close();\n fw.close();\n } catch (IOException ex) {\n System.out.println(ex.getMessage());\n }\n }", "public RegisterResult register(RegisterRequest r) throws DBException, IOException\n {\n try\n {\n idGenerator = UUID.randomUUID();\n String personID = idGenerator.toString();\n User newUser = new User(\n r.getUserName(),\n r.getPassword(),\n r.getEmail(),\n r.getFirstName(),\n r.getLastName(),\n r.getGender(),\n personID\n );\n userDao.postUser(newUser);\n commit(true);\n login = new LoginService();\n\n LoginRequest loginRequest = new LoginRequest(r.getUserName(), r.getPassword());\n LoginResult loginResult = login.loginService(loginRequest);\n login.commit(true);\n\n fill = new FillService();\n FillRequest fillRequest = new FillRequest(r.getUserName(), 4);\n FillResult fillResult = fill.fill(fillRequest);\n fill.commit(true);\n\n\n result.setAuthToken(loginResult.getAuthToken());\n result.setUserName(loginResult.getUserName());\n result.setPersonID(loginResult.getPersonID());\n result.setSuccess(loginResult.isSuccess());\n\n\n if( !loginResult.isSuccess() || !fillResult.isSuccess() )\n {\n throw new DBException(\"Login failed\");\n }\n\n }\n catch(DBException ex)\n {\n result.setSuccess(false);\n result.setMessage(\"Error: \" + ex.getMessage());\n commit(false);\n }\n return result;\n }", "@Override\n public boolean register(Client client) {\n boolean result = false;\n Connection con = null;\n try {\n con = connection;\n con.setAutoCommit(false);\n PreparedStatement st = con.prepareStatement(Sql.REGISTER);\n st.setString(1, client.getLogin());\n String pass = BCrypt.hashpw(client.getPassword(), BCrypt.gensalt(5));\n st.setString(2, pass);\n st.setString(3, client.getPassport());\n result = st.executeUpdate() > 0;\n con.commit();\n } catch (SQLException e) {\n try {\n con.rollback();\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n throw new RuntimeException(\"Such user exists\");\n } finally {\n try {\n con.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n return result;\n }", "@Override\n @RequestMapping(\"/register\")\n public ConfirmationMessage register(@RequestParam(value = \"username\", defaultValue = \"\") String username,\n @RequestParam(value = \"password1\", defaultValue = \"\") String password1,\n @RequestParam(value = \"password2\", defaultValue = \"\") String password2,\n @RequestParam(value = \"email\", defaultValue = \"\") String email,\n @RequestParam(value = \"city\", defaultValue = \"\") String city) {\n return userLogic.register(username, password1, password2, email, city);\n }", "@Override\n public User register(User user) {\n if (user.getFirstName() == null || user.getFirstName().length() == 0) //first name cannot be empty\n {\n return null;\n }\n if (user.getLastName() == null || user.getLastName().length() == 0) //last name cannot be empty\n {\n return null;\n }\n if (user.getEmail().equals(\"\") && user.getTelephone().equals(\"\")) {\n return null;\n }\n if ((isEmail(user.getEmail()) == false && !user.getEmail().equals(\"\"))\n || (isNumeric(user.getTelephone()) == false && !user.getTelephone().equals(\"\")))//email and telephone need at least one\n {\n return null;\n }\n\n User newuser = new User((new DataClass().getLastUserID() + 1), user.getFirstName(), user.getLastName(),\n user.getEmail(), user.getTelephone(), 0);\n new DataClass().addUser(newuser);\n return newuser;\n }", "@Test\n public void testUserManager(){\n userManager.addUser(\"and\",\"rew\");\n assertEquals(\"rew\",userManager.getPassword(\"and\"));\n userManager.addUser(\"a\",\"a\");\n assertEquals(\"a\",userManager.getPassword(\"a\"));\n assertEquals(\"rew\",userManager.getPassword(\"and\"));\n }", "private void attemptRegister(final View button) {\n validateFirst();\n }", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n UsernamePasswordToken usernamePasswordToken0 = new UsernamePasswordToken(\" - \", \" - \", (InetAddress) null);\n char[] charArray0 = new char[4];\n charArray0[0] = '1';\n charArray0[1] = '<';\n charArray0[2] = 'u';\n charArray0[3] = 'F';\n usernamePasswordToken0.setPassword(charArray0);\n usernamePasswordToken0.setUsername(\" - \");\n usernamePasswordToken0.getInetAddress();\n assertFalse(usernamePasswordToken0.isRememberMe());\n }", "public void register(String form /* should be a Form from GUI */){\n String email = \"email\";\n String nome_completo = \"full_name\";\n Date data_nascimento = new Date(1996-10-21);\n String password = getMd5(\"password\");\n String nif = \"nif\";\n String morada = \"morada\";\n String telemovel = \"telemovel\";\n User user = new User(email);\n if (!user.exists()){\n user.setNome_completo(nome_completo);\n user.setData_nascimento(data_nascimento);\n user.setPassword(password);\n user.setNif(nif);\n user.setMorada(morada);\n user.setTelemovel(telemovel);\n user.setAdmin(FALSE);\n //System registers person\n //db.register(user)\n }\n }", "void registerUser(User newUser);", "public void checkRegister(TextField username, PasswordField password, PasswordField repeatPassword, String mail, String phone, List<CheckBox> checkBoxes){\n roleId = new ArrayList<>();\n for (int i = 0; i < checkBoxes.size(); i++) {\n if (checkBoxes.get(i).isSelected()) {\n roleId.add(\"\" + (i + 1));\n }\n }\n if (password.getText().length() < 3) {\n registerText.getStyleClass().add(\"red\");\n registerText.setText(\"Passordet må være lengre!\");\n } else if (!validatePhone(phone)) {\n registerText.getStyleClass().add(\"red\");\n registerText.setText(\"Telefon nummer må bestå av åtte siffer\");\n } else if (!validateMail(mail)) {\n registerText.getStyleClass().add(\"red\");\n registerText.setText(\"Epost må være på formatet \\\"[email protected]\\\"\");\n } else if (!(roleId.size() > 0)) {\n registerText.getStyleClass().add(\"red\");\n registerText.setText(\"Vennligst velg minst en rolle\");\n } else if (password.getText().equals(repeatPassword.getText())) {\n handleRegister(login.register(username.getText(), password.getText(), mail, phone, roleId));\n } else {\n registerText.getStyleClass().add(\"red\");\n registerText.setText(\"Passordene må være like!\");\n }\n }", "@Test(priority=1)\n\tpublic void verifyPasswordsMatch() {\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"[email protected]\");\n\t\tsignup.enterPassword(\"abcd\");\n\t\tsignup.reenterPassword(\"1235\");\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\tAssert.assertTrue(TestHelper.isStringPresent(errors, \"Passwords do not match; please enter a password and reenter to confirm.\\nPasswords must contain at least 6 characters and no spaces.\"));\n\t}", "boolean isUserExists(RegisterData data) throws DuplicateUserException;" ]
[ "0.7179783", "0.693734", "0.68969727", "0.67835003", "0.67390656", "0.6683439", "0.6662445", "0.6627291", "0.65856594", "0.6574794", "0.65496755", "0.65442526", "0.65405214", "0.6534288", "0.65020144", "0.648749", "0.6486778", "0.6463125", "0.6459278", "0.6421621", "0.6418824", "0.6418774", "0.639946", "0.6384483", "0.6370946", "0.6361239", "0.6317715", "0.63121754", "0.63076985", "0.63017285", "0.6278727", "0.62751925", "0.62740713", "0.6256314", "0.62529194", "0.62472653", "0.62439364", "0.62026465", "0.61826354", "0.618037", "0.6174175", "0.6165593", "0.6160872", "0.615822", "0.6151786", "0.61503774", "0.6138569", "0.6138569", "0.6138569", "0.6138569", "0.6138569", "0.6138569", "0.6138569", "0.6138569", "0.61367047", "0.61154735", "0.6115026", "0.610417", "0.6101798", "0.6099919", "0.60954255", "0.60869247", "0.608357", "0.6077566", "0.60759807", "0.60750216", "0.607377", "0.6069046", "0.606743", "0.60670584", "0.6059326", "0.60588884", "0.60569155", "0.6055683", "0.60542256", "0.60501826", "0.60472953", "0.60445315", "0.60408825", "0.60386425", "0.60374415", "0.60292804", "0.6022487", "0.6009904", "0.6005917", "0.6002095", "0.5998945", "0.5990443", "0.5989665", "0.59825647", "0.5980618", "0.5979247", "0.59624916", "0.5955523", "0.59549", "0.595238", "0.5949489", "0.59441006", "0.59365904", "0.5935238", "0.5926801" ]
0.0
-1
Create new user using external token only error expected
@Test public void createNewUserByExternalTokenAndCheckIt() throws Exception { UserLogin userLogin = new UserLogin(); userLogin.setUserToken(UUID.randomUUID().toString()); boolean isThrow = false; try { UserResponse userResponse = loginsService.checkLoginSignInSignUp(userLogin, "SignUp"); } catch (ApplicationException e) { isThrow = true; } assertThat(isThrow); //Add login and expect new user successful registration userLogin.setUserLogin("[email protected]"); UserResponse userResponse = loginsService.checkLoginSignInSignUp(userLogin, "SignUp"); assertThat(userResponse.getUserMail().equals(userLogin.getUserLogin())); assertThat(userResponse.getUserPoints()).size().isEqualTo(5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;", "public UserAuthToken createUser(CreateUserRequest request);", "String createToken(User user);", "int createUser(User data) throws Exception;", "public Token createAuthorizationToken(User user);", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "UserCreateResponse createUser(UserCreateRequest request);", "public RecordObject createUser(String token, Object record) throws RestResponseException;", "Boolean registerNewUser(User user);", "public void createUser(User user);", "public void createUser(User user) {\n\n\t}", "public void creatUser(String name, String phone, String email, String password);", "boolean create(User user) throws Exception;", "int newUser(String username, String password, Time creationTime);", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "private String newToken(String token) {\n UserDetails userDetails = new UserDetails();\r\n userDetails.setEmail(jwtUtils.extractEmail(token));\r\n userDetails.setUserType((String) jwtUtils.extractAllClaims(token).get(\"userType\"));\r\n return jwtUtils.generateToken(userDetails);\r\n }", "@PreAuthorize(\"@userAuthorize.canCreate(#user)\")\n\t@RequestMapping(value = \"/createWithLogin\", method = RequestMethod.POST)\n\tpublic ResponseEntity<?> createWithLogin(@RequestBody User user, @RequestParam Map<String, Object> params) throws NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, KeyStoreException, KeyManagementException, UnrecoverableKeyException {\n\t\t// Call serverauth to create user.\n\t String serverauthUrl = evn.getProperty(\"serverauth.url\");\n\t String token = params.get(\"token\").toString();\n\t Map<String, Object> data = new HashMap<String, Object>();\n\t data.put(\"username\", user.getUsername());\n\t data.put(\"password\", user.getPassword());\n\t data.put(\"displayname\", user.getDisplayname());\n\t data.put(\"thumbnail\", user.getThumbnail());\n\t data.put(\"enabled\", true);\n\t ResponseEntity<Object> response = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/createWithEvent\", HttpMethod.POST, token, null, data, null);\n\t Map<String, Object> resultRemote = (Map<String, Object>) response.getBody();\n\t if(resultRemote.get(\"error\") != null) {\n\t \t// throw server exception.\n\t\t \tthrow new ServerException(Constant.SERVERCODE_ERROR);\n\t }\n\t \n\t try {\n\t \tUser result = userService.create(user);\n\t\t\t// Call serverauth to confirm create user as SUCCESS.\n\t\t\tresponse = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/confirmStatus/\" + resultRemote.get(\"id\") + \"/\" + Constant.SERVICETRANSACTION_SUCCESS, HttpMethod.GET, token, null, null, null);\n\t\t\t// return.\n\t\t\treturn new ResponseEntity<Integer>(result.getId(), HttpStatus.OK);\n\t } catch(Exception ex) {\n\t\t\t// Call serverauth to confirm create user as ABORT.\n\t\t\tresponse = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/confirmStatus/\" + resultRemote.get(\"id\") + \"/\" + Constant.SERVICETRANSACTION_ABORT, HttpMethod.GET, token, null, null, null);\n\t\t\t// throw server exception.\n\t\t \tthrow new ServerException(Constant.SERVERCODE_ERROR);\n\t }\n\t \n\t}", "public void createUserAccount(UserAccount account);", "@Test\n\tpublic void test_create_new_user_success(){\n\t\tUser user = new User(null, \"create_user\", \"[email protected]\", \"12345678\");\n\t\tResponseEntity<User> response = template.postForEntity(REST_SERVICE_URI + ACCESS_TOKEN + token, user, User.class);\n\t\tUser newUser = response.getBody();\n\t\tassertThat(newUser.getName(), is(\"create_user\"));\n\t\tassertThat(response.getStatusCode(), is(HttpStatus.CREATED));\n\t\tvalidateCORSHttpHeaders(response.getHeaders());\n\t}", "private String createAuthToken(User user) {\n // create new Auth Token\n String authToken = userAuthenticationService.generateToken();\n\n // store the token\n userAuthenticationService.storeAuthToken(user, authToken);\n return authToken;\n }", "@POST\n @AuthProviderRESTExposure\n public String createUser(@QueryParam(\"token\") String authToken, APIUser user) \n throws GuacamoleException {\n UserContext userContext = authenticationService.getUserContextFromAuthToken(authToken);\n \n // Get the directory\n Directory<String, User> userDirectory = userContext.getUserDirectory();\n\n // Create the user\n userDirectory.add(new APIUserWrapper(user));\n\n return user.getUsername();\n }", "public int createAccount(User user) throws ExistingUserException,\n UnsetPasswordException;", "@Test\n public void test_create_user_and_login_success() {\n try {\n TokenVO firstTokenVO = authBO.createUser(\"createduser1\",\"createdpassword1\");\n Assert.assertNotNull(firstTokenVO);\n Assert.assertNotNull(firstTokenVO.getBearer_token());\n Assert.assertTrue(firstTokenVO.getCoachId() > 1);\n String firstToken = firstTokenVO.getBearer_token();\n\n TokenVO secondTokenVO = authBO.login(\"createduser1\", \"createdpassword1\");\n Assert.assertNotNull(secondTokenVO);\n Assert.assertNotNull(secondTokenVO.getBearer_token());\n Assert.assertTrue(secondTokenVO.getCoachId() > 1);\n Assert.assertTrue(secondTokenVO.getBearer_token() != firstTokenVO.getBearer_token());\n Assert.assertTrue(secondTokenVO.getCoachId() == firstTokenVO.getCoachId());\n } catch (AuthException e) {\n System.err.println(e.getMessage());\n Assert.assertTrue(e.getMessage().equalsIgnoreCase(\"\"));\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "private void createUser(final String email, final String password) {\n\n }", "public User createUser(User newUser) {\n if(userRepository.findByUsername(newUser.getUsername()) != null){\n throw new UsernameException(\"The username is already taken please choose another one\");\n }\n newUser.setToken(\"dummy_token\"); //not really needed after registration;\n\n newUser.setStatus(UserStatus.ONLINE);\n userRepository.save(newUser); //userRepository creates User entity for the first time\n\n newUser.setToken(generateToken(newUser));\n userRepository.save(newUser); //userRepository saves the new entity items to existing user\n\n log.debug(\"Created Information for User: {}\", newUser);\n return newUser;\n }", "@Test\n public void testGetNewUser() throws Exception {\n UserMultiID umk = createRU(\"remote-user-\" + getRandomString());\n String idp = \"test-idp-\" + getRandomString();\n // create a new user.\n XMLMap map = getDBSClient().getUser(umk, idp);\n assert getDBSClient().hasUser(umk, idp);\n Identifier uid = BasicIdentifier.newID(map.get(userKeys.identifier()).toString());\n User user2 = getUserStore().get(uid);\n checkUserAgainstMap(map, user2);\n }", "String createPasswordResetToken(String username) throws UserNotFoundException;", "public void newUser(User user);", "public CreateUserExternalResponse createUserExternal(CreateUserExternalRequest request) throws GPUdbException {\n CreateUserExternalResponse actualResponse_ = new CreateUserExternalResponse();\n submitRequest(\"/create/user/external\", request, actualResponse_, false);\n return actualResponse_;\n }", "@Headers({\n \"Content-Type:application/json\"\n })\n @POST(\"administrators\")\n Call<Void> createUser(\n @retrofit2.http.Body UserBody userBody\n );", "@Test\n public void testCreateOnBehalfUser() throws Exception {\n String password = \"abcdef\";\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), password);\n checkCreatedUser(result, customer, password, false);\n }", "public static void createUser(User user) {\n URL url = null;\n HttpURLConnection connection = null;\n final String methodPath = \"/entities.credential/\";\n try {\n Gson gson = new Gson();\n String stringUserJson = gson.toJson(user);\n url = new URL(BASE_URI + methodPath);\n // open connection\n connection = (HttpURLConnection) url.openConnection();\n // set time out\n connection.setReadTimeout(10000);\n connection.setConnectTimeout(15000);\n // set connection method to POST\n connection.setRequestMethod(\"POST\");\n // set the output to true\n connection.setDoOutput(true);\n // set length of the data you want to send\n connection.setFixedLengthStreamingMode(stringUserJson.getBytes().length);\n // add HTTP headers\n connection.setRequestProperty(\"Content-Type\", \"application/json\");\n\n // send the POST out\n PrintWriter out = new PrintWriter(connection.getOutputStream());\n out.print(stringUserJson);\n out.close();\n Log.i(\"error\", new Integer(connection.getResponseCode()).toString());\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n connection.disconnect();\n }\n }", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "@BeforeClass(alwaysRun = true)\r\n\tpublic void createUser() throws ParseException, SQLException, JoseException {\r\n\t\tSystem.out.println(\"******STARTING***********\");\r\n\t\tUser userInfo = User.builder().build();\r\n\t\tuserInfo.setUsername(userName);\r\n\t\tuserInfo.setPassword(\"Test@123\");\r\n\t\tsessionObj = EnvSession.builder().cobSession(config.getCobrandSessionObj().getCobSession())\r\n\t\t\t\t.path(config.getCobrandSessionObj().getPath()).build();\r\n\t\t//userHelper.getUserSession(\"InsightsEngineusers26 \", \"TEST@123\", sessionObj); \r\n\t\tuserHelper.getUserSession(userInfo, sessionObj);\r\n\t\tlong providerId = 16441;\r\n\t\tproviderAccountId = providerId;\r\n\t\tResponse response = providerAccountUtils.addProviderAccountStrict(providerId, \"fieldarray\",\r\n\t\t\t\t\"budget1_v1.site16441.1\", \"site16441.1\", sessionObj);\r\n\t\tproviderAccountId = response.jsonPath().getLong(JSONPaths.PROVIDER_ACC_ID);\r\n\t\tAssert.assertTrue(providerAccountId!=null);\r\n\t\t\r\n\t\t}", "Human_User createHuman_User();", "@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }", "User createUser();", "void ensureUserCreationAllowed(String email, String userName) throws BadRequestException, ConflictException, ServerException;", "User createUser(User user);", "public TokenTO generateToken(UserTO user) {\n TokenTO res;\n\n res = mgrToken.createToken(Crypto.generateToken() + Crypto.generateToken());\n mgrToken.save(res);\n user.setToken(res);\n getDao().update(user);\n\n return res;\n }", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "public void addUserToken(String login, String token) throws SQLException;", "User setTokenForUser(String username, String token) throws DatabaseException;", "@Test\n public void testCreateValidUser() {\n LocalUserManager ua = new LocalUserManager();\n\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"[email protected]\", \"George\", \"Burdell\", \"MANAGER\");\n } catch (Exception e) {\n Assert.fail();\n }\n Assert.assertEquals(1, ua.getUsers().size());\n Assert.assertEquals(\"gburdell1\", ua.getUsers().get(0).getUsername());\n Assert.assertEquals(\"[email protected]\", ua.getUsers().get(0).getEmail());\n Assert.assertEquals(UserClass.MANAGER, ua.getUsers().get(0).getUserClass());\n }", "public TokenInfo createToken(TokenCoreInfo coreInfo, String password);", "@Override\n public ResponseEntity<String> createUser(@ApiParam(value = \"\" ,required=true ) @Valid @RequestBody User user) {\n String problem = detectFormatProblemInUser(user);\n if(problem != null) {\n return new ResponseEntity<>(problem, HttpStatus.BAD_REQUEST);\n }\n // Used to prevent bruteforce listing of existing emails\n try {\n Thread.sleep(200);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n // Ensure the email is not already taken by another user\n if(userRepository.findById(user.getEmail()).isPresent()) {\n return new ResponseEntity<>(\"The email address is already taken\", HttpStatus.CONFLICT);\n }\n // We can store the new user in the database\n userRepository.save(userToUserEntity(user));\n return new ResponseEntity<>(\"User created successfully\", HttpStatus.CREATED);\n }", "GenerateUserAccount () {\r\n }", "String createUserRequest(String username, UserRequestType type);", "@Test\n public final void testCreateUserInJSONUserAlreadyExists() {\n \n try {\n \tUserAPI fixture = new UserAPI();\n String input = \"{\\\"userName\\\":\\\"Txuso\\\", \\\"password\\\": \\\"213\\\"}\";\n \tfixture.createUserInJSON(input);\n } catch (WebApplicationException e) {\n \tassertNotNull(Response.Status.NOT_ACCEPTABLE.getStatusCode());\n }\n }", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "public interface UserService {\n\n UserModel registerNewUserAccount(UserData accountDto) throws UserAlreadyExistException;\n\n void createVerificationTokenForUser(UserModel user, String token);\n}", "private String generateToken(User newUser) throws JSONException{\n User temp_user = userRepository.findByUsername(newUser.getUsername());\n String user_id = temp_user.getId().toString();\n\n //creating JSON representing new token format which then can be encoded --> DOUBLE CHECK IF ALSO WORKS WITH STRINGS ONLY\n JSONObject json = new JSONObject();\n json.put(\"user_id\", user_id);\n\n //creating and encoding token\n return Base64.getEncoder().encodeToString(json.toString().getBytes());\n }", "User createUser(UserCreationModel user);", "@Test\r\n\tpublic void TestvalidateTokenWithuserId() {\r\n\t\tlog.info(env.getProperty(\"log.start\"));\r\n\t\tudetails = new User(\"admin\", \"admin\", new ArrayList<>());\r\n\t\tString generateToken = jwtutil.generateToken(udetails);\r\n\t\tBoolean validateToken = jwtutil.validateToken(generateToken, udetails);\r\n\t\tassertEquals(true, validateToken);\r\n\t\tlog.info(env.getProperty(\"log.end\"));\r\n\r\n\t}", "public String createUserAction()throws Exception{\n\t\tString response=\"\";\n\t\tresponse=getService().getUserMgmtService().createNewUser(\n\t\t\t\tgetAuthBean().getUserName(),\n\t\t\t\tgetAuthBean().getFirstName(),\n\t\t\t\tgetAuthBean().getLastName(),\n\t\t\t\tgetAuthBean().getEmailId(),\n\t\t\t\tgetAuthBean().getRole()\n\t\t);\n\t\tgetAuthBean().setResponse(response);\n\t\tinputStream = new StringBufferInputStream(response);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}", "private void createAccount() {\n mAuth.createUserWithEmailAndPassword(mTextEmail.getText().toString(), mTextPassword.getText().toString()).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n if(!task.isSuccessful()){\n Toast.makeText(SignInActivity.this, \"Account creation failed!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(SignInActivity.this, \"Account creation success!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "@Test\n public void testInvalidInput() {\n LocalUserManager ua = new LocalUserManager();\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"[email protected]\", \"George\", \"Burdell\", \"SUPERHUMAN\");\n } catch (Exception e) {\n Assert.assertEquals(0, ua.getUsers().size());\n return;\n }\n Assert.fail();\n }", "private String generateVerificationToken(User user) {\n String token = UUID.randomUUID().toString();\n VerificationToken verificationToken = new VerificationToken();\n verificationToken.setToken(token);\n verificationToken.setUser(user);// after that we save it to repository\n verificationTokenRepository.save(verificationToken);\n return token;\n }", "BaseUser createAdminUser(Application application);", "public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}", "User registration(User user);", "@PostMapping(\"/register\")\n public ResponseEntity<Map<String, String>> registerUser(@RequestBody User user){ \n userService.registerUser(user);\n return new ResponseEntity<>(generateJWTTToken(user), HttpStatus.OK);\n }", "@Transactional\n public UserToken generateToken() {\n if (!firebaseService.canProceed())\n return null;\n\n try {\n Optional<UserAuth> userOptional = Auditor.getLoggedInUser();\n if (!userOptional.isPresent()) return UNAUTHENTICATED;\n UserAuth user = userOptional.get();\n Map<String, Object> claims = new HashMap<>();\n claims.put(\"type\", user.getType().toString());\n claims.put(\"department\", user.getDepartment().getName());\n claims.put(\"dean_admin\", PermissionManager.hasPermission(user.getAuthorities(), Role.DEAN_ADMIN));\n String token = FirebaseAuth.getInstance().createCustomTokenAsync(user.getUsername(), claims).get();\n return fromUser(user, token);\n } catch (InterruptedException | ExecutionException e) {\n return UNAUTHENTICATED;\n }\n }", "public String createUser(String userJson) throws IOException {\r\n ObjectMapper mapper = new ObjectMapper();\r\n\r\n User user = mapper.readValue(userJson, User.class);\r\n UserValidator userValidator = new UserValidator();\r\n boolean valid = userValidator.validateUser(user);\r\n\r\n if(!valid) {\r\n return \"ERROR\";\r\n }\r\n\r\n persistenceService.saveUser(user);\r\n\r\n return \"SUCCESS\";\r\n }", "Account create();", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "boolean createUser(String username, String password);", "@Test\n public void testCreateUserWithExistingUsername() {\n final String username = \"[email protected]\";\n final CreateUserRequest request1 = new CreateUserRequest(username, \"Michael\", \"Pickelbauer\");\n final CreateUserRequest request2 = new CreateUserRequest(username, \"Hugo\", \"Mayer\");\n\n // Now let's create the two user accounts\n final CreateUserResponse response1 = administration.createUser(token, request1);\n final CreateUserResponse response2 = administration.createUser(token, request2);\n\n // The first request should work like a charm\n assertThat(response1, is(not(nullValue())));\n assertThat(response1.isOk(), is(true));\n\n // The second request should fail, as we already have a user with this\n // username in the system\n assertThat(response2, is(not(nullValue())));\n assertThat(response2.isOk(), is(false));\n assertThat(response2.getError(), is(IWSErrors.USER_ACCOUNT_EXISTS));\n assertThat(response2.getMessage(), is(\"An account for the user with username \" + username + \" already exists.\"));\n }", "UserAccount createUserAccount(User user, double amount);", "public static ServerAcknowledge createUser(String sessionToken, String username, String hashedPassword, boolean createBillboard,\n boolean editBillboard, boolean scheduleBillboard, boolean editUser) throws NoSuchAlgorithmException, IOException, SQLException {\n if (validateToken(sessionToken)) {\n System.out.println(\"Session is valid\");\n if (checkSinglePermission(sessionToken, EditUser)) {\n try {\n // Prepare parameters for storage in the database\n String saltString = generateSaltString();\n System.out.println(\"The salt string is: \" + saltString);\n String saltedHashedPassword = hash(hashedPassword + saltString); // Generate new hashed password\n System.out.println(\"The salted, hashed password is: \" + saltedHashedPassword);\n DbUser.addUser(username, saltedHashedPassword, saltString, createBillboard,\n editBillboard, scheduleBillboard, editUser);\n return Success; // 1. User Created - Valid token, sufficient permission and valid user to create\n } catch (SQLIntegrityConstraintViolationException e) {\n return PrimaryKeyClash; // 2. A user already exists with that username - primary key issue\n }\n } else {\n System.out.println(\"Permissions were not sufficient, no user was deleted\");\n return InsufficientPermission; // 3. Valid token but insufficient permission\n }\n } else {\n System.out.println(\"Session was not valid\");\n return InvalidToken; // 4. Invalid token\n }\n }", "void registerUser(User newUser);", "private void CreateUserAccount(final String lname, String lemail, String lpassword, final String lphone, final String laddress, final String groupid, final String grouppass ){\n mAuth.createUserWithEmailAndPassword(lemail,lpassword).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //account creation successful\n showMessage(\"Account Created\");\n //after user account created we need to update profile other information\n updateUserInfo(lname, pickedImgUri,lphone, laddress, groupid, grouppass, mAuth.getCurrentUser());\n }\n else{\n //account creation failed\n showMessage(\"Account creation failed\" + task.getException().getMessage());\n regBtn.setVisibility(View.VISIBLE);\n loadingProgress.setVisibility(View.INVISIBLE);\n\n }\n }\n });\n }", "static void CreateNewUserToDB(String[] userData, boolean[] userPermissions) throws IOException, InvalidKeySpecException, NoSuchAlgorithmException, ClassNotFoundException {\n if (CreateNewUser(userData, GetListOfUsers())) {\n Socket client = ConnectionToServer();\n\n // connects to the server with information and attempts to get the auth token\n // for the user after successful Login\n if (client.isConnected()) {\n OutputStream outputStream = client.getOutputStream();\n InputStream inputStream = client.getInputStream();\n\n ObjectOutputStream send = new ObjectOutputStream(outputStream);\n ObjectInputStream receiver = new ObjectInputStream(inputStream);\n\n send.writeUTF(\"createNewUser\");\n send.writeUTF(userData[0]);\n send.writeUTF(userData[1]);\n send.writeUTF(userData[2]);\n send.writeUTF(userData[3]);\n send.writeBoolean(userPermissions[0]);\n send.writeBoolean(userPermissions[1]);\n send.writeBoolean(userPermissions[2]);\n send.writeBoolean(userPermissions[3]);\n send.writeUTF(loggedInUser);\n send.writeUTF(token);\n send.flush();\n\n WasRequestSuccessful(receiver.readBoolean(), receiver.readUTF());\n\n // End connections\n send.close();\n receiver.close();\n client.close();\n }\n }\n }", "@Transactional\n\t@Override\n\tpublic void createUser(User user) {\n\t\tString token = UUID.randomUUID().toString();\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.add(Calendar.DAY_OF_YEAR, 1);\n\n\t\tuser.setExpiryDate(cal.getTime());\n\t\tuser.setToken(token);\n\t\tAccount account = user.getAccount();\n\t\tRole role = new Role(\"ROLE_CUSTOMER\");\n\t\taccount.setRole(role);\n\t\taccount.setEnabled(false);\n\t\taccountService.createAccount(account);\n\t\tuserRepository.insertUser(user);\n\t\tthis.sendRegistrationToken(user);\n\t}", "User register(String firstName, String lastName, String username, String email) throws UserNotFoundException, EmailExistException, UsernameExistsException, MessagingException;", "private void createServerSideToken(TokenRequestBody tokenRequestBody, final Paystack.TokenCallback tokenCallback) throws KeyManagementException, NoSuchAlgorithmException, KeyStoreException {\n ApiService apiService = new ApiClient().getApiService();\n\n HashMap<String, String> params = new HashMap<>();\n params.put(TokenRequestBody.FIELD_PUBLIC_KEY, tokenRequestBody.publicKey);\n params.put(TokenRequestBody.FIELD_CLIENT_DATA, tokenRequestBody.clientData);\n\n Call<TokenApiResponse> call = apiService.createToken(params);\n call.enqueue(new Callback<TokenApiResponse>() {\n /**\n * Invoked for a received HTTP response.\n * <p/>\n\n * @param call - the call enqueueing this callback\n * @param response - response from the server after call is made\n */\n @Override\n public void onResponse(Call<TokenApiResponse> call, Response<TokenApiResponse> response) {\n TokenApiResponse tokenApiResponse = response.body();\n if (tokenApiResponse != null) {\n //check for status...if 0 return an error with the message\n if (tokenApiResponse.status.equals(\"0\")) {\n //throw an error\n tokenCallback.onError(new TokenException(tokenApiResponse.message));\n } else {\n Token token = new Token();\n token.token = tokenApiResponse.token;\n token.last4 = tokenApiResponse.last4;\n\n tokenCallback.onCreate(token);\n }\n }\n }\n\n /**\n * Invoked when a network exception occurred talking to the server or when an unexpected\n * exception occurred creating the request or processing the response.\n *\n * @param call - call that enqueued this callback\n * @param t - the error or exception that caused the failure\n */\n @Override\n public void onFailure(Call<TokenApiResponse> call, Throwable t) {\n Log.e(LOG_TAG, t.getMessage());\n tokenCallback.onError(t);\n\n }\n\n });\n }", "private void createAccount()\n {\n // check for blank or invalid inputs\n if (Utils.isEmpty(edtFullName))\n {\n edtFullName.setError(\"Please enter your full name.\");\n return;\n }\n\n if (Utils.isEmpty(edtEmail) || !Utils.isValidEmail(edtEmail.getText().toString()))\n {\n edtEmail.setError(\"Please enter a valid email.\");\n return;\n }\n\n if (Utils.isEmpty(edtPassword))\n {\n edtPassword.setError(\"Please enter a valid password.\");\n return;\n }\n\n // check for existing user\n AppDataBase database = AppDataBase.getAppDataBase(this);\n User user = database.userDao().findByEmail(edtEmail.getText().toString());\n\n if (user != null)\n {\n edtEmail.setError(\"Email already registered.\");\n return;\n }\n\n user = new User();\n user.setId(database.userDao().findMaxId() + 1);\n user.setFullName(edtFullName.getText().toString());\n user.setEmail(edtEmail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n\n database.userDao().insert(user);\n\n Intent intent = new Intent(this, LoginActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n }", "public static void CreateUser(Messenger esql){\n try{\n System.out.print(\"\\tEnter user login: \");\n String login = in.readLine();\n System.out.print(\"\\tEnter user password: \");\n String password = in.readLine();\n System.out.print(\"\\tEnter user phone: \");\n String phone = in.readLine();\n //Creating empty contact\\block lists for a user\n esql.executeUpdate(\"INSERT INTO USER_LIST(list_type) VALUES ('block')\");\n int block_id = esql.getCurrSeqVal(\"user_list_list_id_seq\");\n esql.executeUpdate(\"INSERT INTO USER_LIST(list_type) VALUES ('contact')\");\n int contact_id = esql.getCurrSeqVal(\"user_list_list_id_seq\");\n String query = String.format(\"INSERT INTO USR (phoneNum, \" +\n \"login, password, block_list, \" + \n \"contact_list) VALUES ('%s','%s','%s',%s,%s)\"\n , phone, login, password, block_id, contact_id);\n\n esql.executeUpdate(query);\n System.out.println (\"User successfully created!\");\n }catch(Exception e){\n System.err.println (e.getMessage ());\n }\n }", "@Override\n public ApiResponse createUser(SignupDto signupDto){\n var userRole = this.roleDAO.findByName(RoleEnum.USER);\n Set<Role> userRoles = new HashSet<Role>(Collections.singletonList(userRole.get()));\n\n Person newPerson = new Person();\n newPerson.setEmail(signupDto.getUsername());\n newPerson.setFirstName(signupDto.getFirstName());\n newPerson.setLastName(signupDto.getLastName());\n newPerson.setRoles(userRoles);\n\n // Encriptamos la contraseña que nos mando el usuario\n var encryptedPassword = this.passwordEncoder.encode(signupDto.getPassword());\n newPerson.setPassword(encryptedPassword);\n\n this.personDAO.save(newPerson);\n\n return new ApiResponse(true, \"Usuario creado\");\n\n }", "String registerUser(User user);", "private void createUserInFirebaseHelper(final String encodedEmail) {\n }", "@POST(\"/users\")\n Call<User> createUser(\n @Body User user\n );", "@Test\n public void createDuplicateAccount() {\n final String username1 = \"[email protected]\";\n final String username2 = \"[email protected]\";\n final String username3 = \"[email protected]\";\n final String firstname = \"william\";\n final String lastname = \"shakespeare\";\n final String address = \"@iaeste.org\";\n\n final CreateUserRequest request1 = new CreateUserRequest(username1, firstname, lastname);\n final CreateUserResponse response1 = administration.createUser(token, request1);\n assertThat(response1, is(not(nullValue())));\n assertThat(response1.isOk(), is(true));\n assertThat(response1.getUser(), is(not(nullValue())));\n assertThat(response1.getUser().getAlias(), is(firstname + '.' + lastname + address));\n\n final CreateUserRequest request2 = new CreateUserRequest(username2, firstname, lastname);\n final CreateUserResponse response2 = administration.createUser(token, request2);\n assertThat(response2, is(not(nullValue())));\n assertThat(response2.isOk(), is(true));\n assertThat(response2.getUser(), is(not(nullValue())));\n assertThat(response2.getUser().getAlias(), is(firstname + '.' + lastname + 2 + address));\n\n final CreateUserRequest request3 = new CreateUserRequest(username3, firstname, lastname);\n final CreateUserResponse response3 = administration.createUser(token, request3);\n assertThat(response3, is(not(nullValue())));\n assertThat(response3.isOk(), is(true));\n assertThat(response3.getUser(), is(not(nullValue())));\n assertThat(response3.getUser().getAlias(), is(firstname + '.' + lastname + 3 + address));\n }", "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "HttpStatus createUserAccount(final String realm, final String username, final String firstName,\n\t\t\tfinal String lastName, final String email, final String password);", "public UserEntity create(String userId) throws CreateException;", "@Test\r\n\tpublic void TestgenerateToken() {\r\n\t\tlog.info(env.getProperty(\"log.start\"));\r\n\t\tudetails = new User(\"admin\", \"admin\", new ArrayList<>());\r\n\t\tString generateToken = jwtutil.generateToken(udetails);\r\n\t\tassertNotNull(generateToken);\r\n\t\tlog.info(env.getProperty(\"log.end\"));\r\n\t}", "@Override\r\n\tpublic void postRequest(Request request, Response response) {\r\n\t\tcreateUser(request, response);\r\n\t}", "private String createUser(String name) {\n\t\treturn null;\n\t}", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "@Test\n public void createNewUserAndCheckIt() {\n UserLogin userLogin = new UserLogin();\n userLogin.setUserLogin(\"068-068-68-68\");\n userLogin.setUserPassword(\"12345\");\n boolean isThrow = false;\n try {\n UserResponse userResponse = loginsService.checkLoginSignInSignUp(userLogin, \"SignUp\");\n } catch (ApplicationException e) {\n isThrow = true;\n }\n assertThat(isThrow);\n\n //Successful registration\n userLogin.setUserPasswordNew(\"12345\");\n UserResponse userResponse = loginsService.checkLoginSignInSignUp(userLogin, \"SignUp\");\n\n assertThat(userResponse.getUserPhone().equals(usersService.normalizeAndCheckPhoneFormat(userLogin.getUserLogin())));\n assertThat(userResponse.getUserPoints()).size().isEqualTo(5);\n }", "@Override\n\tpublic void createUserProfile(User user) throws Exception {\n\n\t}", "public CreateUserInternalResponse createUserInternal(CreateUserInternalRequest request) throws GPUdbException {\n CreateUserInternalResponse actualResponse_ = new CreateUserInternalResponse();\n submitRequest(\"/create/user/internal\", request, actualResponse_, false);\n return actualResponse_;\n }", "User create(final User user) throws DatabaseException;", "String generateUserRenewalToken(String username);", "public String createNewToken (String id,String admin){\n SecureRandom random = new SecureRandom();\n Document query = new Document();\n query.put(\"_id\", new ObjectId(id));\n MongoCursor<Document> cursor = Security.find(query).iterator();\n if (cursor!=null && cursor.hasNext()) return \"user all ready exists\";\n Document doc = new Document(\"id\", id);\n doc.put(\"token\",new BigInteger(130, random).toString(32));\n if (admin.equals(\"true\")){\n doc.put(\"admin\",true);\n }\n else\n doc.put(\"admin\",false);\n\n Security.insertOne(doc);\n return doc.toJson();\n }", "User create(User user);", "private void createNewUser(final User unmanagedUser) {\n Realm realm = (mRealm == null) ? Realm.getDefaultInstance() : mRealm;\n //create by administrator\n realm.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n User u2 = realm.createObject(User.class, PrimaryKeyFactory.getInstance().nextKey(User.class));\n u2.setLoggedIn(false);\n u2.setUserId(unmanagedUser.getUserId());\n\n String password = unmanagedUser.getPassword();\n if (password == null) {\n password = \"\";\n }\n u2.setPassword(password);\n\n u2.setUserName(unmanagedUser.getUserName());\n u2.setStartDate(unmanagedUser.getStartDate());\n u2.setEndDate(unmanagedUser.getEndDate());\n u2.setCreated(new Date());\n u2.setActive(unmanagedUser.getActive());\n u2.setSpecial(false);\n u2.setPermission(unmanagedUser.getPermission());\n u2.setEnabled(unmanagedUser.getEnabled());\n }\n });\n\n if (mRealm == null)\n realm.close();\n }", "public void Register() {\n Url url = new Url();\n User user = new User(fname.getText().toString(), lname.getText().toString(), username.getText().toString(), password.getText().toString());\n Call<Void> registerUser = url.createInstanceofRetrofit().addNewUser(user);\n registerUser.enqueue(new Callback<Void>() {\n @Override\n public void onResponse(Call<Void> call, Response<Void> response) {\n Toast.makeText(getActivity(), \"User Registered successfully\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onFailure(Call<Void> call, Throwable t) {\n Toast.makeText(getActivity(), \"Error\" + t, Toast.LENGTH_SHORT).show();\n }\n });\n }", "@POST\n @Path(\"/facebook\")\n @Consumes(\"application/x-www-form-urlencoded\")\n @Deprecated\n public RegistrationResult createFacebookUser(@FormParam(\"facebookAuthToken\") String facebookAuthToken,\n @FormParam(\"deviceRegId\") String deviceRegId) {\n return registerFacebookUser(facebookAuthToken, deviceRegId);\n }" ]
[ "0.79099417", "0.78441703", "0.76406115", "0.689301", "0.6865952", "0.68648684", "0.6852291", "0.67392486", "0.67367595", "0.67364544", "0.67259204", "0.6705289", "0.66395515", "0.66011894", "0.65488756", "0.65436155", "0.65214807", "0.6503635", "0.64920866", "0.64887196", "0.64777446", "0.644266", "0.6432787", "0.64032286", "0.639159", "0.638752", "0.63416314", "0.63293314", "0.62935203", "0.6293425", "0.6287019", "0.6284141", "0.62702245", "0.6261883", "0.6249624", "0.62456053", "0.6232704", "0.62206495", "0.6219512", "0.6209911", "0.62063944", "0.6205949", "0.61938894", "0.6183336", "0.61770344", "0.61685425", "0.6163118", "0.6157621", "0.6143566", "0.6140662", "0.61351645", "0.6131307", "0.6106654", "0.609983", "0.60980415", "0.60977644", "0.60861635", "0.6051989", "0.6045762", "0.6022677", "0.60206467", "0.6012929", "0.6005145", "0.5993325", "0.59900683", "0.59867585", "0.59854126", "0.5983227", "0.5980646", "0.5965558", "0.5964836", "0.5955265", "0.595252", "0.5946712", "0.5943001", "0.5936681", "0.59364945", "0.5931701", "0.59284806", "0.5919938", "0.59198236", "0.5907439", "0.5902836", "0.5891428", "0.5887268", "0.5884774", "0.5876114", "0.58738613", "0.5870516", "0.5863681", "0.5854653", "0.58513004", "0.5850747", "0.58384", "0.5832676", "0.5830236", "0.5828486", "0.5821801", "0.58212763", "0.5818252" ]
0.7423246
3
TODO Autogenerated method stub
@Override public void missiel() { System.out.println("미사일을 쏠 수 있습니다"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_place_view, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_edit) { Intent intent = new Intent(getApplicationContext(), AddTripActivity.class); intent.putExtra("TripID", tripItem.getID()); startActivityForResult(intent, EDIT_TRIP_CODE); return true; } else if (id == R.id.action_view_map) { Intent intent = new Intent(getApplicationContext(), MapActivity.class); intent.putExtra("TRIP", tripID); startActivity(intent); return true; } else if(id == R.id.menu_item_share) { String text = "Have a look at Joshes Place, " + tripItem.getTitle(); Intent sharingIntent = new Intent(Intent.ACTION_SEND_MULTIPLE); sharingIntent.setType("*/*"); sharingIntent.putExtra(Intent.EXTRA_SUBJECT, "Joshes Trip, " + tripItem.getTitle()); ArrayList<Uri> imageUris = new ArrayList<Uri>(); if((tripItem.getPic() != null) && (tripItem.getPic().getID() > 0)) { String pathofBmp = MediaStore.Images.Media.insertImage(getContentResolver(), tripItem.getPic().getImage(), tripItem.getPic().getTitle(), null); Uri bmpUri = Uri.parse(pathofBmp); imageUris.add(bmpUri); } List<Note> notes = tripItem.getNotes(); if(notes.size() > 0) { text += "\nNotes:\n"; for (Note n : notes) { text += n.getTitle() + ", \n" + n.getNote() + "\n"; } } List<String> companions = tripItem.getCompanions(); if(companions.size() > 0) { text += "\nCompanions:\n"; for (String s : companions) { text += s + "\n"; } } List<PlaceItem> places = tripItem.getPlaces(); if(places.size() > 0) { text += "\nPlaces Visited: \n"; for(PlaceItem p : places) { text += p.getTitle() + " (" + p.getDate() + ")\n"; } } text +="\nHere on: " + tripItem.getStartDate() + " to " + tripItem.getEndDate(); ArrayList<ImageItem> images = tripItem.getImages(); if(images.size() > 0) { sharingIntent.putExtra(Intent.EXTRA_TEXT, "\nImages:\n"); for (ImageItem i : images) { String pathofBmp = MediaStore.Images.Media.insertImage(getContentResolver(), i.getImage(), i.getTitle(), null); Uri bmpUri = Uri.parse(pathofBmp); imageUris.add(bmpUri); } sharingIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, imageUris); } sharingIntent.putExtra(Intent.EXTRA_TEXT, text); startActivity(Intent.createChooser(sharingIntent, "Share trip using")); } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.7905088", "0.7806473", "0.7767427", "0.7727654", "0.76322067", "0.7622006", "0.7585653", "0.75316405", "0.7488972", "0.745797", "0.745797", "0.7439378", "0.742269", "0.7403919", "0.7392367", "0.73876", "0.73803836", "0.7371262", "0.7362839", "0.73568594", "0.7346477", "0.7342023", "0.7331133", "0.7329296", "0.73269194", "0.73194325", "0.7317189", "0.7314486", "0.73050755", "0.73050755", "0.7302859", "0.72991", "0.7294382", "0.72876513", "0.7284035", "0.728209", "0.72796375", "0.72607785", "0.72607785", "0.72607785", "0.72605306", "0.72605056", "0.725078", "0.7224521", "0.7220458", "0.72177523", "0.72048676", "0.7201225", "0.7200953", "0.7193954", "0.71860194", "0.71785754", "0.7169526", "0.71681535", "0.7155001", "0.7154016", "0.71372473", "0.7135283", "0.7135283", "0.71296954", "0.71295756", "0.7125042", "0.7123974", "0.71239567", "0.7122415", "0.7117841", "0.7117841", "0.7117841", "0.7117841", "0.71178335", "0.7117728", "0.71175057", "0.7115691", "0.71126866", "0.71105444", "0.71092945", "0.71059924", "0.7100873", "0.7098849", "0.7095958", "0.70940965", "0.70940965", "0.70870227", "0.7083528", "0.70816624", "0.7080698", "0.70746803", "0.7068797", "0.70625585", "0.7061169", "0.70605344", "0.7051805", "0.7038265", "0.7038265", "0.70367545", "0.70358145", "0.70358145", "0.7033524", "0.7031318", "0.70302606", "0.70192164" ]
0.0
-1
Get the dimensions of the View Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath); image.setImageBitmap(bitmap);
protected void setPic() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setPic() {\n int targetW = imageView.getMaxWidth();\n int targetH = imageView.getMaxHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(currentPhotoPath, bmOptions);\n bitmap = Bitmap.createScaledBitmap(bitmap, 1280, 960,false);\n Log.d(\"demo\", \"setPic: \"+ bitmap.getWidth()+\" \"+bitmap.getHeight());\n Log.d(\"demo\", \"setPic: \"+ bitmap.getByteCount()/1000);\n imageView.setImageBitmap(bitmap);\n }", "private void setPic() {\n int targetW = imageView.getWidth();\n int targetH = imageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageView.setImageBitmap(bitmap);\n imageView.invalidate();\n }", "private void resizePhoto() {\n if (photoPath.length() == 0) {\n return;\n }\n Log.d(LOG_TAG, \"Path dell' immagine: \" + photoPath);\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(photoPath, options);\n\n options = new BitmapFactory.Options();\n\n options.inJustDecodeBounds = true;\n photoBM = BitmapFactory.decodeFile(photoPath, options);\n Log.d(LOG_TAG, \"Width:\" + bitmapWidth + \" height:\" + bitmapHeight);\n\n options.inSampleSize = calculateInSampleSize(options, bitmapWidth, bitmapHeight);\n\n options.inJustDecodeBounds = false;\n //halfHorizontal = bitmapWidth / 2;\n photoBM = BitmapFactory.decodeFile(photoPath, options);\n\n }", "private void setPic() {\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n// Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "public static Bitmap loadPicture(View v, String photoPath) {\n int targetW,targetH;\n if (v != null) {\n targetW = v.getWidth();\n targetH = v.getHeight();\n } else {\n WindowManager wm = (WindowManager) SketchesApp.globalContext.getSystemService(Context.WINDOW_SERVICE);\n Display display = wm.getDefaultDisplay();\n DisplayMetrics metrics=new DisplayMetrics();\n display.getMetrics(metrics);\n targetW = metrics.widthPixels;\n targetH = metrics.heightPixels;\n }\n if (targetH==0 || targetW==0)\n return null;\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(photoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n //bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(photoPath, bmOptions);\n if (v!=null) {\n if (v instanceof ImageView) {\n ImageView iv = (ImageView) v;\n iv.setImageBitmap(bitmap);\n } else {\n BitmapDrawable bd = new BitmapDrawable(v.getResources(), bitmap);\n v.setBackground(bd);\n }\n }\n return bitmap;\n }", "@Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n float a = (float) viewHolder.img2.getWidth() / (float) loadedImage.getWidth();\n viewHolder.img2.setImageBitmap(resize(loadedImage, a));\n }", "private void setPic() {\n int targetW = imageIV.getWidth();\n int targetH = imageIV.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageIV.setImageBitmap(bitmap);\n }", "@Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n float a = (float) viewHolder.img2.getWidth() / (float) loadedImage.getWidth();\n viewHolder.img2.setImageBitmap(resize(loadedImage, a));\n }", "private void setPic() {\n int targetW = mainImageView.getWidth();\n int targetH = mainImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n// bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mainImageView.setImageBitmap(bitmap);\n\n// bmOptions.inBitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n// mainImageView.setImageBitmap(bmOptions.inBitmap);\n }", "public static Bitmap loadPicture( String photoPath,int targetW,int targetH) {\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(photoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n // bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(photoPath, bmOptions);\n\n return bitmap;\n }", "@Override\n public void imageLoad(ImageView imageView, Bitmap bitmap) {\n imageView.setImageBitmap(bitmap);\n //item.picture = bitmap;\n }", "private void setPic() {\n int targetW = 210;\n int targetH = 320;\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(previewPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(previewPhotoPath, bmOptions);\n bitmap = RotateBitmap(bitmap,270);\n preview.setImageBitmap(bitmap);\n }", "private void setPic() {\n\t\tint targetW = Constant.sRealWidth;\n\t\tint targetH = Constant.sRealHeight;\n\n\t\t/* Get the size of the image */\n\t\tBitmapFactory.Options bmOptions = new BitmapFactory.Options();\n\t\tbmOptions.inJustDecodeBounds = true;\n\t\tBitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\t\tint photoW = bmOptions.outWidth;\n\t\tint photoH = bmOptions.outHeight;\n\t\t\n\t\t/* Figure out which way needs to be reduced less */\n\t\tint scaleFactor = 1;\n\t\tif ((targetW > 0) || (targetH > 0)) {\n\t\t\tscaleFactor = Math.min(photoW/targetW, photoH/targetH);\t\n\t\t}\n\n\t\t/* Set bitmap options to scale the image decode target */\n\t\tbmOptions.inJustDecodeBounds = false;\n\t\tbmOptions.inSampleSize = scaleFactor;\n\t\tbmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n\t\tBitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\t\t\n\t\tint rotate = ViewUtils.handleRotateBitmap(mCurrentPhotoPath);\n\t\tif (rotate != 0) {\n\t\t\tbitmap = ViewUtils.rotaingBitmap(\n\t\t\t\t\trotate, bitmap);\n\t\t}\n\t\t/* Associate the Bitmap to the ImageView */\n\t\tmPictureView.setImageBitmap(bitmap);\n\t}", "private void setPic() {\n int targetW =20;// mImageView.getWidth();\n int targetH =20;// mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;//设置仅加载位图边界信息(相当于位图的信息,但没有加载位图)\n\n //返回为NULL,即不会返回bitmap,但可以返回bitmap的横像素和纵像素还有图片类型\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "private void setPic() {\n int targetW =200;\n int targetH = 300;\n\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 1;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n bitmap1 = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n Log.e(\"bitmap\", \"\" + bitmap1);\n mAdapter = new MyAdapter(Goonlineactivity2.this,TITLES,ICONS,NAME,EMAIL,PROFILE); // Creating the Adapter of MyAdapter class(which we are going to see in a bit)\n // And passing the titles,icons,header view name, header view email,\n // and header view profile picture\n\n mRecyclerView.setAdapter(mAdapter);\n //profile11.setImageBitmap(bitmap1);\n\n \t\t/* Associate the Bitmap to the ImageView */\n\n }", "@Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n Log.d(TAG, \"#onLoadingComplete imageUri = \"+imageUri + \" loadedImage = \"+loadedImage + \" width = \"+loadedImage.getWidth() + \" height = \"+loadedImage.getHeight());\n if (mPhotoView != null)\n mPhotoView.setImageBitmap(loadedImage);\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 234 && data != null && data.getData() != null) {\n filePath = data.getData();\n Uri uri = data.getData();\n try {\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), uri);\n ImageView imageView = findViewById(R.id.displayPicture);\n imageView.setImageBitmap(bitmap);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }", "private Bitmap setPic() {\n int targetH = 0; //mImageView.getHeight();\n int targetW = 0; //mImageView.getWidth();\n\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n if( photoH > photoW ){\n /*Se definen las dimensiones de la imagen que se desea generar*/\n targetH = Const.MedidasReduccionImagen.PEQUENA_PORTRAIT.heigh; // 640;\n targetW = Const.MedidasReduccionImagen.PEQUENA_PORTRAIT.width; //480;\n }else{\n targetH = Const.MedidasReduccionImagen.PEQUENA_LANDSCAPE.heigh; //480;\n targetW = Const.MedidasReduccionImagen.PEQUENA_LANDSCAPE.width; //640;\n }\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 0;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n return bitmap;\n }", "private void setPic() {\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 1;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n\t\t/* Associate the Bitmap to the ImageView */\n mImageView.setImageBitmap(bitmap);\n mTextView.setText(mCurrentPhotoPath);\n\n // SendImage(mCurrentPhotoPath);\n\n // AsyncCallWS task = new AsyncCallWS();\n // Call execute\n // task.execute();\n }", "public void loadPhoto(String photopath) {\n if (photopath != null)\r\n {\r\n Bitmap bitmap = BitmapFactory.decodeFile(photopath);\r\n Bitmap bitmapReduced = Bitmap.createScaledBitmap(bitmap, 300, 300, true);\r\n photoField.setImageBitmap(bitmapReduced);\r\n photoField.setScaleType(ImageView.ScaleType.FIT_XY);\r\n photoField.setTag(photopath);\r\n\r\n }\r\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && null != data) {\n Uri selectedImage = data.getData();\n String[] filePathColumn = {MediaStore.Images.Media.DATA};\n Cursor cursor = getContentResolver().query(selectedImage,\n filePathColumn, null, null, null);\n cursor.moveToFirst();\n int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n picturePath = cursor.getString(columnIndex);\n cursor.close();\n Bitmap bitmap = BitmapFactory.decodeFile(picturePath);\n mItemImageView.setImageBitmap(bitmap);\n }\n }", "public static void loadFileIntoImageView(ImageView pictureImageView, String path){\n int targetW = pictureImageView.getWidth();\n int targetH = pictureImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(path, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n Bitmap bitmap = BitmapFactory.decodeFile(path, bmOptions);\n pictureImageView.setImageBitmap(bitmap);\n }", "private void setPic() {\n int targetW = img_clip.getWidth();\n int targetH = img_clip.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n img_clip.setImageBitmap(bitmap);\n }", "private void displayImage() {\n if (currentPhotoPath != null) {\n // checkPicture = true; depreciated, try catch to catch if photo exists\n Bitmap temp = fixOrientation(BitmapFactory.decodeFile(currentPhotoPath));\n bitmapForAnalysis = temp;\n imageView.setImageBitmap(temp);\n } else {\n Toast.makeText(this, \"Image Path is null\", Toast.LENGTH_LONG).show();\n }\n }", "private void previewCapturedImage(){\n \ttry{\n \t\timgPreview.setVisibility(View.VISIBLE);\n \t\t\n \t\t//Bitmap Factory\n \t\tBitmapFactory.Options options = new BitmapFactory.Options();\n \t\t\n \t\t//Downsizing image as it throws OutOfMemory Exception for large images\n \t\toptions.inSampleSize = 4;\n \t\t\n \t\tfinal Bitmap bitmap = BitmapFactory.decodeFile(fileUri.getPath(), options);\n \t\t\n \t\timgPreview.setImageBitmap(bitmap);\n \t}catch(NullPointerException e){\n \t\te.printStackTrace();\n \t}catch(OutOfMemoryError e){\n \t\te.printStackTrace();\n \t}\n }", "private void getBitmapSize(Uri uri) {\n InputStream is = null;\n try {\n\n is = getInputStream(uri);\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(is, null, options);\n\n width = options.outWidth;\n height = options.outHeight;\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException ignored) {\n }\n }\n }\n }", "private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().bottom - mAttacher.getDisplayRect().top;\n }", "private void setPic()\n {\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(currentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n int scaleFactor = Math.min(photoW/384, photoH/512);\n\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n Bitmap bitmap = BitmapFactory.decodeFile(currentPhotoPath, bmOptions);\n imageCapture.setImageBitmap(bitmap);\n }", "private void getImage() {\n StorageReference storageReference = FirebaseStorage.getInstance().getReference();\n StorageReference photoReference = storageReference.child(\"images/\" + globals.chosenProp);\n\n ImageView imageView = (ImageView) findViewById(R.id.ivImage);\n\n final long ONE_MEGABYTE = 1024 * 1024;\n photoReference.getBytes(ONE_MEGABYTE).addOnSuccessListener(new OnSuccessListener<byte[]>() {\n @Override\n public void onSuccess(byte[] bytes) {\n Bitmap bmp = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);\n imageView.setImageBitmap(bmp);\n\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(getApplicationContext(), \"No Such file or Path found!\", Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == PICK_IMAGE_REQUEST && resultCode == RESULT_OK && data != null && data.getData() != null) {\n filePath = data.getData();\n try {\n bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), filePath);\n imageView.setImageBitmap(bitmap);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "private void loadBitmap() {\n\n BitmapDrawable bitmapDrawable = (BitmapDrawable) this.getDrawable();\n\n if (bitmapDrawable != null)\n image = bitmapDrawable.getBitmap();\n }", "private void loadProductImage(String imagePath, ImageView imageView) {\n Bitmap bitmap = BitmapUtil.fromFileScaled(imagePath, imageView.getWidth(), imageView.getHeight(),\n true);\n if (bitmap == null) {\n Log.d(getClass().getSimpleName(), \"Failed to load product image: image view dimensions not yet \" +\n \"\" + \"determined\");\n } else {\n Activity activity = getActivity();\n if (activity != null) {\n imageView.setImageDrawable(BitmapUtil.getRoundedBitmapDrawable(activity, bitmap));\n }\n }\n }", "@Override\n\t protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t if(requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && null != data) {\n\t \tprofile_photo.setVisibility(View.VISIBLE);\n\t \tUri selectedImage = data.getData();\n\t String[] filePathColumn = { MediaStore.Images.Media.DATA };\n\n\t Cursor cursor = getContentResolver().query(selectedImage,\n\t filePathColumn, null, null, null);\n\t cursor.moveToFirst();\n\n\t int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n\t String picturePath = cursor.getString(columnIndex);\n\t cursor.close();\n\t \n\t ImageView imageView = (ImageView) findViewById(R.id.profile_photo);\n\t imageView.setImageBitmap(BitmapFactory.decodeFile(picturePath));\n\t }\n\t }", "private void readFile(){\n File file = new File(Environment.getExternalStorageDirectory()+\"/saved_images/profile.jpg\");\n myPictureForShow = BitmapFactory.decodeFile(file.getAbsolutePath());\n }", "private void showBitmap() {\n Bitmap bitmap = BitmapFactory.decodeByteArray(mImgData, 0, mImgData.length);\n mImgView.setImageBitmap(bitmap);\n }", "private Bitmap decodeBitmapImage(int image) {\n int targetW = 300;\n int targetH = 300;\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n\n BitmapFactory.decodeResource(getResources(), image,\n bmOptions);\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n return BitmapFactory.decodeResource(getResources(), image,\n bmOptions);\n }", "public synchronized void setPictureFromCache(final int width, final int height) {\n Runnable run = new Runnable() {\n @Override\n public void run() {\n File file = new File(context.getExternalFilesDir(null), pictureName);\n if (file != null) {\n Bitmap myBitmap = BitmapFactory.decodeFile(file.getAbsolutePath());\n if (imageView != null) {\n //imageView.setImageDrawable(new BitmapDrawable(null, myBitmap));\n new ResizeImage(imageView, file.getAbsolutePath()).setImageView(width, height);\n }\n }\n }\n };\n new Handler(context.getMainLooper()).post(run);\n }", "public synchronized void setPictureFromCache() {\n Runnable run = new Runnable() {\n @Override\n public void run() {\n File file = new File(context.getExternalFilesDir(null), pictureName);\n if (file != null) {\n Bitmap myBitmap = BitmapFactory.decodeFile(file.getAbsolutePath());\n if (imageView != null) {\n //imageView.setImageDrawable(new BitmapDrawable(null, myBitmap));\n new ResizeImage(imageView, file.getAbsolutePath()).setImageView();\n }\n }\n }\n };\n new Handler(context.getMainLooper()).post(run);\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n switch (requestCode) {\n case SELECT_PHOTO:\n if (resultCode == RESULT_OK) {\n // imABoolean=true;\n try {\n filePath = data.getData();\n bitmap = MediaStore.Images.Media.getBitmap(getActivity().getContentResolver(), filePath);\n\n logo.setImageBitmap(bitmap);\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n break;\n }\n }\n\n\n }", "private Bitmap getScaledBitmap(ImageView imageView) {\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n\n int scaleFactor = Math.min(\n options.outWidth / imageView.getWidth(),\n options.outHeight / imageView.getHeight()\n );\n options.inJustDecodeBounds = false;\n options.inSampleSize = scaleFactor;\n options.inPurgeable = true;\n return BitmapFactory.decodeFile(currentImagePath, options);\n }", "@Override\r\n public View getView(int position, View convertView, ViewGroup parent) {\n String picPath = (String) list.get(position);\r\n view = LayoutInflater.from(getContext()).inflate(R.layout.testone,null);\r\n ImageView image1 = (ImageView) view.findViewById(R.id.test1);\r\n Bitmap bitmap = BitmapFactory.decodeFile(picPath);\r\n image1.setImageBitmap(bitmap);\r\n return view;\r\n }", "private void showPreview(File mediaPath) {\n\n Bitmap scaledBitmap = BitmapFactory.decodeFile(String.valueOf(mediaPath));\n if (scaledBitmap != null) {\n int bitmapHeight = (int) (scaledBitmap.getHeight() * (512.0 / scaledBitmap.getWidth()));\n scaledBitmap = Bitmap.createScaledBitmap(scaledBitmap, 512, bitmapHeight, true);\n scaledBitmap = ((MApplication) getApplication()).rotateImage(scaledBitmap, mediaPath.getPath());\n selectedImage.setImageBitmap(scaledBitmap);\n } else {\n CustomToast.showToast(this, getString(R.string.media_not_available));\n finish();\n }\n }", "public void loadImagefromGallery(View view) {\n Intent intent = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n intent.putExtra(\"crop\", \"true\");\n intent.putExtra(\"aspectX\", 50);\n intent.putExtra(\"aspectY\", 50);\n intent.putExtra(\"outputX\", 100);\n intent.putExtra(\"outputY\", 100);\n\n try {\n // Start the Intent\n startActivityForResult(intent, PICK_FROM_GALLERY);\n } catch (ActivityNotFoundException ae) {\n\n } catch (Exception e) {\n\n }\n }", "@Override\n public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from) {\n if(bitmap.getHeight()>bitmap.getWidth()){\n\n progressBar.setVisibility(View.INVISIBLE);\n //load to imageview and set scale type to center crop\n imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);\n imageView.setImageBitmap(bitmap);\n\n }else {\n\n progressBar.setVisibility(View.INVISIBLE);\n //load to imageview and set scale type to fitxy\n imageView.setScaleType(ImageView.ScaleType.FIT_XY);\n imageView.setImageBitmap(bitmap);\n\n }\n\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n switch (requestCode) {\n case SELECTED_PICTURE:\n if (resultCode == RESULT_OK) {\n uri = data.getData();\n\n\n Log.e(\"Image path is \", \"\" + uri);\n String[] projection = {MediaStore.Images.Media.DATA};\n\n Cursor cursor = getContentResolver().query(uri, projection,\n null, null, null);\n cursor.moveToFirst();\n\n int columnIndex = cursor.getColumnIndex(projection[0]);\n String filePath = cursor.getString(columnIndex);\n String path = filePath;\n img = path;\n\n cursor.close();\n\n\n Bitmap yourSelectedImage = BitmapFactory.decodeFile(filePath);\n\n Drawable d = new BitmapDrawable(yourSelectedImage);\n\n newImage.setImageDrawable(d);\n Toast.makeText(getApplicationContext(), filePath,\n Toast.LENGTH_SHORT).show();\n\n\n\n }\n break;\n\n default:\n break;\n }\n }", "private void showView() {\n\t\tfinal ImageView image = (ImageView) findViewById(R.id.image); \n\t\t//screen.addView(image);\n\t\t//image.setImageResource(images[0]);\n\n\t\tString fileName = getFilesDir().getPath() + \"/\" + FILE_NAME;\n\t\t//System.out.println(fileName);\n\t\tBitmap bm = BitmapFactory.decodeFile(fileName); \n\t\t\n\t\timage.setImageBitmap(bm); \n\t\t\n\t\t//System.out.println(\"show done!\\n\");\t\t\n\t\t\n\t}", "@Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if(resultCode == RESULT_OK) {\n imgView.setImageURI(image_uri);\n// image_uri = data.getData();\n// try {\n// InputStream inputStream = getContentResolver().openInputStream(image_uri);\n// bitmap = BitmapFactory.decodeStream(inputStream);\n// imgView.setImageBitmap(bitmap);\n//// imgView.setVisibility(View.VISIBLE);\n//// btnUpload.setVisibility(View.VISIBLE);\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n// Toast.makeText(GambarActivity.this, \"o\", Toast.LENGTH_SHORT).show();\n }\n// super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_image_view, container, false);\n\n ButterKnife.bind(this, view);\n\n\n _imageFile = new File(_imagePath);\n if (PermissionChecker.hasExtStoragePerm(getActivity()) && _imageFile.exists()) {\n _bitmap = ContextUtils.get().loadImageFromFilesystem(_imageFile);\n }\n if (_bitmap == null) {\n _imageFile = null;\n _bitmap = ContextUtils.get().drawableToBitmap(\n ContextCompat.getDrawable(getActivity(), R.drawable.ic_mood_bad_black_256dp));\n }\n _expandedImageView.setImageBitmap(_bitmap);\n\n return view;\n }", "public void refreshImages() {\n\t\tsetContentView(R.layout.activity_overview);\n\t\trow = 0;\n\t\tcolumn = 0;\n\t\t// Open the file\n\t\tFile file = new File(getFilesDir().getAbsoluteFile() + \"/photos.txt\");\n\t\tLog.i(TAG, file.getAbsolutePath());\n\t\t// If there is no file, create a new one\n\t\tif (!file.exists()) {\n\t\t\ttry {\n\t\t\t\tfile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\t// Open an inputStream for reading the file\n\t\t\tFileInputStream inStream = openFileInput(\"photos.txt\");\n\t\t\tBufferedReader readFile = new BufferedReader(new InputStreamReader(inStream));\n\t\t\tpicturePaths = new ArrayList<String>();\n\t\t\tString receiveString = \"\";\n\t\t\t// Read in each line\n\t\t\twhile ((receiveString = readFile.readLine()) != null) {\n\t\t\t\t// Add the line to picturePaths and add an Image with the path specified\n\t\t\t\tpicturePaths.add(receiveString);\n\t\t\t\tLog.i(\"picture\", receiveString);\n\t\t\t\taddImage(receiveString);\n\t\t\t\treceiveString = \"\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_deneme2);\n ImageView imageView = findViewById(R.id.imageView);\n\n\n path= getExternalFilesDir(null)+\"/aa/\"+\"/ScreenShot\"+(MainActivity.PHOTO_COUNT-1+\".jpg\");\n File imgFile= new File(path);\n if(imgFile.exists())\n {\n imageView.setImageURI(Uri.fromFile(imgFile));\n\n }\n }", "@Override\n public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) {\n String filePath = localFile.getPath();\n Bitmap bitmap = BitmapFactory.decodeFile(filePath);\n viewHolder.itemImage.setImageBitmap(bitmap);\n }", "private ImageSize getImageViewSize(ImageView imageView) {\r\n ImageSize imageSize=new ImageSize();\r\n\r\n DisplayMetrics displayMetrics = imageView.getContext().getResources().getDisplayMetrics();\r\n ViewGroup.LayoutParams lp = imageView.getLayoutParams();\r\n //Get the actual with of the imageView.\r\n int width = imageView.getWidth();\r\n if (width <=0){\r\n //Get the imageView and declare the width of the layout.\r\n width=lp.width;\r\n }\r\n if (width<=0){\r\n //Check the maximum width of the imageView.\r\n width= getImageViewFieldValue(imageView,\"mMaxWidth\");\r\n }\r\n if (width<=0){\r\n width=displayMetrics.widthPixels;\r\n }\r\n //Get the actual height of the imageView.\r\n int height = imageView.getHeight();\r\n\r\n if (height <=0){\r\n //Get the imageView and declare the height of the layout.\r\n height=lp.height;\r\n }\r\n if (height<=0){\r\n //Check the maximum height of the imageView.\r\n height=getImageViewFieldValue(imageView,\"mMaxHeight\");\r\n }\r\n if (height<=0){\r\n height=displayMetrics.heightPixels;\r\n }\r\n imageSize.width=width;\r\n imageSize.height=height;\r\n return imageSize;\r\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == PICK_IMAGE && resultCode == RESULT_OK && data != null && data.getData() != null) {\n filePath = data.getData();\n try {\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), filePath);\n Image_brand.setImageBitmap(bitmap);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n\n if (requestCode == CAPTURE_IMAGE_REQUEST && resultCode == RESULT_OK) {\n Bitmap myBitmap = BitmapFactory.decodeFile(photoFile.getAbsolutePath());\n imgDisplay.setImageBitmap(myBitmap);\n textPath.setText(photoFile.getName());\n } else {\n displayMessage(getBaseContext(), \"Request cancelled or something went wrong.\");\n }\n\n }", "@Override\r\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n \tLog.v(\"catch\",view+\"\");\r\n \ttry{\r\n if (loadedImage != null && view!=null) { \r\n ImageView imageView = (ImageView) view; \r\n // imageView.setImageBitmap(loadedImage);\r\n // 是否第一次显示 \r\n boolean firstDisplay = !displayedImages.contains(imageUri); \r\n if (firstDisplay) { \r\n // 图片淡入效果 \r\n FadeInBitmapDisplayer.animate(imageView, 800); \r\n displayedImages.add(imageUri); \r\n \r\n/* \t ViewGroup.LayoutParams params = imageView.getLayoutParams(); \r\n \t params.height =loadedImage.getHeight(); \r\n \t ((MarginLayoutParams)params).setMargins(10, 10, 10, 10);\r\n \t imageView.setLayoutParams(params);*/ \r\n } \r\n } \r\n \t}catch(Exception e){\r\n \t\tLog.v(\"catch1\",e.getMessage());\r\n \t}\r\n }", "private void displayImage(Uri uri)\t{\n\t\tLog.d(TAG, \"displayImage\");\n\t\tint width = getWindow().getWindowManager().getDefaultDisplay().getWidth();\n\t\tint height = getWindow().getWindowManager().getDefaultDisplay().getHeight();\n\t\tString imageWidth = \"\\\" width=\\\"\" + width;\n\t\tString imageHeight = \"\\\" height=\\\"\" + height;\n\t\t\n\t\tif (width < height) //use width but not height, so set height to null\n\t\t\timageHeight = \"\";\n\t\telse //use height not width, so set width to null\n\t\t\timageWidth = \"\";\n\t\t\t\t\n\t\tString imageUrl = \"file://\" + uri.getPath();\n\t\tLog.d(TAG, \"Loading image...\");\n\t\tmCropView.loadData(\"<html><head>\" +\n\t\t\t\t\"<meta name=\\\"viewport\\\" content=\\\"width=device-width\\\"/>\" +\n\t\t\t\t\t\t\"</head><body><center><img src=\\\"\"+uri.toString() + imageWidth + imageHeight +\n\t\t\t\t\t\t\"\\\"></center></body></html>\",\n\t\t\t\t\t\t\"text/html\", \"UTF-8\");\n\t\tmCropView.getSettings().setBuiltInZoomControls(true);\n\t\tmCropView.setBackgroundColor(0);\n\t\tmCropView.getSettings().setUseWideViewPort(true);\n\t\tmCropView.setInitialScale(1);\n\t\tmCropView.getSettings().setLoadWithOverviewMode(true);\n\t\tLog.d(TAG, imageUrl);\n\t\tLog.d(TAG, uri.toString());\n\t}", "@Override\n public void onClick(View v) {\n Bitmap zoomedBitmap= Bitmap.createScaledBitmap(bmp, photoView.getWidth(), photoView.getHeight(), true);\n SaveImage(zoomedBitmap);\n }", "@Override\r\n\t\t\t\t\tpublic void result(String b, View v) {\n\t\t\t\t\t\tImageView im = (ImageView) v;\r\n\t\t\t\t\t\tint index = (Integer) v.getTag();\r\n\t\t\t\t\t\tBitmap bmp = ImageUtils.getBitmapFromFile(\r\n\t\t\t\t\t\t\t\tnew File(list.get(index).path), 300, 300);\r\n\t\t\t\t\t\tif (bmp == null) {\r\n\t\t\t\t\t\t\tim.setImageResource(R.drawable.default_avatar);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tim.setImageBitmap(bmp);\r\n\t\t\t\t\t\t\tbmp = null;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n super.onActivityResult(requestCode, resultCode, data);\r\n if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && null != data) {\r\n Uri selectedImageURI = data.getData();\r\n String[] filePathColumn = {MediaStore.Images.Media.DATA};\r\n\r\n Cursor cursor = getContentResolver().query(selectedImageURI,\r\n filePathColumn, null, null, null);\r\n cursor.moveToFirst();\r\n\r\n int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\r\n String picturePath = cursor.getString(columnIndex);\r\n cursor.close();\r\n\r\n selectedImage.setVisibility(View.VISIBLE);\r\n selectedImage.setImageBitmap(BitmapFactory.decodeFile(picturePath));\r\n\r\n //get the bytes from image that will be uploaded\r\n selectedImage.setDrawingCacheEnabled(true);\r\n selectedImage.buildDrawingCache();\r\n Bitmap bitmap = ((BitmapDrawable) selectedImage.getDrawable()).getBitmap();\r\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos);\r\n imageBytes = baos.toByteArray();\r\n }\r\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == -1 && requestCode == 1) {\n final Uri imageUri = data.getData();\n InputStream imageStream = null;\n try {\n imageStream = getContentResolver().openInputStream(imageUri);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n final Bitmap selectedImage = BitmapFactory.decodeStream(imageStream);\n Cursor cursor = getContentResolver().query(imageUri, null, null, null, null);\n /*\n * Get the column indexes of the data in the Cursor,\n * move to the first row in the Cursor, get the data,\n * and display it.\n */\n int nameIndex = cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME);\n int column_index = cursor.getColumnIndex(MediaStore.Images.Media.DATA);\n cursor.moveToFirst();\n Log.d(\"test\", cursor.getString(nameIndex));\n// Log.d(\"test\", getRealPathFromURI(imageUri));\n // try {\n// String[] proj = { MediaStore.Images.Media.DATA };\n// cursor = getContentResolver().query(imageUri, proj, null, null, null);\n// int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n// cursor.moveToFirst();\n// Log.d(\"test\", cursor.getString(column_index) + \"\");\n// } finally {\n// if (cursor != null) {\n// cursor.close();\n// }\n// }\n this.selectedImage = cursor.getString(nameIndex);\n this.currentImageVew.setImageBitmap(selectedImage);\n this.currentImageVew.setContentDescription(imageUri.getPath());\n // CALL THIS METHOD TO GET THE URI FROM THE BITMAP\n Uri tempUri = getImageUri(getApplicationContext(), selectedImage);\n\n // CALL THIS METHOD TO GET THE ACTUAL PATH\n File finalFile = new File(getRealPathFromURI(tempUri));\n\n System.out.println(finalFile.getAbsoluteFile());\n System.out.println(finalFile.getName());\n try {\n System.out.println(finalFile.getCanonicalPath());\n } catch (IOException e) {\n e.printStackTrace();\n }\n this.currentImageVew.setContentDescription(finalFile.getPath());\n this.currentImageVew.setTag(\"0\");\n\n Log.d(\"test\", \"selectedImage \" + selectedImage);\n Log.d(\"test\", \"imageUri.getPath() \" + imageUri.getPath());\n\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == PICK_IMAGE_REQUEST && resultCode == RESULT_OK && data != null && data.getData() != null) {\n filePath = data.getData();\n try {\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), filePath);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "@Override\n\tpublic int getCount() {\n\t\treturn image.length;\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK && data.getData()!=null) {\n if (requestCode == 2) {\n Uri selectedImage = data.getData();\n String[] filePath = { MediaStore.Images.Media.DATA };\n Cursor c = getContentResolver().query(selectedImage,filePath, null, null, null);\n c.moveToFirst();\n int columnIndex = c.getColumnIndex(filePath[0]);\n String picturePath = c.getString(columnIndex);\n c.close();\n Bitmap thumbnail = (BitmapFactory.decodeFile(picturePath));\n thumbnail= AppUtils.getResizedBitmap(thumbnail, 400);\n ivPic.setImageBitmap(thumbnail);\n\n //either update existing thumbnail\n if(thumbnailImage != null){\n thumbnailImage.setImage(thumbnail);\n viewModel.updateThumbnail(thumbnailImage);\n }\n //or create a new thumbnail\n else{\n contactGroup.setThumbnailId((int) viewModel.addThumbnailGetId(new ThumbnailImage(thumbnail)));\n viewModel.updateGroup(contactGroup);\n }\n }\n }\n }", "private void loadImageFromStorage(String path) {\n\n try {\n File f = new File(path, \"profile.jpg\");\n Bitmap b = BitmapFactory.decodeStream(new FileInputStream(f));\n circleProfileDetailImage.setImageBitmap(b);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n Log.d(TAG, \"loadImageFromStorage: \" + e.toString());\n }\n\n }", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn mImagePaths.size();\n\t\t}", "@Override\n public int getCount() {\n return bitmaplist.size();\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(resultCode == RESULT_OK && requestCode ==200){\n Uri uri_img=data.getData();\n try{\n assert uri_img != null;\n InputStream input_img = updateView.getContext().getContentResolver().openInputStream(uri_img);\n DecodeImage_stream = BitmapFactory.decodeStream(input_img);\n chooseImage.setImageBitmap(DecodeImage_stream);\n }catch (FileNotFoundException f){\n Log.d(\"add new file not found:\",f.getMessage());\n }\n }\n }", "private Bitmap translateImgToBitmap(String filepath){\n File imgFile = new File(filepath);\n\n if (imgFile.exists()) {\n Bitmap bitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());\n\n float imgScale = (float) bitmap.getHeight() / 1620;\n bitmap = Bitmap.createScaledBitmap(bitmap,\n Math.round(bitmap.getWidth() / imgScale),\n Math.round(bitmap.getHeight() / imgScale), true);\n\n return bitmap;\n\n } else {\n Toast.makeText(getApplicationContext(), \"Die Datei wurde nicht gefunden.\", Toast.LENGTH_SHORT).show();\n return null;\n }\n }", "private Bitmap decodeBitmapFromUri(Context context, Uri uri) { //, int viewWidth, int viewHeight\n try {\n InputStream inputStream = context.getContentResolver().openInputStream(uri);\n Bitmap decodedBm = BitmapFactory.decodeStream(inputStream);\n Bitmap formatedBm = decodedBm.copy(Bitmap.Config.ARGB_8888, false);\n decodedBm.recycle();\n\n\n// ImageUtils imageUtils = new ImageUtils();\n\n// Bitmap orientedBitmap = setOrientation(uri, formatedBm);\n\n Log.i(\"aaa\", \"Uri: \" + uri + \" Bitmap: \" + formatedBm);\n\n// return orientedBitmap;//scaledBitmap(formatedBm, viewWidth, viewHight);\n return formatedBm;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage);", "private void previewCapturedImage() {\n try {\n imageProfile.setVisibility(View.VISIBLE);\n Log.d(\"preview\", currentPhotoPath);\n final Bitmap bitmap = CameraUtils.scaleDownAndRotatePic(currentPhotoPath);\n imageProfile.setImageBitmap(bitmap);\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tLog.e(\"on success\", \"on success\");\n\t\tBitmap s = null;\n\n\t\tif (resultCode == getActivity().RESULT_OK) {\n\t\t\t// user is returning from capturing an image using the camera\n\t\t\tif (requestCode == CAMERA_CAPTURE) {\n\t\t\t\tLog.e(\"camera\", \"camera\");\n\t\t\t\tpicUri = data.getData();\n\t\t\t\tBundle extras = data.getExtras();\n\t\t\t\t// get the cropped bitmap\n\t\t\t\tBitmap thePic = extras.getParcelable(\"data\");\n\t\t\t\tsavetoaFileLocation(thePic);\n\t\t\t\tthePic = getResizedBitmap(thePic, 200, 200);\n\t\t\t\tcameraBitmap = thePic;\n\t\t\t\t// ImageView picView = (ImageView)\n\t\t\t\t// findViewById(R.id.img_userimage);\n\t\t\t\t// display the returned cropped image\n\t\t\t\tprofileimageeditflag=\"true\";\n\t\t\t\tGraphicsUtil graphicUtil = new GraphicsUtil();\n\t\t\t\t// picView.setImageBitmap(graphicUtil.getRoundedShape(thePic));\n\t\t\t\t\n\t\t\t\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(thePic, 16));\n\t\t\t\t//picview1.setImageBitmap(cameraBitmap);\n\t\t\t} else if (requestCode == GALLERY_CAPTURE) {\n\n\n\n\n\t\t\t\tUri selectedImage = data.getData();\n\n\t\t\t\tString stringUri;\n\t\t\t\tstringUri = selectedImage.toString();\n\t\t\t\tif ((stringUri != \"\") || stringUri != null) {\n\n\t\t\t\t\tString selectedImagePath = getPath(selectedImage);\ntry {\n\tExifInterface exifInterface = new ExifInterface(selectedImagePath);\n\torientation = exifInterface.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL);\n\n}\ncatch (Exception e){}\n\n\n\n\t\t\t\t\tString[] filePathColumn = { MediaStore.Images.Media.DATA };\n\t\t\t\t\tCursor cursor = getActivity().getContentResolver().query(\n\t\t\t\t\t\t\tselectedImage, filePathColumn, null, null, null);\n\t\t\t\t\tcursor.moveToFirst();\n\t\t\t\t\tint columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n\t\t\t\t\tString selectedimage_path = cursor.getString(columnIndex);\n\t\t\t\t\tLog.e(\"selected path\",selectedimage_path);\n\t\t\t\t\tcursor.close();\n\t\t\t\t\tif (selectedimage_path.startsWith(\"https://\")) {\n\t\t\t\t\t\tgetBiymapFromGoogleLocation(selectedimage_path);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ts = getBitmapFromFile(selectedimage_path);\n\t\t\t\t\t}\n\t\t\t\t\ts = getResizedBitmap(s, 200, 200);\n\t\t\t\t\tcameraBitmap = s;\n\n\t\t\t\t\tswitch(orientation) {\n\t\t\t\t\t\tcase ExifInterface.ORIENTATION_ROTATE_90:\n\t\t\t\t\t\t\tcorrectedBitMap = rotateImage(cameraBitmap, 90);\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase ExifInterface.ORIENTATION_ROTATE_180:\n\t\t\t\t\t\t\tcorrectedBitMap = rotateImage(cameraBitmap, 180);\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase ExifInterface.ORIENTATION_ROTATE_270:\n\t\t\t\t\t\t\tcorrectedBitMap = rotateImage(cameraBitmap, 270);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tcorrectedBitMap=cameraBitmap;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t// ImageView picView = (ImageView)\n\t\t\t\t\t// findViewById(R.id.img_userimage);\n\t\t\t\t\t// display the returned cropped image\nprofileimageeditflag=\"true\";\n\t\t\t\t\tGraphicsUtil graphicUtil = new GraphicsUtil();\n\n\n\t/*\t\t\t\tif(correctedBitMap!= null)\n\t\t\t\t\t{\n\t\t\t\t\t\tpicView.setImageBitmap(graphicUtil.getCircleBitmap(\n\t\t\t\t\t\t\t\tcorrectedBitMap, 16));\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// picView.setImageBitmap(graphicUtil.getRoundedShape(thePic));\n\t\t\t\t\t\tpicView.setImageBitmap(graphicUtil.getCircleBitmap(\n\t\t\t\t\t\t\t\tcameraBitmap, 16));\n\t\t\t\t\t}\n\n*/\n\n\t\t\t\t\tif (correctedBitMap != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(correctedBitMap, 16));\n\t\t\t\t\t\tsavetoaFileLocation(correctedBitMap);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(s, 16));\n\t\t\t\t\t\tsavetoaFileLocation(s);\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t// picView.setImageBitmap(graphicUtil.getRoundedShape(thePic));\n\t\t\t\n\t\t\t\t//\tpicview1.setImageBitmap(graphicUtil.getCircleBitmap(s, 16));\n\t\t\t\t//\tpicview1.setImageBitmap(cameraBitmap);\n\t\t\t\t//\tsavetoaFileLocation(s);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "public String getSize() {\n return fullPhoto.getSize();\n }", "@Override\r\n\t protected Bitmap doInBackground(Integer... params) {\r\n\t \trowid = params[0];\r\n\t\t\tString imageInSD = Environment.getExternalStorageDirectory().getPath()\r\n\t\t\t\t\t+ \"/Pictures/MyCameraApp/\" + rowid + \".jpg\";\r\n\r\n\r\n\t\t\t// First decode with inJustDecodeBounds=true to check dimensions\r\n\t\t\tfinal BitmapFactory.Options options = new BitmapFactory.Options();\r\n\t\t\toptions.inJustDecodeBounds = true;\r\n\t\t\tBitmapFactory.decodeFile(imageInSD, options);\r\n\r\n\t\t\t// Calculate inSampleSize\r\n\t\t\toptions.inSampleSize = calculateInSampleSize(options, 200,\r\n\t\t\t\t\t200);\r\n\r\n\t\t\t// Decode bitmap with inSampleSize set\r\n\t\t\toptions.inJustDecodeBounds = false;\r\n\t\t\treturn BitmapFactory.decodeFile(imageInSD, options);\r\n\t }", "private Bitmap decodeFileFromPath(String path) {\n Uri uri = getImageUri(path);\n InputStream in = null;\n try {\n in = getContentResolver().openInputStream(uri);\n\n //Decode image size\n BitmapFactory.Options o = new BitmapFactory.Options();\n o.inJustDecodeBounds = true;\n\n BitmapFactory.decodeStream(in, null, o);\n in.close();\n\n int scale = 1;\n int inSampleSize = 1024;\n if (o.outHeight > inSampleSize || o.outWidth > inSampleSize) {\n scale = (int) Math.pow(2, (int) Math.round(Math.log(inSampleSize / (double) Math.max(o.outHeight, o.outWidth)) / Math.log(0.5)));\n }\n\n BitmapFactory.Options o2 = new BitmapFactory.Options();\n o2.inSampleSize = scale;\n in = getContentResolver().openInputStream(uri);\n // Bitmap b = BitmapFactory.decodeStream(in, null, o2);\n int MAXCAP_SIZE = 512;\n Bitmap b = getResizedBitmap(BitmapFactory.decodeStream(in, null, o2), MAXCAP_SIZE);\n in.close();\n\n return b;\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public void drawImage() {\n ImageView imageView = (ImageView) findViewById(R.id.photo);\n imageView.setVisibility(View.VISIBLE);\n Glide.with(MainActivity.this).load(iURI).fitCenter().into(imageView);\n }", "@Override\n protected void onWindowVisibilityChanged(int visibility) {\n super.onWindowVisibilityChanged(visibility);\n\n if(visibility==RelativeLayout.GONE){\n if(null!=this.mBitmap){\n this.mBitmap.recycle();\n this.mBitmap = null;\n }\n }else{\n if(null!=this.mBitmap){\n this.mBitmap.recycle();\n this.mBitmap = null;\n }\n if(null!=this.mPath){\n\n\n //this.mBitmap = BitmapFactory.decodeFile(this.mPath);\n this.mBitmap = ImageUtils.getBitmap(this.mPath, IMAGE_WIDTH_HEIGHT, IMAGE_WIDTH_HEIGHT);\n this.setImageBitmap(mBitmap);\n }\n\n }\n Log.e(\"my\",\"onWindowVisibilityChanged:\"+visibility);\n }", "private Bitmap decodeUri(Uri selectedImage, int size) throws FileNotFoundException {\n // Decode image size\n BitmapFactory.Options o = new BitmapFactory.Options();\n o.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(getContentResolver().openInputStream(selectedImage), null, o);\n\n // Find the correct scale value. It should be the power of 2.\n int width_tmp = o.outWidth, height_tmp = o.outHeight;\n int scale = 1;\n while (true) {\n if (width_tmp / 2 < size\n || height_tmp / 2 < size) {\n break;\n }\n width_tmp /= 2;\n height_tmp /= 2;\n scale *= 2;\n }\n\n // Decode with inSampleSize\n BitmapFactory.Options o2 = new BitmapFactory.Options();\n o2.inSampleSize = scale;\n return BitmapFactory.decodeStream(getContentResolver().openInputStream(selectedImage), null, o2);\n }", "public void getImage(){\n Cursor c = db.rawQuery(\"SELECT * FROM Stories\",null);\n if(c.moveToNext()){\n byte[] image = c.getBlob(0);\n Bitmap bmp = BitmapFactory.decodeByteArray(image,0,image.length);\n }\n}", "@Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n\n MemoryCache cache = ImageLoader.getInstance().getMemoryCache();\n cache.put(imageUri, loadedImage);\n holder.img.setImageBitmap(loadedImage);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == TAKE_IMAGE && resultCode == RESULT_OK) {\n Bundle extra = data.getExtras();\n bitmap = (Bitmap) extra.get(\"data\");\n saveImage(bitmap);\n imageView.setImageBitmap(bitmap);\n } else if (requestCode == SELECT_IMAGE && resultCode == RESULT_OK) {\n Uri targetUri = data.getData();\n Toast.makeText(getApplicationContext(), targetUri.toString(), Toast.LENGTH_LONG).show();\n Bitmap bitmap;\n try {\n\n bitmap = BitmapFactory.decodeStream(getContentResolver().openInputStream(targetUri));\n\n imageView.setImageBitmap(bitmap);\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }", "static Bitmap resamplePic(Context context, String imagePath) {\n\n // Get device screen size information\n DisplayMetrics metrics = new DisplayMetrics();\n WindowManager manager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\n manager.getDefaultDisplay().getMetrics(metrics);\n\n int targetH = metrics.heightPixels;\n int targetW = metrics.widthPixels;\n\n // Get the dimensions of the original bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(imagePath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n return BitmapFactory.decodeFile(imagePath);\n }", "private void refreshDimensions() {\n //tamano del canvas\n targetWidth = canvasWidth;\n targetHeight = canvasHeight;\n//de las imagenes\n sourceWidth = bitmap.getWidth();\n sourceHeight = bitmap.getHeight();\n\n double targetRatio = (double) targetWidth / (double) targetHeight;\n double sourceRatio = (double) sourceWidth / (double) sourceHeight;\n\n targetOffsetX = 0;\n targetOffsetY = 0;\n\n if(sourceRatio > targetRatio)\n {\n int newTargetHeight = (int) (targetWidth / sourceRatio);\n int delta = targetHeight - newTargetHeight;\n targetOffsetY = delta / 2;\n targetHeight = newTargetHeight;\n }\n else if(sourceRatio < targetRatio)\n {\n int newTargetWidth = (int) (targetHeight * sourceRatio);\n int delta = targetWidth - newTargetWidth;\n targetOffsetX = delta / 2;\n targetWidth = newTargetWidth;\n }\n\n puzzleWidth = slidePuzzle.getWidth();\n puzzleHeight = slidePuzzle.getHeight();\n\n targetColumnWidth = targetWidth / puzzleWidth;\n targetRowHeight = targetHeight / puzzleHeight;\n sourceColumnWidth = sourceWidth / puzzleWidth;\n sourceRowHeight = sourceHeight / puzzleHeight;\n }", "public static Bitmap getPhotoBitmap(String path) {\n File imgFile = new File(Environment.getExternalStorageDirectory(), path);\n Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());\n return myBitmap;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (data != null && data.getData() != null && resultCode == RESULT_OK) {\n ParcelFileDescriptor pfd;\n try {\n ImageView image=(ImageView)findViewById(R.id.imgView);\n pfd = getContentResolver().openFileDescriptor(data.getData(), \"r\");\n FileDescriptor fd = pfd.getFileDescriptor();\n Bitmap img = BitmapFactory.decodeFileDescriptor(fd);\n pfd.close();\n image.setImageBitmap(img); //image represent ImageVIew to display picked image\n\n if (android.os.Build.VERSION.SDK_INT == Build.VERSION_CODES.KITKAT) {\n int flags = data.getFlags()&(Intent.FLAG_GRANT_READ_URI_PERMISSION|Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n Uri u = data.getData();\n getContentResolver().takePersistableUriPermission(u,flags);\n String id = u.getLastPathSegment().split(\":\")[1];\n final String[] imageColumns = {MediaStore.Images.Media.DATA};\n final String imageOrderBy = null;\n Uri u1 =Uri.EMPTY;\n String state = Environment.getExternalStorageState();\n if (!state.equalsIgnoreCase(Environment.MEDIA_MOUNTED))\n u1 = MediaStore.Images.Media.INTERNAL_CONTENT_URI;\n else\n u1 = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;\n Cursor c = managedQuery(u1, imageColumns, MediaStore.Images.Media._ID + \"=\" + id, null, imageOrderBy);\n if (c.moveToFirst()) {\n imgPath = c.getString(c.getColumnIndex(MediaStore.Images.Media.DATA)); //imgPath represents string variable to hold the path of image\n }\n } else {\n Uri imgUri = data.getData();\n Cursor c1 = getContentResolver().query(imgUri, null, null, null, null);\n if (c1 == null) {\n imgPath = imgUri.getPath(); //imgPath represents string variable to hold the path of image\n } else {\n c1.moveToFirst();\n int idx = c1.getColumnIndex(MediaStore.Images.ImageColumns.DATA);\n imgPath = c1.getString(idx); //imgPath represents string variable to hold the path of image\n c1.close();\n }\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }catch(Exception ea)\n {}\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\r\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\tif (convertView == null) {\r\n\t\t\t\tconvertView = inflater.inflate(\r\n\t\t\t\t\t\tR.layout.list_item_image, parent, false);\r\n\t\t\t}\r\n\t\t\tViewHolder holder = (ViewHolder) convertView.getTag();\t\t\t\r\n\t\t\tif (holder == null) {\r\n\t\t\t\tholder = new ViewHolder();\r\n\t\t\t\tholder.image = (ImageView) convertView.findViewById(R.id.image);\t\r\n\t\t\t\tholder.viewpager = (Gallery)convertView.findViewById(R.id.viewpager);\r\n\t\t\t\tconvertView.setTag(holder);\r\n\t\t\t} else {\r\n\t\t\t\tholder = (ViewHolder) convertView.getTag();\r\n\t\t\t}\r\n\t\t\tBitmap bitmap = BitmapFactory.decodeResource(getResources(), \r\n\t\t\t\t\tpictures[position][0]);\r\n\t\t\tLog.e(\"GaoMi\",\"screenWidth = \"+screenWidth +\" bitmap width = \"+bitmap.getWidth());\r\n\t\t\tif(pictures[position].length>1){\r\n\t\t\t\tholder.image.setVisibility(View.GONE);\r\n\t\t\t\tholder.viewpager.setVisibility(View.VISIBLE);\r\n/*\t\t\t\tArrayList<ImageView> list = new ArrayList<ImageView>();\r\n\t\t\t\tfor(int i=0; i<pictures[position].length; i++){\r\n\t\t\t\t\tImageView iv = new ImageView(context);\r\n\t\t\t\t\tiv.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,\r\n\t\t\t\t\t\t\tLayoutParams.WRAP_CONTENT));\t\t\t\t\t\r\n\t\t\t\t\tiv.setImageResource(pictures[position][i]);\r\n\t\t\t\t\tlist.add(iv);\r\n\t\t\t\t}*/\r\n/*\t\t\t\tif(screenWidth < bitmap.getWidth()){\r\n\t\t\t\t\tGallery.LayoutParams gl = (android.widget.Gallery.LayoutParams) holder.viewpager.getLayoutParams();\r\n\t\t\t\t\tgl.width = (int)(((float)screenWidth/(float)bitmap.getWidth())*bitmap.getHeight());\r\n\t\t\t\t\tholder.viewpager.setLayoutParams(gl);\r\n\t\t\t\t}*/\r\n\t\t\t\t\r\n\t\t\t\tif(screenWidth < bitmap.getWidth()){\r\n\t\t\t\t\tAbsListView.LayoutParams al = (AbsListView.LayoutParams) convertView.getLayoutParams();\r\n\t\t\t\t\tal.height =(int)(((float)screenWidth/(float)bitmap.getWidth())*bitmap.getHeight()); \r\n\t\t\t\t\tconvertView.setLayoutParams(al);\r\n\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\tholder.viewpager.setAdapter(new ImageAdapter(context, pictures[position]));\r\n\t\t\t} else {\r\n\t\t\t\tholder.image.setVisibility(View.VISIBLE);\t\t\t\t\r\n\t\t\t\tholder.viewpager.setVisibility(View.GONE);\r\n\t\t\t\t//holder.image.setBackgroundResource(pictures[position][0]);\r\n\t\t\t\tholder.image.setImageResource(pictures[position][0]);\r\n//\t\t\t\tLayoutParams params = holder.image.getLayoutParams();\r\n//\t\t\t\t//Drawable drawable = context.getResources().getDrawable(pictures[position][0]);\r\n//\t\t\t\tparams.height = bitmap.getHeight();\r\n//\t\t\t\tLog.e(\"GaoMi\",\"height = \"+bitmap.getHeight()+\" width = \"+bitmap.getWidth());\r\n//\t\t\t\tholder.image.setLayoutParams(params);\r\n//\t\t\t\tAbsListView.LayoutParams p = (android.widget.AbsListView.LayoutParams) convertView.getLayoutParams();\r\n//\t\t\t\tp.height = bitmap.getHeight();\r\n\r\n/*\t\t\t\tAbsListView.LayoutParams lp = new AbsListView.LayoutParams( \r\n\t\t\t\t\t\tbitmap.getWidth(), bitmap.getHeight()); */\r\n//\t AbsListView.LayoutParams lp = new AbsListView.LayoutParams(\r\n//\t \t\tLinearLayout.LayoutParams.MATCH_PARENT, 70);\r\n//\t convertView.setLayoutParams(lp);\r\n\t\t\t\tif(screenWidth < bitmap.getWidth()){\r\n/*\t\t\t\t\tAbsListView.LayoutParams lp = new AbsListView.LayoutParams( \r\n\t\t\t\t\t\tLinearLayout.LayoutParams.MATCH_PARENT, \r\n\t\t\t\t\t\t(int)(((float)screenWidth/(float)bitmap.getWidth())*bitmap.getHeight())); \r\n\t\t\t\t\tconvertView.setLayoutParams(lp);\r\n*/\r\n\t\t\t\t\tAbsListView.LayoutParams al = (AbsListView.LayoutParams) convertView.getLayoutParams();\r\n\t\t\t\t\tal.height =(int)(((float)screenWidth/(float)bitmap.getWidth())*bitmap.getHeight()); \r\n\t\t\t\t\tconvertView.setLayoutParams(al);\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\r\n\t\t\treturn convertView;\r\n\t\t}", "@Override\n\tpublic int getCount() {\n\t\treturn IMAGES.length;\n\t}", "@Override\n\tpublic int getCount() {\n\t\tLog.d(\"GALLERY VIEW GETCOUNT() MEYHOD\", \"Bitmap size : \" +bitmapArray.size() );\n\t\treturn bitmapArray.size();\n\t}", "public MyBmpInfo getThumbnail(Uri uri) {\n int w = 1280;\n int h = 960;\n double TARGETTED_WIDTH = 1920.0;\n\n try {\n InputStream input = this.getContentResolver().openInputStream(uri);\n\n BitmapFactory.Options onlyBoundsOptions = new BitmapFactory.Options();\n onlyBoundsOptions.inJustDecodeBounds = true;\n onlyBoundsOptions.inDither = true;//optional\n onlyBoundsOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;//optional\n BitmapFactory.decodeStream(input, null, onlyBoundsOptions);\n input.close();\n\n if ((onlyBoundsOptions.outWidth == -1) || (onlyBoundsOptions.outHeight == -1)) {\n return null;\n }\n\n int originalWidth = onlyBoundsOptions.outWidth;\n\n double ratio = 1.0;\n if (originalWidth > TARGETTED_WIDTH){\n\n /*\n * Ratio Sample Size:\n * if 1 , means bitmap is exactly stay as orginal.\n * if 2 or above, means 1/2 or smaller from the ori image.*/\n ratio = originalWidth / TARGETTED_WIDTH;\n }\n\n BitmapFactory.Options bitmapOptions = new BitmapFactory.Options();\n bitmapOptions.inSampleSize = (int)Math.round(ratio);\n\n Log.d(\"bitmap scaled info\", \"ratio = \"+ratio+\" , poweredRatio = \"+bitmapOptions.inSampleSize+\", originalWidth = \"+originalWidth+\" , TARGETTED_WIDTH = \"+TARGETTED_WIDTH);\n\n bitmapOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;//\n input = this.getContentResolver().openInputStream(uri);\n Bitmap bitmap = BitmapFactory.decodeStream(input, null, bitmapOptions);\n// bitmap.compress(Bitmap.CompressFormat.JPEG, 100, )\n input.close();\n Log.d(\"elliot\", \"bitmap before resize: SIZE = \" + bitmap.getWidth() + \" x \" + bitmap.getHeight());\n if (bitmap.getWidth() < w || bitmap.getHeight() < h) {\n return new MyBmpInfo(bitmap, \"Image is too small\", true);\n } else {\n return new MyBmpInfo(Bitmap.createScaledBitmap(bitmap, w, h, true), \"\", false);\n }\n\n } catch (Exception e) {\n return null;\n }\n }", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n ViewHolder holder;\n if (convertView == null) {\n holder = new ViewHolder();\n convertView = LayoutInflater.from(mContext).inflate(R.layout.photo_list_items, parent, false);\n holder.ivImageDisplay = (SquareImageView) convertView.findViewById(R.id.ivImageDisplay);\n holder.tvImageFolderName = (TextView) convertView.findViewById(R.id.tvImageFolderName);\n convertView.setTag(holder);\n } else {\n holder = (ViewHolder) convertView.getTag();\n }\n imageCategorizingModel = getItem(position);\n String imagePath = imageCategorizingModel.getPath();\n String folderName = imageCategorizingModel.getFolderName();\n int imageCount = imageCategorizingModel.getImageCount();\n String displayName = folderName+\" (\"+imageCount+\")\";\n holder.tvImageFolderName.setText(displayName);\n /*Bitmap bitmap = Utils.UriToBitmap(imagePath);\n holder.ivImageDisplay.setImageBitmap(bitmap);*/\n imageLoader.displayImage(\"file://\" + imagePath, holder.ivImageDisplay, options, animateFirstListener);\n return convertView;\n }", "@Override\n public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) {\n Log.d(\"TAG\", \"onSuccess: \" + localFile + \" :This is the tasksnap: \" + taskSnapshot);\n bitmap = BitmapFactory.decodeFile(localFile.getAbsolutePath());\n imageView.setImageBitmap(bitmap);\n navImage.setImageBitmap(bitmap);\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n String[] galleryPermissions = {Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE};\n if (EasyPermissions.hasPermissions(this, galleryPermissions)) {\n if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && null != data) {\n Uri selectedImage = data.getData();\n String[] filePathColumn = {MediaStore.Images.Media.DATA};\n if (selectedImage != null) {\n Cursor cursor = getContentResolver().query(selectedImage,\n filePathColumn, null, null, null);\n cursor.moveToFirst();\n\n int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n String picturePath = cursor.getString(columnIndex);\n cursor.close();\n\n ImageView imgView = (ImageView) findViewById(R.id.imgView);\n Bitmap pic = BitmapFactory.decodeFile(picturePath);\n imgView.setImageBitmap(pic);\n bitmapList = cutImage(pic);\n updateTileButtons();\n displayToast(\"Upload picture successfully!\");\n }\n }\n } else {\n EasyPermissions.requestPermissions(this, \"Access for storage\",\n 101, galleryPermissions);\n }\n }", "public void loadImage(final String path, final ImageView imageView){\r\n imageView.setTag(path);\r\n if (mUIHandler==null){\r\n mUIHandler=new Handler(){\r\n @Override\r\n public void handleMessage(Message msg) {\r\n //Get the image and set its imageView.\r\n ImgBeanHolder holder= (ImgBeanHolder) msg.obj;\r\n Bitmap bitmap = holder.bitmap;\r\n ImageView imageview= holder.imageView;\r\n String path = holder.path;\r\n if (imageview.getTag().toString().equals( path)){\r\n imageview.setImageBitmap(bitmap);\r\n }\r\n }\r\n };\r\n }\r\n //Get the bitmap through the path in the cache.\r\n Bitmap bm=getBitmapFromLruCache(path);\r\n if (bm!=null){\r\n refreshBitmap(bm, path, imageView);\r\n }else{\r\n addTask(() -> {\r\n //Get the size of the image which wants to be displayed.\r\n ImageSize imageSize= getImageViewSize(imageView);\r\n //Compress the image.\r\n Bitmap bm1 =decodeSampledBitmapFromPath(imageSize.width,imageSize.height,path);\r\n //Put the image into the cache.\r\n addBitmapToLruCache(path, bm1);\r\n //Refresh the display of the image.\r\n refreshBitmap(bm1, path, imageView);\r\n mSemaphoreThreadPool.release();\r\n });\r\n }\r\n\r\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent intent) {\n\n\n //photo taken from cam\n if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK) {\n if (_mImageUri != null) {\n showTakenPhoto();\n }\n }\n\n //photo chosen\n if (requestCode == REQUEST_IMAGE_PICK && resultCode == RESULT_OK) {\n _mImageUri = intent.getData();\n\n\n try {\n _bitmap = MediaStore.Images.Media.getBitmap(\n getContentResolver(), _mImageUri);\n ImageView imageView = (ImageView) findViewById(R.id.uploadedImage);\n\n\n assert _bitmap != null;\n String[] filePathColumn = {MediaStore.Images.Media.DATA};\n\n Cursor cursor = getContentResolver().query(\n _mImageUri, filePathColumn, null, null, null);\n cursor.moveToFirst();\n\n int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n String filePath = cursor.getString(columnIndex);\n cursor.close();\n rotateImage(filePath);\n imageView.setImageBitmap(scaleBitmap(_bitmap, 350));\n _uploadButton.setEnabled(true);\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n\n\n }", "public void setLargeImg(String path){\n Picasso.with(context).load(LARGE+path).into(imageView);\n }", "public void setMediumImg(String path){\n Picasso.with(context).load(MEIDUM+path).into(imageView);\n }", "@Override\n public void onClick(View v) {\n MainActivity mainActivity = (MainActivity) getActivity();\n DatabaseHelper dbHelper = new DatabaseHelper(mainActivity);\n taskforshopphoto = dbHelper.getTaskInfo(String.valueOf(Shared.SelectedTask.ID));\n if (taskforshopphoto.PhotoID != null) {\n Dialog settingsDialog = new Dialog(getActivity());\n settingsDialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE);\n View viewDialog = getActivity().getLayoutInflater().inflate(R.layout.image_layout, null);\n settingsDialog.setContentView(viewDialog);\n ImageView imgShop = (ImageView) viewDialog.findViewById(R.id.ShopImage);\n Bitmap bmp = BitmapFactory.decodeFile(taskforshopphoto.PhotoID);\n\n imgShop.setImageBitmap(bmp);\n settingsDialog.show();\n } else {\n Toast.makeText(getActivity(), \" No Shop photo\", Toast.LENGTH_LONG).show();\n }\n }", "public void loadImagefromGallery(View view) {\n Intent galleryIntent = new Intent(Intent.ACTION_PICK,\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n // Start the Intent\n startActivityForResult(galleryIntent, RESULT_LOAD_IMG);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(requestCode == TAKE_IMAGE && resultCode == RESULT_OK){\n Bundle extra = data.getExtras();\n bitmap = (Bitmap) extra.get(\"data\");\n imageView.setImageBitmap(bitmap);\n }\n else {\n if (requestCode == SELECT_IMAGE && resultCode == RESULT_OK) {\n Uri targetUri = data.getData();\n Toast.makeText(getApplicationContext(), targetUri.toString(), Toast.LENGTH_SHORT).show();\n //textTargetUri.setText(targetUri.toString());\n Bitmap bitmap;\n try {\n\n bitmap = BitmapFactory.decodeStream(getContentResolver().openInputStream(targetUri));\n imageView.setImageBitmap(bitmap);\n } catch (FileNotFoundException e) {\n\n e.printStackTrace();\n }\n /*String[] filePathColumn = {MediaStore.Images.Media.DATA};\n\n\t\t\tCursor cursor = getContentResolver().query(data.getData(), filePathColumn, null, null, null);\n\t\t\tcursor.moveToFirst();\n\n\t\t\tint columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n\n\t\t\tString filePath = cursor.getString(columnIndex);\n\t\t\tcursor.close();\n\n\t\t\tBitmap yourSelectedImage = BitmapFactory.decodeFile(filePath);\n\t\t\tToast.makeText(getApplicationContext(), filePath, 1000).show();\n\t\t\timageView.setImageBitmap(yourSelectedImage);\n*/\n }\n }\n if(requestCode == 0 && resultCode == RESULT_OK){\n Bundle extra = data.getExtras();\n bitmap = (Bitmap) extra.get(\"data\");\n // imageView.setImageBitmap(bitmap);\n\n\n File root = Environment.getExternalStorageDirectory();\n File file = new File(root.getAbsolutePath()+\"/DCIM/Camera/img.jpg\");\n try\n {\n file.createNewFile();\n FileOutputStream ostream = new FileOutputStream(file);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, ostream);\n ostream.close();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n Toast.makeText(this,\"Failed to save image, try again\",Toast.LENGTH_LONG).show();\n }\n }\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\t\n\t\tif(savedInstanceState != null){\n\t\t\tmData = savedInstanceState.getInt(\"data\");\n\t\t}\n\t\t\n\t\tBundle args = getArguments();\n\t\t\n\t\tLog.e(\"TAG\",\"what's?? \" + args.getInt(\"index\"));\n\t\t\n\t\t\n\t\t\n\t\tBitmap bmp = null;\n\t\ttry {\n\t\t\tbmp = MediaStore.Images.Media\n\t\t\t .getBitmap(getActivity().getContentResolver(), ContentUris.withAppendedId(\n\t\t\t\t\t MediaStore.Images.Media.EXTERNAL_CONTENT_URI, args.getLong(\"imageId\")));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tLog.e(\"TAG\",\"bbbb\");\n\t\t\n\t\t//if(bmp != null && imageView != null)\n\t\t\n\t\tsurFaceView.setFixedSize(bmp.getWidth(),bmp.getHeight());\n\t\t//imageView.setImageBitmap(this.scale(bmp));\n\t\t\n\t\t\n\t\tBitmapDrawable ob = new BitmapDrawable(bmp);\n\t\tsurFaceView.setBackgroundDrawable(ob);\n\t\t\n\t\t\n\t\t\n\t\t//int index = args.getInt(\"index\");\n\t\t\n\t}" ]
[ "0.77071136", "0.7237939", "0.7198731", "0.7050766", "0.69483155", "0.69312495", "0.69280416", "0.6923731", "0.6882833", "0.6817194", "0.6788475", "0.67306614", "0.670752", "0.6702247", "0.66830355", "0.6658902", "0.65481883", "0.6532653", "0.65306205", "0.6530483", "0.6510313", "0.6500911", "0.6481297", "0.64591664", "0.64490104", "0.639112", "0.63836324", "0.6301844", "0.6294834", "0.6285162", "0.62739366", "0.62613595", "0.6237719", "0.6207259", "0.618473", "0.61719364", "0.6168166", "0.61669767", "0.6148163", "0.61342597", "0.6130726", "0.6099355", "0.6083859", "0.6073695", "0.6072598", "0.6068139", "0.60615057", "0.60538304", "0.6053811", "0.6048003", "0.60446435", "0.60379785", "0.6027048", "0.60211587", "0.60191995", "0.601341", "0.600294", "0.5971774", "0.59715587", "0.5947052", "0.5942697", "0.5938994", "0.5933214", "0.5927085", "0.5914121", "0.59136903", "0.5912954", "0.5912905", "0.59109545", "0.59108853", "0.590176", "0.58963174", "0.5893887", "0.58899325", "0.58822346", "0.58791625", "0.5871072", "0.5866213", "0.5856238", "0.5850262", "0.5842249", "0.5841475", "0.5836002", "0.58349663", "0.58332574", "0.58314973", "0.5823905", "0.58030206", "0.5800721", "0.5790742", "0.57878554", "0.5787753", "0.5756029", "0.5755792", "0.5753011", "0.57460433", "0.57340467", "0.57337475", "0.5732678", "0.57267356", "0.57257307" ]
0.0
-1
Create an image file name
protected File createImageFile() throws IOException { String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()); String imageFileName = "JPEG_" + timeStamp + "_"; File storageDir = Environment.getExternalStoragePublicDirectory( Environment.DIRECTORY_PICTURES); File image = File.createTempFile( imageFileName, /* prefix */ ".jpg", /* suffix */ storageDir /* directory */ ); // Save a file: path for use with ACTION_VIEW intents mCurrentPhotoPath = image.getAbsolutePath(); return image; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private File createImageFileName() throws IOException {\n String timestamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n //there are two types of SimpleDateFormat and Date()\n String prepend = \"JPEG_\" + timestamp + \"_\";\n File imageFile = File.createTempFile(prepend, \".jpg\", mImageFolder);\n mImageFileName = imageFile.getAbsolutePath();\n return imageFile;\n\n }", "public void createNewImageFile(){\n fillNewImage();\n\n try {\n ImageIO.write(newImage, imageFileType, new File(k + \"_Colored_\" + fileName.substring(0,fileName.length() - 4) + \".\" + imageFileType));\n } catch (IOException e){\n e.printStackTrace();\n }\n \n }", "private static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX, albumF);\n return imageF;\n }", "private static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX, albumF);\n return imageF;\n }", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"MAZE_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX, albumF);\n return imageF;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\")\n .format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX,\n albumF);\n return imageF;\n }", "private File createImageFile() throws IOException{\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\"+timeStamp;\n File image = File.createTempFile(imageFileName, \".jpg\", this.savePath);\n \n return image;\n }", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n return File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }", "private File createImageFile() throws IOException{\n @SuppressLint(\"SimpleDateFormat\")\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"img_\"+timeStamp+\"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n return File.createTempFile(imageFileName,\".jpg\",storageDir);\n }", "private File createImageFile() throws IOException {\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.getDefault()).format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n return File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }", "public String createImageName(File imageFile)\n\t{\n\t\tString name = imageFile.getAbsolutePath();\n\t\t\n\t\t// remove the initial part of the path that is common among all images so that only the relative path within the image folder remains\n\t\t// also remove the file's extension\n\t\tname = name.substring(imageFolder.getAbsolutePath().length() + 1, name.lastIndexOf('.'));\t\t\n\t\treturn name;\n\t}", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(getString(R.string.day_format)).format(new Date());\n String imageFileName = getString(R.string.image_file_prefix) + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(imageFileName, getString(R.string.image_file_format),\n storageDir\n );\n\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.US).format(new Date());\n String imageFileName = \"perfil_\" + timeStamp + \"_\";\n String outputPath = PATH;\n File storageDir = new File(outputPath);\n if(!storageDir.exists())storageDir.mkdirs();\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException\n {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File imageFile = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n return imageFile;\n }", "private String createFileName(){\n \t\n \tString state = Environment.getExternalStorageState();\n \tif(state.equals(Environment.MEDIA_MOUNTED)){ \t\t\n \t\tFile folder = new File(Environment.getExternalStorageDirectory() + \"/ArtCameraPro\");\n \t\tboolean success = true;\n \t\tif (!folder.exists()) {\n \t\t success = folder.mkdir();\n \t\t} \n \t\tString sFileName = Environment.getExternalStorageDirectory() + \"/ArtCameraPro\" + File.separator + System.currentTimeMillis() + \".jpg\";\n \t\treturn sFileName;\n \t\t\n \t}\n \treturn \"\";\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n return image;\n }", "private static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = MyApplication.getContext().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n return image;\n }", "public static String createFotoFileName(String prefix) {\n return prefix + \"_\" + DateUtil.getCurrentDateTimeAsString(\"yyyyMMdd_hhmmss\") + \".jpg\";\n }", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File imageFile = File.createTempFile(imageFileName, \".jpg\", storageDir);\n return imageFile;\n }", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getContext().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp;\n\n String folderName = context.getString(R.string.app_name).toLowerCase();\n\n File path = new File(ContextCompat.getExternalFilesDirs(getActivity(), null)[0]\n .getAbsolutePath() + \"/\" + folderName);\n\n //make sure folder exists\n path.mkdirs();\n\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n path /* directory */\n );\n\n return image;\n }", "private File createImageFile(String imgDir) throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = imgDir + File.separator + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n return File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\n String mFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File mFile = File.createTempFile(mFileName, \".jpg\", storageDir);\n return mFile;\n }", "@SuppressLint(\"SimpleDateFormat\")\n public static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + JPEG_FILE_SUFFIX;\n String nameAlbum = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/\" + nameDir;// getString(R.string.app_name);\n File albumF = new File(nameAlbum);\n if (!albumF.exists()) {\n albumF.mkdirs();\n File noMedia = new File(albumF, \".nomedia\");\n noMedia.createNewFile();\n }\n\n File imageF = new File(albumF, imageFileName);\n imageF.createNewFile();\n return imageF;\n }", "private String generateFilename() {\n UUID uuid = UUID.randomUUID();\n return uuid.toString();\n }", "private File createImageFile() throws IOException\n {\n String timeStamp = new SimpleDateFormat(\"yyyymmddHHmmss\").format(new Date());\n String imageFileName = timeStamp;\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n userCacheDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n return image;\n }", "private File createImageFile() {\n\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.getDefault()).format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES + APP_PICTURE_DIRECTORY);\n storageDir.mkdirs();\n\n File imageFile = null;\n\n try {\n imageFile = File.createTempFile(\n imageFileName, /* prefix */\n FILE_SUFFIX_JPG, /* suffix */\n storageDir /* directory */\n );\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return imageFile;\n }", "private File createImageFile() {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DCIM), \"GIS\");\n File image = null;\n\n if(!storageDir.exists()){\n\n storageDir.mkdirs();\n\n }\n try {\n image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }catch (Exception e){\n\n e.printStackTrace();\n\n }\n // Save a file: path for use with ACTION_VIEW intents\n\n return image;\n }", "private String beautiplyFileNameGenerator() {\r\n\t\t// /randomvalue between 0 to 9\r\n\t\tString name = \"beautiply\" + new Random().nextInt(9) + \".png\";\r\n\r\n\t\treturn name;\r\n\t}", "private void createImage (String image_name, int filename){\n\n\t\tString image_folder = getLevelImagePatternFolder();\n\t\t\n\t\tString resource = filename+\".png\";\n\t\tImageIcon ii = new ImageIcon(this.getClass().getResource(image_folder + resource));\n images.put(image_name, ii.getImage());\n\t}", "public File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File imageFile = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n return imageFile;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n String z = image.getAbsolutePath();\n return image;\n }", "public String createImageName(String empName) {\n StringBuilder iN = new StringBuilder();\n\n String[] fnLn = empName.split(\" \");\n iN.append(fnLn[0]);\n iN.append(fnLn[fnLn.length-1].substring(0, 1));\n return iN.toString().trim();\n }", "public File createImageFile() {\n // the public picture director\n File picturesDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); // To get pictures directory from android system\n\n // timestamp makes unique name.\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd_HHmmss\");\n String timestamp = sdf.format(new Date());\n\n // put together the directory and the timestamp to make a unique image location.\n File imageFile = new File(picturesDirectory, timestamp + \".jpg\");\n\n return imageFile;\n }", "public File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = mContext.getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n return File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat ( \"yyyyMMdd_HHmmss\" ).format ( new Date () );\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir ( Environment.DIRECTORY_PICTURES );\n File image = File.createTempFile (\n imageFileName , /* prefix */\n \".jpg\" , /* suffix */\n storageDir /* directory */\n );\n\n // luu file: su dung ACTION_VIEW\n pathToFile = image.getAbsolutePath ();\n return image;\n }", "public File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getActivity().getFilesDir();\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n return image;\n }", "protected File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n strAbsolutePath = image.getAbsolutePath();\n Log.e(\"XpathX\", image.getAbsolutePath());\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\n String mFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File mFile = File.createTempFile(mFileName, \".jpg\", storageDir);\n pictureFilePath = mFile.getAbsolutePath();\n return mFile;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"1mind_\" + timeStamp + \".png\";\n File photo = new File(Environment.getExternalStorageDirectory(), imageFileName);\n mCurrentPhotoPath = photo.getAbsolutePath();\n return photo;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\r\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\r\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\r\n File image = File.createTempFile(\r\n imageFileName, // prefix //\r\n \".jpg\", // suffix //\r\n storageDir // directory //\r\n );\r\n\r\n // Save a file: path for use with ACTION_VIEW intents\r\n mPath = image.getAbsolutePath();\r\n return image;\r\n }", "private File createImageFile() throws IOException {\n String imageFileName = new SimpleDateFormat(\"yyyyMMdd-HHmmss\", Locale.ENGLISH).format(new Date());\n String storageDir = Environment.getExternalStorageDirectory() + \"/DokuChat\";\n File dir = new File(storageDir);\n if (!dir.exists())\n dir.mkdir();\n\n image = new File(storageDir + \"/\" + imageFileName + \".jpg\");\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n pictureImagePath = image.getAbsolutePath();\n return image;\n\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new java.util.Date());\n String imageFileName = \"WILDLIFE_JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n //Todo:Este sera el nombre que tendra el archivo\n String imageFileName = \"IMAGE_\" + timeStamp + \"_\";\n //Todo:Ruta donde se almacenara la imagen\n File storageDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n\n //Todo:El tipo de archivo que se almacenara en el directorio\n File image = File.createTempFile(imageFileName,\".jpg\",storageDirectory);\n //Todo: mImageFileLocation sera el valor que se\n mImageFileLocation = image.getAbsolutePath();\n\n return image;\n }", "private File createImageFile() throws IOException\r\n {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\r\n String imageFileName = \"MYAPPTEMP_\" + timeStamp + \"_\";\r\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\r\n File image = File.createTempFile(imageFileName, /* prefix */\r\n \".jpg\", /* suffix */\r\n storageDir /* directory */\r\n );\r\n\r\n return image;\r\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n pictureImagePath = image.getAbsolutePath();\n return image;\n }", "public abstract String getImageSuffix();", "private File createImageFile() {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n //File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File storageDir = new File(utils.getSentImagesDirectory());\n\n File image = null;\n try {\n image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n // Save a file: path for use with ACTION_VIEW intents\n //LOG.info(\"test place3\");\n try {\n imageFilePath = image.getAbsolutePath();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n //LOG.info(\"test place4\");\n if (image == null) {\n LOG.info(\"image file is null\");\n } else {\n LOG.info(\"image file is not null path is:\" + imageFilePath);\n }\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getActivity().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".png\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, // prefix\n \".jpg\", // suffix\n storageDir // directory\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = SettingsHelper.getPrivateImageFolder(this);\n if (!storageDir.exists()) {\n storageDir.mkdirs();\n }\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n imageUri = Uri.fromFile(image);\n return image;\n }", "private Image createImage(String image_file) {\n\t\tImage img = new Image(image_file);\n\t\treturn img;\n\t}", "public File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.US).format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = new File(getPhotoLocation());\n File image = File.createTempFile(\n imageFileName,\n \".jpg\",\n storageDir\n );\n\n setCurrentPhotoFile(image.getAbsolutePath());\n return image;\n }", "private File createImageFile() throws IOException\n {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"Picko_JPEG\" + timeStamp + \"_\";\n File storageDir = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DOCUMENTS),\"Whatsapp\");\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n String mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n\n\n }", "public static File createImageFile(Context context, String name) throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\r\n String imageFileName = name + \"_\" + timeStamp + \"_\";\r\n File storageDir = context.getExternalFilesDir(Environment.DIRECTORY_PICTURES);\r\n File image = File.createTempFile(\r\n imageFileName, /* prefix */\r\n \".jpg\", /* suffix */\r\n storageDir /* directory */\r\n );\r\n return image;\r\n }", "public abstract String createFilename(Entity entity);", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n //The directory where to save the file image\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n //The actual image file\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n mPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format( new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\" ;\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment. DIRECTORY_PICTURES);\n File image = File. createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private static File createImageFile(Activity activity) throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = activity.getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n// File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n// File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n savePhotoPathToSharedPrefs();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n //galleryAddPic();\n return image;\n }", "private File createImageFile() throws IOException {\n Date d = new Date();\n String nameDate = new SimpleDateFormat(\"ddMMyyyy_HHmmss\").format(d);\n this.date = new SimpleDateFormat(\"dd/MM/yyyy\").format(d);\n String imageFileName = \"JPEG_\" + nameDate + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\r\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\r\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\r\n File image = File.createTempFile(\r\n imageFileName, /* prefix */\r\n \".jpg\", /* suffix */\r\n storageDir /* directory */\r\n );\r\n\r\n // Save a file: path for use with ACTION_VIEW intents\r\n mCurrentPhotoPath = image.getAbsolutePath();\r\n return image;\r\n\r\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n photosPaths.add(mCurrentPhotoPath);\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp;\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "public abstract FileName createName(String absolutePath, FileType fileType);", "public String getPhotoFileName() {\n return \"IMG_\" + getId().toString() + \".jpg\";\n }", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = activity.getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(imageFileName, \".jpg\", storageDir);\n\n // Save a file: path for use with ACTION_VIEW intents\n this.currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.ENGLISH).format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DCIM), \"Camera\");\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName,\n \".jpg\",\n storageDir\n );\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "public static File createImageFile(Context ctx) throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = ctx.getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(imageFileName, \".jpg\", storageDir);\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = imageFileName + \"camera.jpg\";\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n //This is the directory in which the file will be created. This is the default location of Camera photos\n File storageDir = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DCIM), \"Camera\");\n image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for using again\n cameraFilePath = \"file://\" + image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n //This is the directory in which the file will be created. This is the default location of Camera photos\n File storageDir = new File(Environment.getExternalStorageDirectory(), getString(R.string.app_name));\n if (!storageDir.exists()){\n storageDir.mkdir();\n }\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for using again\n cameraFilePath = \"file://\" + image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n// File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }" ]
[ "0.7782615", "0.7292824", "0.6992056", "0.6992056", "0.6943564", "0.6911284", "0.68938434", "0.686538", "0.68592805", "0.68590325", "0.68580544", "0.68443614", "0.67711073", "0.67546785", "0.6751638", "0.6737171", "0.6726197", "0.67170936", "0.67068315", "0.6706409", "0.6694521", "0.6692518", "0.66892946", "0.6665624", "0.6658789", "0.66203934", "0.66164696", "0.6615736", "0.6610864", "0.66096437", "0.6604602", "0.66028416", "0.6600987", "0.65886337", "0.6579357", "0.6576186", "0.65653497", "0.65549564", "0.65421396", "0.65305394", "0.6530493", "0.6523718", "0.6517966", "0.65117127", "0.6505747", "0.6493113", "0.64924705", "0.6475854", "0.6471266", "0.6448684", "0.6419626", "0.64166796", "0.6413514", "0.640042", "0.63892233", "0.6379753", "0.6375813", "0.6375534", "0.6367382", "0.63566", "0.6355329", "0.6345687", "0.6332988", "0.6329631", "0.6329631", "0.6329631", "0.6329631", "0.6329631", "0.63276523", "0.63276523", "0.6326054", "0.6324831", "0.6323436", "0.63181776", "0.6311542", "0.63093704", "0.63077575", "0.630525", "0.6300038", "0.6297278", "0.6296964", "0.6294874", "0.6292948", "0.6289597", "0.62894386", "0.6282458", "0.6281662", "0.62706375", "0.6261314", "0.6258569", "0.62572557", "0.6256673", "0.62541807", "0.6251297", "0.6251297", "0.6251297", "0.6251297", "0.6251297", "0.6251297", "0.6251297", "0.6251297" ]
0.0
-1
Initializes the controller class.
@FXML private void btnNederlandsOnAction(ActionEvent event) { locale = new Locale(""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Controller()\n\t{\n\n\t}", "private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }", "public MainController() {\n initializeControllers();\n initializeGui();\n runGameLoop();\n }", "public Controller() {\n this.model = new ModelFacade();\n this.view = new ViewFacade();\n }", "public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}", "public Controller() {\n\t\tthis(null);\n\t}", "public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}", "private void initialize() {\n\t\tinitializeModel();\n\t\tinitializeBoundary();\n\t\tinitializeController();\n\t}", "public void init() {\n\t\tkontrolleri1 = new KolikkoController(this);\n\t}", "protected void initialize() {\n super.initialize(); // Enables \"drive straight\" controller\n }", "public Controller() {\n model = new Model();\n comboBox = new ChannelComboBox();\n initView();\n new ChannelWorker().execute();\n timer = new Timer();\n }", "protected CityController() {\r\n\t}", "public void initialize() {\n warpController = new WarpController(this);\n kitController = new KitController(this);\n crafting = new CraftingController(this);\n mobs = new MobController(this);\n items = new ItemController(this);\n enchanting = new EnchantingController(this);\n anvil = new AnvilController(this);\n blockController = new BlockController(this);\n hangingController = new HangingController(this);\n entityController = new EntityController(this);\n playerController = new PlayerController(this);\n inventoryController = new InventoryController(this);\n explosionController = new ExplosionController(this);\n requirementsController = new RequirementsController(this);\n worldController = new WorldController(this);\n arenaController = new ArenaController(this);\n arenaController.start();\n if (CompatibilityLib.hasStatistics() && !CompatibilityLib.hasJumpEvent()) {\n jumpController = new JumpController(this);\n }\n File examplesFolder = new File(getPlugin().getDataFolder(), \"examples\");\n examplesFolder.mkdirs();\n\n File urlMapFile = getDataFile(URL_MAPS_FILE);\n File imageCache = new File(dataFolder, \"imagemapcache\");\n imageCache.mkdirs();\n maps = new MapController(this, urlMapFile, imageCache);\n\n // Initialize EffectLib.\n if (com.elmakers.mine.bukkit.effect.EffectPlayer.initialize(plugin, getLogger())) {\n getLogger().info(\"EffectLib initialized\");\n } else {\n getLogger().warning(\"Failed to initialize EffectLib\");\n }\n\n // Pre-create schematic folder\n File magicSchematicFolder = new File(plugin.getDataFolder(), \"schematics\");\n magicSchematicFolder.mkdirs();\n\n // One-time migration of legacy configurations\n migrateConfig(\"enchanting\", \"paths\");\n migrateConfig(\"automata\", \"blocks\");\n migrateDataFile(\"automata\", \"blocks\");\n\n // Ready to load\n load();\n resourcePacks.startResourcePackChecks();\n }", "public ClientController() {\n }", "public Controller() {\n\t\tthis.nextID = 0;\n\t\tthis.data = new HashMap<Integer, T>();\n\t}", "public ListaSEController() {\n }", "boolean InitController();", "public MenuController() {\r\n\t \r\n\t }", "@Override\n\tprotected void initController() throws Exception {\n\t\tmgr = orderPickListManager;\n\t}", "public CustomerController() {\n\t\tsuper();\n\n\t}", "public End_User_0_Controller() {\r\n\t\t// primaryStage = Users_Page_Controller.primaryStage;\r\n\t\t// this.Storeinfo = primaryStage.getTitle();\r\n\t}", "public Controller(){\r\n\t\tthis.fabricaJogos = new JogoFactory();\r\n\t\tthis.loja = new Loja();\r\n\t\tthis.preco = 0;\r\n\t\tthis.desconto = 0;\r\n\t}", "private Controller() {\n\t\tthis.gui = GUI.getInstance();\n\t\tthis.gui.setController(this);\n\t}", "public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}", "public PlantillaController() {\n }", "public Controller() {\n\t\tplaylist = new ArrayList<>();\n\t\tshowingMore = false;\n\t\tstage = Main.getStage();\n\t}", "public IfController()\n\t{\n\n\t}", "public TournamentController()\n\t{\n\t\tinitMap();\n\t}", "public GeneralListVueController() {\n\n\t}", "private ClientController() {\n }", "public Controller()\n\t{\n\t\ttheParser = new Parser();\n\t\tstarList = theParser.getStars();\n\t\tmessierList = theParser.getMessierObjects();\n\t\tmoon = new Moon(\"moon\");\n\t\tsun = new Sun(\"sun\");\n\t\tconstellationList = theParser.getConstellations();\n\t\tplanetList = new ArrayList<Planet>();\n\t\ttheCalculator = new Calculator();\n\t\tepoch2000JD = 2451545.0;\n\t}", "private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }", "public LogMessageController() {\n\t}", "public LoginPageController() {\n\t}", "public ControllerEnfermaria() {\n }", "public ProvisioningEngineerController() {\n super();\n }", "private StoreController(){}", "public GenericController() {\n }", "@Override\n\tpublic void initialize() {\n\t\tinitializeModel(getSeed());\n\t\tinitializeView();\n\t\tinitializeControllers();\n\t\t\n\t\tupdateScore(8);\n\t\tupdateNumberCardsLeft(86);\n\n\t}", "public Controller() {\n\t\tenabled = false;\n\t\tloop = new Notifier(new ControllerTask(this));\n\t\tloop.startPeriodic(DEFAULT_PERIOD);\n\t}", "public MapController() {\r\n\t}", "@Override\r\n\tpublic void initControllerBean() throws Exception {\n\t}", "private void setupController() {\n setupWriter();\n Controller controller1 = new Controller(writer);\n controller = controller1;\n }", "public WfController()\n {\n }", "public Controller() {\n\n lastSearches = new SearchHistory();\n\n }", "private ClientController(){\n\n }", "public LoginController() {\r\n }", "public PersonasController() {\r\n }", "private void initBefore() {\n // Crear Modelo\n model = new Model();\n\n // Crear Controlador\n control = new Controller(model, this);\n\n // Cargar Propiedades Vista\n prpView = UtilesApp.cargarPropiedades(FICHERO);\n\n // Restaurar Estado\n control.restaurarEstadoVista(this, prpView);\n\n // Otras inicializaciones\n }", "public StoreController() {\n }", "public ConsoleController() {\n\t\tcommandDispatch = new CommandDispatch();\n\t}", "public LoginController() {\r\n\r\n }", "public final void init(final MainController mainController) {\n this.mainController = mainController;\n }", "public SMPFXController() {\n\n }", "public Controller()\r\n {\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard = new ScoreBoard();\r\n }", "public GUIController() {\n\n }", "public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }", "public void init(final Controller controller){\n Gdx.app.debug(\"View\", \"Initializing\");\n \n this.controller = controller;\n \n //clear old stuff\n cameras.clear();\n \n //set up renderer\n hudCamera = new OrthographicCamera();\n hudCamera.setToOrtho(false, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n \n batch = new SpriteBatch();\n igShRenderer = new ShapeRenderer();\n shapeRenderer = new ShapeRenderer();\n \n //set up stage\n stage = new Stage();\n \n //laod cursor\n cursor = new Pixmap(Gdx.files.internal(\"com/BombingGames/WurfelEngine/Core/images/cursor.png\"));\n\n controller.getLoadMenu().viewInit(this);\n \n initalized = true;\n }", "@PostConstruct\n public void init() {\n WebsocketController.getInstance().setTemplate(this.template);\n try {\n\t\t\tthis.chatController = ChatController.getInstance();\n } catch (final Exception e){\n LOG.error(e.getMessage(), e);\n }\n }", "public ControllerTest()\r\n {\r\n }", "public SearchedRecipeController() {\n }", "public FilmOverviewController() {\n }", "public CreditPayuiController() {\n\t\tuserbl = new UserController();\n\t}", "private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}", "public RootLayoutController() {\n }", "public MehController() {\n updateView(null);\n }", "public Controller(int host) {\r\n\t\tsuper(host);\r\n\t}", "public WorkerController(){\r\n\t}", "public TipoInformazioniController() {\n\n\t}", "private void initializeMealsControllers() {\n trNewPetMeal = MealsControllersFactory.createTrNewPetMeal();\n trObtainAllPetMeals = MealsControllersFactory.createTrObtainAllPetMeals();\n trDeleteMeal = MealsControllersFactory.createTrDeleteMeal();\n trUpdateMeal = MealsControllersFactory.createTrUpdateMeal();\n }", "public ProductOverviewController() {\n }", "public ProduktController() {\r\n }", "public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}", "private void initializeMedicationControllers() {\n trNewPetMedication = MedicationControllersFactory.createTrNewPetMedication();\n trObtainAllPetMedications = MedicationControllersFactory.createTrObtainAllPetMedications();\n trDeleteMedication = MedicationControllersFactory.createTrDeleteMedication();\n trUpdateMedication = MedicationControllersFactory.createTrUpdateMedication();\n }", "public PersonLoginController() {\n }", "public PremiseController() {\n\t\tSystem.out.println(\"Class PremiseController()\");\n\t}", "public TaxiInformationController() {\n }", "public LoginController() {\n\t\treadFromFile();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Controller(){\n initControl();\n this.getStylesheets().addAll(\"/resource/style.css\");\n }", "public CreateDocumentController() {\n }", "public ControllerRol() {\n }", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "public Controller () {\r\n puzzle = null;\r\n words = new ArrayList <String> ();\r\n fileManager = new FileIO ();\r\n }", "public void init() {\n \n }", "public Controller() {\n\t\tdoResidu = false;\n\t\tdoTime = false;\n\t\tdoReference = false;\n\t\tdoConstraint = false;\n\t\ttimeStarting = System.nanoTime();\n\t\t\n\t\tsetPath(Files.getWorkingDirectory());\n\t\tsetSystem(true);\n\t\tsetMultithreading(true);\n\t\tsetDisplayFinal(true);\n\t\tsetFFT(FFT.getFastestFFT().getDefaultFFT());\n\t\tsetNormalizationPSF(1);\n\t\tsetEpsilon(1e-6);\n\t\tsetPadding(new Padding());\n\t\tsetApodization(new Apodization());\n\n\t\tmonitors = new Monitors();\n\t\tmonitors.add(new ConsoleMonitor());\n\t\tmonitors.add(new TableMonitor(Constants.widthGUI, 240));\n\n\t\tsetVerbose(Verbose.Log);\n\t\tsetStats(new Stats(Stats.Mode.NO));\n\t\tsetConstraint(Constraint.Mode.NO);\n\t\tsetResiduMin(-1);\n\t\tsetTimeLimit(-1);\n\t\tsetReference(null);\n\t\tsetOuts(new ArrayList<Output>());\n\t}", "public OrderInfoViewuiController() {\n\t\tuserbl = new UserController();\n\t}", "public SessionController() {\n }", "@Override\n\tprotected void setController() {\n\t\t\n\t}", "public MainFrameController() {\n }", "public LicenciaController() {\n }", "public NearestParksController() {\n this.bn = new BicycleNetwork();\n this.pf = new LocationFacade();\n // this.bn.loadData();\n }", "public MotorController() {\n\t\tresetTachometers();\n\t}", "public AwTracingController() {\n mNativeAwTracingController = nativeInit();\n }", "public Controller(IView view) {\n\t\tengine = new Engine(this);\n\t\tclock = new Clock();\n\t\tsoundEmettor = new SoundEmettor();\n\t\tthis.view = view;\n\t}", "public HomeController() {\n }", "public HomeController() {\n }" ]
[ "0.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.6912564", "0.688884", "0.6881247", "0.68776786", "0.68723065", "0.6868163", "0.68672407", "0.6851157", "0.6846883", "0.6840198", "0.68382674", "0.68338853", "0.6795918", "0.67823315", "0.6766882", "0.67650586", "0.6750353", "0.6749068", "0.6745654", "0.6743223", "0.67401046", "0.6727867", "0.6723379", "0.6695514", "0.6689967", "0.66892517", "0.66791916", "0.6677345", "0.66644365", "0.6664202", "0.66616154", "0.66532296", "0.66481894", "0.6644939", "0.6639398", "0.6633576", "0.66312426", "0.662608", "0.66258574", "0.66105217", "0.6606984", "0.66024727", "0.6597095", "0.6580141", "0.65786153", "0.65752715", "0.6574144", "0.6551536", "0.655142", "0.6547574", "0.6545647", "0.6541474", "0.6529243", "0.65284246", "0.6525593", "0.6523344", "0.6519832", "0.65134746", "0.65079254", "0.6497635", "0.64952356", "0.6493943", "0.6492926", "0.6483847", "0.6483173", "0.648183", "0.6479119", "0.64789915", "0.6476928", "0.64734083", "0.6465272", "0.64616114", "0.6444024", "0.64379543", "0.6431962", "0.64292705", "0.6425357", "0.6417148", "0.6416786", "0.64161026", "0.64161026" ]
0.0
-1
TODO Autogenerated method stub
@Override public void mouseEntered(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void mouseExited(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void mousePressed(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void mouseReleased(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Checks if file exists.
public static boolean exists(String path) { File propFile = new File(path); return propFile.exists(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean fileExists(String path) throws IOException;", "private static boolean fileExists(String filename) {\n return new File(filename).exists();\n }", "public boolean exists() {\n return _file.exists();\n }", "private boolean fileExists(Path p) {\n\t\treturn Files.exists(p);\n\t}", "@Override\n public boolean exists(File file) {\n\treturn false;\n }", "public boolean exists(File file) {\n return file.exists();\n }", "boolean exists(String path) throws IOException;", "public boolean exists() {\n return Files.exists(path);\n }", "@Override\n\tpublic boolean exists() {\n\t\treturn Files.exists(this.path);\n\t}", "public final boolean fileExists() {\n\t if ( m_fileStatus == FileStatus.FileExists || m_fileStatus == FileStatus.DirectoryExists)\n\t return true;\n\t return false;\n\t}", "private boolean existsFile(File testFile) {\n\t\tif (testFile.exists()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean exists() {\n\t\t\n\t\tFile temp = new File(this.path);\n\t\treturn temp.exists();\n\t}", "public static boolean fileExists()\r\n\t{\r\n\t\tFile saveFile = new File(\"highscores.txt\");\r\n\t\treturn saveFile.exists();\r\n\t}", "private boolean checkFileExists(String fPath) {\n\t\tFile file = new File(fPath);\n\t\treturn file.exists();\n\t}", "public boolean exists() {\r\n\t\t// Try file existence: can we find the file in the file system?\r\n\t\ttry {\r\n\t\t\treturn getFile().exists();\r\n\t\t}\r\n\t\tcatch (IOException ex) {\r\n\t\t\t// Fall back to stream existence: can we open the stream?\r\n\t\t\ttry {\r\n\t\t\t\tInputStream is = getInputStream();\r\n\t\t\t\tis.close();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tcatch (Throwable isEx) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static boolean fileExists(String filename) {\n return new File(filename).exists();\n }", "public static boolean existsFile(String file) {\n return getFile(file).exists();\n }", "abstract public boolean exists( String path )\r\n throws Exception;", "public boolean exists(String filename) {\n return getFile(filename) != null;\n }", "public boolean exists(String path);", "@Override\n\tpublic synchronized boolean exists(String key) {\n\t\treturn getFile(key).exists();\n\t}", "public static void insurePathToFileExists(String filename) {\r\n insurePathToFileExists(new File(filename));\r\n }", "private boolean checkFileExists(String file) {\n boolean exist = false;\n File tmpFile = new File(\"./levels/\" + file);\n if (tmpFile.exists()) {\n // file exists\n exist = true;\n }\n return exist;\n }", "private boolean doesFileExist(String qualifiedFileName) throws FileNotFoundException {\n\t\t\n\t\t// First get a path object to where the file is.\n\t\t\n\t\tPath inWhichFolder = Paths.get(qualifiedFileName);\n\t\t\n\t\tboolean isFilePresent = (Files.exists(inWhichFolder) && Files.isReadable(inWhichFolder) && !Files.isDirectory(inWhichFolder));\n\t\t\n\t\tif (!isFilePresent) {\n\t\t\tthrow new FileNotFoundException(String.format(\"The file you specified '%s' does not exist or cannot be found!\", qualifiedFileName));\n\t\t\t\n\t\t}\n\t\t\n\t\t// If we're here then we should have a file that can be opened and read.\n\t\t\n\t\treturn isFilePresent;\n\t\t\n\t}", "public synchronized boolean fileExist(String fullPath)\n {\n File file = new File(fullPath);\n if (file != null && file.exists() && file.isFile())\n return true;\n else\n return false;\n }", "public boolean fileExists(String name){\r\n try{\r\n new BufferedReader(new FileReader(\"../profiles/\" + name + \".profile\"));\r\n return true;\r\n }\r\n catch(FileNotFoundException e){\r\n return false;\r\n }\r\n }", "public boolean fExists(){\n \n try(ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file))){\n \n }\n catch (FileNotFoundException e){\n System.out.println(\"File not found\");\n return false;\n }\n catch (IOException e){\n System.out.println(\"Another exception\");\n return false;\n }\n\n return true;\n }", "public boolean hasFile(final String file);", "public boolean doesFileExists(String pathToFile) {\n\n try {\n File f = new File( pathToFile );\n if( f.exists() && f.isFile() ) {\n return true;\n }\n }\n catch (Exception fe) {\n //System.err.println(\"You got problem: \" + e.getStackTrace());\n logger.debug( fe.getMessage() );\n }\n return false;\n }", "public boolean pathExists (String path) {\n\n File file = new File(path);\n\n if (!file.exists()) {\n return false;\n }\n return true;\n }", "public boolean exists() {\n try {\n return open() != null;\n } catch (IOException e) {\n return false;\n }\n }", "public static boolean isExists(File file) {\n\t\tfile = comprobarExtension(file);\n\t\treturn file.exists();\n\t}", "public static boolean pathExists(String path){\n\t\treturn( (new File(path)).exists() );\n\t}", "public boolean exists(Path path) {\n try {\n return Files.exists(path);\n } catch (SecurityException e) {\n return false;\n }\n }", "private boolean exists(String pathName)\n {\n if(new File(pathName).exists())\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "private boolean isFileExist() {\n File check_file = getFilesDir();\n File[] file_check_array = check_file.listFiles();\n for (File current : file_check_array) {\n boolean user_file = isValidName(current.getName());\n if (user_file) {\n return true;\n }\n }\n return false;\n }", "public boolean existFile(String fileName) {\r\n\t\treturn new File(fileName).exists();\r\n\t}", "public boolean fileExists(Context context, String filename)\r\n{\r\n File file = context.getFileStreamPath(filename);\r\n if(file == null || !file.exists())\r\n {\r\n return false;\r\n }\r\nreturn true;\r\n}", "public boolean fileExists(String fileName){\n\t\t\tboolean exists = false;\n\t\t\ttry{\n\t \t FileInputStream fin = openFileInput(fileName);\n\t\t\t\tif(fin == null){\n\t\t\t\t\texists = false;\n\t\t\t\t}else{\n\t\t\t\t\texists = true;\n\t\t\t\t\tfin.close();\n\t\t\t\t}\n\t\t\t}catch (Exception je) {\n\t\t //Log.i(\"ZZ\", \"AppDelegate:fileExists ERROR: \" + je.getMessage()); \n\t\t exists = false;\n\t\t\t}\n\t\t\treturn exists;\n\t\t}", "public boolean fileExist(String filename) throws YAPI_Exception\n {\n byte[] json = new byte[0];\n ArrayList<String> filelist = new ArrayList<>();\n if ((filename).length() == 0) {\n return false;\n }\n json = sendCommand(String.format(Locale.US, \"dir&f=%s\",filename));\n filelist = _json_get_array(json);\n if (filelist.size() > 0) {\n return true;\n }\n return false;\n }", "public static boolean isFileExists(String filePath)\n\t{\n\t\tFile file = new File(filePath);\n\t\treturn file.exists();\n\t}", "public static void checkExist(File file) {\r\n if (!file.exists()) // check if the file is not exit than exit the program\r\n {\r\n System.out.println(file.getPath() + \" is not found \");\r\n System.exit(0); // exit the program\r\n }\r\n }", "public boolean exists(String name) throws IOException;", "public final boolean exists()\n {\n if ( m_fileStatus == FileStatus.FileExists ||\n m_fileStatus == FileStatus.DirectoryExists)\n return true;\n return false;\n }", "@Override\n public boolean doCheck() {\n logger.debug(\" check if destination file exists: \" + strDestFile);\n if (strDestFile != null) {\n if (new File(strDestFile).exists()) {\n return true;\n }\n }\n return false;\n }", "@Override\n\tpublic boolean checkExistFile(String aFilePath) {\n\t\treturn eDao.checkExistFile(aFilePath);\n\t}", "public static boolean fileExist(String filename) {\n\t\tif (!filename.endsWith(\".xml\")) {\n\t\t\tfilename += \".xml\";\n\t\t}\n \n File file = new File(filename);\n if (file.exists() || file.isDirectory()) {\n return true;\n }\n return false;\n }", "public void checkFile() {\n\t\tFile file = new File(\"src/Project11Problem1Alternative/names.txt\");\n\t\tSystem.out.println(file.exists() ? \"Exists!\" : \"Doesn't exist!\");\n\t\tSystem.out.println(file.canRead() ? \"Can read!\" : \"Can't read!\");\n\t\tSystem.out.println(file.canWrite() ? \"Can write!\" : \"Can't write!\");\n\t\tSystem.out.println(\"Name: \" + file.getName());\n\t\tSystem.out.println(\"Path: \" + file.getPath());\n\t\tSystem.out.println(\"Size: \" + file.length() + \" bytes\");\n\t}", "boolean hasFilePath();", "private boolean touchFileExists() {\n File f = new File(touchFile);\n return f.exists();\n }", "private boolean sourceExists(File fileToCheck) {\n\t\tif (fileToCheck.exists()) {\n\t\t\tSystem.out.println(\"Source file \"+fileToCheck.getName()+ \" exists.\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\tSystem.out.println(\"Source file \"+fileToCheck.getName()+ \" DOESN'T exist.\");\n\t\t\treturn false;\n\t\t}\n\t}", "public Boolean isExist() {\n\t\tif(pfDir.exists())\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "boolean hasFileLocation();", "boolean doesFileExist(String date)\n throws FlooringMasteryPersistenceException;", "public static boolean isFileExists(SourceFile sourceFile) throws IOException {\n return isFileExists(sourceFile.getPath(), sourceFile.getSourceType());\n }", "public abstract boolean doesExist();", "boolean hasFileLoc();", "public static boolean file_list_exists(String filename) {\n boolean exists = true;\n\n try {\n\n FileInputStream fstream = new FileInputStream(\"textfile.txt\");\n DataInputStream in = new DataInputStream(fstream);\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String strLine;\n while ((strLine = br.readLine()) != null) {\n File f = new File(strLine);\n if (f.exists() == false) {\n exists = false;\n }\n }\n in.close();\n } catch (Exception e) {//Catch exception if any\n e.printStackTrace();\n }\n return exists;\n }", "public boolean isFileExists(String fileName) {\n return profilesMap.containsKey(fileName);\n }", "boolean getWorkfileExists();", "boolean directoryExists(String path) throws IOException;", "@Override\n\tpublic boolean pathExists(String path) {\n\t\treturn false;\n\t}", "public boolean exist(String fileName) throws DataAccessException;", "public boolean exists(String key) {\n\t\treturn fileData.containsKey(key);\n\t}", "public boolean isExist(String fileName){\n\t\tFile f = new File(fileName);\n\t\treturn f.exists();\n\t}", "public static boolean isFileExist(String filePath) {\n if (filePath == null || filePath.isEmpty()) {\n return false;\n }\n\n File file = new File(filePath);\n return (file.exists() && file.isFile());\n }", "private boolean targetExists(File fileToCheck) {\n\t\tif (!fileToCheck.exists()) {\n\t\t\tSystem.out.println(\"Target file \"+fileToCheck.getName()+ \" DOESN'T exist.\");\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "protected boolean arff_exists() {\n\t\tFile tmpDir = new File(arff_path + \"\\\\\" + taskdata_name + \".arff\");\n\t\treturn tmpDir.exists();\n\t}", "public static boolean alreadyExistCheck(String filePath) {\n File f = new File(filePath);\n return f.exists() && !f.isDirectory();\n }", "private static boolean doesPathExist(final Path path, final FileContext context) throws AccessControlException, UnsupportedFileSystemException, IOException {\n\t\ttry {\n\t\t\tFileStatus status = context.getFileStatus(path);\n\t\t\treturn status.isFile() || status.isDirectory();\n\t\t} catch (FileNotFoundException e) {\n\t\t\treturn false; \n\t\t}\t\t\n\t}", "protected final boolean settingsFileExist() {\n File configFile = new File(this.settingsFileName);\n return configFile.exists() && configFile.canWrite();\n }", "@SuppressWarnings(\"ResultOfMethodCallIgnored\")\r\n private static void fileExists(String filepath) throws IOException {\r\n File file = new File(filepath + filePath);\r\n if (!file.exists()) {\r\n file.createNewFile();\r\n }\r\n }", "public static boolean exists(String path, String name) {\n return new File(path + name).exists();\n }", "public static boolean exists(String url) {\n\n java.io.File file = new java.io.File(url);\n return file.exists() && !file.isDirectory();\n }", "private boolean fileNameExists(String fileName) {\n return inputOutputStream.hexists(Constants.DIR_METADATA_BYTES, fileName.getBytes());\n }", "public static boolean exists(final String fileName) {\n return new File(fileName).exists();\n }", "private boolean checkValidity(String path) {\n File checkFile = new File(path);\n return checkFile.exists();\n }", "boolean hasFileName();", "boolean hasFileName();", "boolean hasFileInfo();", "boolean hasFileInfo();", "public static boolean isExisted(String fileName) {\n\t\tFile file = new File(fileName);\n\t\treturn file.exists();\n\t}", "public static void checkFile(Path path) {\n\n if (!path.isAbsolute()) {\n System.out.format(\"%s must be an absolute path to a file.\", path);\n System.exit(0);\n } else if (!Files.exists(path)) {\n System.out.format(\"%s does not exist.\", path);\n System.exit(0);\n }\n\n // Verify that the path references a file\n try {\n BasicFileAttributes attr = Files.readAttributes(path, BasicFileAttributes.class);\n if (!attr.isRegularFile()) {\n System.out.format(\"%s is not a file.\", path);\n System.exit(0);\n }\n } catch (IOException e) {\n System.err.println(\"I/O error: \" + e);\n e.printStackTrace();\n System.exit(1);\n }\n }", "private static void searchFile(File fileDir) throws Exception {\n String fileName = getFileNameInput();\n File targetFile = new File(fileDir.toString() + \"\\\\\" + fileName);\n boolean fileExists = targetFile.exists();\n if (fileExists) {\n System.out.println(\"File is found on current directory.\");\n } else {\n throw new FileNotFoundException(\"No such file on current directory.\");\n }\n }", "public static void insurePathToFileExists(File f) {\r\n File p = f.getParentFile();\r\n //System.out.println(\"uu.iPE: parent of \"+filename+\" is \"+parent);\r\n\r\n if (!p.exists()) {\r\n // parent doesn't exist, create it:\r\n if (!p.mkdirs()) {\r\n throw new IllegalStateException(\"Unable to make directory \" + p.getPath());\r\n } // endif -- second mkdir unsuc\r\n } // endif -- parent exists\r\n }", "private void checkIfLocationExists() {\n try {\n File file = new File(saveLocation);\n if(!file.exists()) file.mkdirs();\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n }", "public static boolean exists(final String fileName) {\n\n return FileSystem.getInstance(fileName).exists(fileName);\n }", "public boolean fileExists (String id) throws ParseException {\n \n Query query = new QueryParser(Constants.INDEX_KEY_ID, analyzer).parse(id);\n \n return searchResponse(searchExec(query), query).length > 0;\n }", "private static boolean checkURL(String file) {\n\t\tFile myFile = new File(file);\n\t\treturn myFile.exists() && !myFile.isDirectory();\n\t}", "boolean isFile() throws IOException;", "@Test\n\tpublic void bookExists() throws Exception {\n\t\tString directory = System.getProperty(\"user.dir\");\n\t\tFile file = new File(directory + \"\\\\src\\\\main\\\\java\\\\com\\\\mylib\\\\library\\\\Book.java\");\n\t\tassertTrue(file.exists());\n\t}", "private boolean IsCfgExisted()\n {\n File f = new File(strCfgPath);\n if(f.exists())\n return true;\n return false;\n }", "public static void fileExists(String fileName)throws FileNotFoundException{\r\n File file=new File(fileName);\r\n if(!file.exists()){\r\n throw new FileNotFoundException(file.getName());\r\n }\r\n }", "private boolean isEmptyFile(String filename) {\n try (InputStream in = IO.openFile(filename)) {\n int b = in.read();\n return (b == -1);\n } catch (IOException ex) {\n throw IOX.exception(ex);\n }\n }", "public boolean fileExistance(String fileName) {\n File file = getActivity().getFileStreamPath(fileName);\n return file.exists();\n }", "public static boolean isFileExists(Path path, SourceType sourceType) throws IOException {\n FileSystem fs = getFileSystemBySourceType(sourceType);\n FileStatus[] fileStatusArr = fs.globStatus(path);\n return !(fileStatusArr == null || fileStatusArr.length == 0);\n }", "@Override\n\tpublic boolean readData(File file) {\n return file.exists();\n\t}", "public boolean cacheExist(){\n\t\tFile f = new File(\"./cache.txt\");\n\t\tif(f.exists() && !f.isDirectory()){\n\t\t\t//if the cache is exist\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void checkIfXslCreated() {\n final File extStore = Environment.getExternalStorageDirectory();\n File myFile = new File(extStore.getAbsolutePath() + \"/backup/\" + fileName);\n\n if (myFile.exists()) {\n Log.d(\"YES\", \"YES\");\n } else {\n Log.d(\"NO\", \"NO\");\n }\n }", "static boolean m1(Path path) {\n\t\tif (Files.exists(path))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}" ]
[ "0.7967822", "0.7696723", "0.7671952", "0.76454383", "0.76323026", "0.7592412", "0.75729567", "0.752124", "0.7514734", "0.74417114", "0.7410872", "0.73682564", "0.73198026", "0.73100114", "0.72724533", "0.7260427", "0.7230493", "0.71964264", "0.71884084", "0.7173508", "0.7167561", "0.7161096", "0.7145117", "0.7120221", "0.7058139", "0.7005812", "0.6998251", "0.6933423", "0.6875619", "0.6871775", "0.6838042", "0.68291974", "0.67971563", "0.67907447", "0.67895466", "0.67740786", "0.6771817", "0.67622715", "0.6741364", "0.6733817", "0.67102253", "0.66694856", "0.6665647", "0.6644175", "0.6636882", "0.66230386", "0.66192275", "0.6609751", "0.66049814", "0.6602206", "0.6591565", "0.6579486", "0.6570026", "0.6560617", "0.64966446", "0.6482711", "0.6469547", "0.6448295", "0.64401287", "0.64200795", "0.64152515", "0.64012325", "0.63858086", "0.6347772", "0.63472056", "0.6340857", "0.6335982", "0.63314486", "0.63279855", "0.6299808", "0.6279122", "0.6267042", "0.62530154", "0.623845", "0.6233715", "0.62201333", "0.6196951", "0.6188335", "0.6188335", "0.61544865", "0.61544865", "0.61258554", "0.6107725", "0.6104074", "0.6077166", "0.60757774", "0.6075315", "0.6068852", "0.6066879", "0.6054669", "0.6043131", "0.6040663", "0.6038901", "0.60254663", "0.60024095", "0.5977821", "0.5943884", "0.59416485", "0.59373134", "0.59262127" ]
0.61766404
79
Opens file if exists, throws exception otherwise.
public static File fileFromPathOrThrow(String path) { File propFile = new File(path); if (!propFile.exists()) { throw new IllegalArgumentException("Message file '" + path + "' does not exist."); } return propFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void\topen(File path) throws IOException;", "public void openFile()\r\n {\r\n try // open file\r\n {\r\n input = new RandomAccessFile( \"clients.dat\", \"r\" );\r\n } // end try\r\n catch ( IOException ioException )\r\n {\r\n System.err.println( \"File does not exist.\" );\r\n } // end catch\r\n }", "@Test\n public void testFileOpen() {\n \n FileHandler fileToTest;\n \n fileToTest = new FileHandler(\"Kalle.xml\");\n \n try {\n fileToTest.openFile();\n fail(\"Should have raised a fileNotFoundException\");\n }\n catch (FileNotFoundException fnf) {\n }\n }", "public boolean open(String filename)\n {\n \n boolean retVal = open_0(nativeObj, filename);\n \n return retVal;\n }", "File openFile();", "public void open() throws IOException;", "@Override\n public void ensureOpen() throws IOException {\n }", "void open() throws IOException;", "private static Optional<InputStream> openFile(Path name) {\n try {\n return Optional.of(Files.newInputStream(name, StandardOpenOption.READ));\n } catch (IOException e) {\n System.err.printf(\"Unable to open file %s for reading: %s\\n\", name, e.toString());\n }\n\n return Optional.empty();\n }", "void open(String fileName);", "private File tryLoadFile() throws FileNotFoundException {\n boolean fileLoadedSuccessfully = false;\n \n if (fileLoadedSuccessfully) {\n return new File(FILE_PATH);\n }\n else {\n throw new FileNotFoundException(\"Could not load file with path \" + FILE_PATH);\n }\n }", "public void fileOpen () {\n\t\ttry {\n\t\t\tinput = new Scanner(new File(file));\n\t\t\tSystem.out.println(\"file created\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"file could not be created\");\n\t\t}\n\t}", "private static File safeOpenFile() throws IOException {\n\t\tPath path = Paths.get(PropertyUtil.getConfigPath() + \"/config\");\n\n\t\tif (!Files.exists(path)) {\n\t\t\tFiles.createDirectories(path.getParent());\n\t\t\tFiles.createFile(path);\n\t\t\tlogger.debug(\"Creating {}\", path.toAbsolutePath());\n\t\t}\n\n\t\treturn path.toFile();\n\t}", "LogFile open(String fileMode) throws LogConfigurationException, FileNotFoundException\n {\n this.fileMode = fileMode;\n\n // remember whether the file existed or not\n newFile = !file.exists();\n \n // if it already existed, but length is zero, then it is still a new file\n if (!newFile) newFile = file.length() == 0;\n \n channel = new RandomAccessFile(file, fileMode).getChannel();\n assert channel != null : \"RandomAccessFile() returns null\";\n \n // FEATURE 300922; lock file to prevent simultanious access\n try {\n lock = channel.tryLock();\n // TODO log lock event\n // if (lock != null) System.err.println(file.getName() + \" locked\");\n } catch (IOException e) {\n throw new LogConfigurationException(e);\n }\n if (lock == null) {\n // TODO: log lock failed\n // System.err.println(file.getName() + \" unable to lock\");\n throw new LogConfigurationException(\"Unable to obtain lock on \" + file.getAbsolutePath());\n }\n if (lock.isShared()) {\n // TODO: log lock is shared\n // System.err.println(file.getName() + \" lock is shared\");\n throw new LogConfigurationException(\"Shared lock on \" + file.getAbsolutePath());\n }\n // TODO: log lock acquired\n // System.err.println(file.getName() + \" open\");\n \n return this;\n }", "private void tryToOpen() {\n if (current != null) {\n if (!this.tryToClose()) return;\n }\n\n //open an existing file...\n JFileChooser chooser = new JFileChooser(new File(\".\"));\n chooser.setDialogTitle(\"Select model file\");\n chooser.setFileFilter(new FileNameExtensionFilter(\n \"Only xml files\",\"xml\"\n ));\n\n int result = chooser.showOpenDialog(this);\n if (result == JFileChooser.APPROVE_OPTION) {\n File file = chooser.getSelectedFile();\n try {\n current = new Document(file);\n this.update();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"ERROR: the file '\" + file.getName() + \"' could not be opened!\", \"An Error Occured\", JOptionPane.ERROR_MESSAGE);\n// e.printStackTrace();\n }\n }\n }", "public void open (File file)\n\t{\n\t\topen (file, false);\n\t}", "public String open() throws Exception {\n\t\tFile d = new File(dir);\n\n\t\tif (d.mkdirs()) {\n\t\t\t// all OK, return.\n\t\t\treturn path;\n\t\t}\n\n\t\tif (d.exists()) {\n\t\t\t// already exists, return.\n\t\t\treturn path;\n\t\t}\n\n\t\t// try and fix the path\n\t\tlogger.warn(\"Cannot create directory: \" + d.getPath());\n\t\tfixPath(d);\n\n\t\tif (d.mkdirs()) {\n\t\t\t// all OK, return.\n\t\t\treturn path;\n\t\t}\n\n\t\tif (d.exists()) {\n\t\t\t// already exists, return.\n\t\t\treturn path;\n\t\t}\n\n\t\tthrow new ConverterException(\"Unable to fix path: \" + d.getPath());\n\t}", "public InputStream openInputStream(String path) throws SystemException;", "RandomAccessFile openInputFile(String fileName) {\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"fileName = \" + fileName);\n RandomAccessFile file = null;\n try {\n file = new RandomAccessFile(fileName, \"r\");\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"success: file opened for read\");\n } catch (Exception e) {\n ec.processError(e, thisClass, \"openInputFile\", \"\");\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"error: file opened for read\");\n } // try-catch\n return file;\n }", "void openFilePath(String newFilePath) throws IllegalValueException;", "protected final void ensureOpen() {\n/* 664 */ if (!checkOpen(true)) {\n/* 665 */ checkException();\n/* */ }\n/* */ }", "public boolean open() {\n try {\n fileStream = new FileReader( this.fileName );\n scanner = new Scanner( fileStream );\n this.found = true;\n } catch ( FileNotFoundException error ) {\n this.found = false;\n System.out.println(error.toString());\n }\n\n return this.found;\n }", "public static PicoFile open(String filename) throws PicoException, IOException {\n if (filename == null) {\n throw new NullPointerException(\"The filename is null.\");\n }\n return new PicoFile(new RandomAccessFile(filename, \"rw\"));\n }", "public static void openFile(File file) throws IOException {\n\n\t\tif (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Desktop.Action.OPEN))\n\t\t\tDesktop.getDesktop().open(file);\n\t}", "private static Scanner openFile(){\n\n System.out.println(\"Enter the input file name: \");\n Scanner kb = new Scanner(System.in);\n String fileName = kb.nextLine();\n try{\n return new Scanner(new File(fileName));\n }\n catch (Exception e){\n System.out.printf(\"Open Failed: \\n%s\\n\", e.toString());\n System.out.println(\"Please re-enter the filename.\");\n return openFile();\n }\n }", "public static void openFileForInput(String ID, String file, Function function,\n DawnParser parser) throws DawnRuntimeException\n {\n if (!isFileAvailable(ID, parser))\n {\n try\n {\n parser.setProperty(\"DAWN.IO#FILE.\" + ID, new BufferedReader(new FileReader(\n DawnUtilities.constructPath(file))));\n } catch (IOException ioe) {\n throw new DawnRuntimeException(function, parser, \"file \" + file + \" not found\");\n }\n } else\n throw new DawnRuntimeException(function, parser, \"file ID \" + ID + \" already exists\");\n }", "InputStream openStream() throws IOException;", "public int open(String filename)\n {\n return open(filename, i_hdl); \n }", "private File getFile(String filename) throws Exception {\n\t\tFile file = new File(filename);\n\t\tif (file.exists()) {\n\t\t\treturn file;\n\t\t} else if (!file.isAbsolute()) {\n\t\t\tfinal Resource r = context.getThisInstance().eResource();\n\t\t\tfinal Path p = new Path(r.getURI().segment(1) + File.separator + filename);\n\t\t\tfinal IFile f = ResourcesPlugin.getWorkspace().getRoot().getFile(p);\n\t\t\tif (f.exists()) {\n\t\t\t\treturn f.getRawLocation().makeAbsolute().toFile();\n\t\t\t}\n\t\t}\n\n\t\tthrow new Exception(\"Filename \" + filename + \" not found\");\n\n\t}", "@Override\n public StorageInputStream open(File file) throws FileNotFoundException {\n\treturn null;\n }", "void open(String fileName) throws IOException, ParserConfigurationException, SAXException;", "public File openInputFile() throws Exception{\n\t\t// Open the input file\n\t\tinputFile = new File(PLEIADEAN_FILE);\n\t\t\n\t\t// return to the caller\n\t\treturn(inputFile);\n\t}", "public static PicoFile open(File file) throws PicoException, IOException {\n if (file == null) {\n throw new NullPointerException(\"The file is null.\");\n }\n return new PicoFile(new RandomAccessFile(file, \"rw\"));\n }", "public String open(String dirName) throws RemoteException;", "@SuppressWarnings(\"unused\")\r\n\tprivate static File createFile(String path) {\r\n\t\t\r\n\t\t// open the file\r\n\t\tFile currentFile = new File(path);\r\n\t\t\r\n\t\t\r\n\t\t// check if it is a valid file\r\n\t\tif (currentFile == null) {\r\n\t\t\tSystem.out.println(\"Could not create the file\");\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\r\n\t\t// hopefully things went perfect\r\n\t\treturn currentFile;\r\n\r\n\t}", "public boolean fExists(){\n \n try(ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file))){\n \n }\n catch (FileNotFoundException e){\n System.out.println(\"File not found\");\n return false;\n }\n catch (IOException e){\n System.out.println(\"Another exception\");\n return false;\n }\n\n return true;\n }", "@Override\n\tpublic void open() throws IOException {\n\t\t\n\t}", "public void openFile(String file)\n\t{\n\t\tthis.file=file;\n\t\tSystem.out.println(\"file has been opened\");\n\t}", "public void checkOpen() throws BadDescriptorException {\n if (!isOpen()) {\n throw new BadDescriptorException();\n }\n }", "public synchronized void open()\n throws LineUnavailableException, IllegalArgumentException, IllegalStateException, SecurityException\n {\n if (!open) {\n line.open(format);\n open = true;\n reset = true;\n }\n }", "private static native boolean open_0(long nativeObj, String filename);", "private void ensureOpen() throws IOException {\n if (closed) {\n throw new IOException(\"Stream closed\");\n }\n }", "@Override public void open() throws IOException {\n }", "@Override\n\tpublic void open() throws IOException {\n\t}", "private boolean open() {\r\n\t\tfor ( int i = 0; i < _headerObject._filenames.length; ++i) {\r\n\t\t\tFileObject fileObject = ( FileObject)_headerObject._fileObjectMap.get( _headerObject._filenames[ i]);\r\n\t\t\tif ( null == fileObject)\r\n\t\t\t\treturn false;\r\n\r\n\t\t\tif ( !fileObject.open())\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "protected void checkOpen() throws IOException {\n if (this.stopRequested.get() || this.abortRequested) {\n throw new IOException(\"Server not running\");\n }\n if (!fsOk) {\n throw new IOException(\"File system not available\");\n }\n }", "@Test\n\tpublic void testIsConsistentFileNoOpen() throws Exception {\n\t\tIRodinFile rodinFile = createRodinFile(\"P/x.test\");\n\t\trodinFile.close();\n\t\tassertTrue(\"closed file should be consistent\", \n\t\t\t\trodinFile.isConsistent());\n\t\tassertFalse(\"file should not be open\", rodinFile.isOpen());\n\t}", "public void openFile(String file) {\n try {\n FileReader fr = new FileReader(file);\n in = new BufferedReader(fr);\n } catch (IOException e) {\n System.out.println(\"Filen kan ikke åbnes\");\n }\n }", "private File validateFile(String filename)\n {\n if (filename == null)\n {\n throw new IllegalArgumentException(\"Filename is null\");\n }\n File f = new File(filename);\n //if (!f.exists()) sometimes this throws false even if the program does exist.\n //{\n // throw new IllegalArgumentException(\"Path \"+filename+\" does not refer to a file\");\n //}\n return f;\n }", "public void openFile(Path file) {\n openFiles(new ArrayList<>(List.of(file)));\n }", "@Test\n void Load_NonExistentFileName() {\n XmlImporter importer = new XmlImporter();\n\n assertThrows(FileNotFoundException.class, () -> importer.Load(\"c:\\\\DoesNotExist\\\\DoesNotExist.xml\"));\n }", "private void openFile()\r\n {\r\n int returnState = openFileChooser.showOpenDialog(frame);\r\n if (returnState == JFileChooser.APPROVE_OPTION) \r\n {\r\n File file = openFileChooser.getSelectedFile();\r\n openUriInBackground(file.toURI());\r\n } \r\n }", "public void myMethod() throws FileNotFoundException {\n\t\ttry {\n\t\tsoccer = new FileInputStream(\"soccer.txt\");\n\t\t} catch (FileNotFoundException f) {//checked exception handled here\n//\t\t\tf.printStackTrace();\n\t\tSystem.out.println(\"file not found\");//throw fnfe; //this needs to be handled or declared\n\t\t}\n\t\t}", "public static File checkDescriptorFileExist(File descriptor) throws IllegalArgumentException {\n if (!descriptor.exists()) {\n throw new IllegalArgumentException(descriptor.getAbsolutePath() + \" does not exist\");\n }\n if (!descriptor.isFile()) {\n throw new IllegalArgumentException(descriptor.getAbsolutePath() + \" is not a file\");\n }\n if (!descriptor.canRead()) {\n throw new IllegalArgumentException(descriptor.getAbsolutePath() + \" is not readable\");\n }\n \n return descriptor;\n }", "private int handleOpen(int name) {\n\t\tString FileName = readVirtualMemoryString(name, MAXSTRLEN);\n\t\t//error if file name is not valid\n\t\tif(FileName == null)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\n\t\t//find a free file descriptor\n\t\tint fileIndex = -1;\n\t\tfor(int i = 2; i < 16; i++)\n\t\t{\n\t\t\tif(fileDescriptors[i] == null)\n\t\t\t{\n\t\t\t\tfileIndex = i;\n\t\t\t}\n\t\t}\n\n\t\t//error if no file descriptor is free\n\t\tif(fileIndex == -1)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\n\t\tOpenFile file = ThreadedKernel.fileSystem.open(FileName, false);\n\n\t\t//error if file cannot be created\n\t\tif(file == null)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfileDescriptors[fileIndex] = file;\n\t\t\treturn fileIndex;\n\t\t}\n\t}", "public static void openFile(File map) throws IOException {\n\t\ttry {\n\t\t\tinput = new ObjectInputStream(new FileInputStream(map));\n\t\t\t\n\t\t} catch(IOException e) {\n\t\t\tSystem.err.println(\"Error: Unable to open map file.\");\n\t\t\tthrow e;\n\t\t}\n\t}", "public void open() {\n // no-op;\n }", "public InputStream open(File file) {\n return new FileInputStream(file);\n }", "public FileInputStream openFileInput(final String path)\n throws java.io.FileNotFoundException {\n return GDFileSystem.openFileInput(path);\n }", "public void ensureOpen() throws IOException {\n parent.ensureOpen();\n\n if (exceptionMessage != null) {\n throw new IOException(exceptionMessage);\n }\n if (isClosed) {\n throw new IOException(\"Operation has already ended\");\n }\n }", "public static void findFile() throws IOException {\n File newFile = new File(\"test.txt\");\n FileInputStream stream = new FileInputStream(newFile);\n }", "@SuppressWarnings(\"ResultOfMethodCallIgnored\")\r\n private static void fileExists(String filepath) throws IOException {\r\n File file = new File(filepath + filePath);\r\n if (!file.exists()) {\r\n file.createNewFile();\r\n }\r\n }", "public void open() {\r\n if (mFailedOpen) {\r\n return;\r\n }\r\n\r\n File base = new File(mBaseFileName);\r\n if (mMaxLogSizeBytes > 0 && base.length() > (mMaxLogSizeBytes / mNumSegments - 1024)) {\r\n Log.d(LOG_TAG, \"Log file exceeds maximum size\");\r\n close();\r\n renameLogs();\r\n open();\r\n } else if (mCurrentFileStream == null) {\r\n try {\r\n mCurrentFileStream = new FileOutputStream(mBaseFileName, true);\r\n } catch (FileNotFoundException e) {\r\n Log.e(LOG_TAG, \"Could not open log file \" + e.getMessage());\r\n mFailedOpen = true;\r\n mCurrentFileStream = null;\r\n }\r\n }\r\n }", "private static File openFile(String file) {\r\n \tFile currFile;\r\n\r\n \tfor (String directory : dir) {\r\n \t\tcurrFile = new File(directory.concat(file));\r\n \t\tif (currFile.exists() && !currFile.isDirectory()) {\r\n \t\t\treturn currFile;\r\n \t\t}\r\n \t}\r\n \treturn null;\r\n }", "private void openFile(File file) {\n try {\n desktop.open(file);\n } catch (IOException e) {\n e.printStackTrace();\n// Logger.getLogger(\n// FileChooser.class.getName()).log(\n// Level.SEVERE, null, ex\n// );\n }\n }", "@Override\n\tpublic boolean isFileOpen(String fileName) \n\t{\n\t\treturn false;\n\t}", "public void openFile(@NotNull final String path) {\n openFile(fm -> fm.load(path));\n }", "@Test\n public void throwsIOExceptionWhenCannotHash() throws IOException {\n File nonExistent = new File(\"nonExistent.gb\");\n\n thrown.expect(IOException.class);\n // Can not use message due to FileNotFoundException containing localized text on some OS:es\n\n // Throws\n new GameFile(nonExistent);\n }", "@SuppressWarnings(\"ResultOfMethodCallIgnored\")\r\n public static void readFromFile() throws IOException {\r\n File file = new File(filePath);\r\n if (file.exists()) {\r\n readFromFile(file.getPath());\r\n } else {\r\n file.createNewFile();\r\n }\r\n }", "public void openFile() {\n try {\n x = new Formatter(\"DistanceTraveled.txt\");\n }\n catch (Exception e) {\n System.out.println(\"You have an error.\");\n }\n }", "public boolean openFile(String pathName) \r\n\t{\r\n\t\tboolean result;\r\n\t\t// This allows the opening of files located from this actual package.\r\n\t\tURL localPath = this.getClass().getResource(pathName);\r\n\t\tinputFile = new File(localPath.getFile());\r\n\r\n\t\t// Open input file. The input file is a field oriented and\r\n\t\t// space-separated.\r\n\t\t// The fields and expected formats are listed above in the header\r\n\r\n\t\t// Check to ensure that the inputFile exists\r\n\t\tif (!inputFile.exists()) \r\n\t\t{\r\n\t\t\tSystem.out.println(\"\\\"\" +localPath + \"\\\" should be in the same directory as: \"\r\n\t\t\t\t\t\t\t\t+ this.getClass().getPackage().getName());\r\n\t\t\t\r\n\t\t\tresult = false;\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\t// Create a buffered reader the file\r\n\t\t\t\tinFile = new BufferedReader(new InputStreamReader(\r\n\t\t\t\t\t\tnew FileInputStream((inputFile))));\r\n\r\n\t\t\t\tresult = true;\r\n\t\t\t} // try\r\n\t\t\tcatch (Exception Error) \r\n\t\t\t{\r\n\t\t\t\tresult = false;\r\n\t\t\t} // catch\r\n\t\t} // if\r\n\r\n\t\treturn (result);\r\n\t}", "CompletableFuture<Optional<FutureLineStorage>> open(String fileName);", "@Override\n public InputStream open() throws IOException {\n return getClass().getClassLoader().getResourceAsStream(name);\n }", "public boolean openFile(String name){\n boolean tmp=false;\n\n try{\n _file = new File(name);\n tmp=_file.exists();\n if (tmp) {\n rows =new Vector<String>();\n loadTSPTWFile();\n if(DEBUG){\n System.out.println(\"Load new file:\"+name);\n }\n loadTSPTWFile();\n }\n }catch( IOException ioe){\n tmp=false;\n }\n\n return tmp;\n }", "public static int open(String pathname, int flags)\n throws Exception {\n // get the full path name\n String fullPath = getFullPath(pathname);\n\n IndexNode indexNode = new IndexNode();\n short indexNodeNumber = findIndexNode(fullPath, indexNode);\n if (indexNodeNumber < 0)\n return -1;\n\n // ??? return (Exxx) if the file is not readable \n // and was opened O_RDONLY or O_RDWR\n\n // ??? return (Exxx) if the file is not writable \n // and was opened O_WRONLY or O_RDWR\n\n // set up the file descriptor\n FileDescriptor fileDescriptor = new FileDescriptor(\n openFileSystems[ROOT_FILE_SYSTEM], indexNode, flags);\n fileDescriptor.setIndexNodeNumber(indexNodeNumber);\n\n return open(fileDescriptor);\n }", "public static ExternalExp<Connection> file(@Current final Context context,\r\n final String path,\r\n String open,\r\n boolean blocking,\r\n String encoding) {\r\n Connection connection = new ConnectionImpl(new InputStreamFactory() {\r\n @Override\r\n public InputStream openInputStream() throws IOException {\r\n return openInput(context, path);\r\n }\r\n });\r\n \r\n return new ExternalExp(connection, \"connection\");\r\n }", "@NotNull InputStream openInputStream() throws IOException;", "@Test(timeout=100, expected=java.io.FileNotFoundException.class)\r\n\tpublic void testConstructorThrowsRuntimeException() throws Exception {\r\n\t\tString filename = \"A-Non-existent-File.hahaha\";\r\n\t\tCSVReader csv = new CSVReader(filename);\r\n\t\tfail( \"Should throw FileNotFoundException for non-existent file \"+filename );\r\n\t}", "public boolean openFile(SwingShabadEditor shabadEditor) throws IOException {\r\n \t\tint returnVal = fc.showOpenDialog(null);\r\n \t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\r\n \t\t\tFile file = fc.getSelectedFile();\r\n \r\n \t\t\tif (file.exists()) {\r\n \t\t\t\tshabadEditor.setText(FileUtils.readFileToString(file));\r\n \r\n \t\t\t\tcurFile = file;\r\n \t\t\t\treturn true;\r\n \t\t\t} else {\r\n \t\t\t\tDialogUtility.showFileDoesntExistDialog();\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\treturn false;\r\n \t}", "private static File openFile(String path, FileSystem fs) {\n fs.updatePath();\n String fullFilePath;\n if (path.startsWith(\"/\")) {\n // path is abs\n fullFilePath = path;\n } else {\n // path is rel\n fullFilePath = fs.getCurrentPath() + path;\n }\n\n File targetFile = (File) fs.checkPath(fullFilePath, \"file\");\n if (targetFile == null) {\n // check for parent if it's null too\n String[] parentPathArr = fs.getParent(fullFilePath);\n if (!parentPathArr[0].startsWith(\"/\")) {\n // convert parent path to absolute\n parentPathArr[0] = toAbsPathStr(parentPathArr[0], fs);\n }\n Directory parentDir =\n (Directory) fs.checkPath(parentPathArr[0], \"directory\");\n if (parentDir == null) {\n // invalid parent path => the given path is invalid\n ErrorHandler.getErrorMessage(fullFilePath + \" is invalid path\");\n } else {\n // create file under the parentDir if name is okay\n if (fs.isValidNameForFileSystem(parentPathArr[1])) {\n targetFile = fs.createFileWithParent(parentPathArr[1], parentDir);\n } else {\n ErrorHandler.getErrorMessage(\"invalid file name\");\n }\n }\n }\n return targetFile;\n }", "@Override\n public CommandResult execute() throws CommandException {\n if ((new File(filepath)).exists()) {\n try {\n model.openFilePath(filepath);\n return new CommandResult(MESSAGE_SUCCESS + filepath);\n } catch (IllegalValueException e) {\n throw new CommandException(MESSAGE_INVALID_XML_FILE);\n }\n } else {\n throw new CommandException(MESSAGE_FAILURE + MESSAGE_USAGE);\n }\n }", "@Test\n\tpublic void testBadRead(){\n\t\ttry{\n\t\t\tXMLReader reader = new XMLReader(\"nonExistent\");\n\t\t\treader.close();\n\t\t\tfail(\"XMLReader should not have been able to read nonexistent file\");\n\t\t} catch (FileNotFoundException e){\n\t\t}\n\t}", "public synchronized boolean isOpen() {\n return randomAccessFile != null;\n }", "public abstract FD open(UnixRuntime r, String path, int flags, int mode) throws ErrnoException;", "public void handleOpenFile (FileSpec fileSpec) {\n this.fileSpec = fileSpec;\n openFile (fileSpec.getFile());\n }", "private void openLogFileForInput(String filename) throws Exception {\n // TODO Auto-generated method stub\n if (objectInputStream != null) {\n objectInputStream.close();\n objectInputStream = null;\n fileInputStream = null;\n }\n\n if (new File(filename).exists()) {\n fileInputStream = new FileInputStream(filename);\n objectInputStream = new ObjectInputStream(fileInputStream);\n inputLogFilename = filename;\n } else {\n throw new Exception(\"File \" + filename + \" does not exist \");\n }\n }", "private void checkOpen() {\n if (!isOpen()) {\n throw new IllegalStateException(\"not open\");\n }\n }", "boolean isOpened() throws Exception;", "void open() throws CatalogException;", "public void handleOpenFile (File inFile) {\n openFile (inFile);\n }", "private void openFile(File file){\r\n\t\ttry {\r\n\t\t\tlocal.openFile(file);\r\n\t\t\topenFile = file;\r\n\t\t\tframe.setTitle(file.getName());\r\n\t\t\tedit = false;\r\n\t\t\tBibtexPrefs.addOpenedFile(file);\r\n\t\t\tpopulateRecentMenu();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\terrorDialog(e.toString());\r\n\t\t} catch (IllegalArgumentException e){\r\n\t\t\terrorDialog(\"The bibtex file \" +file.getPath()+ \" appears to be invalid.\\n\"\r\n\t\t\t\t\t+ \"Parsing error occured because you have the following in your file:\\n\"\r\n\t\t\t\t\t+e.getMessage());\r\n\t\t}\r\n\t}", "void openFISFOSChannels(File f) throws Throwable {\n\n try {\n\n fos = new FileOutputStream(f);\n outChannel = fos.getChannel();\n\n fis = new FileInputStream(f);\n inChannel = fis.getChannel();\n\n } catch (Throwable t){\n log.add(t.toString() +\n \" exception was thrown while creating FileOutputStream or FileInputStream\" +\n \" or associated channels for \" + f.getPath());\n throw t;\n }\n }", "public static File getFile(String resourceOrFile)\n throws FileNotFoundException {\n\n try {\n File file = new File(resourceOrFile);\n if (file.exists()) {\n return file;\n }\n } catch (Exception e) {// nope\n }\n\n return getFile(resourceOrFile, Thread.class, false);\n }", "public void open(String file) {\n try {\n Desktop.getDesktop().open(new File(file));\n } catch (IOException error) {\n System.err.println(error.getMessage());\n }\n }", "public static void insurePathToFileExists(String filename) {\r\n insurePathToFileExists(new File(filename));\r\n }", "boolean open() {\n if (handle != 0) {\n throw new InternalError(\"Native library \" + name + \" has been loaded\");\n }\n return load0(this, name);\n }", "private static File getFile(String pathFile) {\n\t\tif(!pathFile.isEmpty()){\n\t\t\treturn new File(pathFile);\n\t\t}\n\t\treturn null;\n\t}", "public static File checkAndGetFile( final String file ) {\n if( file == null ) {\n throw new IllegalArgumentException( \"The parameter is empty.\\n parameter = \" + file );\n }\n final File fileObject = new File( file );\n\n if( !fileObject.exists() ) {\n throw new IllegalArgumentException( \"The file didn't exist.\\n parameter = \" + file );\n }\n if( fileObject.isDirectory() ) {\n throw new IllegalArgumentException( \"The file is a folder and not a PDF file.\\n parameter = \" + file );\n }\n\n return fileObject;\n }", "@Override\n public InputStream openStream() throws IOException\n {\n return new FileInputStream(temp);\n }", "public static void openFile(File file) {\r\n try {\r\n System.out.println(file.toPath().toAbsolutePath());\r\n Runtime.getRuntime().exec(\"explorer /select,\" + file.toPath().toAbsolutePath());\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n }", "private FileInputStream loadFile(String file)\n\t{\n\t\tlogger.info(\"Fetching File : \"+System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\resources\\\\\"+file);\n\t\ttry \n\t\t{\n\t\t\treturn(new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\resources\\\\\"+file));\n\t\t} catch (FileNotFoundException e) {\t\t\t\t\n\t\t\tAssert.assertTrue(file+\" file is missing\", false);\n\t\t\treturn null;\n\t\t}\n\t}" ]
[ "0.6404769", "0.6403488", "0.6309768", "0.63040113", "0.6270654", "0.6265518", "0.62020254", "0.61451817", "0.6117045", "0.6089596", "0.6052028", "0.60265523", "0.59373987", "0.5843113", "0.5817975", "0.5777375", "0.5770012", "0.57345676", "0.57315964", "0.5693335", "0.566088", "0.56537867", "0.5650884", "0.56480813", "0.5646341", "0.5640696", "0.5639234", "0.56094414", "0.5573054", "0.5572619", "0.5572409", "0.5568845", "0.5567948", "0.5522352", "0.5518333", "0.54828674", "0.5463883", "0.54457504", "0.543732", "0.54319644", "0.5422786", "0.5414087", "0.5391949", "0.5390431", "0.5381147", "0.53601575", "0.5352583", "0.53462386", "0.5335835", "0.53300756", "0.53263366", "0.5324452", "0.53208125", "0.5306443", "0.53021216", "0.5301945", "0.5289586", "0.5285752", "0.52845305", "0.5274522", "0.52706033", "0.52682173", "0.5259111", "0.5259076", "0.5258118", "0.52569", "0.52535564", "0.52512324", "0.52503556", "0.52502865", "0.52501416", "0.5240936", "0.52401346", "0.52274555", "0.52271205", "0.5225869", "0.52184653", "0.5216491", "0.5212342", "0.5201376", "0.52011317", "0.52000356", "0.5180098", "0.51684904", "0.5166247", "0.5160327", "0.51569575", "0.51385975", "0.51249784", "0.5120924", "0.5114006", "0.51137376", "0.5112131", "0.5109343", "0.5107412", "0.50989395", "0.509479", "0.50826424", "0.507621", "0.5074815", "0.50702745" ]
0.0
-1
Opens file if exists, or creates it if not exist yet.
public static File fileFromPathOrCreate(String path) throws IOException { File propFile = new File(path); if (!propFile.exists()) { propFile.createNewFile(); } return propFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\r\n\tprivate static File createFile(String path) {\r\n\t\t\r\n\t\t// open the file\r\n\t\tFile currentFile = new File(path);\r\n\t\t\r\n\t\t\r\n\t\t// check if it is a valid file\r\n\t\tif (currentFile == null) {\r\n\t\t\tSystem.out.println(\"Could not create the file\");\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\r\n\t\t// hopefully things went perfect\r\n\t\treturn currentFile;\r\n\r\n\t}", "public void fileOpen () {\n\t\ttry {\n\t\t\tinput = new Scanner(new File(file));\n\t\t\tSystem.out.println(\"file created\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"file could not be created\");\n\t\t}\n\t}", "private static File safeOpenFile() throws IOException {\n\t\tPath path = Paths.get(PropertyUtil.getConfigPath() + \"/config\");\n\n\t\tif (!Files.exists(path)) {\n\t\t\tFiles.createDirectories(path.getParent());\n\t\t\tFiles.createFile(path);\n\t\t\tlogger.debug(\"Creating {}\", path.toAbsolutePath());\n\t\t}\n\n\t\treturn path.toFile();\n\t}", "File openFile();", "public boolean create() {\n boolean operation = false;\n try {\n File file = new File( fileName );\n file.createNewFile();\n\n if ( this.open() == false ) {\n throw new Exception(\"File created but still has issues opening the file\");\n } else {\n writeFirstLine(\"\");\n }\n\n operation = true;\n } catch( Exception error ) {\n System.out.println(error.toString());\n operation = false;\n }\n\n return operation;\n }", "public void\topen(File path) throws IOException;", "private File loadFile() throws IOException {\r\n File file = new File(filePath);\r\n if (!file.exists()) {\r\n File dir = new File(fileDirectory);\r\n dir.mkdir();\r\n File newFile = new File(filePath);\r\n newFile.createNewFile();\r\n return newFile;\r\n } else {\r\n return file;\r\n }\r\n }", "public void openFile()\r\n {\r\n try // open file\r\n {\r\n input = new RandomAccessFile( \"clients.dat\", \"r\" );\r\n } // end try\r\n catch ( IOException ioException )\r\n {\r\n System.err.println( \"File does not exist.\" );\r\n } // end catch\r\n }", "public static void createOrOpenUsersFile() {\n try {\r\n File usersFile = new File(\"users.txt\");\r\n if (usersFile.createNewFile()) {\r\n System.out.println(\"\\nFile \" + usersFile.getName() + \" has been created.\");\r\n } else {\r\n System.out.println(\"\\nFile \" + usersFile.getName() + \" is ready.\");\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"An error occurred.\");\r\n e.printStackTrace();\r\n }\r\n }", "void open(String fileName);", "public boolean create()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn file.createNewFile() ;\n\t\t}\n\t\tcatch( IOException ex )\n\t\t{\n\t\t\tex.printStackTrace() ;\n\t\t\treturn false ;\n\t\t}\n\t}", "LogFile open(String fileMode) throws LogConfigurationException, FileNotFoundException\n {\n this.fileMode = fileMode;\n\n // remember whether the file existed or not\n newFile = !file.exists();\n \n // if it already existed, but length is zero, then it is still a new file\n if (!newFile) newFile = file.length() == 0;\n \n channel = new RandomAccessFile(file, fileMode).getChannel();\n assert channel != null : \"RandomAccessFile() returns null\";\n \n // FEATURE 300922; lock file to prevent simultanious access\n try {\n lock = channel.tryLock();\n // TODO log lock event\n // if (lock != null) System.err.println(file.getName() + \" locked\");\n } catch (IOException e) {\n throw new LogConfigurationException(e);\n }\n if (lock == null) {\n // TODO: log lock failed\n // System.err.println(file.getName() + \" unable to lock\");\n throw new LogConfigurationException(\"Unable to obtain lock on \" + file.getAbsolutePath());\n }\n if (lock.isShared()) {\n // TODO: log lock is shared\n // System.err.println(file.getName() + \" lock is shared\");\n throw new LogConfigurationException(\"Shared lock on \" + file.getAbsolutePath());\n }\n // TODO: log lock acquired\n // System.err.println(file.getName() + \" open\");\n \n return this;\n }", "public void open (File file)\n\t{\n\t\topen (file, false);\n\t}", "public void createFile(File file) throws IOException {\n if (!file.exists()) {\n file.createNewFile();\n }\n }", "public static void createOrOpenTasksFile() {\n try {\r\n File tasksFile = new File(\"tasks.txt\");\r\n if (tasksFile.createNewFile()) {\r\n System.out.println(\"\\nFiles \" + tasksFile.getName() + \" has been created.\");\r\n } else {\r\n System.out.println(\"\\nFile \" + tasksFile.getName() + \" is ready.\");\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"An error occurred.\");\r\n e.printStackTrace();\r\n }\r\n }", "public void open() throws IOException;", "public void createFile(File file) {\n\t\tif (file.exists())\n\t\t\treturn;\n\t\ttry {\n\t\t\tfile.createNewFile();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void createFile() {\n if (mDriveServiceHelper != null) {\n Log.d(\"error\", \"Creating a file.\");\n\n mDriveServiceHelper.createFile()\n .addOnSuccessListener(fileId -> readFile(fileId))\n .addOnFailureListener(exception ->\n Log.e(\"error\", \"Couldn't create file.\", exception));\n }\n }", "@Override\n public void ensureOpen() throws IOException {\n }", "private void open()\n {\n try\n {\n // Found how to append to a file here \n //http://stackoverflow.com/questions/1625234/how-to-append-text-to-an-existing-file-in-java\n r = new PrintWriter( new BufferedWriter(new FileWriter(filePath, true)));\n }\n catch( IOException e )\n {\n r = null;\n UI.println(\"An error occored when operning stream to the log file.\\n This game wont be logged\");\n Trace.println(e);\n }\n }", "void createFile()\n {\n //Check if file already exists\n try {\n File myObj = new File(\"src/main/java/ex45/exercise45_output.txt\");\n if (myObj.createNewFile()) {\n System.out.println(\"File created: \" + myObj.getName());// created\n } else {\n System.out.println(\"File already exists.\"); //exists\n }\n //Error check\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }", "void open() throws IOException;", "public File createFile(final String path) {\n return new com.good.gd.file.File(path);\n }", "public boolean open(String filename)\n {\n \n boolean retVal = open_0(nativeObj, filename);\n \n return retVal;\n }", "public static void touch(File f) throws IOException {\n if(f.exists())\n return;\n \n File parent = f.getParentFile();\n if(parent != null)\n parent.mkdirs();\n\n try {\n f.createNewFile();\n } catch(IOException failed) {\n // Okay, createNewFile failed. Let's try the old way.\n FileOutputStream fos = null;\n try {\n fos = new FileOutputStream(f);\n } catch(IOException ioe) {\n ioe.initCause(failed);\n throw ioe;\n } finally {\n if(fos != null) {\n try {\n fos.close();\n } catch(IOException ignored) {}\n }\n }\n }\n }", "public static PicoFile open(File file) throws PicoException, IOException {\n if (file == null) {\n throw new NullPointerException(\"The file is null.\");\n }\n return new PicoFile(new RandomAccessFile(file, \"rw\"));\n }", "public static PicoFile open(String filename) throws PicoException, IOException {\n if (filename == null) {\n throw new NullPointerException(\"The filename is null.\");\n }\n return new PicoFile(new RandomAccessFile(filename, \"rw\"));\n }", "public static void createNewFile(File file) {\n\t\ttry {\n\t\t\tfile.createNewFile();\n\t\t} catch (Exception exp) {\n\t\t\tthrow new RuntimeException(exp);\n\t\t}\n\t}", "public static void openFileForInput(String ID, String file, Function function,\n DawnParser parser) throws DawnRuntimeException\n {\n if (!isFileAvailable(ID, parser))\n {\n try\n {\n parser.setProperty(\"DAWN.IO#FILE.\" + ID, new BufferedReader(new FileReader(\n DawnUtilities.constructPath(file))));\n } catch (IOException ioe) {\n throw new DawnRuntimeException(function, parser, \"file \" + file + \" not found\");\n }\n } else\n throw new DawnRuntimeException(function, parser, \"file ID \" + ID + \" already exists\");\n }", "public static void createFile(File source) {\n try {\n if (!source.createNewFile()) {\n throw new IOException();\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to create file: \" + source.getAbsolutePath(), e);\n }\n }", "@SuppressWarnings(\"ResultOfMethodCallIgnored\")\r\n private static void fileExists(String filepath) throws IOException {\r\n File file = new File(filepath + filePath);\r\n if (!file.exists()) {\r\n file.createNewFile();\r\n }\r\n }", "public static void openFileForOutput(String ID, String file, Function function,\n DawnParser parser) throws DawnRuntimeException\n {\n if (!isFileAvailable(ID, parser))\n {\n try\n {\n parser.setProperty(\"DAWN.IO#FILE.\" + ID, new BufferedWriter(new FileWriter(\n DawnUtilities.constructPath(file))));\n } catch (IOException ioe) {\n throw new DawnRuntimeException(function, parser, \"file \" + file + \" not found\");\n }\n } else\n throw new DawnRuntimeException(function, parser, \"file ID \" + ID + \" already exists\");\n }", "private static File openFile(String path, FileSystem fs) {\n fs.updatePath();\n String fullFilePath;\n if (path.startsWith(\"/\")) {\n // path is abs\n fullFilePath = path;\n } else {\n // path is rel\n fullFilePath = fs.getCurrentPath() + path;\n }\n\n File targetFile = (File) fs.checkPath(fullFilePath, \"file\");\n if (targetFile == null) {\n // check for parent if it's null too\n String[] parentPathArr = fs.getParent(fullFilePath);\n if (!parentPathArr[0].startsWith(\"/\")) {\n // convert parent path to absolute\n parentPathArr[0] = toAbsPathStr(parentPathArr[0], fs);\n }\n Directory parentDir =\n (Directory) fs.checkPath(parentPathArr[0], \"directory\");\n if (parentDir == null) {\n // invalid parent path => the given path is invalid\n ErrorHandler.getErrorMessage(fullFilePath + \" is invalid path\");\n } else {\n // create file under the parentDir if name is okay\n if (fs.isValidNameForFileSystem(parentPathArr[1])) {\n targetFile = fs.createFileWithParent(parentPathArr[1], parentDir);\n } else {\n ErrorHandler.getErrorMessage(\"invalid file name\");\n }\n }\n }\n return targetFile;\n }", "int createFile(String pFileNamePath, String pContent, String pPath, String pRoot, boolean pOverride) throws RemoteException;", "SessionFile getOrCreateFile(SharedFile shared) {\n Integer id = fileIds.get(shared);\n if (id == null) {\n id = nextFileHandle++;\n SessionFile data = new SessionFile(this, id, shared);\n fileIds.put(shared, id);\n fileData.put(id, data);\n return data;\n } else {\n return fileData.get(id);\n }\n }", "public void open() {\r\n if (mFailedOpen) {\r\n return;\r\n }\r\n\r\n File base = new File(mBaseFileName);\r\n if (mMaxLogSizeBytes > 0 && base.length() > (mMaxLogSizeBytes / mNumSegments - 1024)) {\r\n Log.d(LOG_TAG, \"Log file exceeds maximum size\");\r\n close();\r\n renameLogs();\r\n open();\r\n } else if (mCurrentFileStream == null) {\r\n try {\r\n mCurrentFileStream = new FileOutputStream(mBaseFileName, true);\r\n } catch (FileNotFoundException e) {\r\n Log.e(LOG_TAG, \"Could not open log file \" + e.getMessage());\r\n mFailedOpen = true;\r\n mCurrentFileStream = null;\r\n }\r\n }\r\n }", "public void init() {\n File file = new File(FILE);\n if (!file.exists()) {\n File file2 = new File(file.getParent());\n if (!file2.exists()) {\n file2.mkdirs();\n }\n }\n if (this.accessFile == null) {\n try {\n this.accessFile = new RandomAccessFile(FILE, \"rw\");\n } catch (FileNotFoundException unused) {\n }\n }\n }", "public boolean open() {\n\t\tif (RTS_COMMON.Option.VERBOSE)\n\t\t\tTRACE_OPEN(\"open Outbytefile\");\n\t\tif (_OPEN)\n\t\t\treturn (false);\n\t\tFile file = doCreateAction();\n\t\ttry {\n\t\t\toutputStream = new FileOutputStream(file, _APPEND);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tif (RTS_COMMON.Option.VERBOSE)\n\t\t\t\te.printStackTrace();\n\t\t\treturn (false);\n\t\t}\n\t\t_OPEN = true;\n\t\t_BYTESIZE = _DEFAULT_BYTESIZE;\n\t\treturn (true);\n\t}", "private static Optional<InputStream> openFile(Path name) {\n try {\n return Optional.of(Files.newInputStream(name, StandardOpenOption.READ));\n } catch (IOException e) {\n System.err.printf(\"Unable to open file %s for reading: %s\\n\", name, e.toString());\n }\n\n return Optional.empty();\n }", "Object create(File file) throws IOException, SAXException, ParserConfigurationException;", "@SuppressWarnings(\"ResultOfMethodCallIgnored\")\r\n public static void readFromFile() throws IOException {\r\n File file = new File(filePath);\r\n if (file.exists()) {\r\n readFromFile(file.getPath());\r\n } else {\r\n file.createNewFile();\r\n }\r\n }", "File a(File file) {\n if (file != null) {\n if (file.exists() || file.mkdirs()) {\n return file;\n }\n akx.h().d(\"Fabric\", \"Couldn't create file\");\n do {\n return null;\n break;\n } while (true);\n }\n akx.h().a(\"Fabric\", \"Null File\");\n return null;\n }", "void openFilePath(String newFilePath) throws IllegalValueException;", "public boolean createNewFile(File file) throws IOException {\n if (\"/probes/.ready\".equals(file.getPath())) {\n return true;\n }\n return file.createNewFile();\n }", "@Test\n public void CreateFile() throws Exception {\n createFile(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\",\n readTemplateXLSX(\"src\\\\TestSuite\\\\SampleFiles\\\\template_supervisor.xlsx\"));\n File file = new File(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\");\n Assert.assertTrue(file.exists());\n }", "public GridFSInputFile createFile(File f) throws IOException {\n\treturn createFile(new FileInputStream(f), f.getName(), true);\n }", "@Override\n public File createFile(String path) throws IOException {\n String pathStr=path+fileSeparator+\"Mail.json\";\n File file = new File(pathStr);\n file.createNewFile();\n return file;\n }", "public abstract T create(T file, boolean doPersist) throws IOException;", "public static File createPlayerFile(){\n try {\n playerFile = new File(System.getProperty(\"user.dir\") + \"/PlayerFiles/\" + \".txt\"); //creates player file, can it run on android?\n playerFile.createNewFile();\n }catch (IOException e){\n e.printStackTrace();\n }\n finally {\n return playerFile;\n }\n }", "public FileTableEntry open(String filename, String mode)\n\t{\n\t\tFileTableEntry ftEnt = filetable.falloc(filename, mode);\n\n\t\t//checking mode for writing\n\t\tif (ftEnt != null) {\n\t\t\tif (mode.equals(\"w\")) {\n\t\t\t\tif(!deallocAllBlocks(ftEnt)) {\n\t\t\t\t\tftEnt = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (mode.equals(\"a\")) {\n\t\t\t\tftEnt.seekPtr = ftEnt.inode.length;\n\t\t\t}\n\t\t}\n\t\treturn ftEnt;\n\t}", "public static boolean createFileIfNotExists(String path, SourceType sourceType) throws IOException {\n return getFileSystemBySourceType(sourceType).createNewFile(new Path(path));\n }", "SparseStream openFile(String path, FileMode mode) throws IOException;", "public void testCreateFileSuccess() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n String fileCreationId = filePersistence.createFile(VALID_FILELOCATION, FILENAME);\r\n assertTrue(\"fileCreationId shouldn't be null or empty\", fileCreationId != null\r\n && fileCreationId.trim().length() != 0);\r\n filePersistence.closeFile(fileCreationId);\r\n filePersistence.deleteFile(VALID_FILELOCATION, FILENAME);\r\n }", "public void createFile(String fname) {\n\t\tprintMsg(\"running createFiles() in \\\"\" + this.getClass().getName() + \"\\\" class.\");\n\t\t\n\t\t// Check if the scratch directory exists, create it if it doesn't\n\t\tPath rootpath = Paths.get(theRootPath);\n\t\tcreateScratchDirectory(rootpath);\n\n\t\t// Check if the file name is null or empty, if it is, use default name\n\t\tPath filepath = null;\n\t\tif(fname == null || fname.isEmpty()) {\n\t\t\tfilepath = Paths.get(rootpath + System.getProperty(\"file.separator\") + theFilename);\n\t\t} else {\n\t\t\tfilepath = Paths.get(rootpath + System.getProperty(\"file.separator\") + fname);\n\t\t}\n\t\t\n\t\t// Create file\n\t\ttry {\n\t\t\t// If file exists already, don't override it.\n\t\t\tif(!Files.exists(filepath)) {\n\t\t\t\tFiles.createFile(filepath);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static DBMaker openFile(String file){\n DBMaker m = new DBMaker();\n m.location = file;\n return m;\n }", "FileReference createFile(String fileName, String toolId);", "public static void openFile(File file) throws IOException {\n\n\t\tif (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Desktop.Action.OPEN))\n\t\t\tDesktop.getDesktop().open(file);\n\t}", "public int open(String filename)\n {\n return open(filename, i_hdl); \n }", "public static void CreateFile (String filename) {\r\n\t\t try {\r\n\t\t File myObj = new File(filename + \".txt\");\r\n\t\t if (myObj.createNewFile()) {\r\n\t\t System.out.println(\"File created: \" + myObj.getName());\r\n\t\t } else {\r\n\t\t System.out.println(\"File already exists.\");\r\n\t\t }\r\n\t\t } catch (IOException e) {\r\n\t\t System.out.println(\"An error occurred.\");\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t }", "public void openLogFile(String filename) throws IOException {\n\n if (objectOutputStream != null) {\n objectOutputStream.close();\n objectOutputStream = null;\n }\n\n if (new File(filename).exists()) {\n // Open for append\n fileOutputStream = new FileOutputStream(filename, true);\n objectOutputStream = new ObjectOutputStream(fileOutputStream);\n outputLogFilename = filename;\n } else {\n fileOutputStream = new FileOutputStream(filename);\n objectOutputStream = new ObjectOutputStream(fileOutputStream);\n outputLogFilename = filename;\n }\n }", "public static void existeFichero(){\n File fichero = new File(\"config.ser\");\n\n try{\n\n if (fichero.exists()) {\n recuperarFecha();\n }\n else {\n fichero.createNewFile();\n }\n }catch(IOException ex){\n System.out.println(\"Excepcion al crear el fichero: \" + ex);\n }\n\n }", "public void open() {\n // no-op;\n }", "SparseStream openFile(String path, FileMode mode, FileAccess access) throws IOException;", "public String open() throws Exception {\n\t\tFile d = new File(dir);\n\n\t\tif (d.mkdirs()) {\n\t\t\t// all OK, return.\n\t\t\treturn path;\n\t\t}\n\n\t\tif (d.exists()) {\n\t\t\t// already exists, return.\n\t\t\treturn path;\n\t\t}\n\n\t\t// try and fix the path\n\t\tlogger.warn(\"Cannot create directory: \" + d.getPath());\n\t\tfixPath(d);\n\n\t\tif (d.mkdirs()) {\n\t\t\t// all OK, return.\n\t\t\treturn path;\n\t\t}\n\n\t\tif (d.exists()) {\n\t\t\t// already exists, return.\n\t\t\treturn path;\n\t\t}\n\n\t\tthrow new ConverterException(\"Unable to fix path: \" + d.getPath());\n\t}", "public void createFile (String filePath){\n try{\n File newFile = new File(filePath);\n if(newFile.createNewFile()){\n System.out.println(\"File created: \"+newFile.getName());\n } else {\n System.out.println(\"File already exists.\");\n }\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }", "public abstract FD open(UnixRuntime r, String path, int flags, int mode) throws ErrnoException;", "public void openFile(Path file) {\n openFiles(new ArrayList<>(List.of(file)));\n }", "@Override\n\tpublic void open() throws IOException {\n\t\t\n\t}", "@Override\n public synchronized boolean create(Path file)\n {\n File f = file.toFile(root);\n if (file.isRoot()) {\n return false;\n }\n File parent = file.parent().toFile(root);\n parent.mkdirs();\n\n try {\n return f.createNewFile();\n } catch (IOException e) {\n \te.printStackTrace();\n return false;\n }\n }", "private static native boolean open_0(long nativeObj, String filename);", "private static void checkHistoryDirectory()\n throws FileNotFoundException {\n Path path = Paths.get(HISTORY_FILE_PATH); //creates Path instance\n try {\n Files.createDirectories(Paths.get(DIRECTORY));\n Files.createFile(path); //creates file at specified location\n } catch (IOException e) {\n readHistoryData();\n }\n }", "@Test\n\tpublic void testIsConsistentFileNoOpen() throws Exception {\n\t\tIRodinFile rodinFile = createRodinFile(\"P/x.test\");\n\t\trodinFile.close();\n\t\tassertTrue(\"closed file should be consistent\", \n\t\t\t\trodinFile.isConsistent());\n\t\tassertFalse(\"file should not be open\", rodinFile.isOpen());\n\t}", "public static PicoFile create(File file) throws IOException {\n if (file == null) {\n throw new NullPointerException(\"The file is null.\");\n }\n return create(file, KeyUtils.makeKey());\n }", "public boolean openFile(String name){\n boolean tmp=false;\n\n try{\n _file = new File(name);\n tmp=_file.exists();\n if (tmp) {\n rows =new Vector<String>();\n loadTSPTWFile();\n if(DEBUG){\n System.out.println(\"Load new file:\"+name);\n }\n loadTSPTWFile();\n }\n }catch( IOException ioe){\n tmp=false;\n }\n\n return tmp;\n }", "public NetworkFile createFile(SrvSession sess, TreeConnection tree, FileOpenParams params)\n throws IOException {\n\n // Access the database context\n\n DBDeviceContext dbCtx = (DBDeviceContext) tree.getContext();\n\n // Check if the database is online\n \n if ( dbCtx.getDBInterface().isOnline() == false)\n throw new DiskOfflineException( \"Database is offline\");\n \n // Set the session in the file open parameters\n \n params.setSession( sess);\n \n // Get, or create, a file state for the new file\n \n FileState fstate = getFileState(params.getPath(), dbCtx, true);\n if ( fstate.fileExists()) {\n \n // Check if the file creation is a new stream\n \n if ( params.isStream() == false)\n throw new FileExistsException(\"File exists, \" + params.getPath());\n \n // Create a new stream associated with the existing file\n \n return createStream(params, fstate, dbCtx);\n }\n \n // Split the path string and find the directory id to attach the file to\n \n int dirId = findParentDirectoryId(dbCtx,params.getPath(),true);\n if ( dirId == -1)\n throw new IOException(\"Cannot find parent directory\");\n\n // Check if the allocation size for the new file is greater than the maximum allowed file size\n \n if ( dbCtx.hasMaximumFileSize() && params.getAllocationSize() > dbCtx.getMaximumFileSize())\n throw new DiskFullException( \"Required allocation greater than maximum file size\");\n \n // Create a new file\n \n DBNetworkFile file = null;\n\n try {\n\n // Get the file name\n \n String[] paths = FileName.splitPath(params.getPath());\n String fname = paths[1];\n \n // Check if the file name is too long\n \n if ( fname != null && fname.length() > MaxFileNameLen)\n throw new FileNameException(\"File name too long, \" + fname);\n \n // If retention is enabled check if the file is a temporary file\n \n boolean retain = true;\n \n if ( dbCtx.hasRetentionPeriod()) {\n \n // Check if the file is marked delete on close\n \n if ( params.isDeleteOnClose())\n retain = false;\n }\n \n // Set the default NFS file mode, if not set\n \n if ( params.hasMode() == false)\n params.setMode(DefaultNFSFileMode);\n \n // Create a new file record\n \n int fid = dbCtx.getDBInterface().createFileRecord(fname, dirId, params, retain);\n\n // Indicate that the file exists\n \n fstate.setFileStatus( FileStatus.FileExists);\n\n // Save the file id\n \n fstate.setFileId(fid);\n\n // If retention is enabled get the expiry date/time\n \n if ( dbCtx.hasRetentionPeriod() && retain == true) {\n RetentionDetails retDetails = dbCtx.getDBInterface().getFileRetentionDetails(dirId, fid);\n if ( retDetails != null)\n fstate.setRetentionExpiryDateTime(retDetails.getEndTime());\n }\n \n // Create a network file to hold details of the new file entry\n\n file = (DBNetworkFile) dbCtx.getFileLoader().openFile(params, fid, 0, dirId, true, false);\n file.setFullName(params.getPath());\n file.setDirectoryId(dirId);\n file.setAttributes(params.getAttributes());\n file.setFileState(fstate);\n \n // Open the file\n \n file.openFile(true);\n }\n catch (DBException ex) {\n \n // Remove the file state for the new file\n \n dbCtx.getStateCache().removeFileState( fstate.getPath());\n \n // DEBUG\n \n Debug.println(\"Create file error: \" + ex.toString());\n// Debug.println(ex);\n }\n\n // Return the new file details\n\n if (file == null)\n throw new IOException( \"Failed to create file \" + params.getPath());\n else {\n \n // Update the file state\n \n fstate.incrementOpenCount();\n }\n\n // Return the network file\n \n return file;\n }", "@Override\n\tpublic void open() throws IOException {\n\t}", "private static File identifyFile() {\n try {\n File inputFile = new File(\"inputFile.txt\");\n if (inputFile.createNewFile()) {\n System.out.println(\"Debug : File Created\");\n } else {\n System.out.println(\"Debug : File Exists\");\n }\n return inputFile;\n } catch (IOException e) {\n System.out.println(\"Error reading input\");\n e.printStackTrace();\n }\n return null;\n }", "public File createFile(String fileName) throws IOException {\n File file = new File(FILES_PATH + \"/\" + fileName);\n if (!file.exists()) {\n file.createNewFile();\n }\n return file;\n }", "private void tryToOpen() {\n if (current != null) {\n if (!this.tryToClose()) return;\n }\n\n //open an existing file...\n JFileChooser chooser = new JFileChooser(new File(\".\"));\n chooser.setDialogTitle(\"Select model file\");\n chooser.setFileFilter(new FileNameExtensionFilter(\n \"Only xml files\",\"xml\"\n ));\n\n int result = chooser.showOpenDialog(this);\n if (result == JFileChooser.APPROVE_OPTION) {\n File file = chooser.getSelectedFile();\n try {\n current = new Document(file);\n this.update();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"ERROR: the file '\" + file.getName() + \"' could not be opened!\", \"An Error Occured\", JOptionPane.ERROR_MESSAGE);\n// e.printStackTrace();\n }\n }\n }", "public void openFile(String file)\n\t{\n\t\tthis.file=file;\n\t\tSystem.out.println(\"file has been opened\");\n\t}", "public void openFile(@NotNull final String path) {\n openFile(fm -> fm.load(path));\n }", "RandomAccessFile openOutputFile(String fileName) {\n ec.deleteOldFile(fileName);\n RandomAccessFile file = null;\n try {\n file = new RandomAccessFile(fileName, \"rw\");\n } catch (Exception e) {\n //ec.printError()\n } // try-catch\n if (ec.getHost().equals(sc.HOST)) {\n ec.submitJob(\"chmod 644 \" + fileName);\n } // if (ec.getHost().equals(sc.HOST))\n return file;\n }", "CompletableFuture<Optional<FutureLineStorage>> open(String fileName);", "private int handleOpen(int name) {\n\t\tString FileName = readVirtualMemoryString(name, MAXSTRLEN);\n\t\t//error if file name is not valid\n\t\tif(FileName == null)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\n\t\t//find a free file descriptor\n\t\tint fileIndex = -1;\n\t\tfor(int i = 2; i < 16; i++)\n\t\t{\n\t\t\tif(fileDescriptors[i] == null)\n\t\t\t{\n\t\t\t\tfileIndex = i;\n\t\t\t}\n\t\t}\n\n\t\t//error if no file descriptor is free\n\t\tif(fileIndex == -1)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\n\t\tOpenFile file = ThreadedKernel.fileSystem.open(FileName, false);\n\n\t\t//error if file cannot be created\n\t\tif(file == null)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfileDescriptors[fileIndex] = file;\n\t\t\treturn fileIndex;\n\t\t}\n\t}", "public synchronized void open() throws IOException {\n if (!isOpen()) {\n boolean ok = false;\n try {\n randomAccessFile = new RandomAccessFile(this.file, \"rw\");\n int tlen = randomAccessFile.readInt();\n int tcount = randomAccessFile.readInt();\n ioBuffer = ByteBuffer.allocate(8 * tlen);\n this.tupleLength = tlen;\n this.tupleCount = tcount;\n ok = true;\n } finally {\n if (!ok) {\n try {\n close();\n } catch (IOException e) {\n LOGGER.error(\"error closing output stream\", e);\n }\n }\n }\n }\n }", "private void createFile(String fileName, String content) throws IOException {\n File file = new File(fileName);\n if (!file.exists()) {\n file.createNewFile();\n }\n FileWriter fileWriter = new FileWriter(fileName, false);\n fileWriter.append(content);\n fileWriter.close();\n }", "public File accessFile(String fileName) {\n File file = new File(this.getExternalFilesDir(null), fileName);\n // If there is no file, it creates one\n if (!file.exists()) {\n try {\n file.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n tv1.append(\"creation of file failed\\n\");\n }\n }\n return file;\n }", "@Test\n public void testFileOpen() {\n \n FileHandler fileToTest;\n \n fileToTest = new FileHandler(\"Kalle.xml\");\n \n try {\n fileToTest.openFile();\n fail(\"Should have raised a fileNotFoundException\");\n }\n catch (FileNotFoundException fnf) {\n }\n }", "public static ExternalExp<Connection> file(@Current final Context context,\r\n final String path,\r\n String open,\r\n boolean blocking,\r\n String encoding) {\r\n Connection connection = new ConnectionImpl(new InputStreamFactory() {\r\n @Override\r\n public InputStream openInputStream() throws IOException {\r\n return openInput(context, path);\r\n }\r\n });\r\n \r\n return new ExternalExp(connection, \"connection\");\r\n }", "public static void fillFile(IFile file, InputStream stream)\n throws CoreException {\n if (file.exists()) {\n file.setContents(stream, 0, null);\n } else {\n file.create(stream, true, null);\n }\n }", "public static PicoFile create(String filename) throws IOException {\n if (filename == null) {\n throw new NullPointerException(\"The filename is null.\");\n }\n return create(filename, KeyUtils.makeKey());\n }", "@Override\n public StorageOutputStream create(File file) throws IOException {\n\treturn null;\n }", "public FileOnDisk(File file, boolean mustExist)\n throws StyxException\n {\n this(file.getName(), file, 0666, mustExist);\n }", "private void createCatalogFileIfNoneExists(){\n\t\t\n\t\tinOut = new IOUtility();\n\t\t\n\t\tif (inOut.checkLocalCache()) {\n\t\t\tcatalog = inOut.readCatalogFromFile();\n\t\t}\n\n\t\telse {\n\n\t\t\ttry {\n\t\t\t\tinOut.createCatalogFile();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t} \n\t\t}\n\t\t\n\t}", "RandomAccessFile openInputFile(String fileName) {\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"fileName = \" + fileName);\n RandomAccessFile file = null;\n try {\n file = new RandomAccessFile(fileName, \"r\");\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"success: file opened for read\");\n } catch (Exception e) {\n ec.processError(e, thisClass, \"openInputFile\", \"\");\n if (dbg) System.out.println(\"<br>\" + thisClass + \".openInputFile: \" +\n \"error: file opened for read\");\n } // try-catch\n return file;\n }", "public static void createFile(String file) throws FileNotFoundException {\n\t\tif(!file.contains(\".txt\")) {\n\t\t\tthrow new IllegalArgumentException(\"Wrong format\"); \n\t\t}\n\t\tPrintWriter pw = new PrintWriter(file);\n\t\tpw.close();\n\n\t}", "@Override public void open() throws IOException {\n }", "private DataLocation createLocation(String fileName) throws IOException {\n SimpleURI uri = new SimpleURI(fileName);\n if (uri.getSchema().isEmpty()) {\n // Add default File scheme and wrap local paths\n String canonicalPath = new File(fileName).getCanonicalPath();\n uri = new SimpleURI(Protocol.FILE_URI.getSchema() + canonicalPath);\n }\n\n // Check host\n Resource host = Comm.getAppHost();\n String hostName = uri.getHost();\n if (hostName != null && !hostName.isEmpty()) {\n host = Resource.getResource(hostName);\n if (host == null) {\n ErrorManager.error(\"Host \" + hostName + \" not found when creating data location.\");\n }\n }\n\n // Create location\n return DataLocation.createLocation(host, uri);\n }", "void open();", "void open();" ]
[ "0.67536247", "0.6580323", "0.6479184", "0.63441443", "0.6220112", "0.61581105", "0.61569875", "0.61521137", "0.61211807", "0.6070813", "0.6067594", "0.60482025", "0.59723943", "0.59606004", "0.59480786", "0.5945035", "0.5909662", "0.58161944", "0.57853323", "0.57486993", "0.57376415", "0.5731703", "0.5727122", "0.5725604", "0.5716086", "0.57086706", "0.56964725", "0.56549734", "0.561842", "0.5618207", "0.56153756", "0.56056315", "0.5596302", "0.5513606", "0.55067223", "0.55035913", "0.5493478", "0.54895663", "0.5471925", "0.54639643", "0.5425641", "0.5422055", "0.5396565", "0.53940207", "0.5340859", "0.5334069", "0.53124547", "0.53094566", "0.530369", "0.5287414", "0.5276868", "0.5268006", "0.5254335", "0.52440757", "0.52301574", "0.5228061", "0.52258664", "0.52051115", "0.5194545", "0.5192634", "0.51913214", "0.51907295", "0.51880914", "0.518808", "0.51869607", "0.5180762", "0.5161589", "0.5159536", "0.5139356", "0.51360726", "0.5135905", "0.51353997", "0.51326096", "0.51269126", "0.5119125", "0.5113413", "0.5095738", "0.50946456", "0.50945693", "0.50923926", "0.50906295", "0.50796574", "0.50721586", "0.506398", "0.506369", "0.5056125", "0.5055646", "0.5052027", "0.5031885", "0.50318307", "0.5027288", "0.50227576", "0.5019059", "0.50172377", "0.5013785", "0.50061476", "0.50055623", "0.5003066", "0.4986994", "0.4986994" ]
0.5880764
17
Solution from the book.
public static int updateBits(int n, int m, int i, int j){ // all '1's int max = ~0; // left with '1' int left = max - ((1<<j) -1); // right with '1' int right = ((1<<i) - 1); // left with '1', middle '0', and right '1' int mask = left | right; // clear up the middle return (n & mask) | (m << i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void solution() {\n\t\t\n\t}", "public static String solution() {\r\n\t\treturn \"73162890\";\r\n\t}", "private void generateSolution() {\n\t\t// TODO\n\n\t}", "public static void main(String[] args) {\n\t\t\tSystem.out.println(Solution(5, 83));\n\t\t\t\n\t\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(solution());\r\n\t}", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(solution(0));\n\n\t}", "public static void doExercise4() {\n // TODO: Complete Exercise 4 Below\n\n }", "public static void main(String[] args) {\n\t\tString[][] relation = {\r\n\t\t\t{\"100\",\"ryan\",\"music\",\"2\"},{\"200\",\"apeach\",\"math\",\"2\"},{\"300\",\"tube\",\"computer\",\"3\"},{\"400\",\"con\",\"computer\",\"4\"},{\"500\",\"muzi\",\"music\",\"3\"},{\"600\",\"apeach\",\"music\",\"2\"}\r\n\t\t};\r\n\r\n\t\tSystem.out.println(solution(relation));\r\n\t}", "public static void main(String[] args) {\n System.out.println(Arrays.toString(solution(\"\")));\n System.out.println(Arrays.toString(solution(\"abcdef\")));\n System.out.println(Arrays.toString(solution(\"HelloWorld\")));\n System.out.println(Arrays.toString(solution(\"abcde\")));\n System.out.println(Arrays.toString(solution(\"LovePizza\")));\n\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(Arrays.toString(solution(8, 1)));\r\n\t}", "public static void doExercise3() {\n // TODO: Complete Exercise 3 Below\n\n }", "public static void main(String[] args) {\n\n Solution2.solution();\n }", "private Solution() { }", "private Solution() { }", "public static void doExercise5() {\n // TODO: Complete Exercise 5 Below\n\n }", "public void findSolution() {\n\n\t\t// TODO\n\t}", "public static void main(String[] args) {\n int year = 1918;\n String result = solve(year);\n System.out.println(result);\n }", "public static void main(String[] args) {\n String problem = \"Herman\";\n\n // Assign string type variable to solution string\n String result = solution(problem);\n\n //Print solution result\n System.out.println(result);\n }", "@Override\r\n\tpublic void solve() {\n\t\t\r\n\t}", "public void verliesLeven() {\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(solution(people, limit));\n\t}", "public static void main(String[] args) {\n\t\tTwoSumIII_DataStructureDesign result = new TwoSumIII_DataStructureDesign();\n\t\tresult.add(1);\n\t\tresult.add(3);\n\t\tresult.add(5);\n\t\tSystem.out.println(result.find(4));\n\t\tSystem.out.println(result.find(7));\n\t}", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(solution(\"ACACACA\"));\r\n\t}", "public static void main(String[] args) {\n System.out.println(findStrobogrammatic(6));\n }", "public static void main(String[] args) {\n Homework1 hw1 = new Homework1();\n\n System.out.println(\"===Problem 1===\");\n hw1.problem1();\n\n System.out.println(\"===Problem 2===\");\n System.out.println(hw1.topInt(1.5));\n System.out.println(hw1.topInt(5.1));\n System.out.println(hw1.topInt(1.0));\n System.out.println(hw1.topInt(-4.2));\n\n\n System.out.println(\"===Problem 3===\");\n hw1.draw4x4('-');\n hw1.draw4x4('4');\n\n System.out.println(\"===Problem 4===\");\n System.out.println(hw1.citationName(\"Alastair\", \"Reynolds\"));\n System.out.println(hw1.citationName(\"Grace\", \"Hopper\"));\n\n System.out.println(\"===Problem 5===\");\n System.out.println(String.valueOf(hw1.min3(1.0, 2.0, 3.0)));\n System.out.println(String.valueOf(hw1.min3(4.0, 3.0, 2.0)));\n System.out.println(String.valueOf(hw1.min3(0.5, 0.1, 0.5)));\n \n System.out.println(\"===Problem 6===\");\n System.out.println(hw1.fibonacci(0));\n System.out.println(hw1.fibonacci(1));\n System.out.println(hw1.fibonacci(2));\n System.out.println(hw1.fibonacci(3));\n System.out.println(hw1.fibonacci(10));\n System.out.println(hw1.fibonacci(25));\n \n \n System.out.println(\"===Problem 7===\");\n //System.out.println(hw1.isPalindrome(\"racecar\"));\n //System.out.println(hw1.isPalindrome(\"cat\"));\n //System.out.println(hw1.isPalindrome(\"hannah\"));\n //System.out.println(hw1.isPalindrome(\"saippuakivikauppias\"));\n }", "public static void main(String[] args) {\n String str = \"The one-hour drama series Westworld is a dark odyssey about the dawn of artificial consciousness and the evolution of sin. Set at the intersection of the near future and the reimagined past, it explores a world in which every human appetite, no matter how noble or depraved, can be indulged.\";\n\n System.out.println(solution1(str));\n }", "public static void doExercise2() {\n // TODO: Complete Exercise 2 Below\n\n }", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tTest01 t = new Test01();\r\n\t\t\r\n\t\t//String st = \"1927\";\r\n\t\t//int in\t= 2;\t// n 개 제거\r\n\r\n\t\tString st = \"1231234\";\r\n\t\tint in\t= 3;\t\r\n\t\t\r\n\t\tString an = t.solution(st, in);\r\n\t\t\r\n\t\tSystem.out.println(an);\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "private boolean solutionChecker() {\n\t\t// TODO\n\t\treturn false;\n\n\t}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] arr = new int[4];\n for (int i = 0; i < 4; i++)\n arr[i] = sc.nextInt();\n \n Q1 q1 = new Q1();\n int[] answer = q1.solution(arr);\n \n for (int i = 0; i < answer.length; i++) {\n System.out.println(answer[i]);\n }\n }", "public static void main(String[] args) {\n\t\tSolution sl=new Solution();\r\n\t\t/*ListNode l1=new ListNode(2);\r\n\t\tListNode l2=new ListNode(-1);\r\n\t\tl2.next=new ListNode(1);\r\n\t\tl2.next.next=new ListNode(3);\r\n\t\tListNode l3= sl.mergeTwoLists(l1, l2);\r\n\t\twhile(l3!=null)\r\n\t\t{System.out.println(l3.val);\r\n\t\tl3=l3.next;\r\n\t\t}*/\r\n\t\tString a=\"1ab2\",b=\"ab12\";\r\n\t\tSystem.out.println(sl.isRotate(a,b));\r\n\t\t//System.out.println(sl.canConstruct(ran, mag));\r\n\t\t//System.out.println(sl.myAtoi(\" 10522545459\"));\r\n\t}", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "public void mo21792Q() {\n }", "public static void main(String[] args) {\n Last_coding_exercises.task17();\n\n\n }", "public static void main(String[] args) {\n\t\tSolution s = new Solution();\n\t\ts.solution(2, 4, 2, 1);\n\t}", "public static void main(String[] args) {\r\n\t\tint N=1;\r\n\t\tint[][] trust = {};\r\n\t\tSolution sol = new Solution();\r\n\t\tSystem.out.println(sol.findJudge(N, trust));\r\n\t}", "public static void main(String[] args) {\n System.out.println(solution(5, new int[]{1, 3, 1, 4, 2, 3, 5, 4})); // 6\n }", "public static void main(String[] args){\n Solution solution = new Solution();\n System.out.println(solution.convertToTitle(27));\n }", "public static void main(String[] args) {\n\t\tint[][] maps = \n\t\t\t{\n\t\t\t\t\t{1,0,1,1,1},\n\t\t\t\t\t{1,0,1,0,1},\n\t\t\t\t\t{1,0,1,1,1},\n\t\t\t\t\t{1,1,1,0,1},\n\t\t\t\t\t{0,0,0,0,1}\n\t\t\t};\n\t\tSystem.out.println(solution(maps));\n\t}", "public static void main(String[] args) {\n\t\tString[][] q = {{\"yellow_hat\",\"headgear\"},{\"blue_sunglasses\",\"eyewear\"}};\n\t\tint an = solution(q);\n\t\t\n\t\tSystem.out.println(an);\n\t}", "public static void main(String[] args) {\n String name = \"ABAAABB\";\n\n System.out.println(solution(name));\n }", "public static void main(String[] args) {\n\t\tint [] a= {4,3,2,1};\r\n\t\tfor(int i:solution(a)) System.out.println(i);\r\n\t}", "public static void main(String[] args) {\n\t\tint [] arr = {4,2,3,5};\r\n\t\tint [] answer = solution(arr);\r\n\t\tfor(int i=0;i<answer.length;i++)\r\n\t\t\tSystem.out.print(answer[i]+\" \");\r\n\t}", "public static void main(String[] args) {\n\t\tlong n = 3;\n//\t\tlong n = 1;\n\t\tSystem.out.println(solution(n));\n\t\t\n\t}", "@Override\n\tpublic void challenge7() {\n\n\t}", "String algorithm();", "public static void main(String[] args) {\n\r\n\t\tExplanation();\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tint A[]={2,1,0,0,0};\r\n\t\tSystem.out.println(solution(A));\r\n\r\n\t}", "Programming(){\n\t}", "public static void main(String[] args) {\n countDuplicateCharacters(\"My name is Fernando\");\n\n //2. Reverse an Arraylist.\n reverseArrayList();\n\n //3. Check if a particular key exists in HashMap.\n //4. Convert keys of a map to a list.\n checkKeyAndCreateList();\n\n //5. Copy all elements of a HashSet to an Object array.\n hashToObject();\n\n //6. Get highest and lowest value stored in TreeSet\n maxAndMinValueTreeSet();\n\n //7. Sort ArrayList of Strings alphabetically.\n sortArrayList();\n\n //8. Get Set view of keys from HashTable.\n getViewsHashTable();\n\n }", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "@Test\n public void testSolution() {\n assertSolution(\"425\", \"input-day01-2018.txt\");\n }", "public static void main(String[] args) {\n\t\tint A[]={1,3,1,4,2,3,5,4};\n\t\tint result=solution(5,A);\n\t\tSystem.out.println(result);\n\t}", "public static void main(String[] args) {\n\t\tint nums[] = {0, 1, 0, 3, 12};\r\n\t\tsolution(nums);\r\n\t\tfor(int a:nums)\r\n\t\t\tSystem.out.println(a);\r\n\t}", "public static void main(String[] args) {\n\t\tint arr[] = {9,3,9,3,9,7,9};\n\t\tSolution(arr);\n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner (System.in);\n int n = in.nextInt(), k = in.nextInt();\n int[] t = new int[n]; for ( int i = 0; i < n; ++i ) { t[i] = in.nextInt(); }\n\n int special = 0;\n // the chapter might be numbered '1', but we need to index the vector\n for ( int chapter = 0, page = 1, nextChapterPage; chapter < n; ++chapter, page = nextChapterPage ) {\n int problemsInChapter = t[chapter], pagesInChapter = ( problemsInChapter + k - 1 ) / k;\n nextChapterPage = page + pagesInChapter;\n if ( page > problemsInChapter )\n continue;\n for ( int problem = 1, nextPageProblem; page < nextChapterPage; ++page, problem = nextPageProblem ) {\n nextPageProblem = problem + k;\n if ( page >= problem && page < nextPageProblem && page <= problemsInChapter )\n ++special;\n }\n }\n System.out.println (special);\n }", "public static void main(String... args) {\n\n Set<Long> As = new HashSet<>();\n int N = 100;\n for (long p = -N; p <= N; ++p) {\n for (long q = -N; q <= p; ++q) {\n for (long r = -N; r <= q; ++r) {\n if (r==0 || p==0 || q==0)\n continue;\n\n long nom = r*p*q;\n long den = r*p + r*q + p*q;\n\n if (den != 0 && nom % den==0 && (nom^den)>=0) {\n long A = nom/den;\n\n if (A==nom) {\n As.add(A);\n System.out.printf(\"A=%d (p=%d, q=%d, r=%d)\\n\", A, p, q, r);\n }\n }\n }\n }\n }\n Long[] aa = As.toArray(new Long[As.size()]);\n Arrays.sort(aa);\n System.out.printf(\"============\\n\");\n System.out.printf(\"A(%d)=%s\\n\", aa.length, Arrays.toString(aa));\n\n for (long a = 1; a < 100; ++a) {\n if (isAlexandrian(a))\n System.out.printf(\"A=%dn\", a);\n }\n }", "@Override\n\tpublic String getQuestion() {\n\n\t\treturn \"http://leetcode.com/onlinejudge#question_11\";\n\t}", "public static void main(String[] args) {\n int[] arr = {10, 2, 5, 1, 8, 12};\n System.out.println(solution(arr));\n }", "public static void main(){\n \n \n String question = \"There are 10 types of people in this world, those who understand binary and those who don't.\";\n String answer = \"true\";\n \n Question tfQuest = new Question (question, answer);\n tfQuest.getAnswer();\n \n }", "public static void main(String[] args) {\n\t\tsolve(8, 3);\r\n\t\tsolve(2, 4);\r\n\t\tsolve(3, 2);\r\n\t}", "public static void main(String[] args) {\n\t\tint[] A = {51,31,43};\n\t\tSystem.out.println(solution(A));\n\n\t}", "@Override\n public void computeSatisfaction() {\n\n }", "public static void main(String[] args) {\n problema4();\n }", "public static void main(String[] args) {\n\n int oldCapacity = 4;\n System.out.println(oldCapacity + (oldCapacity >> 1));\n\n /*Solution solution = new Solution();\n// System.out.println(solution.numRollsToTarget(2, 6, 7));\n\n int[] ints = solution.loudAndRich(new int[][]{\n *//* {1, 0},\n {2, 1},\n {3, 1},\n {3, 7},\n {4, 3},\n {5, 3},\n {6, 3}\n }, new int[]{3, 2, 5, 4, 6, 1, 7, 0});*//*\n\n }, new int[]{0, 1});\n Printer.print(ints);*/\n }", "public static void doExercise1() {\n // TODO: Complete Exercise 1 Below\n\n }", "public static void main(String[] args) {\n\t\t\tinitCapFormat(\"bengaluru is my city\");\n\t\t// 2.TODO \"sumit\" - \"itsum\"\n\t\t\tinputsInterchangeable(\"sumit\", \"itsum\");\n\t\t// 3.TODO 6699 - 69\n\t\t\t// 6*9+6+9\n\t\t// 4.TODO LIKE operator\n\t\t\t// SQL_LINUX.odt\n\t\t// 5.TODO numbers div by 5 in 1....10/5cr\n\t\t\tcountDivisibles(1, 100, 5);\n\t\t// 6.TODO count vowels in statement\n\t\t\tgetCountofVowels(\"THIS website is aw3som3\");\n\t\t// 7.CSS bold\n\t\t\t// <strong> or <b> tag also, you can try with css <span style=\"font-weight:bold\">text</span>\n\n\t}", "public static void main(String[] args) {\n\n\t\tint ar[] = { 7, 5, 4 };\n\n\t\tSystem.out.println(solution(ar));\n\n\t}", "@Override\n\tpublic void challenge17() {\n\n\t}", "public static void main(String[] args) throws Exception {\n\t\tString folderURL = \"C:\\\\Users\\\\Administrator\\\\Google ÔÆ¶ËÓ²ÅÌ\\\\Slides\\\\CS686\\\\A2\\\\SodukoProblem\\\\problems\\\\\";\n\t\tList<String> nameList = Loader.getAllSdURLFromFolder(folderURL);\n\t\tList<Solution> record = new ArrayList<Solution>();\n\t\tfor (String name:nameList)\n\t\t{\n\t\t\t//System.out.println(name);\n\t\t\tBoard board = Loader.loadInitialBoard(name);\n\t\t\tSudokuSolver solver = SudokuSolver.getInstance();\n\t\t\tSolution solution = solver.solve(board);\n\t\t\trecord.add(solution);\n\t\t\tSystem.out.print(solution.initNum+\" \");\n\t\t\tSystem.out.print(solution.cntState+\" \");\n\t\t\t//System.out.println(solution.board);\n\t\t\tSystem.out.println(solution.isFinished?\"Finished\":\"Failed\");\n\t\t\tif (solution.cntState>0)\n\t\t\t{\n\t\t\t\tSystem.out.println(board);\n\t\t\t\tSystem.out.println(solution.board);\n\t\t\t}\n\t\t\t//if (!solution.isFinished) break;\n\t\t}\n\t\t//printStatistics(record);\n\t\t\n\t}", "private Solution() {\n }", "public static void main(String[] args) {\n\t\tString[] a= {\"leo\", \"kiki\", \"eden\"};\n\t\tString[] b= {\"eden\", \"kiki\"};\n\t\tsolution(a,b);\n\n\t\tString[] a1= {\"marina\", \"josipa\", \"nikola\", \"vinko\", \"filipa\"};\n\t\tString[] b1= {\"josipa\", \"filipa\", \"marina\", \"nikola\"};\n\t\tsolution(a1,b1);\n\t}", "public static void main(String[] args) {\n Solution s = new Solution();\n System.out.println(s.letterCombinations(\"67\").toString());\n\n }", "public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public static void main(String[] args) \r\n {\r\n // TODO: Read the input from the user and call produceAnswer with an equation\r\n \tScanner in = new Scanner(System.in);\r\n \tString problem = in.nextLine();\r\n \tin.close();\r\n \tSystem.out.printf(\"Result: %s\" , produceAnswer(problem));\r\n }", "public static void main(String[] args) {\n System.out.println(solution(new int[]{3,1,2,4,3}));\n }", "public static void main(String[] args) {\n // solution for the problem\n int solution;\n // end time of the program\n long endTime;\n // start time of the program\n long startTime;\n\n startTime = System.nanoTime();\n solution = findSpecialPrimesSum();\n endTime = System.nanoTime();\n\n // print answer and time taken\n System.out.println(ANSWER + solution);\n System.out.printf(TIME_TAKEN, (double) (endTime - startTime) / TIME_CONVERSION);\n }", "public static void main(String[] args) {\n int v [] = {6,1,2,7};\r\n System.out.println( rob_easyVersion(v));\r\n\t}", "public static void main(String args[]) {\n\t\tString a[] = {\"mislav\", \"stanko\", \"mislav\", \"ana\",\"ana\"};\n\t\tString b[] = {\"stanko\", \"ana\", \"mislav\",\"mislav\"};\n\t\tsolution(a,b);\n\t}", "public static void main(String[] args)\r\t{", "public static void main(String args[]) {\n\t\tString number = \"1924\";\n\t\tint k = 2;\n\t\tSystem.out.println(solution(number, k));\n\t}", "@Override\n public String solve() {\n int LIMIT = 50 * NumericHelper.ONE_MILLION_INT;\n int[] nCount = new int[LIMIT+1];\n for(long y = 1; y<= LIMIT; y++) {\n for(long d= (y+3)/4; d<y; d++) { // +3 is to make d atleast 1\n long xSq = (y+d) * (y+d);\n long ySq = y * y;\n long zSq = (y-d) * (y-d);\n\n long n = xSq - ySq - zSq;\n\n if(n<0) {\n continue;\n }\n\n if(n>=LIMIT) {\n break;\n }\n\n\n nCount[(int)n]++;\n\n }\n }\n\n int ans = 0;\n for(int i = 1; i<LIMIT; i++) {\n if(nCount[i] == 1) {\n //System.out.print(i +\",\");\n ans++;\n }\n }\n\n return Integer.toString(ans);\n }", "public static void main(String[] args) {\n\n\n\n double numberOfgallons = 5;\n\n double gallonstolitter = numberOfgallons*3.785;\n\n\n String result = numberOfgallons + \" gallons equal to: \"+gallonstolitter+ \" liters\";\n System.out.println(result);\n\n //=============================================\n /* 2. write a java program that converts litters to gallons\n 1 gallon = 3.785 liters\n 1 litter = 1/3.785\n*/\n\n /*double litter1 = 1/3.785;\n double l =10;\n double gallon1 = l*litter1;\n\n System.out.println(gallon1);\n //======================================================\n*/\n /*\n 3. manually calculate the following code fragements:\n\t\t\t\t1. int a = 200;\n\t\t\t\t\tint b = -a++ + - --a * a-- % 2\n\t\t\t\t\tb = ?\n\n */\n\n\n double numberOfLiters = 100;\n\n double LiterstoGallons = numberOfLiters/3.785;\n\n String result2 = numberOfLiters+\" liters equal to \"+LiterstoGallons+\" galons\";\n\n System.out.println(result2);\n\n\n\n\n\n\n\n\n\n\n\n\n\n int a = 200;\n int b = -a++ + - --a * a-- % 2;\n // b = -200 + - 200* 200%2 = -200;\n\n int x = 300;\n int y = 400;\n int z = x+y-x*y+x/y;\n // z= 300+400-300*400+300/400=700-120000+0(cunki int kimi qebul edir)= -119300;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "public static void main(String[] args) {\n\t\t\tint[] A = {1};\r\n\t\t\tSystem.out.println(solution(A, 6));\r\n\t}", "public static void main(String[] args) {\n // Q1: number of hours in a day (byte)\n byte numberOfHoursInaDay =24;\n System.out.println(\"\\nnumberOfHoursInaDay:24 \");\n // Q2.Max.no of days in an year\n short maxNumberOfTheDayInaYear = 366;\n System.out.println(\"\\nmaxNumberOfTheDaysInaYear:366\");\n // Q3.Total number of employees in an organization\n int totalNumberOfEmployeesInIbm = 50000;\n System.out.println(\"\\ntotalNumberOfEmployeesInIbm:50000\");\n //Q4.Population in a country\n long numberOfPopulation = 2000000000L;\n System.out.println(\"\\nnumberOfPopulation : 2000000000L\");\n //Q5.Interest rate\n float interestRate = 1.9f;\n System.out.println(\"\\\\nCurrent interest rate:\\\" + interestRate\");\n //Q6. Balance in a bank account\n long accountBalance = 50000000L;\n System.out.println(\"\\naccountBalance = 50000000L\");\n boolean doesTheSunRiseFromTheWest = true;\n System.out.println(\"doesTheSunRiseFromTheWest? : \" + doesTheSunRiseFromTheWest);\n\n // Q7.Initials of your name\n char firstInitial = 'S';\n char lastInitial = 'M';\n System.out.println(\"My initials: \" +firstInitial + lastInitial);\n\n\n\n\n\n }", "public static void main(String[] args) {\n\t\tint[] A = { 1, 3, 2, 5, 4, 6, 5, 7 };\r\n\t\tint X = 5;\r\n\t\tSystem.out.println(solution(X, A));\r\n\t}", "private void kk12() {\n\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Welcome to Java\");\r\n\t\t\r\n\t\t//1.2\r\n\t\tSystem.out.println(\"Programming is fun\");\r\n\t\tSystem.out.println(\"Fundementals First\");\r\n\t\tSystem.out.println(\"Problem Driven\");\r\n\t\t\r\n\t\t//1.3\r\n\t\tSystem.out.print(\"(10.5 + 2 * 3) / (45-3.5) = \");\r\n\t\tSystem.out.println( (10.5 + 2 * 3) / (45-3.5) );\r\n\t\t\r\n\t\t//1.6\r\n\t\tSystem.out.print(\"Celsius 35 is Fahrenheit degree \");\r\n\t\tSystem.out.println((9 / 5) * 35 + 32);\r\n\t\t\r\n\t\tSystem.out.println((9 / 5));\r\n\t\t\r\n\t\t//\tPROGRAMMING EXERCISES\r\n\t\t \r\n\t\t//1.1\tDISPLAY SOME MESSAGES\r\n\t\tSystem.out.println(\"Welcome to Java, Learning Java now, \"\r\n\t\t\t\t+ \"Programming is fun\");\r\n\t\t\r\n\t\t//1.2 Display a message 5 times\r\n\t\tSystem.out.println(\"I love JAVA\");\r\n\t\tSystem.out.println(\"I love JAVA\");\r\n\t\tSystem.out.println(\"I love JAVA\");\r\n\t\tSystem.out.println(\"I love JAVA\");\r\n\t\tSystem.out.println(\"I love JAVA\");\r\n\t\t\r\n\t\t//1.3 Display that\r\n\t\t\r\n\t\tSystem.out.println(\" J \");\r\n\t\tSystem.out.println(\"J aaa v vaaa\");\r\n\t\tSystem.out.println(\"J J aa v v a a\");\r\n\t\tSystem.out.println(\"J aaaa v aaaa\");\r\n\t\t\r\n\t\t//1.4 Print table\r\n\t\tSystem.out.println(\"a\t\ta^2\t\ta^3\t\ta^4\");\r\n\t\tSystem.out.println(\"1\t\t1\t\t1\t\t1\");\r\n\t\tSystem.out.println(\"2\t\t4\t\t8\t\t16\");\r\n\t\tSystem.out.println(\"3\t\t9\t\t27\t\t81\");\r\n\t\tSystem.out.println(\"4\t\t16\t\t64\t\t256\");\r\n\t\t\r\n\t\t//1.5 compute expressions\r\n\t\tSystem.out.print(\"(7.5 * 6.5 - 4.5 * 3) / (47.5 - 5.5) = \");\r\n\t\tSystem.out.println( (7.5 * 6.5 - 4.5 * 3) / (47.5 - 5.5) );\r\n\t\t\r\n\t\t\r\n\t\t//1.6 Summation of a series n(n+1)/2\r\n\t\t\r\n\t\tSystem.out.println(\"1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 = \");\r\n\t\tSystem.out.println(1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 );\r\n\t\t\r\n\t\t//1.7 Approximate PI\r\n\t\t// computer says 1/3 = 0\r\n\t\tSystem.out.println(\" PI = 4 * (1 - 1/3 + 1/5 - 1/7 + 1/9 - 1/11)\");\r\n\t\tSystem.out.println(4 * (1 - 1/3 + 1/5 - 1/7 + 1/9 - 1/11));\r\n\t\t\r\n\t\t//1.8 Area and perimeter of a circle\r\n\t\t\r\n\t\tSystem.out.println(\"Perimeter = \" + 2 * 6.5 * 3.14159);\r\n\t\tSystem.out.println(\"Area = \" + 6.5 * 6.5 * 3.14159);\r\n\t\t\r\n\t\t//1.9 Area and perimeter of a rectangle\r\n\t\t\r\n\t\tSystem.out.println(\"Area = \" + 5.3 * 8.6);\r\n\t\tSystem.out.println(\"Perimeter = \" + 2 * (5.3 + 8.6));\r\n\t\t\r\n\t\t//1.10 Average speed in miles\r\n\t\t//average speed = total distance / time\r\n\t\t\r\n\t\t//km to mile 15 km how many mile? 9.32 miles\r\n\t\t\r\n\t\tSystem.out.println(\"Average speed is = \" + (15 / 1.6) / (50/ 60));\r\n\t\t//15 / 1.6) / (50/ 60) -------> (50/ 60) smaller than 1 so our programs see it is 0\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// 1.11\tPopulation \r\n\t\t//births = 365*24*60*60 / 7 +\r\n\t\t//deaths = 365*24*60*60 /13 -\r\n\t\t//immigrant = 365*24*60*60 / 45 +\r\n\t\t//Current population is 312 032 486\r\n\t\t\r\n\t\tSystem.out.println(\"2021 Population = \" + (312032486 + \r\n\t\t\t\t(365*24*60*60 / 7) - 365*24*60*60 /13 + 365*24*60*60 / 45));\r\n\t\tSystem.out.println(\"2022 Population = \" + (314812582 + \r\n\t\t\t\t(365*24*60*60 / 7) - 365*24*60*60 /13 + 365*24*60*60 / 45));\r\n\t\tSystem.out.println(\"2023 Population = \" + (317592678 + \r\n\t\t\t\t(365*24*60*60 / 7) - 365*24*60*60 /13 + 365*24*60*60 / 45));\r\n\t\tSystem.out.println(\"2024 Population = \" + (320372774 + \r\n\t\t\t\t(365*24*60*60 / 7) - 365*24*60*60 /13 + 365*24*60*60 / 45));\r\n\t\tSystem.out.println(\"2025 Population = \" + (323152870 + \r\n\t\t\t\t(365*24*60*60 / 7) - 365*24*60*60 /13 + 365*24*60*60 / 45));\r\n\t\t\r\n\t\t//or\t\t\r\n\t\tSystem.out.println(\"Every year = \" + (\r\n\t\t\t\t(365*24*60*60 / 7) - 365*24*60*60 /13 + 365*24*60*60 / 45));\r\n\t\tSystem.out.println(\"2021 Population = \" + (312032486 + 2780096));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n Math math=new Math();\n System.out.println(math.sum(5, 13));\t\n\t System.out.println(math.sub(13, 5));\n\t System.out.println(math.mult(13, 5));\n\t System.out.println(\"Bölüm :\"+ math.divide(13, 5));\n\t System.out.println(math.getpi());\n\t System.out.println(math.areaOfCircle(5));\n\t System.out.println(math.volumeOfShpere(3));\n\t System.out.println(math.areaOfRectangularPrism(3, 4, 6));\n System.out.println(\"üçgenin Alanı :\"+math.areaOfTriangle(5, 4, 2));\n\t System.out.println(\"Üçgenin Çevresi :\"+math.perimeterOfTriangle(5, 4, 2));\t\n\t System.out.println(math.factoriyel(5));\n\t System.out.println(math.sumOfSmallNumbers(6));\n\t// System.out.println(math.theSumOfTheNumbersBetween(3, 6));\n\t}", "public static void main(String[] args){\n\n Ejercicio4 ejercicio4 = new Ejercicio4();\n\n ArrayList<Integer> resultado = ejercicio4.listaDePrimerosCienPositivos();\n\n for (Integer i = 0; i < resultado.size(); i++) {\n System.out.println(resultado.get(i));\n }\n }", "@Test\n public void testExample3() {\n assertSolution(\"-6\", \"example-day01-2018-3.txt\");\n }", "public static void main(String[] args) {\n\n ArrayClone();\n //ArrayToString();\n //ArrayReverse();\n\n //ForToForeach();\n //SaveOurRAM();\n\n //Homework_Example_1();\n //Homework_Example_2();\n }", "@Override\n\tpublic void challenge14() {\n\n\t}", "public static void main(String[] args) {\n int input = 0;\n int armLength;\n int solution = 0;\n\n // get the puzzle input\n System.out.print(\"Please provide the puzzle input: \");\n input = new Scanner(System.in).nextInt();\n\n /// PART 1\n // figure out which spiral input is on to calculate distance on one axis\n armLength = SpiralUtils.lengthOfSprialArm(input);\n solution = (armLength - 1) / 2;\n\n // find the midpoints of the spiral the input is on\n List<Integer> midpoints = SpiralUtils.midpointsOfSprialArm(armLength);\n\n // calculate the smallest distance from any midpoint to our input for other access\n solution += SpiralUtils.smallestDistanceFromMidpoints(input, midpoints);\n\n System.out.println(\"The solution to part 1 is: \" + solution);\n\n /// PART 2\n // this part is less elegant, as I'm just going to create the spiral instead of run calculations\n System.out.println(\"The solution to part 2 is: \" + SpiralUtils.spiralUntilAtLeast(input));\n }", "void mo57277b();", "public static void main(String[] args) {\n\t\tint birdsOnABranch = 4;\n\t\tint birdsThatFlyAway = 1;\n\t\tint birdsRemaining = birdsOnABranch - birdsThatFlyAway;\n\n /* Exercise 2\n 2. There are 6 birds and 3 nests. How many more birds are there than\n nests?\n */\n\t\t// ### EXAMPLE:\n\t\tint numberOfBirds = 6;\n\t\tint numberOfNests = 3;\n\t\tint numberOfExtraBirds = numberOfBirds - numberOfNests;\n\n /* Exercise 3\n 3. 3 raccoons are playing in the woods. 2 go home to eat dinner. How\n many raccoons are left in the woods?\n */\n\t\tint racoonsInWoods = 3;\n\t\tint racoonsEatingDinner = 2;\n\t\tint racoonsLeft = racoonsInWoods - racoonsEatingDinner;\n\n\n /* Exercise 4\n 4. There are 5 flowers and 3 bees. How many less bees than flowers?\n */\n\t\tint flowers = 5;\n\t\tint bees = 3;\n\t\tint flowersLeft = flowers - bees;\n\n\n /* Exercise 5\n 5. 1 lonely pigeon was eating breadcrumbs. Another pigeon came to eat\n breadcrumbs, too. How many pigeons are eating breadcrumbs now?\n */\n\t\tint lonelyPigeon = 1;\n\t\tint hungryPigeon = 1;\n\t\tint eatingPigeons = lonelyPigeon + hungryPigeon;\n\n\n /* Exercise 6\n 6. 3 owls were sitting on the fence. 2 more owls joined them. How many\n owls are on the fence now?\n */\n\t\tint owlsOnFence = 3;\n\t\tint friendlyOwls = 2;\n\t\tint totalOwlsOnFence = owlsOnFence + friendlyOwls;\n\n\n /* Exercise 7\n 7. 2 beavers were working on their home. 1 went for a swim. How many\n beavers are still working on their home?\n */\n\t\tint beaversWorking = 2;\n\t\tint beaversSwimming = 1;\n\t\tint beaversStillWorking = beaversWorking - beaversSwimming;\n\n\n /* Exercise 8\n 8. 2 toucans are sitting on a tree limb. 1 more toucan joins them. How\n many toucans in all?\n */\n\t\tint toucansOnTree = 2;\n\t\tint toucansJoiningTree = 1;\n\t\tint totalToucansOnTree = toucansOnTree + toucansJoiningTree;\n\n\n /* Exercise 9\n 9. There are 4 squirrels in a tree with 2 nuts. How many more squirrels\n are there than nuts?\n */\n\t\tint squirrelsInTree = 4;\n\t\tint nutsInTree = 2;\n\t\tint squirrelsWithoutNuts = squirrelsInTree - nutsInTree;\n\n\n /* Exercise 10\n 10. Mrs. Hilt found a quarter, 1 dime, and 2 nickels. How much money did\n she find?\n */\n\t\tdouble quarter = 0.25;\n\t\tdouble dime =0.10;\n\t\tdouble nickel = 2 * 0.05;\n\t\tdouble totalMoney = quarter + dime + nickel;\n\n\n /* Exercise 11\n 11. Mrs. Hilt's favorite first grade classes are baking muffins. Mrs. Brier's\n class bakes 18 muffins, Mrs. MacAdams's class bakes 20 muffins, and\n Mrs. Flannery's class bakes 17 muffins. How many muffins does first\n grade bake in all?\n */\n\t\tint mrsBrierClass = 18;\n\t\tint mrsFlanneryClass = 17;\n\t\tint mrsMacAdamClass = 20;\n\t\tint totalMuffins = mrsBrierClass + mrsMacAdamClass + mrsFlanneryClass;\n\n\n /* Exercise 12\n 12. Mrs. Hilt bought a yoyo for 24 cents and a whistle for 14 cents. How\n much did she spend in all for the two toys?\n */\n\t\tdouble yoyoCost = 0.24;\n\t\tdouble whistleCost = 0.14;\n\t\tdouble moneySpent = yoyoCost + whistleCost;\n\n\n /* Exercise 13\n 13. Mrs. Hilt made 5 Rice Krispie Treats. She used 8 large marshmallows\n and 10 mini marshmallows.How many marshmallows did she use\n altogether?\n */\n\t\tint largeMarshmallow = 8;\n\t\tint miniMarshmallow = 10;\n\t\tint totalMarshmallow = largeMarshmallow + miniMarshmallow;\n\n\n /* Exercise 14\n 14. At Mrs. Hilt's house, there was 29 inches of snow, and Brecknock\n Elementary School received 17 inches of snow. How much more snow\n did Mrs. Hilt's house have?\n */\n\t\tint hiltHouseSnow = 29;\n\t\tint brecknockElementarySnow = 17;\n\t\tint differenceInSnow = hiltHouseSnow - brecknockElementarySnow;\n\n\n /* Exercise 15\n 15. Mrs. Hilt has $10. She spends $3 on a toy truck and $2 on a pencil\n case. How much money does she have left?\n */\n\t\tdouble hiltWallet = 10.0;\n\t\tdouble toyTruckCost = 3.0;\n\t\tdouble pencilCaseCost = 2.0;\n\t\tdouble walletBalance = hiltWallet - toyTruckCost - pencilCaseCost;\n\n\n\n /* Exercise 16\n 16. Josh had 16 marbles in his collection. He lost 7 marbles. How many\n marbles does he have now?\n */\n\t\tint totalMarbles = 16;\n\t\tint marblesLost = 7;\n\t\tint marblesLeft = totalMarbles - marblesLost;\n\n\n /* Exercise 17\n 17. Megan has 19 seashells. How many more seashells does she need to\n find to have 25 seashells in her collection?\n */\n\t\tint desiredSeashellCount = 25;\n\t\tint currentSeashellCount = 19;\n\t\tint seashellsNeededCount = desiredSeashellCount - currentSeashellCount;\n\n\n /* Exercise 18\n 18. Brad has 17 balloons. 8 balloons are red and the rest are green. How\n many green balloons does Brad have?\n */\n\t\tint totalBalloons = 17;\n\t\tint redBalloons = 8;\n\t\tint greenBalloons = totalBalloons - redBalloons;\n\n\n /* Exercise 19\n 19. There are 38 books on the shelf. Marta put 10 more books on the shelf.\n How many books are on the shelf now?\n */\n\t\tint booksOnShelf = 38;\n\t\tint booksAdded = 10;\n\t\tint currentBooksOnShelf = booksOnShelf + booksAdded;\n\n\n /* Exercise 20\n 20. A bee has 6 legs. How many legs do 8 bees have?\n */\n\t\tint beeLegCount = 6;\n\t\tint numberOfBees = 8;\n\t\tint totalNumberOfLegs = beeLegCount * numberOfBees;\n\n\n /* Exercise 21\n 21. Mrs. Hilt bought an ice cream cone for 99 cents. How much would 2 ice\n cream cones cost?\n */\n\t\tdouble iceCreamCost = 0.99;\n\t\tint numberOfConesPurchased = 2;\n\t\tdouble totalCostOfIceCream= iceCreamCost * numberOfConesPurchased;\n\n\n /* Exercise 22\n 22. Mrs. Hilt wants to make a border around her garden. She needs 125\n rocks to complete the border. She has 64 rocks. How many more rocks\n does she need to complete the border?\n */\n\t\tint totalRocks = 125;\n\t\tint rocksOnHand = 64;\n\t\tint rocksNeededToComplete = totalRocks - rocksOnHand;\n\n\n /* Exercise 23\n 23. Mrs. Hilt had 38 marbles. She lost 15 of them. How many marbles does\n she have left?\n */\n\t\tint hiltTotalMarbles = 38;\n\t\tint hiltMarblesLost = 15;\n\t\tint hiltMarblesLeft = hiltTotalMarbles - hiltMarblesLost;\n\n\n /* Exercise 24\n 24. Mrs. Hilt and her sister drove to a concert 78 miles away. They drove 32\n miles and then stopped for gas. How many miles did they have left to drive?\n */\n\t\tint concertDistance = 78;\n\t\tint tripStop = 32;\n\t\tint distanceLeft = concertDistance - tripStop;\n\n\n /* Exercise 25\n 25. Mrs. Hilt spent 1 hour and 30 minutes shoveling snow on Saturday\n morning and 45 minutes shoveling snow on Saturday afternoon. How\n much total time (in minutes) did she spend shoveling snow?\n */\n\t\tint saturdayMorningShoveling = (1*60) + 30;\n\t\tint saturdayEveningShoveling = 45;\n\t\tint totalTimeShoveling = saturdayEveningShoveling + saturdayMorningShoveling;\n\n\n /* Exercise 26\n 26. Mrs. Hilt bought 6 hot dogs. Each hot dog cost 50 cents. How much\n money did she pay for all of the hot dogs?\n */\n\t\tdouble hotDogCost = 0.50;\n\t\tint hotDogCount = 6;\n\t\tdouble hotDogMoneySpent = hotDogCount * hotDogCost;\n\n\n\n /* Exercise 27\n 27. Mrs. Hilt has 50 cents. A pencil costs 7 cents. How many pencils can\n she buy with the money she has?\n */\n\t\tdouble hiltMoney = 0.50;\n\t\tdouble pencilCost = 0.07;\n\t\tint pencilsThatCanBeBought = (int) (hiltMoney / pencilCost);\n\n\n /* Exercise 28\n 28. Mrs. Hilt saw 33 butterflies. Some of the butterflies were red and others\n were orange. If 20 of the butterflies were orange, how many of them\n were red?\n */\n\t\tint butterFliesSeen = 33;\n\t\tint orangeButterflies = 20;\n\t\tint redButterflies = butterFliesSeen - orangeButterflies;\n\n\n /* Exercise 29\n 29. Kate gave the clerk $1.00. Her candy cost 54 cents. How much change\n should Kate get back?\n */\n\t\tdouble kateMoneyGiven = 1.00;\n\t\tdouble kateCandyCost = 0.54;\n\t\tdouble kateChange = kateMoneyGiven - kateCandyCost;\n\n\n /* Exercise 30\n 30. Mark has 13 trees in his backyard. If he plants 12 more, how many trees\n will he have?\n */\n\t\tint markTreesInYard = 13;\n\t\tint markPlantsTrees = 12;\n\t\tint markTotalTrees = markPlantsTrees + markTreesInYard;\n\n\n /* Exercise 31\n 31. Joy will see her grandma in two days. How many hours until she sees\n her?\n */\n\t\tint joyDaysToGrandma = 2;\n\t\tint hoursInADay = 24;\n\t\tint hoursToSeeGrandma = joyDaysToGrandma * hoursInADay;\n\n\n /* Exercise 32\n 32. Kim has 4 cousins. She wants to give each one 5 pieces of gum. How\n much gum will she need?\n */\n\t\tint kimCousins = 4;\n\t\tint kimGumDonation = 5;\n\t\tint neededGumCount = kimGumDonation * kimCousins;\n\n\n /* Exercise 33\n 33. Dan has $3.00. He bought a candy bar for $1.00. How much money is\n left?\n */\n\t\tdouble danWallet = 3.00;\n\t\tdouble candyCost = 1.00;\n\t\tdouble danMoneyLeft = danWallet - candyCost;\n\n /* Exercise 34\n 34. 5 boats are in the lake. Each boat has 3 people. How many people are\n on boats in the lake?\n */\n\t\tint boatsOnTheLake = 5;\n\t\tint peopleInEachBoats = 3;\n\t\tint peopleOnWater = boatsOnTheLake * peopleInEachBoats;\n\n\n /* Exercise 35\n 35. Ellen had 380 legos, but she lost 57 of them. How many legos does she\n have now?\n */\n\t\tint totalLegos = 380;\n\t\tint legosLost = 57;\n\t\tint leftsLeft= totalLegos - legosLost;\n\n\n /* Exercise 36\n 36. Arthur baked 35 muffins. How many more muffins does Arthur have to\n bake to have 83 muffins?\n */\n\t\tint wantsToBake = 83;\n\t\tint bakedMuffins = 35;\n\t\tint leftToBake = wantsToBake - bakedMuffins;\n\n\n /* Exercise 37\n 37. Willy has 1400 crayons. Lucy has 290 crayons. How many more\n crayons does Willy have then Lucy?\n */\n\t\tint willyCrayons = 1400;\n\t\tint lucyCrayons = 290;\n\t\tint differenceInCrayons = willyCrayons - lucyCrayons;\n\n\n /* Exercise 38\n 38. There are 10 stickers on a page. If you have 22 pages of stickers, how\n many stickers do you have?\n */\n\t\tint stickersPerPage = 10;\n\t\tint pagesOfStickers = 22;\n\t\tint totalStickers = stickersPerPage * pagesOfStickers;\n\n\n /* Exercise 39\n 39. There are 96 cupcakes for 8 children to share. How much will each\n person get if they share the cupcakes equally?\n */\n\t\tdouble totalCupcakes = 96;\n\t\tdouble numberOfChildren = 8;\n\t\tdouble cupcakesPerChild = totalCupcakes / numberOfChildren;\n\n\n /* Exercise 40\n 40. She made 47 gingerbread cookies which she will distribute equally in\n tiny glass jars. If each jar is to contain six cookies each, how many\n cookies will not be placed in a jar?\n */\n\t\tint totalCookies = 47;\n\t\tint cookiesInEachJar = 6;\n\t\tint leftoverCookies = totalCookies % cookiesInEachJar;\n\n\n /* Exercise 41\n 41. She also prepared 59 croissants which she plans to give to her 8\n neighbors. If each neighbor received and equal number of croissants,\n how many will be left with Marian?\n */\n\t\tint totalCroissants = 59;\n\t\tint croissantsToNeighbors = 8;\n\t\tint leftOverCroissants = totalCroissants % croissantsToNeighbors;\n\n\n\n /* Exercise 42\n 42. Marian also baked oatmeal cookies for her classmates. If she can\n place 12 cookies on a tray at a time, how many trays will she need to\n prepare 276 oatmeal cookies at a time?\n */\n\t\tint cookiesAtATime = 276;\n\t\tint cookiesPerTray = 12;\n\t\tint traysNeeded = cookiesAtATime / cookiesPerTray;\n\n\n /* Exercise 43\n 43. Marian’s friends were coming over that afternoon so she made 480\n bite-sized pretzels. If one serving is equal to 12 pretzels, how many\n servings of bite-sized pretzels was Marian able to prepare?\n */\n\t\tint pretzelsMade = 480;\n\t\tint oneServing = 12;\n\t\tint servingsPrepared = pretzelsMade / oneServing;\n\n\n /* Exercise 44\n 44. Lastly, she baked 53 lemon cupcakes for the children living in the city\n orphanage. If two lemon cupcakes were left at home, how many\n boxes with 3 lemon cupcakes each were given away?\n */\n\t\tint totalCupcakesForChildren = 53;\n\t\tint cupcakesPerBox = 3;\n\t\tint cupcakeBoxesGiven = totalCupcakesForChildren / cupcakesPerBox;\n\n\n\n /* Exercise 45\n 45. Susie's mom prepared 74 carrot sticks for breakfast. If the carrots\n were served equally to 12 people, how many carrot sticks were left\n uneaten?\n */\n\t\tint preparedSticks = 74;\n\t\tint sticksPerPerson = 12;\n\t\tint sticksLeft = preparedSticks % sticksPerPerson;\n\n\n /* Exercise 46\n 46. Susie and her sister gathered all 98 of their teddy bears and placed\n them on the shelves in their bedroom. If every shelf can carry a\n maximum of 7 teddy bears, how many shelves will be filled?\n */\n\t\tint totalTeddyBears = 98;\n\t\tint bearsPerShelf = 7;\n\t\tint shelfsNeeded = totalTeddyBears / bearsPerShelf;\n\n\n /* Exercise 47\n 47. Susie’s mother collected all family pictures and wanted to place all of\n them in an album. If an album can contain 20 pictures, how many\n albums will she need if there are 480 pictures?\n */\n\t\tint totalPictures = 480;\n\t\tint picsPerAlbum = 20;\n\t\tint numberOfAlbums = totalPictures / picsPerAlbum;\n\n\n /* Exercise 48\n 48. Joe, Susie’s brother, collected all 94 trading cards scattered in his\n room and placed them in boxes. If a full box can hold a maximum of 8\n cards, how many boxes were filled and how many cards are there in\n the unfilled box?\n */\n\t\tint totalCards = 94;\n\t\tint boxCanHold = 8;\n\t\tint boxesFilled = totalCards / boxCanHold;\n\t\tint cardsInUnfilledBox = totalCards % boxCanHold;\n\n\n /* Exercise 49\n 49. Susie’s father repaired the bookshelves in the reading room. If he has\n 210 books to be distributed equally on the 10 shelves he repaired,\n how many books will each shelf contain?\n */\n\t\tint totalBooks = 210;\n\t\tint shelves = 10;\n\t\tint booksPerShelve = totalBooks / shelves;\n\n\n /* Exercise 50\n 50. Cristina baked 17 croissants. If she planned to serve this equally to\n her seven guests, how many will each have?\n */\n\t\tdouble cristinaTotalCroissants = 17;\n\t\tdouble guests = 7;\n\t\tdouble croissantsPerGuest = cristinaTotalCroissants / guests;\n\n\n\t /* Exercise 51\n\t 51. Bill and Jill are house painters. Bill can paint a 12 x 14 room in 2.15 hours, while Jill averages\n\t 1.90 hours. How long will it take the two painters working together to paint 5 12 x 14 rooms?\n\t Hint: Calculate the hourly rate for each painter, combine them, and then divide the total walls in feet by the combined hourly rate of the painters.\n\t */\n\t\tdouble billHourlyRate = (12 * 14) / 2.15;\n\t\tdouble jillHourlyRate = (12 * 14) / 1.90;\n\t\tdouble timeToPaintBigRoom = (5 * 12 * 14) / (jillHourlyRate + billHourlyRate);\n\n\n\n\t /* Exercise 52\n\t 52. Create and assign variables to hold a first name, last name, and middle initial. Using concatenation,\n\t\tbuild an additional variable to hold the full name in the order of last name, first name, middle initial. The\n\t\tlast and first names should be separated by a comma followed by a space, and the middle initial must end\n\t\twith a period. Use \"Grace\", \"Hopper, and \"B\" for the first name, last name, and middle initial.\n\t\tExample: \"John\", \"Smith, \"D\" —> \"Smith, John D.\"\n\t */\n\t\tString first_Name = \"Grace\";\n\t\tString last_Name = \"Hopper\";\n\t\tString middle_Initial = \"B\";\n\t\tString full_Name = last_Name + \", \" + first_Name + \" \" + middle_Initial + \".\";\n\n\n\t /* Exercise 53\n\t 53. The distance between New York and Chicago is 800 miles, and the train has already travelled 537 miles.\n\t What percentage of the trip as a whole number has been completed?\n\t */\n\t\tdouble totalDistance = 800;\n\t\tdouble trainTravelled = 537;\n\t\tdouble percentageTravelledFraction = (trainTravelled / totalDistance) * 100;\n\t\tint percentageTravelled = (int)percentageTravelledFraction;\n\n\n\t}", "public static void main(String[] args) {\n System.out.println(solution(\"1 + 2\"));\n System.out.println(solution(\"1 * 2 + 3\"));\n System.out.println(solution(\"1 + 2 * 3\"));\n System.out.println(solution(\"1 + 2 * 3 - 4 / 2 + 6 / 2 - 7\"));\n\n System.out.println(solution(\"1 + 2 * (3 * (1 + 2))\"));\n }", "@Override\n\tpublic void challenge9() {\n\n\t}", "public static void main(String[] args) {\n\t\tint[] arr= {6,9,5,7,4};\r\n\t\t//int[] arr= {3,9,9,3,5,7,2};\r\n\t\t//int[] arr= {1,5,3,6,7,6,5};\r\n\t\tint[] tmp=solution(arr);\r\n\t\tfor(int i=0;i<tmp.length;i++)\r\n\t\t\tSystem.out.print(tmp[i]+\" \");\r\n\t}" ]
[ "0.6958662", "0.66130364", "0.6479223", "0.627459", "0.62652946", "0.61614704", "0.6114777", "0.60927606", "0.60869235", "0.60852385", "0.6060058", "0.60538334", "0.6045786", "0.6040958", "0.6040958", "0.6010636", "0.59932274", "0.59896827", "0.59694463", "0.5961149", "0.5952616", "0.5920781", "0.59187424", "0.5903497", "0.5888174", "0.58856744", "0.586665", "0.58300686", "0.58191717", "0.58027625", "0.57503396", "0.57305276", "0.5724994", "0.57223445", "0.5719284", "0.5717555", "0.571754", "0.5708128", "0.57031715", "0.5697779", "0.56915396", "0.5690088", "0.5680988", "0.56778383", "0.56753266", "0.5667133", "0.56494516", "0.5636375", "0.5635942", "0.56335145", "0.56314945", "0.56292486", "0.56276244", "0.56206846", "0.5618828", "0.56137794", "0.560024", "0.55980605", "0.55972385", "0.559452", "0.55919236", "0.5588854", "0.5583181", "0.55731064", "0.55707484", "0.5565813", "0.55598384", "0.5558584", "0.5554955", "0.5553928", "0.5551845", "0.5547109", "0.55469894", "0.5545723", "0.55442226", "0.5542657", "0.55424064", "0.55409634", "0.552669", "0.55224735", "0.552146", "0.55184555", "0.5518287", "0.5517332", "0.5516459", "0.55090153", "0.55050874", "0.5499845", "0.5486677", "0.54860693", "0.54783356", "0.5474479", "0.5469048", "0.54687506", "0.54644334", "0.54604346", "0.5459241", "0.54579675", "0.54533887", "0.5451303", "0.5450577" ]
0.0
-1
JPA repository for ProjectGenerationTask table
@Repository public interface ProjectGenerationTaskRepository extends JpaRepository<ProjectGenerationTask, String> { List<ProjectGenerationTask> findAllByStorageLocation(String storageLocation); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Repository\npublic interface TaskRepository extends JpaRepository<Task, Long> {\n\n}", "@Repository\npublic interface RepositoryOrgTaskTracker extends JpaRepository<OrgTaskTracker, Integer>{\n}", "public interface TaskReporitory extends JpaRepository<Task, Integer>, JpaSpecificationExecutor<Task>, CrudRepository<Task, Integer> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface InternshipTaskRepository extends JpaRepository<InternshipTask, Long> {\n\n /**\n * 根据实习表 ID 查询实习任务\n * @param interId\n * @return\n */\n List<InternshipTask> findByInterIdId(Long interId);\n\n}", "public interface TaskRepository extends JpaRepository<Task, Long> {\n public Task findBySymbol(String symbol);\n}", "@Repository\npublic interface TaskRepository extends JpaRepository<Tasks,Integer>\n{\n Tasks findByUid(int uid);\n}", "public interface TestCaseRepository extends JpaRepository<TestCase,Integer>{\n\n List<TestCase> getByProjectId(Integer projectId) ;\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ProjectHistoryRepository extends JpaRepository<ProjectHistory, Long> {\n\n}", "@SuppressWarnings(\"unused\")\npublic interface TaskRepository extends JpaRepository<Task,Long>, QueryDslPredicateExecutor<Task> {\n\n Task findByName(String name);\n}", "public interface TaskRepository extends CrudRepository<Tasks,Long> {\n @Query(\"select t from Tasks t where t.status=:status\")\n List<Tasks> getTasksforStatus(@Param(\"status\") Status status);\n}", "public interface TaskListRepository extends JpaRepository<TaskList, Long> {\n TaskList findByUserName(String userName);\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface TaskRepository extends JpaRepository<Task, Long>, JpaSpecificationExecutor<Task> {\n Optional<Task> findByName(String name);\n}", "@Transactional\npublic interface ProjectStageMovementRepository extends JpaRepository<ProjectStageMovement, Long> {\n}", "public interface GitProjectRepository extends JpaRepository<GitProject, Long> {\n\n\tList<GitProject> findByOwnerLogin(String login);\n}", "public interface GoalRepository extends JpaRepository<Goal,Long> {\n\n}", "public List<TaskMaster> retrieveAllTaskOfProject(Long projectId);", "@Transactional\npublic interface ProjectStageActionMovementRepository extends JpaRepository<ProjectStageActionMovement,Long> {\n}", "public interface RunnerRepository extends JpaRepository<Runner,Long> {\n}", "public interface ProTableRepository extends JpaRepository<ProTable,Integer>{\n public List<ProTable> findByName(String name);\n}", "public interface SchedulerWorkRepository extends JpaRepository<SchedulerWork, Integer> {\n\n SchedulerWork findByUserID(Integer userId);\n}", "public interface InstitutePlayGroundInfoRepository extends JpaRepository<InstitutePlayGroundInfo,Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface TournamentPuttingAnalysisRepository extends JpaRepository<TournamentPuttingAnalysis, Long> {\n\n}", "public Project getTasks(String projectId) {\n try {\n\n String selectProject = \"select * from PROJECTS where PROJECT_ID = ?\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(selectProject);\n ps.setString(1, projectId);\n ResultSet rs = ps.executeQuery();\n if (rs.next()) {\n String startdate = rs.getString(\"STARTDATE\");\n String invoicesent = rs.getString(\"INVOICESENT\");\n String hours = rs.getString(\"HOURS\");\n String client = \"\";\n String duedate = rs.getString(\"DUEDATE\");\n String description = rs.getString(\"DESCRIPTION\");\n Project p = new Project(client, description, projectId,\n duedate, startdate, hours, duedate, duedate,\n invoicesent, invoicesent);\n rs.close();\n ps.close();\n return p;\n } else {\n return null;\n }\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return null;\n }\n }", "@RestResource(path=\"task\")\npublic interface TaskRepository extends CrudRepository<Task,Integer> {\n}", "public interface PackagesRepository extends JpaRepository<Packages,Long> {\n\n}", "public interface RepairRepository extends JpaRepository<Repair,Long> {\n\n}", "public interface MeetingRepository extends JpaRepository<Meeting, Long> {\n}", "@Repository\npublic interface DBFileRepository extends JpaRepository<DBFile, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ClassDurationRepository extends JpaRepository<ClassDuration, Long> {\n\n}", "@Query(\"SELECT * FROM \" + TABLE)\n List<Task> getAllSync();", "@Repository(value = \"competitionRepository\")\ninterface CompetitionRepository extends JpaRepository<CompetitionModel, Long> {\n\n}", "@Repository\npublic interface RidingTerrainRepository extends JpaRepository<RidingTerrain, Long>{\n \n}", "public interface AssignmentRepository extends JpaRepository<Assignment, Integer>, JpaSpecificationExecutor<Assignment> {\n}", "public interface DocumentParameterRepository extends JpaRepository<DocumentParameterEntity, Long> {\n}", "public interface TaskRepository extends MongoRepository<Task, String> {\n\n List<Task> findByBoardIdAndStatusNot(String boardId, TaskStatus taskStatus);\n\n List<Task> findByStatus(TaskStatus taskStatus);\n}", "public interface LabelRepository extends JpaRepository<Label, String> {\n}", "@Repository\npublic interface QuestionnaireJpaRepository extends SimpleJpaBulkRepository<Questionnaire,Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface TimetableRepository extends JpaRepository<Timetable, Long>, JpaSpecificationExecutor<Timetable> {\n\n}", "public List<TaskMaster> retrieveTaskByProjectId(Long projectId);", "@Query(\"SELECT * FROM Project WHERE id = :projectId\")\n LiveData<Project> getProject(long projectId);", "public interface StudioRepository extends CrudRepository<Studio, Long> {\n}", "public interface TPUserRepository extends JpaRepository<TPUser, Long> {\n\n}", "public interface Projetos extends JpaRepository<Projeto,Long> {\n}", "public List<TaskDefinition> getTasksDefinition() throws DaoRepositoryException;", "public interface RoomBanningRepository extends JpaRepository<RoomBanning, Long> {\n}", "public interface RequirementRepository /*extends CrudRepository<Requirement, Long>*/ {\n}", "@Repository\npublic interface PersonaRepository extends JpaRepository<Persona, Integer> {\n \n}", "@Repository\npublic interface SuiteRepository extends JpaRepository<SuiteRoom, Integer> {\n}", "@Repository\npublic interface SimulationRepository extends CrudRepository<Simulation, Serializable> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface SettingTestimonialRepository extends JpaRepository<SettingTestimonial, Long> {\n\n}", "@Repository\npublic interface TableRegionRepository extends JpaRepository<TableRegion, Long> {\n\n List<TableRegion> findAll();\n\n TableRegion findById(Long id);\n\n TableRegion findByTrMark(int mark);\n}", "@Query(\"SELECT * FROM \" + TABLE + \" WHERE mId == :id\")\n @Nullable\n Task get(long id);", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ShipmentActivityRepository extends JpaRepository<ShipmentActivity, Long> {}", "public interface ProjectResearchRepository extends JpaRepository<ProjectResearch, Integer> {\n\n\n public List<ProjectResearch> findByProjectIdAndPreResearchId(Integer projectId, Integer preResearchId);\n\n public List<ProjectResearch> findByProjectId(Integer projectId);\n\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface SequenceRepository extends JpaRepository<Sequence, Long> {\n\n}", "public interface PCDao extends JpaRepository<PC, Integer> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ContractDocumentEntryRowRepository extends JpaRepository<ContractDocumentEntryRow, Long> {\n\n}", "@Repository\npublic interface SprintRepository extends JpaRepository<Sprint,Integer> {\n}", "@Repository\npublic interface QualityParameterRepository extends JpaRepository<QualityParameter, Integer> {\n\n}", "@Repository\npublic interface IterationRepository extends BaseRepository<Iteration, String> {\n}", "public interface PortRepository extends CrudRepository<Port, Long> {\n}", "@Repository\npublic interface CommitRepository extends JpaRepository<CommitEntity,Long> {\n\n Optional<CommitEntity> findByCommitId(String commitId);\n boolean existsByCommitId(String commitId);\n List<CommitEntity> findAllByClassFile(ClassFileEntity classFile);\n Page<CommitEntity> findAllByClassFile_Project(ProjectEntity project, Pageable pageable);\n}", "public interface ConfigRepository extends JpaRepository<Config,Long> {\n}", "public interface CompraRepository extends JpaRepository<Compra,Long> {\n\n}", "public Project getProject(Long projectId);", "public interface GirosLinRepository extends JpaRepository<GirosLin,Long> {\n\n}", "public interface BulkRequestItemDetailsRepository extends JpaRepository<BulkRequestItemEntity, Integer> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface OrganisationGroupsRepository extends JpaRepository<OrganisationGroups, Long> {\n\n}", "@Repository\npublic interface PersonRepository extends JpaRepository<Person, Long> {\n}", "public interface BatchStepExecutionDao extends JpaRepository<BatchJobExecution,Long> {\n\n @SuppressWarnings(\"JpaQlInspection\")\n @Query(\"select u from BatchStepExecution u where u.jobExecutionId = ?1\")\n List<BatchStepExecution> findStepsByjobExecutionId(long jobExecutionId);\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PRoulRepository extends JpaRepository<PRoul, Long> {\n}", "@SuppressWarnings(\"unused\")\npublic interface Tbc_grupo_analiseRepository extends JpaRepository<Tbc_grupo_analise,Long> {\n\n}", "@Repository\npublic interface ProdutoRepository extends JpaRepository<Produto, Integer>{\n \t\n}", "@Override\r\n\tpublic List<Task> findAll() {\n\t\treturn taskRepository.findAll();\r\n\t}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface HorarioDisponivelRepository extends JpaRepository<HorarioDisponivel, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface HrmsActionDisciplinaryRepository extends JpaRepository<HrmsActionDisciplinary, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface TribunalRepository extends JpaRepository<Tribunal, Long> {\n\n}", "public interface PegawaiRepository extends JpaRepository<Pegawai, Long> {\n\n\n}", "@Repository\npublic interface YonyouPersonImportRepository extends JpaRepository<YonyouPersonImport,String> {\n\n YonyouPersonImport getYonyouPersonImportByPersonnum(@Param(\"personnum\") String personnum);\n\n YonyouPersonImport getYonyouPersonImportByPersonnumAndAndEmploymentstatus(String personnum,String status);\n}", "public String createTaskDefinition(TaskDefinition tasDef) throws DaoRepositoryException;", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CourrierArriveRepository extends JpaRepository<CourrierArrive, Long> {\n\n}", "@Repository(\"emailLogRepository\")\npublic interface EmailLogRepository extends JpaRepository<EmailLogDB, Integer>{\n}", "public interface RimWideRepository extends JpaRepository<RimWide, Long> {\n}", "public interface PlanDao extends JpaRepository<Plan,Long> {\n Plan findByPrepodAndStartYear(Prepod prepod, int startYear);\n}", "public interface ProjectRepository extends JpaRepository<Project,Long> {\n @Query(\"select p from Project p where p.projectName= :name and p.rank= :rank and p.projectDate= :date\")\n Project withNameAndRankAndDateQuery(@Param(\"name\") String name, @Param(\"rank\") String rank, @Param(\"date\") Date date);\n Project findById(Long id);\n List<Project> findByCaptainCollege(String captainCollege);\n\n Page<Project> findByCaptainCollege(String captainCollege, Pageable pageable);\n @Query(\"select p from Project p where year(p.projectDate) = ?1\")\n Page<Project> findByProjectDate(int year, Pageable pageable);\n\n Page<Project> findByLevel(String level, Pageable pageable);\n\n Page<Project> findByRank(String rank, Pageable pageable);\n\n Page<Project> findByState(String state, Pageable pageable);\n\n Page<Project> findByPhotoStatus(String photoStatus, Pageable pageable);\n @Query(\"select p from Project p where year(p.projectDate) = ?1 and p.captainCollege = ?2\")\n Page<Project> findByProjectDateAndCaptainCollege(int year,String captainCollege,Pageable pageable);\n\n Page<Project> findByLevelAndCaptainCollege(String level,String captainCollege, Pageable pageable);\n\n Page<Project> findByRankAndCaptainCollege(String rank,String captainCollege, Pageable pageable);\n\n Page<Project> findByStateAndCaptainCollege(String state,String captainCollege, Pageable pageable);\n\n Page<Project> findByPhotoStatusAndCaptainCollege(String photoStatus,String captainCollege, Pageable pageable);\n\n @Modifying\n @Transactional\n @Query(\"delete from Project p where p.id=?1\")\n void removeById(Long id);//如果用自己的delete语句,则不会级联删除学生;用jpa自带的delete函数,就可以有级联删除\n\n @Modifying\n @Transactional\n @Query(\"update Project p set p.state= ?2,p.msgForbid = ?3 where p.id= ?1\")\n int setProjectState(Long id,String state,String msgForbid);\n// @Modifying\n// @Transactional\n// @Query(\"update Project p set p.projectName=?1, p.level=?2, p.rank=?3, \" +\n// \"p.captainCollege=?4, p.teacher=?5, p.note=?6, p.projectDate=?7,\" +\n// \"p.photoStatus=?8, p.filePath=?9, p.state=?10, p.msgForbid=?11\" +\n// \" where p.id = ?12\")\n// void update(String projectName, String level, String rank, String captainCollege,\n// String teacher, String note, Date projectDate, String photoStatus,\n// String filePath, String state, String msgForbid, long id);\n}", "public interface GirlMapper extends JpaRepository<Girl,Integer>{\n\n}", "public interface ActionRepository extends JpaRepository<Action, Integer> {\n\n}", "public interface MaintenanceDao extends JpaRepository<Maintenance, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface EventTimesRepository extends JpaRepository<EventTimes, Long>, JpaSpecificationExecutor<EventTimes> {\n}", "@Repository\r\npublic interface AssignmentRepository extends CrudRepository<Assignment, String> {\r\n\r\n}", "public interface ProjectRepository extends BasePagingAndSortingRepository<ProjectEntity, Long> {\n\n boolean changeStatus(ProjectEntity project, StatusEnum newStatus);\n\n List<ProjectEntity> findByOwner(String client);\n\n List<ProjectEntity> findForUser(String client);\n\n List<ProjectEntity> findForMember(Long memberId, String client);\n\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ProfissionalSaudeRepository extends JpaRepository<ProfissionalSaude, Long> {\n}", "@Repository\npublic interface IPaymentRepository extends JpaRepository<Payment, Long> {\n}", "public interface IDbOperator {\n\n TaskEntity getTaskBySeqId(long seqId);\n\n void saveOrUpdate(TaskEntity taskEntity);\n\n}", "public interface RoomRepository extends JpaRepository<Room, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface TauxMelangeRepository extends JpaRepository<TauxMelange, Long> {\n\n}", "public interface GirlRepository extends JpaRepository<Girl, Integer> {\n\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface TaskRepository extends JpaRepository<Task,Long> {\n\n @Query(\"select task from Task task where task.user.login = ?#{principal.username}\")\n List<Task> findByUserIsCurrentUser();\n\n}", "@Repository\n@Transactional\npublic interface JobDescRepository extends CrudRepository<JobDesc, String> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface SysPostRepository extends JpaRepository<SysPost, Long> {\n}" ]
[ "0.7182898", "0.6944843", "0.6762257", "0.671328", "0.6706502", "0.66581523", "0.6411793", "0.633582", "0.63043976", "0.61934084", "0.61757714", "0.617084", "0.6148031", "0.6127765", "0.608325", "0.5957579", "0.59516615", "0.59406936", "0.592975", "0.59077543", "0.5906148", "0.58875805", "0.58735096", "0.5867877", "0.58659714", "0.58631045", "0.58595926", "0.57984924", "0.57953125", "0.57878083", "0.57716197", "0.5766927", "0.5757267", "0.5737238", "0.57272285", "0.5727108", "0.57211536", "0.5708842", "0.5702567", "0.5688376", "0.5686815", "0.5679473", "0.56595296", "0.56564975", "0.56466746", "0.5643648", "0.56408924", "0.56323606", "0.5630492", "0.56245714", "0.56214255", "0.56121516", "0.56106216", "0.5602708", "0.5601546", "0.55968064", "0.5596265", "0.5592562", "0.558691", "0.5581848", "0.5570047", "0.5569954", "0.55677956", "0.5567429", "0.5558135", "0.55551046", "0.55520475", "0.5547451", "0.55387896", "0.5533245", "0.55330646", "0.55243206", "0.552063", "0.5519898", "0.55182695", "0.5518032", "0.5516673", "0.5516148", "0.5515136", "0.5514357", "0.55111367", "0.5508754", "0.5508431", "0.5506008", "0.55038875", "0.5503863", "0.5503255", "0.55014867", "0.549838", "0.5497673", "0.5490016", "0.5485561", "0.54839325", "0.5480975", "0.5477669", "0.5474853", "0.5472371", "0.54661745", "0.546347", "0.54613876" ]
0.77930194
0
ensure locales are loaded
@Test public void testConfigLoading(){ assertEquals(2,occurrencePortalConfig.getSupportedLocale().size()); assertNotNull(occurrencePortalConfig.getResourceBundle(Locale.ENGLISH)); assertEquals("cc0",occurrencePortalConfig.getLicenseShortName("http://creativecommons.org/publicdomain/zero/1.0/")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test public void testLocales() throws Exception\n {\n assumeJvm();\n Locale[] locales = new MPXReader().getSupportedLocales();\n for (Locale locale : locales)\n {\n testLocale(locale);\n }\n }", "public static void loadStrings() {\n\t\tloadStrings(Locale.getDefault());\n\t}", "private void init() {\n\t\t\n\t\tPropertiesManager propertiesManager = PropertiesManager.getInstance();\n\t\tFile localeDirectory = new File(propertiesManager.getProperty(\"locale.directory\", LOCALE_DIRECTORY));\n\n\t\tlocales = new ArrayList<Locale>();\n\n\t\ttry {\n\t\t\t\n\t\t\tClassUtils.addClassPathFile(localeDirectory);\n\t\t\t\n\t\t\t// Находим все доступные локали\n\t\t\tlocales = findAvailableLocales(localeDirectory);\n\n\t\t} catch(Exception ignore) {}\n\n\t\tfallbackLocale = Locale.ENGLISH;\n\t\tcontrol = new Control();\n\n\t\tif(!locales.contains(Locale.ENGLISH)) {\n\t\t\tlocales.add(0, fallbackLocale);\n\t\t}\n\n\t\tdefaultLocale = locales.get(locales.indexOf(Locale.ENGLISH));\n\t\t\n\t\tString language = propertiesManager.getProperty(\"locale.language\", \"\");\n\t\tString country = propertiesManager.getProperty(\"locale.country\", \"\");\n\t\tString variant = propertiesManager.getProperty(\"locale.variant\", \"\");\n\t\t\n\t\tLocale locale = new Locale(language, country, variant);\n\t\t\n\t\tif(locales.contains(locale)) {\n\t\t\tlocale = locales.get(locales.indexOf(locale));\n\t\t} else {\n\t\t\tlocale = defaultLocale;\n\t\t}\n\n\t\tsetLocale(locale);\n\t\t\n\t\tif(FontEditor.DEBUG) {\n\t\t\t\n\t\t\tfor(Locale l : locales) {\n\t\t\t\tSystem.out.println(\"locale found -> \" + l.getDisplayLanguage(Locale.ENGLISH));\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Total locale(s) found: \" + locales.size());\n\t\t\tSystem.out.println();\n\t\t}\n//System.out.println(\">>> \" + getValue(\"shitd\"));\n\t}", "boolean hasLocale();", "private void loadLocale() {\n\t\tSharedPreferences sharedpreferences = this.getSharedPreferences(\"CommonPrefs\", Context.MODE_PRIVATE);\n\t\tString lang = sharedpreferences.getString(\"Language\", \"en\");\n\t\tSystem.out.println(\"Default lang: \"+lang);\n\t\tif(lang.equalsIgnoreCase(\"ar\"))\n\t\t{\n\t\t\tmyLocale = new Locale(lang);\n\t\t\tsaveLocale(lang);\n\t\t\tLocale.setDefault(myLocale);\n\t\t\tandroid.content.res.Configuration config = new android.content.res.Configuration();\n\t\t\tconfig.locale = myLocale;\n\t\t\tthis.getBaseContext().getResources().updateConfiguration(config, this.getBaseContext().getResources().getDisplayMetrics());\n\t\t\tCommonFunctions.lang = \"ar\";\n\t\t}\n\t\telse{\n\t\t\tmyLocale = new Locale(lang);\n\t\t\tsaveLocale(lang);\n\t\t\tLocale.setDefault(myLocale);\n\t\t\tandroid.content.res.Configuration config = new android.content.res.Configuration();\n\t\t\tconfig.locale = myLocale;\n\t\t\tthis.getBaseContext().getResources().updateConfiguration(config, this.getBaseContext().getResources().getDisplayMetrics());\n\t\t\tCommonFunctions.lang = \"en\";\n\t\t}\n\t}", "public void updateLocale() {\r\n\t\tsuper.updateLocale();\r\n\t}", "void localizationChaneged();", "public static void setLocale(Locale locale) {\n// Recarga las entradas de la tabla con la nueva localizacion \n RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME, locale);\n}", "private LocaleManager() {\n\t\t\n\t\tinit();\n\t}", "public void setFallbackLocale(Locale locale) { this.fallbackLocale = locale; }", "@Test\n public void testDetermineSupportedLocale() throws Exception {\n final File messagesFile = new File(\"messages_es.properties\");\n final Locale supportedLocale = parser.determineSupportedLocale(messagesFile);\n assertThat(supportedLocale.getLanguage()).isEqualTo(\"es\");\n assertThat(supportedLocale.getCountry()).isEmpty();\n }", "public static void resolveRestApiLocale() {\n\t\t((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getRequest()\n\t\t\t\t.setAttribute(LocaleResolver.REST_API_LOCALE, CoreResources.getSystemLocale());\n\t\tresolveLocale();\n\t}", "public void localize(){\n String file=System.getProperty(\"user.home\")+ File.separator + \"rex.properties\";\n Properties rexProp = new Properties();\n try{\n\n rexProp.load(new FileInputStream(new File(file)));\n \n }catch(Exception e){\n S.out(\"Error reading rex.properties file\"); \n }\n strLanguage= rexProp.getProperty(\"Language\");\n \n if (strLanguage!=\"\"){\n Locale oLang= new Locale(strLanguage);\n I18n.setCurrentLocale(oLang);\n }\n else{\n I18n.setCurrentLocale(Locale.getDefault()); //set default locale\n }\n\n }", "@PostConstruct\n public void init()\n throws RedbackServiceException\n {\n getI18nProperties( \"en\" );\n getI18nProperties( \"fr\" );\n }", "public void loadLocale() {\n\n\t\tSystem.out.println(\"Murtuza_Nalawala\");\n\t\tString langPref = \"Language\";\n\t\tSharedPreferences prefs = getSharedPreferences(\"CommonPrefs\",\n\t\t\t\tActivity.MODE_PRIVATE);\n\t\tString language = prefs.getString(langPref, \"\");\n\t\tSystem.out.println(\"Murtuza_Nalawala_language\" + language);\n\n\t\tchangeLang(language);\n\t}", "Set<Locale> getManagedLocales();", "public void componentsLocaleChanged() {\n\t\ttextRes = PeralexLibsBundle.getResource();\n\n\t\tlocaleChanged();\n\t}", "public static void loadStrings(Locale locale) {\n\t\tFileHandle baseFileHandle = Gdx.files.internal(\"i18n/Strings\");\n\t\tstrings = I18NBundle.createBundle(baseFileHandle, locale);\n\t}", "private void ini_Translations()\r\n\t{\r\n\t\tLogger.DEBUG(\"ini_Translations\");\r\n\t\tnew Translation(\"data\", FileType.Internal);\r\n\t\ttry\r\n\t\t{\r\n\t\t\tTranslation.LoadTranslation(\"data/lang/en-GB/strings.ini\");\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void initialSystemLocale(Context context)\n {\n LogpieSystemSetting setting = LogpieSystemSetting.getInstance(context);\n if (setting.getSystemSetting(KEY_LANGUAGE) == null)\n {\n String mLanguage = Locale.getDefault().getLanguage();\n if (mLanguage.equals(Locale.CHINA) || mLanguage.equals(Locale.CHINESE))\n {\n setting.setSystemSetting(KEY_LANGUAGE, CHINESE);\n }\n else\n {\n setting.setSystemSetting(KEY_LANGUAGE, ENGLISH);\n }\n }\n }", "public static ULocale[] getAvailableLocales() {\n/* 212 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void initLanguage() {\n try {\n Resources resources = getApplicationContext().getResources();\n DisplayMetrics displayMetrics = resources.getDisplayMetrics();\n Configuration configuration = resources.getConfiguration();\n Locale locale = new Locale(\"es\", \"ES\");\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {\n configuration.setLocale(locale);\n } else {\n //noinspection deprecation\n configuration.locale = locale;\n }\n resources.updateConfiguration(configuration, displayMetrics);\n } catch (Throwable throwable) {\n Log.d(TAG, \"Couldn't apply ES language.\", throwable);\n }\n }", "public static boolean reinit() {\n\t\tif (rb != null\n\t\t\t\t&& Config.getInstance().getLocale().equals(rb.getLocale()))\n\t\t\treturn false;\n\n\t\tif (Config.getInstance().isFileLocalized()) {\n\t\t\ttry {\n\t\t\t\tClassLoader cl = URLClassLoader\n\t\t\t\t\t\t.newInstance(new URL[] { PathManager.getInstance()\n\t\t\t\t\t\t\t\t.getLocalePath().toURI().toURL() });\n\t\t\t\trb = ResourceBundle.getBundle(\"lang\", Config.getInstance()\n\t\t\t\t\t\t.getLocale(), cl);\n\t\t\t} catch (Exception e) {\n\t\t\t\tLOG.severe(e.toString());\n\t\t\t}\n\n\t\t} else {\n\t\t\trb = ResourceBundle.getBundle(\"genlib.locales.lang\", Config\n\t\t\t\t\t.getInstance().getLocale());\n\t\t}\n\n\t\tLOG.log(Level.INFO, String.format(PermMessages._loc_changed, Config\n\t\t\t\t.getInstance().getLocale()));\n\t\treturn true;\n\t}", "public void initMessagesIfNeeded() {\n\t\tif (this.i18nFile.lastModified() != this.lastModified) {\n\t\t\tinitMessages();\n\t\t\tthis.lastModified = this.i18nFile.lastModified();\n\t\t}\n\t}", "synchronized void ensureInitialized() {\n\t\tsynchronized (syncLock) {\n\t\t\tfinal long var2 = StatCollector\n\t\t\t\t\t.getLastTranslationUpdateTimeInMilliseconds();\n\n\t\t\tif (var2 == lastTranslationUpdateTimeInMilliseconds)\n\t\t\t\treturn;\n\n\t\t\tlastTranslationUpdateTimeInMilliseconds = var2;\n\t\t\tchildren.clear();\n\t\t}\n\n\t\ttry {\n\t\t\tinitializeFromFormat(StatCollector.translateToLocal(key));\n\t\t} catch (final ChatComponentTranslationFormatException var6) {\n\t\t\tchildren.clear();\n\n\t\t\ttry {\n\t\t\t\tinitializeFromFormat(StatCollector.translateToFallback(key));\n\t\t\t} catch (final ChatComponentTranslationFormatException var5) {\n\t\t\t\tthrow var6;\n\t\t\t}\n\t\t}\n\t}", "@BeforeClass\n public static void initGlobal()\n {\n Locale.setDefault(Locale.ENGLISH);\n\n ValidatorFactory factory = Validation.buildDefaultValidatorFactory();\n validator = factory.getValidator();\n }", "public DefaultLocalesManager() {\r\n\t}", "Locale getDefaultLocale();", "Locale getDefaultLocale();", "@BeforeEach\n public void setUp() throws Exception\n {\n \tLocale.setDefault( Locale.ENGLISH );\n }", "private void ensureLanguageIsDefined() {\n SharedPreferences sharedPref;\n SharedPreferences.Editor editor;\n sharedPref = getSharedPreferences(\"LlPreferences\", Context.MODE_PRIVATE);\n if (sharedPref.getBoolean(\"app_need_lang_def\", true) == true) {\n startActivity(chooseLanguageIntent);\n }\n }", "protected void localeChanged() {\n\t}", "public void setLocales(List<Locale> locales);", "@Test\n\tpublic void areCompatible_shouldConfirmSameLanguageMissingCountryAsCompatible() {\n\t\tLocale lhs = Locale.US;\n\t\tLocale rhs = Locale.ENGLISH;\n\t\t\n\t\tassertTrue(LocaleUtility.areCompatible(lhs, rhs));\n\t}", "public interface LocaleProvider {\n\tLocale getLocale();\n}", "static private void loadBundle() {\r\n\r\n\t\tfinal Locale loc;\r\n\r\n\t\t//load the default or a forced locale\r\n\t\tif (strLanguage == null) {\r\n\t\t\tloc = Locale.getDefault();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tloc = new Locale(strLanguage);\r\n\t\t}\r\n\r\n\t\tresBundle = RiskUtil.getResourceBundle(TranslationBundle.class,\"Risk\",loc);\r\n\r\n\t\t// this will work MOST of the time, but does not in lobby\r\n\t\t// for some reason it stops the classes from loading, and does not find the files\r\n\t\t//resBundle = ResourceBundle.getBundle(\"net.yura.domination.engine.translation.Risk\", loc );\r\n\r\n\r\n\t}", "public ApplicationLocales(ActionServlet servlet) {\n\n super();\n Locale list[] = Locale.getAvailableLocales();\n MessageResources resources = (MessageResources)\n servlet.getServletContext().getAttribute(Globals.MESSAGES_KEY);\n if (resources == null)\n return;\n String config = resources.getConfig();\n if (config == null)\n return;\n\n for (int i = 0; i < list.length; i++) {\n try {\n ResourceBundle bundle =\n ResourceBundle.getBundle(config, list[i]);\n if (bundle == null)\n continue;\n if (list[i].equals(bundle.getLocale())) {\n localeLabels.add(list[i].getDisplayName());\n localeValues.add(list[i].toString());\n supportedLocales.add(list[i]);\n }\n } catch( Exception ex ) {\n servlet.log(\"Missing locale \" + list[i] );\n continue;\n }\n }\n\n }", "@Override\n\tpublic void setLocale(Locale loc) {\n\t}", "public SrvI18n() {\n try { //to fix Android Java\n messages = ResourceBundle.getBundle(\"MessagesBundle\");\n } catch (Exception e) {\n Locale locale = new Locale(\"en\", \"US\");\n messages = ResourceBundle.getBundle(\"MessagesBundle\", locale);\n }\n }", "public Set<Locale> getAvailableLocales () {;\n\t\treturn Collections.unmodifiableSet(serviceProvider.getDictionariesManager().getLocaleDictionaries().keySet());\n\t}", "private void setLocale() {\n\t\tLocale locale = new Locale(this.getString(R.string.default_map_locale));\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.locale = locale;\n getBaseContext().getResources().updateConfiguration(config,\n getBaseContext().getResources().getDisplayMetrics());\n\t}", "public static final Locale[] getAvailableLocales()\n/* */ {\n/* 456 */ return getAvailEntry(\"com/ibm/icu/impl/data/icudt48b\", ICU_DATA_CLASS_LOADER).getLocaleList();\n/* */ }", "public static void display(){\r\n String baseName = \"res.Messages\";\r\n ResourceBundle messages = ResourceBundle.getBundle(baseName, Locale.getDefault());\r\n System.out.println(messages.getString(\"locales\"));\r\n\r\n Locale available[] = Locale.getAvailableLocales();\r\n for(Locale locale : available) {\r\n System.out.println(locale.getDisplayCountry() + \"\\t\" + locale.getDisplayLanguage(locale));\r\n }\r\n }", "@Test\n\t@PerfTest(invocations = 10)\n\tpublic void defLang() {\n\t\tl.setLocale(l.getLocale().getDefault());\n\t\tassertEquals(\"Register\", Internationalization.resourceBundle.getString(\"btnRegister\"));\n\t}", "private LocalizationProvider() {\r\n\t\tthis.language = DEFAULT_LANGUAGE;\r\n\t\tthis.bundle = ResourceBundle.getBundle(\"hr.fer.zemris.java.hw11.jnotepadapp.local.languages\",\r\n\t\t\t\tLocale.forLanguageTag(language));\r\n\t}", "public void initialize()\n {\n Locale locale = Locale.getDefault();\n var rb = ResourceBundle.getBundle(\"translation\",locale);\n\n customerPerCountryLabel.setText(rb.getString(\"CustomersPerCountry\"));\n backButton.setText(rb.getString(\"Back\"));\n\n\n }", "private static void initializeMessages() {\n messages = ResourceBundle.getBundle(\"org.apache.ws.commons.tcpmon.tcpmon\");\n }", "protected final void setSupportedLocales(Locale[] locales) {\n supportedLocales = locales;\n }", "@Test\n\tpublic void testLocale() throws Exception {\n\t\tLocale.setDefault(Locale.JAPANESE);\n\t\tProperties serviceProps = SgsTestNode.getDefaultProperties(APP_NAME,\n\t\t\t\tserverNode, null);\n\t\tserviceProps.setProperty(\"com.sun.sgs.impl.kernel.profile.level\",\n\t\t\t\t\"medium\");\n\t\taddNodes(serviceProps, 1);\n\t\tProfileCollector collector = getCollector(additionalNodes[0]);\n\t\tassertNotNull(collector);\n\t\tassertSame(ProfileLevel.MEDIUM, collector.getDefaultProfileLevel());\n\t}", "protected final void handleLocale(HttpServletRequest req) {\n setLocaleFromHeader(req.getParameterValues(\"LocaleFromHeader\"));\n \n if (localeFromHeader) {\n for ( Enumeration en=req.getLocales(); en.hasMoreElements(); ) {\n Locale locale = (Locale)en.nextElement();\n try {\n setLocale(locale);\n return;\n } catch ( Exception ex ) {\n logger.warning(\"locale not supported \" + locale);\n } // end of try-catch\n } // end of for ()\n }\n }", "protected String[] getAvailableLocaleNames() {\n return LocaleInfo.getAvailableLocaleNames();\n }", "private void loadSystemMessages() {\n // As a back-up, load the messages from the class path\n LOGGER.warn(null, MODULE_NAME, \"Loading message-properties file from class path\");\n systemMessages = ResourceBundle.getBundle(\"messages\");\n }", "@Test\n\tpublic void areCompatible_shouldConfirmDifferentLanguageMissingCountryAsCompatible() {\n\t\tLocale lhs = Locale.US;\n\t\tLocale rhs = Locale.FRENCH;\n\t\t\n\t\tassertFalse(LocaleUtility.areCompatible(lhs, rhs));\n\t}", "public static final Locale[] getAvailableLocales(String baseName, ClassLoader loader)\n/* */ {\n/* 448 */ return getAvailEntry(baseName, loader).getLocaleList();\n/* */ }", "boolean hasI18();", "@Test\n @DisplayName(\"Ensure default locale is null.\")\n public void testGetDefaultLocale() {\n assertNull(this.settings.getDefaultLocale());\n }", "@Override\n\tpublic Enumeration<Locale> getLocales() {\n\t\treturn null;\n\t}", "public void setPreferredLocale(Locale locale);", "private static boolean isQualifiedLocale(Locale locale) {\r\n\t\tResourceBundle rb = ResourceBundleProvider.getAdminBundle(locale);\r\n\t\tif(isAvailable(rb, locale)) {\r\n\t\t\trb = ResourceBundleProvider.getAuditEventsBundle(locale);\r\n\t\t\tif(isAvailable(rb, locale))\t{\r\n\t\t\t\trb = ResourceBundleProvider.getExceptionsBundle(locale);\r\n\t\t\t\tif(isAvailable(rb, locale))\t{\r\n\t\t\t\t\trb = ResourceBundleProvider.getFormatBundle(locale);\r\n\t\t\t\t\tif(isAvailable(rb, locale))\t{\r\n\t\t\t\t\t\trb = ResourceBundleProvider.getPageMessagesBundle(locale);\r\n\t\t\t\t\t\tif(isAvailable(rb, locale)) {\r\n\t\t\t\t\t\t\trb = ResourceBundleProvider.getTermsBundle(locale);\r\n\t\t\t\t\t\t\tif(isAvailable(rb, locale)) {\r\n\t\t\t\t\t\t\t\trb = ResourceBundleProvider.getTextsBundle(locale);\r\n\t\t\t\t\t\t\t\tif(isAvailable(rb, locale)) {\r\n\t\t\t\t\t\t\t\t\trb = ResourceBundleProvider.getWordsBundle(locale);\r\n\t\t\t\t\t\t\t\t\tif(isAvailable(rb, locale)) {\r\n\t\t\t\t\t\t\t\t\t\trb = ResourceBundleProvider.getWorkflowBundle(locale);\r\n\t\t\t\t\t\t\t\t\t\treturn isAvailable(rb, locale);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n public void setLocale(Locale arg0) {\n\n }", "@Override\n\tpublic Enumeration getLocales() {\n\t\treturn null;\n\t}", "private void updateBundle() {\n\n this.bundle = ResourceBundle.getBundle(\"languages\", this.locales.get(this.currentLocaleIndex));\n }", "@Test\n public void testLocaleManager() {\n assertTrue(LocaleManager.getSupportedLocales().isEmpty());\n\n // register 1 application\n List<Locale> supportedLocales_1 = LocaleHelpers.constructListOfLocales(SUPPORTED_LOCALES_1);\n LocaleManager.registerSupportedLocales(APP_1, supportedLocales_1);\n assertEquals(supportedLocales_1, LocaleManager.getSupportedLocales(APP_1));\n assertEquals(supportedLocales_1, LocaleManager.getSupportedLocales());\n\n // register 2nd application\n List<Locale> supportedLocales_2 = LocaleHelpers.constructListOfLocales(SUPPORTED_LOCALES_2);\n LocaleManager.registerSupportedLocales(APP_2, supportedLocales_2);\n assertEquals(supportedLocales_2, LocaleManager.getSupportedLocales(APP_2));\n String[] expectedLocs_2 = { \"fr-BE\", \"fr\", \"nl-BE\", \"nl\", \"en-GB\", \"en\" };\n List<Locale> expectedLocales_2 = LocaleHelpers.constructListOfLocales(expectedLocs_2);\n assertEquals(expectedLocales_2, LocaleManager.getSupportedLocales());\n\n // register 3rd application\n List<Locale> supportedLocales_3 = LocaleHelpers.constructListOfLocales(SUPPORTED_LOCALES_3);\n LocaleManager.registerSupportedLocales(APP_3, supportedLocales_3);\n assertEquals(supportedLocales_3, LocaleManager.getSupportedLocales(APP_3));\n String[] expectedLocs_3 = { \"fr-BE\", \"fr\", \"nl-BE\", \"nl\", \"en-GB\", \"en\" };\n List<Locale> expectedLocales_3 = LocaleHelpers.constructListOfLocales(expectedLocs_3);\n assertEquals(expectedLocales_3, LocaleManager.getSupportedLocales());\n\n // register 4th application\n List<Locale> supportedLocales_4 = LocaleHelpers.constructListOfLocales(SUPPORTED_LOCALES_4);\n LocaleManager.registerSupportedLocales(APP_4, supportedLocales_4);\n assertEquals(supportedLocales_4, LocaleManager.getSupportedLocales(APP_4));\n String[] expectedLocs_4 = { \"fr-BE\", \"fr\", \"nl-BE\", \"nl\", \"en-GB\", \"en\" };\n List<Locale> expectedLocales_4 = LocaleHelpers.constructListOfLocales(expectedLocs_4);\n assertEquals(expectedLocales_4, LocaleManager.getSupportedLocales());\n\n // register 5th application\n List<Locale> supportedLocales_5 = LocaleHelpers.constructListOfLocales(SUPPORTED_LOCALES_5);\n LocaleManager.registerSupportedLocales(APP_5, supportedLocales_5);\n assertEquals(supportedLocales_5, LocaleManager.getSupportedLocales(APP_5));\n String[] expectedLocs_5 = { \"fr\", \"nl\", \"en\" };\n List<Locale> expectedLocales_5 = LocaleHelpers.constructListOfLocales(expectedLocs_5);\n assertEquals(expectedLocales_5, LocaleManager.getSupportedLocales());\n }", "@Override\n\t\tpublic Enumeration getLocales() {\n\t\t\treturn null;\n\t\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\n\t\tSystem.out.println(\"!!!!!!!!!!!!!!!onDestroy\");\n\t\tLanguageConvertPreferenceClass.loadLocale(getApplicationContext());\n\t}", "@Test\n public void testDetermineSupportedLocaleWithCountry() throws Exception {\n final File messagesFile = new File(\"messages_es_MX.properties\");\n final Locale supportedLocale = parser.determineSupportedLocale(messagesFile);\n assertThat(supportedLocale.getLanguage()).isEqualTo(\"es\");\n assertThat(supportedLocale.getCountry()).isEqualTo(\"MX\");\n }", "public String getLocale () throws java.io.IOException, com.linar.jintegra.AutomationException;", "@Test\n\tpublic void should_resetTheLocale() {\n\t\t// set user locale to nothing\n\t\tContext.setLocale(null);\n\t\t\n\t\t// clear out the caches\n\t\tGlobalProperty defaultLocale = new GlobalProperty(OpenmrsConstants.GLOBAL_PROPERTY_DEFAULT_LOCALE, \"\",\n\t\t \"blanking out default locale\");\n\t\tContext.getAdministrationService().saveGlobalProperty(defaultLocale);\n\t}", "public List<Locale> getAvailableLocales() {\n List<T> items = (List<T>) MongoEntity.getDs().find(this.getClass(), \"reference\", this.reference).asList();\n List<Locale> locales = new ArrayList<Locale>();\n\n if (items != null && !items.isEmpty()) {\n for (T item : items) {\n locales.add(item.language);\n }\n }\n return locales;\n }", "public void setLocale (\r\n String strLocale) throws java.io.IOException, com.linar.jintegra.AutomationException;", "List<Locale> getSupportedLocales() {\n return Collections.unmodifiableList(mSupportedLocales);\n }", "@Override\r\n\tpublic Set<AvailableLocale> getAvailableLocales() {\r\n\t\treturn availableLocales;\r\n\t}", "public interface SupportedLocales {\n\n Locale getDefaultLocale();\n\n Collection<Locale> getSupportedLocales();\n\n SupportedLocales withLocale(Locale locale);\n\n SupportedLocales withLocaleParsingPolicy(LocalePolicy localeParsingPolicy);\n\n SupportedLocales withLocaleLookupPolicy(LocalePolicy localeLookupPolicy);\n\n Locale filterForParsing(Locale locale);\n\n Locale filterForLookup(Locale locale);\n\n LocalePolicy getLocaleParsingPolicy();\n\n LocalePolicy getLocaleLookupPolicy();\n}", "protected Locale resolveLocale()\n\t{\n\t\tLocale locale = getArchLocale();\n\t\tif (locale == null) {\n\t\t\tlocale = getFallbackLocale();\n\t\t}\n\t\tif (locale == null) {\n\t\t\t//Fallback to Spring locale\n\t\t\tlocale = LocaleContextHolder.getLocale();\n\t\t}\n\t\treturn locale;\n\t}", "public interface LocaleContext {\n Locale getLocale();\n}", "public static String[] getAvailableLocaleStrings() {\n\t\tLocale[] availableLocales = getAvailableLocales();\n\t\tString[] result = new String[availableLocales.length];\n\t\tfor (int i = 0; i < availableLocales.length; i++) {\n\t\t\tresult[i] = availableLocales[i].toString();\n\t\t}\n\t\treturn result;\n\t}", "@Override\n protected void attachBaseContext(Context base) {\n super.attachBaseContext(Application.Companion.getLocaleManager().setLocale(base));\n }", "private List<Locale> findAvailableLocales(File directory) {\n\t\t\n\t\tif(directory == null) throw new NullPointerException();\n\t\t\n\t\tArrayList<Locale> localeList = new ArrayList<Locale>();\n\n\t\tif(!directory.exists() || !directory.isDirectory()) {\n\t\t\treturn localeList;\n\t\t}\n\n\t\tFile[] files = directory.listFiles();\n\t\t\n\t\tPattern pattern01 = Pattern.compile(RESOURCE_BUNDLE_BASE_NAME + \"(?:_([.[^_]]+)){1}(?:_([.[^_]]+)){1}(?:_(.+)){0,}\" + \"\\\\.\" + RESOURCE_BUNDLE_EXTENSION);\n\t\tPattern pattern02 = Pattern.compile(RESOURCE_BUNDLE_BASE_NAME + \"(?:_([.[^_]]+)){1}(?:_([.[^_]]+)){0,}\" + \"\\\\.\" + RESOURCE_BUNDLE_EXTENSION);\n\t\t\n//\t\tSystem.out.println(\"\\n\\n\\n\");\n\n\t\tfor(File file : files) {\n\t\t\t\n\t\t\tString fileName = file.getName();\n\t\t\t\n\t\t\tString language = \"\";\n\t\t\tString country = \"\";\n\t\t\tString variant = \"\";\n\t\t\t\n//\t\t\tSystem.out.println(\"testing file \\\"\" + fileName + \"\\\"\");\n\n\t\t\tMatcher matcher01 = pattern01.matcher(fileName);\n\t\t\t\n\t\t\tif(matcher01.matches()) {\n\t\t\t\t\n//\t\t\t\tfor(int i = 0; i < matcher01.groupCount(); i++) {\n//\t\t\t\t\tSystem.out.println(i + \" = \" + matcher01.group(i + 1));\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlanguage = matcher01.group(1);\n\t\t\t\tcountry = matcher01.group(2);\n\t\t\t\tvariant = matcher01.group(3) != null ? matcher01.group(3) : \"\";\n\t\t\t\t\n\t\t\t\tlocaleList.add(new Locale(matcher01.group(1), matcher01.group(2), matcher01.group(3) != null ? matcher01.group(3) : \"\"));\n\t\t\t\n\t\t\t} else {\n\n\t\t\t\tMatcher matcher02 = pattern02.matcher(fileName);\n\t\t\t\t\n\t\t\t\tif(matcher02.matches()) {\n\t\t\t\t\t\n//\t\t\t\t\tfor(int i = 0; i < matcher02.groupCount(); i++) {\n//\t\t\t\t\t\tSystem.out.println(i + \" = \" + matcher02.group(i + 1));\n//\t\t\t\t\t}\n\n\t\t\t\t\tlanguage = matcher02.group(1);\n\t\t\t\t\tcountry = matcher02.group(2) != null ? matcher02.group(2) : \"\";\n\n\t\t\t\t\tlocaleList.add(new Locale(matcher02.group(1), matcher02.group(2) != null ? matcher02.group(2) : \"\"));\n\n\t\t\t\t} else {\n//\t\t\t\t\tSystem.out.println(\"not matches\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tSystem.out.println(\"language = \" + language);\n//\t\t\tSystem.out.println(\"country = \" + country);\n//\t\t\tSystem.out.println(\"variant = \" + variant);\n\t\t\t\n//\t\t\tSystem.out.println();\n\t\t}\n\n//\t\tfor(Locale l : localeList) {\n//\t\t\tSystem.out.println(\"found -> \" + \"language=\" + l.getLanguage() + \",country=\" + l.getCountry() + \",variant=\" + l.getVariant());\n//\t\t}\n\t\t\n\t\treturn localeList;\n\t}", "@Override\n public Locale getLocale() {\n return null;\n }", "public static Set<String> getAvailableLocaleNameSet()\n/* */ {\n/* 424 */ return getAvailableLocaleNameSet(\"com/ibm/icu/impl/data/icudt48b\", ICU_DATA_CLASS_LOADER);\n/* */ }", "public void testFindClosestAvailableLocale() {\n assertEquals(\"en\", findClosestAvailableLocale(\"en\"));\n assertEquals(\"en\", findClosestAvailableLocale(\"en_ZF\"));\n assertEquals(\"en_US\", findClosestAvailableLocale(\"en_US\"));\n }", "public static void main(String[] args) {\n Locale[] available = Locale.getAvailableLocales();\n System.out.println(\"Available Locales\");\n for (int i=0;i < available.length;i++) {\n System.out.print(available[i].toString());\n System.out.print(\" \");\n }\n System.exit(1);\n }", "public void refreshLocale() {\n this.mWifiTracker.refreshLocale();\n }", "public Map<Locale, T> getAvailableLocalesAndTranslatables() {\n Map<Locale, T> returnMap = new HashMap<Locale, T>();\n List<T> items = (List<T>) MongoEntity.getDs().find(this.getClass(), \"reference\", this.reference).asList();\n\n if (items != null && !items.isEmpty()) {\n for (T item : items) {\n returnMap.put(item.language, item);\n }\n }\n return returnMap;\n }", "public boolean enableLocaleOverride( ) {\n\t\ttry {\n\t\t\tURIBuilder builder = new URIBuilder( I18N_URL );\n\t\t\tbuilder.addParameter( \"locale\", \"en_US\" );\n\t\t\tHttpGet get = new HttpGet( builder.build( ).toURL( ).toString( ) );\n\t\t\tString result = EntityUtils.toString( this.httpClient( ).execute( get ).getEntity( ) ).trim( );\n\t\t\treturn result.contains(\"Succeeded\" );\n\t\t} catch( Exception e ) {\n\t\t\tthrow new FitbitExecutionException( e );\n\t\t}\n\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\n\t\tSystem.out.println(\"!!!!!!!!!!!!!!!onStart\");\n\t\tLanguageConvertPreferenceClass.loadLocale(getApplicationContext());\n\t}", "public Locale getFallbackLocale() {\treturn fallbackLocale;}", "public Localizer() {\n processor = new ComponentProcessor();\n }", "protected Locale getLocale() {\n\t\treturn null;\n\t}", "public void testLocale3()\n throws ValidatorException {\n // Create bean to run test on.\n final NameBean name = new NameBean();\n name.setFirstName(\"\");\n name.setLastName(\"\");\n\n valueTest(name, new Locale(\"en\", \"UK\"), false, true, true);\n }", "public void handleError() {\n\t\tSystem.out.println(defaultLocale);\n\t}", "public void setLocale(Locale l) {\n if (!initialized)\n super.setLocale(l);\n else {\n locale = l;\n initNames();\n }\n }", "@Test\n public void test() throws Exception {\n System.out.println(\"teting PropertiesUtils\");\n Properties result = PropertiesUtils.load();\n assertNotNull(result);\n ResourceBundle result_ = PropertiesUtils.loadLanguage(result);\n assertNotNull(result_);\n }", "public Future<String> locale() throws DynamicCallException, ExecutionException {\n return call(\"locale\");\n }", "@Override\n public void setLocale(Locale arg0) {\n //\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Ignore.Locale\"));} //$NON-NLS-1$\n }", "@Override\n public void setLocales(Collection<String> locales) \n {\n assert locales != null : \"Locales cannot be set to null\";\n this.locales = Collections.unmodifiableCollection(locales);\n clean();\n }", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\n\t\tSystem.out.println(\"!!!!!!!!!!!!!!!onResume\");\n\t\tLanguageConvertPreferenceClass.loadLocale(getApplicationContext());\n\n\t}", "private void m145782l() {\n this.f119477j.f119578d |= 16;\n if ((this.f119477j.f119578d & 16) == 0) {\n String locale = this.f119477j.f119580f.toString();\n nativeRegisterLocalizedCollators(this.f119482o, locale);\n if (!this.f119478k) {\n try {\n mo115433a(\"CREATE TABLE IF NOT EXISTS android_metadata (locale TEXT)\", null, null);\n String c = mo115440c(\"SELECT locale FROM android_metadata UNION SELECT NULL ORDER BY locale DESC LIMIT 1\", null, null);\n if (c == null || !c.equals(locale)) {\n mo115433a(\"BEGIN\", null, null);\n mo115433a(\"DELETE FROM android_metadata\", null, null);\n mo115433a(\"INSERT INTO android_metadata (locale) VALUES(?)\", new Object[]{locale}, null);\n mo115433a(\"REINDEX LOCALIZED\", null, null);\n mo115433a(\"COMMIT\", null, null);\n }\n } catch (RuntimeException e) {\n StringBuilder sb = new StringBuilder(\"Failed to change locale for db '\");\n sb.append(this.f119477j.f119576b);\n sb.append(\"' to '\");\n sb.append(locale);\n sb.append(\"'.\");\n throw new SQLiteException(sb.toString(), e);\n } catch (Throwable th) {\n mo115433a(\"ROLLBACK\", null, null);\n throw th;\n }\n }\n }\n }", "public void attachBaseContext(Context context) {\n super.attachBaseContext(LocaleHelper.setLocale(context));\n }", "private String getDefaultLocale() {\n return \"es-MX\";\n }" ]
[ "0.6846686", "0.66063815", "0.65504545", "0.65269744", "0.6368366", "0.62558246", "0.620222", "0.618019", "0.6079526", "0.607614", "0.60691094", "0.6068224", "0.6062764", "0.60323596", "0.6025123", "0.59734213", "0.59476936", "0.59147525", "0.59116375", "0.58880424", "0.5884412", "0.585848", "0.58521456", "0.582746", "0.5820856", "0.5819604", "0.58050245", "0.5804146", "0.5804146", "0.57973814", "0.5796272", "0.57834625", "0.57745105", "0.5749452", "0.57452834", "0.5740788", "0.57194126", "0.57082903", "0.57081795", "0.5696999", "0.5690179", "0.5656554", "0.5638659", "0.56307185", "0.5628937", "0.56213254", "0.5619431", "0.5616667", "0.56157094", "0.5602974", "0.5591583", "0.55884147", "0.55839413", "0.5581125", "0.55756277", "0.5563883", "0.5560862", "0.5560713", "0.5551888", "0.55336726", "0.5520329", "0.55101025", "0.55073494", "0.54998523", "0.5494318", "0.5489249", "0.548609", "0.54761153", "0.54748076", "0.5469774", "0.54674876", "0.54563123", "0.54528505", "0.5445518", "0.54445124", "0.5440699", "0.54220515", "0.5413086", "0.5407773", "0.5403121", "0.5381527", "0.53606033", "0.53605646", "0.53584343", "0.5336576", "0.532017", "0.5319284", "0.53168774", "0.5314983", "0.53086376", "0.52945155", "0.52938604", "0.52886075", "0.5286622", "0.52854836", "0.52851355", "0.5281006", "0.5280654", "0.5275728", "0.5275427" ]
0.5618965
47
The flow logic is encapsulated within the call() method.
@Suspendable @Override public Void call() throws FlowException { // We retrieve the notary identity from the network map. final Party notary = getServiceHub().getNetworkMapCache().getNotaryIdentities().get(0); QueryCriteria queryCriteria = new QueryCriteria.LinearStateQueryCriteria(null, ImmutableList.of(this.linearId), Vault.StateStatus.UNCONSUMED, null); List<StateAndRef<NDAState>> ndaStates = getServiceHub().getVaultService().queryBy(NDAState.class, queryCriteria).getStates(); // We create the transaction components. NDAState outputState = new NDAState(getOurIdentity(), crmParty, "APPROVED"); StateAndContract outputStateAndContract = new StateAndContract(outputState, LEGAL_CONRACT_ID); List<PublicKey> requiredSigners = ImmutableList.of(getOurIdentity().getOwningKey(), crmParty.getOwningKey()); Command cmd = new Command<>(new LegalContract.Approve(), requiredSigners); // We create a transaction builder and add the components. final TransactionBuilder txBuilder = new TransactionBuilder(); txBuilder.addInputState(ndaStates.get(0)); txBuilder.setNotary(notary); txBuilder.withItems(outputStateAndContract, cmd); // Signing the transaction. final SignedTransaction signedTx = getServiceHub().signInitialTransaction(txBuilder); // Creating a session with the other party. FlowSession otherpartySession = initiateFlow(crmParty); // Obtaining the counterparty's signature. SignedTransaction fullySignedTx = subFlow(new CollectSignaturesFlow( signedTx, ImmutableList.of(otherpartySession), CollectSignaturesFlow.tracker())); // Finalising the transaction. subFlow(new FinalityFlow(fullySignedTx)); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void call() {\n\t\t\n\t}", "public abstract void call();", "void call();", "@Override\r\n public FlowState call() {\r\n // TODO: We should not need? to pass the flowState because this flow is already known (reapplying same values???)\r\n FlowState flowState = getFlowState();\r\n if ( flowState == null ) {\r\n throw new FlowException(\"No flowState with id:\", getExistingFlowStateLookupKey());\r\n } else {\r\n return getFlowManagementWithCheck().continueFlowState(getExistingFlowStateLookupKey(), true, this.getInitialFlowState());\r\n }\r\n }", "public void makeCall() {\n\n }", "@Override\n public void execute() throws EngineException {\n Object target = JavaReflectionUtil.getObject(this.target, \n callStatement.getEntries().subList(1,\n callStatement.getEntries().size() - 1));\n this.getParent().setResult(executeMethod(target, callStatement));\n pop();\n }", "public void processCall() {\n\t\tif (call == null)\n\t\t\treturn;\n\n\t\tString msg = new StringBuffer(\"Call processed on: \").append(new Date()).append(\" by: \")\n\t\t\t\t.append(CallCenterWorker.this.name).append(\" call length: \")\n\t\t\t\t.append(CallCenterWorker.this.call.getLenght()).toString();\n\t\tSystem.out.println(msg);\n\t\tCallCenterWorker.this.call = null;\n\t}", "@Override\n public void call(Void aVoid) {\n\n }", "public void dispatchCall(Call call) {\n\t\t/*\n\t\t * Try to route call to an employee with minimal rank\n\t\t */\n\t\tEmployee emp = getHandlerForCall(call);\n\t\tif(emp != null) {\n\t\t\temp.receiveCall(call);\n\t\t\tcall.setHandler(emp);\n\t\t}else {\n\t\t\t/*\n\t\t\t * Place the call into corresponding call\n\t\t\t * queue according to it's rank\n\t\t\t */\n\t\t\tcall.reply(\"Please wait for free employee to reply\");\n\t\t\tcallQueues.get(call.getRank().getValue()).add(call);\n\t\t}\n\t}", "@Override\n public Boolean call() throws Exception {\n return this.state22();\n }", "public Object call() throws Exception {\n return this.call();\n }", "public void dispatchCall() {\n\tCall nextCall = callQueue.dequeue();\n\tif (!respondentQueue.isEmpty()) {\n\t Employee employee = respondentQueue.dequeue();\n\t // assign call\n\t employee.setCurrentCall(nextCall);\n\t employee.setFree(false);\n\t int currentLevel = employee.getEmType().getValue();\n\t while (employee.getCurrentCall().getProblemLevel().getValue() != currentLevel) {\n\t\t// dispatch to higher level\n\t\tcurrentLevel++;\n\t\tswitch (currentLevel) {\n\t\tcase 1:\n\t\t if (!managerQueue.isEmpty()) {\n\t\t\temployee = setNextEmployee(managerQueue.dequeue(), employee);\n\t\t\temployee.setCurrentCall(nextCall);\n\t\t\temployee.setFree(false);\n\t\t }\n\t\t break;\n\t\tcase 2:\n\t\t if (!directorQueue.isEmpty()) {\n\t\t\temployee = setNextEmployee(directorQueue.dequeue(), employee);\n\t\t\temployee.setCurrentCall(nextCall);\n\t\t\temployee.setFree(false);\n\t\t }\n\t\t break;\n\t\t}\n\t }\n\t}\n }", "private synchronized void handleCallPacket() {\n int index = 0;\n try {\n index = this.getInteger();\n this.checkFunction(\"List\");\n }\n catch (MathLinkException e) {\n this.handleCleanException(e);\n return;\n }\n if (index != 14) {\n this.lastExceptionDuringCallPacketHandling = null;\n }\n try {\n StdLink.setup(this);\n StdLink.lastPktWasAllowUIComputations(false);\n this.clearInterrupt();\n switch (index) {\n case 1: {\n this.callJava();\n return;\n }\n case 2: {\n this.loadClass();\n return;\n }\n case 3: {\n this.throwFromMathematica();\n return;\n }\n case 4: {\n this.releaseInstance();\n return;\n }\n case 5: {\n this.val();\n return;\n }\n case 6: {\n this.callOnLoadClass();\n return;\n }\n case 7: {\n this.callOnUnloadClass();\n return;\n }\n case 8: {\n this.setComplexCls();\n return;\n }\n case 9: {\n this.reflect();\n return;\n }\n case 10: {\n this.showInFront();\n return;\n }\n case 11: {\n this.sameObjectQ();\n return;\n }\n case 12: {\n this.instanceOf();\n return;\n }\n case 13: {\n this.allowRaggedArrays();\n return;\n }\n case 14: {\n this.getException();\n return;\n }\n case 15: {\n this.connectToFEServer();\n return;\n }\n case 16: {\n this.disconnectToFEServer();\n return;\n }\n case 17: {\n this.peekClasses();\n return;\n }\n case 18: {\n this.peekObjects();\n return;\n }\n case 21: {\n this.setUserDir();\n return;\n }\n case 19: {\n this.getClassPath();\n return;\n }\n case 20: {\n this.addToClassPath();\n return;\n }\n case 23: {\n this.uiThreadWaiting();\n return;\n }\n case 22: {\n this.allowUIComputations();\n return;\n }\n case 24: {\n this.yieldTime();\n return;\n }\n case 25: {\n this.getConsole();\n return;\n }\n case 26: {\n this.extraLinks(true);\n return;\n }\n case 27: {\n this.getWindowID();\n return;\n }\n case 28: {\n this.addTitleChangeListener();\n return;\n }\n case 29: {\n this.setVMName();\n return;\n }\n case 30: {\n this.setException();\n break;\n }\n }\n return;\n }\n catch (Exception e) {\n this.lastExceptionDuringCallPacketHandling = e;\n return;\n }\n finally {\n StdLink.remove();\n this.clearError();\n this.newPacket();\n try {\n this.endPacket();\n this.flush();\n }\n catch (MathLinkException ee) {}\n }\n }", "public void doCall(){\n CalculatorPayload operation = newContent();\n\n ((PBFTClient)getProtocol()).syncCall(operation);\n }", "public void visit(Call call) {}", "@Override\n\tpublic void run() {\n\t\tthis.originateAction = new OriginateAction();\n\t\tthis.originateAction.setChannel(this.destination); // SIP/1083484/01703846797\n\t\tthis.originateAction.setContext(EPursuit.properties.getProperty(\"context\"));\n\t\tthis.originateAction.setExten(this.agi.getExtension());\n\t\tthis.originateAction.setPriority(new Integer(1));\n\t\t// TODO: Which timeout to use? Occurs sometimes when the phone is down\n\t\t// or never receives an event (for some reason)\n\t\tthis.originateAction.setTimeout(new Long(EPursuit.properties.getProperty(\"callTime\"))+new Long(EPursuit.properties.getProperty(\"dialTime\")));\n\t\tthis.originateAction.setAsync(true);\n\n\t\t// make initial call\n\t\tthis.makeCall();\n\t}", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}", "V call() throws StatusRuntimeException;", "protected abstract void beforeCall();", "public void callit();", "T call() throws EvalException, InterruptedException;", "@Override\n public T call() {\n try {\n return callable.call();\n }\n catch (Throwable e) {\n Log.e(\"Scheduler\", \"call code exception: %s\", e);\n return null;\n }\n }", "@Override\n\tvoid receiveCall() {\n\n\t}", "static void perform_call(String passed){\n\t\tint type = type_of_call(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tcall_without_condition(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "private void Perform_CALL() throws RuntimeException\n {\n PCToStack();\n \n int k = Utils.GetOperand_XXXXXXX11111XXX1(mMBR);\n mPC = k + mMBR2;\n \n if (PC_BIT_SIZE == 22)\n clockTick();\n clockTick();\n clockTick();\n clockTick();\n \n return;\n }", "@Override\n\tpublic Void call() throws Exception {\n\t\tlong money = ThreadLocalRandom.current().nextLong(0,21);\n\t\tUtility.p(callType + \" processing \" + money);\n\t\ttry {\n\t\tswitch ( callType ){\n\t\tcase myAccountYourAccount:\n\t\t\tlock.transferMoneyBad(myAccount,yourAccount,money);\n\t\t\tUtility.p(\"result myAccount:\" + myAccount );\n\t\t\tUtility.p(\"result yourAccount:\" + yourAccount);\n\t\t\tbreak;\n\t\tcase yourAccountMyAccount:\n\t\t\tlock.transferMoneyBad(yourAccount,myAccount,money);\n\t\t\tUtility.p(\"result yourAccount:\" + yourAccount);\n\t\t\tUtility.p(\"result myAccount:\" + myAccount );\n\t\t\tbreak;\n\t\tcase myAccountYourAccountHash:\n\t\t\tlock.transferMoney(myAccount,yourAccount,money);\n\t\t\tUtility.p(\"result myAccount:\" + myAccount );\n\t\t\tUtility.p(\"result yourAccount:\" + yourAccount);\n\t\t\tbreak;\n\t\tcase yourAccountMyAccountHash:\n\t\t\tlock.transferMoney(yourAccount,myAccount,money);\n\t\t\tUtility.p(\"result yourAccount:\" + yourAccount);\n\t\t\tUtility.p(\"result myAccount:\" + myAccount );\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tUtility.p(\"illegal type:\" + callType);\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\treturn null;\n\t}finally {\n\t\tUtility.p(\"exiting\");\n\t}\n\t}", "@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}", "public void handleCall(Call c) {\n\t}", "@Override\n public void callSync() {\n\n }", "@Override\n\tpublic String call() throws Exception {\n\t\treturn \"hello\";\n\t}", "protected void internalRun() {\n work();\n }", "public void callManager() throws IOException {\n\n\n }", "@Override\n\tpublic void receiveCall(Call call) {\n\t\tthis.call = call;\n\t\tcall.attend();\n\t}", "protected void execute() {\r\n }", "private static void doCallAction(\n final Call call,\n final CallAction callAction)\n {\n new Thread()\n {\n public void run()\n {\n try\n {\n List<Call> calls;\n CallGroup group = call.getCallGroup();\n if(group != null)\n {\n calls = group.getCalls();\n }\n else\n {\n calls = new Vector<Call>();\n calls.add(call);\n }\n Call tmpCall;\n Iterator<? extends CallPeer> callPeers;\n CallPeer callPeer;\n\n for(int i = 0; i < calls.size(); ++i)\n {\n tmpCall = calls.get(i);\n final OperationSetBasicTelephony<?> opSet =\n tmpCall.getProtocolProvider()\n .getOperationSet(OperationSetBasicTelephony.class);\n callPeers = tmpCall.getCallPeers();\n while(callPeers.hasNext())\n {\n callPeer = callPeers.next();\n switch(callAction)\n {\n case ANSWER:\n if(callPeer.getState() ==\n CallPeerState.INCOMING_CALL)\n {\n opSet.answerCallPeer(callPeer);\n }\n break;\n case HANGUP:\n opSet.hangupCallPeer(callPeer);\n break;\n }\n }\n }\n\n }\n catch(OperationFailedException e)\n {\n logger.info(\n \"Failed to answer/hangup call via global shortcut\",\n e);\n }\n }\n }.start();\n\n\n }", "@Override\r\n\tpublic void run() {\n\t\tNoEmployeeHandler endHandler = new NoEmployeeHandler();\r\n\t\tDirectorHandler dirhandler = new DirectorHandler(endHandler);\r\n\t\tSupervisorHandler supHandler = new SupervisorHandler(dirhandler);\r\n\t\tOperatorHandler opHandler = new OperatorHandler(supHandler);\r\n\t\t\r\n\t\tboolean findEmployee = true;\r\n\t\tfor (EmployeeType type : EmployeeType.values()) {\r\n\t\t\ttry {\r\n\t\t\t\tfindEmployee = opHandler.handleCall(call, type);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tif (findEmployee) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "protected void execute() {}", "private void makeCall() {\n\t\t// send the originate action (Call)\n\t\tthis.asteriskServer.originateAsync(this.originateAction, new OriginateCallbackAdapter() {\n\t\t\t@Override\n\t\t\tpublic void onDialing(final AsteriskChannel asteriskChannel) {\n\t\t\t\tCall.this.log.log(Level.INFO, \"Dialing: \" + asteriskChannel.getName() + \" \" + Call.this.destination);\n\t\t\t\tCall.this.state=CallState.DIALING;\n\t\t\t\tCall.this.currentChannel = asteriskChannel.getName();\n\t\t\t\t// Make sure when there was a hangup event that it is realy hung up.\n\t\t\t\tif(Call.this.hangup)\n\t\t\t\t\tCall.this.hangup();\n\t\t\t\t// Listen for cool stuff like \"ringing\"\n\t\t\t\tasteriskChannel.addPropertyChangeListener(new PropertyChangeListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\t\t\t\t// is the phone ringing?\n\t\t\t\t\t\tif (evt.getPropertyName().equals(\"state\") && evt.getNewValue().toString().equals(\"RINGING\")) {\n\t\t\t\t\t\t\tCall.this.log.log(Level.INFO, \"Ringing: \" + asteriskChannel.getName() + \" \" + Call.this.destination);\n\t\t\t\t\t\t\t// Schedule hangup timeout\n\t\t\t\t\t\t\tCall.this.timeoutTimer.schedule(new TimerTask() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\tif (!Call.this.success) {\n\t\t\t\t\t\t\t\t\t\tCall.this.asteriskServer.getChannelByName(Call.this.currentChannel).hangup();\n\t\t\t\t\t\t\t\t\t\t// no \"noAnswer()\" called here because a\n\t\t\t\t\t\t\t\t\t\t// onNoAnswer event will come in anyway\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}, new Long(EPursuit.properties.getProperty(\"callTime\")));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(AsteriskChannel asteriskChannel) {\n\t\t\t\tCall.this.state=CallState.RUNNING;\n\t\t\t\tCall.this.success = true;\n\t\t\t\tCall.this.log.log(Level.INFO, \"Connection successful: \" + asteriskChannel.getName() + \" \" + Call.this.destination);\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onNoAnswer(AsteriskChannel asteriskChannel) {\n\t\t\t\tCall.this.log.log(Level.INFO, \"Channel not answered: \" + Call.this.currentChannel + \" \" + Call.this.destination);\n\t\t\t\tif (asteriskChannel.getHangupCause().toString().equals(\"CALL_REJECTED\")) {\n\t\t\t\t\tCall.this.noAnswer();\n\t\t\t\t} else {\n\t\t\t\t\tCall.this.noAnswer();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onBusy(AsteriskChannel asteriskChannel) {\n\t\t\t\tCall.this.noAnswer();\n\n\t\t\t\tCall.this.log.log(Level.INFO, \"Busy: \" + asteriskChannel.getName() + \" \" + Call.this.destination);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(LiveException cause) {\n\t\t\t\tCall.this.noAnswer();\n\n\t\t\t\tif (cause.getClass().getCanonicalName().equals(\"org.asteriskjava.live.NoSuchChannelException\")) {\n\t\t\t\t\t// Called when the channel is busy... dunno why\n\t\t\t\t\tCall.this.log.log(Level.INFO, \"Channel perhabs busy. \" + Call.this.destination);\n\t\t\t\t} else {\n\t\t\t\t\tCall.this.log.log(Level.WARNING, \"Received unknown error.\\n\" + cause + \" \" + Call.this.destination);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t}", "protected void execute() {\n\t\t\n\t}", "@Override\n public String call() throws Exception {\n if (!iAmSpecial) {\n blocker.await();\n }\n ran = true;\n return result;\n }", "public abstract boolean dispatch(final CallRunner callTask) throws InterruptedException;", "protected void execute()\n\t{\n\t}", "protected void execute() {\n\n\t}", "@Override\r\n\tpublic Response invoke() {\n\t\treturn null;\r\n\t}", "public Call getCurrentCall();", "@Override\n\t\t\tpublic Integer call() throws Exception {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\tpublic Result call() throws Exception {\n\t\t// Writes a message to the console\n\t\tSystem.out.printf(\"%s: Staring\\n\",this.name);\n\t\t\n\t\t// Waits during a random period of time\n\t\ttry {\n\t\t\tLong duration=(long)(Math.random()*10);\n\t\t\tSystem.out.printf(\"%s: Waiting %d seconds for results.\\n\",this.name,duration);\n\t\t\tTimeUnit.SECONDS.sleep(duration);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\t// Calculates the sum of five random numbers\n\t\tint value=0;\n\t\tfor (int i=0; i<5; i++){\n\t\t\tvalue+=(int)(Math.random()*100);\n\n\t\t}\n\t\t\n\t\t// Creates the object with the results\n\t\tResult result=new Result();\n\t\tresult.setName(this.name);\n\t\tresult.setValue(value);\n\t\tSystem.out.printf(\"%s: Ends\\n\",this.name);\n\n\t\t// Returns the result object\n\t\treturn result;\n\t}", "public void callP(){\n super.walks(\"called parent method\");\n }", "protected void execute() {\n\t}", "@Override\n public V call() throws HttpRequestException {\n boolean bl = false;\n try {\n V v = this.run();\n return v;\n }\n catch (HttpRequestException httpRequestException) {\n bl = true;\n throw httpRequestException;\n }\n catch (IOException iOException) {\n bl = true;\n throw new HttpRequestException(iOException);\n }\n finally {\n this.done();\n }\n }", "@Override\n\tpublic Response call() throws Exception {\n\t\tClientResponse response = callWebService(this.spaceEntry);\n\t\tthis.transId = (int) response.getEntity(Integer.class);\n\t\tresponse.close();\n\t\t/*wait for web service to provide tuple Object result*/\n\t\tawaitResult();\n\t\t\n\t\t/*return result*/\n\t\treturn result;\n\t}", "@Override\n public void run() {\n BeginTransactionMethodCall beginTransactionMethodCall = (BeginTransactionMethodCall) methodCall;\n long transactionTimeout = beginTransactionMethodCall.getTransactionTimeout();\n SpaceTransactionHolder spaceTransactionHolder = new SpaceTransactionHolder();\n spaceTransactionHolder.setSynchronizedWithTransaction( true );\n spaceTransactionHolder.setTimeoutInMillis( transactionTimeout );\n TransactionModificationContext mc = new TransactionModificationContext();\n mc.setProxyMode( true );\n spaceTransactionHolder.setModificationContext( mc );\n modificationContextFor( nodeRaised ).put( mc.getTransactionId(), spaceTransactionHolder );\n methodCall.setResponseBody( objectBuffer.writeObjectData( mc.getTransactionId() ) );\n }", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute()\n {\n }", "private CallResponse() {\n initFields();\n }", "public V call() throws Exception {\n\t\treturn null;\n\t}", "public V call() throws Exception {\n\t\treturn null;\n\t}", "@Override\r\n\tabstract public void run();", "public String call() {\n\t\treturn Thread.currentThread().getName() + \" executing ...\" + count.incrementAndGet(); // Consumer\n\t}", "@Override\n public CallContext getCallContext() {\n return this.context;\n }", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "@Override\n protected void run(Result result) throws Throwable {\n }", "@Override\n\tpublic void calling() {\n\t\tSystem.out.println(\"Calling using JIO...\");\n\t}", "public void invoke(Context context) throws ChainException;", "public void execute() {\r\n\t\r\n\t}", "protected void callJava() throws MathLinkException {\n int callType;\n boolean byVal;\n int classID;\n Object instance = null;\n int[] indices = null;\n Object[] args = null;\n try {\n this.checkFunction(\"List\");\n classID = this.getInteger();\n callType = this.getInteger();\n instance = this.getObject();\n indices = this.getIntArray1();\n byVal = this.getInteger() != 0;\n int argCount = this.getInteger();\n args = new Object[argCount];\n for (int i = 0; i < argCount; ++i) {\n args[i] = this.getTypeObjectPair();\n }\n this.newPacket();\n }\n catch (Exception e) {\n this.handleCleanException(e);\n return;\n }\n try {\n switch (callType) {\n case 1: {\n Object obj = null;\n try {\n obj = this.objectHandler.callCtor(classID, indices, args);\n }\n catch (Throwable t) {\n if (this.isRecoverableException(t)) {\n this.handleCleanException(t);\n break;\n }\n throw (Error)t;\n }\n if (this.wasInterrupted()) {\n this.putFunction(\"Abort\", 0);\n break;\n }\n this.putReference(obj);\n break;\n }\n case 2: {\n boolean wasManual = this.isManual();\n this.setManual(false);\n try {\n Object res = this.objectHandler.callMethod(classID, instance, indices, args);\n if (this.isManual()) {\n this.endPacket();\n this.putSymbol(\"Null\");\n break;\n }\n if (this.wasInterrupted()) {\n this.putFunction(\"Abort\", 0);\n break;\n }\n if (byVal) {\n this.put(res);\n break;\n }\n this.putReference(res);\n }\n catch (InvocationTargetException e) {\n Throwable t = e.getTargetException();\n if (this.isManual()) {\n this.lastExceptionDuringCallPacketHandling = t;\n this.clearError();\n t.printStackTrace();\n String msg = Utils.createExceptionMessage(t);\n this.endPacket();\n this.flush();\n this.putFunction(\"JLink`Package`manualException\", 1);\n this.put(msg);\n } else {\n this.handleCleanException(t);\n if (!this.isRecoverableException(t)) {\n throw (Error)t;\n }\n }\n break;\n }\n catch (Exception t) {\n this.lastExceptionDuringCallPacketHandling = t;\n this.handleCleanException(t);\n }\n finally {\n this.setManual(wasManual);\n }\n }\n case 3: {\n int fieldIndex = indices[indices.length - 1];\n try {\n if (args.length == 0) {\n Object res = this.objectHandler.getField(classID, instance, fieldIndex);\n if (byVal) {\n this.put(res);\n break;\n }\n this.putReference(res);\n break;\n }\n this.objectHandler.setField(classID, instance, fieldIndex, args[0]);\n this.putSymbol(\"Null\");\n break;\n }\n catch (Exception t) {\n this.lastExceptionDuringCallPacketHandling = t;\n this.handleCleanException(t);\n break;\n }\n }\n }\n }\n catch (MathLinkException e) {\n System.err.println(\"Serious error: MathLinkException trying to report results of previous exception.\");\n this.clearError();\n try {\n this.endPacket();\n }\n catch (MathLinkException ee) {\n // empty catch block\n }\n }\n }", "private void callHandler(String method, HttpServletRequest request, HttpServletResponse response) throws IOException {\n JsonElement payload = getPayload(request, response);\n RequestContext context = new RequestContext(\n request, response, urlVariables, request.getParameterMap(), payload);\n PathNode apiStructure = getApiStructure(method);\n\n if (request.getPathInfo() == null) {\n logger.warn(\"Received \" + method + \" request with empty path.\");\n return;\n }\n\n PathNode.PathNodeResult result = apiStructure.getBindingForSubPath(request.getPathInfo());\n if (result != null) {\n urlVariables.putAll(result.getArgValues());\n result.getApiSpec().apiInterface.call(context);\n }\n }", "public void execute() {\n if (hasError())\n return;\n\n runLocally();\n runRemotely();\n }", "protected void run() {\r\n\t\t//\r\n\t}", "public void execute() {\n\n\t}", "public String call() throws Exception {\n LOG.info(\"Starting to process task\");\n Thread.sleep(5000);\n LOG.info(\"Task is now done\");\n return \"Camel rocks\";\n }", "public String call() throws Exception {\n LOG.info(\"Starting to process task\");\n Thread.sleep(5000);\n LOG.info(\"Task is now done\");\n return \"Camel rocks\";\n }", "public void next (CallContext context);", "public void run() {\n try {\n System.out.println(\"Calling Process\");\n processRequest();\n\n } catch (Exception e) {\n System.out.println(\"Run Exception\" + e);\n }\n\n }", "@Override\n\tpublic void run() {\n\t\t// create phone instance, create a user with random number of contacts\n\t\tphone = new Phone();\n\t\tphone.createPhoneUserWithContacts(phone.getAllContactsMap(), phone.getNumberOfContactsForUser());\n\t\t// set welcome message displaying number of contacts after we create phone\n\t\t// instance\n\t\tsetWelcomeMessageAfterPhoneIsCreated(welcomeThenDisplayCallInfo);\n\t\t// format labels\n\t\tformatLabel(welcomeThenDisplayCallInfo, true);\n\t\tformatLabel(userInstructions, false); // instructions shown only when first call occurs\n\t\tformatLabel(declineDisplay, false);\n\t\t// format buttons\n\t\tformatButton(declineButton, false); // initially don't set visible\n\t\tformatButton(acceptButton, false); // initially don't set visible\n\t\tformatButton(startButton, true); // set visible from the start\n\t\tformatButton(blockButton, false); // initially don't set visible\n\t\tbuildThenAddActionListenersForButtons(phone);\n\t\t// create ArrayList of panels to pass into method that sets panel backgrounds to\n\t\t// black\n\t\tArrayList<JPanel> allPanels = new ArrayList<>(\n\t\t\t\tArrays.asList(panelForIncomingCall, backgroundPanel, spamPanel, acceptDeclineBlockBottomPanel));\n\t\tsetAllPanelsBackgroundColorToBlack(allPanels);\n\t\tbuildAndDisplayFrame();\n\t}", "@Override\r\n\tprotected void processExecute() {\n\r\n\t}", "@Override\n\tpublic Object call() throws Exception {\n\t\tint i=0;\n\t\twhile(i++<5) {\n\t\t\tSystem.out.println(Thread.currentThread().getName()+\" call()runing\");\n\t\t}\n\t\treturn i;\n\t}", "@Override\n\tpublic void run() {\n\t\ttarget.call(msg);\n\t}", "public String call() throws Exception {\n return \"\";\n }", "@Override\n\t\t\t\t\t\t\tprotected Void call() throws Exception {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tString name = nameTextField.getText();\n\t\t\t\t\t\t\t\t\tupdateMessage(\"Logging in...\");\n\t\t\t\t\t\t\t\t\tImage i = new Image(new File(\"src/LoadingBasketContents.gif\").toURI().toString());\n\t\t\t\t\t\t\t loading.setImage(i);\n\t\t\t\t\t\t\t\t\tChampionFrequency.getChampName();\n\t\t\t\t\t\t\t\t\tname = name.replaceAll(\"\\\\s\", \"\"); // delete spaces\n\t\t\t\t\t\t\t\t\tChampionFrequency.SummonerIDbyName(name);\n\t\t\t\t\t\t\t\t\tfinalResult = ChampionFrequency.usedChampFinalRank();\n\t\t\t\t\t\t\t\t\tnewRecommendList = ChampionFrequency.recommendNew();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfor (Map.Entry<String, Double> entry : finalResult.entrySet()) {\n\t\t\t\t\t\t\t\t\t\tString championName = entry.getKey();\n\t\t\t\t\t\t\t\t\t\toldRecommendList.add(championName);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}catch(ForbiddenException f) {\n\t\t\t\t\t\t\t\t\texp = f;\n\t\t\t\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t\t\t\t}catch(InternalServerException i) {\n\t\t\t\t\t\t\t\t\texp = i;\n\t\t\t\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t\t\t\t}catch(RateLimitException r) {\n\t\t\t\t\t\t\t\t\texp = r;\n\t\t\t\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t\t\t\t}catch(ServiceUnavailableException s) {\n\t\t\t\t\t\t\t\t\texp = s;\n\t\t\t\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\t\t\t\t\texp = e;\n\t\t\t\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t}", "public void execute() {\n\t\t\n\t}", "@Override\n\t\tpublic Integer call() throws Exception {\n\t\t\t// Print out in order\n\t\t\tsynchronized (this) {\n\t\t\t\tlogger.info(\"Param1 {} Param2: {}\", sum1, sum2);\n\t\t\t}\n\t\t\treturn sum1 + sum2;\n\t\t}", "@Override\r\n\tpublic abstract void run();", "protected abstract R runStep();", "public String call() {\n return Thread.currentThread().getName() + \" executing ...\";\n }", "@Override\n protected void execute() {\n \n }" ]
[ "0.7337531", "0.70945305", "0.6791918", "0.6497212", "0.6459287", "0.645401", "0.6423208", "0.6354677", "0.63416106", "0.62825674", "0.6261117", "0.62325865", "0.62049854", "0.6201101", "0.6164186", "0.61455196", "0.61067015", "0.60626537", "0.6021023", "0.6020057", "0.6011015", "0.5984763", "0.5978025", "0.5976696", "0.5968965", "0.59636235", "0.59633577", "0.59575635", "0.5927248", "0.58592504", "0.58548266", "0.5852012", "0.5846564", "0.5843166", "0.583992", "0.5835723", "0.58086944", "0.5795873", "0.5792", "0.5781218", "0.5778369", "0.576609", "0.57624406", "0.5756098", "0.5743933", "0.5734033", "0.57338744", "0.5731472", "0.5724322", "0.5713691", "0.5708801", "0.57073444", "0.5690374", "0.5690374", "0.5689475", "0.5689475", "0.5689475", "0.5689475", "0.5689475", "0.5689475", "0.5689475", "0.5689475", "0.5689475", "0.5689475", "0.5689475", "0.5689475", "0.5679962", "0.5655081", "0.5654612", "0.5654612", "0.56510466", "0.5617616", "0.5611643", "0.56066793", "0.56066793", "0.56066793", "0.56052274", "0.56010216", "0.55989105", "0.5597858", "0.55954456", "0.5574784", "0.5574243", "0.55717796", "0.5566708", "0.55663055", "0.55663055", "0.55624306", "0.55614805", "0.55583453", "0.5539879", "0.5536553", "0.5523137", "0.5520276", "0.55202466", "0.5515934", "0.55090284", "0.55084544", "0.5507535", "0.550488", "0.5501575" ]
0.0
-1
Constructs with the specified initial frame and date selector.
public JDateSelectorDialog(Frame owner, JDateSelector dateSelector) { this(owner, dateSelector, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ARXDate() {\r\n this(\"Default\");\r\n }", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector)\n\t{\n\t\tthis(owner, dateSelector, true);\n\t}", "@Override\n\tpublic void initDate() {\n\n\t}", "Frame createFrame();", "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector, boolean modal)\n\t{\n\t\tthis(owner, dateSelector, modal, false);\n\t}", "private void jbInit() throws Exception {\r\n setLayout(new BorderLayout());\r\n\r\n // set how the cloning should be done\r\n if (this.FORCE_SERIALIZE_COPY) {\r\n getMonthSelectorStyle().forceSerializeCopy(true);\r\n getDaySelectorStyle().forceSerializeCopy(true);\r\n getTodaySelectorStyle().forceSerializeCopy(true);\r\n }\r\n\r\n // update or set the locale\r\n getMonthSelectorStyle().setLocale(locale);\r\n getDaySelectorStyle().setLocale(locale);\r\n\r\n // set up the calendar panel\r\n daySelector = new DaySelector(getDaySelectorStyle());\r\n daySelector.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n if (e.getID() == DateChooserAction.calendarButtonSelected) {\r\n currentDate.set(java.util.Calendar.DAY_OF_MONTH,\r\n ( (DaySelector) e.getSource()).selectedDay);\r\n selectedDate = (Calendar) currentDate.clone();\r\n getParent().setVisible(false);\r\n }\r\n }\r\n });\r\n add(daySelector, daySelectorPosition);\r\n\r\n // set up the month selector panel\r\n if (showMonthSelector) {\r\n monthSelector = new MonthSelector(getMonthSelectorStyle());\r\n monthSelector.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n if (e.getID() == DateChooserAction.previousMonthSelected) {\r\n currentDate.add(java.util.Calendar.MONTH, -1);\r\n update();\r\n }\r\n if (e.getID() == DateChooserAction.nextMonthSelected) {\r\n currentDate.add(java.util.Calendar.MONTH, 1);\r\n update();\r\n }\r\n }\r\n });\r\n add(monthSelector, monthSelectorPosition);\r\n }\r\n\r\n // add the today selector panel\r\n if (showTodaySelector) {\r\n todaySelector = new TodaySelector(getTodaySelectorStyle());\r\n todaySelector.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n if (e.getID() == DateChooserAction.todaySelected) {\r\n currentDate.setTime(Calendar.getInstance().getTime());\r\n selectedDate = (Calendar) currentDate.clone();\r\n getParent().setVisible(false);\r\n }\r\n }\r\n });\r\n add(todaySelector, todaySelectorPosition);\r\n }\r\n update();\r\n }", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public CalendarFrame()\n\t{\n\t\tmodel = new Model();\n\t\tcontroller = new ControllerPanel(model);\n\t\tview = new MonthlyView(model);\n\t\tmodel.attach(view);\n\n\t\tthis.setSize(1500, 700);\n\t\tadd(controller, BorderLayout.NORTH);\n\t\tadd(view, BorderLayout.CENTER);\n\t\tsetBackground(Color.WHITE);\n\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t// pack();\n\t\tsetVisible(true);\n\t}", "@Override\n\tpublic void setInitialDate(Calendar initialDate) {\n\n\t}", "public FrameAnimator(String location, String startingSet)\n\t{\n\t\tthis(location, startingSet, 50);\n\t}", "public ADateDemo() {\n\n\n initComponents();\n\n\n }", "CurrencyDateCalculatorBuilder<E> getDefaultCurrencyDateCalculatorBuilder(String ccy1, String ccy2, SpotLag spotLag);", "FRAME createFRAME();", "public FrameAnimator(String location, String startingSet, int interval)\n\t{\n\t\tthis.location = location;\n\t\tsetAnimationSet(startingSet);\n\t\tsetInterval(interval);\n\t\tsetFrame(1);\n\t\tsetCenterOverCoords(true);\n\t\tsetImageSize(SpecialDimension.ORIGINAL, SpecialDimension.ORIGINAL);\n\t}", "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector, boolean modal, boolean hint)\n\t{\n\t\tsuper(owner, SwingLocale.getString(\"date_selector\"), new Dimension(280, 145), modal, hint, true);\n\t\t\n\t\tthis.dateSelector = dateSelector;\n\t\t\n\t\tinitComponents();\n\t}", "public SSDateBox(DatePicker picker, SSDate date, Format format, FocusImage img) {\n this(picker, date, format, img, 0);\n }", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal)\n\t{\n\t\tthis(owner, dateSelector, modal, false);\n\t}", "private void initDate(View view) {\n\n\t}", "private void initializeDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\texpense.setDate(c.getTime());\n\n\t\t// display the current date\n\t\tupdateDateDisplay();\n\t}", "public SimpleDateFormat() {\n\t\tthis(getDefaultPattern(), null, null, null, null, true, null);\n\t}", "public void initCalendarFirst() {\n getCurrentDate();\n mCalendar.setOnDateChangedListener(new OnDateSelectedListener() {\n @Override\n public void onDateSelected(@NonNull MaterialCalendarView widget, @NonNull CalendarDay select, boolean selected) {\n mSelectedDate = select.toString();\n String string[] = mSelectedDate.split(\"\\\\{|\\\\}\");\n String s = string[1]; //2017-8-14\n String string1[] = s.split(\"-\");\n int tempMonth = Integer.parseInt(string1[1]);\n String month = Integer.toString(tempMonth + 1);\n mDate1 = string1[0] + \"-\" + month + \"-\" + string1[2];\n }\n });\n }", "public void buildFrame();", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n datePicker = new org.jdesktop.swingx.JXDatePicker();\n\n datePicker.setFormats(new java.text.DateFormat[] { java.text.DateFormat.getDateInstance(java.text.DateFormat.MEDIUM) });\n datePicker.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n datePickerActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(datePicker, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(datePicker, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n }", "private Frame buildFrame() {\n return new Frame(command, headers, body);\n }", "public FillDate() {\n }", "DateConstant createDateConstant();", "public LocalDateAdapter() {\r\n\t\tsuper();\r\n\t}", "public Calendar() {\n initComponents();\n }", "date initdate(date iDate)\n {\n iDate.updateElementValue(\"date\");\n return iDate;\n }", "public JFrameCode() {\n initComponents();\n obj=new Object[]{text1,text2,date1,date2,date3};\n dateChooser=new JDateChooser();\n System.out.println(text1);\n panel.add(dateChooser,new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 290, -1, -1));\n \n System.out.println(\"date:\"+dateChooser.getDate());\n }", "public CashBookDaily() {\n initComponents();\n }", "public SIPDate() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e6 in method: gov.nist.javax.sip.header.SIPDate.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.<init>():void\");\n }", "public FrameAnimator(String location)\n\t{\n\t\tthis(location, \"basic\");\n\t}", "public FrameMain() {\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n initComponents();\n refreshSchedule();\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(FrameMain.class.getName()).log(Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n Logger.getLogger(FrameMain.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n Logger.getLogger(FrameMain.class.getName()).log(Level.SEVERE, null, ex);\n } catch (UnsupportedLookAndFeelException ex) {\n Logger.getLogger(FrameMain.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public JCalendar() {\r\n init();\r\n resetToDefaults();\r\n }", "private void pickDate(final Calendar initDate){\n //callback for when a date is picked\n DatePickerDialog.OnDateSetListener setDate = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n initDate.set(year, month, dayOfMonth,\n initDate.get(Calendar.HOUR_OF_DAY),\n initDate.get(Calendar.MINUTE),\n initDate.get(Calendar.SECOND));\n setDateTimeViews();\n }\n };\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(this,\n setDate, //callback\n initDate.get(Calendar.YEAR), //initial values\n initDate.get(Calendar.MONTH),\n initDate.get(Calendar.DAY_OF_MONTH));\n datePickerDialog.show(); //shows the dialogue\n }", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "public Watch(){ //Watch Constuctor\r\n super(); //Values passed in from the super class\r\n month = 1; //Initialize month to 1\r\n day = 1; //Initialize day to 1\r\n year = 1980; //Initialize year to 1980\r\n}", "public Card(String inputFrontInfo, String inputBackInfo, Date inputStartDate) {\n frontInfo = inputFrontInfo;\n backInfo = inputBackInfo;\n startTime = inputStartDate;\n cardID = nextCardID;\n nextCardID++;\n }", "FRAMESET createFRAMESET();", "public FrameAnimator(String location, int interval)\n\t{\n\t\tthis(location, \"basic\", interval);\n\t}", "public TimeSelector() {\n super(new GridBagLayout());\n createInterface();\n }", "public MyDate(int inYear, int inDay, int inMonth)\n {\n year = inYear;\n day = inDay;\n month = inMonth;\n }", "private DateFormatterManager()\r\n\t{\r\n\r\n\t}", "public SSDateBox(DatePicker picker, SSDate date, Format format) {\n this(picker, date, format, new FocusImage(23, 22, \"images/datepicker/datebox_icon.png\"));\n }", "public interface FrameBuilder {\r\n\r\n /**\r\n * Creates graphic frames.\r\n * @param num The frame index for which the graphic is to be \r\n * produced for.\r\n * @return The graphic for the respective frame index.\r\n */\r\n Graphic create(int num);\r\n }", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal, boolean hint)\n\t{\n\t\tsuper(owner, SwingLocale.getString(\"date_selector\"), new Dimension(280, 145), modal, hint, true);\n\t\t\n\t\tthis.dateSelector = dateSelector;\n\t\t\n\t\tinitComponents();\n\t}", "private void initialize() throws LogicLayerException {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(new BorderLayout(0, 0));\n\t\tframe.setSize(900, 700);\n\t\t\n\t\tCalendar calendar = new Calendar();\n\t\tStateContainer container = new StateContainer();\n\t\tcalendar.setStateContainer(container);\n\t\tframe.getContentPane().add(calendar);\n\t}", "private void selectFrame()\n\t{\n\t\t// Increment the animation frame\n\t\tif ((long) Game.getTimeMilli() - frameStart >= interval)\n\t\t{\n\t\t\tsetFrame(currFrame+1);\n\t\t}\n\t\t// Get the path to the current frame's image\n\t\tsetFramePath();\n\t\t// If the image frame doesn't exist...\n\t\tif (!GraphicsManager.getResManager().resExists(currFramePath))\n\t\t{\n\t\t\tif (isLooping())\n\t\t\t{\n\t\t\t\tsetFrame(1);\n\t\t\t\tsetFramePath();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tisFinished = true;\n\t\t\t}\n\t\t}\n\t}", "public CinemaDate() {\n }", "public AnimatedGraphic create(int interval, FrameBuilder frameBuilder) {\r\n List<Graphic> frames = new ArrayList<>();\r\n\r\n Graphic frame;\r\n for (int i = 0; (frame = frameBuilder.create(i)) != null; i++) {\r\n frames.add(frame);\r\n }\r\n\r\n return new AnimatedGraphic(frames.toArray(new Graphic[frames.size()]), interval);\r\n }", "public interface IMainframeFactory {\n\n\t/**\n\t * \n\t * @return new instance of IMainframe\n\t */\n\tIMainframe createInstance();\n}", "public BreukFrame() {\n super();\n initialize();\n }", "public DefaultDateSelectionModel(Locale locale)\n/* */ {\n/* 55 */ super(locale);\n/* 56 */ this.selectionMode = DateSelectionModel.SelectionMode.SINGLE_SELECTION;\n/* 57 */ this.selectedDates = new TreeSet();\n/* 58 */ this.unselectableDates = new TreeSet();\n/* */ }", "protected void start( LocalDate date ) {\n\t\t//optional to implement, default noop\n\t\t}", "private QaCalendar() {\n }", "public AppointmentCard(User user, LocalDate date) {\n this.stage = new Stage();\n this.userId = user.getId();\n this.datePicker.setValue(date);\n System.out.println(\"constructor3: \" + userId);\n }", "public DefaultImpl() {\n this(DEFAULT_DATE_FORMAT);\n }", "public p052cz.msebera.android.httpclient.cookie.CookieSpec newInstance(p052cz.msebera.android.httpclient.params.HttpParams r3) {\n /*\n r2 = this;\n if (r3 == 0) goto L_0x0020\n r0 = 0\n java.lang.String r1 = \"http.protocol.cookie-datepatterns\"\n java.lang.Object r3 = r3.getParameter(r1)\n java.util.Collection r3 = (java.util.Collection) r3\n if (r3 == 0) goto L_0x001a\n int r0 = r3.size()\n java.lang.String[] r0 = new java.lang.String[r0]\n java.lang.Object[] r3 = r3.toArray(r0)\n r0 = r3\n java.lang.String[] r0 = (java.lang.String[]) r0\n L_0x001a:\n cz.msebera.android.httpclient.impl.cookie.NetscapeDraftSpec r3 = new cz.msebera.android.httpclient.impl.cookie.NetscapeDraftSpec\n r3.<init>(r0)\n return r3\n L_0x0020:\n cz.msebera.android.httpclient.impl.cookie.NetscapeDraftSpec r3 = new cz.msebera.android.httpclient.impl.cookie.NetscapeDraftSpec\n r3.<init>()\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p052cz.msebera.android.httpclient.impl.cookie.NetscapeDraftSpecFactory.newInstance(cz.msebera.android.httpclient.params.HttpParams):cz.msebera.android.httpclient.cookie.CookieSpec\");\n }", "public Calendar() {\n }", "JavaFxScheduler() {\n }", "public DateCheckTag() { }", "public FrameDesign() {\n initComponents();\n }", "private void createAnimation () {\n // KeyFrame frame = new KeyFrame(Duration.millis(MILLISECOND_DELAY), e -> myManager.step());\n // myAnimation = new Timeline();\n // myAnimation.setCycleCount(Timeline.INDEFINITE);\n // myAnimation.getKeyFrames().add(frame);\n }", "RollingCalendar()\r\n\t{\r\n\t\tsuper();\r\n\t}", "public Selector() {\n }", "public JDateChooserBeanInfo() {\n super(\"JDateChooser\", true);\n }", "private static Calendar createCalendar(int year, int month, int date,\r\n\t\t\tint hour, int minute) {\r\n\t\tCalendar calendar = createCalendar(year, month, date);\r\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, hour);\r\n\t\tcalendar.set(Calendar.MINUTE, minute);\r\n\t\treturn calendar;\r\n\t}", "public StartMessage (LocalDate referenceDay, Duration timeInterval ){\n \tthis.timeStepMode = false;\n \tthis.startTimeStep = -1;\n \tthis.lastTimeStep = -1;\n \t\n \tthis.timeMode = false;\n \tthis.startTime = null;\n \tthis.endTime = null; \t\n \t\n \tthis.referenceDay = referenceDay;\n \tthis.realTimeMode = true;\n \tthis.timeInterval = timeInterval;\n }", "StartEvent createStartEvent();", "public AvailabilityCalendar(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "DateLiteral createDateLiteral();", "public EventTimeline() {\n this(0, 0, 91, 9);\n }", "public TestFrames() {\n\t\tclasslogger.info(\"Called constructor for TestFrames...\");\n\t}", "public TimedStateMachineFactoryImpl() {\n\t\tsuper();\n\t}", "public JFrame_05_Mayor_De_10() {\n initComponents();\n \n }", "public FrameControl() {\n initComponents();\n }", "public InterestRateMonteCarloProductFactory(final LocalDate referenceDate) {\n\t\tsuper();\n\t\tthis.referenceDate = referenceDate;\n\t}", "public void testCreateInstance() throws ParseException {\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n Date date = df.parse(\"2008-08-08 12:34:56.789\");\n \n AbstractTemporalLiteral d = AbstractTemporalLiteral.createInstance(TemporalType.DATE, date);\n assertTrue(d instanceof DateLiteral);\n d = AbstractTemporalLiteral.createInstance(TemporalType.TIME, date);\n assertTrue(d instanceof TimeLiteral);\n d = AbstractTemporalLiteral.createInstance(TemporalType.TIMESTAMP, date);\n assertTrue(d instanceof TimestampLiteral);\n \n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n \n d = AbstractTemporalLiteral.createInstance(TemporalType.DATE, cal);\n assertTrue(d instanceof DateLiteral);\n d = AbstractTemporalLiteral.createInstance(TemporalType.TIME, cal);\n assertTrue(d instanceof TimeLiteral);\n d = AbstractTemporalLiteral.createInstance(TemporalType.TIMESTAMP, cal);\n assertTrue(d instanceof TimestampLiteral);\n }", "public TimeFramesSelectionDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public CalendarView(CalendarModel model) \n\t{\n\t\t//make no date be selected by giving it an impossible number\n\t\tbordered = -1;\n\t\t\n\t\tframe.setSize(700, 270);\n\t\tcModel = model;\n\t\tmonthMaxDays = cModel.getMonthMaxDays();\n\t\t\n\t\t//initialize all buttons\n\t\tnextMonth = new JButton(\"Month>\");\n\t\tprevMonth = new JButton(\"<Month\");\n\t\tnextDay = new JButton(\">\");\n\t\tprevDay = new JButton(\"<\");\n\t\tcreateButton = new JButton(\"Create\");\n\t\tcreateButton.setBackground(Color.GREEN);\n\t\tcreateButton.setFont(new Font(\"newFont\", Font.BOLD, 18));\n\t\t\n\t\tquitButton = new JButton(\"Quit\");\n\t\tquitButton.setBackground(Color.RED);\n\t\tquitButton.setForeground(Color.WHITE);\n\t\tquitButton.setFont(new Font(\"newFont\", Font.BOLD, 18));\n\t\t\n\t\t//part where all the dates are on\n\t\tnumberPanel.setLayout(new GridLayout(0,7));\n\t\t\n\t\t//box that contains the events\n\t\tDimension dim = new Dimension(300, 140);\n\t\teventsPane.setPreferredSize(dim);\n\t\teventsPane.setEditable(false);\n\t\t\n\t\t//make the new number buttons\n\t\t\n\t\tmakeDayButtons();\n\t\t\n\t\t//put in the empty buttons\n\t\tfor (int i = 1; i < cModel.findDayOfWeek(1); i++) \n\t\t{\n\t\t\tJButton emptyButton = new JButton();\n\t\t\t\n\t\t\t//these buttons will not work\n\t\t\temptyButton.setEnabled(false);\n\t\t\tnumberPanel.add(emptyButton); //add to panel\n\t\t}\n\t\t\n\t\t//add each button from ArrayList to the panel\n\t\tfor (JButton day : buttonArray) \n\t\t{\n\t\t\tnumberPanel.add(day);\n\t\t}\n\t\t\n\t\t//highlightEvents();\n\t\twriteEvents(cModel.getSelectedDate());\n\t\tborderSelected(cModel.getSelectedDate() - 1);\n\t\t\n\t\t//start adding actionListeners to the buttons\n\t\t\n\t\tnextDay.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\tmodel.nextDay();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\tprevDay.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\tmodel.previousDay();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\tnextMonth.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\tcModel.nextMonth();\n\t\t\t\t\t\tcreateButton.setEnabled(false);\n\t\t\t\t\t\teventsPane.setText(\"\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t//can't switch to next date unless you select one\n\t\t\t\t\t\tnextDay.setEnabled(false);\n\t\t\t\t\t\tprevDay.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\tprevMonth.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\tcModel.previousMonth();\n\t\t\t\t\t\tcreateButton.setEnabled(false);\n\t\t\t\t\t\teventsPane.setText(\"\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t//can't switch to next date unless you select one\n\t\t\t\t\t\tnextDay.setEnabled(false);\n\t\t\t\t\t\tprevDay.setEnabled(false);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\tcreateButton.addActionListener(new ActionListener() \n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tshowEventWindow();\n\t\t\t}\n\t\t});\n\t\t\n\t\tquitButton.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\t//save everything and exit screen\n\t\t\t\t\t\tcModel.saveData();\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\t\n\t\tleftContainer.setLayout(new BorderLayout());\n\t\tmonthYearLabel.setText(monthArray[cModel.getCalMonth()] + \" \" + model.getCalYear());;\n\t\tSMTWTFS.setText(\" S M T W T F S\");\n\t\t\n\t\tJPanel monthYearSMTWTFS = new JPanel();\n\t\tmonthYearSMTWTFS.setLayout(new BorderLayout());\n\t\tmonthYearSMTWTFS.add(monthYearLabel,BorderLayout.NORTH);\n\t\tmonthYearSMTWTFS.add(SMTWTFS,BorderLayout.SOUTH);\n\t\t\n\t\tJPanel createAndNextDays = new JPanel();\n\t\tcreateAndNextDays.add(createButton);\n\t\tcreateAndNextDays.add(prevDay);\n\t\tcreateAndNextDays.add(nextDay);\n\t\t\n\t\tleftContainer.add(createAndNextDays, BorderLayout.NORTH);\n\t\tleftContainer.add(monthYearSMTWTFS, BorderLayout.CENTER);\n\t\tleftContainer.add(numberPanel, BorderLayout.SOUTH);\n\t\t\n\t\t\n\t\trightContainer.setLayout(new BorderLayout());\n\t\tJScrollPane eventScroller = new JScrollPane(eventsPane);\n\t\teventScroller.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);\n\t\t\n\t\tJPanel nextMonthsAndQuit = new JPanel();\n\t\tnextMonthsAndQuit.add(prevMonth);\n\t\tnextMonthsAndQuit.add(nextMonth);\n\t\tnextMonthsAndQuit.add(quitButton);\n\t\t\n\t\tdayDateLabel.setText(dayArray[cModel.findDayOfWeek(cModel.getSelectedDate()) - 1] + \" \" + cModel.getCalMonth() + \"/\" + cModel.getCalDate());\n\t\t\n\t\trightContainer.add(nextMonthsAndQuit, BorderLayout.NORTH);\n\t\trightContainer.add(dayDateLabel, BorderLayout.CENTER);\n\t\trightContainer.add(eventScroller, BorderLayout.SOUTH);\n\t\t\n\t\t\n\t\t//add everything to the frame\n\t\tframe.setLayout(new FlowLayout());\n\t\tframe.add(leftContainer);\n\t\tframe.add(rightContainer);\n\t\t\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t//frame.pack();\n\t\tframe.setVisible(true);\n\t}", "public void selectDate()\r\n\t{\r\n\t\tsetLayout(new FlowLayout());\r\n\t\t\r\n\t\t// Create the DatePicker\r\n\t\tUtilDateModel model = new UtilDateModel();\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.put(\"text.today\", \"Today\");\r\n\t\tproperties.put(\"text.month\", \"Month\");\r\n\t\tproperties.put(\"text.year\", \"Year\");\r\n\t\tJDatePanelImpl datePanel = new JDatePanelImpl(model,properties);\r\n\t\tdatePicker = new JDatePickerImpl(datePanel, new DateFormatter());\r\n\t\t\r\n\t\t// Add confirmation button\r\n\t\tbutton = new JButton(\"OK\");\r\n\t\tbutton.addActionListener(this);\r\n\t\t\r\n\t\t// Display the DatePicker\r\n\t\tadd(datePicker);\r\n\t\tadd(button);\r\n setSize(300,300);\r\n setLocationRelativeTo(null);\r\n setVisible(true);\r\n\t}", "public DateFilterDialog(java.awt.Frame parent, boolean modal) {\n\n\t\tsuper(parent, modal);\n\t\tinitComponents();\n\t\tfillYearFields();\n\t}", "public static Stage initial( int count )\n\t\t{ return new InitialStage( count ); }", "public StartPanel(JFrame theFrame, Group theGroup) {\n super();\n\n myFrame = theFrame;\n myGroup = theGroup;\n\n setup();\n }", "protected StartOfDay() {\n super();\n\n }", "@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}", "public DaySelections(List<Date> dates, List<Date> conflictDates)\n\t{\n\t\tsuper();\n\t\tthis.initializeUI(dates, conflictDates);\t\t\n\t}", "public static void main(String[] args) {\n @SuppressWarnings(\"unused\")\n DesignFrame df = new DesignFrame();\n }", "public Computer withParsedDates() {\n Computer computer = new Computer();\n computer.name = this.name;\n if(!this.dateIntroduced.isEmpty()){\n computer.dateIntroduced = DateStringUtilities.getParsedDate(this.dateIntroduced);\n }\n if(!this.dateDiscontinued.isEmpty()){\n computer.dateDiscontinued = DateStringUtilities.getParsedDate(this.dateDiscontinued);\n }\n computer.company = this.company;\n return computer;\n }", "void setBoardStart(int month, int day, int year) throws IllegalDateException;", "public Builder setFirstFrame(\n org.apache.calcite.avatica.proto.Common.Frame.Builder builderForValue) {\n if (firstFrameBuilder_ == null) {\n firstFrame_ = builderForValue.build();\n onChanged();\n } else {\n firstFrameBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public SSDateBox(DatePicker picker, SSDate date, Format format, FocusImage img, int space) {\n box = new DateBox(picker, date, format);\n image = img;\n\n layoutPanel.add(box);\n layoutPanel.add(image);\n layoutPanel.setWidgetTopBottom(box, 0, Unit.PX, 0, Unit.PX);\n layoutPanel.setWidgetLeftRight(box, 0, Unit.PX, space + 2 + (image.getWidth()), Unit.PX);\n layoutPanel.setWidgetRightWidth(image, 0, Unit.PX, 2 + (image.getWidth()), Unit.PX);\n layoutPanel.setWidgetTopBottom(image, 3, Unit.PX, 2, Unit.PX);\n image.addFocusImageClickEventHandler(this);\n\n initWidget(layoutPanel);\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void createFrame(){\n System.out.println(\"Assembling \" + name + \" frame.\");\n }", "private void createFrame() {\n System.out.println(\"Assembling \" + name + \" frame\");\n }", "private Date init(InputStream ouiData) throws IOException {\n DataInputStream din = new DataInputStream(ouiData);\n Date result = new Date(din.readLong());\n while (din.available() > 0) {\n Oui oui = new Oui(din);\n _byHashCode.put(oui.hashCode(), oui);\n }\n return result;\n }", "protected void createFrames() {\n createStandingRight();\n createStandingLeft();\n createWalkingRight();\n createWalkingLeft();\n createJumpingRight();\n createJumpingLeft();\n createDying();\n }", "public pay_date() {\n initComponents();\n }", "public LabelFactory(int start) {\n assert start >= 0;\n index = start;\n }" ]
[ "0.5521151", "0.5470748", "0.54251814", "0.5268475", "0.5192947", "0.51001096", "0.509493", "0.5087827", "0.50817806", "0.50608283", "0.49868965", "0.4975774", "0.495411", "0.49500132", "0.49452585", "0.49424893", "0.49396327", "0.49350104", "0.49220857", "0.4909034", "0.48847", "0.48797706", "0.48711243", "0.48640972", "0.48617423", "0.48481733", "0.48389196", "0.4808483", "0.47817862", "0.47692636", "0.47598624", "0.47519404", "0.47464374", "0.47435284", "0.4741769", "0.47356245", "0.4729817", "0.47214124", "0.4720882", "0.47195137", "0.4718709", "0.47178867", "0.47154135", "0.47080413", "0.470186", "0.47016063", "0.46991968", "0.4698352", "0.46935326", "0.46894583", "0.46846488", "0.46789527", "0.4674756", "0.46747157", "0.46706367", "0.46663764", "0.46599883", "0.46266463", "0.46232983", "0.4618158", "0.461456", "0.46103176", "0.4599749", "0.4599359", "0.45883548", "0.45863", "0.4584482", "0.45807803", "0.45805013", "0.45787847", "0.4577012", "0.45679575", "0.45656058", "0.455512", "0.45546", "0.45461243", "0.45434433", "0.45431468", "0.4542941", "0.4531912", "0.45279792", "0.45218036", "0.45202366", "0.45201758", "0.45184043", "0.45177376", "0.4511748", "0.45111632", "0.45051935", "0.4501842", "0.45001504", "0.4499386", "0.44970268", "0.44951856", "0.44941103", "0.44888893", "0.44887462", "0.44773075", "0.4476433", "0.44757605" ]
0.5858253
0
Constructs with the specified initial dialog and date selector.
public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector) { this(owner, dateSelector, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Dialog onCreateDialog(int id) {\n\n\t\t// listener for setting date in starting date dialog\n\t\tOnDateSetListener goToDateSetListener = new OnDateSetListener() {\n\n\t\t\t// use when \"set\" press\n\t\t\tpublic void onDateSet(DatePicker view, int year, int monthOfYear,\n\t\t\t\t\tint dayOfMonth) {\n\n\t\t\t\t\tmView.goTo(dayOfMonth, monthOfYear, year);\n\t\t\t\t\tc.set(year, monthOfYear, dayOfMonth);\t\t\n\t\t\t\t\tmonthlyview_month.setText(DateFormat.format(\"d MMMM yyyy\", c));\n\n\t\t\t\t\n\t\t\t}\n\t\t};\n\n\t\treturn new DatePickerDialog(this, goToDateSetListener, Calendar\n\t\t\t\t.getInstance().get(Calendar.YEAR), Calendar.getInstance().get(\n\t\t\t\tCalendar.MONTH), Calendar.getInstance().get(\n\t\t\t\tCalendar.DAY_OF_MONTH));\n\t}", "private void chooseDateDialog() {\n Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DATE);\n\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(Objects.requireNonNull(getContext()), this, year, month, day);\n datePickerDialog.show();\n }", "protected Dialog onCreateDialog(int id) {\n switch(id){\n case DATE_DIALOG_ID:\n //return new DatePickerDialog(this, reservationDate, currentYear, currentMonth, currentDay);\n DatePickerDialog dialog = new DatePickerDialog(this, AlertDialog.THEME_DEVICE_DEFAULT_LIGHT, reservationDate, currentYear, currentMonth, currentDay) {\n public void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth){\n view.setMinDate(new Date().getTime());\n }\n };\n\n dialog.getDatePicker().setMinDate(new Date().getTime());// set Min date in Calendar\n //Calendar calendar = Calendar.getInstance();\n //dialog.getDatePicker().setMinDate(calendar.getTimeInMillis());// set Min date in Calendar\n return dialog;\n }\n return null;\n }", "@Nullable\n @Override\n protected Dialog onCreateDialog(int id, Bundle args) {\n if (id == 101) {\n return new DatePickerDialog(this,\n myDateListener1, year, month, day);\n }else{\n if (id == 102){\n return new DatePickerDialog(this,\n myDateListener2, year, month, day);\n }}\n return null;\n }", "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector)\n\t{\n\t\tthis(owner, dateSelector, true);\n\t}", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(this,\n myDateListener, year, month, day);\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis());\n return datePickerDialog;\n }\n return null;\n }", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal, boolean hint)\n\t{\n\t\tsuper(owner, SwingLocale.getString(\"date_selector\"), new Dimension(280, 145), modal, hint, true);\n\t\t\n\t\tthis.dateSelector = dateSelector;\n\t\t\n\t\tinitComponents();\n\t}", "@Override\r\n protected Dialog onCreateDialog(int id) {\r\n switch (id) {\r\n case DATE_DIALOG_ID:\r\n return new DatePickerDialog(this, \r\n pDateSetListener,\r\n pYear, pMonth, pDay);\r\n\t\tcase DATE_DIALOG1_ID:\r\n return new DatePickerDialog(this, \r\n pDateSetListener1,\r\n pYear, pMonth, pDay);\r\n }\r\n return null;\r\n }", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal)\n\t{\n\t\tthis(owner, dateSelector, modal, false);\n\t}", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this, myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this, myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n if (id == 998) {\n return new DatePickerDialog(this,\n myDateListener_end, year, month, day);\n }\n return null;\n }", "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector, boolean modal, boolean hint)\n\t{\n\t\tsuper(owner, SwingLocale.getString(\"date_selector\"), new Dimension(280, 145), modal, hint, true);\n\t\t\n\t\tthis.dateSelector = dateSelector;\n\t\t\n\t\tinitComponents();\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the current date as the default date in the picker\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n mainViewModel = new ViewModelProvider(requireActivity()).get(MainViewModel.class);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n\tprotected Dialog onCreateDialog(int id) {\n\t\t// this method is called after invoking 'showDialog' for the first time\n\t\t// here we initiate the corresponding DateSlideSelector and return the\n\t\t// dialog to its caller\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\treturn new DateTimeSlider(ActivityGroupMedicine.group,\n\t\t\t\tmDateTimeSetListener, c);\n\t}", "@Override\r\n protected Dialog onCreateDialog(int id) {\r\n switch (id) {\r\n case START_DATE_DIALOG_ID:\r\n return new DatePickerDialog(this,\r\n \t\t\tstartDateSetListener,\r\n \t\t\tstartYear_dp, startMonth_dp-1, startDay_dp); \r\n case START_TIME_DIALOG_ID:\r\n return new TimePickerDialog(this,\r\n \t\t\tstartTimeSetListener, startHour_dp, startMinute_dp, false); \r\n case END_DATE_DIALOG_ID:\r\n return new DatePickerDialog(this,\r\n endDateSetListener,\r\n endYear_dp, endMonth_dp-1, endDay_dp);\r\n case END_TIME_DIALOG_ID:\r\n return new TimePickerDialog(this,\r\n \t\t\tendTimeSetListener, endHour_dp, endMinute_dp, false);\r\n }\r\n return null;\r\n }", "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector, boolean modal)\n\t{\n\t\tthis(owner, dateSelector, modal, false);\n\t}", "@Override\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tint year;\n\t\tint month;\n\t\tint day;\n\t\tif (!this.getArguments().containsKey(\"date\")) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tyear = c.get(Calendar.YEAR);\n\t\t\tmonth = c.get(Calendar.MONTH);\n\t\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\t} else {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tc.setTimeInMillis(getArguments().getLong(\"date\"));\n\t\t\tyear = c.get(Calendar.YEAR);\n\t\t\tmonth = c.get(Calendar.MONTH);\n\t\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\t}\n\t\t// Create a new instance of DatePickerDialog and return it\n\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n int year = calendarSelected.get(Calendar.YEAR);\n int month = calendarSelected.get(Calendar.MONTH);\n int day = calendarSelected.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tCalendar c = Calendar.getInstance();\n\n if((getArguments().getString(ARG_TXT_FECHA)!=null)&&(!getArguments().getString(ARG_TXT_FECHA).isEmpty())){\n String fecha = getArguments().getString(ARG_TXT_FECHA);\n c.setTime(Convertir_fechaStr_a_date_BDD(fecha));\n }\n int year = c.get(Calendar.YEAR);\n int month= c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n //obtener id label fecha\n\t\tthis.idLabelFecha = getArguments().getInt(ARG_ID_VIEW);\n\t\t\n\t\t// Create a new instance of DatePickerDialog and return it\n\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t}", "@Override\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t}", "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tint year = c.get(Calendar.YEAR);\n\t\t\tint month = c.get(Calendar.MONTH);\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\n\t\t\t\n\t\t\t// Create a new instance of DatePickerDialog and return it\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t\t}", "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tint year = c.get(Calendar.YEAR);\n\t\t\tint month = c.get(Calendar.MONTH);\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\n\t\t\t\n\t\t\t// Create a new instance of DatePickerDialog and return it\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t\t}", "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tint year = c.get(Calendar.YEAR);\n\t\t\tint month = c.get(Calendar.MONTH);\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\n\n\t\t\t// Create a new instance of DatePickerDialog and return it\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t\t}", "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tint year = c.get(Calendar.YEAR);\n\t\t\tint month = c.get(Calendar.MONTH);\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\n\n\t\t\t// Create a new instance of DatePickerDialog and return it\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t\t}", "public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog dialog = new DatePickerDialog(getActivity(), this, year, month, day);\n if(this.getMinDate() != null){\n dialog.getDatePicker().setMinDate(this.getMinDate().getTime());\n }\n\n if(this.getMaxDate() != null){\n dialog.getDatePicker().setMaxDate(this.getMaxDate().getTime());\n }\n\n if(getPositiveClickListner() != null){\n dialog.setButton(DialogInterface.BUTTON_POSITIVE, \"OK\", getPositiveClickListner());\n }\n return dialog;\n }", "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) \n\t\t{\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tint year = c.get(Calendar.YEAR);\n\t\t\tint month = c.get(Calendar.MONTH);\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\n\n\t\t\t// Create a new instance of DatePickerDialog and return it\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n c.set(year, month, day);\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\r\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\t\tint year = c.get(Calendar.YEAR);\r\n\t\t\tint month = c.get(Calendar.MONTH);\r\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\t\t// Create a new instance of DatePickerDialog and return it\r\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\r\n\t\t}", "public void initializeDate() {\n //Get current date elements from Calendar object\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH); //Note months are indexed starting at zero (Jan -> 0)\n year = cal.get(Calendar.YEAR);\n\n //Pair EditText to local variable and set input type\n date = (EditText) findViewById(R.id.textSetDate);\n date.setInputType(InputType.TYPE_NULL);\n\n //Set EditText text to be current time\n date.setText((month + 1) + \"/\" + day + \"/\" + year);\n\n //Create onClick listener on date variable\n date.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n datePicker = new DatePickerDialog(ControlCenterActivity.this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int dayOfMonth) {\n date.setText((month + 1) + \"/\" + dayOfMonth + \"/\" + year);\n }\n }, year, month, day);\n\n datePicker.show();\n }\n });\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n mYear = getArguments().getInt(\"year\");\n mMonth = getArguments().getInt(\"month\");\n mDay = getArguments().getInt(\"day\");\n mStart = getArguments().getBoolean(\"start\");\n\n // create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, mYear, mMonth, mDay);\n }", "@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\r\n int year = c.get(Calendar.YEAR);\r\n int month = c.get(Calendar.MONTH);\r\n int day = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n // Create a new instance of DatePickerDialog and return it\r\n return new DatePickerDialog(getActivity(), this, year, month, day);\r\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState){\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new DatePickerDialog instance and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), android.R.style.Theme_Holo_Dialog, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int y, int m, int d) {\n String dayString = String.valueOf(d);\n if (dayString.length() == 1)\n dayString = \"0\" + dayString;\n\n int month = m + 1;\n String monthString = String.valueOf(month);\n if (monthString.length() == 1)\n monthString = \"0\" + monthString;\n\n mListener.onDateSetListener(Integer.toString(y), monthString, dayString);\n }\n }, year, month, day);\n datePickerDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n return datePickerDialog;\n }", "@Override\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tint year = c.get(Calendar.YEAR);\n\t\tint month = c.get(Calendar.MONTH);\n\t\tint day = c.get(Calendar.DAY_OF_MONTH);\n\n\t\t// Create a new instance of DatePickerDialog and return it\n\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t}", "public abstract void initDialog();", "private void initDatePicker() {\n DatePickerDialog.OnDateSetListener dateSetListener = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n month = month + 1;\n String date = makeDateString(day, month, year);\n btnDiaCitaver.setText(date);\n }\n };\n// Calendar cal = Calendar.getInstance();\n// int year = cal.get(Calendar.YEAR);\n// int month = cal.get(Calendar.MONTH);\n// int day = cal.get(Calendar.DAY_OF_MONTH);\n // Traer la fecha de la cita por partes\n String[] vec_fecha = infoCita.getString(1).split(\" \");\n String[] vec_fecha_dia = vec_fecha[0].split(\"-\");\n int year = Integer.parseInt(vec_fecha_dia[0]);\n int month = Integer.parseInt(vec_fecha_dia[1]) - 1;\n int day = Integer.parseInt(vec_fecha_dia[2]);\n\n int style = AlertDialog.THEME_DEVICE_DEFAULT_DARK;\n datePickerDialogFecha = new DatePickerDialog(this, style, dateSetListener, year, month, day);\n// datePickerDialogFechaNacimiento.getDatePicker().setMaxDate(cal.getTimeInMillis());\n\n }", "private void pickDate(final Calendar initDate){\n //callback for when a date is picked\n DatePickerDialog.OnDateSetListener setDate = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n initDate.set(year, month, dayOfMonth,\n initDate.get(Calendar.HOUR_OF_DAY),\n initDate.get(Calendar.MINUTE),\n initDate.get(Calendar.SECOND));\n setDateTimeViews();\n }\n };\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(this,\n setDate, //callback\n initDate.get(Calendar.YEAR), //initial values\n initDate.get(Calendar.MONTH),\n initDate.get(Calendar.DAY_OF_MONTH));\n datePickerDialog.show(); //shows the dialogue\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar calendar = Calendar.getInstance();\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(getActivity(), this, year, month, day);\n datePickerDialog.getDatePicker().setMinDate(calendar.getTimeInMillis());\n return datePickerDialog;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "public void setDate() {\n DatePickerDialog dateDialog = new DatePickerDialog(this, myDateListener,\n calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));\n //set the date limits so user cannot pick a date outside of game scope\n dateDialog.getDatePicker().setMinDate(System.currentTimeMillis() + MILLIS_IN_DAY);\n dateDialog.getDatePicker().setMaxDate(System.currentTimeMillis() + (MILLIS_IN_DAY * MAX_END_DAY_COUNT));\n dateDialog.show();\n }", "@Override\n public Dialog onCreateDialog (Bundle savedInstanceState)\n {\n // Use the current time as the default values for the picker\n final Calendar c = Calendar.getInstance();\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n // Create a new instance of TimePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@RequiresApi(api = Build.VERSION_CODES.N)\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the current date as the default date in the picker\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "private void initDialog() {\n }", "@SuppressLint(\"StaticFieldLeak\")\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n myear = c.get(Calendar.YEAR);\n mmonth= c.get(Calendar.MONTH);\n mday= c.get(Calendar.DAY_OF_MONTH);\n return new DatePickerDialog(getActivity(), this, myear, mmonth, mday);\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {\n DatePickerDialog dialog;\n Calendar calendar = Calendar.getInstance();\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n\n dialog = selectConfigurationColorThemeInstance(year, month, day);\n dialog.getDatePicker().setMaxDate(calendar.getTime().getTime());\n\n return dialog;\n }", "public StandardDialog() {\n super();\n init();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n if (mYear == null || mMonthOfYear == null || mDayOfMonth == null) {\n final Calendar c = Calendar.getInstance();\n mYear = c.get(Calendar.YEAR);\n mMonthOfYear = c.get(Calendar.MONTH);\n mDayOfMonth = c.get(Calendar.DAY_OF_MONTH);\n }\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, mYear, mMonthOfYear, mDayOfMonth);\n datePickerDialog.getDatePicker().setMaxDate(DateTime.now().getMillis());\n return datePickerDialog;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog dpd = new DatePickerDialog(getActivity(), this, year, month, day);\n return dpd;\n }", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\r\n int year = c.get(Calendar.YEAR);\r\n int month = c.get(Calendar.MONTH);\r\n int day = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n d_fechaCreacion = getActivity().findViewById(R.id.d_fechaTransectaItem);\r\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);\r\n datePickerDialog.updateDate(year, month, day);\r\n // Create a new instance of DatePickerDialog and return it\r\n return datePickerDialog;\r\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n DatePickerDialog dialog = new DatePickerDialog(LocationActivity.this, this, startYear, startMonth, startDay);\n return dialog;\n\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n //final Calendar d = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 1000);\n c.add(Calendar.DATE, 60);\n datePickerDialog.getDatePicker().setMaxDate(c.getTimeInMillis());\n return datePickerDialog;\n }", "private void launchDatePicker(DatePickerDialog.OnDateSetListener dateSetListener) {\n // Create Calendar object\n Calendar cal = Calendar.getInstance();\n // get year, month and day\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH);\n int day = cal.get(Calendar.DAY_OF_MONTH);\n // Create the DatePickerDialog object\n DatePickerDialog dialog = new DatePickerDialog(this,android.R.style.Widget_Material_DatePicker, dateSetListener,year,month,day);\n // Show the dialog\n dialog.show();\n }", "private void initPopupDate() {\n editDate = findViewById(R.id.date_depense);\n date = new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n // TODO Auto-generated method stub\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDate();\n }\n\n };\n\n // onclick - popup datepicker\n editDate.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n new DatePickerDialog(context, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }\n });\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog dialog = new DatePickerDialog(getActivity(), this, year, month, day);\n\n dialog.setButton(DialogInterface.BUTTON_NEGATIVE, \"Cancel\", new DialogInterface\n .OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n if (which == DialogInterface.BUTTON_NEGATIVE) {\n dialog.cancel();\n }\n }\n });\n\n return dialog;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n DatePickerDialog dialog = new DatePickerDialog(getActivity(), this, mmd_year, mmd_month, mmd_day);\n return dialog;\n }", "private void DateSelection(final TextView tv_inv_date) {\n try {\r\n AlertDialog.Builder dlgReportDate = new AlertDialog.Builder(myContext);\r\n final DatePicker dateReportDate = new DatePicker(myContext);\r\n String date_str = tvDate.getText().toString();\r\n String dd = date_str.substring(6,10)+\"-\"+date_str.substring(3,5)+\"-\"+date_str.substring(0,2);\r\n DateTime objDate = new DateTime(dd);\r\n dateReportDate.updateDate(objDate.getYear(), objDate.getMonth(), objDate.getDay());\r\n String strMessage = \"\";\r\n\r\n\r\n\r\n dlgReportDate\r\n .setIcon(R.drawable.ic_launcher)\r\n .setTitle(\"Date Selection\")\r\n .setMessage(strMessage)\r\n .setView(dateReportDate)\r\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\r\n String strDd = \"\";\r\n public void onClick(DialogInterface dialog, int which) {\r\n if (dateReportDate.getDayOfMonth() < 10) {\r\n strDd = \"0\" + String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\r\n } else {\r\n strDd = String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\r\n }\r\n if (dateReportDate.getMonth() < 9) {\r\n strDd += \"0\" + String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\r\n } else {\r\n strDd += String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\r\n }\r\n\r\n strDd += String.valueOf(dateReportDate.getYear());\r\n tv_inv_date.setText(strDd);\r\n Log.d(\"ReprintDate\", \"Selected Date:\" + strDd);\r\n }\r\n })\r\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\r\n\r\n public void onClick(DialogInterface dialog, int which) {\r\n // TODO Auto-generated method stub\r\n\r\n }\r\n })\r\n .show();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), startdatepicker, trigger.getStarttime().get(Calendar.YEAR), trigger.getStarttime().get(Calendar.MONTH), trigger.getStarttime().get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Date c = new Date();\n int year = c.getYear();\n int month = c.getMonth();\n int day = c.getDay();\n\n // CreateFragment a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n Calendar cal = Calendar.getInstance();\r\n int year = cal.get(Calendar.YEAR);\r\n int month = cal.get(Calendar.MONTH);\r\n int day = cal.get(Calendar.DAY_OF_MONTH);\r\n Log.i(TAG,\"onCreate Date: \" + year + \"-\" + month + \"-\" + day);\r\n // Create a new instance of TimePickerDialog and return it\r\n DatePickerDialog dpd = new DatePickerDialog(getActivity(),this, year, month, day);\r\n dpd.getDatePicker().setMaxDate(System.currentTimeMillis() + 1000);\r\n return dpd;\r\n }", "private void DateDialogPicker(DatePickerDialog.OnDateSetListener listener) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(),\n listener, year, month, day);\n\n datePickerDialog.show();\n }", "@TargetApi(Build.VERSION_CODES.N)\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);\n datePickerDialog.getDatePicker().setMaxDate(new Date().getTime());\n return datePickerDialog;\n }", "@TargetApi(Build.VERSION_CODES.N)\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);\n datePickerDialog.getDatePicker().setMaxDate(new Date().getTime());\n return datePickerDialog;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n DatePickerDialog pickerDialog=null;\n if (id == 999)\n pickerDialog = new DatePickerDialog(this,myDateListener, year, month, day);\n else\n if(id==888)\n pickerDialog = new DatePickerDialog(this,myDateListener1, year, month, day);\n\n Calendar c1 = Calendar.getInstance();\n\n c1.set(year,month,day,c1.get(Calendar.HOUR_OF_DAY)-1,c1.get(Calendar.MINUTE)-1,c1.get(Calendar.SECOND)-30);\n //c1.add(Calendar.DAY_OF_MONTH,-1);\n long minDate = c1.getTime().getTime();\n pickerDialog.getDatePicker().setMinDate(minDate);\n\n Date today = new Date();\n Calendar c = Calendar.getInstance();\n c.setTime(today);\n\n c.add(Calendar.MONTH, 18 ); // Subtract 6 months\n long maxDate = c.getTime().getTime(); // Twice!\n pickerDialog.getDatePicker().setMaxDate(maxDate);\n\n\n return pickerDialog;\n\n\n }", "public Dialog() {\n\t}", "private void setEntryDateField1() {\n // Create a DatePickerDialog and manage it\n mEntryDatePickerDialog1 = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDateEntryOfTheMarket = Calendar.getInstance();\n newDateEntryOfTheMarket.set(year, monthOfYear, dayOfMonth);\n\n // Update entryDate in ViewModel\n mSearchEstateViewModel.getDateEntryOfTheMarket1().setValue(newDateEntryOfTheMarket);\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH),\n newCalendar.get(Calendar.DAY_OF_MONTH));\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflator = getActivity().getLayoutInflater();\n View view = inflator.inflate(R.layout.informationdialog, datePicker);\n builder.setView(view);\n init(view);\n Dialog dialog = builder.create();\n\n //Dialog will not close automatically until user click on cancle button.\n setCancelable(false);\n return dialog;\n }", "public void openDatePicker() {\n\n Calendar now = Calendar.getInstance();\n DatePickerDialog dpd = DatePickerDialog.newInstance(\n this,\n now.get(Calendar.YEAR),\n now.get(Calendar.MONTH),\n now.get(Calendar.DAY_OF_MONTH)\n );\n dpd.show(getActivity().getFragmentManager(), StringConstants.KEY_DATEPICKER_DIALOG);\n //dpd.setAccentColor(R.color.hb_medication_history);\n dpd.showYearPickerFirst(true);\n dpd.setMaxDate(now);\n dpd.setYearRange(StaticConstants.MIN_DATE, now.get(Calendar.YEAR));\n }", "private void DateSelection(final TextView tv_inv_date ) {\n try {\n AlertDialog.Builder dlgReportDate = new AlertDialog.Builder(this);\n final DatePicker dateReportDate = new DatePicker(this);\n String date_str = tvDate.getText().toString();\n String dd = date_str.substring(6,10)+\"-\"+date_str.substring(3,5)+\"-\"+date_str.substring(0,2);\n DateTime objDate = new DateTime(dd);\n dateReportDate.updateDate(objDate.getYear(), objDate.getMonth(), objDate.getDay());\n String strMessage = \"\";\n\n\n dlgReportDate\n .setIcon(R.drawable.ic_launcher)\n .setTitle(\"Date Selection\")\n .setMessage(strMessage)\n .setView(dateReportDate)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n String strDd = \"\";\n public void onClick(DialogInterface dialog, int which) {\n if (dateReportDate.getDayOfMonth() < 10) {\n strDd = \"0\" + String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\n } else {\n strDd = String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\n }\n if (dateReportDate.getMonth() < 9) {\n strDd += \"0\" + String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\n } else {\n strDd += String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\n }\n\n strDd += String.valueOf(dateReportDate.getYear());\n tv_inv_date.setText(strDd);\n Log.d(\"ReprintDate\", \"Selected Date:\" + strDd);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n\n }\n })\n .show();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public DatePickerDialog(@NonNull Context context) {\n this(context, 0, null, Calendar.getInstance(), -1, -1, -1);\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(MainActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "private void showDateDialog() {\n\t\tDateDetailInfo[] dateInfo = DateDetailInfo.getDateDetailInfo();\n\t\tboolean noDate = (dateInfo == null);\n\t\tboolean allPermanent = (null != dateInfo)\n\t\t\t\t&& (dateInfo.length == 1)\n\t\t\t\t&& (dateInfo[0] != null)\n\t\t\t\t&& (dateInfo[0].deadText != null)\n\t\t\t\t&& (dateInfo[0].deadText.equals(this.getResources().getString(\n\t\t\t\t\t\tR.string.package_detail_forever)));\n\t\tif (DateDetailInfo.dayOffMax > 0 && (!(noDate || allPermanent))) {\n\t\t\tinitDateDialog();\n\t\t\tDateDialog dialog = new DateDialog(this);\n\t\t\tdialog.getWindow().setBackgroundDrawable(new ColorDrawable(0));\n\t\t\tdialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\tdialog.setListener(new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tstartGetTicketActivity();\n\t\t\t\t}\n\t\t\t});\n\t\t\tif (null != DateDialog.mListStr && DateDialog.mListStr.length > 1) {\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t}\n\t}", "private void initDatePicker() {\n pickDateBox.setDayCellFactory(picker -> new DateCell() {\n public void updateItem(LocalDate date, boolean empty) {\n super.updateItem(date, empty);\n LocalDate today = LocalDate.now();\n\n setDisable(empty || date.compareTo(today) < 0 );\n }\n });\n }", "private void setEntryDateField2() {\n // Create a DatePickerDialog and manage it\n mEntryDatePickerDialog2 = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDateEntryOfTheMarket = Calendar.getInstance();\n newDateEntryOfTheMarket.set(year, monthOfYear, dayOfMonth);\n\n // Update entryDate in ViewModel\n mSearchEstateViewModel.getDateEntryOfTheMarket2().setValue(newDateEntryOfTheMarket);\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH),\n newCalendar.get(Calendar.DAY_OF_MONTH));\n }" ]
[ "0.6836603", "0.6782969", "0.6752844", "0.6696911", "0.666917", "0.66473615", "0.6640167", "0.6628811", "0.66005254", "0.6594426", "0.6594426", "0.6591357", "0.6591357", "0.6591357", "0.6591357", "0.6591357", "0.6591357", "0.65787554", "0.6576582", "0.6500847", "0.6447955", "0.64456457", "0.6440175", "0.6394957", "0.6394714", "0.6326342", "0.6307795", "0.629083", "0.629083", "0.62873465", "0.62873465", "0.6261684", "0.62606007", "0.62564915", "0.6241895", "0.6236726", "0.62227833", "0.6216013", "0.62135166", "0.6211663", "0.6194728", "0.61927795", "0.6186971", "0.61753494", "0.6148784", "0.61470777", "0.61470777", "0.61470777", "0.61470777", "0.61470777", "0.61470777", "0.61470777", "0.61470777", "0.61470777", "0.61470777", "0.61470777", "0.61470777", "0.61470777", "0.6143351", "0.6143351", "0.6143351", "0.6143351", "0.6143351", "0.6143351", "0.6142447", "0.6139955", "0.6138905", "0.6116504", "0.6102654", "0.61000293", "0.6086537", "0.6086514", "0.60808635", "0.6047324", "0.6044545", "0.6027799", "0.60275584", "0.6026043", "0.60205394", "0.60026425", "0.5993933", "0.5987829", "0.59572494", "0.5956418", "0.59512526", "0.59506774", "0.5939355", "0.5932456", "0.5932456", "0.59083366", "0.58971655", "0.58966345", "0.58903325", "0.5865625", "0.58532995", "0.5834665", "0.5834391", "0.5819058", "0.580422", "0.579679" ]
0.6900203
0
Constructs with the specified initial frame, date selector and modal.
public JDateSelectorDialog(Frame owner, JDateSelector dateSelector, boolean modal) { this(owner, dateSelector, modal, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal)\n\t{\n\t\tthis(owner, dateSelector, modal, false);\n\t}", "public TimeFramesSelectionDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public NewGameDialog(Frame frame, boolean modal) {\n super(frame, modal);\n initComponents();\n setLocationRelativeTo(frame);\n }", "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector)\n\t{\n\t\tthis(owner, dateSelector, true);\n\t}", "public AvailabilityCalendar(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector, boolean modal, boolean hint)\n\t{\n\t\tsuper(owner, SwingLocale.getString(\"date_selector\"), new Dimension(280, 145), modal, hint, true);\n\t\t\n\t\tthis.dateSelector = dateSelector;\n\t\t\n\t\tinitComponents();\n\t}", "public CalendarFrame()\n\t{\n\t\tmodel = new Model();\n\t\tcontroller = new ControllerPanel(model);\n\t\tview = new MonthlyView(model);\n\t\tmodel.attach(view);\n\n\t\tthis.setSize(1500, 700);\n\t\tadd(controller, BorderLayout.NORTH);\n\t\tadd(view, BorderLayout.CENTER);\n\t\tsetBackground(Color.WHITE);\n\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t// pack();\n\t\tsetVisible(true);\n\t}", "public ViewDailyDayBookRecord(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n setLocation(280, 90);\n\n }", "public DateFilterDialog(java.awt.Frame parent, boolean modal) {\n\n\t\tsuper(parent, modal);\n\t\tinitComponents();\n\t\tfillYearFields();\n\t}", "Frame createFrame();", "public MantBHA(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents(); \n }", "public SetopenTimeD(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n theMainFrame=(Main)parent;\n }", "private void jbInit() throws Exception {\r\n setLayout(new BorderLayout());\r\n\r\n // set how the cloning should be done\r\n if (this.FORCE_SERIALIZE_COPY) {\r\n getMonthSelectorStyle().forceSerializeCopy(true);\r\n getDaySelectorStyle().forceSerializeCopy(true);\r\n getTodaySelectorStyle().forceSerializeCopy(true);\r\n }\r\n\r\n // update or set the locale\r\n getMonthSelectorStyle().setLocale(locale);\r\n getDaySelectorStyle().setLocale(locale);\r\n\r\n // set up the calendar panel\r\n daySelector = new DaySelector(getDaySelectorStyle());\r\n daySelector.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n if (e.getID() == DateChooserAction.calendarButtonSelected) {\r\n currentDate.set(java.util.Calendar.DAY_OF_MONTH,\r\n ( (DaySelector) e.getSource()).selectedDay);\r\n selectedDate = (Calendar) currentDate.clone();\r\n getParent().setVisible(false);\r\n }\r\n }\r\n });\r\n add(daySelector, daySelectorPosition);\r\n\r\n // set up the month selector panel\r\n if (showMonthSelector) {\r\n monthSelector = new MonthSelector(getMonthSelectorStyle());\r\n monthSelector.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n if (e.getID() == DateChooserAction.previousMonthSelected) {\r\n currentDate.add(java.util.Calendar.MONTH, -1);\r\n update();\r\n }\r\n if (e.getID() == DateChooserAction.nextMonthSelected) {\r\n currentDate.add(java.util.Calendar.MONTH, 1);\r\n update();\r\n }\r\n }\r\n });\r\n add(monthSelector, monthSelectorPosition);\r\n }\r\n\r\n // add the today selector panel\r\n if (showTodaySelector) {\r\n todaySelector = new TodaySelector(getTodaySelectorStyle());\r\n todaySelector.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n if (e.getID() == DateChooserAction.todaySelected) {\r\n currentDate.setTime(Calendar.getInstance().getTime());\r\n selectedDate = (Calendar) currentDate.clone();\r\n getParent().setVisible(false);\r\n }\r\n }\r\n });\r\n add(todaySelector, todaySelectorPosition);\r\n }\r\n update();\r\n }", "public JDAgendarConsulta(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector)\n\t{\n\t\tthis(owner, dateSelector, true);\n\t}", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal, boolean hint)\n\t{\n\t\tsuper(owner, SwingLocale.getString(\"date_selector\"), new Dimension(280, 145), modal, hint, true);\n\t\t\n\t\tthis.dateSelector = dateSelector;\n\t\t\n\t\tinitComponents();\n\t}", "public SobreSoftware(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public SelectorColor(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public FWFExecution(java.awt.Frame parent, boolean modal, CompositionModel compositionModel) {\n super(parent, modal);\n initComponents();\n this.compositionModel = compositionModel;\n }", "public RC2(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public MultipleYearSelector(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n \n Image image = new ImageIcon(getClass().getResource(\"/visao/images/cattle.png\")).getImage();\n this.setIconImage(image);\n \n atual = ControlePerfil.getInstance().getPerfilSelecionado();\n \n super.setTitle(\"SGPL - Relatório de Indicadores Anuais\");\n \n super.setLocationRelativeTo(null);\n super.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n super.setResizable(false);\n super.getRootPane().setDefaultButton(confirmaBT);\n \n listaAnos.setBackground(Color.WHITE);\n listaAnos.setSelectionBackground(Color.GRAY);\n listaAnos.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n \n selectedYears = new ArrayList<>();\n }", "public fSobre(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public JFrame_05_Mayor_De_10() {\n initComponents();\n \n }", "public static void buildFrame() {\r\n\t\t// Make sure we have nice window decorations\r\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\r\n\t\t\r\n\t\t// Create and set up the window.\r\n\t\t//ParentFrame frame = new ParentFrame();\r\n\t\tMediator frame = new Mediator();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\t// Display the window\r\n\t\tframe.setVisible(true);\r\n\t}", "public LegalDialog(final JFrame frame, final boolean modal) {\n\t\tsuper(frame, modal);\n\t\tinitialize();\n\n\t\t// own stuff\n\t\tif (frame != null) {\n\t\t\tPoint p = frame.getLocation();\n\t\t\tthis.setLocation(p.x+frame.getWidth()/2-getWidth()/2, p.y+frame.getHeight()/2-getHeight()/2);\n\t\t} else {\n\t\t\tGraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n\t\t\tPoint p = ge.getCenterPoint();\n\t\t\tp.x -= this.getWidth()/2;\n\t\t\tp.y -= this.getHeight()/2;\n\t\t\tthis.setLocation(p);\n\t\t}\n\t\tinit();\n\t}", "FRAME createFRAME();", "public GUI(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public void buildFrame();", "public PLGSingleLogSetup(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "private void buildFrame() {\n String title = \"\";\n switch (formType) {\n case \"Add\":\n title = \"Add a new event\";\n break;\n case \"Edit\":\n title = \"Edit an existing event\";\n break;\n default:\n }\n frame.setTitle(title);\n frame.setResizable(false);\n frame.setPreferredSize(new Dimension(300, 350));\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // sets the main form to be visible if the event form was exited\n // and not completed.\n mainForm.getFrame().setEnabled(true);\n mainForm.getFrame().setVisible(true);\n }\n });\n }", "public launchFrame() {\n \n initComponents();\n \n }", "private void agendaFrame() {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfinal JFrame frame = new JFrame(\"Please select a time period.\");\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t\t\ttry {\n\t\t\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\tpanel.setLayout(new GridLayout(1, 4));\n\t\t\t\t//JTextField d = new JTextField(\"\" + year + \"/\" + month + \"/\" + day);\n\t\t\t\tfinal JTextField startDate = new JTextField(\"1\" + \"/1\" + \"/2016\");\n\t\t\t\tJTextField to = new JTextField(\"to\");\n\t\t\t\tto.setEditable(false);\n\t\t\t\tfinal JTextField endDate = new JTextField(\"1\" + \"/2\" + \"/2016\");\n\t\t\t\tJButton go = new JButton(\"Go\");\n\t\t\t\t\n\t\t\t\tgo.addActionListener(new ActionListener() {\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\teventsRender = new AgendaViewRender();\n\t\t\t\t\t\tAgendaViewRender.setStartDate(startDate.getText());\n\t\t\t\t\t\tAgendaViewRender.setEndDate(endDate.getText());\n\t\t\t\t\t\tupdateEventsView(eventsRender);\n\t\t\t\t\t\tframe.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tpanel.add(startDate);\n\t\t\t\tpanel.add(to);\n\t\t\t\tpanel.add(endDate);\n\t\t\t\tpanel.add(go);\n\t\t\t\t\n\t\t\t\tframe.setSize(500, 100);\n\t\t\t\tframe.setLayout(new GridLayout(2, 1));\n\t\t\t\tframe.add(panel);\n\t\t\t\tframe.setLocationByPlatform(true);\n\t\t\t\tframe.setVisible(true);\n\n\t\t\t}\n\t\t});\n\t}", "public Competidor(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n centralizar();\n }", "public FrameMain() {\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n initComponents();\n refreshSchedule();\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(FrameMain.class.getName()).log(Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n Logger.getLogger(FrameMain.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n Logger.getLogger(FrameMain.class.getName()).log(Level.SEVERE, null, ex);\n } catch (UnsupportedLookAndFeelException ex) {\n Logger.getLogger(FrameMain.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public MainFrame() {\n initComponents();\n\n mAlmondUI.addWindowWatcher(this);\n mAlmondUI.initoptions();\n\n initActions();\n init();\n\n if (IS_MAC) {\n initMac();\n }\n\n initMenus();\n mActionManager.setEnabledDocumentActions(false);\n }", "private void createFrame(){\n JPanel jPanelID = new JPanel();\n jPanelID.setLayout(new GridBagLayout());\n JLabel labelText = new JLabel(this.dialogName);\n labelText.setHorizontalAlignment(JLabel.CENTER);\n AddComponent.add(jPanelID,labelText, 0, 0, 2, 1);\n for (int field = 0; field < labelString.length; field++) {\n labelText = new JLabel(labelString[field]);\n AddComponent.add(jPanelID, labelText, 0, field + 1, 1, 1);\n AddComponent.add(jPanelID, fieldID.get(labelString[field]), 1, field + 1, 1, 1);\n }\n int offset = labelString.length + 1;\n labelText = new JLabel(DATE_OF_BIRTH);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, jDateChooser, 1, offset, 1, 1);\n offset++;\n labelText = new JLabel(GROUP);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, group, 1, offset, 1, 1);\n dialog.add(jPanelID, BorderLayout.NORTH);\n JButton okButton = new JButton(dialogName);\n okButton.addActionListener(actionEvent -> checkAndSave());\n dialog.add(okButton, BorderLayout.SOUTH);\n }", "public ADateDemo() {\n\n\n initComponents();\n\n\n }", "public BusquedaJuicio(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n setLocationRelativeTo(parent); \n }", "public FrmPatient(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public CreerEmploye(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n //positionnement au milieu de la fenetre parente\n this.setLocationRelativeTo(parent);\n Integer date = new Date().getYear() + 1900;\n this.jTextFieldGererAnneeEntree.setText(date.toString());\n }", "public Nouveau(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n getContentPane().setBackground(Color.white);\n }", "CalendarFrame(EventModel eM) {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetTitle(\"CS151Project\");\n\t\tsetSize(1200, 400);\n\t\tsetVisible(true);\n\t\tsetLayout(new GridLayout(1, 2));\n\t\taddWindowListener(new WindowAdapter()\n\t\t{\n\t\t public void windowClosing(WindowEvent e)\n\t\t {\n\t\t \tObjectOutputStream out = null;\n\t\t\t\ttry {\n\t\t\t\t\tout = new ObjectOutputStream(new FileOutputStream(\"events.data\"));\n\t\t\t\t\tout.writeObject(eventsData.getAllEvents());\n\t\t\t\t\tout.close();\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\tpromptMsg(e1.getMessage(), \"Message\");\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\tpromptMsg(e1.getMessage(), \"Message\");\n\t\t\t\t}\n\t\t }\n\t\t});\n\n\t\teventsData = eM;\n\t\teventsRender = new DayViewRender();\n\n\t\teventsData.attach(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tupdateData();\n\t\t\t\tupdateTableView();\n\t\t\t\tupdateEventsView(eventsRender);\n\t\t\t}\n\t\t});\n\n\t\t// previous day button\n\t\tJButton preDay = new JButton(\"<-\");\n\t\tpreDay.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tcal.add(Calendar.DAY_OF_MONTH, -1);\n\t\t\t\teventsData.updateDate(cal);\n\t\t\t}\n\t\t});\n\n\t\t// current day button\n\t\tJButton today = new JButton(\"Today\");\n\t\ttoday.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tcal = new GregorianCalendar();\n\t\t\t\teventsData.updateDate(cal);\n\t\t\t}\n\t\t});\n\n\t\t// next day button\n\t\tJButton nextDay = new JButton(\"->\");\n\t\tnextDay.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tcal.add(Calendar.DAY_OF_MONTH, +1);\n\t\t\t\teventsData.updateDate(cal);\n\t\t\t}\n\t\t});\n\n\t\t// Top1 left: panel1\n\t\tJPanel panel1 = new JPanel();\n\t\tpanel1.setLayout(new BorderLayout());\n\t\tpanel1.add(preDay, BorderLayout.WEST);\n\t\tpanel1.add(today, BorderLayout.CENTER);\n\t\tpanel1.add(nextDay, BorderLayout.EAST);\n\n\t\t// previous month button\n\t\tJButton b1 = new JButton(\"<-\");\n\t\tb1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tcal.add(Calendar.MONTH, -1);\n\t\t\t\teventsData.updateDate(cal);\n\t\t\t}\n\t\t});\n\n\t\t// next month button\n\t\tJButton b2 = new JButton(\"->\");\n\t\tb2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tcal.add(Calendar.MONTH, +1);\n\t\t\t\teventsData.updateDate(cal);\n\t\t\t}\n\t\t});\n\n\t\t// Month year label\n\t\tlabel = new JLabel();\n\t\tlabel.setHorizontalAlignment(SwingConstants.CENTER);\n\n\t\t// Top2 left: panel2\n\t\tJPanel panel2 = new JPanel();\n\t\tpanel2.setLayout(new BorderLayout());\n\t\tpanel2.add(b1, BorderLayout.WEST);\n\t\tpanel2.add(label, BorderLayout.CENTER);\n\t\tpanel2.add(b2, BorderLayout.EAST);\n\n\t\tJPanel topLeft = new JPanel();\n\t\ttopLeft.setLayout(new GridLayout(2, 1));\n\t\ttopLeft.add(panel1);\n\t\ttopLeft.add(panel2);\n\n\t\t// Calendar model\n\t\tString[] columns = { \"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\" };\n\t\tmodel = new DefaultTableModel(null, columns) {\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\n\t\t// Calendar table\n\t\ttable = new JTable(model) {\n\t\t\tpublic TableCellRenderer getCellRenderer(int row, int column) {\n\t\t\t\treturn new CellRenderer();\n\t\t\t}\n\t\t};\n\t\ttable.setCellSelectionEnabled(true);\n\t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\ttable.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tint rowCal = table.getSelectedRow();\n\t\t\t\tint columnCal = table.getSelectedColumn();\n\t\t\t\tint val = (int) model.getValueAt(rowCal, columnCal);\n\t\t\t\tcal.set(Calendar.DAY_OF_MONTH, val);\n\t\t\t\teventsData.updateDate(cal);\n\t\t\t}\n\t\t});\n\n\t\t// middle left: pane1\n\t\tJScrollPane pane1 = new JScrollPane(table);\n\n\t\t// bottom left: create\n\t\tJButton create = new JButton(\"Create\");\n\t\tcreate.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcreateFrame();\n\t\t\t}\n\t\t});\n\n\t\t// left: paneLeft\n\t\tJPanel panelLeft = new JPanel();\n\t\tpanelLeft.setLayout(new BorderLayout());\n\t\tpanelLeft.add(topLeft, BorderLayout.NORTH);\n\t\tpanelLeft.add(pane1, BorderLayout.CENTER);\n\t\tpanelLeft.add(create, BorderLayout.SOUTH);\n\n\t\t// top right\n\t\tJButton dayView = new JButton(\"Day\");\n\t\tdayView.addActionListener(eventsViewListener(DAY));\n\t\tJButton weekView = new JButton(\"Week\");\n\t\tweekView.addActionListener(eventsViewListener(WEEK));\n\t\tJButton monthView = new JButton(\"Month\");\n\t\tmonthView.addActionListener(eventsViewListener(MONTH));\n\t\tJButton agendaView = new JButton(\"Agenda\");\n\t\tagendaView.addActionListener(eventsViewListener(AGENDA));\n\t\tJButton inputFile = new JButton(\"From File\");\n\t\tinputFile.addActionListener(loadFile());\n\t\tJPanel topRightPanel = new JPanel();\n\t\ttopRightPanel.setLayout(new GridLayout(1, 5));\n\t\ttopRightPanel.add(dayView);\n\t\ttopRightPanel.add(weekView);\n\t\ttopRightPanel.add(monthView);\n\t\ttopRightPanel.add(agendaView);\n\t\ttopRightPanel.add(inputFile);\n\n\t\t// Events table\n\t\teventsTable = new JTable() {\n\t\t\tpublic Component prepareRenderer(TableCellRenderer renderer, int row, int column) {\n\t\t\t\tComponent result = super.prepareRenderer(renderer, row, column);\n\t\t\t\tif (result instanceof JComponent) {\n\t\t\t\t\t((JComponent) result).setBorder(new MatteBorder(1, 1, 0, 0, Color.BLACK));\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t}\n\t\t};\n\n\t\tJScrollPane pane2 = new JScrollPane(eventsTable);\n\n\t\tJPanel panelRight = new JPanel();\n\t\tpanelRight.setLayout(new BorderLayout());\n\t\tpanelRight.add(topRightPanel, BorderLayout.NORTH);\n\t\tpanelRight.add(pane2, BorderLayout.CENTER);\n\n\t\tadd(panelLeft);\n\t\tadd(panelRight);\n\n\t\teventsRender = new DayViewRender();\n\t\tupdateData();\n\t\tupdateTableView();\n\t\tupdateEventsView(eventsRender);\n\n\t}", "public ReplayDialog(JFrame owner, boolean modal) {\n\t\tjd = new JDialog(owner, modal);\n\t\tjd.setContentPane(new RepalyPanel());\n\t\tjd.setUndecorated(true);\n\t\tjd.setBackground(new Color(0f, 0f, 0f, 0f));\n\t\tjd.setSize(912, 513);\n\t\tjd.setLocation(owner.getLocation());\n\t\tjd.setVisible(true);\n\t}", "public App_Interface(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public GDSTab(ProjectSettingsFrame parent, boolean modal)\n \t{\n \t\tsuper(parent, modal);\n \t\tinitComponents();\n \t}", "public MyJDialog(Frame f, String title, boolean modal) {\r\n super(f,title,modal);\r\n }", "public Khoa_Dialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public CalendarView(CalendarModel model) \n\t{\n\t\t//make no date be selected by giving it an impossible number\n\t\tbordered = -1;\n\t\t\n\t\tframe.setSize(700, 270);\n\t\tcModel = model;\n\t\tmonthMaxDays = cModel.getMonthMaxDays();\n\t\t\n\t\t//initialize all buttons\n\t\tnextMonth = new JButton(\"Month>\");\n\t\tprevMonth = new JButton(\"<Month\");\n\t\tnextDay = new JButton(\">\");\n\t\tprevDay = new JButton(\"<\");\n\t\tcreateButton = new JButton(\"Create\");\n\t\tcreateButton.setBackground(Color.GREEN);\n\t\tcreateButton.setFont(new Font(\"newFont\", Font.BOLD, 18));\n\t\t\n\t\tquitButton = new JButton(\"Quit\");\n\t\tquitButton.setBackground(Color.RED);\n\t\tquitButton.setForeground(Color.WHITE);\n\t\tquitButton.setFont(new Font(\"newFont\", Font.BOLD, 18));\n\t\t\n\t\t//part where all the dates are on\n\t\tnumberPanel.setLayout(new GridLayout(0,7));\n\t\t\n\t\t//box that contains the events\n\t\tDimension dim = new Dimension(300, 140);\n\t\teventsPane.setPreferredSize(dim);\n\t\teventsPane.setEditable(false);\n\t\t\n\t\t//make the new number buttons\n\t\t\n\t\tmakeDayButtons();\n\t\t\n\t\t//put in the empty buttons\n\t\tfor (int i = 1; i < cModel.findDayOfWeek(1); i++) \n\t\t{\n\t\t\tJButton emptyButton = new JButton();\n\t\t\t\n\t\t\t//these buttons will not work\n\t\t\temptyButton.setEnabled(false);\n\t\t\tnumberPanel.add(emptyButton); //add to panel\n\t\t}\n\t\t\n\t\t//add each button from ArrayList to the panel\n\t\tfor (JButton day : buttonArray) \n\t\t{\n\t\t\tnumberPanel.add(day);\n\t\t}\n\t\t\n\t\t//highlightEvents();\n\t\twriteEvents(cModel.getSelectedDate());\n\t\tborderSelected(cModel.getSelectedDate() - 1);\n\t\t\n\t\t//start adding actionListeners to the buttons\n\t\t\n\t\tnextDay.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\tmodel.nextDay();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\tprevDay.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\tmodel.previousDay();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\tnextMonth.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\tcModel.nextMonth();\n\t\t\t\t\t\tcreateButton.setEnabled(false);\n\t\t\t\t\t\teventsPane.setText(\"\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t//can't switch to next date unless you select one\n\t\t\t\t\t\tnextDay.setEnabled(false);\n\t\t\t\t\t\tprevDay.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\tprevMonth.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\tcModel.previousMonth();\n\t\t\t\t\t\tcreateButton.setEnabled(false);\n\t\t\t\t\t\teventsPane.setText(\"\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t//can't switch to next date unless you select one\n\t\t\t\t\t\tnextDay.setEnabled(false);\n\t\t\t\t\t\tprevDay.setEnabled(false);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\tcreateButton.addActionListener(new ActionListener() \n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tshowEventWindow();\n\t\t\t}\n\t\t});\n\t\t\n\t\tquitButton.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\t//save everything and exit screen\n\t\t\t\t\t\tcModel.saveData();\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\t\n\t\tleftContainer.setLayout(new BorderLayout());\n\t\tmonthYearLabel.setText(monthArray[cModel.getCalMonth()] + \" \" + model.getCalYear());;\n\t\tSMTWTFS.setText(\" S M T W T F S\");\n\t\t\n\t\tJPanel monthYearSMTWTFS = new JPanel();\n\t\tmonthYearSMTWTFS.setLayout(new BorderLayout());\n\t\tmonthYearSMTWTFS.add(monthYearLabel,BorderLayout.NORTH);\n\t\tmonthYearSMTWTFS.add(SMTWTFS,BorderLayout.SOUTH);\n\t\t\n\t\tJPanel createAndNextDays = new JPanel();\n\t\tcreateAndNextDays.add(createButton);\n\t\tcreateAndNextDays.add(prevDay);\n\t\tcreateAndNextDays.add(nextDay);\n\t\t\n\t\tleftContainer.add(createAndNextDays, BorderLayout.NORTH);\n\t\tleftContainer.add(monthYearSMTWTFS, BorderLayout.CENTER);\n\t\tleftContainer.add(numberPanel, BorderLayout.SOUTH);\n\t\t\n\t\t\n\t\trightContainer.setLayout(new BorderLayout());\n\t\tJScrollPane eventScroller = new JScrollPane(eventsPane);\n\t\teventScroller.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);\n\t\t\n\t\tJPanel nextMonthsAndQuit = new JPanel();\n\t\tnextMonthsAndQuit.add(prevMonth);\n\t\tnextMonthsAndQuit.add(nextMonth);\n\t\tnextMonthsAndQuit.add(quitButton);\n\t\t\n\t\tdayDateLabel.setText(dayArray[cModel.findDayOfWeek(cModel.getSelectedDate()) - 1] + \" \" + cModel.getCalMonth() + \"/\" + cModel.getCalDate());\n\t\t\n\t\trightContainer.add(nextMonthsAndQuit, BorderLayout.NORTH);\n\t\trightContainer.add(dayDateLabel, BorderLayout.CENTER);\n\t\trightContainer.add(eventScroller, BorderLayout.SOUTH);\n\t\t\n\t\t\n\t\t//add everything to the frame\n\t\tframe.setLayout(new FlowLayout());\n\t\tframe.add(leftContainer);\n\t\tframe.add(rightContainer);\n\t\t\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t//frame.pack();\n\t\tframe.setVisible(true);\n\t}", "public Ventes1(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public JFrameCode() {\n initComponents();\n obj=new Object[]{text1,text2,date1,date2,date3};\n dateChooser=new JDateChooser();\n System.out.println(text1);\n panel.add(dateChooser,new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 290, -1, -1));\n \n System.out.println(\"date:\"+dateChooser.getDate());\n }", "public NewClassForm(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n initialization();\n onLoading();\n }", "public frmMarca(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public void buildEditFrame() {\n\n\tframe.addWindowListener(new WindowAdapter() {\n\t public void windowClosing(WindowEvent e) {\n\t\t//System.exit(0);\n\t }\n\t});\n\n\t// show the frame\n frame.setSize(Width, Height);\n\tframe.setLocation(screenSize.width/2 - Width/2,\n\t\t\t screenSize.height/2 - Height/2);\n\tframe.getContentPane().setLayout(new BorderLayout());\n\tframe.getContentPane().add(jp, BorderLayout.CENTER);\n\n\tframe.pack();\n//\t((CDFEdit)getFrame()).getDialog().setVisible(false);\n\tframe.setVisible(true);\n\n\t// Deprecated API - jp.requestDefaultFocus(); \n\tjp.requestFocus();\n\tframe.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\n }", "private void initialize() throws LogicLayerException {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(new BorderLayout(0, 0));\n\t\tframe.setSize(900, 700);\n\t\t\n\t\tCalendar calendar = new Calendar();\n\t\tStateContainer container = new StateContainer();\n\t\tcalendar.setStateContainer(container);\n\t\tframe.getContentPane().add(calendar);\n\t}", "public FrameOpcoesAgenda() {\n initComponents();\n }", "public ContainerForm(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n// setSize(JMKHome.getPanelHome().getSize());\n// setLocationRelativeTo(JMKHome.getPanelHome());\n }", "public TestDialog(java.awt.Frame parent, boolean modal)\n {\n super(parent, modal);\n initComponents();\n setLocationByPlatform(true);\n\n }", "public TestSlideFrame() {\r\n initComponents();\r\n slide = new JFrame();\r\n slide.setUndecorated(true);\r\n //slide.setAlwaysOnTop(true);\r\n panel = new JPanel();\r\n panel.setLayout(null);\r\n slide.setLayout(null);\r\n panel.setBorder(BorderFactory.createLineBorder(Color.GRAY));\r\n panel.setLocation(0, 0);\r\n panel.setSize(100, 200);\r\n slide.add(panel);\r\n\r\n slide.setSize(1, 1);\r\n slide.setVisible(true);\r\n extended = false;\r\n }", "public CadastroTipoEvento(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public ManutencaoSacole(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public CardDialog(Frame owner, boolean modal) {\n super(owner, modal);\n parentFrame = (JFrame) owner;\n buttonText = \"Confirm\";\n }", "public DialogNewImageElement(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n setLocationRelativeTo(parent);\n\n new Timer(400, new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n pnCanvas.repaint();\n }\n }).start();\n }", "public TestDialog(java.awt.Frame parent,boolean modal) {\n super (parent, modal);\n initComponents ();\n pack ();\n }", "private GUIReminder() {\n\n initComponents();\n initOthers();\n\n }", "public VOrdenMedica(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public FrameDesign() {\n initComponents();\n }", "public TreatmentAdvisePage(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();\n int x = (int) ((dimension.getWidth() - this.getWidth()) / 2);\n int y = (int) ((dimension.getHeight() - this.getHeight()) / 2);\n this.setLocation(x, y);\n loadcomboDoses();\n loadcomboDuration();\n }", "public BookingFrame() {\r\n try {\r\n jbInit();\r\n } catch (Exception exception) {\r\n exception.printStackTrace();\r\n }\r\n }", "public MercadoFrame() {\n initComponents();\n }", "public PapegaaiDialoog(JFrame frame, boolean isModal) {\n super(frame, true);\n this.setLayout(new GridLayout(4, 2));\n setTitle(\"Voeg papegaai toe\");\n setSize(400, 120);\n //standaard invulling velden\n naamVogel = \"\";\n ringnummer = 0;\n kooinummer = 0;\n //buttons and fields\n Naam = new JLabel(\"Naam: \");\n this.add(Naam);\n RingNummer = new JLabel(\"Ringnummer: \");\n nV = new JTextField();\n this.add(nV);\n this.add(RingNummer);\n rnV = new JTextField();\n this.add(rnV);\n KooiNummer = new JLabel(\"Kooinummer (1 tot 10): \");\n this.add(KooiNummer);\n knV = new JTextField();\n this.add(knV);\n cancel = new JButton(\"Cancel\");\n this.add(cancel);\n cancel.addActionListener(this);\n ok = new JButton(\"OK\");\n this.add(ok);\n ok.addActionListener(this);\n\n }", "public holdersframe() {\n initComponents();\n }", "public SelectScriptDialog(java.awt.Frame parent, boolean modal) {\n\t\tsuper(parent, modal);\n\t\tinitComponents();\n\t}", "public FrameInsert() {\n initComponents();\n }", "public ColorPicker(Frame parent, boolean modal) {\r\n this(Color.white, parent, modal);\r\n }", "private void prepareFrame() {\n logger.debug(\"prepareFrame : enter\");\n\n // initialize the actions :\n registerActions();\n final Container container;\n\n if (Bootstrapper.isHeadless()) {\n container = null;\n } else {\n final JFrame frame = new JFrame(ApplicationDescription.getInstance().getProgramName());\n\n // handle frame icon\n final Image jmmcFavImage = ResourceImage.JMMC_FAVICON.icon().getImage();\n frame.setIconImage(jmmcFavImage);\n\n // get screen size to adjust minimum window size :\n final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n logger.info(\"screen size = {} x {}\", screenSize.getWidth(), screenSize.getHeight());\n // hack for screens smaller than 1024x768 screens:\n final int appWidth = 950;\n final int appHeightMin = (screenSize.getHeight() >= 850) ? 800 : 700;\n\n final Dimension dim = new Dimension(appWidth, appHeightMin);\n frame.setMinimumSize(dim);\n frame.addComponentListener(new ComponentResizeAdapter(dim));\n frame.setPreferredSize(INITIAL_DIMENSION);\n\n App.setFrame(frame);\n\n container = frame.getContentPane();\n }\n // init the main panel:\n createContent(container);\n\n StatusBar.show(\"application started.\");\n\n logger.debug(\"prepareFrame : exit\");\n }", "public DiscountFrame(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n setResizable(false);\n setLocationRelativeTo(null);\n typeButtonGroup.add(presentageRButton);\n typeButtonGroup.add(amountRButton);\n amountRButton.setSelected(true);\n presentageField.setEnabled(false);\n if (amountRButton.isSelected()) {\n amountField.setEnabled(true);\n amountField.requestFocus();\n presentageField.setEnabled(false);\n amountField.setText(null);\n presentageField.setText(null);\n }\n }", "public CreateNewRepositoryDialog(java.awt.Frame parent, boolean modal) {\n\t\tsuper(parent, modal);\n\t\tinitComponents();\n\t\tGuiUtils.centerOnScreen(this);\n\t}", "public CreateAnimalDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n AnimalManager myAnimalManager = new AnimalManager();\n FoodManager myFoodManager = new FoodManager();\n }", "public EncaisserLeFric(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public NewFrame() {\n initComponents();\n }", "public VistaCrearTema(java.awt.Frame parent, boolean modal) {\n /*Inicializa la vista y lo situa centrado respecto a su padre*/\n super(parent, modal);\n controladorcreartema = new CtrlCrearTema();\n initComponents();\n this.setLocationRelativeTo(parent);\n }", "public ShopHoursFrame() {\n initComponents();\n }", "public CashBookDaily() {\n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public LetJDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents(); \n }", "public jdCrearEditarDetalleExpediente(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public AnnotationDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public FrameControl() {\n initComponents();\n }", "private void initialize() {\r\n\t\tmanager = new EventManager();\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 850, 600);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\r\n\t\tJMenu JmFile = new JMenu(\"File\");\r\n\t\tmenuBar.add(JmFile);\r\n\r\n\t\tJMenuItem mntmSave = new JMenuItem(\"Save\");\r\n\t\tfinal CalenderGui forgetThis = this;\r\n\t\tmntmSave.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tSaveDialog save = new SaveDialog(true, manager, forgetThis);\r\n\t\t\t\tsave.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal EventManager ma = manager;\r\n\r\n\t\tJMenuItem mntmNew = new JMenuItem(\"New\");\r\n\t\tmntmNew.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tma.clearEventManager();\r\n\t\t\t\tforgetThis.remake();\r\n\t\t\t}\r\n\t\t});\r\n\t\tJmFile.add(mntmNew);\r\n\t\tJmFile.add(mntmSave);\r\n\r\n\t\tJMenuItem mntmLoad = new JMenuItem(\"Load\");\r\n\t\tmntmLoad.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tSaveDialog save = new SaveDialog(false, manager, forgetThis);\r\n\t\t\t\tsave.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tJmFile.add(mntmLoad);\r\n\r\n\t\tJMenuItem mntmExit = new JMenuItem(\"Exit\");\r\n\t\tmntmExit.addActionListener(new closeListener(frame));\r\n\t\tJmFile.add(mntmExit);\r\n\r\n\t\tJMenu mnEvents = new JMenu(\"Events\");\r\n\t\tmenuBar.add(mnEvents);\r\n\r\n\t\tJMenuItem mntmAddEvent = new JMenuItem(\"Add Event\");\r\n\t\tmntmAddEvent.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tAddEvent eventDialog = new AddEvent(forgetThis);\r\n\t\t\t\teventDialog.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tmnEvents.add(mntmAddEvent);\r\n\t\tframe.getContentPane().setLayout(new GridLayout(0, 1, 0, 0));\r\n\t\t\r\n\t\tJTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(tabbedPane);\r\n\t\tDefaultListModel<Event> model = new DefaultListModel<Event>();\r\n\t\tfor(Event e: manager.getAllEvents()){\r\n\t\t\tmodel.addElement(e);\r\n\t\t}\r\n\t\t\r\n\t\tJScrollPane scrollPane = new JScrollPane();\r\n\t\ttabbedPane.addTab(\"Daily\", null, scrollPane, null);\r\n\t\t\r\n\t\tJList<Event> list = new JList<Event>();\r\n\t\tlist.addKeyListener(new delKeyListener(manager, this, list));\r\n\t\tlist.setModel(model);\r\n\t\tdailyList = list;\r\n\t\tdailyModel = model;\r\n\t\tscrollPane.setViewportView(list);\r\n\t\t\r\n\t\tJScrollPane scrollPane_1 = new JScrollPane();\r\n\t\ttabbedPane.addTab(\"Weekly\", null, scrollPane_1, null);\r\n\t\t\r\n\t\tJList<Event> list_1 = new JList<Event>();\r\n\t\tmodel = new DefaultListModel<Event>();\r\n\t\tlist_1.setModel(model);\r\n\t\tweeklyList = list_1;\r\n\t\tweeklyModel = model;\r\n\t\tlist_1.addKeyListener(new delKeyListener(manager, this, list_1));\r\n\t\tscrollPane_1.setViewportView(list_1);\r\n\t\t\r\n\t\tJScrollPane scrollPane_2 = new JScrollPane();\r\n\t\ttabbedPane.addTab(\"Monthly\", null, scrollPane_2, null);\r\n\t\t\r\n\t\tJList<Event> list_2 = new JList<Event>();\r\n\t\t\r\n\t\tmodel = new DefaultListModel<Event>();\r\n\t\tlist_2.setModel(model);\r\n\t\tmonthlyList = list_2;\r\n\t\tmonthlyModel = model;\r\n\t\tlist_2.addKeyListener(new delKeyListener(manager, this, list_2));\r\n\t\t\r\n\t\tscrollPane_2.setViewportView(list_2);\r\n\t\t\r\n\t\tJScrollPane scrollPane_3 = new JScrollPane();\r\n\t\ttabbedPane.addTab(\"Yearly\", null, scrollPane_3, null);\r\n\t\t\r\n\t\tJList<Event> list_3 = new JList<Event>();\r\n\t\tmodel = new DefaultListModel<Event>();\r\n\t\tlist_3.setModel(model);\r\n\t\tyearlyList = list_3;\r\n\t\tyearlyModel = model;\r\n\t\tscrollPane_3.setViewportView(list_3);\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public Mainframe() {\n initComponents();\n }", "public dlgViewTimetableSe(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n setLocationRelativeTo(null);\n clsCon.inti();\n this.setSize(1489, 655);\n \n showSemesterIdToLabel(); \n showSubjectToLabel();\n \n }", "public BuscarEstado(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n this.setLocationRelativeTo(null);\n initComponents();\n }", "public void initComponents(){\t\r\n\t\tsetName(\"dialog01\");\r\n\t\tsetTitle(\"Candle Exercise\");\r\n\t\tsetBounds(100, 100, 356, 300);\r\n\t\tgetContentPane().setLayout(new BorderLayout());\r\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tgetContentPane().add(contentPanel, BorderLayout.CENTER);\r\n\t\tcontentPanel.setLayout(null);\r\n\t\tFont font = new Font(\"Tahoma\", Font.PLAIN, 13);\r\n\r\n\t\tbtnCurrent = new JButton(\"Show Labels\");\r\n\t\tbtnCurrent.setToolTipText(\"shows current best data saved\");\r\n\t\tbtnCurrent.setFont(new Font(\"Tahoma\", Font.PLAIN, 13));\r\n\t\tbtnCurrent.setFocusPainted(false);\r\n\t\tbtnCurrent.setBounds(68, 77, 214, 88);\r\n\t\tcontentPanel.add(btnCurrent);\r\n\r\n\t}", "public BrilloWindow(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}", "public NewJFrame() {\r\n initComponents();\r\n }", "public DialogoRelogio(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n \n try {\n\t\t\thora = new MaskFormatter(\"##:##\");\n hora.setPlaceholderCharacter('_');\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \n initComponents();\n }", "public CreateServerDialog(java.awt.Frame parent, boolean modal) {\r\n super(parent, modal);\r\n initComponents();\r\n }" ]
[ "0.624051", "0.60813564", "0.6021623", "0.60043645", "0.5991147", "0.59125346", "0.5832585", "0.5825741", "0.58256835", "0.5762115", "0.5761973", "0.57053727", "0.56970906", "0.5655435", "0.5647059", "0.5640912", "0.5530102", "0.55243766", "0.551076", "0.55058104", "0.55028814", "0.5462171", "0.5460549", "0.54600215", "0.5454238", "0.5447939", "0.5400597", "0.5391515", "0.5382073", "0.538056", "0.53674686", "0.53661525", "0.53586614", "0.53416204", "0.5339956", "0.533241", "0.53310347", "0.5323791", "0.53224504", "0.5316603", "0.53040427", "0.53014874", "0.52930826", "0.5292737", "0.5292639", "0.52862275", "0.52848345", "0.5268035", "0.52632695", "0.5261857", "0.526106", "0.52609223", "0.52535933", "0.525262", "0.5249766", "0.524122", "0.52371615", "0.5210536", "0.5205872", "0.5192423", "0.5190843", "0.5187872", "0.518667", "0.51852506", "0.51821685", "0.51614463", "0.51600003", "0.51536435", "0.514857", "0.51422065", "0.5139711", "0.5139579", "0.5139383", "0.51382375", "0.5135503", "0.51338327", "0.5127399", "0.5126177", "0.51250434", "0.51238436", "0.51126224", "0.51104075", "0.50987256", "0.5098061", "0.50887215", "0.50884974", "0.5080308", "0.50785816", "0.50685287", "0.5066133", "0.5061598", "0.5060212", "0.5059727", "0.5058599", "0.5051329", "0.50442046", "0.50406945", "0.5038378", "0.50367504", "0.5035657" ]
0.6524387
0
Constructs with the specified initial dialog, date selector and modal.
public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal) { this(owner, dateSelector, modal, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector, boolean modal)\n\t{\n\t\tthis(owner, dateSelector, modal, false);\n\t}", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal, boolean hint)\n\t{\n\t\tsuper(owner, SwingLocale.getString(\"date_selector\"), new Dimension(280, 145), modal, hint, true);\n\t\t\n\t\tthis.dateSelector = dateSelector;\n\t\t\n\t\tinitComponents();\n\t}", "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector, boolean modal, boolean hint)\n\t{\n\t\tsuper(owner, SwingLocale.getString(\"date_selector\"), new Dimension(280, 145), modal, hint, true);\n\t\t\n\t\tthis.dateSelector = dateSelector;\n\t\t\n\t\tinitComponents();\n\t}", "protected Dialog onCreateDialog(int id) {\n\n\t\t// listener for setting date in starting date dialog\n\t\tOnDateSetListener goToDateSetListener = new OnDateSetListener() {\n\n\t\t\t// use when \"set\" press\n\t\t\tpublic void onDateSet(DatePicker view, int year, int monthOfYear,\n\t\t\t\t\tint dayOfMonth) {\n\n\t\t\t\t\tmView.goTo(dayOfMonth, monthOfYear, year);\n\t\t\t\t\tc.set(year, monthOfYear, dayOfMonth);\t\t\n\t\t\t\t\tmonthlyview_month.setText(DateFormat.format(\"d MMMM yyyy\", c));\n\n\t\t\t\t\n\t\t\t}\n\t\t};\n\n\t\treturn new DatePickerDialog(this, goToDateSetListener, Calendar\n\t\t\t\t.getInstance().get(Calendar.YEAR), Calendar.getInstance().get(\n\t\t\t\tCalendar.MONTH), Calendar.getInstance().get(\n\t\t\t\tCalendar.DAY_OF_MONTH));\n\t}", "@Nullable\n @Override\n protected Dialog onCreateDialog(int id, Bundle args) {\n if (id == 101) {\n return new DatePickerDialog(this,\n myDateListener1, year, month, day);\n }else{\n if (id == 102){\n return new DatePickerDialog(this,\n myDateListener2, year, month, day);\n }}\n return null;\n }", "protected Dialog onCreateDialog(int id) {\n switch(id){\n case DATE_DIALOG_ID:\n //return new DatePickerDialog(this, reservationDate, currentYear, currentMonth, currentDay);\n DatePickerDialog dialog = new DatePickerDialog(this, AlertDialog.THEME_DEVICE_DEFAULT_LIGHT, reservationDate, currentYear, currentMonth, currentDay) {\n public void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth){\n view.setMinDate(new Date().getTime());\n }\n };\n\n dialog.getDatePicker().setMinDate(new Date().getTime());// set Min date in Calendar\n //Calendar calendar = Calendar.getInstance();\n //dialog.getDatePicker().setMinDate(calendar.getTimeInMillis());// set Min date in Calendar\n return dialog;\n }\n return null;\n }", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector)\n\t{\n\t\tthis(owner, dateSelector, true);\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the current date as the default date in the picker\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n mainViewModel = new ViewModelProvider(requireActivity()).get(MainViewModel.class);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "public abstract void initDialog();", "@Override\r\n protected Dialog onCreateDialog(int id) {\r\n switch (id) {\r\n case DATE_DIALOG_ID:\r\n return new DatePickerDialog(this, \r\n pDateSetListener,\r\n pYear, pMonth, pDay);\r\n\t\tcase DATE_DIALOG1_ID:\r\n return new DatePickerDialog(this, \r\n pDateSetListener1,\r\n pYear, pMonth, pDay);\r\n }\r\n return null;\r\n }", "public StandardDialog() {\n super();\n init();\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this, myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this, myDateListener, year, month, day);\n }\n return null;\n }", "private void initDialog() {\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(this,\n myDateListener, year, month, day);\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis());\n return datePickerDialog;\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n if (id == 998) {\n return new DatePickerDialog(this,\n myDateListener_end, year, month, day);\n }\n return null;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n int year = calendarSelected.get(Calendar.YEAR);\n int month = calendarSelected.get(Calendar.MONTH);\n int day = calendarSelected.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector)\n\t{\n\t\tthis(owner, dateSelector, true);\n\t}", "@Override\r\n protected Dialog onCreateDialog(int id) {\r\n switch (id) {\r\n case START_DATE_DIALOG_ID:\r\n return new DatePickerDialog(this,\r\n \t\t\tstartDateSetListener,\r\n \t\t\tstartYear_dp, startMonth_dp-1, startDay_dp); \r\n case START_TIME_DIALOG_ID:\r\n return new TimePickerDialog(this,\r\n \t\t\tstartTimeSetListener, startHour_dp, startMinute_dp, false); \r\n case END_DATE_DIALOG_ID:\r\n return new DatePickerDialog(this,\r\n endDateSetListener,\r\n endYear_dp, endMonth_dp-1, endDay_dp);\r\n case END_TIME_DIALOG_ID:\r\n return new TimePickerDialog(this,\r\n \t\t\tendTimeSetListener, endHour_dp, endMinute_dp, false);\r\n }\r\n return null;\r\n }", "@Override\n\tprotected Dialog onCreateDialog(int id) {\n\t\t// this method is called after invoking 'showDialog' for the first time\n\t\t// here we initiate the corresponding DateSlideSelector and return the\n\t\t// dialog to its caller\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\treturn new DateTimeSlider(ActivityGroupMedicine.group,\n\t\t\t\tmDateTimeSetListener, c);\n\t}", "private void chooseDateDialog() {\n Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DATE);\n\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(Objects.requireNonNull(getContext()), this, year, month, day);\n datePickerDialog.show();\n }", "public Dialog() {\n\t}", "public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog dialog = new DatePickerDialog(getActivity(), this, year, month, day);\n if(this.getMinDate() != null){\n dialog.getDatePicker().setMinDate(this.getMinDate().getTime());\n }\n\n if(this.getMaxDate() != null){\n dialog.getDatePicker().setMaxDate(this.getMaxDate().getTime());\n }\n\n if(getPositiveClickListner() != null){\n dialog.setButton(DialogInterface.BUTTON_POSITIVE, \"OK\", getPositiveClickListner());\n }\n return dialog;\n }", "public DateFilterDialog(java.awt.Frame parent, boolean modal) {\n\n\t\tsuper(parent, modal);\n\t\tinitComponents();\n\t\tfillYearFields();\n\t}", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "@Override\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tint year;\n\t\tint month;\n\t\tint day;\n\t\tif (!this.getArguments().containsKey(\"date\")) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tyear = c.get(Calendar.YEAR);\n\t\t\tmonth = c.get(Calendar.MONTH);\n\t\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\t} else {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tc.setTimeInMillis(getArguments().getLong(\"date\"));\n\t\t\tyear = c.get(Calendar.YEAR);\n\t\t\tmonth = c.get(Calendar.MONTH);\n\t\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\t}\n\t\t// Create a new instance of DatePickerDialog and return it\n\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n mYear = getArguments().getInt(\"year\");\n mMonth = getArguments().getInt(\"month\");\n mDay = getArguments().getInt(\"day\");\n mStart = getArguments().getBoolean(\"start\");\n\n // create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, mYear, mMonth, mDay);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n c.set(year, month, day);\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tint year = c.get(Calendar.YEAR);\n\t\t\tint month = c.get(Calendar.MONTH);\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\n\t\t\t\n\t\t\t// Create a new instance of DatePickerDialog and return it\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t\t}", "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tint year = c.get(Calendar.YEAR);\n\t\t\tint month = c.get(Calendar.MONTH);\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\n\t\t\t\n\t\t\t// Create a new instance of DatePickerDialog and return it\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t\t}", "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tint year = c.get(Calendar.YEAR);\n\t\t\tint month = c.get(Calendar.MONTH);\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\n\n\t\t\t// Create a new instance of DatePickerDialog and return it\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t\t}", "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tint year = c.get(Calendar.YEAR);\n\t\t\tint month = c.get(Calendar.MONTH);\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\n\n\t\t\t// Create a new instance of DatePickerDialog and return it\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t\t}", "protected abstract JDialog createDialog();", "@Override\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t}", "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) \n\t\t{\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tint year = c.get(Calendar.YEAR);\n\t\t\tint month = c.get(Calendar.MONTH);\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\n\n\t\t\t// Create a new instance of DatePickerDialog and return it\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState){\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new DatePickerDialog instance and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\r\n int year = c.get(Calendar.YEAR);\r\n int month = c.get(Calendar.MONTH);\r\n int day = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n // Create a new instance of DatePickerDialog and return it\r\n return new DatePickerDialog(getActivity(), this, year, month, day);\r\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), android.R.style.Theme_Holo_Dialog, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int y, int m, int d) {\n String dayString = String.valueOf(d);\n if (dayString.length() == 1)\n dayString = \"0\" + dayString;\n\n int month = m + 1;\n String monthString = String.valueOf(month);\n if (monthString.length() == 1)\n monthString = \"0\" + monthString;\n\n mListener.onDateSetListener(Integer.toString(y), monthString, dayString);\n }\n }, year, month, day);\n datePickerDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n return datePickerDialog;\n }", "@Override\r\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\t\tint year = c.get(Calendar.YEAR);\r\n\t\t\tint month = c.get(Calendar.MONTH);\r\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\t\t// Create a new instance of DatePickerDialog and return it\r\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\r\n\t\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tCalendar c = Calendar.getInstance();\n\n if((getArguments().getString(ARG_TXT_FECHA)!=null)&&(!getArguments().getString(ARG_TXT_FECHA).isEmpty())){\n String fecha = getArguments().getString(ARG_TXT_FECHA);\n c.setTime(Convertir_fechaStr_a_date_BDD(fecha));\n }\n int year = c.get(Calendar.YEAR);\n int month= c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n //obtener id label fecha\n\t\tthis.idLabelFecha = getArguments().getInt(ARG_ID_VIEW);\n\t\t\n\t\t// Create a new instance of DatePickerDialog and return it\n\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t}", "@Override\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tint year = c.get(Calendar.YEAR);\n\t\tint month = c.get(Calendar.MONTH);\n\t\tint day = c.get(Calendar.DAY_OF_MONTH);\n\n\t\t// Create a new instance of DatePickerDialog and return it\n\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t}", "@Override\n public Dialog onCreateDialog (Bundle savedInstanceState)\n {\n // Use the current time as the default values for the picker\n final Calendar c = Calendar.getInstance();\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n // Create a new instance of TimePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n if (mYear == null || mMonthOfYear == null || mDayOfMonth == null) {\n final Calendar c = Calendar.getInstance();\n mYear = c.get(Calendar.YEAR);\n mMonthOfYear = c.get(Calendar.MONTH);\n mDayOfMonth = c.get(Calendar.DAY_OF_MONTH);\n }\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, mYear, mMonthOfYear, mDayOfMonth);\n datePickerDialog.getDatePicker().setMaxDate(DateTime.now().getMillis());\n return datePickerDialog;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar calendar = Calendar.getInstance();\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(getActivity(), this, year, month, day);\n datePickerDialog.getDatePicker().setMinDate(calendar.getTimeInMillis());\n return datePickerDialog;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog dialog = new DatePickerDialog(getActivity(), this, year, month, day);\n\n dialog.setButton(DialogInterface.BUTTON_NEGATIVE, \"Cancel\", new DialogInterface\n .OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n if (which == DialogInterface.BUTTON_NEGATIVE) {\n dialog.cancel();\n }\n }\n });\n\n return dialog;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflator = getActivity().getLayoutInflater();\n View view = inflator.inflate(R.layout.informationdialog, datePicker);\n builder.setView(view);\n init(view);\n Dialog dialog = builder.create();\n\n //Dialog will not close automatically until user click on cancle button.\n setCancelable(false);\n return dialog;\n }", "@RequiresApi(api = Build.VERSION_CODES.N)\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the current date as the default date in the picker\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@SuppressLint(\"StaticFieldLeak\")\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n myear = c.get(Calendar.YEAR);\n mmonth= c.get(Calendar.MONTH);\n mday= c.get(Calendar.DAY_OF_MONTH);\n return new DatePickerDialog(getActivity(), this, myear, mmonth, mday);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog dpd = new DatePickerDialog(getActivity(), this, year, month, day);\n return dpd;\n }", "private Dialogs () {\r\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n DatePickerDialog dialog = new DatePickerDialog(getActivity(), this, mmd_year, mmd_month, mmd_day);\n return dialog;\n }", "@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\r\n int year = c.get(Calendar.YEAR);\r\n int month = c.get(Calendar.MONTH);\r\n int day = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n d_fechaCreacion = getActivity().findViewById(R.id.d_fechaTransectaItem);\r\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);\r\n datePickerDialog.updateDate(year, month, day);\r\n // Create a new instance of DatePickerDialog and return it\r\n return datePickerDialog;\r\n }", "public PHConstDialog() {\n\t\tinitComponents();\n\t}", "public Khoa_Dialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "private void initPopupDate() {\n editDate = findViewById(R.id.date_depense);\n date = new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n // TODO Auto-generated method stub\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDate();\n }\n\n };\n\n // onclick - popup datepicker\n editDate.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n new DatePickerDialog(context, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }\n });\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {\n DatePickerDialog dialog;\n Calendar calendar = Calendar.getInstance();\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n\n dialog = selectConfigurationColorThemeInstance(year, month, day);\n dialog.getDatePicker().setMaxDate(calendar.getTime().getTime());\n\n return dialog;\n }", "public NewEmployeeDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n currentEmployeeCode = \"\";\n populatePositionComboBox ();\n putDialogToCenter();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n DatePickerDialog dialog = new DatePickerDialog(LocationActivity.this, this, startYear, startMonth, startDay);\n return dialog;\n\n }", "public CreateNewRepositoryDialog(java.awt.Frame parent, boolean modal) {\n\t\tsuper(parent, modal);\n\t\tinitComponents();\n\t\tGuiUtils.centerOnScreen(this);\n\t}", "@TargetApi(Build.VERSION_CODES.N)\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);\n datePickerDialog.getDatePicker().setMaxDate(new Date().getTime());\n return datePickerDialog;\n }", "@TargetApi(Build.VERSION_CODES.N)\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);\n datePickerDialog.getDatePicker().setMaxDate(new Date().getTime());\n return datePickerDialog;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n //final Calendar d = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 1000);\n c.add(Calendar.DATE, 60);\n datePickerDialog.getDatePicker().setMaxDate(c.getTimeInMillis());\n return datePickerDialog;\n }", "public TestDialog(java.awt.Frame parent,boolean modal) {\n super (parent, modal);\n initComponents ();\n pack ();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Date c = new Date();\n int year = c.getYear();\n int month = c.getMonth();\n int day = c.getDay();\n\n // CreateFragment a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "public CreateAnimalDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n AnimalManager myAnimalManager = new AnimalManager();\n FoodManager myFoodManager = new FoodManager();\n }", "private void initDatePicker() {\n DatePickerDialog.OnDateSetListener dateSetListener = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n month = month + 1;\n String date = makeDateString(day, month, year);\n btnDiaCitaver.setText(date);\n }\n };\n// Calendar cal = Calendar.getInstance();\n// int year = cal.get(Calendar.YEAR);\n// int month = cal.get(Calendar.MONTH);\n// int day = cal.get(Calendar.DAY_OF_MONTH);\n // Traer la fecha de la cita por partes\n String[] vec_fecha = infoCita.getString(1).split(\" \");\n String[] vec_fecha_dia = vec_fecha[0].split(\"-\");\n int year = Integer.parseInt(vec_fecha_dia[0]);\n int month = Integer.parseInt(vec_fecha_dia[1]) - 1;\n int day = Integer.parseInt(vec_fecha_dia[2]);\n\n int style = AlertDialog.THEME_DEVICE_DEFAULT_DARK;\n datePickerDialogFecha = new DatePickerDialog(this, style, dateSetListener, year, month, day);\n// datePickerDialogFechaNacimiento.getDatePicker().setMaxDate(cal.getTimeInMillis());\n\n }", "public dialogQuestD(java.awt.Dialog parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n Calendar cal = Calendar.getInstance();\r\n int year = cal.get(Calendar.YEAR);\r\n int month = cal.get(Calendar.MONTH);\r\n int day = cal.get(Calendar.DAY_OF_MONTH);\r\n Log.i(TAG,\"onCreate Date: \" + year + \"-\" + month + \"-\" + day);\r\n // Create a new instance of TimePickerDialog and return it\r\n DatePickerDialog dpd = new DatePickerDialog(getActivity(),this, year, month, day);\r\n dpd.getDatePicker().setMaxDate(System.currentTimeMillis() + 1000);\r\n return dpd;\r\n }", "public ScriptManagerDialog(NpcStatePane parent, boolean modal) {\n npcPane = parent;\n setModal(modal);\n initComponents();\n initialize();\n }", "public JDAgendarConsulta(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "private void launchDatePicker(DatePickerDialog.OnDateSetListener dateSetListener) {\n // Create Calendar object\n Calendar cal = Calendar.getInstance();\n // get year, month and day\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH);\n int day = cal.get(Calendar.DAY_OF_MONTH);\n // Create the DatePickerDialog object\n DatePickerDialog dialog = new DatePickerDialog(this,android.R.style.Widget_Material_DatePicker, dateSetListener,year,month,day);\n // Show the dialog\n dialog.show();\n }", "public Dialog(Window owner, Modality modality, StageStyle style) {\n\t\tthis(owner, modality, style, null);\n\t}", "public SelectScriptDialog(java.awt.Frame parent, boolean modal) {\n\t\tsuper(parent, modal);\n\t\tinitComponents();\n\t}" ]
[ "0.68894047", "0.6667541", "0.66273904", "0.65095764", "0.6483332", "0.6402133", "0.6400093", "0.63586104", "0.63302827", "0.62937725", "0.6271507", "0.626257", "0.626257", "0.62597483", "0.6249465", "0.6249465", "0.6249465", "0.6249465", "0.6249465", "0.6249465", "0.62477803", "0.6211205", "0.6192046", "0.61795527", "0.6161263", "0.6146486", "0.6144777", "0.6142449", "0.6126131", "0.6126025", "0.6109558", "0.6079909", "0.6074998", "0.6041554", "0.6039577", "0.6039577", "0.6033398", "0.6033398", "0.6032042", "0.60055006", "0.60045564", "0.5997121", "0.59938544", "0.59912574", "0.5986577", "0.59447646", "0.59447646", "0.59447646", "0.59447646", "0.59447646", "0.59447646", "0.59447646", "0.59447646", "0.59447646", "0.59447646", "0.59447646", "0.59447646", "0.59447646", "0.59413105", "0.5936103", "0.5936103", "0.5936103", "0.5936103", "0.5936103", "0.5936103", "0.5932517", "0.5924587", "0.59068614", "0.58984464", "0.58950007", "0.58716756", "0.58663464", "0.5863868", "0.58474666", "0.5836515", "0.58252347", "0.58064127", "0.57825345", "0.57743835", "0.5769714", "0.57684386", "0.5767648", "0.5766534", "0.5744822", "0.57383883", "0.5734218", "0.5734218", "0.5721834", "0.5716065", "0.5711434", "0.56903344", "0.56861854", "0.56793797", "0.56597525", "0.5636271", "0.56354713", "0.56332153", "0.5616568", "0.5586989", "0.5582567" ]
0.70127445
0
Constructs with the specified initial frame, date selector, modal and hint.
public JDateSelectorDialog(Frame owner, JDateSelector dateSelector, boolean modal, boolean hint) { super(owner, SwingLocale.getString("date_selector"), new Dimension(280, 145), modal, hint, true); this.dateSelector = dateSelector; initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal, boolean hint)\n\t{\n\t\tsuper(owner, SwingLocale.getString(\"date_selector\"), new Dimension(280, 145), modal, hint, true);\n\t\t\n\t\tthis.dateSelector = dateSelector;\n\t\t\n\t\tinitComponents();\n\t}", "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector, boolean modal)\n\t{\n\t\tthis(owner, dateSelector, modal, false);\n\t}", "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector)\n\t{\n\t\tthis(owner, dateSelector, true);\n\t}", "public NewGameDialog(Frame frame, boolean modal) {\n super(frame, modal);\n initComponents();\n setLocationRelativeTo(frame);\n }", "public MantBHA(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents(); \n }", "public TimeFramesSelectionDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public SimulatorHelpDialog() {\n super((Frame)null, true);\n initComponents();\n initialize();\n }", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal)\n\t{\n\t\tthis(owner, dateSelector, modal, false);\n\t}", "private GUIReminder() {\n\n initComponents();\n initOthers();\n\n }", "public JFrame_05_Mayor_De_10() {\n initComponents();\n \n }", "public void buildEditFrame() {\n\n\tframe.addWindowListener(new WindowAdapter() {\n\t public void windowClosing(WindowEvent e) {\n\t\t//System.exit(0);\n\t }\n\t});\n\n\t// show the frame\n frame.setSize(Width, Height);\n\tframe.setLocation(screenSize.width/2 - Width/2,\n\t\t\t screenSize.height/2 - Height/2);\n\tframe.getContentPane().setLayout(new BorderLayout());\n\tframe.getContentPane().add(jp, BorderLayout.CENTER);\n\n\tframe.pack();\n//\t((CDFEdit)getFrame()).getDialog().setVisible(false);\n\tframe.setVisible(true);\n\n\t// Deprecated API - jp.requestDefaultFocus(); \n\tjp.requestFocus();\n\tframe.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\n }", "public DateFilterDialog(java.awt.Frame parent, boolean modal) {\n\n\t\tsuper(parent, modal);\n\t\tinitComponents();\n\t\tfillYearFields();\n\t}", "public AvailabilityCalendar(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public ViewDailyDayBookRecord(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n setLocation(280, 90);\n\n }", "private void jbInit() throws Exception {\r\n setLayout(new BorderLayout());\r\n\r\n // set how the cloning should be done\r\n if (this.FORCE_SERIALIZE_COPY) {\r\n getMonthSelectorStyle().forceSerializeCopy(true);\r\n getDaySelectorStyle().forceSerializeCopy(true);\r\n getTodaySelectorStyle().forceSerializeCopy(true);\r\n }\r\n\r\n // update or set the locale\r\n getMonthSelectorStyle().setLocale(locale);\r\n getDaySelectorStyle().setLocale(locale);\r\n\r\n // set up the calendar panel\r\n daySelector = new DaySelector(getDaySelectorStyle());\r\n daySelector.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n if (e.getID() == DateChooserAction.calendarButtonSelected) {\r\n currentDate.set(java.util.Calendar.DAY_OF_MONTH,\r\n ( (DaySelector) e.getSource()).selectedDay);\r\n selectedDate = (Calendar) currentDate.clone();\r\n getParent().setVisible(false);\r\n }\r\n }\r\n });\r\n add(daySelector, daySelectorPosition);\r\n\r\n // set up the month selector panel\r\n if (showMonthSelector) {\r\n monthSelector = new MonthSelector(getMonthSelectorStyle());\r\n monthSelector.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n if (e.getID() == DateChooserAction.previousMonthSelected) {\r\n currentDate.add(java.util.Calendar.MONTH, -1);\r\n update();\r\n }\r\n if (e.getID() == DateChooserAction.nextMonthSelected) {\r\n currentDate.add(java.util.Calendar.MONTH, 1);\r\n update();\r\n }\r\n }\r\n });\r\n add(monthSelector, monthSelectorPosition);\r\n }\r\n\r\n // add the today selector panel\r\n if (showTodaySelector) {\r\n todaySelector = new TodaySelector(getTodaySelectorStyle());\r\n todaySelector.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n if (e.getID() == DateChooserAction.todaySelected) {\r\n currentDate.setTime(Calendar.getInstance().getTime());\r\n selectedDate = (Calendar) currentDate.clone();\r\n getParent().setVisible(false);\r\n }\r\n }\r\n });\r\n add(todaySelector, todaySelectorPosition);\r\n }\r\n update();\r\n }", "public void initComponents(){\t\r\n\t\tsetName(\"dialog01\");\r\n\t\tsetTitle(\"Candle Exercise\");\r\n\t\tsetBounds(100, 100, 356, 300);\r\n\t\tgetContentPane().setLayout(new BorderLayout());\r\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tgetContentPane().add(contentPanel, BorderLayout.CENTER);\r\n\t\tcontentPanel.setLayout(null);\r\n\t\tFont font = new Font(\"Tahoma\", Font.PLAIN, 13);\r\n\r\n\t\tbtnCurrent = new JButton(\"Show Labels\");\r\n\t\tbtnCurrent.setToolTipText(\"shows current best data saved\");\r\n\t\tbtnCurrent.setFont(new Font(\"Tahoma\", Font.PLAIN, 13));\r\n\t\tbtnCurrent.setFocusPainted(false);\r\n\t\tbtnCurrent.setBounds(68, 77, 214, 88);\r\n\t\tcontentPanel.add(btnCurrent);\r\n\r\n\t}", "public AnnotationDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public LegalDialog(final JFrame frame, final boolean modal) {\n\t\tsuper(frame, modal);\n\t\tinitialize();\n\n\t\t// own stuff\n\t\tif (frame != null) {\n\t\t\tPoint p = frame.getLocation();\n\t\t\tthis.setLocation(p.x+frame.getWidth()/2-getWidth()/2, p.y+frame.getHeight()/2-getHeight()/2);\n\t\t} else {\n\t\t\tGraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n\t\t\tPoint p = ge.getCenterPoint();\n\t\t\tp.x -= this.getWidth()/2;\n\t\t\tp.y -= this.getHeight()/2;\n\t\t\tthis.setLocation(p);\n\t\t}\n\t\tinit();\n\t}", "public abstract void initDialog();", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector)\n\t{\n\t\tthis(owner, dateSelector, true);\n\t}", "public CalendarFrame()\n\t{\n\t\tmodel = new Model();\n\t\tcontroller = new ControllerPanel(model);\n\t\tview = new MonthlyView(model);\n\t\tmodel.attach(view);\n\n\t\tthis.setSize(1500, 700);\n\t\tadd(controller, BorderLayout.NORTH);\n\t\tadd(view, BorderLayout.CENTER);\n\t\tsetBackground(Color.WHITE);\n\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t// pack();\n\t\tsetVisible(true);\n\t}", "Frame createFrame();", "public BookingFrame() {\r\n try {\r\n jbInit();\r\n } catch (Exception exception) {\r\n exception.printStackTrace();\r\n }\r\n }", "public InfoFilterFrame() {\n enableEvents(AWTEvent.WINDOW_EVENT_MASK);\n try {\n jbInit();\n init(); // do local intializations\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public RC2(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public BasicTipOfTheDayUI(JXTipOfTheDay tipPane)\n/* */ {\n/* 89 */ this.tipPane = tipPane;\n/* */ }", "public MyJDialog(Frame f, String title, boolean modal) {\r\n super(f,title,modal);\r\n }", "public FrmPatient(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public AnnotationDialog(java.awt.Frame parent, boolean modal, boolean select) {\n super(parent, modal);\n initComponents();\n }", "public FrameDesign() {\n initComponents();\n }", "private void initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moIntYear.setIntegerSettings(SGuiUtils.getLabelName(jlYear.getText()), SGuiConsts.GUI_TYPE_INT_CAL_YEAR, true);\n moDateDate.setDateSettings(miClient, SGuiUtils.getLabelName(jlDate.getText()), true);\n moTextCode.setTextSettings(SGuiUtils.getLabelName(jlCode.getText()), 10);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 50);\n\n moFields.addField(moIntYear);\n moFields.addField(moDateDate);\n moFields.addField(moTextCode);\n moFields.addField(moTextName);\n\n moFields.setFormButton(jbSave);\n }", "public FinancialTrackerHelpWindow() {\n this(new Stage());\n }", "public FWFExecution(java.awt.Frame parent, boolean modal, CompositionModel compositionModel) {\n super(parent, modal);\n initComponents();\n this.compositionModel = compositionModel;\n }", "public launchFrame() {\n \n initComponents();\n \n }", "public fSobre(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "public TestDialog(java.awt.Frame parent, boolean modal)\n {\n super(parent, modal);\n initComponents();\n setLocationByPlatform(true);\n\n }", "public ADateDemo() {\n\n\n initComponents();\n\n\n }", "private AboutDialog(java.awt.Frame parent, boolean modal) {\n\t\tsuper(parent, modal);\n\t\tinitComponents();\n\t}", "public Khoa_Dialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public SobreSoftware(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public GUI(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public TranslationStartDialog(JFrame parent) {\n super();\n initialize();\n pack();\n setLocationRelativeTo(parent);\n }", "private void createFrame(){\n JPanel jPanelID = new JPanel();\n jPanelID.setLayout(new GridBagLayout());\n JLabel labelText = new JLabel(this.dialogName);\n labelText.setHorizontalAlignment(JLabel.CENTER);\n AddComponent.add(jPanelID,labelText, 0, 0, 2, 1);\n for (int field = 0; field < labelString.length; field++) {\n labelText = new JLabel(labelString[field]);\n AddComponent.add(jPanelID, labelText, 0, field + 1, 1, 1);\n AddComponent.add(jPanelID, fieldID.get(labelString[field]), 1, field + 1, 1, 1);\n }\n int offset = labelString.length + 1;\n labelText = new JLabel(DATE_OF_BIRTH);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, jDateChooser, 1, offset, 1, 1);\n offset++;\n labelText = new JLabel(GROUP);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, group, 1, offset, 1, 1);\n dialog.add(jPanelID, BorderLayout.NORTH);\n JButton okButton = new JButton(dialogName);\n okButton.addActionListener(actionEvent -> checkAndSave());\n dialog.add(okButton, BorderLayout.SOUTH);\n }", "public DialogoRelogio(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n \n try {\n\t\t\thora = new MaskFormatter(\"##:##\");\n hora.setPlaceholderCharacter('_');\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \n initComponents();\n }", "public JDAgendarConsulta(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public holdersframe() {\n initComponents();\n }", "public JFrameCode() {\n initComponents();\n obj=new Object[]{text1,text2,date1,date2,date3};\n dateChooser=new JDateChooser();\n System.out.println(text1);\n panel.add(dateChooser,new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 290, -1, -1));\n \n System.out.println(\"date:\"+dateChooser.getDate());\n }", "public MainFrame() {\n initComponents();\n\n mAlmondUI.addWindowWatcher(this);\n mAlmondUI.initoptions();\n\n initActions();\n init();\n\n if (IS_MAC) {\n initMac();\n }\n\n initMenus();\n mActionManager.setEnabledDocumentActions(false);\n }", "public FrameForm() {\n initComponents();\n }", "public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}", "public StartProgramFrame() {\n initComponents();\n }", "public static void buildFrame() {\r\n\t\t// Make sure we have nice window decorations\r\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\r\n\t\t\r\n\t\t// Create and set up the window.\r\n\t\t//ParentFrame frame = new ParentFrame();\r\n\t\tMediator frame = new Mediator();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\t// Display the window\r\n\t\tframe.setVisible(true);\r\n\t}", "public TestDialog(java.awt.Frame parent,boolean modal) {\n super (parent, modal);\n initComponents ();\n pack ();\n }", "public BusquedaJuicio(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n setLocationRelativeTo(parent); \n }", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public JDialogParticleAnalysisNew() { }", "public App_Interface(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "private void buildFrame() {\n String title = \"\";\n switch (formType) {\n case \"Add\":\n title = \"Add a new event\";\n break;\n case \"Edit\":\n title = \"Edit an existing event\";\n break;\n default:\n }\n frame.setTitle(title);\n frame.setResizable(false);\n frame.setPreferredSize(new Dimension(300, 350));\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // sets the main form to be visible if the event form was exited\n // and not completed.\n mainForm.getFrame().setEnabled(true);\n mainForm.getFrame().setVisible(true);\n }\n });\n }", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public internalFrame() {\r\n initComponents();\r\n }", "public SelectorColor(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public FrameInsert() {\n initComponents();\n }", "public NewJFrame() {\r\n initComponents();\r\n }", "private void init() {\n \n dialog = new JDialog(this.owner, charField.getName() + \" Post Composition\");\n compFieldPanel = new FieldPanel(false,false, null, this.selectionManager, this.editManager, null); // (searchParams)?\n //compFieldPanel.setSearchParams(searchParams);\n \n // MAIN GENUS TERM\n genusField = CharFieldGui.makePostCompTermList(charField,\"Genus\",minCompChars);\n genusField.setSelectionManager(this.selectionManager); // ??\n //genusField.setListSelectionModel(this.selectionModel);\n compFieldPanel.addCharFieldGuiToPanel(genusField);\n\n // REL-DIFF - put in 1 differentia\n addRelDiffGui();\n\n setGuiFromSelectedModel();\n\n // override FieldPanel preferred size which will set window size\n compFieldPanel.setPreferredSize(null);//new Dimension(700,160));\n dialog.add(compFieldPanel);\n addButtons();\n dialog.pack();\n dialog.setLocationRelativeTo(owner);\n dialog.setVisible(true);\n\n compCharChangeListener = new CompCharChangeListener();\n this.editManager.addCharChangeListener(compCharChangeListener);\n compCharSelectListener = new CompCharSelectListener();\n this.selectionModel.addListSelectionListener(compCharSelectListener);\n }", "private void initDialog() {\n }", "public PHConstDialog() {\n\t\tinitComponents();\n\t}", "public void buildFrame();", "public ContainerForm(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n// setSize(JMKHome.getPanelHome().getSize());\n// setLocationRelativeTo(JMKHome.getPanelHome());\n }", "public NewFrame() {\n initComponents();\n }", "public SetopenTimeD(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n theMainFrame=(Main)parent;\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n timeFramesSelectionPanel = new javax.swing.JPanel();\n infoPanel = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n infoTextPane = new javax.swing.JTextPane();\n userInteractionPanel = new javax.swing.JPanel();\n cutOffTimeFrameComboBox = new javax.swing.JComboBox();\n jLabel1 = new javax.swing.JLabel();\n resetTimeIntervalButton = new javax.swing.JButton();\n firstTimeFrameComboBox = new javax.swing.JComboBox();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n defaultCutOffTextField = new javax.swing.JTextField();\n warningPanel = new javax.swing.JPanel();\n warningLabel = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Select Time Frames\");\n setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);\n setResizable(false);\n getContentPane().setLayout(new java.awt.GridBagLayout());\n\n timeFramesSelectionPanel.setBackground(new java.awt.Color(255, 255, 255));\n timeFramesSelectionPanel.setMinimumSize(new java.awt.Dimension(600, 300));\n timeFramesSelectionPanel.setPreferredSize(new java.awt.Dimension(600, 300));\n timeFramesSelectionPanel.setLayout(new java.awt.GridBagLayout());\n\n infoPanel.setMinimumSize(new java.awt.Dimension(20, 20));\n infoPanel.setOpaque(false);\n infoPanel.setPreferredSize(new java.awt.Dimension(600, 150));\n\n jScrollPane1.setBorder(null);\n\n infoTextPane.setEditable(false);\n infoTextPane.setBorder(null);\n infoTextPane.setText(\"The cut off is defined as the time frame starting from which all replicates only have not null values, it is then determined by the shortest replicate. If you want to change this value, choose a cut off time frame from the drop down list and see how this is reflected in the plot. You can do the same for the first time frame. To reset the time interval to the default one, click on the Reset button.\");\n infoTextPane.setFocusable(false);\n infoTextPane.setMinimumSize(new java.awt.Dimension(20, 20));\n infoTextPane.setPreferredSize(new java.awt.Dimension(20, 20));\n jScrollPane1.setViewportView(infoTextPane);\n\n javax.swing.GroupLayout infoPanelLayout = new javax.swing.GroupLayout(infoPanel);\n infoPanel.setLayout(infoPanelLayout);\n infoPanelLayout.setHorizontalGroup(\n infoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 580, Short.MAX_VALUE)\n .addGroup(infoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 580, Short.MAX_VALUE))\n );\n infoPanelLayout.setVerticalGroup(\n infoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 80, Short.MAX_VALUE)\n .addGroup(infoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 80, Short.MAX_VALUE))\n );\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 0.3;\n gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 10);\n timeFramesSelectionPanel.add(infoPanel, gridBagConstraints);\n\n userInteractionPanel.setMinimumSize(new java.awt.Dimension(20, 20));\n userInteractionPanel.setOpaque(false);\n userInteractionPanel.setPreferredSize(new java.awt.Dimension(600, 150));\n\n cutOffTimeFrameComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel1.setText(\"Cut off time frame\");\n jLabel1.setToolTipText(\"This is the last time frame analyzed\");\n\n resetTimeIntervalButton.setText(\"Reset time interval\");\n resetTimeIntervalButton.setToolTipText(\"Click here to reset the last time frame to the default one\");\n\n firstTimeFrameComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel2.setText(\"Starting time frame\");\n jLabel2.setToolTipText(\"This is the first time frame analyzed\");\n\n jLabel3.setText(\"Default cut off\");\n\n defaultCutOffTextField.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n defaultCutOffTextField.setBorder(null);\n defaultCutOffTextField.setFocusable(false);\n defaultCutOffTextField.setMinimumSize(new java.awt.Dimension(20, 20));\n defaultCutOffTextField.setPreferredSize(new java.awt.Dimension(20, 20));\n\n javax.swing.GroupLayout userInteractionPanelLayout = new javax.swing.GroupLayout(userInteractionPanel);\n userInteractionPanel.setLayout(userInteractionPanelLayout);\n userInteractionPanelLayout.setHorizontalGroup(\n userInteractionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(userInteractionPanelLayout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(userInteractionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel1)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(userInteractionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(resetTimeIntervalButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(defaultCutOffTextField, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cutOffTimeFrameComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(firstTimeFrameComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(343, Short.MAX_VALUE))\n );\n\n userInteractionPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, jLabel1, jLabel2, jLabel3);\n\n userInteractionPanelLayout.setVerticalGroup(\n userInteractionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(userInteractionPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(userInteractionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(firstTimeFrameComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(userInteractionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(cutOffTimeFrameComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(userInteractionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(defaultCutOffTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(resetTimeIntervalButton)\n .addContainerGap())\n );\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 0.6;\n gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 10);\n timeFramesSelectionPanel.add(userInteractionPanel, gridBagConstraints);\n\n warningPanel.setMinimumSize(new java.awt.Dimension(20, 20));\n warningPanel.setOpaque(false);\n\n warningLabel.setFont(new java.awt.Font(\"Tahoma\", 2, 12)); // NOI18N\n warningLabel.setForeground(new java.awt.Color(255, 0, 0));\n warningLabel.setText(\"The chosen cut off is greater than the default cut off !!! The choice is being ignored.\");\n\n javax.swing.GroupLayout warningPanelLayout = new javax.swing.GroupLayout(warningPanel);\n warningPanel.setLayout(warningPanelLayout);\n warningPanelLayout.setHorizontalGroup(\n warningPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(warningPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(warningLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 580, Short.MAX_VALUE)\n .addContainerGap())\n );\n warningPanelLayout.setVerticalGroup(\n warningPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(warningPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(warningLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(3, Short.MAX_VALUE))\n );\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 0.1;\n timeFramesSelectionPanel.add(warningPanel, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n getContentPane().add(timeFramesSelectionPanel, gridBagConstraints);\n\n pack();\n }", "public GAClusteringConfigurationDialog(Frame frame, String title, boolean modal)\r\n/* 27: */ {\r\n/* 28: 52 */ super(frame, title, modal);\r\n/* 29: */ }", "public BaseFrame() {\n initComponents();\n }", "public PLGSingleLogSetup(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "private void initialize() {\r\n\ttry {\r\n\t\t// user code begin {1}\r\n\t\t// user code end\r\n\t\tsetName(\"OpenExcelDialog\");\r\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\n\t\tsetSize(450, 160);\r\n\t\tsetContentPane(getJDialogContentPane());\r\n\t} catch (java.lang.Throwable ivjExc) {\r\n\t\thandleException(ivjExc);\r\n\t}\r\n\t// user code begin {2}\r\n\tgetJPanel1().setBorder(new LineBorder(getBackground().brighter()));\r\n\r\n\tgetBtnFile().addActionListener(new ActionListener(){\r\n\t\tpublic void actionPerformed(ActionEvent ae){\r\n\t\t\topenFile();\r\n\t\t}\r\n\t});\r\n\tgetBtnOK().addActionListener(new ActionListener(){\r\n\t\tpublic void actionPerformed(ActionEvent ae){\r\n\t\t\tokClick = true;\r\n\t\t\tsetVisible(false);\r\n\t\t}\r\n\t});\r\n\tgetBtnCancel().addActionListener(new ActionListener(){\r\n\t\tpublic void actionPerformed(ActionEvent ae){\r\n\t\t\tokClick = false;\r\n\t\t\tsetVisible(false);\r\n\t\t}\r\n\t});\r\n\t// user code end\r\n}", "public xinxiNewJFrame() {\n initComponents();\n }", "public NewClassForm(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n initialization();\n onLoading();\n }", "public NewJFrame17() {\n initComponents();\n }", "public CardDialog(Frame owner, boolean modal) {\n super(owner, modal);\n parentFrame = (JFrame) owner;\n buttonText = \"Confirm\";\n }", "public CreateAnimalDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n AnimalManager myAnimalManager = new AnimalManager();\n FoodManager myFoodManager = new FoodManager();\n }", "public StandardDialog() {\n super();\n init();\n }", "public FrameControl() {\n initComponents();\n }", "private void initComponents() {\n\t\tjava.awt.GridBagConstraints gridBagConstraints;\n\n\t\tSqlDateModel fromSqlModel = new SqlDateModel();\n\t\tProperties pFrom = new Properties();\n\t\tpFrom.put(\"text.today\", \"Today\");\n\t\tpFrom.put(\"text.month\", \"Month\");\n\t\tpFrom.put(\"text.year\", \"Year\");\n\t\tJDatePanelImpl fromDatePanel = new JDatePanelImpl(fromSqlModel, pFrom);\n\n\t\t// Don't know about the formatter, but there it is...\n\t\tfromDatePicker = new JDatePickerImpl(fromDatePanel, new DateLabelFormatter());\n\n\t\tSqlDateModel toSqlModel = new SqlDateModel();\n\t\tProperties pTo = new Properties();\n\t\tpTo.put(\"text.today\", \"Today\");\n\t\tpTo.put(\"text.month\", \"Month\");\n\t\tpTo.put(\"text.year\", \"Year\");\n\t\tJDatePanelImpl toDatePanel = new JDatePanelImpl(toSqlModel, pTo);\n\t\ttoDatePicker = new JDatePickerImpl(toDatePanel, new DateLabelFormatter());\n\n\t\t// JCBClient = new JComboBox<>();\n\n\t\tJCBClient = PublicMethods.fillComboClient(\n\t\t\t\t\"Select clientId, firstName, middleName, lastName from clients order by firstName asc, middlename asc, lastname asc\",\n\t\t\t\tthis.cnFoodDataEntry);\n\n\t\tJCBFoodUnit = new JComboBox<>();\n\t\tJCBFoodUnit.setModel(\n\t\t\t\tnew javax.swing.DefaultComboBoxModel<>(energySourceDetail.get(FoodIntake).keySet().toArray()));\n\n\t\tJCBLandfillingFoodWasteUnit = new JComboBox<>();\n\t\tJCBLandfillingFoodWasteUnit.setModel(new javax.swing.DefaultComboBoxModel<>(\n\t\t\t\tenergySourceDetail.get(LandfillingFoodWaste).keySet().toArray()));\n\n\t\tJCBCompostingFoodWasteUnit = new JComboBox<>();\n\t\tJCBCompostingFoodWasteUnit.setModel(\n\t\t\t\tnew javax.swing.DefaultComboBoxModel<>(energySourceDetail.get(CompostingFoodWaste).keySet().toArray()));\n\n\t\tsetLayout(new java.awt.GridBagLayout());\n\n\t\tImageIcon image = new ImageIcon(\"images/foodcalculator.jpg\");\n\t\tJLImage = new JLabel(\"\", image, JLabel.CENTER);\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 0;\n\t\tgridBagConstraints.gridy = 0;\n\t\tgridBagConstraints.gridwidth = 4;\n\t\tgridBagConstraints.gridheight = 17;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tadd(JLImage, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 0;\n\t\tgridBagConstraints.gridwidth = 4;\n\t\tJLHeader.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 35));\n\t\tgridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 0);\n\t\tadd(JLHeader, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 7;\n\t\tgridBagConstraints.gridy = 1;\n\t\tJLSelectClient.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 20));\n\t\tgridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 0);\n\t\tadd(JLSelectClient, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 7;\n\t\tgridBagConstraints.gridy = 2;\n\t\tgridBagConstraints.gridwidth = 4;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(1, 1, 1, 1);\n\t\tadd(JCBClient, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 1;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tJLDateRange.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 20));\n\t\tgridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 0);\n\t\tadd(JLDateRange, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 2;\n\t\tJLFromDate.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 15));\n\t\tadd(JLFromDate, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 5;\n\t\tgridBagConstraints.gridy = 2;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(1, 4, 1, 10);\n\t\tadd(fromDatePicker, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 3;\n\t\tJLToDate.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 15));\n\t\tadd(JLToDate, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 5;\n\t\tgridBagConstraints.gridy = 3;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(1, 4, 1, 10);\n\t\tadd(toDatePicker, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 6;\n\t\tJLFood.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 15));\n\t\tadd(JLFood, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 7;\n\t\tJLLandfillingFoodWaste.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 15));\n\t\tadd(JLLandfillingFoodWaste, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 8;\n\t\tgridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 0);\n\t\tJLCompostingFoodWaste.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 15));\n\t\tadd(JLCompostingFoodWaste, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 5;\n\t\tgridBagConstraints.gridy = 6;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(1, 4, 1, 10);\n\t\tadd(JTFFood, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 5;\n\t\tgridBagConstraints.gridy = 7;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(1, 4, 1, 10);\n\t\tadd(JTFLandfillingFoodWaste, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 5;\n\t\tgridBagConstraints.gridy = 8;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(1, 4, 1, 10);\n\t\tadd(JTFCompostingFoodWaste, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 7;\n\t\tgridBagConstraints.gridy = 5;\n\t\tJLUnit.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 20));\n\t\tadd(JLUnit, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 7;\n\t\tgridBagConstraints.gridy = 6;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(1, 4, 4, 10);\n\t\tadd(JCBFoodUnit, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 7;\n\t\tgridBagConstraints.gridy = 7;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(1, 4, 4, 10);\n\t\tadd(JCBLandfillingFoodWasteUnit, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 7;\n\t\tgridBagConstraints.gridy = 8;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(1, 4, 4, 10);\n\t\tadd(JCBCompostingFoodWasteUnit, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 14;\n\t\tgridBagConstraints.gridwidth = 2;\n\t\tgridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 0);\n\t\tcalculateButton.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 15));\n\t\tcalculateButton.setBackground(new Color(92, 184, 92));\n\t\tcalculateButton.setForeground(Color.WHITE);\n\t\tcalculateButton.addActionListener(actionListener);\n\t\tcalculateButton.setActionCommand(\"CALCULATE\");\n\t\tadd(calculateButton, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 16;\n\t\tgridBagConstraints.gridwidth = 4;\n\t\tgridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 0);\n\t\tJTFResult.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 20));\n\t\tJTFResult.setEditable(false);\n\t\tadd(JTFResult, gridBagConstraints);\n\n\t\tJPanel jpanel = new JPanel();\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 0;\n\t\tgridBagConstraints.gridy = 0;\n\t\tgridBagConstraints.gridwidth = 1;\n\t\t// gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\t// gridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 0);\n\t\tsaveButton.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 20));\n\t\tsaveButton.addActionListener(actionListener);\n\t\tsaveButton.setActionCommand(\"SAVE\");\n\t\tjpanel.add(saveButton, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 4;\n\t\tgridBagConstraints.gridy = 18;\n\t\tgridBagConstraints.gridwidth = 1;\n\t\t// gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\tgridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 0);\n\t\tadd(jpanel, gridBagConstraints);\n\n\t\tsetBackground(Color.WHITE);\n\n\t}", "private ShowFitaMT() {\r\n setLocationRelativeTo(null);\r\n initComponents();\r\n setSize(600,120);\r\n setModal(true);\r\n }", "public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}", "public FrameOpcoesAgenda() {\n initComponents();\n }", "public NewEmployeeDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n currentEmployeeCode = \"\";\n populatePositionComboBox ();\n putDialogToCenter();\n }", "public CustomDialog(Frame owner, String title) {\n\t\tsuper(owner, title);\n\t\tinit();\n\t}", "public TifViewFrame() {\n initComponents();\n }", "public GDSTab(ProjectSettingsFrame parent, boolean modal)\n \t{\n \t\tsuper(parent, modal);\n \t\tinitComponents();\n \t}", "public NewJFrame()\r\n {\r\n initComponents();\r\n }", "public MercadoFrame() {\n initComponents();\n }", "public AboutDialog( MainJFrame pMainFrame_ ) \n {\n this( pMainFrame_, pMainFrame_.getInit() );\n }", "public CvsDiffFrame(CvsDiff diff) {\n this.diff = diff;\n initComponents ();\n setTitle(org.openide.util.NbBundle.getBundle(CvsDiffFrame.class).getString(\"CvsDiffFrame.title\"));\n //SwingUtilities.invokeLater(new Runnable () {\n //public void run () {\n //initScrollBars();\n //pack ();\n //}\n //});\n initScrollBars();\n pack ();\n HelpCtx.setHelpIDString (getRootPane (), CvsDiffFrame.class.getName ());\n }", "public LogPrompt() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public CreerEmploye(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n //positionnement au milieu de la fenetre parente\n this.setLocationRelativeTo(parent);\n Integer date = new Date().getYear() + 1900;\n this.jTextFieldGererAnneeEntree.setText(date.toString());\n }", "public QLHocSinhJFrame() {\n initComponents();\n }", "protected void initialize() {\n setSize(600, 420);\n setContentPane(getJContentPane());\n setTitle(\"Edit Play List\");\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setName(\"framePlayList\");\n\t\tsetModal(false);\n\t\t//this.setResizable(false);\n\t\tsetComponentOrientation(java.awt.ComponentOrientation.LEFT_TO_RIGHT);\n\t\t\n\t\t//fire this off once this dialog is displaying\n\t\taddWindowListener( new WindowAdapter() {\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\tgetJButtonCancel().requestFocusInWindow();\n\t\t\t}\n\t\t});\n\n }" ]
[ "0.6088302", "0.60325795", "0.588358", "0.5858922", "0.5815889", "0.57710177", "0.57653373", "0.5718021", "0.56830376", "0.5637565", "0.5634057", "0.5600332", "0.5563637", "0.5555381", "0.55303127", "0.5507157", "0.5504603", "0.5485842", "0.54846704", "0.5474171", "0.5453859", "0.5452733", "0.5447041", "0.54401237", "0.5437724", "0.543291", "0.54261684", "0.542269", "0.54013866", "0.5387688", "0.5384246", "0.5374589", "0.5374018", "0.53706026", "0.5364235", "0.53640455", "0.5361917", "0.5356906", "0.5354417", "0.53526855", "0.53381205", "0.5330556", "0.5329099", "0.5322858", "0.53183246", "0.5317937", "0.5314707", "0.5308249", "0.5306431", "0.53053874", "0.53034264", "0.53019947", "0.5301708", "0.5301125", "0.5300787", "0.5299393", "0.5298337", "0.52946824", "0.52940285", "0.5282693", "0.5273034", "0.5266552", "0.5266365", "0.52607226", "0.52589256", "0.5257685", "0.52461934", "0.5241344", "0.52359056", "0.5232298", "0.52310354", "0.5216754", "0.5213648", "0.52107626", "0.5207249", "0.5206129", "0.5202547", "0.5200562", "0.5196594", "0.519574", "0.5192176", "0.5190001", "0.5179361", "0.51765794", "0.51653165", "0.51614994", "0.51582766", "0.5156862", "0.51542753", "0.5151514", "0.5150437", "0.5149835", "0.514895", "0.51474476", "0.51462096", "0.51436925", "0.5142492", "0.51392174", "0.5134745", "0.5131115" ]
0.6384823
0
Constructs with the specified initial dialog, date selector, modal and hint.
public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal, boolean hint) { super(owner, SwingLocale.getString("date_selector"), new Dimension(280, 145), modal, hint, true); this.dateSelector = dateSelector; initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector, boolean modal, boolean hint)\n\t{\n\t\tsuper(owner, SwingLocale.getString(\"date_selector\"), new Dimension(280, 145), modal, hint, true);\n\t\t\n\t\tthis.dateSelector = dateSelector;\n\t\t\n\t\tinitComponents();\n\t}", "public abstract void initDialog();", "public StandardDialog() {\n super();\n init();\n }", "private void initDialog() {\n }", "@Nullable\n @Override\n protected Dialog onCreateDialog(int id, Bundle args) {\n if (id == 101) {\n return new DatePickerDialog(this,\n myDateListener1, year, month, day);\n }else{\n if (id == 102){\n return new DatePickerDialog(this,\n myDateListener2, year, month, day);\n }}\n return null;\n }", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "protected Dialog onCreateDialog(int id) {\n\n\t\t// listener for setting date in starting date dialog\n\t\tOnDateSetListener goToDateSetListener = new OnDateSetListener() {\n\n\t\t\t// use when \"set\" press\n\t\t\tpublic void onDateSet(DatePicker view, int year, int monthOfYear,\n\t\t\t\t\tint dayOfMonth) {\n\n\t\t\t\t\tmView.goTo(dayOfMonth, monthOfYear, year);\n\t\t\t\t\tc.set(year, monthOfYear, dayOfMonth);\t\t\n\t\t\t\t\tmonthlyview_month.setText(DateFormat.format(\"d MMMM yyyy\", c));\n\n\t\t\t\t\n\t\t\t}\n\t\t};\n\n\t\treturn new DatePickerDialog(this, goToDateSetListener, Calendar\n\t\t\t\t.getInstance().get(Calendar.YEAR), Calendar.getInstance().get(\n\t\t\t\tCalendar.MONTH), Calendar.getInstance().get(\n\t\t\t\tCalendar.DAY_OF_MONTH));\n\t}", "public Dialog() {\n\t}", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal)\n\t{\n\t\tthis(owner, dateSelector, modal, false);\n\t}", "protected Dialog onCreateDialog(int id) {\n switch(id){\n case DATE_DIALOG_ID:\n //return new DatePickerDialog(this, reservationDate, currentYear, currentMonth, currentDay);\n DatePickerDialog dialog = new DatePickerDialog(this, AlertDialog.THEME_DEVICE_DEFAULT_LIGHT, reservationDate, currentYear, currentMonth, currentDay) {\n public void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth){\n view.setMinDate(new Date().getTime());\n }\n };\n\n dialog.getDatePicker().setMinDate(new Date().getTime());// set Min date in Calendar\n //Calendar calendar = Calendar.getInstance();\n //dialog.getDatePicker().setMinDate(calendar.getTimeInMillis());// set Min date in Calendar\n return dialog;\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(this,\n myDateListener, year, month, day);\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis());\n return datePickerDialog;\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this, myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this, myDateListener, year, month, day);\n }\n return null;\n }", "@Override\r\n protected Dialog onCreateDialog(int id) {\r\n switch (id) {\r\n case DATE_DIALOG_ID:\r\n return new DatePickerDialog(this, \r\n pDateSetListener,\r\n pYear, pMonth, pDay);\r\n\t\tcase DATE_DIALOG1_ID:\r\n return new DatePickerDialog(this, \r\n pDateSetListener1,\r\n pYear, pMonth, pDay);\r\n }\r\n return null;\r\n }", "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector, boolean modal)\n\t{\n\t\tthis(owner, dateSelector, modal, false);\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the current date as the default date in the picker\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n mainViewModel = new ViewModelProvider(requireActivity()).get(MainViewModel.class);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "@Override\r\n protected Dialog onCreateDialog(int id) {\r\n switch (id) {\r\n case START_DATE_DIALOG_ID:\r\n return new DatePickerDialog(this,\r\n \t\t\tstartDateSetListener,\r\n \t\t\tstartYear_dp, startMonth_dp-1, startDay_dp); \r\n case START_TIME_DIALOG_ID:\r\n return new TimePickerDialog(this,\r\n \t\t\tstartTimeSetListener, startHour_dp, startMinute_dp, false); \r\n case END_DATE_DIALOG_ID:\r\n return new DatePickerDialog(this,\r\n endDateSetListener,\r\n endYear_dp, endMonth_dp-1, endDay_dp);\r\n case END_TIME_DIALOG_ID:\r\n return new TimePickerDialog(this,\r\n \t\t\tendTimeSetListener, endHour_dp, endMinute_dp, false);\r\n }\r\n return null;\r\n }", "public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog dialog = new DatePickerDialog(getActivity(), this, year, month, day);\n if(this.getMinDate() != null){\n dialog.getDatePicker().setMinDate(this.getMinDate().getTime());\n }\n\n if(this.getMaxDate() != null){\n dialog.getDatePicker().setMaxDate(this.getMaxDate().getTime());\n }\n\n if(getPositiveClickListner() != null){\n dialog.setButton(DialogInterface.BUTTON_POSITIVE, \"OK\", getPositiveClickListner());\n }\n return dialog;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n if (id == 998) {\n return new DatePickerDialog(this,\n myDateListener_end, year, month, day);\n }\n return null;\n }", "public PHConstDialog() {\n\t\tinitComponents();\n\t}", "protected abstract JDialog createDialog();", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n mYear = getArguments().getInt(\"year\");\n mMonth = getArguments().getInt(\"month\");\n mDay = getArguments().getInt(\"day\");\n mStart = getArguments().getBoolean(\"start\");\n\n // create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, mYear, mMonth, mDay);\n }", "@Override\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tCalendar c = Calendar.getInstance();\n\n if((getArguments().getString(ARG_TXT_FECHA)!=null)&&(!getArguments().getString(ARG_TXT_FECHA).isEmpty())){\n String fecha = getArguments().getString(ARG_TXT_FECHA);\n c.setTime(Convertir_fechaStr_a_date_BDD(fecha));\n }\n int year = c.get(Calendar.YEAR);\n int month= c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n //obtener id label fecha\n\t\tthis.idLabelFecha = getArguments().getInt(ARG_ID_VIEW);\n\t\t\n\t\t// Create a new instance of DatePickerDialog and return it\n\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n int year = calendarSelected.get(Calendar.YEAR);\n int month = calendarSelected.get(Calendar.MONTH);\n int day = calendarSelected.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflator = getActivity().getLayoutInflater();\n View view = inflator.inflate(R.layout.informationdialog, datePicker);\n builder.setView(view);\n init(view);\n Dialog dialog = builder.create();\n\n //Dialog will not close automatically until user click on cancle button.\n setCancelable(false);\n return dialog;\n }", "@Override\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tint year;\n\t\tint month;\n\t\tint day;\n\t\tif (!this.getArguments().containsKey(\"date\")) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tyear = c.get(Calendar.YEAR);\n\t\t\tmonth = c.get(Calendar.MONTH);\n\t\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\t} else {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tc.setTimeInMillis(getArguments().getLong(\"date\"));\n\t\t\tyear = c.get(Calendar.YEAR);\n\t\t\tmonth = c.get(Calendar.MONTH);\n\t\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\t}\n\t\t// Create a new instance of DatePickerDialog and return it\n\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t}", "@Override\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t}", "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tint year = c.get(Calendar.YEAR);\n\t\t\tint month = c.get(Calendar.MONTH);\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\n\t\t\t\n\t\t\t// Create a new instance of DatePickerDialog and return it\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t\t}", "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tint year = c.get(Calendar.YEAR);\n\t\t\tint month = c.get(Calendar.MONTH);\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\n\t\t\t\n\t\t\t// Create a new instance of DatePickerDialog and return it\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t\t}", "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tint year = c.get(Calendar.YEAR);\n\t\t\tint month = c.get(Calendar.MONTH);\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\n\n\t\t\t// Create a new instance of DatePickerDialog and return it\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t\t}", "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tint year = c.get(Calendar.YEAR);\n\t\t\tint month = c.get(Calendar.MONTH);\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\n\n\t\t\t// Create a new instance of DatePickerDialog and return it\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t\t}", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector)\n\t{\n\t\tthis(owner, dateSelector, true);\n\t}", "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) \n\t\t{\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tint year = c.get(Calendar.YEAR);\n\t\t\tint month = c.get(Calendar.MONTH);\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\n\n\t\t\t// Create a new instance of DatePickerDialog and return it\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t\t}", "@Override\n public Dialog onCreateDialog (Bundle savedInstanceState)\n {\n // Use the current time as the default values for the picker\n final Calendar c = Calendar.getInstance();\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n // Create a new instance of TimePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\r\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\t\tint year = c.get(Calendar.YEAR);\r\n\t\t\tint month = c.get(Calendar.MONTH);\r\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\t\t// Create a new instance of DatePickerDialog and return it\r\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\r\n\t\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n c.set(year, month, day);\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\r\n int year = c.get(Calendar.YEAR);\r\n int month = c.get(Calendar.MONTH);\r\n int day = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n // Create a new instance of DatePickerDialog and return it\r\n return new DatePickerDialog(getActivity(), this, year, month, day);\r\n }", "private Dialogs () {\r\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), android.R.style.Theme_Holo_Dialog, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int y, int m, int d) {\n String dayString = String.valueOf(d);\n if (dayString.length() == 1)\n dayString = \"0\" + dayString;\n\n int month = m + 1;\n String monthString = String.valueOf(month);\n if (monthString.length() == 1)\n monthString = \"0\" + monthString;\n\n mListener.onDateSetListener(Integer.toString(y), monthString, dayString);\n }\n }, year, month, day);\n datePickerDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n return datePickerDialog;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState){\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new DatePickerDialog instance and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n DatePickerDialog dialog = new DatePickerDialog(LocationActivity.this, this, startYear, startMonth, startDay);\n return dialog;\n\n }", "private void chooseDateDialog() {\n Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DATE);\n\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(Objects.requireNonNull(getContext()), this, year, month, day);\n datePickerDialog.show();\n }", "@Override\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tint year = c.get(Calendar.YEAR);\n\t\tint month = c.get(Calendar.MONTH);\n\t\tint day = c.get(Calendar.DAY_OF_MONTH);\n\n\t\t// Create a new instance of DatePickerDialog and return it\n\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar calendar = Calendar.getInstance();\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(getActivity(), this, year, month, day);\n datePickerDialog.getDatePicker().setMinDate(calendar.getTimeInMillis());\n return datePickerDialog;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n if (mYear == null || mMonthOfYear == null || mDayOfMonth == null) {\n final Calendar c = Calendar.getInstance();\n mYear = c.get(Calendar.YEAR);\n mMonthOfYear = c.get(Calendar.MONTH);\n mDayOfMonth = c.get(Calendar.DAY_OF_MONTH);\n }\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, mYear, mMonthOfYear, mDayOfMonth);\n datePickerDialog.getDatePicker().setMaxDate(DateTime.now().getMillis());\n return datePickerDialog;\n }", "public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}", "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector)\n\t{\n\t\tthis(owner, dateSelector, true);\n\t}", "@SuppressLint(\"StaticFieldLeak\")\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n myear = c.get(Calendar.YEAR);\n mmonth= c.get(Calendar.MONTH);\n mday= c.get(Calendar.DAY_OF_MONTH);\n return new DatePickerDialog(getActivity(), this, myear, mmonth, mday);\n }", "@RequiresApi(api = Build.VERSION_CODES.N)\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the current date as the default date in the picker\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog dialog = new DatePickerDialog(getActivity(), this, year, month, day);\n\n dialog.setButton(DialogInterface.BUTTON_NEGATIVE, \"Cancel\", new DialogInterface\n .OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n if (which == DialogInterface.BUTTON_NEGATIVE) {\n dialog.cancel();\n }\n }\n });\n\n return dialog;\n }", "public JDialogParticleAnalysisNew() { }", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n DatePickerDialog dialog = new DatePickerDialog(getActivity(), this, mmd_year, mmd_month, mmd_day);\n return dialog;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog dpd = new DatePickerDialog(getActivity(), this, year, month, day);\n return dpd;\n }", "@Override\n\tprotected Dialog onCreateDialog(int id) {\n\t\t// this method is called after invoking 'showDialog' for the first time\n\t\t// here we initiate the corresponding DateSlideSelector and return the\n\t\t// dialog to its caller\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\treturn new DateTimeSlider(ActivityGroupMedicine.group,\n\t\t\t\tmDateTimeSetListener, c);\n\t}", "public Dialog(Window owner, Modality modality, String title) {\n\t\tthis(owner, modality, null, title);\n\t}", "@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\r\n int year = c.get(Calendar.YEAR);\r\n int month = c.get(Calendar.MONTH);\r\n int day = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n d_fechaCreacion = getActivity().findViewById(R.id.d_fechaTransectaItem);\r\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);\r\n datePickerDialog.updateDate(year, month, day);\r\n // Create a new instance of DatePickerDialog and return it\r\n return datePickerDialog;\r\n }", "public DateFilterDialog(java.awt.Frame parent, boolean modal) {\n\n\t\tsuper(parent, modal);\n\t\tinitComponents();\n\t\tfillYearFields();\n\t}", "private void initDialog() {\n dialog = new Dialog(context);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_custom_ok);\n }", "public Dialog(String text) {\n initComponents( text);\n }", "public DialogManager() {\n }", "public NewEmployeeDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n currentEmployeeCode = \"\";\n populatePositionComboBox ();\n putDialogToCenter();\n }", "@TargetApi(Build.VERSION_CODES.N)\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);\n datePickerDialog.getDatePicker().setMaxDate(new Date().getTime());\n return datePickerDialog;\n }", "@TargetApi(Build.VERSION_CODES.N)\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);\n datePickerDialog.getDatePicker().setMaxDate(new Date().getTime());\n return datePickerDialog;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Date c = new Date();\n int year = c.getYear();\n int month = c.getMonth();\n int day = c.getDay();\n\n // CreateFragment a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "public Khoa_Dialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n Calendar cal = Calendar.getInstance();\r\n int year = cal.get(Calendar.YEAR);\r\n int month = cal.get(Calendar.MONTH);\r\n int day = cal.get(Calendar.DAY_OF_MONTH);\r\n Log.i(TAG,\"onCreate Date: \" + year + \"-\" + month + \"-\" + day);\r\n // Create a new instance of TimePickerDialog and return it\r\n DatePickerDialog dpd = new DatePickerDialog(getActivity(),this, year, month, day);\r\n dpd.getDatePicker().setMaxDate(System.currentTimeMillis() + 1000);\r\n return dpd;\r\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n //final Calendar d = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 1000);\n c.add(Calendar.DATE, 60);\n datePickerDialog.getDatePicker().setMaxDate(c.getTimeInMillis());\n return datePickerDialog;\n }", "public TestDialog(java.awt.Frame parent,boolean modal) {\n super (parent, modal);\n initComponents ();\n pack ();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n // Create a new instance of DatePickerDialog and return it\n TimePickerDialog dialog = new TimePickerDialog(getActivity(), this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n\n dialog.setButton(DialogInterface.BUTTON_NEGATIVE, \"Cancel\", new DialogInterface\n .OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n if (which == DialogInterface.BUTTON_NEGATIVE) {\n dialog.cancel();\n }\n }\n });\n\n return dialog;\n }", "private void initDatePicker() {\n DatePickerDialog.OnDateSetListener dateSetListener = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n month = month + 1;\n String date = makeDateString(day, month, year);\n btnDiaCitaver.setText(date);\n }\n };\n// Calendar cal = Calendar.getInstance();\n// int year = cal.get(Calendar.YEAR);\n// int month = cal.get(Calendar.MONTH);\n// int day = cal.get(Calendar.DAY_OF_MONTH);\n // Traer la fecha de la cita por partes\n String[] vec_fecha = infoCita.getString(1).split(\" \");\n String[] vec_fecha_dia = vec_fecha[0].split(\"-\");\n int year = Integer.parseInt(vec_fecha_dia[0]);\n int month = Integer.parseInt(vec_fecha_dia[1]) - 1;\n int day = Integer.parseInt(vec_fecha_dia[2]);\n\n int style = AlertDialog.THEME_DEVICE_DEFAULT_DARK;\n datePickerDialogFecha = new DatePickerDialog(this, style, dateSetListener, year, month, day);\n// datePickerDialogFechaNacimiento.getDatePicker().setMaxDate(cal.getTimeInMillis());\n\n }", "private void initPopupDate() {\n editDate = findViewById(R.id.date_depense);\n date = new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n // TODO Auto-generated method stub\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDate();\n }\n\n };\n\n // onclick - popup datepicker\n editDate.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n new DatePickerDialog(context, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }\n });\n }", "private void init() {\n \n dialog = new JDialog(this.owner, charField.getName() + \" Post Composition\");\n compFieldPanel = new FieldPanel(false,false, null, this.selectionManager, this.editManager, null); // (searchParams)?\n //compFieldPanel.setSearchParams(searchParams);\n \n // MAIN GENUS TERM\n genusField = CharFieldGui.makePostCompTermList(charField,\"Genus\",minCompChars);\n genusField.setSelectionManager(this.selectionManager); // ??\n //genusField.setListSelectionModel(this.selectionModel);\n compFieldPanel.addCharFieldGuiToPanel(genusField);\n\n // REL-DIFF - put in 1 differentia\n addRelDiffGui();\n\n setGuiFromSelectedModel();\n\n // override FieldPanel preferred size which will set window size\n compFieldPanel.setPreferredSize(null);//new Dimension(700,160));\n dialog.add(compFieldPanel);\n addButtons();\n dialog.pack();\n dialog.setLocationRelativeTo(owner);\n dialog.setVisible(true);\n\n compCharChangeListener = new CompCharChangeListener();\n this.editManager.addCharChangeListener(compCharChangeListener);\n compCharSelectListener = new CompCharSelectListener();\n this.selectionModel.addListSelectionListener(compCharSelectListener);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n int hour = calendarSelected.get(Calendar.HOUR_OF_DAY);\n int minute = calendarSelected.get(Calendar.MINUTE);\n\n // Create a new instance of TimePickerDialog and return it\n return new TimePickerDialog(getActivity(), this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n }" ]
[ "0.6879349", "0.67057794", "0.6657223", "0.65717804", "0.6464664", "0.6372457", "0.6357964", "0.63526416", "0.6351222", "0.63426226", "0.63014156", "0.62817925", "0.62817925", "0.62813973", "0.6274227", "0.6273784", "0.62704164", "0.62704164", "0.62704164", "0.62704164", "0.62704164", "0.62704164", "0.6269428", "0.6261601", "0.62029845", "0.62023664", "0.6189521", "0.61866194", "0.615274", "0.6145516", "0.613843", "0.6114088", "0.6099836", "0.60885876", "0.60885876", "0.60802466", "0.60802466", "0.607209", "0.6068604", "0.60423213", "0.6041109", "0.60377747", "0.60217875", "0.60197425", "0.60158384", "0.5993046", "0.5992554", "0.5973405", "0.59720534", "0.5971917", "0.59629476", "0.59629476", "0.59629476", "0.59629476", "0.59629476", "0.59629476", "0.5961848", "0.5960629", "0.5960629", "0.5960629", "0.5960629", "0.5960629", "0.5960629", "0.5960629", "0.5960629", "0.5960629", "0.5960629", "0.5960629", "0.5960629", "0.5960629", "0.59604603", "0.5928709", "0.5916049", "0.5893912", "0.58926237", "0.5874765", "0.58691025", "0.5862345", "0.5835182", "0.583511", "0.58131987", "0.57972896", "0.5793443", "0.5787984", "0.57826966", "0.5766742", "0.57660973", "0.5753518", "0.5750244", "0.5750244", "0.57337534", "0.5714043", "0.5704742", "0.57046396", "0.5690264", "0.5640265", "0.56387264", "0.5633488", "0.5630674", "0.5619729" ]
0.6889171
0
Gets the date selector.
public JDateSelector getDateSelector() { return dateSelector; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getSelectDate();", "public Date getSelectedDate();", "public Widget getDateSelector( DSLVariableValue value ) {\n return new DSLDateSelector( value );\n }", "public JDateTimeSelector getDateTimeSelector()\n\t{\n\t\treturn dateTimeSelector;\n\t}", "public Date getDateSelected() {\n Date dateSelected = availDay.getDate();\n return dateSelected;\n }", "public Date getSelectedDate() {\n\t\treturn date.getValue();\n\t}", "public Calendar getDate() {\r\n return (Calendar) selectedDate;\r\n }", "public DaySelectorStyle getDaySelectorStyle() {\r\n if (daySelectorStyle == null) {\r\n daySelectorStyle = new DaySelectorStyle();\r\n }\r\n return daySelectorStyle;\r\n }", "org.apache.xmlbeans.impl.xb.xsdschema.SelectorDocument.Selector getSelector();", "public TodaySelectorStyle getTodaySelectorStyle() {\r\n if (todaySelectorStyle == null) {\r\n todaySelectorStyle = new TodaySelectorStyle();\r\n }\r\n return todaySelectorStyle;\r\n }", "Selector getSelector();", "SelectorType getSelector();", "public Date getSelectedDate() {\r\n return calendarTable.getSelectedDate();\r\n }", "public DateTime getSelectedDateTime() {\r\n\treturn selectedDate;\r\n }", "public Date getFirstSelectionDate()\n/* */ {\n/* 186 */ return isSelectionEmpty() ? null : (Date)this.selectedDates.first();\n/* */ }", "public String getSelector() {\n return selector;\n }", "public java.lang.String getSelector() {\n return instance.getSelector();\n }", "String getSelector();", "public Selector getSelector();", "public Selector getSelector();", "public java.lang.String getSelector() {\n return selector_;\n }", "public SortedSet<Date> getSelection()\n/* */ {\n/* 179 */ return new TreeSet(this.selectedDates);\n/* */ }", "@Override\n public String getStyle(LocalDate date, TuningDateField tuningDateField) {\n String style = null;\n \n if (multiSelectDateField.getAvailabilityDates() != null && multiSelectDateField.getAvailabilityDates().contains(date) \n \t\t&& ( multiSelectDateField.getSelectedDates().isEmpty() || date.isAfter(multiSelectDateField.getStartDate()))) {\n style = \"day-availability\";\n } else {\n style = \"day-unavailability\";\n }\n \n if (multiSelectDateField.getValue() != null && multiSelectDateField.getValue().contains(date))\n {\n \tstyle += \" day-selected\";\n }\n \n return style;\n }", "public final process.proxies.ChangeCalenderSelection getCalendarSelection()\r\n\t{\r\n\t\treturn getCalendarSelection(getContext());\r\n\t}", "protected String getSelectedDate()\n {\n String startsOnDate = String.valueOf(selectedYear);\n if(selectedMonth<10)startsOnDate+=\"-0\"+String.valueOf(selectedMonth);\n else startsOnDate+=\"-\"+String.valueOf(selectedMonth);\n if(selectedDay<10)startsOnDate+=\"-0\"+String.valueOf(selectedDay);\n else startsOnDate+=\"-\"+String.valueOf(selectedDay);\n\n return startsOnDate;\n }", "@Test(enabled = true)\n\tpublic void selectDateTest() {\n\t\tWebElement calendarElement = driver\n\t\t\t\t.findElement(By.cssSelector(\"#hp-widget__depart\"));\n\n\t\thighlight(calendarElement, 1000);\n\t\ttry {\n\t\t\tselectDateCssSelectors(calendarElement, \"2018\", \"September\", \"22\",\n\t\t\t\t\tdriver);\n\t\t} catch (ParseException e) {\n\t\t}\n\t}", "public Date[] getSelectedDates() {\r\n return calendarTable.getSelectedDates();\r\n }", "public GregorianCalendar getSelectedDate(){\n int day = Integer.parseInt(this.date_day.getSelectedItem().toString());\n int month = Integer.parseInt(this.date_month.getSelectedItem().toString());\n int year = Integer.parseInt(this.date_year.getSelectedItem().toString());\n\n GregorianCalendar date = new GregorianCalendar();\n date.setTimeInMillis(0);\n \n date.set(Calendar.DAY_OF_MONTH, day);\n date.set(Calendar.MONTH, month -1);\n date.set(Calendar.YEAR, year);\n\n return date;\n }", "@Test(enabled = true)\n\tpublic void selectDateXPathTest() {\n\t\tWebElement calendarElement = driver.findElement(By.id(\"hp-widget__depart\"));\n\n\t\thighlight(calendarElement, 1000);\n\t\ttry {\n\t\t\tselectDate(calendarElement, \"2019\", \"February\", \"22\", driver);\n\t\t} catch (ParseException e) {\n\t\t}\n\t}", "public SortedSet<Date> getUnselectableDates()\n/* */ {\n/* 223 */ return new TreeSet(this.unselectableDates);\n/* */ }", "private void selectDate() {\n Calendar calendar = Calendar.getInstance();\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n mDatebtn.setText(day + \"-\" + (month + 1) + \"-\" + year); //sets the selected date as test for button\n }\n }, year, month, day);\n datePickerDialog.show();\n }", "Date getDateField();", "public Date getLastSelectionDate()\n/* */ {\n/* 193 */ return isSelectionEmpty() ? null : (Date)this.selectedDates.last();\n/* */ }", "@Override\n\tpublic Calendar getDate(){\n\t\treturn date;\n\t}", "public com.google.protobuf.ByteString\n getSelectorBytes() {\n return instance.getSelectorBytes();\n }", "public MonthSelectorStyle getMonthSelectorStyle() {\r\n if (monthSelectorStyle == null) {\r\n monthSelectorStyle = new MonthSelectorStyle();\r\n }\r\n return monthSelectorStyle;\r\n }", "private CsvFileSelector getFromCsvFileSelector() {\n if (fromCsvFileSelector == null) {\n fromCsvFileSelector = new CsvFileSelector(jFrame);\n }\n return fromCsvFileSelector;\n }", "public void selectDate(){\r\n\t\tcloseDateText.sendKeys(ConvertDate());\r\n\t}", "@org.jetbrains.annotations.NotNull()\n public static final android.app.DatePickerDialog getDatePicker(@org.jetbrains.annotations.NotNull()\n java.util.Calendar $this$getDatePicker, @org.jetbrains.annotations.NotNull()\n android.content.Context context, @org.jetbrains.annotations.NotNull()\n android.app.DatePickerDialog.OnDateSetListener onDateSetListener) {\n return null;\n }", "private void initDatePicker() {\n pickDateBox.setDayCellFactory(picker -> new DateCell() {\n public void updateItem(LocalDate date, boolean empty) {\n super.updateItem(date, empty);\n LocalDate today = LocalDate.now();\n\n setDisable(empty || date.compareTo(today) < 0 );\n }\n });\n }", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal, boolean hint)\n\t{\n\t\tsuper(owner, SwingLocale.getString(\"date_selector\"), new Dimension(280, 145), modal, hint, true);\n\t\t\n\t\tthis.dateSelector = dateSelector;\n\t\t\n\t\tinitComponents();\n\t}", "public String getDateStyleClass() {\r\n return dateThreshold ? \"equipmentDate\" : \"\";\r\n }", "private ch.softenvironment.view.DataSelectorPanel getPnlDataSelector() {\n\tif (ivjPnlDataSelector == null) {\n\t\ttry {\n\t\t\tivjPnlDataSelector = new ch.softenvironment.view.DataSelectorPanel();\n\t\t\tivjPnlDataSelector.setName(\"PnlDataSelector\");\n\t\t\t// user code begin {1}\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin {2}\n\t\t\t// user code end\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjPnlDataSelector;\n}", "public SelectorItemCollection getSelectors() {\n\t\tSelectorItemCollection selectors= super.getSelectors();\n\t\tselectors.add(new SelectorItemInfo(\"outAppBillNo\"));\n\t\tselectors.add(new SelectorItemInfo(\"isEducate\"));\n\t\treturn selectors;\n\t}", "public Selector<GenomeType> getSelector()\n {\n return this.selector;\n }", "public com.google.protobuf.ByteString\n getSelectorBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(selector_);\n }", "Date getForDate();", "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector, boolean modal, boolean hint)\n\t{\n\t\tsuper(owner, SwingLocale.getString(\"date_selector\"), new Dimension(280, 145), modal, hint, true);\n\t\t\n\t\tthis.dateSelector = dateSelector;\n\t\t\n\t\tinitComponents();\n\t}", "String getStartDate();", "public Calendar getDate() {\r\n\t\treturn date;\r\n\t}", "public int getSelectorType() {\n return m_selectorType;\n }", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:date\")\n public Calendar getDate() {\n return getProperty(DATE);\n }", "Optional<DescriptorDigest> getSelector();", "public Calendar getDate() {\n\treturn date;\n }", "public Calendar getDate() {\n\t\treturn date;\n\t}", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector)\n\t{\n\t\tthis(owner, dateSelector, true);\n\t}", "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector)\n\t{\n\t\tthis(owner, dateSelector, true);\n\t}", "public Calendar getDate() {\n\n\t\treturn _date;\n\t}", "private void chooseDateDialog() {\n Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DATE);\n\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(Objects.requireNonNull(getContext()), this, year, month, day);\n datePickerDialog.show();\n }", "private Callback<DatePicker, DateCell> getDayCellFactory() {\n try {\n final Callback<DatePicker, DateCell> dayCellFactory = new Callback<>() {\n\n @Override\n public DateCell call(final DatePicker datePicker) {\n return new DateCell() {\n @Override\n public void updateItem(LocalDate item, boolean empty) {\n super.updateItem(item, empty);\n\n // Disable all days before today + weekend days\n if (item.isBefore(LocalDate.now()) || item.getDayOfWeek() == DayOfWeek.SATURDAY\n || item.getDayOfWeek() == DayOfWeek.SUNDAY) {\n // disable the 'button'\n setDisable(true);\n // make them red\n setStyle(\"-fx-background-color: #ffc0cb;\");\n }\n }\n };\n }\n };\n return dayCellFactory;\n } catch (Exception e) {\n logger.log(Level.SEVERE, e.toString());\n }\n return null;\n }", "private Integer dbPickedDate() {\n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n return app_utils.dayMonthYearToDateInteger(\n cal.get(Calendar.DAY_OF_MONTH),\n cal.get(Calendar.MONTH) + 1, //Jan=0, Feb=1, etc\n cal.get(Calendar.YEAR));\n }", "java.lang.String getStartDate();", "public Calendar getFechaMatriculacion() {\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.set(Integer.parseInt(cbox_ano.getSelectedItem().toString()), cbox_mes.getSelectedIndex(),\r\n\t\t\t\tInteger.parseInt(cbox_dia.getSelectedItem().toString()));\r\n\t\treturn c;\r\n\t}", "public Calendar getDate()\n {\n return date;\n }", "public void setDaySelectorStyle(DaySelectorStyle selectorStyle) {\r\n daySelectorStyle = selectorStyle;\r\n }", "public void setTodaySelectorStyle(TodaySelectorStyle selectorStyle) {\r\n todaySelectorStyle = selectorStyle;\r\n }", "private void chooseDateFromCalendar(Button dateButton){\n DateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n Calendar nowCalendar = formatCalendar(Calendar.getInstance());\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getContext(),\n R.style.Theme_TrainClimbing_DatePicker,\n (v, y, m, d) -> {\n inputCalendar.set(y, m, d);\n if (inputCalendar.after(nowCalendar))\n dateButton.setText(R.string.ad_button_date);\n else\n dateButton.setText(sdf.format(inputCalendar.getTime()));\n }, inputCalendar.get(Calendar.YEAR),\n inputCalendar.get(Calendar.MONTH),\n inputCalendar.get(Calendar.DAY_OF_MONTH));\n\n datePickerDialog.getDatePicker().setFirstDayOfWeek(Calendar.MONDAY);\n datePickerDialog.getDatePicker().setMinDate(formatCalendar(\n new GregorianCalendar(2000, 7, 19)).getTimeInMillis());\n datePickerDialog.getDatePicker().setMaxDate(nowCalendar.getTimeInMillis());\n datePickerDialog.show();\n }", "public Calendar getDate(){\n return date;\n }", "private CsvFileSelector getToCsvFileSelector() {\n if (toCsvFileSelector == null) {\n toCsvFileSelector = new CsvFileSelector(jFrame);\n }\n return toCsvFileSelector;\n }", "Date getStartDate();", "Date getStartDate();", "Date getStartDate();", "public DateWrapper getDate() throws NoSuchElementException {\n return this.dateWrapper.get();\n }", "public org.apache.xmlbeans.XmlString xgetDateOpen()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DATEOPEN$2, 0);\n return target;\n }\n }", "public org.jdesktop.swingx.JXDatePicker getNewDateDP() {\n return newDateDP;\n }", "public SelectorUser getUserSelector() {\n return userSelector;\n }", "public void selectDate(String d){\n\t\tDate current = new Date();\n\t\tSimpleDateFormat sd = new SimpleDateFormat(\"d-MM-yyyy\");\n\t\ttry {\n\t\t\tDate selected = sd.parse(d);\n\t\t\tString day = new SimpleDateFormat(\"d\").format(selected);\n\t\t\tString month = new SimpleDateFormat(\"MMMM\").format(selected);\n\t\t\tString year = new SimpleDateFormat(\"yyyy\").format(selected);\n\t\t\tSystem.out.println(day+\" --- \"+month+\" --- \"+ year);\n\t\t\tString desiredMonthYear=month+\" \"+year;\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tString displayedMonthYear=driver.findElement(By.cssSelector(\".dpTitleText\")).getText();\n\t\t\t\tif(desiredMonthYear.equals(displayedMonthYear)){\n\t\t\t\t\t// select the day\n\t\t\t\t\tdriver.findElement(By.xpath(\"//td[text()='\"+day+\"']\")).click();\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tif(selected.compareTo(current) > 0)\n\t\t\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='datepicker']/table/tbody/tr[1]/td[4]/button\")).click();\n\t\t\t\t\telse if(selected.compareTo(current) < 0)\n\t\t\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='datepicker']/table/tbody/tr[1]/td[2]/button\")).click();\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public SelectorComment getCommentSelector() {\n return commentSelector;\n }", "public void selectEnddate() {\n\r\n\t\tSeleniumUtil.getVisibileWebElement(d, \"selectEnddate1_T\", \"CashFlow\", null).click();\r\n\t\t\r\n\t\t//webDriver.findElement(By.xpath(\"//input[contains(@class,'end-date')]\")).click();\r\n\t\t// SeleniumUtil.waitForPageToLoad();\r\n\t\t// webDriver.findElement(By.xpath(\"//div[contains(@class,'end-date')]//div[@id='prev-year']\")).click();\r\n\t\t\r\n\t\tSeleniumUtil.fluentWait(d);\r\n\t\t\r\n\t\t// webDriver.findElement(By.xpath(\"(//div[@class='custom-end-dateCnr']//div[@class='js-row']/div[\"+tableCol+\"])[\"+selectNumber+\"]\")).click();\r\n\t\t//webDriver.findElement(By.xpath(\"//div[@class='custom-end-dateCnr']//div[@class='js-row']//div[contains(@class,'today')]\")).click();\r\n\t\r\n\t\tSeleniumUtil.getVisibileWebElement(d, \"selectEnddate2_T\", \"CashFlow\", null).click();\r\n\t}", "public String getStartDate();", "com.google.protobuf.ByteString\n getSelectorBytes();", "public LocalDate getViewDate();", "private String getSelectionTask() {\n String selection = \"\";\n\n if (mTypeTask.equals(TaskContract.TypeTask.Expired)) {\n selection = TaskEntry.COLUMN_TARGET_DATE_TIME + \"<?\";\n } else if(mTypeTask.equals(TaskContract.TypeTask.Today)) {\n selection = TaskEntry.COLUMN_TARGET_DATE_TIME + \"=?\";\n } else if(mTypeTask.equals(TaskContract.TypeTask.Future)) {\n selection = TaskEntry.COLUMN_TARGET_DATE_TIME + \">?\";\n }\n\n return selection;\n }", "public Date getDate(){\n\t\treturn day.date;\n\t}", "public ItemSelector<Vente> getItemSelector() {\n return itemSelector;\n }", "public DateBox getDateBox() {\n return box;\n }", "public Class<Date> getPresentationType() {\n\t\t\treturn Date.class;\n\t\t}", "@FXML\r\n\tString getDate() {\r\n\t\t\tLocalDate creditCardExpiryDate = dpCreditCardExpiryDate.getValue();\r\n\t\t\tDateTimeFormatter formattedExpiryDate = DateTimeFormatter.ofPattern(\"yyyy-MM-dd\");\r\n\t\t\treturn formattedExpiryDate.format(creditCardExpiryDate);\r\n\t}", "public void setSelectedDate(Date selectedDate);", "public void setDateSelector(JDateSelector dateSelector)\n\t{\n\t\tthis.dateSelector = dateSelector;\n\t\t\n\t\tlayoutPanel.removeAll();\n\t\tlayoutPanel.add(dateSelector, BorderLayout.NORTH);\n\t}", "public String getRuleSelector()\n {\n return (this.ruleSelector != null)? this.ruleSelector : \"\";\n }", "java.lang.String getDate();", "public DefaultDateSelectionModel(Locale locale)\n/* */ {\n/* 55 */ super(locale);\n/* 56 */ this.selectionMode = DateSelectionModel.SelectionMode.SINGLE_SELECTION;\n/* 57 */ this.selectedDates = new TreeSet();\n/* 58 */ this.unselectableDates = new TreeSet();\n/* */ }", "public int showDateTimeDialog()\n\t{\n\t\treturn showDialog(owner, layoutPanel, SwingLocale.getString(\"date_time_selector\"), IconFactory.getSwingIcon(\"component/calendar_48.png\"));\n\t}", "public Date[] getDates() {\n/* 141 */ return getDateArray(\"date\");\n/* */ }", "public boolean selectDate(String dateString);", "public DATE getDebutService(){\n\t\treturn debutService;\n\t}", "public java.lang.String getDateOpen()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DATEOPEN$2, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public WebElement getMultiArticleDayDropdown(int day) {\n WebElement el;\n switch(day) {\n case 1: el = locateWebElement(\"SelectDay1DropDown\");\n break;\n case 2: el = locateWebElement(\"SelectDay2DropDown\");\n break;\n case 3: el = locateWebElement(\"SelectDay3DropDown\");\n break;\n case 4: el = locateWebElement(\"SelectDay4DropDown\");\n break;\n case 5: el = locateWebElement(\"SelectDay5DropDown\");\n break;\n case 6: el = locateWebElement(\"SelectDay6DropDown\");\n break;\n default: el = null;\n break;\n }\n return el;\n }", "public List<Date> retrieveSelectedValues()\n\t{\n\t\tList<Date> selectedValues = new ArrayList<Date>();\n\t\t\n\t\t// for each loop to find all the selected time intervals\n\t\tfor (Widget timeSlot : this.getChildren())\n\t\t{\n\t\t\tif(timeSlot instanceof TimeSlot)\n\t\t\t{\n\t\t\t\tif(((TimeSlot) timeSlot).getValue())\n\t\t\t\t{\n\t\t\t\t\tselectedValues.add(((TimeSlot) timeSlot).getDate());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn selectedValues;\n\t}" ]
[ "0.69024277", "0.6785805", "0.6738536", "0.6692691", "0.66712475", "0.6634329", "0.65133435", "0.644457", "0.6331475", "0.6234356", "0.61526567", "0.61219835", "0.61217374", "0.6092343", "0.6080718", "0.6071503", "0.6055907", "0.60323447", "0.60165095", "0.60165095", "0.5998667", "0.5942867", "0.59178865", "0.5846023", "0.58358335", "0.5730604", "0.565852", "0.56541526", "0.5562417", "0.5554054", "0.55312693", "0.5518585", "0.55156356", "0.54739374", "0.5455403", "0.5448552", "0.542344", "0.5423001", "0.54017246", "0.5397602", "0.5388248", "0.5377907", "0.53660315", "0.5365732", "0.5356204", "0.53538805", "0.5346897", "0.53444266", "0.53318965", "0.5328004", "0.5318529", "0.5309431", "0.52949584", "0.52933156", "0.52906585", "0.5274298", "0.52695656", "0.5261554", "0.5256998", "0.52507526", "0.5248262", "0.5246064", "0.52441454", "0.5218877", "0.5209595", "0.520467", "0.5193408", "0.5189642", "0.5182889", "0.5182886", "0.5182886", "0.5182886", "0.5169536", "0.516939", "0.5168891", "0.51619935", "0.51538545", "0.5151094", "0.51507187", "0.5147736", "0.5140494", "0.51289874", "0.5128954", "0.51230264", "0.51163554", "0.51134217", "0.5106857", "0.51037115", "0.5085629", "0.50747865", "0.5058379", "0.5052747", "0.50475717", "0.50444275", "0.50305057", "0.5025109", "0.5020383", "0.50194544", "0.501463", "0.50099826" ]
0.817828
0
Sets the date selector.
public void setDateSelector(JDateSelector dateSelector) { this.dateSelector = dateSelector; layoutPanel.removeAll(); layoutPanel.add(dateSelector, BorderLayout.NORTH); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSelectedDate(Date selectedDate);", "public void setDate() {\n DatePickerDialog dateDialog = new DatePickerDialog(this, myDateListener,\n calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));\n //set the date limits so user cannot pick a date outside of game scope\n dateDialog.getDatePicker().setMinDate(System.currentTimeMillis() + MILLIS_IN_DAY);\n dateDialog.getDatePicker().setMaxDate(System.currentTimeMillis() + (MILLIS_IN_DAY * MAX_END_DAY_COUNT));\n dateDialog.show();\n }", "public void selectDate(){\r\n\t\tcloseDateText.sendKeys(ConvertDate());\r\n\t}", "private void selectDate() {\n Calendar calendar = Calendar.getInstance();\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n mDatebtn.setText(day + \"-\" + (month + 1) + \"-\" + year); //sets the selected date as test for button\n }\n }, year, month, day);\n datePickerDialog.show();\n }", "public void setPickerDate(@NonNull final LocalDateTime date) {\n onView(viewMatcher).perform(click());\n onView(withClassName(equalTo(DatePicker.class.getName())))\n .perform(PickerActions.setDate(date.getYear(), date.getMonth().getValue(), date.getDayOfMonth()));\n new Dialog().confirmDialog();\n }", "public void setDate(View view) {\n new DatePickerDialog(\n AddEvent.this, dateSet,\n myCalendar.get(Calendar.YEAR),\n myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)\n ).show();\n }", "@Test(enabled = true)\n\tpublic void selectDateTest() {\n\t\tWebElement calendarElement = driver\n\t\t\t\t.findElement(By.cssSelector(\"#hp-widget__depart\"));\n\n\t\thighlight(calendarElement, 1000);\n\t\ttry {\n\t\t\tselectDateCssSelectors(calendarElement, \"2018\", \"September\", \"22\",\n\t\t\t\t\tdriver);\n\t\t} catch (ParseException e) {\n\t\t}\n\t}", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector)\n\t{\n\t\tthis(owner, dateSelector, true);\n\t}", "public void setDaySelectorStyle(DaySelectorStyle selectorStyle) {\r\n daySelectorStyle = selectorStyle;\r\n }", "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector)\n\t{\n\t\tthis(owner, dateSelector, true);\n\t}", "public void setDateTimeSelector(JDateTimeSelector dateTimeSelector)\n\t{\n\t\tthis.dateTimeSelector = dateTimeSelector;\n\t\tthis.dateTimeSelector.setPreferredSize(new Dimension(180, this.dateTimeSelector.getPreferredSize().height));\n\t\t\n\t\tlayoutPanel.removeAll();\n\t\tlayoutPanel.add(dateTimeSelector);\n\t}", "public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n selectedmonth = selectedmonth + 1;\n Search_start_date.setText(String.format(\"%04d\", selectedyear)+\"-\"+String.format(\"%02d\", selectedmonth)+\"-\"+ String.format(\"%02d\", selectedday)+\"\" );\n }", "public void SetDate(Date date);", "public void setTodaySelectorStyle(TodaySelectorStyle selectorStyle) {\r\n todaySelectorStyle = selectorStyle;\r\n }", "private void initDatePicker() {\n pickDateBox.setDayCellFactory(picker -> new DateCell() {\n public void updateItem(LocalDate date, boolean empty) {\n super.updateItem(date, empty);\n LocalDate today = LocalDate.now();\n\n setDisable(empty || date.compareTo(today) < 0 );\n }\n });\n }", "@Override\n\tprotected void setDate() {\n\n\t}", "public JDateSelector getDateSelector()\n\t{\n\t\treturn dateSelector;\n\t}", "@Override\n public void onDateSet(DatePickerDialog view, int year, int month, int date)\n {\n String dateSet = \"\" + year + \"-\" + (++month) + \"-\" + date;\n selectDateTextView.setText(dateSet);\n\n\n\n\n// _device_id = \"2345\";\n// _expiry_date = T.parseDate(dateSet);\n// _document_type = \"Driving Licence\";\n//\n// uploadDocumentImage();\n }", "public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\t\t\t\t\t \t\t\tstart_day = selectedday;\n\t\t\t\t\t \t\t\tstart_month = selectedmonth;\n\t\t\t\t\t \t\t\tstart_year = selectedyear;\n\t\t\t\t\t \t\t\t//final Date date = new Date(c.getTimeInMillis());\n\t\t\t\t\t \t\t\t//final SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t \t\t\t//harvestdate1.setText(dateFormat.format(date));\n\t\t\t\t\t harvestdate1.setText(new StringBuilder().append(start_day).append(\"-\").append(start_month+1)\n\t\t\t\t .append(\"-\").append(start_year)\n\t\t\t\t .append(\" \")); \t\n\t\t\t\t\t // set selected date into Date Picker\n\t\t\t\t\t datepicker.init(start_year, start_month, start_day, null);\n\n\t\t\t\t\t }", "public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n selectedmonth = selectedmonth + 1;\n Search_end_date.setText(String.format(\"%04d\", selectedyear)+\"-\"+String.format(\"%02d\", selectedmonth)+\"-\"+ String.format(\"%02d\", selectedday) +\"\" );\n }", "public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\t\t\t\t\t\t \t\t\tstart_day = selectedday;\n\t\t\t\t\t\t \t\t\tstart_month = selectedmonth;\n\t\t\t\t\t\t \t\t\tstart_year = selectedyear;\n\t\t\t\t\t\t \t\t\t//final Date date = new Date(c.getTimeInMillis());\n\t\t\t\t\t\t \t\t\t//final SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t\t \t\t\t//harvestdate1.setText(dateFormat.format(date));\n\t\t\t\t\t\t harvestdate1.setText(new StringBuilder().append(start_day).append(\"-\").append(start_month+1)\n\t\t\t\t\t .append(\"-\").append(start_year)\n\t\t\t\t\t .append(\" \")); \t\n\t\t\t\t\t\t // set selected date into Date Picker\n\t\t\t\t\t\t datepicker.init(start_year, start_month, start_day, null);\n\n\t\t\t\t\t\t }", "void setDate(Date data);", "@Override\n\t\tpublic void onDateSet(DatePicker view, int selectedYear,\n\t\t\t\tint selectedMonth, int selectedDay) {\n\n\t\t\tyear = selectedYear;\n\t\t\tmonth = selectedMonth;\n\t\t\tday = selectedDay;\n\n\t\t\tcreate_srart_date.setText(new StringBuilder().append(year)\n\t\t\t\t\t.append(\"-\").append(month + 1).append(\"-\").append(day));\n\n\t\t}", "@Override\r\n\t\tpublic void onDateSet(DatePicker view, int selectedYear,\r\n\t\t\t\tint selectedMonth, int selectedDay) {\r\n\r\n\t\t\tString year = String.valueOf(selectedYear);\r\n\t\t\tString month = \"\";\r\n\t\t\tString day = \"\";\r\n\r\n\t\t\tif (selectedMonth < 9) {\r\n\t\t\t\tmonth = \"0\" + String.valueOf(selectedMonth + 1);\r\n\t\t\t} else {\r\n\t\t\t\tmonth = String.valueOf(selectedMonth + 1);\r\n\t\t\t}\r\n\r\n\t\t\tif (selectedDay < 10) {\r\n\t\t\t\tday = \"0\" + String.valueOf(selectedDay);\r\n\t\t\t} else {\r\n\t\t\t\tday = String.valueOf(selectedDay);\r\n\t\t\t}\r\n\r\n\t\t\tselect_date = year + \"-\" + month + \"-\" + day;\r\n\r\n\t\t\tet_select_date.setText(select_date);\r\n\r\n\t\t}", "public void selectDate()\r\n\t{\r\n\t\tsetLayout(new FlowLayout());\r\n\t\t\r\n\t\t// Create the DatePicker\r\n\t\tUtilDateModel model = new UtilDateModel();\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.put(\"text.today\", \"Today\");\r\n\t\tproperties.put(\"text.month\", \"Month\");\r\n\t\tproperties.put(\"text.year\", \"Year\");\r\n\t\tJDatePanelImpl datePanel = new JDatePanelImpl(model,properties);\r\n\t\tdatePicker = new JDatePickerImpl(datePanel, new DateFormatter());\r\n\t\t\r\n\t\t// Add confirmation button\r\n\t\tbutton = new JButton(\"OK\");\r\n\t\tbutton.addActionListener(this);\r\n\t\t\r\n\t\t// Display the DatePicker\r\n\t\tadd(datePicker);\r\n\t\tadd(button);\r\n setSize(300,300);\r\n setLocationRelativeTo(null);\r\n setVisible(true);\r\n\t}", "public void setDate(int dt) {\n date = dt;\n }", "public void onDateSet(DatePicker view, int selectedYear,\n\t\t\t\t\tint selectedMonth, int selectedDay) {\n\t\t\t\tyear = selectedYear;\n\t\t\t\tmonth = selectedMonth;\n\t\t\t\tday = selectedDay;\n\t\t\t\tbtnFcraDate.setText(new StringBuilder()\n\t\t\t\t// Month is 0 based, just add 1\n\t\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t\t.append(year));\n\t\t\t}", "public void onDateSet(DatePicker view, int year, int month, int day) {\n\t\t}", "public void onDateSet(DatePicker view, int selectedYear,\n\t\t\t\t\tint selectedMonth, int selectedDay) {\n\t\t\t\t\tyear = selectedYear; \n\t\t\t\t\tmonth = selectedMonth; \n\t\t\t\t\tday = selectedDay;\n\t\t\t\t\tbtnRegDate.setText(new StringBuilder()\n\t\t\t\t\t// Month is 0 based, just add 1\n\t\t\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t\t\t.append(year));\n\t\t\t}", "public void onDateSet(DatePicker view, int year, int month, int day) {\n }", "void setDate(java.lang.String date);", "public void onDateSet(DatePicker view, int year, int month, int day) {\n }", "public void setSelectionMode(DateSelectionModel.SelectionMode selectionMode)\n/* */ {\n/* 71 */ this.selectionMode = selectionMode;\n/* 72 */ clearSelection();\n/* */ }", "@Override\r\n public void onDateSet(DatePicker view, int selectedYear, int selectedMonth, int selectedDay) {\r\n year = selectedYear;\r\n month = selectedMonth;\r\n day = selectedDay;\r\n\r\n // Show selected date\r\n W_date.setText(new StringBuilder().append(month + 1).append(\"-\").append(day)\r\n .append(\"-\").append(year).append(\" \"));\r\n }", "public void setDate(Date date) {\r\n \t\tthis.startDate = date;\r\n \t}", "public void onDateSet(DatePicker view, int year, int month, int day) {\n\n callerActivity.setSelectedDate(year,month+1,day);\n }", "public Date getSelectedDate();", "public void onDateSet(DatePicker view, int year, int month, int day) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(year, month, day);\n pickedDate = calendar.getTimeInMillis();\n\n }", "void setSelector(org.apache.xmlbeans.impl.xb.xsdschema.SelectorDocument.Selector selector);", "public JDateSelectorDialog(Dialog owner, JDateSelector dateSelector, boolean modal, boolean hint)\n\t{\n\t\tsuper(owner, SwingLocale.getString(\"date_selector\"), new Dimension(280, 145), modal, hint, true);\n\t\t\n\t\tthis.dateSelector = dateSelector;\n\t\t\n\t\tinitComponents();\n\t}", "public void setDateTime(@NonNull final Calendar date) {\n onView(viewMatcher).perform(click());\n onView(withClassName(equalTo(DatePicker.class.getName())))\n .perform(PickerActions.setDate(date.get(Calendar.YEAR), date.get(Calendar.MONTH) + 1, date.get(Calendar.DAY_OF_MONTH)));\n new Dialog().confirmDialog();\n onView(withClassName(equalTo(TimePicker.class.getName())))\n .perform(PickerActions.setTime(date.get(Calendar.HOUR_OF_DAY), date.get(Calendar.MINUTE)));\n new Dialog().confirmDialog();\n }", "public void onDateSet(DatePicker view, int selectedYear,\n int selectedMonth, int selectedDay) {\n year = selectedYear;\n month = selectedMonth;\n day = selectedDay;\n\n // set selected date into textview\n txtDateLastSeen.setText(new StringBuilder()\n .append(day).append(\"-\")\n .append(month + 1).append(\"-\")\n .append(year).append(\" \"));\n\n // set selected date into datepicker also\n// dpResult.init(year, month, day, null);\n\n }", "private void setDate() {\n\t\tthis.date = Integer.parseInt(this.year + String.format(\"%02d\", this.calenderWeek));\n\n\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel(btnStartDate, myCalendar);\n\n //set hasCheckDate to true\n hasCheckDate = true;\n }", "private DatePickerDialog.OnDateSetListener dateSetListener() {\n return new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n date = year + \".\" + month + \".\" + dayOfMonth;\n setDateB.setText(date);\n }\n };\n }", "public void resetSelectedDate() {\r\n selectedDate = null;\r\n }", "public void onDateSet(DatePicker view, int year, int month, int day) {\n Button button = (Button) findViewById(R.id.dateBtn);\n button.setText(\"Selected Date: \" + month + \"/\" + day + \"/\" + year);\n calendarSelected.set(year, month, day);\n userSelectedDate = true;\n\n if (!userSelectedTime) {\n int hour = calendarSelected.get(Calendar.HOUR_OF_DAY);\n int minute = calendarSelected.get(Calendar.MINUTE);\n\n button = (Button) findViewById(R.id.timeBtn);\n button.setText(\"Selected Time: \" + hour + \":\" + String.format(\"%02d\",minute));\n }\n }", "public JDateSelectorDialog(Frame owner, JDateSelector dateSelector, boolean modal, boolean hint)\n\t{\n\t\tsuper(owner, SwingLocale.getString(\"date_selector\"), new Dimension(280, 145), modal, hint, true);\n\t\t\n\t\tthis.dateSelector = dateSelector;\n\t\t\n\t\tinitComponents();\n\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDays();\n }", "private void setDate() {\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n datetxt2.setText(sdf.format(date));\n }", "public void setDate(Date date) {\r\n this.date = date;\r\n }", "public void setDate(Date date) {\n\t\n\t\tthis.date = date;\n\t\n\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n trigger.getStarttime().set(Calendar.YEAR, year);\n trigger.getStarttime().set(Calendar.MONTH, monthOfYear);\n trigger.getStarttime().set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateStartDate();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n currentDate.set(year, monthOfYear, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker arg0, int year_n, int month_n, int day_n) {\n year = year_n;\n month = month_n;\n day = day_n;\n cal.set(year, month, day);\n week = getWeekDay(cal);\n date.setText(year+\"年\"+(month+1)+\"月\"+day+\"日\" +\" \"+week); //将选择的日期显示到TextView中,因为之前获取month直接使用,所以不需要+1,这个地方需要显示,所以+1\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n// myCalendar.set(Calendar.MONTH, monthOfYear);\n// myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "public void setDateText(String date);", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabelFromDate();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int day) {\n int mMonth = month + 1;\n String bydate = year + \"-\" + mMonth + \"-\" + day;\n mIdTvMoonatCenterShortLine.setText(bydate);\n\n List<SleepDataInfo> all = manager.findAllSleep();\n SleepDataInfo sleepDataInfo_total = manager.findSleepDataInfo(SPUtil.getUserName(getApplication()), bydate);\n RefreshView(sleepDataInfo_total); /*选择日期后刷新ui*/\n }", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "public void set_value_to_default() {\n this.selectionListStrike.setText(\"\");\n this.selectionListCal_iv.setText(\"\");\n this.selectionListUlast.setText(\"\");\n String format = new SimpleDateFormat(\"dd/MM/yyyy\").format(new Date());\n int parseInt = Integer.parseInt(format.substring(6, 10));\n int parseInt2 = Integer.parseInt(format.substring(3, 5));\n int parseInt3 = Integer.parseInt(format.substring(0, 2));\n this.selectedDate = parseInt + \"-\" + parseInt2 + \"-\" + parseInt3;\n this.selectionListExpiry.setSelectedText(format);\n this.selectionListExpiry.initItems(R.string.set_date, SelectionList.PopTypes.DATE, parseInt, parseInt2, parseInt3);\n if (!this.wtype.equals(\"C\")) {\n this.callputbutton.callOnClick();\n }\n }", "public void setDate() {\n this.date = new Date();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, month);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "public void setDate(int date){\n this.date = date;\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel(to_date);\n }", "private void setSaleDateField1() {\n // Create a DatePickerDialog and manage it\n mSaleDatePickerDialog1 = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDateEntryOfTheMarket = Calendar.getInstance();\n newDateEntryOfTheMarket.set(year, monthOfYear, dayOfMonth);\n\n // Update entryDate in ViewModel\n mSearchEstateViewModel.getDateSale1().setValue(newDateEntryOfTheMarket);\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH),\n newCalendar.get(Calendar.DAY_OF_MONTH));\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n to_calendar.set(Calendar.YEAR, year);\n to_calendar.set(Calendar.MONTH, monthOfYear);\n to_calendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateToLabel();\n }", "@Test(enabled = true)\n\tpublic void selectDateXPathTest() {\n\t\tWebElement calendarElement = driver.findElement(By.id(\"hp-widget__depart\"));\n\n\t\thighlight(calendarElement, 1000);\n\t\ttry {\n\t\t\tselectDate(calendarElement, \"2019\", \"February\", \"22\", driver);\n\t\t} catch (ParseException e) {\n\t\t}\n\t}", "@SuppressWarnings(\"deprecation\")\n public void setDate(View view) {\n showDialog(999);\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel(btnEndDate, myCalendar);\n\n //set hasCheckDate to true\n hasCheckDate = true;\n }", "@Override\n\t public void onDateSet(DatePicker view, int year, int monthOfYear,\n\t int dayOfMonth) {\n\t myCalendar.set(Calendar.YEAR, year);\n\t myCalendar.set(Calendar.MONTH, monthOfYear);\n\t myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n\t updateLabel();\n\t }", "private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }", "private void chooseDateDialog() {\n Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DATE);\n\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(Objects.requireNonNull(getContext()), this, year, month, day);\n datePickerDialog.show();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }" ]
[ "0.716667", "0.6908046", "0.68156815", "0.67547166", "0.6684823", "0.665894", "0.660636", "0.6587516", "0.6553814", "0.6533728", "0.6521536", "0.65189266", "0.6509847", "0.6497171", "0.6491897", "0.64918023", "0.64180183", "0.640911", "0.639313", "0.6386247", "0.63724613", "0.6353472", "0.6331946", "0.633143", "0.6328609", "0.6319588", "0.6309591", "0.6297958", "0.62851804", "0.6253197", "0.6246277", "0.6232985", "0.62209654", "0.6216847", "0.62133735", "0.62063557", "0.61990076", "0.61856014", "0.61781", "0.61693", "0.6162152", "0.61605877", "0.61583", "0.61535865", "0.61501163", "0.61469233", "0.6139128", "0.6136182", "0.61242586", "0.6107048", "0.61065245", "0.60956544", "0.6094593", "0.60881317", "0.6082993", "0.6082104", "0.6082104", "0.6082104", "0.6081968", "0.6078887", "0.6078405", "0.6073476", "0.6069949", "0.606108", "0.606108", "0.606108", "0.6060504", "0.6060504", "0.6060504", "0.6060504", "0.6060504", "0.6058039", "0.605121", "0.60490745", "0.60478514", "0.6043712", "0.60427463", "0.6042558", "0.6041038", "0.6040838", "0.6038077", "0.60370016", "0.603624", "0.6035329", "0.6030926", "0.6030926", "0.6030926", "0.6030926", "0.6030926", "0.6030926", "0.6030926", "0.6030926", "0.6030926", "0.6030926", "0.6030926", "0.6029218", "0.6029218", "0.6029218", "0.6029218", "0.6029218" ]
0.7730442
0
Returns true if it is confirmed.
public abstract boolean confirm();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isConfirmed() {\n return confirmed;\n }", "boolean isConfirmed(){\n\t\treturn confirmed;\n\t}", "public final boolean isConfirmed() {\n return isConfirmed;\n }", "boolean isConfirmed();", "public abstract boolean isConfirmed();", "public void setConfirmed(boolean confirmed) {\n this.confirmed = confirmed;\n }", "public boolean isFullyConfirmed()\n\t{\n\t\treturn getTargetQty().compareTo(getConfirmedQty()) == 0;\n\t}", "public boolean getUserConfirmation() {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation Box\");\n alert.setHeaderText(\"Are you sure you want to delete?\");\n alert.setResizable(false);\n Optional<ButtonType> result = alert.showAndWait();\n ButtonType button = result.orElse(ButtonType.CANCEL);\n\n if (button == ButtonType.OK) {\n return true;\n } else {\n return false;\n }\n }", "protected void setConfirmed(boolean confirmed) {\n this.confirmed = confirmed;\n }", "public boolean isReceiptConfirmationRequested() {\n return getFlow().isReceiptConfirmationRequested();\n }", "protected final void setConfirmed(final boolean confirmed) {\n isConfirmed = confirmed;\n }", "public boolean isInstantConfirmation() {\n return instantConfirmation;\n }", "public boolean hasDdzConfirmRule() {\n return ddzConfirmRule_ != null;\n }", "protected abstract boolean isConfirmEnabled();", "public boolean hasDdzConfirmRule() {\n return ddzConfirmRuleBuilder_ != null || ddzConfirmRule_ != null;\n }", "boolean hasDdzConfirmRule();", "public boolean setConfirm(int reservationID, boolean confirmed){\n \n return dbf.setConfirm(reservationID, confirmed);\n }", "public String confirm()\n\t{\n\t\tconfirm = true;\n\t\treturn su();\n\t}", "@XmlTransient\n\tpublic boolean isConfirmUserNameAndPassword() {\n\t\treturn (WizardState.confirmUserNameAndPassword.equals(getWizardState()));\n\t}", "public boolean isConfirmKey() {\n switch (this) {\n case DPAD_CENTER:\n case ENTER:\n case SPACE:\n case NUMPAD_ENTER:\n return true;\n default:\n return false;\n }\n }", "public boolean isProved() {\n\t\treturn proveState == PROVED;\n\t}", "protected boolean Confirm(String message) {\n String line = inputLine(message);\n if (line.length() == 0 || line.toUpperCase().charAt(0) == 'Y') {\n return true;\n } else {\n return false;\n }\n }", "public boolean confirmEmail(String email) {\n return database.emailExists(email);\n }", "String getConfirmed();", "public boolean isVerified() {\r\n return verified;\r\n }", "public void confirmPasswordRequest() {\n\t\tStreamObserver<BoolValue> responseObserver = new StreamObserver<BoolValue>() {\t//\tUsed for sending orreceiving stream messages\n\t\t\t\n\t\t\t//\tStreamObserver methods\n\t\t\tpublic void onNext(BoolValue boolValue) {\t//\tReceives value from stream\n\t\t\t\tif (boolValue.getValue()) {\n\t\t\t\t\tlogger.info(\"Entered password is correct\");\n\t\t\t\t} else {\n\t\t\t\t\tlogger.info(\"Entered password is incorrect\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tpublic void onError(Throwable throwable) {\n\t\t\t\tlogger.info(throwable.getLocalizedMessage());\n\t\t\t}\n\n\t\t\tpublic void onCompleted() {\n\t\t\t\tlogger.info(\"Completed\");\n\t\t\t}\n\t\t};\n\n\t\t\tasyncPasswordStub.validate(ConfirmPasswordRequest.newBuilder()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .setPassword(password)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .setSalt(salt)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .setHashedPassword(hashedPassword)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .build(), responseObserver);\t\n\t}", "public boolean isVerified() {\n return verified;\n }", "public String getConfirmMessage() {\n return confirmMessage;\n }", "public boolean isApproved();", "public boolean isApproved();", "boolean hasDidcommInvitation();", "boolean hasPlainApprove();", "boolean isAccepting();", "boolean hasIsRedeemed();", "public boolean verifyMentorRequestContinue(){\n\t\treturn mentorConnectRequestObjects.almostDoneText.isDisplayed();\n\t}", "public boolean getStatusAsBoolean() {\n return isQuarantined;\n }", "private boolean doGetConfirmPassword() {\n\t\tcurrentStep = OPERATION_NAME+\": getting confirm password\";\n\t\tif (!_atmssHandler.doDisDisplayUpper(PROMPT_FOR_CONFIRM_PASSWORD)) {\n\t\t\trecord(\"Dis\");\n\t\t\treturn false;\n\t\t}\n\t\tconfirmPassword = _atmssHandler.doKPGetPasswd(TIME_LIMIT);\n\t\tif (confirmPassword == null) {\n\t\t\trecord(\"KP\");\n\t\t\tif (!_atmssHandler.doDisDisplayUpper(FAILED_FROM_KEYPAD)) {\n\t\t\t\trecord(\"Dis\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tpause(3);\n\t\t\treturn false;\n\t\t} else if (confirmPassword.equals(KP_CANCEL)) {\n\t\t\trecord(\"USER\");\n\t\t\tif (!_atmssHandler.doDisDisplayUpper(FAILED_FROM_USER_CANCELLING)) {\n\t\t\t\trecord(\"Dis\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tpause(3);\n\t\t\treturn false;\n\t\t}\n\t\trecord(\"confirm password typed\");\n\t\treturn true;\n\t}", "void resetConfirm(){\n\t\tconfirmed = false;\n\t}", "public boolean isAsked() {\n\t\treturn isAsked;\n\t}", "public static Boolean confirmDeletion() {\n final AtomicReference<Boolean> reference = new AtomicReference<>(false);\n\n TopsoilNotification.showNotification(\n TopsoilNotification.NotificationType.VERIFICATION,\n \"Delete Table\",\n \"Do you really want to delete this table?\\n\"\n + \"This operation can not be undone.\"\n ).ifPresent(response -> {\n if (response == ButtonType.OK) {\n reference.set(true);\n }\n });\n\n return reference.get();\n }", "public boolean orderConfirm(int id) {\n\t\ttry {\n\t\t\tConnection conn=DB.getConn();\n\t\t\tPreparedStatement stmt=conn.prepareStatement(\"update orders set status='confirm' where id=?\");\n\t\t\tstmt.setInt(1,id);\n\t\t\tstmt.executeUpdate();\n\t\t\treturn true;\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "@XmlTransient\n\tpublic boolean isConfirmGroupMemberships() {\n\t\treturn (WizardState.confirmGroupMemberships.equals(getWizardState()));\n\t}", "public String getConfirmedCount() {\n return confirmedCount;\n }", "public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public void confirm(CorrelationData correlationData, boolean isAck, String cause) {\n System.out.println(\"ack = \" + isAck);\n// System.out.println(\"cause = \" + cause);\n// System.out.println(\"=======ConfirmCallback=========\");\n }", "public String getConfirmPassword() {\n return confirmPassword;\n }", "public boolean isApproved() {\n return approved;\n }", "public void payedConfirmation(){\n\t\tassert reserved: \"a seat also needs to be reserved when bought\";\n\t\tassert customerId != -1: \"this seat needs to have a valid user id\";\n\t\tpayed = true;\n\t}", "public boolean isEmailVerified() {\n return emailVerified;\n }", "void confirm();", "public boolean shouldConfirmCredentials(int userId) {\n synchronized (this.mLock) {\n boolean z = false;\n if (this.mStartedUsers.get(userId) == null) {\n return false;\n }\n }\n }", "boolean hasTxnresponse();", "public boolean isSuccessful()\n\t{\n\t\tif (response.get(\"Result\").equals(\"APPROVED\") && !response.get(\"MESSAGE\").equals(\"DUPLICATE\")) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean hasCustomerUserAccessInvitation();", "@RestrictTo(RestrictTo.Scope.LIBRARY)\n public static final boolean isConfirmKey(int keyCode) {\n switch (keyCode) {\n case KeyEvent.KEYCODE_DPAD_CENTER:\n case KeyEvent.KEYCODE_ENTER:\n case KeyEvent.KEYCODE_SPACE:\n case KeyEvent.KEYCODE_NUMPAD_ENTER:\n return true;\n default:\n return false;\n }\n }", "boolean hasTxnrequest();", "public boolean get_isTripDone() {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getBoolean(\"isTripDone\", false);\n\t}", "public String getPasswordConfirm() {\r\n\t\treturn passwordConfirm;\r\n\t}", "public void setInstantConfirmation(boolean value) {\n this.instantConfirmation = value;\n }", "boolean markConfirmed(long billId);", "public boolean isUserApproval() {\n\n if (!ACTION_UserChoice.equals(getAction())) {\n return false;\n }\n\n return (getColumn() != null) && \"IsApproved\".equals(getColumn().getColumnName());\n\n }", "boolean hasSignupRequest();", "public Boolean getFriendAccepted() {\n return friendAccepted;\n }", "private boolean passwordConfirmed(String passwordOne, String passwordTwo) {\n if (passwordOne.equals(passwordTwo)) {\n // Test for validity\n return true;\n } else {\n return false;\n }\n }", "private boolean doCheckNewPassword() {\n\t\tif (!newPassword.equals(confirmPassword)) return false;\n\t\trecord(\"new password checked\");\n\t\treturn true;\n\t}", "public String getPasswordConfirm() {\n return passwordConfirm;\n }", "public boolean isAccepting() {\n\t\treturn isAccepting;\n\t}", "void finalConfirm(ITransaction trans,boolean confirmation, String userId);", "public boolean confirmLoginClicked() {\n return confirmLogin;\n }", "public void setBooked(boolean confirmed){\n booked = confirmed;\n }", "public boolean onConfirmClicked(DialogActivity dialog)\n {\n return mApplyButton.performClick();\n }", "boolean isAutoRedeem();", "@POST\r\n\t@Path(\"confirmarNota\")\r\n\tpublic boolean confirmarNota(VendasDTO venda) {\r\n\t\treturn controller.confirmarNota(venda);\r\n\t}", "boolean hasPlainRedeem();", "public boolean isApproved() {\n\t\treturn isApproved;\n\t}", "boolean getAccepted();", "public void setConfirmDelete(boolean b) {\r\n\t\t_confirmDelete = b;\r\n\t}", "@Override\n\tpublic boolean verificarCancelar() {\n\t\treturn true;\n\t}", "public boolean isUnproved() {\n\t\treturn proveState == UNPROVED;\n\t}", "Boolean getIsAnswered();", "public boolean presenceCheck()\r\n\t{\r\n\t\treturn validateAnswer();\r\n\t}", "public boolean checkToProceed(){\n return getGame().getCurrentPlayer().getRemainingActions() > 0;\n }", "public boolean doesConsent() {\n return ConsentStatus.isUserConsented(consentStatuses);\n }", "public boolean VerifyOrderDetails_OrderConfirmation(){\n\tboolean flag = false;\n\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.PAYMENTCONFIRMATION_LABEL).isDisplayed();\n\tif(flag){extentLogs.passWithCustom(\"VerifyOrderDetails\", \"PAYMENTCONFIRMATION_LABEL\");\n\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.ORDERNUMBER_LABEL).isDisplayed();\n\t\tif(flag){\n\t\t\textentLogs.passWithCustom(\"VerifyOrderDetails\", \"OrderNumberLabelIsDisplayed\");\n\t\t}else{extentLogs.fail(\"VerifyOrderDetails\", \"OrderNumberLabelIsNotDisplayed\");}\n\t}else{extentLogs.fail(\"VerifyOrderDetails\", \"PAYMENTCONFIRMATION_LABEL\");}\n\t\n\treturn flag;\n\t}", "public boolean isEmailCorrect() {\n return (CustomerModel.emailTest(emailTextField.getText()));\n }", "boolean hasDonator();", "public boolean accepted() {\r\n\r\n return m_bAccepted;\r\n\r\n }", "boolean hasCorrect();", "@Override\n\tpublic boolean isApproved();", "private boolean isEnableConfirmBtns() {\n int count = mManualItemArray.size();\n for (int i = 0; i < count; i++) {\n ListViewItem item = mManualItemArray.get(i);\n if (item.mNeedCheckBox && item.mIsChecked) {\n return true;\n }\n }\n return false;\n }", "public boolean verifyAcceptButtonPresence(ExtentTest extentedReport) {\n\t\treturn WaitUtils.waitForElement(driver, btnAcceptPayment, 30);\n\t}", "@Override\n\tpublic boolean isApproved() {\n\t\treturn model.isApproved();\n\t}", "public abstract boolean isDelivered();", "public boolean isSetActivationCodee() {\n return this.activationCodee != null;\n }", "public int getIsVerified() {\r\n return isVerified;\r\n }", "public boolean favouriteCurrentAccount()\n {\n if(accountInfo == null)\n {\n System.out.println(\"You need to generate an account before getting the details.\");\n return false;\n }\n return accountInfo.favouriteAccount();\n }", "static boolean promptForComfirmation(String prompt) {\n String line;\n\n line = promptWithOptions(Arrays.asList(\"y\", \"n\"), prompt);\n\n return (line.compareTo(\"y\") == 0);\n }", "@Override\n public boolean isActivated() {\n return !STenant.DEACTIVATED.equals(getStatus());\n }", "void setConfirmed(String value);", "public boolean getAccepted()\n {\n return accepted;\n }" ]
[ "0.87059474", "0.845994", "0.8414747", "0.82235384", "0.76681834", "0.73540664", "0.72241056", "0.6977643", "0.6936814", "0.69037753", "0.6833888", "0.681147", "0.67951226", "0.67719877", "0.66688406", "0.6611389", "0.65192866", "0.6464828", "0.64475095", "0.64018726", "0.6250682", "0.6213776", "0.6182095", "0.6159401", "0.61021984", "0.6090978", "0.60908735", "0.6081641", "0.60602283", "0.60602283", "0.60449016", "0.6035248", "0.60254216", "0.6017654", "0.60007596", "0.5969377", "0.5924411", "0.588743", "0.5862442", "0.58572745", "0.58492994", "0.58479804", "0.5828966", "0.5792265", "0.57849133", "0.5784087", "0.5753951", "0.57430124", "0.57406557", "0.57287204", "0.57245934", "0.57238704", "0.5723498", "0.57203496", "0.57024145", "0.56756127", "0.56695306", "0.56695056", "0.566033", "0.56488085", "0.5628101", "0.56216943", "0.5605813", "0.5605173", "0.55929154", "0.55920315", "0.5589478", "0.5587716", "0.55842555", "0.5578659", "0.55765057", "0.55730855", "0.5568347", "0.5566286", "0.5540136", "0.5534663", "0.5527341", "0.5519234", "0.551615", "0.55140126", "0.55069983", "0.54984915", "0.5497798", "0.5495223", "0.5488733", "0.54853046", "0.5477263", "0.5472258", "0.5471942", "0.5456438", "0.545397", "0.5450086", "0.5446419", "0.54404205", "0.543592", "0.5417309", "0.541682", "0.5412253", "0.5407516", "0.5404716" ]
0.6585753
16
Returns true if it is cancelled.
public abstract boolean cancel();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean isCancelled(){\n return cancel;\n }", "public boolean isCancelled();", "public boolean isCancelled();", "public boolean isCancelled();", "public boolean isCancelled() {\n return cancelled;\n }", "boolean isCancelled();", "@Override\n\tpublic boolean isCancelled() {\n\t\treturn cancelled;\n\t}", "boolean isCancelled(){\n\t\treturn cancelled;\n\t}", "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel;\r\n\t\t\t\t\r\n\t}", "public boolean isCancelled() {\n\t\treturn false;\n\t}", "public boolean isCancelled() {\n return isCancelled;\n }", "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel ;\r\n\t\t\t\t\r\n\t}", "public boolean isCancel() {\n return cancel;\n }", "public boolean isCancelled()\r\n/* 54: */ {\r\n/* 55: 92 */ return isCancelled0(this.result);\r\n/* 56: */ }", "public boolean wasCancelled() {\n\t\treturn wasCancelled;\n\t}", "@Override\n public boolean isCancelled() { return this.cancel; }", "public synchronized boolean isCancelled() {\n return mIsCancelled;\n }", "protected boolean reallyCancel() throws Exception { return true; }", "public boolean isCanceled() {\n\t\treturn this.isCanceled;\n\t}", "@Override\r\n\tpublic boolean isCanceled() {\n\t\treturn false;\r\n\t}", "public boolean isCancelled()\n\t{\n\t\treturn _buttonHit;\n\t}", "@Override\n\t\tpublic boolean isCanceled() {\n\t\t\treturn false;\n\t\t}", "public boolean cancel();", "public void checkCancel() throws CancellationException;", "@Override\n\t\t\tpublic boolean isCanceled() {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n\tpublic boolean isEventCancelled() {\n\t\treturn status==EventCancelled;\n\t}", "public abstract void isCancel(long ms);", "public void cancel(){\n cancelled = true;\n }", "public final boolean wasInterrupted() {\n Object localValue = this.value;\n return (localValue instanceof Cancellation) && ((Cancellation) localValue).wasInterrupted;\n }", "public boolean hasUserCancelled() {\n return myIsDialogCancelled;\n }", "@Override\n\tpublic boolean hasCancelBeenRequested() {\n\t\treturn false;\n\t}", "public void cancel() {\n\t\tcancelled = true;\n\t}", "public boolean isExecutionCanceled() {\n return executionCanceled;\n }", "public boolean cancel(boolean mayInterruptIfRunning)\r\n/* 351: */ {\r\n/* 352:433 */ Object result = this.result;\r\n/* 353:434 */ if ((isDone0(result)) || (result == UNCANCELLABLE)) {\r\n/* 354:435 */ return false;\r\n/* 355: */ }\r\n/* 356:438 */ synchronized (this)\r\n/* 357: */ {\r\n/* 358:440 */ result = this.result;\r\n/* 359:441 */ if ((isDone0(result)) || (result == UNCANCELLABLE)) {\r\n/* 360:442 */ return false;\r\n/* 361: */ }\r\n/* 362:445 */ this.result = CANCELLATION_CAUSE_HOLDER;\r\n/* 363:446 */ if (hasWaiters()) {\r\n/* 364:447 */ notifyAll();\r\n/* 365: */ }\r\n/* 366: */ }\r\n/* 367:451 */ notifyListeners();\r\n/* 368:452 */ return true;\r\n/* 369: */ }", "protected abstract boolean isCancelEnabled();", "public boolean isInterruptOnCancel()\r\n\t{\r\n\t\treturn interruptOnCancel;\r\n\t}", "public static boolean isProcessCanceled() {\r\n return (m_bProcCanceled);\r\n }", "public boolean isCancelSupported();", "@Override\n public boolean isCancelled() {\n return false;\n }", "public boolean getIsCancelled() throws ServiceLocalException {\n\t\treturn this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.IsCancelled) != null;\n\t}", "public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}", "@Override\n\t\t\t\tpublic boolean onCancel() {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public abstract boolean cancelable();", "public boolean isInterrupted();", "public final boolean wasInterrupted() {\n Object obj = this.value;\n return (obj instanceof zzc) && ((zzc) obj).wasInterrupted;\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-06 12:50:58.290 -0400\", hash_original_method = \"5EC14A17195390EB5D2C4083E78D410E\", hash_generated_method = \"A5CD27BC92246F30166293B30E841E57\")\n \npublic boolean isCancelled() {\n return getInfo().getState() == PrintJobInfo.STATE_CANCELED;\n }", "public boolean isCancellable()\r\n/* 64: */ {\r\n/* 65:101 */ return this.result == null;\r\n/* 66: */ }", "public void onCancelled() {\n this.cancelled = true;\n }", "@Override\n public boolean cancel(boolean mayInterruptIfRunning) {\n callable.kill();\n\n return super.cancel(mayInterruptIfRunning);\n }", "private static boolean isCancelled0(Object result)\r\n/* 59: */ {\r\n/* 60: 96 */ return ((result instanceof CauseHolder)) && ((((CauseHolder)result).cause instanceof CancellationException));\r\n/* 61: */ }", "public boolean isAbortable();", "boolean toBeRemoved(){\n\t\tif(isCancelled() || getStatus() == 0){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean cancel(CancellableCommand command) {\n if (outstandingRequests.remove(command)) {\n command.onCancelled();\n return true;\n }\n return false;\n }", "public void cancel() {\r\n\t\tbStop = true;\r\n\t}", "public boolean isSetCancelTime() {\n return this.cancelTime != null;\n }", "public boolean CancelComputer()\n\t{\n\t\t//Click on Add a new Computer on Home Page to Navigate to Creation of Computer Page\n\t\tAddComputer.click();\n\t\t\n\t\t//Wait Time after each transaction\n\t\tWebDriverWait wait = new WebDriverWait(driver,2);\n\t\t\n\t\tboolean Cancelbutt = CancelButt.isEnabled();\n\t\treturn Cancelbutt;\n\t}", "@Override\n\t\t\tpublic void setCanceled(boolean value) {\n\t\t\t\t\n\t\t\t}", "public boolean orderCanceled() {\n\t\tordered = false;\n\t\tSystem.out.println(\"Ok your \" + name + \" order has been canceled.\");\n\t\treturn ordered;\n\t}", "public void cancel() {\r\n\t\tcanceled = true;\r\n\t\ttry {\r\n\t\t\tThread.sleep(51);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public boolean getCancelled(Booking b)\r\n {\r\n if(b == null)\r\n return false;\r\n \r\n return b.getCancelled();\r\n }", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "@Override\r\n public boolean canCancel(Document document) {\n return false;\r\n }", "public void setIsCancelled (boolean IsCancelled);", "public void setIsCancelled (boolean IsCancelled);", "public void cancel();", "public void cancel() {\n\t\tcancel(false);\n\t}", "void cancelTimeout() {\n timeoutCancelled = true;\n if (timeout != null) {\n timeout.cancel();\n }\n }", "@Override\n public void setCancelled(boolean cancel) { this.cancel = cancel;\n }", "public void setCancelled(boolean cancelled) {\n\t\tthis.cancelled = cancelled;\n\t}", "public void cancel()\n\t{\n\t}", "@Override\r\n\tpublic void setCanceled(boolean value) {\n\r\n\t}", "public boolean wasInterrupted() {\n int theMsg = 0;\n Object object = this.msgSync;\n synchronized (object) {\n theMsg = this.msg;\n }\n return theMsg == 2 || theMsg == 3;\n }", "public Boolean shouldAbandon() {\n return false;\n }", "@Override\n\tpublic void setCancelled(boolean cancelled) {\n\t\tthis.cancelled = cancelled;\n\t}", "@Override\n public boolean cancelIfCannotGoBack() {\n return true;\n }", "@Override\n\t\tpublic void setCanceled(boolean arg0) {\n\n\t\t}", "public void cancel() {\n\t}", "private void cancel() {\n mFuture.cancel(mMayInterruptIfRunning);\n }", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "public boolean cancelRequest(int statusId, String cancellationReason) {\n\n\t\treturn false;\n\t}", "@Override\n\tpublic void setCancelled(boolean cancel) {\n\t\tthis.cancelled = cancel;\n\t}", "public boolean isAborted() {\n return aborted;\n }", "public synchronized void cancel() {\n }", "public boolean isConnectionCancelled(BluetoothDevice device) {\n return this.cancelledDevices.contains(device);\n }", "public boolean setUncancellable()\r\n/* 372: */ {\r\n/* 373:457 */ Object result = this.result;\r\n/* 374:458 */ if (isDone0(result)) {\r\n/* 375:459 */ return !isCancelled0(result);\r\n/* 376: */ }\r\n/* 377:462 */ synchronized (this)\r\n/* 378: */ {\r\n/* 379:464 */ result = this.result;\r\n/* 380:465 */ if (isDone0(result)) {\r\n/* 381:466 */ return !isCancelled0(result);\r\n/* 382: */ }\r\n/* 383:469 */ this.result = UNCANCELLABLE;\r\n/* 384: */ }\r\n/* 385:471 */ return true;\r\n/* 386: */ }", "public boolean echoCancellationEnabled();", "@Override\n public void setCancelOp(boolean cancel) {\n cancelOp = cancel;\n }", "@Override\n public void setCancelOp(boolean cancel) {\n cancelOp = cancel;\n }", "@Override\n\tpublic boolean verificarCancelar() {\n\t\treturn true;\n\t}", "@Override\n\tprotected void cancelCallback() {\n\t\twasCancelled = true;\n\t\tclose();\n\t}", "public boolean cancelRequest(int id) {\n Future f = currentRequests.get(id);\n return (f != null) && f.cancel();\n }" ]
[ "0.8609123", "0.85175556", "0.85175556", "0.85175556", "0.84947157", "0.8460973", "0.84293246", "0.83150524", "0.8298942", "0.82900554", "0.8265233", "0.8259905", "0.80477834", "0.80452657", "0.8043671", "0.80380446", "0.7991359", "0.7924315", "0.7850848", "0.78483224", "0.78218573", "0.7778523", "0.7767434", "0.7710921", "0.7639918", "0.7600508", "0.75432086", "0.753967", "0.7447526", "0.7415035", "0.7376139", "0.7344829", "0.7335209", "0.7310921", "0.7242882", "0.72006166", "0.7199358", "0.7162814", "0.7127045", "0.7090141", "0.70572644", "0.70208305", "0.69685346", "0.69395405", "0.6872399", "0.6842927", "0.68374294", "0.67860943", "0.67670006", "0.6753805", "0.67384946", "0.67121124", "0.66987735", "0.6670427", "0.6588472", "0.6584543", "0.6580467", "0.65672886", "0.65581894", "0.6513159", "0.65052336", "0.65052336", "0.65052336", "0.65052336", "0.65052336", "0.65052336", "0.6504031", "0.64953566", "0.64953566", "0.6492065", "0.6481092", "0.647062", "0.64333767", "0.6429495", "0.6421181", "0.64140415", "0.64114344", "0.63930327", "0.63838774", "0.6379351", "0.6369917", "0.6367285", "0.6362989", "0.63604486", "0.63604486", "0.63604486", "0.63604486", "0.63604486", "0.6334406", "0.632601", "0.6323166", "0.6309204", "0.6305837", "0.6303767", "0.62875843", "0.6276104", "0.6276104", "0.6267065", "0.6260108", "0.6252653" ]
0.7489349
28
Instantiates a new Bft block header functions.
public BftBlockHeaderFunctions( final Function<BlockHeader, Hash> hashFunction, final BftExtraDataCodec bftExtraDataCodec) { this.hashFunction = hashFunction; this.bftExtraDataCodec = bftExtraDataCodec; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Block createBlock();", "DefineBlock createDefineBlock();", "Header createHeader();", "TestBlock createTestBlock();", "protected ASPBlock getBizWfBlock()\n {\n return headblk;\n }", "public static BlockHeaderFunctions forOnchainBlock(final BftExtraDataCodec bftExtraDataCodec) {\n return new BftBlockHeaderFunctions(\n h -> new BftBlockHashing(bftExtraDataCodec).calculateHashOfBftBlockOnchain(h),\n bftExtraDataCodec);\n }", "RclBlock createRclBlock();", "public void testConstructors()\n throws IOException\n {\n HeaderBlockWriter block = new HeaderBlockWriter();\n ByteArrayOutputStream output = new ByteArrayOutputStream(512);\n\n block.writeBlocks(output);\n byte[] copy = output.toByteArray();\n byte[] expected =\n {\n ( byte ) 0xD0, ( byte ) 0xCF, ( byte ) 0x11, ( byte ) 0xE0,\n ( byte ) 0xA1, ( byte ) 0xB1, ( byte ) 0x1A, ( byte ) 0xE1,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x3B, ( byte ) 0x00, ( byte ) 0x03, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0x09, ( byte ) 0x00,\n ( byte ) 0x06, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x10, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF\n };\n\n assertEquals(expected.length, copy.length);\n for (int j = 0; j < 512; j++)\n {\n assertEquals(\"testing byte \" + j, expected[ j ], copy[ j ]);\n }\n\n // verify we can read a 'good' HeaderBlockWriter (also test\n // getPropertyStart)\n block.setPropertyStart(0x87654321);\n output = new ByteArrayOutputStream(512);\n block.writeBlocks(output);\n assertEquals(0x87654321,\n new HeaderBlockReader(new ByteArrayInputStream(output\n .toByteArray())).getPropertyStart());\n }", "TestFirstBlock createTestFirstBlock();", "@Test\r\n\t\tpublic void testTableBlockTranslationAddsHeader() throws Exception {\r\n\t\t\t\r\n\t\t\tTemplateTableBlockDTO block = createTableBlock(null, null);\r\n\t\t\tString name = \"name4444\";\r\n\t\t\tString section = \"section4444\";\r\n\t\t\tString summary = \"summary4444\";\r\n\t\t\tblock.setName(name);\r\n\t\t\tblock.setSection(section);\r\n\t\t\tblock.setSummary(summary);\r\n\t\t\t\r\n\t\t\tString result = block.appendFreeMarkerFormat(new StringBuilder(), \r\n\t\t\t new HashSet<Integer>(), createServiceForBlock(block)).toString();\r\n\t\t\t\r\n\t\t\tassertTrue(\"Name is not in header\", result.contains(name));\r\n\t\t\tassertTrue(\"Section is not in header\", result.contains(section));\r\n\t\t\tassertTrue(\"Summary is not in header\", result.contains(summary));\r\n\t\t}", "public Block( ) {\r\n _offSetRow = 0;\r\n _offSetCol = 0;\r\n _noOfRows = 0;\r\n _noOfCols = 0;\r\n }", "public HeaderFragment() {}", "public BF() {\n\t\tsuper(\"Body Fat\", \"%\");\n\t}", "public Header() {\n\t\tsuper(tag(Header.class)); \n\t}", "BAnyBlock createBAnyBlock();", "private static MessageHeader createBreakHeader() {\n\n\t\tObject[] iov = new Object[1];\n\t\tiov[0] = JALP_BREAK_STR;\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\n\t\treturn mh;\n\t}", "public static BlockHeaderFunctions forCommittedSeal(final BftExtraDataCodec bftExtraDataCodec) {\n return new BftBlockHeaderFunctions(\n h -> new BftBlockHashing(bftExtraDataCodec).calculateDataHashForCommittedSeal(h),\n bftExtraDataCodec);\n }", "Block create(int xpos, int ypos);", "public CommentHeader(BaseBlock bb, byte[] commentHeader) {\r\n super(bb);\r\n\r\n int pos = 0;\r\n// unpSize = Raw.readShortLittleEndian(commentHeader, pos);\r\n pos += 2;\r\n unpVersion |= commentHeader[pos] & 0xff;\r\n pos++;\r\n\r\n unpMethod |= commentHeader[pos] & 0xff;\r\n pos++;\r\n// commCRC = Raw.readShortLittleEndian(commentHeader, pos);\r\n\r\n }", "BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries, int expectedBytesPerEntry);", "public StateHeader() { // for externalization\r\n }", "public Block() {\n this((byte) 0, (byte) 0);\n }", "public Block() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tthis.point_BlockTopRight = null;\r\n\t\tthis.point_BlockDownleft = null;\r\n\t\tthis.setpoint_BlockTopLeft(null);\r\n\t\tthis.IDBloack = 0;\r\n\t\tthis.type = \"\";\r\n\t}", "BlockchainFactory getBlockchainFactory();", "private HeaderUtil() {}", "BlockChainLink getLinkBlockHeader(byte[] hash);", "public Block(Block bl) {\r\n\t\tthis.type = bl.type;\r\n\t\tthis.point_BlockTopRight = new Point3D(bl.point_BlockTopRight);\r\n\t\tthis.point_BlockDownleft = new Point3D(bl.point_BlockDownleft);\r\n\t\tthis.setpoint_BlockTopLeft(new Point3D(bl.getpoint_BlockTopRight().y(),bl.getpoint_BlockDownleft().x()));\r\n\t\tthis.setPoint_BlockDownRight(new Point3D(bl.getpoint_BlockDownleft().y(),bl.getpoint_BlockTopRight().x()));\r\n\t\tthis.IDBloack = bl.IDBloack;\r\n\r\n\t}", "BranchingBlock createBranchingBlock();", "BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries);", "private static Text createHeader() {\n StringBuilder stringBuilder = new StringBuilder();\n //noinspection HardCodedStringLiteral\n stringBuilder.append(\"Offset \");\n for (int i = 0; i < 16; i++) {\n stringBuilder.append(\" 0\");\n stringBuilder.append(Integer.toHexString(i));\n }\n stringBuilder.append(System.lineSeparator()).append(System.lineSeparator());\n Text result = new Text(stringBuilder.toString());\n //noinspection HardCodedStringLiteral\n result.getStyleClass().add(\"normal\");\n return result;\n }", "public static Block createBlock(String edfRecord, String data) throws UnsupportedEncodingException {\r\n\t\tString[] values = edfRecord.split(\",\");\r\n\t\tTemporalProperties temporalProperties = new TemporalProperties(reformatDatetime(values[7]));\r\n\t\tSpatialProperties spatialProperties = new SpatialProperties(parseFloat(values[24]), parseFloat(values[25]));\r\n\t\tFeatureSet features = new FeatureSet();\r\n\t\tfeatures.put(new Feature(\"platform_id\", values[0]));\t\t\r\n\t\tfeatures.put(new Feature(\"date\", values[1]));\r\n\t\tfeatures.put(new Feature(\"time\", values[2]));\r\n\t\tfeatures.put(new Feature(\"datetime\", values[3]));\r\n\t\tfeatures.put(new Feature(\"frac_days_since_jan1\", parseFloat(values[4])));\r\n\t\tfeatures.put(new Feature(\"frac_hrs_since_jan1\", parseFloat(values[5])));\r\n\t\tfeatures.put(new Feature(\"julian_days\", parseFloat(values[6])));\r\n\t\tfeatures.put(new Feature(\"epoch_time\", reformatDatetime(values[7])));\r\n\t\tfeatures.put(new Feature(\"alarm_status\", parseFloat(values[8])));\r\n\t\tfeatures.put(new Feature(\"inst_status\", parseFloat(values[9])));\r\n\t\tfeatures.put(new Feature(\"cavity_pressure\", parseFloat(values[10])));\r\n\t\tfeatures.put(new Feature(\"cavity_temp\", parseFloat(values[11])));\r\n\t\tfeatures.put(new Feature(\"das_temp\", parseFloat(values[12])));\r\n\t\tfeatures.put(new Feature(\"etalon_temp\", parseFloat(values[13])));\r\n\t\tfeatures.put(new Feature(\"warm_box_temp\", parseFloat(values[14])));\r\n\t\tfeatures.put(new Feature(\"species\", parseFloat(values[15])));\r\n\t\tfeatures.put(new Feature(\"mvp_position\", parseFloat(values[16])));\r\n\t\tfeatures.put(new Feature(\"outlet_valve\", parseFloat(values[17])));\r\n\t\tfeatures.put(new Feature(\"solenoid_valves\", parseFloat(values[18])));\r\n\t\tfeatures.put(new Feature(\"co2\", parseFloat(values[19])));\r\n\t\tfeatures.put(new Feature(\"co2_dry\", parseFloat(values[20])));\r\n\t\tfeatures.put(new Feature(\"ch4\", parseFloat(values[21])));\r\n\t\tfeatures.put(new Feature(\"ch4_dry\", parseFloat(values[22])));\r\n\t\tfeatures.put(new Feature(\"h2o\", parseFloat(values[23])));\r\n\t\tfeatures.put(new Feature(\"gps_abs_lat\", parseFloat(values[24])));\r\n\t\tfeatures.put(new Feature(\"gps_abs_lon\", parseFloat(values[25])));\r\n\t\tfeatures.put(new Feature(\"gps_fit\", parseFloat(values[26])));\r\n\t\tfeatures.put(new Feature(\"gps_time\", parseFloat(values[27])));\r\n\t\tfeatures.put(new Feature(\"ws_wind_lon\", parseFloat(values[28])));\r\n\t\tfeatures.put(new Feature(\"ws_wind_lat\", parseFloat(values[29])));\r\n\t\tfeatures.put(new Feature(\"ws_cos_heading\", parseFloat(values[30])));\r\n\t\tfeatures.put(new Feature(\"ws_sin_heading\", parseFloat(values[31])));\r\n\t\tfeatures.put(new Feature(\"wind_n\", parseFloat(values[32])));\r\n\t\tfeatures.put(new Feature(\"wind_e\", parseFloat(values[33])));\r\n\t\tfeatures.put(new Feature(\"wind_dir_sdev\", parseFloat(values[34])));\r\n\t\tfeatures.put(new Feature(\"ws_rotation\", parseFloat(values[35])));\r\n\t\tfeatures.put(new Feature(\"car_speed\", parseFloat(values[36])));\r\n\t\tfeatures.put(new Feature(\"postal_code\", values[37]));\r\n\t\tfeatures.put(new Feature(\"locality\", values[38]));\r\n\t\tfeatures.put(new Feature(\"s2_30_int\", parseLong(values[39])));\r\n\t\t\t\r\n\t\tMetadata metadata = new Metadata();\r\n\t\tmetadata.setName(GeoHash.encode(parseFloat(values[24]), parseFloat(values[25]), 7));\r\n\t\tmetadata.setTemporalProperties(temporalProperties);\r\n\t\tmetadata.setsIndex(new SearchIndex(\"24\",\"25\",\"7\"));\r\n\t\tmetadata.setSpatialProperties(spatialProperties);\r\n\t\tmetadata.setSpatialHint(new SpatialHint(\"gps_abs_lat\", \"gps_abs_lon\"));\r\n\t\tmetadata.setAttributes(features);\r\n\t\t\r\n\t\treturn new Block(\"airview\", metadata, data.getBytes(\"UTF-8\"));\r\n\t}", "public Block instance(int paramInt)\r\n/* 194: */ {\r\n/* 195:225 */ return instance().setData(a, bds.b(paramInt)).setData(b, (paramInt & 0x8) > 0 ? bdu.b : bdu.a);\r\n/* 196: */ }", "public Block(){\n\t\tthis.type = Code.Type.NULL;\n\t}", "public HeaderDescriptor() \n {\n super();\n xmlName = \"header\";\n elementDefinition = true;\n \n //-- set grouping compositor\n setCompositorAsSequence();\n org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;\n org.exolab.castor.mapping.FieldHandler handler = null;\n org.exolab.castor.xml.FieldValidator fieldValidator = null;\n //-- initialize attribute descriptors\n \n //-- initialize element descriptors\n \n //-- _transactionId\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(long.class, \"_transactionId\", \"transaction-id\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n if(!target.hasTransactionId())\n return null;\n return new java.lang.Long(target.getTransactionId());\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n // ignore null values for non optional primitives\n if (value == null) return;\n \n target.setTransactionId( ((java.lang.Long)value).longValue());\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _transactionId\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n LongValidator typeValidator = new LongValidator();\n typeValidator .setMinInclusive(-1L);\n typeValidator .setMaxInclusive(4294967295L);\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n //-- _opName\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, \"_opName\", \"op-name\", org.exolab.castor.xml.NodeType.Element);\n desc.setImmutable(true);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getOpName();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setOpName( (java.lang.String) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _opName\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n StringValidator typeValidator = new StringValidator();\n typeValidator.setWhiteSpace(\"preserve\");\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n //-- _opType\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.opengate.webservice.xml.types.OpTypeType.class, \"_opType\", \"op-type\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getOpType();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setOpType( (com.opengate.webservice.xml.types.OpTypeType) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n handler = new org.exolab.castor.xml.handlers.EnumFieldHandler(com.opengate.webservice.xml.types.OpTypeType.class, handler);\n desc.setImmutable(true);\n desc.setHandler(handler);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _opType\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _identifier\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, \"_identifier\", \"identifier\", org.exolab.castor.xml.NodeType.Element);\n desc.setImmutable(true);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getIdentifier();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setIdentifier( (java.lang.String) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _identifier\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n StringValidator typeValidator = new StringValidator();\n typeValidator.setWhiteSpace(\"preserve\");\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n //-- _connectorType\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.opengate.webservice.xml.types.ConnectorTypeType.class, \"_connectorType\", \"connector-type\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getConnectorType();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setConnectorType( (com.opengate.webservice.xml.types.ConnectorTypeType) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n handler = new org.exolab.castor.xml.handlers.EnumFieldHandler(com.opengate.webservice.xml.types.ConnectorTypeType.class, handler);\n desc.setImmutable(true);\n desc.setHandler(handler);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _connectorType\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _timestamp\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.util.Date.class, \"_timestamp\", \"timestamp\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getTimestamp();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setTimestamp( (java.util.Date) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return new java.util.Date();\n }\n };\n handler = new org.exolab.castor.xml.handlers.DateFieldHandler(handler);\n desc.setImmutable(true);\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _timestamp\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _notification\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.opengate.webservice.xml.Notification.class, \"_notification\", \"notification\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getNotification();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setNotification( (com.opengate.webservice.xml.Notification) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return new com.opengate.webservice.xml.Notification();\n }\n };\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _notification\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _ttl\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, \"_ttl\", \"ttl\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n if(!target.hasTtl())\n return null;\n return new java.lang.Integer(target.getTtl());\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n // if null, use delete method for optional primitives \n if (value == null) {\n target.deleteTtl();\n return;\n }\n target.setTtl( ((java.lang.Integer)value).intValue());\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n desc.setHandler(handler);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _ttl\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n IntegerValidator typeValidator= new IntegerValidator();\n typeValidator.setMinInclusive(-1);\n typeValidator.setMaxInclusive(2147483647);\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n }", "BlockConstant createBlockConstant();", "JStaticBlock(int line, JBlock body) {\r\n\t\tsuper(line);\r\n\t\tthis.block = body;\r\n\t}", "public EQBlowfish()\n\t{\n\t\tm_bfc = new EQBlowfishCBC(defaultKey, 0, defaultKey.length, 0);\n\t}", "public Block createBlock(Position pos, List<Stmt> stmts) {\n return xnf.Block(pos, stmts);\n }", "private NetFlowHeader prepareHeader() throws IOException {\n NetFlowHeader internalHeader;\n int numBytesRead = 0;\n int lenRead = 0;\n WrappedByteBuf buf;\n byte[] headerArray;\n\n // Read header depending on stream version (different from flow version)\n if (streamVersion == 1) {\n // Version 1 has static header\n // TODO: verify header size for stream version 1\n lenRead = NetFlowHeader.S1_HEADER_SIZE - METADATA_LENGTH;\n internalHeader = new NetFlowHeader(streamVersion, byteOrder);\n } else {\n // Version 3 with dynamic header size\n headerArray = new byte[HEADER_OFFSET_LENGTH];\n numBytesRead = in.read(headerArray, 0, HEADER_OFFSET_LENGTH);\n if (numBytesRead != HEADER_OFFSET_LENGTH) {\n throw new UnsupportedOperationException(\"Short read while loading header offset\");\n }\n\n buf = WrappedByteBuf.init(headerArray, byteOrder);\n int headerSize = (int)buf.getUnsignedInt(0);\n if (headerSize <= 0) {\n throw new UnsupportedOperationException(\"Failed to load header of size \" + headerSize);\n }\n\n // Actual header length, determine how many bytes to read\n lenRead = headerSize - METADATA_LENGTH - HEADER_OFFSET_LENGTH;\n internalHeader = new NetFlowHeader(streamVersion, byteOrder, headerSize);\n }\n\n // allocate buffer for length to read\n headerArray = new byte[lenRead];\n numBytesRead = in.read(headerArray, 0, lenRead);\n if (numBytesRead != lenRead) {\n throw new UnsupportedOperationException(\"Short read while loading header data\");\n }\n // build buffer\n buf = WrappedByteBuf.init(headerArray, byteOrder);\n\n // resolve stream version (either 1 or 3)\n if (streamVersion == 1) {\n internalHeader.setFlowVersion((short)buf.getUnsignedShort(0));\n internalHeader.setStartCapture(buf.getUnsignedInt(2));\n internalHeader.setEndCapture(buf.getUnsignedInt(6));\n internalHeader.setHeaderFlags(buf.getUnsignedInt(10));\n internalHeader.setRotation(buf.getUnsignedInt(14));\n internalHeader.setNumFlows(buf.getUnsignedInt(18));\n internalHeader.setNumDropped(buf.getUnsignedInt(22));\n internalHeader.setNumMisordered(buf.getUnsignedInt(26));\n // Read hostname fixed bytes\n byte[] hostnameBytes = new byte[NetFlowHeader.S1_HEADER_HN_LEN];\n buf.getBytes(30, hostnameBytes, 0, hostnameBytes.length);\n internalHeader.setHostname(new String(hostnameBytes));\n // Read comments fixed bytes\n byte[] commentsBytes = new byte[NetFlowHeader.S1_HEADER_CMNT_LEN];\n buf.getBytes(30 + hostnameBytes.length, commentsBytes, 0, commentsBytes.length);\n internalHeader.setComments(new String(commentsBytes));\n\n // Dereference arrays\n hostnameBytes = null;\n commentsBytes = null;\n } else {\n // Resolve TLV (type-length value)\n // Set decode pointer to first tlv\n int dp = 0;\n int left = lenRead;\n // Smallest TLV is 2+2+0 (null TLV)\n // tlv_t - TLV type, tlv_l - TLV length, tlv_v - TLV value\n int tlv_t = 0;\n int tlv_l = 0;\n int tlv_v = 0;\n\n // Byte array for holding Strings\n byte[] pr;\n\n while (left >= 4) {\n // Parse type, store in host byte order\n tlv_t = buf.getUnsignedShort(dp);\n dp += 2;\n left -= 2;\n\n // Parse len, store in host byte order\n tlv_l = buf.getUnsignedShort(dp);\n dp += 2;\n left -= 2;\n\n // Parse val\n tlv_v = dp;\n\n // Point decode buffer at next tlv\n dp += tlv_l;\n left -= tlv_l;\n\n // TLV length check\n if (left < 0) {\n break;\n }\n\n switch(tlv_t) {\n // FT_TLV_VENDOR\n case 0x1:\n internalHeader.setVendor(buf.getUnsignedShort(tlv_v));\n break;\n // FT_TLV_EX_VER\n case 0x2:\n internalHeader.setFlowVersion((short) buf.getUnsignedShort(tlv_v));\n break;\n // FT_TLV_AGG_VER\n case 0x3:\n internalHeader.setAggVersion(buf.getUnsignedByte(tlv_v));\n break;\n // FT_TLV_AGG_METHOD\n case 0x4:\n internalHeader.setAggMethod(buf.getUnsignedByte(tlv_v));\n break;\n // FT_TLV_EXPORTER_IP\n case 0x5:\n internalHeader.setExporterIP(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_CAP_START\n case 0x6:\n internalHeader.setStartCapture(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_CAP_END\n case 0x7:\n internalHeader.setEndCapture(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_HEADER_FLAGS\n case 0x8:\n internalHeader.setHeaderFlags(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_ROT_SCHEDULE\n case 0x9:\n internalHeader.setRotation(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_FLOW_COUNT\n case 0xA:\n internalHeader.setNumFlows(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_FLOW_LOST\n case 0xB:\n internalHeader.setNumDropped(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_FLOW_MISORDERED\n case 0xC:\n internalHeader.setNumMisordered(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_PKT_CORRUPT\n case 0xD:\n internalHeader.setNumCorrupt(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_SEQ_RESET\n case 0xE:\n internalHeader.setSeqReset(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_CAP_HOSTNAME\n case 0xF:\n pr = new byte[tlv_l];\n buf.getBytes(tlv_v, pr, 0, pr.length);\n // Expected null-terminated string\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n\n internalHeader.setHostname(new String(pr, 0, pr.length - 1));\n break;\n // FT_TLV_COMMENTS\n case 0x10:\n pr = new byte[tlv_l];\n buf.getBytes(tlv_v, pr, 0, pr.length);\n // Expected null-terminated string\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n internalHeader.setComments(new String(pr, 0, pr.length - 1));\n break;\n // FT_TLV_IF_NAME\n case 0x11:\n // uint32_t, uint16_t, string:\n // - IP address of device\n // - ifIndex of interface\n // - interface name\n long ip = buf.getUnsignedInt(tlv_v);\n int ifIndex = buf.getUnsignedShort(tlv_v + 4);\n pr = new byte[tlv_l - 4 - 2];\n buf.getBytes(tlv_v + 4 + 2, pr, 0, pr.length);\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n internalHeader.setInterfaceName(ip, ifIndex, new String(pr, 0, pr.length - 1));\n break;\n // FT_TLV_IF_ALIAS\n case 0x12:\n // uint32_t, uint16_t, uint16_t, string:\n // - IP address of device\n // - ifIndex count\n // - ifIndex of interface (count times)\n // - alias name\n long aliasIP = buf.getUnsignedInt(tlv_v);\n int aliasIfIndexCnt = buf.getUnsignedShort(tlv_v + 4);\n int aliasIfIndex = buf.getUnsignedShort(tlv_v + 4 + 2);\n pr = new byte[tlv_l - 4 - 2 - 2];\n buf.getBytes(tlv_v + 4 + 2 + 2, pr, 0, pr.length);\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n\n internalHeader.setInterfaceAlias(aliasIP, aliasIfIndexCnt, aliasIfIndex,\n new String(pr, 0, pr.length - 1));\n break;\n // Case 0x0\n default:\n break;\n }\n }\n buf = null;\n pr = null;\n }\n return internalHeader;\n }", "public FrameBodyTBPM() {\r\n super();\r\n }", "public static HeaderFragment newHeader(String headerText) {\n // Instantiating basic object\n HeaderFragment fragment = new HeaderFragment();\n Bundle args = new Bundle();\n // Adding inputted headerText value into object\n args.putString(HEADER_TEXT_CODE, headerText);\n fragment.setArguments(args);\n\n // Passing fragment back out\n return fragment;\n }", "public interface CFBConstants\n{\n /** Most files use 512 bytes as their big block size */\n public static final int SMALLER_BIG_BLOCK_SIZE = 0x0200;\n public static final BlockSize SMALLER_BIG_BLOCK_SIZE_DETAILS = new BlockSize(SMALLER_BIG_BLOCK_SIZE, (short)9);\n /** Some use 4096 bytes */\n public static final int LARGER_BIG_BLOCK_SIZE = 0x1000;\n public static final BlockSize LARGER_BIG_BLOCK_SIZE_DETAILS = new BlockSize(LARGER_BIG_BLOCK_SIZE, (short)12);\n\n /** How big a block in the small block stream is. Fixed size */\n public static final int SMALL_BLOCK_SIZE = 0x0040;\n\n /** How big a single property is */\n public static final int PROPERTY_SIZE = 0x0080;\n /** \n * The minimum size of a document before it's stored using \n * Big Blocks (normal streams). Smaller documents go in the \n * Mini Stream (SBAT / Small Blocks)\n */\n public static final int BIG_BLOCK_MINIMUM_DOCUMENT_SIZE = 0x1000;\n\n /** The highest sector number you're allowed, 0xFFFFFFFA */\n public static final int LARGEST_REGULAR_SECTOR_NUMBER = -5;\n\n /** Indicates the sector holds a DIFAT block (0xFFFFFFFC) */\n public static final int DIFAT_SECTOR_BLOCK = -4;\n /** Indicates the sector holds a FAT block (0xFFFFFFFD) */\n public static final int FAT_SECTOR_BLOCK = -3;\n /** Indicates the sector is the end of a chain (0xFFFFFFFE) */\n public static final int END_OF_CHAIN = -2;\n /** Indicates the sector is not used (0xFFFFFFFF) */\n public static final int UNUSED_BLOCK = -1;\n}", "protected Block(int id, String hr_ident){\n super(id,hr_ident);\n\n //set some standards\n this.visible = true;\n this.solid = true;\n }", "public DataBlock() {\n headerPointer = 0;\n datasPointer = size - 1;\n serialize = new byte[size];\n }", "public BlockIF newBlock(String label, SourceIF text) {\n\t\tif (text == null)\n\t\t\tthrow new NullPointerException(\"The argument text cannot be null\");\n\t\treturn new Block(label, text);\n\t}", "Tetrisblock2()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }", "@Override\n\tpublic void setupHeaderKeyFields(EquationStandardTransaction transaction)\n\t{\n\n\t}", "public PacketHeader(byte buffer[])\n\t\t{\n\t\t\n\t\t}", "private static MessageHeader createHeader(ConnectionHeader connectionHeader, File file) {\n\n\t\tObject[] iov = new Object[4];\n\t\tiov[0] = connectionHeader.getProtocolVersion();\n\t\tiov[1]= connectionHeader.getMessageType();\n\t\tiov[2] = connectionHeader.getDataLen();\n\t\tiov[3] = connectionHeader.getMetaLen();\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\t\tif(file != null) {\n\t\t\tmh.setFilePath(file.getAbsolutePath());\n\t\t}\n\n\t\treturn mh;\n\t}", "public void testSetSBATStart()\n throws IOException\n {\n HeaderBlockWriter block = new HeaderBlockWriter();\n\n block.setSBATStart(0x01234567);\n ByteArrayOutputStream output = new ByteArrayOutputStream(512);\n\n block.writeBlocks(output);\n byte[] copy = output.toByteArray();\n byte[] expected =\n {\n ( byte ) 0xD0, ( byte ) 0xCF, ( byte ) 0x11, ( byte ) 0xE0,\n ( byte ) 0xA1, ( byte ) 0xB1, ( byte ) 0x1A, ( byte ) 0xE1,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x3B, ( byte ) 0x00, ( byte ) 0x03, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0x09, ( byte ) 0x00,\n ( byte ) 0x06, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x10, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x67, ( byte ) 0x45, ( byte ) 0x23, ( byte ) 0x01,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF\n };\n\n assertEquals(expected.length, copy.length);\n for (int j = 0; j < 512; j++)\n {\n assertEquals(\"testing byte \" + j, expected[ j ], copy[ j ]);\n }\n }", "private NetworkHeader(List<String> fields) {\r\n lineData = makeDataMap(fields);\r\n HeaderMaps headerMap = getHeaderMap(1);\r\n for (String header : lineData.keySet()) {\r\n String name = headerMap.headerName(header);\r\n if (mainHeaders.contains(header)) {\r\n mainKeys.put(header, name);\r\n if (name.toLowerCase().startsWith(\"wert\", 2) && (header.startsWith(\"lat\") || header.startsWith(\"lon\"))) {\r\n crsHint = \"germany\";\r\n }\r\n } else if (channelPattern.matcher(name).matches()) {\r\n channelMap.put(header, 0);\r\n sectorData.add(header);\r\n } else {\r\n sectorData.add(header);\r\n }\r\n }\r\n is3G = headerMap.headers.keySet().contains(\"gsm_ne\");\r\n }", "public GmsHeader(byte type, Address mbr) {\n this.type=type;\n this.mbr=mbr;\n }", "TeststepBlock createTeststepBlock();", "ClassBcft initClassBcft(ClassBcft iClassBcft)\n {\n iClassBcft.updateElementValue(\"ClassBcft\");\n return iClassBcft;\n }", "Tetrisblock()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }", "Block getHiveBlock();", "private void setBlocks() {\n // load the class\n ClassLoader cl = ClassLoader.getSystemClassLoader();\n // create an InputStream object\n InputStream inputStream = cl.getResourceAsStream(this.map.get(\"block_definitions\"));\n // initialize this factory with a factory\n this.factory = BlocksDefinitionReader.fromReader(new InputStreamReader(inputStream));\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public MedicineHeadlineFragment() {\n\n }", "CommunityProfileEventHeader()\n {\n /*\n * Nothing to do.\n */\n }", "TH createTH();", "private void createBlock() {\n\t\tblock = new Block(mouseX, mouseY, 25, 25);\r\n\t\tblock.addObserver(this);\r\n\t\tblock.start();\r\n\t\t// System.out.println(\"Block created (at Model.createBlock)\");\r\n\t}", "StatementBlock createStatementBlock();", "public TarHeader(byte buff[]) throws IOException {\r\n this.header = buff;\r\n initlializeHeaderFields();\r\n }", "TestLastBlock createTestLastBlock();", "phaseI.Hdfs.BlockLocations getNewBlock();", "BElementStructure createBElementStructure();", "public Block(){\r\n\t\tthis.altitude = 0;\r\n\t\tthis.river = false;\t\r\n\t\tthis.ocean = false;\r\n\t\tthis.river = false;\r\n\t\tborder = false;\r\n\t}", "public Heading() {\n\t\tthis(MIN);\n\t}", "private static void registerBlock(Block b)\n\t{\n\t}", "private HSBC() {\n\t\t\n\t\t\n\t}", "private static MessageHeader createDataHeader(byte[] bufferBytes, int length) {\n\n\t\tObject[] iov = new Object[1];\n\n\t\tif (length != BUFFER_SIZE) {\n\t\t\tbyte[] lastBuffer = new byte[length];\n\t\t\tSystem.arraycopy(bufferBytes, 0, lastBuffer, 0, length);\n\t\t\tbufferBytes = lastBuffer;\n\t\t}\n\t\tiov[0] = bufferBytes;\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\n\t\treturn mh;\n\t}", "public static DeformableMesh3D createTestBlock(){\n return createTestBlock(2, 2, 2);\n }", "public abstract Builder headers(String... paramVarArgs);", "public SignatureConfirmationHeaderBlock(String wsuId, String signatureValue) {\n this.wsuId = wsuId;\n this.signatureValue = signatureValue;\n }", "@objid (\"617db24b-55b6-11e2-877f-002564c97630\")\n public GmBpmnNodeHeader() {\n // empty constructor for the serialization\n }", "BTable createBTable();", "public CDFHeader createDefaultCDFFileHeader(double mvaBase) {\n String header = \" 99/99/99 LANL 100.0 9999 W 1 \";\n CDFHeader cHeader = new CDFHeader(header);\n cHeader.setMVABase(mvaBase);\n return cHeader;\n\t}", "public DetailsFileHeaderTemplate() {\n\t\tsuper(ID_HEADER_LABEL, DESCRIPTION_HEADER_LABEL, OCCURRENCES_HEADER_LABEL);\n\t}", "public Block() {\n this.xPos = 0;\n this.yPos = 0;\n this.width = 0;\n this.height = 0;\n this.color = Color.MINTCREAM;\n }", "public Block( int noOfRows, int noOfCols ) {\r\n _offSetRow = 0;\r\n _offSetCol = 0;\r\n _noOfRows = noOfRows;\r\n _noOfCols = noOfCols;\r\n }", "public FileBlock(Source source, int blockIndex, long start, long end) {\n this.source = source;\n this.start = start;\n this.end = end;\n this.blockIndex = blockIndex;\n }", "public Header( String headerCode) {\n\t\tsuper(tag(Header.class), headerCode); \n\t}", "private static UINode _createGlobalHeaders()\n {\n MarlinBean globalHeaders = new MarlinBean(FLOW_LAYOUT_NAME);\n\n //\n // add the client header\n //\n globalHeaders.addIndexedChild(\n ContextPoppingUINode.getUINode(NAVIGATION2_CHILD));\n\n //\n // create and add the default header\n //\n MarlinBean defaultHeader = new MarlinBean(GLOBAL_HEADER_NAME);\n\n defaultHeader.setAttributeValue(\n RENDERED_ATTR,\n new NotBoundValue(\n PdaHtmlLafUtils.createIsRenderedBoundValue(NAVIGATION2_CHILD)));\n\n globalHeaders.addIndexedChild(defaultHeader);\n\n return globalHeaders;\n }", "public Block createBlock(Position pos, Term... terms) {\n return createBlock(pos, convertToStmtList(terms));\n }", "phaseI.Hdfs.BlockLocationsOrBuilder getNewBlockOrBuilder();", "private static MessageHeader createMetaHeader(byte[] meta) {\n\t\tObject[] iov;\n\t\tif(meta != null) {\n\t\t\tiov = new Object[2];\n\t\t\tiov[0] = meta;\n\t\t\tiov[1] = JALP_BREAK_STR;\n\t\t} else {\n\t\t\tiov = new Object[1];\n\t\t\tiov[0] = JALP_BREAK_STR;\n\t\t}\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\n\t\treturn mh;\n\t}", "EthHandler create(EthVersion version);", "public static PlsqlBlockFactory getBlockFactory(DataObject obj) {\n return ((Lookup.Provider) obj).getLookup().lookup(PlsqlBlockFactory.class);\n }", "protected byte[] createHeader(AC35StreamMessage type, int sourceId) {\n byte[] header = super.createHeader(type);\n addFieldToByteArray(header, HEADER_SOURCE_ID, sourceId);\n return header;\n }", "private void initialise() {\n addHeaderSetting(new HeaderSettingInteger(Setting.VERSION.toString(),0,4,0x6));\n addHeaderSetting(new HeaderSettingInteger(Setting.TRAFFIC_CLASS.toString(),4,8,0));\n addHeaderSetting(new HeaderSettingLong(Setting.FLOW_LABEL.toString(),12,20,0));\n addHeaderSetting(new HeaderSettingLong(Setting.PAYLOAD_LENGTH.toString(),32,16,20));\n addHeaderSetting(new HeaderSettingInteger(Setting.NEXT_HEADER.toString(),48,8,253));\n addHeaderSetting(new HeaderSettingInteger(Setting.HOP_LIMIT.toString(),56,8,255));\n addHeaderSetting(new HeaderSettingHexString(Setting.SOURCE_ADDRESS.toString(),64,128,\"\"));\n addHeaderSetting(new HeaderSettingHexString(Setting.DESTINATION_ADDRESS.toString(),192,128,\"\"));\n }", "protected Block(short id) {\n this(id, (byte) 0);\n }", "@Override\n\tprotected void buildBlockClass(String uvmBlockClassName, Boolean hasCallback) {\n\t\t// create text name and description if null\n\t\tString id = regSetProperties.getId();\n\t\tString refId = regSetProperties.getBaseName(); // ref used for block structure lookup\n\t\t\n\t\tString textName = regSetProperties.getTextName();\n\t\tif (textName == null) textName = \"Block \" + id;\n\n\t\t// generate register header \n\t\toutputList.add(new OutputLine(indentLvl, \"\"));\t\n\t\toutputList.add(new OutputLine(indentLvl, \"// \" + textName));\n\t\toutputList.add(new OutputLine(indentLvl++, \"class \" + uvmBlockClassName + \"#(type ALTPBLOCK_T = \" + altModelRootType + \", type ALTBLOCK_T = \" + altModelRootType + \") extends uvm_block_translate;\")); \n\n\t\t// create field definitions \n\t\tbuildBlockDefines(refId);\n\t\t\n\t\t// create new function\n\t\t//buildBlockNewDefine(uvmBlockClassName); \n\t\t\n\t\t// create build function \n\t\tbuildBlockBuildFunction(refId);\n\t\t\n\t\t// get_alt_block - return alternate model regset struct corresponding to this block\n\t\tString escRegSetId = escapeReservedString(regSetProperties.getId());\n\t\tSystemVerilogFunction func = new SystemVerilogFunction(\"ALTBLOCK_T\", \"get_alt_block\"); \n\t\tif (regSetProperties.isRootInstance())\n\t\t\t func.addStatement(\"return \" + escRegSetId + \";\");\n\t\telse {\n\t\t\tfunc.addStatement(\"ALTPBLOCK_T alt_parent = m_parent.get_alt_block();\");\n\t\t\tif (regSetProperties.isReplicated())\n\t\t\t func.addStatement(\"return alt_parent.\" + escRegSetId + \"[m_rep];\");\n\t\t\telse \n\t\t\t func.addStatement(\"return alt_parent.\" + escRegSetId + \";\"); \n\t\t}\n\t\toutputList.addAll(func.genOutputLines(indentLvl));\t\n\t\t\n\t\t// close out the class definition\n\t\toutputList.add(new OutputLine(indentLvl, \"\"));\t\n\t\t//outputList.add(new OutputLine(indentLvl, \"`uvm_object_utils(\" + uvmBlockClassName + \")\")); \n\t\toutputList.add(new OutputLine(--indentLvl, \"endclass : \" + uvmBlockClassName));\n\t}", "public static void init() {\n Handler.log(Level.INFO, \"Loading Blocks\");\n\n oreAluminum = new BaseOre(Config.oreAluminumID).setUnlocalizedName(Archive.oreAluminum)\n .setHardness(3.0F).setResistance(5.0F);\n\n blockGrinder = new BaseContainerBlock(Config.blockGrinderID, Archive.grinderGUID)\n .setUnlocalizedName(Archive.blockGrinder);\n\n blockOven = new BaseContainerBlock(Config.blockOvenID, Archive.ovenGUID)\n .setUnlocalizedName(Archive.blockOven);\n }", "public String getBlockStart () {\n return BLOCK_START_PREFIX + objectName + BLOCK_START_SUFFIX;\n }", "DirectionBlock createDirectionBlock();", "@SuppressWarnings(\"unchecked\")\n public TCS header() {\n alignment(CENTER);\n alignment(VERTICAL_CENTER);\n wrapText();\n defaultEdging();\n addFont().heightInPoints((short) 10).color(IndexedColors.BLACK)\n .boldweight(Boldweight.BOLD).configureFont();\n\n return (TCS) this;\n }", "public BVHashtable()\n {\n super();\n }", "public Block( int offSetRow, int offSetCol, int noOfRows, int noOfCols ) {\r\n _offSetRow = offSetRow;\r\n _offSetCol = offSetCol;\r\n _noOfRows = noOfRows;\r\n _noOfCols = noOfCols;\r\n }", "protected static Block createEmptyBlock(AST ast) {\n\t\treturn ast.newBlock();\n\t}", "public Billfold()\n {\n \n }" ]
[ "0.65663564", "0.631982", "0.62820315", "0.61979115", "0.6160125", "0.61162406", "0.61099845", "0.60280263", "0.6025257", "0.596676", "0.59601617", "0.59436405", "0.59272784", "0.5907515", "0.5907441", "0.58635014", "0.58206064", "0.5762304", "0.5757286", "0.57310665", "0.5725934", "0.572404", "0.5713553", "0.56865823", "0.568413", "0.56104654", "0.55993694", "0.55913657", "0.55869484", "0.5575932", "0.5575359", "0.5571567", "0.55697834", "0.5517605", "0.55031806", "0.5502434", "0.5497672", "0.5477515", "0.54763573", "0.5456127", "0.5450828", "0.54404175", "0.5432401", "0.5426258", "0.54260534", "0.542604", "0.542545", "0.5420419", "0.5417335", "0.54139596", "0.5413194", "0.54127026", "0.53957707", "0.5390465", "0.53826594", "0.53679377", "0.5367832", "0.5356829", "0.535393", "0.53505343", "0.53433204", "0.53394854", "0.53364795", "0.5336479", "0.5327772", "0.5316158", "0.5299182", "0.5293147", "0.52872276", "0.5286754", "0.528451", "0.5282483", "0.5280713", "0.5271406", "0.52581036", "0.5252774", "0.5249196", "0.5244564", "0.52332723", "0.5232837", "0.52314913", "0.5225195", "0.5225076", "0.52245265", "0.52201307", "0.5218704", "0.52126735", "0.5202957", "0.51931435", "0.5189611", "0.51891756", "0.5187492", "0.5186429", "0.5179219", "0.51743406", "0.51645076", "0.5163382", "0.51580703", "0.5157881", "0.5155244" ]
0.704426
0
Instantiate Block Header Functions for onchain block.
public static BlockHeaderFunctions forOnchainBlock(final BftExtraDataCodec bftExtraDataCodec) { return new BftBlockHeaderFunctions( h -> new BftBlockHashing(bftExtraDataCodec).calculateHashOfBftBlockOnchain(h), bftExtraDataCodec); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BftBlockHeaderFunctions(\n final Function<BlockHeader, Hash> hashFunction, final BftExtraDataCodec bftExtraDataCodec) {\n this.hashFunction = hashFunction;\n this.bftExtraDataCodec = bftExtraDataCodec;\n }", "Block createBlock();", "TestBlock createTestBlock();", "BlockchainFactory getBlockchainFactory();", "TestFirstBlock createTestFirstBlock();", "DefineBlock createDefineBlock();", "protected ASPBlock getBizWfBlock()\n {\n return headblk;\n }", "public static void initializeBlocks() {\n if (Config.enableGiveADamn) {\n giveADamn = new GiveADamn();\n }\n\n if (Config.enableGlowstone) {\n glowstone = new HeavyLight();\n }\n\n if (Config.enableSpicedSand) {\n sandSpiced = new SpicedSand();\n }\n /*\n\n if (Config.enableMuffler){\n muffler = new Muffler();\n }\n */\n }", "BlockChainLink getLinkBlockHeader(byte[] hash);", "@Test\r\n\t\tpublic void testTableBlockTranslationAddsHeader() throws Exception {\r\n\t\t\t\r\n\t\t\tTemplateTableBlockDTO block = createTableBlock(null, null);\r\n\t\t\tString name = \"name4444\";\r\n\t\t\tString section = \"section4444\";\r\n\t\t\tString summary = \"summary4444\";\r\n\t\t\tblock.setName(name);\r\n\t\t\tblock.setSection(section);\r\n\t\t\tblock.setSummary(summary);\r\n\t\t\t\r\n\t\t\tString result = block.appendFreeMarkerFormat(new StringBuilder(), \r\n\t\t\t new HashSet<Integer>(), createServiceForBlock(block)).toString();\r\n\t\t\t\r\n\t\t\tassertTrue(\"Name is not in header\", result.contains(name));\r\n\t\t\tassertTrue(\"Section is not in header\", result.contains(section));\r\n\t\t\tassertTrue(\"Summary is not in header\", result.contains(summary));\r\n\t\t}", "public BlockChain() {\n this.blockChain = new ArrayList<>();\n this.chainHash = \"\";\n }", "ActionBlock createActionBlock();", "RclBlock createRclBlock();", "BAnyBlock createBAnyBlock();", "Block getHiveBlock();", "@Override\n\tprotected void buildBlockClass(String uvmBlockClassName, Boolean hasCallback) {\n\t\t// create text name and description if null\n\t\tString id = regSetProperties.getId();\n\t\tString refId = regSetProperties.getBaseName(); // ref used for block structure lookup\n\t\t\n\t\tString textName = regSetProperties.getTextName();\n\t\tif (textName == null) textName = \"Block \" + id;\n\n\t\t// generate register header \n\t\toutputList.add(new OutputLine(indentLvl, \"\"));\t\n\t\toutputList.add(new OutputLine(indentLvl, \"// \" + textName));\n\t\toutputList.add(new OutputLine(indentLvl++, \"class \" + uvmBlockClassName + \"#(type ALTPBLOCK_T = \" + altModelRootType + \", type ALTBLOCK_T = \" + altModelRootType + \") extends uvm_block_translate;\")); \n\n\t\t// create field definitions \n\t\tbuildBlockDefines(refId);\n\t\t\n\t\t// create new function\n\t\t//buildBlockNewDefine(uvmBlockClassName); \n\t\t\n\t\t// create build function \n\t\tbuildBlockBuildFunction(refId);\n\t\t\n\t\t// get_alt_block - return alternate model regset struct corresponding to this block\n\t\tString escRegSetId = escapeReservedString(regSetProperties.getId());\n\t\tSystemVerilogFunction func = new SystemVerilogFunction(\"ALTBLOCK_T\", \"get_alt_block\"); \n\t\tif (regSetProperties.isRootInstance())\n\t\t\t func.addStatement(\"return \" + escRegSetId + \";\");\n\t\telse {\n\t\t\tfunc.addStatement(\"ALTPBLOCK_T alt_parent = m_parent.get_alt_block();\");\n\t\t\tif (regSetProperties.isReplicated())\n\t\t\t func.addStatement(\"return alt_parent.\" + escRegSetId + \"[m_rep];\");\n\t\t\telse \n\t\t\t func.addStatement(\"return alt_parent.\" + escRegSetId + \";\"); \n\t\t}\n\t\toutputList.addAll(func.genOutputLines(indentLvl));\t\n\t\t\n\t\t// close out the class definition\n\t\toutputList.add(new OutputLine(indentLvl, \"\"));\t\n\t\t//outputList.add(new OutputLine(indentLvl, \"`uvm_object_utils(\" + uvmBlockClassName + \")\")); \n\t\toutputList.add(new OutputLine(--indentLvl, \"endclass : \" + uvmBlockClassName));\n\t}", "public interface BlockInterceptor {\n\n void onBlock(Context context, BlockInfo info);\n}", "TeststepBlock createTeststepBlock();", "private static void registerBlock(Block b)\n\t{\n\t}", "public static BlockHeaderFunctions forCommittedSeal(final BftExtraDataCodec bftExtraDataCodec) {\n return new BftBlockHeaderFunctions(\n h -> new BftBlockHashing(bftExtraDataCodec).calculateDataHashForCommittedSeal(h),\n bftExtraDataCodec);\n }", "public String getBlockStart () {\n return BLOCK_START_PREFIX + objectName + BLOCK_START_SUFFIX;\n }", "public static void init()\n {\n oreStarSteel = new BlockOreStarSteel(MSAConfig.ores, Material.rock);\n storageStarSteel = new BlockStorageStarSteel(MSAConfig.storageBlock, Material.iron);\n // tech blocks\n launchTower = new BlockLaunchTower(MSAConfig.launchTower, Material.iron);\n launchTowerController = new BlockLaunchControl(MSAConfig.launchController, Material.iron);\n rocketAssembler = new BlockRocketAssembler(MSAConfig.rocketAssembler, Material.iron);\n comSatellite = new BlockComSatellite(MSAConfig.comSatellite, Material.iron);\n ssBuilding = new BlockSSBuilding(MSAConfig.ssBuilding, Material.rock);\n commandCenter = new BlockCommandCenter(MSAConfig.commandCenter, Material.iron);\n\n /* Register Blocks */\n // ore blocks\n GameRegistry.registerBlock(oreStarSteel, \"oreStarSteel\");\n GameRegistry.registerBlock(storageStarSteel, \"storageStarSteel\");\n // tech blocks\n GameRegistry.registerBlock(launchTower, \"launchTower\");\n GameRegistry.registerBlock(launchTowerController, \"launchTowerController\");\n GameRegistry.registerBlock(rocketAssembler, \"rocketAssembler\");\n GameRegistry.registerBlock(comSatellite, \"comSatellite\");\n GameRegistry.registerBlock(ssBuilding, \"ssBuilding\");\n GameRegistry.registerBlock(commandCenter, \"commandCenter\");\n\n /* Set block harvest level */\n // ore blocks\n MinecraftForge.setBlockHarvestLevel(oreStarSteel, \"pickaxe\", 2);\n MinecraftForge.setBlockHarvestLevel(storageStarSteel, \"pickaxe\", 2);\n // building blocks\n MinecraftForge.setBlockHarvestLevel(ssBuilding, \"pickaxe\", 2);\n // tech blocks\n MinecraftForge.setBlockHarvestLevel(launchTower, \"pickaxe\", 1);\n }", "public void testConstructors()\n throws IOException\n {\n HeaderBlockWriter block = new HeaderBlockWriter();\n ByteArrayOutputStream output = new ByteArrayOutputStream(512);\n\n block.writeBlocks(output);\n byte[] copy = output.toByteArray();\n byte[] expected =\n {\n ( byte ) 0xD0, ( byte ) 0xCF, ( byte ) 0x11, ( byte ) 0xE0,\n ( byte ) 0xA1, ( byte ) 0xB1, ( byte ) 0x1A, ( byte ) 0xE1,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x3B, ( byte ) 0x00, ( byte ) 0x03, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0x09, ( byte ) 0x00,\n ( byte ) 0x06, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x10, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF\n };\n\n assertEquals(expected.length, copy.length);\n for (int j = 0; j < 512; j++)\n {\n assertEquals(\"testing byte \" + j, expected[ j ], copy[ j ]);\n }\n\n // verify we can read a 'good' HeaderBlockWriter (also test\n // getPropertyStart)\n block.setPropertyStart(0x87654321);\n output = new ByteArrayOutputStream(512);\n block.writeBlocks(output);\n assertEquals(0x87654321,\n new HeaderBlockReader(new ByteArrayInputStream(output\n .toByteArray())).getPropertyStart());\n }", "public static void init() {\n Handler.log(Level.INFO, \"Loading Blocks\");\n\n oreAluminum = new BaseOre(Config.oreAluminumID).setUnlocalizedName(Archive.oreAluminum)\n .setHardness(3.0F).setResistance(5.0F);\n\n blockGrinder = new BaseContainerBlock(Config.blockGrinderID, Archive.grinderGUID)\n .setUnlocalizedName(Archive.blockGrinder);\n\n blockOven = new BaseContainerBlock(Config.blockOvenID, Archive.ovenGUID)\n .setUnlocalizedName(Archive.blockOven);\n }", "public static void init () {\n\t\t\n\t\t/*\n\t\t * Letter block naming and registry code\n\t\t */\n\t\tfor (int i = 0; i <= NameHandler.length(); ++i) {\n\t\t\tBlockLetter bL = new BlockLetter();\n\t\t\tString name = NameHandler.getNameFromIndex(i);\n\t\t\tbL.setBlockName(name);\n\t\t\tGameRegistry.registerBlock(bL, name);\n\t\t\tletterBlocks.add(bL);\n\t\t}\n\t\t\n\t\tcopperBlock.setBlockName(Names.Blocks.COPPER_BLOCK);\n\t\ttinBlock.setBlockName(Names.Blocks.TIN_BLOCK);\n\t\tsilverBlock.setBlockName(Names.Blocks.SILVER_BLOCK);\n\t\tclassicBronzeBlock.setBlockName(Names.Blocks.CLASSIC_BRONZE_BLOCK);\n\t\tmildBronzeBlock.setBlockName(Names.Blocks.MILD_BRONZE_BLOCK);\n\t\telectrumBlock.setBlockName(Names.Blocks.ELECTRUM_BLOCK);\n\t\tcopperDustBlock.setBlockName(Names.Blocks.COPPER_DUST_BLOCK);\n\t\t\n\t\tcopperOre.setBlockName(Names.Blocks.COPPER_ORE);\n\t\ttinOre.setBlockName(Names.Blocks.TIN_ORE);\n\t\tsilverOre.setBlockName(Names.Blocks.SILVER_ORE);\n\t\t\n\t\tmarble.setBlockName(Names.Blocks.MARBLE);\n\t\t\n\t\tgrindstone.setBlockName(Names.Blocks.GRINDSTONE);\n\t\t\n\t\tGameRegistry.registerBlock(column, Names.Blocks.COLUMN);\n\t\tGameRegistry.registerBlock(copperBlock, Names.Blocks.COPPER_BLOCK);\n\t\tGameRegistry.registerBlock(tinBlock, Names.Blocks.TIN_BLOCK);\n\t\tGameRegistry.registerBlock(silverBlock, Names.Blocks.SILVER_BLOCK);\n\t\tGameRegistry.registerBlock(classicBronzeBlock, Names.Blocks.CLASSIC_BRONZE_BLOCK);\n\t\tGameRegistry.registerBlock(mildBronzeBlock, Names.Blocks.MILD_BRONZE_BLOCK);\n\t\tGameRegistry.registerBlock(electrumBlock, Names.Blocks.ELECTRUM_BLOCK);\n\t\tGameRegistry.registerBlock(copperDustBlock, Names.Blocks.COPPER_DUST_BLOCK);\n\t\t\n\t\tGameRegistry.registerBlock(copperOre, Names.Blocks.COPPER_ORE);\n\t\tGameRegistry.registerBlock(tinOre, Names.Blocks.TIN_ORE);\n\t\tGameRegistry.registerBlock(silverOre, Names.Blocks.SILVER_ORE);\n\t\tGameRegistry.registerBlock(marble, Names.Blocks.MARBLE);\n\t\t\n\t\tGameRegistry.registerBlock(grindstone, Names.Blocks.GRINDSTONE);\n\t}", "public static void initialize()\n {\n CHUNK_LOADER = new ChunkLoader();\n //VILLAGE_INDICATOR = new VillageIndicator();\n\n BLOCK_LIST.add(CHUNK_LOADER);\n //BLOCK_LIST.add(VILLAGE_INDICATOR);\n Log.info(\"=========================================================> Initialized Blocks\");\n }", "EthHandler create(EthVersion version);", "CommunityProfileEventHeader()\n {\n /*\n * Nothing to do.\n */\n }", "private void createBlock() {\n\t\tblock = new Block(mouseX, mouseY, 25, 25);\r\n\t\tblock.addObserver(this);\r\n\t\tblock.start();\r\n\t\t// System.out.println(\"Block created (at Model.createBlock)\");\r\n\t}", "BlockFor createBlockFor();", "Header createHeader();", "@Override\n\tpublic void setupHeaderKeyFields(EquationStandardTransaction transaction)\n\t{\n\n\t}", "public Block()\n {\n this.blockType = BlockType.AIR;\n }", "private static UINode _createGlobalHeaders()\n {\n MarlinBean globalHeaders = new MarlinBean(FLOW_LAYOUT_NAME);\n\n //\n // add the client header\n //\n globalHeaders.addIndexedChild(\n ContextPoppingUINode.getUINode(NAVIGATION2_CHILD));\n\n //\n // create and add the default header\n //\n MarlinBean defaultHeader = new MarlinBean(GLOBAL_HEADER_NAME);\n\n defaultHeader.setAttributeValue(\n RENDERED_ATTR,\n new NotBoundValue(\n PdaHtmlLafUtils.createIsRenderedBoundValue(NAVIGATION2_CHILD)));\n\n globalHeaders.addIndexedChild(defaultHeader);\n\n return globalHeaders;\n }", "TestLastBlock createTestLastBlock();", "public Block(){\n\t\tinstns = new ArrayList<Instruction>();\n\t}", "public Block(){\n\t\tthis.type = Code.Type.NULL;\n\t}", "public abstract void start_block();", "public static void registerBlockEntities()\n\t{\n\t}", "private void setBlocks() {\n // load the class\n ClassLoader cl = ClassLoader.getSystemClassLoader();\n // create an InputStream object\n InputStream inputStream = cl.getResourceAsStream(this.map.get(\"block_definitions\"));\n // initialize this factory with a factory\n this.factory = BlocksDefinitionReader.fromReader(new InputStreamReader(inputStream));\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "AssertionBlock createAssertionBlock();", "static TraceContext fakeUseOfHeaders(TraceContext context) {\n return B3SingleFormat.parseB3SingleFormat(B3SingleFormat.writeB3SingleFormat(context))\n .context();\n }", "BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries);", "public Block() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tthis.point_BlockTopRight = null;\r\n\t\tthis.point_BlockDownleft = null;\r\n\t\tthis.setpoint_BlockTopLeft(null);\r\n\t\tthis.IDBloack = 0;\r\n\t\tthis.type = \"\";\r\n\t}", "private void initialiseHeader()\n\t{\n\t ListHead head = null;\n\n\t head = super.getListHead();\n\n\t //init only once\n\t if (head != null)\n\t {\n\t \treturn;\n\t }\n\n\t head = new ListHead();\n\n\t // render list head\n\t if (this.getItemRenderer() instanceof WListItemRenderer)\n\t {\n\t \t((WListItemRenderer)this.getItemRenderer()).renderListHead(head);\n\t }\n\t else\n\t {\n\t \tthrow new ApplicationException(\"Rendering of the ListHead is unsupported for \"\n\t \t\t\t+ this.getItemRenderer().getClass().getSimpleName());\n\t }\n\n\t //attach the listhead\n\t head.setParent(this);\n\n\t return;\n\t}", "Block create(int xpos, int ypos);", "public static void initializeBlockFields() {\n KitchenMod.LOGGER.log(\"Initializing static block fields\");\n KMComposterBlock.rinit();\n\n StakeBlock.registerPlant(GRAPE_VINE);\n StakeBlock.registerPlant(TOMATO_VINE);\n StakeBlock.registerPlant(VANILLA_VINE);\n }", "public Block( ) {\r\n _offSetRow = 0;\r\n _offSetCol = 0;\r\n _noOfRows = 0;\r\n _noOfCols = 0;\r\n }", "public void testSetSBATStart()\n throws IOException\n {\n HeaderBlockWriter block = new HeaderBlockWriter();\n\n block.setSBATStart(0x01234567);\n ByteArrayOutputStream output = new ByteArrayOutputStream(512);\n\n block.writeBlocks(output);\n byte[] copy = output.toByteArray();\n byte[] expected =\n {\n ( byte ) 0xD0, ( byte ) 0xCF, ( byte ) 0x11, ( byte ) 0xE0,\n ( byte ) 0xA1, ( byte ) 0xB1, ( byte ) 0x1A, ( byte ) 0xE1,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x3B, ( byte ) 0x00, ( byte ) 0x03, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0x09, ( byte ) 0x00,\n ( byte ) 0x06, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x10, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x67, ( byte ) 0x45, ( byte ) 0x23, ( byte ) 0x01,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF\n };\n\n assertEquals(expected.length, copy.length);\n for (int j = 0; j < 512; j++)\n {\n assertEquals(\"testing byte \" + j, expected[ j ], copy[ j ]);\n }\n }", "BlockConstant createBlockConstant();", "StatementBlock createStatementBlock();", "BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries, int expectedBytesPerEntry);", "Tetrisblock2()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }", "public BlockExtra(Pixy2 pixy, Block block) {\n\t\tthis(pixy, block.getSignature(), block.getX(), block.getY(), block.getWidth(), block.getHeight(), block.getAngle(), block.getIndex(), block.getAge());\n\t}", "public void onNewBlock(long height);", "private HeaderUtil() {}", "private NetworkHeader(List<String> fields) {\r\n lineData = makeDataMap(fields);\r\n HeaderMaps headerMap = getHeaderMap(1);\r\n for (String header : lineData.keySet()) {\r\n String name = headerMap.headerName(header);\r\n if (mainHeaders.contains(header)) {\r\n mainKeys.put(header, name);\r\n if (name.toLowerCase().startsWith(\"wert\", 2) && (header.startsWith(\"lat\") || header.startsWith(\"lon\"))) {\r\n crsHint = \"germany\";\r\n }\r\n } else if (channelPattern.matcher(name).matches()) {\r\n channelMap.put(header, 0);\r\n sectorData.add(header);\r\n } else {\r\n sectorData.add(header);\r\n }\r\n }\r\n is3G = headerMap.headers.keySet().contains(\"gsm_ne\");\r\n }", "public int h(Block parambec)\r\n/* 29: */ {\r\n/* 30: 44 */ return F();\r\n/* 31: */ }", "public void createBlocks(HitListener phl, HitListener blockrmv, HitListener scorelstn) {\n // add all the blocks according to the levelinfo block list.\n for (Block block : this.levelInfo.blocks()) {\n // add the block to the game\n block.addToGame(this);\n // add all the relevant listeners to the blocks.\n block.addHitListener(phl);\n block.addHitListener(blockrmv);\n block.addHitListener(scorelstn);\n // increase the blocks counter by 1.\n this.blockCounter.increase(1);\n }\n }", "public InfernalAbsorberBlockEntity() {\n super(Entities.INFERNAL_ABSORBER);\n }", "@Override\n\tpublic int getBlockNum() {\n\t\treturn 0;\n\t}", "Tetrisblock()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }", "BranchingBlock createBranchingBlock();", "public static void preInit() {\n registerBlocks();\n }", "phaseI.Hdfs.BlockLocations getNewBlock();", "Block getBlock(String congName, String blockName, String blockNumber);", "@Override\n\tprotected void buildBaseBlockClass(String uvmBlockClassName, Boolean hasCallback) {\n\t\t//System.out.println(\"UVMRegsBuilder buildBaseBlockClass: fullId=\" + uvmBlockClassName + \", getUVMBlockID()=\" + getUVMBlockID());\n\t\tString refId = \"\"; // ref used for base block structure lookup\n\t\t\n\t\t// generate register header \n\t\toutputList.add(new OutputLine(indentLvl, \"\"));\t\n\t\toutputList.add(new OutputLine(indentLvl, \"// Base block\"));\n\t\toutputList.add(new OutputLine(indentLvl++, \"class \" + uvmBlockClassName + \"#(type ALTPBLOCK_T = \" + altModelRootType + \", type ALTBLOCK_T = \" + altModelRootType + \") extends uvm_block_translate;\"));\n\t\t\n\t\toutputList.add(new OutputLine(indentLvl, \"local ALTBLOCK_T m_alt_root_instance;\")); \n\t\t\n\t\t//String uvmBlockClassName, \n\t\t// create field definitions \n\t\tbuildBlockDefines(refId);\n\t\t\n\t\t// create new function\n\t\t//buildBlockNewDefine(uvmBlockClassName);\n\t\t\n\t\t// create build function \n\t\tbuildBlockBuildFunction(refId);\n\t\t\n\t\t// get_alt_block - return alternate model regset struct corresponding to this block (special for base block)\n\t\tSystemVerilogFunction func = new SystemVerilogFunction(\"ALTBLOCK_T\", \"get_alt_block\"); \n\t func.addStatement(\"return m_alt_root_instance;\");\n\t\toutputList.addAll(func.genOutputLines(indentLvl));\t\n\t\t\n\t\t// set_alt_root_instance - return alternate model regset struct corresponding to this block (special for base block)\n\t\tfunc = new SystemVerilogFunction(null, \"set_alt_root_instance\"); \n\t\tfunc.addIO(\"input\", \"ALTBLOCK_T\", \"alt_root_instance\", null);\n\t func.addStatement(\"m_alt_root_instance = alt_root_instance;\");\n\t\toutputList.addAll(func.genOutputLines(indentLvl));\t\n\t\t\n\t\t// close out the class definition\n\t\toutputList.add(new OutputLine(indentLvl, \"\"));\t\n\t\t//outputList.add(new OutputLine(indentLvl, \"`uvm_object_utils(\" + uvmBlockClassName + \")\"));\n\t\toutputList.add(new OutputLine(--indentLvl, \"endclass : \" + uvmBlockClassName));\n\t}", "private void initialise() {\n addHeaderSetting(new HeaderSettingInteger(Setting.VERSION.toString(),0,4,0x6));\n addHeaderSetting(new HeaderSettingInteger(Setting.TRAFFIC_CLASS.toString(),4,8,0));\n addHeaderSetting(new HeaderSettingLong(Setting.FLOW_LABEL.toString(),12,20,0));\n addHeaderSetting(new HeaderSettingLong(Setting.PAYLOAD_LENGTH.toString(),32,16,20));\n addHeaderSetting(new HeaderSettingInteger(Setting.NEXT_HEADER.toString(),48,8,253));\n addHeaderSetting(new HeaderSettingInteger(Setting.HOP_LIMIT.toString(),56,8,255));\n addHeaderSetting(new HeaderSettingHexString(Setting.SOURCE_ADDRESS.toString(),64,128,\"\"));\n addHeaderSetting(new HeaderSettingHexString(Setting.DESTINATION_ADDRESS.toString(),192,128,\"\"));\n }", "private synchronized void create_head(){\n\t\t// Take current time\n\t\thead_time = System.currentTimeMillis();\n\t\tdouble lcl_head_time = head_time/1000.0;\n\t\tString time = Double.toString(lcl_head_time);\n\t\t \n\t\theader.append(\"protocol: 1\\n\");\n\t\theader.append(\"experiment-id: \" + oml_exp_id + \"\\n\");\n\t\theader.append(\"start_time: \" + time + \"\\n\");\n\t\theader.append(\"sender-id: \" + oml_name + \"-sender\\n\");\n\t\theader.append(\"app-name: \" + oml_app_name + \"\\n\");\n\t}", "public interface IBlockAdded {\n\t\n\tpublic void setItemBlock(@Nullable IItemAddedBlock itemBlock);\n\t\n\tpublic void setDisplayName(String displayName);\n\t\n\tpublic void setBlockMaterial(Material blockMaterial);\n\t\n\tpublic void setPlaceSound(SoundEvent sound);\n\t\n\tpublic void setBreakSound(SoundEvent sound);\n\t\n\tpublic void setHitSound(SoundEvent sound);\n\t\n\tpublic void setStepSound(SoundEvent sound);\n\t\n\tpublic void setFallSound(SoundEvent sound);\n\t\n\tpublic void setBlockMapColor(@Nullable MapColor mapColor);\n\t\n\tpublic void setHarvestLevel(int harvestLevel);\n\t\n\tpublic void setHarvestTool(String harvestTool);\n\t\n\tpublic void setEffectiveTools(List<String> effectiveTools);\n\t\n\tpublic void setBookshelfStrength(int bookshelfStrength);\n\t\n\tpublic void setBeaconColorMultiplier(@Nullable float[] beaconColorMultiplier);\n\t\n\tpublic void setSlipperiness(float slipperiness);\n\t\n\tpublic void setIsSlime(boolean isSlime);\n\t\n\tpublic void setIsBeaconBase(boolean isBeaconBase);\n\t\n\tpublic void setCanPistonsPush(boolean canPistonsPush);\n\t\n\tpublic void setSemiTransparent(boolean semiTransparent);\n\t\n\tpublic void setXpDroppedMin(int xpMin);\n\t\n\tpublic void setXpDroppedMax(int xpMax);\n\t\n\tpublic void setDroppedFromExplosions(Boolean droppedFromExplosions);\n\t\n\tpublic default void setCanEndermenCarry(boolean canEndermenCarry) {\n\t\tif (EntityEnderman.getCarriable(this.getAsBlock()) != canEndermenCarry) {\n\t\t\tEntityEnderman.setCarriable(this.getAsBlock(), canEndermenCarry);\n\t\t}\n\t}\n\t\n\t@Nullable\n\tpublic IItemAddedBlock getItemBlock();\n\t\n\tpublic String getDisplayName();\n\t\n\tpublic Material getBlockMaterial();\n\t\n\tpublic SoundEvent getPlaceSound();\n\t\n\tpublic SoundEvent getBreakSound();\n\t\n\tpublic SoundEvent getHitSound();\n\t\n\tpublic SoundEvent getStepSound();\n\t\n\tpublic SoundEvent getFallSound();\n\t\n\t@Nullable\n\tpublic MapColor getBlockMapColor();\n\t\n\tpublic int getHarvestLevel();\n\t\n\tpublic String getHarvestTool();\n\t\n\tpublic List<String> getEffectiveTools();\n\t\n\tpublic int getBookshelfStrength();\n\t\n\t@Nullable\n\tpublic float[] getBeaconColorMultiplier();\n\t\n\tpublic float getSlipperiness();\n\t\n\tpublic boolean isSlime();\n\t\n\tpublic boolean isBeaconBase();\n\t\n\tpublic boolean canPistonsPush();\n\t\n\tpublic float getHardness();\n\t\n\tpublic float getResistance();\n\t\n\tpublic int getOpacity();\n\t\n\tpublic boolean isSemiTransparent();\n\t\n\tpublic int getLightLevel();\n\t\n\tpublic int getXpDroppedMin();\n\t\n\tpublic int getXpDroppedMax();\n\t\n\tpublic Boolean getDroppedFromExplosions();\n\t\n\tpublic default boolean canEndermenCarry() {\n\t\treturn EntityEnderman.getCarriable(this.getAsBlock());\n\t}\n\t\n\tpublic default void registerModels() {\n\t\tAdditionsMod.proxy.registerBlockRender(this.getAsBlock());\n\t}\n\t\n\tpublic default Block getAsBlock() {\n\t\tif (!(this instanceof Block)) {\n\t\t\tthrow new IllegalArgumentException(\"An IBlockAdded must be an instance of Block.\");\n\t\t}\n\t\treturn (Block) this;\n\t}\n\t\n public default String getId() {\n \tResourceLocation registryName = this.getAsBlock().getRegistryName();\n \t\n \tif (registryName != null) {\n \t\treturn registryName.getResourcePath();\n \t}\n \t\n String unlocalizedName = this.getAsBlock().getUnlocalizedName();\n \n if (unlocalizedName.startsWith(\"tile.\")) {\n \treturn unlocalizedName.substring(5);\n }\n \n return unlocalizedName;\n }\n\n public abstract static class Serializer<T extends IBlockAdded> {\n\t\t\n\t\tprivate final ResourceLocation blockAddedType;\n private final Class<T> blockAddedClass;\n\n protected Serializer(ResourceLocation location, Class<T> clazz)\n {\n this.blockAddedType = location;\n this.blockAddedClass = clazz;\n }\n\n\t\tpublic ResourceLocation getBlockAddedType() {\n\t\t\treturn this.blockAddedType;\n\t\t}\n\t\t\n\t\tpublic Class<T> getBlockAddedClass() {\n\t\t\treturn this.blockAddedClass;\n\t\t}\n\n\t\tpublic JsonObject serialize(T blockAddedObj, JsonSerializationContext context) {\n\t\t\tJsonObject json = new JsonObject();\n\t\t\tBlock blockAdded = blockAddedObj.getAsBlock();\n\t\t\t\n\t\t\tif (blockAddedObj.getItemBlock() != null) {\n\t\t\t\tjson.add(\"item_block\", AdditionTypeItem.GSON.toJsonTree(blockAddedObj.getItemBlock()));\n\t\t\t}\n\t\t\t\n\t\t\tjson.addProperty(\"name\", blockAddedObj.getDisplayName());\n\t\t\tjson.add(\"material\", OtherSerializers.BlockMaterialSerializer.serialize(blockAddedObj.getBlockMaterial()));\n\t\t\t\n\t\t\tif (blockAddedObj.getPlaceSound() != null) {\n\t\t\t\tjson.add(\"place_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getPlaceSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getBreakSound() != null) {\n\t\t\t\tjson.add(\"break_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getBreakSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getHitSound() != null) {\n\t\t\t\tjson.add(\"hit_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getHitSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getStepSound() != null) {\n\t\t\t\tjson.add(\"step_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getStepSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getFallSound() != null) {\n\t\t\t\tjson.add(\"fall_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getFallSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getBlockMapColor() != null) {\n\t\t\t\tjson.add(\"map_color\", OtherSerializers.BlockMapColorSerializer.serialize(blockAddedObj.getBlockMapColor()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getHardness() > 0) {\n\t\t\t\tjson.addProperty(\"hardness\", blockAddedObj.getHardness());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getResistance() > 0) {\n\t\t\t\tjson.addProperty(\"resistance\", blockAddedObj.getResistance() / 3.0f);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getHarvestLevel() != 0) {\n\t\t\t\tjson.addProperty(\"harvest_level\", blockAddedObj.getHarvestLevel());\n\t\t\t}\n\t\t\t\n\t\t\tif (!blockAddedObj.getHarvestTool().isEmpty()) {\n\t\t\t\tjson.addProperty(\"harvest_tool\", blockAddedObj.getHarvestTool());\n\t\t\t}\n\t\t\t\n\t\t\tif (!blockAddedObj.getEffectiveTools().isEmpty()) {\n\t\t\t\tjson.add(\"effective_tools\", OtherSerializers.StringListSerializer.serialize(blockAddedObj.getEffectiveTools()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAdded.getLightOpacity(blockAdded.getDefaultState()) != 15) {\n\t\t\t\tjson.addProperty(\"light_opacity\", blockAdded.getLightOpacity(blockAdded.getDefaultState()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAdded.getLightValue(blockAdded.getDefaultState()) > 0) {\n\t\t\t\tjson.addProperty(\"light_level\", blockAdded.getLightValue(blockAdded.getDefaultState()));\n\t\t\t}\n\t\t\t\n\t\t\tif (Blocks.FIRE.getFlammability(blockAdded) > 0) {\n\t\t\t\tjson.addProperty(\"flammability\", Blocks.FIRE.getFlammability(blockAdded));\n\t\t\t}\n\t\t\t\n\t\t\tif (Blocks.FIRE.getEncouragement(blockAdded) > 0) {\n\t\t\t\tjson.addProperty(\"fire_spread_speed\", Blocks.FIRE.getEncouragement(blockAdded));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getBookshelfStrength() > 0) {\n\t\t\t\tjson.addProperty(\"bookshelf_strength\", blockAddedObj.getBookshelfStrength());\n\t\t\t}\n\t\t\t\n\t\t\tfloat[] beaconColorsMultiplier = blockAddedObj.getBeaconColorMultiplier();\n\t\t\tif (beaconColorsMultiplier != null && beaconColorsMultiplier.length == 3) {\n\t\t\t\tJsonObject beaconColorObj = new JsonObject();\n\t\t\t\tbeaconColorObj.addProperty(\"red\", beaconColorsMultiplier[0]);\n\t\t\t\tbeaconColorObj.addProperty(\"green\", beaconColorsMultiplier[1]);\n\t\t\t\tbeaconColorObj.addProperty(\"blue\", beaconColorsMultiplier[2]);\n\t\t\t\tjson.add(\"beacon_color_multiplier\", beaconColorObj);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getSlipperiness() != 0.6f) {\n\t\t\t\tjson.addProperty(\"slipperiness\", blockAddedObj.getSlipperiness());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.isSlime()) {\n\t\t\t\tjson.addProperty(\"is_slime\", true);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.isBeaconBase()) {\n\t\t\t\tjson.addProperty(\"is_beacon_base\", true);\n\t\t\t}\n\t\t\t\n\t\t\tif (!blockAddedObj.canPistonsPush()) {\n\t\t\t\tjson.addProperty(\"can_pistons_push\", false);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.isSemiTransparent()) {\n\t\t\t\tjson.addProperty(\"semi_transparent\", true);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getXpDroppedMin() != 0) {\n\t\t\t\tjson.addProperty(\"xp_dropped_min\", blockAddedObj.getXpDroppedMin());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getXpDroppedMax() != 0) {\n\t\t\t\tjson.addProperty(\"xp_dropped_max\", blockAddedObj.getXpDroppedMax());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getDroppedFromExplosions() != null) {\n\t\t\t\tjson.addProperty(\"dropped_from_explosions\", blockAddedObj.getDroppedFromExplosions());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.canEndermenCarry()) {\n\t\t\t\tjson.addProperty(\"can_endermen_carry\", true);\n\t\t\t}\n\t\t\t\n\t\t\treturn json;\n }\n\n\t\tpublic abstract T deserialize(JsonObject json, JsonDeserializationContext context);\n\t\t\n\t\tpublic <V extends Block & IBlockAdded> V deserializeDefaults(JsonObject json, JsonDeserializationContext context, V blockAdded) {\n\t\t\t\n\t\t\tif (json.has(\"item_block\")) {\n\t\t\t\tIItemAdded itemAdded = AdditionTypeItem.GSON.fromJson(json.get(\"item_block\"), IItemAdded.class);\n\t\t\t\t\n\t\t\t\tif (itemAdded instanceof IItemAddedBlock) {\n\t\t\t\t\tIItemAddedBlock itemAddedBlock = (IItemAddedBlock)itemAdded;\n\t\t\t\t\titemAddedBlock.setBlock(blockAdded);\n\t\t\t\t\tblockAdded.setItemBlock(itemAddedBlock);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n \tblockAdded.setDisplayName(JsonUtils.getString(json, \"name\"));\n \tblockAdded.setBlockMaterial(OtherSerializers.BlockMaterialSerializer.deserialize(json, \"material\"));\n\t\t\t\n\t\t\tif (json.has(\"map_color\")) {\n\t\t\t\tblockAdded.setBlockMapColor(OtherSerializers.BlockMapColorSerializer.deserialize(json, \"map_color\"));\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setHardness(JsonUtils.getFloat(json, \"hardness\", 0));\n\t\t\tblockAdded.setResistance(JsonUtils.getFloat(json, \"resistance\", 0));\n\t\t\tblockAdded.setHarvestLevel(JsonUtils.getInt(json, \"harvest_level\", 0));\n\t\t\tblockAdded.setHarvestTool(JsonUtils.getString(json, \"harvest_tool\", \"\"));\n\t\t\t\n\t\t\tif (json.has(\"effective_tools\")) {\n\t\t\t\tblockAdded.setEffectiveTools(OtherSerializers.StringListSerializer.deserialize(json.get(\"effective_tools\"), \"effective_tools\"));\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setLightOpacity(MathHelper.clamp(JsonUtils.getInt(json, \"light_opacity\", 15), 0, 15));\n\t\t\tblockAdded.setLightLevel(MathHelper.clamp(JsonUtils.getInt(json, \"light_level\", 0), 0, 15) / 15F);\n\t\t\t\n\t\t\tint flammability = JsonUtils.getInt(json, \"flammability\", 0);\n\t\t\tint fireSpreadSpeed = JsonUtils.getInt(json, \"fire_spread_speed\", 0);\n\t\t\tif (flammability > 0 || fireSpreadSpeed > 0) {\n\t\t\t\tBlocks.FIRE.setFireInfo(blockAdded, fireSpreadSpeed, flammability);\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setBookshelfStrength(JsonUtils.getInt(json, \"bookshelf_strength\", 0));\n\t\t\t\n\t\t\tif (json.has(\"beacon_color_multiplier\")) {\n\t\t\t\tJsonObject beaconColorObj = JsonUtils.getJsonObject(json, \"beacon_color_multiplier\");\n\t\t\t\tblockAdded.setBeaconColorMultiplier(new float[]{JsonUtils.getFloat(beaconColorObj, \"red\"), JsonUtils.getFloat(beaconColorObj, \"green\"), JsonUtils.getFloat(beaconColorObj, \"blue\")});\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setSlipperiness(JsonUtils.getFloat(json, \"slipperiness\", 0.6f));\n\t\t\tblockAdded.setIsSlime(JsonUtils.getBoolean(json, \"is_slime\", false));\n\t\t\tblockAdded.setIsBeaconBase(JsonUtils.getBoolean(json, \"is_beacon_base\", false));\n\t\t\tblockAdded.setCanPistonsPush(JsonUtils.getBoolean(json, \"can_pistons_push\", true));\n\t\t\tblockAdded.setSemiTransparent(JsonUtils.getBoolean(json, \"semi_transparent\", false));\n\t\t\tblockAdded.setXpDroppedMin(JsonUtils.getInt(json, \"xp_dropped_min\", 0));\n\t\t\tblockAdded.setXpDroppedMax(JsonUtils.getInt(json, \"xp_dropped_max\", 0));\n\t\t\tblockAdded.setCanEndermenCarry(JsonUtils.getBoolean(json, \"can_endermen_carry\", false));\n\t\t\t\n\t\t\tif (json.has(\"dropped_by_explosions\")) {\n\t\t\t\tblockAdded.setDroppedFromExplosions(JsonUtils.getBoolean(json, \"dropped_by_explosions\"));\n\t\t\t}\n \t\n \treturn blockAdded;\n }\n\t\t\n\t\tpublic void postDeserializeBlockAdded(JsonObject json, IBlockAdded blockAddedObj) {\n\t\t\tif (blockAddedObj.getClass() != this.blockAddedClass) {\n\t\t\t\tthrow new IllegalArgumentException(\"Tried to call post serialize for an object of the wrong type! Expected: \" + this.blockAddedClass + \", Actual: \" + blockAddedObj.getClass());\n\t\t\t}\n\t\t\t\n\t\t\tpostDeserialize(json, (T) blockAddedObj);\n\t\t}\n\t\t\n\t\tpublic void postDeserialize(JsonObject json, T blockAdded) {\n\t\t\tthis.postDeserializeDefaults(json, blockAdded);\n\t\t}\n\t\t\n\t\tpublic void postDeserializeDefaults(JsonObject json, T blockAdded) {\n \t\n \tIItemAdded itemAdded = blockAdded.getItemBlock();\n \tif (itemAdded != null) {\n \t\tItemAddedManager.Serializer.postDeserialize(JsonUtils.getJsonObject(json, \"item_block\"), itemAdded);\n \t}\n \t\n \tif (json.has(\"place_sound\")) {\n \t\tblockAdded.setPlaceSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"place_sound\"));\n \t}\n \t\n \tif (json.has(\"break_sound\")) {\n \t\tblockAdded.setBreakSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"break_sound\"));\n \t}\n \t\n \tif (json.has(\"hit_sound\")) {\n \t\tblockAdded.setHitSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"hit_sound\"));\n \t}\n \t\n \tif (json.has(\"step_sound\")) {\n \t\tblockAdded.setStepSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"step_sound\"));\n \t}\n \t\n \tif (json.has(\"fall_sound\")) {\n \t\tblockAdded.setFallSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"fall_sound\"));\n \t}\n }\n }\n}", "protected Block(int id, String hr_ident){\n super(id,hr_ident);\n\n //set some standards\n this.visible = true;\n this.solid = true;\n }", "public JsonObject raw_block() {\n \tJsonObject block = new JsonObject();\n \tblock.addProperty(\"BlockID\", blockId);\n \tif(!BlockChain.isEmpty())\n \t block.addProperty(\"PrevHash\", Hash.getHashString(getLongestBranch().last_block.toString()));\n \telse {\n \t\tblock.addProperty(\"PrevHash\", \"0000000000000000000000000000000000000000000000000000000000000000\");\n \t}\n \tblock.addProperty(\"Nonce\", \"00000000\");\n block.addProperty(\"MinerID\", \"Server\"+String.format(\"%02d\", minerId));\n \n \tJsonArray newTxPool = new JsonArray();\n \tJsonArray transactions = new JsonArray();\n \tint N = TxPool_new.size();\n \tint i;\n \tfor (i=0; i<N && i<50; i++) {\n \t\ttransactions.add(TxPool_new.get(i));\n \t\t//TxPool_used.add(TxPool_new.get(i));\n \t}\n \tfor (; i<N; i++)\n \t\tnewTxPool.add(TxPool_new.get(i));\n \tblock.add(\"Transactions\", transactions);\n\n \treturn block;\n }", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tArrayList<Block> blockChain = new ArrayList<Block>();\r\n\t\t\r\n\t\tString[] initialValues = {\"Linus has 700 Euro\", \"Florian has 500 Euro\"};\r\n\t\tBlock firstblock = new Block(initialValues, 0);\r\n\t\tblockChain.add(firstblock);\r\n\t\tSystem.out.println(\"Erster Block ist \" + firstblock.toString());\r\n\t\tSystem.out.println(\"Die block chain ist\" + blockChain.toString());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString[] payBlock = {\"Florian gives Linus 400 Euro\", \"Thomas buy 800 Euro\"};\r\n\t\tBlock secondblock = new Block(payBlock, firstblock.getBlockHash());\r\n\t\tblockChain.add(secondblock);\r\n\t\tSystem.out.println(\"Zweiter Block ist \" + secondblock.toString());\r\n\t\tSystem.out.println(\"Die block chain ist\" + blockChain.toString());\r\n\t\t\r\n\t\tString[] payBack = {\"Linus gives Florian 400 Euro\"};\r\n\t\tBlock thirdblock = new Block(payBack, secondblock.getBlockHash());\r\n\t\tblockChain.add(thirdblock);\r\n\t\tSystem.out.println(\"Zweiter Block ist \" + thirdblock.toString());\r\n\t\tSystem.out.println(\"Die block chain ist\" + blockChain.toString());\r\n\t\t\r\n\t}", "DirectionBlock createDirectionBlock();", "@Override\n\t\tpublic void onBlock(User arg0, User arg1) {\n\t\t\t\n\t\t}", "public HeaderFragment() {}", "@Override\n public void onInitializeClient() {\n\t\tBlockEntityRendererRegistry.INSTANCE.register(TableBlockEntity.BLOCK_ENTITY_TYPE, TableBlockEntityRenderer::new);\n\n\t\tClientSpriteRegistryCallback.event(SpriteAtlasTexture.BLOCK_ATLAS_TEXTURE).register((atlasTexture, registry) ->\n\t\t{\n\t\t\tregistry.register(TableBlockEntityRenderer.BOOK_SPRITE_ID);\n\t\t});\n\t\t\n\t\tScreenRegistry.<CursedEnchantmentScreenHandler, CursedEnchantmentScreen>register(\n\t\t\tCursedEnchantingMain.CURSED_ENCHANTMENT_GUI,\n\t\t\t(gui, inventory, title) -> new CursedEnchantmentScreen(gui, inventory, title)\n\t\t);\n }", "private void addHeaderItems(final List<ItemBO> itemList)\n\t{\n\t\tif (itemList != null && (!itemList.isEmpty()))\n\t\t{\n\t\t\tfinal List<Integer> lineNumbersList = new ArrayList<Integer>(itemList.size());\n\t\t\tfinal List<ItemBO> headerItemsList = new ArrayList<ItemBO>();\n\t\t\tint processOrderLineNumber = 1;\n\t\t\tfor (final ItemBO anItem : itemList)\n\t\t\t{\n\t\t\t\tlineNumbersList.add(anItem.getLineNumber());\n\t\t\t\tif (ExternalSystem.EVRST == anItem.getExternalSystem())\n\t\t\t\t{\n\t\t\t\t\t//Header ItemBO for current ECC Item\n\t\t\t\t\tfinal ItemBO anHeader = new PartBO();\n\t\t\t\t\tanHeader.setDisplayPartNumber(anItem.getDisplayPartNumber());\n\t\t\t\t\tanHeader.setPartNumber(anItem.getPartNumber());\n\t\t\t\t\tanHeader.setComment(\"This is The Header Record :: \" + anItem.getPartNumber());\n\t\t\t\t\tanHeader.setInventory(anItem.getInventory());\n\t\t\t\t\tanHeader.setRequestedInventory(anItem.getRequestedInventory());\n\t\t\t\t\tanHeader.setScacCode(anItem.getScacCode());\n\t\t\t\t\tanHeader.setCarrierCode(anItem.getCarrierCode());\n\t\t\t\t\tanHeader.setShippingMethodCode(anItem.getShippingMethodCode());\n\t\t\t\t\tanHeader.setTransportationMethodCode(anItem.getTransportationMethodCode());\n\t\t\t\t\t((PartBO) anHeader).setHeader(true);\n\t\t\t\t\t((PartBO) anHeader).setProcessOrderLineNumber(processOrderLineNumber);\n\n\t\t\t\t\tanHeader.setItemQty(anItem.getItemQty());\n\t\t\t\t\tanHeader.setExternalSystem(ExternalSystem.EVRST);\n\n\t\t\t\t\t//Make Sure Actual Item also has the same ProcessOrderLineNumber\n\t\t\t\t\tanItem.setProcessOrderLineNumber(processOrderLineNumber);\n\n\t\t\t\t\theaderItemsList.add(anHeader);\n\t\t\t\t\tprocessOrderLineNumber++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!headerItemsList.isEmpty())\n\t\t\t{\n\t\t\t\t//Find the Highest line number\n\t\t\t\tArrays.sort(lineNumbersList.toArray());\n\t\t\t\tint itemLineNumber = lineNumbersList.get(lineNumbersList.size() - 1);\n\t\t\t\tfor (final ItemBO headerItem : headerItemsList)\n\t\t\t\t{\n\t\t\t\t\theaderItem.setLineNumber(++itemLineNumber);\n\t\t\t\t}\n\t\t\t\t//Make Sure the Header Items are inserted first - Enforced by ECC RFC\n\t\t\t\titemList.addAll(0, headerItemsList);\n\t\t\t\tlogger.debug(\"addHeaderItems(...): Added Header Items for ECC Items \" + headerItemsList.size());\n\t\t\t}\n\t\t}\n\t}", "public Block instance(int paramInt)\r\n/* 194: */ {\r\n/* 195:225 */ return instance().setData(a, bds.b(paramInt)).setData(b, (paramInt & 0x8) > 0 ? bdu.b : bdu.a);\r\n/* 196: */ }", "@Override\n\tvoid populateMethodImplBlock(Block block) {\n\t\tfinal DataConstructorExp newLocExp = new DataConstructorExp();\n\t\tnewLocExp.setConstructor(LOCATION_CONSTRUCTOR);\n\t\tfinal FnApp memExp = new FnApp();\n\t\tmemExp.setName(MEMORY_SELECTOR);\n\t\tmemExp.addParamNoTransform(arrayArg.getVarUse());\n\t\tnewLocExp.addParamNoTransform(memExp);\n\t\tfinal FnApp offsetExp = new FnApp();\n\t\toffsetExp.setName(OFFSET_SELECTOR);\n\t\toffsetExp.addParamNoTransform(arrayArg.getVarUse());\n\t\tnewLocExp.addParamNoTransform(new AddAddExp(offsetExp, new MultMultExp(sizeArg.getVarUse(), indexArg.getInnerExp())));\n\t\tfinal ReturnStmt returnStmt = new ReturnStmt();\n\t\treturnStmt.setRetExp(newLocExp);\n\t\tblock.addStmt(returnStmt);\n\t}", "public CombineDetailHeaderView(Context context, AttributeSet attributeSet) {\n super(context, attributeSet);\n C32569u.m150519b(context, C6969H.m41409d(\"G6A8CDB0EBA28BF\"));\n Context context2 = getContext();\n C32569u.m150513a((Object) context2, \"context\");\n this.f54231a = new SKUDetailHeaderView(context2, null, 0, 6, null);\n Context context3 = getContext();\n C32569u.m150513a((Object) context3, \"context\");\n this.f54231a = new SKUDetailHeaderView(context3, null, 0, 6, null);\n addView(this.f54231a, new FrameLayout.LayoutParams(-1, -2));\n SKUDetailHeaderView sKUDetailHeaderView = this.f54231a;\n Context context4 = getContext();\n C32569u.m150513a((Object) context4, C6969H.m41409d(\"G6A8CDB0EBA28BF\"));\n sKUDetailHeaderView.mo77113a(CombineSubscribe.class, new CombineSKUHeaderModelProvider(context4));\n this.f54231a.mo77115b().subscribe(new AbstractC31735g<AbstractC14697h>(this) {\n /* class com.zhihu.android.app.subscribe.p1298ui.view.CombineDetailHeaderView.C154461 */\n\n /* renamed from: a */\n final /* synthetic */ CombineDetailHeaderView f54233a;\n\n {\n this.f54233a = r1;\n }\n\n /* renamed from: a */\n public final void accept(AbstractC14697h hVar) {\n CombineDetailPresenter aVar;\n if (hVar instanceof C14693d) {\n CombineDetailPresenter aVar2 = this.f54233a.f54232b;\n if (aVar2 != null) {\n aVar2.mo77862b(((C14693d) hVar).mo77065a());\n }\n } else if (hVar instanceof C14692c) {\n CombineDetailPresenter aVar3 = this.f54233a.f54232b;\n if (aVar3 != null) {\n aVar3.mo77864i();\n }\n } else if ((hVar instanceof C14696g) && (aVar = this.f54233a.f54232b) != null) {\n aVar.mo77863h();\n }\n }\n });\n }", "public abstract void appendBlock();", "public Block createBlock(Position pos, List<Stmt> stmts) {\n return xnf.Block(pos, stmts);\n }", "private NetFlowHeader prepareHeader() throws IOException {\n NetFlowHeader internalHeader;\n int numBytesRead = 0;\n int lenRead = 0;\n WrappedByteBuf buf;\n byte[] headerArray;\n\n // Read header depending on stream version (different from flow version)\n if (streamVersion == 1) {\n // Version 1 has static header\n // TODO: verify header size for stream version 1\n lenRead = NetFlowHeader.S1_HEADER_SIZE - METADATA_LENGTH;\n internalHeader = new NetFlowHeader(streamVersion, byteOrder);\n } else {\n // Version 3 with dynamic header size\n headerArray = new byte[HEADER_OFFSET_LENGTH];\n numBytesRead = in.read(headerArray, 0, HEADER_OFFSET_LENGTH);\n if (numBytesRead != HEADER_OFFSET_LENGTH) {\n throw new UnsupportedOperationException(\"Short read while loading header offset\");\n }\n\n buf = WrappedByteBuf.init(headerArray, byteOrder);\n int headerSize = (int)buf.getUnsignedInt(0);\n if (headerSize <= 0) {\n throw new UnsupportedOperationException(\"Failed to load header of size \" + headerSize);\n }\n\n // Actual header length, determine how many bytes to read\n lenRead = headerSize - METADATA_LENGTH - HEADER_OFFSET_LENGTH;\n internalHeader = new NetFlowHeader(streamVersion, byteOrder, headerSize);\n }\n\n // allocate buffer for length to read\n headerArray = new byte[lenRead];\n numBytesRead = in.read(headerArray, 0, lenRead);\n if (numBytesRead != lenRead) {\n throw new UnsupportedOperationException(\"Short read while loading header data\");\n }\n // build buffer\n buf = WrappedByteBuf.init(headerArray, byteOrder);\n\n // resolve stream version (either 1 or 3)\n if (streamVersion == 1) {\n internalHeader.setFlowVersion((short)buf.getUnsignedShort(0));\n internalHeader.setStartCapture(buf.getUnsignedInt(2));\n internalHeader.setEndCapture(buf.getUnsignedInt(6));\n internalHeader.setHeaderFlags(buf.getUnsignedInt(10));\n internalHeader.setRotation(buf.getUnsignedInt(14));\n internalHeader.setNumFlows(buf.getUnsignedInt(18));\n internalHeader.setNumDropped(buf.getUnsignedInt(22));\n internalHeader.setNumMisordered(buf.getUnsignedInt(26));\n // Read hostname fixed bytes\n byte[] hostnameBytes = new byte[NetFlowHeader.S1_HEADER_HN_LEN];\n buf.getBytes(30, hostnameBytes, 0, hostnameBytes.length);\n internalHeader.setHostname(new String(hostnameBytes));\n // Read comments fixed bytes\n byte[] commentsBytes = new byte[NetFlowHeader.S1_HEADER_CMNT_LEN];\n buf.getBytes(30 + hostnameBytes.length, commentsBytes, 0, commentsBytes.length);\n internalHeader.setComments(new String(commentsBytes));\n\n // Dereference arrays\n hostnameBytes = null;\n commentsBytes = null;\n } else {\n // Resolve TLV (type-length value)\n // Set decode pointer to first tlv\n int dp = 0;\n int left = lenRead;\n // Smallest TLV is 2+2+0 (null TLV)\n // tlv_t - TLV type, tlv_l - TLV length, tlv_v - TLV value\n int tlv_t = 0;\n int tlv_l = 0;\n int tlv_v = 0;\n\n // Byte array for holding Strings\n byte[] pr;\n\n while (left >= 4) {\n // Parse type, store in host byte order\n tlv_t = buf.getUnsignedShort(dp);\n dp += 2;\n left -= 2;\n\n // Parse len, store in host byte order\n tlv_l = buf.getUnsignedShort(dp);\n dp += 2;\n left -= 2;\n\n // Parse val\n tlv_v = dp;\n\n // Point decode buffer at next tlv\n dp += tlv_l;\n left -= tlv_l;\n\n // TLV length check\n if (left < 0) {\n break;\n }\n\n switch(tlv_t) {\n // FT_TLV_VENDOR\n case 0x1:\n internalHeader.setVendor(buf.getUnsignedShort(tlv_v));\n break;\n // FT_TLV_EX_VER\n case 0x2:\n internalHeader.setFlowVersion((short) buf.getUnsignedShort(tlv_v));\n break;\n // FT_TLV_AGG_VER\n case 0x3:\n internalHeader.setAggVersion(buf.getUnsignedByte(tlv_v));\n break;\n // FT_TLV_AGG_METHOD\n case 0x4:\n internalHeader.setAggMethod(buf.getUnsignedByte(tlv_v));\n break;\n // FT_TLV_EXPORTER_IP\n case 0x5:\n internalHeader.setExporterIP(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_CAP_START\n case 0x6:\n internalHeader.setStartCapture(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_CAP_END\n case 0x7:\n internalHeader.setEndCapture(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_HEADER_FLAGS\n case 0x8:\n internalHeader.setHeaderFlags(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_ROT_SCHEDULE\n case 0x9:\n internalHeader.setRotation(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_FLOW_COUNT\n case 0xA:\n internalHeader.setNumFlows(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_FLOW_LOST\n case 0xB:\n internalHeader.setNumDropped(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_FLOW_MISORDERED\n case 0xC:\n internalHeader.setNumMisordered(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_PKT_CORRUPT\n case 0xD:\n internalHeader.setNumCorrupt(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_SEQ_RESET\n case 0xE:\n internalHeader.setSeqReset(buf.getUnsignedInt(tlv_v));\n break;\n // FT_TLV_CAP_HOSTNAME\n case 0xF:\n pr = new byte[tlv_l];\n buf.getBytes(tlv_v, pr, 0, pr.length);\n // Expected null-terminated string\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n\n internalHeader.setHostname(new String(pr, 0, pr.length - 1));\n break;\n // FT_TLV_COMMENTS\n case 0x10:\n pr = new byte[tlv_l];\n buf.getBytes(tlv_v, pr, 0, pr.length);\n // Expected null-terminated string\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n internalHeader.setComments(new String(pr, 0, pr.length - 1));\n break;\n // FT_TLV_IF_NAME\n case 0x11:\n // uint32_t, uint16_t, string:\n // - IP address of device\n // - ifIndex of interface\n // - interface name\n long ip = buf.getUnsignedInt(tlv_v);\n int ifIndex = buf.getUnsignedShort(tlv_v + 4);\n pr = new byte[tlv_l - 4 - 2];\n buf.getBytes(tlv_v + 4 + 2, pr, 0, pr.length);\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n internalHeader.setInterfaceName(ip, ifIndex, new String(pr, 0, pr.length - 1));\n break;\n // FT_TLV_IF_ALIAS\n case 0x12:\n // uint32_t, uint16_t, uint16_t, string:\n // - IP address of device\n // - ifIndex count\n // - ifIndex of interface (count times)\n // - alias name\n long aliasIP = buf.getUnsignedInt(tlv_v);\n int aliasIfIndexCnt = buf.getUnsignedShort(tlv_v + 4);\n int aliasIfIndex = buf.getUnsignedShort(tlv_v + 4 + 2);\n pr = new byte[tlv_l - 4 - 2 - 2];\n buf.getBytes(tlv_v + 4 + 2 + 2, pr, 0, pr.length);\n if (pr[pr.length - 1] != 0) {\n throw new UnsupportedOperationException(\"Char sequence is not null-terminated\");\n }\n\n internalHeader.setInterfaceAlias(aliasIP, aliasIfIndexCnt, aliasIfIndex,\n new String(pr, 0, pr.length - 1));\n break;\n // Case 0x0\n default:\n break;\n }\n }\n buf = null;\n pr = null;\n }\n return internalHeader;\n }", "public Response getChainHead() {\n return (!blockList.isEmpty() ? blockList.get(0) : null);\n }", "private void prepare()\n {\n MazeBlock mazeBlock = new MazeBlock();\n addObject(mazeBlock,25,25);\n MazeBlock mazeBlock1 = new MazeBlock();\n addObject(mazeBlock1,25,75);\n MazeBlock mazeBlock2= new MazeBlock();\n addObject(mazeBlock2,75,75);\n MazeBlock mazeBlock3= new MazeBlock();\n addObject(mazeBlock3,75,125);\n MazeBlock mazeBlock4= new MazeBlock();\n addObject(mazeBlock4,125,125);\n MazeBlock mazeBlock5= new MazeBlock();\n addObject(mazeBlock5,175,125);\n MazeBlock mazeBlock6= new MazeBlock();\n addObject(mazeBlock6,225,125);\n MazeBlock mazeBlock7= new MazeBlock();\n addObject(mazeBlock7,275,125);\n MazeBlock mazeBlock8= new MazeBlock();\n addObject(mazeBlock8,275,175);\n MazeBlock mazeBlock9= new MazeBlock();\n addObject(mazeBlock9,275,225);\n MazeBlock mazeBlock10= new MazeBlock();\n addObject(mazeBlock10,275,275);\n MazeBlock mazeBlock11= new MazeBlock();\n addObject(mazeBlock11,275,325);\n MazeBlock mazeBlock12= new MazeBlock();\n addObject(mazeBlock12,325,325);\n MazeBlock mazeBlock13= new MazeBlock();\n addObject(mazeBlock13,375,325);\n MazeBlock mazeBlock14= new MazeBlock();\n addObject(mazeBlock14,425,275);\n MazeBlock mazeBlock15= new MazeBlock();\n addObject(mazeBlock15,475,275);\n MazeBlock mazeBlock16= new MazeBlock();\n addObject(mazeBlock16,125,325);\n MazeBlock mazeBlock17= new MazeBlock();\n addObject(mazeBlock17,125,375);\n MazeBlock mazeBlock18= new MazeBlock();\n addObject(mazeBlock18,125,425);\n MazeBlock mazeBlock19= new MazeBlock();\n addObject(mazeBlock19,175,425);\n MazeBlock mazeBlock20= new MazeBlock();\n addObject(mazeBlock20,225,425);\n\n EnemyFlyer enemyFlyer = new EnemyFlyer();\n addObject(enemyFlyer,29,190);\n EnemyFlyer enemyFlyer3 = new EnemyFlyer();\n addObject(enemyFlyer3,286,389);\n WalkingEnemy walkingEnemy = new WalkingEnemy(true);\n addObject(walkingEnemy,253,293);\n walkingEnemy.setLocation(125,275);\n WalkingEnemy walkingEnemy2 = new WalkingEnemy(false);\n addObject(walkingEnemy2,28,81);\n walkingEnemy2.setLocation(170,82);\n FinalLevel finalLevel = new FinalLevel();\n addObject(finalLevel, 508, 45);\n Hero hero = new Hero();\n addObject(hero,62,499);\n }", "@Override\n \t/**\n \t * Called when the block is placed in the world.\n \t */\n \tpublic void auxiliaryOnBlockPlacedBy(TECarpentersBlock TE, World world, int x, int y, int z, EntityLivingBase entityLiving, ItemStack itemStack)\n \t{\n \t\tif (!entityLiving.isSneaking())\n \t\t{\n \t\t\t/* Match adjacent collapsible quadrant heights. */\n \t\t\t\n \t\t\tTECarpentersBlock TE_XN = world.getBlockId(x - 1, y, z) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x - 1, y, z) : null;\n \t\t\tTECarpentersBlock TE_XP = world.getBlockId(x + 1, y, z) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x + 1, y, z) : null;\n \t\t\tTECarpentersBlock TE_ZN = world.getBlockId(x, y, z - 1) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x, y, z - 1) : null;\n \t\t\tTECarpentersBlock TE_ZP = world.getBlockId(x, y, z + 1) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x, y, z + 1) : null;\n \n \t\t\tif (TE_XN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNN, Collapsible.getQuadHeight(TE_XN, Collapsible.QUAD_XZPN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNP, Collapsible.getQuadHeight(TE_XN, Collapsible.QUAD_XZPP));\n \t\t\t}\n \t\t\tif (TE_XP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPN, Collapsible.getQuadHeight(TE_XP, Collapsible.QUAD_XZNN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPP, Collapsible.getQuadHeight(TE_XP, Collapsible.QUAD_XZNP));\n \t\t\t}\n \t\t\tif (TE_ZN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNN, Collapsible.getQuadHeight(TE_ZN, Collapsible.QUAD_XZNP));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPN, Collapsible.getQuadHeight(TE_ZN, Collapsible.QUAD_XZPP));\n \t\t\t}\n \t\t\tif (TE_ZP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNP, Collapsible.getQuadHeight(TE_ZP, Collapsible.QUAD_XZNN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPP, Collapsible.getQuadHeight(TE_ZP, Collapsible.QUAD_XZPN));\n \t\t\t}\n \t\t}\n \t}", "public StateHeader() { // for externalization\r\n }", "String getBlockPolicy();", "public ContextBodyBlock() {\n super();\n\r\n setChild(new List(), 0);\r\n setChild(new List(), 1);\r\n setChild(new List(), 2);\r\n\r\n }", "public PUKEHandlerCallBanker_ABZ_FOUR(){\r\n\t}", "public String generateBlock(){\n return null;\n }", "Integer add(@Param(\"tableName\") String tableName, @Param(\"block\") TbBlock tbBlock);", "public HeaderDescriptor() \n {\n super();\n xmlName = \"header\";\n elementDefinition = true;\n \n //-- set grouping compositor\n setCompositorAsSequence();\n org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;\n org.exolab.castor.mapping.FieldHandler handler = null;\n org.exolab.castor.xml.FieldValidator fieldValidator = null;\n //-- initialize attribute descriptors\n \n //-- initialize element descriptors\n \n //-- _transactionId\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(long.class, \"_transactionId\", \"transaction-id\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n if(!target.hasTransactionId())\n return null;\n return new java.lang.Long(target.getTransactionId());\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n // ignore null values for non optional primitives\n if (value == null) return;\n \n target.setTransactionId( ((java.lang.Long)value).longValue());\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _transactionId\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n LongValidator typeValidator = new LongValidator();\n typeValidator .setMinInclusive(-1L);\n typeValidator .setMaxInclusive(4294967295L);\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n //-- _opName\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, \"_opName\", \"op-name\", org.exolab.castor.xml.NodeType.Element);\n desc.setImmutable(true);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getOpName();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setOpName( (java.lang.String) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _opName\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n StringValidator typeValidator = new StringValidator();\n typeValidator.setWhiteSpace(\"preserve\");\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n //-- _opType\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.opengate.webservice.xml.types.OpTypeType.class, \"_opType\", \"op-type\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getOpType();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setOpType( (com.opengate.webservice.xml.types.OpTypeType) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n handler = new org.exolab.castor.xml.handlers.EnumFieldHandler(com.opengate.webservice.xml.types.OpTypeType.class, handler);\n desc.setImmutable(true);\n desc.setHandler(handler);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _opType\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _identifier\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, \"_identifier\", \"identifier\", org.exolab.castor.xml.NodeType.Element);\n desc.setImmutable(true);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getIdentifier();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setIdentifier( (java.lang.String) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _identifier\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n StringValidator typeValidator = new StringValidator();\n typeValidator.setWhiteSpace(\"preserve\");\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n //-- _connectorType\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.opengate.webservice.xml.types.ConnectorTypeType.class, \"_connectorType\", \"connector-type\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getConnectorType();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setConnectorType( (com.opengate.webservice.xml.types.ConnectorTypeType) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n handler = new org.exolab.castor.xml.handlers.EnumFieldHandler(com.opengate.webservice.xml.types.ConnectorTypeType.class, handler);\n desc.setImmutable(true);\n desc.setHandler(handler);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _connectorType\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _timestamp\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.util.Date.class, \"_timestamp\", \"timestamp\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getTimestamp();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setTimestamp( (java.util.Date) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return new java.util.Date();\n }\n };\n handler = new org.exolab.castor.xml.handlers.DateFieldHandler(handler);\n desc.setImmutable(true);\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _timestamp\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _notification\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.opengate.webservice.xml.Notification.class, \"_notification\", \"notification\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n return target.getNotification();\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n target.setNotification( (com.opengate.webservice.xml.Notification) value);\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return new com.opengate.webservice.xml.Notification();\n }\n };\n desc.setHandler(handler);\n desc.setRequired(true);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _notification\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n fieldValidator.setMinOccurs(1);\n { //-- local scope\n }\n desc.setValidator(fieldValidator);\n //-- _ttl\n desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, \"_ttl\", \"ttl\", org.exolab.castor.xml.NodeType.Element);\n handler = new org.exolab.castor.xml.XMLFieldHandler() {\n public java.lang.Object getValue( java.lang.Object object ) \n throws IllegalStateException\n {\n Header target = (Header) object;\n if(!target.hasTtl())\n return null;\n return new java.lang.Integer(target.getTtl());\n }\n public void setValue( java.lang.Object object, java.lang.Object value) \n throws IllegalStateException, IllegalArgumentException\n {\n try {\n Header target = (Header) object;\n // if null, use delete method for optional primitives \n if (value == null) {\n target.deleteTtl();\n return;\n }\n target.setTtl( ((java.lang.Integer)value).intValue());\n }\n catch (java.lang.Exception ex) {\n throw new IllegalStateException(ex.toString());\n }\n }\n public java.lang.Object newInstance( java.lang.Object parent ) {\n return null;\n }\n };\n desc.setHandler(handler);\n desc.setMultivalued(false);\n addFieldDescriptor(desc);\n \n //-- validation code for: _ttl\n fieldValidator = new org.exolab.castor.xml.FieldValidator();\n { //-- local scope\n IntegerValidator typeValidator= new IntegerValidator();\n typeValidator.setMinInclusive(-1);\n typeValidator.setMaxInclusive(2147483647);\n fieldValidator.setValidator(typeValidator);\n }\n desc.setValidator(fieldValidator);\n }", "public Header() {\n\t\tsuper(tag(Header.class)); \n\t}", "JStaticBlock(int line, JBlock body) {\r\n\t\tsuper(line);\r\n\t\tthis.block = body;\r\n\t}", "private void setBlock(Block block) {\r\n this.block = block;\r\n }", "private void addBlock(Block one)\n\t{\n\t\tgetChildren().add(one);\n\t\tblocks1.add(one);\n\t\tblocks2.add(one);\n\t}", "public abstract Builder headers(String... paramVarArgs);", "@Override\n public CssDeclarationBlockNode getBlock() {\n return (CssDeclarationBlockNode) super.getBlock();\n }" ]
[ "0.65362525", "0.6324775", "0.6176733", "0.61212087", "0.601791", "0.59855694", "0.5864748", "0.58378124", "0.57682884", "0.5661358", "0.5647429", "0.5638517", "0.55907094", "0.55702007", "0.5528382", "0.55271727", "0.5516773", "0.5514487", "0.54754436", "0.5469865", "0.5463112", "0.54285717", "0.5417753", "0.54145324", "0.54064614", "0.5393529", "0.5378317", "0.5361045", "0.5334075", "0.5327322", "0.5297759", "0.5272233", "0.5263439", "0.5259993", "0.52434784", "0.52242213", "0.5215842", "0.52132875", "0.5203003", "0.51634663", "0.51618683", "0.51487607", "0.5143283", "0.51321495", "0.5129379", "0.51238644", "0.51219326", "0.5118113", "0.51169556", "0.51135504", "0.5111057", "0.50997144", "0.509832", "0.5098082", "0.509146", "0.50705093", "0.5067989", "0.50656676", "0.5060835", "0.5060584", "0.5056414", "0.5056029", "0.50523734", "0.5038857", "0.503734", "0.502117", "0.5019644", "0.5017834", "0.5011658", "0.5006816", "0.50052017", "0.50033504", "0.49973807", "0.49759915", "0.49734023", "0.4969096", "0.49582994", "0.4956953", "0.49504277", "0.49501744", "0.49490884", "0.49468726", "0.49466774", "0.4945364", "0.49436888", "0.49396604", "0.49386337", "0.49311313", "0.4931083", "0.4923994", "0.49173212", "0.49152645", "0.49109426", "0.49074978", "0.49008152", "0.4899701", "0.48887804", "0.48838714", "0.48810267", "0.48796466" ]
0.67494804
0
Instantiate Block Header Functions for committed seal.
public static BlockHeaderFunctions forCommittedSeal(final BftExtraDataCodec bftExtraDataCodec) { return new BftBlockHeaderFunctions( h -> new BftBlockHashing(bftExtraDataCodec).calculateDataHashForCommittedSeal(h), bftExtraDataCodec); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Block createBlock();", "DefineBlock createDefineBlock();", "TestFirstBlock createTestFirstBlock();", "CommunityProfileEventHeader()\n {\n /*\n * Nothing to do.\n */\n }", "@Test\r\n\t\tpublic void testTableBlockTranslationAddsHeader() throws Exception {\r\n\t\t\t\r\n\t\t\tTemplateTableBlockDTO block = createTableBlock(null, null);\r\n\t\t\tString name = \"name4444\";\r\n\t\t\tString section = \"section4444\";\r\n\t\t\tString summary = \"summary4444\";\r\n\t\t\tblock.setName(name);\r\n\t\t\tblock.setSection(section);\r\n\t\t\tblock.setSummary(summary);\r\n\t\t\t\r\n\t\t\tString result = block.appendFreeMarkerFormat(new StringBuilder(), \r\n\t\t\t new HashSet<Integer>(), createServiceForBlock(block)).toString();\r\n\t\t\t\r\n\t\t\tassertTrue(\"Name is not in header\", result.contains(name));\r\n\t\t\tassertTrue(\"Section is not in header\", result.contains(section));\r\n\t\t\tassertTrue(\"Summary is not in header\", result.contains(summary));\r\n\t\t}", "TestBlock createTestBlock();", "protected ASPBlock getBizWfBlock()\n {\n return headblk;\n }", "BAnyBlock createBAnyBlock();", "public BftBlockHeaderFunctions(\n final Function<BlockHeader, Hash> hashFunction, final BftExtraDataCodec bftExtraDataCodec) {\n this.hashFunction = hashFunction;\n this.bftExtraDataCodec = bftExtraDataCodec;\n }", "protected Block(int id, String hr_ident){\n super(id,hr_ident);\n\n //set some standards\n this.visible = true;\n this.solid = true;\n }", "public SignatureConfirmationHeaderBlock(String wsuId, String signatureValue) {\n this.wsuId = wsuId;\n this.signatureValue = signatureValue;\n }", "Block getHiveBlock();", "Header createHeader();", "TestLastBlock createTestLastBlock();", "StatementBlock createStatementBlock();", "abstract public void header();", "ActionBlock createActionBlock();", "private static void registerBlock(Block b)\n\t{\n\t}", "TeststepBlock createTeststepBlock();", "public Block(){\n\t\tthis.type = Code.Type.NULL;\n\t}", "public StateHeader() { // for externalization\r\n }", "RclBlock createRclBlock();", "AssertionBlock createAssertionBlock();", "@Override\n \t/**\n \t * Called when the block is placed in the world.\n \t */\n \tpublic void auxiliaryOnBlockPlacedBy(TECarpentersBlock TE, World world, int x, int y, int z, EntityLivingBase entityLiving, ItemStack itemStack)\n \t{\n \t\tif (!entityLiving.isSneaking())\n \t\t{\n \t\t\t/* Match adjacent collapsible quadrant heights. */\n \t\t\t\n \t\t\tTECarpentersBlock TE_XN = world.getBlockId(x - 1, y, z) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x - 1, y, z) : null;\n \t\t\tTECarpentersBlock TE_XP = world.getBlockId(x + 1, y, z) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x + 1, y, z) : null;\n \t\t\tTECarpentersBlock TE_ZN = world.getBlockId(x, y, z - 1) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x, y, z - 1) : null;\n \t\t\tTECarpentersBlock TE_ZP = world.getBlockId(x, y, z + 1) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x, y, z + 1) : null;\n \n \t\t\tif (TE_XN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNN, Collapsible.getQuadHeight(TE_XN, Collapsible.QUAD_XZPN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNP, Collapsible.getQuadHeight(TE_XN, Collapsible.QUAD_XZPP));\n \t\t\t}\n \t\t\tif (TE_XP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPN, Collapsible.getQuadHeight(TE_XP, Collapsible.QUAD_XZNN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPP, Collapsible.getQuadHeight(TE_XP, Collapsible.QUAD_XZNP));\n \t\t\t}\n \t\t\tif (TE_ZN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNN, Collapsible.getQuadHeight(TE_ZN, Collapsible.QUAD_XZNP));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPN, Collapsible.getQuadHeight(TE_ZN, Collapsible.QUAD_XZPP));\n \t\t\t}\n \t\t\tif (TE_ZP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNP, Collapsible.getQuadHeight(TE_ZP, Collapsible.QUAD_XZNN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPP, Collapsible.getQuadHeight(TE_ZP, Collapsible.QUAD_XZPN));\n \t\t\t}\n \t\t}\n \t}", "BranchingBlock createBranchingBlock();", "public void onNewBlock(long height);", "public Block createBlock(Position pos, List<Stmt> stmts) {\n return xnf.Block(pos, stmts);\n }", "private static UINode _createGlobalHeaders()\n {\n MarlinBean globalHeaders = new MarlinBean(FLOW_LAYOUT_NAME);\n\n //\n // add the client header\n //\n globalHeaders.addIndexedChild(\n ContextPoppingUINode.getUINode(NAVIGATION2_CHILD));\n\n //\n // create and add the default header\n //\n MarlinBean defaultHeader = new MarlinBean(GLOBAL_HEADER_NAME);\n\n defaultHeader.setAttributeValue(\n RENDERED_ATTR,\n new NotBoundValue(\n PdaHtmlLafUtils.createIsRenderedBoundValue(NAVIGATION2_CHILD)));\n\n globalHeaders.addIndexedChild(defaultHeader);\n\n return globalHeaders;\n }", "Block create(int xpos, int ypos);", "public ScheduleSheetSummaryBlock(WOContext context)\n {\n super(context);\n }", "public static BlockHeaderFunctions forOnchainBlock(final BftExtraDataCodec bftExtraDataCodec) {\n return new BftBlockHeaderFunctions(\n h -> new BftBlockHashing(bftExtraDataCodec).calculateHashOfBftBlockOnchain(h),\n bftExtraDataCodec);\n }", "public void\nsetHirBody( BlockStmt pHirBody );", "CodeBlock createCodeBlock();", "private void createBlock() {\n\t\tblock = new Block(mouseX, mouseY, 25, 25);\r\n\t\tblock.addObserver(this);\r\n\t\tblock.start();\r\n\t\t// System.out.println(\"Block created (at Model.createBlock)\");\r\n\t}", "private void defineDeathBlock() {\r\n BallRemover removeBall = new BallRemover(this);\r\n Rectangle death = new Rectangle(new Point(0, HEIGHT), WITH, 10);\r\n Block deathRegion = new Block(death, Color.black,0);\r\n deathRegion.addHitListener(removeBall);\r\n deathRegion.addToGame(this);\r\n }", "public Block( ) {\r\n _offSetRow = 0;\r\n _offSetCol = 0;\r\n _noOfRows = 0;\r\n _noOfCols = 0;\r\n }", "Tetrisblock()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }", "public abstract void appendBlock();", "stockFilePT102.StockHeaderDocument.StockHeader addNewStockHeader();", "public Block() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tthis.point_BlockTopRight = null;\r\n\t\tthis.point_BlockDownleft = null;\r\n\t\tthis.setpoint_BlockTopLeft(null);\r\n\t\tthis.IDBloack = 0;\r\n\t\tthis.type = \"\";\r\n\t}", "Tetrisblock2()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }", "public int h(Block parambec)\r\n/* 29: */ {\r\n/* 30: 44 */ return F();\r\n/* 31: */ }", "public BlockStmt\ngetInitiationPart();", "public Block()\n {\n this.blockType = BlockType.AIR;\n }", "public void seal();", "JStaticBlock(int line, JBlock body) {\r\n\t\tsuper(line);\r\n\t\tthis.block = body;\r\n\t}", "private TokenInitHoldFunction() {\n super(0, 2, \"setInitiativeHold\", \"getInitiativeHold\");\n }", "@Override\n public void onInitializeClient() {\n\t\tBlockEntityRendererRegistry.INSTANCE.register(TableBlockEntity.BLOCK_ENTITY_TYPE, TableBlockEntityRenderer::new);\n\n\t\tClientSpriteRegistryCallback.event(SpriteAtlasTexture.BLOCK_ATLAS_TEXTURE).register((atlasTexture, registry) ->\n\t\t{\n\t\t\tregistry.register(TableBlockEntityRenderer.BOOK_SPRITE_ID);\n\t\t});\n\t\t\n\t\tScreenRegistry.<CursedEnchantmentScreenHandler, CursedEnchantmentScreen>register(\n\t\t\tCursedEnchantingMain.CURSED_ENCHANTMENT_GUI,\n\t\t\t(gui, inventory, title) -> new CursedEnchantmentScreen(gui, inventory, title)\n\t\t);\n }", "private void registerFleshBlock(){\n\t\tgetVariantBuilder(OrganicTechBlocks.FLESH_BLOCK.get()).forAllStates(state -> {\n\t\t\t//Generate the set of rotations for a flesh block w/o eyes\n\t\t\tConfiguredModel[] rotations = ConfiguredModel.allRotations(models().cubeAll(\"flesh_block\", modLoc(BLOCK_DIR + \"/flesh_block\")), false, 4);\n\t\t\t//then append the rotations for one eye\n\t\t\trotations = ArrayUtils.addAll(rotations, ConfiguredModel.allRotations(models().cubeAll(\"flesh_block_1eye\", modLoc(BLOCK_DIR + \"/flesh_block_1eye\")), false, 1));\n\t\t\t//then append the rotations for two eyes and return\n\t\t\treturn ArrayUtils.addAll(rotations, ConfiguredModel.allRotations(models().cubeAll(\"flesh_block_2eye\", modLoc(BLOCK_DIR + \"/flesh_block_2eye\")), false, 1));\n\t\t});\n\t}", "public HeaderFragment() {}", "public void setBlockdef(BlocksFromSymbolsFactory levelBlockDef) {\n this.blockDef = levelBlockDef;\n }", "phaseI.Hdfs.BlockLocations getNewBlock();", "@Override\n\tpublic void setupHeaderKeyFields(EquationStandardTransaction transaction)\n\t{\n\n\t}", "@Override\r\n\tpublic void blockId() {\n\t\t\r\n\t\tSystem.out.println(\"Here you have information about blockID\");\r\n\t\t\r\n\t}", "private void insertHeader(StringBuilder sb) {\n String id = \"ID\";\n String name = \"Name\";\n String objects = \"Objects collected\";\n sb.append(id);\n insertSpacing(sb, id);\n sb.append(name);\n insertSpacing(sb, name);\n sb.append(objects);\n insertSpacing(sb, objects);\n sb.append(NEWLINE);\n sb.append(\"---------------------------------------------------------------\");\n sb.append(NEWLINE);\n }", "public Block(){\r\n\t\tthis.altitude = 0;\r\n\t\tthis.river = false;\t\r\n\t\tthis.ocean = false;\r\n\t\tthis.river = false;\r\n\t\tborder = false;\r\n\t}", "public void createContract() {\n\r\n\t}", "public DDLambda(Headerable req, Context cxt) {\n this();\n this.enhanced = checkEnhanced();\n recordEnhanced(INVOCATION, cxt);\n this.tracing = new Tracing(req);\n this.tracing.submitSegment();\n addTraceContextToMDC();\n startSpan(req.getHeaders(), cxt);\n }", "BlockConstant createBlockConstant();", "private HeaderUtil() {}", "BODY createBODY();", "public void testConstructors()\n throws IOException\n {\n HeaderBlockWriter block = new HeaderBlockWriter();\n ByteArrayOutputStream output = new ByteArrayOutputStream(512);\n\n block.writeBlocks(output);\n byte[] copy = output.toByteArray();\n byte[] expected =\n {\n ( byte ) 0xD0, ( byte ) 0xCF, ( byte ) 0x11, ( byte ) 0xE0,\n ( byte ) 0xA1, ( byte ) 0xB1, ( byte ) 0x1A, ( byte ) 0xE1,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x3B, ( byte ) 0x00, ( byte ) 0x03, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0x09, ( byte ) 0x00,\n ( byte ) 0x06, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x10, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF\n };\n\n assertEquals(expected.length, copy.length);\n for (int j = 0; j < 512; j++)\n {\n assertEquals(\"testing byte \" + j, expected[ j ], copy[ j ]);\n }\n\n // verify we can read a 'good' HeaderBlockWriter (also test\n // getPropertyStart)\n block.setPropertyStart(0x87654321);\n output = new ByteArrayOutputStream(512);\n block.writeBlocks(output);\n assertEquals(0x87654321,\n new HeaderBlockReader(new ByteArrayInputStream(output\n .toByteArray())).getPropertyStart());\n }", "public static void registerBlockEntities()\n\t{\n\t}", "public void preDefine()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\theadblk = mgr.newASPBlock(\"HEAD\");\n\n\t\theadblk.disableDocMan();\n\n\t\theadblk.addField(\"OBJID\").\n setHidden();\n\n headblk.addField(\"OBJVERSION\").\n setHidden();\n \n headblk.addField(\"OBJSTATE\").\n setHidden();\n \n headblk.addField(\"OBJEVENTS\").\n setHidden();\n\n\t\theadblk.addField(\"LU_NAME\").\n\t\tsetMandatory().\n\t\tsetMaxLength(8).\n\t\tsetReadOnly().\n\t\tsetHidden();\n\n\t\theadblk.addField(\"KEY_REF\").\n\t\tsetMandatory().\n\t\tsetMaxLength(600).\n\t\tsetReadOnly().\n\t\tsetHidden();\n\n\t\theadblk.addField(\"VIEW_NAME\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\theadblk.addField(\"DOC_COUNT\").\n\t\tsetHidden();\n\n\t\theadblk.addField(\"SLUDESC\").\n\t\tsetSize(20).\n\t\tsetMaxLength(2000).\n\t\tsetReadOnly().\n\t\tsetFunction(\"OBJECT_CONNECTION_SYS.GET_LOGICAL_UNIT_DESCRIPTION(:LU_NAME)\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCESLUDESCRIPTION: Object\");\n\n\t\theadblk.addField(\"SINSTANCEDESC\").\n\t\tsetSize(20).\n\t\tsetMaxLength(2000).\n\t\tsetReadOnly().\n\t\tsetFunction(\"OBJECT_CONNECTION_SYS.GET_INSTANCE_DESCRIPTION(:LU_NAME,'',:KEY_REF)\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCESINSTANCEDESC: Object Key\");\n\n\t\theadblk.addField(\"DOC_OBJECT_DESC\").\n\t\tsetReadOnly().\n\t\tsetMaxLength(200).\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDOCOBJECTDESC: Object Desc\");\n\n\t\theadblk.addField(\"STATE\").\n setReadOnly().\n setSize(10).\n setLabel(\"DOCMAWDOCREFERENCESTATE: State\");\n\t\t\n\t\theadblk.addField(\"INFO\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\theadblk.addField(\"ATTRHEAD\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\theadblk.addField(\"ACTION\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\theadblk.setView(\"DOC_REFERENCE\");\n\t\theadblk.defineCommand(\"DOC_REFERENCE_API\",\"New__,Modify__,Remove__,Set_Lock__,Set_Unlock__\");\n\n\t\theadset = headblk.getASPRowSet();\n\n\t\theadbar = mgr.newASPCommandBar(headblk);\n\t\theadbar.disableCommand(headbar.FIND);\n\t\theadbar.disableCommand(headbar.DUPLICATEROW);\n\t\theadbar.disableCommand(headbar.NEWROW);\n\t\theadbar.disableCommand(headbar.EDITROW);\n\t\theadbar.disableCommand(headbar.DELETE);\n\t\theadbar.disableCommand(headbar.BACK);\n\n headbar.addSecureCustomCommand(\"SetLock\", \"DOCMAWDOCREFERENCESETLOCK: Lock\", \"DOC_REFERENCE_API.Set_Lock__\");\n headbar.addSecureCustomCommand(\"SetUnlock\", \"DOCMAWDOCREFERENCESETUNLOCK: Unlock\", \"DOC_REFERENCE_API.Set_Unlock__\");\n\n headbar.addCommandValidConditions(\"SetLock\", \"OBJSTATE\", \"Enable\", \"Unlocked\");\n headbar.addCommandValidConditions(\"SetUnlock\", \"OBJSTATE\", \"Enable\", \"Locked\");\n \n\t\theadtbl = mgr.newASPTable(headblk);\n\t\theadtbl.setTitle(mgr.translate(\"DOCMAWDOCREFERENCECONDOCU: Connected Documents\"));\n\n\n\t\theadlay = headblk.getASPBlockLayout();\n\t\theadlay.setDialogColumns(2);\n\t\theadlay.setDefaultLayoutMode(headlay.SINGLE_LAYOUT);\n\n\n\t\t//\n\t\t// Connected documents\n\t\t//\n\n\t\titemblk = mgr.newASPBlock(\"ITEM\");\n\n\t\titemblk.disableDocMan();\n\n\t\titemblk.addField(\"ITEM_OBJID\").\n\t\tsetHidden().\n\t\tsetDbName(\"OBJID\");\n\n\t\titemblk.addField(\"ITEM_OBJVERSION\").\n\t\tsetHidden().\n\t\tsetDbName(\"OBJVERSION\");\n\n\t\titemblk.addField(\"ITEM_LU_NAME\").\n\t\tsetMandatory().\n\t\tsetHidden().\n\t\tsetDbName(\"LU_NAME\");\n\n\t\titemblk.addField(\"ITEM_KEY_REF\").\n\t\tsetMandatory().\n\t\tsetHidden().\n\t\tsetDbName(\"KEY_REF\");\n\t\t\n\t\titemblk.addField(\"VIEW_FILE\").\n setFunction(\"''\").\n setReadOnly().\n unsetQueryable().\n setLabel(\"DOCMAWDOCREFERENCEVIEWFILE: View File\").\n setHyperlink(\"../docmaw/EdmMacro.page?PROCESS_DB=VIEW&DOC_TYPE=ORIGINAL\", \"DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\", \"NEWWIN\").\n setAsImageField();\n\t\t\n\t\titemblk.addField(\"CHECK_IN_FILE\").\n setFunction(\"''\").\n setReadOnly().\n unsetQueryable().\n setLabel(\"DOCMAWDOCREFERENCECHECKINFILE: Check In File\").\n setHyperlink(\"../docmaw/EdmMacro.page?PROCESS_DB=CHECKIN&DOC_TYPE=ORIGINAL\", \"DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\", \"NEWWIN\").\n setAsImageField();\n\n\t\titemblk.addField(\"DOC_CLASS\").\n\t\tsetSize(10).\n\t\tsetMaxLength(12).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetReadOnly().\n\t\tsetDynamicLOV(\"DOC_CLASS\").\n\t\tsetLOVProperty(\"TITLE\",mgr.translate(\"DOCMAWDOCREFERENCEDOCCLASS1: List of Document Class\")).\n\t\tsetCustomValidation(\"DOC_CLASS\",\"SDOCCLASSNAME,KEEP_LAST_DOC_REV,KEEP_LAST_DOC_REV_DB\").//Bug Id 85361\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDOCCLASS: Doc Class\");\n\n\t\titemblk.addField(\"SDOCCLASSNAME\").\n\t\tsetDbName(\"DOC_NAME\").\n\t\tsetSize(10).\n\t\tsetReadOnly().\n\t\tsetLabel(\"DOCMAWDOCREFERENCESDOCCLASSNAME: Doc Class Desc\");\n\t\t\n\t\titemblk.addField(\"SUB_CLASS\").\n setSize(10).\n setReadOnly().\n setHidden().\n setDynamicLOV(\"DOC_SUB_CLASS\",\"DOC_CLASS\").\n setLabel(\"DOCMAWDOCREFERENCESSUBCLASS: Sub Class\");\n\t\t\n\t\titemblk.addField(\"SUB_CLASS_NAME\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESSUBCLASSNAME: Sub Class Name\");\n\n\t\titemblk.addField(\"DOC_CODE\").\n setSize(20).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESDOCCODE: Doc Code\");\n\t\t\n\t\titemblk.addField(\"INNER_DOC_CODE\").\n setSize(20).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESINNERDOCCODE: Inner Doc Code\");\n\t\t\n\t\titemblk.addField(\"SDOCTITLE\").\n\t\tsetDbName(\"DOC_TITLE\").\n\t\tsetSize(40).\n\t\tsetReadOnly().\n\t\tsetFieldHyperlink(\"DocIssue.page\", \"PAGE_URL\", \"DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCESDOCTITLE: Title\");\n\n\t\titemblk.addField(\"DOC_REV\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetReadOnly().\n\t\tsetDynamicLOV(\"DOC_ISSUE\",\"DOC_CLASS,DOC_NO,DOC_SHEET\").\n\t\tsetLOVProperty(\"TITLE\",mgr.translate(\"DOCMAWDOCREFERENCEDOCREV1: List of Document Revision\")).\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDOCREV: Doc Rev\");\n\t\t\n\t\titemblk.addField(\"DOC_STATE\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESDOCSTATE: Doc State\");\n\t\t\n\t\titemblk.addField(\"CONNECTED_PERSON\").\n setSize(10).\n setReadOnly().\n setDynamicLOV(\"PERSON_INFO_LOV\").\n setLabel(\"DOCMAWDOCREFERENCECONNECTEDPERSON: Connected Person\");\n\t\t\n\t\titemblk.addField(\"CONNECTED_PERSON_NAME\").\n setSize(10).\n setReadOnly().\n setFunction(\"Person_Info_API.Get_Name(:CONNECTED_PERSON)\").\n setLabel(\"DOCMAWDOCREFERENCECONNECTEDPERSONNAME: Connected Person Name\");\n\t\tmgr.getASPField(\"CONNECTED_PERSON\").setValidation(\"CONNECTED_PERSON_NAME\");\n\t\t\n\t\titemblk.addField(\"CONNECTED_DATE\", \"Date\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCECONNECTEDDATE: Connected Date\");\n\t\t\n\t\titemblk.addField(\"SEND_UNIT_NAME\").\n setSize(20).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESSENDUNITNAME: Send Unit Name\");\n\t\t\n\t\titemblk.addField(\"SIGN_PERSON\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESSIGNPERSON: Sign Person\");\n\t\t\n\t\titemblk.addField(\"COMPLETE_DATE\", \"Date\").\n setSize(10).\n setReadOnly().\n setLabel(\"DOCMAWDOCREFERENCESCOMPLETEDATE: Complete Date\");\n\n\t\titemblk.addField(\"DOCTSATUS\").\n\t\tsetSize(20).\n\t\tsetReadOnly().\n\t\tsetFunction(\"substr(DOC_ISSUE_API.Get_State(DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV),1,200)\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDOCTSATUS: Status\");\n\n\t\t//\n\t\t// Hidden Fields\n\t\t//\n\t\t\n\t\titemblk.addField(\"DOC_NO\").\n setSize(20).\n setMaxLength(120).\n setMandatory().\n setUpperCase().\n setHidden().\n setLOV(\"DocNumLov.page\",\"DOC_CLASS\").\n setCustomValidation(\"DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\",\"SDOCTITLE,DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV,SDOCCLASSNAME,KEEP_LAST_DOC_REV,KEEP_LAST_DOC_REV_DB\").//Bug Id 85361\n setLOVProperty(\"TITLE\",mgr.translate(\"DOCMAWDOCREFERENCEDOCNO1: List of Document No\")).\n setLabel(\"DOCMAWDOCREFERENCEDOCNO: Doc No\");\n\t\t\n\t\titemblk.addField(\"DOC_SHEET\").\n setSize(20).\n //Bug 61028, Start\n setMaxLength(10).\n //Bug 61028, End\n setMandatory().\n setUpperCase().\n setHidden().\n setDynamicLOV(\"DOC_ISSUE_LOV1\",\"DOC_CLASS,DOC_NO,DOC_REV\").\n setLOVProperty(\"TITLE\", mgr.translate(\"DOCMAWDOCREFERENCEDOCSHEET1: List of Doc Sheets\")).\n setLabel(\"DOCMAWDOCREFERENCEDOCSHEET: Doc Sheet\");\n\t\t\n\t\titemblk.addField(\"CATEGORY\").\n setSize(20).\n setMaxLength(5).\n setUpperCase().\n setHidden().\n setDynamicLOV(\"DOC_REFERENCE_CATEGORY\").\n setLOVProperty(\"TITLE\",mgr.translate(\"DOCMAWDOCREFERENCEDOCAT: List of Document Category\")).\n setLabel(\"DOCMAWDOCREFERENCECATEGORY: Association Category\");\n\n itemblk.addField(\"COPY_FLAG\").\n setSize(20).\n setMandatory().\n setSelectBox().\n setHidden().\n enumerateValues(\"Doc_Reference_Copy_Status_API\").\n setLabel(\"DOCMAWDOCREFERENCECOPYFLAG: Copy Status\");\n\n itemblk.addField(\"KEEP_LAST_DOC_REV\").\n setSize(20).\n setMaxLength(100).\n setMandatory().\n setSelectBox().\n setHidden().\n unsetSearchOnDbColumn().\n enumerateValues(\"Always_Last_Doc_Rev_API\").\n setCustomValidation(\"KEEP_LAST_DOC_REV,DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV\",\"DOC_REV,KEEP_LAST_DOC_REV_DB\").//Bug Id 85361\n setLabel(\"DOCMAWDOCREFERENCEKEEPLASTDOCREV: Update Revision\");\n\n //Bug Id 85361. Start\n itemblk.addField(\"KEEP_LAST_DOC_REV_DB\").\n setHidden().\n unsetSearchOnDbColumn().\n setFunction(\"Always_Last_Doc_Rev_API.Encode(:KEEP_LAST_DOC_REV)\");\n //Bug Id 85361. End\n\n itemblk.addField(\"SURVEY_LOCKED_FLAG\").\n setSize(20).\n setMandatory().\n setSelectBox().\n setHidden().\n enumerateValues(\"LOCK_DOCUMENT_SURVEY_API\").\n unsetSearchOnDbColumn().\n //Bug 57719, Start\n setCustomValidation(\"SURVEY_LOCKED_FLAG\",\"SURVEY_LOCKED_FLAG_DB\").\n //Bug 57719, End\n setLabel(\"DOCMAWDOCREFERENCESURVEYLOCKEDFLAG: Doc Connection Status\");\n\t\t\n\t\titemblk.addField(\"SURVEY_LOCKED_FLAG_DB\").\n setHidden().\n unsetSearchOnDbColumn().\n setFunction(\"Lock_Document_Survey_Api.Encode(:SURVEY_LOCKED_FLAG)\");\n\t\t\n\t\titemblk.addField(\"FILE_TYPE\").\n\t\tsetHidden().\n\t\tsetFunction(\"EDM_FILE_API.GET_FILE_TYPE(DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV,'ORIGINAL')\");\n\n\t\t//Bug Id 67336, start\n\t\titemblk.addField(\"STRUCTURE\").\n\t\tsetHidden().\n\t\tsetFunction(\"DOC_TITLE_API.Get_Structure_(DOC_CLASS,DOC_NO)\");\n\t\t//Bug Id 67336, end\n\n\t\t// Bug Id 89939, start\n\t\titemblk.addField(\"CAN_ADD_TO_BC\").\n\t\tsetHidden().\n\t\tsetFunction(\"DOC_ISSUE_API.can_add_to_bc(DOC_CLASS, DOC_NO, DOC_SHEET, DOC_REV)\");\n\t\t\n\t\titemblk.addField(\"BRIEFCASE_NO\"). \n\t\tsetHidden().\n\t\tsetDynamicLOV(\"DOC_BC_LOV1\").\n\t\tsetFunction(\"DOC_BRIEFCASE_ISSUE_API.GET_BRIEFCASE_NO(DOC_CLASS,DOC_NO,DOC_SHEET,DOC_REV)\");\n\t\t\n\t\titemblk.addField(\"EDMSTATUS\").\n\t\tsetHidden().\n\t\tsetFunction(\"EDM_FILE_API.GET_DOC_STATE_NO_USER(DOC_CLASS, DOC_NO, DOC_SHEET, DOC_REV, 'ORIGINAL')\");\n\t\t\n\t\titemblk.addField(\"IS_ELE_DOC\").\n setCheckBox(\"FALSE,TRUE\").\n setFunction(\"EDM_FILE_API.Have_Edm_File(:DOC_CLASS,:DOC_NO,:DOC_SHEET,:DOC_REV)\").\n setReadOnly().\n setHidden().\n setLabel(\"DOCMAWDOCREFERENCEISELEDOC: Is Ele Doc\").\n setSize(5);\n\t\t\n\t\titemblk.addField(\"PAGE_URL\").\n setFunction(\"Doc_Issue_API.Get_Page_Url(:DOC_CLASS,:DOC_NO,:DOC_SHEET,:DOC_REV)\").\n setReadOnly().\n setHidden();\n\t\t\n\t\titemblk.addField(\"TEMP_EDIT_ACCESS\").\n\t\tsetFunction(\"NVL(Doc_Class_API.Get_Temp_Doc(:DOC_CLASS), 'FALSE') || NVL(Doc_Issue_API.Get_Edit_Access_For_Rep_(:DOC_CLASS,:DOC_NO,:DOC_SHEET,:DOC_REV), 'FALSE')\").\n\t\tsetHidden();\n\t\t\n\t\titemblk.addField(\"COMP_DOC\").\n setFunction(\"NVL(Doc_Class_API.Get_Comp_Doc(:DOC_CLASS), 'FALSE')\").\n setHidden();\n\t\t\n\t\titemblk.addField(\"TEMP_DOC\").\n setFunction(\"NVL(Doc_Class_API.Get_Temp_Doc(:DOC_CLASS), 'FALSE')\").\n setHidden();\n\t\t\n\t\titemblk.addField(\"DOC_OBJSTATE\").\n setFunction(\"DOC_ISSUE_API.Get_Objstate__(:DOC_CLASS,:DOC_NO,:DOC_SHEET,:DOC_REV)\").\n setHidden().\n setLabel(\"DOCMAWDOCISSUESTATE: Doc Status\");\n\t\t\n\t\titemblk.addField(\"CHECK_CONNECTED_PERSON\").\n\t\tsetFunction(\"DECODE(connected_person, Person_Info_API.Get_Id_For_User(Fnd_Session_API.Get_Fnd_User), 'TRUE', 'FALSE')\").\n\t\tsetReadOnly().\n\t\tsetLabel(\"DOCMAWDOCREFERENCECHECKCONNECTEDPERSON: Check Connected Person\").\n setHidden();\n\t\t\n\t\titemblk.addField(\"TRANSFERED\").\n\t\tsetCheckBox(\"FALSE,TRUE\").\n\t\tsetReadOnly().\n setHidden();\n\t\t// Bug Id 89939, end\n\n\t\titemblk.setView(\"DOC_REFERENCE_OBJECT\");\n\t\titemblk.defineCommand(\"DOC_REFERENCE_OBJECT_API\",\"New__,Modify__,Remove__\");\n\t\titemblk.setMasterBlock(headblk);\n\t\titemset = itemblk.getASPRowSet();\n\t\titembar = mgr.newASPCommandBar(itemblk);\n\t\titembar.enableCommand(itembar.FIND);\n\t\titembar.disableCommand(itembar.NEWROW);\n\t\titembar.disableCommand(itembar.DUPLICATEROW);\n\t\titembar.disableCommand(itembar.OVERVIEWEDIT);\n\t\titembar.disableCommand(itembar.DELETE);\n\t\titembar.disableCommand(itembar.EDITROW);\n\t\t\n\t\t//Bug 57719, Start, Added check on function checkLocked()\n\t\titembar.defineCommand(itembar.SAVERETURN,\"saveReturnITEM\",\"checkLocked()\");\n\t\t//Bug 57719, End\n\t\titembar.defineCommand(itembar.OKFIND, \"okFindITEMWithErrorMsg\");\n\t\titembar.defineCommand(itembar.COUNTFIND,\"countFindITEM\");\n\t\titembar.defineCommand(itembar.NEWROW, \"newRowITEM\");\n\t\titembar.defineCommand(itembar.SAVENEW, \"saveNewITEM\");\n\t\titembar.defineCommand(itembar.DELETE, \"deleteITEM\");\n\t\t\n\t\t//Bug Id 85487, Start\n\t\titembar.addCustomCommand(\"createNewDoc\", mgr.translate(\"DOCMAWDOCREFERENCECREATEDOC: Create New Document\"));\n\t\titembar.addSecureCustomCommand(\"createConnectDefDoc\", mgr.translate(\"DOCMAWDOCREFERENCECREATECONNDEFDOC: Create And Connect Document...\"), \"DOC_REFERENCE_OBJECT_API.New__\", \"../common/images/toolbar/\" + mgr.getLanguageCode() + \"/createConnectDefDoc.gif\", true);\n\t\t// itembar.setCmdConfirmMsg(\"createConnectDefDoc\", \"DOCMAWDOCREFERENCECREATECONNDEFDOCMSG: Confirm create and connect document?\");\n\t\titembar.addSecureCustomCommand(\"insertExistingDoc\",mgr.translate(\"DOCMAWDOCREFERENCEINEXISTDOC: Insert Existing Document...\"), \"DOC_REFERENCE_OBJECT_API.New__\", \"../common/images/toolbar/\" + mgr.getLanguageCode() + \"/addDocument.gif\", true);\n\t\titembar.addCustomCommandSeparator();\n\t\titembar.forceEnableMultiActionCommand(\"createNewDoc\");\n\t\titembar.forceEnableMultiActionCommand(\"createConnectDefDoc\");\n\t\titembar.forceEnableMultiActionCommand(\"insertExistingDoc\");\n\t\titembar.removeFromRowActions(\"insertExistingDoc\");\n\t\titembar.removeFromRowActions(\"createNewDoc\");\n\t\titembar.removeFromRowActions(\"createConnectDefDoc\");\n\t\t//Bug Id 85487, End\n\n\t\t//Bug Id 89939, start\n\t\t// itembar.addSecureCustomCommand(\"startAddingToBriefcase\",\"DOCMAWDOCREFERENCEADDTOBC: Add to Briefcase...\",\"DOC_BRIEFCASE_ISSUE_API.Add_To_Briefcase\"); \n\t\t// itembar.addCustomCommand(\"goToBriefcase\",\"DOCMAWDOCREFERENCEGOTOBC: Go to Briefcase\"); \n\t\t// itembar.addCommandValidConditions(\"goToBriefcase\",\"BRIEFCASE_NO\",\"Disable\",null);\n\t\t//Bug Id 89939, end\n\n\t\t// File Operations\n\t\t// itembar.addSecureCustomCommand(\"editDocument\",mgr.translate(\"DOCMAWDOCREFERENCEEDITDOC: Edit Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\titembar.addSecureCustomCommand(\"deleteDoc\",mgr.translate(\"DOCMAWDOCREFERENCEDELETEDOC: Delete\"),\"DOC_REFERENCE_OBJECT_API.Remove__\"); //Bug Id 70286\n\t\titembar.setCmdConfirmMsg(\"deleteDoc\", \"DOCMAWDOCREFERENCEDELETEDOCCONFIRM: Confirm delete document(s)?\");\n\t\titembar.addCustomCommandSeparator();\n\t\titembar.addSecureCustomCommand(\"viewOriginal\",mgr.translate(\"DOCMAWDOCREFERENCEVIEVOR: View Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\titembar.addSecureCustomCommand(\"checkInDocument\",mgr.translate(\"DOCMAWDOCREFERENCECHECKINDOC: Check In Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"undoCheckOut\",mgr.translate(\"DOCMAWDOCREFERENCEUNDOCHECKOUT: Undo Check Out Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"viewOriginalWithExternalViewer\",mgr.translate(\"DOCMAWDOCREFERENCEVIEWOREXTVIEWER: View Document with Ext. App\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"viewCopy\",mgr.translate(\"DOCMAWDOCREFERENCEVIEWCO: View Copy\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"printDocument\",mgr.translate(\"DOCMAWDOCREFERENCEPRINTDOC: Print Document\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"copyFileTo\",mgr.translate(\"DOCMAWDOCISSUECOPYFILETO: Copy File To...\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\t// itembar.addSecureCustomCommand(\"sendToMailRecipient\",mgr.translate(\"DOCMAWDOCREFERENCEWSENDMAIL: Send by E-mail...\"),\"DOCUMENT_ISSUE_ACCESS_API.Get_Document_Access\"); //Bug Id 70286\n\t\titembar.addCustomCommand(\"documentInfo\",mgr.translate(\"DOCMAWDOCREFERENCEDOCINFO: Document Info...\"));\n\n\t\titembar.addCommandValidConditions(\"checkInDocument\", \"TEMP_EDIT_ACCESS\", \"Enable\", \"TRUETRUE\");\n\t\titembar.addCommandValidConditions(\"checkInDocument\", \"CHECK_CONNECTED_PERSON\", \"Disable\", \"FALSE\");\n\t\titembar.addCommandValidConditions(\"checkInDocument\", \"TRANSFERED\", \"Disable\", \"TRUE\");\n\t\titembar.addCommandValidConditions(\"checkInDocument\", \"SURVEY_LOCKED_FLAG_DB\", \"Disable\", \"1\");\n\t\t\n\t\titembar.addCommandValidConditions(\"deleteDoc\", \"TEMP_EDIT_ACCESS\", \"Disable\", \"TRUEFALSE\");\n\t\titembar.addCommandValidConditions(\"deleteDoc\", \"CHECK_CONNECTED_PERSON\", \"Disable\", \"FALSE\");\n\t\titembar.addCommandValidConditions(\"deleteDoc\", \"TRANSFERED\", \"Disable\", \"TRUE\");\n\t\titembar.addCommandValidConditions(\"deleteDoc\", \"SURVEY_LOCKED_FLAG_DB\", \"Disable\", \"1\");\n\t\t\n\t\t// Add operations to comand groups\n\t\t// itembar.addCustomCommandGroup(\"FILE\", mgr.translate(\"DOCMAWDOCREFERENCEFILECMDGROUP: File Operations\"));\n\t\t// itembar.setCustomCommandGroup(\"editDocument\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"checkInDocument\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"undoCheckOut\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"viewOriginal\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"viewOriginalWithExternalViewer\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"viewCopy\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"printDocument\", \"FILE\");\n\t\t// itembar.setCustomCommandGroup(\"copyFileTo\", \"FILE\");\n\n\n\t\titembar.enableMultirowAction();\n\t\t// itembar.removeFromMultirowAction(\"viewOriginalWithExternalViewer\");\n\t\t// itembar.removeFromMultirowAction(\"undoCheckOut\");\n\n\n\t\titemtbl = mgr.newASPTable(itemblk);\n\t\titemtbl.setTitle(mgr.translate(\"DOCMAWDOCREFERENCEDOCUCC: Documents\"));\n\t\titemtbl.enableRowSelect();\n\n\t\titemlay = itemblk.getASPBlockLayout();\n\t\titemlay.setDialogColumns(2);\n\t\titemlay.setDefaultLayoutMode(itemlay.MULTIROW_LAYOUT);\n\n\t\titemlay.setSimple(\"CONNECTED_PERSON_NAME\");\n\t\t\n\t\t//\n\t\t// Create and connect documents\n\t\t//\n\n\t\tdlgblk = mgr.newASPBlock(\"DLG\");\n\n\t\tdlgblk.addField(\"DLG_DOC_CLASS\").\n\t\tsetSize(20).\n\t\tsetDynamicLOV(\"DOC_CLASS\").\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetCustomValidation(\"DLG_DOC_CLASS\",\"DLG_DOC_REV,FIRST_SHEET_NO,NUMBER_GENERATOR,NUM_GEN_TRANSLATED,ID1,ID2\").\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDLGDOCCLASS: Doc Class\");\n\n\t\tdlgblk.addField(\"DLG_DOC_NO\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDLGDOCNO: No\");\n\n\t\tdlgblk.addField(\"FIRST_SHEET_NO\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetLabel(\"DOCMAWDOCREFERENCEFIRSTSHEETNO: First Sheet No\");\n\n\t\tdlgblk.addField(\"DLG_DOC_REV\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetUpperCase().\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDLGDOCTITLE: Revision\");\n\n\t\tdlgblk.addField(\"DLG_DOC_TITLE\").\n\t\tsetSize(20).\n\t\tsetMandatory().\n\t\tsetLabel(\"DOCMAWDOCREFERENCEDLGDOCREV: Title\");\n\n\t\t// Configurable doc no\n\n\t\tdlgblk.addField(\"NUMBER_GENERATOR\").\n\t\tsetHidden().\n\t\tsetFunction(\"''\");\n\n\t\tdlgblk.addField(\"NUM_GEN_TRANSLATED\").\n\t\tsetReadOnly().\n\t\tsetUpperCase().\n\t\tsetFunction(\"''\").\n\t\tsetLabel(\"DOCREFERENCENUMBERGENERATOR: Number Generator\");\n\n\n\t\tdlgblk.addField(\"ID1\").\n\t\tsetReadOnly().\n\t\tsetFunction(\"''\").\n\t\tsetUpperCase().\n\t\tsetLOV(\"Id1Lov.page\").\n\t\tsetLabel(\"DOCREFERENCENUMBERCOUNTERID1: Number Counter ID1\");\n\n\t\tdlgblk.addField(\"ID2\").\n\t\tsetSize(20).\n\t\tsetUpperCase().\n\t\tsetMaxLength(30).\n\t\tsetFunction(\"''\").\n\t\tsetLOV(\"Id2Lov.page\",\"ID1\").\n\t\tsetLabel(\"DOCREFERENCENUMBERCOUNTERID2: Number Counter ID2\");\n\n\t\tdlgblk.addField(\"BOOKING_LIST\").\n\t\tsetSize(20).\n\t\tsetMaxLength(30).\n\t\tsetUpperCase().\n\t\tsetFunction(\"''\").\n\t\tsetLOV(\"BookListLov.page\", \"ID1,ID2\").//Bug Id 73606\n\t\tsetLabel(\"DOCREFERENCEBOOKINGLIST: Booking List\");\n\n\t\tdlgblk.setTitle(mgr.translate(\"DOCMAWDOCREFERENCECREANDCONNDOC: Create and Connect New Document\"));\n\n\t\tdlgset = dlgblk.getASPRowSet();\n\t\tdlgbar = mgr.newASPCommandBar(dlgblk);\n\t\tdlgbar.enableCommand(dlgbar.OKFIND);\n\t\tdlgbar.defineCommand(dlgbar.OKFIND,\"dlgOk\");\n\t\tdlgbar.enableCommand(dlgbar.CANCELFIND);\n\t\tdlgbar.defineCommand(dlgbar.CANCELFIND,\"dlgCancel\");\n\n\t\tdlglay = dlgblk.getASPBlockLayout();\n\t\tdlglay.setDialogColumns(2);\n\t\tdlglay.setDefaultLayoutMode(dlglay.CUSTOM_LAYOUT);\n\t\tdlglay.setEditable();\n\n\n\t\t//\n\t\t// dummy block\n\t\t//\n\n\t\tdummyblk = mgr.newASPBlock(\"DUMMY\");\n\n\t\tdummyblk.addField(\"DOC_TYPE\");\n\t\tdummyblk.addField(\"RETURN\");\n\t\tdummyblk.addField(\"ATTR\");\n\t\tdummyblk.addField(\"TEMP1\");\n\t\tdummyblk.addField(\"TEMP2\");\n\t\tdummyblk.addField(\"TEMP3\");\n\t\tdummyblk.addField(\"DUMMY\");\n\t\tdummyblk.addField(\"DUMMY_TYPE\");\n\t\tdummyblk.addField(\"DUMMY1\");\n\t\tdummyblk.addField(\"DUMMY2\");\n\t\tdummyblk.addField(\"DUMMY3\");\n\t\tdummyblk.addField(\"DUMMY4\");\n\t\tdummyblk.addField(\"DUMMY5\");\n\t\tdummyblk.addField(\"DUMMY6\");\n\t\tdummyblk.addField(\"LOGUSER\");\n\t\tdummyblk.addField(\"OUT_1\");\n\t}", "public Header() {\n\t\tsuper(tag(Header.class)); \n\t}", "protected String getBookHeadBlock()\n {\n return \"\";\n }", "private Cursor createNewCallsHeaderCursor() {\n return createHeaderCursorFor(CallLogQuery.SECTION_NEW_HEADER);\n }", "public String generateBlock(){\n return null;\n }", "public static void init() {\n Handler.log(Level.INFO, \"Loading Blocks\");\n\n oreAluminum = new BaseOre(Config.oreAluminumID).setUnlocalizedName(Archive.oreAluminum)\n .setHardness(3.0F).setResistance(5.0F);\n\n blockGrinder = new BaseContainerBlock(Config.blockGrinderID, Archive.grinderGUID)\n .setUnlocalizedName(Archive.blockGrinder);\n\n blockOven = new BaseContainerBlock(Config.blockOvenID, Archive.ovenGUID)\n .setUnlocalizedName(Archive.blockOven);\n }", "public abstract String header();", "public Block(){\n\t\tinstns = new ArrayList<Instruction>();\n\t}", "public InfernalAbsorberBlockEntity() {\n super(Entities.INFERNAL_ABSORBER);\n }", "public interface IBlockAdded {\n\t\n\tpublic void setItemBlock(@Nullable IItemAddedBlock itemBlock);\n\t\n\tpublic void setDisplayName(String displayName);\n\t\n\tpublic void setBlockMaterial(Material blockMaterial);\n\t\n\tpublic void setPlaceSound(SoundEvent sound);\n\t\n\tpublic void setBreakSound(SoundEvent sound);\n\t\n\tpublic void setHitSound(SoundEvent sound);\n\t\n\tpublic void setStepSound(SoundEvent sound);\n\t\n\tpublic void setFallSound(SoundEvent sound);\n\t\n\tpublic void setBlockMapColor(@Nullable MapColor mapColor);\n\t\n\tpublic void setHarvestLevel(int harvestLevel);\n\t\n\tpublic void setHarvestTool(String harvestTool);\n\t\n\tpublic void setEffectiveTools(List<String> effectiveTools);\n\t\n\tpublic void setBookshelfStrength(int bookshelfStrength);\n\t\n\tpublic void setBeaconColorMultiplier(@Nullable float[] beaconColorMultiplier);\n\t\n\tpublic void setSlipperiness(float slipperiness);\n\t\n\tpublic void setIsSlime(boolean isSlime);\n\t\n\tpublic void setIsBeaconBase(boolean isBeaconBase);\n\t\n\tpublic void setCanPistonsPush(boolean canPistonsPush);\n\t\n\tpublic void setSemiTransparent(boolean semiTransparent);\n\t\n\tpublic void setXpDroppedMin(int xpMin);\n\t\n\tpublic void setXpDroppedMax(int xpMax);\n\t\n\tpublic void setDroppedFromExplosions(Boolean droppedFromExplosions);\n\t\n\tpublic default void setCanEndermenCarry(boolean canEndermenCarry) {\n\t\tif (EntityEnderman.getCarriable(this.getAsBlock()) != canEndermenCarry) {\n\t\t\tEntityEnderman.setCarriable(this.getAsBlock(), canEndermenCarry);\n\t\t}\n\t}\n\t\n\t@Nullable\n\tpublic IItemAddedBlock getItemBlock();\n\t\n\tpublic String getDisplayName();\n\t\n\tpublic Material getBlockMaterial();\n\t\n\tpublic SoundEvent getPlaceSound();\n\t\n\tpublic SoundEvent getBreakSound();\n\t\n\tpublic SoundEvent getHitSound();\n\t\n\tpublic SoundEvent getStepSound();\n\t\n\tpublic SoundEvent getFallSound();\n\t\n\t@Nullable\n\tpublic MapColor getBlockMapColor();\n\t\n\tpublic int getHarvestLevel();\n\t\n\tpublic String getHarvestTool();\n\t\n\tpublic List<String> getEffectiveTools();\n\t\n\tpublic int getBookshelfStrength();\n\t\n\t@Nullable\n\tpublic float[] getBeaconColorMultiplier();\n\t\n\tpublic float getSlipperiness();\n\t\n\tpublic boolean isSlime();\n\t\n\tpublic boolean isBeaconBase();\n\t\n\tpublic boolean canPistonsPush();\n\t\n\tpublic float getHardness();\n\t\n\tpublic float getResistance();\n\t\n\tpublic int getOpacity();\n\t\n\tpublic boolean isSemiTransparent();\n\t\n\tpublic int getLightLevel();\n\t\n\tpublic int getXpDroppedMin();\n\t\n\tpublic int getXpDroppedMax();\n\t\n\tpublic Boolean getDroppedFromExplosions();\n\t\n\tpublic default boolean canEndermenCarry() {\n\t\treturn EntityEnderman.getCarriable(this.getAsBlock());\n\t}\n\t\n\tpublic default void registerModels() {\n\t\tAdditionsMod.proxy.registerBlockRender(this.getAsBlock());\n\t}\n\t\n\tpublic default Block getAsBlock() {\n\t\tif (!(this instanceof Block)) {\n\t\t\tthrow new IllegalArgumentException(\"An IBlockAdded must be an instance of Block.\");\n\t\t}\n\t\treturn (Block) this;\n\t}\n\t\n public default String getId() {\n \tResourceLocation registryName = this.getAsBlock().getRegistryName();\n \t\n \tif (registryName != null) {\n \t\treturn registryName.getResourcePath();\n \t}\n \t\n String unlocalizedName = this.getAsBlock().getUnlocalizedName();\n \n if (unlocalizedName.startsWith(\"tile.\")) {\n \treturn unlocalizedName.substring(5);\n }\n \n return unlocalizedName;\n }\n\n public abstract static class Serializer<T extends IBlockAdded> {\n\t\t\n\t\tprivate final ResourceLocation blockAddedType;\n private final Class<T> blockAddedClass;\n\n protected Serializer(ResourceLocation location, Class<T> clazz)\n {\n this.blockAddedType = location;\n this.blockAddedClass = clazz;\n }\n\n\t\tpublic ResourceLocation getBlockAddedType() {\n\t\t\treturn this.blockAddedType;\n\t\t}\n\t\t\n\t\tpublic Class<T> getBlockAddedClass() {\n\t\t\treturn this.blockAddedClass;\n\t\t}\n\n\t\tpublic JsonObject serialize(T blockAddedObj, JsonSerializationContext context) {\n\t\t\tJsonObject json = new JsonObject();\n\t\t\tBlock blockAdded = blockAddedObj.getAsBlock();\n\t\t\t\n\t\t\tif (blockAddedObj.getItemBlock() != null) {\n\t\t\t\tjson.add(\"item_block\", AdditionTypeItem.GSON.toJsonTree(blockAddedObj.getItemBlock()));\n\t\t\t}\n\t\t\t\n\t\t\tjson.addProperty(\"name\", blockAddedObj.getDisplayName());\n\t\t\tjson.add(\"material\", OtherSerializers.BlockMaterialSerializer.serialize(blockAddedObj.getBlockMaterial()));\n\t\t\t\n\t\t\tif (blockAddedObj.getPlaceSound() != null) {\n\t\t\t\tjson.add(\"place_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getPlaceSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getBreakSound() != null) {\n\t\t\t\tjson.add(\"break_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getBreakSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getHitSound() != null) {\n\t\t\t\tjson.add(\"hit_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getHitSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getStepSound() != null) {\n\t\t\t\tjson.add(\"step_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getStepSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getFallSound() != null) {\n\t\t\t\tjson.add(\"fall_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getFallSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getBlockMapColor() != null) {\n\t\t\t\tjson.add(\"map_color\", OtherSerializers.BlockMapColorSerializer.serialize(blockAddedObj.getBlockMapColor()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getHardness() > 0) {\n\t\t\t\tjson.addProperty(\"hardness\", blockAddedObj.getHardness());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getResistance() > 0) {\n\t\t\t\tjson.addProperty(\"resistance\", blockAddedObj.getResistance() / 3.0f);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getHarvestLevel() != 0) {\n\t\t\t\tjson.addProperty(\"harvest_level\", blockAddedObj.getHarvestLevel());\n\t\t\t}\n\t\t\t\n\t\t\tif (!blockAddedObj.getHarvestTool().isEmpty()) {\n\t\t\t\tjson.addProperty(\"harvest_tool\", blockAddedObj.getHarvestTool());\n\t\t\t}\n\t\t\t\n\t\t\tif (!blockAddedObj.getEffectiveTools().isEmpty()) {\n\t\t\t\tjson.add(\"effective_tools\", OtherSerializers.StringListSerializer.serialize(blockAddedObj.getEffectiveTools()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAdded.getLightOpacity(blockAdded.getDefaultState()) != 15) {\n\t\t\t\tjson.addProperty(\"light_opacity\", blockAdded.getLightOpacity(blockAdded.getDefaultState()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAdded.getLightValue(blockAdded.getDefaultState()) > 0) {\n\t\t\t\tjson.addProperty(\"light_level\", blockAdded.getLightValue(blockAdded.getDefaultState()));\n\t\t\t}\n\t\t\t\n\t\t\tif (Blocks.FIRE.getFlammability(blockAdded) > 0) {\n\t\t\t\tjson.addProperty(\"flammability\", Blocks.FIRE.getFlammability(blockAdded));\n\t\t\t}\n\t\t\t\n\t\t\tif (Blocks.FIRE.getEncouragement(blockAdded) > 0) {\n\t\t\t\tjson.addProperty(\"fire_spread_speed\", Blocks.FIRE.getEncouragement(blockAdded));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getBookshelfStrength() > 0) {\n\t\t\t\tjson.addProperty(\"bookshelf_strength\", blockAddedObj.getBookshelfStrength());\n\t\t\t}\n\t\t\t\n\t\t\tfloat[] beaconColorsMultiplier = blockAddedObj.getBeaconColorMultiplier();\n\t\t\tif (beaconColorsMultiplier != null && beaconColorsMultiplier.length == 3) {\n\t\t\t\tJsonObject beaconColorObj = new JsonObject();\n\t\t\t\tbeaconColorObj.addProperty(\"red\", beaconColorsMultiplier[0]);\n\t\t\t\tbeaconColorObj.addProperty(\"green\", beaconColorsMultiplier[1]);\n\t\t\t\tbeaconColorObj.addProperty(\"blue\", beaconColorsMultiplier[2]);\n\t\t\t\tjson.add(\"beacon_color_multiplier\", beaconColorObj);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getSlipperiness() != 0.6f) {\n\t\t\t\tjson.addProperty(\"slipperiness\", blockAddedObj.getSlipperiness());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.isSlime()) {\n\t\t\t\tjson.addProperty(\"is_slime\", true);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.isBeaconBase()) {\n\t\t\t\tjson.addProperty(\"is_beacon_base\", true);\n\t\t\t}\n\t\t\t\n\t\t\tif (!blockAddedObj.canPistonsPush()) {\n\t\t\t\tjson.addProperty(\"can_pistons_push\", false);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.isSemiTransparent()) {\n\t\t\t\tjson.addProperty(\"semi_transparent\", true);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getXpDroppedMin() != 0) {\n\t\t\t\tjson.addProperty(\"xp_dropped_min\", blockAddedObj.getXpDroppedMin());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getXpDroppedMax() != 0) {\n\t\t\t\tjson.addProperty(\"xp_dropped_max\", blockAddedObj.getXpDroppedMax());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getDroppedFromExplosions() != null) {\n\t\t\t\tjson.addProperty(\"dropped_from_explosions\", blockAddedObj.getDroppedFromExplosions());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.canEndermenCarry()) {\n\t\t\t\tjson.addProperty(\"can_endermen_carry\", true);\n\t\t\t}\n\t\t\t\n\t\t\treturn json;\n }\n\n\t\tpublic abstract T deserialize(JsonObject json, JsonDeserializationContext context);\n\t\t\n\t\tpublic <V extends Block & IBlockAdded> V deserializeDefaults(JsonObject json, JsonDeserializationContext context, V blockAdded) {\n\t\t\t\n\t\t\tif (json.has(\"item_block\")) {\n\t\t\t\tIItemAdded itemAdded = AdditionTypeItem.GSON.fromJson(json.get(\"item_block\"), IItemAdded.class);\n\t\t\t\t\n\t\t\t\tif (itemAdded instanceof IItemAddedBlock) {\n\t\t\t\t\tIItemAddedBlock itemAddedBlock = (IItemAddedBlock)itemAdded;\n\t\t\t\t\titemAddedBlock.setBlock(blockAdded);\n\t\t\t\t\tblockAdded.setItemBlock(itemAddedBlock);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n \tblockAdded.setDisplayName(JsonUtils.getString(json, \"name\"));\n \tblockAdded.setBlockMaterial(OtherSerializers.BlockMaterialSerializer.deserialize(json, \"material\"));\n\t\t\t\n\t\t\tif (json.has(\"map_color\")) {\n\t\t\t\tblockAdded.setBlockMapColor(OtherSerializers.BlockMapColorSerializer.deserialize(json, \"map_color\"));\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setHardness(JsonUtils.getFloat(json, \"hardness\", 0));\n\t\t\tblockAdded.setResistance(JsonUtils.getFloat(json, \"resistance\", 0));\n\t\t\tblockAdded.setHarvestLevel(JsonUtils.getInt(json, \"harvest_level\", 0));\n\t\t\tblockAdded.setHarvestTool(JsonUtils.getString(json, \"harvest_tool\", \"\"));\n\t\t\t\n\t\t\tif (json.has(\"effective_tools\")) {\n\t\t\t\tblockAdded.setEffectiveTools(OtherSerializers.StringListSerializer.deserialize(json.get(\"effective_tools\"), \"effective_tools\"));\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setLightOpacity(MathHelper.clamp(JsonUtils.getInt(json, \"light_opacity\", 15), 0, 15));\n\t\t\tblockAdded.setLightLevel(MathHelper.clamp(JsonUtils.getInt(json, \"light_level\", 0), 0, 15) / 15F);\n\t\t\t\n\t\t\tint flammability = JsonUtils.getInt(json, \"flammability\", 0);\n\t\t\tint fireSpreadSpeed = JsonUtils.getInt(json, \"fire_spread_speed\", 0);\n\t\t\tif (flammability > 0 || fireSpreadSpeed > 0) {\n\t\t\t\tBlocks.FIRE.setFireInfo(blockAdded, fireSpreadSpeed, flammability);\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setBookshelfStrength(JsonUtils.getInt(json, \"bookshelf_strength\", 0));\n\t\t\t\n\t\t\tif (json.has(\"beacon_color_multiplier\")) {\n\t\t\t\tJsonObject beaconColorObj = JsonUtils.getJsonObject(json, \"beacon_color_multiplier\");\n\t\t\t\tblockAdded.setBeaconColorMultiplier(new float[]{JsonUtils.getFloat(beaconColorObj, \"red\"), JsonUtils.getFloat(beaconColorObj, \"green\"), JsonUtils.getFloat(beaconColorObj, \"blue\")});\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setSlipperiness(JsonUtils.getFloat(json, \"slipperiness\", 0.6f));\n\t\t\tblockAdded.setIsSlime(JsonUtils.getBoolean(json, \"is_slime\", false));\n\t\t\tblockAdded.setIsBeaconBase(JsonUtils.getBoolean(json, \"is_beacon_base\", false));\n\t\t\tblockAdded.setCanPistonsPush(JsonUtils.getBoolean(json, \"can_pistons_push\", true));\n\t\t\tblockAdded.setSemiTransparent(JsonUtils.getBoolean(json, \"semi_transparent\", false));\n\t\t\tblockAdded.setXpDroppedMin(JsonUtils.getInt(json, \"xp_dropped_min\", 0));\n\t\t\tblockAdded.setXpDroppedMax(JsonUtils.getInt(json, \"xp_dropped_max\", 0));\n\t\t\tblockAdded.setCanEndermenCarry(JsonUtils.getBoolean(json, \"can_endermen_carry\", false));\n\t\t\t\n\t\t\tif (json.has(\"dropped_by_explosions\")) {\n\t\t\t\tblockAdded.setDroppedFromExplosions(JsonUtils.getBoolean(json, \"dropped_by_explosions\"));\n\t\t\t}\n \t\n \treturn blockAdded;\n }\n\t\t\n\t\tpublic void postDeserializeBlockAdded(JsonObject json, IBlockAdded blockAddedObj) {\n\t\t\tif (blockAddedObj.getClass() != this.blockAddedClass) {\n\t\t\t\tthrow new IllegalArgumentException(\"Tried to call post serialize for an object of the wrong type! Expected: \" + this.blockAddedClass + \", Actual: \" + blockAddedObj.getClass());\n\t\t\t}\n\t\t\t\n\t\t\tpostDeserialize(json, (T) blockAddedObj);\n\t\t}\n\t\t\n\t\tpublic void postDeserialize(JsonObject json, T blockAdded) {\n\t\t\tthis.postDeserializeDefaults(json, blockAdded);\n\t\t}\n\t\t\n\t\tpublic void postDeserializeDefaults(JsonObject json, T blockAdded) {\n \t\n \tIItemAdded itemAdded = blockAdded.getItemBlock();\n \tif (itemAdded != null) {\n \t\tItemAddedManager.Serializer.postDeserialize(JsonUtils.getJsonObject(json, \"item_block\"), itemAdded);\n \t}\n \t\n \tif (json.has(\"place_sound\")) {\n \t\tblockAdded.setPlaceSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"place_sound\"));\n \t}\n \t\n \tif (json.has(\"break_sound\")) {\n \t\tblockAdded.setBreakSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"break_sound\"));\n \t}\n \t\n \tif (json.has(\"hit_sound\")) {\n \t\tblockAdded.setHitSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"hit_sound\"));\n \t}\n \t\n \tif (json.has(\"step_sound\")) {\n \t\tblockAdded.setStepSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"step_sound\"));\n \t}\n \t\n \tif (json.has(\"fall_sound\")) {\n \t\tblockAdded.setFallSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"fall_sound\"));\n \t}\n }\n }\n}", "String getBlockPolicy();", "public PUKEHandlerCallBanker_ABZ_FOUR(){\r\n\t}", "@Override\r\n\tpublic void loadHeader() {\n\r\n\t}", "public int c(Block parambec)\r\n/* 119: */ {\r\n/* 120:131 */ return 0;\r\n/* 121: */ }", "private HSBC() {\n\t\t\n\t\t\n\t}", "public interface BlockInterceptor {\n\n void onBlock(Context context, BlockInfo info);\n}", "public Blocks(int h)\n {\n health=h;\n worth=h;\n setImage(colors[health-1]);\n }", "public void createSideBlocks() {\n Fill fill = new FillColor(Color.darkGray);\n Block topB = new Block(new Rectangle(new Point(0, 0), 800, 45), fill);\n Block rightB = new Block(new Rectangle(new Point(775, 25), 25, 576), fill);\n Block leftB = new Block(new Rectangle(new Point(0, 25), 25, 576), fill);\n //add each screen-side block to game and set 1 hitpoint.\n topB.addToGame(this);\n topB.setHitPoints(1);\n rightB.addToGame(this);\n rightB.setHitPoints(1);\n leftB.addToGame(this);\n leftB.setHitPoints(1);\n }", "@Test\n\tpublic void parseBlock()\n\t{\n\t\tDBSet databaseSet = DBSet.createEmptyDatabaseSet();\n\t\t\t\t\t\t\t\t\n\t\t//PROCESS GENESISBLOCK\n\t\tGenesisBlock genesisBlock = new GenesisBlock();\n\t\tgenesisBlock.process(databaseSet);\n\t\t\t\t\t\t\t\t\n\t\t//CREATE KNOWN ACCOUNT\n\t\tbyte[] seed = Crypto.getInstance().digest(\"test\".getBytes());\n\t\tbyte[] privateKey = Crypto.getInstance().createKeyPair(seed).getA();\n\t\tPrivateKeyAccount generator = new PrivateKeyAccount(privateKey);\n\t\t\t\t\t\t\t\t\t\t\n\t\t//PROCESS GENESIS TRANSACTION TO MAKE SURE GENERATOR HAS FUNDS\n\t\tTransaction transaction = new GenesisTransaction(generator, BigDecimal.valueOf(1000).setScale(8), NTP.getTime());\n\t\ttransaction.process(databaseSet);\n\t\t\t\t\t\t\t\t\n\t\t//GENERATE NEXT BLOCK\n\t\tBlockGenerator blockGenerator = new BlockGenerator();\n\t\tBlock block = blockGenerator.generateNextBlock(databaseSet, generator, genesisBlock);\n\t\t\t\t\t\t\n\t\t//FORK\n\t\tDBSet fork = databaseSet.fork();\n\t\t\t\t\n\t\t//GENERATE PAYMENT 1\n\t\tAccount recipient = new Account(\"XUi2oga2pnGNcZ9es6pBqxydtRZKWdkL2g\");\n\t\tlong timestamp = block.getTimestamp();\n\t\tbyte[] signature = PaymentTransaction.generateSignature(databaseSet, generator, recipient, BigDecimal.valueOf(100).setScale(8), BigDecimal.valueOf(1).setScale(8), timestamp);\n\t\tTransaction payment1 = new PaymentTransaction(generator, recipient, BigDecimal.valueOf(100).setScale(8), BigDecimal.valueOf(1).setScale(8), timestamp, generator.getLastReference(databaseSet), signature);\n\t\tpayment1.process(fork);\n\t\tblock.addTransaction(payment1);\t\n\t\t\t\t\n\t\t//GENERATE PAYMENT 2\n\t\tAccount recipient2 = new Account(\"XLPYYfxKEiDcybCkFA7jXcxSdePMMoyZLt\");\n\t\tsignature = PaymentTransaction.generateSignature(fork, generator, recipient2, BigDecimal.valueOf(100).setScale(8), BigDecimal.valueOf(1).setScale(8), timestamp);\n\t\tTransaction payment2 = new PaymentTransaction(generator, recipient2, BigDecimal.valueOf(100).setScale(8), BigDecimal.valueOf(1).setScale(8), timestamp, generator.getLastReference(fork), signature);\n\t\tblock.addTransaction(payment2);\t\n\t\t\t\t\t\t\n\t\t//ADD TRANSACTION SIGNATURE\n\t\tbyte[] transactionsSignature = Crypto.getInstance().sign(generator, block.getGeneratorSignature());\n\t\tblock.setTransactionsSignature(transactionsSignature);\n\t\t\t\t\n\t\t//CONVERT TO BYTES\n\t\tbyte[] rawBlock = block.toBytes();\n\t\t\t\t\n\t\ttry \n\t\t{\t\n\t\t\t//PARSE FROM BYTES\n\t\t\tBlock parsedBlock = BlockFactory.getInstance().parse(rawBlock);\n\t\t\t\t\t\n\t\t\t//CHECK INSTANCE\n\t\t\tassertEquals(false, parsedBlock instanceof GenesisBlock);\n\t\t\t\t\t\n\t\t\t//CHECK SIGNATURE\n\t\t\tassertEquals(true, Arrays.equals(block.getSignature(), parsedBlock.getSignature()));\n\t\t\t\t\t\n\t\t\t//CHECK GENERATOR\n\t\t\tassertEquals(block.getGenerator().getAddress(), parsedBlock.getGenerator().getAddress());\t\n\t\t\t\t\t\n\t\t\t//CHECK BASE TARGET\n\t\t\tassertEquals(block.getGeneratingBalance(), parsedBlock.getGeneratingBalance());\t\n\t\t\t\n\t\t\t//CHECK FEE\n\t\t\tassertEquals(block.getTotalFee(), parsedBlock.getTotalFee());\t\n\t\t\t\t\t\n\t\t\t//CHECK REFERENCE\n\t\t\tassertEquals(true, Arrays.equals(block.getReference(), parsedBlock.getReference()));\t\n\t\t\t\t\t\n\t\t\t//CHECK TIMESTAMP\n\t\t\tassertEquals(block.getTimestamp(), parsedBlock.getTimestamp());\t\t\n\t\t\t\n\t\t\t//CHECK TRANSACTIONS COUNT\n\t\t\tassertEquals(block.getTransactionCount(), parsedBlock.getTransactionCount());\t\t\n\t\t}\n\t\tcatch (Exception e) \n\t\t{\n\t\t\tfail(\"Exception while parsing transaction.\");\n\t\t}\n\t\t\t\t\n\t\t//PARSE TRANSACTION FROM WRONG BYTES\n\t\trawBlock = new byte[50];\n\t\t\n\t\ttry \n\t\t{\t\n\t\t\t//PARSE FROM BYTES\n\t\t\tBlockFactory.getInstance().parse(rawBlock);\n\t\t\t\t\t\n\t\t\t//FAIL\n\t\t\tfail(\"this should throw an exception\");\n\t\t}\n\t\tcatch (Exception e) \n\t\t{\n\t\t\t//EXCEPTION IS THROWN OK\n\t\t}\t\t\t\n\t}", "public static void initializeBlocks() {\n if (Config.enableGiveADamn) {\n giveADamn = new GiveADamn();\n }\n\n if (Config.enableGlowstone) {\n glowstone = new HeavyLight();\n }\n\n if (Config.enableSpicedSand) {\n sandSpiced = new SpicedSand();\n }\n /*\n\n if (Config.enableMuffler){\n muffler = new Muffler();\n }\n */\n }", "public JsonObject raw_block() {\n \tJsonObject block = new JsonObject();\n \tblock.addProperty(\"BlockID\", blockId);\n \tif(!BlockChain.isEmpty())\n \t block.addProperty(\"PrevHash\", Hash.getHashString(getLongestBranch().last_block.toString()));\n \telse {\n \t\tblock.addProperty(\"PrevHash\", \"0000000000000000000000000000000000000000000000000000000000000000\");\n \t}\n \tblock.addProperty(\"Nonce\", \"00000000\");\n block.addProperty(\"MinerID\", \"Server\"+String.format(\"%02d\", minerId));\n \n \tJsonArray newTxPool = new JsonArray();\n \tJsonArray transactions = new JsonArray();\n \tint N = TxPool_new.size();\n \tint i;\n \tfor (i=0; i<N && i<50; i++) {\n \t\ttransactions.add(TxPool_new.get(i));\n \t\t//TxPool_used.add(TxPool_new.get(i));\n \t}\n \tfor (; i<N; i++)\n \t\tnewTxPool.add(TxPool_new.get(i));\n \tblock.add(\"Transactions\", transactions);\n\n \treturn block;\n }", "protected void enterBlockStmt(BlockStmt blockStmt) {\n enclosingBlocks.addFirst(blockStmt);\n if (blockStmt.introducesNewScope()) {\n pushScope();\n }\n }", "protected void updateHeader() {\n\t}", "public Tipo visitBlock(DECAFParser.BlockContext ctx){\r\n\t\tTipo res=super.visitBlock(ctx);\r\n\t\tposition=tablaSimbolos.exit();\r\n\t\tif(ctx.children.size()==0){\r\n\t\t\ttablaSimbolos.addError(\"Missing instructions inside { }\");\r\n\t\t\treturn tablaSimbolos.incorrect();\r\n\t\t}\r\n\t\treturn res;\r\n\t}", "BlockChainLink getLinkBlockHeader(byte[] hash);", "protected static Block createEmptyBlock(AST ast) {\n\t\treturn ast.newBlock();\n\t}", "void setStockHeader(stockFilePT102.StockHeaderDocument.StockHeader stockHeader);", "public void startBlockOut (String objectName) {\n \n this.objectName = objectName;\n // writer.open();\n addLine (getBlockStart());\n }", "private void setBlock(Block block) {\r\n this.block = block;\r\n }", "public static void init () {\n\t\t\n\t\t/*\n\t\t * Letter block naming and registry code\n\t\t */\n\t\tfor (int i = 0; i <= NameHandler.length(); ++i) {\n\t\t\tBlockLetter bL = new BlockLetter();\n\t\t\tString name = NameHandler.getNameFromIndex(i);\n\t\t\tbL.setBlockName(name);\n\t\t\tGameRegistry.registerBlock(bL, name);\n\t\t\tletterBlocks.add(bL);\n\t\t}\n\t\t\n\t\tcopperBlock.setBlockName(Names.Blocks.COPPER_BLOCK);\n\t\ttinBlock.setBlockName(Names.Blocks.TIN_BLOCK);\n\t\tsilverBlock.setBlockName(Names.Blocks.SILVER_BLOCK);\n\t\tclassicBronzeBlock.setBlockName(Names.Blocks.CLASSIC_BRONZE_BLOCK);\n\t\tmildBronzeBlock.setBlockName(Names.Blocks.MILD_BRONZE_BLOCK);\n\t\telectrumBlock.setBlockName(Names.Blocks.ELECTRUM_BLOCK);\n\t\tcopperDustBlock.setBlockName(Names.Blocks.COPPER_DUST_BLOCK);\n\t\t\n\t\tcopperOre.setBlockName(Names.Blocks.COPPER_ORE);\n\t\ttinOre.setBlockName(Names.Blocks.TIN_ORE);\n\t\tsilverOre.setBlockName(Names.Blocks.SILVER_ORE);\n\t\t\n\t\tmarble.setBlockName(Names.Blocks.MARBLE);\n\t\t\n\t\tgrindstone.setBlockName(Names.Blocks.GRINDSTONE);\n\t\t\n\t\tGameRegistry.registerBlock(column, Names.Blocks.COLUMN);\n\t\tGameRegistry.registerBlock(copperBlock, Names.Blocks.COPPER_BLOCK);\n\t\tGameRegistry.registerBlock(tinBlock, Names.Blocks.TIN_BLOCK);\n\t\tGameRegistry.registerBlock(silverBlock, Names.Blocks.SILVER_BLOCK);\n\t\tGameRegistry.registerBlock(classicBronzeBlock, Names.Blocks.CLASSIC_BRONZE_BLOCK);\n\t\tGameRegistry.registerBlock(mildBronzeBlock, Names.Blocks.MILD_BRONZE_BLOCK);\n\t\tGameRegistry.registerBlock(electrumBlock, Names.Blocks.ELECTRUM_BLOCK);\n\t\tGameRegistry.registerBlock(copperDustBlock, Names.Blocks.COPPER_DUST_BLOCK);\n\t\t\n\t\tGameRegistry.registerBlock(copperOre, Names.Blocks.COPPER_ORE);\n\t\tGameRegistry.registerBlock(tinOre, Names.Blocks.TIN_ORE);\n\t\tGameRegistry.registerBlock(silverOre, Names.Blocks.SILVER_ORE);\n\t\tGameRegistry.registerBlock(marble, Names.Blocks.MARBLE);\n\t\t\n\t\tGameRegistry.registerBlock(grindstone, Names.Blocks.GRINDSTONE);\n\t}", "@Override\n public void endBlock() {\n }", "@Override\n\tprotected void buildBlockClass(String uvmBlockClassName, Boolean hasCallback) {\n\t\t// create text name and description if null\n\t\tString id = regSetProperties.getId();\n\t\tString refId = regSetProperties.getBaseName(); // ref used for block structure lookup\n\t\t\n\t\tString textName = regSetProperties.getTextName();\n\t\tif (textName == null) textName = \"Block \" + id;\n\n\t\t// generate register header \n\t\toutputList.add(new OutputLine(indentLvl, \"\"));\t\n\t\toutputList.add(new OutputLine(indentLvl, \"// \" + textName));\n\t\toutputList.add(new OutputLine(indentLvl++, \"class \" + uvmBlockClassName + \"#(type ALTPBLOCK_T = \" + altModelRootType + \", type ALTBLOCK_T = \" + altModelRootType + \") extends uvm_block_translate;\")); \n\n\t\t// create field definitions \n\t\tbuildBlockDefines(refId);\n\t\t\n\t\t// create new function\n\t\t//buildBlockNewDefine(uvmBlockClassName); \n\t\t\n\t\t// create build function \n\t\tbuildBlockBuildFunction(refId);\n\t\t\n\t\t// get_alt_block - return alternate model regset struct corresponding to this block\n\t\tString escRegSetId = escapeReservedString(regSetProperties.getId());\n\t\tSystemVerilogFunction func = new SystemVerilogFunction(\"ALTBLOCK_T\", \"get_alt_block\"); \n\t\tif (regSetProperties.isRootInstance())\n\t\t\t func.addStatement(\"return \" + escRegSetId + \";\");\n\t\telse {\n\t\t\tfunc.addStatement(\"ALTPBLOCK_T alt_parent = m_parent.get_alt_block();\");\n\t\t\tif (regSetProperties.isReplicated())\n\t\t\t func.addStatement(\"return alt_parent.\" + escRegSetId + \"[m_rep];\");\n\t\t\telse \n\t\t\t func.addStatement(\"return alt_parent.\" + escRegSetId + \";\"); \n\t\t}\n\t\toutputList.addAll(func.genOutputLines(indentLvl));\t\n\t\t\n\t\t// close out the class definition\n\t\toutputList.add(new OutputLine(indentLvl, \"\"));\t\n\t\t//outputList.add(new OutputLine(indentLvl, \"`uvm_object_utils(\" + uvmBlockClassName + \")\")); \n\t\toutputList.add(new OutputLine(--indentLvl, \"endclass : \" + uvmBlockClassName));\n\t}", "public BlockExtra(Pixy2 pixy, Block block) {\n\t\tthis(pixy, block.getSignature(), block.getX(), block.getY(), block.getWidth(), block.getHeight(), block.getAngle(), block.getIndex(), block.getAge());\n\t}", "public static void init()\n {\n oreStarSteel = new BlockOreStarSteel(MSAConfig.ores, Material.rock);\n storageStarSteel = new BlockStorageStarSteel(MSAConfig.storageBlock, Material.iron);\n // tech blocks\n launchTower = new BlockLaunchTower(MSAConfig.launchTower, Material.iron);\n launchTowerController = new BlockLaunchControl(MSAConfig.launchController, Material.iron);\n rocketAssembler = new BlockRocketAssembler(MSAConfig.rocketAssembler, Material.iron);\n comSatellite = new BlockComSatellite(MSAConfig.comSatellite, Material.iron);\n ssBuilding = new BlockSSBuilding(MSAConfig.ssBuilding, Material.rock);\n commandCenter = new BlockCommandCenter(MSAConfig.commandCenter, Material.iron);\n\n /* Register Blocks */\n // ore blocks\n GameRegistry.registerBlock(oreStarSteel, \"oreStarSteel\");\n GameRegistry.registerBlock(storageStarSteel, \"storageStarSteel\");\n // tech blocks\n GameRegistry.registerBlock(launchTower, \"launchTower\");\n GameRegistry.registerBlock(launchTowerController, \"launchTowerController\");\n GameRegistry.registerBlock(rocketAssembler, \"rocketAssembler\");\n GameRegistry.registerBlock(comSatellite, \"comSatellite\");\n GameRegistry.registerBlock(ssBuilding, \"ssBuilding\");\n GameRegistry.registerBlock(commandCenter, \"commandCenter\");\n\n /* Set block harvest level */\n // ore blocks\n MinecraftForge.setBlockHarvestLevel(oreStarSteel, \"pickaxe\", 2);\n MinecraftForge.setBlockHarvestLevel(storageStarSteel, \"pickaxe\", 2);\n // building blocks\n MinecraftForge.setBlockHarvestLevel(ssBuilding, \"pickaxe\", 2);\n // tech blocks\n MinecraftForge.setBlockHarvestLevel(launchTower, \"pickaxe\", 1);\n }", "private static BctsJobHeader consructInJobHeader(InPaymentPermitType inPaymtPermit,BctsJobHeader bctsJobHeader) {\n\t\t/*Construct Permit for in payment*/\n\t\tbctsJobHeader=PermitXmlConstructor.consructPermit(null,inPaymtPermit,bctsJobHeader);\n\t\tPermitType permitType=inPaymtPermit.getPermit();\n\t\t/*Construct Permit Conditions for in payment*/\n\t\tif(null!=permitType) {\n\t\t\t\tList<CaaApprovalCondition> appCondLst=new ArrayList<>(); \t\n\t\t\t\tif(null!=permitType.getCAApprovalCondition() && !permitType.getCAApprovalCondition().isEmpty()){\n\t\t\t\t\tappCondLst=PermitXmlConstructor.consructPermitApprCond(appCondLst,\"CAA\",permitType.getCAApprovalCondition(),bctsJobHeader);\n\t\t\t\t}\n\t\t\t\tif(null!=permitType.getRefundApprovalCondition() && !permitType.getRefundApprovalCondition().isEmpty()){\n\t\t\t\t\tappCondLst=PermitXmlConstructor.consructPermitApprCond(appCondLst,\"REF\",permitType.getRefundApprovalCondition(),bctsJobHeader);\n\t\t\t\t}\n\t\t\t\tif(null!=permitType.getSCApprovalCondition() && !permitType.getSCApprovalCondition().isEmpty()){\n\t\t\t\t\tappCondLst=PermitXmlConstructor.consructPermitApprCond(appCondLst,\"SCA\",permitType.getSCApprovalCondition(),bctsJobHeader);\n\t\t\t\t}\n\t\t\t\tbctsJobHeader.setPermitConditions(appCondLst);\n\t\t}\n\t\t/*construct Invoice which will always comes under inPayment permit*/\n\t\tif(null!=inPaymtPermit.getDeclaration().getInvoice()) {\n\t\t\tbctsJobHeader=PermitXmlConstructor.constructInvoice(bctsJobHeader, inPaymtPermit);\n\t\t}\n\t\t/*Construct Permit License for in payment*/\n\t\tbctsJobHeader=PermitXmlConstructor.costructLicence(bctsJobHeader, inPaymtPermit);\n\t\t\n\t\t/*Construct Permit Cargo for in payment*/\n\t\tif(null!=inPaymtPermit.getDeclaration()) {\n\t\tbctsJobHeader=PermitXmlConstructor.generatePermitCargo(null,inPaymtPermit.getDeclaration().getCargo(),bctsJobHeader);\n\t\t/*Construct Transport for permit inward*/\n\t\tbctsJobHeader=PermitXmlConstructor.constructTrans(null!=inPaymtPermit.getDeclaration().getTransport()?inPaymtPermit.getDeclaration().getTransport().getInwardTransport():null, null, bctsJobHeader);\n\t\t}\n\t\t\n\t\t/*Construct Permit Party Details for in payment*/\n\t\tbctsJobHeader=PermitXmlConstructor.cnstInPayPrty(inPaymtPermit,bctsJobHeader);\n\t\treturn bctsJobHeader;\n\t}", "private Operation blockEnd(Scope scope)\r\n {\r\n\tOperation root = new Operation();\r\n\t\r\n\troot.operator = Keyword.BLOCKENDSY;\r\n\troot.code = (String)scope.label.get(0);\r\n\r\n return root;\r\n }", "@Override\n public void visitBlockStmt(BlockStmt stmt) {\n enterBlockStmt(stmt);\n super.visitBlockStmt(stmt);\n leaveBlockStmt(stmt);\n }" ]
[ "0.5901091", "0.58599806", "0.58265984", "0.5695872", "0.5628015", "0.56103927", "0.5572566", "0.554677", "0.54995525", "0.54716146", "0.5431209", "0.5413132", "0.5394572", "0.5357679", "0.5326222", "0.52596605", "0.52484244", "0.52012396", "0.5187288", "0.51641595", "0.51598936", "0.5149246", "0.51325107", "0.5128665", "0.5127466", "0.50750303", "0.507269", "0.50672495", "0.5059657", "0.505061", "0.5045604", "0.50399154", "0.5028838", "0.50259596", "0.4999994", "0.4991488", "0.49870428", "0.49643728", "0.49630433", "0.49557662", "0.49520934", "0.49516526", "0.49489143", "0.49466798", "0.49448824", "0.49431804", "0.4938013", "0.49355915", "0.49130863", "0.49050292", "0.49034646", "0.4899081", "0.48667058", "0.48665887", "0.48637748", "0.48383602", "0.48336118", "0.4820343", "0.48071346", "0.48054302", "0.480257", "0.47997314", "0.47964528", "0.4792873", "0.4792177", "0.47888708", "0.47741443", "0.47738564", "0.47645655", "0.47593287", "0.47509173", "0.47433427", "0.47427282", "0.47392657", "0.47350493", "0.4733433", "0.47309566", "0.47266248", "0.47125825", "0.47071669", "0.47058898", "0.47045028", "0.4701703", "0.46955726", "0.46941194", "0.46893904", "0.46889973", "0.46889645", "0.46878168", "0.46805775", "0.46765822", "0.4662006", "0.46619898", "0.46611905", "0.4659827", "0.46564218", "0.4654587", "0.46479917", "0.4640463", "0.4639517" ]
0.7068779
0
Creates new form mainGUI
public mainGUI() { initComponents(); setSize(Toolkit.getDefaultToolkit().getScreenSize()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void makeGUI()\n {\n mainFrame = new JFrame();\n mainFrame.setPreferredSize(new Dimension(750,400));\n aw = new AccountWindow();\n mainFrame.add(aw);\n mainFrame.setVisible(true);\n mainFrame.pack();\n }", "public static void createMainframe()\n\t{\n\t\t//Creates the frame\n\t\tJFrame foodFrame = new JFrame(\"USDA Food Database\");\n\t\t//Sets up the frame\n\t\tfoodFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfoodFrame.setSize(1000,750);\n\t\tfoodFrame.setResizable(false);\n\t\tfoodFrame.setIconImage(icon.getImage());\n\t\t\n\t\tGui gui = new Gui();\n\t\t\n\t\tgui.setOpaque(true);\n\t\tfoodFrame.setContentPane(gui);\n\t\t\n\t\tfoodFrame.setVisible(true);\n\t}", "private static void createAndShowGUI() {\n\t\tgui = new GUI();\n\t}", "private static void createGUI(){\r\n\t\tframe = new JFrame(\"Untitled\");\r\n\r\n\t\tBibtexImport bib = new BibtexImport();\r\n\t\tbib.setOpaque(true);\r\n\r\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tframe.setContentPane(bib);\r\n\t\tframe.setJMenuBar(bib.menu);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}", "public void buildMainGUI(){\n // Clear the frame\n rebuildFrame();\n \n // Header options in main GUI\n header.setText(\" Problem choice: \");\n \n //------Unique panel objects here---------\n \n JButton project1Button = new JButton(\"Project 1 - Search, Constraint Satisfaction, and Graph Coloring\");\n project1Button.addActionListener((ActionEvent e) -> {\n \n // If pressed, build project 1 GUI\n buildProject1GUI();\n \n });\n controlPanel.add(project1Button);\n \n \n //----------------------------------------\n \n // Display GUI after finished building\n controlFrame.pack();\n controlFrame.setVisible(true);\n }", "public MainGUI() {\n initComponents();\n caja = new CajaGUI();\n estadisticas = new EstadisticasGUI();\n caja.disableAll();\n tab.add(\"Caja\", caja);\n tab.add(\"Estadísticas\", estadisticas);\n tab.setToolTipTextAt(0, \"Manejo de la Caja Diaria\");\n tab.setToolTipTextAt(1, \"Estadisticas de ventas y productos\");\n menuAdmin = new JMenu(\"Administrador\");\n menuUsuario = new JMenuItem();\n this.setIconImage(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/icono.png\")).getImage());\n this.setTitle(\"Sistema de Gestión de Quiniela\");\n\n }", "public TrainModelGUI CreateNewGUI() {\n //Create a GUI object\n \ttrainModelGUI = new TrainModelGUI(this);\n \tsetValuesForDisplay();\n \treturn trainModelGUI;\n }", "public MainForm() {\n initComponents();\n \n }", "public mainUI() {\n initComponents();\n }", "private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n window.pack();\n window.setVisible(true);\n \n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }", "public GUIForm() { \n initComponents();\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up the content pane.\r\n final FirmaDigital newContentPane = new FirmaDigital(frame);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Make sure the focus goes to the right component\r\n //whenever the frame is initially given the focus.\r\n frame.addWindowListener(new WindowAdapter() {\r\n public void windowActivated(WindowEvent e) {\r\n newContentPane.resetFocus();\r\n }\r\n });\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private static void createAndShowGUI() {\n Font f = new Font(\"微软雅黑\", 0, 12);\n String names[] = {\"Label\", \"CheckBox\", \"PopupMenu\", \"MenuItem\", \"CheckBoxMenuItem\",\n \"JRadioButtonMenuItem\", \"ComboBox\", \"Button\", \"Tree\", \"ScrollPane\",\n \"TabbedPane\", \"EditorPane\", \"TitledBorder\", \"Menu\", \"TextArea\",\n \"OptionPane\", \"MenuBar\", \"ToolBar\", \"ToggleButton\", \"ToolTip\",\n \"ProgressBar\", \"TableHeader\", \"Panel\", \"List\", \"ColorChooser\",\n \"PasswordField\", \"TextField\", \"Table\", \"Label\", \"Viewport\",\n \"RadioButtonMenuItem\", \"RadioButton\", \"DesktopPane\", \"InternalFrame\"\n };\n for (String item : names) {\n UIManager.put(item + \".font\", f);\n }\n //Create and set up the window.\n JFrame frame = new JFrame(\"AutoCapturePackagesTool\");\n\n String src = \"/optimizationprogram/GUICode/u5.png\";\n Image image = null;\n try {\n image = ImageIO.read(new CaptureGUI().getClass().getResource(src));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n frame.setIconImage(image);\n //frame.setIconImage(Toolkit.getDefaultToolkit().getImage(src));\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(false);\n frame.setLocation(Toolkit.getDefaultToolkit().getScreenSize().width / 2 - 520 / 2,\n Toolkit.getDefaultToolkit().getScreenSize().height / 2 - 420 / 2);\n frame.getContentPane().add(new CaptureGUI());\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "public static void createGUI() {\n\t\tSimpleGUI gui = new SimpleGUI();\n\t\tgui.setVisible(true);\n\t}", "private void buildFrame() {\n String title = \"\";\n switch (formType) {\n case \"Add\":\n title = \"Add a new event\";\n break;\n case \"Edit\":\n title = \"Edit an existing event\";\n break;\n default:\n }\n frame.setTitle(title);\n frame.setResizable(false);\n frame.setPreferredSize(new Dimension(300, 350));\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // sets the main form to be visible if the event form was exited\n // and not completed.\n mainForm.getFrame().setEnabled(true);\n mainForm.getFrame().setVisible(true);\n }\n });\n }", "private static void createAndShowGUI() {\n //\n // Use the normal window decorations as defined by the look-and-feel\n // schema\n //\n JFrame.setDefaultLookAndFeelDecorated(true);\n //\n // Create the main application window\n //\n mainWindow = new MainWindow();\n //\n // Show the application window\n //\n mainWindow.pack();\n mainWindow.setVisible(true);\n }", "public void createAndShowGUI() {\n frame= new JFrame(\"TabAdmin\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setLocation(200,50);\n //Create and set up the content pane.\n \n addComponentToPane(frame.getContentPane());\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n //create admin to operate \n \n }", "private static void createAndShowGUI() {\n\n frame = new JFrame(messages.getString(\"towers.of.hanoi\"));\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n addComponentsToPane(frame.getContentPane());\n frame.pack();\n frame.setSize(800, 600);\n frame.setVisible(true);\n }", "private void todoChooserGui() {\r\n jframe = makeFrame(\"My Todo List\", 500, 800, JFrame.EXIT_ON_CLOSE);\r\n panelSelectFile = makePanel(jframe, BorderLayout.CENTER,\r\n \"Choose a Todo\", 150, 50, 200, 25);\r\n JButton clickRetrieve = makeButton(\"retrieveTodo\", \"Retrieve A TodoList\",\r\n 175, 100, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickRetrieve);\r\n JTextField textFieldName = makeJTextField(1, 100, 150, 150, 25);\r\n textFieldName.setName(\"Name\");\r\n panelSelectFile.add(textFieldName);\r\n JButton clickNew = makeButton(\"newTodo\", \"Make New TodoList\",\r\n 250, 150, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickNew);\r\n panelSelectFile.setBackground(Color.WHITE);\r\n jframe.setBackground(Color.PINK);\r\n jframe.setVisible(true);\r\n }", "public MainGui() {\n initComponents();\n this.setVisible(true);\n configuracoesSalvas();\n }", "private static void createAndShowGUI() {\n\t\t/*\n //Create and set up the window.\n JFrame frame = new JFrame(\"HelloWorldSwing\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Add the ubiquitous \"Hello World\" label.\n JLabel label = new JLabel(\"Hello World\");\n frame.getContentPane().add(label);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n */\n\t\tfinal AC_GUI currentGUI = new AC_GUI();\n\t\t//currentGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tcurrentGUI.setSize(900, 800);\n\t\t// make the frame full screen\n\t\t// currentGUI.setExtendedState(JFrame.MAXIMIZED_BOTH);\n }", "private void createAndShowGUI(){\r\n initComponents();\r\n openMazefile.addActionListener(this);\r\n solveMaze.addActionListener(this);\r\n clearSolution.addActionListener(this);\r\n setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\r\n pack();\r\n setVisible(true);\r\n }", "private static void createGUI(){\n DrawingArea drawingArea = new DrawingArea();\n ToolSelect utilityBar = new ToolSelect();\n MenuBar menuBar = new MenuBar();\n JFrame.setDefaultLookAndFeelDecorated(true);\n JFrame frame = new JFrame(\"GUIMk1\");\n frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\n frame.setLayout(new BorderLayout());\n frame.getContentPane().add(utilityBar, BorderLayout.WEST);\n frame.getContentPane().add(menuBar,BorderLayout.NORTH);\n frame.getContentPane().add(drawingArea);\n frame.setLocationRelativeTo( null );\n frame.setVisible(true);\n frame.pack();\n\n }", "public void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n\tif(open==0)\n\t\tframe = new JFrame(\"Open a file\");\n\telse if(open ==1)\n\t\tframe = new JFrame(\"Save file as\");\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane =this ;\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n // frame.setSize(500,500);\n//\tvalidate();\n }", "private GUI()\n {\n makeGUI();\n }", "public CreateGUI() throws IOException{\r\n\t\tthis.setFocusable(false);\r\n\t\tthis.setTitle(\"Dance Dance Revolution - 201B Edition\");\r\n\t\tthis.setSize(800, 600);\t\t \t\r\n\t\tthis.setLocation(100, 100); \t\r\n\t\tthis.setVisible(true);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.setResizable(false);\r\n\t\tcp = getContentPane();\r\n\t\tcp.setBackground(Color.black);\r\n\t\tarrowlistener = new ArrowListener();\r\n\t\tscore = new Score();\r\n\t\tcombo = new ComboImage();\r\n\t}", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public cinema_main_form() {\n \t\t\n \t\tmain_frame = new JFrame();//main frame\n\t\tmain_panel = new JPanel();//kedriko panel\n\t\t\n\t\t// Add the panel to the frame.\n\t\tmain_frame.getContentPane().add(main_panel, BorderLayout.CENTER);\n \t\n initComponents();\n\t\n\t\t// Exit when the window is closed.\n\t\tmain_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "public void buildGui() {\n\t}", "FORM createFORM();", "public MyGUI() {\n \t super(\"Mastermind\");\n \t guiManager = new GUIManager();\n createMenuComponents();\n createMastermindComponents(this,2);\n \n }", "private void makeGUI() {\n //Create the canvas and Components for GUI.\n canvas = new Canvas();\n\n canvas.setBounds(0, 0, getWidth(), getHeight());\n getContentPane().setBackground(DrawAttribute.whiteblue);\n searchArea = new JTextField();\n searchArea.setForeground(Color.GRAY);\n searchArea.setText(promptText);\n\n //Make the components for the frame.\n makeComponents();\n addComponentsToLayers();\n }", "private void createGUI() {\n\t\tframe = new JFrame();\n\t\tframe.setTitle(\"My first player\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.getContentPane().setBackground(Color.PINK);\n\t\tbtnPlay.setFont(new Font(\"FreeSerif\", Font.BOLD, 16));\n\t\tbtnPlay.setBounds(27, 80, 107, 22);\n\t\tbtnPlay.setEnabled(false);\n\t\tbtnStop.setFont(new Font(\"FreeSerif\", Font.BOLD, 16));\n\t\tbtnStop.setBounds(321, 79, 117, 25);\n\t\tbtnStop.setEnabled(false);\n\t\tbtnPause.setFont(new Font(\"FreeSerif\", Font.BOLD, 16));\n\t\tbtnPause.setBounds(170, 79, 117, 25);\n\t\tbtnPause.setEnabled(false);\n\t\tbtnOpen.setFont(new Font(\"FreeSerif\", Font.BOLD, 16));\n\t\tbtnOpen.setBounds(113, 43, 249, 25);\n\t\tlblMyMusic.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblMyMusic.setForeground(new Color(51, 51, 51));\n\t\tlblMyMusic.setFont(new Font(\"FreeSerif\", Font.BOLD, 20));\n\t\tlblMyMusic.setBounds(101, 174, 261, 57);\n\n\t}", "public void createAndShowGUI() {\n\t\tcontroller = new ControllerClass(); \r\n\r\n\t\t// Create and set up the window\r\n\t\twindowLookAndFeel();\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetTitle(\"Media Works - Add Screen\");\r\n\t\tsetResizable(false);\r\n\t\tadd(componentSetup());\r\n\t\tpack();\r\n\t\tsetSize(720,540);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetVisible(true);\r\n\t}", "private JFrame createFrame() {\n\t\tJFrame frmProfessorgui = new JFrame();\n\t\tfrmProfessorgui.getContentPane().setBackground(new Color(153, 204, 204));\n\t\tfrmProfessorgui.getContentPane().setForeground(SystemColor.desktop);\n\t\tfrmProfessorgui.setTitle(\"ProfessorGUI\");\n\t\tfrmProfessorgui.setBounds(100, 100, 600, 475);\n\t\tfrmProfessorgui.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmProfessorgui.getContentPane().setLayout(null);\n\n\n\t\t//List, ScrollPane and Button Components\n\t\tmodel = new DefaultListModel();\n\t\tsetList();\n\t\tlist = new JList(model);\n\t\tlist.setBackground(new Color(255, 245, 238));\n\t\tJScrollPane scrollPane = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tscrollPane.setBounds(10, 46, 293, 365);\n\t\tfrmProfessorgui.getContentPane().add(scrollPane);\n\n\t\tlist.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tlist.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\n\t\tcourse = new JButton(\"View Course\");\n\t\tcourse.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcourse.addActionListener(new profMainListener());\n\n\t\tcourse.setBounds(390, 207, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(course);\n\n\t\tcreate = new JButton(\"Create Course\");\n\t\tcreate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcreate.setBounds(390, 250, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(create);\n\t\tcreate.addActionListener(new profMainListener());\n\n\t\tactivate = new JButton(\"Activate\");\n\t\tactivate.addActionListener(new profMainListener()); \n\t\tactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tactivate.setBounds(390, 296, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(activate);\n\n\t\tdeactivate = new JButton(\"Deactivate\");\n\t\tdeactivate.addActionListener(new profMainListener());\n\n\t\tdeactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tdeactivate.setBounds(390, 340, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(deactivate);\n\n\n\t\t//Aesthetic Pieces\n\t\tJLabel lblCourseList = new JLabel(\"Course List\");\n\t\tlblCourseList.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblCourseList.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblCourseList.setBounds(21, 11, 261, 24);\n\t\tfrmProfessorgui.getContentPane().add(lblCourseList);\n\n\t\tJLabel lblWelcome = new JLabel(\"Welcome\");\n\t\tlblWelcome.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblWelcome.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblWelcome.setBounds(357, 49, 191, 46);\n\t\tfrmProfessorgui.getContentPane().add(lblWelcome);\n\n\t\tJLabel lblNewLabel = new JLabel(prof.getFirstName() + \" \" + prof.getLastName());\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.ITALIC, 16));\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(335, 82, 239, 40);\n\t\tfrmProfessorgui.getContentPane().add(lblNewLabel);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\t\tpanel.setBackground(new Color(204, 255, 255));\n\t\tpanel.setBounds(367, 178, 174, 213);\n\t\tfrmProfessorgui.getContentPane().add(panel);\n\n\t\treturn frmProfessorgui;\n\t}", "public MasterGUI() {\n\n\t\tmainFrame.setPreferredSize(FRAME_SIZE);\n\t\tmainFrame.pack();\n\n\t\tmainPane.addTab(\"Element\", new ElementGUI().elementMainPanel);\n\t\tmainPane.addTab(\"Metal\", new MetalGUI().metalMainPanel);\n\t\tmainPane.addTab(\"Compound\", new CompoundGUI().compoundMainPanel);\n\t\tmainPane.addTab(\"Acid\", new AcidGUI().acidMainPanel);\n\t\tmainPane.addTab(\"Base\", new BaseGUI().baseMainPanel);\n\t\tmainPane.addTab(\"Chemical\", new ChemicalGUI().chemicalMainPanel);\n\n\t\tmainFrame.add(mainPane);\n\t\tmainFrame.setVisible(true);\n\t}", "public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }", "public GUI() {\n app = new Aplikasi();\n initComponents();\n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "private static void createAndShowGUI() {\r\n //Disable boldface controls.\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); \r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"Exertion Scripting\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n NetletEditor newContentPane = new NetletEditor(null);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tJFrame frame = new JFrame(\"MapReverse Data Collector\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Add content to the window.\r\n\t\tframe.add(new MapReverseDataCollector());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setVisible(true);\r\n\t}", "public Gui() { \n preInitComponents(); \n initComponents();\n postInitComponents(); \n setVisible(true);\n appInitialization();\n }", "public exerciseAddGUI() {\n initComponents();\n }", "public MainFrame() {\n super(\"Gestione Concessionaria\");\n this.initComponents();\n this.generaFasciaPrezzo();\n this.pack();\n this.setLocationRelativeTo(null);\n this.initPanels();\n this.ToggleMenu.addActionListener(this);\n }", "private static void createAndShowGUI()\r\n {\r\n JFrame frame = new JFrame(\"ChangingTitleFrame Application\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(new FramePanel(frame).getPanel());\r\n frame.pack();\r\n frame.setLocationRelativeTo(null);\r\n frame.setVisible(true);\r\n }", "public GUI() {\n initComponents();\n this.setVisible(true);\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "private void initGUI() {\n\t\tJPanel mainPanel = new JPanel(new BorderLayout());\n\t\t// This is the story we took from Wikipedia.\n\t\tString story = \"The Internet Foundation Classes (IFC) were a graphics \"\n\t\t\t\t+ \"library for Java originally developed by Netscape Communications \"\n\t\t\t\t+ \"Corporation and first released on December 16, 1996.\\n\\n\"\n\t\t\t\t+ \"On April 2, 1997, Sun Microsystems and Netscape Communications\"\n\t\t\t\t+ \" Corporation announced their intention to combine IFC with other\"\n\t\t\t\t+ \" technologies to form the Java Foundation Classes. In addition \"\n\t\t\t\t+ \"to the components originally provided by IFC, Swing introduced \"\n\t\t\t\t+ \"a mechanism that allowed the look and feel of every component \"\n\t\t\t\t+ \"in an application to be altered without making substantial \"\n\t\t\t\t+ \"changes to the application code. The introduction of support \"\n\t\t\t\t+ \"for a pluggable look and feel allowed Swing components to \"\n\t\t\t\t+ \"emulate the appearance of native components while still \"\n\t\t\t\t+ \"retaining the benefits of platform independence. This feature \"\n\t\t\t\t+ \"also makes it easy to have an individual application's appearance \"\n\t\t\t\t+ \"look very different from other native programs.\\n\\n\"\n\t\t\t\t+ \"Originally distributed as a separately downloadable library, \"\n\t\t\t\t+ \"Swing has been included as part of the Java Standard Edition \"\n\t\t\t\t+ \"since release 1.2. The Swing classes are contained in the \"\n\t\t\t\t+ \"javax.swing package hierarchy.\\n\\n\";\n\t\t// We create the TextArea and pass the story in as an argument.\n\t\tJTextArea storyArea = new JTextArea(story);\n\t\tstoryArea.setEditable(true);\n\t\tstoryArea.setWrapStyleWord(true);\n\t\t// We create the ScrollPane and instantiate it with the TextArea as an argument\n\t\tJScrollPane area = new JScrollPane(storyArea);\t\t\t\n\t\tmainPanel.add(area);\t\n\t\tthis.setContentPane(mainPanel);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setSize(350, 300);\n\t\tthis.setVisible(true);\n\t}", "public void createAndShowGUI() {\n\n setTitle(title);\n // Sets what to do when frame closes\n setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n setIconImage(new ImageIcon(ClassLoader.getSystemResource(ICON_PATH)).getImage());\n\n //shows the frame\n pack();\n setLocationRelativeTo(null); //centers frame\n setVisible(true);\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"FEEx v. \"+VERSION);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n Main p = new Main();\n p.addComponentToPane(frame.getContentPane());\n\n frame.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n \tstopPolling();\n \tstopMPP();\n p.port.close();\n Utils.storeSizeAndPosition(frame);\n }\n });\n \n //Display the window.\n frame.pack();\n Utils.restoreSizeAndPosition(frame);\n frame.setVisible(true);\n }", "public gui() {\n initComponents();\n }", "public gui() {\n initComponents();\n }", "private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"MRALD Color Chooser\");\n\n //Create and set up the content pane.\n JComponent newContentPane = new MraldColorChooser(coloringItems);\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"CsvPickerPane\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n CsvPickerPane demopane = new CsvPickerPane(frame);\n frame.getContentPane().add(demopane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "public void createAndShowGUI(JFrame frame) {\n providerSideBar(frame.getContentPane(), pat);\n topBarPatientInformation(frame.getContentPane(), pat);\n patientReferralPanel(frame.getContentPane());\n\n }", "public void createGUI() {\n\n\t\tcontents = getContentPane();\n\t\tcontents.setLayout(new GridLayout(size, size));\n\n\t\t// Set Up Menu Bar\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tsetJMenuBar(menuBar);\n\n\t\tJMenu game = new JMenu(\"Game\");\n\t\tmenuBar.add(game);\n\t\tJMenuItem clearBoard = new JMenuItem(\"New Game\");\n\t\tgame.add(clearBoard);\n\t\tJMenuItem boardSize = new JMenuItem(\"Change Size\");\n\t\tgame.add(boardSize);\n\t\tJMenuItem exit = new JMenuItem(\"Exit\");\n\t\tgame.add(exit);\n\n\t\tJMenu help = new JMenu(\"Help\");\n\t\tmenuBar.add(help);\n\t\tJMenuItem rules = new JMenuItem(\"How to Play\");\n\t\thelp.add(rules);\n\t\tJMenuItem about = new JMenuItem(\"About\");\n\t\thelp.add(about);\n\n\t\tJMenu playerSelect = new JMenu(\"Players: \" + players);\n\t\tmenuBar.add(playerSelect);\n\t\tJMenuItem players2 = new JMenuItem(\"2 Player Game\");\n\t\tplayerSelect.add(players2);\n\t\tJMenuItem players3 = new JMenuItem(\"3 Player Game\");\n\t\tplayerSelect.add(players3);\n\t\tJMenuItem players4 = new JMenuItem(\"4 Player Game\");\n\t\tplayerSelect.add(players4);\n\n\t\tmenuBar.add(Box.createHorizontalGlue());\n\n\t\tplayerTurnLbl.setFont(new Font(\"Lucida Grande\", Font.BOLD, 12)); // Player 1's Turn\n\t\tmenuBar.add(playerTurnLbl);\n\t\tplayerTurnLbl.setVisible(true);\n\n\t\tinvalidMoveLbl.setFont(new Font(\"Lucida Grande\", Font.BOLD, 12)); // Invalid Move Alert\n\t\tinvalidMoveLbl.setForeground(Color.RED);\n\t\tmenuBar.add(invalidMoveLbl);\n\t\tinvalidMoveLbl.setVisible(false);\n\n\t\t// Exit Button Action\n\t\texit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\n\t\t// Board Size Button Action\n\t\tboardSize.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\trestartGame();\n\t\t\t}\n\t\t});\n\n\t\t// Reset Board Button Action\n\t\tclearBoard.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tresetBoard();\n\t\t\t}\n\t\t});\n\n\t\t// Rules Button Action\n\t\trules.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\"1. Players take turns moving up, down, left, or right to generate a self-avoiding walk.\\n\\tClick on a square to make your move.\\n\\n2. A player who makes a self-intersecting move loses the game. \\n\\n3. A player can win the game by making a self-intersecting move that creates a self-avoiding polygon.\\n\\tThis is only valid after at least 4 moves.\",\n\t\t\t\t\t\t\"Self-Avoiding Walk Game Rules\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t}\n\t\t});\n\n\t\t// About Button Action\n\t\tabout.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\"Self-Avoiding Walk Multiplayer Game\\nDeveloped by Adam Binder\\nCopyright 2019\", \"About\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\t\t});\n\n\t\t// 2 Player Button Action\n\t\tplayers2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tplayers = 2;\n\t\t\t\tresetBoard();\n\t\t\t}\n\t\t});\n\n\t\t// 3 Player Button Action\n\t\tplayers3.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tplayers = 3;\n\t\t\t\tresetBoard();\n\t\t\t}\n\t\t});\n\n\t\t// 4 Player Button Action\n\t\tplayers4.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tplayers = 4;\n\t\t\t\tresetBoard();\n\t\t\t}\n\t\t});\n\n\t\t// Create event handlers:\n\t\tButtonHandler buttonHandler = new ButtonHandler();\n\n\t\t// Create and add board components:\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tfor (int j = 0; j < size; j++) {\n\t\t\t\tsquares[i][j] = new JButton();\n\t\t\t\tsquares[i][j].setBorder(null);\n\t\t\t\tsquares[i][j].setOpaque(true);\n\t\t\t\tsquares[i][j].setBorderPainted(false);\n\t\t\t\tif ((i + j) % 2 != 0) {\n\t\t\t\t\tsquares[i][j].setBackground(colorGray);\n\t\t\t\t\tsquares[i][j].setBorder(null);\n\t\t\t\t\tsquares[i][j].setOpaque(true);\n\t\t\t\t}\n\t\t\t\tcontents.add(squares[i][j]);\n\t\t\t\tsquares[i][j].addActionListener(buttonHandler);\n\t\t\t}\n\t\t}\n\t}", "private static void createAndShowGUI() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\n\t\tLevelEditor le = new LevelEditor();\n\t}", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Gomaku - 5 In A Row\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setSize(600, 600);\n\n //Add the ubiquitous \"Hello World\" label.\n JPanel board = new JPanel();\n board.setSize(400, 400);\n board.set\n frame.getContentPane().add(board);\n\n //Display the window.\n frame.setVisible(true);\n }", "public History_GUI(){\n super();\n InitializeComponents();\n ConfigureWin();\n\n }", "private void initialize() {\n\t\tfrmAddForm = new JFrame();\n\t\tfrmAddForm.setTitle(\"Add Form\");\n\t\tfrmAddForm.setBounds(100, 100, 450, 300);\n\t\tfrmAddForm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmAddForm.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel addFormTitle = new JLabel(\"Add Form\");\n\t\taddFormTitle.setFont(new Font(\"Tahoma\", Font.BOLD, 19));\n\t\taddFormTitle.setBounds(174, 10, 108, 23);\n\t\tfrmAddForm.getContentPane().add(addFormTitle);\n\t\t\n\t\tJLabel firstNameLabel = new JLabel(\"First Name:\");\n\t\tfirstNameLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tfirstNameLabel.setBounds(10, 72, 76, 13);\n\t\tfrmAddForm.getContentPane().add(firstNameLabel);\n\t\t\n\t\tJLabel lastNameLabel = new JLabel(\"Last Name:\");\n\t\tlastNameLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlastNameLabel.setBounds(10, 120, 76, 13);\n\t\tfrmAddForm.getContentPane().add(lastNameLabel);\n\t\t\n\t\tJLabel ageLabel = new JLabel(\"Age:\");\n\t\tageLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tageLabel.setBounds(10, 165, 76, 13);\n\t\tfrmAddForm.getContentPane().add(ageLabel);\n\t\t\n\t\tfirstNameText = new JTextField();\n\t\tfirstNameText.setToolTipText(\"Enter first name.\");\n\t\tfirstNameText.setBounds(146, 70, 96, 19);\n\t\tfrmAddForm.getContentPane().add(firstNameText);\n\t\tfirstNameText.setColumns(10);\n\t\t\n\t\tlastNameText = new JTextField();\n\t\tlastNameText.setToolTipText(\"Enter last name.\");\n\t\tlastNameText.setColumns(10);\n\t\tlastNameText.setBounds(146, 118, 96, 19);\n\t\tfrmAddForm.getContentPane().add(lastNameText);\n\t\t\n\t\tageText = new JTextField();\n\t\tageText.setToolTipText(\"Enter age.\");\n\t\tageText.setColumns(10);\n\t\tageText.setBounds(146, 163, 96, 19);\n\t\tfrmAddForm.getContentPane().add(ageText);\n\t\t\n\t\tJLabel statusLabel = new JLabel(\"\");\n\t\tstatusLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tstatusLabel.setBounds(294, 121, 122, 23);\n\t\tfrmAddForm.getContentPane().add(statusLabel);\n\t\t\n\t\tJButton addButton = new JButton(\"Add\");\n\t\taddButton.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\taddButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t// holds the values from text fields later\n\t\t\t\t\tString firstName = \"\";\n\t\t\t\t\tString lastName = \"\";\n\t\t\t\t\tint age = 0;\n\t\t\t\t\t\n\t\t\t\t\tString user = \"root\";\n\t\t\t\t\tString password = \"\";\n\t\t\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/test\", user, password);\n\t\t\t\t\tStatement stmnt = con.createStatement();\n\t\t\t\t\t\n\t\t\t\t\t// get the values from text field\n\t\t\t\t\tfirstName = firstNameText.getText();\n\t\t\t\t\tlastName = lastNameText.getText();\n\t\t\t\t\tage = Integer.parseInt(ageText.getText());\n\t\t\t\t\t\n\t\t\t\t\tString sql = \"insert into test (firstName, lastName, age)\" + \n\t\t\t\t\t\"values (\" + \"'\" + firstName + \"',\" + \"'\" + lastName + \"',\" + \"'\" + age + \"')\"; \n\t\t\t\t\t\n\t\t\t\t\tif (stmnt.execute(sql) == false) {\n\t\t\t\t\t\t//System.out.println(\"Record added.\");\n\t\t\t\t\t\tString message = \"Record added.\";\n\t\t\t\t\t\tstatusLabel.setText(message);\n\t\t\t\t\t\tfirstNameText.setText(null);\n\t\t\t\t\t\tlastNameText.setText(null);\n\t\t\t\t\t\tageText.setText(null);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//System.out.println(\"Recorded failed to add.\");\n\t\t\t\t\t\tString message = \"Failed to add record.\";\n\t\t\t\t\t\tstatusLabel.setText(message);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception a) {\n\t\t\t\t\ta.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\taddButton.setToolTipText(\"Add record to database.\");\n\t\taddButton.setBounds(157, 211, 85, 42);\n\t\tfrmAddForm.getContentPane().add(addButton);\n\t\t\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfrmAddForm.setVisible(false);\n\t\t\t\tMenu menu = new Menu();\n\t\t\t\tmenu.run();\n\t\t\t}\n\t\t});\n\t\tbackButton.setBounds(0, 0, 85, 21);\n\t\tfrmAddForm.getContentPane().add(backButton);\n\t}", "private void InitGUI() {\n\n\t\t//Configuraciones de la ventana principal\n\t\tcontenedor = getContentPane();\n\t\tcontenedor.removeAll();\n\t\tgetContentPane().setLayout(null);\n\t\tthis.setUndecorated(true);\n\t\tlistener = new ManejadorDeBotones();\n\t\tmanejadorDesplazamientoVentana(this);\n\n\t\t// Logo del sofa\n\t\tJLabel imagenSofa = new JLabel(\"\");\n\t\timagenSofa.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/sofa.png\")));\n\t\timagenSofa.setBounds(199, 15, 120, 80);\n\t\tgetContentPane().add(imagenSofa);\n\n\t\t// Etiqueta para el nombre al ladpo del logo\n\t\tJLabel lblMueblesYMuebles = new JLabel(\" Muebles y Muebles\");\n\t\tlblMueblesYMuebles.setFont(font);\n\t\tlblMueblesYMuebles.setForeground(Color.WHITE);\n\t\tlblMueblesYMuebles.setBounds(390, 77, 152, 32);\n\t\tgetContentPane().add(lblMueblesYMuebles);\n\n\t\t// Etiqueta para el logo XYZ\n\t\tJLabel imagenLogo = new JLabel(\"\");\n\t\timagenLogo.setIcon(\n\t\t\t\tnew ImageIcon(GUIMenuAdmin.class.getResource(\"/images/logo_blanco.png\")));\n\t\timagenLogo.setBounds(288, 23, 213, 82);\n\t\tgetContentPane().add(imagenLogo);\n\n\t\t//Boton para inicial crear ordenes de trabajo\n\t\tcrearOrden = new JButton(\"CREAR\");\n\t\tcrearOrden.setForeground(SystemColor.textHighlight);\n\t\tcrearOrden.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tcrearOrden.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tcrearOrden.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/orden_crear.png\")));\n\t\tcrearOrden.setFocusPainted(false);\n\t\tcrearOrden.setBorderPainted(false);\n\t\tcrearOrden.setOpaque(true);\n\t\tcrearOrden.setBackground(new Color(227, 227, 227));\n crearOrden.setFont(font);\n crearOrden.setBounds(117, 219, 140, 120);\n crearOrden.addActionListener(listener);\n getContentPane().add(crearOrden);\n\n\t\t//Boton para modificar ordenes de trabajo\n\t\tmodificarOrden = new JButton(\"MODIFICAR\");\n\t\tmodificarOrden.setForeground(SystemColor.textHighlight);\n\t\tmodificarOrden.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tmodificarOrden.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tmodificarOrden.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/orden_editar.png\")));\n\t\tmodificarOrden.setFocusPainted(false);\n\t\tmodificarOrden.setBorderPainted(false);\n\t\tmodificarOrden.setOpaque(true);\n\t\tmodificarOrden.setBackground(new Color(227, 227, 227));\n\t\tmodificarOrden.setFont(font);\n\t\tmodificarOrden.setBounds(267, 219, 140, 120);\n modificarOrden.addActionListener(listener);\n getContentPane().add(modificarOrden);\n\n\t\t//Boton para inicial la actualizacion de los usuarios\n\t\tconsultarOrden = new JButton(\"CONSULTAR\");\n\t\tconsultarOrden.setForeground(SystemColor.textHighlight);\n\t\tconsultarOrden.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tconsultarOrden.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tconsultarOrden.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/orden_buscar.png\")));\n\t\tconsultarOrden.setFocusPainted(false);\n\t\tconsultarOrden.setBorderPainted(false);\n\t\tconsultarOrden.setOpaque(true);\n\t\tconsultarOrden.setBackground(new Color(227, 227, 227));\n\t\tconsultarOrden.setFont(font);\n\t\tconsultarOrden.setBounds(417, 219, 140, 120);\n consultarOrden.addActionListener(listener);\n getContentPane().add(consultarOrden);\n\n //Boton salir\n\t\tsalir = new JButton(\"\");\n\t\tsalir.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/salir.png\")));\n\t\tsalir.setBorderPainted(false);\n\t\tsalir.setBorder(null);\n\t\tsalir.setMargin(new Insets(0, 0, 0, 0));\n\t\tsalir.setContentAreaFilled(false);\n\t\tsalir.addActionListener(listener);\n\t\tsalir.setBounds(588, 411, 81, 59);\n\t\tgetContentPane().add(salir);\n\n\t\t//-- Eriqueta --//\n\t\tlabel_1 = new JLabel(\"ORDENES DE TRABAJO\");\n\t\tlabel_1.setForeground(SystemColor.textHighlight);\n\t\tlabel_1.setFont(font);\n\t\tlabel_1.setBounds(117, 192, 140, 14);\n\t\tgetContentPane().add(label_1);\n\n\t\t//-- Separadores --//\n\t\tseparator_1 = new JSeparator();\n\t\tseparator_1.setForeground(SystemColor.textHighlight);\n\t\tseparator_1.setBackground(new Color(255, 255, 255));\n\t\tseparator_1.setBounds(260, 199, 297, 9);\n\t\tgetContentPane().add(separator_1);\n\t\t\n\t\t//Etiqueta salir\n\t\tlblSalir = new JLabel(\"SALIR\");\n\t\tlblSalir.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblSalir.setForeground(SystemColor.textHighlight);\n\t\tlblSalir.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblSalir.setBounds(597, 391, 49, 14);\n\t\tgetContentPane().add(lblSalir);\n\t\t//Etiqueta superior azul\n\t\tJLabel fondoAzul = new JLabel(\"\");\n\t\tfondoAzul.setOpaque(true);\n\t\tfondoAzul.setBackground(new Color(45, 118, 232));// azul #2D76E8\n\t\tfondoAzul.setBounds(0, 0, 679, 120);\n\t\tgetContentPane().add(fondoAzul);\n\n\t\t//Titulo para tipo de usuario\n\t\tJLabel titulo = new JLabel(\"JEFE DE TALLER\");\n\t\ttitulo.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\ttitulo.setForeground(SystemColor.textHighlight);\n\t\ttitulo.setBounds(417, 146, 140, 21);\n\t\tgetContentPane().add(titulo);\n\n\t\t\n\t\t// Etiqueta principal blanca\n\t\tJLabel fondoBlanco = new JLabel(\"\");\n\t\tfondoBlanco.setOpaque(true);\n\t\tfondoBlanco.setBackground(new Color(255, 255, 255));\n\t\tfondoBlanco.setBounds(0, 120, 679, 377);\n\t\tgetContentPane().add(fondoBlanco);\n\n\t\t//Configuraciones adicionales de la ventana principal\n\t\tsetSize(679, 497);\n\t\tsetResizable(false);\n\t\tsetVisible(true);\n\t\tsetLocationRelativeTo(null);\n\t\tsetShape(new java.awt.geom.RoundRectangle2D.Double(0, 0, getWidth(), getHeight(), 5, 5));\n\n }", "public MainUI() {\r\n initComponents();\r\n this.setLocationRelativeTo(null);\r\n /**/\r\n }", "public NewJFrame1() {\n initComponents();\n }", "public ExecutantGui() {\n initComponents();\n }", "public MainFrame(){\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t} catch (ClassNotFoundException | IllegalAccessException | UnsupportedLookAndFeelException | InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tnbRules = 1;\n \tnbTabs = 0;\n \tbasePanel = new JPanel();\n \tbasePanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n \ttabs = new JTabbedPane(SwingConstants.TOP);\n\n \tJToolBar toolBar = new JToolBar();\n newGen = new JButton(\"Nouvelle génération\");\n newGen.addActionListener(new Listener(\"Tab\",this));\n toolBar.add(newGen);\n example = new JButton(\"Exemples\");\n example.addActionListener(new Listener(\"Example\", this));\n toolBar.add(example);\n help = new JButton(\"Aide\");\n help.addActionListener(new Listener(\"Help\",this));\n toolBar.add(help);\n\n this.setTitle(\"L-system interface\");\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tDimension windowDimension = new Dimension(Constants.INITIAL_WIDTH, Constants.INITIAL_HEIGHT);\n this.setSize(windowDimension);\n this.setLocationRelativeTo(null);\n this.add(tabs);\n this.add(toolBar, BorderLayout.NORTH);\n this.setPreferredSize(windowDimension);\n newComponent((byte)1);\n\t\trenameTabs();\n\t\tthis.setResizable(false);\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Combo box editabel\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //2. kreirati kontrole i pobacati kako nam kaže neki manager LayoutManager\n JComponent comboBoxPanel = new ComboBoxPanel2();\n comboBoxPanel.setOpaque(true);\n frame.setContentPane(comboBoxPanel);\n\n //3. prikazati prozor\n frame.pack();\n frame.setVisible(true);\n }", "private void initialize() {\r\n\r\n\t\tfrmHistoriasDeZagas = new JFrame();\r\n\t\tfrmHistoriasDeZagas.getContentPane().setBackground(Color.BLACK);\r\n\t\tfrmHistoriasDeZagas.setTitle(\"Historias de Zagas\");\r\n\t\tfrmHistoriasDeZagas.setBackground(Color.WHITE);\r\n\t\tfrmHistoriasDeZagas\r\n\t\t\t\t.setIconImage(Toolkit\r\n\t\t\t\t\t\t.getDefaultToolkit()\r\n\t\t\t\t\t\t.getImage(\r\n\t\t\t\t\t\t\t\tArmas.class\r\n\t\t\t\t\t\t\t\t\t\t.getResource(\"/images/Historias de Zagas, logo.png\")));\r\n\t\tfrmHistoriasDeZagas.setBounds(100, 100, 439, 462);\r\n\t\tfrmHistoriasDeZagas.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r\n\t\tfrmHistoriasDeZagas.getContentPane().setLayout(null);\r\n\t\tfrmHistoriasDeZagas.setLocationRelativeTo(null);\r\n\t\tfrmHistoriasDeZagas.setResizable(false);\r\n\r\n\t\tfinal JButton btnNewButton = new JButton(\"JUGAR\");\r\n\t\tif (Loader.usuario.equals(\"\")) {\r\n\t\t\tbtnNewButton.setEnabled(false);\r\n\r\n\t\t}\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tJugar window = new Jugar();\r\n\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbtnNewButton.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnNewButton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnNewButton.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\t\t\t\tnull, null));\r\n\t\tbtnNewButton.setForeground(Color.WHITE);\r\n\t\tbtnNewButton.setBackground(new Color(139, 69, 19));\r\n\t\tbtnNewButton.setFont(mf.MyFont(0, 17));\r\n\t\tbtnNewButton.setBounds(10, 51, 414, 34);\r\n\t\tbtnNewButton.setBorderPainted(false);\r\n\t\tbtnNewButton.setContentAreaFilled(false);\r\n\t\tbtnNewButton.setFocusPainted(false);\r\n\t\tbtnNewButton.setOpaque(false);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnNewButton);\r\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnNewButton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\t\t\tbtnNewButton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal JButton btnCreadorDeNpcs = new JButton(\"CREADOR DE NPCs\");\r\n\t\tbtnCreadorDeNpcs.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tStartNPC.atrpoints = new AtributePoints();\r\n\t\t\t\tStartNPC.skpoints = new SkillPoints();\r\n\t\t\t\tStartNPC.atributos = new Atributes(StartNPC.atrpoints);\r\n\t\t\t\tStartNPC.combatSkills = new CombatSkills(StartNPC.skpoints);\r\n\t\t\t\tStartNPC.knowledgeSkills = new KnowledgeSkills(\r\n\t\t\t\t\t\tStartNPC.skpoints);\r\n\t\t\t\tStartNPC.magicSkills = new MagicSkills(StartNPC.skpoints);\r\n\t\t\t\tStartNPC.knowhowSkills = new KnowHowSkills(StartNPC.skpoints);\r\n\t\t\t\tBlessing blessing = new Blessing(\"\");\r\n\t\t\t\tSetbacks setbacks = new Setbacks();\r\n\t\t\t\tPrivileges privileges = new Privileges();\r\n\t\t\t\tRace race = new Race(\"\");\r\n\t\t\t\tEquipment equipment = new Equipment();\r\n\t\t\t\tArrayList<String> posarm = new ArrayList<String>();\r\n\t\t\t\tPossesions posss = new Possesions(posarm);\r\n\t\t\t\tArmor armor = new Armor(\"\", \"\", false,false, posss);\r\n\t\t\t\tStartNPC.character = new Characters(null, race, \"\", 0, 2, 10,\r\n\t\t\t\t\t\t20, 20, StartNPC.atributos, StartNPC.combatSkills,\r\n\t\t\t\t\t\tStartNPC.knowledgeSkills, StartNPC.magicSkills,\r\n\t\t\t\t\t\tStartNPC.knowhowSkills, blessing, privileges, setbacks,\r\n\t\t\t\t\t\tfalse, armor, equipment,null,null,null,null,null,null,null,null,null,null,null,null, 0, 1,0,\"\",\"\",\"\");\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\tStartNPC window;\r\n\t\t\t\ttry {\r\n\t\t\t\t\twindow = new StartNPC();\r\n\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDeNpcs.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDeNpcs.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDeNpcs.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDeNpcs.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\r\n\t\tbtnCreadorDeNpcs.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnCreadorDeNpcs.setBorder(new BevelBorder(BevelBorder.RAISED, null,\r\n\t\t\t\tnull, null, null));\r\n\t\tbtnCreadorDeNpcs.setForeground(Color.WHITE);\r\n\t\tbtnCreadorDeNpcs.setBackground(new Color(139, 69, 19));\r\n\t\tbtnCreadorDeNpcs.setFont(mf.MyFont(0, 17));\r\n\t\tbtnCreadorDeNpcs.setBounds(10, 141, 414, 34);\r\n\t\tbtnCreadorDeNpcs.setBorderPainted(false);\r\n\t\tbtnCreadorDeNpcs.setContentAreaFilled(false);\r\n\t\tbtnCreadorDeNpcs.setFocusPainted(false);\r\n\t\tbtnCreadorDeNpcs.setOpaque(false);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnCreadorDeNpcs);\r\n\r\n\t\tfinal JButton btnCreadorDePersonajes = new JButton(\r\n\t\t\t\t\"CREADOR DE PERSONAJES\");\r\n\t\tbtnCreadorDePersonajes.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDePersonajes.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDePersonajes.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDePersonajes.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnCreadorDePersonajes.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnCreadorDePersonajes.setBorder(new BevelBorder(BevelBorder.RAISED,\r\n\t\t\t\tnull, null, null, null));\r\n\t\tbtnCreadorDePersonajes.setForeground(Color.WHITE);\r\n\t\tbtnCreadorDePersonajes.setBackground(new Color(139, 69, 19));\r\n\t\tbtnCreadorDePersonajes.setBorderPainted(false);\r\n\t\tbtnCreadorDePersonajes.setContentAreaFilled(false);\r\n\t\tbtnCreadorDePersonajes.setFocusPainted(false);\r\n\t\tbtnCreadorDePersonajes.setOpaque(false);\r\n\t\tbtnCreadorDePersonajes.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tcrear = \"pj\";\r\n\t\t\t\tStart.atrpoints = new AtributePoints();\r\n\t\t\t\tStart.skpoints = new SkillPoints();\r\n\t\t\t\tStart.atributos = new Atributes(Start.atrpoints);\r\n\t\t\t\tStart.combatSkills = new CombatSkills(Start.skpoints);\r\n\t\t\t\tStart.knowledgeSkills = new KnowledgeSkills(Start.skpoints);\r\n\t\t\t\tStart.magicSkills = new MagicSkills(Start.skpoints);\r\n\t\t\t\tStart.knowhowSkills = new KnowHowSkills(Start.skpoints);\r\n\t\t\t\tBlessing blessing = new Blessing(\"\");\r\n\t\t\t\tSetbacks setbacks = new Setbacks();\r\n\t\t\t\tPrivileges privileges = new Privileges();\r\n\t\t\t\tRace race = new Race(\"\");\r\n\t\t\t\tEquipment equipment = new Equipment();\r\n\t\t\t\tArrayList<String> posarm = new ArrayList<String>();\r\n\t\t\t\tPossesions posss = new Possesions(posarm);\r\n\t\t\t\tArmor armor = new Armor(\"\", \"\", false,false, posss);\r\n\t\t\t\tStart.character = new Characters(null, race, \"\", 0, 2, 10, 20,\r\n\t\t\t\t\t\t20, Start.atributos, Start.combatSkills,\r\n\t\t\t\t\t\tStart.knowledgeSkills, Start.magicSkills,\r\n\t\t\t\t\t\tStart.knowhowSkills, blessing, privileges, setbacks,\r\n\t\t\t\t\t\tfalse, armor, equipment,null,null,null,null,null,null,null,null,null,null,null,null, 0, 1,0,\"\",\"\",\"\");\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\tStart window;\r\n\t\t\t\ttry {\r\n\t\t\t\t\twindow = new Start();\r\n\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDePersonajes.setFont(mf.MyFont(0, 17));\r\n\t\tbtnCreadorDePersonajes.setBounds(10, 186, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnCreadorDePersonajes);\r\n\r\n\t\tfinal JButton btnCreditos = new JButton(\"CRÉDITOS\");\r\n\t\tbtnCreditos.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnCreditos.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnCreditos.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreditos.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnCreditos.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnCreditos.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tCreditos window = new Creditos();\r\n\t\t\t\twindow.getFrame().setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tfinal JButton btnHistoria = new JButton(\"GESTOR DE PARTIDAS\");\r\n\t\tbtnHistoria.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tGestorMain window = new GestorMain();\r\n\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\r\n\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnHistoria.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tbtnHistoria.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\r\n\t\t\t\tbtnHistoria.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnHistoria.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnHistoria.setOpaque(false);\r\n\t\tbtnHistoria.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnHistoria.setForeground(Color.WHITE);\r\n\t\tbtnHistoria.setFont(mf.MyFont(0, 17));\r\n\t\tbtnHistoria.setFocusPainted(false);\r\n\t\tbtnHistoria.setContentAreaFilled(false);\r\n\t\tbtnHistoria.setBorderPainted(false);\r\n\t\tbtnHistoria.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\r\n\t\tnull, null));\r\n\t\tbtnHistoria.setBackground(new Color(139, 69, 19));\r\n\t\tbtnHistoria.setBounds(10, 96, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnHistoria);\r\n\t\tbtnCreditos.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\t\t\t\tnull, null));\r\n\t\tbtnCreditos.setForeground(Color.WHITE);\r\n\t\tbtnCreditos.setBackground(new Color(139, 69, 19));\r\n\t\tbtnCreditos.setFont(mf.MyFont(0, 17));\r\n\t\tbtnCreditos.setBounds(10, 321, 414, 34);\r\n\t\tbtnCreditos.setBorderPainted(false);\r\n\t\tbtnCreditos.setContentAreaFilled(false);\r\n\t\tbtnCreditos.setFocusPainted(false);\r\n\t\tbtnCreditos.setOpaque(false);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnCreditos);\r\n\r\n\t\tfinal JButton button = new JButton(\"SALIR\");\r\n\t\tbutton.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbutton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbutton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbutton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tint seleccion = JOptionPane.showOptionDialog(\r\n\t\t\t\t\t\tfrmHistoriasDeZagas,\r\n\t\t\t\t\t\t\"¿Estás seguro de querer cerrar el programa?.\",\r\n\t\t\t\t\t\t\"¡Atención!\", JOptionPane.YES_NO_OPTION,\r\n\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, new Object[] { \"Si\",\r\n\t\t\t\t\t\t\t\t\"No\" }, // null para YES, NO y CANCEL\r\n\t\t\t\t\t\t\"opcion 1\");\r\n\t\t\t\tif (JOptionPane.YES_OPTION == seleccion) {\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\ttxtBienvenidoSeleccioneA = new JLabel();\r\n\t\ttxtBienvenidoSeleccioneA.setOpaque(false);\r\n\t\ttxtBienvenidoSeleccioneA.setForeground(Color.WHITE);\r\n\t\ttxtBienvenidoSeleccioneA.setBackground(new Color(205, 133, 63));\r\n\t\ttxtBienvenidoSeleccioneA.setBorder(null);\r\n\t\ttxtBienvenidoSeleccioneA.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttxtBienvenidoSeleccioneA.setFont(mf.MyFont(0, 13));\r\n\t\ttxtBienvenidoSeleccioneA\r\n\t\t\t\t.setText(\"Bienvenido, seleccione a qué servicio desea acceder.\");\r\n\t\ttxtBienvenidoSeleccioneA.setBounds(0, 0, 444, 40);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(txtBienvenidoSeleccioneA);\r\n\t\tbutton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbutton.setOpaque(false);\r\n\t\tbutton.setForeground(Color.WHITE);\r\n\t\tbutton.setFont(mf.MyFont(0, 17));\r\n\t\tbutton.setFocusPainted(false);\r\n\t\tbutton.setContentAreaFilled(false);\r\n\t\tbutton.setBorderPainted(false);\r\n\t\tbutton.setBorder(new BevelBorder(BevelBorder.RAISED, null, null, null,\r\n\t\t\t\tnull));\r\n\t\tbutton.setBackground(new Color(139, 69, 19));\r\n\t\tbutton.setBounds(10, 366, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(button);\r\n\r\n\t\tfinal JButton btnAyuda = new JButton(\"AYUDA\");\r\n\t\tbtnAyuda.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tAyudaPrincipal window = new AyudaPrincipal();\r\n\t\t\t\twindow.getFrame().setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAyuda.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tbtnAyuda.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\r\n\t\t\t\tbtnAyuda.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAyuda.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnAyuda.setOpaque(false);\r\n\t\tbtnAyuda.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnAyuda.setForeground(Color.WHITE);\r\n\t\tbtnAyuda.setFont(mf.MyFont(0, 17));\r\n\t\tbtnAyuda.setFocusPainted(false);\r\n\t\tbtnAyuda.setContentAreaFilled(false);\r\n\t\tbtnAyuda.setBorderPainted(false);\r\n\t\tbtnAyuda.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\r\n\t\tnull, null));\r\n\t\tbtnAyuda.setBackground(new Color(139, 69, 19));\r\n\t\tbtnAyuda.setBounds(10, 276, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnAyuda);\r\n\r\n\t\tfinal JButton btnPerfil = new JButton(\"PERFIL\");\r\n\t\tif (Loader.usuario.equals(\"\")) {\r\n\t\t\tbtnPerfil.setEnabled(false);\r\n\r\n\t\t}\r\n\t\tbtnPerfil.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnPerfil.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnPerfil.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPerfil.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\t\tPerfil window = new Perfil();\r\n\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t} catch (ClassNotFoundException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (InstantiationException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (IllegalAccessException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPerfil.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnPerfil.setOpaque(false);\r\n\t\tbtnPerfil.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnPerfil.setForeground(Color.WHITE);\r\n\t\tbtnPerfil.setFont(mf.MyFont(0, 17));\r\n\t\tbtnPerfil.setFocusPainted(false);\r\n\t\tbtnPerfil.setContentAreaFilled(false);\r\n\t\tbtnPerfil.setBorderPainted(false);\r\n\t\tbtnPerfil.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\r\n\t\tnull, null));\r\n\t\tbtnPerfil.setBackground(new Color(139, 69, 19));\r\n\t\tbtnPerfil.setBounds(10, 231, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnPerfil);\r\n\r\n\t\tfinal JButton btnAdministracin = new JButton(\"ADMINISTRACI\\u00D3N\");\r\n\t\tbtnAdministracin.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tAdministracionPrinc window = new AdministracionPrinc();\r\n\t\t\t\twindow.getFrame().setVisible(true);\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAdministracin.setVisible(false);\r\n\t\tbtnAdministracin.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnAdministracin.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnAdministracin.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAdministracin.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnAdministracin.setOpaque(false);\r\n\t\tbtnAdministracin.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnAdministracin.setForeground(Color.WHITE);\r\n\t\tbtnAdministracin.setFont(mf.MyFont(0, 17));\r\n\t\tbtnAdministracin.setFocusPainted(false);\r\n\t\tbtnAdministracin.setContentAreaFilled(false);\r\n\t\tbtnAdministracin.setBorderPainted(false);\r\n\t\tbtnAdministracin.setBorder(new BevelBorder(BevelBorder.RAISED, null,\r\n\t\t\t\tnull,\r\n\r\n\t\t\t\tnull, null));\r\n\t\tbtnAdministracin.setBackground(new Color(139, 69, 19));\r\n\t\tbtnAdministracin.setBounds(10, 321, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnAdministracin);\r\n\t\r\n\r\n\t\tfinal JButton btnNewButton_1 = new JButton(\"(Desconectar)\");\r\n\t\t\r\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\r\n\t\t\t\tint seleccion = JOptionPane.showOptionDialog(\r\n\t\t\t\t\t\tfrmHistoriasDeZagas,\r\n\t\t\t\t\t\t\"¿Estás seguro de querer desconectarte?.\",\r\n\t\t\t\t\t\t\"¡Atención!\", JOptionPane.YES_NO_OPTION,\r\n\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, new Object[] { \"Si\",\r\n\t\t\t\t\t\t\t\t\"No\" }, // null para YES, NO y CANCEL\r\n\t\t\t\t\t\t\"opcion 1\");\r\n\t\t\t\tif (JOptionPane.YES_OPTION == seleccion) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tif (Loader.usuario.length() == 0) {\r\n\t\t\t\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\t\t\t\tLoader window = new Loader();\r\n\t\t\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\r\n\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\tLoader.usuario = \"\";\r\n\t\t\t\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\t\t\t\tLoader window = new Loader();\r\n\t\t\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (InstantiationException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnNewButton_1.setForeground(Color.BLUE);\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnNewButton_1.setForeground(Color.WHITE);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_1.setFont(mf.MyFont(3, 11));\r\n\t\tbtnNewButton_1.setFocusPainted(false);\r\n\t\tbtnNewButton_1.setContentAreaFilled(false);\r\n\t\tbtnNewButton_1.setBorderPainted(false);\r\n\t\tbtnNewButton_1.setForeground(Color.WHITE);\r\n\t\tbtnNewButton_1.setBounds(-10, 416, 125, 17);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnNewButton_1);\r\n\r\n\t\tJLabel lblNewLabel_1 = new JLabel(Loader.usuario);\r\n\t\tlblNewLabel_1.setForeground(Color.WHITE);\r\n\t\tlblNewLabel_1.setFont(mf.MyFont(0, 11));\r\n\t\tlblNewLabel_1.setBounds(104, 416, 86, 17);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(lblNewLabel_1);\r\n\r\n\t\tJLabel lblNewLabel = new JLabel(\"\");\r\n\t\tlblNewLabel.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/background-inicio.jpg\")));\r\n\t\tlblNewLabel.setBackground(Color.BLACK);\r\n\t\tlblNewLabel.setBounds(0, 0, 444, 472);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(lblNewLabel);\r\n\t\tif (Loader.admin==1) {\r\n\t\t\tfrmHistoriasDeZagas.setBounds(100, 100, 439, 500);\r\n\t\t\tfrmHistoriasDeZagas.setLocationRelativeTo(null);\r\n\t\t\tbtnCreditos.setBounds(10, 365, 414, 34);\r\n\t\t\tbutton.setBounds(10, 410, 414, 34);\r\n\t\t\tlblNewLabel_1.setBounds(104, 455, 86, 17);\r\n\t\t\tbtnNewButton_1.setBounds(-10, 455, 125, 17);\r\n\t\t\tbtnAdministracin.setVisible(true);\r\n\t\t}\r\n\t}", "public GUI_IntroDatos() {\n initComponents();\n }", "private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new SplitPaneDemo2();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private static void createAndShowGUI() {\n frame = new JFrame(\"Shopping Cart\");\n frame.setLocation(600,300);\n frame.setPreferredSize(new Dimension(800,700));\n frame.setResizable(false);\n //frame.setLayout(new GridLayout(2,2,5,5));\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new shoppingCartTableGui();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n //Display the window.\n frame.pack();\n \n // inserting the login dialogPane here\n loginPane newLoginPane = new loginPane(frame);\n clientID = newLoginPane.getClientID();\n }", "public Mainframe() {\n initComponents();\n }", "public GUI() {\n initComponents();\n }", "public GUI() {\n initComponents();\n }", "private static void initAndShowGUI() {\n }", "private void basicUIButtonActionPerformed() {\n dbCopyFrame basicFrame = new dbCopyFrame(mainFrame, true);\n basicFrame.pack();\n basicFrame.setVisible(true);\n }", "private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tframe = new JFrame(\"Captura 977R\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Set up the content pane.\r\n\t\taddComponentsToPane(frame.getContentPane());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tDimension windowSize = frame.getSize();\r\n\r\n\t\tint windowX = Math.max(0, (screenSize.width - windowSize.width) / 2);\r\n\t\tint windowY = Math.max(0, (screenSize.height - windowSize.height) / 2);\r\n\r\n\t\tframe.setLocation(windowX, windowY); // Don't use \"f.\" inside\r\n\t\t// constructor.\r\n\t\tframe.setVisible(true);\r\n\t}", "public static void createAndShowGUI() {\n windowContent.add(\"Center\",p1);\n\n //Create the frame and set its content pane\n JFrame frame = new JFrame(\"GridBagLayoutCalculator\");\n frame.setContentPane(windowContent);\n\n // Set the size of the window to be big enough to accommodate all controls\n frame.pack();\n\n // Display the window\n frame.setVisible(true);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "public MainFrame() {\n initComponents();\n \n }", "public InventoryMainFrame() {\n initComponents();\n jLabel1.setText(\"Inventory Management Application \" + versionID);\n }", "public AplicationGUI() {\n initComponents();\n }", "public NewJFrame() {\r\n initComponents();\r\n }", "private static void createAndShowGUI() {\n //Create and set up the window.\n //JFrame frame = new JFrame(\"Basics of Color\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Add content to the window.\n frame.add(new ColorBasics(), BorderLayout.CENTER);\n Menu menu = new Menu();\n frame.setJMenuBar(menu.createMenuBar());\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n }", "public MainForm() {\n initComponents();\n \n Utility.centerScreen(this);\n myself = this;\n }", "public createNew(){\n\t\tsuper(\"Create\"); // title for the frame\n\t\t//layout as null\n\t\tgetContentPane().setLayout(null);\n\t\t//get the background image\n\t\ttry {\n\t\t\tbackground =\n\t\t\t\t\tnew ImageIcon (ImageIO.read(getClass().getResource(\"Wallpaper.jpg\")));\n\t\t}//Catch for file error\n\t\tcatch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t}\n\t\t//Initialize all of the compenents \n\t\tlblBackground = new JLabel (background);\n\t\tlblTitle = new JLabel (\"Create Menu\");\n\t\tlblTitle.setFont(new Font(\"ARIAL\",Font.ITALIC, 30));\n\t\tlblName = new JLabel(\"Please Enter Your First Name.\");\n\t\tlblLastName= new JLabel (\"Please Enter Your Last Name.\");\n\t\tlblPhoneNumber = new JLabel (\"Please Enter Your Phone Number.\");\n\t\tlblAddress = new JLabel (\"Please Enter Your Address.\");\n\t\tlblMiddle = new JLabel (\"Please Enter Your Middle Name (Optional).\");\n\t\tbtnCreate = new JButton (\"Create\");\n\t\tbtnBack = new JButton (\"Back\");\n\t\t//set the font\n\t\tlblName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblLastName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblPhoneNumber.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblAddress.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblMiddle.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\n\t\t//add action listener\n\t\tbtnCreate.addActionListener(this);\n\t\tbtnBack.addActionListener(this);\n\t\t//set bounds for all the components\n\t\tbtnCreate.setBounds(393, 594, 220, 36);\n\t\ttxtMiddle.setBounds(333, 249, 342, 36);\n\t\ttxtName.setBounds(333, 158, 342, 36);\n\t\ttxtLastName.setBounds(333, 339, 342, 36);\n\t\ttxtPhoneNumber.setBounds(333, 429, 342, 36);\n\t\ttxtAddress.setBounds(333, 511, 342, 36);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblMiddle.setBounds(333, 201, 342, 36);\n\t\tlblName.setBounds(387, 110, 239, 36);\n\t\tlblLastName.setBounds(387, 297, 239, 36);\n\t\tlblPhoneNumber.setBounds(369, 387, 269, 36);\n\t\tlblAddress.setBounds(393, 477, 215, 30);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblBackground.setBounds(0, 0, 1000, 1000);\n\t\t//add components to frame\n\t\tgetContentPane().add(btnCreate);\n\t\tgetContentPane().add(txtMiddle);\n\t\tgetContentPane().add(txtLastName);\n\t\tgetContentPane().add(txtAddress);\n\t\tgetContentPane().add(txtPhoneNumber);\n\t\tgetContentPane().add(txtName);\n\t\tgetContentPane().add(lblMiddle);\n\t\tgetContentPane().add(lblLastName);\n\t\tgetContentPane().add(lblAddress);\n\t\tgetContentPane().add(lblPhoneNumber);\n\t\tgetContentPane().add(lblName);\n\t\tgetContentPane().add(btnBack);\n\t\tgetContentPane().add(lblTitle);\n\t\tgetContentPane().add(lblBackground);\n\t\t//set size, visible and action for close\n\t\tsetSize(1000,1000);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\n\t}", "public adivinaGUI() {\n initComponents();\n }", "public mainframe() {\n initComponents();\n }", "public MainForm() {\r\n initComponents();\r\n \r\n Dimension sd = Toolkit.getDefaultToolkit().getScreenSize();\r\n setLocation(sd.width / 2 - this.getWidth()/ 2, sd.height / 2 - this.getHeight()/ 2);\r\n \r\n jButtonConnect.setEnabled(false);\r\n jButtonVerifyConnection.setEnabled(false);\r\n \r\n }", "public NewJFrame()\r\n {\r\n initComponents();\r\n }", "private static ISInspectorGui createNewInstance(ISInspectorController controller) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(ISInspectorGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n Holder<ISInspectorGui> result = new Holder();\n try {\n /* Create and display the form */\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n @Override\n public void run() {\n result.setValue(new ISInspectorGui(controller));\n result.getValue().setVisible(true);\n }\n });\n } catch (InterruptedException | InvocationTargetException ex) {\n Logger.getLogger(ISInspectorGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n return result.getValue();\n }", "private static void createAndShowGUI()\n {\n Sudoku s = new Sudoku();\n }", "public NewJFrame() {\n Connect();\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }" ]
[ "0.7625538", "0.73443097", "0.72847915", "0.72804916", "0.72795576", "0.72420126", "0.71972686", "0.7178062", "0.7098915", "0.7047819", "0.7038688", "0.7038688", "0.7038688", "0.70351934", "0.70146877", "0.7012781", "0.69780046", "0.6973058", "0.6955959", "0.6952435", "0.6947147", "0.69463587", "0.6943504", "0.69134194", "0.6892948", "0.68856555", "0.6866487", "0.68633443", "0.6862385", "0.6861652", "0.6857975", "0.6857975", "0.68336356", "0.68284076", "0.6810106", "0.6786573", "0.67606866", "0.6758741", "0.6755047", "0.6748338", "0.67146116", "0.6700092", "0.6685157", "0.6669258", "0.66647387", "0.6658917", "0.6657516", "0.6654073", "0.6652782", "0.6647691", "0.6645744", "0.6641584", "0.6635895", "0.6631606", "0.6630331", "0.6614542", "0.66141546", "0.65991896", "0.6594521", "0.6594521", "0.6592238", "0.6569116", "0.6567535", "0.6566848", "0.65627867", "0.6551", "0.6550073", "0.6549", "0.65435237", "0.65373075", "0.6536643", "0.6534285", "0.65329987", "0.6528627", "0.6527735", "0.6526005", "0.6520758", "0.6515419", "0.65136045", "0.6507711", "0.6507711", "0.65034604", "0.6503127", "0.6500096", "0.64999646", "0.64958113", "0.6495309", "0.6494956", "0.649282", "0.64903855", "0.648429", "0.6484037", "0.64788085", "0.64781314", "0.6475679", "0.6472696", "0.6472668", "0.6471899", "0.64700013", "0.6469582" ]
0.69547826
19
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroup1 = new javax.swing.ButtonGroup(); jLabel1 = new javax.swing.JLabel(); lendItem = new javax.swing.JButton(); viewCustBut = new javax.swing.JButton(); sellItem = new javax.swing.JButton(); exitBut = new javax.swing.JButton(); viewItemBut = new javax.swing.JButton(); mainDesktopPane = new javax.swing.JDesktopPane(); viewlendItemBut1 = new javax.swing.JButton(); jLabel3 = new javax.swing.JLabel(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); newMenuItem = new javax.swing.JMenu(); addCustomerMenuItem = new javax.swing.JMenuItem(); addItemMenuItem = new javax.swing.JMenuItem(); exitMenuItem = new javax.swing.JMenuItem(); jMenu2 = new javax.swing.JMenu(); jMenu3 = new javax.swing.JMenu(); updateCustomerMenuItem = new javax.swing.JMenuItem(); deleteCustomerMenuItem = new javax.swing.JMenuItem(); jMenu4 = new javax.swing.JMenu(); updateItemMenuItem = new javax.swing.JMenuItem(); deleteItemMenuItem = new javax.swing.JMenuItem(); jMenu5 = new javax.swing.JMenu(); viewAllCustomerMenuItem = new javax.swing.JMenuItem(); viewAllItemMenuItem = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setAlwaysOnTop(true); jLabel1.setBackground(new java.awt.Color(102, 0, 255)); jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 48)); // NOI18N jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel1.setText(" Pemasara Harware"); jLabel1.setMaximumSize(new java.awt.Dimension(296, 42)); jLabel1.setMinimumSize(new java.awt.Dimension(296, 42)); lendItem.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N lendItem.setText("Lend Items"); lendItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { lendItemActionPerformed(evt); } }); viewCustBut.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N viewCustBut.setText("View Customers"); viewCustBut.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewCustButActionPerformed(evt); } }); sellItem.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N sellItem.setText("Sell Items"); sellItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { sellItemActionPerformed(evt); } }); exitBut.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N exitBut.setText("Exit"); exitBut.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitButActionPerformed(evt); } }); viewItemBut.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N viewItemBut.setText("View Items"); viewItemBut.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewItemButActionPerformed(evt); } }); javax.swing.GroupLayout mainDesktopPaneLayout = new javax.swing.GroupLayout(mainDesktopPane); mainDesktopPane.setLayout(mainDesktopPaneLayout); mainDesktopPaneLayout.setHorizontalGroup( mainDesktopPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 358, Short.MAX_VALUE) ); mainDesktopPaneLayout.setVerticalGroup( mainDesktopPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 0, Short.MAX_VALUE) ); viewlendItemBut1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N viewlendItemBut1.setText("View Lending Details"); viewlendItemBut1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewlendItemBut1ActionPerformed(evt); } }); jLabel3.setText("jLabel3"); jMenu1.setText("File"); newMenuItem.setText("New"); addCustomerMenuItem.setText("Customer"); addCustomerMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addCustomerMenuItemActionPerformed(evt); } }); newMenuItem.add(addCustomerMenuItem); addItemMenuItem.setText("Item"); addItemMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addItemMenuItemActionPerformed(evt); } }); newMenuItem.add(addItemMenuItem); jMenu1.add(newMenuItem); exitMenuItem.setText("Exit"); exitMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitMenuItemActionPerformed(evt); } }); jMenu1.add(exitMenuItem); jMenuBar1.add(jMenu1); jMenu2.setText("Edit"); jMenu3.setText("Customer"); updateCustomerMenuItem.setText("Update"); updateCustomerMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { updateCustomerMenuItemActionPerformed(evt); } }); jMenu3.add(updateCustomerMenuItem); deleteCustomerMenuItem.setText("Delete"); deleteCustomerMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { deleteCustomerMenuItemActionPerformed(evt); } }); jMenu3.add(deleteCustomerMenuItem); jMenu2.add(jMenu3); jMenu4.setText("Item"); updateItemMenuItem.setText("Update"); updateItemMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { updateItemMenuItemActionPerformed(evt); } }); jMenu4.add(updateItemMenuItem); deleteItemMenuItem.setText("Delete"); deleteItemMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { deleteItemMenuItemActionPerformed(evt); } }); jMenu4.add(deleteItemMenuItem); jMenu2.add(jMenu4); jMenuBar1.add(jMenu2); jMenu5.setText("View"); viewAllCustomerMenuItem.setText("View All Customer"); viewAllCustomerMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewAllCustomerMenuItemActionPerformed(evt); } }); jMenu5.add(viewAllCustomerMenuItem); viewAllItemMenuItem.setText("View All Item"); viewAllItemMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewAllItemMenuItemActionPerformed(evt); } }); jMenu5.add(viewAllItemMenuItem); jMenuBar1.add(jMenu5); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(viewCustBut, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(exitBut, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(viewItemBut, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(lendItem, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(sellItem, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(viewlendItemBut1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(mainDesktopPane)) .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(sellItem, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(1, 1, 1) .addComponent(lendItem, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(1, 1, 1) .addComponent(viewCustBut, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(1, 1, 1) .addComponent(viewItemBut, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(viewlendItemBut1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(exitBut, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(5, 5, 5)) .addComponent(mainDesktopPane)) .addContainerGap()) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "0.6944929", "0.6942576", "0.69355655", "0.6931378", "0.6927896", "0.69248974", "0.6924723", "0.69116884", "0.6910487", "0.6892381", "0.68921053", "0.6890637", "0.68896896", "0.68881863", "0.68826133", "0.68815064", "0.6881078", "0.68771756", "0.6875212", "0.68744373", "0.68711984", "0.6858978", "0.68558776", "0.6855172", "0.6854685", "0.685434", "0.68525875", "0.6851834", "0.6851834", "0.684266", "0.6836586", "0.6836431", "0.6828333", "0.68276715", "0.68262815", "0.6823921", "0.682295", "0.68167603", "0.68164384", "0.6809564", "0.68086857", "0.6807804", "0.6807734", "0.68067646", "0.6802192", "0.67943805", "0.67934304", "0.6791657", "0.6789546", "0.6789006", "0.67878324", "0.67877173", "0.6781847", "0.6765398", "0.6765197", "0.6764246", "0.6756036", "0.6755023", "0.6751404", "0.67508715", "0.6743043", "0.67387456", "0.6736752", "0.67356426", "0.6732893", "0.6726715", "0.6726464", "0.67196447", "0.67157453", "0.6714399", "0.67140275", "0.6708251", "0.6707117", "0.670393", "0.6700697", "0.66995865", "0.66989213", "0.6697588", "0.66939527", "0.66908985", "0.668935" ]
0.0
-1
End of variables declaration//GENEND:variables
public void centerJIF(JInternalFrame jif) { Dimension desktopSize = mainDesktopPane.getSize(); Dimension jInternalFrameSize = jif.getSize(); int width = (desktopSize.width - jInternalFrameSize.width) / 2; int height = (desktopSize.height - jInternalFrameSize.height) / 2; jif.setLocation(width, height); jif.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
Create an Array to transfer what we want to print in the JFrame
public String[] dataArrangement(){ String result[] = new String[10]; /**Extra Credit (5%): Enable user input for the value of K. the program should use the input if it is valid, if not it should print an error. **/ int K = 0; do { System.out.println("Enter a number for K(odd number between 1 and 90): "); Scanner scanner = new Scanner(System.in); if (scanner.hasNextInt()) { K = scanner.nextInt(); } if (K<1 || K>90 || (K%2 == 0)) { System.out.println("Invalid input, try again."); } }while (K<1 || K>90 || (K%2 == 0)); /**b. Read titanic.csv into an ArrayList of DataPoints as using readData. **/ ArrayList<DataPoint> data = new ArrayList<DataPoint>(); KNNPredictor KNNP = new KNNPredictor(K); data = KNNP.readData("titanic.csv"); //Create an ArrayList to store testing data ArrayList<DataPoint> testData = new ArrayList<DataPoint>(); for(int i=0; i<data.size(); i++) { //Check if the dataPoint is a test data if(data.get(i).getIsTest() == true) { //Run test method KNNP.test(data.get(i)); testData.add(data.get(i)); } } double accuracy = 0.0; double precision = 0.0; /**c. Compute the precision and accuracy using the ArrayList of DataPoints. **/ accuracy = KNNP.getAccuracy(testData); precision = KNNP.getPrecision(testData); long accuracyR = Math.round(accuracy*100); long precisionR = Math.round(precision*100); result[0] = "Accuracy: " + accuracyR + "%"; result[1] = "Precision: " + precisionR + "%"; //return the information that will be printed by JFrame return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showArray() {\n\t\tSystem.out.println(Arrays.toString(this.array));\n\n\t}", "private void displayArray() {\r\n System.out.println(\"CEK ARRAY : \");\r\n for (i = 0; i < array.length; i++) {\r\n System.out.print(array[i]+\",\");\r\n }\r\n }", "private void ArrayTexto() {\n int posicCol = 10, posicLin = 10, tamanhoLin = 40, alturaLin = 40;\n\n for (int lin = 0; lin < 9; lin++) {\n for (int col = 0; col < 9; col++) {\n array_texto[lin][col] = new JTextField(\"\");\n array_texto[lin][col].setBounds(posicCol, posicLin, tamanhoLin, alturaLin);\n array_texto[lin][col].setBackground(Color.white);\n getContentPane().add(array_texto[lin][col]);\n if (col == 2 || col == 5 || col == 8) {\n posicCol = posicCol + 45;\n } else {\n posicCol = posicCol + 40;\n }\n }\n posicCol = 10;\n if (lin == 2 || lin == 5 || lin == 8) {\n posicLin = posicLin + 45;\n } else {\n posicLin = posicLin + 40;\n }\n }\n }", "public Array2DPrint() {}", "@Override\n public void run() {\n\tInteger[] array1 = {1,2,3};\n\tString[] array2 = {\"Vipul\",\"Ankita\"};\n\tprint(array1);\n\tprint(array2);\n\t\n }", "public void printValues() {\n\t\tfor (int i = 0; i < 7; i++) {\n\t\t\tfor (int j = 0; j < 7; j++) {\n\t\t\t\tlblCenter[i][j].setText(\"\" + array.getElement(i, j));\n\t\t\t}\n\t\t\ttfWest[i].setText(\"\" + leftCol.getElement(i));\n\t\t\ttfSouth[i].setText(\"\" + bottomRow.getElement(i));\n\t\t}\n\t}", "public void displayArray(Cell[][] cells);", "public void mostrar() {\r\n\t\tfor (int i = 0; i < bolsa.length; i++) {\r\n\t\t\tSystem.out.printf(\"#%d: %d\\t\", i, bolsa[i]);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public void display() {\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tSystem.out.print(a[i] + \"\\t\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public void print() {\n\t\t\tfor (int i = 0; i < nowLength; i++) {\n\t\t\t\tSystem.out.print(ray[i] + \" \");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}", "public String display(){\n StringBuilder str = new StringBuilder();\n\n for(int i = 0; i < 3; ++i){\n if( Array[i] != null ) {\n str.append('\\n' + Names[i] + '\\n');\n str.append(Array[i].display());\n }\n }\n return str.toString();\n }", "public void print()\n\t{\n\t\tStringBuffer print = new StringBuffer();\n\t\tif (arraySize != 0)\n\t\t{\n\t\t\tfor (int index = 0; index < arraySize - 1; index++) \n\t\t\t{ \n\t\t\t\tprint.append(array[index] + \", \");\n\t\t\t}\n\t\t\tprint.append(array[arraySize - 1]);\n\t\t\tSystem.out.println(print.toString());\n\t\t}\n\t}", "private static void Display(Cars[] arr) {\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tSystem.out.println(arr[i]);\n\n\t\t}\n\t}", "public void displayData(String[] str);", "private void declareArray() {\n\t\twriter.println();\n\t\twriter.println(\"; array of 52 for variables:\");\n\t\twriter.print(variables + \" dw\");\n\t\tfor (int i = 0; i < 51; i++) {\n\t\t\twriter.print(\" 0,\");\n\t\t}\n\t\twriter.println(\" 0\");\n\t}", "public void fillPropertyArray()\n \t{\n \t\tsuper.fillPropertyArray();\n \t\tsuper.fillPropertyArray( gui );\n \t}", "public static void main(String[] args) \n {\n int[][] array = { \n { 1, 2, 3 }, \n { 4, 5, 6 }, \n { 7, 8, 9 } \n };\n\n // Create and run the gui\n Gui11 gui = new Gui11();\n gui.showGui();\n gui.printMatrix(array);\n }", "public void printArray(){\n\n\t\tfor (int i=0;i<1;i++){\n\n\t\t\tfor (int j=0;j<population[i].getLength();j++){\n\n\t\t\t\tSystem.out.println(\"X\" + j + \": \" + population[i].getX(j) + \" \" + \"Y\"+ j + \": \" + population[i].getY(j));\n\t\t\t\tSystem.out.println();\n\n\t\t\t}//end j\n\n\t\t\tSystem.out.println(\"The duplicate count is: \" + population[i].duplicateCheck());\n\t\t\tSystem.out.println(\"The fitness is \" + population[i].computeFitness());\n\t\t\t//population[i].computeFitness();\n\n\t\t}//end i\n\n\t}", "public static void showArray(String[] a) {\n for (int row=0; row<a.length; row++) {\n Logger.print(a[row] + \" \");\n }\n Logger.print(\"\\n\");\n }", "void display(String w[][]){\r\n System.out.println(\"\\nGambaran dari area (world) yang di buat\\n\");\r\n for (int i = 1; i <= 4; i++) {\r\n System.out.println(\"\\n-----------------------------------------------------------------\");\r\n System.out.print(\"|\\t\");\r\n for (int j = 1; j <= 4; j++) {\r\n System.out.print(w[i][j]+ \"\\t|\\t\");\r\n }\r\n }\r\n\r\n System.out.println(\"\\n-----------------------------------------------------------------\");\r\n }", "public void display()\r\n\t{\r\n\t\tif(this.isEmpty())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Empty... nothing to display\");\r\n\t\t}else\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The Array: \");\t\r\n\t\tfor (int i =0; i<bookArray.length; i++)\r\n\t\t{\r\n\t\t\tif(bookArray[i]!=null)\r\n\t\t\t\tSystem.out.println(\"\\t\"+'\"'+bookArray[i]+'\"');\r\n\t\t}\r\n\t }\r\n\t}", "private static void printArray(Object[] array) {\n for (Object t : array) {\n System.out.println(\" \" + t + \", \");\n }\n }", "public static void Display(int[] array) {\n for(int i=0;i<array.length;i++){\n System.out.print(array[i]+\"\\t\");\n }\n System.out.println();\n }", "private void displayArrays(ArrayList list){}", "public void generateChart(){\n String[][] contents = retrieveFields();\n\n// String msg = \"test - \";\n// printCells(contents);\n\n String[] houseDisplay = new String[12];\n houseDisplay = new String[]{\"6\",\"4\",\"2\",\"1\",\"4\",\"6\",\"3\",\"5\",\"7/8\",\"\",\"5\",\"3\"};\n display(houseDisplay);\n }", "public void printArray()\n {\n for (int i=0;i<array.length; i++)\n {\n System.out.print(array[i] + \" \"); \n }\n System.out.println();\n }", "public static void main(String[] args) {\n\t\tDemoArr a[] = new DemoArr[4];\n\t\n\t\t\n\t\tfor(int i = 0 ; i < a.length ; i++) {\n\t\t\ta[i] = new DemoArr();\n\t\t\ta[i].disp();\n\t\t}\n\t\t\n\t}", "public void display(){\n \tfor(int i=0;i<size;i++){\n \tSystem.out.print(elements[i]+\" \");\n \t}\n\t}", "void show(double[][][] arr,String name){\n \n System.out.println(name+\"Array\");\n Vector Size = new Vector(arr.length,arr[0].length,arr[0][0].length);\n \n for(int i=0;i<Size.x;i++){\n \n for(int j=0;j<Size.y;j++){\n \n for(int k=0;k<Size.z;k++){\n \n System.out.print(arr[i][j][k]+\" \");\n }\n System.out.println();\n }\n System.out.println();\n }\n\n}", "public static void Report() {\n\t\tfor (int i = 0; i < array.size(); i++) {\r\n\t\t\tSystem.out.println(array.get(i).getDetails());\t\t\t//Steps through the array and prints the details\r\n\t\t}\r\n\t\tAdmin.menuChoice();\r\n\t}", "public static void MostrarArray(int array[]) {\n for (int i = 0; i < array.length; i++) {\n System.out.print(array[i] + \" | \");\n }\n System.out.println();\n }", "public static void printArray(double[] list) \n {\n for (int i = 0; i < list.length; i++) \n {\n System.out.print(list[i] + \" \");\n }\n int b[];\n b=new int[5];\n }", "public static void displayValues(int [] array){\n System.out.println(Arrays.toString(array));\n }", "private void showArray(ArrayList<String[]> arr) {\n for(String[] row: arr){\n for(String x: row){\n System.out.print(x + \"\\t\\t\");\n }\n System.out.println();\n } \n System.out.println(\"------------------------------------\");\n }", "public void displayData(int[][] arr);", "private static void writeArray(int[] randomArray) {\n\t\tfor (int i = 0; i < randomArray.length; i++) {\r\n\t\t\tSystem.out.print(\" \" + i + \" . eleman :\" + randomArray[i]);\r\n\t\t}\r\n\t}", "private static void show(Comparable[] a) {\n for (int i = 0; i < a.length; i++) {\n System.out.printf(\"a[%d] = %s\\n\", i + 1, a[i].toString());\n }\n System.out.println();\n }", "public static void printArray(double[] array) {\r\n\r\n for (int i = 0; i < array.length; i++) {\r\n System.out.print(\"[\" + array[i] + \"] \");\r\n }\r\n System.out.println(\"\");\r\n }", "public void printArrays() {\n for (ArraySymbol as: arrays) {\n System.out.println(as);\n }\n }", "public void show() {\n for (int i = 0; i < rowCount; i++) {\n for (int j = 0; j < columnCount; j++)\n System.out.printf(\"%9.4f \", data[i][j]);\n System.out.println();\n }\n }", "public void ShowBoard(){\n System.out.println(\" ___________{5}_____{4}_____{3}_____{2}_____{1}_____{0}____________\");\n System.out.println(\"| ____ ____ ____ ____ ____ ____ ____ ____ |\");\n System.out.printf(\"| | | [_%2d_] [_%2d_] [_%2d_] [_%2d_] [_%2d_] [_%2d_] | | |\\n\",\n this.gameBoard[5], this.gameBoard[4], this.gameBoard[3],\n this.gameBoard[2], this.gameBoard[1], this.gameBoard[0]);\n System.out.println(\"| | | | | |\");\n System.out.printf(\"| | %2d | ____ ____ ____ ____ ____ ____ | %2d | |\\n\",\n this.gameBoard[6], this.gameBoard[13]);\n System.out.printf(\"| |____| [_%2d_] [_%2d_] [_%2d_] [_%2d_] [_%2d_] [_%2d_] |____| |\\n\",\n this.gameBoard[7], this.gameBoard[8], this.gameBoard[9],\n this.gameBoard[10], this.gameBoard[11], this.gameBoard[12]);\n System.out.println(\"|_________________________________________________________________|\");\n }", "public void displayBoard() {\n System.out.printf(\"%20s\",\"\"); // to add spacing\n for(int i = 0; i < space[0].length; i++) //Put labels for number axis\n {\n System.out.printf(\"%4d\",i+1);\n }\n System.out.println();\n for(int row = 0; row < this.space.length; row++) { //Put letter labels and appropriate coordinate values\n System.out.print(\" \"+ (char)(row+'A') + \"|\");\n for (String emblem: this.space[row]) //coordinate values\n System.out.print(emblem + \" \");\n System.out.println();\n }\n }", "public static void showStringArray(String[] arr)\n {\n System.out.println(\"...........................................\");\n\n for (int i = 0; i < arr.length; i++) {\n System.out.print(arr[i] + \" \");\n }\n System.out.println();\n\n }", "public static void displayArray(Participant[] participantArray)\n {\n for(int x = 0; x < participantArray.length; ++x)\n System.out.println(\"\\nParticipant #\" + (x + 1) +\n participantArray[x].toString());\n }", "public static void main(String[] args) {\n Building building[] = new Building[5];\r\n //Populate the array\r\n building[0] = new Building(\"MSB\",3,4,\"white\");\r\n building[1] = new Building(\"STM\",5,4,\"white\");\r\n building[2] = new Building(\"SBS\",6,4,\"blue\");\r\n building[3] = new Building(\"SLS\",2,5,\"red\");\r\n building[4] = new Building(\"FIT\",1,8,\"white\");\r\n //Invoking display method on each object in the array\r\n System.out.println(\"<---------- Start of Report ------------>\");\r\n System.out.println(\" \");\r\n for(int i = 0; i<building.length; i++) {\r\n building[i].printReport();\r\n System.out.println(\" \");\r\n }\r\n System.out.println(\"<---------- End of Report ------------>\");\r\n }", "static void writearray(String[]array) {\n\t\t for (int i = 0; i < array.length; i++) {\n\t\t\tSystem.out.println(array[i]);\n\t\t}\n\t}", "public void display()\n {\n System.out.println(�\\n The elements are�);\n for(int i=0; i<n; i++)\n System.out.println(� �+a[i]);\n }", "private String[] createSteps() {\n String[] res = new String[panels.size()];\n for (int i = 0; i < res.length; i++) {\n res[i] = panels.get(i).getComponent().getName();\n }\n return res;\n }", "private String[] createSteps() {\n String[] res = new String[panels.size()];\n for (int i = 0; i < res.length; i++) {\n res[i] = panels.get(i).getComponent().getName();\n }\n return res;\n }", "public void print () \r\n\t{\r\n\t\tfor (int index = 0; index < count; index++)\r\n\t\t{\r\n\t\t\tif (index % 5 == 0) // print 5 columns\r\n\t\t\t\tSystem.out.println();\r\n\r\n\t\t\tSystem.out.print(array[index] + \"\\t\");\t// print next element\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public String toString()\n\t{\n\t\tSystem.out.print(\"Array list contains: [ \");\n\t\tfor(int i=0; i<size; i++)\n\t\t\tSystem.out.print(myArray[i]+ \", \");\n\t\treturn\" ]\";\n\t}", "public static void main(String[] args)\n {\n int[] array = { 32, 27, 64, 18, 95, 14, 90, 70, 60, 37 };\n System.out.printf(\"%s%8s%n\", \"Index\", \"Value\"); // column headings\n \n // output each array element's value\n for (int counter = 0; counter < array.length; counter++)\n System.out.printf(\"%5d%8d%n\", counter, array[counter]);\n}", "public void print() {\n\t\t\n\t\tfor (int j = 0; j < height(); j++) {\n\t\t\tfor (int i = 0; i < width(); i++) {\n\t\t\t\tSystem.out.printf(\"%3d \", valueAt(i, j));\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\t\n\t}", "private void printOut(String[] printerMakerResult)\n {\n //shows user the printerMaker result\n\n for(int i=0;i<printerMakerResult.length;i++)\n {\n outVideo.println(printerMakerResult[i]);\n outVideo.flush();\n }\n }", "public static void printArray(String[] dataArray) {\n\t\t\n\t\tif (dataArray == null) {\n\t\t\tSystem.out.print(\"Empty Array\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint length = dataArray.length;\n\t\t\n\t\tSystem.out.print(\"\\nData: \\n\");\n\t\tSystem.out.print(\"Number of Entries: \" + (length) + \" \\n\");\n\t\t\n\t\tfor (int i = 0; i < length ; i++) { \n\t\t\tSystem.out.print(dataArray[i].toString() + \"\\t\");\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}", "private static void printArray(Node[][] puzzle) {\r\n\t\tfor (int i = 0; i < puzzle.length; i++) {\r\n\t\t\tfor (int j = 0; j < puzzle[0].length; j++) {\r\n\t\t\t\tSystem.out.print(puzzle[i][j].getValue());\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\r\n\t}", "public void affiche(){\r\n\t\tfor (int i = 0; i < this.grille.length; i++){\r\n\t\t\tfor (int j = 0; j < this.grille.length; j++){\r\n\t\t\t\tSystem.out.print(this.grille[i][j]);\r\n\t\t\t}\r\n\t\t\tSystem.out.print('\\n');\r\n\t\t}\r\n\t}", "void print() {\n for (int i = 0; i < 8; i--) {\n System.out.print(\" \");\n for (int j = 0; j < 8; j++) {\n System.out.print(_pieces[i][j].textName());\n }\n System.out.print(\"\\n\");\n }\n }", "private static void visualizar(int[] vectorA) {\n\t\tString cadena = \"Array: \";\n\t\tfor (int i = 0; i < vectorA.length; i++) {\n\t\t\tcadena += vectorA[i] + \",\";\n\n\t\t}\n\t\tcadena = cadena.substring(0, cadena.length() - 2);\n\t\tSystem.out.println(cadena);\n\t}", "private void addComponents()\n\t{\n\t\tPrinter currentPrinter;\n\t\tadd(m_ResultHeader);\n\t\tfor(int i = 2; i <= m_PrinterList.getNumberOfPrinters()+1; i++)\n\t\t{\n\t\t\t// Convert values to Strings\n\t\t\tcurrentPrinter = m_PrinterList.getPrinter(i-2);\n\t\t\tadd(new PrinterLabel(i,MenuWindow.FRAME_WIDTH , MenuWindow.FRAME_HEIGHT,\n\t\t\t\t\tcurrentPrinter.getPrinterName()+ \"\",\n\t\t\t\t\tcurrentPrinter.getVendor(),\n\t\t\t\t\tcurrentPrinter.getTension()+ \"\",\n\t\t\t\t\tcurrentPrinter.getCompression()+ \"\",\n\t\t\t\t\tcurrentPrinter.getImpact()+ \"\",\n\t\t\t\t\tcurrentPrinter.materialsString(),\n\t\t\t\t\tcurrentPrinter.getTolerance()+ \"\",\n\t\t\t\t\tcurrentPrinter.getFinish()+ \"\", true));\n\t\t}\n\t}", "public void createComponents(JComponent panel) {\r\n\t\t// Array display\r\n\t\tpanel.setLayout(new FlowLayout());\r\n\t\tpanel1.setLayout(new BorderLayout());\r\n\t\tcanvas.addMouseListener(aml);\r\n\t\tcanvas.addMouseMotionListener(aml);\r\n\t\tpanel1.add(canvas);\r\n\t\tpanel1.add(instr, BorderLayout.NORTH);\r\n\t\t\r\n\t\tpanel.add(panel1);\r\n\r\n\t\t// Controls\r\n\t\tpanel2.setLayout(new GridLayout(5, 2));\t\r\n\t\t\r\n\t\tJButton createArrayButton = new JButton(\"Create Customized Array\");\r\n\t\tpanel2.add(createArrayButton);\r\n\t\tcreateArrayButton.addActionListener(new createArrayListener());\r\n\r\n\t\tJButton changeValueButton = new JButton(\"Change Element Value\");\r\n\t\tpanel2.add(changeValueButton);\r\n\t\tchangeValueButton.addActionListener(new changeValueListener());\r\n\r\n\t\tJButton accessButton = new JButton(\"Access Element\");\r\n\t\tpanel2.add(accessButton);\r\n\t\taccessButton.addActionListener(new accessListener());\r\n\t\t\r\n\t\tJButton findButton = new JButton(\"Search Element\");\r\n\t\tpanel2.add(findButton);\r\n\t\tfindButton.addActionListener(new findListener());\r\n\t\t\r\n\t\tJButton clearButton = new JButton(\"Clear Previous Content\");\r\n\t\tpanel2.add(clearButton);\r\n\t\tclearButton.addActionListener(new ClearListener());\t\r\n\t\t\r\n\t\tpanel.add(panel2);\t\r\n\t}", "public static void printArray(int[] grades){\n int arraylength=grades.length;//find length of input array\n for (int i=0; i<=arraylength-1;i++){\n //print out elements\n System.out.print(grades[i]+\" \");\n }\n System.out.println();//print new lnie\n }", "public static void main(String[] args)\n {\n String[][] stringArray = new String[10][10];\n for (int row = 0; row < stringArray.length; row++)\n {\n for (int i = 0; i < stringArray.length; i++)\n {\n stringArray[row][i] = \"Row \" + row + \" Item \" + i;\n }\n }\n for (int row = 0; row < stringArray.length; row++)\n {\n for (int i = 0; i < stringArray.length; i++)\n {\n System.out.println(stringArray[row][i]); \n }\n }\n\n }", "public void print() {\n for (int i = 0; i < size; i++)\n System.out.print(elements[i] + \" \");\n System.out.println();\n }", "public static void main(String[] args) {\n\r\n\t\tint array[] = { 19, 3, 15, 7, 11, 9, 13, 5, 17, 1 };\t//创建并初始化array\r\n\t\t\r\n\t\tString output = \"Element\\tValue\\tHistogram\";\t//将程序要显示的列标题赋给output\r\n\t\t \r\n\t\tfor (int counter = 0; counter < array.length; counter++) {\t//for循环\r\n\t\t\toutput += \"\\n\" + counter + \"\\t\" + array[counter] + \"\\t\";\t//将索引序号counter和每个数组元素的值array[counter]添加到output中\r\n\t\t\t\r\n\t\t\tfor (int stars = 0; stars < array[counter]; stars++) {\t//for循环\r\n\t\t\t\toutput += \"*\";\t//添加代表当前数组元素值的星号\r\n\t\t\t}\t//内部for结束\r\n\t\t\r\n\t\t}\t//外部for结束\r\n\t\t\r\n\t\tJTextArea outputArea = new JTextArea();\t//创建JTextArea\r\n\t\toutputArea.setText(output);\t//将output显示到JTextArea中\r\n\t\t\r\n\t\tJOptionPane.showMessageDialog(null, outputArea, \"Histogram Printing Program\", JOptionPane.INFORMATION_MESSAGE);\t//输出outputArea\r\n\t\t\r\n\t\tSystem.exit(0);\r\n\t\t\r\n\t}", "void printArray(CatalogueItem arr[])\r\n {\r\n int n = arr.length;\r\n for (int i=0; i<n; ++i)\r\n System.out.print(\r\n \"id: \" + arr[i].getItemId() + \" \"\r\n + \"name: \" + arr[i].getItemName() + \" \"\r\n + \"category: \" + arr[i].getCategory() + \"\\n\");\r\n System.out.println();\r\n System.out.println();\r\n }", "public static void show(Comparable[] a) {\n StringBuilder s= new StringBuilder();\n s.append(\"[\");\n for (int i = 0; i < a.length-1; i++) {\n s.append(a[i] + \", \");\n }\n s.append(a[a.length-1] + \"]\\n\");\n System.out.println(s.toString());\n }", "public static void printArray(int[] array){\n for(int i=0;i<array.length;i++){\n System.out.print(array[i]+\" \");\n }}", "public static void printArray(Object[][] dataArray) {\n\t\t\n\t\tif (dataArray == null) {\n\t\t\tSystem.out.print(\"Empty Array\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint rows = dataArray.length;\n\t\tint cols = dataArray[0].length;\n\t\t\n\t\tSystem.out.print(\"\\nData: \\n\");\n\t\tSystem.out.print(\"Number of Rows: \" + (rows) + \" \\n\");\n\t\tSystem.out.print(\"Number of Columns: \" + (cols) + \" \\n\\n\");\n\t\n\t\tfor (int i = 0; i < rows ; i++) { \n\t\t\tfor (int j = 0; j < cols; j++) {\n\t\t\t\tSystem.out.print(dataArray[i][j].toString() + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}", "public void print() {\n\t\tfor (int i = 0; i < TABLE_SIZE; i++) {\n\t\t\tSystem.out.print(\"|\");\n\t\t\tif (array[i] != null) {\n\t\t\t\tSystem.out.print(array[i].value);\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(\"|\\n\");\n\t}", "public static void mostrararray(int[] miarray) {\r\n\r\n\t\tfor (int i = 0; i < miarray.length; i++) {\r\n\r\n\t\t\tSystem.out.print(miarray[i] + \" \");\r\n\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"\\nContents of SimpleArray:\\n\" + Arrays.toString(array);\n\t}", "private void addToDirectionPane(String[] directionArray){\n JList<String> directionStringList = new JList<>(directionArray); //Everything to be added to the scrollpane is added as a JList\n directionPane.setVisible(true);\n directionPane.setViewportView(directionStringList); //Set the display of the scrollpane to the current JList\n directionPane.setBounds(25, 300, 400, 200);\n directionPane.setBorder(new MatteBorder(1, 1, 1, 1, Color.DARK_GRAY));\n directionPane.getViewport().setBackground(Color.WHITE); //The viewport is where the scrollpane elements are display\n directionPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);\n closeDirectionList.setVisible(true);\n }", "public String toString() {\r\n\t\tString Array = (\"Matricola:\" + matricola + \" mediaVoti: \" + mediaVoti + \" nroEsamiSostenuti: \" + nroEsamiSostenuti\r\n\t\t\t\t+ \" nroLodi: \" + nroLodi);\r\n\t\treturn Array;\r\n\t}", "private static void printArray(int[] array) {\n\t\tfor(int i: array) {\n\t\t\tSystem.out.print(i + \"\\t\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "static void show(String info, Object[] a) {\n System.out.print(info + \": \");\n show(a);\n }", "public void createCurses() \n\t{\n\t\tcreateElementsArray();\n\t\t\n\t\t\n\t\t//Scheide von oben die Liste ab\n\t\tString[][] newArray = new String[100][3];\n\t\tint j=0;\n\t\t\n\t\t\tfor (int i = 90; i < elementsArray.length; i++) \n\t\t\t{\n\t\t\t\tnewArray[j][0]=elementsArray[i][0];\n\t\t\t\tnewArray[j][1]=elementsArray[i][1];\n\t\t\t\tnewArray[j][2]=elementsArray[i][2];\n\t\t\t\tj++;\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\n\t\t\n\t\t//Ermittle letzten Kurs\n\t\tint endeListe=0;\n\t\tfor (int i = 0; i < newArray.length; i++) \n\t\t{\n\t\t\tif (newArray[i][2].equals(\"https://moodle.htwg-konstanz.de/moodle/course/index.php\")) \n\t\t\t{\n\t\t\t\tendeListe = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t//Baue Ausgabe Array neu\n\t\tString[][] finalArray = new String[endeListe][3];\n\t\t\n\t\tfor (int i = 0; i < endeListe; i++) \n\t\t{\n\t\t\tfinalArray[i][0] = newArray[i][0];\n\t\t\tfinalArray[i][1] = newArray[i][1];\n\t\t\tfinalArray[i][2] = newArray[i][2];\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tthis.elementsArray = finalArray;\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public void PrintBoard() {\n\tSystem.out.println(\"printing from class\");\n\t\tString[][] a = this.piece;\n\t\tSystem.out.println(\" 0 1 2 3 4 5 6 7 <- X axis\");\n\t\tSystem.out.println(\" +----------------+ \");\n\t\t\n\t\tfor (int i=0; i<8 ;i++) {\n\t\t\tSystem.out.print(i + \" |\");\n\t\t\tfor (int j=0; j<8;j++) {\n\t\t\t\t\n\t\tSystem.out.print(\"\" + a[i] [j] + \" \");\n\t\t\t\t\t} \n\t\t\tSystem.out.println(\"|\");\n\t\t}\n\t\tSystem.out.println(\" +----------------+ \");\n\t\tSystem.out.println(\" 0 1 2 3 4 5 6 7 \");\n\t\n\t}", "private static void printArray(Integer[] a) {\n\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\tSystem.out.print(a[k] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public static void printArray(double[] array){\n for(int k = 0; k < array.length; k++){\n System.out.print(array[k] + \" \");\n }\n System.out.println();\n }", "public void displayBoard() {\r\n\t\tboard = new JButton[6][7];\r\n\t\tfor (int row = 0; row < board.length; row++) {\r\n\t\t\tfor (int col = 0; col < board[row].length; col++) {\r\n\t\t\t\tboard[row][col] = new JButton();\r\n\t\t\t\tboard[row][col].addActionListener(this);\r\n\t\t\t\tboard[row][col].setBorder(new EtchedBorder());\r\n\t\t\t\tboard[row][col].setEnabled(true);\r\n\t\t\t\tboardPanel.add(board[row][col]);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void printArray(String[] array){\n int noOfElement=array.length; // Number of element is the length of this array\n for(int i=0;i<array.length;i++){ // print out the each element in array with \" \"(space) splitting\n System.out.print(array[i]+\" \");}}", "private void mostrarArrayDNI(String[] arrayDNI) {\r\n System.out.println(\"\\nDNI Introduïts\");\r\n System.out.println(\"--------------\");\r\n for (int x = 0; x < arrayDNI.length; x++) {\r\n System.out.println(arrayDNI[x]);\r\n }\r\n System.out.println(\"\\n\");\r\n }", "public void printArray(int array[]) {\n\t\tfor(int i = 0;i<array.length;i++) {\n\t\t\tSystem.out.println(\"Array[\"+ (i+1) +\"] = \"+array[i]);\n\t\t}\n\t}", "static void printArray(Comparable[] arr) {\n\t\tint n = arr.length;\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tSystem.out.print(arr[i] + \" \");\n\t\tSystem.out.println();\n\t}", "public static void main(String[] args) {\n ArrayList<Integer> items = new ArrayList<>();\n items.add(1);\n items.add(2);\n items.add(3);\n items.add(4);\n items.add(5);\n items.add(6);\n items.add(7);\n items.add(8);\n\n\n printArray(items);\n }", "private static <T> void show(Comparable<T>[] a) {\n\t\tfor(int i=0; i<a.length; i++) \r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\tSystem.out.println();\r\n\t}", "public static void printArray(int[] array) {\r\n\t\tSystem.out.print(\"4. All values stored in the array is: \");\r\n\t\tfor (int i = 0; i < myList.length; i++) {\r\n\t\t\tSystem.out.print(myList[i] + \" \");\r\n\t\t}\r\n\t}", "public void print(){\n\t\t\n\t\tfor(int i=0;i<maxindex;i++)\n\t\t{\n\t\t\tif(data[i] != 0)\n\t\t\t{\n\t\t\t\tSystem.out.print(data[i]+\"x\"+i+\" \");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void printArray(int[] array) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.print(\"array = [\");\r\n\t\tfor (int i=0; i < SIZE_OF_ARRAY-1; i++)\r\n\t\t\tSystem.out.print(\"\"+ array[i]+\" | \");\r\n\t\tSystem.out.println(\"\"+ array[SIZE_OF_ARRAY-1]+\"]\");\r\n\t\tSystem.out.println(\"-------------------------------------------------\"\r\n\t\t\t\t+ \"-------------------\");\r\n\t}", "public void printAll(){\nfor(int i=0;i<size ;i++){\n System.out.println(\"a[%d]\"+data[i]); \n}\n System.out.println(\"size\"+size); \n}", "public static void printArray (int [] F) {\n\t\t\r\n\t\tprintln(\"Aktuelles Feld:\");\r\n\t\tfor (int i = 0; i < F.length; i++){\r\n\t\t\tprint (F[i] + \" \");\r\n\t\t\tif (i % 10 == 9) println(); // max. 10 Zahlen pro Zeile\r\n\t\t}\r\n\t\tprintln();\r\n\t\tprintln(\"========================\"); // Markierung f�r Ende einer Ausgabe\r\n\t}", "public void consoleBoardDisplay(){\n\t\tString cell[][] = ttt.getCells();\n\t\tSystem.out.println(\"\\n\" +\n\t\t\t\"R0: \" + cell[0][0] + '|' + cell[0][1] + '|' + cell[0][2] + \"\\n\" +\n\t\t\t\" \" + '-' + '+' + '-' + '+' + '-' + \"\\n\" +\n\t\t\t\"R1: \" + cell[1][0] + '|' + cell[1][1] + '|' + cell[1][2] + \"\\n\" +\n\t\t\t\" \" + '-' + '+' + '-' + '+' + '-' + \"\\n\" +\n\t\t\t\"R2: \" + cell[2][0] + '|' + cell[2][1] + '|' + cell[2][2] + \"\\n\"\n\t\t);\n\t}", "public static void show(int[][] arr) {\n\t\t\tfor(int i=0;i<arr.length;i++) {\n\t\t\t\tfor(int j=0;j<arr.length;j++) {\n\t\t\t\t\tSystem.out.print(arr[i][j]+\"\\t \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic String print() {\n\r\n\t\tfor (int i = 0; i < 26; i++) {\r\n\t\t\tfor (Entry k : array[i]) {\r\n\t\t\t\tSystem.out.println(k.name + \"\\t\" + k.initials + \"\\t\" + k.extension + \"\\n\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "protected static void show(Comparable[] a) {\n\t\t\r\n\t\tString retStr = \"\";\r\n\t\tfor(int i=0 ; i< a.length; i++)\r\n\t\t\tretStr+=\" \"+a[i];\r\n\t\t\r\n\t\tSystem.out.println(retStr);\r\n\t\t\r\n\t}", "static void printArr(int arr[], int N) { \n\t\tupdateArray(arr, N); \n\t\tfor (int i = 0; i < N; i++) \n\t\t\tSystem.out.print(\"\"+arr[i]+\" \"); \n\t\tSystem.out.print(\"\\n\"); \n\t}", "public void print()\n {\n StringBuffer buffer = new StringBuffer();\n for (int i = 0; i < memorySize; i++)\n {\n buffer.append(mainMemory[i]);\n }\n System.out.println(buffer.toString());\n }", "private static void printArray(int[] array) {\n\t\tif(array==null){\n\t\t\tSystem.out.println(\"Nothing in the array.\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint Len = array.length;\n\t\tfor(int i=0; i<Len; i++){\n\t\t\tSystem.out.print(\" \" + array[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}", "private static void displayAnswers(String[] answers, int size)\n {\n System.out.println(\"/////////////////////////List of Answers//////////////////////////\");\n for(int i=0; i < size ; i++){ // Go through every elements in []answers array\n System.out.printf(\"%s \\n\",answers[i]); //\n }//for j\n System.out.println();\n }", "public void showPosicoes() {\n this.print(\"\\n\");\n for (int i = 0; i < listaJogadores.size(); i++) {\n // System.out.print(posicoes[i] + \"\\t\");\n }\n }" ]
[ "0.68025494", "0.6328894", "0.6311047", "0.6203178", "0.6153767", "0.60634357", "0.6051504", "0.60491186", "0.6049108", "0.6013549", "0.59854436", "0.5975228", "0.5923437", "0.58745277", "0.5864299", "0.58506286", "0.58470416", "0.5836855", "0.5823677", "0.58168364", "0.581106", "0.5810612", "0.57941157", "0.57937604", "0.57926476", "0.5777697", "0.5773549", "0.5770607", "0.57678336", "0.572039", "0.57174593", "0.5659689", "0.5631674", "0.5624917", "0.56163806", "0.56073964", "0.55764616", "0.5575951", "0.5573655", "0.5544653", "0.5527304", "0.5520684", "0.55099094", "0.5506859", "0.5505842", "0.5499999", "0.5494496", "0.5483262", "0.5483262", "0.54823864", "0.54765123", "0.5476206", "0.5476013", "0.5470877", "0.5469328", "0.54670644", "0.54666436", "0.54623044", "0.54565006", "0.5455654", "0.5454244", "0.54516184", "0.5443852", "0.5440936", "0.54352844", "0.54343396", "0.5428703", "0.54276806", "0.5422147", "0.54206324", "0.54170126", "0.5414334", "0.541376", "0.54092634", "0.54072785", "0.5392324", "0.53890973", "0.5382466", "0.5380388", "0.5380029", "0.5379414", "0.53730977", "0.5372969", "0.53720325", "0.5369786", "0.5368872", "0.53685343", "0.53638405", "0.5361797", "0.5360004", "0.5358777", "0.53583765", "0.5355373", "0.5355075", "0.53461057", "0.5346082", "0.5342976", "0.53415316", "0.5339609", "0.5339314", "0.53372985" ]
0.0
-1
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); try (PrintWriter out = response.getWriter()) { /* TODO output your page here. You may use following sample code. */ out.println("<!DOCTYPE html>"); out.println("<html>"); out.println("<head>"); out.println("<title>Servlet AddTaskServlet</title>"); out.println("</head>"); out.println("<body>"); out.println("<h1>Servlet AddTaskServlet at " + request.getContextPath() + "</h1>"); out.println("</body>"); out.println("</html>"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);\n }\n }", "private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // only POST should be used\n doPost(request, response);\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\nSystem.err.println(\"=====================>>>>>123\");\n\t\tString key=req.getParameter(\"method\");\n\t\tswitch (key) {\n\t\tcase \"1\":\n\t\t\tgetProvinces(req,resp);\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\tgetCities(req,resp);\t\t\t\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\tgetAreas(req,resp);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t\tdoGet(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t\t\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }" ]
[ "0.70041305", "0.6658495", "0.6603461", "0.650908", "0.6447329", "0.6442597", "0.6440696", "0.64322716", "0.6428243", "0.64247036", "0.64247036", "0.64201605", "0.64201605", "0.64201605", "0.6418442", "0.64144915", "0.64144915", "0.6400502", "0.6394304", "0.6394304", "0.63930726", "0.6392306", "0.6392306", "0.6390661", "0.6390661", "0.6390661", "0.6390661", "0.6388885", "0.6388885", "0.6380431", "0.6378519", "0.6378405", "0.6377094", "0.63764083", "0.6370683", "0.6362919", "0.6362919", "0.6361669", "0.63554734", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932", "0.6354932" ]
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}", "void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(request, response);\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"GET log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) return;\r\n\tif (\"get-response\".equals( requestId )) {\r\n\t try {\r\n\t\tonMEVPollsForResponse( req, resp );\r\n\t } catch (Exception e) {\r\n\t\tlogError( req, resp, e, \"MEV polling error\" );\r\n\t\tsendError( resp, \"MEV polling error: \" + e.toString() );\r\n\t }\r\n\t}\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t\t\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "public void doGet() throws IOException {\n\n // search ressource\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\n this.sendBodyByte(contentByte);\n }", "public HttpResponseWrapper invokeGET(String path) {\n\t\treturn invokeHttpMethod(HttpMethodType.HTTP_GET, path, \"\");\n\t}", "@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}", "public Result get(Get get) throws IOException;", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) {\n System.out.println(\"[Servlet] GET request \" + request.getRequestURI());\n\n response.setContentType(FrontEndServiceDriver.APP_TYPE);\n response.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);\n\n try {\n String url = FrontEndServiceDriver.primaryEventService +\n request.getRequestURI().replaceFirst(\"/events\", \"\");\n HttpURLConnection connection = doGetRequest(url);\n\n if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n PrintWriter pw = response.getWriter();\n JsonObject responseBody = (JsonObject) parseResponse(connection);\n\n response.setStatus(HttpURLConnection.HTTP_OK);\n pw.println(responseBody.toString());\n }\n }\n catch (Exception ignored) {}\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here--get--\");\n processRequest(request, response);\n }", "@Override\n public final void doGet() {\n try {\n checkPermissions(getRequest());\n // GET one\n if (id != null) {\n output(api.runGet(id, getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER)));\n } else if (countParameters() == 0) {\n throw new APIMissingIdException(getRequestURL());\n }\n // Search\n else {\n\n final ItemSearchResult<?> result = api.runSearch(Integer.parseInt(getParameter(PARAMETER_PAGE, \"0\")),\n Integer.parseInt(getParameter(PARAMETER_LIMIT, \"10\")), getParameter(PARAMETER_SEARCH),\n getParameter(PARAMETER_ORDER), parseFilters(getParameterAsList(PARAMETER_FILTER)),\n getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER));\n\n head(\"Content-Range\", result.getPage() + \"-\" + result.getLength() + \"/\" + result.getTotal());\n\n output(result.getResults());\n }\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n }\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.service(req, resp);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public void get(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }", "@Override\npublic void get(String url) {\n\t\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString action = req.getParameter(\"action\");\r\n\t\t\r\n\t\tif(action == null) {\r\n\t\t\taction = \"List\";\r\n\t\t}\r\n\t\t\r\n\t\tswitch(action) {\r\n\t\t\tcase \"List\":\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request, \n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"Routed to doGet\");\n\t}", "@NonNull\n public String getAction() {\n return \"GET\";\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "@Override\r\nprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t process(req,resp);\r\n\t }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\n\tpublic HttpResponse get(final String endpoint) {\n\t\treturn httpRequest(HTTP_GET, endpoint, null);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste doget\");\r\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/plain\");\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n out.println(\"Wolken,5534-0848-5100,0299-6830-9164\");\n\ttry \n\t{\n Get g = new Get(Bytes.toBytes(request.getParameter(\"userid\")));\n Result r = table.get(g);\n byte [] value = r.getValue(Bytes.toBytes(\"v\"),\n Bytes.toBytes(\"\"));\n\t\tString valueStr = Bytes.toString(value);\n\t\tout.println(valueStr);\n\t}\n\tcatch (Exception e)\n\t{\n\t\tout.println(e);\n\t}\n }", "@Override\r\n public void doGet(String path, HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\r\n // throw new UnsupportedOperationException();\r\n System.out.println(\"Inside the get\");\r\n response.setContentType(\"text/xml\");\r\n response.setCharacterEncoding(\"utf-8\");\r\n final Writer w = response.getWriter();\r\n w.write(\"inside the get\");\r\n w.close();\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"Console: doGET visited\");\n String result = \"\";\n //get the user choice from the client\n String choice = (request.getPathInfo()).substring(1);\n response.setContentType(\"text/plain;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n //methods call appropriate to user calls\n if (Integer.valueOf(choice) == 3) {\n result = theBlockChain.toString();\n if (result != null) {\n out.println(result);\n response.setStatus(200);\n //set status if result output is not generated\n } else {\n response.setStatus(401);\n return;\n }\n }\n //verify chain method\n if (Integer.valueOf(choice) == 2) {\n response.setStatus(200);\n boolean validity = theBlockChain.isChainValid();\n out.print(\"verifying:\\nchain verification: \");\n out.println(validity);\n }\n }", "@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return response;\n }", "public void handleGet( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n case \"/\":\n print(\"sending /MainPage.html\");\n sendResponse( exchange, FU.readFromFile( getReqDir( exchange )), 200);\n break;\n case \"/lif\":\n // send log in page ( main page )\n sendResponse ( exchange, FU.readFromFile(getReqDir(exchange)), 200);\n //\n break;\n case \"/home.html\":\n\n break;\n case \"/book.html\":\n\n break;\n default:\n //checks if user is logged in\n\n //if not send log in page\n //if user is logged in then\n print(\"Sending\");\n String directory = getReqDir( exchange ); // dont need to do the / replace as no space\n File page = new File( getReqDir( exchange) );\n\n // IMPLEMENT DIFFERENT RESPONSE CODE FOR HERE IF EXISTS IS FALSE OR CAN READ IS FALSE\n sendResponse(exchange, FU.readFromFile(directory), 200);\n break;\n }\n }", "public int handleGET(String requestURL) throws ClientProtocolException, IOException{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\thttpGet = new HttpGet(requestURL);\t\t\r\n\t\t\t\t\t\t\r\n\t\tinputsource=null;\r\n\t\t\t\r\n\t\toutputString=\"\";\r\n\t\t\r\n\t\t//taking response by executing http GET object\r\n\t\tCloseableHttpResponse response = httpclient.execute(httpGet);\t\t\r\n\t\r\n\t\t/* \r\n\t\t * \tThe underlying HTTP connection is still held by the response object\r\n\t\t\tto allow the response content to be streamed directly from the network socket.\r\n\t\t\tIn order to ensure correct deallocation of system resources\r\n\t\t\tthe user MUST call CloseableHttpResponse.close() from a finally clause.\r\n\t\t\tPlease note that if response content is not fully consumed the underlying\r\n\t\t\tconnection cannot be safely re-used and will be shut down and discarded\r\n\t\t\tby the connection manager.\r\n\t\t */\r\n\t\t\r\n\t\t\tstatusLine= response.getStatusLine().toString();\t\t//status line\r\n\t\t\t\r\n\t\t\tHttpEntity entity1 = response.getEntity();\t\t\t\t//getting response entity from server response \t\r\n\t\t\t\t\t\r\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(entity1.getContent()));\r\n\r\n\t\t\tString line;\r\n\t\t\twhile((line=br.readLine())!=null)\r\n\t\t\t{\r\n\t\t\t\toutputString=outputString+line.toString();\r\n\t }\r\n\t\t\t\r\n\t\t\t//removing spaces around server response string.\r\n\t\t\toutputString.trim();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//converting server response string into InputSource.\r\n\t\t\tinputsource = new InputSource(new StringReader(outputString));\t\r\n\t\t\t\r\n\t\t\t// and ensure it is fully consumed\r\n\t\t\tEntityUtils.consume(entity1);\t\t\t//consuming entity.\r\n\t\t\tresponse.close();\t\t\t\t\t\t//closing response.\r\n\t\t\tbr.close();\t\t\t\t\t\t\t\t//closing buffered reader\r\n\t\t\t\r\n\t\t\t//returning response code\r\n\t\t\treturn response.getStatusLine().getStatusCode();\r\n\t\r\n\t}", "@Override\n\tprotected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t logger.error(\"BISHUNNN CALLED\");\n\t\tString category = request.getParameter(\"category\").trim();\n\t\tGetHttpCall getHttpCall = new GetHttpCall();\n\t\turl = APIConstants.baseURL+category.toLowerCase();\n\t\tresponseString = getHttpCall.execute(url);\n\t\tresponse.getWriter().write(responseString);\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tPrintWriter out = resp.getWriter();\n\t\tout.print(\"<h1>Hello from your doGet method!</h1>\");\n\t}", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n response.setContentType(TYPE_TEXT_HTML.label);\n response.setCharacterEncoding(UTF8.label);\n request.setCharacterEncoding(UTF8.label);\n String path = request.getRequestURI();\n logger.debug(RECEIVED_REQUEST + path);\n Command command = null;\n try {\n command = commands.get(path);\n command.execute(request, response);\n } catch (NullPointerException e) {\n logger.error(REQUEST_PATH_NOT_FOUND);\n request.setAttribute(JAVAX_SERVLET_ERROR_STATUS_CODE, 404);\n command = commands.get(EXCEPTION.label);\n command.execute(request, response);\n }\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString search = req.getParameter(\"searchBook\");\n\t\tString output=search;\n\n\t\t//redirect output to view search.jsp\n\t\treq.setAttribute(\"output\", output);\n\t\tresp.setContentType(\"text/json\");\n\t\tRequestDispatcher view = req.getRequestDispatcher(\"search.jsp\");\n\t\tview.forward(req, resp);\n\t\t\t\n\t}", "public void doGet( HttpServletRequest request, HttpServletResponse response )\n throws ServletException, IOException\n {\n handleRequest( request, response, false );\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response handleGet() {\n Gson gson = GSONFactory.getInstance();\n List allEmployees = getAllEmployees();\n\n if (allEmployees == null) {\n allEmployees = new ArrayList();\n }\n\n Response response = Response.ok().entity(gson.toJson(allEmployees)).build();\n return response;\n }", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\tsuper.doGet(request, response);\t\t\t\n\t}", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n }", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "public BufferedReader reqGet(final String route) throws\n ServerStatusException, IOException {\n System.out.println(\"first reqGet\");\n return reqGet(route, USER_AGENT);\n }", "HttpGet getRequest(HttpServletRequest request, String address) throws IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override \r\nprotected void doGet(HttpServletRequest request, HttpServletResponse response) \r\nthrows ServletException, IOException { \r\nprocessRequest(request, response); \r\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\r\n\r\n try {\r\n switch (action)\r\n {\r\n case \"/getUser\":\r\n \tgetUser(request, response);\r\n break;\r\n \r\n }\r\n } catch (Exception ex) {\r\n throw new ServletException(ex);\r\n }\r\n }", "@Override\n protected void doGet\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Test\r\n\tpublic void doGet() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tHttpGet get = new HttpGet(\"http://www.google.com\");\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}", "private void requestGet(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n get(requestUri, params, listener);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint i = request.getRequestURI().lastIndexOf(\"/\") + 1;\n\t\tString action = request.getRequestURI().substring(i);\n\t\tSystem.out.println(action);\n\t\t\n\t\tString view = \"Error\";\n\t\tObject model = \"service Non disponible\";\n\t\t\n\t\tif (action.equals(\"ProductsList\")) {\n\t\t\tview = productAction.productsList();\n\t\t\tmodel = productAction.getProducts();\n\t\t}\n\t\t\n\t\trequest.setAttribute(\"model\", model);\n\t\trequest.getRequestDispatcher(prefix + view + suffix).forward(request, response); \n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException {\n\tprocessRequest(request, response);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tcommandAction(request,response);\r\n\t}" ]
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234", "0.6754993", "0.6754993", "0.67394847", "0.6719924", "0.6716244", "0.67054695", "0.67054695", "0.67012346", "0.6684415", "0.6676695", "0.6675696", "0.6675696", "0.66747975", "0.66747975", "0.6669016", "0.66621476", "0.66621476", "0.66476154", "0.66365504", "0.6615004", "0.66130257", "0.6604073", "0.6570195", "0.6551141", "0.65378064", "0.6536579", "0.65357745", "0.64957607", "0.64672184", "0.6453189", "0.6450501", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.64067316", "0.6395873", "0.6379907", "0.63737476", "0.636021", "0.6356937", "0.63410467", "0.6309468", "0.630619", "0.630263", "0.63014317", "0.6283933", "0.62738425", "0.62680805", "0.62585783", "0.62553537", "0.6249043", "0.62457556", "0.6239428", "0.6239428", "0.62376446", "0.62359244", "0.6215947", "0.62125194", "0.6207376", "0.62067443", "0.6204527", "0.6200444", "0.6199078", "0.61876005", "0.6182614", "0.61762017", "0.61755335", "0.61716276", "0.6170575", "0.6170397", "0.616901" ]
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); employee Employee = (employee)session.getAttribute("emp"); response.setContentType("text/html"); PrintWriter out = response.getWriter(); List errorMsgs = new LinkedList(); //retrieve employee id int empID = Employee.getId(); //Retrive form parameters String name = request.getParameter("tasktype"); String department = request.getParameter("department"); String remarks = request.getParameter("taskRemarks"); String proID = request.getParameter("Project"); //Business logic taskDB TaskDB = new taskDB(); task Task = new task(); Task.setStartDate(java.time.LocalDate.now().toString()); Task.setDueDate(java.time.LocalDate.now().plusDays(2).toString()); Task.setIsComplete(false); Task.setLateTask(false); Task.setProjectID(Integer.parseInt(proID)); Task.setRemarks(remarks); Task.setType(Integer.parseInt(name)); Task.setDepid(Integer.parseInt(department)); String nextTask = TaskDB.addTask(Task); //Message messageDB SMSdb = new messageDB(); message SMS = new message(); SMS.setTitle(TaskDB.getTaskName(Integer.parseInt(name))); SMS.setRemarks(Task.getRemarks()); SMS.setCreateDate(Task.getDueDate()); SMS.setEmpFrom(empID); SMS.setEmpTo(Integer.parseInt(department)); SMS.setType("Task"); String addSMS = SMSdb.addMessage(SMS); if(nextTask.equals("SUCCESS")) //If function returns success string then user will be rooted to Home page { request.getRequestDispatcher("/listTask.jsp").forward(request, response);//RequestDispatcher is used to send the control to the invoked page. } else { request.setAttribute("errMessage", nextTask); //If authenticateUser() function returnsother than SUCCESS string it will be sent to Login page again. Here the error message returned from function has been stored in a errMessage key. request.getRequestDispatcher("/home.jsp").forward(request, response);//forwarding the request } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public String post();", "@Override\n\tpublic void doPost(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }", "protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }", "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}", "public void postData() {\n\n\t}", "@Override\n public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {\n logger.warn(\"doPost Called\");\n handle(req, res);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}", "@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n\n\tpublic void handlePOST(CoapExchange exchange) {\n\t\tFIleStream read = new FIleStream();\n\t\tread.tempWrite(Temp_Path, exchange.getRequestText());\n\t\texchange.respond(ResponseCode.CREATED, \"POST successfully!\");\n\t\t_Logger.info(\"Receive post request:\" + exchange.getRequestText());\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public abstract boolean handlePost(FORM form, BindException errors) throws Exception;", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\t\t\n\t\t \n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}", "public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"POST log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) {\r\n\t try {\r\n\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t } catch (IOException ex) {\r\n\t }\r\n\t logError( req, resp, new Exception(\"Unrecognized POST\"), \"\" );\r\n\t sendError(resp, \"Unrecognized POST\");\r\n\t} else\r\n\t if (\"post-request\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onMEVPostsRequest( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"MEV POST error\" );\r\n\t\t sendError( resp, \"MEV POST error: \" + e.toString() );\r\n\t\t}\r\n\t } else if (\"post-response\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onPVMPostsResponse( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"PVM POST error\" );\r\n\t\t sendError( resp, \"PVM POST error: \" + e.toString() );\r\n\t\t}\r\n\t }\r\n }", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest req, HttpServletResponse resp, Object handler, ModelAndView m)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\n public final void doPost() {\n try {\n checkPermissions(getRequest());\n final IItem jSonStreamAsItem = getJSonStreamAsItem();\n final IItem outputItem = api.runAdd(jSonStreamAsItem);\n\n output(JSonItemWriter.itemToJSON(outputItem));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }", "@Override\n\tvoid post() {\n\t\t\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tSystem.out.println(\"=========interCpetor Post=========\");\r\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString method = request.getParameter(\"method\");\n\t\tswitch(method){\n\t\tcase \"Crawl\":\n\t\t\tcrawl(request, response);\n\t\t\tbreak;\n\t\tcase \"Extract\":\n\t\t\textract(request, response);\n\t\t\tbreak;\n\t\tcase \"JDBC\":\n\t\t\tjdbc(request, response);\n\t\t\tbreak;\n\t\tcase \"Indexer\":\n\t\t\tindexer(request, response);\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }", "protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t/* 43: */throws ServletException, IOException\r\n\t/* 44: */{\r\n\t\t/* 45:48 */doGet(request, response);\r\n\t\t/* 46: */}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tprocess(req,resp);\r\n\t}", "public void handlePost(SessionSrvc session, IObjectContext context)\n throws Exception\n {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(PDCBukUpload.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }", "@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject handler, ModelAndView modelAndView) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoHandle(request, response);\n\t}", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (Exception ex) {\n Logger.getLogger(PedidoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }" ]
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197", "0.6515622", "0.6513045", "0.6512626", "0.6492367", "0.64817846", "0.6477479", "0.64725804", "0.6472099", "0.6469389", "0.6456206", "0.6452577", "0.6452577", "0.6452577", "0.6450273", "0.6450273", "0.6438126", "0.6437522", "0.64339423", "0.64253825", "0.6422238", "0.6420897", "0.6420897", "0.6420897", "0.6407662", "0.64041835", "0.64041835", "0.639631", "0.6395677", "0.6354875", "0.63334197", "0.6324263", "0.62959254", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6280875", "0.6272104", "0.6272104", "0.62711537", "0.62616795", "0.62544584", "0.6251865", "0.62274224", "0.6214439", "0.62137586", "0.621211", "0.620854", "0.62023044", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61638993", "0.61603814", "0.6148914", "0.61465937", "0.61465937", "0.614548", "0.6141879", "0.6136717", "0.61313903", "0.61300284", "0.6124381", "0.6118381", "0.6118128", "0.61063534", "0.60992104", "0.6098801", "0.6096766" ]
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }", "@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }" ]
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", "0.85282224", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8516995", "0.8512296", "0.8511239", "0.8510324", "0.84964365", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599" ]
0.0
-1
!wca! clearSelection: (): void Clears the selection state.
public void clearSelection() { getElement().clearSelection(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clearSelection();", "public void clearSelection() {\n clearSelectionQuietly();\n notifySelectionChanged();\n }", "public void clearSelection()\n\t{\n\t\tgetObject().clearSelection();\n\t\treturn;\n\t}", "public void clearSelection() {\n\t\ttable.clearSelection();\n\t}", "public void clearSelection() {\n grid.getSelectionModel().deselectAll();\n }", "public void clearSelection()\n/* */ {\n/* 166 */ if (isSelectionEmpty()) return;\n/* 167 */ clearSelectionImpl();\n/* 168 */ fireValueChanged(DateSelectionEvent.EventType.SELECTION_CLEARED);\n/* */ }", "public void removeSelection() {\n this.selection = null;\n }", "public void clearAccessibleSelection() {\n // To be fully implemented in a future release\n }", "public void clearSelection() {\n buttonGroup.clearSelection();\n }", "public void clearSelection()\r\n {\r\n final ListSelectionModel selectionModel = jTable.getSelectionModel();\r\n selectionModel.clearSelection();\r\n }", "public void clearComponentSelection(){\r\n ComponentSelectionTree.clearSelection();\r\n }", "public\n void\n clearTableSelection()\n {\n getRegisterPanel().clearTableSelection();\n }", "public abstract void clearSelection(TextAppearance appearance);", "public abstract void clearAllSelections();", "private void clearSelectionQuietly() {\n mRanger = null;\n\n if (!hasSelection()) {\n return;\n }\n\n Selection oldSelection = getSelection(new Selection());\n mSelection.clear();\n\n for (String id: oldSelection.getAll()) {\n notifyItemStateChanged(id, false);\n }\n }", "public void clearSelectionSquare() {\r\n\r\n\t\tsetSize(0, 0);\r\n\r\n\t}", "public void clearTableSelectedSet(){\n\t\tselectionModel.clear();\n\t}", "public void deleteSelection() {\r\n /* Delete the node */\r\n try {\r\n deleteNode();\r\n } catch (NullPointerException e1) {\r\n }\r\n /* Delete the edge */\r\n try {\r\n deleteEdge();\r\n } catch (NullPointerException e2) {\r\n }\r\n /* Reload the scroll */\r\n scrollPane().doLayout();\r\n }", "public void deselectAll() {\n\t\tselected.clear();\n\t}", "public void clearSelectedFontSize()\r\n\t{\r\n\t\t// deselect the currently selected item in the Font Size list if there is one\r\n\t\tfontSizeList.clearSelection();\r\n\t}", "@Override\n public void clear() {\n view.setText(\"\");\n view.setSelection(view.getText().length());\n }", "public void clearSelectedSquares() {\n\t\tselectedsquares.clear();\n\t\trepaint();\n\t}", "@Override\n\tpublic void unselect() {\n\t}", "private native void clearInput(Element input) /*-{\n if (input.selectionEnd)\n input.selectionEnd = input.selectionStart;\n else if ($doc.selection)\n $doc.selection.clear();\n }-*/;", "public void clearChoiceSelect() {\n choiceSelect = -1;\n }", "private void unSelect() {\n /** if we had some object selected we need to delete it's Transformation Points. */\n if(this.action.isSelect() && this.curr_obj != null) {\n this.canvas.remove(this.transformPoints);\n this.transformPoints.clear();\n this.curr_obj = null;\n\n /** if we were in the middle of a text operation, we have to remove the TextBox and set the text to it's last version*/\n } else if(this.action.isText()) {\n int size = Integer.parseInt(currentFontSize.getItemText(currentFontSize.getSelectedIndex()));\n\n curr_obj = new Text(editor.getText());\n ((Text)curr_obj).setFont(currFont);\n addTextObject(curr_obj, (int)aux_obj.getX() + (int)((1.0/4.0)*size), (int)aux_obj.getY()+ (size) + (int)((1.0/4.0)*size));\n\n aux_obj = null;\n curr_obj = null;\n apanel.remove(editor);\n editor = null;\n action.setAction(Action.TEXTBOX);\n }\n }", "public void deselect();", "public void clearChoiceSelect() {\n choiceSelect = -1;\n }", "private void toClear()\n {\n tfPaintId.setText(\"\");\n tfName.setText(\"\");\n tfPrice.setText(\"\");\n tfColor.setText(\"\");\n rwCombo.setSelectedIndex(0);\n bCombo.setSelectedIndex(0);\n typeCombo.setSelectedIndex(0);\n tfQuantity.setText(\"\");\n bg.clearSelection();\n \n }", "public void deselect() {\n if (selection != null) {\n \t\tworld.destroyJoint(mouseJoint);\n \t selection = null;\n \t mouseJoint = null;\n\t }\n }", "public void resetSearchSelection() {\n this.quantSearchSelection = null;\n SelectionChanged(\"reset_quant_searching\");\n }", "@Override\n\tprotected void cmdClearWidgetSelected() {\n\t\tclearMode();\n\n\t}", "protected void removeSelection() {\n\t\tBEAN oldBean = getInternalValue();\n\t\tsetInternalValue(null);\n\t\ttextField.setValue(null);\n\t\tif (searchListener != null) {\n\t\t\tsearchListener.remove(oldBean);\n\t\t}\n\t}", "@Override\n public void clear() {\n sortOrder = null;\n selection = Selection.with();\n }", "void clear() {\n\t\tif (textArea!=null) {\n\t\t\tRSyntaxTextAreaHighlighter h = (RSyntaxTextAreaHighlighter)\n\t\t\t\t\t\t\t\t\t\t\t\t\ttextArea.getHighlighter();\n\t\t\th.clearMarkOccurrencesHighlights();\n\t\t}\n\t}", "public void clear()\n\t{\n\t\tgetGraphics().clearRect(0, 0, canvasWidth, canvasHeight);\n\t}", "protected void deleteSelection() {\n Iterator i = getCurrentSelection().iterator();\n while (i.hasNext()) {\n ZNode each = (ZNode) i.next();\n ZNode top = each.editor().getTop();\n ZGroup topParent = top.getParent();\n topParent.removeChild(top);\n\n fireEvent(ZGroupEvent.createNodeRemovedEvent(topParent, each, false));\n }\n }", "public void clearSelectedFontName()\r\n\t{\r\n\t\t// deselect the currently selected item in the Font Names list if there is one\r\n\t\tfontNamesList.clearSelection();\r\n\t}", "public void emptySelectionLists() {\n\t\tArrayList selectionsCopy = new ArrayList();\n\t\tselectionsCopy.addAll(selections);\n\t\tIterator it = selectionsCopy.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tXsdNode node = (XsdNode) it.next();\n\t\t\tunselectNode(node);\n\t\t}\n\t\tlineNode = null;\n\t\telementFilters = new HashMap();\n\t}", "public void cancelSelection() {\n\t\tsd.hideSelectRect();\n\t\tspectroFragment.disableCaptureButtonContainer();\n\t\tselecting = false;\n\t}", "@Test\n\t@TestProperties(name = \"Clear element ${by}:${locator} selection\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void clearSelections() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}", "void clearCurrent();", "public void clear() {\n\t\thighlightsByToken.clear();\n\t}", "@VisibleForTesting\n void cancelProvisionalSelection() {\n mProvisionalSelection.clear();\n }", "public void clearAllSelected() {\n getSelectHelper().clearAllSelected();\n }", "public void endSelection()\n {\n\tisMultiSelection = false;\n\tsetMaxCheckCount(1);\n\tuncheckAll();\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\treplaceSelection(\"\");\n\t\t}", "public void clearGame() {\n\t\tselectedObjects.clear();\n\t}", "public void resetSelectPresentation();", "public void resetSelection(IClientContext context) throws Exception;", "public void clear() {\n lb.setText(\"\");\n }", "public void removeSelections() {\n selectedItems.clear();\n notifyDataSetChanged();\n }", "private void cmd_deleteSelection(){\n\t\tm_frame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n\t\tif (ADialog.ask(getWindowNo(), m_frame.getContainer(), \"DeleteSelection\"))\n\t\t{\t\n\t\t\tint records = deleteSelection(detail);\n\t\t\tsetStatusLine(Msg.getMsg(Env.getCtx(), \"Deleted\") + records, false);\n\t\t}\t\n\t\tm_frame.setCursor(Cursor.getDefaultCursor());\n\t\tbDelete.setSelected(false);\n\t\texecuteQuery();\n\t\t\n\t}", "public void clear() {\r\n\tcount = 0;\r\n isDrawn = false;\r\n repaint();\r\n }", "public void clear()\n {\n clear(BLACK);\n }", "public void clearText() {\r\n\t\tSystem.out.println(\"UNIMPLEMENTED: clear displayed text\");\r\n\t\t// TODO implement text clearing\r\n\t}", "public void clear() {\n m_selectors.clear();\n }", "public void clear()\n {\n for (SelectableGraphElement element : elements) {\n element.setSelected(false);\n }\n elements.clear();\n }", "public void clear() {\n doClear( false );\n }", "private void clear() {\n\n machrefno.setText(null);\n machname.setText(null);\n manu.setSelectedItem(null);\n Date.setDate(null);\n dept.setSelectedItem(null);\n stat.setSelectedItem(null);\n \n }", "void clear() ;", "public static void reset() {\n\t\tselectedAtts.clear();\n\t}", "public void clear() {\n\t\ttextArea.setText(\"\");\n\t}", "@Override\n\tpublic void clear() {\n\n\t\tDisplay.findDisplay(uiThread).syncExec(new Runnable() {\n\n\t\t\tpublic void run() {\n\t\t\t\tclearInputs();\n\t\t\t\tsetDefaultValues();\n\t\t\t}\n\t\t});\n\n\t}", "private void clearRegionSelection(final Nation nation) {\n view.getRegions().get(nation).getSelectionModel().clearSelection();\n }", "public void removeAllHighlights() {}", "public void clear()\n{\n\ttextArea().setText(\"\");\n}", "public void clear() {\n\t\tconfigurationToButtonMap.clear();\n\t\tselected.clear();\n\t\tsuper.removeAll();\n\t}", "@Override\n public void onDestroyActionMode(ActionMode mode) {\n \tmSelection.clearSelection();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tROOM.setSelectedItem(\"\");\n\t\t\t\ttxtrent.setText(\"\");\n\t\t\t\ttxtSeat.setText(\"\");\n\t\t\t\tgrp.clearSelection();\n\t\t\t}", "private void clearEverything(){\n partTime.setSelected(false);\n fullTime.setSelected(false);\n management.setSelected(false);\n addIT.setSelected(false);\n addCS.setSelected(false);\n addECE.setSelected(false);\n dateAddText.clear();\n nameAddText.clear();\n hourlyAddText.clear();\n annualAddText.clear();\n managerRadio.setSelected(false);\n dHeadRadio.setSelected(false);\n directorRadio.setSelected(false);\n\n removeCS.setSelected(false);\n removeECE.setSelected(false);\n removeIT.setSelected(false);\n dateRemoveText.clear();\n nameRemoveText.clear();\n\n setCS.setSelected(false);\n setECE.setSelected(false);\n setIT.setSelected(false);\n dateSetText.clear();\n nameSetText.clear();\n hoursSetText.clear();\n\n }", "public void clear(){\n instructions.clear();\n super.repaint();\n }", "public void clear() {\n doClear();\n }", "public void clear () {\n\t\treset();\n\t}", "public void clear() {\n\t\t// Do nothing\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tif(selectionBox == null || selectionBox.getElement() == null || selectionBox.getElement().getParentNode() == null) return;\r\n\t\t\t\tdocument.getRootElement().removeChild(selectionBox.getElement());\r\n\t\t\t}", "public void clear() {\n\t\tleftIndex = 0;\n\t\trightIndex = 0;\n\t}", "private void clear() {\r\n\t\tareaTexto.setText(\"\");\r\n\t}", "public void clear() {\n\t\tdoily.lines.clear();\n\t\tclearRedoStack();\n\t\tredraw();\n\t}", "public void clearListSelection() {\n/* 494 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic void removeSelectionChangeListener(SelectionChangeListener listener) {\n\n\t}", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();", "void clear();" ]
[ "0.9187669", "0.87714934", "0.86235327", "0.8526284", "0.8466397", "0.8334931", "0.8181538", "0.8128809", "0.8114528", "0.8045057", "0.8014581", "0.7732664", "0.76591504", "0.75192875", "0.7483713", "0.7437158", "0.71866065", "0.7158445", "0.7062131", "0.70154065", "0.6989921", "0.69194627", "0.68675566", "0.67998964", "0.67769635", "0.6771049", "0.67477536", "0.6745949", "0.67174035", "0.6708237", "0.6700363", "0.6697348", "0.66675824", "0.66531515", "0.66251886", "0.65942085", "0.65915173", "0.6589406", "0.6544684", "0.6540738", "0.65378946", "0.65339214", "0.65296465", "0.6525316", "0.6506255", "0.6450716", "0.6445603", "0.64289415", "0.64222926", "0.6417053", "0.63917464", "0.6378994", "0.6375759", "0.6340036", "0.6334064", "0.63234746", "0.6321009", "0.6315465", "0.6307312", "0.6297526", "0.6296787", "0.6285605", "0.62818015", "0.6253736", "0.62512726", "0.6248722", "0.6225078", "0.62219304", "0.6219408", "0.6206559", "0.61989224", "0.6197808", "0.61946", "0.6190308", "0.61769295", "0.6176062", "0.6174536", "0.61679", "0.6167305", "0.61648625", "0.6148567", "0.6139769", "0.6139769", "0.6139769", "0.6139769", "0.6139769", "0.6139769", "0.6139769", "0.6139769", "0.6139769", "0.6139769", "0.6139769", "0.6139769", "0.6139769", "0.6139769", "0.6139769", "0.6139769", "0.6139769", "0.6139769", "0.6139769" ]
0.8942944
1
!wca! deselect: (item: ): void Deselects the given item if it is already selected. item: Item from items array to deselect
public void deselect(T item) { getElement().deselect(SerDes.mirror(item)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deselect();", "@Override\n public void deselectGolem() {\n }", "@Override\n\tpublic void unselect() {\n\t}", "public void itemRemoved(boolean wasSelected);", "@Override\n protected void processUnselect() {\n \n }", "public void removeSelectedItem() {\r\n\t\tint i = getSelectedIndex();\r\n\t\tif(i != -1)\r\n\t\t\tlistModel.removeElementAt(i);\r\n\t}", "public void deselect() {\n if (selection != null) {\n \t\tworld.destroyJoint(mouseJoint);\n \t selection = null;\n \t mouseJoint = null;\n\t }\n }", "public void deselect() {\n\t\tfor (int row = 0; row < field.getRowCount(); row++) {\n\t\t\tCheckBox cb = (CheckBox) field.getWidget(row, 3);\n\t\t\tcb.setValue(false);\n\t\t}\n\t}", "public void onItemUnsetSelection(AdapterView<?> parent, View view, int position);", "public void cabDeselectAll() {\n ListView lv = getListView();\n int vCnt = lv.getCount();\n \n for (int i = 0; i < vCnt; i++) {\n \tlv.setItemChecked(i, false);\n }\n \n selectedListItems.clear();\n redrawListView();\n }", "public void unselect() {\n for (int i = 0; i < series.size(); i++) {\n series.setItemSliced(i, false, false, true);\n }\n }", "public void removeSelected()\n {\n for (int i = shapes.size() - 1; i >= 0; i--)\n {\n SceneShape s = shapes.get(i);\n if (s.isSelected()) shapes.remove(i);\n }\n repaint();\n }", "private void deSelectCheckedState(){\n int noOfItems = navigationView.getMenu().size();\n for (int i=0; i<noOfItems;i++){\n navigationView.getMenu().getItem(i).setChecked(false);\n }\n }", "public void deselectNotify() {\n }", "public void unSelectWidget(Widget w) {\n if (!w.isSelected()) return;\n w.unSelect();\n doSelectedCount(w);\n toolBar.setEditButtons(selectedCnt, selectedGroupCnt);\n }", "public void deselect(){\n\t\tPIN.reset();\n\t}", "public void deselectAll() {\n\t\tselected.clear();\n\t}", "public void unselect(java.util.List<Node> tbs) {\n\t\tfor(Node node : tbs) {\n\t\t\tif(selected_nodes.contains(node)) {\n\t\t\t\tselected_nodes.remove(node);\n\t\t\t}\n\t\t}\n\t}", "public void removeSelection() {\n this.selection = null;\n }", "public void deselectThem(short oil)\r\n {\r\n CObjInfo poil = rhPtr.rhOiList[oil];\t\t// Pointe la liste\r\n poil.oilEventCount = rh2EventCount;\r\n poil.oilListSelected = -1;\r\n poil.oilNumOfSelected = 0;\r\n }", "public void deselect() {\n\n // reset the pin value\n pin.reset();\n\n }", "private void unSelect() {\n /** if we had some object selected we need to delete it's Transformation Points. */\n if(this.action.isSelect() && this.curr_obj != null) {\n this.canvas.remove(this.transformPoints);\n this.transformPoints.clear();\n this.curr_obj = null;\n\n /** if we were in the middle of a text operation, we have to remove the TextBox and set the text to it's last version*/\n } else if(this.action.isText()) {\n int size = Integer.parseInt(currentFontSize.getItemText(currentFontSize.getSelectedIndex()));\n\n curr_obj = new Text(editor.getText());\n ((Text)curr_obj).setFont(currFont);\n addTextObject(curr_obj, (int)aux_obj.getX() + (int)((1.0/4.0)*size), (int)aux_obj.getY()+ (size) + (int)((1.0/4.0)*size));\n\n aux_obj = null;\n curr_obj = null;\n apanel.remove(editor);\n editor = null;\n action.setAction(Action.TEXTBOX);\n }\n }", "protected void removeSelection() {\n\t\tBEAN oldBean = getInternalValue();\n\t\tsetInternalValue(null);\n\t\ttextField.setValue(null);\n\t\tif (searchListener != null) {\n\t\t\tsearchListener.remove(oldBean);\n\t\t}\n\t}", "public void deleteSelection() {\n deleteFurniture(Home.getFurnitureSubList(this.home.getSelectedItems())); \n }", "static public void deselect(DrawingPad drawingPad, SelectPanel selectPanel, Rectangle2D.Float fBounds) {\n // Current layer.\n boolean bCurrentLayer = selectPanel.isCurrentLayer();\n \n // Get the selected design.\n if (selectPanel.isSelectAllItems())\n drawingPad.getDesign().setLinesAndVerticesSelected(false);\n else if (selectPanel.isSelectGraph())\n drawingPad.getDesign().deselectGraphs(fBounds, bCurrentLayer);\n else if (selectPanel.isSelectLine())\n drawingPad.getDesign().deselectLines(fBounds, bCurrentLayer);\n else if (selectPanel.isSelectPoint())\n drawingPad.getDesign().deselectVertices(fBounds, bCurrentLayer);\n else\n throw new IllegalArgumentException(\"ToolSimpleMover::deselect() Unknown select type.\");\n }", "public void removeAccessibleSelection(int i) {\n // To be fully implemented in a future release\n }", "@Override\n\t\t\t\t\tpublic void OnSelectItem(Item item) {\n\n\t\t\t\t\t\tif(!toDelete.contains(item))\n\t\t\t\t\t\t\ttoDelete.add(item);\n\t\t\t\t\t}", "private void clearSelectionQuietly() {\n mRanger = null;\n\n if (!hasSelection()) {\n return;\n }\n\n Selection oldSelection = getSelection(new Selection());\n mSelection.clear();\n\n for (String id: oldSelection.getAll()) {\n notifyItemStateChanged(id, false);\n }\n }", "public native void deselectCell(String cell) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.deselectCell(cell);\r\n }-*/;", "public void removeSelections() {\n selectedItems.clear();\n notifyDataSetChanged();\n }", "public native void deselectCell(CellRecord cell) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.deselectCell([email protected]::getJsObj()());\r\n }-*/;", "public void removeSelectedAction() {\n\t\tvar selectedItems = pairsListView.getSelectionModel().getSelectedItems();\n\t\tpairsListView.getItems().removeAll(selectedItems);\n\t}", "public native void deselectAll() /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.deselectAll();\r\n }-*/;", "public native void deselectRow(int row) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.deselectRow(row);\n }-*/;", "@Override\n public void onValueDeselected() {\n }", "public void deselectIndex(int idx) {\n getElement().deselectIndex(idx);\n }", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n\n }", "public native void deselectCells(String... cellList) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.deselectCells(cellList);\r\n }-*/;", "public void removeMySelectionListener(EventListener l);", "@Override\n\tpublic void menuDeselected(MenuEvent e) {\n\t\t\n\t}", "private void selectDeselectNewPrice(boolean isSelected) {\n if (isSelected) {\n llTitle.setBackgroundColor(ContextCompat.getColor(mActivity, R.color.colorWhite));\n llOriginalPrice.setBackgroundColor(ContextCompat.getColor(mActivity, R.color.colorWhite));\n llTotalItems.setBackgroundColor(ContextCompat.getColor(mActivity, R.color.colorWhite));\n\n llNewPrice.setBackgroundColor(ContextCompat.getColor(mActivity, R.color.colorCreateDealSelected));\n llSlider.setVisibility(View.VISIBLE);\n\n btnDone.setVisibility(View.GONE);\n } else {\n llNewPrice.setBackgroundColor(ContextCompat.getColor(mActivity, R.color.colorWhite));\n llSlider.setVisibility(View.GONE);\n\n btnDone.setVisibility(View.VISIBLE);\n }\n }", "public void itemSelected(boolean selected);", "public static void deselectByIndex(WebElement element,int n)\r\n\t{\r\n\t\tSelect sel= new Select(element);\r\n\t\tsel.deselectByIndex(0);\r\n\t}", "void clearSelection();", "@Override\n\tpublic void menuDeselected(MenuEvent e) {\n\n\t}", "@Override\n\tpublic void deleteSelected() {\n\n\t}", "@Override\n\t\t\tpublic boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n\t\t\n\t\t\t\t \n\t\t\t\tswitch (item.getItemId()) {\n\t\t\t\tcase R.id.delete:\n\t\t\t\t\t\n\t\t\t\t\tfor(messagewrapper obje:dummyList){\n\t\t\t\t\t\t\n\t\t\t\t\t\tmAdapter.remove(obje);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcheckedCount=0;\n\t\t\t\t\t\n\t\t\t\t\tmode.finish();\n\t\t\t\t\treturn true;\n\t\t\n\t\t\t\tdefault:\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@Test(groups = \"smoke\")\n public void testKeepSelected() {\n String textSource = pickList.advanced().getSourceList().getItem(0).getText();\n pickList.add(0);\n ListItem item = pickList.advanced().getTargetList().getItem(0);\n assertTrue(item.getRootElement().getAttribute(\"class\").contains(\"rf-pick-sel\"));\n assertEquals(item.getText(), textSource);\n\n pickList.remove(0);\n item = pickList.advanced().getSourceList().getItem(ChoicePickerHelper.byIndex().last());\n assertTrue(item.getRootElement().getAttribute(\"class\").contains(\"rf-pick-sel\"));\n assertEquals(item.getText(), textSource);\n assertEquals(Utils.getIndexOfElement(item.getRootElement()), pickList\n .advanced().getSourceList().size() - 1, \"Index of removed item.\");\n }", "void cancelSelectMode();", "void setSelectedItems(ValueType selectedItems);", "public void deselectFocusedNode(){\r\n \tfocusOut();\r\n }", "public void cancelSelection() {\n\t\tsd.hideSelectRect();\n\t\tspectroFragment.disableCaptureButtonContainer();\n\t\tselecting = false;\n\t}", "public void remove(Object selObj){\n\t\t_list.removeElement(selObj);\n\t}", "public void nodeUnselected(ITreeNode node, ITree tree,boolean needNotifier);", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tItemType i = getSelectedItem();\n\t\t\t\tif(i != null)\n\t\t\t\t{\t\n\n\t\t\t\t\tfinal String msg = \"Delete \"+i.getName() + \"?\";\n\t\t\t\t\tif(!confirmDelete(msg))\n\t\t\t\t\t\treturn;\n\t\t\t\t\ti.removeContainer(GeneralItemList.this);\n\t\t\t\t\ti.destroy();\n\t\t\t\t}\n\t\t\t\titems.remove(i);\n\t\t\t\tlist.clearSelection();\n\t\t\t\tlist.repaint(100);\t\t\t\t\n\t\t\t}", "public void removeItem(){\n\t\tthis.item = null;\n\t}", "public void endSelection()\n {\n\tisMultiSelection = false;\n\tsetMaxCheckCount(1);\n\tuncheckAll();\n }", "@Override\n\tprotected void OnRelease() {\n\t\tsetSelected(false);\n\t}", "public void deselectAll()\n {\n }", "public void invertSelection () {\r\n\t\tif ( modeSelectAll){\r\n\t\t\tselectedDataIds.clear();\r\n\t\t\tif (! unselectedDataIds.isEmpty()){\r\n\t\t\t\tselectedDataIds.addAll(unselectedDataIds);\r\n\t\t\t\tunselectedDataIds.clear();\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tunselectedDataIds.clear();\r\n\t\t\tif (!selectedDataIds.isEmpty()){\r\n\t\t\t\tunselectedDataIds.addAll(selectedDataIds);\r\n\t\t\t\tselectedDataIds.clear();\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodeSelectAll=!modeSelectAll;\r\n\t\tfireSelectionChangeNotification();\r\n\t\t\r\n\t}", "public void deleteSelectedPosition() {\n if (selectedPosition != -1) {\n list.remove(selectedPosition);\n selectedPosition = -1;//after removing selectedPosition set it back to -1\n notifyDataSetChanged();\n }\n }", "static void setNotSelected(){isSelected=false;}", "@Override\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\n\t\t\t}", "@Override\n public void menuDeselected(MenuEvent e) {\n\n }", "protected void deselectControlPoint(Point p) {\n\t\tif (p != null)\n\t\t\tfor (int j = 0; j < selectedPoints.size(); ++j)\n\t\t\t\tif (selectedPoints.elementAt(j).X() == p.X()\n\t\t\t\t\t\t&& selectedPoints.elementAt(j).Y() == p.Y())\n\t\t\t\t\tselectedPoints.remove(j--);\n\t}", "public void clearSelection() {\n clearSelectionQuietly();\n notifySelectionChanged();\n }", "public void menuDeselected(MenuEvent evt) {\n }", "public void deselectObjects() {\n if (contextMenu != null) {\n contextMenu.hide();\n contextMenu = null;\n }\n\n // Deselect all objects\n objectsProperty.stream().forEach(ov -> ov.setSelected(false));\n hintsProperty.stream().forEach(hv -> hv.setSelected(false));\n }", "@Override\n public void onReselectItem(MeowBottomNavigation.Model item) {\n }", "boolean removAble(InputItem item);", "protected void deselectCurve(Curve c) {\n\t\t// Zoeken waar de curve zich in <selectedCurves> bevindt.\n\t\tint index = findIndexSelectedCurve(c);\n\n\t\tif (index != -1) {\n\t\t\tcurves.add(selectedCurves.get(index));\n\t\t\tselectedCurves.remove(index);\n\t\t}\n\t}", "public void deselectAll()\n {\n map.deselectAll();\n mapComponent.repaint();\n mapper.resetMenus();\n }", "public void setSelection(TabItem[] items) {\n checkWidget();\n if (items == null)\n error(SWT.ERROR_NULL_ARGUMENT);\n if (items.length == 0) {\n setSelection(-1, false);\n } else {\n for (int i = items.length - 1; i >= 0; --i) {\n int index = indexOf(items[i]);\n if (index != -1)\n setSelection(index, false);\n }\n }\n }", "@Override\npublic void setUIComponentDeselected(ObjectAdapter[] child) {\n\t\n}", "public void clearSelected() {\n ObservableList<Extra> selected = extraSelected.getItems();\n for(int i =0; i < selected.size(); i++){\n sandwhich.remove(selected.get(i));\n }\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraOptions.getItems().addAll(selected);\n extraSelected.getItems().removeAll(selected);\n\n\n }", "void onStopEditingItem(E itemElementView);", "private void removeSelection(RectangleButton button)\n\t{\n\t\tselectedUnits.remove(cancelButtons.indexOf(button));\n\t\tcancelButtons.remove(button);\n\t\tsetSelectionLocations();\n\t}", "public void deselect() {\n\t\tmSecureChannel.resetSecurity();\r\n\t}", "public native void deselectCells(FacetValueMap cellList) /*-{\r\n \tif (cellList == null) return;\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.deselectCells([email protected]::getJsObj()());\r\n }-*/;", "public void deselectPanel() {\n\t\tthis.displayNumberBlock.setBackground(dispNormal);\n\t}", "public void remove(SelectableGraphElement element)\n {\n if (element != null) {\n element.setSelected(false);\n elements.remove(element);\n }\n }", "void onItemClear();", "void onItemClear();", "public void onRowUnselect(UnselectEvent event) throws IOException {\n\r\n\r\n }", "public void deactivate(int which) {\n if (isActive[which]) {\n isActive[which] = false;\n numActive--;\n } // end if\n }", "private void toggleSelectedAlgorithm(int index) {\n if (selected[index] == true) {\n selected[index] = false;\n } else {\n selected[index] = true;\n }\n }", "public void removeAllItems ();", "public void clearSelection() {\n buttonGroup.clearSelection();\n }", "public abstract void clearAllSelections();", "@Override\n\tpublic void undoCommand() {\n\t\tselectionModel.removeAllFromSelectionList();\n\t\tmodel.removeElement(device);\n\t}", "@Override\r\n @Test\r\n public void testSelectedOnClearItemsSingle() {\r\n int index = 2;\r\n getSelectionModel().select(index);\r\n TreeItem parent = getSelectedItem().getParent();\r\n int parentIndex = getView().getRow(parent);\r\n clearItems();\r\n if (getSelectionModel().isEmpty()) {\r\n assertTrue(\"selection must be empty\", getSelectionModel().isEmpty());\r\n assertEquals(-1, getSelectedIndex());\r\n assertEquals(null, getSelectedItem());\r\n assertTrue(\"\", getSelectedIndices().isEmpty());\r\n assertTrue(\"\", getSelectedItems().isEmpty());\r\n// assertEquals(\"focus must be cleared\", -1, getFocusModel()\r\n// .getFocusedIndex());\r\n } else {\r\n assertEquals(\"selectedIndex at parentIndex\", parentIndex, getSelectedIndex());\r\n assertEquals(\"parent must be selected after clearing \", parent, \r\n getSelectedItem());\r\n }\r\n }", "public void removeSelected(int row, int col) {\n BoardSquare bs = board.getBoardSquare(row, col);\n selectedCards.remove(bs);\n bs.setCurrentlySelected(false);\n }", "private void removeItem(int item) {\n\t\tboolean flag = false;\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i].getTag() == item) {\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"없어진 상품:\"+products[i].toString());\r\n\t\t\t\tproducts[i] = null;\r\n\t\t\t\tindex--;\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(flag == false)\r\n\t\t\tSystem.out.println(\"해당하는 상품이 없습니다.\");\r\n\t}", "protected abstract void removeItem();", "public void menuDeselected (MenuEvent event) {\n EventQueue.invokeLater(new Runnable() {\n public void run () {\n restoreActions();\n }\n });\n }", "public void itemRemoved(E item);", "public void eliminarLista(){\n //se define la lista seleccionada y se elimina\n ListaCompras listaSeleccionada = ListasComprasTabla.getSelectionModel().getSelectedItem();\n if (listaSeleccionada!=null) {\n ListasComprasTabla.getItems().remove(listaSeleccionada);\n }else {\n System.out.println(\"No hay lista seleccionada\");\n }\n }" ]
[ "0.7920401", "0.74625194", "0.7386166", "0.7060158", "0.69503504", "0.6892714", "0.6834465", "0.68059725", "0.6723237", "0.66262525", "0.66198915", "0.65795374", "0.6576304", "0.6551363", "0.6480054", "0.6472026", "0.64433163", "0.6443105", "0.64084834", "0.6403949", "0.6387036", "0.6327082", "0.62951785", "0.62539375", "0.6221167", "0.6206844", "0.61840767", "0.6167173", "0.6166964", "0.6137454", "0.6125873", "0.6125867", "0.6115807", "0.61068004", "0.609411", "0.6055763", "0.60454255", "0.60454255", "0.60454255", "0.60454255", "0.6035362", "0.6012521", "0.59737027", "0.5954221", "0.59431654", "0.5925411", "0.5904493", "0.58985806", "0.58985144", "0.5893784", "0.5886888", "0.5881245", "0.587438", "0.5872982", "0.58646685", "0.5864187", "0.5855631", "0.5830059", "0.5812401", "0.58082664", "0.5794111", "0.57930624", "0.578187", "0.5781738", "0.5781416", "0.57744056", "0.57711655", "0.57709867", "0.57664794", "0.576259", "0.5758667", "0.5758212", "0.5751391", "0.57492334", "0.5748417", "0.57349676", "0.5731533", "0.57229334", "0.572108", "0.57143766", "0.5707477", "0.5699342", "0.5691998", "0.5687375", "0.56866133", "0.56866133", "0.5682779", "0.56482244", "0.56438005", "0.56252044", "0.5618201", "0.56156343", "0.5605765", "0.5603781", "0.55989736", "0.5596754", "0.5592164", "0.5591798", "0.5587719", "0.55785435" ]
0.823629
0
!wca! deselectIndex: (idx: number): void Deselects the given index if it is already selected. idx: Index from items array to deselect
public void deselectIndex(int idx) { getElement().deselectIndex(idx); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deselect();", "@Override\n\tpublic void unselect() {\n\t}", "public void unselect() {\n for (int i = 0; i < series.size(); i++) {\n series.setItemSliced(i, false, false, true);\n }\n }", "@Override\n public void deselectGolem() {\n }", "public static void deselectByIndex(WebElement element,int n)\r\n\t{\r\n\t\tSelect sel= new Select(element);\r\n\t\tsel.deselectByIndex(0);\r\n\t}", "public void onItemUnsetSelection(AdapterView<?> parent, View view, int position);", "public void removeAccessibleSelection(int i) {\n // To be fully implemented in a future release\n }", "public void removeSelectedItem() {\r\n\t\tint i = getSelectedIndex();\r\n\t\tif(i != -1)\r\n\t\t\tlistModel.removeElementAt(i);\r\n\t}", "public abstract void deselectAllIndexes();", "@Override\n protected void processUnselect() {\n \n }", "public void deselect() {\n\t\tfor (int row = 0; row < field.getRowCount(); row++) {\n\t\t\tCheckBox cb = (CheckBox) field.getWidget(row, 3);\n\t\t\tcb.setValue(false);\n\t\t}\n\t}", "public void removeSelected()\n {\n for (int i = shapes.size() - 1; i >= 0; i--)\n {\n SceneShape s = shapes.get(i);\n if (s.isSelected()) shapes.remove(i);\n }\n repaint();\n }", "public void cabDeselectAll() {\n ListView lv = getListView();\n int vCnt = lv.getCount();\n \n for (int i = 0; i < vCnt; i++) {\n \tlv.setItemChecked(i, false);\n }\n \n selectedListItems.clear();\n redrawListView();\n }", "private void toggleSelectedAlgorithm(int index) {\n if (selected[index] == true) {\n selected[index] = false;\n } else {\n selected[index] = true;\n }\n }", "public void unSelectWidget(Widget w) {\n if (!w.isSelected()) return;\n w.unSelect();\n doSelectedCount(w);\n toolBar.setEditButtons(selectedCnt, selectedGroupCnt);\n }", "public void deselect(T item) {\n getElement().deselect(SerDes.mirror(item));\n }", "public void deleteSelectedPosition() {\n if (selectedPosition != -1) {\n list.remove(selectedPosition);\n selectedPosition = -1;//after removing selectedPosition set it back to -1\n notifyDataSetChanged();\n }\n }", "public void remove(int index);", "@Override\r\n\tpublic void removeToIndex(int index) {\n\t}", "public void deselect() {\n if (selection != null) {\n \t\tworld.destroyJoint(mouseJoint);\n \t selection = null;\n \t mouseJoint = null;\n\t }\n }", "public void remove(int index) {\n\n\t}", "public void deselectNotify() {\n }", "public void deselect() {\n\n // reset the pin value\n pin.reset();\n\n }", "public void deselect(){\n\t\tPIN.reset();\n\t}", "public void itemRemoved(boolean wasSelected);", "public void removeIndex(int i) {\n // YOUR CODE HERE\n }", "void remove(int idx);", "void select(int index) throws InvalidValueException;", "public void invertSelection () {\r\n\t\tif ( modeSelectAll){\r\n\t\t\tselectedDataIds.clear();\r\n\t\t\tif (! unselectedDataIds.isEmpty()){\r\n\t\t\t\tselectedDataIds.addAll(unselectedDataIds);\r\n\t\t\t\tunselectedDataIds.clear();\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tunselectedDataIds.clear();\r\n\t\t\tif (!selectedDataIds.isEmpty()){\r\n\t\t\t\tunselectedDataIds.addAll(selectedDataIds);\r\n\t\t\t\tselectedDataIds.clear();\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodeSelectAll=!modeSelectAll;\r\n\t\tfireSelectionChangeNotification();\r\n\t\t\r\n\t}", "private void unSelect() {\n /** if we had some object selected we need to delete it's Transformation Points. */\n if(this.action.isSelect() && this.curr_obj != null) {\n this.canvas.remove(this.transformPoints);\n this.transformPoints.clear();\n this.curr_obj = null;\n\n /** if we were in the middle of a text operation, we have to remove the TextBox and set the text to it's last version*/\n } else if(this.action.isText()) {\n int size = Integer.parseInt(currentFontSize.getItemText(currentFontSize.getSelectedIndex()));\n\n curr_obj = new Text(editor.getText());\n ((Text)curr_obj).setFont(currFont);\n addTextObject(curr_obj, (int)aux_obj.getX() + (int)((1.0/4.0)*size), (int)aux_obj.getY()+ (size) + (int)((1.0/4.0)*size));\n\n aux_obj = null;\n curr_obj = null;\n apanel.remove(editor);\n editor = null;\n action.setAction(Action.TEXTBOX);\n }\n }", "static public void deselect(DrawingPad drawingPad, SelectPanel selectPanel, Rectangle2D.Float fBounds) {\n // Current layer.\n boolean bCurrentLayer = selectPanel.isCurrentLayer();\n \n // Get the selected design.\n if (selectPanel.isSelectAllItems())\n drawingPad.getDesign().setLinesAndVerticesSelected(false);\n else if (selectPanel.isSelectGraph())\n drawingPad.getDesign().deselectGraphs(fBounds, bCurrentLayer);\n else if (selectPanel.isSelectLine())\n drawingPad.getDesign().deselectLines(fBounds, bCurrentLayer);\n else if (selectPanel.isSelectPoint())\n drawingPad.getDesign().deselectVertices(fBounds, bCurrentLayer);\n else\n throw new IllegalArgumentException(\"ToolSimpleMover::deselect() Unknown select type.\");\n }", "void remove(int index);", "void remove(int index);", "void remove(int index);", "void remove(int index);", "void remove( int index );", "private void deSelectCheckedState(){\n int noOfItems = navigationView.getMenu().size();\n for (int i=0; i<noOfItems;i++){\n navigationView.getMenu().getItem(i).setChecked(false);\n }\n }", "public void deselectAll() {\n\t\tselected.clear();\n\t}", "public void removeItem(int idx)\n\t{\n\t\titemList.remove(idx);\n\t\t\n\t}", "public native void deselectRow(int row) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.deselectRow(row);\n }-*/;", "public void removeElementAt(int index);", "@Override\n public void unDraw() {\n index--;\n }", "public boolean deleteItem(int index);", "@Override\n public void mouseReleased(MouseEvent e) {\n if (idx < 0) {\n return;\n }\n if (idx == getIdx(e)) {\n boolean b = gui.selected[idx];\n if (!gui.shiftPressed) {\n gui.deselect();\n if (b) {\n gui.select(idx);\n }\n }\n gui.toggle(idx);\n repaint();\n }\n }", "@SuppressWarnings(\"BooleanParameter\")\n public void deleteSelected(boolean notify, int index) {\n if (index >= 0) {\n foundItems.remove(index);\n if (foundItems.isEmpty()) {\n foundItems.add(createNewEmptyRecord());\n }\n if (recordIndex >= foundItems.size()) {\n recordIndex--; // Should we call setRecordIndex() here?\n assert recordIndex >= 0;\n // if (recordIndex < 0) {\n // recordIndex = 0;\n // }\n if (notify) {\n fireIndexChanged(recordIndex, index);\n }\n }\n if (notify) {\n fireModelListChanged();\n }\n }\n }", "public void remove(int index) {\n items.remove(index);\n }", "public void decrementIndex() {\n\t\tindex--;\n\t\tif (nextItem != null) {\n\t\t\tnextItem.decrementIndex();\n\t\t}\n\t}", "abstract void remove(int index);", "public native void deselectCells(String... cellList) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.deselectCells(cellList);\r\n }-*/;", "public void selectIndex(int idx) {\n getElement().selectIndex(idx);\n }", "public void deselectThem(short oil)\r\n {\r\n CObjInfo poil = rhPtr.rhOiList[oil];\t\t// Pointe la liste\r\n poil.oilEventCount = rh2EventCount;\r\n poil.oilListSelected = -1;\r\n poil.oilNumOfSelected = 0;\r\n }", "public void removeSelection() {\n this.selection = null;\n }", "public void assertNotSelectedIndex(final String selectLocator, final String indexPattern);", "public void deleteItem(int index) {\n this.items.remove(index);\n }", "public void setSelection (int index) {\r\n\tcheckWidget();\r\n\tsetSelection (index, false);\r\n}", "public void select(int index) {\r\n\t\tindirect = true;\r\n\t\tcombo.select(index);\r\n\t\tindirect = false;\r\n\t}", "public Type remove(int index);", "protected void removeSelection() {\n\t\tBEAN oldBean = getInternalValue();\n\t\tsetInternalValue(null);\n\t\ttextField.setValue(null);\n\t\tif (searchListener != null) {\n\t\t\tsearchListener.remove(oldBean);\n\t\t}\n\t}", "int remove(int idx);", "public void removeSelectedAction() {\n\t\tvar selectedItems = pairsListView.getSelectionModel().getSelectedItems();\n\t\tpairsListView.getItems().removeAll(selectedItems);\n\t}", "@Override\n\tpublic void deleteSelected() {\n\n\t}", "@Override\n public void onIndicatorSelected(int index) {\n setSelect(index);\n }", "public void removeSelections() {\n selectedItems.clear();\n notifyDataSetChanged();\n }", "private void decrementSelectorIndices(int[] selectorIndices) {\n\t\tfor (int i = selectorIndices.length - 1; i > 0; i--) {\n\t\t\tselectorIndices[i] = selectorIndices[i - 1];\n\t\t}\n\t\tint nextScrollSelectorIndex = selectorIndices[1] - 1;\n\t\tif (mWrapSelectorWheel && nextScrollSelectorIndex < mMinValue) {\n\t\t\tnextScrollSelectorIndex = mMaxValue;\n\t\t}\n\t\tselectorIndices[0] = nextScrollSelectorIndex;\n\t\tensureCachedScrollSelectorValue(nextScrollSelectorIndex);\n\t}", "public void cancelSelection() {\n\t\tsd.hideSelectRect();\n\t\tspectroFragment.disableCaptureButtonContainer();\n\t\tselecting = false;\n\t}", "public void deleteSelection() {\n deleteFurniture(Home.getFurnitureSubList(this.home.getSelectedItems())); \n }", "public void deactivate(int which) {\n if (isActive[which]) {\n isActive[which] = false;\n numActive--;\n } // end if\n }", "public native void deselectCell(String cell) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.deselectCell(cell);\r\n }-*/;", "private void prevSelect() {\n\t\tif (selectionIndex - 1 < 0) {\n\t\t\tselectionIndex = selections.size() - 1;\n\t\t} else {\n\t\tselectionIndex--;\n\t\t}\n\t\tselected.setVisible(true);\n\t\tselected = selections.get(selectionIndex);\n\t\t\n\t}", "protected /*override*/ void RemoveItem(int index) \r\n {\r\n CheckSealed(); \r\n super.RemoveItem(index); \r\n }", "public void unselect(java.util.List<Node> tbs) {\n\t\tfor(Node node : tbs) {\n\t\t\tif(selected_nodes.contains(node)) {\n\t\t\t\tselected_nodes.remove(node);\n\t\t\t}\n\t\t}\n\t}", "private void selectDeselectNewPrice(boolean isSelected) {\n if (isSelected) {\n llTitle.setBackgroundColor(ContextCompat.getColor(mActivity, R.color.colorWhite));\n llOriginalPrice.setBackgroundColor(ContextCompat.getColor(mActivity, R.color.colorWhite));\n llTotalItems.setBackgroundColor(ContextCompat.getColor(mActivity, R.color.colorWhite));\n\n llNewPrice.setBackgroundColor(ContextCompat.getColor(mActivity, R.color.colorCreateDealSelected));\n llSlider.setVisibility(View.VISIBLE);\n\n btnDone.setVisibility(View.GONE);\n } else {\n llNewPrice.setBackgroundColor(ContextCompat.getColor(mActivity, R.color.colorWhite));\n llSlider.setVisibility(View.GONE);\n\n btnDone.setVisibility(View.VISIBLE);\n }\n }", "void setSelectedIndexes(List<Integer> selectedIndexes);", "public abstract void reset(int index);", "Feature removeFeature(int index);", "public void resetSelected()\n\t{\n\t\tfor (int i = 0; i < 13; i++)\n\t\t{\n\t\t\tthis.selected[i] = false;\n\t\t}\n\t}", "public void deleteCommandMutable(int index) {\n int correctIndex = index - 1;\n assertIndexInRange(correctIndex);\n this.listItems.remove(correctIndex);\n }", "void cancelSelectMode();", "@ZenCodeType.Method\n default void remove(int index) {\n \n doesNot(\"support removal by index\");\n }", "void delete (int index);", "public void setSelection(int index) {\n/* 95 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public E remove(int index);", "private void setListSelection(int selectedIndex)\n {\n if (selectedIndex == -1)\n {\n list.clearSelection();\n }\n else\n {\n list.setSelectedIndex(selectedIndex);\n list.ensureIndexIsVisible(selectedIndex);\n }\n }", "public native void deselectAll() /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.deselectAll();\r\n }-*/;", "private synchronized void remove(int index) {\r\n\t\tif (index >= 0 && index <= docModel.size())\r\n\t\t\ttry {\r\n\t\t\t\tdocModel.remove(index - 1);\r\n\t\t\t} catch (ArrayIndexOutOfBoundsException e) {\r\n\t\t\t\tif (commandsQueue.size() == 0)\r\n\t\t\t\t\tupdateActiveUsers();\r\n\t\t\t}\r\n\t}", "private void deleteElement(int index) {\n Object[] first = new Object[index];\n System.arraycopy(this.container, 0, first, 0, index);\n\n Object[] second = new Object[this.container.length - index - 1];\n System.arraycopy(this.container, index + 1, second, 0, second.length);\n\n this.container = new Object[this.container.length];\n System.arraycopy(first, 0, this.container, 0, first.length);\n System.arraycopy(second, 0, this.container, index, second.length);\n\n this.position--;\n }", "private void selectPosition(int i, View view) {\n if (i >= 0) {\n this.mAccessibilityMoving = false;\n List<TileQueryHelper.TileInfo> list = this.mTiles;\n int i2 = this.mEditIndex - 1;\n this.mEditIndex = i2;\n list.remove(i2);\n notifyItemRemoved(this.mEditIndex);\n if (i == this.mEditIndex) {\n i--;\n }\n move(this.mAccessibilityFromIndex, i, view);\n notifyDataSetChanged();\n }\n }", "public void remove(int index)\n {\n numItems--;\n items[index] = null;\n }", "public void deleteSelection() {\r\n /* Delete the node */\r\n try {\r\n deleteNode();\r\n } catch (NullPointerException e1) {\r\n }\r\n /* Delete the edge */\r\n try {\r\n deleteEdge();\r\n } catch (NullPointerException e2) {\r\n }\r\n /* Reload the scroll */\r\n scrollPane().doLayout();\r\n }", "public void clear(long index);", "public native void deselectCell(CellRecord cell) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.deselectCell([email protected]::getJsObj()());\r\n }-*/;", "public void onRowUnselect(UnselectEvent event) throws IOException {\n\r\n\r\n }", "public abstract T remove(int index);", "public void selectItem(int index) {\n for (int i = 0; i < getWidgetCount(); i++) {\n Widget item = getWidget(i);\n\n if (item instanceof AbstractListItem) {\n ((AbstractListItem) item).setActive(i == index);\n }\n }\n }", "public abstract boolean isIndexSelected(int i);", "public void deselectFocusedNode(){\r\n \tfocusOut();\r\n }", "public void selectItem(int i) {\n checkIndex(i);\n selectedItem = i;\n }", "public void testSelectIndex() {\n showFrame(box);\n for (int i=0;i < MAX_ENTRIES;i += MAX_ENTRIES / 10) {\n selectedIndex = -1;\n tester.actionSelectIndex(box, i);\n assertEquals(\"Wrong index selected\", i, selectedIndex);\n }\n }", "public native String removeItem(Number index);", "public void deselectPanel() {\n\t\tthis.displayNumberBlock.setBackground(dispNormal);\n\t}" ]
[ "0.7389681", "0.6954614", "0.6912116", "0.6747784", "0.67422366", "0.6684513", "0.6632847", "0.6618692", "0.66065645", "0.65460193", "0.6475097", "0.6467418", "0.6449377", "0.6429477", "0.6378446", "0.6369986", "0.6270546", "0.6269442", "0.62613434", "0.62492794", "0.62360436", "0.6213687", "0.6175097", "0.61689734", "0.6153112", "0.61416537", "0.6137297", "0.61221355", "0.6102186", "0.6088129", "0.6085602", "0.60827976", "0.60827976", "0.60827976", "0.60827976", "0.6069968", "0.6063465", "0.60498273", "0.60403097", "0.60311437", "0.60199624", "0.5996257", "0.59863406", "0.59713554", "0.5958995", "0.5949864", "0.5948225", "0.5945081", "0.59391147", "0.5899639", "0.58976465", "0.5895065", "0.58824515", "0.58686405", "0.58586866", "0.5831487", "0.5828558", "0.58140165", "0.58022374", "0.57992214", "0.57987726", "0.5766297", "0.5765953", "0.5751482", "0.57398397", "0.5737731", "0.57309616", "0.5708769", "0.57054937", "0.56993914", "0.56949025", "0.56861097", "0.5681861", "0.567594", "0.5675493", "0.56753546", "0.567226", "0.56705284", "0.56679314", "0.5666394", "0.5661637", "0.56460553", "0.56436497", "0.5629973", "0.5629442", "0.5628187", "0.5624661", "0.5622519", "0.5621549", "0.5620455", "0.5619092", "0.5611868", "0.55990595", "0.5596672", "0.55801105", "0.5577087", "0.55710125", "0.55523264", "0.5548007", "0.55477476" ]
0.7821436
0
!wca! isIndexSelected: (idx: number): boolean Returns whether the item is currently selected. idx: Index from items array to test
public boolean isIndexSelected(int idx) { return getElement().isIndexSelected(idx); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean isIndexSelected(int i);", "public boolean isSelectedIndex(int index)\r\n {\r\n return (avatarIndex == index);\r\n }", "protected boolean selectItemAtIndex(GuiSubitemTestObject guiObj, int index) {\n\t\tString debugmsg = getClass().getName()+\".selectItemAtIndex(): \";\n\t\t\n\t\ttry {\n\t\t\tif(!scrollToIndex(guiObj, index)){\n\t\t\t\tLog.debug(debugmsg+\" can not scroll to index \"+index);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tString itemText = getListItem(guiObj, index);\n\t\t\tguiObj.click(Script.localAtText(itemText));\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isSelectedIndex(int index) {\n\t\t\treturn tablecolselectmodel.isSelectedIndex(index);\n\t\t}", "public void itemSelected(boolean selected);", "static int getIndexSelected() {\n return indexSelected;\n }", "@Override\r\n\t\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t\t\tif(e.getStateChange()==ItemEvent.SELECTED)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(e.getItem()==cb[0])index1=true;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[1])index2=true;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[2])index3=true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(e.getStateChange()==ItemEvent.DESELECTED)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(e.getItem()==cb[0])index1=false;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[1])index2=false;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[2])index3=false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "protected boolean isSelected(int slotIndex)\n {\n return false;\n }", "protected boolean isSelected(int slotIndex)\n {\n return false;\n }", "protected boolean isSelected(int slotIndex)\n {\n return false;\n }", "private boolean featureSelectStatus(int index) {\n if (featureCollection == null) {\n return false;\n }\n\n return featureCollection.features().get(index).getBooleanProperty(PROPERTY_SELECTED);\n }", "private boolean itemSelect(boolean refresh, @MagicConstant(flags = {NEXT_DEFAULT, NEXT_REVERSED, NEXT_STOP_WHEN_END, NEXT_EVERY_ITEM}) int flags) {\n int index = samplesList.getSelectedIndex();\n int next = shipment.getNextIndex(index, flags);\n if (next < 0) return false;\n if (refresh) {\n refreshUI(UI_SAMPLE_INFO | UI_SELECTION, next);\n }\n return true;\n }", "boolean hasItemIndex();", "boolean hasItemIndex();", "boolean hasItemIndex();", "public boolean isSelected();", "public boolean isSelected();", "boolean isSelected();", "boolean isSelected();", "boolean isSelected();", "public void selectItem(int index) {\n for (int i = 0; i < getWidgetCount(); i++) {\n Widget item = getWidget(i);\n\n if (item instanceof AbstractListItem) {\n ((AbstractListItem) item).setActive(i == index);\n }\n }\n }", "public boolean isSelected() { \n \treturn selection != null; \n }", "public abstract boolean isSelected();", "public boolean isSelected() { return selected; }", "public boolean IsSelected0(int i) {\n\t\treturn theSelected0[i];\n\t}", "public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}", "@Override\n public boolean isSelectedIndex(int row)\n {\n return allowSelectDisabled\n || isAssociationAvailable(assnsTable.convertRowIndexToModel(row))\n ? super.isSelectedIndex(row)\n : false;\n }", "public abstract boolean hasSelection();", "public void testSelectIndex() {\n showFrame(box);\n for (int i=0;i < MAX_ENTRIES;i += MAX_ENTRIES / 10) {\n selectedIndex = -1;\n tester.actionSelectIndex(box, i);\n assertEquals(\"Wrong index selected\", i, selectedIndex);\n }\n }", "public void initSelectedItems(int position) {\n\n/* for(int i=0; i < itemsList.size(); i++){\n selectView(i, itemsList.get(i).isSelected());\n }*/\n }", "public boolean isSelected(){\r\n return selected;\r\n }", "public boolean IsSelected1(int i) {\n\t\treturn theSelected1[i];\n\t}", "public boolean isSelected() {\n \t\treturn selected;\n \t}", "public boolean isSelected() \n {\n return selected;\n }", "public boolean isSelected()\n {\n return selected;\n }", "public boolean isSelected() {\n\t\treturn iAmSelected;\n\t}", "@FXML\r\n\tpublic void checkSelected() {\r\n\t\tif(!listView.getSelectionModel().isEmpty())\r\n\t\t{\r\n\t\t\tdeleteItemButton.setDisable(false);\r\n\t\t\taddToShoppingCartButton.setDisable(false);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdeleteItemButton.setDisable(true);\r\n\t\t\taddToShoppingCartButton.setDisable(true);\r\n\t\t}\r\n\t}", "public boolean isSelected() {\r\n return selected;\r\n }", "public boolean isSelected()\n\t{\n\t\treturn selected;\n\t}", "public boolean isSelected() {\n return (state & STATE_SELECTED) != 0;\n }", "public boolean getSelected()\n {\n return selected; \n }", "public boolean isSelected() {\r\n\t\treturn selected;\r\n\t}", "@Override\r\n @Test\r\n @ConditionalIgnore(condition = IgnoreNotYetImplemented.class)\r\n public void testSelectedIndicesAfterSort() {\r\n int first = 0;\r\n int last = items.size() -1;\r\n getSelectionModel().select(first);\r\n Comparator comparator = new TreeItemComparator();\r\n FXCollections.sort(items, comparator);\r\n assertEquals(1, getSelectedIndices().size());\r\n assertEquals(last, getSelectedIndices().get(0).intValue());\r\n }", "public boolean isSelected() {\r\n return isSelected;\r\n }", "public boolean isSelectionChanged();", "public boolean isSelected() {\n\t\treturn selected;\n\t}", "public boolean isSelected() {\n\t\treturn selected;\n\t}", "private boolean seleccionarItemEnListado(){\n\t\t\n\t\tint indice = this.getUltIdDoc();\n\t\tif (indice > -1){ //solo si se eligió un doc\n\t\t\tif ((indice+1) > tablaDocs.getItemCount()){ //se pasa de la cantidad de elemento en la lista, poner el de mas arriba en su lugar\n\t\t\t\tthis.setUltIdDoc(tablaDocs.getItemCount()-1);\n\t\t\t\tindice = this.getUltIdDoc(); \n\t\t\t}\n\t\t\ttablaDocs.setSelection(indice); \n\t\t\tlistaDocumentos.setSelection(indice);\n\t\t}\n\t\treturn true;\n\t}", "protected void informAboutSelection(int selectedIndex, ItemType itemType) {\n\t\t//System.out.println(\"GeneralItemList.informAboutSelection()\"+selectedIndex);\n\t}", "public int getSelectedIndex() {\r\n\t\t\treturn idx;\r\n\t\t}", "public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }", "private void selectChild(int index) {\n if (selectedIndex != index) {\n selectedIndex = -1;\n for (int i = 0; i < getChildCount(); i++) {\n getChildAt(i).setSelected(i == index);\n if (i == index) {\n selectedIndex = index;\n }\n }\n\n if (changeListener != null)\n changeListener.onItemSelect(this, selectedIndex);\n }\n }", "public int getSelectionIndex() {\n checkWidget();\n return selectedIndex;\n }", "public boolean getIsSelected() {\n return this.isSelected;\n }", "protected boolean isSelected(Object itemValue, Object[] values) {\r\n if (values != null) {\r\n int len = values.length;\r\n // check all items in the array\r\n for (int i=0; i<len; i++) {\r\n if (values[i].equals(itemValue)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "public boolean IsSelected3(int i) {\n\t\treturn theSelected3[i];\n\t}", "boolean updateItems() {\n return updateItems(selectedIndex);\n }", "public void onItemSelecting(AdapterView<?> parent, View view, int oldPosition, int newPosition);", "public void onItemStateChanged(String id, boolean selected);", "public int getSelectedIndex() {\n return selectedIndex;\n }", "@Override\n\tpublic boolean isSelected() {\n\t\treturn false;\n\t}", "@NonNull\n public SparseBooleanArray getSelectedItems() {\n return selectedItems;\n }", "public boolean IsSelected2(int i) {\n\t\treturn theSelected2[i];\n\t}", "private void toggleSelectedAlgorithm(int index) {\n if (selected[index] == true) {\n selected[index] = false;\n } else {\n selected[index] = true;\n }\n }", "public void selectItem(int i) {\n checkIndex(i);\n selectedItem = i;\n }", "public Boolean getIsselected() {\n return isselected;\n }", "public Boolean getIsselected() {\n return isselected;\n }", "protected boolean isSelected(Object itemValue, Object valueArray) {\r\n if (valueArray != null) {\r\n int len = Array.getLength(valueArray);\r\n // check all items in the array\r\n for (int i=0; i<len; i++) {\r\n Object value = Array.get(valueArray, i);\r\n if (value == null) {\r\n if (itemValue == null) {\r\n return true;\r\n }\r\n } else if (value.equals(itemValue)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "boolean isIndex();", "public boolean isSelected(T item) {\n return getElement().isSelected(SerDes.mirror(item));\n }", "@Override\r\n\tprotected boolean onTap(int index) {\r\n\t\treturn true;\r\n\t}", "public boolean isIndex() {\n return index;\n }", "@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tchecklistIndex = arg2;\r\n\t\t\t\t\r\n\t\t\t}", "public void showSelection () {\n checkWidget();\n if( selectedIndex != -1 ) {\n showItem( getSelection() );\n }\n }", "public boolean isSelected()\n {\n\treturn _isSelected;\n }", "public void selectItem(int position, boolean value) {\n if (value) {\n mSelectedItems.put(position, value);\n notifyItemChanged(position);\n } else {\n mSelectedItems.delete(position);\n notifyItemChanged(position);\n }\n }", "boolean hasIronSelected();", "int getSelectedClientIndex();", "public void getSelected() {\n for (int i = 0; i < list.size(); i++) {\n if (selectColumn.getCellObservableValue(i).getValue().isSelected()) {\n selectedIngredients.add(i + 1);\n }\n }\n }", "@Override\n public void onClick(View view) {\n if(view.isSelected()){\n view.setSelected(false);\n selectedList.remove((Integer) getAdapterPosition());\n }\n else{\n view.setSelected(true);\n selectedList.add((Integer) getAdapterPosition());\n }\n\n //when a meta magic is selected we allow the modifications\n if(! (selectedList == null) && ! selectedList.isEmpty()){\n parent.findViewById(R.id.buttonDelete).setEnabled(true);\n\n //we allow modification only if there is one item selected\n if(selectedList.size() == 1)\n {\n parent.findViewById(R.id.buttonEdit).setEnabled(true);\n }\n else\n {\n parent.findViewById(R.id.buttonEdit).setEnabled(false);\n }\n\n }\n else{\n parent.findViewById(R.id.buttonDelete).setEnabled(false);\n parent.findViewById(R.id.buttonEdit).setEnabled(false);\n }\n\n }", "void setSelectedIndexes(List<Integer> selectedIndexes);", "@Override\n\tpublic void OnTitleSelected(int index) {\n\t\tif()\n\t}", "public native int getSelectedIndex();", "@Override\r\n public boolean onNavigationItemSelected(int itemPosition, long itemId) {\r\n\r\n return true;\r\n }", "protected boolean isSelected(int selectedID)\n\t{\n\t\treturn (selectedID == this.nameId) && (this.slotId == parentGuiFF.getSelectedListId());\n\t}", "@Override\r\n @Test\r\n public void testSelectedOnClearItemsSingle() {\r\n int index = 2;\r\n getSelectionModel().select(index);\r\n TreeItem parent = getSelectedItem().getParent();\r\n int parentIndex = getView().getRow(parent);\r\n clearItems();\r\n if (getSelectionModel().isEmpty()) {\r\n assertTrue(\"selection must be empty\", getSelectionModel().isEmpty());\r\n assertEquals(-1, getSelectedIndex());\r\n assertEquals(null, getSelectedItem());\r\n assertTrue(\"\", getSelectedIndices().isEmpty());\r\n assertTrue(\"\", getSelectedItems().isEmpty());\r\n// assertEquals(\"focus must be cleared\", -1, getFocusModel()\r\n// .getFocusedIndex());\r\n } else {\r\n assertEquals(\"selectedIndex at parentIndex\", parentIndex, getSelectedIndex());\r\n assertEquals(\"parent must be selected after clearing \", parent, \r\n getSelectedItem());\r\n }\r\n }", "boolean hasIndex();", "boolean hasIndex();", "boolean hasIndex();", "boolean hasIndex();", "boolean hasIndex();", "boolean hasIndex();", "B scrollToSelectedItem(boolean scrollToSelectedItem);", "public boolean testSelected() {\n // test if set\n boolean set = Card.isSet(\n selectedCards.get(0).getCard(),\n selectedCards.get(1).getCard(),\n selectedCards.get(2).getCard()\n );\n\n // set currentlySelected to false and replace with new Cards (if applicable)\n for (BoardSquare bs : selectedCards)\n bs.setCurrentlySelected(false);\n\n // handle if set\n if (set) {\n if (!deck.isEmpty() && this.numCardsOnBoard() == 12) {\n for (BoardSquare bs : selectedCards)\n bs.setCard(deck.getTopCard());\n }\n else if (!deck.isEmpty() && this.numCardsOnBoard() < 12) {\n board.compressBoard(selectedCards);\n this.add3();\n }\n else {\n board.compressBoard(selectedCards);\n }\n }\n\n // clear ArrayList\n selectedCards.clear();\n\n // return bool\n return set;\n }", "boolean hasStablesSelected();", "@Override\n\t\t\tpublic void checkbox_select_callBack(boolean ifCheck) {\n\t\t\t\tsuper.checkbox_select_callBack(ifCheck);\n\t\t\t\titemCallBack.call_select(ifCheck,position);\n\t\t\t}", "public void assertSelectedIndex(final String selectLocator, final String indexPattern);", "@Override\n \tpublic boolean onNavigationItemSelected(int itemPosition, long itemId) {\n \t\treturn true;\n \t}", "boolean hasSelectedTransport()\n {\n for(JCheckBoxMenuItem item : transportMenuItems.values())\n {\n if(item.isSelected())\n return true;\n }\n\n return false;\n }", "public int getSelected() {\n \t\treturn selected;\n \t}" ]
[ "0.8392749", "0.7505204", "0.74934304", "0.7404232", "0.7011718", "0.6927509", "0.6804478", "0.67844427", "0.67844427", "0.67844427", "0.6689765", "0.6604094", "0.6562887", "0.6562887", "0.6562887", "0.6537653", "0.6537653", "0.6514749", "0.6514749", "0.6514749", "0.6475863", "0.6442795", "0.64042985", "0.6373356", "0.63504404", "0.634977", "0.63323027", "0.6331782", "0.6315041", "0.6311553", "0.6293353", "0.62378716", "0.62054324", "0.6204054", "0.61605495", "0.61592543", "0.61563826", "0.61358863", "0.6083432", "0.60621375", "0.6059962", "0.6048982", "0.6040997", "0.6040815", "0.6018114", "0.60109246", "0.60109246", "0.6002793", "0.6000434", "0.5983094", "0.59742945", "0.5957541", "0.5955574", "0.59267485", "0.5921723", "0.5920828", "0.5916569", "0.5891485", "0.58823514", "0.5870813", "0.5851961", "0.5851014", "0.5834493", "0.58310115", "0.58287567", "0.58254766", "0.58254766", "0.5823154", "0.5815939", "0.58131564", "0.5812364", "0.580967", "0.5808004", "0.5807077", "0.5797442", "0.57944506", "0.577873", "0.5765359", "0.57547337", "0.5743049", "0.57406634", "0.5735898", "0.57322484", "0.57283324", "0.57103384", "0.57097816", "0.57089365", "0.57089365", "0.57089365", "0.57089365", "0.57089365", "0.57089365", "0.57022274", "0.5678711", "0.5673486", "0.5661214", "0.5654669", "0.56434613", "0.56401134", "0.56368387" ]
0.7923432
1
!wca! isSelected: (item: ): boolean Returns whether the item is currently selected. item: Item from items array to test
public boolean isSelected(T item) { return getElement().isSelected(SerDes.mirror(item)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void itemSelected(boolean selected);", "public boolean isSelected();", "public boolean isSelected();", "boolean isSelected();", "boolean isSelected();", "boolean isSelected();", "public abstract boolean isSelected();", "public boolean isSelected() { return selected; }", "protected boolean isSelected(Object itemValue, Object valueArray) {\r\n if (valueArray != null) {\r\n int len = Array.getLength(valueArray);\r\n // check all items in the array\r\n for (int i=0; i<len; i++) {\r\n Object value = Array.get(valueArray, i);\r\n if (value == null) {\r\n if (itemValue == null) {\r\n return true;\r\n }\r\n } else if (value.equals(itemValue)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "public boolean isSelected() {\r\n return isSelected;\r\n }", "public boolean isSelected() \n {\n return selected;\n }", "public boolean isSelected(){\r\n return selected;\r\n }", "public boolean isSelected()\n {\n return selected;\n }", "public boolean isSelected() {\n\t\treturn iAmSelected;\n\t}", "public boolean isSelected() {\n \t\treturn selected;\n \t}", "public boolean isSelected() { \n \treturn selection != null; \n }", "public boolean isSelected() {\r\n return selected;\r\n }", "public boolean isSelected()\n\t{\n\t\treturn selected;\n\t}", "public boolean isSelected() {\r\n\t\treturn selected;\r\n\t}", "public boolean isSelected() {\n\t\treturn selected;\n\t}", "public boolean isSelected() {\n\t\treturn selected;\n\t}", "public boolean isSelected()\n {\n\treturn _isSelected;\n }", "protected boolean isSelected(Object itemValue, Object[] values) {\r\n if (values != null) {\r\n int len = values.length;\r\n // check all items in the array\r\n for (int i=0; i<len; i++) {\r\n if (values[i].equals(itemValue)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "void itemSelected(OutlineItem item);", "public boolean isSelected() {\n return (state & STATE_SELECTED) != 0;\n }", "@Override\n\tpublic boolean isSelected() {\n\t\treturn false;\n\t}", "public abstract boolean isIndexSelected(int i);", "public boolean isSelected(WebElement element){\r\n\r\n\t\treturn element.isSelected();\r\n\r\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n ScheduleItem item = itemList.get(position);\n item.setSelected(!item.isSelected());\n view.setBackgroundColor(item.isSelected() ? Color.rgb(27, 179, 245) : Color.WHITE);\n\n\n button.setEnabled(false);\n button.setBackgroundColor(Color.LTGRAY);\n for(ScheduleItem scheduleItem: itemList){\n if(scheduleItem.isSelected()){\n button.setEnabled(true);\n button.setBackgroundColor(Color.BLUE);\n }\n }\n\n\n }", "public boolean isSelected() {\n return SELECTED.equals(message);\n }", "@Override\r\n\t\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t\t\tif(e.getStateChange()==ItemEvent.SELECTED)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(e.getItem()==cb[0])index1=true;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[1])index2=true;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[2])index3=true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(e.getStateChange()==ItemEvent.DESELECTED)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(e.getItem()==cb[0])index1=false;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[1])index2=false;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[2])index3=false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }", "public boolean isSelected(PortalSiteRequestContext context)\n {\n // menu is selected if a selected element exists\n return (getSelectedElement(context) != null);\n }", "private boolean itemSelect(boolean refresh, @MagicConstant(flags = {NEXT_DEFAULT, NEXT_REVERSED, NEXT_STOP_WHEN_END, NEXT_EVERY_ITEM}) int flags) {\n int index = samplesList.getSelectedIndex();\n int next = shipment.getNextIndex(index, flags);\n if (next < 0) return false;\n if (refresh) {\n refreshUI(UI_SAMPLE_INFO | UI_SELECTION, next);\n }\n return true;\n }", "public boolean getSelected()\n {\n return selected; \n }", "protected boolean selectItemAtIndex(GuiSubitemTestObject guiObj, int index) {\n\t\tString debugmsg = getClass().getName()+\".selectItemAtIndex(): \";\n\t\t\n\t\ttry {\n\t\t\tif(!scrollToIndex(guiObj, index)){\n\t\t\t\tLog.debug(debugmsg+\" can not scroll to index \"+index);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tString itemText = getListItem(guiObj, index);\n\t\t\tguiObj.click(Script.localAtText(itemText));\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean getIsSelected() {\n return this.isSelected;\n }", "protected boolean isSelected(int slotIndex)\n {\n return false;\n }", "protected boolean isSelected(int slotIndex)\n {\n return false;\n }", "protected boolean isSelected(int slotIndex)\n {\n return false;\n }", "public boolean isSelected() {\n\t\treturn _booleanNode.isPartiallyTrue();\n\t}", "public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}", "public boolean isSelected(Date date)\n/* */ {\n/* 200 */ Contract.asNotNull(date, \"date must not be null\");\n/* 201 */ return this.selectedDates.contains(date);\n/* */ }", "@Override\n public Boolean getValue(SimInfo object) {\n return selectionModel.isSelected(object);\n }", "public void itemStateChanged(ItemEvent ie) {\n JCheckBox check = (JCheckBox)ie.getSource();\n cb_selection = check.getText(); \n }", "public void onItemStateChanged(String id, boolean selected);", "public boolean isSelected_click_Fuel_Rewards_Link(){\r\n\t\tif(click_Fuel_Rewards_Link.isSelected()) { return true; } else { return false;} \r\n\t}", "public boolean isSelected() {\n return isEnabled;\n }", "public boolean testSelected() {\n // test if set\n boolean set = Card.isSet(\n selectedCards.get(0).getCard(),\n selectedCards.get(1).getCard(),\n selectedCards.get(2).getCard()\n );\n\n // set currentlySelected to false and replace with new Cards (if applicable)\n for (BoardSquare bs : selectedCards)\n bs.setCurrentlySelected(false);\n\n // handle if set\n if (set) {\n if (!deck.isEmpty() && this.numCardsOnBoard() == 12) {\n for (BoardSquare bs : selectedCards)\n bs.setCard(deck.getTopCard());\n }\n else if (!deck.isEmpty() && this.numCardsOnBoard() < 12) {\n board.compressBoard(selectedCards);\n this.add3();\n }\n else {\n board.compressBoard(selectedCards);\n }\n }\n\n // clear ArrayList\n selectedCards.clear();\n\n // return bool\n return set;\n }", "public boolean isSelected() {\n/* 876 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n Object source = e.getItemSelectable();\n \n //Now that we know which button was pushed, find out\n //whether it was selected or deselected.\n if (e.getStateChange() == ItemEvent.SELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(false);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(false);\n\t\t\t\tthis.capaExplain.setVisible(false);\n } \n }\n else if (e.getStateChange() == ItemEvent.DESELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(true);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(true);\n\t\t\t\tthis.capaExplain.setVisible(true);\n } \n }\n\t}", "public boolean IsSelected1(int i) {\n\t\treturn theSelected1[i];\n\t}", "public boolean isCellSelected(Object cell) {\r\n \t\treturn graph.isCellSelected(cell);\r\n \t}", "public boolean isSelected() {\n return checkbox.isSelected();\n }", "public boolean isSelectedEntity(Entity e) {\n\t\tEntity[] selected = selectedEntities;\n\t\tif (selected == null)\n\t\t\treturn false;\n\t\tfor (int i = 0; i < selected.length; i++) {\n\t\t\tif (e == selected[i])\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void initSelectedItems(int position) {\n\n/* for(int i=0; i < itemsList.size(); i++){\n selectView(i, itemsList.get(i).isSelected());\n }*/\n }", "public abstract boolean hasSelection();", "static void setNotSelected(){isSelected=false;}", "@Override\r\n\t\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t\t\tif(e.getStateChange()==ItemEvent.DESELECTED)return;\r\n\t\t\t\t\t\tif(b[0].isSelected())gender=false;\r\n\t\t\t\t\t\telse gender=true;\r\n\t\t\t\t\t}", "public boolean isSelected() {\n/* 3021 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean isSelected_click_My_Rewards_Link(){\r\n\t\tif(click_My_Rewards_Link.isSelected()) { return true; } else { return false;} \r\n\t}", "boolean hasIronSelected();", "@FXML\r\n\tpublic void checkSelected() {\r\n\t\tif(!listView.getSelectionModel().isEmpty())\r\n\t\t{\r\n\t\t\tdeleteItemButton.setDisable(false);\r\n\t\t\taddToShoppingCartButton.setDisable(false);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdeleteItemButton.setDisable(true);\r\n\t\t\taddToShoppingCartButton.setDisable(true);\r\n\t\t}\r\n\t}", "public Boolean getIsselected() {\n return isselected;\n }", "public Boolean getIsselected() {\n return isselected;\n }", "public boolean IsSelected0(int i) {\n\t\treturn theSelected0[i];\n\t}", "public static boolean isSelected(WebElement element) {\n\t\tboolean selected = element.isSelected();\n\t\treturn selected;\n\n\t}", "public boolean isSelectedTile(Tile tile) {\n\t\tTile[] selected = selectedTiles;\n\t\tif (selected == null)\n\t\t\treturn false;\n\t\tfor (Tile t : selected)\n\t\t\tif (t == tile)\n\t\t\t\treturn true;\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\treturn super.onMenuItemSelected(featureId, item);\n\t}", "protected boolean isSelected(int selectedID)\n\t{\n\t\treturn (selectedID == this.nameId) && (this.slotId == parentGuiFF.getSelectedListId());\n\t}", "public void itemStateChanged(ItemEvent e){\r\n\t\tboolean state;\r\n\t\tif(e.getStateChange() == ItemEvent.SELECTED) state = true;\r\n\t\telse state = false;\r\n\t\tif(e.getSource() == monitoredBeaconZoneEditCheckBox_){\r\n\t\t\tmonitoredBeaconZoneEdit_ = state;\r\n\t\t} else if(e.getSource() == doMonitorBeaconsCheckBox_){\r\n\t\t\tVehicle.setBeaconMonitorZoneEnabled(state);\r\n\t\t\tupdateBeaconInfo_ = state;\r\n\t\t} else if(e.getSource() == monitoredBeaconZoneShowCheckBox_){\r\n\t\t\tRenderer.getInstance().setShowBeaconMonitorZone(state);\r\n\t\t\tRenderer.getInstance().ReRender(false, false);\r\n\t\t} else if(e.getSource() == autoUpdateStatisticsCheckBox_){\r\n\t\t\tupdateStatistics_ = state;\r\n\t\t}\r\n\t}", "@NonNull\n public SparseBooleanArray getSelectedItems() {\n return selectedItems;\n }", "public void setSelected(boolean selected);", "public void setSelected(boolean select) {\r\n isSelected = select;\r\n }", "public void testMarkAllItemsSelected()\n\t{\n\t\t// Arrange\n\t\taddListWith6Items(\"testlist\");\n\n\t\t// Act\n\t\tservice.markAllItemsSelected(2l, true);\n\t\tActivitiesDataSource allLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tActivityBean newList = allLists.getActivity(\"testlist\");\n\n\t\t// Assert\n\t\tCategoryBean newCategory1 = newList.getCategory(\"cat1\");\n\t\tCategoryBean newCategory2 = newList.getCategory(\"cat2\");\n\t\tassertTrue(newCategory1.getEntry(\"item1\").getIsSelected());\n\t\tassertTrue(newCategory1.getEntry(\"item2\").getIsSelected());\n\t\tassertTrue(newCategory1.getEntry(\"item3\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item4\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item5\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item6\").getIsSelected());\t\t\n\t\t\n\t\t// Act\n\t\tservice.markAllItemsSelected(2l, false);\n\t\tallLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tnewList = allLists.getActivity(\"testlist\");\n\n\t\t// Assert\n\t\tnewCategory1 = newList.getCategory(\"cat1\");\n\t\tnewCategory2 = newList.getCategory(\"cat2\");\n\t\tassertFalse(newCategory1.getEntry(\"item1\").getIsSelected());\n\t\tassertFalse(newCategory1.getEntry(\"item2\").getIsSelected());\n\t\tassertFalse(newCategory1.getEntry(\"item3\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item4\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item5\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item6\").getIsSelected());\t\n\t}", "public boolean IsSelected3(int i) {\n\t\treturn theSelected3[i];\n\t}", "public boolean rbRbBymail_isSelected() {\n\t\treturn rbBymail.isSelected();\n\t}", "private void itemSelected(){\n \t//* count selected items\n \tint c=0;\n \tfor (int i = 0; i<jTable4.getRowCount(); i++){\n \t\tif((Boolean)jTable4.getModel().getValueAt(i, 0)){\n \t\t\tc++;\n \t\t}\n \t}\n \tif(c==0){\n \t\treturn; //* if no item selected then do nothing\n \t}\n \t\n \t//* get the new selected items\n \tString[][] tmp1=new String[c][2];\n \tfor (int i = 0, j=0; i<jTable4.getRowCount(); i++){\n \t\tif((Boolean)jTable4.getModel().getValueAt(i, 0)){\n \t\t\ttmp1[j]=new String[2];\n \t\t\ttmp1[j][0]=jTable4.getModel().getValueAt(i, 1).toString();\n \t\t\ttmp1[j++][1]=\"0\";\n \t\t}\n \t}\n \t\n \t//* get the previously selected items\n \tString[][] tmp2=new String[jTable3.getModel()==null? 0: jTable3.getModel().getRowCount()][9];\n \tfor (int i = 0; i<tmp2.length; i++){\n \t\ttmp2[i]=new String[9];\n \t\ttmp2[i][0]=jTable3.getModel().getValueAt(i, 1).toString();\n \t\ttmp2[i][1]=jTable3.getModel().getValueAt(i, 2).toString();\n \t\ttmp2[i][2]=jTable3.getModel().getValueAt(i, 3).toString();\n \t\ttmp2[i][3]=jTable3.getModel().getValueAt(i, 5).toString();\n \t\ttmp2[i][4]=jTable3.getModel().getValueAt(i, 7).toString();\n \t\ttmp2[i][5]=jTable3.getModel().getValueAt(i, 9).toString();\n \t\ttmp2[i][6]=jTable3.getModel().getValueAt(i, 11).toString();\n \t\ttmp2[i][7]=jTable3.getModel().getValueAt(i, 13).toString();\n \t\ttmp2[i][8]=jTable3.getModel().getValueAt(i, 15).toString();\n \t}\n \tfillPoDet(tmp2, tmp1); //* reconstruct PO table\n \tjTabbedPane1.setSelectedIndex(0);\n }", "void onItemSelected(int index, T item) throws RemoteException;", "@Override\r\n public boolean onNavigationItemSelected(int itemPosition, long itemId) {\r\n\r\n return true;\r\n }", "@Override\n public boolean onMenuItemSelected(int featureId, MenuItem item) {\n int lSelectedItemID = item.getItemId(); // 액션 메뉴 아이디 확인함.\n if(lSelectedItemID == R.id.action_example){\n // To-do something\n }\n return super.onMenuItemSelected(featureId, item);\n }", "void setSelectedItems(ValueType selectedItems);", "public void selectItem(int position, boolean value) {\n if (value) {\n mSelectedItems.put(position, value);\n notifyItemChanged(position);\n } else {\n mSelectedItems.delete(position);\n notifyItemChanged(position);\n }\n }", "public void getSelected() {\n for (int i = 0; i < list.size(); i++) {\n if (selectColumn.getCellObservableValue(i).getValue().isSelected()) {\n selectedIngredients.add(i + 1);\n }\n }\n }", "public void itemStateChanged(ItemEvent event) {\n\t\t\t if (event.getStateChange() == ItemEvent.SELECTED) {\n\t\t Object item = event.getItem(); // daragdsan object turliig awna \n\t\t System.out.println(\"daragdsan :\"+item);\n\t\t String s=(String)item;\n\t\t \n\t\t if(item.equals(\"gray\")){\n\t\t \t p1.setBackground(Color.GRAY);\n\t\t }\n\t\t if(item.equals(\"white\")){\n\t\t \t p1.setBackground(Color.white);\n\t\t }\n\t\t if(item.equals(\"green\")){\n\t\t \t p1.setBackground(Color.green);\n\t\t }\n\t\t if(item.equals(\"black\")){\n\t\t \t p1.setBackground(Color.BLACK);\n\t\t }\n\t\t if(item.equals(\"blue\")){\n\t\t \t p1.setBackground(Color.blue);\n\t\t }\n\t\t if(item.equals(\"cyan\")){\n\t\t \t p1.setBackground(Color.cyan);\n\t\t }\n\t\t \n\t\t if(item.equals(\"orange\")){\n\t\t \t p1.setBackground(Color.ORANGE);\n\t\t }\n\t\t if(item.equals(\"pink\")){\n\t\t \t p1.setBackground(Color.PINK);\n\t\t }\n\t\t if(item.equals(\"red\")){\n\t\t \t p1.setBackground(Color.red);\n\t\t }\n\t\t\t } \n\t\t\t\n\t\t}", "@Override\n \tpublic boolean onNavigationItemSelected(int itemPosition, long itemId) {\n \t\treturn true;\n \t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n isSelected = true;\n\n // Showing selected spinner item\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\tOptionsMenu.selectItem(item,getApplicationContext());\n\t\treturn super.onMenuItemSelected(featureId, item);\n\t}", "public void selectItem(int index) {\n for (int i = 0; i < getWidgetCount(); i++) {\n Widget item = getWidget(i);\n\n if (item instanceof AbstractListItem) {\n ((AbstractListItem) item).setActive(i == index);\n }\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent,\n View view, int position, long id) {\n items.get(position).isChecked = !(items.get(position).isChecked);\n Log.println(Log.DEBUG, TAG, items.get(position).name + \":\" + items.get(position).isChecked);\n }", "@Override\r\n @Test\r\n @ConditionalIgnore(condition = IgnoreTreeUncontained.class)\r\n public void testSelectedOnSetItemsWithoutUncontained() {\r\n TreeItem uncontained = createItem(\"uncontained\");\r\n // prepare state\r\n getSelectionModel().select(uncontained);\r\n assertEquals(\"sanity: having uncontained selectedItem\", uncontained, getSelectedItem());\r\n assertEquals(\"sanity: no selected index\", -1, getSelectedIndex());\r\n // make uncontained part of the items by replacing old items\r\n ObservableList copy = FXCollections.observableArrayList(items);\r\n int insertIndex = 3;\r\n copy.add(insertIndex, createItem(\"anything\"));\r\n setAllItems(copy);\r\n assertEquals(\"sanity: selectedItem unchanged\", uncontained, getSelectedItem());\r\n assertEquals(\"selectedIndex unchanged\", -1, getSelectedIndex());\r\n }", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "public static void verify_element_is_selected(By locator) throws CheetahException {\n\t\ttry {\n\t\t\twait_for_element(locator);\n\t\t\tWebElement element = CheetahEngine.getDriverInstance().findElement(locator);\n\t\t\tdriverUtils.highlightElement(element);\n\t\t\tdriverUtils.unHighlightElement(element);\n\t\t\tassertEquals(true, element.isSelected());\n\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tAppInfo mApp = mApps.get(position);\n\t\t\t\tmApp.setSelected(!mApp.isSelected());\n\t\t\t\tmApps.set(position, mApp);\n\t\t\t\t\n\t\t\t\t// Let the adapter know you selected something\n\t\t\t\tmAdapter.notifyDataSetChanged();\n\t\t\t}", "public void selectItem(int i) {\n checkIndex(i);\n selectedItem = i;\n }", "public boolean isSelected_txt_Pick_Up_Text(){\r\n\t\tif(txt_Pick_Up_Text.isSelected()) { return true; } else { return false;} \r\n\t}", "public boolean isSelectedChild(int position) {\n return (mActualSelectedGroupPos + mActualSelectedChildPos + 1) == position;\n }", "@Override\n\tpublic boolean isSelected() {\n\t\tfor (DataFromPointInfo dataFromPointInfo : fromPoints) {\n\t\t\tDataFromPoint fromPoint = dataFromPointInfo.fromPoint;\n\t\t\tif (fromPoint.isSelected()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tfor (DataToPointInfo dataToPointInfo : toPoints) {\n\t\t\tDataToPoint toPoint = dataToPointInfo.toPoint;\n\t\t\tif (toPoint.isSelected()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn super.isSelected();\n\t}", "public static boolean isItemChecked(String item){\n\t\tint itemPosition=getItemPosition(item);\n\t\treturn itemList.get(itemPosition).getCheckmark();\n\t}" ]
[ "0.7602412", "0.75980425", "0.75980425", "0.7530632", "0.7530632", "0.7530632", "0.75012857", "0.7407305", "0.7386781", "0.7322228", "0.7292284", "0.72787666", "0.7250575", "0.72490025", "0.7248394", "0.72324246", "0.71565264", "0.71300125", "0.7044234", "0.7038578", "0.7038578", "0.70332843", "0.6996666", "0.6955427", "0.68761647", "0.66876274", "0.65723515", "0.65585005", "0.6547086", "0.6542774", "0.6534974", "0.6505267", "0.6499915", "0.64500195", "0.6412484", "0.6403072", "0.6395158", "0.6394399", "0.6394399", "0.6394399", "0.6389155", "0.63801605", "0.630161", "0.6298097", "0.6272947", "0.6270222", "0.626234", "0.6256326", "0.6193287", "0.61925906", "0.61209714", "0.6111081", "0.61102265", "0.6107046", "0.6099479", "0.6084151", "0.6067243", "0.6065667", "0.6050064", "0.60451865", "0.60380465", "0.60271", "0.60261756", "0.60173", "0.60173", "0.59911454", "0.5980453", "0.596186", "0.59590274", "0.59167105", "0.5898868", "0.58959275", "0.58925563", "0.5861422", "0.5845842", "0.5844892", "0.58362144", "0.58247495", "0.58202165", "0.58047664", "0.5802623", "0.57990813", "0.5794959", "0.5793554", "0.57925206", "0.57826614", "0.57808214", "0.5779704", "0.57762605", "0.57756656", "0.57748425", "0.57680905", "0.57680905", "0.5762966", "0.576093", "0.5760905", "0.57513887", "0.5748479", "0.57480323", "0.57420206" ]
0.8232038
0
!wca! select: (item: ): void Selects the given item. When toggle is true, this will automatically deselect the item if already selected. item: Item from items array to select
public void select(T item) { getElement().select(SerDes.mirror(item)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void itemSelected(boolean selected);", "public void selectItem(int i) {\n checkIndex(i);\n selectedItem = i;\n }", "@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }", "private void selection(int level, int item) {\n switch (level) {\n case 0:\n if (domaineSelectionne != null && item < tvComptes.getItems().size())\n tvComptes.getSelectionModel().select(item);\n break;\n case 1:\n if (donneesActives != null && item < lvDomaines.getItems().size())\n lvDomaines.getSelectionModel().select(item);\n break;\n }\n }", "void itemSelected(OutlineItem item);", "public void deselect(T item) {\n getElement().deselect(SerDes.mirror(item));\n }", "public void onItemStateChanged(String id, boolean selected);", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n selectItem(position);\n }", "public void selectItem(int index) {\n for (int i = 0; i < getWidgetCount(); i++) {\n Widget item = getWidget(i);\n\n if (item instanceof AbstractListItem) {\n ((AbstractListItem) item).setActive(i == index);\n }\n }\n }", "void onItemSelected(int index, T item) throws RemoteException;", "private void selectItem(int position) {\n if(position==0){\n Intent myIntent= new Intent(this, ConnectActivity.class);\n startActivity(myIntent);}\n if(position==1){\n Intent myIntent= new Intent(this, ShowActivity.class);\n startActivity(myIntent);}\n if(position==2){\n Intent myIntent= new Intent(this, DiagnosisActivity.class);\n startActivity(myIntent);}\n if(position==3){\n Intent myIntent= new Intent(this, RemoteActivity.class);\n startActivity(myIntent);}\n if(position==4){\n Intent myIntent= new Intent(this, CommandActivity.class);\n startActivity(myIntent);}\n\n // update selected item and title, then close the drawer\n mDrawerList.setItemChecked(position, true);\n setTitle(mPlanetTitles[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n }", "public void selectionChanged(Action item);", "private void selectItem(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.content_frame, fragment).commit();\n //mDrawerList.setItemChecked(position, true);\n //setTitle(mActionTitles[position]);\n //mDrawerLayout.closeDrawer(mDrawerList);\n }", "@Override\n\t\t\t\t\tpublic void OnSelectItem(Item item) {\n\n\t\t\t\t\t\tif(!toDelete.contains(item))\n\t\t\t\t\t\t\ttoDelete.add(item);\n\t\t\t\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\tma.toggle(arg2);\n\t}", "private void selectItem(int position) {\n mDrawerList.setItemChecked(position, true);\n // setTitle(mPlanetTitles[position]);\n setTitle(getResources().getStringArray(R.array.planets_array)[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n // simpleTV.setText(position + \"\");\n\n\n }", "@Override\n\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tprefs.edit().putInt(\"CHOOSE\",(int)choose.getSelectedItemId()).commit();\n\n\t\t\t\t\tif(choose.getSelectedItemId()==0)\n\t\t \t\t\tcontacts.setVisibility(View.GONE);\n\t\t\t\t\telse \n\t\t \t\t\tcontacts.setVisibility(View.VISIBLE);\n\t\t\t\t}", "private boolean itemSelect(boolean refresh, @MagicConstant(flags = {NEXT_DEFAULT, NEXT_REVERSED, NEXT_STOP_WHEN_END, NEXT_EVERY_ITEM}) int flags) {\n int index = samplesList.getSelectedIndex();\n int next = shipment.getNextIndex(index, flags);\n if (next < 0) return false;\n if (refresh) {\n refreshUI(UI_SAMPLE_INFO | UI_SELECTION, next);\n }\n return true;\n }", "@Override\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n int id = item.getItemId();\n //use switch condition\n switch (id){\n case R.id.select_delete:\n //when click delete\n //use for loop\n for (NoteEntity noteSelect :selectList) {\n //remove select item from list\n list.remove(noteSelect);\n mainViewModel.deleteById(noteSelect.getId());\n }\n //check condition\n if (list.size()==0){\n //when list is empty\n //visible text view\n tvEmpty.setVisibility(View.VISIBLE);\n }\n mode.finish();\n break;\n case R.id.select_all:\n //when click on select all\n //check condition\n if (selectList.size() == list.size()){\n //when all item selected\n //set isSelectAll false\n isSelectAll = false;\n //clear select list\n selectList.clear();\n }else {\n //when all item unselected\n //set isSelectAll true\n isSelectAll = true;\n //clear list\n selectList.clear();\n //add all values in select list\n selectList.addAll(list);\n }\n //set text in view mode\n mainViewModel.setSelectedLiveData(String.valueOf(selectList.size()));\n //notify adaptor\n notifyDataSetChanged();\n break;\n }\n return true;\n }", "public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }", "void setSelectedItems(ValueType selectedItems);", "public void initSelectedItems(int position) {\n\n/* for(int i=0; i < itemsList.size(); i++){\n selectView(i, itemsList.get(i).isSelected());\n }*/\n }", "public abstract void select(boolean select);", "public void selected(String action);", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_select_all) {\n if (mAdapter != null) {\n mAdapter.toggle();\n }\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "private void selectItem(int position) \n {\n \tFragment fragment = null;\n Bundle args = new Bundle();\n switch(position){\n \n case 0:\n \tDrawerTest.this.getActionBar().hide();\n \tfragment = new StaticViewer();\n args.putInt(\"static_viewer\", position);\n break;\n case 1:\n \tDrawerTest.this.getActionBar().hide();\n \tfragment = new DoctorPanel();\n args.putInt(\"doctor_panel\", position);\n break;\n case 2:\n \tDrawerTest.this.getActionBar().hide();\n \tfragment = new Panel();\n \targs.putInt(\"panel\", position);\n \tbreak;\n case 3:\n \tfragment = new Help();\n \targs.putInt(\"help\", position);\n case 4:\n \tfragment = new About();\n \targs.putInt(\"about\", position);\n default:\n \tDrawerTest.this.getActionBar().show();\n \tbreak;\n }\n //args.putInt(PlanetFragment.ARG_PLANET_NUMBER, position);\n fragment.setArguments(args);\n\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.content_frame, fragment).commit();\n\n // update selected item and title, then close the drawer\n mDrawerList.setItemChecked(position, true);\n setTitle(mPlanetTitles[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n }", "private void selectItem(int position) {\n if (position == 0) // search\n showSearchFragment(true);\n if (position == 1) // Заточка\n ;//showSearchFragment(true);\n if (position == 2) // Вещи ☆\n showStarItemDetails(1);\n if (position == 3) // Вещи ☆☆\n showStarItemDetails(2);\n if (position == 4) // Вещи ☆☆☆\n showStarItemDetails(3);\n if (position == 5) // pwcats.info\n intentPwcatsInfo();\n\n\n// mDrawerLeftLayout.setItemChecked(position, true);\n mDrawerLayout.closeDrawer(mDrawerLeftLayout);\n }", "@Override\n public void onClick(View view) {\n if(view.isSelected()){\n view.setSelected(false);\n selectedList.remove((Integer) getAdapterPosition());\n }\n else{\n view.setSelected(true);\n selectedList.add((Integer) getAdapterPosition());\n }\n\n //when a meta magic is selected we allow the modifications\n if(! (selectedList == null) && ! selectedList.isEmpty()){\n parent.findViewById(R.id.buttonDelete).setEnabled(true);\n\n //we allow modification only if there is one item selected\n if(selectedList.size() == 1)\n {\n parent.findViewById(R.id.buttonEdit).setEnabled(true);\n }\n else\n {\n parent.findViewById(R.id.buttonEdit).setEnabled(false);\n }\n\n }\n else{\n parent.findViewById(R.id.buttonDelete).setEnabled(false);\n parent.findViewById(R.id.buttonEdit).setEnabled(false);\n }\n\n }", "@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tchecklistIndex = arg2;\r\n\t\t\t\t\r\n\t\t\t}", "public void selectItem(int position, boolean value) {\n if (value) {\n mSelectedItems.put(position, value);\n notifyItemChanged(position);\n } else {\n mSelectedItems.delete(position);\n notifyItemChanged(position);\n }\n }", "private void selectItem(int position) {\n mDrawerLeftList.setItemChecked(position, true);\n setTitle(mPlanetTitles[position]);\n mDrawerLayout.closeDrawer(mDrawerLeftList);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tmMenuListView.setItemChecked(position, true);\n\t // setTitle(mMenuTitles[position]);\n mDrawerLayout.closeDrawer(mMenuListView);\n drawerlayout=0;\n selectItem(position);\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tAppInfo mApp = mApps.get(position);\n\t\t\t\tmApp.setSelected(!mApp.isSelected());\n\t\t\t\tmApps.set(position, mApp);\n\t\t\t\t\n\t\t\t\t// Let the adapter know you selected something\n\t\t\t\tmAdapter.notifyDataSetChanged();\n\t\t\t}", "public void select(Object obj, boolean selectionFlag);", "static public void select(DrawingPad drawingPad, SelectPanel selectPanel, Rectangle2D.Float fBounds, boolean oneItem) {\n // Current layer?\n boolean bCurrentLayer = selectPanel.isCurrentLayer();\n \n // Get the selected design.\n if (selectPanel.isSelectAllItems())\n drawingPad.getDesign().selectGraphs(RECTANLE_MAX, false, bCurrentLayer);\n else if (selectPanel.isSelectGraph())\n drawingPad.getDesign().selectGraphs(fBounds, oneItem, bCurrentLayer);\n else if (selectPanel.isSelectLine())\n drawingPad.getDesign().selectLines(fBounds, oneItem, bCurrentLayer);\n else if (selectPanel.isSelectPoint())\n drawingPad.getDesign().selectVertices(fBounds, oneItem, bCurrentLayer);\n else\n throw new IllegalArgumentException(\"Unknown select type.\");\n }", "public void setSelection( final CTabItem item ) {\n checkWidget();\n if( item == null ) {\n SWT.error( SWT.ERROR_NULL_ARGUMENT );\n }\n int index = itemHolder.indexOf( item );\n setSelection( index );\n }", "@Override\n public void onReselectItem(MeowBottomNavigation.Model item) {\n }", "public void onItemSelecting(AdapterView<?> parent, View view, int oldPosition, int newPosition);", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "public void select(int action) {\n\t\tselected = true;\n\t\tthis.action = action;\n\t}", "public boolean isSelected(T item) {\n return getElement().isSelected(SerDes.mirror(item));\n }", "@Test\n public void selectReplacesSelectionOnlyOnce() throws Exception {\n ArgumentCaptor<Set> itemsCaptor = ArgumentCaptor.forClass(Set.class);\n\n // WHEN\n listView.select(Lists.newArrayList(A));\n verify(listener, only()).onItemSelection(itemsCaptor.capture());\n\n // THEN\n Set<?> items = itemsCaptor.getValue();\n assertThat(items, allOf(hasSize(1), contains(A)));\n }", "@Override\n public void onClick(View view)\n {\n if(selectedStructure != null) //checks if object is selected and if prev object is same object\n {\n //if object is the same, then deselect the structure\n if (selectedStructure.equals(structureList.get(getAdapterPosition())))\n selected = false;\n else\n selected = true;\n }\n\n // if selected, get object otherwise let no object is selected\n if (selected)\n {\n selectedStructure = structureList.get(getAdapterPosition());\n }\n else\n {\n selectedStructure = null;\n }\n }", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "public void selectItem(int position) {\n drawerList.setItemChecked(position, true);\n if (this.drawerLayout.isDrawerOpen(this.drawerList)) {\n drawerLayout.closeDrawer(drawerList);\n }\n this.handleMenuItemClick(list.get(position).getMapOption());\n }", "public void setSelectedItem(ItemT item) {\n selectedItem = item;\n onSelectedItemChanged();\n }", "public void setSelected(boolean select) {\r\n isSelected = select;\r\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n item = parent.getItemAtPosition(position).toString();\n isSelected = true;\n\n // Showing selected spinner item\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v)\n {\n mySpinner.performClick();\n int getPosition = (Integer) v.getTag();\n\n toggleSelection(getPosition);\n\n\n notifyDataSetChanged();\n\n /**\n * if clicked position is one\n * that means you want clear all select item in list\n */\n /* if (getPosition == 1)\n {\n clearList();\n }\n */\n /**\n * if clicked position is two\n * that means you want select all item in list\n */\n /* else if (getPosition == 2)\n {\n fillList();\n }*/\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id)\n {\n }", "@Override\n public void itemClick(int pos) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View v, int position, long id)\n {\n }", "private void selectItem(int i) {\n Fragment fragment = null;\n switch(i)\n {\n case 0:\n fragment = new Panic();\n break;\n case 1:\n fragment = new Helpline();\n break;\n case 2:\n fragment = new TrustedContacts();\n break;\n\n }\n FragmentManager fm = getFragmentManager();\n //TODO: try this with add\n if(fragment!=null)\n fm.beginTransaction().replace(R.id.content_frame,fragment).commit();\n\n drawerLayout.closeDrawer(mListView);\n }", "@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}", "public void setSelection(TabItem[] items) {\n checkWidget();\n if (items == null)\n error(SWT.ERROR_NULL_ARGUMENT);\n if (items.length == 0) {\n setSelection(-1, false);\n } else {\n for (int i = items.length - 1; i >= 0; --i) {\n int index = indexOf(items[i]);\n if (index != -1)\n setSelection(index, false);\n }\n }\n }", "private void toggleSelectedAlgorithm(int index) {\n if (selected[index] == true) {\n selected[index] = false;\n } else {\n selected[index] = true;\n }\n }", "public void setSelected(boolean selected);", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "public void changeSelectAnio(int item){\n\t\tList<CrGeneralDTO> listAnioHRTemp = new ArrayList<CrGeneralDTO>();\n\t\t\n\t\tIterator<CrGeneralDTO> it3 = listAnioHR.iterator();\n\t\t\n\t\twhile (it3.hasNext()) {\n\t\t\tCrGeneralDTO obj = it3.next();\n\t\t\tif(obj.getId() == item) {\n\t\t\t\tobj.setSeleted(true);\n\t\t\t\tselectAnnioRecord = Integer.parseInt(obj.getDescripcion());\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tobj.setSeleted(false);\n\t\t\t}\n\t\t\t\n\t\t\tlistAnioHRTemp.add(obj);\n\t\t}\n\t\t\n\t\tlistAnioHR = new ArrayList<CrGeneralDTO>();\n\t\tlistAnioHR = listAnioHRTemp;\n\t\t\n\t\t//================ Cargar Lista Predios ==============\n\t\t\ttry {\n\t\t\t\tlistPrediosHR = cajaBo.obtenerPredios(this.referencia.getPersonaId(),selectAnnioRecord);\n\t\t\t\t\n\t\t\t\tIterator<CrGeneralDTO> it4 = listPrediosHR.iterator();\n\t\t\t\twhile (it3.hasNext()) {\n\t\t\t\t\tCrGeneralDTO obj = it4.next();\n\t\t\t\t\tobj.setSeleted(false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t//====================================================\n\t\t\n \t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (position != mClickTypeSelection) {\n setActionSpinner(true, position);\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n showModal(position);\n view.setSelected(true);\n }", "@Override\r\n\tpublic void itemSelectedAtIndexPath(IndexPath path) {\n\r\n\t}", "private void selectItem(int position)\n {\n Fragment fragment = null;\n Bundle args = new Bundle();\n\n switch (position)\n {\n case 0:\n fragment = new server_settings_Fragment();\n break;\n case 1:\n fragment = new client_settings_Fragment();\n args.putStringArray(\"netInfo\", getNetworkInformation(this));\n fragment.setArguments(args);\n break;\n }\n // update the main content by replacing fragments\n args.putInt(MENU_ITEM, position);\n fragment.setArguments(args);\n\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.container, fragment).commit();\n\n // update selected item and title, then close the drawer\n mDrawerList.setItemChecked(position, true);\n setTitle(mSettingTitles[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View paramView, int arg2, long arg3) {\n\t\t\t\tmItemListCurPosition = arg2;\n\t\t\t\tif (isFirstInit) {\n\t\t\t\t\tfocusView.initFocusView(paramView, false, 0);\n\t\t\t\t}\n\t\t\t\tfocusView.moveTo(paramView);\n\t\t\t\tif (mTextView != null) {\n\t\t\t\t\tmTextView.setTextColor(mContext.getResources().getColor(R.color.grey5_color));\n\t\t\t\t}\n\t\t\t\tif (mTextViewSetting != null) {\n\t\t\t\t\tmTextViewSetting.setTextColor(mContext.getResources().getColor(\n\t\t\t\t\t\t\tR.color.grey5_color));\n\t\t\t\t}\n\t\t\t\tmTextView = (TextView) paramView.findViewById(R.id.item_name);\n\t\t\t\tmTextViewSetting = (TextView) paramView.findViewById(R.id.item_setting);\n\t\t\t\tif (isFirstInit) {\n\t\t\t\t\tisFirstInit = false;\n\t\t\t\t\tmTextColorChangeFlag = true;\n\t\t\t\t\tlistTextColorSet();\n\t\t\t\t}\n\t\t\t}", "public void showSelection () {\n checkWidget();\n if( selectedIndex != -1 ) {\n showItem( getSelection() );\n }\n }", "private void selectItem(int position) {\n Fragment fragment = new MenuFragment();\n Bundle args = new Bundle();\n args.putInt(MenuFragment.ARG_MENU_NUMBER, position);\n fragment.setArguments(args);\n\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.content_frame, fragment).commit();\n\n // update selected item and title, then close the drawer\n mDrawerList.setItemChecked(position, true);\n setTitle(mMenuTitles[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position,\n long id) {\n\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n\n }", "private void selectItemInList(String item, Combo combo) {\n\t\tString[] items = combo.getItems();\n\t\tfor (int i = 0; i < items.length; i++) {\n\t\t\tif (items[i].equals(item)) {\n\t\t\t\tcombo.select(i);\n\t\t\t\tcombo.notifyListeners(SWT.Selection, null);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\tOptionsMenu.selectItem(item,getApplicationContext());\n\t\treturn super.onMenuItemSelected(featureId, item);\n\t}", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n\t\t}", "public void setSelectedItem(int selectedItem) {\n setSelectedItem(selectedItem, true);\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n ScheduleItem item = itemList.get(position);\n item.setSelected(!item.isSelected());\n view.setBackgroundColor(item.isSelected() ? Color.rgb(27, 179, 245) : Color.WHITE);\n\n\n button.setEnabled(false);\n button.setBackgroundColor(Color.LTGRAY);\n for(ScheduleItem scheduleItem: itemList){\n if(scheduleItem.isSelected()){\n button.setEnabled(true);\n button.setBackgroundColor(Color.BLUE);\n }\n }\n\n\n }", "public void selectItem(int position) {\n Log.d(\"Debug-\", \"Click on item\" + position);\n Intent intent = new Intent(DisplayActivity.this, DisplayActivity.class);\n intent.putExtra(\"airportCode\", position);\n mDrawerList.setItemChecked(position, true);\n mDrawerList.setSelection(position);\n //setTitle(mNavigationDrawerItemIDs[position]);\n mDrawerLayout.closeDrawer(drawerContainer);\n //To prevent endless previous activities of display and instead return directly to homeActivity\n finish();\n startActivity(intent);\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n choice=pos;\n }", "void toggleSelected(int selected) {\n switch (selected) {\n case 0:\n boolean expanded = (appBar.getHeight() - appBar.getBottom()) == 0;\n if (expanded)\n appBar.setExpanded(false, true);\n else {\n appBar.setExpanded(true, true);\n hideIngredients();\n hideSteps();\n }\n return;\n case 1:\n if (rv_ingredients.isShown()) {\n hideIngredients();\n } else {\n appBar.setExpanded(false, true);\n showIngredients();\n hideSteps();\n }\n return;\n case 2:\n if (rv_steps.isShown()) {\n hideSteps();\n } else {\n appBar.setExpanded(false, true);\n hideIngredients();\n showSteps();\n }\n return;\n default:\n return;\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n\tpublic void onItemSelected(AdapterView<?> parent, View view, int pos,\n\t\t\tlong id) {\n\t\t\n\t\t\n\t}", "public void select(int index) {\r\n\t\tindirect = true;\r\n\t\tcombo.select(index);\r\n\t\tindirect = false;\r\n\t}", "public void selectItem(int position) {\n\t\tmDrawerListView.setItemChecked(position, true);\n\t\tsetTitle(listView_items[position]);\n\n\t\tswitch (position) {\n\t\tcase 0:\n\t\t\tToast.makeText(this, \"All fields are cleared\", Toast.LENGTH_SHORT).show();\n\t\t\tthis.clearAllFields();\n\t\t\tpager.setCurrentItem(0);\n\t\t\tmDrawerLayout.closeDrawer(mDrawerListView);\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\t// Toast.makeText(this, \"Sorry, Will be implemented later\",\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\tpager.setCurrentItem(1);\n\t\t\tmDrawerLayout.closeDrawer(mDrawerListView);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tIntent intent = new Intent(this, ConsentForm.class);\n\t\t\tstartActivity(intent);\n\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tintent = new Intent(this, ParticipantInfo.class);\n\t\t\tstartActivity(intent);\n\t\t\t// mDrawerLayout.closeDrawer(mDrawerListView);\n\t\t\tbreak;\n\t\tcase 4:\n\n\t\t\tthis.runOnUiThread(new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tIntent intent3 = new Intent(MainActivity.this, SettingsPreferences.class);\n\t\t\t\t\tstartActivity(intent3);\n\t\t\t\t\t// mDrawerLayout.closeDrawer(mDrawerListView);\n\t\t\t\t}\n\n\t\t\t});\n\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tToast.makeText(this, \"This is Version \" + this.getString(R.string.version_name), Toast.LENGTH_SHORT).show();\n\t\t\tmDrawerLayout.closeDrawer(mDrawerListView);\n\t\t\tbreak;\n\t\tcase 6:\n\n\t\t\tintent = new Intent(this, HelpActivity.class);\n\t\t\tstartActivity(intent);\n\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\t// Intent intent = new Intent(Intent.ACTION_MAIN);\n\t\t\t// intent.addCategory(Intent.CATEGORY_HOME);\n\t\t\t// intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t// startActivity(intent);\n\t\t\t// mDrawerLayout.closeDrawer(mDrawerListView);\n\t\t\tthis.exitApplication();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tmDrawerLayout.closeDrawer(mDrawerListView);\n\t\t\tbreak;\n\n\t\t}\n\n\t}", "public void setAutoSelectEnabled(boolean selectsFirstItem) {\n \t\tthis.selectsFirstItem = selectsFirstItem;\n \t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n }", "@Override\r\n\tpublic void onMenuItemSelected(MenuItem item) {\n\r\n\t}", "@Override\n public void selectGolem(int id) {\n }", "@Override\n\tpublic void setSelected(boolean selected) {\n\t\t\n\t}", "public abstract boolean isSelected();", "public void update(){\n\t\tif(JudokaComponent.input.up) selectedItem --;\n\t\tif(JudokaComponent.input.down) selectedItem ++;\n\t\tif(selectedItem > items.length - 1) selectedItem = items.length - 1;\n\t\tif(selectedItem < 0) selectedItem = 0;\n\t\tif(JudokaComponent.input.enter){\n\t\t\tif(selectedItem == 0) JudokaComponent.changeMenu(JudokaComponent.CREATE_JUDOKA);\n\t\t\telse if(selectedItem == 1) JudokaComponent.changeMenu(JudokaComponent.SINGLEPLAYER);\n\t\t\telse if(selectedItem == 2) JudokaComponent.changeMenu(JudokaComponent.MULTIPLAYER);\n\t\t\telse if(selectedItem == 3) JudokaComponent.changeMenu(JudokaComponent.ABOUT);\n\t\t\telse if(selectedItem == 4) JudokaComponent.changeMenu(JudokaComponent.EXIT);\n\t\t}\n\t}", "private void selectItem(int position) {\n if (position == 0) {\n //joj\n Toast.makeText(this, \" clicked on planner \", Toast.LENGTH_SHORT).show();\n //Call the method, actions to take place when clicked on planner\n }\n //add code if clicked on Recipes\n else if (position == 1) {\n Toast.makeText(this, \"clicked on recipes\", Toast.LENGTH_SHORT).show();\n //Call the method, actions to take place when clicked on recipes\n Intent intent = new Intent(FrontPage.this, Recipepage.class);\n startActivity(intent);\n\n } else if (position == 2) {\n\n Toast.makeText(this, \"clicked on Grocery\", Toast.LENGTH_SHORT).show();\n //Call the method, actions to take place when clicked on grocery\n } else if (position == 3)\n\n {\n Toast.makeText(this, \"clicked on groups\", Toast.LENGTH_SHORT).show();\n\n }\n\n\n }", "public native static MenuItemToggle create(MenuItem item);", "public void setSelection (TabItem [] items) {\r\n\tcheckWidget();\r\n\tif (items == null) error (SWT.ERROR_NULL_ARGUMENT);\r\n\tif (items.length == 0) {\r\n\t\tsetSelection (-1);\r\n\t\treturn;\r\n\t}\r\n\tfor (int i=items.length-1; i>=0; --i) {\r\n\t\tint index = indexOf (items [i]);\r\n\t\tif (index != -1) setSelection (index);\r\n\t}\r\n}", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t}", "public void itemStateChanged(ItemEvent ie) {\n JCheckBox check = (JCheckBox)ie.getSource();\n cb_selection = check.getText(); \n }" ]
[ "0.72950274", "0.6761945", "0.6656316", "0.65800995", "0.64716476", "0.6343983", "0.63208914", "0.6293236", "0.628162", "0.6273126", "0.62367076", "0.62315", "0.6183099", "0.6175054", "0.6173709", "0.61555564", "0.6092237", "0.6075937", "0.6069914", "0.6028577", "0.6025407", "0.6017539", "0.60010165", "0.599766", "0.5974195", "0.5968417", "0.5956193", "0.5948323", "0.59430486", "0.5940161", "0.59300196", "0.5913942", "0.59065413", "0.58884573", "0.5883352", "0.58751506", "0.58722913", "0.58670145", "0.5866951", "0.5866951", "0.58624333", "0.58617467", "0.5857116", "0.5853887", "0.5848323", "0.5848323", "0.58453107", "0.5837347", "0.58312154", "0.581246", "0.581246", "0.58070195", "0.58049655", "0.5804318", "0.5797947", "0.5796515", "0.57912767", "0.57893485", "0.57862455", "0.57831573", "0.5772228", "0.57649994", "0.5763855", "0.57622355", "0.5761497", "0.57453525", "0.57393605", "0.5728974", "0.57230055", "0.5722997", "0.5715814", "0.56962126", "0.56914556", "0.5682133", "0.567499", "0.56731164", "0.56716824", "0.5671175", "0.56674755", "0.56659126", "0.56642437", "0.56562996", "0.5655315", "0.5655315", "0.5655315", "0.5654125", "0.56433016", "0.56394994", "0.56305635", "0.56304073", "0.56277144", "0.5623163", "0.5623002", "0.5620487", "0.5619079", "0.56173366", "0.5612488", "0.5610394", "0.560419", "0.5601818" ]
0.71828103
1
!wca! selectIndex: (idx: number): void Selects the given index. When toggle is true, this will automatically deselect the item if already selected. idx: Index from items array to select
public void selectIndex(int idx) { getElement().selectIndex(idx); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selectItem(int index) {\n for (int i = 0; i < getWidgetCount(); i++) {\n Widget item = getWidget(i);\n\n if (item instanceof AbstractListItem) {\n ((AbstractListItem) item).setActive(i == index);\n }\n }\n }", "private void toggleSelectedAlgorithm(int index) {\n if (selected[index] == true) {\n selected[index] = false;\n } else {\n selected[index] = true;\n }\n }", "public void selectItem(int i) {\n checkIndex(i);\n selectedItem = i;\n }", "@Override\n public void onIndicatorSelected(int index) {\n setSelect(index);\n }", "public void select(int index) {\r\n\t\tindirect = true;\r\n\t\tcombo.select(index);\r\n\t\tindirect = false;\r\n\t}", "public void setSelection (int index) {\r\n\tcheckWidget();\r\n\tsetSelection (index, false);\r\n}", "public abstract boolean isIndexSelected(int i);", "void select(int index) throws InvalidValueException;", "private void selectChild(int index) {\n if (selectedIndex != index) {\n selectedIndex = -1;\n for (int i = 0; i < getChildCount(); i++) {\n getChildAt(i).setSelected(i == index);\n if (i == index) {\n selectedIndex = index;\n }\n }\n\n if (changeListener != null)\n changeListener.onItemSelect(this, selectedIndex);\n }\n }", "public void initSelectedItems(int position) {\n\n/* for(int i=0; i < itemsList.size(); i++){\n selectView(i, itemsList.get(i).isSelected());\n }*/\n }", "public void itemSelected(boolean selected);", "public void setSelection(int index) {\n checkWidget();\n int count = OS.SendMessage(handle, OS.TCM_GETITEMCOUNT, 0, 0);\n if (!(0 <= index && index < count))\n return;\n setSelection(index, false);\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tTextView selectedIndex = (TextView) v;\n\t\tlistView.setSelection(index.get(selectedIndex.getText()));\n\t}", "protected boolean selectItemAtIndex(GuiSubitemTestObject guiObj, int index) {\n\t\tString debugmsg = getClass().getName()+\".selectItemAtIndex(): \";\n\t\t\n\t\ttry {\n\t\t\tif(!scrollToIndex(guiObj, index)){\n\t\t\t\tLog.debug(debugmsg+\" can not scroll to index \"+index);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tString itemText = getListItem(guiObj, index);\n\t\t\tguiObj.click(Script.localAtText(itemText));\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "static int getIndexSelected() {\n return indexSelected;\n }", "private void setSelected(int index) {\n Feature feature = featureCollection.features().get(index);\n setFeatureSelectState(feature, true);\n refreshSource();\n }", "@Override\n public void onClick(View view) {\n if(view.isSelected()){\n view.setSelected(false);\n selectedList.remove((Integer) getAdapterPosition());\n }\n else{\n view.setSelected(true);\n selectedList.add((Integer) getAdapterPosition());\n }\n\n //when a meta magic is selected we allow the modifications\n if(! (selectedList == null) && ! selectedList.isEmpty()){\n parent.findViewById(R.id.buttonDelete).setEnabled(true);\n\n //we allow modification only if there is one item selected\n if(selectedList.size() == 1)\n {\n parent.findViewById(R.id.buttonEdit).setEnabled(true);\n }\n else\n {\n parent.findViewById(R.id.buttonEdit).setEnabled(false);\n }\n\n }\n else{\n parent.findViewById(R.id.buttonDelete).setEnabled(false);\n parent.findViewById(R.id.buttonEdit).setEnabled(false);\n }\n\n }", "private void setListSelection(int selectedIndex)\n {\n if (selectedIndex == -1)\n {\n list.clearSelection();\n }\n else\n {\n list.setSelectedIndex(selectedIndex);\n list.ensureIndexIsVisible(selectedIndex);\n }\n }", "public native void setSelectedIndex(int index);", "public void setSelection(int index) {\n/* 95 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void testSelectIndex() {\n showFrame(box);\n for (int i=0;i < MAX_ENTRIES;i += MAX_ENTRIES / 10) {\n selectedIndex = -1;\n tester.actionSelectIndex(box, i);\n assertEquals(\"Wrong index selected\", i, selectedIndex);\n }\n }", "static void setIndexSelected(int index) {\n if (index != -1) {\n if (index >= deviceDetails.size()) {\n throw new IllegalArgumentException(String.format(\n \"Index of device exceeds device count. Currently requesting %d, but only have%d\",\n index, deviceDetails.size()));\n }\n BluetoothConnection.setServerMac(deviceDetails.get(index).getMacAddress());\n } else {\n BluetoothConnection.setServerMac(null);\n }\n indexSelected = index;\n }", "@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tchecklistIndex = arg2;\r\n\t\t\t\t\r\n\t\t\t}", "private void selectItem(int position) {\n mDrawerList.setItemChecked(position, true);\n // setTitle(mPlanetTitles[position]);\n setTitle(getResources().getStringArray(R.array.planets_array)[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n // simpleTV.setText(position + \"\");\n\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n selectItem(position);\n }", "public void toggleItem(int index) {\n if (findExpandedItemIndex() == index) {\n shrinkItem(index);\n } else {\n expandedItem(index);\n }\n }", "public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }", "public void selectCt(Integer index) {\n\t\tlog.info(\"-----selectCt()-----\");\n\t\tlog.info(String.format(\"-----selected: %s\", selected.getCtTraKho().getCttrakhoThutu()));\n\t\t//int index = selected.getCtXuatKho().getCtxuatkhoThutu().intValue() - 1;\n\t\tTonKho tk = selected.getTonKho();\n\t\tCtTraKho ctx = selected.getCtTraKho();\n\t\tupdateItem = index;\n\t\ttonkhoMa = tk.getTonkhoMa().toString();\n\t\tlog.info(\"-----ton kho: \" + tonkho);\n\t\t\n\t\t//DecimalFormat df = new DecimalFormat(\"###.##\");\n\t\ttonkho = tk.getTonkhoTon();\n\t\tdmtMa = ctx.getDmthuocMaso().getDmthuocMa();\n\t\txuat = ctx.getCttrakhoSoluong();\n\t\t\n\t}", "void setSelectedIndexes(List<Integer> selectedIndexes);", "private void nextSelect() {\n\t\tif (selectionIndex + 1 > selections.size() - 1) {\n\t\t\tselectionIndex = 0;\n\t\t} else {\n\t\t\tselectionIndex++;\n\t\t}\n\t\tselected.setVisible(true);\n\t\tselected = selections.get(selectionIndex);\n\t\t\n\t}", "public void setSelection( final int index ) {\n checkWidget();\n if( index >= 0 && index <= itemHolder.size() - 1 ) {\n if( selectedIndex != index ) {\n int oldSelectionIndex = selectedIndex;\n selectedIndex = index;\n internalSelectedIndex = index;\n getItem( selectedIndex ).showing = false;\n Control control = getItem( selectedIndex ).getControl();\n // Adjust bounds of selected control and make it visible (if any)\n if( control != null && !control.isDisposed() ) {\n control.setBounds( getClientArea() );\n control.setVisible( true );\n }\n // Hide control of previous selection (if any)\n if( oldSelectionIndex >= 0 && oldSelectionIndex < getItemCount() ) {\n Control oldControl = getItem( oldSelectionIndex ).getControl();\n if( oldControl != null && !oldControl.isDisposed() ) {\n oldControl.setVisible( false );\n }\n }\n }\n showItem( getSelection() );\n }\n }", "public void setIndex(int index) { this.index = index; }", "public void onItemSelecting(AdapterView<?> parent, View view, int oldPosition, int newPosition);", "@Override\n public void onClick(View v)\n {\n mySpinner.performClick();\n int getPosition = (Integer) v.getTag();\n\n toggleSelection(getPosition);\n\n\n notifyDataSetChanged();\n\n /**\n * if clicked position is one\n * that means you want clear all select item in list\n */\n /* if (getPosition == 1)\n {\n clearList();\n }\n */\n /**\n * if clicked position is two\n * that means you want select all item in list\n */\n /* else if (getPosition == 2)\n {\n fillList();\n }*/\n }", "private void selectPosition(int i, View view) {\n if (i >= 0) {\n this.mAccessibilityMoving = false;\n List<TileQueryHelper.TileInfo> list = this.mTiles;\n int i2 = this.mEditIndex - 1;\n this.mEditIndex = i2;\n list.remove(i2);\n notifyItemRemoved(this.mEditIndex);\n if (i == this.mEditIndex) {\n i--;\n }\n move(this.mAccessibilityFromIndex, i, view);\n notifyDataSetChanged();\n }\n }", "@Kroll.method\n\tpublic void selectRow(int index)\n\t{\n\t\tscrollToIndex(index, null);\n\n\t\tfinal TableViewRowProxy row = getRowByIndex(index);\n\n\t\tif (row != null) {\n\t\t\tfinal TiTableView tableView = getTableView();\n\n\t\t\tif (tableView != null) {\n\t\t\t\tfinal Runnable action = () -> {\n\t\t\t\t\tfinal SelectionTracker tracker = tableView.getTracker();\n\t\t\t\t\tfinal TiUIView rowView = row.peekView();\n\t\t\t\t\tfinal boolean visible = rowView != null && rowView.getNativeView().isShown();\n\n\t\t\t\t\tif (!visible) {\n\t\t\t\t\t\tscrollToIndex(index, null);\n\t\t\t\t\t}\n\t\t\t\t\tif (tracker != null) {\n\t\t\t\t\t\ttracker.select(row);\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\t// This is a workaround for when `EDITING` mode is set, as it recreates the TableView.\n\t\t\t\t// We need to listen for when it has updated before testing visibility/scrolling.\n\t\t\t\tif (!tableView.getHasLaidOutChildren()) {\n\t\t\t\t\ttableView.addOnLayoutChangeListener(new View.OnLayoutChangeListener()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onLayoutChange(View view, int i, int i1, int i2, int i3, int i4, int i5, int i6,\n\t\t\t\t\t\t\t\t\t\t\t\t int i7)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taction.run();\n\t\t\t\t\t\t\ttableView.removeOnLayoutChangeListener(this);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\taction.run();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void selectItem(int position) {\n if(position==0){\n Intent myIntent= new Intent(this, ConnectActivity.class);\n startActivity(myIntent);}\n if(position==1){\n Intent myIntent= new Intent(this, ShowActivity.class);\n startActivity(myIntent);}\n if(position==2){\n Intent myIntent= new Intent(this, DiagnosisActivity.class);\n startActivity(myIntent);}\n if(position==3){\n Intent myIntent= new Intent(this, RemoteActivity.class);\n startActivity(myIntent);}\n if(position==4){\n Intent myIntent= new Intent(this, CommandActivity.class);\n startActivity(myIntent);}\n\n // update selected item and title, then close the drawer\n mDrawerList.setItemChecked(position, true);\n setTitle(mPlanetTitles[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n }", "@Override\r\n\t\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t\t\tif(e.getStateChange()==ItemEvent.SELECTED)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(e.getItem()==cb[0])index1=true;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[1])index2=true;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[2])index3=true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(e.getStateChange()==ItemEvent.DESELECTED)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(e.getItem()==cb[0])index1=false;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[1])index2=false;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[2])index3=false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "public void setSelectedIndex(int index)\r\n {\r\n this.scrollBy(index - avatarIndex);\r\n }", "public void selectByindex(By locator,int index) {\n\n\t\tWebElement element = findElementClickable(locator);\n\n try {\n\n Select select=new Select(element);\n select.selectByIndex(index);\n LOGGER.info(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Pass\");\n }catch(Exception e)\n {\n LOGGER.error(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Fail\");\n //e.printStackTrace();\n throw new NotFoundException(\"Exception \"+ e +\" thrown while selecting the value by index \"+index+\" using locator \"+locator);\n\t\n }\n\n\n }", "public void setSelected(boolean select) {\r\n isSelected = select;\r\n }", "public void selectView(int position, boolean value) {\n if (value)\n mSelectedItemsIds.put(position, value);\n else\n mSelectedItemsIds.delete(position);\n\n notifyDataSetChanged();\n }", "@Override\n public void onClick(DialogInterface dialog, int indexSelected,\n boolean isChecked) {\n widgets.get(indexSelected).setHidden(!isChecked);\n }", "public void extendSelection(int index) {\n/* 107 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n showModal(position);\n view.setSelected(true);\n }", "void onClick(int index);", "public void showSelection () {\n checkWidget();\n if( selectedIndex != -1 ) {\n showItem( getSelection() );\n }\n }", "public void selectItem(int position, boolean value) {\n if (value) {\n mSelectedItems.put(position, value);\n notifyItemChanged(position);\n } else {\n mSelectedItems.delete(position);\n notifyItemChanged(position);\n }\n }", "@Override\n public void onClick(View view)\n {\n if(selectedStructure != null) //checks if object is selected and if prev object is same object\n {\n //if object is the same, then deselect the structure\n if (selectedStructure.equals(structureList.get(getAdapterPosition())))\n selected = false;\n else\n selected = true;\n }\n\n // if selected, get object otherwise let no object is selected\n if (selected)\n {\n selectedStructure = structureList.get(getAdapterPosition());\n }\n else\n {\n selectedStructure = null;\n }\n }", "public void setSelected(boolean selected);", "private void selectItem(int position) {\n mDrawerLeftList.setItemChecked(position, true);\n setTitle(mPlanetTitles[position]);\n mDrawerLayout.closeDrawer(mDrawerLeftList);\n }", "@Override\n public void mouseReleased(MouseEvent e) {\n if (idx < 0) {\n return;\n }\n if (idx == getIdx(e)) {\n boolean b = gui.selected[idx];\n if (!gui.shiftPressed) {\n gui.deselect();\n if (b) {\n gui.select(idx);\n }\n }\n gui.toggle(idx);\n repaint();\n }\n }", "public void getSelected() {\n for (int i = 0; i < list.size(); i++) {\n if (selectColumn.getCellObservableValue(i).getValue().isSelected()) {\n selectedIngredients.add(i + 1);\n }\n }\n }", "public void selectWidget(Widget w) {\n if (w.isSelected()) return;\n w.select();\n doSelectedCount(w);\n toolBar.setEditButtons(selectedCnt, selectedGroupCnt);\n }", "private boolean itemSelect(boolean refresh, @MagicConstant(flags = {NEXT_DEFAULT, NEXT_REVERSED, NEXT_STOP_WHEN_END, NEXT_EVERY_ITEM}) int flags) {\n int index = samplesList.getSelectedIndex();\n int next = shipment.getNextIndex(index, flags);\n if (next < 0) return false;\n if (refresh) {\n refreshUI(UI_SAMPLE_INFO | UI_SELECTION, next);\n }\n return true;\n }", "public void setSelection(int molIndex) {}", "public void select(Object obj, boolean selectionFlag);", "public void toggleSelection(int location) {\n selectItem(location, !selectedItems.get(location));\n }", "private void toggleSelection(int position) {\n // Position may be special \"no position\" during certain\n // transitional phases. If so, skip handling of the event.\n if (position == RecyclerView.NO_POSITION) {\n if (DEBUG) Log.d(TAG, \"Ignoring toggle for element with no position.\");\n return;\n }\n String id = mAdapter.getModelId(position);\n if (id != null) {\n toggleSelection(id);\n }\n }", "protected boolean isSelected(int slotIndex)\n {\n return false;\n }", "protected boolean isSelected(int slotIndex)\n {\n return false;\n }", "protected boolean isSelected(int slotIndex)\n {\n return false;\n }", "public void toggleChosenState(int index) {\n\n for (int i = 0; i < cells.size(); i++) {\n if (cells.get(i) == CellState.Chosen) {\n cells.set(i, CellState.Tower);\n }\n }\n cells.set(index, CellState.Chosen);\n }", "public void setSelected(int index){\n\t\toptGroup.setSelected(index);\n\t\tsetText(optGroup.selectedText());\n\t}", "public abstract void select(boolean select);", "public ListSelectCommand(\n\t\t\t\tfinal String listView,\n\t\t\t\tfinal IndexingMode indexMode,\n\t\t\t\tfinal String indexPath,\n\t\t\t\tfinal boolean select) {\n\t\t\tsuper(\"\");\n\t\t\tfinal StringBuilder builder = new StringBuilder();\n\t\t\tbuilder.append(COMMAND_NAME);\n\t\t\tbuilder.append(listView);\n\t\t\tif (select) {\n\t\t\t\tbuilder.append(\" select \");\n\t\t\t} else {\n\t\t\t\tbuilder.append(\" unselect \");\n\t\t\t}\n\t\t\tbuilder.append(indexMode.asString());\n\t\t\tbuilder.append(' ');\n\t\t\tbuilder.append(indexPath);\n\t\t\tbuilder.append(\"\\r\\n\");\n\t\t\tthis._payload = builder.toString();\n\t\t}", "@Override\r\n\t\tpublic void onIndexSelect(String str) {\n\t\t\tsearch_contact_suoyin.setVisibility(View.VISIBLE);\r\n\t\t\tsearch_contact_suoyin.setText(str);\r\n\t\t\tfor(int i = 0; i < listItems.size(); i++){\r\n\t\t\t\tif(listItems.get(i).getSuoyin().equals(str)){\r\n\t\t\t\t\tsearch_contact_listview.setSelection(i);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "void toggleSelected(int selected) {\n switch (selected) {\n case 0:\n boolean expanded = (appBar.getHeight() - appBar.getBottom()) == 0;\n if (expanded)\n appBar.setExpanded(false, true);\n else {\n appBar.setExpanded(true, true);\n hideIngredients();\n hideSteps();\n }\n return;\n case 1:\n if (rv_ingredients.isShown()) {\n hideIngredients();\n } else {\n appBar.setExpanded(false, true);\n showIngredients();\n hideSteps();\n }\n return;\n case 2:\n if (rv_steps.isShown()) {\n hideSteps();\n } else {\n appBar.setExpanded(false, true);\n hideIngredients();\n showSteps();\n }\n return;\n default:\n return;\n }\n }", "@Override\n\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tprefs.edit().putInt(\"CHOOSE\",(int)choose.getSelectedItemId()).commit();\n\n\t\t\t\t\tif(choose.getSelectedItemId()==0)\n\t\t \t\t\tcontacts.setVisibility(View.GONE);\n\t\t\t\t\telse \n\t\t \t\t\tcontacts.setVisibility(View.VISIBLE);\n\t\t\t\t}", "public void selectItem(int position) {\n\t\tmDrawerListView.setItemChecked(position, true);\n\t\tsetTitle(listView_items[position]);\n\n\t\tswitch (position) {\n\t\tcase 0:\n\t\t\tToast.makeText(this, \"All fields are cleared\", Toast.LENGTH_SHORT).show();\n\t\t\tthis.clearAllFields();\n\t\t\tpager.setCurrentItem(0);\n\t\t\tmDrawerLayout.closeDrawer(mDrawerListView);\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\t// Toast.makeText(this, \"Sorry, Will be implemented later\",\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\tpager.setCurrentItem(1);\n\t\t\tmDrawerLayout.closeDrawer(mDrawerListView);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tIntent intent = new Intent(this, ConsentForm.class);\n\t\t\tstartActivity(intent);\n\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tintent = new Intent(this, ParticipantInfo.class);\n\t\t\tstartActivity(intent);\n\t\t\t// mDrawerLayout.closeDrawer(mDrawerListView);\n\t\t\tbreak;\n\t\tcase 4:\n\n\t\t\tthis.runOnUiThread(new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tIntent intent3 = new Intent(MainActivity.this, SettingsPreferences.class);\n\t\t\t\t\tstartActivity(intent3);\n\t\t\t\t\t// mDrawerLayout.closeDrawer(mDrawerListView);\n\t\t\t\t}\n\n\t\t\t});\n\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tToast.makeText(this, \"This is Version \" + this.getString(R.string.version_name), Toast.LENGTH_SHORT).show();\n\t\t\tmDrawerLayout.closeDrawer(mDrawerListView);\n\t\t\tbreak;\n\t\tcase 6:\n\n\t\t\tintent = new Intent(this, HelpActivity.class);\n\t\t\tstartActivity(intent);\n\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\t// Intent intent = new Intent(Intent.ACTION_MAIN);\n\t\t\t// intent.addCategory(Intent.CATEGORY_HOME);\n\t\t\t// intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t// startActivity(intent);\n\t\t\t// mDrawerLayout.closeDrawer(mDrawerListView);\n\t\t\tthis.exitApplication();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tmDrawerLayout.closeDrawer(mDrawerListView);\n\t\t\tbreak;\n\n\t\t}\n\n\t}", "public void selectWeaponFromInventory(int weaponIndex) {\n }", "private void selectItem(int position) {\n if (position == 0) // search\n showSearchFragment(true);\n if (position == 1) // Заточка\n ;//showSearchFragment(true);\n if (position == 2) // Вещи ☆\n showStarItemDetails(1);\n if (position == 3) // Вещи ☆☆\n showStarItemDetails(2);\n if (position == 4) // Вещи ☆☆☆\n showStarItemDetails(3);\n if (position == 5) // pwcats.info\n intentPwcatsInfo();\n\n\n// mDrawerLeftLayout.setItemChecked(position, true);\n mDrawerLayout.closeDrawer(mDrawerLeftLayout);\n }", "@Override\n public void onClick(View v) {\n filteredNewsgroupItems.get(fPosition).setSelected(((CheckBox)v).isChecked());\n }", "public void selectDropDownUsingIndex(WebElement ele, int index) {\n\t\tSelect dropdown=new Select(ele);\r\n\t\tdropdown.selectByIndex(index);\r\n\t}", "@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}", "public abstract void setIndex(int i, boolean b);", "@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }", "public void onItemStateChanged(String id, boolean selected);", "private void selectItem(int position) \n {\n \tFragment fragment = null;\n Bundle args = new Bundle();\n switch(position){\n \n case 0:\n \tDrawerTest.this.getActionBar().hide();\n \tfragment = new StaticViewer();\n args.putInt(\"static_viewer\", position);\n break;\n case 1:\n \tDrawerTest.this.getActionBar().hide();\n \tfragment = new DoctorPanel();\n args.putInt(\"doctor_panel\", position);\n break;\n case 2:\n \tDrawerTest.this.getActionBar().hide();\n \tfragment = new Panel();\n \targs.putInt(\"panel\", position);\n \tbreak;\n case 3:\n \tfragment = new Help();\n \targs.putInt(\"help\", position);\n case 4:\n \tfragment = new About();\n \targs.putInt(\"about\", position);\n default:\n \tDrawerTest.this.getActionBar().show();\n \tbreak;\n }\n //args.putInt(PlanetFragment.ARG_PLANET_NUMBER, position);\n fragment.setArguments(args);\n\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.content_frame, fragment).commit();\n\n // update selected item and title, then close the drawer\n mDrawerList.setItemChecked(position, true);\n setTitle(mPlanetTitles[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\tma.toggle(arg2);\n\t}", "public static void SelectByIndex(WebElement element,int n)\r\n\t{\r\n\t\tSelect sel= new Select(element);\r\n\t\tsel.selectByIndex(0);\r\n\t}", "public int getSelectionIndex() {\n checkWidget();\n return selectedIndex;\n }", "private void selection(int level, int item) {\n switch (level) {\n case 0:\n if (domaineSelectionne != null && item < tvComptes.getItems().size())\n tvComptes.getSelectionModel().select(item);\n break;\n case 1:\n if (donneesActives != null && item < lvDomaines.getItems().size())\n lvDomaines.getSelectionModel().select(item);\n break;\n }\n }", "@Override\n\t\tpublic void chooseItem(int index, View convertView) {\n\t\t\tgetDeliveryList(true, convertView);\n\t\t}", "void setSelectedItems(ValueType selectedItems);", "public void selectItem(int position) {\n Log.d(\"Debug-\", \"Click on item\" + position);\n Intent intent = new Intent(DisplayActivity.this, DisplayActivity.class);\n intent.putExtra(\"airportCode\", position);\n mDrawerList.setItemChecked(position, true);\n mDrawerList.setSelection(position);\n //setTitle(mNavigationDrawerItemIDs[position]);\n mDrawerLayout.closeDrawer(drawerContainer);\n //To prevent endless previous activities of display and instead return directly to homeActivity\n finish();\n startActivity(intent);\n }", "@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n stList.get(position).setSelected(isChecked);\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tadapter.setSelectedItem(which);\n\t\t\t\t\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t\t\t\t\t\tadapter.notifyDataSetInvalidated();\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tadapter.setSelectedItem(which);\n\t\t\t\t\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t\t\t\t\t\tadapter.notifyDataSetInvalidated();\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tadapter.setSelectedItem(which);\n\t\t\t\t\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t\t\t\t\t\tadapter.notifyDataSetInvalidated();\n\t\t\t\t\t\t\t}", "public static void selectByIndex(By element, int num)\n {\n new Select(driver.findElement(element)).selectByIndex(num);\n }", "private void pushSelection()\n {\n ArrayList<Integer> selectedIndices = new ArrayList<>();\n ArrayList<Signal> newSelected = new ArrayList<>();\n for(Signal s: selected)\n {\n int index = listed.indexOf(s);\n if(index >= 0)\n {\n selectedIndices.add(index);\n newSelected.add(s);\n }\n }\n selected.clear();\n selected.addAll(newSelected);\n int[] indices = new int[selectedIndices.size()];\n for(int i = 0; i < selectedIndices.size(); i++)\n {\n indices[i] = selectedIndices.get(i);\n }\n signalList.setSelectedIndices(indices);\n }", "int getSelectedClientIndex();", "B scrollToSelectedItem(boolean scrollToSelectedItem);", "public abstract boolean isSelected();", "public void deselectIndex(int idx) {\n getElement().deselectIndex(idx);\n }", "static void setNotSelected(){isSelected=false;}", "public void setItems(List<PickerItem> items, int selectedIndex) {\n setItems(items);\n selectChild(selectedIndex);\n }", "protected void informAboutSelection(int selectedIndex, ItemType itemType) {\n\t\t//System.out.println(\"GeneralItemList.informAboutSelection()\"+selectedIndex);\n\t}", "@Override\n\tpublic void setSelected(boolean selected) {\n\t\t\n\t}" ]
[ "0.69756997", "0.6879376", "0.68008083", "0.67447937", "0.669706", "0.66241634", "0.65807015", "0.6550332", "0.6546669", "0.6380103", "0.6365721", "0.6342609", "0.6316803", "0.623077", "0.62036", "0.61582786", "0.6149867", "0.6071502", "0.6064767", "0.6060271", "0.6059558", "0.6050127", "0.60469055", "0.60248846", "0.59979504", "0.5983963", "0.59674335", "0.59579897", "0.5952379", "0.59359586", "0.59221184", "0.59141034", "0.5895311", "0.58831924", "0.58770245", "0.58678645", "0.58523154", "0.58469886", "0.5792242", "0.57852954", "0.5771686", "0.57438236", "0.5726627", "0.57167894", "0.5715728", "0.57117623", "0.56998473", "0.5685311", "0.56811035", "0.56716764", "0.56703323", "0.5667414", "0.5665473", "0.56582856", "0.56389123", "0.5637959", "0.56334555", "0.5630438", "0.56256974", "0.5624824", "0.5624824", "0.5624824", "0.56243175", "0.56155765", "0.56144094", "0.56080335", "0.5605899", "0.5602874", "0.56003183", "0.5582796", "0.5578853", "0.5575667", "0.55663663", "0.5563565", "0.5554254", "0.55473936", "0.5547276", "0.553767", "0.5529343", "0.55237585", "0.5521029", "0.5511894", "0.5508383", "0.5502882", "0.550258", "0.5501502", "0.54990727", "0.54957443", "0.54957443", "0.54957443", "0.5485423", "0.54780906", "0.5476002", "0.5464736", "0.5461276", "0.54611456", "0.5460369", "0.545547", "0.5451422", "0.5447779" ]
0.6663837
5
!wca! get items: array An array containing items from which selection will be made.
public List<T> getItems() { return SerDes.unmirrorList(getElement().getItems(), getItemClass()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String> getSelectedItems();", "void setSelectedItems(ValueType selectedItems);", "public void setSelection (TabItem [] items) {\r\n\tcheckWidget();\r\n\tif (items == null) error (SWT.ERROR_NULL_ARGUMENT);\r\n\tif (items.length == 0) {\r\n\t\tsetSelection (-1);\r\n\t\treturn;\r\n\t}\r\n\tfor (int i=items.length-1; i>=0; --i) {\r\n\t\tint index = indexOf (items [i]);\r\n\t\tif (index != -1) setSelection (index);\r\n\t}\r\n}", "public void setSelection(TabItem[] items) {\n checkWidget();\n if (items == null)\n error(SWT.ERROR_NULL_ARGUMENT);\n if (items.length == 0) {\n setSelection(-1, false);\n } else {\n for (int i = items.length - 1; i >= 0; --i) {\n int index = indexOf(items[i]);\n if (index != -1)\n setSelection(index, false);\n }\n }\n }", "@DISPID(1610743811) //= 0x60020003. The runtime will prefer the VTID if present\r\n @VTID(10)\r\n uic.prominent.ScreenLogging.wsh.FolderItems selectedItems();", "public static InstanceSelection select ( Instances data, int items[] ) {\n\t\t/*Instances data2 = new Instances ( data, 0 );\n\t\tInstances data3 = new Instances(data,0);\n\t\tInstances[] result = {data3, data2};*/\n\t\tInstanceSelection result = new InstanceSelection(data);\n\t\t\n\t\tboolean isCovered = false;\n\t\t\n\t\tfor ( int i = 0; i < data.numInstances (); ++i ) {\n\t\t\tisCovered = false;\n\t\t\tfor ( int j = 0; j < items.length; ++j ) {\n\t\t\t\tif ( data.instance ( i ).value ( items[j] ) == 0 ) {\n\t\t\t\t\tisCovered = false;\n\t\t\t\t\t// one item is missing, add immediately\n\t\t\t\t\t//result.add ( data.instance ( i ) );\n\t\t\t\t\tresult.addNotSelected(data.instance(i));\n\t\t\t\t\tresult.addIndicesNotSelected(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse {\n\t\t\t\t\tisCovered = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (isCovered) {\n\t\t\t\t//data3.add(data.instance(i));\n\t\t\t\tresult.addSelected(data.instance(i));\n\t\t\t\tresult.addIndicesSelected(i);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public void setItems(Item[] itemsIn)\n {\n items = itemsIn;\n }", "public void setItems(String items)\n {\n _items = items;\n }", "public void itemsSelected() {\n getEntitySelect().close();\n Collection<T> selectedValues = getEntitySelect().getResults().getSelectedValues();\n setReferencesToParentAndPersist((T[]) selectedValues.toArray());\n showAddSuccessful();\n }", "public void setItems(Item items) {\n this.items = items;\n }", "public void displaySelections() {\n List<VendingItem> listOfItems = service.getAllItemsNonZero(); //<-- uses lambda\n view.displaySelections(listOfItems);\n }", "static public TransformDesign selectItems(DrawingPad drawingPad) {\n if (drawingPad.getDesign().isSelectedItems() == false)\n return null;\n return drawingPad.getDesign().getSelectedItems();\n }", "public TabItem [] getSelection () {\r\n\tcheckWidget();\r\n\tint index = getSelectionIndex ();\r\n\tif (index == -1) return new TabItem [0];\r\n\treturn new TabItem [] {items [index]};\r\n}", "@NonNull\n public SparseBooleanArray getSelectedItems() {\n return selectedItems;\n }", "public void setItems(ItemList items) {\r\n this.items = items;\r\n }", "private void itemSelected(){\n \t//* count selected items\n \tint c=0;\n \tfor (int i = 0; i<jTable4.getRowCount(); i++){\n \t\tif((Boolean)jTable4.getModel().getValueAt(i, 0)){\n \t\t\tc++;\n \t\t}\n \t}\n \tif(c==0){\n \t\treturn; //* if no item selected then do nothing\n \t}\n \t\n \t//* get the new selected items\n \tString[][] tmp1=new String[c][2];\n \tfor (int i = 0, j=0; i<jTable4.getRowCount(); i++){\n \t\tif((Boolean)jTable4.getModel().getValueAt(i, 0)){\n \t\t\ttmp1[j]=new String[2];\n \t\t\ttmp1[j][0]=jTable4.getModel().getValueAt(i, 1).toString();\n \t\t\ttmp1[j++][1]=\"0\";\n \t\t}\n \t}\n \t\n \t//* get the previously selected items\n \tString[][] tmp2=new String[jTable3.getModel()==null? 0: jTable3.getModel().getRowCount()][9];\n \tfor (int i = 0; i<tmp2.length; i++){\n \t\ttmp2[i]=new String[9];\n \t\ttmp2[i][0]=jTable3.getModel().getValueAt(i, 1).toString();\n \t\ttmp2[i][1]=jTable3.getModel().getValueAt(i, 2).toString();\n \t\ttmp2[i][2]=jTable3.getModel().getValueAt(i, 3).toString();\n \t\ttmp2[i][3]=jTable3.getModel().getValueAt(i, 5).toString();\n \t\ttmp2[i][4]=jTable3.getModel().getValueAt(i, 7).toString();\n \t\ttmp2[i][5]=jTable3.getModel().getValueAt(i, 9).toString();\n \t\ttmp2[i][6]=jTable3.getModel().getValueAt(i, 11).toString();\n \t\ttmp2[i][7]=jTable3.getModel().getValueAt(i, 13).toString();\n \t\ttmp2[i][8]=jTable3.getModel().getValueAt(i, 15).toString();\n \t}\n \tfillPoDet(tmp2, tmp1); //* reconstruct PO table\n \tjTabbedPane1.setSelectedIndex(0);\n }", "int[] getSelection();", "public void setItems(List<PickerItem> items) {\n this.items = items;\n initViews();\n selectChild(-1);\n }", "public void setCompletionItems(List<CompletionItem> items) {\r\n this.textItemsProperty.setValue(FXCollections.observableArrayList(items));\r\n }", "public Item[] getItems()\n {\n return items;\n }", "void selected(Collection<AppUser> appUsers, String extraText);", "public void setSelectPresentationBackingList(java.util.Collection items, String valueProperty, String labelProperty);", "public void initSelectedItems(int position) {\n\n/* for(int i=0; i < itemsList.size(); i++){\n selectView(i, itemsList.get(i).isSelected());\n }*/\n }", "@Override\n public List<SpriteDefinition> getChosen () {\n return mySelected.getListView().getItems();\n }", "@NotNull\r\n @Contract(pure = true)\r\n public abstract Collection<GuiItem> getItems();", "public void setItems(){\n }", "public void setItems(nl.webservices.www.soap.GCRItem[] items) {\n this.items = items;\n }", "public interface ItemSelector<T> {\n\t/**\n * @return all of the items in the collection\n */\n\tpublic List<T> getItems();\n /**\n * @param set of items.<br/>\n * Set all of the items in the collection\n */\n\tpublic void setItems(List<T> items);\n /**\n * Choose the next item from the set collection.\n * @return the next item from the list (selected by the subclass).\n */\n\tpublic T getNextItem();\n}", "public void itemSelected(boolean selected);", "com.rpg.framework.database.Protocol.Item getItems(int index);", "void onItemSelected(int index, T item) throws RemoteException;", "@Override\r\n protected ObservableList<TreeItem> getSelectedItems() {\r\n return getSelectionModel().getSelectedItems();\r\n }", "private void setListAndResetSelection(JList list, List<String> items, java.util.List selection) {\n Map<String,Integer> str_to_i = new HashMap<String,Integer>();\n String as_str[] = new String[items.size()]; for (int i=0;i<as_str.length;i++) { as_str[i] = items.get(i); str_to_i.put(as_str[i], i); }\n list.setListData(as_str);\n if (selection.size() > 0) {\n List<Integer> ints = new ArrayList<Integer>(); \n // Find the indices for the previous settings\n for (int i=0;i<selection.size();i++)\n if (str_to_i.containsKey(selection.get(i))) \n\t ints.add(str_to_i.get(selection.get(i)));\n // Convert back to ints\n int as_ints[] = new int[ints.size()];\n for (int i=0;i<as_ints.length;i++) as_ints[i] = ints.get(i);\n list.setSelectedIndices(as_ints);\n }\n }", "private void selection(int level, int item) {\n switch (level) {\n case 0:\n if (domaineSelectionne != null && item < tvComptes.getItems().size())\n tvComptes.getSelectionModel().select(item);\n break;\n case 1:\n if (donneesActives != null && item < lvDomaines.getItems().size())\n lvDomaines.getSelectionModel().select(item);\n break;\n }\n }", "public TabItem[] getSelection() {\n checkWidget();\n int index = OS.SendMessage(handle, OS.TCM_GETCURSEL, 0, 0);\n if (index == -1)\n return new TabItem[0];\n return new TabItem[] { items[index] };\n }", "public Item[] getItems() {\n/* 3068 */ if (this.vitems != null) {\n/* 3069 */ return this.vitems.getAllItemsAsArray();\n/* */ }\n/* 3071 */ return emptyItems;\n/* */ }", "public void setItems(ArrayList<Item> items) {\n\t\tthis.items = items;\n\t}", "int getItems(int index);", "List<ToolsOutIn> selectAll();", "public Item getItems() {\n return items;\n }", "java.lang.String getQueryItems(int index);", "void showItemDialog(Task task, CharSequence items[]);", "public void testGetAllToDoItemsEmailContentWithSelectedItems()\n\t{\n\t\t// arrange\n\t\tUri listUri = helper.insertNewList(\"testlist\");\n\t\tint listId = Integer.parseInt(listUri.getPathSegments().get(1));\n\n\t\tUri categoryUri = helper.insertNewCategory(listId, \"dudus\", 1);\n\t\tint categoryId = Integer.parseInt(categoryUri.getPathSegments().get(1));\n\t\thelper.insertNewItem(categoryId, \"item1\", true, 0);\n\t\thelper.insertNewItem(categoryId, \"item2\", true, 1);\n\t\thelper.insertNewItem(categoryId, \"item3\", false, 2);\n\n\t\t// Act & Assert\n\t\tSpanned reportText = service.getAllToDoItemsEmailContent(null);\n\n\t\tassertEquals(33, reportText.length());\n\t}", "public void setItems(List<PickerItem> items, int selectedIndex) {\n setItems(items);\n selectChild(selectedIndex);\n }", "private static List<Item> getItems() {\n\t\treturn items;\n\t}", "@Override\n\tpublic void onSelectionChanged(ListSelectionEvent e, List<ShoppingListObject> values) {\n\n\t}", "public int[] getSelectionIDs()\n\t{\n\t\treturn getObject().getSelectionIDs();\n\t}", "public void select(T item) {\n getElement().select(SerDes.mirror(item));\n }", "public SelectItem[] getRowItems() {\n\t\tif (rowItems.length == 0) {\n\t\t\trowItems = new SelectItem[3];\n\t\t\trowItems[0] = new SelectItem(10);\n\t\t\trowItems[1] = new SelectItem(20);\n\t\t\trowItems[2] = new SelectItem(50);\n\t\t}\n\t\treturn rowItems;\n\t}", "public void setRandomItems(ArrayList<RandomItem> items);", "public native void selectCells(String... cellList) /*-{\r\n\t var self = [email protected]::getOrCreateJsObj()();\r\n\t self.selectCells(cellList);\r\n\t }-*/;", "boolean updateItems() {\n return updateItems(selectedIndex);\n }", "public ArrayList<String> getSelectedItems() {\n ArrayList<String> selectedType = new ArrayList<>();\n for (int i = 0; i < selectedItems.length; i++) {\n if (selectedItems[i]) {\n selectedType.add(dataList.get(i).getName());\n }\n }\n return selectedType;\n }", "public void onSelectedItems(Map<String,Integer> selectedMapPo) {\n\t\t\t\t\n\t\t\t}", "private void pushSelection()\n {\n ArrayList<Integer> selectedIndices = new ArrayList<>();\n ArrayList<Signal> newSelected = new ArrayList<>();\n for(Signal s: selected)\n {\n int index = listed.indexOf(s);\n if(index >= 0)\n {\n selectedIndices.add(index);\n newSelected.add(s);\n }\n }\n selected.clear();\n selected.addAll(newSelected);\n int[] indices = new int[selectedIndices.size()];\n for(int i = 0; i < selectedIndices.size(); i++)\n {\n indices[i] = selectedIndices.get(i);\n }\n signalList.setSelectedIndices(indices);\n }", "public T[] items();", "public void selectItem(int i) {\n checkIndex(i);\n selectedItem = i;\n }", "public returnRentedItems() {\n rents = RentingSystemRunner.DB.getRents(RentingSystemRunner.wc.C.getPersonID());\n initComponents();\n rents.stream().forEach((r) -> {\n this.rentedItemListSelection.addItem(new comboItem(r.getRentID(), r.getItem().getItemName() + \" \" + r.getItem().getItemModel()));\n });\n this.setVisible(true);\n }", "public List<PickerItem> getItems() {\n return items;\n }", "@Test\n public void selectReplacesSelectionOnlyOnce() throws Exception {\n ArgumentCaptor<Set> itemsCaptor = ArgumentCaptor.forClass(Set.class);\n\n // WHEN\n listView.select(Lists.newArrayList(A));\n verify(listener, only()).onItemSelection(itemsCaptor.capture());\n\n // THEN\n Set<?> items = itemsCaptor.getValue();\n assertThat(items, allOf(hasSize(1), contains(A)));\n }", "public void selectAllAccessibleSelection() {\n // To be fully implemented in a future release\n }", "public void select(List<Object> objs, boolean selectionFlag) throws Exception;", "void itemSelected(OutlineItem item);", "public SparseBooleanArray getSelectedIds() {\n return mSelectedItems;\n }", "java.util.List<com.rpg.framework.database.Protocol.Item> \n getItemsList();", "@Test\n public void seeingAttributesOfTheSelectedItemTest() {\n field = new Field();\n for (int i = 0; i < 1; i++) {\n for (int j = 0; j < 1; j++) {\n this.field.addCells(false, new Location(i, j));\n }\n }\n DarknessMagicBook dark = new DarknessMagicBook(\"HowToActColdAsSasuke\", 100, 1, 10);\n tactician1 = new Tactician(\"player1\", field, null);\n tactician1.setSelectedItem(dark);\n assertEquals(tactician1.getSelectedItem(),dark);\n assertEquals(tactician1.nameSelectedItem(), \"HowToActColdAsSasuke\");\n assertEquals(tactician1.powerSelectedItem(), 100);\n assertEquals(tactician1.minRangeSelectedItem(), 1);\n assertEquals(tactician1.maxRangeSelectedItem(), 10);\n }", "@Override\n public Set<T> getItems() {\n return items;\n }", "public void printItems();", "public String findSelected(JRadioButtonMenuItem items[]) {\n for (int i=0;i<items.length;i++) if (items[i].isSelected()) return items[i].getText();\n return items[0].getText();\n }", "public List<CharSequence> getSelectedEntries()\n {\n List<CharSequence> selectedEntries = new ArrayList<CharSequence>();\n CharSequence[] allEntries = getEntries();\n for( int i = 0; i < allEntries.length; i++ )\n {\n if( mCheckedStates[i] )\n selectedEntries.add( allEntries[i] );\n }\n return selectedEntries;\n }", "private void readItems() {\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n String selectedItems = \"\";\n for(Integer i : mSelectedItems){\n selectedItems += items[i] + \",\";\n Log.d(\"selectedIndex = \",items[i].toString());\n }\n\n recipeText.setText(selectedItems);\n //showToast(\"Selected index: \" + selectedIndex);\n\n }", "public void update(){\n\t\tif(JudokaComponent.input.up) selectedItem --;\n\t\tif(JudokaComponent.input.down) selectedItem ++;\n\t\tif(selectedItem > items.length - 1) selectedItem = items.length - 1;\n\t\tif(selectedItem < 0) selectedItem = 0;\n\t\tif(JudokaComponent.input.enter){\n\t\t\tif(selectedItem == 0) JudokaComponent.changeMenu(JudokaComponent.CREATE_JUDOKA);\n\t\t\telse if(selectedItem == 1) JudokaComponent.changeMenu(JudokaComponent.SINGLEPLAYER);\n\t\t\telse if(selectedItem == 2) JudokaComponent.changeMenu(JudokaComponent.MULTIPLAYER);\n\t\t\telse if(selectedItem == 3) JudokaComponent.changeMenu(JudokaComponent.ABOUT);\n\t\t\telse if(selectedItem == 4) JudokaComponent.changeMenu(JudokaComponent.EXIT);\n\t\t}\n\t}", "@Override\n public void onSelectionStateChange(List<Integer> selectedItems) {\n for (TabSelectionEditorMenuItem menuItem : mMenuItems.values()) {\n menuItem.onSelectionStateChange(selectedItems);\n }\n }", "private void chooseAddItemsToJcb() {\n if (animalFamilyType.contains(\"Terr\")) {\n addItemJcb(terAnimals);\n } else if (animalFamilyType.contains(\"Air\")) {\n addItemJcb(airAnimals);\n } else if (animalFamilyType.contains(\"Water\")) {\n addItemJcb(waterAnimals);\n }\n }", "public java.lang.Object[] getSelectPresentationValueList();", "public void testGetSelectedItemsCountWithItemsSelected()\n\t{\n\t\t// arrange\n\t\t// let's add a new list, category, and a few items to the new list\n\t\tUri listUri = helper.insertNewList(\"testlist\");\n\t\tint listId = Integer.parseInt(listUri.getPathSegments().get(1));\n\t\tassertEquals(2, listId);\n\n\t\tUri categoryUri = helper.insertNewCategory(listId, \"dudus\", 1);\n\t\tint categoryId = Integer.parseInt(categoryUri.getPathSegments().get(1));\n\t\thelper.insertNewItem(categoryId, \"item1\", false, 0);\n\t\thelper.insertNewItem(categoryId, \"item2\", false, 1);\n\t\thelper.insertNewItem(categoryId, \"item3\", true, 2);\n\t\thelper.insertNewItem(categoryId, \"item4\", false, 3);\n\t\thelper.insertNewItem(categoryId, \"item5\", true, 4);\n\t\thelper.insertNewItem(categoryId, \"item6\", false, 5);\n\n\t\t// Act & Assert\n\t\tint selectedItemsCount = service.getSelectedItemsCount();\n\t\tassertEquals(2, selectedItemsCount);\n\t}", "Items(){\n}", "public Items() {\n equipments = new ArrayList();\n\n SelectItemGroup first = new SelectItemGroup(\"braking\");\n SelectItemGroup second = new SelectItemGroup(\"equipment\");\n \n SelectItem[] array1 = {new SelectItem(\"abs\"), new SelectItem(\"esp\")}; \n SelectItem[] array2 = {new SelectItem(\"radio\"), new SelectItem(\"gps\"), new SelectItem(\"mobil set\")};\n \n first.setSelectItems(array1);\n second.setSelectItems(array2);\n \n equipments.add(first);\n equipments.add(second);\n }", "public void itemStateChanged(ItemEvent ie) {\n JCheckBox check = (JCheckBox)ie.getSource();\n cb_selection = check.getText(); \n }", "public Set<T> getSelectedItems() {\n return selectedEntities == null ? Collections.<T>emptySet() : selectedEntities;\n }", "public SparseBooleanArray getSelectedIds() {\n return mSelectedItemsIds;\n }", "public String getItems(String name){\n return \"\";\n }", "public List<Item> getItemList();", "private boolean itemSelect(boolean refresh, @MagicConstant(flags = {NEXT_DEFAULT, NEXT_REVERSED, NEXT_STOP_WHEN_END, NEXT_EVERY_ITEM}) int flags) {\n int index = samplesList.getSelectedIndex();\n int next = shipment.getNextIndex(index, flags);\n if (next < 0) return false;\n if (refresh) {\n refreshUI(UI_SAMPLE_INFO | UI_SELECTION, next);\n }\n return true;\n }", "public ArrayList<RandomItem> getRandomItems();", "public UserItem getUserItemByIds(UserItem ui);", "public void setItems(Object[] newItems)\n {\n items = new Vector(newItems.length);\n for (int i=0; i < newItems.length; i++)\n {\n items.addElement(newItems[i]);\n }\n }", "public void setSelected(JRadioButtonMenuItem items[], String str) {\n for (int i=0;i<items.length;i++) if (items[i].getText().equals(str)) items[i].setSelected(true);\n }", "List<UmsMenu> selectAll();", "public TabItem [] getItems () {\r\n\tcheckWidget();\r\n\tTabItem [] result = new TabItem [itemCount];\r\n\tSystem.arraycopy (items, 0, result, 0, result.length);\r\n\treturn result;\r\n}", "private void selectItemInList(String item, Combo combo) {\n\t\tString[] items = combo.getItems();\n\t\tfor (int i = 0; i < items.length; i++) {\n\t\t\tif (items[i].equals(item)) {\n\t\t\t\tcombo.select(i);\n\t\t\t\tcombo.notifyListeners(SWT.Selection, null);\n\t\t\t}\n\t\t}\n\t}", "private void getItems() {\n getComputers();\n getPrinters();\n }", "@Override\n public void setItems(List<ExplanationOrReadingItem> items) {\n progressDialog.dismiss();\n mlist.setAdapter(new ExplanationOrReadingAdapter(items));\n mlist.setOnItemClickListener(this);\n }", "public void selectionChanged(Action item);", "@Override\n public void setSelectedItems(List<VDS> value) {\n if (value != null && !value.equals(getSelectedItems())) {\n super.setSelectedItems(new ArrayList<VDS>(value));\n } else if (value != null && value.equals(getSelectedItems())) {\n // do nothing, nothing changed\n } else {\n super.setSelectedItems(value);\n }\n if (value == null || value.isEmpty() || value.size() > 1) {\n super.setSelectedItem(null);\n } else {\n super.setSelectedItem(value.get(0));\n }\n }", "Object getSelection();", "private void getItemListById() throws ClassNotFoundException, SQLException, IOException {\n itemCodeCombo.removeAllItems();\n ItemControllerByChule itemController = new ItemControllerByChule();\n ArrayList<Item> allItem = itemController.getAllItems();\n itemCodeCombo.addItem(\"\");\n for (Item item : allItem) {\n itemCodeCombo.addItem(item.getItemCode());\n }\n itemListById.setSearchableCombo(itemCodeCombo, true, null);\n }", "private void createItems()\n {\n Item belt, nappies, phone, money, cigarretes, \n jacket, cereal, shoes, keys, comics, bra, \n bread, bowl, computer;\n\n belt = new Item(2,\"Keeps something from falling\",\"Belt\");\n nappies = new Item(7,\"Holds the unspeakable\",\"Nappies\");\n phone = new Item(4, \"A electronic device that holds every answer\",\"Iphone 10\");\n money = new Item(1, \"A form of currency\",\"Money\");\n cigarretes = new Item(2,\"It's bad for health\",\"Cigarretes\");\n jacket = new Item(3,\"Keeps you warm and cozy\", \"Jacket\");\n cereal = new Item(3, \"What you eat for breakfast\",\"Kellog's Rice Kripsies\");\n shoes = new Item(5,\"Used for walking\", \"Sneakers\");\n keys = new Item(2, \"Unlock stuff\", \"Keys\");\n comics = new Item(2, \"A popular comic\",\"Batman Chronicles\");\n bra = new Item(3,\"What is this thing?, Eeeewww\", \"Bra\");\n bread = new Item(6,\"Your best source of carbohydrates\",\"Bread\");\n bowl = new Item(4,\"where food is placed\",\"Plate\");\n computer = new Item(10,\"A computational machine\",\"Computer\");\n\n items.add(belt);\n items.add(nappies);\n items.add(phone);\n items.add(money);\n items.add(cigarretes);\n items.add(jacket);\n items.add(cereal);\n items.add(shoes);\n items.add(keys);\n items.add(comics);\n items.add(bra);\n items.add(bread);\n items.add(bowl);\n items.add(computer);\n }", "private ArrayList<SimplifiedBusiness> buildSelectedItemsList() {\n Log.d(TAG, \"buildSelectedItemsList\");\n ArrayList<SimplifiedBusiness> selectedItems = new ArrayList<>(selectedIdsMap.size());\n\n for (int i=0; i<simplifiedBusinesses.size(); i++) {\n SimplifiedBusiness business = simplifiedBusinesses.get(i);\n if (selectedIdsMap.containsKey(business.getId())) {\n selectedItems.add(business);\n }\n }\n return selectedItems;\n }", "@Override\r\n\tpublic String[] getSelected() {\n\t\treturn null;\r\n\t}" ]
[ "0.74553066", "0.7058574", "0.69116557", "0.66556156", "0.658762", "0.6392249", "0.63914025", "0.6354405", "0.6262647", "0.6229273", "0.60798204", "0.60422325", "0.6001516", "0.5991678", "0.59604496", "0.5959543", "0.5950309", "0.5947203", "0.5945427", "0.5923189", "0.5923028", "0.58747864", "0.5874268", "0.58564335", "0.58502764", "0.58348984", "0.58288425", "0.5791536", "0.57912314", "0.5790617", "0.57800347", "0.5756957", "0.5751289", "0.57030344", "0.56686354", "0.5666921", "0.5665206", "0.5662804", "0.56555194", "0.56286675", "0.55999076", "0.5596093", "0.55821925", "0.55651844", "0.55626786", "0.5554923", "0.55404246", "0.553034", "0.5522137", "0.55147797", "0.5511512", "0.5499287", "0.5496356", "0.54723424", "0.5468295", "0.54651165", "0.5460173", "0.545426", "0.54454327", "0.5429625", "0.542889", "0.5416371", "0.54151917", "0.5398752", "0.5393729", "0.539344", "0.5392898", "0.5388028", "0.5387721", "0.5383191", "0.5382764", "0.53808373", "0.53778255", "0.53765357", "0.53685415", "0.53680253", "0.5359648", "0.5357072", "0.5347593", "0.5327294", "0.53212243", "0.5309981", "0.530488", "0.52937406", "0.5293349", "0.52904356", "0.5288913", "0.52836823", "0.5279263", "0.52784705", "0.5276589", "0.5270066", "0.5258371", "0.52555203", "0.52513826", "0.52482456", "0.5247301", "0.52463466", "0.5245591", "0.52436274", "0.52388024" ]
0.0
-1
!wca! set items: array An array containing items from which selection will be made.
public void setItems(List<T> value) { getElement().setItems(SerDes.mirror(value).cast()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSelection (TabItem [] items) {\r\n\tcheckWidget();\r\n\tif (items == null) error (SWT.ERROR_NULL_ARGUMENT);\r\n\tif (items.length == 0) {\r\n\t\tsetSelection (-1);\r\n\t\treturn;\r\n\t}\r\n\tfor (int i=items.length-1; i>=0; --i) {\r\n\t\tint index = indexOf (items [i]);\r\n\t\tif (index != -1) setSelection (index);\r\n\t}\r\n}", "public void setSelection(TabItem[] items) {\n checkWidget();\n if (items == null)\n error(SWT.ERROR_NULL_ARGUMENT);\n if (items.length == 0) {\n setSelection(-1, false);\n } else {\n for (int i = items.length - 1; i >= 0; --i) {\n int index = indexOf(items[i]);\n if (index != -1)\n setSelection(index, false);\n }\n }\n }", "void setSelectedItems(ValueType selectedItems);", "public void setItems(Item[] itemsIn)\n {\n items = itemsIn;\n }", "public void setItems(Item items) {\n this.items = items;\n }", "public void setItems(List<PickerItem> items) {\n this.items = items;\n initViews();\n selectChild(-1);\n }", "List<String> getSelectedItems();", "public void setItems(String items)\n {\n _items = items;\n }", "private void setListAndResetSelection(JList list, List<String> items, java.util.List selection) {\n Map<String,Integer> str_to_i = new HashMap<String,Integer>();\n String as_str[] = new String[items.size()]; for (int i=0;i<as_str.length;i++) { as_str[i] = items.get(i); str_to_i.put(as_str[i], i); }\n list.setListData(as_str);\n if (selection.size() > 0) {\n List<Integer> ints = new ArrayList<Integer>(); \n // Find the indices for the previous settings\n for (int i=0;i<selection.size();i++)\n if (str_to_i.containsKey(selection.get(i))) \n\t ints.add(str_to_i.get(selection.get(i)));\n // Convert back to ints\n int as_ints[] = new int[ints.size()];\n for (int i=0;i<as_ints.length;i++) as_ints[i] = ints.get(i);\n list.setSelectedIndices(as_ints);\n }\n }", "public void setCompletionItems(List<CompletionItem> items) {\r\n this.textItemsProperty.setValue(FXCollections.observableArrayList(items));\r\n }", "public void itemsSelected() {\n getEntitySelect().close();\n Collection<T> selectedValues = getEntitySelect().getResults().getSelectedValues();\n setReferencesToParentAndPersist((T[]) selectedValues.toArray());\n showAddSuccessful();\n }", "public static InstanceSelection select ( Instances data, int items[] ) {\n\t\t/*Instances data2 = new Instances ( data, 0 );\n\t\tInstances data3 = new Instances(data,0);\n\t\tInstances[] result = {data3, data2};*/\n\t\tInstanceSelection result = new InstanceSelection(data);\n\t\t\n\t\tboolean isCovered = false;\n\t\t\n\t\tfor ( int i = 0; i < data.numInstances (); ++i ) {\n\t\t\tisCovered = false;\n\t\t\tfor ( int j = 0; j < items.length; ++j ) {\n\t\t\t\tif ( data.instance ( i ).value ( items[j] ) == 0 ) {\n\t\t\t\t\tisCovered = false;\n\t\t\t\t\t// one item is missing, add immediately\n\t\t\t\t\t//result.add ( data.instance ( i ) );\n\t\t\t\t\tresult.addNotSelected(data.instance(i));\n\t\t\t\t\tresult.addIndicesNotSelected(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse {\n\t\t\t\t\tisCovered = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (isCovered) {\n\t\t\t\t//data3.add(data.instance(i));\n\t\t\t\tresult.addSelected(data.instance(i));\n\t\t\t\tresult.addIndicesSelected(i);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public void setItems(nl.webservices.www.soap.GCRItem[] items) {\n this.items = items;\n }", "public void setItems(ItemList items) {\r\n this.items = items;\r\n }", "public void setItems(List<PickerItem> items, int selectedIndex) {\n setItems(items);\n selectChild(selectedIndex);\n }", "private void setItems(Set<T> items) {\n Assertion.isNotNull(items, \"items is required\");\n this.items = items;\n }", "private void itemSelected(){\n \t//* count selected items\n \tint c=0;\n \tfor (int i = 0; i<jTable4.getRowCount(); i++){\n \t\tif((Boolean)jTable4.getModel().getValueAt(i, 0)){\n \t\t\tc++;\n \t\t}\n \t}\n \tif(c==0){\n \t\treturn; //* if no item selected then do nothing\n \t}\n \t\n \t//* get the new selected items\n \tString[][] tmp1=new String[c][2];\n \tfor (int i = 0, j=0; i<jTable4.getRowCount(); i++){\n \t\tif((Boolean)jTable4.getModel().getValueAt(i, 0)){\n \t\t\ttmp1[j]=new String[2];\n \t\t\ttmp1[j][0]=jTable4.getModel().getValueAt(i, 1).toString();\n \t\t\ttmp1[j++][1]=\"0\";\n \t\t}\n \t}\n \t\n \t//* get the previously selected items\n \tString[][] tmp2=new String[jTable3.getModel()==null? 0: jTable3.getModel().getRowCount()][9];\n \tfor (int i = 0; i<tmp2.length; i++){\n \t\ttmp2[i]=new String[9];\n \t\ttmp2[i][0]=jTable3.getModel().getValueAt(i, 1).toString();\n \t\ttmp2[i][1]=jTable3.getModel().getValueAt(i, 2).toString();\n \t\ttmp2[i][2]=jTable3.getModel().getValueAt(i, 3).toString();\n \t\ttmp2[i][3]=jTable3.getModel().getValueAt(i, 5).toString();\n \t\ttmp2[i][4]=jTable3.getModel().getValueAt(i, 7).toString();\n \t\ttmp2[i][5]=jTable3.getModel().getValueAt(i, 9).toString();\n \t\ttmp2[i][6]=jTable3.getModel().getValueAt(i, 11).toString();\n \t\ttmp2[i][7]=jTable3.getModel().getValueAt(i, 13).toString();\n \t\ttmp2[i][8]=jTable3.getModel().getValueAt(i, 15).toString();\n \t}\n \tfillPoDet(tmp2, tmp1); //* reconstruct PO table\n \tjTabbedPane1.setSelectedIndex(0);\n }", "public void setItems(ArrayList<Item> items) {\n\t\tthis.items = items;\n\t}", "public void setItems(){\n }", "public void initSelectedItems(int position) {\n\n/* for(int i=0; i < itemsList.size(); i++){\n selectView(i, itemsList.get(i).isSelected());\n }*/\n }", "public void setSelectPresentationBackingList(java.util.Collection items, String valueProperty, String labelProperty);", "public void setRandomItems(ArrayList<RandomItem> items);", "public void setSelected(JRadioButtonMenuItem items[], String str) {\n for (int i=0;i<items.length;i++) if (items[i].getText().equals(str)) items[i].setSelected(true);\n }", "public void set(List<Item> items) {\n if (mUseIdDistributor) {\n IdDistributor.checkIds(items);\n }\n\n //first collapse all items\n getFastAdapter().collapse();\n\n //get sizes\n int newItemsCount = items.size();\n int previousItemsCount = mItems.size();\n int itemsBeforeThisAdapter = getFastAdapter().getItemCount(getOrder());\n\n //make sure the new items list is not a reference of the already mItems list\n if (items != mItems) {\n //remove all previous items\n if (!mItems.isEmpty()) {\n mItems.clear();\n }\n\n //add all new items to the list\n mItems.addAll(items);\n }\n\n //map the types\n mapPossibleTypes(items);\n\n //now properly notify the adapter about the changes\n if (newItemsCount > previousItemsCount) {\n if (previousItemsCount > 0) {\n getFastAdapter().notifyAdapterItemRangeChanged(itemsBeforeThisAdapter, previousItemsCount);\n }\n getFastAdapter().notifyAdapterItemRangeInserted(itemsBeforeThisAdapter + previousItemsCount, newItemsCount - previousItemsCount);\n } else if (newItemsCount > 0 && newItemsCount < previousItemsCount) {\n getFastAdapter().notifyAdapterItemRangeChanged(itemsBeforeThisAdapter, newItemsCount);\n getFastAdapter().notifyAdapterItemRangeRemoved(itemsBeforeThisAdapter + newItemsCount, previousItemsCount - newItemsCount);\n } else if (newItemsCount == 0) {\n getFastAdapter().notifyAdapterItemRangeRemoved(itemsBeforeThisAdapter, previousItemsCount);\n } else {\n getFastAdapter().notifyAdapterDataSetChanged();\n }\n }", "private void selection(int level, int item) {\n switch (level) {\n case 0:\n if (domaineSelectionne != null && item < tvComptes.getItems().size())\n tvComptes.getSelectionModel().select(item);\n break;\n case 1:\n if (donneesActives != null && item < lvDomaines.getItems().size())\n lvDomaines.getSelectionModel().select(item);\n break;\n }\n }", "public void setItems(Object[] newItems)\n {\n items = new Vector(newItems.length);\n for (int i=0; i < newItems.length; i++)\n {\n items.addElement(newItems[i]);\n }\n }", "public void selectItem(int i) {\n checkIndex(i);\n selectedItem = i;\n }", "public void select(T item) {\n getElement().select(SerDes.mirror(item));\n }", "@Test\n public void selectReplacesSelectionOnlyOnce() throws Exception {\n ArgumentCaptor<Set> itemsCaptor = ArgumentCaptor.forClass(Set.class);\n\n // WHEN\n listView.select(Lists.newArrayList(A));\n verify(listener, only()).onItemSelection(itemsCaptor.capture());\n\n // THEN\n Set<?> items = itemsCaptor.getValue();\n assertThat(items, allOf(hasSize(1), contains(A)));\n }", "public void itemSelected(boolean selected);", "@DISPID(1610743811) //= 0x60020003. The runtime will prefer the VTID if present\r\n @VTID(10)\r\n uic.prominent.ScreenLogging.wsh.FolderItems selectedItems();", "private void pushSelection()\n {\n ArrayList<Integer> selectedIndices = new ArrayList<>();\n ArrayList<Signal> newSelected = new ArrayList<>();\n for(Signal s: selected)\n {\n int index = listed.indexOf(s);\n if(index >= 0)\n {\n selectedIndices.add(index);\n newSelected.add(s);\n }\n }\n selected.clear();\n selected.addAll(newSelected);\n int[] indices = new int[selectedIndices.size()];\n for(int i = 0; i < selectedIndices.size(); i++)\n {\n indices[i] = selectedIndices.get(i);\n }\n signalList.setSelectedIndices(indices);\n }", "public IndexedSetView(final Collection<T> items) {\n\t\tthis(items, Random.class);\n\t}", "@Override\n public void setSelectedItems(List<VDS> value) {\n if (value != null && !value.equals(getSelectedItems())) {\n super.setSelectedItems(new ArrayList<VDS>(value));\n } else if (value != null && value.equals(getSelectedItems())) {\n // do nothing, nothing changed\n } else {\n super.setSelectedItems(value);\n }\n if (value == null || value.isEmpty() || value.size() > 1) {\n super.setSelectedItem(null);\n } else {\n super.setSelectedItem(value.get(0));\n }\n }", "@Override\n public void setItems(List<ExplanationOrReadingItem> items) {\n progressDialog.dismiss();\n mlist.setAdapter(new ExplanationOrReadingAdapter(items));\n mlist.setOnItemClickListener(this);\n }", "protected static <T> Set<T> itemSet(T[] items) {\n return new HashSet<>(Arrays.asList(items));\n }", "public void setItems(List<T> items) {\n log.debug(\"set items called\");\n synchronized (listsLock){\n filteredList = new ArrayList<T>(items);\n originalList = null;\n updateFilteringAndSorting();\n }\n }", "@Override\r\n @Test\r\n @ConditionalIgnore(condition = IgnoreTreeUncontained.class)\r\n public void testSelectedOnSetItemsWithoutUncontained() {\r\n TreeItem uncontained = createItem(\"uncontained\");\r\n // prepare state\r\n getSelectionModel().select(uncontained);\r\n assertEquals(\"sanity: having uncontained selectedItem\", uncontained, getSelectedItem());\r\n assertEquals(\"sanity: no selected index\", -1, getSelectedIndex());\r\n // make uncontained part of the items by replacing old items\r\n ObservableList copy = FXCollections.observableArrayList(items);\r\n int insertIndex = 3;\r\n copy.add(insertIndex, createItem(\"anything\"));\r\n setAllItems(copy);\r\n assertEquals(\"sanity: selectedItem unchanged\", uncontained, getSelectedItem());\r\n assertEquals(\"selectedIndex unchanged\", -1, getSelectedIndex());\r\n }", "public void setList(String[][] items, int startIndex) {\n\t\tunselectCurrentRow();\n\n\t\t/* Insert items in rows. */\n\t\tif (startIndex + numberOfDataRows < items.length) {\n\t\t\tnumberOfUsedDataRows = numberOfDataRows;\n\t\t} else {\n\t\t\tnumberOfUsedDataRows = items.length - startIndex;\n\t\t}\n\n\t\tint row = 1;\n\n\t\tfor (int i = startIndex; i < (startIndex + numberOfUsedDataRows); i++) {\n\t\t\tfor (int j = 0; j < columnNames.length; j++) {\n\t\t\t\tgrid.setText(row, j, items[i][j]);\n\t\t\t}\n\t\t\trow++;\n\t\t}\n\n\t\t/* Clear rest of rows. */\n\t\tfor (int i = row; i <= numberOfDataRows; i++) {\n\t\t\tfor (int j = 0; j < columnNames.length; j++) {\n\t\t\t\tgrid.clearCell(i, j);\n\t\t\t}\n\t\t}\n\n\t\t/* Select first row and generate event. */\n\t\tif (numberOfUsedDataRows > 0) {\n\t\t\tselectRow(1);\n\t\t\tonCellClicked(null, 1, 0);\n\t\t}\n\n\t}", "@Override\r\n @Test\r\n @ConditionalIgnore(condition = IgnoreTreeUncontained.class)\r\n public void testSelectedOnSetItemsWithUncontained() {\r\n TreeItem uncontained = createItem(\"uncontained\");\r\n // prepare state\r\n getSelectionModel().select(uncontained);\r\n assertEquals(\"sanity: having uncontained selectedItem\", uncontained, getSelectedItem());\r\n assertEquals(\"sanity: no selected index\", -1, getSelectedIndex());\r\n // make uncontained part of the items by replacing old items\r\n ObservableList copy = FXCollections.observableArrayList(items);\r\n int insertIndex = 3;\r\n copy.add(insertIndex, uncontained);\r\n setAllItems(copy);\r\n assertEquals(\"sanity: selectedItem unchanged\", uncontained, getSelectedItem());\r\n assertEquals(\"selectedIndex updated\", insertIndex, getSelectedIndex());\r\n }", "public ChoiceDialog setSingleChoiceItems(CharSequence[] items,\n int checkedItem) {\n mItems = items;\n mCheckedItem = checkedItem;\n mIsSingleChoice = true;\n return this;\n }", "void setSelectedIndexes(List<Integer> selectedIndexes);", "public void setSelections(Set<Filterable> selections);", "public void setNewList(List<Item> items) {\n if (mUseIdDistributor) {\n IdDistributor.checkIds(items);\n }\n mItems = new ArrayList<>(items);\n mapPossibleTypes(mItems);\n getFastAdapter().notifyAdapterDataSetChanged();\n }", "@Override\n public void onSelectionStateChange(List<Integer> selectedItems) {\n for (TabSelectionEditorMenuItem menuItem : mMenuItems.values()) {\n menuItem.onSelectionStateChange(selectedItems);\n }\n }", "void selected(Collection<AppUser> appUsers, String extraText);", "public interface ItemSelector<T> {\n\t/**\n * @return all of the items in the collection\n */\n\tpublic List<T> getItems();\n /**\n * @param set of items.<br/>\n * Set all of the items in the collection\n */\n\tpublic void setItems(List<T> items);\n /**\n * Choose the next item from the set collection.\n * @return the next item from the list (selected by the subclass).\n */\n\tpublic T getNextItem();\n}", "void itemSelected(OutlineItem item);", "public void displaySelections() {\n List<VendingItem> listOfItems = service.getAllItemsNonZero(); //<-- uses lambda\n view.displaySelections(listOfItems);\n }", "public native void selectCells(String... cellList) /*-{\r\n\t var self = [email protected]::getOrCreateJsObj()();\r\n\t self.selectCells(cellList);\r\n\t }-*/;", "public void setSelection( final CTabItem item ) {\n checkWidget();\n if( item == null ) {\n SWT.error( SWT.ERROR_NULL_ARGUMENT );\n }\n int index = itemHolder.indexOf( item );\n setSelection( index );\n }", "private void selectItemInList(String item, Combo combo) {\n\t\tString[] items = combo.getItems();\n\t\tfor (int i = 0; i < items.length; i++) {\n\t\t\tif (items[i].equals(item)) {\n\t\t\t\tcombo.select(i);\n\t\t\t\tcombo.notifyListeners(SWT.Selection, null);\n\t\t\t}\n\t\t}\n\t}", "@NonNull\n public SparseBooleanArray getSelectedItems() {\n return selectedItems;\n }", "void onItemSelected(int index, T item) throws RemoteException;", "public static final HashSet set (Object ... items) {\r\n HashSet result = new HashSet();\r\n for (int i=0; i<items.length; i++) {\r\n result.add(items[i]);\r\n }\r\n return result;\r\n }", "@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }", "public void setAdapterAndValue(Object selectedItem, List<Item> items) {\n this.setSpinnerAdapter(items);\n this.setValue(selectedItem);\n }", "public void update(){\n\t\tif(JudokaComponent.input.up) selectedItem --;\n\t\tif(JudokaComponent.input.down) selectedItem ++;\n\t\tif(selectedItem > items.length - 1) selectedItem = items.length - 1;\n\t\tif(selectedItem < 0) selectedItem = 0;\n\t\tif(JudokaComponent.input.enter){\n\t\t\tif(selectedItem == 0) JudokaComponent.changeMenu(JudokaComponent.CREATE_JUDOKA);\n\t\t\telse if(selectedItem == 1) JudokaComponent.changeMenu(JudokaComponent.SINGLEPLAYER);\n\t\t\telse if(selectedItem == 2) JudokaComponent.changeMenu(JudokaComponent.MULTIPLAYER);\n\t\t\telse if(selectedItem == 3) JudokaComponent.changeMenu(JudokaComponent.ABOUT);\n\t\t\telse if(selectedItem == 4) JudokaComponent.changeMenu(JudokaComponent.EXIT);\n\t\t}\n\t}", "void showItemDialog(Task task, CharSequence items[]);", "int[] getSelection();", "private static void putArrayLstToMaps(ArrayList<MenuItem> items, Gui gui){\n for (MenuItem item : items){\n String name = item.getName();\n int price = item.getPrice();\n gui.getOrderMap().put(name, new Integer[]{price, NOT_SELECTED, INITIAL_QUANTITY});\n }\n }", "public void setList(String[] list, boolean selectFirst) {\n if (selectFirst) {\n setItem(list[0]);\n setItemIndex(0);\n }\n\n setOnClickListener(v -> {\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setSingleChoiceItems(list, getItemIndex(), (dialogInterface, i) -> {\n setItem(list[i]);\n setItemIndex(i);\n dialogInterface.dismiss();\n });\n builder.show();\n });\n }", "public ChoiceDialog setMultiChoiceItems(@NonNull CharSequence[] items,\n @NonNull boolean[] checkedItems) {\n mItems = items;\n mCheckedItems = checkedItems;\n mIsSingleChoice = false;\n return this;\n }", "void setSelection(int from, int to);", "static public TransformDesign selectItems(DrawingPad drawingPad) {\n if (drawingPad.getDesign().isSelectedItems() == false)\n return null;\n return drawingPad.getDesign().getSelectedItems();\n }", "public void setSelectedItem(Gnome selectedItem) {\n this.selectedItem = selectedItem;\n }", "public void setItems(java.util.Collection<EvaluationFormItem> items) {\n if (items == null) {\n this.items = null;\n return;\n }\n\n this.items = new java.util.ArrayList<EvaluationFormItem>(items);\n }", "public void onSelectedItems(Map<String,Integer> selectedMapPo) {\n\t\t\t\t\n\t\t\t}", "@JSProperty(\"items\")\n void setItems(Any... value);", "abstract public void showSelection(Node[] nodes) ;", "private boolean[] SetSelected(boolean[] selected, JList list) {\n\t\tint[] indices = list.getSelectedIndices();\n\t\tfor (int i = 0; i < selected.length; i++) {\n\t\t\tselected[i] = false;\n\t\t}\n\t\tfor (int i = 0; i < indices.length; i++) {\n\t\t\tselected[indices[i]] = true;\n\t\t}\n\t\treturn selected;\n\t}", "public void setSelectedItemsOnly(boolean selectedItemsOnly) {\n this.selectedItemsOnly = selectedItemsOnly;\n }", "@RequestMapping(method=RequestMethod.PUT, value = \"/item\", produces = \"application/json\")\n public void setItems(ArrayList<Item> itemsToSet)\n {\n this.itemRepository.setItems(itemsToSet);\n }", "private void setItems(ArrayList<NameId> values) {\n\t\tif (values == null || values.isEmpty()) {return;}\n\t\tint row = 0;\n\t\tCollections.sort(values);\n\t\tGrid.RowFormatter fmtRow = field.getRowFormatter();\n\t\tGrid.CellFormatter fmtCell = field.getCellFormatter();\n\t\tfield.resize(values.size(), 3);\n\t\tfmtCell.addStyleName(row, 1, CSS.cbtMultilistFieldNull());\n\t\tfor (NameId value : values) {\n\t\t\tfield.setText(row, 0, value.getName());\n\t\t\tfield.setText(row, 1, value.getId());\n\t\t\tCheckBox cb = new CheckBox();\n\t\t\tcb.addClickHandler(this);\n\t\t\tfield.setWidget(row, 2, cb);\n\t\t\tfmtCell.addStyleName(row, 1, CSS.cbtMultilistFieldNull());\n\t\t\tfmtRow.addStyleName(row++, CSS.cbtMultilistFieldValue());\n\t\t}\n\t}", "@Test\n public void seeingAttributesOfTheSelectedItemTest() {\n field = new Field();\n for (int i = 0; i < 1; i++) {\n for (int j = 0; j < 1; j++) {\n this.field.addCells(false, new Location(i, j));\n }\n }\n DarknessMagicBook dark = new DarknessMagicBook(\"HowToActColdAsSasuke\", 100, 1, 10);\n tactician1 = new Tactician(\"player1\", field, null);\n tactician1.setSelectedItem(dark);\n assertEquals(tactician1.getSelectedItem(),dark);\n assertEquals(tactician1.nameSelectedItem(), \"HowToActColdAsSasuke\");\n assertEquals(tactician1.powerSelectedItem(), 100);\n assertEquals(tactician1.minRangeSelectedItem(), 1);\n assertEquals(tactician1.maxRangeSelectedItem(), 10);\n }", "public boolean setItemsSelected(Iterable<String> ids, boolean selected) {\n boolean changed = false;\n for (String id: ids) {\n boolean itemChanged = selected ? mSelection.add(id) : mSelection.remove(id);\n if (itemChanged) {\n notifyItemStateChanged(id, selected);\n }\n changed |= itemChanged;\n }\n notifySelectionChanged();\n return changed;\n }", "@Override\n\tpublic void onSelectionChanged(ListSelectionEvent e, List<ShoppingListObject> values) {\n\n\t}", "boolean updateItems() {\n return updateItems(selectedIndex);\n }", "public void selectionChanged(Action item);", "public void selectAllAccessibleSelection() {\n // To be fully implemented in a future release\n }", "@Test\n\tpublic void furtherSelectionTest() {\n\t\tSelectionController selectionController = new SelectionController();\n\t\tint[] selection = { 1, 2, 3, 4, 5, 6 };\n\t\tint[] unSelecion = { 1, 2, 3 };\n\t\tint[] resultSelection = { 4, 5, 6 };\n\t\tint[] negativeSelection = { -1 };\n\n\t\t// select something and unselect parts of it\n\t\tselectionController.select(selection);\n\t\tassertArrayEquals(\"Selection was different\", selection, selectionController.getSelection());\n\t\tselectionController.unselect(unSelecion);\n\t\tassertArrayEquals(\"Selection was different after unselection\", resultSelection,\n\t\t\t\tselectionController.getSelection());\n\n\t\t// do a reselection\n\t\tselectionController.reselect(unSelecion);\n\t\tassertArrayEquals(\"Selection was different after reselection\", unSelecion, selectionController.getSelection());\n\n\t\tassertTrue(\"Item 1 is selected\", selectionController.isSelected(1));\n\t\tassertTrue(\"Item 2 is selected\", selectionController.isSelected(2));\n\t\tassertTrue(\"Item 3 is selected\", selectionController.isSelected(3));\n\t\tassertFalse(\"Item 4 is not selected\", selectionController.isSelected(4));\n\t\tassertFalse(\"Item 5 is not selected\", selectionController.isSelected(5));\n\t\tassertFalse(\"Item 6 is not selected\", selectionController.isSelected(6));\n\n\t\t// unselect all elements\n\t\tselectionController.unselect(unSelecion);\n\t\tassertFalse(\"Nothing was selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero\", 0, selectionController.getSelection().length);\n\n\t\t// select something negative\n\t\tselectionController.select(negativeSelection);\n\t\tassertFalse(\"Nothing should be selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero after selection\", 0, selectionController.getSelection().length);\n\n\t\t// reselect something negative\n\t\tselectionController.select(selection);\n\t\tselectionController.reselect(negativeSelection);\n\t\tassertFalse(\"Nothing should be reselected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero after reselection\", 0,\n\t\t\t\tselectionController.getSelection().length);\n\n\t}", "public PaymentRequest setItems(List items) {\r\n this.items = items;\r\n return this;\r\n }", "private void setContentItems(java.util.Vector contentItems)\r\n\t{\r\n\t\tthis.contentItems = contentItems;\r\n\t}", "public Builder items(Any... value) {\n object.setItems(value);\n return this;\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n String selectedItems = \"\";\n for(Integer i : mSelectedItems){\n selectedItems += items[i] + \",\";\n Log.d(\"selectedIndex = \",items[i].toString());\n }\n\n recipeText.setText(selectedItems);\n //showToast(\"Selected index: \" + selectedIndex);\n\n }", "public void testGetSelectedItemsCountWithItemsSelected()\n\t{\n\t\t// arrange\n\t\t// let's add a new list, category, and a few items to the new list\n\t\tUri listUri = helper.insertNewList(\"testlist\");\n\t\tint listId = Integer.parseInt(listUri.getPathSegments().get(1));\n\t\tassertEquals(2, listId);\n\n\t\tUri categoryUri = helper.insertNewCategory(listId, \"dudus\", 1);\n\t\tint categoryId = Integer.parseInt(categoryUri.getPathSegments().get(1));\n\t\thelper.insertNewItem(categoryId, \"item1\", false, 0);\n\t\thelper.insertNewItem(categoryId, \"item2\", false, 1);\n\t\thelper.insertNewItem(categoryId, \"item3\", true, 2);\n\t\thelper.insertNewItem(categoryId, \"item4\", false, 3);\n\t\thelper.insertNewItem(categoryId, \"item5\", true, 4);\n\t\thelper.insertNewItem(categoryId, \"item6\", false, 5);\n\n\t\t// Act & Assert\n\t\tint selectedItemsCount = service.getSelectedItemsCount();\n\t\tassertEquals(2, selectedItemsCount);\n\t}", "public static Set asSet(Object[] items) {\r\n \t\r\n \tSet set = new HashSet(items.length);\r\n \tfor (int i=0; i<items.length; i++) {\r\n \t\tset.add(items[i]);\r\n \t}\r\n \treturn set;\r\n }", "public void testGetAllToDoItemsEmailContentWithSelectedItems()\n\t{\n\t\t// arrange\n\t\tUri listUri = helper.insertNewList(\"testlist\");\n\t\tint listId = Integer.parseInt(listUri.getPathSegments().get(1));\n\n\t\tUri categoryUri = helper.insertNewCategory(listId, \"dudus\", 1);\n\t\tint categoryId = Integer.parseInt(categoryUri.getPathSegments().get(1));\n\t\thelper.insertNewItem(categoryId, \"item1\", true, 0);\n\t\thelper.insertNewItem(categoryId, \"item2\", true, 1);\n\t\thelper.insertNewItem(categoryId, \"item3\", false, 2);\n\n\t\t// Act & Assert\n\t\tSpanned reportText = service.getAllToDoItemsEmailContent(null);\n\n\t\tassertEquals(33, reportText.length());\n\t}", "public void setSelectedItems( final Set<T> selectedEntities ) {\n this.selectedEntities = selectedEntities;\n }", "public void setListItems(List<String> lit) { mItems = lit; }", "public void select(List<Object> objs, boolean selectionFlag) throws Exception;", "public void setSelection(Pair selection);", "public void updateSelection() {\n\t\t\n\t}", "public void setItem (Item item)\n\t{\n\t\tthis.item = item;\n\t}", "private void setItems()\n {\n sewers.setItem(rope); \n promenade.setItem(rope);\n bridge.setItem(potion);\n tower.setItem(potion);\n throneRoomEntrance.setItem(potion);\n depths.setItem(shovel);\n crypt.setItem(shovel);\n }", "private void chooseAddItemsToJcb() {\n if (animalFamilyType.contains(\"Terr\")) {\n addItemJcb(terAnimals);\n } else if (animalFamilyType.contains(\"Air\")) {\n addItemJcb(airAnimals);\n } else if (animalFamilyType.contains(\"Water\")) {\n addItemJcb(waterAnimals);\n }\n }", "private void pickItem() \n {\n if(currentRoom.getShortDescription() == \"in the campus pub\" && i.picked3 == false)\n {\n i.item3 = true;\n i.picked3 = true;\n System.out.println(\"You picked a redbull drink\");\n }\n else if(currentRoom.getShortDescription() == \"in th hallway\" && i.picked2 == false)\n {\n i.item2 = true;\n i.picked2 = true;\n System.out.println(\"You picked a torch\");\n }\n else if(currentRoom.getShortDescription() == \"in the office\" && i.picked1 == false)\n {\n i.item1 = true;\n i.picked1 = true;\n System.out.println(\"You picked a pair of scissors\");\n }\n else\n System.out.println(\"There is no items in the room!\");\n }", "public void beginSelection()\n {\n\tisMultiSelection = true;\n\tsetMaxCheckCount(-1);\n }", "private boolean itemSelect(boolean refresh, @MagicConstant(flags = {NEXT_DEFAULT, NEXT_REVERSED, NEXT_STOP_WHEN_END, NEXT_EVERY_ITEM}) int flags) {\n int index = samplesList.getSelectedIndex();\n int next = shipment.getNextIndex(index, flags);\n if (next < 0) return false;\n if (refresh) {\n refreshUI(UI_SAMPLE_INFO | UI_SELECTION, next);\n }\n return true;\n }", "public void setItem(Item[] param) {\r\n validateItem(param);\r\n\r\n localItemTracker = true;\r\n\r\n this.localItem = param;\r\n }", "public void setItem(Item item) {\n this.item = item;\n }" ]
[ "0.76569355", "0.7553615", "0.7477287", "0.6861262", "0.6634899", "0.66227335", "0.6575398", "0.65505886", "0.6437404", "0.63793087", "0.6349045", "0.6327865", "0.6320912", "0.62961906", "0.62714607", "0.61979383", "0.61793274", "0.6163591", "0.6115804", "0.6095271", "0.606494", "0.60631907", "0.603977", "0.5946168", "0.5940723", "0.5916026", "0.5882093", "0.5879512", "0.58771634", "0.5872681", "0.5808724", "0.579414", "0.5791401", "0.5778605", "0.57443637", "0.57386625", "0.5731409", "0.57272714", "0.5726207", "0.5674662", "0.5627332", "0.56240153", "0.56162274", "0.5598334", "0.5598027", "0.55964285", "0.5589361", "0.5572394", "0.55702853", "0.5565208", "0.55610174", "0.5531451", "0.55219394", "0.55176765", "0.54986733", "0.5496748", "0.54864496", "0.54819894", "0.5466237", "0.54557836", "0.5440604", "0.5438285", "0.54304045", "0.5429233", "0.542379", "0.5400306", "0.53986627", "0.53940433", "0.5393168", "0.5386992", "0.5386617", "0.5385427", "0.5378082", "0.5376704", "0.5374418", "0.53626734", "0.53611463", "0.53571075", "0.53555113", "0.5351129", "0.5350363", "0.5347697", "0.53436935", "0.5341434", "0.5326351", "0.5320754", "0.5313326", "0.5313237", "0.53061914", "0.5285221", "0.5282685", "0.52813345", "0.52801496", "0.5261875", "0.5260249", "0.52597684", "0.52570236", "0.52526486", "0.5251973", "0.5251571", "0.5246647" ]
0.0
-1
!wca! observe items: array An array containing items from which selection will be made.
public ObservableValue<List<T>> items() { return createObservableValue(this::getItems, this::setItems, "items-changed"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSelection (TabItem [] items) {\r\n\tcheckWidget();\r\n\tif (items == null) error (SWT.ERROR_NULL_ARGUMENT);\r\n\tif (items.length == 0) {\r\n\t\tsetSelection (-1);\r\n\t\treturn;\r\n\t}\r\n\tfor (int i=items.length-1; i>=0; --i) {\r\n\t\tint index = indexOf (items [i]);\r\n\t\tif (index != -1) setSelection (index);\r\n\t}\r\n}", "void setSelectedItems(ValueType selectedItems);", "List<String> getSelectedItems();", "public void selectionChanged(Action item);", "public void setSelection(TabItem[] items) {\n checkWidget();\n if (items == null)\n error(SWT.ERROR_NULL_ARGUMENT);\n if (items.length == 0) {\n setSelection(-1, false);\n } else {\n for (int i = items.length - 1; i >= 0; --i) {\n int index = indexOf(items[i]);\n if (index != -1)\n setSelection(index, false);\n }\n }\n }", "public void onSelectionChanged();", "public void itemsSelected() {\n getEntitySelect().close();\n Collection<T> selectedValues = getEntitySelect().getResults().getSelectedValues();\n setReferencesToParentAndPersist((T[]) selectedValues.toArray());\n showAddSuccessful();\n }", "void onItemSelected(int index, T item) throws RemoteException;", "@Override\n public void onSelectionStateChange(List<Integer> selectedItems) {\n for (TabSelectionEditorMenuItem menuItem : mMenuItems.values()) {\n menuItem.onSelectionStateChange(selectedItems);\n }\n }", "@Override\n\tpublic void onSelectionChanged(ListSelectionEvent e, List<ShoppingListObject> values) {\n\n\t}", "static interface ElementSelectionListener {\n \n public void selectionChanged(MultiViewDescription oldOne, MultiViewDescription newOne);\n \n public void selectionActivatedByButton(MouseEvent e);\n \n public void selectionActivatedByButton(ActionEvent e);\n \n }", "public void setCompletionItems(List<CompletionItem> items) {\r\n this.textItemsProperty.setValue(FXCollections.observableArrayList(items));\r\n }", "public void itemSelected(boolean selected);", "public void initSelectedItems(int position) {\n\n/* for(int i=0; i < itemsList.size(); i++){\n selectView(i, itemsList.get(i).isSelected());\n }*/\n }", "@Test\n public void selectReplacesSelectionOnlyOnce() throws Exception {\n ArgumentCaptor<Set> itemsCaptor = ArgumentCaptor.forClass(Set.class);\n\n // WHEN\n listView.select(Lists.newArrayList(A));\n verify(listener, only()).onItemSelection(itemsCaptor.capture());\n\n // THEN\n Set<?> items = itemsCaptor.getValue();\n assertThat(items, allOf(hasSize(1), contains(A)));\n }", "public void onSelectedItems(Map<String,Integer> selectedMapPo) {\n\t\t\t\t\n\t\t\t}", "public void displaySelections() {\n List<VendingItem> listOfItems = service.getAllItemsNonZero(); //<-- uses lambda\n view.displaySelections(listOfItems);\n }", "void itemSelected(OutlineItem item);", "private void selection(int level, int item) {\n switch (level) {\n case 0:\n if (domaineSelectionne != null && item < tvComptes.getItems().size())\n tvComptes.getSelectionModel().select(item);\n break;\n case 1:\n if (donneesActives != null && item < lvDomaines.getItems().size())\n lvDomaines.getSelectionModel().select(item);\n break;\n }\n }", "@Override\r\n public void valueChanged(ListSelectionEvent e) {\n selectionChanged();\r\n }", "@Override\r\n protected ObservableList<TreeItem> getSelectedItems() {\r\n return getSelectionModel().getSelectedItems();\r\n }", "public void setItems(List<PickerItem> items) {\n this.items = items;\n initViews();\n selectChild(-1);\n }", "public interface ItemSelectedListener {\n void itemSelected(Object object);\n}", "private void itemSelected(){\n \t//* count selected items\n \tint c=0;\n \tfor (int i = 0; i<jTable4.getRowCount(); i++){\n \t\tif((Boolean)jTable4.getModel().getValueAt(i, 0)){\n \t\t\tc++;\n \t\t}\n \t}\n \tif(c==0){\n \t\treturn; //* if no item selected then do nothing\n \t}\n \t\n \t//* get the new selected items\n \tString[][] tmp1=new String[c][2];\n \tfor (int i = 0, j=0; i<jTable4.getRowCount(); i++){\n \t\tif((Boolean)jTable4.getModel().getValueAt(i, 0)){\n \t\t\ttmp1[j]=new String[2];\n \t\t\ttmp1[j][0]=jTable4.getModel().getValueAt(i, 1).toString();\n \t\t\ttmp1[j++][1]=\"0\";\n \t\t}\n \t}\n \t\n \t//* get the previously selected items\n \tString[][] tmp2=new String[jTable3.getModel()==null? 0: jTable3.getModel().getRowCount()][9];\n \tfor (int i = 0; i<tmp2.length; i++){\n \t\ttmp2[i]=new String[9];\n \t\ttmp2[i][0]=jTable3.getModel().getValueAt(i, 1).toString();\n \t\ttmp2[i][1]=jTable3.getModel().getValueAt(i, 2).toString();\n \t\ttmp2[i][2]=jTable3.getModel().getValueAt(i, 3).toString();\n \t\ttmp2[i][3]=jTable3.getModel().getValueAt(i, 5).toString();\n \t\ttmp2[i][4]=jTable3.getModel().getValueAt(i, 7).toString();\n \t\ttmp2[i][5]=jTable3.getModel().getValueAt(i, 9).toString();\n \t\ttmp2[i][6]=jTable3.getModel().getValueAt(i, 11).toString();\n \t\ttmp2[i][7]=jTable3.getModel().getValueAt(i, 13).toString();\n \t\ttmp2[i][8]=jTable3.getModel().getValueAt(i, 15).toString();\n \t}\n \tfillPoDet(tmp2, tmp1); //* reconstruct PO table\n \tjTabbedPane1.setSelectedIndex(0);\n }", "private void cListValueChanged(ListSelectionEvent e) {\n }", "protected void notifyDirty() {\n Event evt = new Event();\n evt.item = this;\n evt.widget = this;\n SelectionEvent event = new SelectionEvent(evt);\n for (SelectionListener listener : dirtyListener) {\n listener.widgetSelected(event);\n }\n }", "public void update(){\n\t\tif(JudokaComponent.input.up) selectedItem --;\n\t\tif(JudokaComponent.input.down) selectedItem ++;\n\t\tif(selectedItem > items.length - 1) selectedItem = items.length - 1;\n\t\tif(selectedItem < 0) selectedItem = 0;\n\t\tif(JudokaComponent.input.enter){\n\t\t\tif(selectedItem == 0) JudokaComponent.changeMenu(JudokaComponent.CREATE_JUDOKA);\n\t\t\telse if(selectedItem == 1) JudokaComponent.changeMenu(JudokaComponent.SINGLEPLAYER);\n\t\t\telse if(selectedItem == 2) JudokaComponent.changeMenu(JudokaComponent.MULTIPLAYER);\n\t\t\telse if(selectedItem == 3) JudokaComponent.changeMenu(JudokaComponent.ABOUT);\n\t\t\telse if(selectedItem == 4) JudokaComponent.changeMenu(JudokaComponent.EXIT);\n\t\t}\n\t}", "public void itemStateChanged(ItemEvent ie) {\n JCheckBox check = (JCheckBox)ie.getSource();\n cb_selection = check.getText(); \n }", "@Override\r\n\tpublic void itemSelectedAtIndexPath(IndexPath path) {\n\r\n\t}", "private void notifyListSelectionListener()\r\n {\r\n \tif (listSelectionListeners != null && listSelectionListeners.size() > 0) \r\n \t{\r\n ListSelectionEvent event = new ListSelectionEvent(this, avatarIndex, avatarIndex, false);\r\n\r\n for (ListSelectionListener listener : listSelectionListeners)\r\n {\r\n listener.valueChanged(event);\r\n }\r\n \t}\r\n }", "public void setSelectPresentationBackingList(java.util.Collection items, String valueProperty, String labelProperty);", "public void selectionChanged(String[][] selection);", "public void setItems(Item items) {\n this.items = items;\n }", "public void setItems(){\n }", "public void widgetSelected(SelectionEvent e) {\n table.setSelection(new TableItem[]{cursor.getRow()});\n }", "private void gListValueChanged(ListSelectionEvent e) {\n }", "void selected(Collection<AppUser> appUsers, String extraText);", "@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }", "public void itemStateChanged(ItemEvent e){\n model.setSolution();\n view.update();\n\n }", "void onItemSelected(Bundle args);", "@Override\n \tpublic void valueChanged(ListSelectionEvent e) { \n \t\tListSelectionModel lsm = (ListSelectionModel) e.getSource();\n \n \t\tif (!lsm.isSelectionEmpty()) {\n \t\t\tint selection = table.convertRowIndexToModel(getSelection(lsm));\n \t\t\tnotifySelectionListeners(list.getPackage(selection));\t\n \t\t}\n \t}", "@Override\r\n\tpublic void onMenuItemSelected(MenuItem item) {\n\r\n\t}", "@Override\n\tpublic void onSelect(String selections, EntityLabel el) {\n\t\tLog.d(TAG, \"MULTISELECT : ON SELECT CALLED \" + selections);\n\n\t\tList<String> listOfSelectedItems = Arrays.asList(selections.split(\",\"));\n\t\t/*for (String selected : listOfSelectedItems) {\n\t\t\tinvokeChildrens(new EntityLabel(el.getId(), selected));\n\t\t}*/\n\t\tinvokeChildrens(el, listOfSelectedItems);\n\t}", "@Override\n protected void setComponentValue(List<K> values, boolean fireEvents) {\n ListBox component = getComponent();\n int l = component.getItemCount();\n for (int i = 0; i < l; i++) {\n String value = component.getValue(i);\n component.setItemSelected(i, (values != null && values.contains(getItemValue(value))));\n }\n }", "public interface ListListener {\n\t/*\n\t * Called by soundfun.ui when a different element\n\t * has been selected. This also is called if no\n\t * element was previously selected and is now selected.\n\t */\n\tpublic void selected(String action);\n}", "public void setItems(Item[] itemsIn)\n {\n items = itemsIn;\n }", "public interface ListClickHandler {\n /**\n * Performs the item selection\n *\n * @param item that has been selected\n */\n void onClick(PropertyItem item);\n}", "public void setItems(String items)\n {\n _items = items;\n }", "public void onItemSelecting(AdapterView<?> parent, View view, int oldPosition, int newPosition);", "public void updateSelection() {\n\t\t\n\t}", "private void setListAndResetSelection(JList list, List<String> items, java.util.List selection) {\n Map<String,Integer> str_to_i = new HashMap<String,Integer>();\n String as_str[] = new String[items.size()]; for (int i=0;i<as_str.length;i++) { as_str[i] = items.get(i); str_to_i.put(as_str[i], i); }\n list.setListData(as_str);\n if (selection.size() > 0) {\n List<Integer> ints = new ArrayList<Integer>(); \n // Find the indices for the previous settings\n for (int i=0;i<selection.size();i++)\n if (str_to_i.containsKey(selection.get(i))) \n\t ints.add(str_to_i.get(selection.get(i)));\n // Convert back to ints\n int as_ints[] = new int[ints.size()];\n for (int i=0;i<as_ints.length;i++) as_ints[i] = ints.get(i);\n list.setSelectedIndices(as_ints);\n }\n }", "boolean updateItems() {\n return updateItems(selectedIndex);\n }", "void notifySelectionChanged() {\n int lastListener = mCallbacks.size() - 1;\n for (int i = lastListener; i > -1; i--) {\n mCallbacks.get(i).onSelectionChanged();\n }\n }", "public void select(T item) {\n getElement().select(SerDes.mirror(item));\n }", "public void onItemStateChanged(String id, boolean selected);", "public void selectTDList(ActionEvent actionEvent) {\n // we will have to update the viewer so that it is displaying the list that was just selected\n // it will go something like...\n // grab the list that was clicked by the button (again, using the relationship between buttons and lists)\n // and then displayTODOs(list)\n }", "private void pushSelection()\n {\n ArrayList<Integer> selectedIndices = new ArrayList<>();\n ArrayList<Signal> newSelected = new ArrayList<>();\n for(Signal s: selected)\n {\n int index = listed.indexOf(s);\n if(index >= 0)\n {\n selectedIndices.add(index);\n newSelected.add(s);\n }\n }\n selected.clear();\n selected.addAll(newSelected);\n int[] indices = new int[selectedIndices.size()];\n for(int i = 0; i < selectedIndices.size(); i++)\n {\n indices[i] = selectedIndices.get(i);\n }\n signalList.setSelectedIndices(indices);\n }", "public void setItems(ItemList items) {\r\n this.items = items;\r\n }", "public void addMySelectionListener(EventListener l);", "private void itemSelected(ObservableValue<? extends String> observableValue, String s, String t1) {\n if (!(t1 == null)) {\n\n listview.getSelectionModel().selectedItemProperty().removeListener(grSelected);\n listview.getSelectionModel().selectedItemProperty().addListener(grSelected);\n\n currentGr = t1.charAt(0);\n currentSGr = t1.charAt(1);\n currentType = t1.substring(t1.indexOf(\" \")+1);\n for (ArrayList<Object> g: currentGrupos) {\n String idG = (String)g.get(0);\n if (idG.equals(Character.toString(currentGr))) {\n ArrayList<ArrayList<Object>> subgr = (ArrayList<ArrayList<Object>>)g.get(1);\n for (ArrayList<Object> sg : subgr) {\n if (sg.get(0).equals(Character.toString(currentSGr))) {\n currentPlazas = (Integer) sg.get(1);\n }\n }\n }\n }\n setLayout();\n }\n }", "@Override\n public void setItems(List<ExplanationOrReadingItem> items) {\n progressDialog.dismiss();\n mlist.setAdapter(new ExplanationOrReadingAdapter(items));\n mlist.setOnItemClickListener(this);\n }", "public interface SelectionListener {\n void selected();\n}", "@DISPID(1610743811) //= 0x60020003. The runtime will prefer the VTID if present\r\n @VTID(10)\r\n uic.prominent.ScreenLogging.wsh.FolderItems selectedItems();", "@Override\r\n\t\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t\t\tif(e.getStateChange()==ItemEvent.SELECTED)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(e.getItem()==cb[0])index1=true;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[1])index2=true;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[2])index3=true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(e.getStateChange()==ItemEvent.DESELECTED)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(e.getItem()==cb[0])index1=false;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[1])index2=false;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[2])index3=false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "public void onComponentSelection(){\r\n\r\n }", "@Override\n public void setSelectedItems(List<VDS> value) {\n if (value != null && !value.equals(getSelectedItems())) {\n super.setSelectedItems(new ArrayList<VDS>(value));\n } else if (value != null && value.equals(getSelectedItems())) {\n // do nothing, nothing changed\n } else {\n super.setSelectedItems(value);\n }\n if (value == null || value.isEmpty() || value.size() > 1) {\n super.setSelectedItem(null);\n } else {\n super.setSelectedItem(value.get(0));\n }\n }", "public void getSelected() {\n for (int i = 0; i < list.size(); i++) {\n if (selectColumn.getCellObservableValue(i).getValue().isSelected()) {\n selectedIngredients.add(i + 1);\n }\n }\n }", "@Override\n public void valueChanged(ListSelectionEvent arg0) {\n\n }", "@Override\n public void itemClick(int pos) {\n }", "@Override\n\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\n\t}", "@Override\n public void selectedSamplesChanged()\n {\n final List<ModelItem> items = model.getItems();\n final List<String> names = new ArrayList<>(items.size());\n final List<String> times = new ArrayList<>(items.size());\n final double[] values = new double[items.size()];\n int i=0;\n for (ModelItem item : items)\n {\n names.add(item.getResolvedDisplayName());\n final Optional<PlotDataItem<Instant>> sample = item.getSelectedSample();\n if (sample.isPresent())\n {\n times.add(TimestampFormats.MILLI_FORMAT.format(sample.get().getPosition()));\n values[i++] = sample.get().getValue();\n }\n else\n {\n times.add(\"-\");\n values[i++] = Double.NaN;\n }\n }\n final VType value = VTable.of(\n List.of(String.class, String.class, double.class),\n List.of(\"Trace\", \"Timestamp\", \"Value\"),\n List.of(names, times, ArrayDouble.of(values)));\n model_widget.propSelectionValue().setValue(value);\n }", "@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\tpublic void valueChanged(ListSelectionEvent e) {\n\t\tString query=\"\";\r\n\t\t\r\n\t\tselectedUsers.clear();\r\n\t\t\r\n\t\tListSelectionModel lsm = (ListSelectionModel)e.getSource();\r\n\t\tint minIndex = lsm.getMinSelectionIndex();\r\n int maxIndex = lsm.getMaxSelectionIndex();\r\n for (int i = minIndex; i <= maxIndex; i++) \r\n {\r\n if (lsm.isSelectedIndex(i)) \r\n {\r\n \t\t\tif (query.length()!=0)\r\n \t\t\t{\r\n \t\t\t\tquery = query + \" OR \";\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tquery = query + \"fromdisp:\\\"\" + interestedUsers[i] + \"\\\"\"; \r\n \t\t\t\r\n \t\t\tselectedUsers.add(interestedUsers[i]);\r\n }\r\n }\r\n \r\n if (query.length()==0)\r\n {\r\n \tqueryTextField.setText(\"*:*\");\r\n }\r\n else\r\n {\r\n \tqueryTextField.setText(\"(\" + query + \")\");\r\n }\r\n \r\n\t\t\r\n\t}", "@Override\n public void contextMenuOpened(ObservableList<GUITemplate> selected) {\n }", "public void onEventSelected(int position);", "public void selectionChanged(IAction action, ISelection selection) {\n }", "public void selectionChanged(Selection selecton) {\r\n }", "private void selectItemInList(String item, Combo combo) {\n\t\tString[] items = combo.getItems();\n\t\tfor (int i = 0; i < items.length; i++) {\n\t\t\tif (items[i].equals(item)) {\n\t\t\t\tcombo.select(i);\n\t\t\t\tcombo.notifyListeners(SWT.Selection, null);\n\t\t\t}\n\t\t}\n\t}", "public void updateView()\n {\n int selectionCount = selection.getElementSelectionCount();\n\n // If only one item selected, enable & update the\n // text boxes and pull downs with values.\n if (selectionCount == 1) {\n // preserve selected state if a whole text field is selected\n Text text = WindowUtil.getFocusedText();\n boolean restoreSel = false;\n if ((text != null) &&\n (text.getSelectionCount() == text.getCharCount()))\n {\n restoreSel = true;\n }\n\n // get the selected item\n Iterator<FrameElement> iter =\n selection.getSelectedElementsIterator();\n\n // For each selected object, which there is only one.\n FrameElement elt = iter.next();\n\n if (elt instanceof IWidget) {\n IWidget widget = (IWidget) elt;\n\n view.useParameters(FrameEditorView.USE_SINGLE_SELECT);\n view.updateWidgetProperties(widget);\n }\n else if (elt instanceof FrameElementGroup) {\n FrameElementGroup eltGroup = (FrameElementGroup) elt;\n\n view.useParameters(FrameEditorView.USE_GROUP_SELECT);\n view.updateEltGroupProperties(eltGroup);\n }\n\n // Restore the selection state\n if (restoreSel) {\n text.selectAll();\n }\n }\n else if (selectionCount > 1) {\n // TODO: on multi selection, some values are left enabled\n // We need to set these to something or disable them.\n view.useParameters(FrameEditorView.USE_MULTI_SELECT);\n }\n else {\n view.useParameters(FrameEditorView.USE_NONE);\n view.updateFrameProperties(frame, false);\n }\n }", "public void setItems(List<PickerItem> items, int selectedIndex) {\n setItems(items);\n selectChild(selectedIndex);\n }", "public void characterSelected(CharacterSelectionEvent e);", "public void selectionChanged(IAction action, ISelection selection) {\n\r\n\t}", "public void selectionChanged(IAction action, ISelection selection) {\n\r\n\t}", "@Override\r\n\tpublic void selectionChanged(IAction action, ISelection selection) {\n\r\n\t}", "@Override\n public void valueChanged(ListSelectionEvent e) {\n currentRow = recordList.getSelectedIndex();\n setRowValues(currentRow, currentColumn);\n if (selectionAction == WAITING_ON_SELECTION) {\n selectionAction = SENDING_SELECTION;\n }\n if (selectionAction == SENDING_SELECTION) {\n selectionAction = FINISHED_SELECTION;\n cellNotifier.select(currentRow, currentColumn); // Notify GUI to select\n }\n \n \n }", "@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n\t\tString res = jc.getSelectedItem().toString();\n\t\tjt.setText(res);\n\n\t}", "@Override\r\n\tpublic void itemStateChanged(ItemEvent e) {\n\t\tint a=c1.getSelectedIndex();\r\n\t\tString b=c1.getItemAt(a).toString();\r\n\t\tl1.setText(\"\"+b);\r\n\t}", "public void contentsChanged(ListDataEvent e) {\n\t\tint size=store.size();\n\t\tif (size<2) return;\n\n\t\t// Remove existing list\n\t\tfor (int index=0; index<size; index++) {\n\t\t // Keep removing the first entry until the list is empty\n\t\t JMenuItem item = identityMenu.getItem(identityIndex);\n\t\t identityButtonGroup.remove(item);\n\t\t identityMenu.remove(item);\n\t\t}\n\n\t\t// Create new list\n\t\tfor (int index=0; index<size; index++)\t{\n\t\t CertificatePair cert = store.get(index);\n\t\t Action action = new ActionSelectCertificate(JGSFrame.this, cert, selection);\n\t\t if (index<9)\n\t\t\taction.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(\"control \"+(index+1)));\n\t\t JRadioButtonMenuItem jrb = new JRadioButtonMenuItem(action);\n\t\t identityButtonGroup.add(jrb);\n\t\t identityMenu.insert(jrb, identityIndex + index);\n\t\t}\n\t }", "@Override\r\n public void selectionChanged(IAction action, ISelection selection) {\n }", "public TabItem [] getSelection () {\r\n\tcheckWidget();\r\n\tint index = getSelectionIndex ();\r\n\tif (index == -1) return new TabItem [0];\r\n\treturn new TabItem [] {items [index]};\r\n}", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tListSelectionModel lsm = list.getSelectionModel();\r\n\t\t\tint selected = lsm.getMinSelectionIndex();\r\n\r\n\t\t\tItemView itemView = (ItemView) list.getModel().getElementAt(selected);\r\n\r\n\t\t\t// change item\r\n\t\t\tJOptionPane options = new JOptionPane();\r\n\t\t\tObject[] addFields = { \"Name: \", nameTextField, \"Price: \", priceTextField, \"URL: \", urlTextField, };\r\n\t\t\tint option = JOptionPane.showConfirmDialog(null, addFields, \"Edit item\", JOptionPane.OK_CANCEL_OPTION);\r\n\t\t\tif (option == JOptionPane.OK_OPTION) {\r\n\t\t\t\tString name = nameTextField.getText();\r\n\t\t\t\tString price = priceTextField.getText();\r\n\t\t\t\tString url = urlTextField.getText();\r\n\r\n\t\t\t\tdouble doublePrice = Double.parseDouble(price);\r\n\r\n\t\t\t\titemView.getItem().setName(name);\r\n\t\t\t\titemView.getItem().setCurrentPrice(doublePrice);\r\n\t\t\t\titemView.getItem().setUrl(url);\r\n\t\t\t\t// clear text fields\r\n\t\t\t\tnameTextField.setText(\"\");\r\n\t\t\t\tpriceTextField.setText(\"\");\r\n\t\t\t\turlTextField.setText(\"\");\r\n\t\t\t}\r\n\t\t}", "void onItemSelected();", "void onItemSelected();", "public void selectedOneChange(ValueChangeEvent event) {\n String str = (String) event.getNewValue();\r\n //Like you see, in the first SelectItems we hava \"A_1\"\r\n String[] ss = str.split(\"_\");\r\n //After this we got the index of the \"A_1\" and the index is \"1\"\r\n str = ss[1];\r\n int index = Integer.parseInt(str);\r\n currentMCList = MCList.get(index);\r\n }", "private void fireSelectionChangeNotification () {\r\n\t\tif ( selectionChangeListener!=null)\r\n\t\t\tselectionChangeListener.execute();\r\n\t}", "@Override\r\n\t\tpublic void valueChanged(ListSelectionEvent e) {\r\n\t\t\t\r\n\t\t}", "@Override\r\n @Test\r\n @ConditionalIgnore(condition = IgnoreTreeUncontained.class)\r\n public void testSelectedOnSetItemsWithoutUncontained() {\r\n TreeItem uncontained = createItem(\"uncontained\");\r\n // prepare state\r\n getSelectionModel().select(uncontained);\r\n assertEquals(\"sanity: having uncontained selectedItem\", uncontained, getSelectedItem());\r\n assertEquals(\"sanity: no selected index\", -1, getSelectedIndex());\r\n // make uncontained part of the items by replacing old items\r\n ObservableList copy = FXCollections.observableArrayList(items);\r\n int insertIndex = 3;\r\n copy.add(insertIndex, createItem(\"anything\"));\r\n setAllItems(copy);\r\n assertEquals(\"sanity: selectedItem unchanged\", uncontained, getSelectedItem());\r\n assertEquals(\"selectedIndex unchanged\", -1, getSelectedIndex());\r\n }", "public void selectItem(int i) {\n checkIndex(i);\n selectedItem = i;\n }", "@Override\r\n @Test\r\n @ConditionalIgnore(condition = IgnoreTreeUncontained.class)\r\n public void testSelectedOnSetItemsWithUncontained() {\r\n TreeItem uncontained = createItem(\"uncontained\");\r\n // prepare state\r\n getSelectionModel().select(uncontained);\r\n assertEquals(\"sanity: having uncontained selectedItem\", uncontained, getSelectedItem());\r\n assertEquals(\"sanity: no selected index\", -1, getSelectedIndex());\r\n // make uncontained part of the items by replacing old items\r\n ObservableList copy = FXCollections.observableArrayList(items);\r\n int insertIndex = 3;\r\n copy.add(insertIndex, uncontained);\r\n setAllItems(copy);\r\n assertEquals(\"sanity: selectedItem unchanged\", uncontained, getSelectedItem());\r\n assertEquals(\"selectedIndex updated\", insertIndex, getSelectedIndex());\r\n }", "public void valueChanged(ListSelectionEvent e) {\n\t\t\n\t}", "abstract void listSeleccionadas_mouseClicked(MouseEvent e);" ]
[ "0.675912", "0.6745083", "0.65776217", "0.65341437", "0.6473451", "0.6429388", "0.64237", "0.63952464", "0.6312031", "0.6300878", "0.622931", "0.6153297", "0.61422753", "0.6033968", "0.5962811", "0.5952446", "0.59357303", "0.5919112", "0.5902911", "0.58810693", "0.5877561", "0.58742493", "0.587238", "0.58439434", "0.5839172", "0.5821634", "0.5787477", "0.5786764", "0.5784646", "0.5782558", "0.5752421", "0.574117", "0.5701554", "0.5692643", "0.56896424", "0.5665891", "0.5664778", "0.56591535", "0.5652055", "0.5629225", "0.5624481", "0.56238323", "0.56237", "0.56129026", "0.56003606", "0.5597674", "0.55922085", "0.5586863", "0.5579665", "0.55785114", "0.557566", "0.55662775", "0.5561335", "0.55490565", "0.5540817", "0.5516738", "0.5515661", "0.55148", "0.550821", "0.550723", "0.5505411", "0.5494108", "0.5487855", "0.54837185", "0.5483516", "0.54821676", "0.5459641", "0.54589957", "0.5456883", "0.54517853", "0.54500175", "0.54391825", "0.5437449", "0.5430624", "0.54299366", "0.54264486", "0.54164314", "0.5415612", "0.5414467", "0.541207", "0.53891456", "0.5387775", "0.5387775", "0.53876823", "0.53872114", "0.5382497", "0.53810996", "0.5380453", "0.53781074", "0.5378101", "0.53770924", "0.5372504", "0.5372504", "0.53703123", "0.5366745", "0.5364637", "0.5363442", "0.5355321", "0.5355231", "0.53529876", "0.53298867" ]
0.0
-1
!wca! get multi: boolean When true, multiple items may be selected at once (in this case, selected is an array of currently selected items). When false, only one item may be selected at a time.
public boolean isMulti() { return getElement().isMulti(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMultiSelection(boolean multiSelection)\n {\n this.multiSelection = multiSelection;\n }", "public boolean isMultiSelection()\n {\n return multiSelection;\n }", "public boolean isMultiSelection()\n\t{\n\t\treturn this.isMultiple();\n\t}", "public void setMultiSelection(boolean multiSelection)\n\t{\n\t\tthis.setMultiple(multiSelection);\n\n\t\treturn;\n\t}", "public Boolean isMultipleSelection() {\n return m_multipleSelection;\n }", "public boolean isMultiSelect() {\r\n return multiSelect;\r\n }", "public void setMultipleSelection(Boolean multipleSelection){\n m_multipleSelection = multipleSelection;\n }", "public void setMultiSelect(boolean multiSelect) {\r\n this.multiSelect = multiSelect;\r\n }", "void setSelectedItems(ValueType selectedItems);", "@NonNull\n public SparseBooleanArray getSelectedItems() {\n return selectedItems;\n }", "List<String> getSelectedItems();", "public boolean isSelected() { return selected; }", "public void itemSelected(boolean selected);", "private boolean[] SetSelected(boolean[] selected, JList list) {\n\t\tint[] indices = list.getSelectedIndices();\n\t\tfor (int i = 0; i < selected.length; i++) {\n\t\t\tselected[i] = false;\n\t\t}\n\t\tfor (int i = 0; i < indices.length; i++) {\n\t\t\tselected[indices[i]] = true;\n\t\t}\n\t\treturn selected;\n\t}", "public boolean isSelected() {\n \t\treturn selected;\n \t}", "public List<T> getSelected() {\n Unknown selected = getElement().getSelected();\n if (isMulti()) {\n return SerDes.unmirrorList(selected.<Mirrored<List<T>>>cast(), getItemClass());\n } else {\n return Collections.singletonList(SerDes.unmirror(selected.cast(), getItemClass()));\n }\n }", "public boolean isSelected() \n {\n return selected;\n }", "public void setMulti(boolean value) {\n getElement().setMulti(value);\n }", "public boolean isSelected(){\r\n return selected;\r\n }", "public boolean getSelected()\n {\n return selected; \n }", "public boolean isSelected()\n {\n return selected;\n }", "public void itemsSelected() {\n getEntitySelect().close();\n Collection<T> selectedValues = getEntitySelect().getResults().getSelectedValues();\n setReferencesToParentAndPersist((T[]) selectedValues.toArray());\n showAddSuccessful();\n }", "public SparseBooleanArray getSelectedIds() {\n return mSelectedItems;\n }", "public boolean isSelected()\n\t{\n\t\treturn selected;\n\t}", "public void getSelected() {\n for (int i = 0; i < list.size(); i++) {\n if (selectColumn.getCellObservableValue(i).getValue().isSelected()) {\n selectedIngredients.add(i + 1);\n }\n }\n }", "public boolean isSelected() { \n \treturn selection != null; \n }", "public boolean isSelected() {\r\n return selected;\r\n }", "public boolean isSelected() {\r\n\t\treturn selected;\r\n\t}", "public boolean isSelected() {\n\t\treturn selected;\n\t}", "public boolean isSelected() {\n\t\treturn selected;\n\t}", "abstract public void cabMultiselectPrimaryAction();", "public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }", "public boolean setItemsSelected(Iterable<String> ids, boolean selected) {\n boolean changed = false;\n for (String id: ids) {\n boolean itemChanged = selected ? mSelection.add(id) : mSelection.remove(id);\n if (itemChanged) {\n notifyItemStateChanged(id, selected);\n }\n changed |= itemChanged;\n }\n notifySelectionChanged();\n return changed;\n }", "public void setMultiple(boolean isMultiple) {\n this.multiple = isMultiple;\n }", "@Override\r\n public void setSelected(boolean selected) {\r\n boolean oldSelected = this.mSelected;\r\n this.mSelected = selected;\r\n if (!oldSelected && selected) {\r\n this.mMultiSelect.addToken(this.getPrototype());\r\n } else if (oldSelected && !selected) {\r\n this.mMultiSelect.removeToken(this.getPrototype());\r\n }\r\n\r\n if (oldSelected != this.mSelected) {\r\n this.invalidate();\r\n }\r\n }", "public boolean areAllItemsSelectable() { return false; }", "public void setSelectedItems(ArrayList<String> selectedType) {\n for (MoodBean moodBean: dataList) {\n if (selectedType.contains(moodBean.getName())) {\n selectedItems[moodBean.getIndex()] = true;\n } else {\n selectedItems[moodBean.getIndex()] = false;\n }\n }\n }", "public void setSelectedItemsOnly(boolean selectedItemsOnly) {\n this.selectedItemsOnly = selectedItemsOnly;\n }", "public List<F> getSelected() {\n return selected;\n }", "public boolean IsSelected1(int i) {\n\t\treturn theSelected1[i];\n\t}", "public SparseBooleanArray getSelectedIds() {\n return mSelectedItemsIds;\n }", "public void setMultiSelect(int modifiers) {\n\t\t_multiMods = modifiers;\n\t}", "@Override\n\tpublic boolean isSelected() {\n\t\treturn false;\n\t}", "public boolean isMultiple() {\n return multiple;\n }", "public boolean isMultiple() {\r\n return multiple;\r\n }", "@Override\n\tpublic void setSelected(boolean selected) {\n\t\t\n\t}", "public void select(List<Object> objs, boolean selectionFlag) throws Exception;", "public boolean isSelected();", "public boolean isSelected();", "public Boolean getIsselected() {\n return isselected;\n }", "public Boolean getIsselected() {\n return isselected;\n }", "boolean getMultiple();", "public boolean isSelected() {\n\t\treturn iAmSelected;\n\t}", "@Override\r\n protected ObservableList<TreeItem> getSelectedItems() {\r\n return getSelectionModel().getSelectedItems();\r\n }", "@Override\r\n\tpublic String[] getSelected() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String[] getSelected() {\n\t\treturn null;\r\n\t}", "boolean isSetMultiple();", "public boolean isSelected() {\r\n return isSelected;\r\n }", "public void setSelected(List<F> selected) {\n this.selected = selected;\n }", "public void beginSelection()\n {\n\tisMultiSelection = true;\n\tsetMaxCheckCount(-1);\n }", "public boolean getIsSelected() {\n return this.isSelected;\n }", "boolean isSelected();", "boolean isSelected();", "boolean isSelected();", "public void setSelected(boolean selected) \n {\n this.selected = selected;\n }", "public void initSelectedItems(int position) {\n\n/* for(int i=0; i < itemsList.size(); i++){\n selectView(i, itemsList.get(i).isSelected());\n }*/\n }", "@Override\n\tpublic void onSelect(String selections, EntityLabel el) {\n\t\tLog.d(TAG, \"MULTISELECT : ON SELECT CALLED \" + selections);\n\n\t\tList<String> listOfSelectedItems = Arrays.asList(selections.split(\",\"));\n\t\t/*for (String selected : listOfSelectedItems) {\n\t\t\tinvokeChildrens(new EntityLabel(el.getId(), selected));\n\t\t}*/\n\t\tinvokeChildrens(el, listOfSelectedItems);\n\t}", "public void setSelected(boolean selected);", "public abstract boolean isSelected();", "static void setNotSelected(){isSelected=false;}", "protected boolean isSelected(Object itemValue, Object[] values) {\r\n if (values != null) {\r\n int len = values.length;\r\n // check all items in the array\r\n for (int i=0; i<len; i++) {\r\n if (values[i].equals(itemValue)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "public ArrayList<String> getSelectedItems() {\n ArrayList<String> selectedType = new ArrayList<>();\n for (int i = 0; i < selectedItems.length; i++) {\n if (selectedItems[i]) {\n selectedType.add(dataList.get(i).getName());\n }\n }\n return selectedType;\n }", "@NonNull\n public List<T> getSelectedList() {\n final List<T> list = new ArrayList<>();\n final SparseBooleanArray selectedItems = getSelectedItems();\n for (int i = 0; i < selectedItems.size(); i++) {\n final T model = getList().get(selectedItems.keyAt(i));\n list.add(model);\n }\n return list;\n }", "private boolean itemSelect(boolean refresh, @MagicConstant(flags = {NEXT_DEFAULT, NEXT_REVERSED, NEXT_STOP_WHEN_END, NEXT_EVERY_ITEM}) int flags) {\n int index = samplesList.getSelectedIndex();\n int next = shipment.getNextIndex(index, flags);\n if (next < 0) return false;\n if (refresh) {\n refreshUI(UI_SAMPLE_INFO | UI_SELECTION, next);\n }\n return true;\n }", "public boolean IsSelected3(int i) {\n\t\treturn theSelected3[i];\n\t}", "public boolean isSelected()\n {\n\treturn _isSelected;\n }", "public void cabSelectAll() {\n ListView lv = getListView();\n int vCnt = lv.getCount();\n \n if (this.selectedListItems.size() == vCnt) {\n \tcabDeselectAll();\n \treturn;\n }\n \n // clear this out because it will be reset in the\n // onItemCheckedStateChanged callback\n selectedListItems.clear();\n for (int i = 0; i < vCnt; i++) {\n \tlv.setItemChecked(i, true);\n }\n \n redrawListView();\n }", "private void pushSelection()\n {\n ArrayList<Integer> selectedIndices = new ArrayList<>();\n ArrayList<Signal> newSelected = new ArrayList<>();\n for(Signal s: selected)\n {\n int index = listed.indexOf(s);\n if(index >= 0)\n {\n selectedIndices.add(index);\n newSelected.add(s);\n }\n }\n selected.clear();\n selected.addAll(newSelected);\n int[] indices = new int[selectedIndices.size()];\n for(int i = 0; i < selectedIndices.size(); i++)\n {\n indices[i] = selectedIndices.get(i);\n }\n signalList.setSelectedIndices(indices);\n }", "public boolean testSelected() {\n // test if set\n boolean set = Card.isSet(\n selectedCards.get(0).getCard(),\n selectedCards.get(1).getCard(),\n selectedCards.get(2).getCard()\n );\n\n // set currentlySelected to false and replace with new Cards (if applicable)\n for (BoardSquare bs : selectedCards)\n bs.setCurrentlySelected(false);\n\n // handle if set\n if (set) {\n if (!deck.isEmpty() && this.numCardsOnBoard() == 12) {\n for (BoardSquare bs : selectedCards)\n bs.setCard(deck.getTopCard());\n }\n else if (!deck.isEmpty() && this.numCardsOnBoard() < 12) {\n board.compressBoard(selectedCards);\n this.add3();\n }\n else {\n board.compressBoard(selectedCards);\n }\n }\n\n // clear ArrayList\n selectedCards.clear();\n\n // return bool\n return set;\n }", "private void checkSelectable() {\n \t\tboolean oldIsSelectable = isSelectable;\n \t\tisSelectable = isSelectAllEnabled();\n \t\tif (oldIsSelectable != isSelectable) {\n \t\t\tfireEnablementChanged(SELECT_ALL);\n \t\t}\n \t}", "public int getSelected() {\n \t\treturn selected;\n \t}", "public void select(boolean a)\n {\n selected = a;\n }", "private void toggleMultiple(final Set<Long> selectedSet, final MultiToggleHelper helper) {\n final Cursor c = mListAdapter.getCursor();\n if (c == null || c.isClosed()) {\n return;\n }\n\n final HashMap<Long, Boolean> setValues = Maps.newHashMap();\n boolean allWereSet = true;\n\n c.moveToPosition(-1);\n while (c.moveToNext()) {\n long id = c.getInt(MessagesAdapter.COLUMN_ID);\n if (selectedSet.contains(id)) {\n boolean value = helper.getField(c);\n setValues.put(id, value);\n allWereSet = allWereSet && value;\n }\n }\n\n if (!setValues.isEmpty()) {\n final boolean newValue = !allWereSet;\n c.moveToPosition(-1);\n // TODO: we should probably put up a dialog or some other progress indicator for this.\n EmailAsyncTask.runAsyncParallel(new Runnable() {\n @Override\n public void run() {\n for (long id : setValues.keySet()) {\n if (setValues.get(id) != newValue) {\n helper.setField(id, newValue);\n }\n }\n }});\n }\n }", "@Override\n public void setSelectedItems(List<VDS> value) {\n if (value != null && !value.equals(getSelectedItems())) {\n super.setSelectedItems(new ArrayList<VDS>(value));\n } else if (value != null && value.equals(getSelectedItems())) {\n // do nothing, nothing changed\n } else {\n super.setSelectedItems(value);\n }\n if (value == null || value.isEmpty() || value.size() > 1) {\n super.setSelectedItem(null);\n } else {\n super.setSelectedItem(value.get(0));\n }\n }", "public void setSelected(List<T> value) {\n if (isMulti()) {\n getElement().setSelected(SerDes.mirror(value));\n } else {\n getElement().setSelected(value.isEmpty()?null:SerDes.mirror(value.iterator().next()));\n }\n }", "protected boolean isSelected(Object itemValue, Object valueArray) {\r\n if (valueArray != null) {\r\n int len = Array.getLength(valueArray);\r\n // check all items in the array\r\n for (int i=0; i<len; i++) {\r\n Object value = Array.get(valueArray, i);\r\n if (value == null) {\r\n if (itemValue == null) {\r\n return true;\r\n }\r\n } else if (value.equals(itemValue)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "public void updateItemState(DATA data, boolean selected ) {\r\n\t\tString key = this.dataKeyExtractor.generateSingleStringKey(data);\r\n\t\tif ( modeSelectAll){\r\n\t\t\tif ( selected)\r\n\t\t\t\tunselectedDataIds.remove(selected);\r\n\t\t\telse\r\n\t\t\t\tunselectedDataIds.add(key);\r\n\t\t}else{\r\n\t\t\tif ( selected)\r\n\t\t\t\tselectedDataIds.remove(selected);\r\n\t\t\telse\r\n\t\t\t\tselectedDataIds.add(key);\r\n\t\t}\r\n\t}", "public void setSelected(boolean select) {\r\n isSelected = select;\r\n }", "@Override\r\n @Test\r\n @ConditionalIgnore(condition = IgnoreTreeUncontained.class)\r\n public void testSelectedOnSetItemsWithoutUncontained() {\r\n TreeItem uncontained = createItem(\"uncontained\");\r\n // prepare state\r\n getSelectionModel().select(uncontained);\r\n assertEquals(\"sanity: having uncontained selectedItem\", uncontained, getSelectedItem());\r\n assertEquals(\"sanity: no selected index\", -1, getSelectedIndex());\r\n // make uncontained part of the items by replacing old items\r\n ObservableList copy = FXCollections.observableArrayList(items);\r\n int insertIndex = 3;\r\n copy.add(insertIndex, createItem(\"anything\"));\r\n setAllItems(copy);\r\n assertEquals(\"sanity: selectedItem unchanged\", uncontained, getSelectedItem());\r\n assertEquals(\"selectedIndex unchanged\", -1, getSelectedIndex());\r\n }", "private void addSelectedItems(GroupOwnerModel group,\r\n\t\t\tList<GroupDetail> groupList, List<SelectItem> items) {\r\n\t\tif(ObjectUtil.isListNotEmpty(groupList)){\r\n\t\t\tfor(GroupDetail gd : groupList){\r\n\t\t\t\tif(gd.getStatusID() !=null && ! gd.getStatusID().getName().trim().equalsIgnoreCase(WsrdConstants.INACTIVE) && ! gd.getStatusID().getName().trim().equalsIgnoreCase(WsrdConstants.INWORK)){\r\n\t\t\t\tSelectItem item = new SelectItem(gd.getGroupID(), gd.getGroupOwner().trim());\r\n\t\t\t\t/*boolean associated = wsrdAdminService.wsrdIPTAssociation(gd);\r\n\t\t\t\tif(associated){\r\n\t\t\t\t\titem.setDisabled(true);\r\n\t\t\t\t}*/\r\n\t\t\t\tif(gd.getIptID()!=null && !gd.getIptID().getIptID().equals(group.getIptID())){\r\n\t\t\t\t\t\titem.setDisabled(true);\r\n\t\t\t\t\t\titem.setNoSelectionOption(true);\r\n\t\t\t\t}/*else if(associated){\r\n\t\t\t\t\titem.setNoSelectionOption(true);\r\n\t\t\t\t}*/\r\n\t\t\t\titems.add(item);\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public List<AnswerModel> getSelectedAnswers() {\n\t\tList<AnswerModel> result = new LinkedList<AnswerModel>();\n\t\tfor (int i = 0; i < checked.size(); i++) {\n\t\t\tif (checked.get(i)) {\n\t\t\t\tresult.add(new AnswerModel(question_id,\n\t\t\t\t\t\tConstantData.RESPONSE_TYPE_MULTIPLE_SELECT, this.value\n\t\t\t\t\t\t\t\t.get(i)));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "void setMultiple(boolean multiple);", "public void setSelected(boolean selected) {\n this.selected = selected;\n }", "public ObservableValue<List<T>> selected() {\n return createObservableValue(this::getSelected, this::setSelected, \"selected-changed\");\n }", "public void setSelection(TabItem[] items) {\n checkWidget();\n if (items == null)\n error(SWT.ERROR_NULL_ARGUMENT);\n if (items.length == 0) {\n setSelection(-1, false);\n } else {\n for (int i = items.length - 1; i >= 0; --i) {\n int index = indexOf(items[i]);\n if (index != -1)\n setSelection(index, false);\n }\n }\n }", "public boolean IsSelected0(int i) {\n\t\treturn theSelected0[i];\n\t}", "void multiSelection(DynamicTable table, String element) {\n //String upElement = element.substring(0,1).toUpperCase() +\n // element.substring(1);\n //................MULTIPLE SELECTION--Add DROP-DOWN MENU ....................\n Select multiTypeSelect = new Select(\"pmultitype\");\n multiTypeSelect.addOption(new Option(\"Only 1 \"+element+\" required\",\"1\", false));\n multiTypeSelect.addOption(new Option(\"12 month \"+element+\"s\", \"2\", false));\n multiTypeSelect.addOption(new Option(\"4 seasonal \"+element+\"\", \"3\", false));\n multiTypeSelect.addOption(new Option(\"A \"+element+\" / month (yrs*12)\", \"4\", false));\n\n //................PLOT TYPE SELECTION input box....................\n table.addRow(ec.cr2ColRow(\n chFSize(\"Multi-\"+element+\" Selection: \",\"-1\"), multiTypeSelect));\n\n }", "public BooleanProperty getSelected() {\n return selected;\n }", "public void setSelected(boolean selected) {\n\t\tiAmSelected = selected;\n\t}", "public void experimental_allowMultipleAdaptiveSelections() {\n this.allowMultipleAdaptiveSelections = true;\n }" ]
[ "0.7813939", "0.76815987", "0.76800895", "0.750864", "0.74255615", "0.7309587", "0.72589254", "0.7204263", "0.6852939", "0.68446517", "0.671502", "0.6670554", "0.65769446", "0.6551505", "0.6499681", "0.6477105", "0.64644396", "0.64641804", "0.6458058", "0.64177", "0.6391446", "0.63779384", "0.6363169", "0.63589907", "0.63551664", "0.63444364", "0.6296739", "0.6283614", "0.6271258", "0.6271258", "0.62648237", "0.625932", "0.6252291", "0.6247648", "0.6239802", "0.6228703", "0.6211468", "0.6187151", "0.61769253", "0.61739415", "0.6168511", "0.6161322", "0.6149802", "0.61452293", "0.6132654", "0.6122671", "0.6110766", "0.60945415", "0.60945415", "0.60895866", "0.60895866", "0.6069575", "0.6068648", "0.6067153", "0.60663193", "0.60663193", "0.606359", "0.60604566", "0.6043839", "0.60417527", "0.6036736", "0.60245967", "0.60245967", "0.60245967", "0.60228", "0.6015881", "0.5998733", "0.5982271", "0.5976043", "0.59655464", "0.5952293", "0.5914579", "0.59000045", "0.5890527", "0.5869642", "0.58676636", "0.5860788", "0.5849784", "0.58495426", "0.5845367", "0.58314824", "0.5797585", "0.5793713", "0.5788245", "0.578688", "0.57816994", "0.57763356", "0.5764316", "0.5757791", "0.57550037", "0.57492834", "0.57298166", "0.5722915", "0.57174164", "0.5712106", "0.5703264", "0.57024753", "0.57021934", "0.5697094", "0.5694054" ]
0.66469324
12
!wca! set multi: boolean When true, multiple items may be selected at once (in this case, selected is an array of currently selected items). When false, only one item may be selected at a time.
public void setMulti(boolean value) { getElement().setMulti(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMultiSelection(boolean multiSelection)\n {\n this.multiSelection = multiSelection;\n }", "public void setMultiSelection(boolean multiSelection)\n\t{\n\t\tthis.setMultiple(multiSelection);\n\n\t\treturn;\n\t}", "public boolean isMultiSelection()\n\t{\n\t\treturn this.isMultiple();\n\t}", "public boolean isMultiSelection()\n {\n return multiSelection;\n }", "public void setMultipleSelection(Boolean multipleSelection){\n m_multipleSelection = multipleSelection;\n }", "public void setMultiSelect(boolean multiSelect) {\r\n this.multiSelect = multiSelect;\r\n }", "public Boolean isMultipleSelection() {\n return m_multipleSelection;\n }", "public boolean isMultiSelect() {\r\n return multiSelect;\r\n }", "void setSelectedItems(ValueType selectedItems);", "@NonNull\n public SparseBooleanArray getSelectedItems() {\n return selectedItems;\n }", "public void itemSelected(boolean selected);", "public boolean isSelected() { return selected; }", "public void itemsSelected() {\n getEntitySelect().close();\n Collection<T> selectedValues = getEntitySelect().getResults().getSelectedValues();\n setReferencesToParentAndPersist((T[]) selectedValues.toArray());\n showAddSuccessful();\n }", "@Override\r\n public void setSelected(boolean selected) {\r\n boolean oldSelected = this.mSelected;\r\n this.mSelected = selected;\r\n if (!oldSelected && selected) {\r\n this.mMultiSelect.addToken(this.getPrototype());\r\n } else if (oldSelected && !selected) {\r\n this.mMultiSelect.removeToken(this.getPrototype());\r\n }\r\n\r\n if (oldSelected != this.mSelected) {\r\n this.invalidate();\r\n }\r\n }", "private boolean[] SetSelected(boolean[] selected, JList list) {\n\t\tint[] indices = list.getSelectedIndices();\n\t\tfor (int i = 0; i < selected.length; i++) {\n\t\t\tselected[i] = false;\n\t\t}\n\t\tfor (int i = 0; i < indices.length; i++) {\n\t\t\tselected[indices[i]] = true;\n\t\t}\n\t\treturn selected;\n\t}", "List<String> getSelectedItems();", "public void getSelected() {\n for (int i = 0; i < list.size(); i++) {\n if (selectColumn.getCellObservableValue(i).getValue().isSelected()) {\n selectedIngredients.add(i + 1);\n }\n }\n }", "public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }", "abstract public void cabMultiselectPrimaryAction();", "public boolean setItemsSelected(Iterable<String> ids, boolean selected) {\n boolean changed = false;\n for (String id: ids) {\n boolean itemChanged = selected ? mSelection.add(id) : mSelection.remove(id);\n if (itemChanged) {\n notifyItemStateChanged(id, selected);\n }\n changed |= itemChanged;\n }\n notifySelectionChanged();\n return changed;\n }", "public boolean isSelected() {\n \t\treturn selected;\n \t}", "public boolean isSelected(){\r\n return selected;\r\n }", "public void setSelectedItems(ArrayList<String> selectedType) {\n for (MoodBean moodBean: dataList) {\n if (selectedType.contains(moodBean.getName())) {\n selectedItems[moodBean.getIndex()] = true;\n } else {\n selectedItems[moodBean.getIndex()] = false;\n }\n }\n }", "public boolean isSelected() \n {\n return selected;\n }", "public void beginSelection()\n {\n\tisMultiSelection = true;\n\tsetMaxCheckCount(-1);\n }", "public boolean isMulti() {\n return getElement().isMulti();\n }", "public void setSelectedItemsOnly(boolean selectedItemsOnly) {\n this.selectedItemsOnly = selectedItemsOnly;\n }", "@Override\n\tpublic void setSelected(boolean selected) {\n\t\t\n\t}", "public boolean isSelected() { \n \treturn selection != null; \n }", "public boolean isSelected()\n {\n return selected;\n }", "public void initSelectedItems(int position) {\n\n/* for(int i=0; i < itemsList.size(); i++){\n selectView(i, itemsList.get(i).isSelected());\n }*/\n }", "public void setSelected(List<F> selected) {\n this.selected = selected;\n }", "public List<T> getSelected() {\n Unknown selected = getElement().getSelected();\n if (isMulti()) {\n return SerDes.unmirrorList(selected.<Mirrored<List<T>>>cast(), getItemClass());\n } else {\n return Collections.singletonList(SerDes.unmirror(selected.cast(), getItemClass()));\n }\n }", "@Override\n\tpublic boolean isSelected() {\n\t\treturn false;\n\t}", "public SparseBooleanArray getSelectedIds() {\n return mSelectedItems;\n }", "public boolean isSelected()\n\t{\n\t\treturn selected;\n\t}", "public void setMultiple(boolean isMultiple) {\n this.multiple = isMultiple;\n }", "public boolean areAllItemsSelectable() { return false; }", "public boolean isSelected() {\r\n return selected;\r\n }", "@Override\n\tpublic void onSelect(String selections, EntityLabel el) {\n\t\tLog.d(TAG, \"MULTISELECT : ON SELECT CALLED \" + selections);\n\n\t\tList<String> listOfSelectedItems = Arrays.asList(selections.split(\",\"));\n\t\t/*for (String selected : listOfSelectedItems) {\n\t\t\tinvokeChildrens(new EntityLabel(el.getId(), selected));\n\t\t}*/\n\t\tinvokeChildrens(el, listOfSelectedItems);\n\t}", "public void setMultiSelect(int modifiers) {\n\t\t_multiMods = modifiers;\n\t}", "public boolean isSelected() {\r\n\t\treturn selected;\r\n\t}", "public void setSelected(boolean selected) \n {\n this.selected = selected;\n }", "public boolean getSelected()\n {\n return selected; \n }", "public boolean isSelected() {\n\t\treturn selected;\n\t}", "public boolean isSelected() {\n\t\treturn selected;\n\t}", "public void cabSelectAll() {\n ListView lv = getListView();\n int vCnt = lv.getCount();\n \n if (this.selectedListItems.size() == vCnt) {\n \tcabDeselectAll();\n \treturn;\n }\n \n // clear this out because it will be reset in the\n // onItemCheckedStateChanged callback\n selectedListItems.clear();\n for (int i = 0; i < vCnt; i++) {\n \tlv.setItemChecked(i, true);\n }\n \n redrawListView();\n }", "public void select(List<Object> objs, boolean selectionFlag) throws Exception;", "public void setSelected(boolean selected);", "private void pushSelection()\n {\n ArrayList<Integer> selectedIndices = new ArrayList<>();\n ArrayList<Signal> newSelected = new ArrayList<>();\n for(Signal s: selected)\n {\n int index = listed.indexOf(s);\n if(index >= 0)\n {\n selectedIndices.add(index);\n newSelected.add(s);\n }\n }\n selected.clear();\n selected.addAll(newSelected);\n int[] indices = new int[selectedIndices.size()];\n for(int i = 0; i < selectedIndices.size(); i++)\n {\n indices[i] = selectedIndices.get(i);\n }\n signalList.setSelectedIndices(indices);\n }", "public boolean IsSelected1(int i) {\n\t\treturn theSelected1[i];\n\t}", "@Override\n public void setSelectedItems(List<VDS> value) {\n if (value != null && !value.equals(getSelectedItems())) {\n super.setSelectedItems(new ArrayList<VDS>(value));\n } else if (value != null && value.equals(getSelectedItems())) {\n // do nothing, nothing changed\n } else {\n super.setSelectedItems(value);\n }\n if (value == null || value.isEmpty() || value.size() > 1) {\n super.setSelectedItem(null);\n } else {\n super.setSelectedItem(value.get(0));\n }\n }", "@Override\r\n protected ObservableList<TreeItem> getSelectedItems() {\r\n return getSelectionModel().getSelectedItems();\r\n }", "public boolean isSelected();", "public boolean isSelected();", "public SparseBooleanArray getSelectedIds() {\n return mSelectedItemsIds;\n }", "static void setNotSelected(){isSelected=false;}", "public void setSelected(List<T> value) {\n if (isMulti()) {\n getElement().setSelected(SerDes.mirror(value));\n } else {\n getElement().setSelected(value.isEmpty()?null:SerDes.mirror(value.iterator().next()));\n }\n }", "@Override\r\n @Test\r\n @ConditionalIgnore(condition = IgnoreTreeUncontained.class)\r\n public void testSelectedOnSetItemsWithoutUncontained() {\r\n TreeItem uncontained = createItem(\"uncontained\");\r\n // prepare state\r\n getSelectionModel().select(uncontained);\r\n assertEquals(\"sanity: having uncontained selectedItem\", uncontained, getSelectedItem());\r\n assertEquals(\"sanity: no selected index\", -1, getSelectedIndex());\r\n // make uncontained part of the items by replacing old items\r\n ObservableList copy = FXCollections.observableArrayList(items);\r\n int insertIndex = 3;\r\n copy.add(insertIndex, createItem(\"anything\"));\r\n setAllItems(copy);\r\n assertEquals(\"sanity: selectedItem unchanged\", uncontained, getSelectedItem());\r\n assertEquals(\"selectedIndex unchanged\", -1, getSelectedIndex());\r\n }", "public boolean isSelected() {\r\n return isSelected;\r\n }", "private boolean itemSelect(boolean refresh, @MagicConstant(flags = {NEXT_DEFAULT, NEXT_REVERSED, NEXT_STOP_WHEN_END, NEXT_EVERY_ITEM}) int flags) {\n int index = samplesList.getSelectedIndex();\n int next = shipment.getNextIndex(index, flags);\n if (next < 0) return false;\n if (refresh) {\n refreshUI(UI_SAMPLE_INFO | UI_SELECTION, next);\n }\n return true;\n }", "public abstract boolean isSelected();", "protected boolean isSelected(Object itemValue, Object[] values) {\r\n if (values != null) {\r\n int len = values.length;\r\n // check all items in the array\r\n for (int i=0; i<len; i++) {\r\n if (values[i].equals(itemValue)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "public void setSelection(TabItem[] items) {\n checkWidget();\n if (items == null)\n error(SWT.ERROR_NULL_ARGUMENT);\n if (items.length == 0) {\n setSelection(-1, false);\n } else {\n for (int i = items.length - 1; i >= 0; --i) {\n int index = indexOf(items[i]);\n if (index != -1)\n setSelection(index, false);\n }\n }\n }", "public boolean isSelected() {\n\t\treturn iAmSelected;\n\t}", "void multiSelection(DynamicTable table, String element) {\n //String upElement = element.substring(0,1).toUpperCase() +\n // element.substring(1);\n //................MULTIPLE SELECTION--Add DROP-DOWN MENU ....................\n Select multiTypeSelect = new Select(\"pmultitype\");\n multiTypeSelect.addOption(new Option(\"Only 1 \"+element+\" required\",\"1\", false));\n multiTypeSelect.addOption(new Option(\"12 month \"+element+\"s\", \"2\", false));\n multiTypeSelect.addOption(new Option(\"4 seasonal \"+element+\"\", \"3\", false));\n multiTypeSelect.addOption(new Option(\"A \"+element+\" / month (yrs*12)\", \"4\", false));\n\n //................PLOT TYPE SELECTION input box....................\n table.addRow(ec.cr2ColRow(\n chFSize(\"Multi-\"+element+\" Selection: \",\"-1\"), multiTypeSelect));\n\n }", "@Override\r\n @Test\r\n @ConditionalIgnore(condition = IgnoreTreeUncontained.class)\r\n public void testSelectedOnSetItemsWithUncontained() {\r\n TreeItem uncontained = createItem(\"uncontained\");\r\n // prepare state\r\n getSelectionModel().select(uncontained);\r\n assertEquals(\"sanity: having uncontained selectedItem\", uncontained, getSelectedItem());\r\n assertEquals(\"sanity: no selected index\", -1, getSelectedIndex());\r\n // make uncontained part of the items by replacing old items\r\n ObservableList copy = FXCollections.observableArrayList(items);\r\n int insertIndex = 3;\r\n copy.add(insertIndex, uncontained);\r\n setAllItems(copy);\r\n assertEquals(\"sanity: selectedItem unchanged\", uncontained, getSelectedItem());\r\n assertEquals(\"selectedIndex updated\", insertIndex, getSelectedIndex());\r\n }", "boolean isSelected();", "boolean isSelected();", "boolean isSelected();", "public List<F> getSelected() {\n return selected;\n }", "public void setSelected(boolean select) {\r\n isSelected = select;\r\n }", "private void checkSelectable() {\n \t\tboolean oldIsSelectable = isSelectable;\n \t\tisSelectable = isSelectAllEnabled();\n \t\tif (oldIsSelectable != isSelectable) {\n \t\t\tfireEnablementChanged(SELECT_ALL);\n \t\t}\n \t}", "@Override\r\n\tpublic String[] getSelected() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String[] getSelected() {\n\t\treturn null;\r\n\t}", "public void updateItemState(DATA data, boolean selected ) {\r\n\t\tString key = this.dataKeyExtractor.generateSingleStringKey(data);\r\n\t\tif ( modeSelectAll){\r\n\t\t\tif ( selected)\r\n\t\t\t\tunselectedDataIds.remove(selected);\r\n\t\t\telse\r\n\t\t\t\tunselectedDataIds.add(key);\r\n\t\t}else{\r\n\t\t\tif ( selected)\r\n\t\t\t\tselectedDataIds.remove(selected);\r\n\t\t\telse\r\n\t\t\t\tselectedDataIds.add(key);\r\n\t\t}\r\n\t}", "public void setSelection (TabItem [] items) {\r\n\tcheckWidget();\r\n\tif (items == null) error (SWT.ERROR_NULL_ARGUMENT);\r\n\tif (items.length == 0) {\r\n\t\tsetSelection (-1);\r\n\t\treturn;\r\n\t}\r\n\tfor (int i=items.length-1; i>=0; --i) {\r\n\t\tint index = indexOf (items [i]);\r\n\t\tif (index != -1) setSelection (index);\r\n\t}\r\n}", "public void setSelected(boolean selected) {\n this.selected = selected;\n }", "protected void setSelectedObjects() {\r\n\t\tint index, arrayLength;\r\n\t\tVector oldObjects = (Vector) getSelectedObjects().clone();\r\n\t\tgetSelectedObjects().removeAllElements();\r\n\t\tint[] intArray = table.getSelectedRows();\r\n\t\tarrayLength = intArray.length;\r\n\t\tfor (int i = 0; i < arrayLength; i++) {\r\n\t\t\tindex = intArray[i];\r\n\t\t\tif (index >= 0) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (dataObjects.size() > 0)\r\n\t\t\t\t\t\tselectedObjects.addElement(dataObjects.elementAt(index));\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tselectedObjects.addElement(null);\r\n\t\t\t\t} catch (Throwable t) {\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Object newSingleSelection = getSelectedRowObject();\r\n\t\tnotifySelectedObjectsChanged(oldObjects, selectedObjects);\r\n\t\tnotifySelectedObjectChanged(oldObjects, selectedObjects);\r\n\t}", "public boolean isMultiple() {\n return multiple;\n }", "public void setSelected(boolean selected) {\n\t\tiAmSelected = selected;\n\t}", "public boolean isMultiple() {\r\n return multiple;\r\n }", "private void toggleMultiple(final Set<Long> selectedSet, final MultiToggleHelper helper) {\n final Cursor c = mListAdapter.getCursor();\n if (c == null || c.isClosed()) {\n return;\n }\n\n final HashMap<Long, Boolean> setValues = Maps.newHashMap();\n boolean allWereSet = true;\n\n c.moveToPosition(-1);\n while (c.moveToNext()) {\n long id = c.getInt(MessagesAdapter.COLUMN_ID);\n if (selectedSet.contains(id)) {\n boolean value = helper.getField(c);\n setValues.put(id, value);\n allWereSet = allWereSet && value;\n }\n }\n\n if (!setValues.isEmpty()) {\n final boolean newValue = !allWereSet;\n c.moveToPosition(-1);\n // TODO: we should probably put up a dialog or some other progress indicator for this.\n EmailAsyncTask.runAsyncParallel(new Runnable() {\n @Override\n public void run() {\n for (long id : setValues.keySet()) {\n if (setValues.get(id) != newValue) {\n helper.setField(id, newValue);\n }\n }\n }});\n }\n }", "private void addSelectedItems(GroupOwnerModel group,\r\n\t\t\tList<GroupDetail> groupList, List<SelectItem> items) {\r\n\t\tif(ObjectUtil.isListNotEmpty(groupList)){\r\n\t\t\tfor(GroupDetail gd : groupList){\r\n\t\t\t\tif(gd.getStatusID() !=null && ! gd.getStatusID().getName().trim().equalsIgnoreCase(WsrdConstants.INACTIVE) && ! gd.getStatusID().getName().trim().equalsIgnoreCase(WsrdConstants.INWORK)){\r\n\t\t\t\tSelectItem item = new SelectItem(gd.getGroupID(), gd.getGroupOwner().trim());\r\n\t\t\t\t/*boolean associated = wsrdAdminService.wsrdIPTAssociation(gd);\r\n\t\t\t\tif(associated){\r\n\t\t\t\t\titem.setDisabled(true);\r\n\t\t\t\t}*/\r\n\t\t\t\tif(gd.getIptID()!=null && !gd.getIptID().getIptID().equals(group.getIptID())){\r\n\t\t\t\t\t\titem.setDisabled(true);\r\n\t\t\t\t\t\titem.setNoSelectionOption(true);\r\n\t\t\t\t}/*else if(associated){\r\n\t\t\t\t\titem.setNoSelectionOption(true);\r\n\t\t\t\t}*/\r\n\t\t\t\titems.add(item);\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void testMarkAllItemsSelected()\n\t{\n\t\t// Arrange\n\t\taddListWith6Items(\"testlist\");\n\n\t\t// Act\n\t\tservice.markAllItemsSelected(2l, true);\n\t\tActivitiesDataSource allLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tActivityBean newList = allLists.getActivity(\"testlist\");\n\n\t\t// Assert\n\t\tCategoryBean newCategory1 = newList.getCategory(\"cat1\");\n\t\tCategoryBean newCategory2 = newList.getCategory(\"cat2\");\n\t\tassertTrue(newCategory1.getEntry(\"item1\").getIsSelected());\n\t\tassertTrue(newCategory1.getEntry(\"item2\").getIsSelected());\n\t\tassertTrue(newCategory1.getEntry(\"item3\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item4\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item5\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item6\").getIsSelected());\t\t\n\t\t\n\t\t// Act\n\t\tservice.markAllItemsSelected(2l, false);\n\t\tallLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tnewList = allLists.getActivity(\"testlist\");\n\n\t\t// Assert\n\t\tnewCategory1 = newList.getCategory(\"cat1\");\n\t\tnewCategory2 = newList.getCategory(\"cat2\");\n\t\tassertFalse(newCategory1.getEntry(\"item1\").getIsSelected());\n\t\tassertFalse(newCategory1.getEntry(\"item2\").getIsSelected());\n\t\tassertFalse(newCategory1.getEntry(\"item3\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item4\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item5\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item6\").getIsSelected());\t\n\t}", "public void setSelected(boolean selected) {\t\t\t\t\n\t\tthis.selected = selected;\t\t\t\t\t\t\n\t}", "public boolean testSelected() {\n // test if set\n boolean set = Card.isSet(\n selectedCards.get(0).getCard(),\n selectedCards.get(1).getCard(),\n selectedCards.get(2).getCard()\n );\n\n // set currentlySelected to false and replace with new Cards (if applicable)\n for (BoardSquare bs : selectedCards)\n bs.setCurrentlySelected(false);\n\n // handle if set\n if (set) {\n if (!deck.isEmpty() && this.numCardsOnBoard() == 12) {\n for (BoardSquare bs : selectedCards)\n bs.setCard(deck.getTopCard());\n }\n else if (!deck.isEmpty() && this.numCardsOnBoard() < 12) {\n board.compressBoard(selectedCards);\n this.add3();\n }\n else {\n board.compressBoard(selectedCards);\n }\n }\n\n // clear ArrayList\n selectedCards.clear();\n\n // return bool\n return set;\n }", "@Override\n public void onCheckedChanged(CompoundButton buttonView,\n boolean isChecked) {\n if (isChecked) {\n if (adapter.getSelectedItems().size() >= adapter.getMax()) {\n Toast.makeText(context,\n \"最多选择\" + adapter.getMax() + \"张图片\", Toast.LENGTH_LONG).show();\n checkBox.setChecked(false);\n return;\n }\n item.selectedIndex = adapter.getSelectedItems().size();\n adapter.getSelectedItems().add(item);\n } else {\n item.selectedIndex = -1;\n adapter.getSelectedItems().remove(item);\n// adapter.getSelectedItems().remove()\n }\n adapter.refreshIndex();\n item.isSelected = isChecked;\n }", "public void experimental_allowMultipleAdaptiveSelections() {\n this.allowMultipleAdaptiveSelections = true;\n }", "public void setSelected(boolean selected)\n\t{\n\t\tthis.selected = selected;\n\t}", "public void setSelected(boolean selected) {\r\n\t\tthis.selected = selected;\r\n\t}", "protected boolean isSelected(Object itemValue, Object valueArray) {\r\n if (valueArray != null) {\r\n int len = Array.getLength(valueArray);\r\n // check all items in the array\r\n for (int i=0; i<len; i++) {\r\n Object value = Array.get(valueArray, i);\r\n if (value == null) {\r\n if (itemValue == null) {\r\n return true;\r\n }\r\n } else if (value.equals(itemValue)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "boolean isSetMultiple();", "void setSelected(boolean selected) {\n if (selected == isSelected()) {\n return;\n }\n if (selected) {\n highlight();\n } else {\n unhighlight();\n }\n this.selected = selected;\n }", "public void select(boolean a)\n {\n selected = a;\n }", "private void itemSelected(){\n \t//* count selected items\n \tint c=0;\n \tfor (int i = 0; i<jTable4.getRowCount(); i++){\n \t\tif((Boolean)jTable4.getModel().getValueAt(i, 0)){\n \t\t\tc++;\n \t\t}\n \t}\n \tif(c==0){\n \t\treturn; //* if no item selected then do nothing\n \t}\n \t\n \t//* get the new selected items\n \tString[][] tmp1=new String[c][2];\n \tfor (int i = 0, j=0; i<jTable4.getRowCount(); i++){\n \t\tif((Boolean)jTable4.getModel().getValueAt(i, 0)){\n \t\t\ttmp1[j]=new String[2];\n \t\t\ttmp1[j][0]=jTable4.getModel().getValueAt(i, 1).toString();\n \t\t\ttmp1[j++][1]=\"0\";\n \t\t}\n \t}\n \t\n \t//* get the previously selected items\n \tString[][] tmp2=new String[jTable3.getModel()==null? 0: jTable3.getModel().getRowCount()][9];\n \tfor (int i = 0; i<tmp2.length; i++){\n \t\ttmp2[i]=new String[9];\n \t\ttmp2[i][0]=jTable3.getModel().getValueAt(i, 1).toString();\n \t\ttmp2[i][1]=jTable3.getModel().getValueAt(i, 2).toString();\n \t\ttmp2[i][2]=jTable3.getModel().getValueAt(i, 3).toString();\n \t\ttmp2[i][3]=jTable3.getModel().getValueAt(i, 5).toString();\n \t\ttmp2[i][4]=jTable3.getModel().getValueAt(i, 7).toString();\n \t\ttmp2[i][5]=jTable3.getModel().getValueAt(i, 9).toString();\n \t\ttmp2[i][6]=jTable3.getModel().getValueAt(i, 11).toString();\n \t\ttmp2[i][7]=jTable3.getModel().getValueAt(i, 13).toString();\n \t\ttmp2[i][8]=jTable3.getModel().getValueAt(i, 15).toString();\n \t}\n \tfillPoDet(tmp2, tmp1); //* reconstruct PO table\n \tjTabbedPane1.setSelectedIndex(0);\n }", "public void select(boolean selected) {\n for (int i = 0; i < this.size(); i++) {\n DrawEvent event = (DrawEvent) this.elementAt(i);\n event.getShape().setSelected(selected);\n }\n }", "public Boolean getIsselected() {\n return isselected;\n }", "public Boolean getIsselected() {\n return isselected;\n }", "public boolean getIsSelected() {\n return this.isSelected;\n }" ]
[ "0.7958267", "0.76499", "0.7531192", "0.7509803", "0.7420452", "0.7325326", "0.7246534", "0.70948887", "0.6999635", "0.6632035", "0.66185266", "0.66049135", "0.66008896", "0.65843165", "0.6583947", "0.6541008", "0.64281046", "0.6404442", "0.6392198", "0.6392008", "0.6382972", "0.6376374", "0.6368478", "0.6366291", "0.6347788", "0.6316077", "0.63158524", "0.6302276", "0.62834805", "0.62815124", "0.6255625", "0.6254204", "0.6244069", "0.62302154", "0.6225993", "0.6219536", "0.6204757", "0.6193286", "0.6188191", "0.6186436", "0.6170467", "0.6170108", "0.6148779", "0.61389244", "0.6135775", "0.6135775", "0.6119248", "0.6105583", "0.61007476", "0.6096036", "0.606835", "0.6059455", "0.60442126", "0.60374826", "0.60374826", "0.6035125", "0.59993815", "0.5990944", "0.59859854", "0.59841704", "0.59829956", "0.5976884", "0.59618175", "0.59561557", "0.59478986", "0.59438974", "0.59436154", "0.59373146", "0.59373146", "0.59373146", "0.5935264", "0.59311885", "0.592906", "0.5913425", "0.5913425", "0.5906184", "0.5879383", "0.5867874", "0.58652675", "0.58526874", "0.58495533", "0.5841861", "0.584006", "0.5837452", "0.58328164", "0.58318245", "0.58167005", "0.5815009", "0.58114123", "0.58046925", "0.5801669", "0.5799812", "0.5798569", "0.5788036", "0.57772547", "0.57730526", "0.5771619", "0.5757312", "0.5757312", "0.5749916" ]
0.6362154
24
!wca! observe multi: boolean !wca! get selected: ?Object|?Array When multi is true, this is an array that contains any selected. When multi is false, this is the currently selected item, or null if no item is selected.
public List<T> getSelected() { Unknown selected = getElement().getSelected(); if (isMulti()) { return SerDes.unmirrorList(selected.<Mirrored<List<T>>>cast(), getItemClass()); } else { return Collections.singletonList(SerDes.unmirror(selected.cast(), getItemClass())); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NonNull\n public SparseBooleanArray getSelectedItems() {\n return selectedItems;\n }", "public ObservableValue<List<T>> selected() {\n return createObservableValue(this::getSelected, this::setSelected, \"selected-changed\");\n }", "public boolean getSelected()\n {\n return selected; \n }", "@Override\r\n\tpublic String[] getSelected() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String[] getSelected() {\n\t\treturn null;\r\n\t}", "public List<F> getSelected() {\n return selected;\n }", "public Boolean isMultipleSelection() {\n return m_multipleSelection;\n }", "public boolean isMultiSelection()\n {\n return multiSelection;\n }", "public int getSelected() {\n \t\treturn selected;\n \t}", "public boolean isSelected() { return selected; }", "public SparseBooleanArray getSelectedIds() {\n return mSelectedItems;\n }", "public boolean isSelected()\n {\n return selected;\n }", "public boolean isSelected() \n {\n return selected;\n }", "public void getSelected() {\n for (int i = 0; i < list.size(); i++) {\n if (selectColumn.getCellObservableValue(i).getValue().isSelected()) {\n selectedIngredients.add(i + 1);\n }\n }\n }", "public boolean isSelected() {\n \t\treturn selected;\n \t}", "public Object getSelection() {\n return selection;\n }", "public boolean isMultiSelection()\n\t{\n\t\treturn this.isMultiple();\n\t}", "public S getSelected()\n\t\t{\n\t\t\treturn newValue;\n\t\t}", "public boolean isSelected(){\r\n return selected;\r\n }", "public boolean isSelected()\n\t{\n\t\treturn selected;\n\t}", "public boolean isSelected() {\r\n return selected;\r\n }", "List<String> getSelectedItems();", "public boolean isMultiSelect() {\r\n return multiSelect;\r\n }", "public BooleanProperty getSelected() {\n return selected;\n }", "public TabItem [] getSelection () {\r\n\tcheckWidget();\r\n\tint index = getSelectionIndex ();\r\n\tif (index == -1) return new TabItem [0];\r\n\treturn new TabItem [] {items [index]};\r\n}", "public boolean isSelected() {\r\n\t\treturn selected;\r\n\t}", "public boolean isSelected() {\n\t\treturn selected;\n\t}", "public boolean isSelected() {\n\t\treturn selected;\n\t}", "public TabItem[] getSelection() {\n checkWidget();\n int index = OS.SendMessage(handle, OS.TCM_GETCURSEL, 0, 0);\n if (index == -1)\n return new TabItem[0];\n return new TabItem[] { items[index] };\n }", "public Axiom getSelected() {\r\n\treturn view.getSelected();\r\n }", "public boolean isSelected() { \n \treturn selection != null; \n }", "public SparseBooleanArray getSelectedIds() {\n return mSelectedItemsIds;\n }", "protected Object getCurrentSelectedValues(FacesContext context, UIComponent component) {\r\n if (component instanceof UISelectMany) {\r\n // get the selected value for select many\r\n UISelectMany select = (UISelectMany) component;\r\n Object value = select.getValue();\r\n if (value instanceof List)\r\n return ((List) value).toArray();\r\n\r\n return value;\r\n }\r\n // get the selected value for select one\r\n UISelectOne select = (UISelectOne) component;\r\n Object returnObject = select.getValue();\r\n if (returnObject != null) {\r\n return new Object[]{returnObject};\r\n }\r\n return null;\r\n }", "public ArrayList<Order> getCurrentSelection(){\n\t\t return this.currentSelection;\n\t }", "@NonNull\n public List<T> getSelectedList() {\n final List<T> list = new ArrayList<>();\n final SparseBooleanArray selectedItems = getSelectedItems();\n for (int i = 0; i < selectedItems.size(); i++) {\n final T model = getList().get(selectedItems.keyAt(i));\n list.add(model);\n }\n return list;\n }", "public List<GameObject> getSelected() {\n\t\treturn selectedObjects;\n\t}", "@Override\r\n protected ObservableList<TreeItem> getSelectedItems() {\r\n return getSelectionModel().getSelectedItems();\r\n }", "public void setMultiSelection(boolean multiSelection)\n {\n this.multiSelection = multiSelection;\n }", "public void itemSelected(boolean selected);", "public boolean isSelected() {\n\t\treturn iAmSelected;\n\t}", "public boolean getIsSelected() {\n return this.isSelected;\n }", "public ItemT getSelectedItem() {\n return selectedItem;\n }", "public Boolean getIsselected() {\n return isselected;\n }", "public Boolean getIsselected() {\n return isselected;\n }", "public List<Thing> getSelectedThings() {\n\t\treturn selectedThings;\n\t}", "public boolean getSelectedValue() {\r\n\treturn this.selectedValue;\r\n }", "Object getSelection();", "public boolean isSelected() {\r\n return isSelected;\r\n }", "public Gnome getSelectedItem() {\n return selectedItem;\n }", "public boolean isSelected()\n {\n\treturn _isSelected;\n }", "public String getSelected()\n\t{\n\t\treturn _current.ID;\n\t}", "public ArrayList<String> getSelectedItems() {\n ArrayList<String> selectedType = new ArrayList<>();\n for (int i = 0; i < selectedItems.length; i++) {\n if (selectedItems[i]) {\n selectedType.add(dataList.get(i).getName());\n }\n }\n return selectedType;\n }", "void setSelectedItems(ValueType selectedItems);", "public boolean IsSelected1(int i) {\n\t\treturn theSelected1[i];\n\t}", "public Set<T> getSelectedItems() {\n return selectedEntities == null ? Collections.<T>emptySet() : selectedEntities;\n }", "public int[] getSelectionIDs()\n\t{\n\t\treturn getObject().getSelectionIDs();\n\t}", "public boolean isSelected();", "public boolean isSelected();", "public ObservableValue<T> selectedItem() {\n return createObservableValue(this::getSelectedItem, this::setSelectedItem, \"selected-item-changed\");\n }", "public AUndertaking getSelectedTask()\n {\n String errorMsg;\n Iterator<AUndertaking> taskIt = getSelectedTaskIterator();\n\n if (taskIt.hasNext()) {\n AUndertaking selectedTask = taskIt.next();\n\n if (! taskIt.hasNext()) {\n return selectedTask;\n }\n\n errorMsg = \"Selection is multiple\";\n }\n else {\n errorMsg = \"Nothing is selected\";\n }\n\n throw new IllegalStateException(errorMsg);\n }", "int[] getSelection();", "public int[] getSelected()\n\t{\n\t\tint num = 0;\n\t\tfor (int i = 0; i < 13; i++)\n\t\t{\n\t\t\tif (this.selected[i])\n\t\t\t{\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\t\tint[] selected_cards = new int[num];\n\n\t\tint c = 0;\n\n\t\tfor (int i = 0; i < 13; i++)\n\t\t{\n\t\t\tif (this.selected[i])\n\t\t\t{\n\t\t\t\tselected_cards[c] = i;\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\n\t\tif (num > 0)\n\t\t{\n\t\t\treturn selected_cards;\n\t\t}\n\n\t\treturn null;\n\t}", "private boolean[] SetSelected(boolean[] selected, JList list) {\n\t\tint[] indices = list.getSelectedIndices();\n\t\tfor (int i = 0; i < selected.length; i++) {\n\t\t\tselected[i] = false;\n\t\t}\n\t\tfor (int i = 0; i < indices.length; i++) {\n\t\t\tselected[indices[i]] = true;\n\t\t}\n\t\treturn selected;\n\t}", "static int getIndexSelected() {\n return indexSelected;\n }", "public Item getSelectedItem() {\n return this.itemList.getSelectedValue();\n }", "public Selection getSelection() {\n return mSelection;\n }", "public void setMultiSelection(boolean multiSelection)\n\t{\n\t\tthis.setMultiple(multiSelection);\n\n\t\treturn;\n\t}", "public MultipleSelectionModel<T> getSelectionModel() {\n return selectionModelProperty.get();\n }", "@Override\r\n protected TreeItem getSelectedItem() {\r\n return getSelectionModel().getSelectedItem();\r\n }", "public int[] getSelectedPosArray()\n {\n return selectedPosArray;\n }", "public BrowseItem getSelectedItem()\r\n\t{\r\n\t\treturn this.selectedItem;\r\n\t}", "public void setMultipleSelection(Boolean multipleSelection){\n m_multipleSelection = multipleSelection;\n }", "public List<CharSequence> getSelectedEntries()\n {\n List<CharSequence> selectedEntries = new ArrayList<CharSequence>();\n CharSequence[] allEntries = getEntries();\n for( int i = 0; i < allEntries.length; i++ )\n {\n if( mCheckedStates[i] )\n selectedEntries.add( allEntries[i] );\n }\n return selectedEntries;\n }", "public Set<Configuration> getSelected() {\n\t\treturn selected;\n\t}", "@SuppressWarnings(\"unchecked\")\n public static ArrayList<Label> getSelected(Bundle arguments) {\n return (ArrayList<Label>) arguments.getSerializable(ARG_SELECTED);\n }", "public LiveData<Recipe> getSelected() {\n return repository.get(selectedId);\n }", "@Override\n\tpublic Object getSelection() {\n\t\tObject value = null;\n\t\tif (selectionNode instanceof Selectable) {\n\t\t\tvalue = ((Selectable) selectionNode).getSelection();\n\t\t}\n\t\treturn value;\n\t}", "public int getSelection() {\n \tcheckWidget();\n \treturn selection;\n }", "public R getSingleSelection()\r\n {\r\n final ListSelectionModel lsm = jTable.getSelectionModel();\r\n if( lsm.isSelectionEmpty() == false )\r\n {\r\n final int row = lsm.getLeadSelectionIndex(); // or use .getJTable().getSelectedRow() for single or lsm.isSelectedIndex() for multiple selection\r\n if( row != Util.INVALID_INDEX )\r\n {\r\n final int xlatedRow = jTable.convertRowIndexToModel( row ); // has to be done with auto-sorter\r\n return provideRow( xlatedRow );\r\n }\r\n }\r\n\r\n return null;\r\n }", "public int getSelectedId() {\n return selectedId;\n }", "protected Object[] getSubmittedSelectedValues(FacesContext context,\r\n UIComponent component) {\r\n if (component instanceof UISelectMany) {\r\n // get submit value of select many component\r\n UISelectMany select = (UISelectMany) component;\r\n return (Object[]) select.getSubmittedValue();\r\n }\r\n\r\n UISelectOne select = (UISelectOne) component;\r\n Object returnObject;\r\n if (null != (returnObject = select.getSubmittedValue())) {\r\n // get submit value of select one component\r\n return new Object[]{returnObject};\r\n }\r\n return null;\r\n }", "public String getSelected ()\n {\n return ((GroupItem)gbox.getSelectedItem()).getSelected();\n }", "@Nullable\n public T getSelectedItem() {\n return SerDes.unmirror(getElement().getSelectedItem(), getItemClass());\n }", "public int getSelectedItem() {\n return mSelectedItem;\n }", "private PR1Model.Shape getSelection() { return selection.get(); }", "public Cell getSelectedCell() {\n return selectedCell;\n }", "public CellSelection getSelectCell() {\n return selection;\n }", "public ArrayList<NucleiSelected> getNucleiSelected() {\n return nucleiSelected;\n }", "@Override\r\n public void setSelected(boolean selected) {\r\n boolean oldSelected = this.mSelected;\r\n this.mSelected = selected;\r\n if (!oldSelected && selected) {\r\n this.mMultiSelect.addToken(this.getPrototype());\r\n } else if (oldSelected && !selected) {\r\n this.mMultiSelect.removeToken(this.getPrototype());\r\n }\r\n\r\n if (oldSelected != this.mSelected) {\r\n this.invalidate();\r\n }\r\n }", "public boolean isMulti() {\n return getElement().isMulti();\n }", "public void itemsSelected() {\n getEntitySelect().close();\n Collection<T> selectedValues = getEntitySelect().getResults().getSelectedValues();\n setReferencesToParentAndPersist((T[]) selectedValues.toArray());\n showAddSuccessful();\n }", "public Item getSelectedItem() { return this.getSelectedSlot().getMappedItem(); }", "public abstract boolean isSelected();", "public String getSelectedItem() {\n if (selectedPosition != -1) {\n Toast.makeText(activity, \"Selected Item : \" + list.get(selectedPosition), Toast.LENGTH_SHORT).show();\n return list.get(selectedPosition);\n }\n return \"\";\n }", "public CTabItem getSelection() {\n checkWidget();\n CTabItem result = null;\n if( selectedIndex != -1 ) {\n result = ( CTabItem )itemHolder.getItem( selectedIndex );\n }\n return result;\n }", "public final ObjectProperty<MultipleSelectionModel<T>> selectionModelProperty() {\n\n return this.getWrappedControl().selectionModelProperty();\n }", "public List<String> getSelectedValues()\n {\n List<String> selectedValues = new ArrayList<String>();\n CharSequence[] allValues = getEntryValues();\n for( int i = 0; i < allValues.length; i++ )\n {\n if( mCheckedStates[i] )\n selectedValues.add( allValues[i].toString() );\n }\n return selectedValues;\n }", "boolean isSelected();", "boolean isSelected();", "boolean isSelected();" ]
[ "0.7198518", "0.7177191", "0.7096813", "0.70584846", "0.70584846", "0.7038395", "0.69028854", "0.689714", "0.6894502", "0.6802663", "0.67217666", "0.67084193", "0.6694772", "0.6693196", "0.6686739", "0.6676075", "0.6675681", "0.6674386", "0.6657638", "0.66538054", "0.6644902", "0.6636264", "0.66350526", "0.6609347", "0.66062903", "0.659704", "0.65854615", "0.65854615", "0.65351844", "0.65200865", "0.65140575", "0.6479409", "0.64294225", "0.64278275", "0.64193356", "0.64025766", "0.6373252", "0.63659096", "0.6345845", "0.63248825", "0.63083553", "0.62766224", "0.62486553", "0.62486553", "0.6248231", "0.6247399", "0.62230873", "0.62180215", "0.6217321", "0.6187292", "0.6179467", "0.61651677", "0.6132482", "0.61196506", "0.6091303", "0.60899186", "0.60796446", "0.60796446", "0.6077158", "0.60625476", "0.605429", "0.6051507", "0.6048069", "0.60360444", "0.6033149", "0.6026612", "0.60232586", "0.6014967", "0.59995216", "0.5959598", "0.5953241", "0.5952668", "0.59520227", "0.5931462", "0.5929863", "0.59232026", "0.59223497", "0.591607", "0.59135777", "0.5905151", "0.59022945", "0.58985716", "0.5896237", "0.5890802", "0.5883101", "0.5874456", "0.58694035", "0.5861969", "0.5861768", "0.58589184", "0.5857737", "0.5837619", "0.5816491", "0.5812742", "0.5808886", "0.58071995", "0.5797267", "0.57914144", "0.57914144", "0.57914144" ]
0.7608434
0
!wca! set selected: ?Object|?Array When multi is true, this is an array that contains any selected. When multi is false, this is the currently selected item, or null if no item is selected.
public void setSelected(List<T> value) { if (isMulti()) { getElement().setSelected(SerDes.mirror(value)); } else { getElement().setSelected(value.isEmpty()?null:SerDes.mirror(value.iterator().next())); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<T> getSelected() {\n Unknown selected = getElement().getSelected();\n if (isMulti()) {\n return SerDes.unmirrorList(selected.<Mirrored<List<T>>>cast(), getItemClass());\n } else {\n return Collections.singletonList(SerDes.unmirror(selected.cast(), getItemClass()));\n }\n }", "@Override\r\n\tpublic String[] getSelected() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String[] getSelected() {\n\t\treturn null;\r\n\t}", "@NonNull\n public SparseBooleanArray getSelectedItems() {\n return selectedItems;\n }", "public List<F> getSelected() {\n return selected;\n }", "public ObservableValue<List<T>> selected() {\n return createObservableValue(this::getSelected, this::setSelected, \"selected-changed\");\n }", "public boolean getSelected()\n {\n return selected; \n }", "public void setMultiSelection(boolean multiSelection)\n {\n this.multiSelection = multiSelection;\n }", "public boolean isMultiSelection()\n {\n return multiSelection;\n }", "@Override\r\n public void setSelected(boolean selected) {\r\n boolean oldSelected = this.mSelected;\r\n this.mSelected = selected;\r\n if (!oldSelected && selected) {\r\n this.mMultiSelect.addToken(this.getPrototype());\r\n } else if (oldSelected && !selected) {\r\n this.mMultiSelect.removeToken(this.getPrototype());\r\n }\r\n\r\n if (oldSelected != this.mSelected) {\r\n this.invalidate();\r\n }\r\n }", "public int getSelected() {\n \t\treturn selected;\n \t}", "public boolean isMultiSelect() {\r\n return multiSelect;\r\n }", "public Boolean isMultipleSelection() {\n return m_multipleSelection;\n }", "public SparseBooleanArray getSelectedIds() {\n return mSelectedItems;\n }", "private boolean[] SetSelected(boolean[] selected, JList list) {\n\t\tint[] indices = list.getSelectedIndices();\n\t\tfor (int i = 0; i < selected.length; i++) {\n\t\t\tselected[i] = false;\n\t\t}\n\t\tfor (int i = 0; i < indices.length; i++) {\n\t\t\tselected[indices[i]] = true;\n\t\t}\n\t\treturn selected;\n\t}", "public boolean isSelected() { return selected; }", "public boolean isSelected() {\n \t\treturn selected;\n \t}", "public boolean isSelected() {\r\n\t\treturn selected;\r\n\t}", "public boolean isSelected()\n\t{\n\t\treturn selected;\n\t}", "public void setSelected(List<F> selected) {\n this.selected = selected;\n }", "public boolean isSelected() {\r\n return selected;\r\n }", "public boolean isSelected() {\n\t\treturn selected;\n\t}", "public boolean isSelected() {\n\t\treturn selected;\n\t}", "public boolean isSelected()\n {\n return selected;\n }", "public boolean isMultiSelection()\n\t{\n\t\treturn this.isMultiple();\n\t}", "public void setMultiSelection(boolean multiSelection)\n\t{\n\t\tthis.setMultiple(multiSelection);\n\n\t\treturn;\n\t}", "public boolean isSelected() \n {\n return selected;\n }", "public boolean isSelected(){\r\n return selected;\r\n }", "public boolean isSelected() { \n \treturn selection != null; \n }", "void setSelectedItems(ValueType selectedItems);", "public void getSelected() {\n for (int i = 0; i < list.size(); i++) {\n if (selectColumn.getCellObservableValue(i).getValue().isSelected()) {\n selectedIngredients.add(i + 1);\n }\n }\n }", "public SparseBooleanArray getSelectedIds() {\n return mSelectedItemsIds;\n }", "public BooleanProperty getSelected() {\n return selected;\n }", "protected Object getCurrentSelectedValues(FacesContext context, UIComponent component) {\r\n if (component instanceof UISelectMany) {\r\n // get the selected value for select many\r\n UISelectMany select = (UISelectMany) component;\r\n Object value = select.getValue();\r\n if (value instanceof List)\r\n return ((List) value).toArray();\r\n\r\n return value;\r\n }\r\n // get the selected value for select one\r\n UISelectOne select = (UISelectOne) component;\r\n Object returnObject = select.getValue();\r\n if (returnObject != null) {\r\n return new Object[]{returnObject};\r\n }\r\n return null;\r\n }", "public void setMultipleSelection(Boolean multipleSelection){\n m_multipleSelection = multipleSelection;\n }", "public Object getSelection() {\n return selection;\n }", "public S getSelected()\n\t\t{\n\t\t\treturn newValue;\n\t\t}", "public void setSelected(boolean selected) \n {\n this.selected = selected;\n }", "@Override\n\tpublic void setSelected(boolean selected) {\n\t\t\n\t}", "public boolean isSelected() {\n\t\treturn iAmSelected;\n\t}", "public void setMultiSelect(boolean multiSelect) {\r\n this.multiSelect = multiSelect;\r\n }", "public boolean getIsSelected() {\n return this.isSelected;\n }", "public List<GameObject> getSelected() {\n\t\treturn selectedObjects;\n\t}", "public boolean IsSelected1(int i) {\n\t\treturn theSelected1[i];\n\t}", "List<String> getSelectedItems();", "public void itemSelected(boolean selected);", "public void setSelected(boolean selected) {\n this.selected = selected;\n }", "public Set<T> getSelectedItems() {\n return selectedEntities == null ? Collections.<T>emptySet() : selectedEntities;\n }", "public void setSelected(boolean selected);", "public void setSelected(boolean selected) {\n\t\tiAmSelected = selected;\n\t}", "public void setSelected(boolean selected) {\r\n\t\tthis.selected = selected;\r\n\t}", "public void setSelected(boolean selected) {\t\t\t\t\n\t\tthis.selected = selected;\t\t\t\t\t\t\n\t}", "public Boolean getIsselected() {\n return isselected;\n }", "public Boolean getIsselected() {\n return isselected;\n }", "public ArrayList<Order> getCurrentSelection(){\n\t\t return this.currentSelection;\n\t }", "public ItemT getSelectedItem() {\n return selectedItem;\n }", "public void setSelected(boolean selected)\n\t{\n\t\tthis.selected = selected;\n\t}", "public ArrayList<String> getSelectedItems() {\n ArrayList<String> selectedType = new ArrayList<>();\n for (int i = 0; i < selectedItems.length; i++) {\n if (selectedItems[i]) {\n selectedType.add(dataList.get(i).getName());\n }\n }\n return selectedType;\n }", "@NonNull\n public List<T> getSelectedList() {\n final List<T> list = new ArrayList<>();\n final SparseBooleanArray selectedItems = getSelectedItems();\n for (int i = 0; i < selectedItems.size(); i++) {\n final T model = getList().get(selectedItems.keyAt(i));\n list.add(model);\n }\n return list;\n }", "public TabItem[] getSelection() {\n checkWidget();\n int index = OS.SendMessage(handle, OS.TCM_GETCURSEL, 0, 0);\n if (index == -1)\n return new TabItem[0];\n return new TabItem[] { items[index] };\n }", "public int[] getSelected()\n\t{\n\t\tint num = 0;\n\t\tfor (int i = 0; i < 13; i++)\n\t\t{\n\t\t\tif (this.selected[i])\n\t\t\t{\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\t\tint[] selected_cards = new int[num];\n\n\t\tint c = 0;\n\n\t\tfor (int i = 0; i < 13; i++)\n\t\t{\n\t\t\tif (this.selected[i])\n\t\t\t{\n\t\t\t\tselected_cards[c] = i;\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\n\t\tif (num > 0)\n\t\t{\n\t\t\treturn selected_cards;\n\t\t}\n\n\t\treturn null;\n\t}", "public boolean getSelectedValue() {\r\n\treturn this.selectedValue;\r\n }", "public TabItem [] getSelection () {\r\n\tcheckWidget();\r\n\tint index = getSelectionIndex ();\r\n\tif (index == -1) return new TabItem [0];\r\n\treturn new TabItem [] {items [index]};\r\n}", "public void setSelected( boolean selected )\n\t{\n\t\tmSelected = selected;\n\t\t\n\t\tmUpdated = true;\n\t}", "public String getSelected()\n\t{\n\t\treturn _current.ID;\n\t}", "@Override\n\tpublic Cell selectCell(List<Cell> selectable) {\n JSONObject message = new JSONObject();\n message.put(\"function\", \"select\");\n message.put(\"type\", \"cell\");\n\t\tJSONArray jArray = createJSONCoordinateList(selectable);\n\t\tmessage.put(\"list\", jArray);\n this.sendInstruction(message);\n JSONObject selected = (JSONObject) JSONValue.parse(this.getResponse());\n\n if (selected.get(\"x\").equals(\"none\")) return null;\n\n return selectable.stream().filter(c->c.getCoordX() == Integer.parseInt(selected.get(\"x\").toString()) &&\n c.getCoordY() == Integer.parseInt(selected.get(\"y\").toString()))\n .collect(Collectors.toList()).get(0);\n\t}", "public Axiom getSelected() {\r\n\treturn view.getSelected();\r\n }", "public boolean IsSelected0(int i) {\n\t\treturn theSelected0[i];\n\t}", "public boolean setItemsSelected(Iterable<String> ids, boolean selected) {\n boolean changed = false;\n for (String id: ids) {\n boolean itemChanged = selected ? mSelection.add(id) : mSelection.remove(id);\n if (itemChanged) {\n notifyItemStateChanged(id, selected);\n }\n changed |= itemChanged;\n }\n notifySelectionChanged();\n return changed;\n }", "@Override\r\n protected ObservableList<TreeItem> getSelectedItems() {\r\n return getSelectionModel().getSelectedItems();\r\n }", "@SuppressWarnings(\"unchecked\")\n public static ArrayList<Label> getSelected(Bundle arguments) {\n return (ArrayList<Label>) arguments.getSerializable(ARG_SELECTED);\n }", "void setSelected(boolean selected) {\n if (selected == isSelected()) {\n return;\n }\n if (selected) {\n highlight();\n } else {\n unhighlight();\n }\n this.selected = selected;\n }", "public void select(Object obj, boolean selectionFlag);", "public boolean isSelected()\n {\n\treturn _isSelected;\n }", "public void select(boolean selected) {\n for (int i = 0; i < this.size(); i++) {\n DrawEvent event = (DrawEvent) this.elementAt(i);\n event.getShape().setSelected(selected);\n }\n }", "public boolean isSelected();", "public boolean isSelected();", "public boolean isSelected() {\r\n return isSelected;\r\n }", "public List<Thing> getSelectedThings() {\n\t\treturn selectedThings;\n\t}", "public int getSelectedId() {\n return selectedId;\n }", "public R getSingleSelection()\r\n {\r\n final ListSelectionModel lsm = jTable.getSelectionModel();\r\n if( lsm.isSelectionEmpty() == false )\r\n {\r\n final int row = lsm.getLeadSelectionIndex(); // or use .getJTable().getSelectedRow() for single or lsm.isSelectedIndex() for multiple selection\r\n if( row != Util.INVALID_INDEX )\r\n {\r\n final int xlatedRow = jTable.convertRowIndexToModel( row ); // has to be done with auto-sorter\r\n return provideRow( xlatedRow );\r\n }\r\n }\r\n\r\n return null;\r\n }", "public void itemsSelected() {\n getEntitySelect().close();\n Collection<T> selectedValues = getEntitySelect().getResults().getSelectedValues();\n setReferencesToParentAndPersist((T[]) selectedValues.toArray());\n showAddSuccessful();\n }", "Object getSelection();", "protected void setSelectedObjects() {\r\n\t\tint index, arrayLength;\r\n\t\tVector oldObjects = (Vector) getSelectedObjects().clone();\r\n\t\tgetSelectedObjects().removeAllElements();\r\n\t\tint[] intArray = table.getSelectedRows();\r\n\t\tarrayLength = intArray.length;\r\n\t\tfor (int i = 0; i < arrayLength; i++) {\r\n\t\t\tindex = intArray[i];\r\n\t\t\tif (index >= 0) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (dataObjects.size() > 0)\r\n\t\t\t\t\t\tselectedObjects.addElement(dataObjects.elementAt(index));\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tselectedObjects.addElement(null);\r\n\t\t\t\t} catch (Throwable t) {\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Object newSingleSelection = getSelectedRowObject();\r\n\t\tnotifySelectedObjectsChanged(oldObjects, selectedObjects);\r\n\t\tnotifySelectedObjectChanged(oldObjects, selectedObjects);\r\n\t}", "protected Object[] getSubmittedSelectedValues(FacesContext context,\r\n UIComponent component) {\r\n if (component instanceof UISelectMany) {\r\n // get submit value of select many component\r\n UISelectMany select = (UISelectMany) component;\r\n return (Object[]) select.getSubmittedValue();\r\n }\r\n\r\n UISelectOne select = (UISelectOne) component;\r\n Object returnObject;\r\n if (null != (returnObject = select.getSubmittedValue())) {\r\n // get submit value of select one component\r\n return new Object[]{returnObject};\r\n }\r\n return null;\r\n }", "static int getIndexSelected() {\n return indexSelected;\n }", "public void setSelected(boolean select) {\r\n isSelected = select;\r\n }", "public void setSelectedItems(ArrayList<String> selectedType) {\n for (MoodBean moodBean: dataList) {\n if (selectedType.contains(moodBean.getName())) {\n selectedItems[moodBean.getIndex()] = true;\n } else {\n selectedItems[moodBean.getIndex()] = false;\n }\n }\n }", "int[] getSelection();", "@Nullable\n public T getSelectedItem() {\n return SerDes.unmirror(getElement().getSelectedItem(), getItemClass());\n }", "public Gnome getSelectedItem() {\n return selectedItem;\n }", "public Set<Configuration> getSelected() {\n\t\treturn selected;\n\t}", "public AUndertaking getSelectedTask()\n {\n String errorMsg;\n Iterator<AUndertaking> taskIt = getSelectedTaskIterator();\n\n if (taskIt.hasNext()) {\n AUndertaking selectedTask = taskIt.next();\n\n if (! taskIt.hasNext()) {\n return selectedTask;\n }\n\n errorMsg = \"Selection is multiple\";\n }\n else {\n errorMsg = \"Nothing is selected\";\n }\n\n throw new IllegalStateException(errorMsg);\n }", "public ImageFlowItem getSelectedValue()\r\n {\r\n if (getAvatars() == null || getAvatars().isEmpty() || getSelectedIndex() >= getAvatars().size() || getSelectedIndex() < 0)\r\n {\r\n return null;\r\n }\r\n\r\n return getAvatars().get(getSelectedIndex());\r\n }", "public native final UpdateSelection data(JavaScriptObject array)/*-{\n\t\treturn this.data(array);\n\t}-*/;", "public void select(boolean a)\n {\n selected = a;\n }", "public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }", "Coord getSelected() {\n if (selected == null) {\n return null;\n }\n return new Coord(selected.col, selected.row);\n }", "@Override\r\n protected TreeItem getSelectedItem() {\r\n return getSelectionModel().getSelectedItem();\r\n }", "public boolean testSelected() {\n // test if set\n boolean set = Card.isSet(\n selectedCards.get(0).getCard(),\n selectedCards.get(1).getCard(),\n selectedCards.get(2).getCard()\n );\n\n // set currentlySelected to false and replace with new Cards (if applicable)\n for (BoardSquare bs : selectedCards)\n bs.setCurrentlySelected(false);\n\n // handle if set\n if (set) {\n if (!deck.isEmpty() && this.numCardsOnBoard() == 12) {\n for (BoardSquare bs : selectedCards)\n bs.setCard(deck.getTopCard());\n }\n else if (!deck.isEmpty() && this.numCardsOnBoard() < 12) {\n board.compressBoard(selectedCards);\n this.add3();\n }\n else {\n board.compressBoard(selectedCards);\n }\n }\n\n // clear ArrayList\n selectedCards.clear();\n\n // return bool\n return set;\n }", "@Override\n public byte[] getSelectedData() {\n return null;\n }" ]
[ "0.7244206", "0.6961926", "0.6961926", "0.69183874", "0.6687182", "0.6601002", "0.659196", "0.65735203", "0.6568471", "0.65368193", "0.65264505", "0.6508784", "0.6490146", "0.644926", "0.6439064", "0.64360625", "0.64349335", "0.6389333", "0.63732606", "0.6358079", "0.6335221", "0.63308525", "0.63308525", "0.6330151", "0.63176274", "0.6316479", "0.6281158", "0.6255814", "0.62533826", "0.6247845", "0.6240694", "0.61980367", "0.61760396", "0.61592144", "0.6150902", "0.614012", "0.61156994", "0.61038435", "0.6053669", "0.60471517", "0.60414404", "0.60369426", "0.6035289", "0.6032511", "0.6021827", "0.5991258", "0.59730595", "0.59645116", "0.5955811", "0.5946322", "0.5924964", "0.5905551", "0.58844715", "0.58844715", "0.58748215", "0.58728296", "0.5857026", "0.5854357", "0.5843965", "0.5807829", "0.580494", "0.5791943", "0.5784746", "0.57818615", "0.57795066", "0.5768148", "0.5763484", "0.57632154", "0.57561797", "0.57312816", "0.57160455", "0.570969", "0.57083106", "0.56936866", "0.5693603", "0.5687212", "0.5687212", "0.5683362", "0.5665943", "0.5664051", "0.5652669", "0.5645351", "0.5644254", "0.56433326", "0.5628298", "0.5626288", "0.56054723", "0.56005883", "0.5598684", "0.5597604", "0.5595282", "0.5593411", "0.557609", "0.555711", "0.55557114", "0.55537355", "0.55503047", "0.55441064", "0.5542475", "0.55387443", "0.5531034" ]
0.0
-1
!wca! observe selected: ?Object|?Array When multi is true, this is an array that contains any selected. When multi is false, this is the currently selected item, or null if no item is selected.
public ObservableValue<List<T>> selected() { return createObservableValue(this::getSelected, this::setSelected, "selected-changed"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<T> getSelected() {\n Unknown selected = getElement().getSelected();\n if (isMulti()) {\n return SerDes.unmirrorList(selected.<Mirrored<List<T>>>cast(), getItemClass());\n } else {\n return Collections.singletonList(SerDes.unmirror(selected.cast(), getItemClass()));\n }\n }", "@Override\r\n\tpublic String[] getSelected() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String[] getSelected() {\n\t\treturn null;\r\n\t}", "@NonNull\n public SparseBooleanArray getSelectedItems() {\n return selectedItems;\n }", "public List<F> getSelected() {\n return selected;\n }", "public boolean getSelected()\n {\n return selected; \n }", "public boolean isMultiSelection()\n {\n return multiSelection;\n }", "public Boolean isMultipleSelection() {\n return m_multipleSelection;\n }", "public void getSelected() {\n for (int i = 0; i < list.size(); i++) {\n if (selectColumn.getCellObservableValue(i).getValue().isSelected()) {\n selectedIngredients.add(i + 1);\n }\n }\n }", "public boolean isSelected() { return selected; }", "public int getSelected() {\n \t\treturn selected;\n \t}", "public S getSelected()\n\t\t{\n\t\t\treturn newValue;\n\t\t}", "public boolean isSelected()\n {\n return selected;\n }", "public boolean isSelected() \n {\n return selected;\n }", "public boolean isSelected() {\n \t\treturn selected;\n \t}", "List<String> getSelectedItems();", "public boolean isMultiSelection()\n\t{\n\t\treturn this.isMultiple();\n\t}", "public boolean isSelected() {\r\n return selected;\r\n }", "public Object getSelection() {\n return selection;\n }", "public SparseBooleanArray getSelectedIds() {\n return mSelectedItems;\n }", "public boolean isSelected(){\r\n return selected;\r\n }", "public boolean isSelected() { \n \treturn selection != null; \n }", "public boolean isSelected()\n\t{\n\t\treturn selected;\n\t}", "public boolean isSelected() {\r\n\t\treturn selected;\r\n\t}", "public boolean isSelected() {\n\t\treturn selected;\n\t}", "public boolean isSelected() {\n\t\treturn selected;\n\t}", "@Override\r\n protected ObservableList<TreeItem> getSelectedItems() {\r\n return getSelectionModel().getSelectedItems();\r\n }", "public boolean isMultiSelect() {\r\n return multiSelect;\r\n }", "public BooleanProperty getSelected() {\n return selected;\n }", "public ArrayList<Order> getCurrentSelection(){\n\t\t return this.currentSelection;\n\t }", "public void itemSelected(boolean selected);", "protected Object getCurrentSelectedValues(FacesContext context, UIComponent component) {\r\n if (component instanceof UISelectMany) {\r\n // get the selected value for select many\r\n UISelectMany select = (UISelectMany) component;\r\n Object value = select.getValue();\r\n if (value instanceof List)\r\n return ((List) value).toArray();\r\n\r\n return value;\r\n }\r\n // get the selected value for select one\r\n UISelectOne select = (UISelectOne) component;\r\n Object returnObject = select.getValue();\r\n if (returnObject != null) {\r\n return new Object[]{returnObject};\r\n }\r\n return null;\r\n }", "public List<GameObject> getSelected() {\n\t\treturn selectedObjects;\n\t}", "public void setMultiSelection(boolean multiSelection)\n {\n this.multiSelection = multiSelection;\n }", "public TabItem[] getSelection() {\n checkWidget();\n int index = OS.SendMessage(handle, OS.TCM_GETCURSEL, 0, 0);\n if (index == -1)\n return new TabItem[0];\n return new TabItem[] { items[index] };\n }", "public TabItem [] getSelection () {\r\n\tcheckWidget();\r\n\tint index = getSelectionIndex ();\r\n\tif (index == -1) return new TabItem [0];\r\n\treturn new TabItem [] {items [index]};\r\n}", "void setSelectedItems(ValueType selectedItems);", "public Axiom getSelected() {\r\n\treturn view.getSelected();\r\n }", "public SparseBooleanArray getSelectedIds() {\n return mSelectedItemsIds;\n }", "public boolean isSelected() {\n\t\treturn iAmSelected;\n\t}", "@Override\r\n public void setSelected(boolean selected) {\r\n boolean oldSelected = this.mSelected;\r\n this.mSelected = selected;\r\n if (!oldSelected && selected) {\r\n this.mMultiSelect.addToken(this.getPrototype());\r\n } else if (oldSelected && !selected) {\r\n this.mMultiSelect.removeToken(this.getPrototype());\r\n }\r\n\r\n if (oldSelected != this.mSelected) {\r\n this.invalidate();\r\n }\r\n }", "@NonNull\n public List<T> getSelectedList() {\n final List<T> list = new ArrayList<>();\n final SparseBooleanArray selectedItems = getSelectedItems();\n for (int i = 0; i < selectedItems.size(); i++) {\n final T model = getList().get(selectedItems.keyAt(i));\n list.add(model);\n }\n return list;\n }", "public ItemT getSelectedItem() {\n return selectedItem;\n }", "public ObservableValue<T> selectedItem() {\n return createObservableValue(this::getSelectedItem, this::setSelectedItem, \"selected-item-changed\");\n }", "public String getSelected()\n\t{\n\t\treturn _current.ID;\n\t}", "public Gnome getSelectedItem() {\n return selectedItem;\n }", "public List<Thing> getSelectedThings() {\n\t\treturn selectedThings;\n\t}", "public boolean isSelected() {\r\n return isSelected;\r\n }", "Object getSelection();", "public boolean getIsSelected() {\n return this.isSelected;\n }", "public boolean getSelectedValue() {\r\n\treturn this.selectedValue;\r\n }", "private boolean[] SetSelected(boolean[] selected, JList list) {\n\t\tint[] indices = list.getSelectedIndices();\n\t\tfor (int i = 0; i < selected.length; i++) {\n\t\t\tselected[i] = false;\n\t\t}\n\t\tfor (int i = 0; i < indices.length; i++) {\n\t\t\tselected[indices[i]] = true;\n\t\t}\n\t\treturn selected;\n\t}", "public void setSelected(List<F> selected) {\n this.selected = selected;\n }", "public Boolean getIsselected() {\n return isselected;\n }", "public Boolean getIsselected() {\n return isselected;\n }", "public Set<T> getSelectedItems() {\n return selectedEntities == null ? Collections.<T>emptySet() : selectedEntities;\n }", "public ArrayList<String> getSelectedItems() {\n ArrayList<String> selectedType = new ArrayList<>();\n for (int i = 0; i < selectedItems.length; i++) {\n if (selectedItems[i]) {\n selectedType.add(dataList.get(i).getName());\n }\n }\n return selectedType;\n }", "public void setMultiSelection(boolean multiSelection)\n\t{\n\t\tthis.setMultiple(multiSelection);\n\n\t\treturn;\n\t}", "public boolean IsSelected1(int i) {\n\t\treturn theSelected1[i];\n\t}", "public void itemsSelected() {\n getEntitySelect().close();\n Collection<T> selectedValues = getEntitySelect().getResults().getSelectedValues();\n setReferencesToParentAndPersist((T[]) selectedValues.toArray());\n showAddSuccessful();\n }", "public boolean isSelected();", "public boolean isSelected();", "@SuppressWarnings(\"unchecked\")\n public static ArrayList<Label> getSelected(Bundle arguments) {\n return (ArrayList<Label>) arguments.getSerializable(ARG_SELECTED);\n }", "public void setMultipleSelection(Boolean multipleSelection){\n m_multipleSelection = multipleSelection;\n }", "@Override\r\n protected TreeItem getSelectedItem() {\r\n return getSelectionModel().getSelectedItem();\r\n }", "public boolean isSelected()\n {\n\treturn _isSelected;\n }", "public int[] getSelectionIDs()\n\t{\n\t\treturn getObject().getSelectionIDs();\n\t}", "public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }", "public Selection getSelection() {\n return mSelection;\n }", "static int getIndexSelected() {\n return indexSelected;\n }", "@Override\n\tpublic void setSelected(boolean selected) {\n\t\t\n\t}", "int[] getSelection();", "public Item getSelectedItem() {\n return this.itemList.getSelectedValue();\n }", "public List<CharSequence> getSelectedEntries()\n {\n List<CharSequence> selectedEntries = new ArrayList<CharSequence>();\n CharSequence[] allEntries = getEntries();\n for( int i = 0; i < allEntries.length; i++ )\n {\n if( mCheckedStates[i] )\n selectedEntries.add( allEntries[i] );\n }\n return selectedEntries;\n }", "public int[] getSelected()\n\t{\n\t\tint num = 0;\n\t\tfor (int i = 0; i < 13; i++)\n\t\t{\n\t\t\tif (this.selected[i])\n\t\t\t{\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\t\tint[] selected_cards = new int[num];\n\n\t\tint c = 0;\n\n\t\tfor (int i = 0; i < 13; i++)\n\t\t{\n\t\t\tif (this.selected[i])\n\t\t\t{\n\t\t\t\tselected_cards[c] = i;\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\n\t\tif (num > 0)\n\t\t{\n\t\t\treturn selected_cards;\n\t\t}\n\n\t\treturn null;\n\t}", "public LiveData<Recipe> getSelected() {\n return repository.get(selectedId);\n }", "@Override\n\tpublic Object getSelection() {\n\t\tObject value = null;\n\t\tif (selectionNode instanceof Selectable) {\n\t\t\tvalue = ((Selectable) selectionNode).getSelection();\n\t\t}\n\t\treturn value;\n\t}", "public String getSelected ()\n {\n return ((GroupItem)gbox.getSelectedItem()).getSelected();\n }", "public BrowseItem getSelectedItem()\r\n\t{\r\n\t\treturn this.selectedItem;\r\n\t}", "public int getSelectedItem() {\n return mSelectedItem;\n }", "public abstract boolean isSelected();", "public AUndertaking getSelectedTask()\n {\n String errorMsg;\n Iterator<AUndertaking> taskIt = getSelectedTaskIterator();\n\n if (taskIt.hasNext()) {\n AUndertaking selectedTask = taskIt.next();\n\n if (! taskIt.hasNext()) {\n return selectedTask;\n }\n\n errorMsg = \"Selection is multiple\";\n }\n else {\n errorMsg = \"Nothing is selected\";\n }\n\n throw new IllegalStateException(errorMsg);\n }", "public void setSelected(boolean selected) \n {\n this.selected = selected;\n }", "@Override\n\tpublic Cell selectCell(List<Cell> selectable) {\n JSONObject message = new JSONObject();\n message.put(\"function\", \"select\");\n message.put(\"type\", \"cell\");\n\t\tJSONArray jArray = createJSONCoordinateList(selectable);\n\t\tmessage.put(\"list\", jArray);\n this.sendInstruction(message);\n JSONObject selected = (JSONObject) JSONValue.parse(this.getResponse());\n\n if (selected.get(\"x\").equals(\"none\")) return null;\n\n return selectable.stream().filter(c->c.getCoordX() == Integer.parseInt(selected.get(\"x\").toString()) &&\n c.getCoordY() == Integer.parseInt(selected.get(\"y\").toString()))\n .collect(Collectors.toList()).get(0);\n\t}", "public int getSelectedId() {\n return selectedId;\n }", "@Override\n public byte[] getSelectedData() {\n return null;\n }", "public Set<Configuration> getSelected() {\n\t\treturn selected;\n\t}", "@Nullable\n public T getSelectedItem() {\n return SerDes.unmirror(getElement().getSelectedItem(), getItemClass());\n }", "protected Object[] getSubmittedSelectedValues(FacesContext context,\r\n UIComponent component) {\r\n if (component instanceof UISelectMany) {\r\n // get submit value of select many component\r\n UISelectMany select = (UISelectMany) component;\r\n return (Object[]) select.getSubmittedValue();\r\n }\r\n\r\n UISelectOne select = (UISelectOne) component;\r\n Object returnObject;\r\n if (null != (returnObject = select.getSubmittedValue())) {\r\n // get submit value of select one component\r\n return new Object[]{returnObject};\r\n }\r\n return null;\r\n }", "public Item getSelectedItem() { return this.getSelectedSlot().getMappedItem(); }", "public boolean isSelected() {\n return SELECTED.equals(message);\n }", "public void setSelected(boolean selected);", "public native final UpdateSelection data(JavaScriptObject array)/*-{\n\t\treturn this.data(array);\n\t}-*/;", "public int[] getSelectedPosArray()\n {\n return selectedPosArray;\n }", "public int getSelection() {\n \tcheckWidget();\n \treturn selection;\n }", "@Override\n\tpublic boolean isSelected() {\n\t\treturn false;\n\t}", "private void pushSelection()\n {\n ArrayList<Integer> selectedIndices = new ArrayList<>();\n ArrayList<Signal> newSelected = new ArrayList<>();\n for(Signal s: selected)\n {\n int index = listed.indexOf(s);\n if(index >= 0)\n {\n selectedIndices.add(index);\n newSelected.add(s);\n }\n }\n selected.clear();\n selected.addAll(newSelected);\n int[] indices = new int[selectedIndices.size()];\n for(int i = 0; i < selectedIndices.size(); i++)\n {\n indices[i] = selectedIndices.get(i);\n }\n signalList.setSelectedIndices(indices);\n }", "public MultipleSelectionModel<T> getSelectionModel() {\n return selectionModelProperty.get();\n }", "public ImageFlowItem getSelectedValue()\r\n {\r\n if (getAvatars() == null || getAvatars().isEmpty() || getSelectedIndex() >= getAvatars().size() || getSelectedIndex() < 0)\r\n {\r\n return null;\r\n }\r\n\r\n return getAvatars().get(getSelectedIndex());\r\n }", "public final ObjectProperty<MultipleSelectionModel<T>> selectionModelProperty() {\n\n return this.getWrappedControl().selectionModelProperty();\n }" ]
[ "0.74296224", "0.70185065", "0.70185065", "0.6964771", "0.6853584", "0.6798854", "0.67217636", "0.67121804", "0.669234", "0.66713303", "0.66658145", "0.6578073", "0.6542002", "0.6519654", "0.65103894", "0.65013915", "0.6497259", "0.6491058", "0.6488631", "0.64872813", "0.64772815", "0.6459821", "0.6458326", "0.6445405", "0.64128435", "0.64128435", "0.63784766", "0.63762116", "0.636784", "0.6362228", "0.6353266", "0.63383144", "0.6329328", "0.6323559", "0.63090014", "0.62892103", "0.6247951", "0.6244127", "0.6235523", "0.62342745", "0.6160658", "0.6138651", "0.611435", "0.6092998", "0.6075056", "0.6070512", "0.6064016", "0.6053083", "0.6032106", "0.6027073", "0.59974855", "0.5993963", "0.59839255", "0.5979544", "0.5979544", "0.59718895", "0.59693706", "0.5966987", "0.59605086", "0.5958942", "0.595829", "0.595829", "0.5939841", "0.59348977", "0.59262455", "0.5889306", "0.58669853", "0.5841261", "0.58257693", "0.5821591", "0.5791455", "0.57892513", "0.57818836", "0.57765377", "0.5767731", "0.5751402", "0.5750891", "0.57477933", "0.5746953", "0.5744984", "0.57405955", "0.57326126", "0.5723737", "0.5722067", "0.57005054", "0.5700288", "0.5698889", "0.5695139", "0.56821686", "0.5675176", "0.5673504", "0.5673267", "0.5672239", "0.5670937", "0.56695634", "0.5669178", "0.56582", "0.56552976", "0.56512976", "0.56512547" ]
0.7208626
1