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 for class ServiceEvent
|
protected ServiceEvent(ServiceEvent event) {
eventSenderClass=event.eventSenderClass;
eventSenderID=event.eventSenderID;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public ServiceEvent() {\n // eventSenderID and eventSenderClass are initialized by the OperatingSystem! \n }",
"public Eventd() {\n }",
"public Event() {\r\n\r\n\t}",
"public Event() {\n\n }",
"public Event() {\n }",
"public Event() {\n }",
"public Event() {\n\t}",
"public Event() {}",
"public Event(){\n \n }",
"public Event(){\n\n }",
"public ServiceEvent(ServiceID eventSenderID, Class eventSenderClass) {\n this.eventSenderID = eventSenderID;\n this.eventSenderClass = eventSenderClass;\n }",
"protected ICEvent() {}",
"public ServiceEvent(long eventId, Kernel kernel, ServiceName serviceName, ServiceFactory serviceFactory, ClassLoader classLoader, Object service, Throwable cause, Set unsatisfiedConditions) {\n if (kernel == null) throw new NullPointerException(\"kernel is null\");\n if (serviceName == null) throw new NullPointerException(\"name is null\");\n if (serviceFactory == null) throw new NullPointerException(\"serviceFactory is null\");\n if (classLoader == null) throw new NullPointerException(\"classLoader is null\");\n if (unsatisfiedConditions != null && cause != null) throw new IllegalArgumentException(\"Either unsatisfiedConditions or cause must be null\");\n if (cause != null && service != null) throw new IllegalArgumentException(\"A ServiceEvent can not carry both a cause and a service\");\n this.eventId = eventId;\n this.kernel = kernel;\n this.serviceName = serviceName;\n this.serviceFactory = serviceFactory;\n this.classLoader = classLoader;\n this.service = service;\n this.cause = cause;\n this.unsatisfiedConditions = unsatisfiedConditions;\n }",
"public Service(){\n\t\t\n\t}",
"public ScheduleEvent()\n\t{\n\n\t}",
"public EventoWS() {\n }",
"public\n CreateEvent()\n {}",
"public ServiceMessage() {\r\n\t}",
"public EventMessage(Event event)\r\n {\r\n //super(\"EventMessage\");\r\n super(TYPE_IDENT, event);\r\n }",
"public StartedService() {\n super(\"StartedService\");\n }",
"private LogEvent()\n\t{\n\t\tsuper();\n\t}",
"public QPEvent() {}",
"public InitService() {\n super(\"InitService\");\n }",
"public ComcatEventWebService (final URL serviceURL) {\n\t\tsuper (serviceURL);\n\t\thttp_status_code = -1;\n\t}",
"public Event() {\n this.name = null;\n this.description = null;\n this.date = new GregorianCalendar();\n }",
"private Service() {}",
"public ServiceTask() {\n\t}",
"Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}",
"public NotificationService() {\n super(\"NotificationService\");\n }",
"public Event setService(String service) {\n this.service = service;\n return this;\n }",
"public ServiceCompte() {\n\t\tsuper();\n\t}",
"public EventException() {\n super(\"OOPS!!! The description or time of an event cannot be empty.\");\n }",
"public ServiceClient() {\n\t\tsuper();\n\t}",
"public SoundEvent() \n\t{\n\tsuper(GAME_SOUND_EVENT);\n\t}",
"public AlarmService(String name) {\n super(name);\n }",
"public Event(int type) {\n this.type=type;\n this.arg=null;\n }",
"public CallService() {\n super(\"My\");\n }",
"public Event(EventType type, String eventKey) \n\t{\n\t\tsuper();\n\t\tthis.evntType = type;\n\t\tthis.key = eventKey;\n\t\tthis.uuid = UUID.randomUUID().toString();\n\t\tthis.milliseconds = 0;\n\t\tthis.repeated = false;\n\t}",
"ServiceTest(T options) {\n super(options);\n\n final InputStream randomInputStream = TestDataCreationHelper.createRandomInputStream(options.getSize());\n final ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n byte[] eventBytes;\n try {\n int bytesRead;\n final byte[] data = new byte[4096];\n\n while ((bytesRead = randomInputStream.read(data, 0, data.length)) != -1) {\n buffer.write(data, 0, bytesRead);\n }\n\n eventBytes = buffer.toByteArray();\n } catch (IOException e) {\n System.err.println(\"Unable to read input bytes.\" + e);\n final int size = Long.valueOf(options.getSize()).intValue();\n eventBytes = new byte[size];\n Arrays.fill(eventBytes, Integer.valueOf(95).byteValue());\n } finally {\n try {\n buffer.close();\n } catch (IOException e) {\n System.err.println(\"Unable to close bytebuffer. Error:\" + e);\n }\n }\n\n final ArrayList<EventData> eventsList = new ArrayList<>();\n for (int number = 0; number < options.getCount(); number++) {\n final EventData eventData = EventData.create(eventBytes);\n eventData.getProperties().put(\"index\", number);\n eventsList.add(eventData);\n }\n\n this.events = Collections.unmodifiableList(eventsList);\n this.scheduler = Executors.newScheduledThreadPool(Runtime.getRuntime().availableProcessors() * 4);\n }",
"public AmazonPushListenerService() {\n super(AmazonPushListenerService.class.getName());\n // Measure singleton\n if(MEASURE_ACTIVE) {\n getMeasureProcessing();\n }\n }",
"public EPGUpdateService() {\n // Worker thread name which is only important for debugging\n super(\"EPGUpdateService\");\n }",
"default void setEventService(EventService service) {\n bind(service);\n }",
"public ArticleSearchDoneEvent() {\n\n }",
"@Inject\n public EventService(BackgroundTaskRunnerService taskRunner) {\n this.taskRunner = taskRunner;\n final ConcurrentMap<EventType, List<EventListener<? extends Event>>> tmp = new ConcurrentHashMap<>();\n for (EventType eventType : EventType.values()) {\n tmp.put(eventType, new CopyOnWriteArrayList<>());\n }\n this.eventListeners = tmp;\n }",
"public EventHandlerRegistry() {\n }",
"public DescribeEventsRequest() {}",
"public LecturaPorEvento() \r\n {\r\n }",
"public VehmonService() {\n }",
"private EventMessageMapper() {\n }",
"public EventQueue(){}",
"public ServiceInfo() {\n }",
"public Event(int id, String eventName){\n this.id = id;\n this.event = eventName;\n this.location = null;\n this.date = 0;\n this.startTime = \"00:00 AM\";\n this.endTime = \"00:00 AM\";\n this.notes = \"No notes\";\n this.allDay = false;\n this.bigId = -1;\n this.alarm = -1;\n\n }",
"Event createEvent();",
"Event createEvent();",
"public DCAEServiceObject(String serviceId, DCAEServiceRequest request) {\n DateTime now = DateTime.now(DateTimeZone.UTC);\n this.setServiceId(serviceId);\n this.setTypeId(request.getTypeId());\n this.setVnfId(request.getVnfId());\n this.setVnfType(request.getVnfType());\n this.setVnfLocation(request.getVnfLocation());\n this.setDeploymentRef(request.getDeploymentRef());\n this.setCreated(now);\n this.setModified(now);\n // Assumption here is that you are here from the PUT which means that the service is RUNNING.\n this.setStatus(DCAEServiceStatus.RUNNING);\n }",
"public UpdateService() {\n super(\"UpdateService\");\n }",
"public EventMessageExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public HelloIntentService() {\n super(\"HelloIntentService\");\n }",
"@Override //to be moved to Cloud service\r\n\tpublic void createEvent(String eventName) {\n\t\t\r\n\t}",
"public RecordService() {\n super(\"RecordService\");\n }",
"StartEvent createStartEvent();",
"public SearchServiceException()\n\t{\n\t\t// Documented empty block\n\t}",
"public TestService() {}",
"public JHI_ENTITY_AUDIT_EVENT() {\n this(\"jhi_entity_audit_event\", null);\n }",
"public ServiceRequest() {\n super();\n this.addNamespaceToRequest = true;\n }",
"public NotificationService(String name) {\n super(name);\n }",
"CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }",
"public DocumentEvent() {}",
"public RemoteCommitEvent() {\n }",
"BasicEvent createBasicEvent();",
"public BrightTimeService() {\n super(\"BrightTimeService\");\n }",
"public Client(ClientEvents event) throws UnknownHostException, IOException {\n\t\t// TODO Auto-generated constructor stub\n\t\t//super(\"83.52.33.147\", 3553);\n\t\tmIp = \"85.53.66.42\";\n\t\tmPort = 3553;\n\t\tthis.event = event;\n\t\tmInstance = this;\n\t\t\n\t\t//startConection();\n\t}",
"public Services(){\n ID = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n state = STATUS_IN_PROGRESS;\n name = \"\";\n date = \"\";\n description = \"\";\n note = \"\";\n mileage = 000000;\n }",
"public ApplicationEvent(Object source) {\n super(source);\n this.timestamp = System.currentTimeMillis();\n }",
"public PersistentLogEventListener() {\n\t\tthis(new EventDAO());\n\t}",
"public AsyncService() {\n super(2, 2);\n }",
"public ProviderService() {\r\n super(TAG, SASOCKET_CLASS);\r\n }",
"EventManager()\n {\n }",
"public CustomerEvent()\r\n {\r\n this(0, 0, ENTER);\r\n }",
"public MCalendarEventView()\r\n {\r\n }",
"public MyIntentService() {\n //调用父类的构造函数\n //参数 = 工作线程的名字\n super(\"myIntentService\");\n }",
"private EventsCollector() {\n\t\tsuper();\n\t}",
"public Service(int id)\r\n {\r\n this.id = id;\r\n \r\n logger = new Logger(this);\r\n }",
"public WorkTimeEvent() {\r\n super();\r\n }",
"public InitService(String name) {\n super(\"InitService\");\n }",
"Event(int start, int end, String eventName) {\r\n this.start = start;\r\n this.end = end;\r\n this.eventName = eventName;\r\n this.description = \"\";\r\n }",
"public CEventProgram()\r\n {\r\n }",
"public ServiceOrderRecord() {\n super(ServiceOrder.SERVICE_ORDER);\n }",
"@Override\n public SoapEvent create(SoapEvent event) {\n throw new UnsupportedOperationException();\n }",
"public AutoSenderService() {\r\n\t\tsuper();\r\n\t}",
"public AuditEventService(final RestTemplate restTemplate, final AccountService accountService, final GoodDataSettings settings) {\n super(restTemplate, settings);\n this.accountService = notNull(accountService, \"account service\");\n }",
"public MessageEvent(Message message) {\n super(message);\n this.message = message;\n }",
"EventUse createEventUse();",
"BasicEvents createBasicEvents();",
"public PersonEvent(Person person) {\n super(person);\n this.person = person;\n }",
"public CreateEventFragment() {\n // Required empty public constructor\n }",
"protected Event(Parcel in) {\n id = in.readInt();\n date = in.readInt();\n event = in.readString();\n location = in.readString();\n startTime = in.readString();\n endTime = in.readString();\n notes = in.readString();\n byte tmpAllDay = in.readByte();\n allDay = tmpAllDay == 0 ? null : tmpAllDay == 1;\n bigId = in.readInt();\n alarm = in.readInt();\n }",
"private EventController()\n {\n events = new ArrayList<>();\n currentCalendar = Calendar.getInstance();\n }",
"public ServiceFactoryImpl() {\n\t\tsuper();\n\t}",
"public ServeEvent(Customer customer, List<Server> servers, int serverId, double startTime) {\n super(customer, servers, startTime, 'S');\n this.serverId = serverId;\n this.startTime = startTime;\n }"
] |
[
"0.8610552",
"0.7606931",
"0.7587324",
"0.7530822",
"0.75273204",
"0.75273204",
"0.75234145",
"0.7510305",
"0.7496392",
"0.7478321",
"0.7289168",
"0.72042924",
"0.7196038",
"0.7057279",
"0.7055642",
"0.7053826",
"0.7000967",
"0.69197935",
"0.6801829",
"0.67956734",
"0.67122024",
"0.6680686",
"0.66007465",
"0.6499414",
"0.64736795",
"0.6457422",
"0.6431928",
"0.64268696",
"0.64048713",
"0.6399095",
"0.6390616",
"0.63875103",
"0.63860273",
"0.6340585",
"0.6331513",
"0.6329559",
"0.63209313",
"0.6318788",
"0.6313271",
"0.6305618",
"0.6288069",
"0.6280272",
"0.6261054",
"0.6258953",
"0.6253025",
"0.6249428",
"0.62424135",
"0.6218558",
"0.62142247",
"0.62031275",
"0.6202657",
"0.62025344",
"0.6201663",
"0.6201663",
"0.61959857",
"0.6186892",
"0.6180826",
"0.6166277",
"0.6164934",
"0.61636305",
"0.61558807",
"0.6137575",
"0.6127981",
"0.61124724",
"0.60891885",
"0.60891855",
"0.6086097",
"0.60786533",
"0.6063692",
"0.6057942",
"0.6044485",
"0.60437566",
"0.6022711",
"0.60035855",
"0.5997272",
"0.5995141",
"0.5986708",
"0.5985956",
"0.5985564",
"0.59813344",
"0.5980924",
"0.59808993",
"0.5977028",
"0.59569263",
"0.5955168",
"0.5945633",
"0.5945541",
"0.594312",
"0.59405947",
"0.5936909",
"0.59356207",
"0.59289086",
"0.5928842",
"0.59250623",
"0.5909292",
"0.59085894",
"0.5907135",
"0.5906399",
"0.5901168",
"0.589317"
] |
0.7902126
|
1
|
Overide this method if the event is mutable
|
public Dispatchable copy() {
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n public boolean isMutable() {\n return true;\n }",
"void eventChanged();",
"@Override\n\tpublic void processEvent(Event e) {\n\n\t}",
"@Override\n public boolean isMutable()\n {\n return true;\n }",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\r\n public void stateChanged(ChangeEvent e) {\n }",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n public void handle(Event event) {\n }",
"@Override\n public void stateChanged(javax.swing.event.ChangeEvent e) {\n }",
"@Override\n\tpublic void valueChange(ValueChangeEvent event) {\n\t\t\n\t}",
"@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}",
"@Override\r\n\tpublic void onEvent(Object e) {\n\t}",
"@Override\n\tpublic void stateChanged(ChangeEvent e) {\n\t}",
"@Override\n\tpublic void stateChanged(ChangeEvent arg0) {\n\t\t\n\t}",
"@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}",
"void onSelectedEventChange(@Nullable Event currentSelectedEvent);",
"@Override\n\tpublic void update(Event e) {\n\t}",
"@Override\r\n public void onEvent(FlowableEvent event) {\n }",
"Event () {\n // Nothing to do here.\n }",
"void event(MetricalEvent event) throws MetricalException;",
"public abstract void processEvent(Object event);",
"@Override\n public void actionPerformed (ActionEvent e) {\n fireChanged();\n }",
"public void stateChanged (ChangeEvent e)\n {\n }",
"void event(Event e) throws Exception;",
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}",
"public void handleModified(ModifiedEvent source) {}",
"@Override\n public boolean usesEvents()\n {\n return false;\n }",
"@Override\n public void eventsChanged() {\n }",
"public abstract void onEvent(T event);",
"@Override\n public Object getEvent() {\n return eventObj;\n }",
"void onNewEvent(Event event);",
"@Override\n\t\t\t\tpublic void changedUpdate(final DocumentEvent e) {\n\t\t\t\t}",
"@Override\n\tpublic void update(Observable observable, Object data) {\n\t\tif(data instanceof STBEvent) {\n\t\t\t\n\t\t}\n\t}",
"@Override\n public void notify(Object event){\n }",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}",
"@Override\n protected void processMouseEvent(MouseEvent e) {\n super.processMouseEvent(e);\n }",
"void updateEvent(ReadOnlyEvent target, ReadOnlyEvent editedEvent)\n throws DuplicateEventException, EventNotFoundException;",
"@Override\r\n public void processEvent(IAEvent e) {\n\r\n }",
"private void fireChangeInternal(ChangeEvent event) {\n assert event != null;\n for (ChangeListener listener : listeners) {\n try {\n listener.stateChanged(event);\n } catch (RuntimeException x) {\n Exceptions.printStackTrace(x);\n }\n }\n }",
"@Override\n\t\t\tpublic void handle(MouseEvent event) {\n\t\t\t}",
"public void stateChanged(ChangeEvent e) {\n }",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void update(Observable o, Object arg) {\n// throw new UnsupportedOperationException(\"Not supported yet.\");\n }",
"protected abstract void updateFromBackingEvent(Object backingEvent);",
"public void stateChanged( ChangeEvent event )\n {\n \n }",
"public void processEvent(Event event) {\n\t\t\n\t}",
"@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void setOnChangeEvent(String functionName) {\n\t\t\n\t}",
"@Override\n public void handle(MouseEvent event) {\n }",
"boolean hasChangeEvent();",
"void onIssueEditedEvent(T event);",
"public void process(WatchedEvent event) {\n\t\t\n\t}",
"@Override\n\tpublic void editingStopped(ChangeEvent arg0) {\n\n\t}",
"abstract void put(T event);",
"@Override\n\t\t\tpublic void changedUpdate(DocumentEvent arg0) {\n\t\t\t}",
"@Override\n\tpublic void setEvent(Event event) {\n\t\tthis.currentEvent = event;\n\t}",
"@Override\r\n\tpublic boolean handleEvent(IEvent event) {\n\t\treturn false;\r\n\t}",
"private UIEvent generateModifyEvent(){\n List<DataAttribut> dataAttributeList = new ArrayList<>();\n for(int i = 0; i< attributModel.size(); i++){\n String attribut = attributModel.elementAt(i);\n dataAttributeList.add(new DataAttribut(attribut));\n }\n //Erstellen des geänderten Produktdatums und des Events\n DataProduktDatum proposal = new DataProduktDatum(name.getText(), new DataId(id.getText()), dataAttributeList, verweise.getText());\n UIModifyProduktDatumEvent modifyEvent = new UIModifyProduktDatumEvent(dataId, proposal);\n return modifyEvent;\n }",
"@Override\n\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\n\t\t}",
"@Override\r\n public void focusGained(FocusEvent event) {\r\n }",
"public abstract void handle(Object event);",
"public void changed(ProgressEvent event) {\n\t\t\t}",
"private\n boolean\n allowEvents()\n {\n return itsAllowEvents;\n }",
"@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }",
"Long handleEvent(Long renderedOpID, \n\t\t String propName,\n\t\t Object oldValue, \n\t\t Object newValue) throws RemoteException;",
"public interface IGUIEvent {\n\n\n /**\n * Returns the source of the event.\n * \n * @return the source.\n */\n public abstract Object getSource();\n\n\n /**\n * Consumes the event.\n */\n public abstract void consume();\n\n\n /**\n * Returns whether this event has been consumed.\n * \n * @return <CODE>true</CODE> if the event has been consumed;\n * <CODE>false</CODE> otherwise.\n */\n public abstract boolean isConsumed();\n}",
"@Override\n public void update(Observable o, Object arg)\n {\n \n }",
"@Override\n\tpublic void eventDate(Date newDate) {\n\t\t\n\t}",
"public boolean isEventUpdated(Event event) \n\t{\n\t\treturn false;\n\t}",
"@EncoderThread\n protected void onEvent(@NonNull String event, @Nullable Object data) {}",
"@Override\n public boolean evaluate(Event event) {\n return true;\n }",
"@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}",
"public void fireChangeEvent(ChangeEvent event);",
"@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}",
"public void gxlValueChanged(GXLValueModificationEvent e) {\n\t}",
"public void vetoableChange(java.beans.PropertyChangeEvent evt) throws java.beans.PropertyVetoException {\n\t}",
"@Override\n public void focusGained(FocusEvent e) {\n }",
"@Override\r\n\tpublic int getEventType() {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic int getEventType() {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic void updateObjectListener(ActionEvent e) {\n\t\t\r\n\t}",
"public void changedUpdate(DocumentEvent event) {\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent actionEvent) {\n }",
"public abstract void positionChanged(PositionChangedEvent event);",
"public void handleEvent(SimplePropertyEvent<S, D> event);",
"@Override\n public void update (Observable o, Object arg) {\n }",
"public void handleEvent(Event event) {\n\t\t\t\t}",
"private void checkMutability()\n\t{\n\t\tif (immutable)\n\t\t{\n\t\t\tthrow new UnsupportedOperationException(\"Map is immutable\");\n\t\t}\n\t}"
] |
[
"0.64562494",
"0.64562494",
"0.64562494",
"0.64562494",
"0.6336809",
"0.6311415",
"0.6303025",
"0.6203542",
"0.6201099",
"0.6201099",
"0.61856586",
"0.61856586",
"0.61856586",
"0.61856586",
"0.61856586",
"0.61692023",
"0.6159031",
"0.6159031",
"0.6159031",
"0.6149885",
"0.61263406",
"0.6090029",
"0.60843986",
"0.605174",
"0.6024663",
"0.5992412",
"0.5984099",
"0.5974101",
"0.59688705",
"0.59624964",
"0.59388345",
"0.5903549",
"0.586954",
"0.5866927",
"0.584634",
"0.5845455",
"0.58440965",
"0.5840879",
"0.58294976",
"0.5826251",
"0.58181363",
"0.5816446",
"0.580404",
"0.57968",
"0.5796649",
"0.57962835",
"0.5793202",
"0.578666",
"0.57862324",
"0.578609",
"0.57733035",
"0.576405",
"0.5737477",
"0.57267284",
"0.5722929",
"0.5722929",
"0.5722107",
"0.5711531",
"0.57019633",
"0.56999624",
"0.5697202",
"0.56923443",
"0.5689256",
"0.5676249",
"0.5664155",
"0.5655116",
"0.56399465",
"0.563694",
"0.5632141",
"0.5630664",
"0.56294674",
"0.5626182",
"0.5623609",
"0.5612856",
"0.5611528",
"0.56086373",
"0.5595471",
"0.5583931",
"0.55838054",
"0.5580691",
"0.5572942",
"0.55723655",
"0.5567457",
"0.5559577",
"0.55525017",
"0.5540858",
"0.55401427",
"0.5539679",
"0.5537046",
"0.5532477",
"0.5529981",
"0.5514224",
"0.5514224",
"0.5499984",
"0.5488785",
"0.54854006",
"0.5484231",
"0.5469909",
"0.5469566",
"0.5469445",
"0.5469278"
] |
0.0
|
-1
|
PUBLIC METHODS Save the user in the database.
|
public void create(Department department) {
entityManager.persist(department);
return;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void saveUser(User user);",
"@Override\r\n\tpublic int saveUser(User user) {\n\t\tString sql = \"insert into user values(?,?,?,?)\";\r\n\t\treturn this.update(sql,user.getId(), user.getUsername(),user.getPassword(),user.getEmail());\r\n\t}",
"@Override\r\n\tpublic void save() {\n\t\tSystem.out.println(\"UserServiceImplÍ┤đđ┴╦\");\r\n\t\tuserDao.save();\r\n\t}",
"public boolean save(User user);",
"void save(User user);",
"@Override\n public void saveUser(User user) {\n }",
"@Override\r\n\tpublic void save(User user) {\n\t\t\r\n\t}",
"public int saveUser(User user);",
"@Override\n\tpublic void save(User user) \n\t{\n\t\tuserDAO.save(user);\n\t}",
"User saveUser(User user);",
"public void saveUser(User user) {\n\t\tpersist(user);\r\n\t\t\r\n\t}",
"public User saveUser(User user);",
"boolean saveUser(User entity) throws UserDaoException;",
"@Override\n\tpublic void save(Connection conn, User user) throws SQLException {\n\t\t\n\t}",
"@Override\n\tpublic int save(User user) {\n\t\treturn dao.save(user);\n\t}",
"@Override\n\tpublic void save(User u) {\n\t\tSystem.out.println(\"a user saved\");\n\t}",
"public User saveUser(User user){\n return userRepository.save(user);\n }",
"@Override\n\tpublic void saveUser(User user) {\n\t\tuser.setPassword(MD5.getInstance().getMd5(user.getPassword(),\"UTF-8\"));\n\t\tuserDao.insertUser(user);\n\t}",
"void saveUserData(User user);",
"public void save() {\r\n\t\tString checkQuery = \"SELECT * FROM users WHERE id = \" + this.id;\r\n\t\tStatement stm;\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\tconnection = DBConnection.getConnection();\r\n\t\t\tstm = connection.createStatement();\r\n\t\t\trs = stm.executeQuery(checkQuery);\r\n\t\t\t// istnieje już ten obiekt - update\r\n\t\t\tif (rs.first()) {\r\n\t\t\t\tString query = \"UPDATE users SET name = \" + toStringOrNULL(name)\r\n\t\t\t\t\t\t+ \", password = \" + toStringOrNULL(password)\r\n\t\t\t\t\t\t+ \", is_admin = \" + isAdmin \r\n\t\t\t\t\t\t+ \", removed_at = \" + toStringOrNULL(removedAt) \r\n\t\t\t\t\t\t+ \" WHERE id = \" + getId();\r\n\t\t\t\texecuteNonReturningQuery(query);\r\n\t\t\t}\r\n\t\t\t// jeszcze go nie ma - zapis nowego\r\n\t\t\telse {\r\n\t\t\t\tString query = \"INSERT INTO users (name, password, removed_at, is_admin) VALUES (\"\r\n\t\t\t\t\t\t+ toStringOrNULL(name) + \", \"\r\n\t\t\t\t\t\t+ toStringOrNULL(password) + \", \"\r\n\t\t\t\t\t\t+ toStringOrNULL(removedAt) + \", \"\r\n\t\t\t\t\t\t+ isAdmin + \")\";\r\n\t\t\t\texecuteNonReturningQuery(query);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tconnection.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public User save(User user);",
"@Override\n public void saveUser(User user){\n try {\n runner.update(con.getThreadConnection(),\"insert into user(username,address,sex,birthday) values(?,?,?,?)\",user.getUsername(),user.getAddress(),user.getSex(),user.getBirthday());\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n e.printStackTrace();\n }\n\n }",
"User save(User user);",
"@RolesAllowed({ RoleEnum.ROLE_ADMIN, RoleEnum.ROLE_GUEST })\n\tpublic Integer saveUser(User user);",
"@Override\n\tpublic void save(User entity) {\n\t\t\n\t}",
"@Override\n\tpublic boolean save(User user) {\n\t\tString userHash = UUID.randomUUID().toString();\n\t\tuser.setUserHash(userHash);\n\t\tboolean status = userRepository.save(user);\n\t\tif (status) {\n\t\t\tSystem.out.println(\"USER ID : \" + user.getId());\n\t\t\tSystem.out.println(\"User has been inserted!\");\n\t\t} else {\n\t\t\tSystem.out.println(\"User has not been inserted!.\");\n\t\t}\n\t\treturn status;\n\t}",
"@Override\n\tpublic void save(UserEntity theUser) {\n\t\t\n\t\temploiDao.findById(theUser.getEmploi().getId()).ifPresent(emploi -> theUser.setEmploi(emploi));\n\t\tif(theUser.getEntite() != null){entityDao.findById(theUser.getEntite().getId()).ifPresent(entite -> theUser.setEntite(entite));}\n\t\t\n\t\tuserDao.save(theUser);\n\n\t}",
"public void saveUser(IUser user);",
"public void saveUser(User user) {\n\t\tuserRepo.save(user);\n\t}",
"@Override\n\tpublic boolean saveUser(User user) {\n\t\treturn userRepository.saveUser(user);\n\t}",
"@Override\n\tpublic void saveUser(User user) {\n\t\tmongoTemplate.save(user);\n\t}",
"@Override\n public void addUser(User u) {\n Session session = this.sessionFactory.getCurrentSession();\n session.persist(u);\n logger.info(\"User saved successfully, User Details=\"+u);\n }",
"private void saveUserDetails() {\n UserModel userModel = new UserModel();\n userModel.setUserName(editUserName.getText().toString());\n userModel.setPassword(editPassword.getText().toString());\n\n /* if (db.insertUserDetils(userModel)) {\n //Toast.makeText(LoginActivity.this, \"Successfully save\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"Data not Saved\", Toast.LENGTH_SHORT).show();\n }*/\n }",
"private void pushToHibernate(){\n DATA_API.saveUser(USER);\n }",
"void saveOrUpdate(User user);",
"public boolean saveUser(Owner user) {\r\n boolean f = false;\r\n try {\r\n //user -->database\r\n\r\n String query = \"insert into Owner(name,email,password) values (?,?,?)\";\r\n PreparedStatement pstmt = this.con.prepareStatement(query);\r\n pstmt.setString(1, user.getName());\r\n pstmt.setString(2, user.getEmail());\r\n pstmt.setString(3, user.getPassword());\r\n pstmt.executeUpdate();\r\n f = true;\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return f;\r\n\r\n }",
"public Long saveUser(User user, User modifiedBy);",
"public User saveUser(User user) {\n return userRepository.save(user);\n }",
"@Override\n\tpublic boolean saveUser(User user) {\n\t\tString sql=\"insert into users(uname,upassword,type) values(?,?,?)\";\n\t\tList<Object> params=new ArrayList<Object>();//泛型\n\t\tparams.add(user.getUname());\n\t\tparams.add(user.getUpassword());\n\t\tparams.add(user.getType());\n\t\treturn this.MysqlUpdate(sql, params);\n\t}",
"public void save(User user) {\n\t\tuserDetails.setUserName(user.getUserName());\n\t\tuserDetails.setPassword(user.getPassword());\n\t\tuserDetails.setFname(user.getFname());\n\t\tuserDetails.setLname(user.getLname());\n\t\tuserDetails.setAge(user.getAge());\n\t\tuserDetailsRepositroy.save(userDetails);\n\t}",
"public void save(SystemUser user);",
"public void registerUser(User newUser) {\r\n userRepo.save(newUser);\r\n }",
"@Transactional(readOnly=false)\r\n\tpublic void saveUser(User user) {\n\t\tthis.userDao.saveEntry(user);\r\n\t}",
"public void insertUser() {}",
"void save(KingdomUser user);",
"public UserEntity save(UserEntity userEntity);",
"public int persistUser(User user) {\n\n\t\tEntityManager entityManager = factory.createEntityManager();\n\t\t// User user = new User(\"someuser2\",\"password2123\");\n\t\tentityManager.getTransaction().begin();\n\t\tentityManager.persist(user);\n\t\tentityManager.getTransaction().commit();\n\t\tSystem.out.println(\"added user\");\n\n\t\treturn 0;\n\t}",
"public void save(User use) {\n jdbcTemplate.update(\"insert into user (id,name) values(?,?)\", use.getName());\n }",
"@RequestMapping(value=\"/user\", method = RequestMethod.POST) \n\tpublic void saveUser(@RequestBody Users user) {\n\t\tlogger.debug(\"Add a new user: {}\", user.getUsername());\n\t\tauthService.saveUser(user);\n\t}",
"public boolean saveUser(UserModel userModel) {\t\t\r\n\t\tUser user = this.toUser(userModel);\r\n\t\t/*if(userModel.getPassword() != null){\r\n\t\t\tuser.setPassword(bCryptPasswordEncoder.encode(userModel.getPassword()));\r\n\t\t}*/\r\n\t\tconfigDao.saveUser(user);\r\n\t\treturn true;\r\n\t}",
"public User save(User usuario);",
"public boolean saveUser(User user )\r\n\t{\r\n\t\tboolean f = false;\r\n\t\ttry \r\n\t\t{\r\n\t\t\t//user --> database\r\n\t\t\tString query=\"insert into user(first_name,last_name,bdate,email,password,gender,about) values (?,?,?,?,?,?,?)\";\r\n\t\t\tPreparedStatement pstmt = this.con.prepareStatement(query);\r\n\t\t\tpstmt.setString(1, user.getFirst_name());\r\n\t\t\tpstmt.setString(2, user.getLast_name());\r\n\t\t\tpstmt.setString(3, user.getBdate());\r\n\t\t\tpstmt.setString(4, user.getEmail());\r\n\t\t\tpstmt.setString(5, user.getPassword());\r\n\t\t\tpstmt.setString(6, user.getGender());\r\n\t\t\tpstmt.setString(7, user.getAbout());\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tpstmt.executeUpdate();\r\n\t\t\tf=true;\r\n\t\t}catch(Exception e)\r\n\t\t{\r\n\t\t\t\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn f;\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n public void usersave(User user) {\n if (user.getu_id() != null) {\r\n userMapper.userupdate(user);\r\n } else {\r\n userMapper.usersave(user);\r\n }\r\n }",
"void save(UserDetails userDetails);",
"@Override\n\tpublic User save(User user) {\n\t\treturn user;\n\t}",
"public void saveUserData(UserData userData){\n userDataRepository.save(userData);\n }",
"public void insertUser(User user) {\n mUserDAO.insertUser(user);\n }",
"public boolean saveUser(User user) {\n\t\treturn userDao.saveUser(user);\n\t}",
"@Override\n @Transactional\n public ResponseEntity<?> saveUser(User user) {\n user.setPassword(new BCryptPasswordEncoder().encode(user.getPassword()));\n return new ResponseEntity<>(this.user.save(user), HttpStatus.CREATED);\n }",
"private void SaveUserToFirebase(FirebaseUser user)\n {\n\n }",
"public User save(User user) {\n user.setRegisterDate(new Date());\n user.setConfirmed(false);\n \n String sha1 = Hash.sha1(user.getPassword());\n user.setPassword(sha1);\n \n vp.basicValidate(user);\n \n User newUser = repository.save(user);\n \n postfixUser(newUser);\n \n return newUser;\n }",
"public void save(Connection conn, User user) throws SQLException {\n\t\tString saveSql=\"insert into tbl_user (name,password,email)values(?,?,?)\";\n\t\tPreparedStatement ps=conn\n\t\t\t\t.prepareCall(saveSql);\n\t\tps.setString(1, user.getName());\n\t\tps.setString(2, user.getPassword());\n\t\tps.setString(3, user.getEmail());\n\t\tps.execute();\n\t}",
"@Override\n\tpublic void insertUser(User user) {\n\t\t\n\t}",
"@Override\r\n\tpublic int save(SpUser t) {\n\t\treturn 0;\r\n\t}",
"public int insertUser(final User user);",
"public User saveUser(final User user) {\n return userRepository.save(user);\n }",
"public boolean saveUser() {\n\t\tDatastoreService datastore = DatastoreServiceFactory\n\t\t\t\t.getDatastoreService();\n\t\tTransaction txn = datastore.beginTransaction();\n\t\tQuery gaeQuery = new Query(\"users\");\n\t\tPreparedQuery pq = datastore.prepare(gaeQuery);\n\t\tList<Entity> list = pq.asList(FetchOptions.Builder.withDefaults());\n\t\tSystem.out.println(\"Size = \" + list.size());\n\t\t\n\t\ttry {\n\t\tEntity employee = new Entity(\"users\", list.size() + 2);\n\n\t\temployee.setProperty(\"name\", this.name);\n\t\temployee.setProperty(\"email\", this.email);\n\t\temployee.setProperty(\"password\", this.password);\n\t\t\n\t\tdatastore.put(employee);\n\t\ttxn.commit();\n\t\treturn true;\n\t\t}catch(Exception e)\n\t\t{\n\t\t\treturn false;\t\t\n\t\t}\n\t\t\n\t\tfinally{\t\t\t\n\t\t\t if (txn.isActive()) {\n\t\t txn.rollback();\n\t\t }\n\t\t\t\n\t\t}\n\t\t\n\n\t}",
"@Transactional\n\tpublic User save(User user) {\n\t\treturn userRepository.save(user);\n\t}",
"@Override\n\tpublic void createUser(User user) {\n\t\tSystem.out.println(\"INSIDE create user function\");\n\t\tem.persist(user);\n\t\t\t\n\t}",
"public boolean saveUser(User user) {\n\t\tboolean f = false;\n\t\ttry {\n\t\t\t// user --> database query\n\n\t\t\tString query = \"insert into user(email, password, country_code, mobile,\"\n\t\t\t\t\t+ \"title, first_name, last_name, date_of_birth, gender, country)\" + \" values(?,?,?,?,?,?,?,?,?,?)\";\n\t\t\tPreparedStatement pstmt = this.con.prepareStatement(query);\n\t\t\tpstmt.setString(1, user.getEmail());\n\t\t\tpstmt.setString(2, user.getPassword());\n\t\t\tpstmt.setString(3, user.getCountryCode());\n\t\t\tpstmt.setLong(4, user.getMobile());\n\t\t\tpstmt.setString(5, user.getTitle());\n\t\t\tpstmt.setString(6, user.getFname());\n\t\t\tpstmt.setString(7, user.getLname());\n\t\t\tpstmt.setString(8, user.getDateOfBirth());\n\t\t\tpstmt.setString(9, user.getGender());\n\t\t\tpstmt.setString(10, user.getCountry());\n\n\t\t\tpstmt.executeUpdate();\n\t\t\tf = true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn f;\n\t}",
"public void insert(User user);",
"public User save(User user) {\n\n mapper.save(user);\n\n return user;\n }",
"@Override\n\tpublic UserImpl saveUser(UserImpl userImpl) {\n\t \treturn userRepository.save(userImpl);\n\t}",
"@Transactional\n\tpublic User save(User user) {\n\t\tuser.setPassword(passwordEncoder.encode(user.getPassword()));\n\t\tentityManager.persist(user);\n\t\treturn user;\n\t}",
"public User InsertUser(User user){\n\t\t\t//step to call the jpa class and insert user into the db\n\t\t\treturn user;\n\t\t}",
"public String saveUserRecord() {\n\t\tSystem.out.println(\"Calling saveUserRecord() Method To Save User Record\");\n\t\tuserDAO.addUser(user);\n\t\t\n\t\treturn \"index.xhtml?faces-redirect=true\";\n\t}",
"public void storeUser(User user) {\n Entity userEntity = new Entity(\"User\", user.getEmail());\n userEntity.setProperty(\"email\", user.getEmail());\n userEntity.setProperty(\"aboutMe\", user.getAboutMe());\n datastore.put(userEntity);\n }",
"@Override\n public void createUser(User user) {\n run(()->{this.userDAO.save(user);});\n\n }",
"private void insert() {//将数据录入数据库\n\t\tUser eb = new User();\n\t\tUserDao ed = new UserDao();\n\t\teb.setUsername(username.getText().toString().trim());\n\t\tString pass = new String(this.pass.getPassword());\n\t\teb.setPassword(pass);\n\t\teb.setName(name.getText().toString().trim());\n\t\teb.setSex(sex1.isSelected() ? sex1.getText().toString().trim(): sex2.getText().toString().trim());\t\n\t\teb.setAddress(addr.getText().toString().trim());\n\t\teb.setTel(tel.getText().toString().trim());\n\t\teb.setType(role.getSelectedIndex()+\"\");\n\t\teb.setState(\"1\");\n\t\t\n\t\tif (ed.addUser(eb) == 1) {\n\t\t\teb=ed.queryUserone(eb);\n\t\t\tJOptionPane.showMessageDialog(null, \"帐号为\" + eb.getUsername()\n\t\t\t\t\t+ \"的客户信息,录入成功\");\n\t\t\tclear();\n\t\t}\n\n\t}",
"public User saveUser(User user) {\n\t\treturn userRepository.save(user);\n\t}",
"public static int save(User u){ \n int status=0; \n try{ \n //membuka koneksi\n Connection con=Koneksi.openConnection();\n //melakukan query database\n PreparedStatement ps=con.prepareStatement( \n \"insert into t_user(user_name,nama_lengkap,password,hak_akses) values(?,?,?,?)\"); \n ps.setString(1,u.getUserName()); \n ps.setString(2,u.getNamaLengkap()); \n ps.setString(3,u.getPassword()); \n ps.setString(4,u.getHakAkses()); \n status=ps.executeUpdate(); \n }catch(Exception e){\n System.out.println(e);\n } \n return status; \n }",
"@Override\n\tpublic void save(Account userForm) {\n\t\taccount.save(userForm);\n\n\t}",
"public void postUser(User u) throws DBException\n {\n String sqlString = \"INSERT INTO user (username, password, email, firstName, \" +\n \"lastName, gender, person_id) VALUES(?,?,?,?,?,?,?)\";\n\n try(PreparedStatement sqlStatement = conn.prepareStatement(sqlString))\n {\n sqlStatement.setString(1, u.getUserName());\n sqlStatement.setString(2, u.getPassword());\n sqlStatement.setString(3, u.getEmail());\n sqlStatement.setString(4, u.getFirstName());\n sqlStatement.setString(5, u.getLastName());\n sqlStatement.setString(6, u.getGender());\n sqlStatement.setString(7, u.getPersonID());\n\n sqlStatement.executeUpdate();\n }\n catch(SQLException ex)\n {\n throw new DBException(\"Unable to insert User\");\n }\n }",
"public String saveUser(User entity) {\n\t\treturn null;\r\n\t}",
"public int insertUser(User newUser) {\r\n\r\n try {\r\n BusTrackerDB = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(\"username\", newUser.getUsername());\r\n values.put(\"password\", newUser.getPassword());\r\n\r\n BusTrackerDB.insert(\"user\", null, values);\r\n } catch (SQLiteException e) { return 0; }\r\n\r\n BusTrackerDB.close();\r\n\r\n return 1;\r\n }",
"public void addUser(User user){\n loginDAO.saveUser(user.getId(),user.getName(),user.getPassword());\n }",
"@Override\n\tpublic int save(Users t) {\n\t\treturn usersDAO.save(t);\n\t}",
"@Override\n public boolean userRegister(User user) \n { \n Connection conn = null;\n Statement stmt = null;\n try \n {\n db_controller.setClass();\n conn = db_controller.getConnection();\n stmt = conn.createStatement();\n String sql;\n \n sql = \"INSERT INTO users (firstname,lastname,username,password,city,number) \"\n + \"values ('\"+ user.getFirstname()+\"',\" \n + \"'\" + user.getLastname() + \"',\" \n + \"'\" + user.getUsername() + \"',\" \n + \"'\" + user.getPassword() + \"',\" \n + \"'\" + user.getCity() + \"',\"\n + \"'\" + user.getNumber() + \"')\";\n int result = stmt.executeUpdate(sql);\n \n stmt.close();\n conn.close();\n if(result == 1) return true;\n else return false;\n } \n catch (SQLException ex) { ex.printStackTrace(); return false;} \n catch (ClassNotFoundException ex) { ex.printStackTrace(); return false;} \n }",
"@Override\n\tpublic void insertUser(UserPojo user) {\n\t\tuserDao.insertUser(user);\n\t}",
"private void saveUserInformation() {\n String name = editTextName.getText().toString().trim();\n String add = editTextAddress.getText().toString().trim();\n\n //creating a userinformation object\n UserInformation userInformation = new UserInformation(name, add);\n\n //getting the current logged in user\n FirebaseUser user = firebaseAuth.getCurrentUser();\n\n //saving data to firebase database\n /*\n * first we are creating a new child in firebase with the\n * unique id of logged in user\n * and then for that user under the unique id we are saving data\n * for saving data we are using setvalue method this method takes a normal java object\n * */\n databaseReference.child(user.getUid()).setValue(userInformation);\n\n //displaying a success toast\n Toast.makeText(this, \"Information Saved...\", Toast.LENGTH_LONG).show();\n }",
"public String saveUser(User user) {\n id = user.getId();\n firstName = user.getFirstName();\n lastName = user.getLastName();\n phoneNumber = user.getPhoneNumber();\n email = user.getEmail();\n address = user.getAddress();\n idCity = user.getIdCity();\n currentUser = user;\n return \"operator\";\n }",
"@Override\r\n\tpublic void guardar(Usuario usuario) {\n\t\tString pw = usuario.getPassword();\r\n\t\tBCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder(4);\r\n\t\tusuario.setPassword(bCryptPasswordEncoder.encode(pw));\r\n\t\tiUsuario.save(usuario);\r\n\t}",
"public Integer save(User user) {\n System.out.println(\" save user ()\");\n Session session = HibernateSessionFactory.getSessionFactory().openSession();\n Transaction tx = null;\n Integer userID = null;\n try {\n tx = session.beginTransaction();\n userID = (Integer) session.save(user);\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null) tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n return userID;\n }",
"public static void SaveUser(StandardUserModel user, Context context) {\n\t\tfilename = userprofile;\n\t\tString modelJson = gson.toJson(user);\n\t\t\n\t\twriteuser(modelJson, context);\n\t}",
"@Override\n\tpublic void insert(User objetc) {\n\t\tuserDao.insert(objetc);\n\t\t\n\t}",
"public void createUser(User user);",
"@Override\n public void registerUser(User user) {\n userDAO.createUser(user);\n }",
"private void saveUserInformation() {\n name.setText(nameInput.getText().toString());\n\n if (name.getText().toString().isEmpty()) {\n name.setError(\"Name required\");\n name.requestFocus();\n return;\n }\n\n FirebaseUser user = mAuth.getCurrentUser();\n if (user != null) {\n if (isBname()) {\n updateName(user);\n }\n if (isBtitle()) {\n updateTitle(user);\n }\n }\n }",
"public User saveUser(User user) {\n\t\t\n\t\tRSA rsaUser = encript.generateKeys();\n\t\t\n\t\tString nameEncript = encript.criptografa(user.getName(), rsaUser.getPublicKey()).toString();\n\t\t\n\t\tString emailEncript = encript.criptografa(user.getEmail(), rsaUser.getPublicKey()).toString();\n\t\t\n\t\tuser.setEmail(emailEncript);\n\t\tuser.setName(nameEncript);\n\t\t\n\t\tUser userSalvo = repository.save(user);\n\t\t\n\t\trsaUser.setIdUser(userSalvo.getId());\n\t\t\n\t\trsaRepository.save(rsaUser);\n\t\t\n\t\treturn userSalvo;\n\t}",
"public User save (User user) {\n\t\tif(user.getId() == null) {\n\t\t\tuser.setId(++userCount);\n\t\t}\n\t\t users.add(user);\n\t\t return user;\n\t}",
"@Override\n\tpublic User save(User user) {\n\t\treturn null;\n\t}"
] |
[
"0.8001075",
"0.79873925",
"0.7873604",
"0.77744776",
"0.77589023",
"0.7726047",
"0.770877",
"0.7697612",
"0.7690123",
"0.76494104",
"0.76227987",
"0.76207334",
"0.75361437",
"0.75161475",
"0.74881005",
"0.74354565",
"0.74026954",
"0.7384287",
"0.7382227",
"0.7378342",
"0.73297364",
"0.73006743",
"0.7296188",
"0.72894174",
"0.72874075",
"0.7251034",
"0.7250823",
"0.72425985",
"0.7242558",
"0.72192276",
"0.71673566",
"0.715175",
"0.714066",
"0.7140191",
"0.71340644",
"0.71159166",
"0.7110799",
"0.71036303",
"0.7093356",
"0.7075201",
"0.7049982",
"0.7044535",
"0.70170397",
"0.70162594",
"0.70108426",
"0.7008978",
"0.69926685",
"0.6989706",
"0.6984971",
"0.6976653",
"0.69719434",
"0.6922171",
"0.6917756",
"0.6912253",
"0.69071406",
"0.69048196",
"0.6893033",
"0.68914294",
"0.6880193",
"0.68668664",
"0.6864824",
"0.68411005",
"0.6831703",
"0.6824472",
"0.6806288",
"0.67934656",
"0.6788486",
"0.6785489",
"0.67790747",
"0.677701",
"0.6759636",
"0.6757936",
"0.67562056",
"0.67542493",
"0.67289925",
"0.6715021",
"0.6714293",
"0.670941",
"0.67091846",
"0.6704445",
"0.6703069",
"0.6702866",
"0.6679022",
"0.6678574",
"0.66768855",
"0.6656817",
"0.66556865",
"0.6654597",
"0.66445905",
"0.66438234",
"0.66367793",
"0.663329",
"0.6632115",
"0.6629271",
"0.66249824",
"0.66187716",
"0.66102374",
"0.6608882",
"0.66082984",
"0.660469",
"0.6600443"
] |
0.0
|
-1
|
Delete the user from the database.
|
public void delete(Department department) {
if (entityManager.contains(department))
entityManager.remove(department);
else
entityManager.remove(entityManager.merge(department));
return;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void delete(User user) {\n\t\tuserDao.delete(user);\r\n\t}",
"public void deleteUser(User user) {\n update(\"DELETE FROM user WHERE id = ?\",\n new Object[] {user.getId()});\n }",
"void deleteUserById(Long id);",
"public void delete(User user){\n userRepository.delete(user);\n }",
"@Override\n\tpublic void deleteUser(User user) {\n\t\topenSession().createQuery(\"DELETE FROM User where userId =\" + user.getUserId()).executeUpdate();\n\t\t\n\t}",
"public void delete(User user) {\n\t\tuserDao.delete(user);\n\t}",
"public void deleteUser(User userToDelete) throws Exception;",
"public void deleteUser(User user) {\n\t\tdelete(user);\r\n\t}",
"public void deleteUser(User user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_USER, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n db.close();\n }",
"@Override\n\tpublic void delete(User user)\n\t{\n\t\tuserDAO.delete(user);\n\t}",
"public void deleteUser(Integer uid);",
"@Override\n\tpublic void deleteUser(User user)\n\t{\n\n\t}",
"public void deleteUser(User user) {\n\t\t\r\n\t\tsessionFactory.getCurrentSession().delete(user);\t\r\n\t\t\r\n\t}",
"public void deleteUser(long id){\n userRepository.deleteById(id);\n }",
"void deleteUserById(Integer id);",
"public void deleteUser(int id) {\r\n userRepo.deleteById(id);\r\n }",
"@Override\n\tpublic void deleteUser(User user) {\n\t\tiUserDao.deleteUser(user);\n\t}",
"@Override\n public boolean deleteUser(User user) {\n return controller.deleteUser(user);\n }",
"public void deleteUser(int id) {\n\t\tuserRepository.delete(id);\r\n\t}",
"@Override\n public void delete(User user) {\n dao.delete(user);\n }",
"public void deleteUser(User user) {\r\n\t\tusersPersistence.deleteUser(user);\r\n\t}",
"public void deleteUserRecord() {\n\t\tSystem.out.println(\"Calling deleteUserRecord() Method To Delete User Record\");\n\t\tuserDAO.deleteUser(user);\n\t}",
"public void delete(User user) {\n repository.delete(user);\n }",
"public void deleteUser(String name);",
"@Override\r\n\tpublic int deleteUser(Users user) {\n\t\treturn 0;\r\n\t}",
"public void deleteUser(user user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_NAME, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n db.close();\n }",
"public void deleteUser(final Long id) {\n userRepository.deleteById(id);\n }",
"@Override\n\tpublic int deleteUser(Integer id) {\n\t\treturn userDao.deleteUser(id);\n\t}",
"public boolean delete(User user);",
"@Override\n\tpublic int delete(Users user) {\n\t\t\n\t\treturn userDAO.delete(user);\n\t}",
"@Override\n\tpublic void delete_User(String user_id) {\n\t\tuserInfoDao.delete_User(user_id);\n\t}",
"@Override\n\tpublic void deleteUser(int id) {\n\t\tuserMapper.deleteUser(id);\n\t}",
"@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}",
"public void deleteUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk deleteUser\");\r\n\t}",
"@Override\n public boolean deleteUser(User user) {\n return false;\n }",
"@Override\n\tpublic void deleteUser(int userId) {\n\t\tuserDao.deleteUser(userId);\n\t}",
"@Override\r\n\tpublic int deleteByPrimaryKey(Integer id) {\n\t\treturn userDao.deleteByPrimaryKey(id);\r\n\t}",
"@Override\n\tpublic void deleteUser() {\n\t\tLog.d(\"HFModuleManager\", \"deleteUser\");\n\t}",
"public void deleteUserById(Long userId);",
"@Override\r\n\tpublic boolean delUser(user user) {\n\t\tif(userdao.deleteByPrimaryKey(user.gettUserid())==1){\r\n\t\t\treturn true;}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}",
"@Override\n\tpublic void deleteOne(User u) {\n\t\tdao.deleteOne(u);\n\t}",
"public void deleteUser(long userId);",
"@Override\n\tpublic Boolean deleteUser(User user) {\n\t\treturn null;\n\t}",
"void deleteUser(String username) throws UserDaoException;",
"public void deleteUser(String username);",
"public void deleteUser(int id) {\n\t\tet.begin();\n\t\tem.remove(em.find(User.class, id));\n\t\tet.commit();\n\t}",
"public void deleteUser(User u) {\n\t\tuserRepository.delete(u);\n\t}",
"public void deleteUser(int id){\r\n\t\tconfigDao.deleteUserById(id);\r\n\t}",
"@Override\n\tpublic int deleteByPrimaryKey(Integer id) {\n\t\treturn userMapper.deleteByPrimaryKey(id);\n\t}",
"@Override\n\tpublic int delete(int uid) {\n\t\treturn new userDaoImpl().delete(uid);\n\t}",
"@Override\r\n\tpublic void delete(UserMain user) {\n\t\tusermaindao.delete(user);\r\n\t}",
"public void removeUser(){\n googleId_ = User.getDeletedUserGoogleID();\n this.addToDB(DBUtility.get().getDb_());\n }",
"@Override\r\n\tpublic int delete(int id) {\n\t\treturn userDAO.DeleteUser(id);\r\n\t}",
"boolean delete(User user);",
"@Override\n\tpublic void deleteUser(String id) throws Exception {\n\t\t\n\t}",
"public String deleteUser(){\n\t\tusersservice.delete(usersId);\n\t\treturn \"Success\";\n\t}",
"public Boolean DeleteUser(User user){\n\t\t\treturn null;\n\t\t}",
"public void delete(User u) {\n\t\tUserDao ua=new UserDao();\n\t\tua.delete(u);\n\t\t\n\t}",
"@Override\n\tpublic void delete(Connection conn, User user) throws SQLException {\n\t\tString deleteSql=\"delete from tbl_user where id=?\";\n\t\tPreparedStatement ps=conn\n\t\t\t\t.prepareCall(deleteSql);\n\t\tps.setLong(1, user.getId());\n\t\tps.execute();\n\t\t\n\t}",
"void deleteUser(String userId);",
"@Override\r\n\tpublic void deleteByUser(User user) {\n\t\tuserReposotory.delete(user);\r\n\t}",
"void remove(User user) throws SQLException;",
"public void deleteUser(String id) {\n\t\tSystem.out.println(\"deleteUser\");\n\t\t personDAO.deleteUser(id);\n\t}",
"void deleteUser(int id);",
"@Override\n\tpublic void deleteUserById(Integer id) {\n\n\t}",
"void delete(User user);",
"void delete(User user);",
"@Override\r\n\tpublic void delete(User user) {\n\t\tint iRet = dao.delete(user);\r\n\t\tif(iRet != 1){\r\n\t\t\tlogger.error(\"删除失败\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlogger.info(\"删除成功\");\r\n\t}",
"void deleteUser(User user, String token) throws AuthenticationException;",
"@Override\n\tpublic void deleteUser(Long userId) {\n\t\tusersRepo.deleteById(userId);\n\n\t}",
"@Override\n\tpublic void delete(int id) {\n\t\tuserDao.delete(id);\n\t}",
"public void deleteUser(Userlist user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_USERLIST, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getID())});\n db.close();\n }",
"@Override\n\tpublic void delete(String id) {\n\t\tuserDao.delete(id);\n\t\t\n\t}",
"public static int delete(User user) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n\n String query = \"DELETE FROM users \"\n + \"WHERE Email = ?\";\n try {\n ps = connection.prepareStatement(query);\n ps.setString(1, user.getEmail());\n\n return ps.executeUpdate();\n } catch (SQLException e) {\n System.out.println(e);\n return 0;\n } finally {\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }",
"public void deleteUser(Integer id) throws BadRequestException;",
"public void delete() throws NotFoundException {\n\tUserDA.delete(this);\n }",
"void deleteUser( String username );",
"public void deleteUser(String uid) throws Exception {\n\t\tString sql = \"delete from user where uid = ?\";\r\n\t\tObject[] params = { uid };\r\n\t\tdb.doPstm(sql, params);\r\n\t\tdb.closed();\r\n\t}",
"public void deleteUserById(int id){\n userListCtrl.deleteUser(id);\n }",
"public User delete(String user);",
"public void deleteAppUser(AppUserTO appUser) {\n\t\ttry {\n\t\t\tthis.jdbcTemplate.update(\"delete from carbon_app_user where id=?\",\n\t\t\t\t\tappUser.getId());\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error in AppUserDAO: deleteAppUser\", e);\n\t\t}\n\t}",
"@Override\r\n\tpublic int delete(User user) {\n\t\treturn 0;\r\n\t}",
"void deleteUser(String deleteUserId);",
"@Override\r\n\tpublic void del(int uid) {\n\t\tuserDao.del(uid);\r\n\t}",
"@Override\n\tpublic void delete(User user) throws DAOException {\n\t\t\n\t}",
"public DeleteUserResponse deleteUser(DeleteUserRequest request) throws GPUdbException {\n DeleteUserResponse actualResponse_ = new DeleteUserResponse();\n submitRequest(\"/delete/user\", request, actualResponse_, false);\n return actualResponse_;\n }",
"private void deleteUser() throws SQLException {\n System.out.println(\"Are you sure you want to delete your user? Y/N\");\n if (input.next().equalsIgnoreCase(\"n\")) return;\n\n List<Integer> websiteIds = new ArrayList<>();\n try (PreparedStatement stmt = connection.prepareStatement(\"SELECT * FROM passwords \" +\n \"WHERE user_id like (?)\")) {\n stmt.setInt(1, user.getId());\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n websiteIds.add(rs.getInt(\"website_data_id\"));\n }\n }\n\n try (PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM passwords \" +\n \"WHERE user_id like (?)\")) {\n stmt.setInt(1, user.getId());\n stmt.executeUpdate();\n }\n\n for (int website : websiteIds) {\n try (PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM website_data \" +\n \"WHERE website_data_id like (?)\")) {\n stmt.setInt(1, website);\n stmt.executeUpdate();\n }\n }\n\n try (PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM users \" +\n \"WHERE id like (?)\")) {\n stmt.setInt(1, user.getId());\n stmt.executeUpdate();\n }\n\n System.out.println(\"User \" + user.getUsername() + \" deleted.\");\n System.exit(0);\n }",
"public void deleteUser(Integer id) {\n UserModel userModel;\n try {\n userModel = userRepository.findById(id).orElseThrow(IOException::new);\n }\n catch (IOException e) {\n System.out.println(\"User not found\");\n userModel = null;\n }\n userRepository.delete(userModel);\n }",
"public void deleteUser(String username) {\n profile.deleteUser(username);\n }",
"public void delete(int id){\n\t\tuserRepository.delete(id);\n\t}",
"@Override\r\n\tpublic int deleteUser(String userId) {\n\t\treturn userMapper.deleteUser(userId);\r\n\t}",
"@Override\r\n\tpublic void delete(int userId) {\n\t\ttheUserRepository.deleteById(userId);\r\n\t}",
"public static void deleteUserFromDb(Person person) {\n int id = person.getId();\n\n String query = \"DELETE FROM users WHERE idusers = \" + id + \";\";\n DbConnector.updateValueInDb(query);\n }",
"public static void deleteUser() {\n try {\n buildSocket();\n ClientService.sendMessageToServer(connectionToServer, ClientService.deleteUser());\n closeSocket();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public User delete(User user);",
"@Override\r\n\tpublic void deleteByIdUser(int id) {\n\t\tuserReposotory.deleteById(id);\r\n\t}",
"public String deleteUser(){\n\t\ttry{\n\t\t\tnew UtenteDao().deleteUser(utente_target);\n\t\t\treturn \"Utente eliminato con successo!\";\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"public void deleteUser(View v){\n Boolean deleteSucceeded = null;\n\n int userId = users.get(userSpinner.getSelectedItemPosition() - 1).getId();\n\n // Delete user from database\n deleteSucceeded = udbHelper.deleteUser(userId);\n\n String message = \"\";\n if(deleteSucceeded){\n message = \"Successfully removed user with id {\" + userId + \"} from database!\";\n }\n else {\n message = \"Failed to save user!\";\n }\n Toast.makeText(ManageAccountsActivity.this, message, Toast.LENGTH_LONG).show();\n\n reloadUserLists();\n }",
"@Override\n\tpublic void delete(User entity) {\n\t\tuserlist.remove(String.valueOf(entity.getDni()));\n\t}",
"public void deleteUser(IndividualUser user) {\n try{\n PreparedStatement s = sql.prepareStatement(\"DELETE FROM Users WHERE userName=? AND id=? AND firstName=? AND lastName=?;\");\n s.setString(1, user.getId());\n s.setInt(2,user.getIdNum());\n s.setString(3, user.getFirstName());\n s.setString(4, user.getLastName());\n s.execute();\n s.close();\n } catch (SQLException e) {\n sqlException(e);\n }\n }",
"@Override\n public void delete(int userId) throws DaoException {\n log.info(\"Delete user with id {}\", userId);\n userDao.delete(userId);\n }"
] |
[
"0.7905509",
"0.78713584",
"0.7860712",
"0.7849072",
"0.78336465",
"0.7791637",
"0.77838016",
"0.7783385",
"0.7782922",
"0.7777536",
"0.7746421",
"0.7737197",
"0.7732361",
"0.7724757",
"0.7724313",
"0.77211356",
"0.7720868",
"0.77186877",
"0.77096915",
"0.7702831",
"0.7693693",
"0.76820517",
"0.76787305",
"0.7641229",
"0.76401025",
"0.7615134",
"0.76047355",
"0.76023567",
"0.7597542",
"0.7583196",
"0.75820047",
"0.7556952",
"0.7553799",
"0.7529303",
"0.75046563",
"0.74991584",
"0.74974984",
"0.74973154",
"0.7492988",
"0.7492221",
"0.74862236",
"0.74845314",
"0.74749684",
"0.7469852",
"0.7466639",
"0.7454444",
"0.7454242",
"0.74539435",
"0.74525434",
"0.74520767",
"0.74514574",
"0.74489486",
"0.74456024",
"0.7435869",
"0.74323446",
"0.7423768",
"0.7420928",
"0.7419085",
"0.7414188",
"0.7407301",
"0.7397075",
"0.73909575",
"0.73767805",
"0.7369849",
"0.7360872",
"0.7350704",
"0.7350704",
"0.7320285",
"0.7315576",
"0.7315205",
"0.7313315",
"0.730967",
"0.7308511",
"0.7308349",
"0.7297279",
"0.72937244",
"0.72927487",
"0.7291701",
"0.72869396",
"0.728294",
"0.72809845",
"0.72767466",
"0.7246732",
"0.7246596",
"0.72350585",
"0.7227366",
"0.72022486",
"0.71900403",
"0.7173525",
"0.7172373",
"0.7172089",
"0.7171353",
"0.7171327",
"0.7170274",
"0.71534485",
"0.71313095",
"0.71242595",
"0.7124057",
"0.7122717",
"0.71213084",
"0.71152014"
] |
0.0
|
-1
|
Return all the users stored in the database.
|
@SuppressWarnings("unchecked")
public List<Department> getAll() {
return entityManager.createQuery("from Department").getResultList();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static List<UserDB> getAllUsers() {\n\n\t\tUserDB newUser = new UserDB();\n\n\t\treturn newUser.getAllUsers();\n\t}",
"public List<User> retrieveAllUsers() {\n\t\treturn (List<User>) userRepository.findAll();\n\t}",
"public List<User> findAll() \n\t{\n\t\tString sql = \"SELECT * FROM VIDEOGAMESTORE.USERS\";\n\t\t\n\t\t// Instantiate a new list of Users.\n\t\tList<User> userList = new ArrayList<User>();\n\t\t\n\t\ttry {\n\t\t\tSqlRowSet srs = jdbcTemplate.queryForRowSet(sql);\n\t\t\twhile(srs.next())\n\t\t\t{\n\t\t\t\t// Add a new User to the list for every row that is returned\n\t\t\t\tuserList.add(new User(srs.getString(\"USERNAME\"), srs.getString(\"PASSWORD\"), srs.getString(\"EMAIL\"),\n\t\t\t\t\t\tsrs.getString(\"FIRST_NAME\"), srs.getString(\"LAST_NAME\"), srs.getInt(\"GENDER\"), srs.getInt(\"USER_PRIVILEGE\"), srs.getInt(\"ID\")));\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn userList;\n\t}",
"public List<User> queryAllUsers() {\n \tList<User> userList = new ArrayList<>();\n\tUser user;\n String sql = \"SELECT * FROM users\";\n\ttry {\t\n this.statement = connection.prepareStatement(sql);\n this.resultSet = this.statement.executeQuery();\n while(this.resultSet.next()) {\n\t\tuser = new User();\n user.setUserName(this.resultSet.getString(\"user_name\"));\n user.setHashedPassword(this.resultSet.getString(\"hashed_password\"));\n\t\tuser.setEmail(this.resultSet.getString(\"email\"));\n user.setHashedAnswer(this.resultSet.getString(\"hashed_answer\"));\n user.setIsActivated(this.resultSet.getInt(\"is_activated\"));\n user.setPublicKey(this.resultSet.getString(\"pubkey\"));\n\t\tuserList.add(user);\n }\t\n this.statement.close();\n\t} \n catch(SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n return userList;\n }",
"public List<TbUser> getAllUsers() {\n return userRepository.findAll();\n }",
"public List<User> getAllUsers(){\n myUsers = loginDAO.getAllUsers();\n return myUsers;\n }",
"public static List<User> getAllUsers(){\n\t\t// getting all users\n\t\treturn dao.getAllUsers();\n\t}",
"public List<User> getAllUsers() {\n\t\treturn userDao.selectAllUsers();\n\t}",
"@Override\n\tpublic List<User> getAllUsers() {\n\t\tlog.info(\"get all users!\");\n\t\treturn userRepository.findAll();\n\t}",
"public List<Users> getAllUsers() {\r\n\t\t// return usDao.findAll();\r\n\t\treturn usDao.getAllUsers();\r\n\t}",
"@Override\r\n\tpublic List<User> queryAllUsers() {\n\t\tList<User> users = userMapper.queryAllUsers();\r\n\t\treturn users;\r\n\t}",
"public List<User> findAll() {\n return store.findAll();\n }",
"@Override\r\n\tpublic List<User> findAllUsers() {\n\t\treturn userDAO.findAllUsers();\r\n\t}",
"@Override\n public List<User> getAllUsers() {\n\n Session session = sessionFactory.openSession();\n Transaction tx = session.beginTransaction();\n List<User> hiberusers =\n session.createQuery(\"From User\").list();\n tx.commit();\n session.close();\n return hiberusers;\n }",
"public List<User> getAllUsers() {\n\t\tTypedQuery<User> query = em.createNamedQuery(\"User.findAll\", User.class);\n\n\t\tList<User> result = query.getResultList();\n\t\tlog(\"got all users, result size: \" + result.size());\n\t\treturn result;\n\t}",
"@Override\n\tpublic List<ERSUser> getAllUsers() {\n\t\treturn userDao.selectAllUsers();\n\t}",
"@Override\n public List<User> selectAllUsers() {\n\n List<User> userList = new ArrayList<>();\n\n try (Connection connection = DriverManager.getConnection(URL, USERNAME, PASSWORD)) {\n\n String sql = \"SELECT * FROM ers_users\";\n\n PreparedStatement ps = connection.prepareStatement(sql);\n\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n userList.add(\n new User(\n rs.getInt(1)\n , rs.getString(2)\n , rs.getString(3)\n , rs.getString(4)\n , rs.getString(5)\n , rs.getString(6)\n , rs.getInt(7)\n )\n );\n }\n }\n\n catch (SQLException e) {\n\n e.printStackTrace();\n }\n\n return userList;\n }",
"@Override\n\tpublic ArrayList<User> findAll() {\n\t\t\n\t\treturn userDao.querydAll();\n\t}",
"@Override\n\tpublic List<Users> getAll() {\n\t\treturn usersDAO.getAll();\n\t}",
"public List<User> getAllUsers() {\n\t\tLog.i(TAG, \"return all users list.\");\n\t\tList<User> result = new ArrayList<User>();\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tString getUsers = \"select * from \" + TABLE_USER;\n\t\tCursor cursor = db.rawQuery(getUsers, null);\n\t\tfor (cursor.moveToFirst();!cursor.isAfterLast();cursor.moveToNext()) {\n\t\t\tUser user = new User(cursor.getInt(0), cursor.getString(1), cursor.getString(2));\n\t\t\tresult.add(user);\n\t\t}\n\t\treturn result;\n\t}",
"public List<User> getAllUsers() {\n\t\treturn userDao.getAllUsers();\n\t}",
"public List<User> getAllUsers() {\n\t\tfactory = new Configuration().configure().buildSessionFactory();\n\t\tsession = factory.getCurrentSession();\n\t\tsession.beginTransaction();\n\t\tQuery query = session.createQuery(\"from User\");\n\t\tList<User> list = query.getResultList();\n\t\tsession.close();\n\t\treturn list;\n\n\t\t\n\t}",
"public List<User> getAllUsers() {\n return users;\n }",
"public Users findAll() {\n\tthis.createConnection();\n try {\n Connection con = this.getCon();\n PreparedStatement stmnt = con.prepareStatement(this.getAllQuery());\n ResultSet rs = stmnt.executeQuery();\n return get(rs);\n } catch (SQLException e) {\n System.out.println(\"SQL Exception\" + e.getErrorCode() + e.getMessage());\n e.getStackTrace();\n return new Users();\n }\n }",
"public List<User> getAllUsers() {\n List<User> users = null;\n Session session = null;\n try {\n session = openSession();\n users = session.createCriteria(User.class).list();\n } catch (HibernateException he) {\n logger.error(\"Hibernate Exception: \" + he);\n } catch (Exception e) {\n logger.error(\"Exception: \" + e);\n } finally {\n if (session != null) {\n session.close();\n }\n }\n return users;\n }",
"@Override\n\tpublic List<User> getAllUser() {\n\t\tList<User> users = dao.searchAllUser();\n\t\treturn users;\n\t}",
"public List<User> getAll() {\n\t\treturn service.getAll();\n\t}",
"@Override\r\n\tpublic List<User> users() {\r\n\t\tList<User> ris = new ArrayList<>();\r\n\t\tList< Map <String,String>> maps = getAll(SELECT_USERS);\r\n\t\tfor (Map<String, String> map : maps) {\r\n\t\t\tris.add(IMappable.fromMap(User.class, map));\r\n\t\t}\r\n\t\treturn ris;\r\n\t}",
"@Override\n\tpublic List<Object> getAllUsers() {\n\t\tList<Object> usersList = new ArrayList<Object>();\n\t\tList<TestUser> users = dao.getAll();\n\t\tSystem.out.println(dao.exists(5));\n\t\tfor(TestUser user : users){\n\t\t\tMap<String,Object> m = new HashMap<String,Object>();\n\t\t\tm.put(\"id\", user.getId());\n\t\t\tm.put(\"name\", user.getUsername());\n\t\t\tm.put(\"pwd\", user.getPassword());\n\t\t\tJSONObject j = new JSONObject(m);\n\t\t\tusersList.add(j);\n\t\t}\n\t\treturn usersList;\n\t}",
"public List listUsers() {\n Session session = HibernateSessionFactory.getSessionFactory().openSession();\n Transaction tx = null;\n List users = null;\n try {\n tx = session.beginTransaction();\n users = session.createQuery(\"FROM User\").list();\n for (Iterator iterator = users.iterator(); iterator.hasNext(); ) {\n User user = (User) iterator.next();\n System.out.print(\"id: \" + user.getId());\n System.out.print(\" Username: \" + user.getUsername());\n System.out.print(\" Password: \" + user.getPassword());\n System.out.println(\" Email: \" + user.getEmail());\n }\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null) tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n return users;\n }",
"@GetMapping(\"/users\")\n\tpublic List<User> retrieveAllUsers() {\n\t\treturn userService.findAll();\n\t}",
"@Override\n\tpublic List<User> getAll() {\n\t\treturn userDao.getAll();\n\t}",
"public List<User> getAllUsers(){\n return userRepository.findAll();\n }",
"@Override\n\tpublic List<User> getUsers() {\n\t\treturn mongoTemplate.findAll(User.class);\n\t}",
"public List<User> getAllUsers();",
"public List<User> findAll() {\n return userRepository.findAll();\n }",
"@Override\r\n\tpublic List<User> getAll() {\n\t\treturn users;\r\n\t}",
"public static List<User> all() \n {\n return find.all();\n }",
"public List<Users> getUserList(){\n\t\tList<Users> users = (List<Users>) this.userDao.findAll();\n\t\treturn users;\n\t}",
"@Override\n\tpublic Iterable<com.example.demo.model.User> getAllUsers() {\n\t\treturn userRepository.findAll();\n\t}",
"public Collection<User> getAllUser() {\n\t\treturn this.userDao.getUsers();\r\n\t}",
"public List getAllUsers();",
"public ArrayList findAll() {\n String query = \"SELECT * FROM SilentAuction.Users\";\n ArrayList aUserCollection = selectUsersFromDB(query);\n return aUserCollection;\n }",
"public List<User> getAllUsers() {\n\t\tList<User> users = new ArrayList<User>();\n\t\tString selectQuery = \"SELECT * FROM \" + UserDataSource.TABLE_USERS;\n\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tCursor c = db.rawQuery(selectQuery, null);\n\n\t\t// looping through all rows and adding to list\n\t\tif (c.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tUser user = UserDataSource.cursorToUser(c);\n\n\t\t\t\t// adding to list\n\t\t\t\tusers.add(user);\n\t\t\t} while (c.moveToNext());\n\t\t}\n\n\t\treturn users;\n\t}",
"public List<User> getAllUsers() {\n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction();\n\n\t\tQuery query = session.createQuery(\"from User u order by u.lastLogin DESC\");\n\t\tList<User> userList = query.list();\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\n\t\treturn userList;\n\t}",
"public ArrayList<User> getAllUsers() {\n return profile.getAllUsers();\n }",
"public ArrayList<IndividualUser> listAllUsers() {\n try {\n PreparedStatement s = sql.prepareStatement(\"SELECT id, userName, firstName, lastName FROM Users \");\n s.execute();\n ResultSet results = s.getResultSet();\n ArrayList<IndividualUser> users = new ArrayList<>();\n if (!results.isBeforeFirst()) {\n results.close();\n s.close();\n return users;\n }\n\n while (!results.isLast()) {\n results.next();\n IndividualUser u = new IndividualUser(results.getInt(1), results.getString(2), results.getString(3), results.getString(4));\n\n users.add(u);\n\n }\n\n results.close();\n s.close();\n\n return users;\n } catch (SQLException e) {\n sqlException(e);\n return null;\n }\n }",
"@Override\n\tpublic List<User> findAll() {\n\t\treturn this.userMapper.findAll();\n\t}",
"public synchronized List<User> getAllUsers() {\r\n\t\treturn new ArrayList<User>(mapping.values());\r\n\t}",
"public List<User> findAll() {\n\t\treturn users;\n\t}",
"@Override\n\tpublic Collection<Users> read() {\n\t\treturn userDAO.readAll();\n\t}",
"public UserRow[] getAllUsers() throws AdminPersistenceException {\n return (UserRow[]) getRows(SELECT_ALL_USERS).toArray(new UserRow[0]);\n }",
"@Override\r\n\tpublic List<User> getUsers() {\n\t\tList<User> userlist=dao.getUsers();\r\n\t\treturn userlist;\r\n\t}",
"public List<User> findUsers() {\n\t\treturn userRepository.findUsers();\n\t}",
"public List<User> selectAllUser() {\n\t\treturn userMapper.selectAllUser();\n\t}",
"@Override\n\tpublic List<UserEntity> getAllUsers() {\n\t\treturn userRepository.findAll();\n\t}",
"public List<User> list() {\n\t\treturn userDao.list();\n\t}",
"public List<User> getAll() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<User> findAll() {\n\t\treturn userRepository.findAll();\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<User> getUsers() \r\n\t{\n\t\tSession session = sessionFactory.getCurrentSession();\r\n String sql = \"select * from users\";\r\n Query query = session.createSQLQuery(sql).addEntity(User.class);\r\n\t\tSystem.out.println(\"getUsers list is : \" + query.list().size());\r\n\t\treturn query.list();\r\n\t}",
"public List<User> allUserRecords() {\n\t\tSystem.out.println(\"Calling getAllUserRecords() Method To Fetch Users Record\");\t\n\t\tList<User> userList = userDAO.listUser();\n\t\treturn userList;\n\t}",
"List<User> getAllUsers();",
"List<User> getAllUsers();",
"public List<User> getAllUsers() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<User> findAllUser() {\n\t\treturn userDao.findAllUser();\n\t}",
"public List<User> getAllUsers() {\n\t\tEntityManager entityManager = HandleConnectionToDB.getEntityManager();\n\t\tentityManager.getTransaction().begin();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<User> users = entityManager.createQuery(\"from User\").getResultList();\n\t\tif (users.size() > 0) {\n\t\t\tusers.get(0).getFriendList().size();\n\t\t\tusers.get(0).getUserLobby().size();\n\t\t\tusers.get(0).getFriendList().size();\n\t\t}\n\t\tentityManager.getTransaction().commit();\n\n\t\tHandleConnectionToDB.closeEntityManager();\n\t\treturn users;\n\n\t}",
"public ArrayList<User> getAllUsers() {\n return allUsers;\n }",
"public ArrayList<String> getAllUsers() {\n\t\tSystem.out.println(\"Looking up all users...\");\n\t\treturn new ArrayList<String>(users.keySet());\t\n\t}",
"public List<User> getUserList() {\n return getSqlSession().getMapper(UserMapper.class).getUserList();\n }",
"@Override\n\tpublic List<User> selectAllUser() {\n\t\tList<User> users = null;\n\t\ttry {\n\t\t\tusers = client.queryForList(\"selectAllUser\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn users;\n\n\t}",
"@Override\n\tpublic List<User> findAllUsers() {\n\t\treturn userRepo.findAll();\n\t}",
"public RealmResults<User> getUsers() {\n\n return realm.where(User.class).findAll();\n }",
"public List<User> getAllUsers() {\n\n\t\tList<User> result = new ArrayList<User>();\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement ps = ((org.inria.jdbc.Connection) db).prepareStatement(TCell_QEP_IDs.QEP.EP_getAllUsers);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tString query = \"SELECT IdGlobal, TCELLIP, PUBLICKEY, TCELLPORT from USER\";\n\t\t\tSystem.out.println(\"Executing query : \" + query);\t\t\t\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tint UserGID =rs.getInt(1);\n\t\t\t\tString TCellIP = rs.getString(2);\n\t\t\t\t\n\t\t\t\t//convert Blob to String\n\t\t\t\tBlob myPubKeyBlob = rs.getBlob(3);\n\t\t\t\tbyte[] bPubKey = myPubKeyBlob.getBytes(1, (int) myPubKeyBlob.length());\n\t\t\t\tString pubKey = new String(bPubKey);\n\t\t\t\t\n\t\t\t\tint port = rs.getInt(4);\n\t\t\t\tUser user = new User(UserGID,TCellIP, port, pubKey);\n\t\t\t\tresult.add(user);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// Uncomment when the close function will be implemented\n\t\t\t// attemptToClose(ps);\n\t\t\t\n\t\t}\n\n\t\treturn result;\n\n\t}",
"@Override\n\tpublic List<Login> findAllUsers() {\n\t\treturn userRepo.findAll();\n\t}",
"@Override\n\tpublic Iterable<User> getAllUser() {\n\t\treturn userRepository.findAll();\n\t}",
"public List<Map<String, Object>> getAllUsers() {\n Result<Record2<Long, String>> result = getDbContext().select(USER.USER_ID, USER.USER_NAME).from(USER).fetch();\n return result.intoMaps();\n }",
"@Override\n\tpublic ArrayList<User> getAll() {\n\t\treturn this.users;\n\t}",
"@Override\n\tpublic List<User> findAllUser() {\n\t\treturn mapper.findAllUser();\n\t}",
"@Override\r\n\tpublic List<Users> findAll() {\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Users\").list();\r\n\t}",
"public List<User> getAllUser() {\n\t\treturn userMapper.getAllUser();\n\t}",
"Iterable<User> getAllUsers();",
"public Collection<User> getAll() throws DataPersistenceException\n {\n PersistenceManagerFactory pmfInstance = PMFHolder.get();\n PersistenceManager pm = pmfInstance.getPersistenceManager();\n try\n {\n List<User> users = new ArrayList<User>();\n\n Extent<User> extent = pm.getExtent(User.class, true);\n for (User user : extent)\n users.add(user);\n extent.closeAll();\n\n return users;\n }\n catch (Throwable e)\n {\n throw new DataPersistenceException(e.getLocalizedMessage(), e);\n }\n finally\n {\n pm.close();\n }\n }",
"@Override\n public List<User> findAll() {\n return dao.findAll();\n }",
"@Override\r\n\tpublic List<Map<String, Object>> findAllUser() {\n\t\treturn userMapper.findAllUser();\r\n\t}",
"@Override\r\n public Collection getAllUsers() throws SQLException {\r\n Session session = null;\r\n List users = new ArrayList<Users>();\r\n try {\r\n session = HibernateSessionFactory.getSessionFactory().openSession();\r\n users = session.createCriteria(Users.class).list();\r\n } catch (Exception ex) {\r\n log.error(\"Error in getAllUsers\", ex);\r\n } finally {\r\n if (session != null && session.isOpen())\r\n session.close();\r\n }\r\n return (Collection) users;\r\n }",
"@Override\r\n\tpublic User getAllUser() {\n\t\tList<User> list=null;\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT * FROM USER\";\r\n\t\t\treturn qr.query(sql, new BeanHandler<User>(User.class));\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@GetMapping(path = \"/all\")\n public @ResponseBody\n Iterable<User> getAllUsers() {\n LOG.info(\"Displays all the users from the database\");\n return userRepository.findAll();\n }",
"List<User> getAll() throws SQLException;",
"@Override\n\tpublic List All() {\n\t\treturn new userDaoImpl().All();\n\t}",
"@Override\r\n\tpublic List<?> getAllUser() {\n\t\treturn userQueryRepositoryImpl.getAllUser();\r\n\t}",
"public List<TestUser> getAllUsers(){\n\t\tSystem.out.println(\"getting list of users..\");\n\t\tList<TestUser> user=new ArrayList<TestUser>();\n\t\tuserRepositary.findAll().forEach(user::add);\n\t\t//System.out.println(\"data: \"+userRepositary.FindById(\"ff80818163731aea0163731b190c0000\"));\n\t\treturn user;\n\t}",
"@Override\n\tpublic List<User> getAllUser() {\n\t\treturn uDao.getAllUser();\n\t}",
"public List<User> getAllUser() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic List<User> getUserList() {\n\t\treturn userDao.queryUser();\n\t}",
"@GetMapping(path=\"/all\")\n\tpublic @ResponseBody Iterable<User> getAllUsers() {\n\t\t// This returns a JSON or XML with the users\n\t\treturn userRepository.findAll();\n\t}",
"public List<YuserVO> getAllUsers() {\n\t\tList<YuserVO> list = null;\n\t\t\ttry {\n\t\t\t\tlist = userDao.getAllUsers();\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\tSystem.out.println(\"get users failed ..................................\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\treturn list;\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<User> findAllUsers() {\n\t\tCriteria crit = createEntityCriteria();\r\n\t\tcrit.addOrder(Order.asc(\"firstname\")).setResultTransformer(CriteriaSpecification.DISTINCT_ROOT_ENTITY);\r\n\t\tList<User> users = (List<User>)crit.list();\r\n\t\treturn users;\r\n\t}",
"@Override\n\tpublic List<User> list() \n\t{\n\t\treturn userDAO.list();\n\t}",
"public static Iterable<Entity> getAllUsers() {\r\n Iterable<Entity> entities = Util.listEntities(\"User\", null, null);\r\n return entities;\r\n }",
"@Override\n\tpublic List<User> getList() {\n\t\treturn Lists.newArrayList(userRepository.findAll());\n\t}",
"@Override\n public List<User> findAll() throws DaoException {\n log.info(\"Get all users\");\n return userDao.findAll();\n }"
] |
[
"0.84511197",
"0.84404236",
"0.84285957",
"0.83334476",
"0.8330777",
"0.8317683",
"0.8302024",
"0.8298883",
"0.82576865",
"0.8234545",
"0.82330006",
"0.8231661",
"0.82231337",
"0.819673",
"0.8183668",
"0.8170443",
"0.81680125",
"0.8161113",
"0.8156264",
"0.8155953",
"0.8142683",
"0.81406695",
"0.813609",
"0.81359154",
"0.81299514",
"0.8120994",
"0.81032133",
"0.8099161",
"0.80959165",
"0.8089889",
"0.80719095",
"0.806125",
"0.80588",
"0.80586207",
"0.8056698",
"0.80542755",
"0.8047453",
"0.80390376",
"0.8038291",
"0.8022945",
"0.80185217",
"0.8016795",
"0.8007503",
"0.8003409",
"0.8002113",
"0.80008984",
"0.7996078",
"0.7988751",
"0.7985637",
"0.79630154",
"0.7961941",
"0.7948971",
"0.79435337",
"0.7941078",
"0.7937456",
"0.7935909",
"0.7928594",
"0.7927555",
"0.7927519",
"0.79207134",
"0.7920207",
"0.7911742",
"0.7911742",
"0.7908909",
"0.7904166",
"0.7902911",
"0.7900925",
"0.7897982",
"0.7891343",
"0.7891279",
"0.78804904",
"0.78794587",
"0.78762865",
"0.7867404",
"0.78672594",
"0.78603244",
"0.7854378",
"0.7851623",
"0.78503406",
"0.7847036",
"0.782887",
"0.7825608",
"0.7817463",
"0.78152996",
"0.78131324",
"0.7811821",
"0.78087986",
"0.78044116",
"0.78029704",
"0.7799674",
"0.7797239",
"0.77935934",
"0.77901316",
"0.77772826",
"0.77742666",
"0.7773004",
"0.7771125",
"0.77692515",
"0.7762931",
"0.77525556",
"0.7743835"
] |
0.0
|
-1
|
Return the user having the passed email.
|
public Department getByEmail(String name) {
return (Department) entityManager.createQuery(
"from User where name = :name")
.setParameter("name", name)
.getSingleResult();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"User getUserByEmail(final String email);",
"public User getUser(String email) {\r\n\t\tOptional<User> optionalUser = null;\r\n\t\tUser user = null;\r\n\t\ttry {\r\n\t\t\toptionalUser = userList().stream().filter(u -> u.getUserEmail().equals(email)).findFirst();\r\n\t\t\tif (optionalUser.isPresent()) {\r\n\t\t\t\tuser = optionalUser.get();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"error find user : \" + email + \" \" + e);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn user;\r\n\t}",
"User getUserByEmail(String email);",
"@Override\n\tpublic ERSUser getUserByEmail(String email) {\n\t\treturn userDao.selectUserByEmail(email);\n\t}",
"@Override\n\tpublic User getUser(String email){\n\t\tif (userExists(email) == true)\n\t\t\treturn users[searchIndex(email)];\n\t\telse\n\t\t\treturn null;\n\t}",
"public User getUser(String email) {\n\n Query query = new Query(\"User\").setFilter(new Query.FilterPredicate(\"email\", FilterOperator.EQUAL, email));\n PreparedQuery results = datastore.prepare(query);\n Entity userEntity = results.asSingleEntity();\n if (userEntity == null) {\n return null;\n }\n\n String aboutMe = (String) userEntity.getProperty(\"aboutMe\");\n User user = new User(email, aboutMe);\n\n return user;\n }",
"public User getUser(String email) {\n\t\tLog.i(TAG, \"return a specific user with email.\");\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tString getcurrentUser = \"select * from \" + TABLE_USER\n\t\t\t\t+ \" where email='\" + email + \"'\";\n\t\tCursor cursor = db.rawQuery(getcurrentUser, null);\n\t\tcursor.moveToFirst();\n\t\tif (cursor.isAfterLast()) return null;\n\t\tUser user = new User(cursor.getInt(0), cursor.getString(1), cursor.getString(2));\n\t\treturn user;\n\t}",
"@Override\n\tpublic User getUser(String email) {\n\t\treturn userDatabase.get(email);\n\t}",
"public User getUserByEmail(String email);",
"public User getUserByEmail(String email);",
"public User findUserByEmail(final String email);",
"public User getUser(String email) {\n for (User user : list) {\n if (user.getEmail().equals(email))\n return user; // user found. Return this user.\n }\n return null; // user not found. Return null.\n }",
"public User getUserByEmail(String email) {\r\n\t\treturn usersPersistence.getUserByEmail(email);\r\n\t}",
"public User getUser(String email);",
"@Override\n public final CustomerUser getCustomerUserByEmail(final String email) {\n\treturn (CustomerUser) getEntityManager()\t\n\t\t.createQuery(\"select customer from \"\n\t\t\t+ CustomerUser.class.getName()\n\t\t\t+ \" as customer where customer.email =:email\")\n\t\t.setParameter(\"email\", email)\n\t\t.getSingleResult();\n }",
"public User getUser(String email) {\n\n Query query = new Query(\"User\")\n .setFilter(new Query.FilterPredicate(\"email\", FilterOperator.EQUAL, email));\n PreparedQuery results = datastore.prepare(query);\n Entity userEntity = results.asSingleEntity();\n if(userEntity == null) {return null; }\n String aboutMe = (String) userEntity.getProperty(\"aboutMe\");\n //ArrayList<String> advisees = new ArrayList<String>(Arrays.asList(((String) userEntity.getProperty(\"advisees\")).split(\" \")));\n //ArrayList<String> advisors = new ArrayList<String>(Arrays.asList(((String) userEntity.getProperty(\"advisors\")).split(\" \")));\n String fn = (String) userEntity.getProperty(\"firstName\");\n String ln = (String) userEntity.getProperty(\"lastName\");\n User user = new User(email, fn, ln, aboutMe);\n return user;\n\n }",
"public synchronized User getUser(String email) {\r\n return (email == null) ? null : email2user.get(email);\r\n }",
"public User getUser(String emailId);",
"@Override\n public OpenScienceFrameworkUser findOneUserByEmail(final String email) {\n final OpenScienceFrameworkUser user = findOneUserByUsername(email);\n if (user != null) {\n return user;\n }\n\n // check emails\n try {\n // JPA Hibernate does not support postgres query array operations, use postgres native queries\n // `query.setParameter()` does not work, use string concatenation instead\n final Query query= entityManager.createNativeQuery(\n \"select u.* from osf_osfuser u where u.emails @> '{\" + email + \"}'\\\\:\\\\:varchar[]\",\n OpenScienceFrameworkUser.class\n );\n return (OpenScienceFrameworkUser) query.getSingleResult();\n } catch (final PersistenceException e) {\n LOGGER.error(e.toString());\n return null;\n }\n }",
"public User getUserByEmail(final String email) {\n return em.find(User.class, email.toLowerCase());\n }",
"public static User findUserByEmail(String email) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserByEmail = \"SELECT * FROM public.member \"\n + \"WHERE email = '\" + email + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserByEmail);\n\n try {\n ResultSet rs = stmt.executeQuery();\n while(rs.next()) {\n user = load(rs);\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n if(user != null) {\n targetUser = userIdentityMap.get(user.getId());\n if(targetUser == null) {\n userIdentityMap.put(user.getId(), user);\n return user;\n }\n else\n return targetUser;\n }\n return user;\n }",
"@Override\n public User getUserByEmail(final String email){\n Query query = sessionFactory.getCurrentSession().createQuery(\"from User where email = :email\");\n query.setParameter(\"email\", email);\n return (User) query.uniqueResult();\n }",
"@Override\n public TechGalleryUser getUserByEmail(final String email) throws NotFoundException {\n TechGalleryUser tgUser = userDao.findByEmail(email);\n// TechGalleryUser tgUser = userDao.findByEmail(\"[email protected]\");\n if (tgUser == null) {\n throw new NotFoundException(ValidationMessageEnums.USER_NOT_EXIST.message());\n } else {\n return tgUser;\n }\n }",
"public User getUserFromEmail(final String email) {\n LOG.info(\"Getting user with email {}\", email);\n return userRepo.getUserByEmail(email);\n }",
"public User retrieveUserByEmail(String email) throws ApplicationException;",
"@Override\n\tpublic User findByEmail(String email)\n\t{\n\t\tif (email == null) return null;\n\t\n\t\tString property = User.PROP_EMAIL;\n\t\tLabel label = RoostNodeType.USER;\n\t\tUser user = findByUniqueProperty(label, property, email);\n\t\t\n\t\treturn user;\n\t}",
"User findUserByEmail(String email) throws Exception;",
"public User getUserByEmail(String email)throws EntityNotFoundException\n\t{\n\t\treturn userDao.getById(email);\n\t}",
"@Override\n public User getByEmail(String email) {\n List<JdbcUser> jdbcUserList = jdbcTemplate.query(\"SELECT * FROM users WHERE email=?\", ROW_MAPPER, email);\n JdbcUser jdbcUser = DataAccessUtils.singleResult(jdbcUserList);\n if (jdbcUser == null) {\n return null;\n }\n return convertToUser(jdbcUser);\n }",
"@Override\r\n\tpublic User getByMail(String eMail) {\n\r\n\t\treturn userDao.get(eMail);\r\n\t}",
"public User get(String emailID);",
"@Override\n\tpublic Users findUserByEmail(String email) {\n\t\treturn iUserDao.findUserByEmail(email);\n\t}",
"public static User getUserByEmail(String email) {\n\t\t// getting user by email\n\t\treturn dao.getUserByEmail(email);\n\t}",
"Optional<JUser> readByEmail(String email);",
"User find(String email);",
"public User getUserByEmail(String email_) {\n User user = new User();\n \n return user;\n }",
"public static UserEntity search(String email) {\n\t\tDatastoreService datastore = DatastoreServiceFactory\n\t\t\t\t.getDatastoreService();\n\n\t\tQuery gaeQuery = new Query(\"users\");\n\t\tPreparedQuery pq = datastore.prepare(gaeQuery);\n\t\t\n\t\tfor (Entity entity : pq.asIterable()) {\n\t\t\t \n\t\t\tif (entity.getProperty(\"email\").toString().equals(email)) {\n\t\t\t\tUserEntity returnedUser = new UserEntity(entity.getProperty(\n\t\t\t\t\t\t\"name\").toString(), entity.getProperty(\"email\")\n\t\t\t\t\t\t.toString());\n\t\t\t\treturnedUser.setId(entity.getKey().getId());\n\t\t\t\treturn returnedUser;\n\t\t\t }\nelse{\n\t\t\t\t\n }\n\t\t}\n\n\t\treturn null;\n\t}",
"User findUserByEmail(String userEmail);",
"ServiceUserEntity getUserByEmail(String email);",
"public User getUserByEmail(String email){\n\t\tif(email == null)\n\t\t\treturn null;\n\t\tSessionFactory sf = HibernateUtil.getSessionFactory();\n\t\tSession session = sf.openSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\ttry{\n\t\t\tCriteria criteria = session.createCriteria(User.class);\n\t\t\tObject obj = criteria.add(Restrictions.eq(\"email\", email)).uniqueResult();\n\t\t\tif(obj == null)\n\t\t\t\treturn null;\n\t\t\tUser user = (User)obj;\n\t\t\ttx.commit();\n\t\t\treturn user;\t\t\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}",
"public Users findBYEmailId(String email) {\r\n Query query = em.createNamedQuery(\"findUserByEmailId\");\r\n query.setParameter(\"uemail\", email);\r\n if (!query.getResultList().isEmpty()) {\r\n Users registeredUser = (Users) query.getSingleResult();\r\n return registeredUser;\r\n }\r\n return null;\r\n }",
"public User getUser(String email) {\n\t\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\t\t\n\t\t\tCursor cursor = db.query(TABLE_USERS, new String[] { KEY_USER_ID, \n\t\t\t\t\tKEY_PASSWORD, KEY_EMAIL }, KEY_EMAIL + \" = ?\",\n\t\t\t\t\tnew String[] { String.valueOf(email) }, null, null, null, null);\n\t\t\tif (cursor != null)\n\t\t\t\tcursor.moveToFirst();\n\t\t\t\n\t\t\tUser user = new User(\n\t\t\t\t\tcursor.getString(cursor.getColumnIndex(KEY_PASSWORD)),\n\t\t\t\t\tcursor.getString(cursor.getColumnIndex(KEY_EMAIL)),\n\t\t\t\t\tInteger.parseInt(cursor.getString(0)) );\n\t\t\t// return user\n\t\t\treturn user;\n\t\t\t}",
"public UserTO getByEmail(String email) {\n\t\treturn getDao().getByEmail(email);\n\t}",
"public User findByEmail(String email){\n return userRepository.findByEmail(email);\n }",
"public User existsProfile(String email) {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n SuperBooleanBuilder query = new SuperBooleanBuilder();\n query.put(\"email\", email);\n Search search = new Search.Builder(query.toString())\n .addIndex(INDEX_NAME)\n .addType(User.class.toString())\n .build();\n\n User result = null;\n try {\n result = client.execute(search).getSourceAsObject(User.class);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n return result;\n }",
"@Nullable\n public User getUserFromDatabase(String email) {\n User userAccount = null;\n try {\n SQLiteDatabase db = getReadableDatabase();\n\n Cursor userAccountCursor = db.query(\n TABLE_USERS,\n new String[]{KEY_USER_NAME, KEY_USER_EMAIL, KEY_USER_PASS, KEY_USER_PROFILE_PICTURE_URL, KEY_USER_HAS_POST_TABLE},\n KEY_USER_EMAIL + \" = ?\",\n new String[]{email},\n null,\n null,\n null\n );\n\n if (userAccountCursor != null && userAccountCursor.getCount() > 0 && userAccountCursor.moveToFirst()) {\n userAccount = new User(\n userAccountCursor.getString(0),\n userAccountCursor.getString(1),\n userAccountCursor.getString(2),\n userAccountCursor.getInt(3),\n userAccountCursor.getInt(4)\n );\n }\n\n if (userAccountCursor != null) {\n userAccountCursor.close();\n }\n\n } catch (SQLiteException e) {\n Log.d(TAG, \"Can get user account\");\n }\n\n return userAccount;\n }",
"public User findByEmail(String email) {\n return userRepository.findByEmail(email);\n }",
"public User findByEmail(String email) {\n return userRepository.findByEmail(email);\n }",
"java.lang.String getUserEmail();",
"public static Utente findByEmail(String email) {\n \t\n\t\tSession session = DatabaseManager.getSession();\n Transaction tx = null;\n Utente user = null;\n \n \n try {\n tx = session.getTransaction();\n tx.begin();\n \n CriteriaBuilder builder = session.getCriteriaBuilder();\n CriteriaQuery<Utente> criteria = builder.createQuery(Utente.class);\n Root<Utente> root = criteria.from(Utente.class);\n \n criteria.select(root).where(builder.equal(root.get(Utente_.email), email));\n\n user = session.createQuery(criteria).getSingleResult();\n \n tx.commit();\n \n } catch (Exception e) {\n if (tx != null) {\n tx.rollback();\n \n }\n e.printStackTrace();\n } finally {\n session.close();\n }\n \n return user;\n \n \n }",
"public User getUserByEmail(String email) throws SQLException {\n\t\ttry {\n\n\t\t\tthis.TryConnect();\n\n\t\t\tthis.m_objData.SetStoreName(\"sys_user_getByEmail(?)\");\n\t\t\tthis.m_objData.Parameters.setString(1, email);\n\n\t\t\tResultSetMapper util = new ResultSetMapper<User>();\n\n\t\t\tResultSet lstResult = this.m_objData.ExecToResultSet();\n\n\t\t\tList<User> lstUser = util.mapRersultSetToObject(lstResult,\n\t\t\t\t\tUser.class);\n\n\t\t\tif (lstUser == null)\n\t\t\t\treturn null;\n\n\t\t\tif (lstUser.size() > 0)\n\t\t\t\treturn lstUser.get(0);\n\t\t\treturn null;\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\n\t\t\tthis.TryDisconnect();\n\t\t}\n\n\t\treturn null;\n\t}",
"@Transactional\r\n\tpublic User getUserByEmail(String email) {\n\t\treturn cuser.getUserByEmail(email);\r\n\t}",
"public Optional<User> findByEmail(final String email) {\n return null;\n }",
"public static User getUser(String email){\n Connection connect = null;\n ResultSet set = null;\n String getUserSQL = \"SELECT * FROM users WHERE email =?\";\n User user = null;\n\n // Get User Details Try Block:\n try {\n // Set Connection:\n connect = DBConfig.getConnection();\n // Prepare SQL Statement:\n PreparedStatement statement = connect.prepareStatement(getUserSQL);\n // Set Attributes / Parameters:\n statement.setString(1, email);\n // Execute Statement:\n set = statement.executeQuery();\n // Check For Results:\n while (set.next()){\n user = new User();\n // Set User Details / Information\n user.setFirst_name(set.getString(\"first_name\"));\n user.setLast_name(set.getString(\"last_name\"));\n user.setEmail(set.getString(\"email\"));\n user.setUser_type(set.getString(\"user_type\"));\n user.setCreated_at(set.getDate(\"created_at\"));\n }\n // End Of Check For Results:.\n }catch (Exception e){\n e.printStackTrace();\n }\n return user;\n }",
"public User findByEmail(String email) {\n\t\treturn repo.findByEmail(email);\r\n\t}",
"public AppUser findByEmail(String email);",
"public User getByemailId(String emailId) {\n\t\treturn userDao.getByemailId(emailId);\n\t}",
"User findByEmail(String email);",
"User findByEmail(String email);",
"User findByEmail(String email);",
"User findByEmail(String email);",
"User findByEmail(String email);",
"User findByEmail(String email);",
"@Override\n\tpublic Long getUserIdByEmail(final String email) {\n\t\tfinal UserFormData formData = new UserFormData();\n\t\tformData.getEmail().setValue(email.toLowerCase());\n\t\tthis.loadUserIdByEmail(formData);\n\t\treturn formData.getUserId().getValue();\n\t}",
"public VendorUser findVuserBYEmailId(String email) {\r\n Query query = em.createNamedQuery(\"findUserByEmailId\");\r\n query.setParameter(\"uemail\", email);\r\n if (!query.getResultList().isEmpty()) {\r\n VendorUser registeredUser = (VendorUser) query.getSingleResult();\r\n return registeredUser;\r\n }\r\n return null;\r\n }",
"public User findByEmail(String email);",
"public User findByEmail(String email);",
"public User findByEmail(String email);",
"public User getUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n return userRepository.findByEmail(auth.getName()).get();\n }",
"public User findByEmail(String email) {\n\t\tCriteria crit = createEntityCriteria();\r\n\t\tcrit.add(Restrictions.eq(\"email\", email));\r\n\t\tUser user = (User) crit.uniqueResult();\r\n\t\tif(user != null) {\r\n\t\t\tHibernate.initialize(user.getUserProfiles());\r\n\t\t}\r\n\t\treturn user;\r\n\t}",
"public User getUserByEmail(String email) throws Exception {\n\t\tSession session = null;\n\t\tTransaction tx = null;\n\t\ttry{\n\t\t\tsession = getSessionFactory().openSession();\n\t\t\tif(session != null) {\n\t\t\t\ttx = session.beginTransaction();\n\t\t\t\tQuery query = session.createQuery(\"FROM User u where u.email =:email\");\n\t\t\t\tquery.setParameter(\"email\", email);\n\t\t\t\tList list = query.list();\n\t\t\t\tif(list != null && list.size() >0) {\n\t\t\t\t\treturn (User)list.get(0);\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (Throwable e) {\n\t\t\tthrow new Exception(e);\n\t\t} finally{\n\t\t\tif(tx != null) {\n\t\t\t\ttx.commit();\n\t\t\t}\n\t\t\tif(session != null) {\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t}\n\t}",
"Optional<User> findByEmail(String email);",
"Optional<User> findByEmail(String email);",
"public User findEmail(String email){\n\t\t\n boolean found = false;\t\t\t\t\t\t\t\t\t\t/* ====> Boolean controls while loop */\n User correct = new User();\t\t\t\t\t\t\t\t\t/* ====> Create instance of the correct user*/\n User marker = new User();\t\t\t\t\t\t\t\t\t/* ====> Create a marker */\n marker = this.head;\t\t\t\t\t\t\t\t\t\t\t/* ====> Set the marker at the beginning of the list */\n \n // Loop keeps on going until the correct User is not found or until the next User is null\n while(!found){ \n \tif (marker.getEmail().equals(email)){\t\t\t\t\t/* ====> If the marker found the right user based on its email */ \n \t\tfound = true;\t\t\t\t\t\t\t\t\t\t/* ====> Set found true, end loop */\n \t\tcorrect = marker;\t\t\t\t\t\t\t\t\t/* ====> Make correct point to the same User as marker */\n \t}\n \n else if (marker.getNext() == null){\t\t\t\t\t\t/* ====> If the marker reaches end of the list */ \n \tfound = true;\t\t\t\t\t\t\t\t\t\t/* ====> Set found true, end loop */\n \tcorrect = head;\t\t\t\t\t\t\t\t\t\t/* ====> Make correct point to the head */\n }\n \n else {\n \tmarker = marker.getNext();\t\t\t\t\t\t\t/* ====> Move marker to the next element of the list */\n }\n }\n \n return correct;\t\t\t\t\t\t\t\t\t\t\t\t/* ====> Return correct User */ \n \n\t}",
"Optional<User> findOneByEmail(String email);",
"public User readByEmail(String email) throws DaoException;",
"UserEntity findByEmail(String email);",
"public UsersModel getUserById(String userEmail);",
"public User findByEmail(String email) {\n\t\ttry {\n\t\t\treturn entityManager\n\t\t\t\t\t.createNamedQuery(User.FIND_BY_EMAIL, User.class)\n\t\t\t\t\t.setParameter(\"email\", email).getSingleResult();\n\t\t} catch (PersistenceException e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic User getUserByEmail(String email, User user) {\n\t\tSession session = sessionFactory.openSession();\n\t\tList<User> userList = new ArrayList<>();\n\t\tuserList = (List<User>) session.createQuery(\"from User\");\n\t\tfor (User tempUser : userList) {\n\t\t\tif (tempUser.getEmail().equalsIgnoreCase(email)) {\n\t\t\t\tuser = tempUser;\n\t\t\t\tSystem.out.println(\"get uswer by email: \" + user);\n\t\t\t\treturn user;\n\t\t\t}\n\t\t}\n\t\treturn user;\n\t}",
"UserDTO findUserByEmail(String email);",
"public static User findByEmail(String email) {\n return new User(email, \"\");\n // TODO: find a way to check email against the UBB users database\n //return find(\"email\", email).first();\n }",
"public User findByEmail(String email) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic IUserAccount getByEMail(String eMail) {\n\t\treturn null;\n\t}",
"User findOneByMail(String mail);",
"private User getUserFromUsersBy(String email, String password){\n \tUser user=null;\n \tfor(User u : users ){\n \t\tif(u.getEmail().equals(email)&&u.getPassword().equals(password)){\n \t\t\tuser = u;\n \t\t}\n \t}\n \treturn user;\n }",
"public User getUserByEmail(String email, String apikey) throws UserNotFoundException, APIKeyNotFoundException{\n if (authenticateApiKey(apikey)){\n return userMapper.getUserByEmail(email);\n }else throw new UserNotFoundException(\"User not found\");\n }",
"public Member selectByEmail(String email) {\n\t\t\n\t\ttry {\n\t\tMember member = jdbcTemplate.queryForObject(\"select * from member where email = ?\", new RowMapper<Member>() {\n\n\t\t\t@Override\n\t\t\tpublic Member mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\tMember member = new Member(rs.getString(\"EMAIL\"), rs.getString(\"PASSWORD\"), rs.getString(\"NAME\"), rs.getTimestamp(\"REGDATE\").toLocalDateTime());\n\t\t\t\t\n\t\t\t\tmember.setId(rs.getString(\"ID\"));\n\t\t\t\treturn member;\n\t\t\t}\n\t\t\t\n\t\t}, email);\n\t\t\n\t\treturn member;\n\t\t\n\t\t}catch(EmptyResultDataAccessException e) {\n\t\t\treturn null;\n\t\t}\t \n\t}",
"public User_info search_User_info(String email) {\n\t\t\t\tSystem.out.println(user_loginDao.searchId(email));\r\n\t\t\t\treturn user_infoDao.search_User(user_loginDao.findUserByEmail(email).getId());\r\n\t}",
"public User getUserFromDetails(String email, String username) {\r\n // Gets the collection of users and creates a query\r\n MongoCollection<Document> users = mongoDB.getCollection(\"Users\");\r\n Document query = new Document(\"email\", email);\r\n query.append(\"username\", username);\r\n\r\n // Loops over users found matching the details, returning the first one\r\n for (User user : users.find(query, User.class)) {\r\n return user;\r\n }\r\n\r\n // Returns null if none are found\r\n return null;\r\n }",
"@Override\n\tpublic UserDetails loadUserByUsername(String email) throws UsernameNotFoundException {\n\n\t\t Optional<com.java.redactrix.entity.User> user = userService.findUserByEmail(email);\n\t\t if(user.isPresent()) {\n\t\t\t System.out.println(\"User Found\");\n\t\t\t com.java.redactrix.entity.User getUser = user.get();\n\t\t\t String password = getUser.getPassword();\n\t\t\t return new org.springframework.security.core.userdetails.User(email, password, new ArrayList<>());\n\t\t }\n\t\t else {\n\t\t\t return null;\n\t\t }\n\t}",
"@Override\n public String getUserId() {\n return email;\n }",
"public synchronized String getUserString(String email) {\r\n User user = email2user.get(email);\r\n return (user == null) ? null : user2xml.get(user);\r\n }",
"public UsersEntity getRegisteredUser(String email, String password){\n // create query to get user\n TypedQuery<UsersEntity> findUser = entityManager.createQuery(\n \"SELECT user FROM UsersEntity user WHERE user.email=:email AND user.password=:password\",\n UsersEntity.class);\n\n // set query email parameter\n findUser.setParameter(\"email\", email);\n\n // set query password parameter\n findUser.setParameter(\"password\", password);\n\n try {\n return findUser.getSingleResult();\n } catch (NoResultException e) {\n return null;\n }\n }",
"@Override\n\tpublic int getUserId(String email) throws DatabaseException, DataNotFoundException {\n\t\tConnection con = DbUtil.getConnection();\n\t\tStudentRegistrationValidationDaoi studentRegistrationValidationDaoi=new StudentRegistrationValidationDaoimpl();\n\t\tint value=studentRegistrationValidationDaoi.getUserId(email, con);\n\t\tDbUtil.closeConnection(con);\n\t\treturn value;\n\t}",
"public User getUser(String email, String password) {\n for (User u : table.values()) {\n if (u.email.equals(email) && BCrypt.checkpw(password, u.getHash())) {\n return u;\n }\n }\n return null;\n }",
"public User getUser(String email, String password) {\n for (User u : table.values()) {\n if (u.email.equals(email) && BCrypt.checkpw(password, u.getHash())) {\n return u;\n }\n }\n return null;\n }",
"@Override\n public UserDetails loadUserByUsername(String email) throws UsernameNotFoundException {\n return appRepository.findByEmail(email)\n .orElseThrow(() ->\n new UsernameNotFoundException(\n String.format(USER_NOT_FOUND, email)));\n }",
"@Override\n public UserDetails loadUserByUsername(String email) throws UsernameNotFoundException {\n return userRepository.findByEmail(email).orElseThrow(() -> new UsernameNotFoundException(\"User not found!\"));\n }",
"@Override\n\tpublic UserVO getUserIdToEmail(String email, String pw) {\n\t\treturn mapper.getUserIdToEmail(email, pw);\n\t}",
"public User usuario() {\r\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\r\n User user = userService.findUserByEmail(auth.getName());\r\n return user;\r\n }"
] |
[
"0.8066898",
"0.8004286",
"0.7956759",
"0.79322267",
"0.7841209",
"0.7778004",
"0.7769699",
"0.7746234",
"0.7731482",
"0.7731482",
"0.7718365",
"0.7696166",
"0.76644695",
"0.7639717",
"0.76348513",
"0.76326436",
"0.7625942",
"0.7623161",
"0.76138306",
"0.7597083",
"0.7551445",
"0.7550386",
"0.75234175",
"0.7497975",
"0.7492481",
"0.74782914",
"0.7470474",
"0.74566305",
"0.74322337",
"0.7398071",
"0.73774403",
"0.73623586",
"0.7361617",
"0.7351941",
"0.73440826",
"0.73422694",
"0.7326412",
"0.73213845",
"0.731478",
"0.7313725",
"0.7308209",
"0.73078257",
"0.7300195",
"0.7296747",
"0.7294356",
"0.72537744",
"0.72199667",
"0.72199667",
"0.72172415",
"0.72150016",
"0.72115123",
"0.72015274",
"0.71627474",
"0.7135823",
"0.71225196",
"0.7073908",
"0.7054299",
"0.7052881",
"0.7052881",
"0.7052881",
"0.7052881",
"0.7052881",
"0.7052881",
"0.70500964",
"0.7043785",
"0.7040282",
"0.7040282",
"0.7040282",
"0.70377105",
"0.70251006",
"0.7015992",
"0.6962853",
"0.6962853",
"0.6953128",
"0.6934548",
"0.68871516",
"0.68844897",
"0.6884208",
"0.6883496",
"0.68650824",
"0.685257",
"0.68398327",
"0.6836517",
"0.68365103",
"0.67939085",
"0.6788612",
"0.6753623",
"0.67508817",
"0.67173535",
"0.6706038",
"0.6691518",
"0.6683929",
"0.66667426",
"0.6657964",
"0.6651304",
"0.66430515",
"0.66430515",
"0.6637573",
"0.6631464",
"0.6624347",
"0.6588553"
] |
0.0
|
-1
|
Return the user having the passed id.
|
public Department getById(long id) {
return entityManager.find(Department.class, id);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public User getUserById(String id){\n\t\tUser e;\n\t\tfor (int i = 0 ; i < users.size() ; i++){\n\t\t\te = users.get(i);\n\t\t\tif (e.getId().equals(id))\n\t\t\t\treturn e;\n\t\t}\n\t\treturn null;\n\t}",
"public User findUser(int id) {\n for (int i = 0; i < allUsers.size(); i++) {\n if (allUsers.get(i).getId() == id) {\n return allUsers.get(i);\n }\n }\n return null;\n }",
"public User findById ( int id) {\n\t\t return users.stream().filter( user -> user.getId().equals(id)).findAny().orElse(null);\n\t}",
"public User findUser(int id)\n\t\t{\n\t\t\tfor (int i = 0; i < users.size(); i++)\n\t\t\t{\n\t\t\t\tif (id == (users.get(i).getId()))\n\t\t\t\t{\n\t\t\t\t\treturn users.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}",
"private User findById(String id) {\n User result = new NullUserOfDB();\n for (User user : this.users) {\n if (user.getId().equals(id)) {\n result = user;\n break;\n }\n }\n return result;\n }",
"public User getUser(String id) {\n return repository.getUser(id).get(0);\n }",
"public static User findUserById(int id) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserById = \"SELECT * FROM public.member \"\n + \"WHERE id = '\" + id + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserById);\n\n try {\n ResultSet rs = stmt.executeQuery();\n while(rs.next()) {\n user = load(rs);\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n if(user != null) {\n targetUser = userIdentityMap.get(user.getId());\n if(targetUser == null) {\n userIdentityMap.put(user.getId(), user);\n return user;\n }\n else\n return targetUser;\n }\n return user;\n }",
"public User getUserFromID(String id) {\r\n // Gets the collection of users and creates a query\r\n MongoCollection<Document> users = mongoDB.getCollection(\"Users\");\r\n Document query = new Document(\"_id\", new ObjectId(id));\r\n\r\n // Loops over users found matching the details, returning the first one\r\n for (User user : users.find(query, User.class)) {\r\n return user;\r\n }\r\n\r\n // Returns null if none are found\r\n return null;\r\n }",
"public User getUser(Integer id)\n\t{\n\t\t// Create an user -1 for when it isn't in the list\n\t\tUser searchUser = new User();\n\t\t// Index: User's position in the list\n\t\tint index = this.getUserById(id.intValue());\n\t\t// If the user is in the list execute the action\n\t\tif(index != -1)\n\t\t{\n\t\t\tsearchUser = this.usersList.get(index);\n\t\t}\n\t\t\n\t\treturn searchUser;\n\t}",
"User getUser(Long id);",
"@Override\r\n\tpublic User getUserByID(int id) {\n\t\treturn userMapper.getUserByID(id);\r\n\t}",
"public User getUserFromId(final long id) {\n LOG.info(\"Getting user with id {}\", id);\n return userRepo.get(id);\n }",
"private User getUser(Long id) {\n\t\tEntityManager mgr = getEntityManager();\n\t\tUser user = null;\n\t\ttry {\n\t\t\tuser = mgr.find(User.class, id);\n\t\t} finally {\n\t\t\tmgr.close();\n\t\t}\n\t\treturn user;\n\t}",
"@Override\r\n\tpublic User getUserById(int id) {\n\t\treturn userMapper.selById(id);\r\n\t}",
"public User getById(String id){\n List<User> users = userRepo.findAll();\n for (User user : users){\n if(user.getGoogleId().equals(id)){\n return user;\n }\n }\n throw new UserNotFoundException(\"\");\n }",
"User getUserById(int id);",
"@Override\r\n public IUser getUserByUserId(String id)\r\n {\r\n EntityManager em = getEntityManager();\r\n\r\n try\r\n {\r\n return em.find(User.class, id);\r\n }\r\n finally\r\n {\r\n em.close();\r\n }\r\n }",
"public User user(long id) {\n\t\tOptional<User> user = repository.findById(id);\n\n\t\tif (user.isPresent()) {\n\t\t\treturn user.get();\n\t\t} else {\n\t\t\tthrow new NotFoundException(\"User com o Id: \" + id + \" não encontrado em nossa base de dados!\");\n\t\t}\n\n\t}",
"public User getUser(Integer id) {\n\t\treturn null;\n\t}",
"User getUserById(Long id);",
"User getUserById(Long id);",
"public User getUserById(int id) {\n System.out.println(id + this.userDao.selectId(id).getUsername());\n\n return this.userDao.selectId(id);\n }",
"@Override\r\n\tpublic Userinfo findbyid(int id) {\n\t\treturn userDAO.searchUserById(id);\r\n\t}",
"public static User findUser(int id) {\r\n return null;\r\n }",
"@Override\n\tpublic User getOne(Integer id) {\n\t\treturn userDao.getOne(id);\n\t}",
"UserDetails get(String id);",
"public User getUser(int id) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic User user(int id) {\r\n\t\tMap<String,String> map = getOne(SELECT_USERS+ WHERE_ID, id);\r\n\t\tif(map!= null){\r\n\t\t\treturn IMappable.fromMap(User.class, map);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public User findUserById(Long id) {\n \tOptional<User> u = userRepository.findById(id);\n \t\n \tif(u.isPresent()) {\n return u.get();\n \t} else {\n \t return null;\n \t}\n }",
"public User getUser(long id){\n User user = userRepository.findById(id);\n if (user != null){\n return user;\n } else throw new UserNotFoundException(\"User not found for user_id=\" + id);\n }",
"public User getUser(Long id) {\n\t\treturn userRepo.findByUserId(id);\n\t}",
"@Override\r\n\tpublic User searchUser(Integer id) {\n\t\treturn userReposotory.getById(id);\r\n\t}",
"public User getUser(int id){\n \n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n User user = null;\n try {\n tx = session.beginTransaction();\n\n // Add restriction to get user with username\n Criterion emailCr = Restrictions.idEq(id);\n Criteria cr = session.createCriteria(User.class);\n cr.add(emailCr);\n user = (User)cr.uniqueResult();\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null)\n tx.rollback();\n log.fatal(e);\n } finally {\n session.close();\n }\n return user;\n }",
"public User findById(Long id) {\n return genericRepository.find(User.class, id);\n }",
"public User findById(int id) {\n\t\treturn userRepository.findOne(id);\n\t}",
"@Override\r\n\tpublic User findByIdUser(Integer id) {\n\t\treturn userReposotory.findById(id).get();\r\n\t}",
"public Users getUser(Integer id) {\r\n\t\treturn usDao.findById(id, true);\r\n\r\n\t}",
"public User findUser(int id) {\n\n\t\ttry {\n\t\t\tConnection conn = getConnection();\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"select * from users where id = ?\");\n\t\t\tps.setInt(1, id);\n\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tUser foundUser = new User(id, rs.getString(2), rs.getString(3), rs.getString(5),\n\t\t\t\t\t\trs.getDate(6));\n\t\t\t\tconn.close();\n\t\t\t\treturn foundUser;\n\n\t\t\t}\n\t\t\tconn.close();\n\n\t\t} catch (SQLException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic User getUser(int id) {\n\t\treturn userRepository.findById(id);\n\t}",
"public User findOneUser(int id) {\n\t\treturn userMapper.findOneUser(id);\r\n\t}",
"public User getById(int id) {\n\t\treturn userDao.getById(id);\n\t}",
"public User getUser(String id) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic User findUserById(int id) {\n\t\treturn userDao.findUserById(id);\n\t}",
"@Override\n\tpublic User findByUserid(Serializable id) {\n\t\treturn this.userDao.findById(id);\n\t}",
"@Override\n\tpublic User findUserByUserId(long id) {\n\t\treturn userDao.getUserByUserId(id);\n\t}",
"public User findById(Long id){\n return userRepository.findOne(id);\n }",
"@Override\n\tpublic User getUserById(int id) {\n\t\treturn userDao.getUserById(id);\n\t}",
"@Override\n\tpublic User findUser(int id) {\n\n\t\tUser user = em.find(User.class, id);\n\n\t\treturn user;\n\t}",
"@Override\n\tpublic User selectUserById(int id) {\n\t\tUser user = null;\n\t\ttry {\n\t\t\tuser = (User) client.queryForObject(\"selectUserById\", id);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn user;\n\n\t}",
"@Override\n\tpublic User findNeedById(int id) {\n\t\treturn userdao.findNeedById(id);\n\t}",
"public User getUserById(int id) {\n\t\treturn userDao.getUserById(id);\r\n\t}",
"public User findById(long id) {\n return store.findById(id);\n }",
"User find(long id);",
"@Override\r\n\tpublic User findById(int id) {\n\t\treturn userDAO.findById(id);\r\n\t}",
"@RequestMapping(method=RequestMethod.GET, value=\"{id}\")\n\tpublic User getUser(@PathVariable Long id) {\n\t\treturn RestPreconditions.checkFound(repo.findByUserId(id));\n\t}",
"public User getUserById(Integer id) {\n\t\treturn userMapper.selectByPrimaryKey(id);\n\t}",
"public User getUserById(String id) {\n // return userRepo.findById(id);\n\n return null;\n }",
"@Override\n\tpublic AppUser getUserById(int id) {\n\t\tAppUser user = store.get(id);\n return user;\n\t\t\n\t}",
"@Override\r\n\tpublic User getById(Integer id) {\n\t\treturn null;\r\n\t}",
"public User getUserById(Serializable id) {\n\t\treturn (User)this.userDao.getEntryById(id);\r\n\t}",
"public User findUserById (long id){\n if(userRepository.existsById(id)){\n return this.userRepository.findById(id);\n }else{\n throw new UnknownUserException(\"This user doesn't exist in our database\");\n }\n }",
"public User findById(String id) {\n\t\treturn userDao.findById(id);\n\t}",
"public User findById(int id) {\n\t\tString sql = \"SELECT * FROM VIDEOGAMESTORES.USERS WHERE ID=\" +id;\n\t\n\t\ttry {\n\t\t\tSqlRowSet srs = jdbcTemplate.queryForRowSet(sql);\n\t\t\twhile(srs.next())\n\t\t\t{\n\t\t\t\t// Add a new User to the list for every row that is returned\n\t\t\t\treturn new User(srs.getString(\"USERNAME\"), srs.getString(\"PASSWORD\"), srs.getString(\"EMAIL\"),\n\t\t\t\t\t\tsrs.getString(\"FIRST_NAME\"), srs.getString(\"LAST_NAME\"), srs.getInt(\"GENDER\"), srs.getInt(\"USER_PRIVILEGE\"), srs.getInt(\"ID\"));\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"@Override\n\tpublic User getByid(String id) {\n\t\treturn null;\n\t}",
"public Optional<User> getUser(long id) {\n return entityCache.get(String.valueOf(id)).or(() -> dbServiceUser.getUser(id).map(user -> {\n entityCache.put(String.valueOf(id), user);\n return user;\n }));\n }",
"public Object findUserById(long id) throws AccessException {\r\n if(userRepo.findById(id) == null) {\r\n throw new NoSuchElementException(\"No such user with \" + id + \" exist\");\r\n }\r\n\r\n BasicUserDetails authenticatedUser = (BasicUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n if(authenticatedUser.getId() != id)\r\n throw new AccessException(\"Cannot request user different than the authenticated user\");\r\n\r\n return userRepo.findById(id).getPrivateUser();\r\n }",
"@Override\r\n\tpublic TbUser findUserById(Long id) {\n\t\tTbUser tbUser = tbUserMapper.selectByPrimaryKey(id);\r\n\t\treturn tbUser;\r\n\t}",
"public Person findUserById(Integer id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic User getUserById(String id) {\n\t\tUser user = null;\n\t\tConnection connection = null;\n\t\ttry{\n\t\t\tconnection = BaseDao.getConnection();\n\t\t\tuser = userMapper.getUserById(connection,id);\n\t\t}catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tuser = null;\n\t\t}finally{\n\t\t\tBaseDao.closeResource(connection, null, null);\n\t\t}\n\t\treturn user;\n\t}",
"User findOne(Long id);",
"@Override\n public UserInfo findById(int id) {\n TypedQuery<UserInfo> query = entityManager.createNamedQuery(\"findUserById\", UserInfo.class);\n query.setParameter(\"id\", id);\n return query.getSingleResult();\n }",
"User get(Key id);",
"@Override\r\n\tpublic UserMain findId(String id) {\n\t\treturn (UserMain) usermaindao.findbyId(id).get(0);\r\n\t}",
"public User getUser(long id) {\n\t\tUser user = null;\n\t\t\n\t\tString queryString = \n\t\t\t \"PREFIX sweb: <\" + Config.NS + \"> \" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> \" +\n\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \" +\n\t\t\t \"PREFIX foaf: <http://xmlns.com/foaf/0.1/>\" +\n\t\t\t \"select * \" +\n\t\t\t \"where { \" +\n\t\t\t \t\"?user sweb:id \" + id + \".\" +\n\t\t\t \"} \\n \";\n\n\t Query query = QueryFactory.create(queryString);\n\t \n\t QueryExecution qe = QueryExecutionFactory.create(query, this.model);\n\t ResultSet results = qe.execSelect();\n\t \n\t while(results.hasNext()) {\n\t \tQuerySolution solution = results.nextSolution() ;\n\t Resource currentResource = solution.getResource(\"user\");\n\n\t user = this.buildUserFromResource(currentResource);\n\t \n\t user.setTweets(this.getTweetsByUserId(id));\n\t user.setVisited(this.getVenuesVisitedByUserId(id));\n\t user.setInContact(this.getInContactForUserId(id));\n\t }\n\t \n\t return user;\n\t}",
"@Override\r\n public Dorm findById(Integer id) {\n return userMapper.findById(id);\r\n }",
"public UserDTO getUserById(long id) {\n return Optional.of(ObjectMapperUtility.map(dao.findById(id), UserDTO.class))\n .orElseThrow(() -> new UserNotFoundException(\"No users with matching id \" + id));\n // return Optional.of(dao.findById(id)).get().orElseThrow(()-> new UserNotFoundException(\"No users with\n // match\"));\n }",
"public User read(String id);",
"public User getUserById(int id) {\n\t\treturn em.find(User.class, id);\n\t}",
"public User findUserById(int id);",
"@Override\r\n\tpublic LocalUser get(int id) {\n\t\treturn userDao.get(id);\r\n\t}",
"public User getById(int id) {\n\t\t return (User)sessionFactory.getCurrentSession().get(User.class, id);\n\t}",
"@Override\n public User findById(long id) {\n return dao.findById(id);\n }",
"public Function<Session, User> get(long id) {\n return this.functionTransaction(\n session -> session.get(User.class, id)\n );\n }",
"@Override\n public TechGalleryUser getUser(final Long id) throws NotFoundException {\n TechGalleryUser userEntity = userDao.findById(id);\n // if user is null, return a not found exception\n if (userEntity == null) {\n throw new NotFoundException(i18n.t(\"No user was found.\"));\n } else {\n return userEntity;\n }\n }",
"public User getUser(int id) {\n User user = null;\n Session session = null;\n try {\n session = openSession();\n user = (User) session.get(User.class, id);\n } catch (HibernateException he) {\n logger.error(\"Hibernate Exception: \" + he);\n } catch (Exception e) {\n logger.error(\"Exception: \" + e);\n } finally {\n if (session != null) {\n session.close();\n }\n }\n return user;\n }",
"User findUserById(int id);",
"public User getUserById(Long id) throws Exception;",
"public Optional<User> getUser(UUID id) {\n return userRepository.findById(id);\n }",
"public PrototypeUser getUserById(Long id) {\n\t\treturn userDao.findById(id);\r\n\t}",
"public static User findById(final String id) {\n return find.byId(id);\n\n }",
"@Override\n\tpublic User selectByPrimaryKey(Integer id) {\n\t\treturn userMapper.selectByPrimaryKey(id);\n\t}",
"@Override\r\n\tpublic SpUser findById(String id) {\n\t\treturn null;\r\n\t}",
"Optional<User> findUser(int id) throws ServiceException;",
"@Override\n public User getUserById(int id) {\n Session session = this.sessionFactory.getCurrentSession(); \n User u = (User) session.load(User.class, new Integer(id));\n logger.info(\"User loaded successfully, User details=\"+u);\n return u;\n }",
"public User getSingleUserCurrentEmployee(Integer id) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from User as user where user.userId = ? and currentEmployee='true'\",\n new Object[]{id},\n new Type[]{Hibernate.INTEGER});\n\n\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (User) results.get(0);\n }\n\n }",
"public User getRegUserFromId(int userId){\n for (int i = 0; i < regUsers.size(); i++){\n if (regUsers.get(i).getUserId() == userId){\n return regUsers.get(i);\n }\n }\n\n return null;\n }",
"private int getUserById(int id)\n\t{\n\t\tint index = -1;\n\t\t// Search the user in the list\n\t\tfor(int i = 0; i < this.usersList.size(); i++)\n\t\t{\n\t\t\tif(this.usersList.get(i).getId() == id)\n\t\t\t{\n\t\t\t\tindex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Return the index \n\t\treturn index;\n\t}",
"Optional<QnowUser> findOne(Long id);",
"public Users getUserById(int id) {\n\t\treturn userMapper.findUserById(id);\n\t}",
"public User getUser(long id) {\n\t\tfactory = new Configuration().configure().buildSessionFactory();\n\t\tsession = factory.getCurrentSession();\n\t\tsession.beginTransaction();\n\t\tQuery query = session.createQuery(\"from User where idUser = :id \");\n\t\tquery.setParameter(\"id\", id);\n\t\tList<User> list = query.getResultList();\n\t\tsession.close();\n\t\treturn list.get(0);\n\t\t\n\t}",
"public User findById(Long id);"
] |
[
"0.8050956",
"0.80129516",
"0.7916832",
"0.7801849",
"0.7788222",
"0.77873665",
"0.7777753",
"0.76992834",
"0.76742506",
"0.76665586",
"0.76525176",
"0.76329154",
"0.7619377",
"0.76129466",
"0.75540024",
"0.7536896",
"0.75066394",
"0.74952185",
"0.749502",
"0.7490896",
"0.7490896",
"0.74788743",
"0.74661034",
"0.74611354",
"0.74600804",
"0.74557537",
"0.7451727",
"0.7448365",
"0.7419295",
"0.7417423",
"0.74034107",
"0.73840344",
"0.7377558",
"0.7370899",
"0.73572934",
"0.73549604",
"0.7351396",
"0.73488855",
"0.7348397",
"0.7342139",
"0.73390555",
"0.7333351",
"0.73325604",
"0.73310834",
"0.73300207",
"0.73282784",
"0.7317464",
"0.7314231",
"0.7313404",
"0.73128223",
"0.7297439",
"0.7293857",
"0.72860825",
"0.72837776",
"0.72688675",
"0.7268315",
"0.72634363",
"0.72439957",
"0.7239093",
"0.72358155",
"0.72345334",
"0.7233538",
"0.722233",
"0.7218496",
"0.7207157",
"0.72025853",
"0.72019494",
"0.7197126",
"0.71900254",
"0.7188918",
"0.7187613",
"0.71789086",
"0.71759045",
"0.71666735",
"0.71612775",
"0.71577716",
"0.7156733",
"0.7155158",
"0.715299",
"0.7150667",
"0.7148157",
"0.7124235",
"0.7101287",
"0.7100123",
"0.7099247",
"0.70971066",
"0.7094387",
"0.7088171",
"0.70881206",
"0.7086701",
"0.7077459",
"0.70682544",
"0.7066324",
"0.70597816",
"0.7049282",
"0.7048052",
"0.70442116",
"0.7029594",
"0.70241773",
"0.70235384",
"0.7020627"
] |
0.0
|
-1
|
Update the passed user in the database.
|
public void update(Department department) {
entityManager.merge(department);
return;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void updateUser(User user) {\n\t\t\r\n\t}",
"void updateUser(@Nonnull User user);",
"public User updateUser(User user);",
"@Override\n\tpublic void updateUser(User user)\n\t{\n\n\t}",
"public void update(User user);",
"@Override\n\tpublic void updateUser(user theUser) {\n\t}",
"@Override\n\tpublic void updateUser(User pUser) {\n\t\t\n\t}",
"public boolean update(User u);",
"@Override\r\n\tpublic void update(User user) {\n\t\tuserDao.update(user);\r\n\t}",
"ManageUserResponse updateUser(UserUpdateRequest user, Long userId);",
"@Override\n\tpublic void update(User user)\n\t{\n\t\tuserDAO.update(user);\n\t}",
"void update(User user) throws SQLException;",
"public void updateUser(Person user) {\n\t\t\n\t}",
"void update(User user);",
"void update(User user);",
"public void updateUser(User user) {\n\t\t\r\n\t\tsessionFactory.getCurrentSession().update(user);\r\n\t\t\r\n\t}",
"public void updateUser() {\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(db.DB.connectionString, db.DB.user, db.DB.password);\n Statement stmt = conn.createStatement();\n String query = \"update users set first_name='\" + firstName + \"', \";\n query += \"last_name='\" + lastName + \"', \";\n query += \"phone_number='\" + phoneNumber + \"', \";\n query += \"email='\" + email + \"', \";\n query += \"address='\" + address + \"', \";\n query += \"id_city='\" + idCity + \"' \";\n query += \"where id_user = \" + id;\n stmt.executeUpdate(query);\n\n User updatedUser = findUser(id);\n updatedUser.setFirstName(firstName);\n updatedUser.setLastName(lastName);\n updatedUser.setPhoneNumber(phoneNumber);\n updatedUser.setEmail(email);\n updatedUser.setIdCity(idCity);\n updatedUser.setAddress(address);\n\n } catch (SQLException ex) {\n Logger.getLogger(UserController.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n clear();\n try {\n conn.close();\n } catch (Exception e) {\n /* ignored */ }\n }\n }",
"ResponseMessage updateUser(final User user);",
"@Override\n public User update(User user) {\n return dao.update(user);\n }",
"int updateUserById( User user);",
"public void update(User user) {\n repository.update(user);\n }",
"public void updateUser(User oldUser, User newUser) ;",
"@Override\n public void updateUser(User u) {\n Session session = this.sessionFactory.getCurrentSession();\n session.update(u);\n logger.info(\"User updated successfully, User Details=\"+u);\n }",
"public void update(User u) {\n\r\n\t}",
"public void updateUserDetails() {\n\t\tSystem.out.println(\"Calling updateUserDetails() Method To Update User Record\");\n\t\tuserDAO.updateUser(user);\n\t}",
"void updateUserById(String username, User userData);",
"public void userUpdate(User user) {\n\t\tdao.userUpdate(user);\n\t}",
"@Override\n public boolean updateUser(User user) {\n return controller.updateUser(user);\n }",
"UpdateUserResult updateUser(UpdateUserRequest updateUserRequest);",
"@Override\n\tpublic int update(TbUser user) {\n\t\treturn new userDaoImpl().update(user);\n\t}",
"@Override\r\n\tpublic void updateUser(User user) {\n\t\tuserReposotory.save(user);\r\n\t\t\r\n\t}",
"public void update(User user) {\n\t\tuserDao.update(user);\n\t}",
"@Override\n\tpublic void update(User objetc) {\n\t\tuserDao.update(objetc);\n\t}",
"@Override\n\tpublic void updateUser(User user) {\n\t\tiUserDao.updateUser(user);\n\t}",
"@Override\r\n\tpublic void update(User user) {\n\t\tint iRet = dao.update(user);\r\n\t\tif(iRet != 1){\r\n\t\t\tlogger.error(\"修改失败\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlogger.info(\"修改成功\");\r\n\t}",
"@Override\n\tpublic int updateUser(User user) {\n\t\treturn userDao.updateUser(user);\n\t}",
"void editUser(String uid, User newUser);",
"@Override\n\tpublic void updateUser(User user) {\n\t userMapper.updateUser(user);\n\t}",
"@Override\n\tpublic int update(Users user) {\n\t\treturn userDAO.update(user);\n\t}",
"public String updateUser(){\n\t\tusersservice.update(usersId, username, password, department, role, post, positionId);\n\t\treturn \"Success\";\n\t}",
"@Override\n\tpublic boolean updateUser(Integer Id, User user) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void update(User user) throws DAOException {\n\t\t\n\t}",
"UserEntity updateUser(UserEntity userEntity);",
"public void update(User obj) {\n\t\t\n\t}",
"void updateUser(User entity) throws UserDaoException;",
"@Override\n\tpublic void editUser(ERSUser user) {\n\t\tuserDao.updateUser(user);\n\t}",
"User modifyUser(Long user_id, User user);",
"@Override\r\n\tpublic void updateUser(TUsers tuser) {\n\t\tdao.updateUser(tuser);\r\n\t}",
"@Override\r\n\tpublic int updateUser(Users user) {\n\t\treturn 0;\r\n\t}",
"public void updateUser(User user) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_USER_NAME, user.getName());\n values.put(COLUMN_USER_EMAIL, user.getEmail());\n if (user.getImage() != null){\n values.put(COLUMN_USER_IMAGE, getBitmapAsByteArray(user.getImage()));\n }else {\n values.put(COLUMN_USER_IMAGE, \"\");\n }\n values.put(COLUMN_USER_CURRMONTH_ID, user.getCurrMonth());\n // updating row\n db.update(TABLE_USER, values, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n Log.i(\"updateUser\", user.toString());\n db.close();\n }",
"@Override\r\n\tpublic int updateUser(User user, String userName) {\n\t\treturn 0;\r\n\t}",
"public User UpdateUser(User user){\n\t\t\treturn user;\n\t\t}",
"@Override\r\n\tpublic boolean updateUser(user user) {\n\t\tif(userdao.updateByPrimaryKey(user)==1){\r\n\t\t\treturn true;}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}",
"public void updateUser(int uid, String name, String phone, String email, String password, int money, int credit);",
"@Override\n\tpublic void update(Connection conn, User user,Long id) throws SQLException {\n\t\tString updateSql=\"update tbl_user set name=?,password=?,email=?where id=?\";\n\t\tPreparedStatement ps=conn\n\t\t\t\t.prepareCall(updateSql);\n\t\tps.setString(1, user.getName());\n\t\tps.setString(2, user.getPassword());\n\t\tps.setString(3, user.getEmail());\n\t\tps.setLong(4, id);\n\t\tps.execute();\n\t}",
"void updateUser(UserDTO user);",
"public void updateUser(user user) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_USER_NAME, user.getName());\n values.put(COLUMN_USER_EMAIL, user.getEmail());\n values.put(COLUMN_USER_PASSWORD, user.getPassword());\n\n // updating row\n db.update(TABLE_NAME, values, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n db.close();\n }",
"@Override\r\n\tpublic void apiUpdateUser(User user) {\n\t\tUser a = findByIdUser(user.getId());\r\n\t\tif (StringUtils.hasText(user.getUserName()))\r\n\t\t{\r\n\t\t\ta.setUserName(user.getUserName());\r\n\t\t}\r\n\t\tif (StringUtils.hasText(user.getPassWord()))\r\n\t\t{\r\n\t\t\ta.setPassWord(user.getPassWord());\r\n\t\t}\r\n\t\tuserReposotory.save(a);\r\n\t\t\r\n\t}",
"public void updateUser(User user) {\n\n String updateSql = \"update USER set name = ?, age = ? , salary = ? where id = ?\";\n jdbcTemplate.update(updateSql, user.getName(), user.getAge(), user.getSalary(), user.getId());\n }",
"public int updateUser(User user) {\n\t\t\n\t\treturn 1;\n\t}",
"@Override\n\tpublic void updateUser(User curpwd) {\n\t\tuserRepository.save(curpwd);\n\t}",
"@Override\n\tpublic void updateOne(User u) {\n\t\tdao.updateInfo(u);\n\t}",
"public void updateUser(User user) {\n ContentValues values = new ContentValues();\n values.put(COLUMN_USER_USERNAME, user.getUsername());\n values.put(COLUMN_USER_EMAIL, user.getEmail());\n values.put(COLUMN_USER_PASSWORD, user.getPassword());\n values.put(COLUMN_USER_NUME, user.getNume());\n values.put(COLUMN_USER_PRENUME, user.getPrenume());\n values.put(COLUMN_USER_AGE, user.getAge());\n db.update(TABLE_USER, values, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n db.close();\n }",
"public int update(User user) {\n\t\treturn this.userDao.updateByPrimaryKey(user);\r\n\t}",
"public void update(com.conurets.inventory.model.User model) throws InventoryException {\n }",
"@Override\n public void updateUser(User user){\n try {\n runner.update(con.getThreadConnection(),\"update user set username=?,address=?,sex=?,birthday=? where id=?\"\n ,user.getUsername(),user.getAddress(),user.getSex(),user.getBirthday(),user.getId());\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n e.printStackTrace();\n }\n }",
"@Override\r\n\tpublic int updateByPrimaryKey(User record) {\n\t\treturn userDao.updateByPrimaryKey(record);\r\n\t}",
"public void update(User u) {\n\t\tUserDao ua=new UserDao();\n\t\tua.update(u);\n\t\t\n\t}",
"public void updateUser(long userID) {\n \t}",
"public void updateUser(User updatedUser){\n ProfileSharedPreferencesRepository.getInstance(application).updateUser(updatedUser);\n }",
"@Override\n\tpublic Boolean updateUser(User user) {\n\t\treturn null;\n\t}",
"public void update(User user) {\n\t\tString sql=\"update SCOTT.USERS set USERNAME='\"+user.getUsername()+\"',PASSWORD='\"+user.getPassword()+\"',NICKNAME='\"+user.getNickname()+\"',EMAIL='\"+user.getEmail()+\"',STATE='\"+user.getState()+\"',CODE='\"+user.getCode()+\"' where ID='\"+user.getUid()+\"'\";\n\t\t\n\t\tJdbcUtils jdbcutils=new JdbcUtils();\n\t\tjdbcutils.executeUpdate(sql);\n\t\t\n\t}",
"public void update(User object) throws DaoException {\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n try {\n connection = dataSourceUtils.getConnection(dataSource);\n preparedStatement = connection.prepareStatement(UPDATE_USER);\n\n preparedStatement.setString(1, object.getUserName());\n preparedStatement.setString(2, object.getLogin());\n preparedStatement.setString(3, object.getPassword());\n preparedStatement.setLong(4, object.getUserId());\n preparedStatement.executeUpdate();\n } catch (SQLException e) {\n throw new DaoException(e);\n } finally {\n DataSourceUtils.releaseConnection(connection, dataSource);\n try {\n preparedStatement.close();\n } catch (SQLException e) {\n LOGGER.error(e);\n }\n }\n }",
"@Override\n\tpublic int updateUser(SmbmsUser user) {\n\t\treturn sud.updateUser(user);\n\t}",
"public void updateUser(User user) {\n update(\"UPDATE user SET \" +\n \"role_id = ?,\" +\n \"given_name = ?,\" +\n \"family_name = ?,\" +\n \"username = ?,\" +\n \"email = ?,\" +\n \"password = ?,\" +\n \"phone = ? \" +\n \"WHERE id = ?\",\n new Object[] {\n user.getRoleId(),\n user.getGivenName(),\n user.getFamilyName(),\n user.getUsername(),\n user.getEmail(),\n user.getPassword(),\n user.getPhone(),\n user.getId()});\n }",
"void update(User user, Connection connection) throws DAOException;",
"private void updateUser() {\n if (\"\".equals(txtFirstname.getText()) || \"\".equals(txtLastname.getText()) || \"\".equals(txtEmail.getText())) {\n JOptionPane.showMessageDialog(null, \"Select a user to update\");\n } else {\n try {\n //Updates record of selected user\n System.out.println(User);\n String sql = \"UPDATE Accounts SET Firstname = '\" + txtFirstname.getText() + \"', Lastname = '\" + txtLastname.getText() + \"', Email = '\" + txtEmail.getText() + \"' WHERE Username = '\" + User + \"'\";\n\n ps = con.prepareStatement(sql);\n ps.executeUpdate();\n showUserData();\n JOptionPane.showMessageDialog(null, User + \" Your information has been updated\");\n\n } catch (SQLException ex) {\n System.out.println(\"Error: \" + ex);\n Logger.getLogger(myAccount.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"public void editUser(User user) {\n\t\t\n\t}",
"@Override\n\t@Transactional\n\tpublic void updateUser(User user) {\n\t\tuserRepository.saveAndFlush(user);\n\t}",
"@Transactional(readOnly=false)\r\n\tpublic void updateUser(User user) {\n\t\tthis.userDao.updateEntry(user);\r\n\t}",
"public void updateUser(Userlist user) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_FIRSTNAME, user.getFirstname());\n values.put(COLUMN_LASTNAME, user.getLastname());\n values.put(COLUMN_EMAIL, user.getEmail());\n values.put(COLUMN_PHONE, user.getMobile());\n\n // updating row\n db.update(TABLE_USERLIST, values, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getID())});\n db.close();\n }",
"public String update() {\r\n\t\tuserService.update(userEdit);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"update\";\r\n\t}",
"public void updateUser(User user) throws HibernateException\r\n\t{\r\n\t Session session = sessionFactory.getCurrentSession();\r\n\t session.update(user);\r\n\t}",
"@Override\n\tpublic User updateUser(User user) {\n\t\treturn null;\n\t}",
"public void updateUser(int id, User user) {\n\t\tEntityManager entityManager = HandleConnectionToDB.getEntityManager();\n\t\tUser userFind = entityManager.find(User.class, id);\n\n\t\tentityManager.getTransaction().begin();\n\t\tuserFind.setPicture(user.getPicture());\n\t\tuserFind.setPassword(user.getPassword());\n\t\tuserFind.setUsername(user.getUsername());\n\t\tentityManager.getTransaction().commit();\n\t}",
"@Override\n\tpublic User update(User user) {\n\t\tUser oldUser = new User();\n\t\tif(user.getId() !=null) {\n\t\t\toldUser = repo.findById(user.getId()).get();\n\t\t}\n\t\t\toldUser.setUserId(user.getUserId());\n\t\t\toldUser.setName(user.getName());\n\t\t\toldUser.setEmail(user.getEmail());\n\t\t\t\n\t\treturn repo.save(oldUser);\n\t}",
"public void updateUser(User detachedUser) throws Exception;",
"public User update(User user)throws Exception;",
"public void updateUser(EOSUser user) throws EOSForbiddenException, EOSUnauthorizedException, EOSNotFoundException,\n\t\t\tEOSValidationException;",
"@Override\r\n\tpublic int update(User user) {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic int updateByPrimaryKey(User record) {\n\t\treturn userMapper.updateByPrimaryKey(record);\n\t}",
"@Override\n\tpublic String updateUser(String user) {\nreturn null;\n\t}",
"@Override\r\n\tpublic void updateUser(User user) throws ToDoListDAOException{\r\n\t\t// TODO Auto-generated method stub\r\n\t\t Session session = factory.openSession();\r\n\t\t try\r\n\t\t {\r\n\t\t session.beginTransaction();\r\n\t\t Query query = session.createQuery(\"from User where userName = :user\");\r\n\t\t User ifUserExist =(User) query.setParameter(\"user\",user.getUserName()).uniqueResult();\r\n\t\t long id = ifUserExist.getId();\r\n\t\t Query query2 = session.createQuery(\"UPDATE User SET password = :pass , userName= :user\" +\r\n\t\t \" where id = :d\");\r\n\t\t query2.setParameter(\"pass\", user.getPassword());\r\n\t\t query2.setParameter(\"user\", user.getUserName());\r\n\t\t query2.setParameter(\"d\", id);\r\n\t\t query2.executeUpdate();\r\n\t\t session.getTransaction().commit();\r\n\t\t \r\n\t\t }\r\n\t\t catch (HibernateException e)\r\n\t\t {\r\n\t\t e.printStackTrace();\r\n\t\t if(session.getTransaction()!=null) session.getTransaction().rollback();\r\n\t\t }\r\n\t\t finally\r\n\t\t {\r\n\t\t\t if(session != null) \r\n\t\t\t\t{ \r\n\t\t\t\t\tsession.close(); \r\n\t\t\t\t} \r\n\t\t } \r\n\t}",
"@RequestMapping(method = RequestMethod.PUT, headers = \"Content-Type=application/json\")\n\tpublic @ResponseBody\n\tResult updateUser(@RequestBody WlsUser user, HttpServletRequest request) {\n\t\tString paramCred = getParamCred(request);\n\t\tString userId = cred2UserId(paramCred);\n\t\tif (userId.equals(user.getId())) {\n\t\t\tuserService.updateUser(user);\n\t\t\treturn new Result();\n\t\t} else {\n\t\t\treturn new Result().setErrCode(ErrorCode.NO_PRIVILIEGE);\n\t\t}\n\t}",
"public Boolean updateUserData (User currentUser){ //throws Exception if user not existing in database\n\n if(userRepository.existsById(currentUser.getId())){\n User temp_user = getUserById(currentUser.getId());\n\n temp_user.setUsername(currentUser.getUsername());\n temp_user.setBirthday_date(currentUser.getBirthday_date());\n userRepository.save(temp_user);\n\n return true;\n }else{\n throw new UnknownUserException(\"This user doesn't exist and can therefore not be updated\");\n }\n }",
"public void update(User user) {\n\t\tmapper.update(user);\n\t}",
"@Override\n\tpublic ApplicationResponse updateUser(String id, UserRequest request) {\n\t\tUserEntity user = null;\n\t\tOptional<UserEntity> userEntity = repository.findById(id);\n\t\tif (userEntity.isPresent()) {\n\t\t\tuser = userEntity.get();\n\t\t\tif (!StringUtils.isEmpty(request.getFirstName())) {\n\t\t\t\tuser.setFirstName(request.getFirstName());\n\t\t\t}\n\t\t\tif (!StringUtils.isEmpty(request.getSurName())) {\n\t\t\t\tuser.setSurName(request.getSurName());\n\t\t\t}\n\t\t\tif (!StringUtils.isEmpty(request.getDob())) {\n\t\t\t\tuser.setDob(request.getDob());\n\t\t\t}\n\t\t\tif (!StringUtils.isEmpty(request.getTitle())) {\n\t\t\t\tuser.setTitle(request.getTitle());\n\t\t\t}\n\t\t\tuser = repository.save(user);\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(user));\n\t\t} else {\n\t\t\tthrow new UserNotFoundException(\"User not found\");\n\t\t}\n\t}",
"private static void updateUser() {\n\t currentUser = Structure.User(currentUser);\n\t CRUDUsers.compareWithRemote(currentUser).subscribe(new SingleSubscriber<User>() {\n\t\t @Override\n\t\t public void onSuccess(User value) {\n\t\t\t\tConnection.logIn(value);\n\t\t }\n\t\t\n\t\t @Override\n\t\t public void onError(Throwable error) {\n\t\t\t logOff();\n\t\t\t App.showMessage(error.getMessage());\n\t\t }\n\t });\n }",
"public void updateUser(UserRow user) throws AdminPersistenceException {\n SynchroReport.debug(\"UserTable.updateUser()\", \"Maj de \" + user.login\n + \", Id=\" + user.id + \", requête : \" + UPDATE_USER, null);\n updateRow(UPDATE_USER, user);\n }",
"void updateUserPassword(User user);",
"public Account update(Account user);"
] |
[
"0.8403658",
"0.81916934",
"0.8177053",
"0.81201327",
"0.80965173",
"0.80655617",
"0.8027758",
"0.80070466",
"0.7953301",
"0.79253876",
"0.7904702",
"0.7850416",
"0.7848325",
"0.78466743",
"0.78466743",
"0.78351337",
"0.77652705",
"0.77574044",
"0.7749426",
"0.7740081",
"0.7736647",
"0.77360845",
"0.7731827",
"0.770918",
"0.7698228",
"0.7689408",
"0.7669656",
"0.7661947",
"0.76599115",
"0.7656598",
"0.76482326",
"0.7619531",
"0.7607922",
"0.75970674",
"0.759121",
"0.7574669",
"0.7567433",
"0.7564885",
"0.7563467",
"0.7553869",
"0.7552539",
"0.7517759",
"0.7477935",
"0.74677676",
"0.7458396",
"0.7446772",
"0.74390817",
"0.7435303",
"0.74334306",
"0.7429879",
"0.7420377",
"0.7419726",
"0.7418871",
"0.74138623",
"0.73933244",
"0.7389068",
"0.735704",
"0.73516494",
"0.7351615",
"0.73515767",
"0.73514754",
"0.7339375",
"0.73312587",
"0.7322839",
"0.72992057",
"0.72965693",
"0.7295335",
"0.72917604",
"0.728697",
"0.7274479",
"0.7259653",
"0.7241183",
"0.7234263",
"0.72331846",
"0.7231649",
"0.721495",
"0.72114",
"0.72002923",
"0.719653",
"0.71891713",
"0.71719813",
"0.7158669",
"0.71466595",
"0.7132634",
"0.71210223",
"0.7117546",
"0.71128803",
"0.71124315",
"0.71102",
"0.7107221",
"0.7101168",
"0.7099301",
"0.7097545",
"0.70855874",
"0.7082442",
"0.70755225",
"0.70725924",
"0.70685685",
"0.7047295",
"0.70463485",
"0.70459384"
] |
0.0
|
-1
|
/ this also checks that a new entry was not inserted between pre and cur after the search but before cur = pre.getNext()
|
private boolean validate(K key,
DictionaryEntry<K,V> pre,
DictionaryEntry<K,V> cur) {
return (!pre.isMarked()
&& (cur == pre.getNext())
&& (cur.isSentinel()
|| (key.compareTo(cur.getKey()) <= 0))
);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void searchMis(TreeNode cur)\n {\n if (cur == null)\n return;\n searchMis(cur.left);\n if (pre != null && pre.val > cur.val) {\n if (idx == 0) {\n nodes[0] = pre;\n nodes[1] = cur;\n idx = 1;\n } else {\n nodes[1] = cur;\n }\n \n \n }\n pre = cur;\n \n searchMis(cur.right);\n }",
"public boolean addEntryInOrder(Entry newEntry)\n {\n if (this.isEmpty())\n {\n //if its empty, initializing as a new list won't hurt\n //catches slippery null lists\n entryList = new LinkedList<Entry>();\n entryList.add(newEntry);\n return true;\n }\n\n\n //current position in list\n int index = 0;\n //current word in list\n String current;\n //the word from the entry I'm adding, assumes its valid\n String newWord = newEntry.getWord();\n\n if (this.hasWord(newWord))\n {\n //the entry already exists\n return false;\n }\n\n while(index < entryList.size())\n {\n current = entryList.get(index).getWord();\n\n if (newWord.compareToIgnoreCase(current) < 0)\n {\n //the new word goes before the current word\n entryList.add(index, newEntry);\n return true;\n }\n else if (newWord.compareToIgnoreCase(current) == 0)\n {\n return false;\n //word already exists in database\n }\n //move on to the next one\n index++;\n\n }\n\n //if it comes after everything in the database\n entryList.add(newEntry);\n return true;//woohoo we did it\n\n }",
"boolean scavenge()\r\n/* 462: */ {\r\n/* 463:493 */ if (scavengeSome()) {\r\n/* 464:494 */ return true;\r\n/* 465: */ }\r\n/* 466:498 */ this.prev = null;\r\n/* 467:499 */ this.cursor = this.head;\r\n/* 468:500 */ return false;\r\n/* 469: */ }",
"@Override\n public void remove() {\n Entry<T> prev = ((Entry<T>) cursor).prev;\n super.remove();\n if(cursor!=tail){\n ((Entry<T>) cursor.next).prev = prev;\n }\n }",
"public boolean hasPrev() {\n return cursor != null && ((Entry<T>) cursor).prev!= null && ((Entry) cursor).prev.prev != null;\n }",
"private boolean checkAndAddEntry(CompareEntry entry, PointNode node) {\n Rectangle rec = entry.getRec();\n \n // Check if the rectangle doesn't hit any overhanging rectangles.\n if (node.getMaxHeight() < rec.getHeight()) {\n return false;\n }\n \n // Check if the rectangle fits in the bounding box.\n if (dataset.isFixedHeight() &&\n dataset.getHeight() < node.point.y + rec.height) {\n return false;\n }\n \n // The rectangle is allowed to be placed, so place it.\n rec.x = node.point.x;\n rec.y = node.point.y;\n \n // The points for the upper left and lower right corners.\n Point upLeft = new Point(node.point.x, node.point.y + rec.height);\n Point downRight = new Point(node.point.x + rec.width, node.point.y);\n \n LinkAction la;\n \n PointNode upLeftNode = null;\n PointNode downRightNode = null;\n \n // If the rectangle fits the remaining space at the top (it is exactly\n // below the next point) we can ignore the upper left point.\n if (node.next == null || upLeft.y != node.next.point.y) {\n upLeftNode = new PointNode(upLeft);\n }\n \n // If the rectangle fits the space on the left (it is exactly above\n // the previous point), we can ignore the lower right point.\n if (node.prev == null || downRight.x != node.prev.point.x) {\n downRightNode = new PointNode(downRight);\n }\n \n // If the rectangle exactly fits the remaining space at the top and\n // fits the space on the left (it is exactly below the next point),\n // we can additionally replace the next node.\n if (node.next != null && upLeftNode != null &&\n downRight.y == node.next.point.y) {\n if (downRightNode == null) {\n la = new ReplaceLinkAction(node, node.next,\n new PointNode[] {upLeftNode});\n curNode = upLeftNode;\n \n } else {\n la = new ReplaceLinkAction(node, node.next,\n new PointNode[] {downRightNode, upLeftNode});\n curNode = downRightNode;\n }\n \n } else {\n if (downRightNode == null) {\n if (upLeftNode == null) {\n la = new RemoveLinkAction(node);\n // This value is non-null since upLeftNode == null,\n // and the only way for node.next to be null is when\n // node == last, and in that case upLeftNode != null.\n curNode = node.next;\n \n } else {\n la = new ReplaceLinkAction(node, upLeftNode);\n curNode = upLeftNode;\n }\n \n } else {\n if (upLeftNode == null) {\n la = new ReplaceLinkAction(node, downRightNode);\n \n } else {\n la = new ReplaceLinkAction(node,\n new PointNode[] {downRightNode, upLeftNode});\n }\n \n curNode = downRightNode;\n }\n }\n \n nodeActions.add(la);\n \n return true;\n }",
"private void findPrev() {\n \tthis.find(false);\n }",
"void scanafter() {\n\t\tint oldline, newline;\n\n\t\tfor (newline = 0; newline <= newinfo.maxLine; newline++) {\n\t\t\toldline = newinfo.other[newline];\n\t\t\tif (oldline >= 0) { /* is unique in old & new */\n\t\t\t\tfor (;;) { /* scan after there in both files */\n\t\t\t\t\tif (++oldline > oldinfo.maxLine)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tif (oldinfo.other[oldline] >= 0)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tif (++newline > newinfo.maxLine)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tif (newinfo.other[newline] >= 0)\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t/*\n\t\t\t\t\t * oldline & newline exist, and aren't already matched\n\t\t\t\t\t */\n\n\t\t\t\t\tif (newinfo.symbol[newline] != oldinfo.symbol[oldline])\n\t\t\t\t\t\tbreak; // not same\n\n\t\t\t\t\tnewinfo.other[newline] = oldline; // record a match\n\t\t\t\t\toldinfo.other[oldline] = newline;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n protected void rebalanceInsert(Position<Entry<K, V>> p) {\n if (!isRoot(p)) {\n makeRed(p);\n resolveRed(p); // The inserted red node may cause a double-red problem\n }\n }",
"private int searchNext(JmtCell prev) {\r\n \t\tRectangle boundspadre = GraphConstants.getBounds((prev).getAttributes()).getBounds();\r\n \t\tObject[] listEdges = null;\r\n \t\tGraphModel graphmodel = graph.getModel();\r\n \t\tList<Object> next = new ArrayList<Object>();\r\n \r\n \t\tif (flag1 == false && prev.seen == false) {\r\n \r\n \t\t\t// Rectangle bounds =\r\n \t\t\t// GraphConstants.getBounds(((JmtCell)prev).getAttributes()).getBounds();\r\n \t\t\tif (!flag2) {\r\n \t\t\t\tboundspadre.setLocation(x, y + ((e + 1) * (42 + heightMax)) - (int) (boundspadre.getHeight() / 2) + 30);\r\n \t\t\t} else {\r\n \t\t\t\tboundspadre.setLocation(x - (int) (boundspadre.getWidth() / 2), y + ((e + 1) * (42 + heightMax))\r\n \t\t\t\t\t\t- (int) (boundspadre.getHeight() / 2) + 30);\r\n \t\t\t}\r\n \r\n \t\t\tGraphConstants.setBounds(prev.getAttributes(), boundspadre);\r\n \t\t\tx = (int) boundspadre.getCenterX() + widthMax + 50;\r\n \t\t\tprev.seen = true;\r\n \t\t\tflag2 = true;\r\n \t\t}\r\n \r\n \t\t// inserisco tutti gli archi uscenti e entranti di min.get(j) in\r\n \t\t// listEdges\r\n \t\tlistEdges = DefaultGraphModel.getOutgoingEdges(graphmodel, prev);\r\n \t\tVector<Object> listEdgestmp = new Vector<Object>();\r\n \t\tfor (Object listEdge : listEdges) {\r\n \t\t\tJmtCell qq = (JmtCell) (graphmodel.getParent(graphmodel.getTarget(listEdge)));\r\n \t\t\tif (!(qq).seen) {\r\n \t\t\t\tlistEdgestmp.add(listEdge);\r\n \t\t\t}\r\n \t\t}\r\n \t\tlistEdges = listEdgestmp.toArray();\r\n \r\n \t\tint numTarget = listEdges.length;\r\n \t\tif (numTarget == 0) {\r\n \t\t\treturn 1;\r\n \t\t}\r\n \r\n \t\tfor (int k = 0; k < numTarget; k++) {\r\n \t\t\tnext.add((graphmodel.getParent(graphmodel.getTarget(listEdges[k]))));\r\n \t\t}\r\n \r\n \t\tint j = 1;\r\n \t\tif (inRepositionSons == false && ((JmtCell) next.get(0)).seen == false) {\r\n \t\t\tj = searchNext((JmtCell) next.get(0));\r\n \t\t} else if (inRepositionSons == true && ((JmtCell) next.get(0)).seen == false) {\r\n \r\n \t\t\tRectangle bounds = GraphConstants.getBounds(((JmtCell) next.get(0)).getAttributes()).getBounds();\r\n \t\t\tbounds.setLocation((int) (boundspadre.getCenterX()) + widthMax + 50 - (int) (bounds.getWidth() / 2), (int) boundspadre.getCenterY()\r\n \t\t\t\t\t- (int) (bounds.getHeight() / 2));\r\n \t\t\tGraphConstants.setBounds(((JmtCell) next.get(0)).getAttributes(), bounds);\r\n \r\n \t\t\t((JmtCell) next.get(0)).seen = true;\r\n \t\t\tj = searchNext((JmtCell) next.get(0));\r\n \t\t}\r\n \r\n \t\tif (numTarget > 0) {\r\n \t\t\tif (!flag) {\r\n \t\t\t\trepositionSons(prev, next, j - 1, 1);\r\n \t\t\t} else {\r\n \t\t\t\trepositionSons(prev, next, -1, 0);\r\n \t\t\t}\r\n \t\t\tflag = false;\r\n \t\t}\r\n \r\n \t\t(prev).sons = 0;\r\n \t\tfor (int w = 0; w < numTarget; w++) {\r\n \t\t\tprev.sons += ((JmtCell) next.get(w)).sons;\r\n \t\t}\r\n \r\n \t\treturn prev.sons;\r\n \t}",
"public boolean isBeforeFirst() throws SQLException {\n/* 151 */ return (this.currentPositionInEntireResult < 0);\n/* */ }",
"public boolean hasPreviousInSet() {\n return (hasPrevious() &&\n (indexOfCurrentElement - 1 >= firstIndexOfCurrentSet) &&\n (indexOfCurrentElement - 1 < firstIndexOfCurrentSet + quantity));\n }",
"void compareInsertion();",
"@Override\n\tpublic boolean add(ComparableSimpleEntry e) {\n\t\t// Delete exception and implement here\n\t\tif (elementsLeft > 0) {\n\t\t\telementsLeft--;\n\t\t\tsuper.offer(e);\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\tif (super.peek().compareTo(e) < 0) {\n\t\t\t\tsuper.offer(e);\n\t\t\t\tsuper.poll();\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"void prevSet(Entry e) {\r\n\t\t\tprev = e;\r\n\t\t}",
"@Override\r\n public boolean hasPrevious() {\n return returned.prev != header;\r\n }",
"@Override\n public boolean hasPrevious()\n {\n if(left == null)\n {\n return false;\n }\n else\n {\n return true;\n }\n }",
"private TennisPlayerContainerNode insertPlayerRec(TennisPlayerContainerNode currRoot, TennisPlayer p) throws TennisDatabaseException {\n\t\t\n\t\tif (currRoot == null) {\n\t\t\t\n return new TennisPlayerContainerNode(p);\n \n } else { // 3-way comparison to understand how to proceed the search.\n \n \t// Get player from current root and compare them\n int comparisonResult = currRoot.getPlayer().compareTo(p); \n \n if (comparisonResult == 0) {// if they are the same\n \t\n throw new TennisDatabaseException(\"Player already exists within database. Please insert a new player\");\n \n } else if (comparisonResult < 0) {// if they are different\n \t\n currRoot.setRight(insertPlayerRec(currRoot.getRight(), p));\n \n return currRoot;\n \n } else {// else \n \t\n currRoot.setLeft(insertPlayerRec(currRoot.getLeft(), p));\n \n return currRoot;\n }\n }\n\t}",
"protected void repeatedFoundWhenInsert(CntAVLTreeNode node) {\n System.out.println(\"添加失败:不允许添加相同的节点!\");\n }",
"public boolean hasNext(){\r\n\t\t\tif (expectedModCount != modCount){\r\n\t\t\t\tthrow new ConcurrentModificationException();\r\n\t\t\t}\r\n\t\t\t//Check this condition, may need to check for empty future nodes\r\n\t\t\tif ((current == null)){//&&(currentNode.getLast()==current)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t\t//current is not endmarker, \r\n\t\t\t\r\n\t\t\t/*if ((currentNode.getLast()!=current))\r\n\t\t\t\treturn true;\r\n\t\t\tif (currentNode.next.getArraySize()!= 0)\r\n\t\t\t\treturn true;\r\n\t\t\treturn false;*/\r\n\t\t}",
"public void testPrev() {\n test1.prev();\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n test1.prev();\n test1.moveToPos(8);\n assertTrue(test1.getValue().inRange(8));\n }",
"private Node dfsPreAdd(Node cur, int val) {\n if ( cur == null) {\n cur = new Node(val);\n return cur;\n }\n //cur is not null: decide left or right\n if (val <= cur.data) {\n cur.left = dfsPreAdd(cur.left, val); \n } else {\n cur.right = dfsPreAdd(cur.right, val);\n }\n return cur;\n }",
"public void checkNewAdded(Instance add) {\n List<Instance> keySet = new LinkedList<Instance>();\n keySet.addAll(backRelation.keySet());\n Boolean added = false;\n for (Instance inst : keySet) {\n if (inst.getName().equals(add.getName()) || inst.getMd5().equals(add.getMd5())) {\n added = true;\n ArrayList<Instance> tmp = backRelation.get(inst);\n tmp.add(add);\n backRelation.remove(inst);\n backRelation.put(inst, tmp);\n if (relatedInstances.containsKey(inst)) {\n ArrayList<Instance> tmpRI = relatedInstances.get(add);\n tmpRI.add(inst);\n relatedInstances.remove(add);\n relatedInstances.put(add, tmpRI);\n\n } else {\n ArrayList<Instance> tmpRI = new ArrayList<Instance>();\n tmpRI.add(inst);\n relatedInstances.put(add, tmpRI);\n }\n\n }\n }\n if (added) {\n instances.add(add);\n }\n }",
"void insertBefore(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tprepend(data); //if the cursor is at the front of the list, you can just call prepend since you will be inserting the element before the front element \n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.prev = cursor.prev; //the new node temp's previous becomes the cursors previous\t\n temp.next = cursor; //the new node temp's next becomes the cursor\n cursor.prev.next = temp; //cursor's previous next element becomes temp\n cursor.prev = temp; //cursor's previous becomes temp\n length++;\n index++;\n\t\t}\n\t}",
"void checkLastItem() {\n if (!mItems.isEmpty() && !mItems.get(mItems.size() - 1).equals(ADD_NEW_ENTRY)) {\n // add last item again if missing\n mItems.add(ADD_NEW_ENTRY);\n // need to manually call, since this item is not in Db and hence ignored by DiffUtil\n notifyItemInserted(mItems.size() - 1);\n }\n }",
"public void recInsertNode(TriLinkNode curNode)\r\n {\r\n if(curNode.i1==true&&curNode.i2==true)\r\n {\r\n if(temp.v1<curNode.v1)\r\n {\r\n if(curNode.left!=null)\r\n {\r\n recInsertNode(curNode.left);\r\n }else\r\n {\r\n curNode.left=temp;\r\n curNode.left.up=curNode;\r\n }\r\n }else if(temp.v1>curNode.v2)\r\n {\r\n if(curNode.right!=null)\r\n {\r\n recInsertNode(curNode.right);\r\n }else\r\n {\r\n curNode.right=temp;\r\n curNode.right.up=curNode;\r\n }\r\n }else if(temp.v1>curNode.v1&&temp.v1<curNode.v2)\r\n {\r\n if(curNode.down!=null)\r\n {\r\n recInsertNode(curNode.down);\r\n }else\r\n {\r\n curNode.down=temp;\r\n curNode.down.up=curNode;\r\n }\r\n }\r\n }else if(temp.v1>curNode.v1)\r\n {\r\n curNode.v2=temp.v1;\r\n curNode.d2=false;\r\n curNode.i2=true;\r\n }else if(temp.v1<curNode.v1&&curNode.left!=null)\r\n {\r\n recInsertNode(curNode.left);\r\n }else if(temp.v1<curNode.v1&&curNode.left==null)\r\n {\r\n curNode.left=temp;\r\n }\r\n }",
"public void insertData(Data newData)\r\n\t\t{\r\n\t\t\tif (newData == null) //should never happen, but just incase\r\n\t\t\t\treturn;\r\n\r\n\t\t\tData currentData = head;\r\n\t\t\twhile (currentData != null) //search for duplicates and add their locations\r\n\t\t\t{\r\n\t\t\t\tif (currentData.getWord().compareTo(newData.getWord()) == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tcurrentData.addPoint((Point) newData.getLocations().get(0));\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tcurrentData = currentData.nextData();\r\n\t\t\t}\r\n\r\n\t\t\tif (head == null)\r\n\t\t\t{\r\n\t\t\t\thead = newData;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentData = head;\r\n\t\t\tif (currentData.getWord().compareTo(newData.getWord()) > 0)\r\n\t\t\t{\r\n\t\t\t\t//will copy newData's greater to currentData's less;\r\n\t\t\t\tnewData.setNextData(currentData);\r\n\t\t\t\tcopyGreaterToLess(newData, currentData);\r\n\t\t\t\thead = newData;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\twhile ((currentData.nextData() != null) && currentData.nextData().getWord().compareTo(newData.getWord()) < 0)\r\n\t\t\t{\r\n\t\t\t\tcurrentData = currentData.nextData();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\tinserting the new data between currentData and tempData\r\n\t\t\twill copy currentData's greater to newData's less and\r\n\t\t\tnewData's greater to tempData's less\r\n\t\t\t */\r\n\t\t\tData tempData = currentData.nextData();\r\n\t\t\tcurrentData.setNextData(newData);\r\n\t\t\tcopyGreaterToLess(currentData, newData);\r\n\t\t\tnewData.setNextData(tempData);\r\n\t\t\tcopyGreaterToLess(newData, tempData);\r\n\t\t}",
"private boolean checkCurrentIterator(Iterator<Integer> iter) {\n return iter != null;\n }",
"public boolean fetchPrev(Transaction trans, DatasetCursor cursor,\n DBObject obj, Filter filter, boolean forUpdate)\n throws StorageException, LockConflict {\n Rowid rowid = cursor.getRowid();\n int index = rowid.getIndex();\n\n if (index == Short.MAX_VALUE)\n index = dir.getCount();\n\n while (true) {\n --index;\n\n if (index < 0 || index >= dir.getCount())\n return false;\n\n rowid.setIndex((short) index);\n\n if (_read(trans, obj, index, forUpdate, filter))\n return true;\n }\n }",
"@Override\n\tpublic void preInsert() {\n\n\t}",
"@Override\n public boolean hasNext() {\n return null != current;\n }",
"private void findNewAnchor() {\n assert stack.empty();\n prevAnchor = anchor;\n if (anchor == HEAD_NODE) {\n next = Chunk.NONE; // there is no more in this chunk\n return;\n } else if (anchor == FIRST_ITEM) {\n anchor = HEAD_NODE;\n } else {\n anchor = anchor - FIELDS;\n }\n stack.push(anchor);\n }",
"@Override\n\t\t\tpublic void insertUpdate(DocumentEvent de) {\n\t\t\t\tSystem.out.println(\"insertchain\");\n\t\t\t\tsearchUser(search.getText().toString());\n\t\t\t}",
"private void findNewNextInStack() {\n if (stack.empty()) {\n next = Chunk.NONE;\n return;\n }\n next = stack.pop();\n long valueReference = INVALID_VALUE_REFERENCE;\n if (next != Chunk.NONE) {\n valueReference = getEntryFieldLong(next, OFFSET.VALUE_REFERENCE);\n }\n while (next != Chunk.NONE && valueReference == INVALID_VALUE_REFERENCE) {\n if (!stack.empty()) {\n next = stack.pop();\n if (next != Chunk.NONE) {\n valueReference = getEntryFieldLong(next, OFFSET.VALUE_REFERENCE);\n }\n } else {\n next = Chunk.NONE;\n return;\n }\n }\n }",
"@Override\n\t\tpublic boolean hasNext() {\t\t\t\n\t\t\treturn current != null;\n\t\t}",
"@Override\n public boolean hasNext() {\n setCurrent();\n return current != null;\n }",
"public ListNode insertionSortList(ListNode head) {\n\n ListNode helper = new ListNode(0);\n ListNode pre = helper;\n ListNode cur = head;\n while(cur!=null) {\n\n while(pre.next.val < cur.val){ //keep looking until find right place\n ;\n }\n }\n return null;\n }",
"public void order_insert(Packet p){//well_tested\n \tListIterator<Packet> it=b_pending_packet.listIterator();\n\t\tPacket temp = null;\n\t\tboolean end_flag=false;\n\t\tboolean begin_flag=true;\n\t\tboolean middle_flag=false;\n \tif(b_expect_seqnum<=(b_expect_seqnum+WindowSize-1)%LimitSeqNo){//normal case \t\t\n \t\twhile(it.hasNext()){\n \t\t\tbegin_flag=false;\n \t\t\tend_flag=true;\n \t\t\ttemp=(Packet) it.next();\n \t\t\tif(temp.getSeqnum()==p.getSeqnum())//already received\n \t\t\t\treturn;\n \t\t\telse{\n \t\t\t\tif(temp.getSeqnum()>p.getSeqnum()){//logic\n \t\t\t\t\tmiddle_flag=true;\n \t\t\t\t\tend_flag=false;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t\tcontinue;\n \t\t\t} \t\t\t\t\n \t\t}\n \t\tif(begin_flag==true)\n \t\t\tb_pending_packet.addFirst(p);\n \t\telse{\n \t\t\tif(end_flag==true)\n \t\t\t\tb_pending_packet.addLast(p);\n \t\t\telse{\n \t\t\t\tif(!it.hasPrevious())\n \t\t\t\t\tb_pending_packet.addFirst(p);\n \t\t\t\telse{\n \t\t\t\t\tit.previous();\n \t\t\t\t\tit.add(p);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n \telse{//wrap around\n \t\tif(p.getSeqnum()>=b_expect_seqnum){//insert before the LimitSeqNo\n \t\t\twhile(it.hasNext()){\n \t\t\tbegin_flag=false;\n \t\t\tend_flag=true;\n \t\t\ttemp=(Packet) it.next();\n \t\t\tif(temp.getSeqnum()<b_expect_seqnum){//prevent wrap around\n \t\t\t\t//it.previous();\n \t\t\t\tmiddle_flag=true;\n \t\t\t\t\tend_flag=false;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tif(temp.getSeqnum()==p.getSeqnum())//already received\n \t\t\t\treturn;\n \t\t\telse{\n \t\t\t\tif(temp.getSeqnum()>p.getSeqnum()){//logic\n \t\t\t\t\tmiddle_flag=true;\n \t\t\t\t\tend_flag=false;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t\tcontinue;\n \t\t\t} \t\t\t\t\n \t\t}\n \t\tif(begin_flag==true)\n \t\t\tb_pending_packet.addFirst(p);\n \t\telse{\n \t\t\tif(end_flag==true)\n \t\t\t\tb_pending_packet.addLast(p);\n \t\t\telse{\n \t\t\t\tif(!it.hasPrevious())\n \t\t\t\t\tb_pending_packet.addFirst(p);\n \t\t\t\telse{\n \t\t\t\t\tit.previous();\n \t\t\t\t\tit.add(p);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t}\n \t\telse{//insert between zero and end\n \t\t\twhile(it.hasNext()){\n \t\t\tbegin_flag=false;\n \t\t\tend_flag=true;\n \t\t\ttemp=(Packet) it.next();\n \t\t\tif(temp.getSeqnum()>=b_expect_seqnum)\n \t\t\t\tcontinue; \t\t\n \t\t\tif(temp.getSeqnum()==p.getSeqnum())//already received\n \t\t\t\treturn;\n \t\t\telse{\n \t\t\t\tif(temp.getSeqnum()>p.getSeqnum()){//logic\n \t\t\t\t\tmiddle_flag=true;\n \t\t\t\t\tend_flag=false;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t\tcontinue;\n \t\t\t} \t\t\t\t\n \t\t}\n \t\tif(begin_flag==true)\n \t\t\tb_pending_packet.addFirst(p);\n \t\telse{\n \t\t\tif(end_flag==true)\n \t\t\t\tb_pending_packet.addLast(p);\n \t\t\telse{\n \t\t\t\tif(!it.hasPrevious())\n \t\t\t\t\tb_pending_packet.addFirst(p);\n \t\t\t\telse{\n \t\t\t\t\tit.previous();\n \t\t\t\t\tit.add(p);\n \t\t\t\t}\n \t\t\t}\n \t\t} \t\t\t\n \t\t}//else ,insert between zero and end\n \t}//else (has warp around)\t\t\n\t}",
"private boolean zzRefill() {\r\n\t\treturn zzCurrentPos>=s.offset+s.count;\r\n\t}",
"private boolean hasNext(){\n return current !=null;\n\n }",
"public boolean hasPreviousSet() { \n return (firstIndexOfCurrentSet > firstIndex);\n }",
"@Override\n public boolean hasNext() {\n return i+1 < queries.size();\n }",
"public boolean hasPrevious() {\r\n if (current - 1 <= 0) {\r\n current = elem.length - 1;\r\n }\r\n return elem[current - 1] != null;\r\n }",
"private boolean zzRefill() {\n\t\treturn zzCurrentPos>=s.offset+s.count;\n\t}",
"private boolean zzRefill() {\n\t\treturn zzCurrentPos>=s.offset+s.count;\n\t}",
"@Override\r\n public boolean hasPrevious() {\r\n if (previous.data == null) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public static ListNode inPlace(ListNode head) {\n if(head == null || head.next == null) return head;\n boolean flag = false;\n if(head.next!=null && head.val == head.next.val) flag = true;\n int ahead = head.val;\n ListNode ptr = head.next;\n ListNode new_head = head;\n ListNode cur = new_head;\n while(ptr != null) {\n if(ptr.val != ahead) {\n if(ptr.next == null || ptr.next.val != ptr.val) {\n cur.next = ptr;\n cur = cur.next;\n }\n ahead = ptr.val;\n }\n ptr = ptr.next;\n }\n cur.next = null;\n if(flag) return new_head.next;\n return new_head;\n }",
"public boolean hasNext() { return cursor != lastIndex; }",
"public boolean hasPrevious()\n {\n // TODO: implement this method\n return false;\n }",
"public boolean insert(int val) {\n if(hm.containsKey(val)){\n return false;\n }\n else{\n sub.add(val);\n hm.put(val,sub.size()-1);\n return true;\n }\n\n\n\n }",
"private boolean addRecordsToList(EntityCursor<RepTestData> cursor) \n throws DatabaseException {\n\n if (isReverseRead) {\n RepTestData data = cursor.last(null);\n if (data == null) {\n return true;\n } else {\n list.add(data);\n while ((data = cursor.prev(null)) != null) {\n list.add(data);\n }\n }\n } else {\n RepTestData data = cursor.first(null);\n if (data == null) {\n return true;\n } else {\n list.add(data);\n while ((data = cursor.next(null)) != null) {\n list.add(data);\n }\n }\n }\n\n return false;\n }",
"private void insertAux2(K key, V val) {\n if(root == null) { //empty tree\n X = new Node(key, val);\n root = X;\n return;\n }\n Node temp = root;\n while(true) {\n int cmp = key.compareTo(temp.key);\n if (cmp < 0 && temp.left != null) { //go left\n comparisons += 1;\n temp = temp.left;\n } else if (cmp < 0 && temp.left == null) { //it goes in the next left\n comparisons += 1;\n X = new Node(key, val);\n temp.left = X;\n X.parent = temp;\n break;\n }\n if (cmp > 0 && temp.right != null) { //go right\n comparisons += 1;\n temp = temp.right;\n } else if (cmp > 0 && temp.right == null) { //it goes in the next right\n comparisons += 1;\n X = new Node(key, val);\n temp.right = X;\n X.parent = temp;\n break;\n }\n if(cmp == 0) { //no doubles, overlap pre-existing node\n comparisons += 1;\n temp.key = key;\n temp.val = val;\n X = temp;\n break;\n }\n }\n }",
"public boolean hasNext() {\r\n\t\t\trequireModificationCountUnchanged();\r\n\r\n\t\t\treturn nextEntry != null;\r\n\t\t}",
"private void expandAndInsert(RankedListElement currentExplanation) {\n\t\tboolean disOverlap = currentExplanation.extensionWithoutOverlap();\n\t\tsortedSets.remove(currentExplanation);\n\n\t\tfor (int i = 0; i < errorExpl.get(currentExplanation.firstUnset).size(); i++) {\n\t\t\tRankedListElement newOne = new RankedListElement(currentExplanation, i);\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tlog.debug(\"Was included? : \" + sortedSets.contains(newOne)\n\t\t\t\t\t\t+ \"\\n\" + newOne);\n\t\t\t}\n\t\t\tif ((!disOverlap || !newOne.lastAdditionHasOverlap())\n\t\t\t\t\t&& !sortedSets.contains(newOne))\n\t\t\t\tsortedSets.add(newOne);\n\t\t}\n\t}",
"void movePrev()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == front) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.prev; //moves cursor toward front of the list\n index--; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t}\n\t}",
"private boolean checkScanNodesCompleted() {\n\t\treturn cursor.getSelectionPos() >= jedisNodes.size();\n\t}",
"static boolean testInsert() {\n BinaryTree tree = new BinaryTree();\n int[] profile = new int[1];\n\n // Implement insert method\n boolean insert = tree.insert(\"a\", 0);\n\n // Validates that insert works as expected\n if(!insert)\n return false;\n\n // Validates that insert works with multiple items\n boolean newInsert = tree.insert(\"b\", 1);\n if(!insert || !newInsert)\n return false;\n\n // Validates that values are in binaryTree\n if(tree.search(\"a\", profile) != 0 || tree.search(\"b\", profile) != 1)\n return false;\n\n // Validates that value is overwritten if same key is present\n tree.insert(\"a\", 3);\n if(tree.search(\"a\", profile) != 3)\n return false;\n\n // Validates that profile is as expected\n if(profile[0] <= 0)\n return false;\n\n return true;\n }",
"boolean scavengeSome()\r\n/* 472: */ {\r\n/* 473:505 */ Recycler.WeakOrderQueue cursor = this.cursor;\r\n/* 474: */ Recycler.WeakOrderQueue prev;\r\n/* 475:506 */ if (cursor == null)\r\n/* 476: */ {\r\n/* 477:507 */ Recycler.WeakOrderQueue prev = null;\r\n/* 478:508 */ cursor = this.head;\r\n/* 479:509 */ if (cursor == null) {\r\n/* 480:510 */ return false;\r\n/* 481: */ }\r\n/* 482: */ }\r\n/* 483: */ else\r\n/* 484: */ {\r\n/* 485:513 */ prev = this.prev;\r\n/* 486: */ }\r\n/* 487:516 */ boolean success = false;\r\n/* 488: */ do\r\n/* 489: */ {\r\n/* 490:518 */ if (cursor.transfer(this))\r\n/* 491: */ {\r\n/* 492:519 */ success = true;\r\n/* 493:520 */ break;\r\n/* 494: */ }\r\n/* 495:522 */ Recycler.WeakOrderQueue next = Recycler.WeakOrderQueue.access$1800(cursor);\r\n/* 496:523 */ if (Recycler.WeakOrderQueue.access$1900(cursor).get() == null)\r\n/* 497: */ {\r\n/* 498:527 */ if (cursor.hasFinalData()) {\r\n/* 499:529 */ while (cursor.transfer(this)) {\r\n/* 500:530 */ success = true;\r\n/* 501: */ }\r\n/* 502: */ }\r\n/* 503:537 */ if (prev != null) {\r\n/* 504:538 */ Recycler.WeakOrderQueue.access$1700(prev, next);\r\n/* 505: */ }\r\n/* 506: */ }\r\n/* 507: */ else\r\n/* 508: */ {\r\n/* 509:541 */ prev = cursor;\r\n/* 510: */ }\r\n/* 511:544 */ cursor = next;\r\n/* 512:546 */ } while ((cursor != null) && (!success));\r\n/* 513:548 */ this.prev = prev;\r\n/* 514:549 */ this.cursor = cursor;\r\n/* 515:550 */ return success;\r\n/* 516: */ }",
"@Override\r\n\tpublic boolean hasPredecessor() {\n\t\treturn false;\r\n\t}",
"@Override\n public boolean hasNext() {\n return curIndex < maxIndex || super.hasNext();\n }",
"boolean hasPrevious();",
"boolean hasPrevious();",
"boolean hasPrevious();",
"boolean hasPrevious();",
"private static boolean preOrderTraversal(Node current) {\n //Break if the node is null\n if(current == null) {\n return false;\n }\n //Recursively check the current node, then the left child, then finally the right child\n else {\n preorder.add(current);\n preOrderTraversal(current.getLeftChild());\n preOrderTraversal(current.getRightChild());\n }\n return true;\n }",
"private static boolean PreviousSpace() {\n //FastTextList.TempNodeCursorUpdate();\n FastTextList.WrapperTempNodeSync();\n //System.out.println(FastTextList.WordWrapNode.nextN.getTextUnit().content);\n while (FastTextList.WordWrapNode.nextN.prevN.getTextUnit().getString().charAt(0) != 32\n || FastTextList.WordWrapNode.nextN.getTextUnit().getX() == STARTING_CURSOR_X){\n if (FastTextList.WordWrapNode.nextN.getTextUnit().getX() == STARTING_CURSOR_X){\n //System.out.println(\"the whole line!!\");\n return false;\n }\n if(FastTextList.WordWrapNode.nextN.prevN == FastTextList.Sentinel\n || FastTextList.WordWrapNode.nextN.prevN.getTextUnit().getString().equals(\"NewLine\")){\n return false;\n }\n\n FastTextList.WordWrapNode.nextN = FastTextList.WordWrapNode.nextN.prevN;\n //System.out.println(FastTextList.WordWrapNode.nextN.getTextUnit().getString());\n }\n /*\n System.out.println(\"got it! it is \" + FastTextList.WordWrapNode.nextN.getTextUnit().content );\n */\n return true;\n }",
"private void skipStaleEntries()\n {\n while (this.index < keys.size() && !HashBijectiveMap.this.containsKey(keys.get(this.index)))\n this.index++;\n }",
"public void add(T e) {\n Entry<T> newNode = new Entry<T>(e, null, null);\n newNode.next = cursor.next;\n newNode.prev = ((Entry<T>) cursor);\n if(cursor != tail) {\n ((Entry<T>) cursor.next).prev = newNode;\n }\n else {\n tail = newNode;\n }\n cursor.next = newNode;\n prev = cursor;\n cursor = cursor.next;\n size++;\n ready = false;\n }",
"void insertAfter(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length==0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == back) \n\t\t{\n\t\t\tappend(data); //if the cursor is at the back of the list then you can just all append since you will be inserting the element into the back element\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.next = cursor.next; //the new node temp's next will be the cursor's next\n\t\t\ttemp.prev = cursor; //the new node temp's previous will become the cursor\n\t\t\tcursor.next.prev = temp; //cursor's next previous element becomes temp\n\t\t\tcursor.next = temp; //cursor's next becomes temp\n\t\t\tlength++;\n\t\t}\n\t}",
"protected boolean lastStateOnPathIsNew(PrioritizedSearchNode psn) {\n\n\tPrioritizedSearchNode cmpNode = (PrioritizedSearchNode) psn.backPointer;\n\n\twhile (cmpNode != null) {\n\t if (psn.equals(cmpNode)) {\n\t\treturn false;\n\t }\n\t cmpNode = (PrioritizedSearchNode) cmpNode.backPointer;\n\t}\n\n\treturn true;\n }",
"@Override\r\n\t\tpublic boolean hasPrevious() {\n\t\t\treturn false;\r\n\t\t}",
"@Override\n\tpublic boolean hasNext() {\n\t return current != null;\n\t}",
"@Override\n public boolean hasNext() {\n\n return curr.nextNode != null && curr.nextNode != tail;\n }",
"@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn _current < (_items.length -1);\n\t\t}",
"private boolean insertSort(Process processToInsert, int leftBound, int rightBound)\n {\n\n int midpoint = (rightBound+leftBound)/2;\n Process processAtMidpoint = readyQueue.get(midpoint);\n\n int compareResult = compare(processToInsert, processAtMidpoint);\n if(compareResult < 0)\n {\n if(leftBound == rightBound) {\n readyQueue.add(leftBound, processToInsert);\n return true;\n }\n return insertSort(processToInsert, leftBound, midpoint);\n }\n else if(compareResult > 0)\n {\n if(leftBound == rightBound) {\n readyQueue.add(leftBound+1, processToInsert);\n return true;\n }\n return insertSort(processToInsert, midpoint+1, rightBound);\n }\n else\n {\n readyQueue.add(midpoint+1, processToInsert);\n return true;\n }\n\n }",
"public boolean sanity()\n {\n A1List p1 = this.getFirst();\n A1List p2 = this.getFirst();\n while(true){\n p1 = p1.getNext();\n p2 = p2.getNext();\n if (p2 == null) break;\n p2 = p2.getNext();\n if (p2==null) break;\n if (p1 ==p2) return false;\n }\n\n // Checkign whether the sentinel nodes are correct or not.\n A1List curr = this.getFirst();\n if (curr ==null){\n if (this.next ==null){\n if (this.prev.prev != null) return false;\n }\n else if (this.prev ==null){\n if (this.next.next !=null) return false;\n }\n }\n else {\n curr = curr.prev;\n // curr shouldd become the head sentinel;\n if (curr.prev !=null ) return false;\n while (curr.getNext() !=null ){\n curr = curr.next;\n }\n // Now curr becomes the node before tail sentinel\n if (curr.next.next !=null) return false;\n }\n\n // Checking whether the prev of the next of a node points back to that node oe not.\n curr = this.getFirst();\n while(curr!=null){\n if (curr.next.prev != curr) return false;\n curr = curr.getNext();\n }\n\n\n return true;\n }",
"void insert(EntryPair entry);",
"@Override\n\tpublic void addEntry(E entry) {\n\n\t\t// Determine if the entry already exists in the list\n\t\tE current = this.getHead();\n\t\twhile (current != null) {\n\t\t\tif (this.isEqual(current, entry)) {\n\t\t\t\t// Already in list\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcurrent = current.getNext();\n\t\t}\n\n\t\t// Not in list, so add the entry\n\t\tsuper.addEntry(entry);\n\t}",
"public boolean addEntryFromMenu(String newWord)\n {\n if (this.hasWord(newWord))\n {\n return false;\n }\n else\n {\n //a new blank entry\n Entry newEntry = new Entry();\n //adds my new word tothe entry\n newEntry.setWord(newWord);\n //insert the new entry to the list\n this.addEntryInOrder(newEntry);\n return true;\n }\n //System.out.println(\"You broke logic\");\n //#unreachable\n }",
"private BTreeSearchResult insertNonFull(BTreeSearchResult input, String key, int info) throws IOException {\r\n\t\tkey = String.format(\"%1$-12s\", key).substring(0,12); //Append whitespaces to keep String size fixed to 12\r\n\t\t\r\n\t\tif (input.node.numKeys <= 0){\r\n\t\t\tinput.node.key[0] = key;\r\n\t\t\tinput.node.info[0] = info;\r\n\t\t\tinput.node.numKeys++;\r\n\t\t\tbyte[] byteBuffer = input.node.serialize(this.pageSize);\r\n\t\t\tthis.writePage(byteBuffer, input.pageFound*this.pageSize); // + 1 disk access\r\n\t\t\tinput.diskAccessNum++;\r\n\t\t}else{\r\n\t\t\tint i = -1-Arrays.binarySearch(Arrays.copyOfRange(input.node.key, 0, input.node.numKeys), key); // Search key first\r\n\t\t\t\tif (input.node.isLeaf()){\r\n\t\t\t\t\tfor (int j = input.node.numKeys; j>i; j--){\r\n\t\t\t\t\t\tinput.node.key[j] = input.node.key[j-1];\r\n\t\t\t\t\t\tinput.node.info[j] = input.node.info[j-1];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tinput.node.key[i] = key;\r\n\t\t\t\t\tinput.node.info[i] = info;\r\n\t\t\t\t\tinput.node.numKeys++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tbyte[] byteBuffer = input.node.serialize(this.pageSize);\r\n\t\t\t\t\tthis.writePage(byteBuffer, input.pageFound*this.pageSize); // + 1 disk access\r\n\t\t\t\t\tinput.diskAccessNum++;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tBTreeNode childNode = new BTreeNode(this.readPage(input.node.child[i]*this.pageSize), this.order); // + 1 disk access\r\n\t\t\t\t\tBTreeSearchResult child = new BTreeSearchResult(childNode, input.node.child[i]);\r\n\t\t\t\t\tchild.diskAccessNum = input.diskAccessNum + 1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (child.node.numKeys == child.node.key.length){\r\n\t\t\t\t\t\tchildNode = split(input.node, i, child); // + 3 disk access and return new child\r\n\t\t\t\t\t\tint diskAccessNum = this.updatePointerOfChildren(child); // Access all children of old root to update their parent pointer\r\n\t\t\t\t\t\tdiskAccessNum = diskAccessNum + this.updatePointerOfChildren(new BTreeSearchResult(childNode, input.node.child[i+1])); // Access all children of new node to update their parent pointer\r\n\t\t\t\t\t\tif (key.compareTo(input.node.key[i])>0)\r\n\t\t\t\t\t\t\tchild = new BTreeSearchResult(childNode, input.node.child[i+1]);\r\n\t\t\t\t\t\tchild.diskAccessNum = input.diskAccessNum + 4 + diskAccessNum;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn insertNonFull(child, key, info);\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn input;\r\n\t}",
"protected boolean processSeekAdded(SeekInfoStruct seekInfo){return false;}",
"public boolean hasPreviousElement() {\n return false;\n }",
"@Override\r\n public boolean hasNext() {\r\n // variable auxiliar t y s para simplificar accesos...\r\n Entry<K, V> t[] = TSB_OAHashtable.this.table;\r\n int s[] = TSB_OAHashtable.this.states;\r\n\r\n if(current_entry >= t.length) { return false; }\r\n\r\n // busco el siguiente indice cerrado\r\n int next_entry = current_entry + 1;\r\n for (int i = next_entry ; i < t.length; i++) {\r\n if (s[i] == 1) return true;\r\n }\r\n\r\n // Si no encontro ninguno retorno false\r\n return false;\r\n }",
"@Override\r\n public boolean hasNext() {\r\n // variable auxiliar t y s para simplificar accesos...\r\n Entry<K, V> t[] = TSB_OAHashtable.this.table;\r\n int s[] = TSB_OAHashtable.this.states;\r\n\r\n if(current_entry >= t.length) { return false; }\r\n\r\n // busco el siguiente indice cerrado\r\n int next_entry = current_entry + 1;\r\n for (int i = next_entry ; i < t.length; i++) {\r\n if (s[i] == 1) return true;\r\n }\r\n\r\n // Si no encontro ninguno retorno false\r\n return false;\r\n }",
"@Override\r\n public boolean hasNext() {\r\n // variable auxiliar t y s para simplificar accesos...\r\n Entry<K, V> t[] = TSB_OAHashtable.this.table;\r\n int s[] = TSB_OAHashtable.this.states;\r\n\r\n if(current_entry >= t.length) { return false; }\r\n\r\n // busco el siguiente indice cerrado\r\n int next_entry = current_entry + 1;\r\n for (int i = next_entry ; i < t.length; i++) {\r\n if (s[i] == 1) return true;\r\n }\r\n\r\n // Si no encontro ninguno retorno false\r\n return false;\r\n }",
"private boolean insertarAux(NodoABB n, Comparable elem) {\n boolean exito = true;\r\n if (elem.compareTo(n.getElem()) == 0) {\r\n //Reportar error: elemento repetido\r\n exito = false;\r\n\r\n } else if (elem.compareTo(n.getElem()) < 0) {\r\n //elemento es menor que el elemento del nodo\r\n //si tine HI baja a la izq, sino agrega elemento\r\n if (n.getIzquierdo() != null) {\r\n exito = insertarAux(n.getIzquierdo(), elem);\r\n } else {\r\n n.setIzquierdo(new NodoABB(elem, null, null));\r\n }\r\n } else // elemento es mayor que el elemento del nodo\r\n //si tiene HD baja a la derecha, sino agrega el elemento\r\n if (n.getDerecho() != null) {\r\n exito = insertarAux(n.getDerecho(), elem);\r\n } else {\r\n n.setDerecho(new NodoABB(elem, null, null));\r\n }\r\n return exito;\r\n }",
"public boolean insert(int val) {\n nums.add(val); //在列表末尾添加的元素 O(1)\n Set<Integer> set = idx.getOrDefault(val, new HashSet<Integer>());\n set.add(nums.size()-1);\n idx.put(val,set);\n return set.size()==1;\n }",
"protected boolean totalOrderPredicate(long newId, long newZxid, long newEpoch, long curId, long curZxid, long curEpoch) {\n LOG.debug(\n \"id: {}, proposed id: {}, zxid: 0x{}, proposed zxid: 0x{}\",\n newId,\n curId,\n Long.toHexString(newZxid),\n Long.toHexString(curZxid));\n\n if (self.getQuorumVerifier().getWeight(newId) == 0) {\n return false;\n }\n\n /*\n * We return true if one of the following three cases hold:\n * 1- New epoch is higher\n * 2- New epoch is the same as current epoch, but new zxid is higher\n * 3- New epoch is the same as current epoch, new zxid is the same\n * as current zxid, but server id is higher.\n */\n\n return ((newEpoch > curEpoch)\n || ((newEpoch == curEpoch)\n && ((newZxid > curZxid)\n || ((newZxid == curZxid)\n && (newId > curId)))));\n }",
"private Node locatePrevNode(K key) { \n\t\tNode p = null; \n\t\tNode current = first; \n\t\twhile (current != null && current.getData().getKey().compareTo(key) < 0) {\n\t\t\tp = current; \n\t\t\tcurrent = current.getNext(); \n\t\t}\n\t\treturn p; \n\t}",
"public boolean insert(int val) {\r\n\r\n\t\tint pos = get_pos(val);\r\n\t\tif (bucket[pos] != null) {\r\n\t\t\tNode n = bucket[pos].list;\r\n\t\t\tNode p = n;\r\n\t\t\twhile (n != null) {\r\n\t\t\t\tif (n.val == val)\r\n\t\t\t\t\treturn false;\r\n\t\t\t\tp = n;\r\n\t\t\t\tn = n.next;\r\n\t\t\t}\r\n\t\t\tp.next = new Node(val);\r\n\t\t} else {\r\n\t\t\tbucket[pos] = new BucketItem();\r\n\t\t\tbucket[pos].list = new Node(val);\r\n\t\t}\r\n\t\tbucket[pos].size++;\r\n\t\treturn true;\r\n\t}",
"public boolean valid(List<Integer> curr){\n int size = curr.size();\n // compare last item with earlier ones\n // row: i col: curr[i]\n for(int i=0; i<size-1; i++){\n if ( curr.get(i) == curr.get(size-1) || \n i + curr.get(i) == curr.get(size-1) + (size-1) ||\n i - curr.get(i) == (size-1) - curr.get(size-1)\n )\n return false;\n }\n return true;\n }",
"public boolean insertToList(Cell newCell){\n char col = newCell.getColumn(); int row = newCell.getRow();\n if(!isFull() && !cellExists(col, row)){\n return insertTail(newCell);\n }\n return false;\n }",
"public boolean insert(int val) {\n if (val2Index.containsKey(val)) return false;\n // 新元素插入到最后\n data.add(val);\n val2Index.put(val, data.size() - 1);\n return true;\n }",
"@Override\r\n\t\tpublic boolean hasNext() {\n\t\t\treturn current!=null;\r\n\t\t}",
"public boolean hasPrevious() {\r\n \treturn index > 0; \r\n }",
"private boolean checkNext(){\n boolean ret = this.hasNext;\n if ((this.allStatesIterator.hasNext()) || (this.allSubsetsIterator.hasNext()) || (this.allTransitionsIterator.hasNext())){\n hasNext = true;\n return hasNext;\n }\n hasNext = false;\n return ret;\n }",
"private boolean checkGap() { //Checks if any gap due to previously deleted resv\n\t\tif (numOfReservation == 0)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn !(rList.get(rList.size()-1).getResvNo() == numOfReservation);\n\t}",
"public Node insert(Node cur,long key,BookObj book)\r\n\t{\n\t\tif(cur==null)\r\n\t\t{\r\n\t\t\treturn (new Node(key,book));\r\n\t\t}\r\n\t\t\r\n\t\t//BST property when inserting\r\n\t\t//checking if cur key is less than node\r\n\t\tif(key<cur.key)\r\n\t\t{\r\n\t\t\tcur.left = insert(cur.left,key,book);\r\n\t\t}\r\n\t\t//checking if cur key is greater than node\r\n\t\telse if(key>cur.key)\r\n\t\t{\r\n\t\t\tcur.right = insert(cur.right,key,book);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t//returns if there is a duplicate\r\n\t\t\treturn cur;\r\n\t\t}\r\n\t\t\r\n\t\t//increment the height\r\n\t\tcur.height = maxHeight(height(cur.left),height(cur.right)) +1;\r\n\t\t\r\n\t\t//get the balance number for the property\r\n\t\tint balance = getBalance(cur);\r\n\t\t\r\n\t\t//check the balance property\r\n\t\t//check for Left left rotation\r\n\t\tif(balance>1&&key<cur.left.key)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Imbalance occurred at inserting ISBN \"+key+\"; Fixed using a Left left rotation\");\r\n\t\t\trotateRight(cur);\r\n\t\t}\r\n\t\t//check for Right right rotation\r\n\t\tif(balance<-1&&key>cur.right.key)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Imbalance occurred at inserting ISBN \"+key+\"; Fixed using a Right right rotation\");\r\n\t\t\trotateLeft(cur);\r\n\t\t}\r\n\t\t//check for the left right rotation\r\n\t\tif(balance>1&&key>cur.left.key)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Imbalance occurred at inserting ISBN \"+key+\"; Fixed using a Left right rotation\");\r\n\t\t\t//rotate left then right\r\n\t\t\tcur.left = rotateLeft(cur.left);\r\n\t\t\treturn rotateRight(cur);\r\n\t\t}\r\n\t\t//check for the right left rotation\r\n\t\tif(balance<-1&&key<cur.right.key)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Imbalance occurred at inserting ISBN \"+key+\"; Fixed using a Right left rotation\");\r\n\t\t\t//rotate right then left\r\n\t\t\tcur.right = rotateRight(cur.right);\r\n\t\t\treturn rotateLeft(cur);\r\n\t\t}\r\n\t\t\r\n\t\treturn cur;\r\n\t}",
"public boolean hasNext(){\n if(index < size && newList.get(index) != null){\n return true;\n }\n return false;\n }",
"@Test\n public void testListIteratorHasPrevious(){\n DoubleLinkedList<Integer> list1 = new DoubleLinkedList<Integer>();\n ListIterator<Integer> list1It = list1.iterator();\n assertFalse(\"testing with no previous element\", list1It.hasPrevious());\n list1It.add(1);\n assertTrue(\"testing with a previous element\", list1It.hasPrevious());\n }"
] |
[
"0.65389466",
"0.6140183",
"0.59217244",
"0.5921622",
"0.58368194",
"0.56747526",
"0.565381",
"0.56226736",
"0.5601102",
"0.5424085",
"0.53408283",
"0.53360176",
"0.5313485",
"0.52995193",
"0.52217764",
"0.52042526",
"0.5204158",
"0.51954013",
"0.5191251",
"0.51692414",
"0.515527",
"0.51497453",
"0.5143996",
"0.5136047",
"0.51324445",
"0.51159745",
"0.5106761",
"0.5097839",
"0.50873023",
"0.5079113",
"0.5064826",
"0.5052642",
"0.50409275",
"0.5039422",
"0.50174737",
"0.5007084",
"0.5006634",
"0.5002876",
"0.49963582",
"0.49941275",
"0.49861425",
"0.4984344",
"0.49803716",
"0.49784052",
"0.49784052",
"0.4970654",
"0.49693108",
"0.496041",
"0.49581733",
"0.49562696",
"0.49435723",
"0.49423933",
"0.4931961",
"0.4922692",
"0.49203572",
"0.49158227",
"0.49114308",
"0.49073905",
"0.49053654",
"0.4904466",
"0.4902646",
"0.4902646",
"0.4902646",
"0.4902646",
"0.49018908",
"0.48996875",
"0.48964337",
"0.4892903",
"0.4892656",
"0.48857635",
"0.4880236",
"0.48680323",
"0.48591283",
"0.48537433",
"0.48513594",
"0.48421192",
"0.48345646",
"0.4831172",
"0.48248369",
"0.48208207",
"0.48207456",
"0.48153389",
"0.48104614",
"0.48104614",
"0.48104614",
"0.48058328",
"0.47965908",
"0.47949633",
"0.47912228",
"0.47893074",
"0.4788593",
"0.47881016",
"0.477586",
"0.47756177",
"0.47673628",
"0.47667927",
"0.47599286",
"0.4759483",
"0.47581035",
"0.47569236"
] |
0.66099876
|
0
|
Issues a notification to inform the user that server has sent a message.
|
private static void generateNotification(Context context, Bundle bundle) {
int icon = R.drawable.icon;
long when = System.currentTimeMillis();
String message = bundle.getString("message");
NotificationManager notificationManager = (NotificationManager) context
.getSystemService(Context.NOTIFICATION_SERVICE);
Notification notification = new Notification(icon, message, when);
String title = context.getString(R.string.app_name);
Intent notificationIntent = new Intent(context, NetasDemoActivity.class);
notificationIntent.putExtras(bundle);
// set intent so it does not start a new activity
notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP
| Intent.FLAG_ACTIVITY_NEW_TASK);
PendingIntent intent = PendingIntent.getActivity(context, 0,
notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);
notification.defaults |= Notification.DEFAULT_SOUND
| notification.DEFAULT_LIGHTS | notification.DEFAULT_VIBRATE;
// long[] vibrate = {0,100,200,300};
// notification.vibrate = vibrate;
notification.setLatestEventInfo(context, title, message, intent);
notification.flags |= Notification.FLAG_AUTO_CANCEL
| Notification.FLAG_SHOW_LIGHTS;
notification.ledOnMS = 1000; // light on in milliseconds
notification.ledOffMS = 4000; // light off in milliseconds
notificationManager.notify(0, notification);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void sendNotification() {\n }",
"private void sendNotification(String message) {\n Intent intent = new Intent(this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent,\n PendingIntent.FLAG_ONE_SHOT);\n\n Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.ic_check_circle_black_24dp)\n .setContentTitle(\"Welcome Aboard\")\n .setContentText(message)\n .setAutoCancel(true)\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(0 /* ID of notification */, notificationBuilder.build());\n }",
"@Override\n\tpublic void ActOnNotification(String message) {\n\t \tSystem.out.println(\"Sending Event\");\n\t}",
"private void sendNotification(final String msg) {\n mNotificationManager = (NotificationManager)\n GcmIntentService.this.getSystemService(Context.NOTIFICATION_SERVICE);\n PendingIntent contentIntent = PendingIntent.getActivity(GcmIntentService.this, 0,\n new Intent(GcmIntentService.this, MainActivity.class), 0);\n\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(GcmIntentService.this)\n .setSmallIcon(R.drawable.pplogo)\n .setAutoCancel(true)\n .setContentTitle(\"PawPads\")\n .setStyle(new NotificationCompat.BigTextStyle()\n .bigText(msg))\n .setContentText(msg);\n\n mBuilder.setContentIntent(contentIntent);\n mNotificationManager.notify(NOTIFICATION_ID, mBuilder.build());\n }",
"void notify(PushMessage m);",
"private void sendNotification(String msg) {\n\t\tmNotificationManager = (NotificationManager) this\n\t\t\t\t.getSystemService(Context.NOTIFICATION_SERVICE);\n\n\t\tPendingIntent contentIntent = PendingIntent.getActivity(this, 0,\n\t\t\t\tnew Intent(this, MainActivity.class), 0);\n\n\t\tNotificationCompat.Builder mBuilder = new NotificationCompat.Builder(\n\t\t\t\tthis).setContentTitle(\"GCM Notification\")\n\t\t\t\t.setStyle(new NotificationCompat.BigTextStyle().bigText(msg))\n\t\t\t\t.setContentText(msg);\n\n\t\tmBuilder.setContentIntent(contentIntent);\n\t\tmNotificationManager.notify(NOTIFICATION_ID, mBuilder.build());\n\t}",
"private void sendNotification(String msg) {\n mNotificationManager = (NotificationManager) getApplicationContext()\n .getSystemService(Context.NOTIFICATION_SERVICE);\n\n PendingIntent contentIntent = PendingIntent.getActivity(this, 0,\n new Intent(this, MainActivity.class),\n PendingIntent.FLAG_UPDATE_CURRENT);\n\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(\n this).setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(\"GCM Notification\")\n .setStyle(new NotificationCompat.BigTextStyle().bigText(msg))\n .setContentText(msg);\n\n mBuilder.setContentIntent(contentIntent);\n mNotificationManager.notify(NOTIFICATION_ID, mBuilder.build());\n\n }",
"void notify(Message m);",
"private void sendNotification(String msg) {\n\n mNotificationManager = (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE);\n\n PendingIntent contentIntent = PendingIntent.getActivity(this, 0,new Intent(this, ServiceListActivity.class), 0);\n\n NotificationCompat.Builder mBuilder =new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.ic_launcher)\n .setContentTitle(\"Ruta Plus\")\n .setStyle(new NotificationCompat.BigTextStyle()\n .bigText(msg))\n .setContentText(msg);\n\n mBuilder.setContentIntent(contentIntent);\n mNotificationManager.notify(NOTIFICATION_ID, mBuilder.build());\n }",
"public void sendMessage(String message) {\n\n setChanged();\n notifyObservers(message);\n }",
"private void sendNotification(String msg) {\n mNotificationManager = (NotificationManager)\n ctx.getSystemService(Context.NOTIFICATION_SERVICE);\n\n PendingIntent contentIntent = PendingIntent.getActivity(ctx, 0,\n new Intent(ctx, LLActivity.class), 0);\n\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(ctx)\n .setSmallIcon(R.drawable.ic_stat_gcm)\n .setContentTitle(\"GCM Notification\")\n .setStyle(new NotificationCompat.BigTextStyle()\n .bigText(msg))\n .setContentText(msg);\n\n mBuilder.setContentIntent(contentIntent);\n mNotificationManager.notify(NOTIFICATION_ID, mBuilder.build());\n }",
"private void notifyUser(Context context, String message) {\n\n Uri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n Intent intent = new Intent(context, MovieActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n\n NotificationManager manager = (NotificationManager)\n context.getSystemService(Context.NOTIFICATION_SERVICE);\n\n android.support.v4.app.NotificationCompat.Builder builder = new NotificationCompat.Builder(context)\n .setContentTitle(\"device is now \" + message + \".\")\n .setOngoing(true)\n .setVibrate(new long[]{0, 500, 500, 500, 500, 500, 500})\n .setSound(soundUri)\n .setContentIntent(pendingIntent)\n .setSmallIcon(android.R.drawable.sym_def_app_icon)\n .setAutoCancel(true);\n\n manager.notify(1001, builder.build());\n\n }",
"public void sendStatusNotification(String msg){\n this.sendNotification(2, \"Lawnmower Status\", msg, R.drawable.logomarkerr);\n }",
"private void sendNotification(PanicIncidentDTO simpleMessage) {\n// Intent intent = new Intent(this, SimpleMessagingActivity.class);\n// intent.putExtra(\"simpleMessage\",simpleMessage);\n// intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n// PendingIntent pendingIntent = PendingIntent.getActivity(this,\n// LOCATION_REQUEST_CODE, intent,\n// PendingIntent.FLAG_ONE_SHOT);\n\n\n Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.ic_favorite)\n .setContentTitle(\"Message received\")\n .setContentText(simpleMessage.getPanicType().getName())\n .setAutoCancel(true)\n .setSound(defaultSoundUri);\n// .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(0 /* ID of notification */, notificationBuilder.build());\n }",
"private void sendNotification() {\n int mNotificationId = 001;\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.ic_action_camera)\n .setContentTitle(\"Daily Selfie\")\n .setContentText(\"Time for another selfie\");\n Intent resultIntent = new Intent(this, MainActivity.class);\n PendingIntent resultPendingIntent =\n PendingIntent.getActivity(\n this,\n 0,\n resultIntent,\n PendingIntent.FLAG_UPDATE_CURRENT\n );\n mBuilder.setContentIntent(resultPendingIntent);\n // Gets an instance of the NotificationManager service\n NotificationManager mNotifyMgr = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n // Builds the notification and issues it.\n mNotifyMgr.notify(mNotificationId, mBuilder.build());\n }",
"public void notify(Player player, String message) {\n\t\tplayer.sendMessage(ChatColor.GRAY + \"[\" + ChatColor.GOLD + \"BattleKits\" + ChatColor.GRAY + \"]\" + ChatColor.YELLOW + message);\n\t}",
"public void sendMessage(String message);",
"public void sendMessage()\r\n {\r\n MessageScreen messageScreen = new MessageScreen(_lastMessageSent);\r\n pushScreen(messageScreen);\r\n }",
"public void sendMessage(String message) {}",
"public void notify(CommandSender player, String message) {\n\t\tplayer.sendMessage(ChatColor.GRAY + \"[\" + ChatColor.GOLD + \"BattleKits\" + ChatColor.GRAY + \"]\" + ChatColor.YELLOW + message);\n\t}",
"public void messageSent(Message m) {\n\t\t\r\n\t}",
"private void sendNotification(String msg) {\r\n\t\tmNotificationManager = (NotificationManager)\r\n\t\t\t\tthis.getSystemService(Context.NOTIFICATION_SERVICE);\r\n\t\tBundle chat = new Bundle();\r\n\t\tchat.putString(\"claimedBy\", uid);\r\n\t\tchat.putString(\"uid\", claimedBy);\r\n\r\n\t\tIntent intent = new Intent();\r\n\t\tintent.putExtras(chat);\r\n\t\t\r\n\t\tNotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this)\r\n\t\t.setSmallIcon(R.drawable.divvylogo)\r\n\t\t.setContentTitle(\"You've been matched\")\r\n\t\t.setAutoCancel(true)\r\n\t\t.setStyle(new NotificationCompat.BigTextStyle()\r\n\t\t.bigText(msg))\r\n\t\t.setContentText(msg);\r\n\r\n\t\tIntent resultIntent = new Intent(this, ChatAfterMatch.class);\r\n\t\tresultIntent.putExtras(chat);\r\n\t\t\r\n\t\t// The stack builder object will contain an artificial back stack for the\r\n\t\t// started Activity.\r\n\t\t// This ensures that navigating backward from the Activity leads out of\r\n\t\t// your application to the Home screen.\r\n\t\tTaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\r\n\t\t\r\n\t\t// Adds the back stack for the Intent (but not the Intent itself)\r\n\t\tstackBuilder.addParentStack(ChatAfterMatch.class);\r\n\t\t\r\n\t\t// Adds the Intent that starts the Activity to the top of the stack\r\n\t\tstackBuilder.addNextIntent(resultIntent);\r\n\t\tPendingIntent resultPendingIntent =\r\n\t\t\t\tstackBuilder.getPendingIntent(\r\n\t\t\t\t\t\t0,\r\n\t\t\t\t\t\tPendingIntent.FLAG_UPDATE_CURRENT\r\n\t\t\t\t\t\t);\r\n\t\tmBuilder.setContentIntent(resultPendingIntent);\r\n\t\tNotificationManager mNotificationManager =\r\n\t\t\t\t(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\r\n\t\tmNotificationManager.notify(NOTIFICATION_ID, mBuilder.build());\r\n\t}",
"public void onChatMessageSent(String message, String errorMessage);",
"public void send(Message msg);",
"private void sendMessage() {\n\n // Get the right Prefix\n String prefix = null;\n\n if ( !messageGroup.getPrefix().equalsIgnoreCase(\"\") ) {\n prefix = messageGroup.getPrefix();\n } else {\n prefix = Announcer.getInstance().getConfig().getString(\"Settings.Prefix\");\n }\n\n Announcer.getInstance().getCaller().sendAnnouncment( messageGroup, prefix, counter);\n\n counter();\n\n }",
"public void broadcastmsg(String msg){\r\n Server.getUsers().forEach((user) -> {\r\n user.sendmsg(msg);\r\n });\r\n }",
"public void tellServer(String message)\n\t{\n\t\ttoServer.println(message);\n\t\ttoServer.flush();\n\t}",
"void sendMessage(String msg);",
"public void notifyWithMessage(String msg)\n {\n try {\n this.writeData(msg);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"@Override\n public void sendMessage(Message m) {\n commSender.sendMessage(m);\n }",
"private void sendNotification(int channelId, String title, String msg, int status) {\n //if (!LawnmowerApp.isVisibile()) return;\n\n NotificationCompat.Builder notficiationBuilder =\n new NotificationCompat.Builder(ctx, String.valueOf(channelId))\n .setSmallIcon(status)\n .setContentTitle(title)\n .setContentText(msg)\n .setPriority(NotificationCompat.PRIORITY_DEFAULT)\n .setAutoCancel(true)\n ;\n NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(ctx);\n notificationManagerCompat.notify(channelId,notficiationBuilder.build());\n }",
"public void notifyCustomer(String message) {}",
"void messageSent();",
"public void sendHelloMessage() {\n getSocketController().send(getMessageController().createHelloMessage(\"Сервер\", getUser().getName()));\n }",
"public void SendMessage(String strMessage) {\n\t\tSystem.out.println( \"EmailService sending message... : \" + strMessage );\n\t}",
"protected void notifyUser()\n {\n }",
"void send(String message);",
"public void sendNotification(String s) {\n try {\n dOut.writeUTF(s);\n dOut.flush();\n } catch (IOException e) {\n System.out.println(\"Could not send notification\");\n e.printStackTrace();\n }\n }",
"@Override\r\n\tpublic void sendGeneralNotification() {\n\t\t\r\n\t}",
"private void sendNotification(RemoteMessage remoteMessage) {\n Map<String,String> data = remoteMessage.getData();\n String title = data.get(\"title\");\n String message = data.get(\"message\");\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(title)\n .setContentText(message)\n .setAutoCancel(true)\n .setSound(defaultSoundUri);\n\n NotificationManager notif = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);\n notif.notify(new Random().nextInt(),builder.build());\n\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}",
"public static void displayMessage(Context context, String message) {\r\n Intent intent = new Intent(AppConstants.DISPLAY_MESSAGE_ACTION);\r\n intent.putExtra(AppConstants.EXTRA_NOTIFICATION_MESSAGE, message);\r\n context.sendBroadcast(intent);\r\n }",
"int displayNotification(Message message);",
"@Override\r\n\tpublic void sendMessage(String message) {\n\t\t\r\n\t}",
"private void sendNotification(String messageBody) {\n Log.d(TAG, messageBody);\n NotificationManager mNotificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {\n NotificationChannel channel = new NotificationChannel(\"default\",\n \"oqatt\",\n NotificationManager.IMPORTANCE_DEFAULT);\n channel.setDescription(\"oqatt_updates\");\n channel.setImportance(IMPORTANCE_HIGH);\n assert mNotificationManager != null;\n mNotificationManager.createNotificationChannel(channel);\n }\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(getApplicationContext(), \"default\")\n .setSmallIcon(R.mipmap.oqatt_logo) // notification icon\n .setContentTitle(messageBody) // title for notification\n .setSound(defaultSoundUri) // sound notification\n .setAutoCancel(true); // clear notification after click\n\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\n PendingIntent pi = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n mBuilder.setContentIntent(pi);\n assert mNotificationManager != null;\n mNotificationManager.notify(0, mBuilder.build());\n }",
"public void notify(String userId);",
"protected void sendMessage(String msg) {\n message = msg; \n newMessage = true;\n }",
"public abstract void notify(JSONObject message);",
"public void sendNotification(String notifTitle, String notifText) {\n\n }",
"protected void sendNotification(Bundle messageInfo) {\n mNotificationManager = (NotificationManager)\n this.getSystemService(Context.NOTIFICATION_SERVICE);\n\n Class targetActivity = TCSAppInstance.getInstance().getTargetNotificationClass();\n Intent notificationIntent;\n\n if (targetActivity != null)\n notificationIntent = new Intent(this, targetActivity);\n else\n notificationIntent = getPackageManager().getLaunchIntentForPackage(getApplication().getPackageName());\n\n\n // set intent so it does not start a new activity\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\n PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);\n\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(getApplicationContext())\n .setContentTitle(TCSAppInstance.getInstance().getApplication().getString(R.string.app_name))\n .setContentText(messageInfo.getString(\"message\"))\n .setWhen(System.currentTimeMillis())\n .setStyle(new NotificationCompat.BigTextStyle().bigText(messageInfo.getString(\"message\")))\n .setAutoCancel(true);\n\n if (icon > 0) {\n mBuilder.setSmallIcon(icon);\n }\n\n if (messageInfo.getString(\"alertSound\") != null && messageInfo.getString(\"alertSound\").equals(\"true\")) {\n mBuilder.setDefaults(Notification.DEFAULT_SOUND);\n }\n\n mBuilder.setContentIntent(contentIntent);\n\n int notificationId = TCSUtilities.generateRandomNumber();\n mNotificationManager.notify(notificationId, mBuilder.build());\n\n broadcastMessageIntent.putExtra(MESSAGE_STRING, messageInfo.getString(\"message\"));\n sendBroadcast(broadcastMessageIntent);\n }",
"public void showNotification(String msg) {\n Notification.show(msg);\n }",
"public void sendMessage(String message) {\n\t\tSystem.out.println(\"DEBUG : response sent by server = \" + message);\n\t\tprinter.println(message);\n\t}",
"public void sendMessage(String msg) {\n\t\tfor (MessagingServer server : servers) {\n\t\t\tserver.messages.add(msg + \" (received from \" + this.serverId + \")\");\n\t\t}\n\t}",
"private void sendNotificationAPI26(RemoteMessage remoteMessage) {\n Map<String,String> data = remoteMessage.getData();\n String title = data.get(\"title\");\n String message = data.get(\"message\");\n\n //notification channel\n NotificationHelper helper;\n Notification.Builder builder;\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n helper = new NotificationHelper(this);\n builder = helper.getHawkerNotification(title,message,defaultSoundUri);\n\n helper.getManager().notify(new Random().nextInt(),builder.build());\n }",
"public void sendMessage(Message msg) {\n network.sendAsync(msg);\n }",
"public void message(LocoNetMessage m) {\n notify(m);\n }",
"private void showStatusBarNotification(String title, String sendMessage) {\n }",
"void messageSent(IMSession session, String messageId);",
"public void send(String msg) {\n CompletableFuture.runAsync(() -> serverCon.send(msg));\n }",
"public void sendMsg(String address, String title, String content);",
"public void sendMessage(String message) {\n\t\tif (!connectionActive()) {\n\t\t\tthrow new IllegalOperationException(\"Cannot send a message if you are not connected to a server!\\n\");\n\t\t}\n\t\tMessage bctMessage = Message.makeBroadcastMessage(userName, message);\n\t\tsocketConnection.print(bctMessage);\n\t}",
"public void sendMessage ( String message ) {\n\t\texecute ( handle -> handle.sendMessage ( message ) );\n\t}",
"private void send() {\n Toast.makeText(this, getString(R.string.message_sent, mBody, Contact.byId(mContactId).getName()),\n Toast.LENGTH_LONG).show();\n finish(); // back to DirectShareActivity\n }",
"@Override\r\n\tpublic void sendNotification(String notificationType) {\n\t\t\r\n\t}",
"public void sendMessage(String msg) {\n\t\tplayer.sendMessage(msg);\n\t}",
"private void sendNotification(String title, String messageBody) {\n Intent intent = new Intent(this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent,\n PendingIntent.FLAG_ONE_SHOT);\n\n Log.d(TAG, \"sendNotification: \" + messageBody + title);\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(android.R.mipmap.sym_def_app_icon)\n .setContentTitle(title)\n .setContentText(messageBody)\n .setAutoCancel(true)\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent).addAction(new NotificationCompat.Action(\n android.R.drawable.sym_call_missed,\n \"Cancel\",\n PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT)))\n .addAction(new NotificationCompat.Action(\n android.R.drawable.sym_call_outgoing,\n \"OK\",\n PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT)));\n ;\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(0, notificationBuilder.build());\n\n Log.d(TAG, \"sendNotification: \" + messageBody + title);\n }",
"@Override\r\n\tpublic void sendNotifications() {\n\r\n\t}",
"public void send(String msg) {\n msgs.push(msg);\n lastMessageSentAt = game.ticks;\n }",
"private void note(Notification n){\r\n\t\tusers.get(n.userID).addNotification(n);\r\n\t\tif (loggedInUsers.contains(n.userID))\r\n\t\t\tcomms.sendMessage(n);\r\n\t}",
"private void setStatusMessage(int stringId) {\n mNotificationBuilder.setContentText(getString(stringId));\n mNotificationManager.notify(NOTIFICATION_ID, mNotificationBuilder.build());\n\n // Also display the status message in the activity.\n Intent intent = new Intent(STATUS_INTENT);\n intent.putExtra(getString(R.string.status), stringId);\n LocalBroadcastManager.getInstance(this).sendBroadcast(intent);\n }",
"private void sendNotification(Map<String, String> serverData) {\n Intent intent = new Intent(serverData.get(\"click_action\"));\n String title = serverData.get(\"title\");\n String body = serverData.get(\"body\");\n intent.putExtra(\"title\",title);\n intent.putExtra(\"body\",body);\n intent.putExtra(\"order\" , serverData.get(\"order\"));\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this,0 /* request code */, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n long[] pattern = {500,500,500,500,500};\n\n Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n NotificationCompat.Builder notificationBuilder = (NotificationCompat.Builder) new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.ok)\n .setContentTitle(serverData.get(\"title\"))\n .setContentText(serverData.get(\"body\"))\n .setAutoCancel(true)\n .setVibrate(pattern)\n .setLights(Color.BLUE,1,1)\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(0 , notificationBuilder.build());\n }",
"@Override\n\tpublic void sendMessage() {\n\t\t\n\t}",
"void sendMessage() {\n\n\t}",
"@Override\n public void send() {\n System.out.println(\"send message by SMS\");\n }",
"private void showNotification() {\n\n }",
"public void sendInfo(String message) {\n sendMessage(Prefix.SERVER, message);\n }",
"private void sendMsg()\n {\n try {\n spauldingApp.println(\"AckRequest.sendMsg() - sending request to nodeID= \" + node.getNodeID() + \" ...\");\n this.nbrTransmits++;\n //spauldingApp.eventLogger.writeMsgSentPing(fetchReqMsg);\n spauldingApp.getMoteIF().send(node.getNodeID(), requestMsg);\n } catch (Exception e) {\n spauldingApp.println(\"ERROR: Can't send message: \" + e);\n e.printStackTrace();\n }\n }",
"public void messageArrived(StatusMessage statusMessage);",
"public void postMessage(String msg){\n System.out.println(\"Message Posted to Topic:\"+msg);\n this.message=msg;\n this.changed=true;\n notifyObservers();\n }",
"public void sendMessage(String s){\r\n\t\tsynchronized(msgToSend){ // synchronized to maintain thread-safety\r\n\t\t\tmsgToSend.append(s + \"\\n\");\r\n\t\t}\r\n\t}",
"private void sendMessage() {\n\t\tString text = myMessagePane.getText();\n\t\tMessage msg = new Message(text, myData.userName, myData.color);\n\n\t\tcommunicationsHandler.send(msg);\n\n\t\t// De-escape xml-specific characters\n\t\tXmlParser xmlParser = new XmlParser(myData);\n\t\tString outText = xmlParser.deEscapeXMLChars(msg.text);\n\t\tmsg.text = outText;\n\n\t\tmyMessagePane.setText(\"\");\n\t\tupdateMessageArea(msg);\n\n\t}",
"@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n super.onMessageReceived(remoteMessage);\n String message = remoteMessage.getData().get(\"message\");\n String titleMessage = remoteMessage.getData().get(\"title\");\n\n //Calling method to generate notification\n sendNotification(message, titleMessage);\n }",
"public String sendMessage(){\n\t\tMessageHandler handler = new MessageHandler();\n\t\tSystem.out.println(this.senderName +\" \"+this.recieverName+ \" \" + this.subject +\" \"+this.message);\n\t\t\n\t\tif((handler.addNewMessage(this.senderName, this.recieverName, this.subject,this.message))){\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tcontext.addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO, \"Message:Sent\",\"Sent\"));\n\t\t\tcontext.getExternalContext().getFlash().setKeepMessages(true);\n\t\t\treturn mainXhtml;\n\t\t}else{\n\t\t\t FacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Message:Failed to send\",\"Failed to Send\"));\n\t\t\tSystem.out.println(\"Message not sent\");\n\t\t\treturn null;\n\t\t}\n\t\n\t}",
"private void showNotification() {\n }",
"public int notify( String messageStr ) {\n\n logger.entry( messageStr );\n int bytesWritten = 0;\n try {\n logger.debug( \"Sending message \" + messageStr + \" to \" + id );\n bytesWritten = clientSocket.write( Charset.forName( CHARSET ).encode( messageStr ) );\n logger.debug( \"Sent \" + bytesWritten + \" bytes to client!\" );\n } catch ( Exception e ) {\n // Client is no longer connected, remove it from the userregistry\n logger.error( \"Error notifying client.\", e );\n UserRegistryService.INSTANCE.removeClient( this );\n }\n logger.exit( bytesWritten );\n return bytesWritten;\n }",
"public void sendNotice(String to, String msg)\n\t{\n\t\tsendRaw(\"NOTICE \" + to + \" :\" + msg);\n\t}",
"private void setNotification() {\n mBuilder.setProgress(updateMax, ++updateProgress, false)\n .setContentTitle(getResources().getString(R.string.notification_message));\n // Issues the notification\n nm.notify(0, mBuilder.build());\n }",
"public void messageSent(int messageId) {\n\r\n\t}",
"public void sendMessage(String message) {\n\t\ttry {\n\t\t\tout.writeUTF(message);\n\t\t\tserver.CommunicationLog.info(\"Sent:\" + message + \" to \" + clientSocket.getInetAddress().toString());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void sendNotification() {\n ParsePush parsePush = new ParsePush();\n String id = ParseInstallation.getCurrentInstallation().getInstallationId();\n Log.d(\"Debug_id\", id);\n Log.d(\"Debug_UserName\", event.getHost().getUsername()); // host = event.getHost().getUsername();\n ParseQuery pQuery = ParseInstallation.getQuery(); // <-- Installation query\n Log.d(\"Debug_pQuery\", pQuery.toString());\n pQuery.whereEqualTo(\"username\", event.getHost().getUsername());// <-- you'll probably want to target someone that's not the current user, so modify accordingly\n parsePush.sendMessageInBackground(\"Hey your Event: \" + event.getTitle() + \" has a subscriber\", pQuery);\n\n }",
"private void sendNotification(RemoteMessage remoteMessage) {\n\n Intent intent = selectIntent(remoteMessage);\n\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(\n this\n , MyFirebaseMessagingServiceRequestCode /* Request code */\n , intent,\n PendingIntent.FLAG_ONE_SHOT\n );\n\n String channelId = getString(R.string.default_notification_channel_id);\n NotificationCompat.Builder notificationBuilder =\n new NotificationCompat.Builder(this, channelId)\n .setSmallIcon(R.drawable.ic_person_24dp) //// TODO: 07/11/2017 app icon\n .setContentTitle(remoteMessage.getNotification().getTitle())\n .setContentText(remoteMessage.getNotification().getBody())\n .setAutoCancel(true)\n .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(getNotificationID()/* ID of notification */, notificationBuilder.build());\n }",
"@JavascriptInterface\n\tpublic void sendNotification(int notifications) {\n\t\tLog.d(TAG_NAME, \"NotificationWebInterface::sendNotification\");\n\t\tif (notifications > 0)\n\t\t\tToast.makeText(context, \"You have \" + notifications + \" new message(s)\", Toast.LENGTH_SHORT).show();\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}",
"@Override\n\tpublic void sendMsg(MsgVO mvo) {\n\t\tsession.insert(namespace + \".sendMsg\", mvo);\n\t}",
"public void sendAlert(String notificationInfo, ILabMember personInCharge) {\n }",
"public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}",
"@Override\n public void handleMessage(Message m)\n {\n String content = m.getContent();\n if (content.isEmpty())\n {\n content = \"N/A\";\n }\n\n JOptionPane.showMessageDialog(null, \"From: \" + m.getFrom() + \"\\n\"\n + \"To: \" + m.getTo() + \"\\n\"\n + \"Content: \" + content + \"\\n\"\n + \"Type: \" + m.getType().toString(),\n \"Message Notification\",\n JOptionPane.INFORMATION_MESSAGE);\n }",
"public void publishStatusMessage(String message,\n Object menuItem,\n boolean saveIfNewMessage)\n {\n new PublishStatusMessageThread(message, menuItem, saveIfNewMessage)\n .start();\n }",
"public void notifyListener() {\n\t\tbuffer.putInt(1);\n\t\tbuffer.flip();\n\t\tsocketLock.lock();\n\t\ttry {\n\t\t\tnotifyChannel.write(buffer);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[Turing Server] Non è stato possibile notificare il client.\");\n\t\t}\n\t\tsocketLock.unlock();\n\t\tbuffer.clear();\n\t}",
"private void sendNotification(String messageBody, String titleMessage) {\n Intent intent = new Intent(this, HomeMenu.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_ONE_SHOT);\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this);\n\n if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n notificationBuilder.setSmallIcon(R.mipmap.ic_launcher);\n }\n\n notificationBuilder.setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(titleMessage)\n .setContentText(messageBody)\n .setAutoCancel(true)\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent)\n .setStyle(new NotificationCompat.BigTextStyle().bigText(messageBody)); //Making the text in big Picture Style\n\n\n NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(0, notificationBuilder.build());\n }",
"@Override\n\tpublic void send(String msg) {\n\t}"
] |
[
"0.7526096",
"0.6936354",
"0.68616366",
"0.6797363",
"0.675498",
"0.6741467",
"0.67114663",
"0.66734976",
"0.664536",
"0.6624512",
"0.6590217",
"0.65822923",
"0.6574617",
"0.6572597",
"0.6560487",
"0.65524095",
"0.6550985",
"0.6543876",
"0.65345883",
"0.65255713",
"0.6520586",
"0.6494385",
"0.64664394",
"0.64626193",
"0.64539456",
"0.6448672",
"0.6442668",
"0.6435129",
"0.64332163",
"0.64157164",
"0.6402858",
"0.64007497",
"0.6388153",
"0.63647336",
"0.6364455",
"0.6355646",
"0.6345931",
"0.63190985",
"0.63177514",
"0.6309728",
"0.6300471",
"0.6283699",
"0.62749577",
"0.62619686",
"0.62563276",
"0.62537587",
"0.62394464",
"0.62394226",
"0.62362415",
"0.62362176",
"0.62324005",
"0.6230308",
"0.62271535",
"0.62210435",
"0.6210696",
"0.6208317",
"0.6205768",
"0.6187118",
"0.61819804",
"0.6174954",
"0.6172244",
"0.6140225",
"0.6131195",
"0.6123142",
"0.6122171",
"0.61168283",
"0.6107349",
"0.6090593",
"0.6086568",
"0.60803473",
"0.6076728",
"0.607541",
"0.6075335",
"0.6069652",
"0.6055559",
"0.60550106",
"0.60524994",
"0.6050159",
"0.60496116",
"0.6042158",
"0.60352445",
"0.60332",
"0.602635",
"0.6025788",
"0.602409",
"0.6021209",
"0.60189164",
"0.60144466",
"0.60062826",
"0.6006091",
"0.59919155",
"0.5988439",
"0.59874266",
"0.5984064",
"0.5982108",
"0.59728867",
"0.59722316",
"0.5968891",
"0.59688133",
"0.5965755",
"0.59564203"
] |
0.0
|
-1
|
To make it more fast We don't need to calculate factorials in the runtime
|
private void initializeFactorials() {
//Lets fill up to 33!
factorials = new double[33];
factorials[0] = 1.0;
factorials[1] = 1.0;
factorials[2] = 2.0;
factorials[3] = 6.0;
factorials[4] = 24.0;
factorials[5] = 120.0;
factorials[6] = 720.0;
factorials[7] = 5040.0;
factorials[8] = 40320.0;
factorials[9] = 362880.0;
factorials[10] = 3628800.0;
factorials[11] = 39916800.0;
factorials[12] = 479001600.0;
factorials[13] = 6227020800.0;
factorials[14] = 87178291200.0;
factorials[15] = 1307674368000.0;
factorials[16] = 20922789888000.0;
factorials[17] = 355687428096000.0;
factorials[18] = 6402373705728000.0;
factorials[19] = 121645100408832000.0;
factorials[20] = 2432902008176640000.0;
factorials[21] = 51090942171709440000.0;
factorials[22] = 1124000727777607680000.0;
factorials[23] = 25852016738884976640000.0;
factorials[24] = 620448401733239439360000.0;
factorials[25] = 15511210043330985984000000.0;
factorials[26] = 403291461126605635584000000.0;
factorials[27] = 10888869450418352160768000000.0;
factorials[28] = 304888344611713860501504000000.0;
factorials[29] = 8841761993739701954543616000000.0;
factorials[30] = 265252859812191058636308480000000.0;
factorials[31] = 8222838654177922817725562880000000.0;
factorials[32] = 263130836933693530167218012160000000.0;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static int factorial(int n) {\n if (n == 1 || n == 0)\n return 1;\n else\n return n * factorial(n - 1);\n }",
"private static BigInteger getFactorial(int n) {\n BigInteger fact = BigInteger.ONE;\n for (int i = n; i > 1; i--) {\n fact = fact.multiply(new BigInteger(Integer.toString(i)));\n }\n return fact;\n }",
"static long factorialLoop(int n) {\r\n if (n == 0 || n == 1) {\r\n return 1;\r\n }\r\n int accum = 1;\r\n for(int i=n; i>0; i--) {\r\n accum *= i;\r\n }\r\n return accum;\r\n }",
"int factorial(int n){\n return (n==1||n==0)?1: n*factorial(n-1);\n }",
"private static int factorial(int n) {\n if (n <= 0) {\n return 1;\n }\n\n return n * factorial(n - 1);\n }",
"private double factorial(int n) {\n if (n < 0 || n > 32) {\n return -1;\n }\n return factorials[n];\n }",
"public long factorial(int num){\r\n long f=1;\r\n for(int i=1;i<=num;i++)\r\n f=f*i;\r\n \r\n if(num>=1) return f;\r\n else if(num==0)return 1;\r\n \r\n return 1;\r\n }",
"public static long factorial(int n){\n long fact=1;\n for(int i=1;i<=n;i++){\n fact=(fact*i);\n }\n return fact;\n }",
"public static double factorial(long n){\n\tdouble fac = 1;\n\tif(n <= 0) return fac;\n\tfor (int i=1; i<=n; i++) fac *= i;\n\treturn fac;\n }",
"private long factorial(int i) {\n\t\t/*\n\t\t * if the number is greater than 1, then we continue\n\t\t * else we return our results\n\t\t */\n\t\tif(i > 1)\n\t\t\treturn factorial(i -1) * i;\n\t\treturn i;\n\t}",
"public static BigInteger calcuateFactorial(int x ){\n BigInteger res=new BigInteger(\"1\");\n for (int i=1;i<=x;i++){\n res=res.multiply(BigInteger.valueOf(i));\n }\n return res;\n\n }",
"private static int iterrativeFactorial(int value) {\n int result = 1;\n for (int i = value; i > 0; i--) {\n result = result * i;\n }\n return result;\n }",
"public static BigInteger factorial(BigInteger num){\n if(num.equals(BigInteger.ZERO)){\n return BigInteger.ONE;\n }else{\n BigInteger nMin = factorial(num.subtract(BigInteger.ONE));\n return num.multiply(nMin);\n }\n }",
"public long getFactorial() \r\n\t// method body, part of method declaration after the method header\r\n\t{ \r\n\t\treturn factorial;\r\n\t}",
"public static int factorial(int n) {\n int res = 0;\n if (n == 0) res = 1;\n if (n > 0) res = n*factorial(n-1);\n return res;\n }",
"public int factorial(int n) {\n\t\tif(n<0 || n>Integer.MAX_VALUE)\n\t\t\treturn (int) Double.NaN;\n\t\t\n\t\tint fact=1; \n\t\tfor(int i=1;i<=n;i++){ \n\t\t fact=fact*i; \n\t\t} \n\t\treturn fact;\n\t}",
"private static Long calculFactorial(Long number) {\n\t\tif (number > 1) {\n\t\t\treturn number * calculFactorial(number - 1);\n\t\t} else {\n\t\t\treturn 1L;\n\t\t}\n\t}",
"public int factorial(int num) \n {\n number = num;\n f=1;\n for(i=1; i<=number; i++)\n {\n f=f*i;\n }\n return f;\n }",
"public long factorial(int n)\n\t{\n\t\tint product = 1;\n\n\t\tfor (int i = n; i >= 1; i--)\n\t\t{\n\t\t\tproduct *= i;\n\t\t}\n\n\t\treturn product;\n\t}",
"public static long factorial(int num){\n\n if(num < 0){\n throw new UnsupportedOperationException(Util.NEGATIVE_MESSAGE);\n }\n long result = 1;\n\n if(num == 0)\n return result;\n\n else{\n while(num > 0){\n result = result * num ;\n num --;\n }\n }\n\n return result;\n }",
"public static long factorial(long number){\n if (number == 0){\n return 1;\n } else {\n// return result;\n return number * factorial(number - 1);\n }\n }",
"public static long factorial(long n) {\n if (n==1)\n return n;\n else\n return (n*factorial(n-1));\n }",
"public Integer factorial(Integer number){\n int fact = 1;\n for (int i = number; i > 0; i--){\n fact *=i;\n }\n return fact;\n }",
"public static int factorialiterativa(int n){\n if(n>0){\r\n factorialrecursiva(n-1);//LLAMO A LA RECURSIVA\r\n }else {\r\n return 1;\r\n }\r\nreturn factorialrecursiva(n-1);\r\n }",
"public static long computeFactorial(int n) {\n if(n<0 || n > 15) throw new IllegalArgumentException(\"Invalid input. N must be >= 0 \");\n if(n==0 || n==1)\n return 1;\n //ddieu kien dung cua de quy \n //song sot den lenh cho nayf thi n chac chan roi vao 2.......15\n return n*computeFactorial(n-1); // n*(n-1)\n \n }",
"private double factorial(double x) {\r\n double fact=1;\r\n for (double i = x; i > 0; i=i-1) {\r\n fact = fact*i;\r\n }\r\n if(((int)x)!=x) {\r\n fact=fact*SQRTPI;\r\n }\r\n return fact;\r\n }",
"public static int factorial(int n){\n if(n <= 1){\n return 1;\n }\n else{\n return n*factorial(n-1);\n }\n }",
"public static String factorial(int n) {\n if(n<0)\n {\n return \"\"+0;\n }\n //int result = (n == 0) ? 1 : (n < 0) ? 0 : n * Integer.parseInt(factorial(n - 1));\n BigDecimal a = BigDecimal.ONE;\n BigDecimal b = BigDecimal.valueOf(n);\n\n while (b.compareTo(BigDecimal.ONE) == 1)\n {\n a = a.multiply(b);\n b = b.subtract(BigDecimal.ONE);\n }\n return \"\"+a;\n }",
"public static int factorial(int n) {\n\t\tif(n == 0 || n == 1) \n\t\t\treturn 1;\n\t\t\n\t\treturn n * factorial(n - 1);\n\t}",
"public Integer factorial(Integer number){\n int result = 1;\n for (int i =1;i<=number;i++)\n {\n result *= i;\n }\n return result;\n }",
"public void run() {\n BigInteger answer = BigInteger.valueOf(0);\n String stringInt;\n List<Integer> list = new ArrayList<Integer>();\n int sum = 0;\n\n answer = MathFunctions.numberFactorial(100);\n\n stringInt = answer.toString();\n\n\n\n list = MathFunctions.addStringToArray(stringInt);\n\n for (int i = 0; i < list.size(); i++)\n sum += list.get(i);\n\n this.answer = sum;\n }",
"public double findFactorial(double num) \r\n\t{ \r\n\t if (num == 0) \r\n\t return 1; \r\n\t return num * findFactorial(num - 1); \r\n\t}",
"static void factorial(){\n\t}",
"public static double factorial(int fact) {\r\n\t\t\t\r\n\t\t\tdouble aux=1;\r\n\t\t\t\r\n\t\t\tfor(int i=2; i<=fact;i++) {\r\n\t\t\t\t\r\n\t\t\t\taux*=i;\r\n\t\t\t}\r\n\t\t\treturn aux;\r\n\t\t}",
"static int fact(int n)\n\n {\n\n int res = 1;\n\n for (int i = 2; i <= n; i++)\n\n res = res * i;\n\n return res;\n\n }",
"public static void extraLongFactorials(int n) {\r\n BigInteger fact = BigInteger.valueOf(1);\r\n for (int i = 1; i <= n; i++) {\r\n fact = fact.multiply(BigInteger.valueOf(i));\r\n }\r\n System.out.println(fact);\r\n }",
"static long factorialRecurse(int n) {\r\n if (n == 0 || n == 1) {\r\n return 1;\r\n }\r\n return factorialRecurse(n - 1) * n;\r\n }",
"public static double factorial(double n) {\r\n if (n <= 1)\r\n return 1;\r\n else\r\n return n * factorial(n - 1);\r\n }",
"public static BigInteger factorial(BigInteger num) {\n\t\tif(num.equals(new BigInteger(\"1\"))) {\n\t\t\treturn new BigInteger(\"1\");\n\t\t}\n\t\telse {\n\t\t\treturn num.multiply(factorial(\n\t\t\t\t\tnum.subtract(new BigInteger(\"1\"))));\n\t\t}\n\t}",
"public static long factorial(int num)\n {\n if (num >= 1) {\n System.out.println(\"before num = \" + num);\n return factorial(num - 1) * num;\n\n }\n else\n return 1;\n }",
"@Test\r\n\tpublic void test01_fact() {\r\n\t\tRecursiveMethods rm = new RecursiveMethods();\r\n\t\tassertEquals(1, rm.factorial(0));\r\n\t\tassertEquals(1, rm.factorial(1));\r\n\t\tassertEquals(2, rm.factorial(2));\r\n\t\tassertEquals(6, rm.factorial(3));\r\n\t\tassertEquals(24, rm.factorial(4));\r\n\t\tassertEquals(120, rm.factorial(5));\r\n\t}",
"static BigInteger fact(int n)\n {\n BigInteger res = BigInteger.ONE;\n for (int i = 2; i <= n; i++)\n res = res.multiply(BigInteger.valueOf(i));\n return res;\n }",
"public static BigInteger factorial(int value) {\n BigInteger res = BigInteger.ONE;\n for(int i = 2; i <= value; i++) {\n res = res.multiply(BigInteger.valueOf(i));\n }\n return res;\n }",
"private static int factorial(int num) {\n /**\n * validation\n */\n if (num < 0) {\n throw new IllegalArgumentException(\"num is invalid\");\n }\n\n /**\n * base case\n */\n if (num == 0) {\n return 1;\n }\n\n /**\n * recursive case\n */\n\n return num * factorial(num - 1);\n }",
"public static Inatnum factorial(int n) throws Exception{\n Inatnum res = new zeronatnum().succ(); // we need to initialize res which is set as a nonzero natural number\n Inatnum dis = new zeronatnum(); for(int i=n;i>=1;i--) {dis=dis.succ();} // dis is initialized as a new non zero natural number and \n Inatnum res1 = res; Inatnum dis1 = dis; //new versions of res and dis are initiated\n while(dis1.getVal()>0) { \n res1 = res1.multiply(dis1); dis1=dis1.pred();\n }Inatnum newone = new zeronatnum(); \n while(newone.getVal()!= res1.getVal()) {\n newone = newone.succ(); // initiated newone which is the successor of newone\n }return newone; // returns newone once the loop ends\n }",
"public static double factorial(double n) {\n if (n > 1) {\n return n * factorial(n - 1);\n } else {\n return 1;\n }\n }",
"public static int factorial(int n) \n\t{\n\t\t\n\t\tif(n<=1) \n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\treturn n*factorial(n-1);\n\t}",
"private int factorialUsingStreams(int n) {\r\n return IntStream.rangeClosed(1, n).reduce(1, (int x, int y) -> x * y);\r\n }",
"public static int factorial(int i){\r\n\r\n\t\tif (i == 1){\r\n\t\t\treturn 1;\r\n\t\t}\t\r\n\r\n\t\tif (i >= 1){\r\n\t\t\treturn i*factorial(i-1);\r\n\t\t}\r\n\r\n\t\treturn 0;\r\n\t}",
"public static long factorialUsingRecursion (int num){\n\n if(num < 0){\n throw new UnsupportedOperationException(Util.NEGATIVE_MESSAGE);\n }\n\n if(num == 0)\n return 1;\n\n return num*factorialUsingRecursion(num-1);\n\n }",
"public static int factorial(int n) {\n //Base case\n /* Strictly, checking if n < 1 is enough, however\n ** checking for 1 as well saves a recursion.\n */\n if(n <= 1)\n return 1;\n return n * factorial(n - 1);\n }",
"private static int fact(int n) {\n\t\tint prod = 1;\n\t\tfor (int i = 1; i <= n; prod *= i++)\n\t\t\t;\n\t\treturn prod;\n\t}",
"public static int factorial(int p){\n\t\t// in this application p cannot be negative, so no logic for negative factorials\n\t\t// is included. if p=0 or 1 then 1 is returned.\n\t\t// if p>1 then p! is returned\n\t\t// also, in this application p is small (p will generally be 5, \n\t\t// but could range from 2 to 7)\n\t\t// so no logic for large p or exception handling for memory overflow is included\n\t\tint returnValue = p;\n\t\tif(p > 1) {\n\t\t\tfor(int m = 1; m < p; m++){\n\t\t\t\treturnValue = returnValue*(p-m);\n\t\t\t}\n\t\t} else if(p==0) {\n\t\t\treturnValue = 1;\n\t\t}\n\t\treturn(returnValue);\n\t}",
"public void factorialNumber(int fact){\n int i = 1;\n long factorial = 1;\n while(i <= fact)\n {\n factorial *= i;\n i++;\n System.out.print(factorial+\" \");\n }\n System.out.println();\n System.out.printf(\"Factorial of %d = %d\", fact, factorial);\n }",
"@Test\n public void testFactorialValid()\n {\n driver.findElement(By.linkText(\"Factorial\")).click();\n driver.findElement(By.name(\"value\")).sendKeys(\"7\");\n WebElement submit = driver.findElement(By.cssSelector(\"input\"));\n submit.sendKeys(Keys.RETURN);\n WebElement e = driver.findElement(By.className(\"jumbotron\"));\n String s1 = e.getText();\n assertTrue(s1.contains(\"5040\"));\n //NKD: Would prefer for this to be calculated by some function, rather than a magic number\n //However, java.lang.Math doesn't have fibonacci or factorial functions AFAIK\n }",
"public static BigInteger factorialBig(BigInteger n) throws NumberOutOfLimitsException{\n \tif(n.compareTo(BigInteger.ZERO)<0){\n \t\tthrow new NumberOutOfLimitsException();\n \t}\n \tif (n.equals(BigInteger.ZERO)){\n \treturn BigInteger.ONE;\n }else{\n \treturn n.multiply(factorialBig(n.subtract(BigInteger.ONE)));\n }\n }",
"static int matterOfFactorial(int fa) {\n int outcome;\n if(fa == 1) {\n return 1;\n }\n else {\n outcome = matterOfFactorial(fa - 1) * fa;\n return outcome;\n }\n }",
"protected abstract void calculateNextFactor();",
"static int factorial(int n, int c, int d) \n { \n System.out.println(\"Parameter added: \" + c + d);\n int res = 1, i; \n for (i=2; i<=n; i++) \n res *= i; \n return res; \n }",
"public double factorial(double value) {\n if (value - (int) value == 0.0) {\n int result = 1;\n for (int i = 0; i < value; i++) {\n result *= (i+1);\n }\n return result;\n } else {\n return Double.NaN;\n }\n }",
"public static int factorialFor(int iVal){\n int iTemp = 0;\n for (int i = iVal; i > 0; i--){\n iTemp = iTemp+1;\n }\n return iTemp;\n }",
"public static long fact(int n) {\n if (n <= 0) return 1;\n long f = 1;\n for (int i = 1; i <= n; i++) {\n f *= i;\n }\n return f;\n }",
"public static long factorial(int n) throws NumberOutOfLimitsException{\n \tif(n<0){\n \t\tthrow new NumberOutOfLimitsException();\n \t}\n if(n==0){\n return 1;\n }else{\n return n*factorial(n-1);\n }\n }",
"int fact(int n) {\n if (n <= 1)\n return 1;\n else\n return n * fact(n-1);\n}",
"static boolean isFactorialPrime(long n)\n {\n \n // If n is not prime then return false\n if (!isPrime(n))\n return false;\n \n long fact = 1;\n int i = 1;\n while (fact <= n + 1) {\n \n // Calculate factorial\n fact = fact * i;\n \n // If n is a factorial prime\n if (n + 1 == fact || n - 1 == fact)\n return true;\n \n i++;\n }\n \n // n is not a factorial prime\n return false;\n }",
"@Pure\n\tpublic static BigInteger factorialPrecise(long n) throws IllegalArgumentException\n\t{\n\t\tif (n < 0) throw new IllegalArgumentException(\"n must be positive.\");\n\t\tif (n == 0 || n == 1) return BigInteger.ONE;\n\t\tBigInteger ret = BigInteger.valueOf(n);\n\n\t\twhile (n-- > 1)\n\t\t{\n\t\t\tret = ret.multiply(BigInteger.valueOf(n));\n\t\t}\n\n\t\tassert n == 0 : n;\n\n\t\treturn ret;\n\t}",
"@Test\n public void testFactorialMin()\n {\n driver.findElement(By.linkText(\"Factorial\")).click();\n driver.findElement(By.name(\"value\")).sendKeys(\"1\");\n WebElement submit = driver.findElement(By.cssSelector(\"input\"));\n submit.sendKeys(Keys.RETURN);\n WebElement e = driver.findElement(By.className(\"jumbotron\"));\n String s1 = e.getText();\n assertTrue(s1.contains(\"1\"));\n //NKD: Would prefer for this to be calculated by some function, rather than a magic number\n //However, java.lang.Math doesn't have fibonacci or factorial functions AFAIK\n }",
"static void pregenFact() \n\t{ \n\t\tfact[0] = fact[1] = 1; \n\t\tfor (int i = 1; i <= 1000000; ++i) \n\t\t{ \n\t\t\tfact[i] = (int) ((long) fact[i - 1] * i % mod); \n\t\t} \n\t}",
"public static void main(String[] args) {\n\r\n\r\n Scanner sc = new Scanner(System.in);\r\n System.out.println(\"Enter a number to find its factorial\");\r\n int n = sc.nextInt();\r\n\r\n for(int i = 1 ; i<=n; i++)\r\n {\r\n if(n % i ==0) {\r\n System.out.println(i + \" is factorial\");\r\n }\r\n }\r\n\r\n }",
"private static double fact(int n) {\n\t\tdouble sum = 1;\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tsum *= i;\n\t\t}\n\t\treturn sum;\n\t}",
"@Test\n /**\n * we can write a comment indicating a test's function or make its name descriptive\n */\n public void factorialOf0ShouldReturn1() {\n // longs can store more bits (64) than int (32)\n long expectedValue = 1;\n long obtainedValue = factorial.compute(0);\n\n assertEquals(expectedValue, obtainedValue);\n\n }",
"public void FactorialNumber() \r\n\t{\r\n\t\tint i,factNum=1,number;\r\n\t\tSystem.out.println(\"Enter a number\"); \r\n\t\tnumber=sc.nextInt(); //Read the number to calculate factorial\r\n\t\t\r\n\t\tfor(i=1;i<=number;i++)\r\n\t\t{\r\n\t\t\tfactNum = factNum*i;\r\n\t\t}\r\n\t\tSystem.out.println(+factNum);\r\n\t\t\r\n\t}",
"public static BigInteger fact(int n) {\n\t\t\t if (! fact_cache.containsKey(n)) {\n\t\t\t BigInteger f = BI1;\n\t\t\t for (int i=1; i < n-1; i++) {\n\t\t\t f = f.multiply(oddprod(BI3, BI2.pow(i+1).subtract(BI1)));\n\t\t\t }\n\t\t\t f = bigpow(BI2, BI2.pow(n).subtract(BI1)).multiply(f);\n\t\t\t fact_cache.put(n, f);\n\t\t\t }\n\t\t\t return fact_cache.get(n);\n\t\t\t }",
"public int fact(int n){\n if(n == 1){\n return 1;\n }\n return n * (fact(n-1));\n }",
"public static int fact(int n){\n\t if(n < 0){\n\t return 0;\n\t }\n\t if(n == 0 || n == 1){\n\t return 1;\n\t }\n\t else{\n\t return n*fact(n-1); \n\t }\n\t}",
"private static int betterSolution(int n) {\n return n*n*n;\n }",
"static void pregenInverse() \n\t{ \n\t\tinvfact[0] = invfact[1] = 1; \n\n\t\t// calculates the modInverse of \n\t\t// the last factorial \n\t\tinvfact[1000000] = modInverse(fact[1000000], mod); \n\n\t\t// precalculates the modInverse of \n\t\t// all factorials by formulae \n\t\tfor (int i = 999999; i > 1; --i) \n\t\t{ \n\t\t\tinvfact[i] = (int) (((long) invfact[i + 1] \n\t\t\t\t\t* (long) (i + 1)) % mod); \n\t\t} \n\t}",
"public Factorial(int number) {\n\t\tthis.number = number;\n\t}",
"public static void main(String[] args) {\n long number = 100;\n System.out.println(sumOfDigitsByLooping(Count.factorialOf(number)));\n }",
"@Pure\n\tpublic static long factorialExact(int n) throws IllegalArgumentException, ArithmeticException\n\t{\n\t\tif (n < 0) throw new IllegalArgumentException(\"n:\" + n);\n\t\tif (n > 20) throw new ArithmeticException(\"Cannot calculate factorial for n higher than 20.\");\n\t\tif (n == 0 || n == 1) return 1;\n\t\tlong ret = n;\n\n\t\twhile (n-- > 1)\n\t\t{\n\t\t\tret *= n;\n\t\t}\n\n\t\tassert ret > 0 : ret;\n\t\tassert n == 0 : n;\n\n\t\treturn ret;\n\t}",
"private BigInteger[] factor(BigInteger i) {\n return null;\r\n }",
"public static void main(String[] args) {\nInteger f=1;\r\nInteger num=Integer.parseInt(args[0]);\r\nfor(Integer i= 1; i<= num ; i++)\r\n{\r\n\tf=f*i;\r\n\tSystem.out.println(\"fact is : \"+f);\r\n\t\r\n}\r\nBigInteger f1=new BigInteger(\"1\");\r\nfor(Integer i=1; i<=num; i++) {\r\n\tf1=f1.multiply(new BigInteger(\"\"+i));\r\n\tSystem.out.println(\"fact is \"+f1);\r\n}\r\n\t}",
"public static String factorial(int n) {\n if (n < 0)\n return \"0\";\n else if (n == 0)\n return \"1\";\n else {\n //см. import java.math.BigDecimal\n //Начальное значение fac = 1!\n BigDecimal fac = BigDecimal.valueOf(1);\n //далее через цикл вычисляем fac = n!\n for (; n > 1 ; n--)\n fac = fac.multiply(BigDecimal.valueOf(n));\n\n //преобразуем в строку и вовзвращаем\n return fac.toString();\n }\n }",
"static int fact1(int n)\n {\n if(n == 0 || n == 1)\n return 1;\n return n * fact1(n-1);\n }",
"public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"enter a number: \");\n\t\t\n\t\tint n = 10; //scan.nextInt();\n\t\tint fact=1;\n\t\tint i=1;\n\t\twhile(i<=n) {\n\t\t\t\n\t\t\tfact = fact*i;\n\t\t\ti++;\n\t\t}\n\t\t\t\tSystem.out.println(\"factorial of \"+n+ \" is: \"+fact);\n\t\t\n\t\t//method2\n\t\tint fact1=1;\n\t\t\n\t\tfor(int k=1;k<=n;k++) {\n\t\t\tfact1 = fact1*k;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"factorial of \"+n+ \" is: \"+fact1);\n\t}",
"@Test\n public void nthFactorialOne() throws Exception {\n assertEquals(1,Factorial.nthFactorial(1));\n }",
"@Test\n public void nthFactorialZero() throws Exception {\n assertEquals(1,Factorial.nthFactorial(0));\n }",
"int main(){\n int n, f = 1;\n cin>>n;\n for(int i = 1;i <= n;i++)\n f*=i;\n cout<<f;\n}",
"public int fact(int n) {\n if (n == 0 || n == 1) {\r\n // Return 1\r\n return 1;\r\n }\r\n // Anthing else? 2 times 1!\r\n return n * fact(n - 1);\r\n }",
"int main(){\n int f =1,n,i;\n cin>>n;\n for(i=2;i<=n;i++)\n f *= i;\n cout<<f;\n return 0;\n \n}",
"public static int fact(int n) {\n if (n == 0 || n == 1) {\r\n return 1;\r\n } else {\r\n return n * fact(n - 1);\r\n }\r\n }",
"public static void main(String[] args) {\n int fact = 1; //Starting factorial\n for(int i = 1; i <= maxFactorial;i++) //Iterates over all desired factorials\n {\n fact = fact * (i); //Takes previous ( and starting) factorial and multiplies by current increment\n System.out.println(\"Factorial of \" + i + \" is \" +fact); //Prints output of each factorial\n }\n }",
"public static void main(String[] args) {\nint N,i,fac=1;\nScanner fn=new Scanner(System.in);\nN =fn.nextInt();\nif(N<=20) {\n\tfor(i=N;i>=1;i--) {\n\t\tfac=fac*i;\n\t}\n}\nSystem.out.println(fac);\n\t}",
"public static CompletableFuture<BigInteger> compute(int x ){\n return CompletableFuture.supplyAsync(new Supplier<BigInteger>() {\n @Override\n public BigInteger get() {\n return calcuateFactorial(x);\n }\n });\n }",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n\n int number = in.nextInt();\n int i, fact = 1;\n\n for(i = 1; i <= number; i++){\n fact = fact * i;\n }\n\n System.out.println(\"Factorial of \" + number + \" is: \" + fact);\n }",
"public static void main(String[] args) {\n\t\tBigInteger facto = factorial(new BigInteger(\"100\"));\n\t\t\n\t\tString digits = facto.toString();\n\t\tBigInteger result = new BigInteger(\"0\");\n\t\tfor(int i = 0; i < digits.length(); i++) {\n\t\t\tresult = result.add(new BigInteger(digits.charAt(i) + \"\"));\n\t\t\tSystem.out.println(result);\n\t\t}\n\t\t\n\t\tSystem.out.println(result);\n\t}",
"public static void main(String args[])\n {\n Scanner input = new Scanner(System.in);\n //taking the number\n int num = input.nextInt();\n System.out.println(factorial(num));\n }",
"public double faktorial(double num){\n if (num<0) {\n System.out.println(\"bilangan tidak benar\");\n return 0;\n }\n if(num==0||num==1)return 1;\n return perkalian(num, faktorial(num-1));\n }",
"public static int fact(int n) {\n\t\t\tif (n == 1 || n == 0) \n\t\t\t\treturn 1;\n\t\t\treturn n * fact(n - 1);\n\t\t}",
"public static int fact(int n) {\n\t\tif (n <= 0) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn n * fact(n - 1);\n\t\t}\n\t}"
] |
[
"0.75594854",
"0.7555146",
"0.7503986",
"0.75020033",
"0.7442164",
"0.7400708",
"0.739181",
"0.7358311",
"0.73553926",
"0.7339994",
"0.72730684",
"0.72187704",
"0.71618694",
"0.7152421",
"0.71410453",
"0.7127808",
"0.7097711",
"0.70773697",
"0.70731753",
"0.7070357",
"0.7060413",
"0.7040234",
"0.6979753",
"0.6978577",
"0.6964168",
"0.69395995",
"0.69193035",
"0.69177645",
"0.6900771",
"0.69002724",
"0.68859226",
"0.6847833",
"0.68361807",
"0.6832443",
"0.6830138",
"0.6821411",
"0.6790482",
"0.67896396",
"0.6774832",
"0.67745185",
"0.6771588",
"0.67706513",
"0.6757758",
"0.6728714",
"0.671535",
"0.6695741",
"0.6688163",
"0.668151",
"0.66622096",
"0.6619262",
"0.66135615",
"0.6590163",
"0.6573915",
"0.65369654",
"0.6527874",
"0.65113425",
"0.6509749",
"0.6509683",
"0.64872885",
"0.64826703",
"0.64627314",
"0.64477384",
"0.64430195",
"0.6415472",
"0.6408283",
"0.64082485",
"0.63824916",
"0.6372622",
"0.63709706",
"0.6357592",
"0.6351396",
"0.63386637",
"0.63191944",
"0.63024765",
"0.62941617",
"0.6290261",
"0.6278537",
"0.6273742",
"0.6252749",
"0.62361103",
"0.62318635",
"0.6222212",
"0.62054586",
"0.6204896",
"0.62015325",
"0.61647373",
"0.6152089",
"0.6140898",
"0.61320466",
"0.6093417",
"0.6093264",
"0.6084424",
"0.60603034",
"0.60228914",
"0.6022646",
"0.5992112",
"0.59891784",
"0.59729236",
"0.5958784",
"0.5949128"
] |
0.6241097
|
79
|
Method that calculates binome (n i)
|
private double binomeN_I(int n, int i) {
double ni;
double a1 = factorial(n);
double a2 = factorial(i);
double a3 = factorial(n - i);
ni = a1 / (a2 * a3);
return ni;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int xBins();",
"public void setInBin(int n) {\n inBin=Translate.decTobinN(n, 4);\n }",
"public void setOpBin(int n) {\n opBin=Translate.decTobinN(n, 8);\n }",
"public int binom(int n, int k) {\n isBinomValuesValid(n,k);\n if(isZeroOrEqual(n,k))\n return coeffs[n][k] = 1;\n else\n return coeffs[n][k] = coeffs[n - 1][k - 1] + coeffs[n - 1][k];\n }",
"@Override \n public int binom(int n, int k){\n this.binumInputCheck(n, k);\n if ( n == 0 || k == 0 || n == k )\n return 1;\n \n if(k > n/2)\n k = n - k; \n \n if(this.saveArr[n][k] != 0)\n return this.saveArr[n][k];\n \n this.saveArr[n][k] = binom(n-1, k-1) + binom(n-1, k);\n return this.saveArr[n][k];\n }",
"private Binomial(int n) {\n N = n;\n }",
"private int getBinI(Location l)\r\n {\r\n return (int)((l.getX()-bl.getX())/di);\r\n }",
"private static long recBinom(int n, int k) {\n if (bin.get(n).get(k) > 0) {\n return bin.get(n).get(k).longValue();\n }\n \n if (k == 0 || k == n) {\n bin.get(n).set(k, Long.valueOf(1));\n return 1;\n } \n\n long result = recBinom(n - 1, k - 1) + recBinom(n - 1, k);\n bin.get(n).set(k, Long.valueOf(result));\n\n return result;\n }",
"public static ArrayList < ArrayList < Double >> binPack(double weight[], int n, double bin_cap) { \r\n int binCount = 0;\r\n int k = 0;\r\n double[] bin_space = new double[n];\r\n\r\n ArrayList < Integer > bin = new ArrayList < Integer > ();\r\n ArrayList < Double > val = new ArrayList < Double > ();\r\n ArrayList < ArrayList < Double >> binVal = new ArrayList < ArrayList < Double >> ();\r\n binVal.add(k, new ArrayList < Double > ());\r\n System.out.println(\".......Commencing Calculation...........\\n\");\r\n startTime = System.nanoTime();\r\n for (int i = 0; i < n; i++) {\r\n int j;\r\n for (j = 0; j < binCount; j++) {\r\n \r\n if (bin_space[j] >= weight[i]) {\r\n bin_space[j] = bin_space[j] - weight[i];\r\n //val.add(weight[i]);\r\n (binVal.get(j)).add((weight[i]));\r\n k=j+1;\r\n System.out.println(\"---Bin \" + j + \" took in weight \" + weight[i]);\r\n break;\r\n }\r\n \r\n }\r\n System.out.println(\"*Bad fit for next weight size \"+ weight[i]+ \r\n \"\\n\\n ***NEW BIN CREATED***\\n\");\r\n if (j == binCount) {\r\n \r\n bin_space[binCount] = bin_cap - weight[i];\r\n //val.add(weight[i]);\r\n binCount++;\r\n //k++;\r\n bin.add(j);\r\n binVal.add(j, new ArrayList < Double > ());\r\n (binVal.get(j)).add((weight[i]));\r\n k=j+1;\r\n System.out.println(\"---Bin \" + k + \" took in weight **\" + weight[i]);\r\n }\r\n } \r\n endTime = System.nanoTime();\r\n elapsedTime = (endTime- startTime);\r\n System.out.println(\"\\nBIN PACKING ALGORITHM COMPLETE\\n\");\r\n \r\n return binVal;\r\n }",
"private void computeHistogramBins() {\r\n int nBins = (int) Math.ceil(hismax / binWidth);\r\n histoBins = new double[nBins];\r\n for (int i = 0; i < nBins; i++) {\r\n histoBins[i] = binWidth * (double) i + binWidth;\r\n }\r\n }",
"private static BigInteger binomial(int n, int k) {\n BigInteger ret = new BigInteger(\"1\");\n if (k > n) {\n return BigInteger.ZERO;\n } else {\n \tif (binom[n][k] != null) {\n \t\treturn binom[n][k];\n \t}\n if (k > n / 2) {\n k = n - k;\n }\n // (n choose i+1) = (n choose i) * (n - i) / (i + 1)\n for (int i = 0; i < k; i++) {\n ret = ret.multiply(BigInteger.valueOf(n - i)).divide(BigInteger.valueOf(i + 1));\n }\n }\n return binom[n][k] = ret;\n }",
"public static long binom(int n, int k) {\n if (k > n || n < 0 || k < 0) {\n return 0;\n }\n\n if (bin == null)\n bin = new ArrayList<ArrayList<Long>>();\n\n if (bin.size() <= n) {\n for (int i = bin.size(); i <= n; i++) {\n ArrayList<Long> newList = new ArrayList<Long>();\n bin.add(newList);\n }\n }\n\n if (bin.get(n).size() <= k) {\n for (int i = 0; i <= n; i++) {\n if (bin.get(i).size() <= k && bin.get(i).size() <= i) {\n for (int j = bin.get(i).size(); j <= k && j <= i; j++) {\n bin.get(i).add(Long.valueOf(0));\n }\n }\n }\n }\n\n return recBinom(n, k);\n }",
"protected int getBinIndex(double w){\n\t\tdouble lnw = Math.log(w);\n\t\tdouble i = Math.floor((lnw - m_lnA0)/m_lnR);\n\t\tint result = (int)i;\n\t\tif(result >= m_numBins.getValue() || result < 0){\n\t\t\tresult = -1;\n\t\t}\n\t\treturn result;\n\t}",
"public Binary( int n ) {\n\t_decNum = n;\n\t_binNum = decToBin(n);\n }",
"public void setParBin(int n) {\n parBin=Translate.decTobinN(n, 16);\n }",
"private int bepaalByes(int[] arr, int n) {\r\n\t\tint tot = 0;\r\n\t\tfor (int v : arr)\r\n\t\t\ttot += v;\r\n\t\treturn (tot - n);\r\n\t}",
"public static int BinaryFib (int n) {\n\t\tif (n <= 1) {\n\t\t\treturn n;\n\t\t}\n\t\telse {\n\t\t\treturn BinaryFib(n-1) + BinaryFib(n-2);\n\t\t}\n\t}",
"public static byte[] getGenotipo(int f,int nB){\n byte g[] = new byte[nB];\n int aux,nf = f;\n int cont = 0;\n for(int i =nB-1; i>=0;i--){\n aux = (int) Math.pow(2, i);\n if(nf >= aux){\n nf = nf - aux;\n g[cont] = 1;\n }\n else\n g[cont] = 0;\n cont ++;\n }\n return g;\n }",
"List<String> getBins(String iisn);",
"abstract int binSearch(int[] array, int num, int left, int right);",
"public static int bell(int n) {\n\n int[][] bell = new int[n + 1][];\n bell[0] = new int[1];\n bell[0][0] = 1;\n\n for (int i = 1; i <= n; i++) {\n bell[i] = new int[i + 1];\n bell[i][0] = bell[i - 1][i - 1];\n for (int j = 1; j <= i; j++)\n bell[i][j] = bell[i - 1][j - 1] + bell[i][j - 1];\n }\n return bell[n][0];\n }",
"int yBins();",
"public static int[] countbits(int n) {\n // res[i] denotes set bits in i\n int[] res = new int[n + 1];\n // set bits in 0 is 0\n res[0] = 0;\n\n // we fill up the table in bottom up manner\n for (int i = 1; i <= n; i++) {\n // if the number is odd then the no. of set bits in it will be 1 + no. of set\n // bits in i/2;\n if (i % 2 != 0) {\n res[i] = 1 + res[i / 2];\n }\n // if the no. is even then the number of set bits will be equal to set in in i/2\n else {\n res[i] = res[i / 2];\n }\n }\n\n // return the final array\n return res;\n }",
"public String toBinary(final int n) {\n int[] binary = new int[35];\n int id = 0;\n \n // Number should be positive\n while (n > 0) {\n binary[id++] = n % 2;\n n = n / 2;\n }\n return \"Array.toString(binary)\";\n \n }",
"public static byte[] genIndividuo(int nB){\n byte nInd[] = new byte[nB];\n Random r = new Random();\n float aux;\n for(int i=0;i<nB;i++){\n aux = r.nextFloat();\n if(aux < 0.5)\n nInd[i] = 0;\n else\n nInd[i] = 1;\n }\n return nInd;\n }",
"public void setFlagBin(int n) {\n flagBin=Translate.decTobinN(n, 4);\n }",
"static void binomialCoeff(int C[][], int n, int k)\n {\n for (int i = 0; i <= n; i++) {\n for (int j = 0; j <= Math.min(i, k); j++)\n {\n\n // Base Cases\n if (j == 0 || j == i)\n C[i][j] = 1;\n\n // Calculate value using previously\n // stored values\n else\n C[i][j] = C[i - 1][j - 1] +\n C[i - 1][j];\n }\n }\n }",
"private int getPixelBin(int[] pixel) {\r\n\t\treturn (int) ((int) (pixel[0] / redValues) * (binsPerColour)\r\n\t\t\t\t* (binsPerColour) + (int) (pixel[1] / greenValues)\r\n\t\t\t\t* (binsPerColour) + (int) (pixel[2] / blueValues));\r\n\t}",
"public static int fastFib(int n) {\n\t\t\n\t\tint a = 1;\n\t\tint b = 0;\n\t\t\n\t\tint temp = 0;\n\t\tfor(int i=0; i<n-1; i++){\n\t\t\ttemp = a;\n\t\t\ta += b;\n\t\t\tb = temp;\n\t\t\tif(a<0){\n\t\t\t\tSystem.out.println(\"Int overflow\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n return a; \n \n\t}",
"public int findIntegers(int n) {\n int[][]template=new int[32][2];\n\n //when the max length the array is one, we know that whether the max bit is one or zero, the arr value is 1\n template[1][0]=1;\n template[1][1]=1;\n\n for (int i = 2; i < 32; i++) {\n template[i][0]=template[i-1][0]+template[i-1][1];\n template[i][1]=template[i-1][0];\n }\n\n int answ=0;\n int pre=0;\n\n //we need to change n to binary expression\n List<Integer>binaryExpression=new ArrayList<>();\n int current=n;\n while (current!=0)\n {\n binaryExpression.add(current&1);\n current=current>>1;\n }\n for (int i = binaryExpression.size()-1; i>=0; i--) {\n Integer currentBit = binaryExpression.get(i);\n for (int j = 0; j < currentBit; j++) {\n answ+=template[i+1][j];\n }\n if (currentBit==1&&pre==1)\n {\n break;\n }\n pre=currentBit;\n if (i==0)\n {\n answ++;\n }\n }\n return answ;\n }",
"public static int valorInteiro(int[] binario) {\n \n // Calcula o valor inteiro absoluto do binario \n int potencia = 1;\n int valor = 0;\n for(int i = binario.length - 1; i >= 0; i--) {\n valor += potencia * binario[i];\n potencia *= 2;\n }\n \n return valor;\n }",
"public static String decToBin( int n ) {\n\tString x = \"\";\n\twhile(n != 0){\n\t x = n % 2 + x;\n\t n /= 2;\n\t}\n\treturn x;\n }",
"protected float computeProbs(int n)\n\t{\n\t\tfloat Cmi = 0;\n\t\t// Compute probabilities\n\t\tfor (int k = 0; k < bins; k++)\n\t\tfor (int l = 0; l < bins; l++)\n\t\t{\n\t\t float Pkl = Puv[k*bins+l];\n\t\t if (Pkl > 0)\n\t\t\t Cmi -= Pkl / n * Math.log(n * Pkl / (Pu[k] * Pv[l]));\n\t\t}\n\t\treturn Cmi;\n\t}",
"public int [] binarySum(int[] A, int[] B, int n){\n\t\tint [] C = new int [n+1];\r\n\t\tArrays.fill(C, 0); //init array C with 0s\r\n\t\t\r\n\t\tfor(int i =0; i< n; i++){\r\n\t\t\t//sum for the two binary ints and carry\r\n\t\t\tint sum = A[i] + B[i] + C[i];\r\n\t\t\tC[i] = sum % 2; //current digit\r\n\t\t\tC[i+1] = sum / 2; //carry bits, to next digit\r\n\t\t}\r\n\t\treturn C;\r\n\t}",
"public static String decToBinR( int n ) { \n\tif (n == 0)\n\t return \"0\";\n\telse if (n == 1)\n\t return \"1\";\n\telse\n\t return n % 2 + decToBin(n / 2);\n }",
"static void subsetSums(int arr[], int n)\n {\n \n // There are totoal 2^n subsets\n int total = 1 << n;\n \n // Consider all numbers from 0 to 2^n - 1\n for (int i = 0; i < total; i++) {\n int sum = 0;\n \n // Consider binary reprsentation of\n // current i to decide which elements\n // to pick.\n for (int j = 0; j < n; j++)\n if ((i & (1 << j)) != 0)\n sum += arr[j];\n \n // Print sum of picked elements.\n System.out.print(sum + \" \");\n }\n }",
"public static void main(String[] args){\n int s = 80;\n int n = (int) Math.pow(10, 7);\n Integer[] a = new Integer[n];\n Random rand = new Random();\n for (int i = 0; i < n; i++){\n a[i] = (int) (n*rand.nextDouble());\n }\n double binTime = binSearchT(s, a);\n double linTime = linSearchT(s, a);\n System.out.println(\"binTime: \"+ binTime);\n System.out.println(\"linTime: \"+ linTime);\n\n }",
"public static long longFastFib(int n) {\n\t\tlong a = 1;\n\t\tlong b = 0;\n\t\t\n\t\tlong temp = 0;\n\t\tfor(int i=0; i<n-1; i++){\n\t\t\ttemp = a;\n\t\t\ta += b;\n\t\t\tb = temp;\n\t\t\tif(a<0){\n\t\t\t\tSystem.out.println(\"Int overflow\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n return a; \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n \n }",
"Bolsa(int n) {\r\n\t\tbolsa = new int[n];\r\n\t\tRandom rnd=new Random();\r\n\t\tbolsa[n-1] = 1;\r\n\t}",
"private int sturgesFormula(int dataSize) {\n int binNum = currentBinNum;\n\n if (dataSize != 0) {\n binNum = 1 + (int) (.5 + Math.log((double) dataSize)\n / Math.log(2.0));\n }\n return binNum;\n }",
"private static BigInteger[][] power(BigInteger[][] base, long n)\n {\n if (n == 0 || n == 1) return atom;\n \n BigInteger fib[][] = power(base, n/2);\n fib = Fibonacci.multiply(fib, fib);\n if (n%2 == 1) fib = Fibonacci.multiply(fib, base);\n \n return fib;\n }",
"private static long BBT(int n, long[] strg) {\n\t\tif (n == 0 || n == 1)\n\t\t\treturn 1;\n\t\tif (strg[n] != 0)\n\t\t\treturn strg[n];\n\t\tstrg[n] = ((BBT(n - 1, strg) % mod) * (2 * (BBT(n - 2, strg) % mod + BBT(n - 1, strg) % mod) % mod)) % mod;\n\t\treturn strg[n];\n\n\t}",
"public static void main(String[] args) {\r\n Scanner sc = new Scanner(System.in);\r\n double a = sc.nextDouble();\r\n double b = sc.nextDouble();\r\n double p = a/(a+b);\r\n int n = 6;\r\n double bd = 0.0;\r\n for(int i = 3 ; i <= n ;i++)\r\n {\r\n bd = bd + bionomial(n,i,p);\r\n }\r\n System.out.println(Math.round(bd*1000.00)/1000.00);\r\n }",
"public int hammingWeight2(int n) {\n int count = 0;\n for (int i = n; i != 0; i &= (i - 1)) {\n count++;\n }\n return count;\n }",
"private int iterativeFib(int n) {\r\n int backVal = 0, frontVal = 1;\r\n \r\n for (int i = 1; i < n - 1; i++) {\r\n int temp = frontVal + backVal;\r\n backVal = frontVal;\r\n frontVal = temp;\r\n }\r\n \r\n return frontVal + backVal;\r\n }",
"public static Double[] simulerBinomiale(Double nbRep, Double proba, Double repetition) {\n\t\tBinomiale loi = new Binomiale(proba, nbRep, repetition);\n\t\treturn loi.simuler();\n\t}",
"public static int[] decimalInteiroParaInteiroBinario(int numero, int numeroBits) {\n boolean negativo = (numero < 0);\n\n // Transforma o numero em positivo\n if(negativo) numero *= -1;\n\n long expoente = 0;\n long potencia = 1;\n long soma = 1;\n while(soma < numero) {\n expoente++;\n potencia *= 2;\n soma += potencia;\n }\n\n if(expoente + 2 > numeroBits) if(!negativo) throw new IllegalArgumentException(\"Eh necessario mais bits do que o indicado para criar o numero\");\n else if(potencia != numero) throw new IllegalArgumentException(\"Eh necessario mais bits do que o indicado para criar o numero\");\n if(expoente + 2 > 32) throw new IllegalArgumentException(\"Nao eh possivel converter o numero \" + numero + \" para binario, eh necessario mais do que 32 bits\");\n\n // Incrementa 1 para ajustar o vetor de acordo com o expoente e mais 1 para o bit de sinal\n int[] binario = new int[numeroBits];\n\n // Ajuda o bit de sinal\n binario[0] = (negativo ? 1 : 0);\n\n // Se for negativo armazena o binario em complemento de 2\n if(negativo) {\n // Insere os bits em complemento de 1\n for(int j = binario.length - 1; j >= 0; j--) {\n //binario[j] = ((numero % 2) == 1 ? 0 : 1); // Inverte o valor dos bits\n binario[j] = (int)((numero % 2) + 1) % 2; // Inverte o valor dos bits\n numero /= 2;\n }\n\n // Soma um no binario para virar complemento de dois\n //NumeroBinario.somarUm(binario, true);\n int anterior = 0;\n int excesso = 1;\n for(int i = binario.length - 1; i >= 0 && excesso == 1; i--) {\n anterior = binario[i]; // Salva o valor do bit antes da modificacao\n binario[i] = (binario[i] + excesso) % 2;\n excesso = (anterior + excesso) / 2; // Calcula o excesso usando o valor do bit antes da modificacao\n }\n } else {\n // Insere os bits\n for(int j = binario.length - 1; j > 0; j--) {\n binario[j] = (int)(numero % 2);\n numero /= 2;\n }\n }\n\n return (binario);\n }",
"public long bits() {\n\t\tlong x = n;\n\t\tif (x > 0) {\n\t\t\tlong msw = get(x - 1) & 0xffffffffL;\n\t\t\tx = (x - 1) * BPU;\n\t\t\tx = x & 0xffffffffL;\n\t\t\tlong w = BPU;\n\t\t\tdo {\n\t\t\t\tw >>= 1;\n\t\t\t\tif (msw >= ((1 << w) & 0xffffffffL)) {\n\t\t\t\t\tx += w;\n\t\t\t\t\tx = x & 0xffffffffL;\n\t\t\t\t\tmsw >>= w;\n\t\t\t\t}\n\t\t\t} while (w > 8);\n\t\t\tx += bittab[(int) msw];\n\t\t\tx = x & 0xffffffffL;\n\t\t}\n\t\treturn x;\n\t}",
"public static int getBitsNumber(int n) {\r\n\t\treturn (int) (Math.log(n) / Math.log(2.0) + 0.9999);\r\n\t}",
"public static BigRat splits(int n, int[] p) {\n\t\t\t BigInteger num = BI1;\n\t\t\t BigInteger denom = BI1;\n\n\t\t\t int psum = 0;\n\t\t\t int last_elt = 0;\n\t\t\t int multiplicity = 1;\n\t\t\t for (int i=0; i < p.length; i++) {\n\t\t\t num = num.multiply(choose(n - psum, p[i]));\n\t\t\t psum += p[i];\n\t\t\t if (p[i] == last_elt) {\n\t\t\t multiplicity++;\n\t\t\t denom = denom.multiply(BigInteger.valueOf(multiplicity));\n\t\t\t }\n\t\t\t else {\n\t\t\t multiplicity = 1;\n\t\t\t }\n\t\t\t last_elt = p[i];\n\t\t\t }\n\n\t\t\t return new BigRat(num, denom);\n\t\t\t }",
"public static void main(String[] args) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tdouble a=0;\r\n\t\t double b=2;\r\n\t\t\t double n=4;\r\n\t\t\t double s;\r\n\r\n\t\t\tfor(int i=0; i<=n-1;i++) {\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t s = a + Math.pow(2, i)*b;\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(s);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(int j=0;j<=n-1;j++)\r\n\t\t\t{\r\n\t\t\t\tint arr\r\n\t\t\t}\r\n\t\t\t\r\n\t}",
"public BinNumber(int currentBinNum) {\n this.currentBinNum = currentBinNum;\n }",
"public int alphaBinNum(float[] values) {\n\n /* Check if histogram sampling is possible. */\n if (values == null || values.length == 0) {\n\n return currentBinNum;\n }\n\n float minBin = 10;\n float minLbl = 10;\n\n /* Show a depiction of the weights being used. */\n int i, j, n, n2;\n\n /*\n * Histogram case, the most complex, start by gathering the values. If\n * none are toggled on, we will base this on all inputs which exist.\n */\n\n float minVal, maxVal;\n minVal = maxVal = 0;\n n = values.length;\n n2 = 2 * n;\n\n for (i = j = 0; i < n2; i++) {\n j = i % n;\n if (i == j) {\n n2 = n;\n }\n\n float oneval = values[j];\n\n if (oneval == Float.NaN) {\n continue;\n }\n\n if (minVal == maxVal && maxVal == 0) {\n minVal = maxVal = oneval;\n } else if (oneval < minVal) {\n minVal = oneval;\n } else if (oneval > maxVal) {\n maxVal = oneval;\n }\n }\n\n /*\n * Compute the best size to use for the value bins (dv). This responds\n * to density by using smaller increments along the x-axis when density\n * is larger.\n */\n\n if (minVal >= maxVal) {\n\n return currentBinNum;\n }\n float dv = minBin;\n\n dv = (float) .5;\n float delLbl = minLbl * dv / minBin;\n if (dv == 0.5) {\n delLbl = 1;\n } else if (dv == 0 || (maxVal - minVal) > dv * 25) {\n float minDv = (maxVal > -minVal ? maxVal : -minVal) / 5000;\n if (dv < minDv) {\n dv = minDv;\n }\n computeBinDelta(dv, delLbl);\n } else if (dv != minBin) {\n computeBinDelta(dv, delLbl);\n }\n\n int nbMax = 20;\n if ((maxVal - minVal) / dv > nbMax) {\n float dvSeed, dvPrev;\n for (dvSeed = dvPrev = dv, i = 0; i < 100; i++) {\n dvSeed *= 1.4;\n dv = dvSeed;\n computeBinDelta(dv, delLbl);\n if (dv == dvPrev) {\n continue;\n }\n if ((maxVal - minVal) / dv < nbMax) {\n break;\n }\n dvPrev = dvSeed = dv;\n }\n }\n\n /*\n * We want edge of the bins to be at half the bin size, containing at\n * least two even values of del2.\n */\n\n float del2 = delLbl * 2;\n float edge = dv * (((int) (minVal / dv)) - (float) 0.5);\n while (minVal - edge > dv) {\n edge += dv;\n }\n while (edge > minVal) {\n edge -= dv;\n }\n minVal = edge;\n edge = dv * (((int) (maxVal / dv)) + (float) 0.5);\n while (edge - maxVal > dv) {\n edge -= dv;\n }\n while (edge < maxVal) {\n edge += dv;\n }\n maxVal = edge;\n int nbins = (int) (0.5 + (maxVal - minVal) / dv);\n float mean2 = (minVal + maxVal) / 2;\n mean2 = mean2 > 0 ? del2 * (int) (0.5 + mean2 / del2) : -del2\n * (int) (0.5 - mean2 / del2);\n while (minVal > mean2 - del2 && maxVal < mean2 + del2) {\n nbins += 2;\n minVal -= dv;\n maxVal += dv;\n }\n\n return nbins;\n }",
"public static int coeficienteBinomial(int n, int k) {\n int res = 0;\n res = factorial(n) /( factorial(k) * factorial(n-k));\n return res;\n }",
"public static String binaryRepresentation(int n){\n\t\tint[] arr = new int[32]; \n\t\tArrays.fill(arr,0); //Filling the entire arrays with a default value of 0.\n\t\tint len = arr.length-1;\n\t\twhile(n > 0){\n\t\t\tint temp = n % 2;\n\t\t\tarr[len] = temp;\n \tlen--;\n\t\t\tn = n/2;\n\t\t}\n\t\tString ans = arrayToString(arr);\n\t\treturn ans;\n\n\t}",
"public static int binaryGap_opt(int n) {\n int ans = 0;\n int last = -1;\n for (int i = 0; n != 0; i++) {\n if ((n & 0x01) == 1) {\n if (last >= 0) {\n ans = Math.max(ans, i - last);\n }\n last = i;\n }\n\n n = n >> 1;\n }\n\n return ans;\n }",
"String intToBinaryNumber(int n){\n return Integer.toBinaryString(n);\n }",
"private int bigv_bitcount(int [] ix, EChannel gi) {\n\t\tint bits = 0;\n\n\t\tif ( gi.window_switching_flag != 0 && gi.block_type == 2 ) {\n\t\t\t/*\n Within each scalefactor band, data is given for successive\n time windows, beginning with window 0 and ending with window 2.\n Within each window, the quantized values are then arranged in\n order of increasing frequency...\n\t\t\t */\n\t\t\tint sfb = 0, window, line, start, end;\n\n\t\t\tif ( gi.mixed_block_flag != 0 ) {\n\t\t\t\tint tableindex;\n\n\t\t\t\tif ( (tableindex = gi.table_select[0]) != 0 )\n\t\t\t\t\tbits += count_bit( ix, 0, gi.address1, tableindex );\n\t\t\t\tsfb = 2;\n\t\t\t}\n\n\t\t\tfor ( ; sfb < 13; sfb++ ) {\n\t\t\t\tint tableindex = 100;\n\n\t\t\t\tstart = scalefac_band_short[ sfb ];\n\t\t\t\tend = scalefac_band_short[ sfb+1 ];\n\n\t\t\t\tif ( start < 12 )\n\t\t\t\t\ttableindex = gi.table_select[ 0 ];\n\t\t\t\telse\n\t\t\t\t\ttableindex = gi.table_select[ 1 ];\n\n\t\t\t\tbits += count_bit_short(ix, start, end, tableindex);/*\n for ( line = start; line < end; line += 2 ) {\n for ( window = 0; window < 3; window++ ){\n x = (ix[line * 3 + window ]);\n y = (ix[(line + 1) * 3 + window]);\n\n // x = (i192_3[ line ][ window ]);\n // y = (i192_3[ line + 1 ][ window]);\n\n bits += HuffmanCode( tableindex, x, y );\n }\n }*/\n\t\t\t}\n\t\t} else {\n\n\t\t\tint table;\n\n\t\t\tif( (table = gi.table_select[0] )>=0) // region0\n\t\t\tbits += count_bit(ix, 0, gi.address1, table );\n\t\t\tif( (table = gi.table_select[1])>=0) // region1\n\t\t\t\tbits += count_bit(ix, gi.address1, gi.address2, table );\n\t\t\tif( (table = gi.table_select[2])>=0) // region2\n\t\t\t\tbits += count_bit(ix, gi.address2, gi.address3, table );\n\t\t}\n\n\t\treturn bits;\n\t}",
"public ByteArray getBin() {\n return bin;\n }",
"public static double binomialCoefficient(long n, long k){\n\t\n\tdouble coeff = 0;\n\ttry{\n\t coeff = factorial(n) / ( factorial(k) * factorial(n - k) ); \n\t}catch (ArithmeticException e){\n\t e.printStackTrace();\n\t System.out.println(\"n = \"+n+\"; k = \"+k+\".\");\n\t}\t\n\treturn coeff;\n }",
"public void binarycon()\n \t {\n\n\t int i,j,k,t;\n \t int temp[]=new int[10];\n\t int m=0;\n for(i=0;i<600000;i++)\n binary[i]=0;\n int b[]=new int[32];\n int dum;\n dum=max;\n i=0;\n while(dum!=0)\n {\n b[i]=dum%2;\n i=i+1;\n dum/=2;\n }\n j=24-i;\n for(k=j,t=i-1;k<(i+j);k++,t--)\n binary[k]=b[t];\n dum=73;\n i=0;\n while(dum!=0)\n {\n b[i]=dum%2;\n i=i+1;\n dum/=2;\n }\n j=32-i;\n for(k=j,t=i-1;k<32;k++,t--)\n binary[k]= b[t];\n m=32;\n for( i=0 ; i < max ; i++)\n \t {\n j=0;\n while( bytes[i]!= 0 )\n {\n temp[j++]=bytes[i]%2;\n bytes[i]=bytes[i]/2;\n\n\n\n }\n for( k=0;k<8-j ; k++)\n binary[m++]=0;\n for(k=j-1; k >=0 ; k--)\n binary[m++]=temp[k];\n }\n \t maxbinary=m;\n }",
"private static int batoi(byte[] inp) {\n int len = inp.length>4?4:inp.length;\n int total = 0;\n for (int i = 0; i < len; i++) {\n total += (inp[i]<0?256+inp[i]:(int)inp[i]) << (((len - 1) - i) * 8);\n }\n return total;\n }",
"private static int computeNumberOfBandsForThreshold(int nHashes, double jaccardThreshold) {\n int bands = nHashes;\n while (bands > 1) {\n if ((nHashes % bands) == 0) {\n double threshold = Math.pow((double) 1.0 / bands, (double) bands / nHashes);\n if (threshold > jaccardThreshold) {\n break;\n }\n }\n bands--;\n }\n return bands;\n }",
"public static void testRecorridosArbolBinario(int n) {\n\t\t\r\n\t\tSystem.out.println(\"----------------------------------------------------\");\r\n\t\tSystem.out.println(\"Test recorridos\");\r\n\t\t\r\n\t\tSystem.out.println(\"Crear un arbol binario completo de tamaño \" + n + \"...\");\r\n\t\tArbolBin arbol = new ArbolBin();\r\n\t\ttestCargarArbolBinarioCompleto(arbol, n, false);\r\n\t\tSystem.out.println(arbol.toString());\r\n\t\tSystem.out.println();\r\n\t\ttestMostrarRecorridosYFrontera(arbol);\r\n\r\n\t}",
"public int stoneCount(int bin)\n {\n \treturn state[bin];\n }",
"public int hammingWeight(int n) {\n int count = 0;\n for (int i = n; i != 0; i >>>= 1) {\n count += (i & 1);\n }\n return count;\n }",
"public static void main(String[] args) throws Exception {\n Scanner scn = new Scanner(System.in);\n\n int n = scn.nextInt();\n int[] arr = new int[n];\n\n for (int i = 0; i < n; i++)\n arr[i] = scn.nextInt();\n\n for (int i = 0; i < (int) Math.pow(2, n); i++) {\n int bin = dtb(i);\n int div = (int) Math.pow(10, n - 1);\n for (int j = 0; j < n; j++) {\n int q = bin / div;\n int r = bin % div;\n bin = r;\n if (q == 1) System.out.print(arr[j] + \"\\t\");\n else System.out.print(\"-\\t\");\n div /= 10;\n }\n System.out.println();\n }\n\n }",
"public static String toBinary(int n){\n int length = (int)Math.ceil(Math.log(n)/Math.log(2));\n int[] bits = new int[length];\n for(int x = 0; x < length; x++){\n double val = Math.pow(2, length - x);\n if(n >= val){\n bits[x] = 1;\n n -= val;\n }\n else{\n bits[x] = 0;\n }\n }\n String convert = \"\";\n for(int x = 0; x < length; x++){\n convert += bits[x];\n }\n return convert;\n }",
"public List<B> getBins() {\n return ImmutableList.copyOf(bins);\n }",
"private static int getFibonacci(int n) {\n\t\tdouble f1 = Math.pow(((1 + Math.sqrt(5)) / 2.0), n);\n\t\tdouble f2 = Math.pow(((1 - Math.sqrt(5)) / 2.0), n);\n\t\treturn (int)(Math.floor((f1 - f2) / Math.sqrt(5)));\n\t}",
"static int countWaysUtil(int n, int m) \n\t { \n\t int res[] = new int[n]; \n\t res[0] = 1; res[1] = 1; \n\t for (int i=2; i<n; i++) \n\t { \n\t res[i] = 0; \n\t for (int j=1; j<=m && j<=i; j++) \n\t res[i] += res[i-j]; \n\t } \n\t return res[n-1]; \n\t }",
"public static int binarioInteiroParaDecimal(int[] numero) {\n if(numero.length > 32)\n throw new IllegalArgumentException(\"O numero nao pode ter mais do que 32 bits\");\n\n int potencia = 1;\n int soma = 0;\n for(int i = numero.length - 1; i > 0; i--) {\n soma += potencia * numero[i];\n potencia *= 2;\n }\n\n soma -= numero[0] * potencia;\n return soma;\n }",
"private byte getIndex(int n) {\r\n\t\tint originalN = n;\r\n\t\tif (n < Constants.DIMENSION - 1) {\r\n\t\t\tdo {\r\n\t\t\t\tn = Constants.getRandom().nextInt(Constants.DIMENSION);\r\n\t\t\t//} while (n > Constants.FIELD_DIMENSION - 1);\r\n\t\t\t//} while ((n < originalN) || (n > Constants.FIELD_DIMENSION - 1));\r\n\t\t\t} while ((n == originalN) || (n > Constants.DIMENSION - 1));\r\n\t\t}\r\n\t\treturn (byte) n;\r\n\t}",
"java.math.BigInteger getNcbieaa();",
"public static int binaryGap(int n) {\n if (n <= 1 || (n & (n - 1)) == 0) {\n return 0;\n }\n\n int ans = 0;\n int pre = -1;\n for (int i = 0; i < 32 && n != 0; i++) {\n if ((n & 0x01) == 1) {\n if (pre >= 0) {\n ans = Math.max(ans, i - pre);\n }\n pre = i;\n }\n\n n = n >> 1;\n }\n\n return ans;\n }",
"public BinomialDistributionUnder(int x, int bigX,\r\n int n, int bigN) {\r\n this.x = x;\r\n this.bigX = bigX;\r\n this.n = n;\r\n this.bigN = bigN;\r\n\t\tthis.p = n*1.0/bigN;\r\n }",
"private static int naiveFib(int n) {\n if (n == 0) return 0;\n if (n == 1) return 1;\n\n return naiveFib(n-1) + naiveFib(n-2);\n }",
"public int getBinCapicityFilled() {\n int binCapicity = 0;\n for( Packet p: packets) {\n binCapicity += p.getPacketHeight();\n }\n return binCapicity;\n\n }",
"public BloomFilter(int n){\n\t\tflags = new boolean[4*n]; // initialize the boolean array by the size of 4n\n\t\tfor(int i=0; i<flags.length; i++){\n\t\t\tflags[i]=false; // initializing the fields with false value\n\t\t}\n\t\ta = (int) (Math.random()*100); // 1-100\n\t\tb = (int) (Math.random()*100);// 1-100\n\t}",
"static long nPolyNTime(int[] n) {\n int temp = n.length;\n long sum = 0;\n if(n == null || n.length == 0) return -1;\n for(int i = 0; i < n.length; ++i) {\n while(temp --> 0) {\n for(int j = 0; j < n.length; ++j) {\n sum += n[i] + n[j];\n }\n }\n }\n return sum;\n }",
"public int fibo2(int n){\r\n int[] f = new int[n];\r\n f[0] = 1;\r\n f[1] = 1;\r\n for(int i=2; i<n; i++){\r\n f[i] = f[i-1] + f[i-2];\r\n }\r\n return f[n-1];\r\n }",
"public static int[] bwor(BinaryNumber bn1, BinaryNumber bn2) {\n\t\tif (bn1.getLength() !=bn2.getLength()) {\n\t\t\tSystem.out.println(\"can't be doin that. Make them the same length.\");\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tint[] or = new int[bn1.length];\n\t\tfor(int i = 0;i < bn1.length;i++) {\n\t\t\tif(bn1.data[i] + bn2.data[i] != 0) {\n\t\t\t\tor[i] = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tor[i] = 0;\n\t\t\t}\n\t\t}\n\t\treturn or;\n\t}",
"public static void main(String[] args) {\r\n\r\n\t\tint N = 15;\r\n\t\tint reminder;\r\n\t\tint temp = 0;\r\n\t\tStringBuilder binaryValue = new StringBuilder();\r\n\t\tfor (int i = 0; N != 1; i++) {\r\n\t\t\treminder = N % 2;\r\n\r\n\t\t\tN = N / 2;\r\n\t\t\tbinaryValue = binaryValue.append(reminder);\r\n\t\t}\r\n\t\tif (N == 1) {\r\n\t\t\tbinaryValue.append(1);\r\n\t\t}\r\n\r\n\t\tbinaryValue = binaryValue.reverse();\r\n\t\t\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0; i < binaryValue.length(); i++) {\r\n\r\n\t\t\tif (binaryValue.charAt(i)=='1') {\r\n\t\t\t\tif (counter > temp) {\r\n\t\t\t\t\ttemp = counter;\r\n\t\t\t\t}\r\n\t\t\t\tcounter = 0;\r\n\t\t\t} else {\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t if(temp==0) {\r\n\t\t\t System.out.println(\"No Binary space\");\r\n\t\t }else {\r\n\t\t\t System.out.println(\"Binary space of given number is \" + temp); \r\n\t\t }\r\n\t\t\r\n\t}",
"public Percolation(int n) {\n // constructor\n count = n;\n uf = new WeightedQuickUnionUF(count * count + 2);\n idOpen = new int[n * n + 2];\n for (int j = 0; j < (n * n + 2); j++) {\n idOpen[j] = 0;\n }\n }",
"public static int fibonacciBUSE(int n) {\n\n\t\tint[] strg = new int[2];\n\t\tstrg[0] = 0;\n\t\tstrg[1] = 1;\n\n\t\tfor (int slide = 1; slide <= n - 1; slide++) {\n\n\t\t\tint sum = strg[0] + strg[1];\n\t\t\tstrg[0] = strg[1];\n\t\t\tstrg[1] = sum;\n\n\t\t}\n\n\t\treturn strg[1];\n\n\t}",
"@Override\n public Double window(int bin, int length) {\n length = length +1;\n \n double w = 1 - Math.pow((bin - (double) (length - 1) / 2)\n / ((double) (length + 1) / 2), 2);\n return w;\n }",
"public static int coins(int n) {\n int[] coins = {1,5,10,25};\n int[] s = new int[n+1];\n for(int i=1; i<=n; i++) {\n for(int j=0; j<coins.length && j<=i; j++) {\n if(i-coins[j] == 0) {\n s[i]++;\n }\n if(i-coins[j] > 0) {\n s[i] += s[i-coins[j]];\n }\n }\n }\n return s[n];\n }",
"private double[] b2() {\n double[] r = b;\n for (int j = 0; j < nBinVars2; j++) {\n r = Maths.append(r, 1d);\n }\n return r;\n }",
"public int hammingWeight(int n) {\n String unsignedString = Integer.toUnsignedString(n, 2);\n int sum = 0;\n for (int i = 0; i < unsignedString.length(); i++) {\n if (unsignedString.substring(i, i + 1).equals(\"1\"))\n sum++;\n }\n return sum;\n }",
"public java.lang.String getBin() {\r\n return bin;\r\n }",
"protected static float[] getBinomialKernelSigmaTwo() {\n double a = 1.f/33300l;\n return new float[]{\n (float) (1l * a), (float) (14l * a), (float) (90l * a),\n (float) (350l * a), (float) (910l * a), (float) (1638l * a),\n (float) (2002l * a), (float) (1430l * a), (float) (0l * a),\n (float) (-1430l * a), (float) (-2002l * a), (float) (-1638l * a),\n (float) (-910l * a), (float) (-350l * a), (float) (-90l * a),\n (float) (-14l * a), (float) (-1l * a)\n };\n }",
"private static int setBits(int n) {\r\n int highestBitValue = 1;\r\n int c = 0;\r\n\r\n while (highestBitValue < n) {\r\n highestBitValue = highestBitValue * 2;\r\n }\r\n\r\n \r\n int currentBitValue = highestBitValue;\r\n while (currentBitValue > 0) {\r\n if (currentBitValue <= n) {\r\n\r\n n -= currentBitValue;\r\n c++;\r\n }\r\n currentBitValue = currentBitValue / 2;\r\n }\r\n\r\n return c;\r\n }",
"public static int fibonacciBU(int n) {\n\n\t\tint[] strg = new int[n + 1];\n\n\t\tstrg[0] = 0;\n\t\tstrg[1] = 1;\n\n\t\tfor (int i = 2; i < strg.length; i++) {\n\t\t\tstrg[i] = strg[i - 1] + strg[i - 2];\n\t\t}\n\n\t\treturn strg[n];\n\n\t}",
"private int count1_bitcount(int [] ix, EChannel cod_info) {\n\t\tint p, i, k;\n\t\tint signbits;\n\t\tint sum0 = 0, sum1 = 0;\n\t\tint count1End = bigvalues_region + count1_region;\n\n\t\tfor(i = bigvalues_region, k=0; k < count1End; i+=4, k++) {\n\t\t\tv = Math.abs(ix[i]);\n\t\t\tw = Math.abs(ix[i+1]);\n\t\t\tx = Math.abs(ix[i+2]);\n\t\t\ty = Math.abs(ix[i+3]);\n\n\t\t\tp = signbits = 0;\n\t\t\tif(v!=0) { signbits++; p |= 1; }\n\t\t\tif(w!=0) { signbits++; p |= 2; }\n\t\t\tif(x!=0) { signbits++; p |= 4; }\n\t\t\tif(y!=0) { signbits++; p |= 8; }\n\n\t\t\tsum0 += signbits;\n\t\t\tsum1 += signbits;\n\n\t\t\tsum0 += hlen[32][p];\n\t\t\tsum1 += hlen[33][p];\n\t\t}\n\n\t\tif(sum0 < sum1) {\n\t\t\tcod_info.count1table_select = 0;\n\t\t\treturn sum0;\n\t\t} else {\n\t\t\tcod_info.count1table_select = 1;\n\t\t\treturn sum1;\n\t\t}\n\t}",
"public int index_bin(Example e) {\n\n int i;\n int index = -1; // -1 = EXAMPLES HAS UNKNOWN FEATURE VALUE\n int number_satisfied = 0;\n if (!Example.FEATURE_IS_UNKNOWN(e, feature_index)) { // written for checks, can be sped up\n for (i = 0; i < histogram_proportions.size(); i++) {\n if (Feature.EXAMPLE_MATCHES_FEATURE(\n e,\n histogram_features.elementAt(i),\n feature_index,\n histogram_features.elementAt(i).type)) {\n if ((index == -1) || (Algorithm.R.nextDouble() < 0.5)) {\n index = i;\n number_satisfied++;\n }\n }\n }\n if (index == -1) {\n System.out.println(e + \" :: \");\n for (i = 0; i < histogram_proportions.size(); i++)\n System.out.println(histogram_features.elementAt(i));\n\n Dataset.perror(\"Histogram.class :: example \" + e + \" has no bin in histogram \");\n }\n }\n return index;\n }",
"BigInteger getCount();",
"protected static float[] getBinomialKernelSigmaZeroPointSevenOne() {\n float a = 1.f/200.f;\n return new float[]{9*a, 83*a, 0, -83*a, -9*a};\n }",
"public int hammingWeight(int n) {\n int count = 0;\n while (n != 0) {\n count += n & 1;\n n = n >>> 1;\n }\n return count;\n }",
"public BloomFilter_utils( final int n, final int d ) {\r\n this.d = d;\r\n int len =\r\n \t(int)Math.ceil( ( (long)n * (long)d / NATURAL_LOG_OF_2 ) / 32 );\r\n // round up to ensure divisible into 1MiB chunks\r\n len = ((len / ONE_MB_INTS)+1)*ONE_MB_INTS;\r\n this.m = len*32L;\r\n if ( m >= 1L<<54 ) {\r\n \tthrow new IllegalArgumentException( \"This filter would require \" + m + \" bits\" );\r\n }\r\n// bits = new int[ len ];\r\n bits = new int[ len/ONE_MB_INTS ][ONE_MB_INTS];//生成bloom数组\r\n\r\n if ( DEBUG ) System.err.println( \"Number of bits: \" + m );\r\n\r\n // seeded for reproduceable behavior in repeated runs; BUT: \r\n // SecureRandom's default implementation (as of 1.5) \r\n // seems to mix in its own seeding.\r\n final SecureRandom random = new SecureRandom(new byte[] {19,96});\r\n weight = new int[ d ][];\r\n //生成d行[NUMBER_OF_WEIGHTS]列的随机数\r\n for( int i = 0; i < d; i++ ) {\r\n weight[ i ] = new int[ NUMBER_OF_WEIGHTS ];\r\n for( int j = 0; j < NUMBER_OF_WEIGHTS; j++ )\r\n weight[ i ][ j ] = random.nextInt();\r\n }\r\n }",
"public static BigInteger calculateModifiedFib(int a, int b, int n) {\n \n BigInteger[] fib_of_all = new BigInteger[n+2];\n fib_of_all[0] = BigInteger.valueOf(a);\n fib_of_all[1] = BigInteger.valueOf(b);\n\n\n\n BigInteger fib_of_n = BigInteger.valueOf(0);\n\n //fib_of_n = (fib_of_n+2) - (fib_of_n+1)2;\n\n for(int c = 2; c < n+2; c++) {\n \tfib_of_all[c] = fib_of_all[c-2].add(fib_of_all[c-1].pow(2));\n }\n\n return fib_of_all[n-1];\n }"
] |
[
"0.67884094",
"0.6780097",
"0.67383784",
"0.6613593",
"0.65254897",
"0.649183",
"0.64416945",
"0.6394614",
"0.6370435",
"0.6328456",
"0.63077337",
"0.62771213",
"0.62535256",
"0.621156",
"0.6189503",
"0.60970837",
"0.606085",
"0.60604125",
"0.6050967",
"0.6035588",
"0.5988259",
"0.59762824",
"0.5965765",
"0.595497",
"0.59540623",
"0.5948299",
"0.59436524",
"0.5913754",
"0.5912757",
"0.5897207",
"0.58944046",
"0.5881198",
"0.5866745",
"0.5848394",
"0.58435506",
"0.5840238",
"0.58389413",
"0.58384115",
"0.58003426",
"0.5795775",
"0.57931995",
"0.579233",
"0.57505167",
"0.57090074",
"0.5704362",
"0.5691203",
"0.5689625",
"0.5683704",
"0.5663312",
"0.56384796",
"0.56183547",
"0.5617376",
"0.5604697",
"0.5603594",
"0.5602358",
"0.5595098",
"0.5584933",
"0.5584461",
"0.558052",
"0.5576718",
"0.5565174",
"0.55646837",
"0.55646616",
"0.5563767",
"0.556193",
"0.5548915",
"0.55356926",
"0.5533163",
"0.5526585",
"0.55206823",
"0.55012304",
"0.5499701",
"0.54966",
"0.5493761",
"0.5493435",
"0.5490217",
"0.5488285",
"0.548348",
"0.54773617",
"0.546828",
"0.5458292",
"0.54415846",
"0.5441295",
"0.5433392",
"0.5429131",
"0.5426099",
"0.5418599",
"0.54086876",
"0.5398105",
"0.53873765",
"0.53736395",
"0.5368968",
"0.5368853",
"0.53645116",
"0.5361181",
"0.53593296",
"0.53539777",
"0.5350499",
"0.5346675",
"0.5346007"
] |
0.80626214
|
0
|
Method that returns a factorial of given input n
|
private double factorial(int n) {
if (n < 0 || n > 32) {
return -1;
}
return factorials[n];
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static int factorial(int n) {\n int res = 0;\n if (n == 0) res = 1;\n if (n > 0) res = n*factorial(n-1);\n return res;\n }",
"public static int factorial(int n){\n if(n <= 1){\n return 1;\n }\n else{\n return n*factorial(n-1);\n }\n }",
"private static int factorial(int n) {\n if (n <= 0) {\n return 1;\n }\n\n return n * factorial(n - 1);\n }",
"private static BigInteger getFactorial(int n) {\n BigInteger fact = BigInteger.ONE;\n for (int i = n; i > 1; i--) {\n fact = fact.multiply(new BigInteger(Integer.toString(i)));\n }\n return fact;\n }",
"private static int factorial(int n) {\n if (n == 1 || n == 0)\n return 1;\n else\n return n * factorial(n - 1);\n }",
"int factorial(int n){\n return (n==1||n==0)?1: n*factorial(n-1);\n }",
"public static int factorial(int n) {\n\t\tif(n == 0 || n == 1) \n\t\t\treturn 1;\n\t\t\n\t\treturn n * factorial(n - 1);\n\t}",
"public static int factorial(int n) \n\t{\n\t\t\n\t\tif(n<=1) \n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\treturn n*factorial(n-1);\n\t}",
"public static double factorial(double n) {\r\n if (n <= 1)\r\n return 1;\r\n else\r\n return n * factorial(n - 1);\r\n }",
"public static double factorial(long n){\n\tdouble fac = 1;\n\tif(n <= 0) return fac;\n\tfor (int i=1; i<=n; i++) fac *= i;\n\treturn fac;\n }",
"public int factorial(int n) {\n\t\tif(n<0 || n>Integer.MAX_VALUE)\n\t\t\treturn (int) Double.NaN;\n\t\t\n\t\tint fact=1; \n\t\tfor(int i=1;i<=n;i++){ \n\t\t fact=fact*i; \n\t\t} \n\t\treturn fact;\n\t}",
"public static long factorial(int n){\n long fact=1;\n for(int i=1;i<=n;i++){\n fact=(fact*i);\n }\n return fact;\n }",
"public static double factorial(double n) {\n if (n > 1) {\n return n * factorial(n - 1);\n } else {\n return 1;\n }\n }",
"public static int factorial(int n) {\n //Base case\n /* Strictly, checking if n < 1 is enough, however\n ** checking for 1 as well saves a recursion.\n */\n if(n <= 1)\n return 1;\n return n * factorial(n - 1);\n }",
"public long factorial(int n)\n\t{\n\t\tint product = 1;\n\n\t\tfor (int i = n; i >= 1; i--)\n\t\t{\n\t\t\tproduct *= i;\n\t\t}\n\n\t\treturn product;\n\t}",
"public static long factorial(long n) {\n if (n==1)\n return n;\n else\n return (n*factorial(n-1));\n }",
"public static long computeFactorial(int n) {\n if(n<0 || n > 15) throw new IllegalArgumentException(\"Invalid input. N must be >= 0 \");\n if(n==0 || n==1)\n return 1;\n //ddieu kien dung cua de quy \n //song sot den lenh cho nayf thi n chac chan roi vao 2.......15\n return n*computeFactorial(n-1); // n*(n-1)\n \n }",
"public static String factorial(int n) {\n if(n<0)\n {\n return \"\"+0;\n }\n //int result = (n == 0) ? 1 : (n < 0) ? 0 : n * Integer.parseInt(factorial(n - 1));\n BigDecimal a = BigDecimal.ONE;\n BigDecimal b = BigDecimal.valueOf(n);\n\n while (b.compareTo(BigDecimal.ONE) == 1)\n {\n a = a.multiply(b);\n b = b.subtract(BigDecimal.ONE);\n }\n return \"\"+a;\n }",
"public static int factorialiterativa(int n){\n if(n>0){\r\n factorialrecursiva(n-1);//LLAMO A LA RECURSIVA\r\n }else {\r\n return 1;\r\n }\r\nreturn factorialrecursiva(n-1);\r\n }",
"public static int factoriel(int n) {\n\t\tif(n <= 1) {\n\t\t\treturn 1;\n\t\t}else {\n\t\t\treturn n * factoriel(n - 1);\n\t\t}\n\t}",
"static long factorialLoop(int n) {\r\n if (n == 0 || n == 1) {\r\n return 1;\r\n }\r\n int accum = 1;\r\n for(int i=n; i>0; i--) {\r\n accum *= i;\r\n }\r\n return accum;\r\n }",
"static long factorialRecurse(int n) {\r\n if (n == 0 || n == 1) {\r\n return 1;\r\n }\r\n return factorialRecurse(n - 1) * n;\r\n }",
"public int fact(int n){\n if(n == 1){\n return 1;\n }\n return n * (fact(n-1));\n }",
"public static String factorial(int n) {\n if (n < 0)\n return \"0\";\n else if (n == 0)\n return \"1\";\n else {\n //см. import java.math.BigDecimal\n //Начальное значение fac = 1!\n BigDecimal fac = BigDecimal.valueOf(1);\n //далее через цикл вычисляем fac = n!\n for (; n > 1 ; n--)\n fac = fac.multiply(BigDecimal.valueOf(n));\n\n //преобразуем в строку и вовзвращаем\n return fac.toString();\n }\n }",
"public static int fact(int n) {\n if (n == 0 || n == 1) {\r\n return 1;\r\n } else {\r\n return n * fact(n - 1);\r\n }\r\n }",
"public static int fact(int n) {\n\t\tif (n <= 0) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn n * fact(n - 1);\n\t\t}\n\t}",
"private int factorialUsingStreams(int n) {\r\n return IntStream.rangeClosed(1, n).reduce(1, (int x, int y) -> x * y);\r\n }",
"public static long factorial(int n) throws NumberOutOfLimitsException{\n \tif(n<0){\n \t\tthrow new NumberOutOfLimitsException();\n \t}\n if(n==0){\n return 1;\n }else{\n return n*factorial(n-1);\n }\n }",
"public static long fact(int n) {\n if (n <= 0) return 1;\n long f = 1;\n for (int i = 1; i <= n; i++) {\n f *= i;\n }\n return f;\n }",
"public static int fact(int n){\n\t if(n < 0){\n\t return 0;\n\t }\n\t if(n == 0 || n == 1){\n\t return 1;\n\t }\n\t else{\n\t return n*fact(n-1); \n\t }\n\t}",
"public static int fac(int n) {\n if(n == 1) {\n return 1;\n }\n return n*fac(n-1);\n }",
"static BigInteger fact(int n)\n {\n BigInteger res = BigInteger.ONE;\n for (int i = 2; i <= n; i++)\n res = res.multiply(BigInteger.valueOf(i));\n return res;\n }",
"static int fact(int n)\n\n {\n\n int res = 1;\n\n for (int i = 2; i <= n; i++)\n\n res = res * i;\n\n return res;\n\n }",
"public static Inatnum factorial(int n) throws Exception{\n Inatnum res = new zeronatnum().succ(); // we need to initialize res which is set as a nonzero natural number\n Inatnum dis = new zeronatnum(); for(int i=n;i>=1;i--) {dis=dis.succ();} // dis is initialized as a new non zero natural number and \n Inatnum res1 = res; Inatnum dis1 = dis; //new versions of res and dis are initiated\n while(dis1.getVal()>0) { \n res1 = res1.multiply(dis1); dis1=dis1.pred();\n }Inatnum newone = new zeronatnum(); \n while(newone.getVal()!= res1.getVal()) {\n newone = newone.succ(); // initiated newone which is the successor of newone\n }return newone; // returns newone once the loop ends\n }",
"private static int fact(int n) {\n\t\tint prod = 1;\n\t\tfor (int i = 1; i <= n; prod *= i++)\n\t\t\t;\n\t\treturn prod;\n\t}",
"int fact(int n) {\n if (n <= 1)\n return 1;\n else\n return n * fact(n-1);\n}",
"public static int fact(int n) {\n\t\t\tif (n == 1 || n == 0) \n\t\t\t\treturn 1;\n\t\t\treturn n * fact(n - 1);\n\t\t}",
"public int factorial(int num) \n {\n number = num;\n f=1;\n for(i=1; i<=number; i++)\n {\n f=f*i;\n }\n return f;\n }",
"public int fact(int n) {\n if (n == 0 || n == 1) {\r\n // Return 1\r\n return 1;\r\n }\r\n // Anthing else? 2 times 1!\r\n return n * fact(n - 1);\r\n }",
"@Pure\n\tpublic static BigInteger factorialPrecise(long n) throws IllegalArgumentException\n\t{\n\t\tif (n < 0) throw new IllegalArgumentException(\"n must be positive.\");\n\t\tif (n == 0 || n == 1) return BigInteger.ONE;\n\t\tBigInteger ret = BigInteger.valueOf(n);\n\n\t\twhile (n-- > 1)\n\t\t{\n\t\t\tret = ret.multiply(BigInteger.valueOf(n));\n\t\t}\n\n\t\tassert n == 0 : n;\n\n\t\treturn ret;\n\t}",
"public long factorial(int num){\r\n long f=1;\r\n for(int i=1;i<=num;i++)\r\n f=f*i;\r\n \r\n if(num>=1) return f;\r\n else if(num==0)return 1;\r\n \r\n return 1;\r\n }",
"static int factorial(int n, int c, int d) \n { \n System.out.println(\"Parameter added: \" + c + d);\n int res = 1, i; \n for (i=2; i<=n; i++) \n res *= i; \n return res; \n }",
"private static double fact(int n) {\n\t\tdouble sum = 1;\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tsum *= i;\n\t\t}\n\t\treturn sum;\n\t}",
"public Integer factorial(Integer number){\n int fact = 1;\n for (int i = number; i > 0; i--){\n fact *=i;\n }\n return fact;\n }",
"public Integer factorial(Integer number){\n int result = 1;\n for (int i =1;i<=number;i++)\n {\n result *= i;\n }\n return result;\n }",
"@Pure\n\tpublic static long factorialExact(int n) throws IllegalArgumentException, ArithmeticException\n\t{\n\t\tif (n < 0) throw new IllegalArgumentException(\"n:\" + n);\n\t\tif (n > 20) throw new ArithmeticException(\"Cannot calculate factorial for n higher than 20.\");\n\t\tif (n == 0 || n == 1) return 1;\n\t\tlong ret = n;\n\n\t\twhile (n-- > 1)\n\t\t{\n\t\t\tret *= n;\n\t\t}\n\n\t\tassert ret > 0 : ret;\n\t\tassert n == 0 : n;\n\n\t\treturn ret;\n\t}",
"private long factorial(int i) {\n\t\t/*\n\t\t * if the number is greater than 1, then we continue\n\t\t * else we return our results\n\t\t */\n\t\tif(i > 1)\n\t\t\treturn factorial(i -1) * i;\n\t\treturn i;\n\t}",
"public static String Factorial(int n) {\n if (n < 0) return null;\n return factorial(n).toString();\n }",
"public static void extraLongFactorials(int n) {\r\n BigInteger fact = BigInteger.valueOf(1);\r\n for (int i = 1; i <= n; i++) {\r\n fact = fact.multiply(BigInteger.valueOf(i));\r\n }\r\n System.out.println(fact);\r\n }",
"public static BigInteger calcuateFactorial(int x ){\n BigInteger res=new BigInteger(\"1\");\n for (int i=1;i<=x;i++){\n res=res.multiply(BigInteger.valueOf(i));\n }\n return res;\n\n }",
"public static int combinationFactorial(int n, int k) {\n\t\treturn fact(n) / (fact(k) * fact(n - k));\n\t}",
"public double findFactorial(double num) \r\n\t{ \r\n\t if (num == 0) \r\n\t return 1; \r\n\t return num * findFactorial(num - 1); \r\n\t}",
"public int factorial_2(int n) {\n // Base case: if n is 1, we can return the answer directly\n if (n == 1) return 1;\n\n // Recursion: otherwise make a recursive call with n-1\n // (towards the base case), i.e. call factorial(n-1).\n // Assume the recursive call works correctly, and fix up\n // what it returns to make our result.\n return n * factorial(n-1);\n }",
"static int fact1(int n)\n {\n if(n == 0 || n == 1)\n return 1;\n return n * fact1(n-1);\n }",
"public static long factorial(long number){\n if (number == 0){\n return 1;\n } else {\n// return result;\n return number * factorial(number - 1);\n }\n }",
"public static BigInteger fact(int n) {\n\t\t\t if (! fact_cache.containsKey(n)) {\n\t\t\t BigInteger f = BI1;\n\t\t\t for (int i=1; i < n-1; i++) {\n\t\t\t f = f.multiply(oddprod(BI3, BI2.pow(i+1).subtract(BI1)));\n\t\t\t }\n\t\t\t f = bigpow(BI2, BI2.pow(n).subtract(BI1)).multiply(f);\n\t\t\t fact_cache.put(n, f);\n\t\t\t }\n\t\t\t return fact_cache.get(n);\n\t\t\t }",
"public static long factorial(int num)\n {\n if (num >= 1) {\n System.out.println(\"before num = \" + num);\n return factorial(num - 1) * num;\n\n }\n else\n return 1;\n }",
"public Factorial(int number) {\n\t\tthis.number = number;\n\t}",
"public static long factorial(int num){\n\n if(num < 0){\n throw new UnsupportedOperationException(Util.NEGATIVE_MESSAGE);\n }\n long result = 1;\n\n if(num == 0)\n return result;\n\n else{\n while(num > 0){\n result = result * num ;\n num --;\n }\n }\n\n return result;\n }",
"private static Long calculFactorial(Long number) {\n\t\tif (number > 1) {\n\t\t\treturn number * calculFactorial(number - 1);\n\t\t} else {\n\t\t\treturn 1L;\n\t\t}\n\t}",
"private static int factorial(int num) {\n /**\n * validation\n */\n if (num < 0) {\n throw new IllegalArgumentException(\"num is invalid\");\n }\n\n /**\n * base case\n */\n if (num == 0) {\n return 1;\n }\n\n /**\n * recursive case\n */\n\n return num * factorial(num - 1);\n }",
"public static int factorial(int i){\r\n\r\n\t\tif (i == 1){\r\n\t\t\treturn 1;\r\n\t\t}\t\r\n\r\n\t\tif (i >= 1){\r\n\t\t\treturn i*factorial(i-1);\r\n\t\t}\r\n\r\n\t\treturn 0;\r\n\t}",
"public long getFactorial() \r\n\t// method body, part of method declaration after the method header\r\n\t{ \r\n\t\treturn factorial;\r\n\t}",
"public int calcularFatorial(int n) throws IllegalArgumentException {\n\t\tif(n<0) \n\t\t\tthrow new IllegalArgumentException(\"não existe fatorial para numeros negativo\");\n\t\tint resultado = 1;\n\t\tif (n!=0) {\n\t \tfor(int i = 2 ;i<=n;i++)\n\t \t resultado*=i;\n\t\t}\n\t\n\t\treturn resultado;\n\n\t}",
"int main(){\n int n, f = 1;\n cin>>n;\n for(int i = 1;i <= n;i++)\n f*=i;\n cout<<f;\n}",
"public void factorialNumber(int fact){\n int i = 1;\n long factorial = 1;\n while(i <= fact)\n {\n factorial *= i;\n i++;\n System.out.print(factorial+\" \");\n }\n System.out.println();\n System.out.printf(\"Factorial of %d = %d\", fact, factorial);\n }",
"private static int iterrativeFactorial(int value) {\n int result = 1;\n for (int i = value; i > 0; i--) {\n result = result * i;\n }\n return result;\n }",
"public static BigInteger factorial(BigInteger num){\n if(num.equals(BigInteger.ZERO)){\n return BigInteger.ONE;\n }else{\n BigInteger nMin = factorial(num.subtract(BigInteger.ONE));\n return num.multiply(nMin);\n }\n }",
"public static BigInteger factorialBig(BigInteger n) throws NumberOutOfLimitsException{\n \tif(n.compareTo(BigInteger.ZERO)<0){\n \t\tthrow new NumberOutOfLimitsException();\n \t}\n \tif (n.equals(BigInteger.ZERO)){\n \treturn BigInteger.ONE;\n }else{\n \treturn n.multiply(factorialBig(n.subtract(BigInteger.ONE)));\n }\n }",
"public void FactorialNumber() \r\n\t{\r\n\t\tint i,factNum=1,number;\r\n\t\tSystem.out.println(\"Enter a number\"); \r\n\t\tnumber=sc.nextInt(); //Read the number to calculate factorial\r\n\t\t\r\n\t\tfor(i=1;i<=number;i++)\r\n\t\t{\r\n\t\t\tfactNum = factNum*i;\r\n\t\t}\r\n\t\tSystem.out.println(+factNum);\r\n\t\t\r\n\t}",
"public static long pureRecursive (int n)\r\n {\r\n if (n<1)\r\n throw new IllegalArgumentException(\"Number is non-positive!\");\r\n else if (n==1)\r\n return (n);\r\n else\r\n return (n * pureRecursive(n-1));\r\n }",
"public static long factorialUsingRecursion (int num){\n\n if(num < 0){\n throw new UnsupportedOperationException(Util.NEGATIVE_MESSAGE);\n }\n\n if(num == 0)\n return 1;\n\n return num*factorialUsingRecursion(num-1);\n\n }",
"public static int factorial(int p){\n\t\t// in this application p cannot be negative, so no logic for negative factorials\n\t\t// is included. if p=0 or 1 then 1 is returned.\n\t\t// if p>1 then p! is returned\n\t\t// also, in this application p is small (p will generally be 5, \n\t\t// but could range from 2 to 7)\n\t\t// so no logic for large p or exception handling for memory overflow is included\n\t\tint returnValue = p;\n\t\tif(p > 1) {\n\t\t\tfor(int m = 1; m < p; m++){\n\t\t\t\treturnValue = returnValue*(p-m);\n\t\t\t}\n\t\t} else if(p==0) {\n\t\t\treturnValue = 1;\n\t\t}\n\t\treturn(returnValue);\n\t}",
"public static long iterative (int n)\r\n {\r\n long mult=1;\r\n while(true)\r\n {\r\n if (n<1)\r\n throw new IllegalArgumentException(\"Number is non-positive!\");\r\n if (n==1)\r\n return (mult*n);\r\n mult=mult*n;\r\n n=n-1;\r\n }\r\n }",
"public static double factorial(int fact) {\r\n\t\t\t\r\n\t\t\tdouble aux=1;\r\n\t\t\t\r\n\t\t\tfor(int i=2; i<=fact;i++) {\r\n\t\t\t\t\r\n\t\t\t\taux*=i;\r\n\t\t\t}\r\n\t\t\treturn aux;\r\n\t\t}",
"public int nthUglyNumber2(int n) {\n Queue<Long> choushu = new PriorityQueue<>();\n if (n == 1)\n return 1;\n choushu.offer((long) 1);\n int[] factor = {2, 3, 5};\n for (int i = 2; i <= n; i++) {\n long num = choushu.poll();\n for (int f : factor) {\n long tmp = f * num;\n if (!choushu.contains(tmp))\n choushu.offer(tmp);\n }\n System.out.println(MessageFormat.format(\"num:{0},list:{1}\", num, printQueue(choushu)));\n }\n return choushu.poll().intValue();\n }",
"public static int FermatPT(int n) {\n\n for (int i = 2; i < (n/3); i++) {\n\n if((longPow(i,n-1,n))!=1){\n return i;\n }\n\n }\n\n\t\treturn 0;\n\t}",
"int main(){\n int f =1,n,i;\n cin>>n;\n for(i=2;i<=n;i++)\n f *= i;\n cout<<f;\n return 0;\n \n}",
"private static int choose(int n, int k) {\n return factorial(n) / (factorial(k) * factorial(n - k));\n }",
"public static int recursiveFactorial(int num){\n\n //base case\n if(num == 0){\n return 1;\n }\n\n //recursive call\n return num * recursiveFactorial(num-1);\n\n //int 3 would be recursing down to recursiveFactorial(0), checking each time for base case\n //adding to call stack, then recursing up in reverse order through the\n // call stack to recursiveFactorial(3) with 3 * 2\n // or num - 1\n\n //sample call stack\n //recursiveFactorial(0) = returns right away, then pops and recurses up\n //recursiveFactorial(1)\n // recursiveFactorial(2)\n //recursiveFactorial(3)\n }",
"public static BigInteger factorial(int value) {\n BigInteger res = BigInteger.ONE;\n for(int i = 2; i <= value; i++) {\n res = res.multiply(BigInteger.valueOf(i));\n }\n return res;\n }",
"private static int betterSolution(int n) {\n return n*n*n;\n }",
"public static void main(String[] args) {\n\r\n\r\n Scanner sc = new Scanner(System.in);\r\n System.out.println(\"Enter a number to find its factorial\");\r\n int n = sc.nextInt();\r\n\r\n for(int i = 1 ; i<=n; i++)\r\n {\r\n if(n % i ==0) {\r\n System.out.println(i + \" is factorial\");\r\n }\r\n }\r\n\r\n }",
"static boolean isFactorialPrime(long n)\n {\n \n // If n is not prime then return false\n if (!isPrime(n))\n return false;\n \n long fact = 1;\n int i = 1;\n while (fact <= n + 1) {\n \n // Calculate factorial\n fact = fact * i;\n \n // If n is a factorial prime\n if (n + 1 == fact || n - 1 == fact)\n return true;\n \n i++;\n }\n \n // n is not a factorial prime\n return false;\n }",
"public static BigInteger factorial(BigInteger num) {\n\t\tif(num.equals(new BigInteger(\"1\"))) {\n\t\t\treturn new BigInteger(\"1\");\n\t\t}\n\t\telse {\n\t\t\treturn num.multiply(factorial(\n\t\t\t\t\tnum.subtract(new BigInteger(\"1\"))));\n\t\t}\n\t}",
"public static void printFactorial(StringBuilder s, int i){\r\n\r\n\t\tif(i >= 1){\r\n\t\t\tSystem.out.printf(\"%sfactorial(%d)\\n\", s,i);\r\n\t\t\ts = s.append(\" \");\r\n\t\t\tprintFactorial(s, i-1);\r\n\t\t}\r\n\r\n\t\tif(i == 1){\r\n\t\t\tSystem.out.printf(\"%sreturn %d\\n\", s, i);\r\n\t\t\ts = s.delete(s.indexOf(\" \"),3);\r\n\t\t\tSystem.out.printf(\"%sreturn %d*%d = %d \\n\", s, i, i, i);\r\n\t\t\ts = s.delete(s.indexOf(\" \"),3);\r\n\t\t}\r\n\r\n\t\tif(i > n+1){\r\n\t\t\tSystem.out.printf(\"%sreturn %d*%d = %d \\n \", s, i, factorial(i-1), factorial(i));\r\n\t\t\ts = s.delete(s.indexOf(\" \"), 3);\r\n\t\t}\r\n\r\n\t}",
"public static void main(String args[])\n {\n Scanner input = new Scanner(System.in);\n //taking the number\n int num = input.nextInt();\n System.out.println(factorial(num));\n }",
"public static double mathConst(double x, int n){\n double result = 0;\n double item;\n double nominator = 1;\n for(int i = 0; i <= n; i++){\n if(i == 0){\n nominator = 1;\n }else {\n nominator = nominator * x;\n }\n item = nominator / factorial(i);\n result = result + item;\n }\n return result;\n }",
"public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"enter a number: \");\n\t\t\n\t\tint n = 10; //scan.nextInt();\n\t\tint fact=1;\n\t\tint i=1;\n\t\twhile(i<=n) {\n\t\t\t\n\t\t\tfact = fact*i;\n\t\t\ti++;\n\t\t}\n\t\t\t\tSystem.out.println(\"factorial of \"+n+ \" is: \"+fact);\n\t\t\n\t\t//method2\n\t\tint fact1=1;\n\t\t\n\t\tfor(int k=1;k<=n;k++) {\n\t\t\tfact1 = fact1*k;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"factorial of \"+n+ \" is: \"+fact1);\n\t}",
"public static int next(int n)\n { \n int x = 0;\n if(n%2 == 0)\n {\n return n/2;\n }\n else\n {\n return (3*n)+1;\n }\n }",
"public int factoring(int N) {\n\tfor (int i = N-1; i >= 1; i--)\n\t\tif (N % i == 0)\n\t\t\treturn i;\n\treturn 1;\n}",
"@Test\n public void nthFactorialOne() throws Exception {\n assertEquals(1,Factorial.nthFactorial(1));\n }",
"private static int get_number(int i, int j) { n n!\n// C = _____________\n// r (n-r)! * r!\n//\n return factorial(i)/(factorial(i-j)* factorial(j));\n }",
"public static long u(int n)\r\n\t{\r\n\t\tlong result = 0;\r\n\t\tlong current = 1;\r\n\t\tfor (int i = 0; i <= 10; i++)\r\n\t\t{\r\n\t\t\tif (i % 2 == 0)\r\n\t\t\t{\r\n\t\t\t\tresult += current;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tresult -= current;\r\n\t\t\t}\r\n\t\t\tcurrent *= n;\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}",
"public static long optimisedFib(long n){\n\n if(memo.containsKey(n)){\n return memo.get(n);\n }\n\n if(n < 2){\n memo.put(n, n);\n return n;\n }\n\n long f = optimisedFib(n-1) + optimisedFib(n-2);\n memo.put(n, f);\n\n return f ;\n\n }",
"public static long F(long n) {\n\t\tif (n <= 4) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (n==5) {\n\t\t\treturn 8;\n\t\t} if (n==6) {\n\t\t\treturn 45;\n\t\t} if (n==7) {\n\t\t\treturn 138;\n\t\t} if (n==8) {\n\t\t\treturn 362;\n\t\t}\n\t\t\n\t\tlong m = 9;\n\t\t// F(7) = 138, F(8) = 362\n\t\tlong recPrev=138;\n\t\tlong recCurrent=362;\n\n\t\twhile (n >= m) {\t\n\t\t\tif (m %6 == 0) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 38;\n\t\t\t\trecPrev = current;\n\t\t\t} if (m%6== 1) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 36;\n\t\t\t\trecPrev = current;\n\t\t\t} if (m%6==2 || m%6==3 || m%6==5) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 32;\n\t\t\t\trecPrev = current;\n\t\t\t} if (m%6==4){\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 30;\n\t\t\t\trecPrev = current;\n\t\t\t}\n\t\t\tm +=1;\n\t\t}\n\t\treturn recCurrent;\n\t}",
"static int recursiva1(int n)\n\t\t{\n\t\tif (n==0)\n\t\t\treturn 10; \n\t\tif (n==1)\n\t\t\treturn 20; \n\t\treturn recursiva1(n-1) - recursiva1 (n-2);\t\t\n\t\t}",
"static int recursiva2(int n)\n\t\t{\n\t\t\tif (n==0)\n\t\t\treturn 10; \n\t\t\tif (n==1)\n\t\t\treturn 20;\n\t\t\tif (n==2)\n\t\t\treturn 30;\n\t\t\t\n\t\t\treturn recursiva2(n-1) + recursiva2 (n-2) * recursiva2 (n-3); \n\t\t}",
"private int recursiveFib(int n) {\r\n if (n <= 2) {\r\n return 1;\r\n }\r\n \r\n return recursiveFib(n - 2) + recursiveFib(n - 1);\r\n }",
"private double factorial(double x) {\r\n double fact=1;\r\n for (double i = x; i > 0; i=i-1) {\r\n fact = fact*i;\r\n }\r\n if(((int)x)!=x) {\r\n fact=fact*SQRTPI;\r\n }\r\n return fact;\r\n }"
] |
[
"0.8702912",
"0.86847097",
"0.8683698",
"0.8645021",
"0.8621138",
"0.8595137",
"0.8487034",
"0.8464075",
"0.8385911",
"0.8378032",
"0.83525395",
"0.8350924",
"0.833206",
"0.83223087",
"0.8311991",
"0.8289453",
"0.8232638",
"0.81714076",
"0.80987364",
"0.80320424",
"0.8024074",
"0.77822936",
"0.77615005",
"0.77517176",
"0.76815057",
"0.76467305",
"0.76437163",
"0.76414156",
"0.7620946",
"0.7529291",
"0.75130147",
"0.75079566",
"0.74591523",
"0.7457666",
"0.74482816",
"0.74475604",
"0.7441856",
"0.7441252",
"0.7440007",
"0.73921555",
"0.7364198",
"0.7325275",
"0.7305413",
"0.7270038",
"0.72457635",
"0.7241259",
"0.7234557",
"0.7231815",
"0.71856153",
"0.7095831",
"0.7093967",
"0.7080696",
"0.7061857",
"0.70565754",
"0.7014717",
"0.69958967",
"0.6982599",
"0.6980506",
"0.69758254",
"0.69717747",
"0.6959516",
"0.69413114",
"0.69400716",
"0.69266605",
"0.68913156",
"0.68754923",
"0.68285346",
"0.67992103",
"0.67989254",
"0.6775796",
"0.6769285",
"0.676537",
"0.6747951",
"0.6739851",
"0.66888577",
"0.66566926",
"0.6613003",
"0.66113144",
"0.65740263",
"0.65214616",
"0.6520262",
"0.6513504",
"0.64946944",
"0.64927435",
"0.64658374",
"0.64334095",
"0.6433035",
"0.6417344",
"0.6417271",
"0.6399805",
"0.6379515",
"0.6353785",
"0.63449246",
"0.63445944",
"0.63349354",
"0.63249415",
"0.6322896",
"0.63191897",
"0.6301947",
"0.6295204"
] |
0.8305424
|
15
|
Almost the main method of our Class it calculates and stores the values in the array p
|
public void Bezier2D(double[] b, int cpts, double[] p) {
int numberOfpoints = (b.length) / 2;
int icounter, jcounter;
double step, t;
// We calculate the points of the curve
icounter = 0;
t = 0;
step = (double) 1.0 / (cpts - 1);
for (int i1 = 0; i1 != cpts; i1++) {
if ((1.0 - t) < 5e-6) {
t = 1.0;
}
jcounter = 0;
p[icounter] = 0.0;
p[icounter + 1] = 0.0;
for (int i = 0; i != numberOfpoints; i++) {
double basis = bernstein(numberOfpoints - 1, i, t);
p[icounter] += basis * b[jcounter];
p[icounter + 1] += basis * b[jcounter + 1];
jcounter = jcounter + 2;
}
icounter += 2;
t += step;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"double getPValue();",
"public static void Main()\n\t{\n\t\tdouble[] p = new double[100];\n\t\tint m;\n\t\tint n;\n\t\tint i;\n\t\tint j;\n\t\tString tempVar = ConsoleInput.scanfRead();\n\t\tif (tempVar != null)\n\t\t{\n\t\t\tm = Integer.parseInt(tempVar);\n\t\t}\n\t\tfor (i = 0;i < m;i++)\n\t\t{\n//C++ TO JAVA CONVERTER TODO TASK: The memory management function 'malloc' has no equivalent in Java:\n\t\t\tp[i] = (double)malloc(100 * (Double.SIZE / Byte.SIZE));\n\t\t}\n\t\tfor (i = 0;i < m;i++)\n\t\t{\n\t\t\tString tempVar2 = ConsoleInput.scanfRead();\n\t\t\tif (tempVar2 != null)\n\t\t\t{\n\t\t\t\tn = Integer.parseInt(tempVar2);\n\t\t\t}\n\t\t\tfor (j = 0;j < n;j++)\n\t\t\t{\n\t\t\t\tString tempVar3 = ConsoleInput.scanfRead();\n\t\t\t\tif (tempVar3 != null)\n\t\t\t\t{\n\t\t\t\t\tp[i] + j = tempVar3;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"%.5lf\\n\",s(p[i], n));\n\n\t\t}\n\t}",
"public void calcP() {\r\n\t\tthis.setP(sick/people.size());\r\n\t}",
"public void calcularPesos(){\r\n StructursDecisors.weightsDecisors=new ArrayList();\r\n double [][] matrizEigenvectors=createMatriz();\r\n for(int i=0; i<Structurs.names.size();i++)\r\n for(int j=0; j<StructursDecisors.names.size(); j++)\r\n System.out.println(\"MatrizEigenvector[\"+i+\"][\"+j+\"]\"+\"=\"+matrizEigenvectors[i][j]);\r\n double eigenvectorCriterios[]=new double[Structurs.eigenvector.size()];\r\n for(int i=0; i<Structurs.eigenvector.size(); i++)\r\n eigenvectorCriterios[i]=(double) Structurs.eigenvector.get(i);\r\n double []vectorPesos=createArrayPesos(matrizEigenvectors, eigenvectorCriterios);\r\n \r\n }",
"public void get_InputValues(){\r\n\tA[1]=-0.185900;\r\n\tA[2]=-0.85900;\r\n\tA[3]=-0.059660;\r\n\tA[4]=-0.077373;\r\n\tB[1]=30.0;\r\n\tB[2]=19.2;\r\n\tB[3]=13.8;\r\n\tB[4]=22.5;\r\n\tC[1]=4.5;\r\n\tC[2]=12.5;\r\n\tC[3]=27.5;\r\n\tD[1]=16.0;\r\n\tD[2]=10.0;\r\n\tD[3]=7.0;\r\n\tD[4]=5.0;\r\n\tD[5]=4.0;\r\n\tD[6]=3.0;\r\n\t\r\n}",
"public static void main(String[] args) {\n\n int[] range = new int[100];\n\n\n for (int i = 0; i<range.length; i++) {\n range[i]=i+2;\n }\n /*\n for (int i = 1; i <prange; i++) {\n System.out.println(numbers[i]);\n\n\n }\n\n primearray obj = new primearray(numbers);\n for (int i = 1; i <prange; i++) {\n System.out.println(obj.range[i]);\n\n\n }*/\n primearray obj = new primearray(range);\n\n obj.perform();\n\n\n\n\n }",
"public void calcOutput()\n\t{\n\t}",
"public abstract double evaluate(Point p);",
"@java.lang.Override\n public double getPValue() {\n return pValue_;\n }",
"public void multiply(Polynomial p1) {\n\t\tPolynomial p=new Polynomial();\r\n\t\t// taking 2 loops to multiply the coeff and storing it in this newly created polnomial\r\n\t\tfor(int i=0;i<p1.DynArray.length;i++) {\r\n\t\t\tfor(int j=0;j<this.DynArray.length;j++) {\r\n\t\t\t\t// checking if degree is smaller to initial degree then storing\r\n\t\t\t\tif(i + j <=p.degree)\r\n\t\t\t\t\tp.setDegreeCoefficient( i + j ,p.DynArray[i+j]+p1.DynArray[i] * this.DynArray[j]);\r\n\t\t\t\telse\r\n\t\t\t\t\t// otherwise we'll not have anythig there to add so just putting multiply result\r\n\t\t\t\t\t// this is similar step just like u do in maths multiplication\r\n\t\t\t\t\tp.setDegreeCoefficient(i + j ,p1.DynArray[i] * this.DynArray[j]);\r\n\t\t\t}\r\n\t\t}\r\n//\t\t// p2 -> this\r\n//\t\tint[] updatedArr = new int[10];\r\n//\t\t\r\n//\t\tfor(int i = 0; i < this.DynArray.length; i++) {\r\n//\t\t\tint[] temp = new int[10];\r\n//\t\t\tfor(int j = 0 ; j < p1.DynArray.length; j++) {\r\n//\t\t\t\tint index = i+j;\r\n//\t\t\t\ttemp[index] = this.DynArray[i]*p1.DynArray[j];\r\n//\t\t\t}\r\n//\t\t\t// adding empty arr/ updatedArr and temp arr\r\n//\t\t\tfor(int j = 0 ; j <temp.length; j++) {\r\n//\t \t\t\tupdatedArr[j] = updatedArr[j] + temp[j];\r\n//\t\t\t}\r\n//\t\t}\r\n//\t\t\r\n//\t\t// coping all elements from updatedArr to p2/ this\r\n//\t\tfor(int i=0;i<updatedArr.length;i++) {\r\n//\t\t\tthis.DynArray[i] = updatedArr[i];\r\n//\t\t}\r\n\t}",
"@java.lang.Override\n public double getPValue() {\n return pValue_;\n }",
"public double getPValue(WILCOXON_H0 h0) {\n if ( observations.size() == 0 )\n return -1.0;\n \n // dither to break rank ties\n dither();\n \n // sort\n Collections.sort(observations, new PairComparator());\n \n // sum\n double sum = 0.0;\n int n1 = 0;\n for (int i = 0; i < observations.size(); i++) {\n if ( observations.get(i).second == WILCOXON_SET.SET1 ) {\n sum += i+1;\n n1++;\n }\n }\n int n2 = observations.size() - n1;\n \n // todo -- these are actually integers\n // we want the smaller of U1 and U2\n double U1 = sum - (n1 * (n1 + 1.0) / 2.0);\n double U2 = (n1 * n2) - U1;\n \n double pvalue;\n // if we don't have enough data points, quit\n // if ( n1 < minimumNormalN || n2 < minimumNormalN ) {\n // pvalue = exactCalculation(h0, n1, n2, U1, U2);\n // } else {\n pvalue = normalApproximation(h0, n1, n2, U1, U2);\n // }\n \n if ( DEBUG && (n1 < minimumNormalN || n2 < minimumNormalN) ) {\n //for (int i = 0; i < observations.size(); i++)\n // System.out.println(observations.get(i).first + \" -> set\" + (observations.get(i).second == WILCOXON_SET.SET1 ? \"Alt\" : \"Ref\"));\n //System.out.printf(\"n1 %d n2 %d U1 %f U2 %f pValue %f QPValue %f%n\", n1, n2, U1, U2, pvalue, QualityUtils.phredScaleErrorRate(pvalue));\n }\n \n return pvalue;\n }",
"public double getPercepcion(){\n return localPercepcion;\n }",
"abstract public Number getResult (final Number pe, final Number pd, final Number t) throws CGException ;",
"public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\t\tArrayOfFraction arr1= new ArrayOfFraction();\r\n\t\tarr1.add(new Fraction(3,1));\r\n\t\tarr1.add(new Fraction(4,2));\r\n\t\tarr1.add(new Fraction(5,3));\r\n\t\tarr1.add(new Fraction(6,7));\r\n\t\t\r\n\t\tfor(int i=0;i<arr1.size();i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(arr1.a[i].divide());\r\n\t\t}\r\n//\t\tFraction fr1 = new Fraction();\r\n//\t\tfr1.input();\r\n//\t\tarr1.add(fr1);\r\n//\t\t\r\n//\t\tFraction fr2 = new Fraction();\r\n//\t\tfr2.input();\r\n//\t\tarr1.add(fr2);\r\n//\t\t\r\n//\t\tFraction fr3 = new Fraction();\r\n//\t\tfr3.input();\r\n//\t\tarr1.add(fr3);\r\n//\t\t\r\n//\t\tarr1.output();\r\n\t\t\r\n//\t\tSystem.out.println(\"get ra gia tri index: \"+arr1.get(0));\r\n\r\n//\t\tFraction fr4 = new Fraction();\r\n//\t\tfr4.input();\r\n//\t\tarr1.set(2,fr4 );\r\n//\t\tarr1.output();\r\n//\t\t\r\n//\t\t\r\n//\t\tFraction fr5 = new Fraction();\r\n//\t\tfr5.input();\r\n//\t\tarr1.add(1, fr5);\r\n//\t\tarr1.output();\r\n\t\t\r\n//\t\tarr1.remove(2);\r\n//\t\tarr1.output();\r\n\t\t\r\n//\t\tFraction fr6 = new Fraction();\r\n//\t\tfr6.input();\r\n//\t\tSystem.out.println(arr1.indexOf(fr6));\r\n\t\t\r\n//\t\tFraction fr7 = new Fraction();\r\n//\t\tfr7.input();\r\n//\t\tSystem.out.println(arr1.indexOf(r7));\r\n\t\t\r\n\t\t\r\n//\t\tSystem.out.println(arr1.toString());\r\n\t\t\r\n\t}",
"public double Generate(double[] par);",
"protected float compute(){\n float result = 0f;\n String[] post = in2post(this.arr);\n result = post2ans(post);\n return result;\n }",
"public static void main( String[] args ){\n //Movemos el array de electrodomesticos\n Electrodomesticos[] electrodomesticos = Ejecutable.electrodomesticosArray();\n //Haciendo las comprobaciones\n electrodomesticos = Ejecutable.asignacionElectrodomesticos(electrodomesticos);\n //Seleccion del array precio\n double precioFinal[] = Ejecutable.precioElectrodomesticos(electrodomesticos);\n System.out.println();\n System.out.println(\"Los diferentes gastos se podrian dividir en estas categorias:\");\n System.out.println();\n System.out.println(\"Televisores, con un precio total de: \" + precioFinal[2]);\n System.out.println(\"Lavadoras: con un precio total de: \" + precioFinal[1]);\n System.out.println(\"Otro tipo de electrodomésticos, con un precio total de: \" + precioFinal[0]);\n System.out.println();\n System.out.println(\"Si sumamos los diferentes costes: \"+precioFinal[0]+\" + \"+precioFinal[1] + \" + \" +precioFinal[2] + \" tenemos como resultado total: \" + (precioFinal[0]+precioFinal[1]+precioFinal[2]) );\n }",
"public abstract double calcular();",
"double[] ComputeNew(node st){\n\tnode p;\n\tdouble[] l;\n\tdouble[] r;\n\tdouble[] result=new double[NUMFITCASE];\n\t\n\tfor(int j=0;j<NUMVAR;j++){\t\t\n\t\t\n\t\tif(st.name.equals(\"X\"+String.valueOf(j+1))){\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]=fitcase[i].x[j];\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t}\n\t\n\tif(st.name.equals(\"C\")){\n\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t{\n\t\t\tresult[i]=st.value;\n\t\t}\n\t\treturn result;\n\t}\n\telse\n\t\tif(st.name.equals(\"ERC\")) {\n\t\t\tif(st.value==VOIDVALUE) //if it has not been initialized then initialized and return the value\n\t\t\t st.value=GenerateER(st.name); \n\t\t//\t st.att[i]=st.value;\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]=st.value; \n\t\t\t}\n\t\t\treturn result;\t\t\t \n\t\t}\t\n\telse // st.name=\"EXP\"\n\t{\n\t\tp = st.children;\n\t\tif(st.name.equals(\"add\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tr = ComputeNew(p.sibling);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]=PVAL(l[i] + r[i]);\n\t\t\t}\n\t\t\treturn result;\n\t\t} else if(st.name.equals(\"sub\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tr = ComputeNew(p.sibling);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]=PVAL(l[i] - r[i]);\n\t\t\t}\n\t\t\treturn result;\n\t\t} else if(st.name.equals(\"mul\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tr = ComputeNew(p.sibling);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]=PVAL(l[i] * r[i]);\n\t\t\t}\n\t\t\treturn result;\n\t\t} else if(st.name.equals(\"div\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tr = ComputeNew(p.sibling);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tif(r[i] == 0) \n\t\t\t\t\t{result[i]= 1;}\n\t\t\t\telse {result[i]= PVAL(l[i]/r[i]);}\t\t\t\t\n\t\t\t}\n\t\t\treturn result;\n\t\t\n\t\t} else if(st.name.equals(\"sin\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]= Math.sin(l[i]);\t\t\t\t\n\t\t\t}\n\t\t\treturn result;\n\t\t\t\n\t\t\t\n\t\t} else if(st.name.equals(\"cos\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]= Math.cos(l[i]);\t\t\t\t\n\t\t\t}\n\t\t\treturn result;\n\t\t\t\n\t\t} else if(st.name.equals(\"sqrt\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]= Math.sqrt(Math.abs(l[i]));\t\t\t\n\t\t\t}\n\t\t\treturn result;\t\t\t\n\t\t} else if(st.name.equals(\"sqr\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]= PVAL(l[i]*l[i]);\t\t\t\n\t\t\t}\n\t\t\treturn result;\n\t\t\t\n\t\t} else if(st.name.equals(\"ep\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]= PVAL(Math.exp(l[i]));\t\n\t\t\t}\n\t\t\treturn result;\t\t\t\n\t\t} else if(st.name.equals(\"divE\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tr = ComputeNew(p.sibling);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]= PVAL(l[i]/Math.sqrt(1+ r[i]*r[i]));\t\t\t\t\n\t\t\t}\n\t\t\treturn result;\t\t\t\n\t\t\t} \n\t\telse {\n\t\t\tl = ComputeNew(p);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]= PVAL(Math.exp(l[i]));\n\t\t\t\tif(l[i] == 0) result[i]= 0;\n\t\t\t\telse result[i]= PVAL(Math.log(Math.abs(l[i])));// fido fabs\n\t\t\t}\n\t\t\treturn result;\t\n\t\t\t\n\t\t}\n\t}\n}",
"public void calculate();",
"private Double getProzent(Double points)\r\n \t{\r\n \t\treturn points / totalPoints;\r\n \t}",
"public PrecioTotal1(Computador[] pPCs){\n computadores = pPCs;\n }",
"public double prom () {\n return this.sum()/this.size();\n }",
"public static void main(String[] args) {\n // TODO code application logic here\n ArrayList<Integer> ints=new input().getInts(10);\n //PT -- stuff?\n calculates stuff=new calculates(ints);\n System.out.printf(\"Minimun Value is %d \\n\",(int)stuff.getMin());\n System.out.printf(\"Maximun Value is %d \\n\",(int)stuff.getMax());\n System.out.printf(\"Average Value is %f \\n\",stuff.getAvg());\n \n }",
"public void setP(Double p);",
"void example2() {\n\t\t\n\t\tIndexedDataSource<HighPrecisionMember> list = ArrayDataSource.construct(G.HP, 1234);\n\t\t\n\t\t// fill the list with values\n\t\t\n\t\tFill.compute(G.HP, G.HP.unity(), list);\n\t\t\n\t\t// then calculate a result\n\n\t\tHighPrecisionMember result = G.HP.construct();\n\t\t\n\t\tSum.compute(G.HP, list, result); // result should equal 1234\n\t}",
"public void prim() {\n\t\t// allot max value to the edges\n\t\tfor (int i = 0; i < vertexList.length; i++) {\n\t\t\tfor (int j = 0; j < vertexList.length; j++) {\n\t\t\t\tsimple[i][j] = Integer.MAX_VALUE;\n\t\t\t}\n\t\t}\n\t\t// initialize array with the costs\n\t\tfor (int i = 0; i < vertexList.length; i++) {\n\t\t\tfor (Neighbor nbr = vertexList[i].adjList; nbr != null; nbr = nbr.next) {\n\t\t\t\tsimple[i][vertexList[nbr.vertexNumber].id] = nbr.weight;\n\t\t\t}\n\t\t}\n\t\t// initialize edgeList for keeping track of mst\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tedgeList[v] = new Edge(vertexList[v].id, rand, 5000);\n\t\t}\n\t\t// giving cost 0 to vertex 0\n\t\tedgeList[0].v1 = rand;\n\t\t// calling the computePrim function\n\t\tcomputePrim(0);\n\t\tint sum1 = 0;\n\t\t// calculating the sum of mst costs from the sum arraylist c\n\t\tfor (int i = 0; i < c.size(); i++) {\n\t\t\tsum1 = sum1 + c.get(i);\n\t\t}\n\t\tsumSimple = sum1;\n\t}",
"public abstract List<Double> updatePopulations();",
"public double[] GetPointArray() {\n return PointArray;\n }",
"public void mainProcess(java.util.ArrayList<double[]> dataPoint, String dist) throws Exception {\n double[][] S = initAP(dataPoint);\r\n// double[][] S = readData(fn);\r\n double[][] A = new double[N][N];\r\n double[][] R = new double[N][N];\r\n //////////////////////////////////////\r\n\tfor(int m=0; m<iter; m++) {\r\n// System.out.println(m);\r\n for(int i=0; i<N; i++) {\r\n for(int k=0; k<N; k++) {\r\n double max = -1e100;\r\n for(int kk=0; kk<k; kk++) {\r\n if(S[i][kk]+A[i][kk]>max)\r\n max = S[i][kk]+A[i][kk];\r\n }\r\n for(int kk=k+1; kk<N; kk++) {\r\n if(S[i][kk]+A[i][kk]>max)\r\n max = S[i][kk]+A[i][kk];\r\n }\r\n R[i][k] = (1-lambda)*(S[i][k] - max) + lambda*R[i][k];\r\n }\r\n }\r\n for(int i=0; i<N; i++) {\r\n for(int k=0; k<N; k++) {\r\n if(i==k) {\r\n double sum = 0.0;\r\n for(int ii=0; ii<i; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n for(int ii=i+1; ii<N; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n A[i][k] = (1-lambda)*sum + lambda*A[i][k];\r\n } else {\r\n double sum = 0.0;\r\n int maxik = Math.max(i, k);\r\n int minik = Math.min(i, k);\r\n for(int ii=0; ii<minik; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n for(int ii=minik+1; ii<maxik; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n for(int ii=maxik+1; ii<N; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n A[i][k] = (1-lambda)*Math.min(0.0, R[k][k]+sum) + lambda*A[i][k];\r\n }\r\n }\r\n }\r\n }\r\n \r\n//\tdouble E[N][N] = {0};\r\n double[][] E = new double[N][N];\r\n\r\n//\tvector<int> center;\r\n java.util.ArrayList<Integer> center = new java.util.ArrayList<>();\r\n for(int i=0; i<N; i++) {\r\n E[i][i] = R[i][i] + A[i][i];\r\n if(E[i][i]>0) {\r\n center.add(i);\r\n }\r\n }\r\n// int idx[N] = {0};\r\n int idx[] = new int[N];\r\n\r\n\tfor(int i=0; i<N; i++) {\r\n int idxForI = 0;\r\n double maxSim = -1e100;\r\n for(int j=0; j<center.size(); j++) {\r\n int c = center.get(j);\r\n if (S[i][c]>maxSim) {\r\n maxSim = S[i][c];\r\n idxForI = c;\r\n }\r\n }\r\n idx[i] = idxForI;\r\n }\r\n// java.util.HashMap<Integer, String> colorMap = new java.util.HashMap<>();\r\n java.util.HashMap<Integer, Integer> idcMap = new java.util.HashMap<>();\r\n java.util.HashSet<Integer> idSet = new java.util.HashSet<>();\r\n for(int i=0; i<N; i++) {\r\n idcMap.put(i, idx[i]);\r\n idSet.add(idx[i]);\r\n// System.out.println(idx[i]+1);\r\n\t}\r\n java.io.FileWriter out = new java.io.FileWriter(dist);\r\n java.util.HashMap<Integer, String> colorMap = getColorMap(idSet);\r\n for(int i=0; i<N; i++){\r\n double d[] = dataPoint.get(i);\r\n if(idSet.contains(i)){\r\n out.write(i+\"\\t\"+d[0]+\"\\t\"+d[1]+\"\\t\"+colorMap.get(i)+\"\\n\");\r\n }\r\n else{\r\n out.write(i+\"\\t\"+d[0]+\"\\t\"+d[1]+\"\\t\"+colorMap.get(idcMap.get(i))+\"\\n\");\r\n }\r\n// System.out.println(i+\"\\t\"+d[0]+\"\\t\"+d[1]+\"\\t\"+colorMap.get(idcMap.get(i)));\r\n }\r\n out.close();\r\n// System.out.println(colorMap);\r\n /////////////////////////////////////////\r\n }",
"protected void updateValues(){\n double total = 0;\n for(int i = 0; i < values.length; i++){\n values[i] = \n operation(minimum + i * (double)(maximum - minimum) / (double)numSteps);\n \n total += values[i];\n }\n for(int i = 0; i < values.length; i++){\n values[i] /= total;\n }\n }",
"public double[] calcSolution() {\n\t\t\n\t// Call CostFunction object\n\t\tcostFunction.function(position);\n\t\t\n\t\treturn solution;\n\t\t\n\t}",
"public void execute() throws ProcessException\r\n {\r\n \tdouble input = inputVar.getData().getDoubleValue(); \t\r\n \t\r\n \tswitch (interpolationMethod)\r\n \t{\r\n \t\tcase 1:\r\n \t\t\tcomputeInterpolatedValue1D(input);\r\n \t\t\tbreak; \t\t\t\r\n \t}\r\n \t\r\n \t//System.out.println(getName() + \": \" + input + \" -> \" + outputVars[0].getData().getDoubleValue());\r\n }",
"private double[] normalize(double[] p) {\n double sum = 0;\n double[] output = new double[p.length];\n for (double i : p) {\n sum += i;\n }\n for (int i = 0; i < output.length; i++) {\n output[i] = p[i]/sum;\n }\n return output;\n }",
"private int[] process(int[] ip)\n\t{\n\t\tint[] result = new int[ip.length];\n\t\t//first multiply all numbers\n\t\tint x = ip[0];\n\t\tfor(int i=0; i<ip.length; i++)\n\t\t{\n\t\t\tx = x*ip[i];\n\t\t}\n\t\t\n\t\tfor(int i=0;i<ip.length; i++)\n\t\t{\n\t\t\tresult[i] = x / ip[i];\n\t\t}\n\t\treturn result;\n\t}",
"public static void Main()\n\t{\n\t\tvoid shuru(int * p,int len);\n\t\tvoid paixu(int * p,int len);\n\t\tvoid hebing(int * p1,int * p2);\n\t\tvoid shuchu(int * p,int,int);\n\t\tint m;\n\t\tint n;\n\t\tString tempVar = ConsoleInput.scanfRead();\n\t\tif (tempVar != null)\n\t\t{\n\t\t\tm = Integer.parseInt(tempVar);\n\t\t}\n\t\tString tempVar2 = ConsoleInput.scanfRead();\n\t\tif (tempVar2 != null)\n\t\t{\n\t\t\tn = Integer.parseInt(tempVar2);\n\t\t}\n//C++ TO JAVA CONVERTER TODO TASK: Java does not have an equivalent to pointers to value types:\n//ORIGINAL LINE: int *p1,*p2;\n\t\tint p1;\n//C++ TO JAVA CONVERTER TODO TASK: Java does not have an equivalent to pointers to value types:\n//ORIGINAL LINE: int *p2;\n\t\tint p2;\n\t\tint[] a = {'\\0', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\n\t\tint[] b = {'\\0', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\n\t\tp1 = a;\n\t\tp2 = b;\n\ttangible.RefObject<Integer> tempRef_p1 = new tangible.RefObject<Integer>(p1);\n\t\tshuru(tempRef_p1, m);\n\t\tp1 = tempRef_p1.argValue;\n\ttangible.RefObject<Integer> tempRef_p2 = new tangible.RefObject<Integer>(p2);\n\t\tshuru(tempRef_p2, n);\n\t\tp2 = tempRef_p2.argValue;\n\ttangible.RefObject<Integer> tempRef_p12 = new tangible.RefObject<Integer>(p1);\n\t\tpaixu(tempRef_p12, m);\n\t\tp1 = tempRef_p12.argValue;\n\ttangible.RefObject<Integer> tempRef_p22 = new tangible.RefObject<Integer>(p2);\n\t\tpaixu(tempRef_p22, n);\n\t\tp2 = tempRef_p22.argValue;\n\ttangible.RefObject<Integer> tempRef_p13 = new tangible.RefObject<Integer>(p1);\n\ttangible.RefObject<Integer> tempRef_p23 = new tangible.RefObject<Integer>(p2);\n\t\thebing(tempRef_p13, tempRef_p23);\n\t\tp2 = tempRef_p23.argValue;\n\t\tp1 = tempRef_p13.argValue;\n\ttangible.RefObject<Integer> tempRef_p14 = new tangible.RefObject<Integer>(p1);\n\t\tshuchu(tempRef_p14, m, n);\n\t\tp1 = tempRef_p14.argValue;\n\t}",
"@Override\n\tpublic double GetValue() {\n\t\tdouble spot = inputs.getSpot();\n\t\tdouble strike = inputs.getStrike();\n\t\tdouble vol = inputs.getVol();\n\t\tint noSteps=inputs.getNoSteps();\n\t\tdouble expiry=inputs.getExpiry();\n\t OptionType type=inputs.getType();\n\t ExerciseType exercise=inputs.getExercise();\n\t InterestRate interestRate=inputs.getR();\n\t\t\n\t double timestep = expiry/noSteps;\n\t double DF = Math.exp(-interestRate.GetRate(1.)*timestep);\n\t double temp1 = Math.exp((interestRate.GetRate(1.) + vol * vol)*timestep);\n\t double temp2 = 0.5 * (DF + temp1);\n\t double up = temp2 + Math.sqrt(temp2*temp2 - 1);\n\t double down = 1/ up;\n\t double probaUp = (Math.exp(interestRate.GetRate(1.) * timestep) - down)/(up -down) ;\n\t double probaDown = 1 - probaUp;\n\n\t //stock price tree\n\t\tstockPrice[0][0]=spot;\n\t for (int n = 1; n <= noSteps; n ++) {\n for (int j = n; j > 0; j--){\n \tstockPrice[j][n] = up * stockPrice[j-1][n-1];\n }\n \t\tstockPrice[0][n] = down * stockPrice[0][n-1];\n }\n\t \n\t //last column set payoffs\n\t\tfor (int j = 0; j <= noSteps; j++) {\n\t\t\t\tif(type.equals(OptionType.CALL)) {\n\t\t\t\t\tpayOff[j][noSteps] = Math.max(this.stockPrice[j][noSteps] - strike, .0);\n\t\t\t\t}else {\n\t\t\t\t\tpayOff[j][noSteps] = Math.max(strike - this.stockPrice[j][noSteps], .0);\n\t\t\t\t}\n\t\t}\n\n\t\t\n\t //payoff tree in backwardation\n\t \n\t for (int i = noSteps ; i >= 1; i--) {\n for (int j = 0; j <= i-1; j++) {\n\t \tif(exercise.equals(ExerciseType.AMERICAN)) { \n\t //American\t\n\t \t\tif(type.equals(OptionType.CALL)) {\n\t \t\t\t\tpayOff[j][i-1] = Math.max(DF * (probaUp * payOff[j+1][i] + probaDown * payOff[j][i]) ,\n\t \t\t\t\tMath.max(this.stockPrice[j][i-1] - strike, .0));\n\t \t\t\t\n\t \t\t}else \tpayOff[j][i-1] = Math.max(DF * (probaUp * payOff[j+1][i] + probaDown * payOff[j][i]) ,\n\t \t\t\t\tMath.max(strike - this.stockPrice[j][i-1] , .0));\n\t \t}else { \n\t \t\t\t//European put and call option\n\t \t\t\t\tpayOff[j][i-1] = DF * (probaUp * payOff[j+1][i] + probaDown * payOff[j][i]);\n\t }\n }\n }\n\t \n\t double deltaUp = (payOff[0][2]-payOff[1][2])/(stockPrice[0][2]-stockPrice[1][2]);\n\t double deltaDown = (payOff[1][2]-payOff[2][2])/(stockPrice[1][2]-stockPrice[2][2]);\n\t delta = (deltaUp + deltaDown) /2;\n\t gamma = (deltaUp-deltaDown)/((stockPrice[0][2]-stockPrice[2][2])/2);\n\t theta = (payOff[1][2]-payOff[0][0])/(365*2*timestep);//time in days\n\t \n\t long rounded = Math.round(payOff[0][0]*10000);\n\t return rounded/10000.0;\n\t}",
"@Override\r\n public void calculate() {\r\n // do the calculations\r\n this.categories = new String[]{\"one\", \"two\"};\r\n this.data = new double[]{75, 50};\r\n }",
"static int[] permutationEquation(int[] p) {\n int[] ret = new int[p.length];\n HashMap<Integer,Integer> values = new HashMap<>();\n for(int i = 0; i < p.length; i++){\n values.put(p[i],i+1);\n }\n for(int i = 1; i <=p.length; i++){\n int index1 = values.get(i);\n int index2 = values.get(index1);\n ret[i-1] = index2;\n }\n return ret;\n }",
"@Override\n\tpublic List<Double> computeValues() {\n\t\treturn null;\n\t}",
"public byte[] getP() {\n return p;\n }",
"public static int ruolette(ArrayList<Integer> fitvalores, ArrayList<int[]> poblacion, int semilla){ \n int totalfitnes = 0;\n int totalfitnesnuevo = 0;\n int indtablero = 0;\n int semi=semilla;\n int tpoblacion=poblacion.size();\n int []nuevofitness = new int [fitvalores.size()];\n double []nproporcion = new double [fitvalores.size()];\n ArrayList <Double> proporcion = new ArrayList<>();//proporcion j la ruleta\n ArrayList <Double> ruleta = new ArrayList<>();\n //obtener el max fitnes\n for(int i=0;i<fitvalores.size();i++){ //total de fitnes\n totalfitnes=totalfitnes+fitvalores.get(i);\n }\n \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el nuevo fittnes inverso\n double pro=(tpoblacion*tpoblacion-tpoblacion)-fitvalores.get(i);\n nuevofitness[i]= (int) pro;\n // System.out.println(\"nuevo fitnes\"+nuevofitness[i]);\n } \n for(int i=0;i<fitvalores.size();i++){ //total de fitnes nuevo o inverso\n totalfitnesnuevo=(totalfitnesnuevo+nuevofitness[i]);//para que los mejores casos usen mas espacio\n }\n \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el array proporcion\n double var1=nuevofitness[i];\n double var2=totalfitnesnuevo;\n double pro=var1/var2;\n nproporcion[i]=pro;\n //System.out.println(\"nueva proporcion \"+nproporcion[i]);\n } \n ruleta.add(nproporcion[0]);\n // System.out.println(\"primera propporniaso \"+nproporcion[0]);\n for(int i=1;i<fitvalores.size();i++){ //poner datos en la ruleta\n double var1=ruleta.get(i-1);\n double var2=nproporcion[i];\n ruleta.add(var1+var2);\n //System.out.println(\"ruleta \"+ruleta.get(i));\n }\n double num=randomadec(0,1,semi);\n // System.out.println(\"numero random dec \"+num); \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el array proporcion\n // System.out.println(ruleta.get(i));\n if(num<ruleta.get(i)){\n indtablero=i;\n //System.out.println(\"se guardo el tablero \"+indtablero);\n break;\n }\n }\n return indtablero;//esto devuelve el indice del tablero ganador en la ruleta\n }",
"private Point[] getPointArray()\n\t{\n\t\treturn this.pointArray; // This should probably be a copy, to maintain security (?)\n\t}",
"@Test\r\n public void getPriceValue() throws Exception {\r\n assertEquals(p1,point1.getPriceValue(),0.0);\r\n assertEquals(p2,point2.getPriceValue(),0.0);\r\n assertEquals(p3,point3.getPriceValue(),0.0);\r\n assertEquals(p4,point4.getPriceValue(),0.0);\r\n }",
"public VariableUnit solve() {\n LinkedList<VariableUnit> processor = new LinkedList<VariableUnit>();\n\n VariableUnit vu1 = new VariableUnit(250.0, 'x');\n VariableUnit vu2 = new VariableUnit('+');\n VariableUnit vu3 = new VariableUnit(250.0, 'x');\n VariableUnit vu4 = new VariableUnit(501.0, 'x');\n VariableUnit vu5 = new VariableUnit('y');\n VariableUnit vu6 = new VariableUnit('-');\n alpha_arr.get(('x' - 'a')).addLast(vu1);\n alpha_arr.get(('x' - 'a')).addLast(vu2);\n alpha_arr.get(('x' - 'a')).addLast(vu3);\n op_order.add(vu1); op_order.add(vu2); op_order.add(vu3); op_order.add(vu6);\n op_order.add(vu4); op_order.add(vu6); op_order.add(vu5);\n assignValue(2.0, 'x');\n \n System.out.print(vu1); System.out.print(vu2); System.out.print(vu3);\n System.out.print(vu6); System.out.print(vu4); System.out.print(vu6);\n System.out.print(vu5);\n System.out.println();\n System.out.println(\"------------------------------\");\n \n VariableUnit temp, temp1;\n for (int i = 0; i < op_order.size(); i++) {\n \ttemp = op_order.pollFirst();\n \t\n \t\tswitch (temp.getVariable()) {\n \tcase '+':\n \t\t//if processor.isEmpty(): throw an exception\n \t\ttemp1 = processor.pop().add(op_order.pollFirst());\n \t\tprocessor.push(temp1);\n \t\tbreak;\n \tcase '-':\n \t\t//if processor.isEmpty(): throw an exception\n \t\ttemp1 = processor.pop().subtract(op_order.pollFirst());\n \t\tprocessor.push(temp1);\n \t\tbreak;\n \tdefault:\n \t\tprocessor.push(temp);\n \t\t}\n }\n\n /*\n * System.out.println(\"This equation is currently unsolvable.\");\n \tSystem.out.println(\"Try assigning values to some of the variables.\");\n */\n while (!processor.isEmpty()) {\n \top_order.addFirst(processor.pop());\n }\n \n ListIterator<VariableUnit> iter = op_order.listIterator();\n \n while ( iter.hasNext() ) {\n \tVariableUnit iter_temp = iter.next();\n \t//System.out.print(iter_temp.hasValue());\n \tif (iter_temp.hasValue()) {\n \t\tSystem.out.print( Double.toString(iter_temp.subValue()) );\n \t}\n \telse {\n \t\tSystem.out.print(iter_temp);\n \t}\n };\n System.out.println();\n \n return new VariableUnit(Double.NaN, ' ');\n }",
"public static void main(String [] args) {\n PPPoint pt1 = new PPPoint(0.0, 0.0);\n PPPoint pt2 = new PPPoint(0.0, 100.0);\n double lookAheadDist = 10.0;\n double targetVelocity = 0.5;\n\n PurePursuitCalc calc = new PurePursuitCalc(pt1, pt2, lookAheadDist, targetVelocity);\n double heading;\n double x = (args.length > 0) ? Double.parseDouble(args[0]) : 0.0;\n double y = (args.length > 1) ? Double.parseDouble(args[1]) : 0.0;\n final int numPoints = (args.length > 2) ? Integer.parseInt(args[2]) : 11;\n double maxAngle = (args.length > 3) ? Double.parseDouble(args[3]) : 20;\n double stepSize = maxAngle * 2.0 / ((double)numPoints - 1.0);\n\n for (int i = 0; i < numPoints; i++) {\n heading = -maxAngle + ((double)i * stepSize);\n double[] data = calc.calcVelocities(x, y, heading);\n double[] alldata = calc.getData();\n String msg = String.format(\"currX=%6.2f, currY=%6.2f, currHeading=%6.2f, desiredHeading=%6.2f, leftSetV=%6.2f, rightSetV=%6.2f\",\n alldata[0], alldata[1], alldata[2], alldata[3], alldata[4], alldata[5]);\n System.out.println(msg);\n }\n }",
"public void calculateProbabilities(){\n\t}",
"public PilaEnterosArray() {\n\t\ttop = -1;\n\t}",
"public int get_num_p(){ return num_p; }",
"public static void main(String[] args) {\n\t\tint array0[] = new int[0];\r\n\t\tint array3[] = new int[3];\r\n\t\tint array5[] = new int[5];\r\n\t\tint array15[] = new int[15];\r\n\t\tint array16[] = new int[16];\r\n\t\tint array17[] = new int[17];\r\n\t\tint array19[] = new int[19];\r\n\t\tint array20[] = new int[20];\r\n\t\tint array200[] = new int[200];\r\n\t\tint array1000[] = new int[1000];\r\n\r\n\t\t// iX => integer with value X\r\n\t\tint i0 = 0;\r\n\t\tint i20 = 20;\r\n\t\tint i1 = 1;\r\n\t\tint i2 = 2;\r\n\t\tint i3 = 3;\r\n\t\tint i4 = 4;\r\n\t\tint i_5 = -5;\r\n\t\tint p = i2 * i_5; // p is [-10,-10]\r\n\r\n\t\tarray0[0] = 5; // Illegal upper bound\r\n\r\n\t\tarray0[1] = 5; // Illegal upper bound\r\n\r\n\t\tarray5[p] = 5; // Illegal lower bound\r\n\r\n\t\tp = 2 * i2; // p is [4,4]\r\n\r\n\t\tarray5[p] = 5; // Good\r\n\r\n\t\tp *= p; // p is [16,16]\r\n\r\n\t\tarray16[p] = 5; // Illegal upper bound (legal index range is 0-15)\r\n\r\n\t\tarray17[p] = 5; // Good\r\n\r\n\t\tp = i2 * i3; // p is [6,6]\r\n\r\n\t\tboolean b = args.length == 0;\r\n\r\n\t\tif (b) {\r\n\t\t\tp = p * i3; // p is [18,18]\r\n\t\t}\r\n\r\n\t\t// now p is [6,18]\r\n\r\n\t\tarray17[p] = 5; // Potentially illegal upper bound\r\n\t\tarray19[p] = 5; // Good\r\n\r\n\t\tp = 2; // p is [2,2]\r\n\r\n\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\tp *= 2;\r\n\t\t}\r\n\r\n\t\t// now p is [2,INF]\r\n\r\n\t\tarray19[p] = 5; // Potentially illegal upper bound // TODO problem\r\n\r\n\t\tp = p - 4; // p is [-2,INF]\r\n\r\n\t\tarray1000[p] = 5; // Potentially illegal lower and upper bounds\r\n\r\n\t\tp = 2; // p is [2,2]\r\n\r\n\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\tarray3[i] = 5; // Potentially illegal upper bound\r\n\t\t\tarray16[i] = 5; // Good\r\n\t\t\tp *= -2;\r\n\t\t}\r\n\r\n\t\tint i = 5, j = 10;\r\n\r\n\t\tif (b) {\r\n\t\t\ti = 15;\r\n\t\t\tj = 20;\r\n\t\t}\r\n\r\n\t\t// now i is [5,15], j is [10,20]\r\n\r\n\t\tif (i != j) {\r\n\t\t\tarray16[j] = 5; // Potentially illegal upper bound\r\n\t\t} else {\r\n\t\t\tarray16[j] = 5; // Good\r\n\t\t}\r\n\r\n\t\t// p is [-INF,INF]\r\n\r\n\t\tarray1000[p] = 5; // Potentially illegal lower and upper bounds\r\n\r\n\t}",
"public abstract boolean[] calculate();",
"public static void p(double[][] array) {\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tp(array[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}",
"@Override\n public void recordSolution() {\n for (int i = 0; i < variables.length; i++) {\n values[i] = variables[i].getValue();\n }\n }",
"public static void main(String[] args) {\n\t\n\t\tArrayList DP_result=DP_min_operation(98734);\n\t\tArrayList result_arry=step_to_primitive_cal(98734,DP_result);\n\t\tSystem.out.println(result_arry);\n\t\tSystem.out.println(result_arry.size());\n\n\t}",
"public static void main(String[] args) {\n\t\tint division = division(60,15);\n\t\tSystem.out.println(\"The result of division is: \" + division);\n\t\t\n\t\tint pow = pow(2,3);\n\t\tSystem.out.println(\"The result of power is: \" + pow);\n\t\t\n\t\tint factorial = factorial(5);\n\t\tSystem.out.println(\"The result of factorial is: \" + factorial);\n\t\t\n\t\tint array[] = {1,3,4};\n\t\tint total = sumValues(array, 0);\n\t\tSystem.out.println(\"The result of sum of values in array is: \" + total);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"private void processData() {\n\t\tfloat S, M, VPR, VM;\n\t\tgetCal();\n\t\tgetTimestamps();\n\t\t\n \n\t\tfor(int i = 0; i < r.length; i++) {\n\t\t\t//get lux\n\t\t\tlux[i] = RGBcal[0]*vlam[0]*r[i] + RGBcal[1]*vlam[1]*g[i] + RGBcal[2]*vlam[2]*b[i];\n \n\t\t\t//get CLA\n\t\t\tS = RGBcal[0]*smac[0]*r[i] + RGBcal[1]*smac[1]*g[i] + RGBcal[2]*smac[2]*b[i];\n\t\t\tM = RGBcal[0]*mel[0]*r[i] + RGBcal[1]*mel[1]*g[i] + RGBcal[2]*mel[2]*b[i];\n\t\t\tVPR = RGBcal[0]*vp[0]*r[i] + RGBcal[1]*vp[1]*g[i] + RGBcal[2]*vp[2]*b[i];\n\t\t\tVM = RGBcal[0]*vmac[0]*r[i] + RGBcal[1]*vmac[1]*g[i] + RGBcal[2]*vmac[2]*b[i];\n \n\t\t\tif(S > CLAcal[2]*VM) {\n\t\t\t\tCLA[i] = M + CLAcal[0]*(S - CLAcal[2]*VM) - CLAcal[1]*683*(1 - pow((float)2.71, (float)(-VPR/4439.5)));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tCLA[i] = M;\n\t\t\t}\n\t\t\tCLA[i] = CLA[i]*CLAcal[3];\n\t\t\tif(CLA[i] < 0) {\n\t\t\t\tCLA[i] = 0;\n\t\t\t}\n \n\t\t\t//get CS\n\t\t\tCS[i] = (float) (.7*(1 - (1/(1 + pow((float)(CLA[i]/355.7), (float)1.1026)))));\n \n\t\t\t//get activity\n\t\t\ta[i] = (float) (pow(a[i], (float).5) * .0039 * 4);\n\t\t}\n\t}",
"public void aggiornaPropulsori(){\n xPropulsore1=new int[]{xCord[0],xCord[0]};\n yPropulsore1=new int[]{yCord[0],yCord[0]+15}; \n xPropulsore2=new int[]{xCord[2],xCord[2]}; \n yPropulsore2=new int[]{yCord[2],yCord[2]+15};\n \n }",
"VectorArray getPhsAHar();",
"public abstract double getPreis();",
"public int getP() {\r\n\t\treturn this.p;\r\n\t}",
"public static void main(String[] args) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tdouble a=0;\r\n\t\t double b=2;\r\n\t\t\t double n=4;\r\n\t\t\t double s;\r\n\r\n\t\t\tfor(int i=0; i<=n-1;i++) {\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t s = a + Math.pow(2, i)*b;\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(s);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(int j=0;j<=n-1;j++)\r\n\t\t\t{\r\n\t\t\t\tint arr\r\n\t\t\t}\r\n\t\t\t\r\n\t}",
"private Particle[] createParticles(int N){\n Particle[] arr = new Particle[N];\n double v = 0, avgV = 0;\n\n int i = 0;\n while(i < N) {\n double sum = 0, d = (1.0 / N);\n if(T < 150.0) d *= 0.5;\n if(T < 50.0) d *= 0.5;\n while (sum < 1.0 / (N + 1)) {\n sum += func(v) * d;\n v += d;\n }\n System.out.println(\"v=\" + v + \", func(v)=\" + func(v));\n\n arr[i] = new Particle(0, 0, 400);\n double dir = Math.random() * 2 * Math.PI;\n arr[i].setVelocity(v, dir);\n\n avgV += v;\n\n i += 1;\n }\n\n avgV /= N;\n System.out.println(\"AvgV=\" + avgV);\n return arr;\n }",
"public double[] test() {\r\n BigInteger a = generator.getA();\r\n BigInteger m = generator.getM();\r\n BigInteger h, hPrime, p, pPrime;\r\n BigInteger r, s;\r\n BigInteger q;\r\n BigInteger U[][], V[][];\r\n int t;\r\n\r\n //Step 1: Initialization\r\n h = a;\r\n hPrime = m;\r\n p = BigInteger.ONE;\r\n pPrime = BigInteger.ZERO;\r\n r = a;\r\n s = a.multiply(a).add(BigInteger.ONE);\r\n t = 1;\r\n //End of Step 1: Initialization\r\n\r\n //Step 2: Euclidean step to handle the case when t=2.\r\n U = new BigInteger[t][t];\r\n V = new BigInteger[t][t];\r\n //In this step, U & V have only one element\r\n do {\r\n q = hPrime.divide(h);\r\n U[0][0] = hPrime.subtract(q.multiply(h)); //Same as hPrime % h?\r\n V[0][0] = pPrime.subtract(q.multiply(p));\r\n BigInteger temp = U[0][0].multiply(U[0][0]).add(V[0][0].multiply(V[0][0]));\r\n if (temp.compareTo(s) >= 0) { //if temp>=s\r\n break;\r\n }\r\n //else if u2+v2<s do the following and loop back\r\n s = temp;\r\n hPrime = h;\r\n h = U[0][0];\r\n pPrime = p;\r\n p = V[0][0];\r\n } while (true);\r\n //End of Step 2: Euclidean step for t=2\r\n\r\n //Step 3: Compute nu2\r\n U[0][0] = U[0][0].subtract(h);\r\n V[0][0] = V[0][0].subtract(p);\r\n if (U[0][0].multiply(U[0][0]).add(V[0][0].multiply(V[0][0])).compareTo(s)==-1) {\r\n s = U[0][0].multiply(U[0][0]).add(V[0][0].multiply(V[0][0]));\r\n hPrime = U[0][0];\r\n pPrime = V[0][0];\r\n }\r\n t++; //t=2\r\n nu[t - 1] = s.doubleValue(); //nu2\r\n\r\n //Setting up the matrices\r\n U = new BigInteger[t][t];\r\n V = new BigInteger[t][t];\r\n\r\n //U:\r\n U[0][0] = h.negate();\r\n U[0][1] = p;\r\n U[1][0] = hPrime.negate();\r\n U[1][1] = pPrime;\r\n\r\n //V:\r\n V[0][0] = pPrime;\r\n V[0][1] = hPrime;\r\n V[1][0] = p.negate();\r\n V[1][1] = h.negate();\r\n\r\n if (pPrime.compareTo(BigInteger.ZERO) > 0) //if pPrime>0 then V = -V\r\n {\r\n for (int i = 0; i < t; i++) {\r\n for (int j = 0; j < t; j++) {\r\n V[i][j] = V[i][j].negate();\r\n }\r\n }\r\n }\r\n //End of Step 3: Compute nu2\r\n\r\n //Step 4: For values 2<t<=T\r\n while (t < T) {\r\n t++; //3, 4,..., T\r\n //System.out.println(\"t=\"+t);\r\n \r\n r = a.multiply(r).mod(m);\r\n\r\n BigInteger uIncreased[][] = new BigInteger[t][t];\r\n BigInteger vIncreased[][] = new BigInteger[t][t];\r\n\r\n for (int i = 0; i < t; i++) {\r\n for (int j = 0; j < t; j++) {\r\n uIncreased[i][j] = vIncreased[i][j] = BigInteger.ZERO;\r\n }\r\n }\r\n \r\n //setting Ut and Vt i.e. last rows of the new U and V\r\n uIncreased[t - 1][0] = r.negate();\r\n vIncreased[t - 1][0] = BigInteger.ZERO;\r\n// for (int i = 1; i < t - 1; i++) {\r\n// uIncreased[t - 1][i] = vIncreased[t - 1][i] = BigInteger.ZERO;\r\n// }\r\n uIncreased[t - 1][t - 1] = BigInteger.ONE;\r\n vIncreased[t - 1][t - 1] = m;\r\n\r\n //copy u & v to uIncreased & vIncreased\r\n for (int i = 0; i < U.length; i++) {\r\n int j;\r\n for (j = 0; j < U[i].length; j++) {\r\n uIncreased[i][j] = U[i][j];\r\n vIncreased[i][j] = V[i][j];\r\n }\r\n //Uit = 0 , Vit = Vi1*r - q*m where q = round(vi1*r/m) for 1<=i<t. Here j=t now.\r\n// uIncreased[i][j] = 0;\r\n //q = Math.round(vIncreased[i][1] * r / (double)m); //casting to prevent precision loss by division\r\n //q = vIncreased[i][1].multiply(r).divide(m);\r\n q = divideAndRound(vIncreased[i][0].multiply(r), m);\r\n vIncreased[i][j] = vIncreased[i][0].multiply(r).subtract(q.multiply(m));\r\n\r\n //Ut = Ut + q*Ui\r\n uIncreased[t - 1] = (new Vector(uIncreased[t - 1]).add(new Vector(uIncreased[i]).multiplyScalar(q))).toArray();\r\n }\r\n \r\n U = uIncreased;\r\n V = vIncreased;\r\n\r\n BigInteger utSq = new Vector(U[t - 1]).selfProduct();\r\n if (utSq.compareTo(s) < 0) {\r\n s = utSq;\r\n }\r\n\r\n int k = t - 1; //last index where the transformation shortened atleast one of the Vi\r\n int j = 0; //current row index for transformation(Knuth's algo is 1-based, arrays here are 0-based)\r\n\r\n //Step 7: Advance j. Starts elsewhere according to Knuth's algo. Modified to prevent gotos.\r\n do {\r\n //Step 5: Transform\r\n for (int i = 0; i < t; i++) {\r\n Vector vI = new Vector(V[i]);\r\n Vector vJ = new Vector(V[j]);\r\n BigInteger vIDotJ = vI.multiply(vJ);\r\n BigInteger vJDotJ = vJ.selfProduct();\r\n //System.out.println(vIDotJ.multiply(new BigInteger(\"2\"))+\" & \"+vJDotJ+\" i= \"+i+\" j= \"+j);\r\n if (i != j && vIDotJ.abs().multiply(new BigInteger(\"2\")).compareTo(vJDotJ) > -1) {\r\n q = divideAndRound(vIDotJ, vJDotJ); //casting to prevent precision loss by division\r\n //Vi = Vi - q*Vj\r\n V[i] = vI.subtract(vJ.multiplyScalar(q)).toArray();\r\n //Uj = Uj + q*Ui\r\n U[j] = new Vector(U[j]).add(new Vector(U[i]).multiplyScalar(q)).toArray();\r\n k = j;\r\n }\r\n }\r\n //End of Step 5: Transform\r\n\r\n //Step 6: Examine new bound\r\n if (k == j) {\r\n BigInteger ujSq = new Vector(U[j]).selfProduct();\r\n if (ujSq.compareTo(s) < 0) {\r\n s = ujSq;\r\n }\r\n }\r\n //End of Step 6: Examine new bound\r\n j = (j + 1) % t;\r\n } while (j != k);\r\n //System.out.println(\"Ended loop of step 7\");\r\n //End of Step 7: Advance j\r\n\r\n //Step 8: Prepare for search\r\n BigInteger X[] = new BigInteger[t];\r\n BigInteger Y[] = new BigInteger[t];\r\n BigInteger Z[] = new BigInteger[t];\r\n //extra overhead of initializing BigInteger arrays :(\r\n for (int i = 0; i < t; i++) {\r\n X[i] = Y[i] = Z[i] = BigInteger.ZERO;\r\n }\r\n \r\n k = t - 1;\r\n //Setting Z\r\n for (int i = 0; i < t; i++) {\r\n Vector vI = new Vector(V[i]);\r\n //Z[i] = (BigInteger) Math.floor(Math.sqrt(Math.floor((vI.selfProduct() * s / (double)m)/ m))); //If m is too big m^2 becomes inf, \r\n //so divide by m twice instead of dividing by m^2\r\n //Exploiting the fact that floor(a/b^2) = floor(floor(a/b)/b)\r\n //The BigIntegers are actually small enough before taking square roots hence sqrt(double) works fine enough\r\n String temp = String.valueOf(Math.floor(Math.sqrt(Math.floor(\r\n vI.selfProduct().multiply(s).divide(m).divide(m).doubleValue()))));\r\n Z[i] = new BigInteger(temp.substring(0, temp.length()-2));\r\n //----------------------------------------------------------------------------------------------------\r\n }\r\n //End of Step 8: Prepare for search\r\n\r\n //Step 9: Advance Xk\r\n do {\r\n if (X[k].compareTo(Z[k])!=0) { //X[k] != Z[k]\r\n X[k] = X[k].add(BigInteger.ONE);\r\n Y = new Vector(Y).add(new Vector(U[k])).toArray();\r\n\r\n //Step 10: Advance k\r\n do {\r\n ++k;\r\n if (k <= t - 1) {\r\n X[k] = Z[k].negate();\r\n Y = new Vector(Y).subtract(new Vector(U[k]).multiplyScalar(Z[k].multiply(new BigInteger(\"2\")))).toArray();\r\n } else {\r\n BigInteger ySq = new Vector(Y).selfProduct();\r\n if (ySq.compareTo(s) < 0) {\r\n s = ySq;\r\n }\r\n break;\r\n }\r\n } while (true);\r\n //End of Step 10: Advance k\r\n }\r\n //End of Step 9: Advance Xk\r\n //Step 11: Decrease k\r\n --k;\r\n //System.out.println(\"Stuck at k=\"+k);\r\n } while (k >= 0);\r\n nu[t - 1] = s.doubleValue();\r\n //End of Step 11: Decrease k\r\n }\r\n //End of Step 4: For values 2<t<=T\r\n \r\n //Calculating mu\r\n calculateMu();\r\n //\r\n //Show a comprehensive summary of the test results\r\n showSummary();\r\n return getNu();\r\n }",
"private void calculatePID(float LoopTime){\n\n\n\t\t// Append to our data sets.\n\t\tdata.PID.integralData.add(data.PID.computedTarget - data.PID.target);\n\t\tdata.PID.derivativeData.add(data.PID.computedTarget);\n\n\t\t// Keep integralData and derivativeData from having an exceeding number of entries.\n\t\tif (data.PID.integralData.size() > data.PID.INTEGRAL_DATA_MAX_SIZE){\n\t\t\tdata.PID.integralData.remove(0);\n\t\t}\n\n\t\tif(data.PID.derivativeData.size() > data.PID.DERIVATIVE_DATA_MAX_SIZE){\n\t\t\tdata.PID.derivativeData.remove(0);\n\t\t}\n\n\t\t// Set our P, I, and D values.\n\t\t// `P` will be the computedTarget - target\n\t\tdata.PID.P = data.PID.computedTarget - data.PID.target;\n\n\t\t// `I` will be the average of the integralData (Cries softly at the lack of Java8 streams)\n\t\tfloat IntegralAverage = 0;\n\t\tfor(float value : data.PID.integralData){\n\t\t\tIntegralAverage += value;\n\t\t}\n\t\tdata.PID.I = IntegralAverage / data.PID.integralData.size();\n\n\t\t// `D` will be the difference of the computedTarget and the Derivative average divided by\n\t\t// the time since the last loop in seconds multiplied by one plus half of the size of\n\t\t// the Derivative data set size.\n\t\tfloat DerivativeAverage = 0;\n\t\tfor(float value : data.PID.derivativeData){\n\t\t\tDerivativeAverage += value;\n\t\t}\n\t\tDerivativeAverage /= data.PID.derivativeData.size();\n\n\t\tdata.PID.D = (data.PID.computedTarget - DerivativeAverage) / ((LoopTime/1000) * (1 + (data.PID.derivativeData.size() / 2)));\n\t}",
"private double[][] xInitialization() {\n /* if (getTextToDouble(textX0)>=getTextToDouble(textX1))\n JOptionPane.showMessageDialog(null,\"X0 count can't be grater than X1 count\",\"Error message\",JOptionPane.ERROR_MESSAGE);\n */\n final double h = (getTextToDouble(textX1) - getTextToDouble(textX0)) / ( 2*getTextToDouble(textN));\n double[][] massOfY = new double[2][];\n massOfY[0] = new double[(int) getTextToDouble(textN)];\n massOfY[1] = new double[(int) getTextToDouble(textN) - 1];\n\n for (int i = 1; i <= 2*getTextToDouble(textN)-1; i++) {\n double x = getTextToDouble(textX0)+i*h;\n if (i%2!=0)\n massOfY[0][i / 2] = x;\n else\n massOfY[1][i / 2 - 1] = x;\n }\n\n return massOfY;\n }",
"public static void main(String[] args) {\n\n for(int i=0; i<3;i++){\n // arr[i] = new Array1(i+3,i*2);\n //arr[0] = arr.getArray(3,5);\n\n }\n\n }",
"public abstract double initialise();",
"@Override\r\n public double calculatePiValue() {\r\n double variable = 0;\r\n double value = 0;\r\n for (int step =1;step<=steps; step++) {\r\n variable = step*2+1;\r\n if(step % 2 == 0) {\r\n value = value + ( (double)1 / variable);\r\n } else {\r\n value = value - ( (double)1 / variable);\r\n }\r\n }\r\n value = (1 + value)* 4;\r\n return value;\r\n }",
"protected void setValues() {\n values = new double[size];\n int pi = 0; // pixelIndex\n int siz = size - nanW - negW - posW;\n int biw = min < max ? negW : posW;\n int tiw = min < max ? posW : negW;\n double bv = min < max ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY;\n double tv = min < max ? Double.POSITIVE_INFINITY : Double.NEGATIVE_INFINITY;\n double f = siz > 1 ? (max - min) / (siz - 1.) : 0.;\n for (int i = 0; i < biw && pi < size; i++,pi++) {\n values[pi] = bv;\n }\n for (int i = 0; i < siz && pi < size; i++,pi++) {\n double v = min + i * f;\n values[pi] = v;\n }\n for (int i = 0; i < tiw && pi < size; i++,pi++) {\n values[pi] = tv;\n }\n for (int i = 0; i < nanW && pi < size; i++,pi++) {\n values[pi] = Double.NaN;\n }\n }",
"public static void main(String[] args) throws Exception {\n Circulo c[] = new Circulo[3];\n c[0] = new Circulo(5);\n c[1] = new Circulo(6);\n c[2] = new Circulo(7);\n System.out.println(c[0].area());\n System.out.println(c[0].perimetro());\n System.out.println(c[1].area());\n System.out.println(c[1].perimetro());\n System.out.println(c[2].area());\n System.out.println(c[2].perimetro());\n\n // vetor de retangulos e suas devidas implementacoes\n Retangulo r[] = new Retangulo[3];\n\n r[0] = new Retangulo(5, 3);\n r[1] = new Retangulo(45, 8);\n r[2] = new Retangulo(5, 5);\n System.out.println(r[0].area());\n System.out.println(r[0].perimetro());\n System.out.println(r[1].area());\n System.out.println(r[1].perimetro());\n System.out.println(r[2].area());\n System.out.println(r[2].perimetro());\n\n Quadrado q[] = new Quadrado[3];\n\n q[0] = new Quadrado(5);\n q[1] = new Quadrado(8);\n q[2] = new Quadrado(3);\n System.out.println(q[0].area());\n System.out.println(q[0].perimetro());\n System.out.println(q[1].area());\n System.out.println(q[1].perimetro());\n System.out.println(q[2].area());\n System.out.println(q[2].perimetro());\n\n }",
"public double [] biseccion ( ) {\n Scanner leer = new Scanner(System.in); \r\n int cantCoeficientes ;\r\n System.out.print(\"Cuantos coeficientes quiere ingresar ? : \");\r\n cantCoeficientes = leer.nextInt(); \r\n \r\n double[]coeficientes =new double [cantCoeficientes];\r\n \r\n for (int i = 0; i < coeficientes.length ; i++){ \r\n System.out.print(\"Digite el numero a ingresar \\n\");\r\n coeficientes[i] =leer.nextDouble();\r\n }\r\n \r\n System.out.println(\"Coeficientes de la funcion polinomica\"); \r\n for (int j = 0; j < coeficientes.length ; j++){ \r\n System.out.print(coeficientes[j]+\" \");\r\n \r\n }\r\n \r\n double[]coeficientesA =new double [cantCoeficientes];\r\n for (int k = 0; k < coeficientesA.length ; k++){ \r\n coeficientesA[k] =coeficientes[k];\r\n }\r\n \r\n double[]coeficientesB =new double [cantCoeficientes];\r\n for (int l = 0; l < coeficientesA.length ; l++){ \r\n coeficientesB[l] =coeficientes[l];\r\n }\r\n \r\n////************* OPERACION DE LA FUNCION POLINOMICA PARA SACAR LA BISECCION***********************//// \r\n \r\n int veces = 0 ;\r\n int nveces ;\r\n System.out.println(\"cuantas veces necesita ver la biseccion?\");\r\n nveces = leer.nextInt();\r\n double fA = a ;\r\n double fB = b ;\r\n \r\n double pA = cantCoeficientes;\r\n double pB = cantCoeficientes;\r\n \r\n while ( nveces != veces ) {\r\n \r\n double acumA = 0; \r\n \r\n for ( int n = 0; n <= fA ; n++ ){\r\n acumA = coeficientesA[n] * Math.pow(a,pA)+acumA;\r\n pA--;\r\n }\r\n\r\n System.out.print( \" \\n Extremo derecho n \"+veces+\" : \" + acumA + \"\\n\" );\r\n\r\n\r\n double acumB = 0; \r\n for ( int n = 0; n <= fB ; n++ ){\r\n acumB = coeficientesA[n] * Math.pow(a,pB)+acumB;\r\n pB--;\r\n }\r\n\r\n System.out.print( \" \\n Extremo izquierdo n \"+veces+\" : \" + acumB +\"\\n\");\r\n\r\n double c ;\r\n\r\n c = (acumA+acumB)/2;\r\n System.out.print( \" \\n Punto medio n \"+veces+\" : \" + c + \"\\n\");\r\n \r\n\r\n if( acumA > 0 && c > 0 ) {\r\n\r\n b = c ;\r\n\r\n }\r\n else {\r\n a = c ;\r\n }\r\n\r\n veces++;\r\n \r\n }\r\n return coeficientes; \r\n }",
"void example7() {\n\t\t\n\t\t// allocate the data\n\t\t\n\t\tIndexedDataSource<HighPrecisionMember> data = ListDataSource.construct(G.HP, 1234);\n\t\t\n\t\t// fill the list with values\n\t\t\n\t\tHighPrecisionMember value = G.HP.construct();\n\t\t\n\t\tfor (long i = 0; i < data.size(); i++) {\n\t\t\t\n\t\t\tvalue.setV(BigDecimal.valueOf(i));\n\n\t\t\tdata.set(i, value);\n\t\t}\n\n\t\t// then calculate a result\n\n\t\tHighPrecisionMember result = G.HP.construct();\n\t\t\n\t\tStdDev.compute(G.HP, data, result);\n\t}",
"public double[] calc(double input[]) {\r\n\t\tfor (int i = 0; i < input.length; i++) {\r\n\t\t\tstages[0].output[i] = input[i];\r\n\t\t}\r\n\t\tfor (int i = 1; i < stages.length; i++) {\r\n\t\t\tstages[i].calc();\r\n\t\t}\r\n\t\treturn stages[stages.length - 1].output;\r\n\t}",
"public double[] getProminence() { return this.prominence; }",
"public void estimateParameter(){\r\n int endTime=o.length;\r\n int N=hmm.stateCount;\r\n double p[][][]=new double[endTime][N][N];\r\n for (int t=0;t<endTime;++t){\r\n double count=EPS;\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n p[t][i][j]=fbManipulator.alpha[t][i]*hmm.a[i][j]*hmm.b[i][j][o[t]]*fbManipulator.beta[t+1][j];\r\n count +=p[t][j][j];\r\n }\r\n }\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n p[t][i][j]/=count;\r\n }\r\n }\r\n }\r\n double pSumThroughTime[][]=new double[N][N];\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n pSumThroughTime[i][j]=EPS;\r\n }\r\n }\r\n for (int t=0;t<endTime;++t){\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n pSumThroughTime[i][j]+=p[t][i][j];\r\n }\r\n }\r\n }\r\n\r\n //rebuild gamma\r\n for (int t=0;t<endTime;++t){\r\n for (int i=0;i<N;++i) fbManipulator.gamma[t][i]=0;\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n fbManipulator.gamma[t][i]+=p[t][i][j];\r\n }\r\n }\r\n }\r\n\r\n double gammaCount=EPS;\r\n //maximum parameter\r\n for (int i=0;i<N;++i){\r\n gammaCount+=fbManipulator.gamma[0][i];\r\n hmm.pi[i]=fbManipulator.gamma[0][i];\r\n }\r\n for (int i=0;i<N;++i){\r\n hmm.pi[i]/=gammaCount;\r\n }\r\n\r\n for (int i=0;i<N;++i) {\r\n gammaCount = EPS;\r\n for (int t = 0; t < endTime; ++t) gammaCount += fbManipulator.gamma[t][i];\r\n for (int j = 0; j < N; ++j) {\r\n hmm.a[i][j] = pSumThroughTime[i][j] / gammaCount;\r\n }\r\n }\r\n for (int i=0;i<N;i++){\r\n for (int j=0;j<N;++j){\r\n double tmp[]=new double[hmm.observationCount];\r\n for (int t=0;t<endTime;++t){\r\n tmp[o[t]]+=p[t][i][j];\r\n }\r\n for (int k=0;k<hmm.observationCount;++k){\r\n hmm.b[i][j][k]=(tmp[k]+1e-8)/pSumThroughTime[i][j];\r\n }\r\n }\r\n }\r\n //rebuild fbManipulator\r\n fbManipulator=new HMMForwardBackwardManipulator(hmm,o);\r\n }",
"public static void main(String[] args) {PercolationStats ps = new PercolationStats(10,10); \n//\t\tSystem. out .println( ps .mean());\n//\t\tps = new PercolationStats(20,10);\n//\t\tSystem. out .println( ps.confidenceLow());\n//\t\t\n\t\tint[] number = { 50, 100, 200,400};\n\t\tfor ( int i : number)\n\t\t{\n\t\t\tdouble start = System.nanoTime();\n\t\t\tPercolationStats ps = new PercolationStats(i,100); \n\t\t\tdouble end = System.nanoTime();\n\t\t\tdouble time = (end-start)/1e9;\n\t\t\t//System.out.printf(\"n = %d, mean: %1.4f, time: %1.4f\\n\",i, ps.mean(),time);\n\t\t}\n\n\t}",
"void total() {\r\n t=m1+m2+m3;\r\n per=t/3;\r\n System.out.println(\"total :\"+t);\r\n System.out.println(\"persentage:\"+per);\r\n \r\n \r\n }",
"public void main(String[] args) throws Exception\r\n\t{\r\n\t\tint V; // number of vertices for the current iteration\r\n\r\n\t\tif(args.length != 6)\r\n\t\t{\r\n\t\t\tusage();\r\n\t\t}\r\n\t\t\r\n\t\tseed = Long.parseLong(args[0]);\r\n\t\tlowerV = Integer.parseInt(args[1]);\r\n\t\tupperV = Integer.parseInt(args[2]);\r\n\t\tp = Double.parseDouble(args[3]);\r\n\t\tT = Long.parseLong(args[4]);\r\n\t\tincrement = Integer.parseInt(args[5]);\r\n\r\n\t\t// print the command line used to run this code\r\n\t\tSystem.out.print(\"$ java pj2 MonteCarloPSeq\");\r\n\t\tfor(String arg : args)\r\n\t\t{\r\n\t\t\tSystem.out.print(\" \" + arg);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\r\n\t\tSystem.out.println(\"V\\t\\tAvg d\");\r\n\r\n\t\tfor(int v1 = lowerV; v1 <= upperV; v1 += increment)\t\t\r\n\t\t{\r\n\t\t\tfinal DoubleVbl.Sum sumVbl = new DoubleVbl.Sum();\r\n\r\n\t\t\tint vHold = v1;\r\n\t\t\tdouble avg;\r\n\r\n\t\t\t// do T trials in parallel\r\n\t\t\tparallelFor(0, T - 1).exec(new LongLoop()\r\n\t\t\t{\r\n\t\t\t\t// Per-thread variables\r\n\t\t\t\tArrayList<Vertex> vertices;\r\n\t\t\t\tRandom rand;\r\n\t\t\t\tGraph graph;\r\n\t\t\t\tDoubleVbl.Sum thrSum;\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * initialize per-thread variables\r\n\t\t\t\t */\r\n\t\t\t\tpublic void start()\r\n\t\t\t\t{\r\n\t\t\t\t\trand = new Random(seed + rank());\r\n\t\t\t\t\tgraph = new Graph(rand);\r\n\t\t\t\t\tthrSum = threadLocal(sumVbl);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * Loop body\r\n\t\t\t\t */\r\n\t\t\t\tpublic void run(long t)\r\n\t\t\t\t{\r\n\t\t\t\t\tvertices = graph.generateGraph(vHold, p);\r\n\t\t\t\t\t// thrSum.reduce(new DoubleVbl((double)graph.diameter(vHold, vertices)));\r\n\t\t\t\t\tthrSum.item += (double)graph.diameter(vHold, vertices);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tavg = sumVbl.item / T;\r\n\t\t\tSystem.out.println(vHold + \"\\t\\t\" + avg);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n Path file = pf.dataFolder.resolve(\n pf.resource.getString(\"data.file\"));\n List<Double> parameters = parseParameters(loadParameters(file));\n List<Double> results = new ArrayList<>();\n Scanner s = new Scanner(System.in);\n System.out.print(\"How many runs would you like to conduct? \");\n int runs = Integer.parseInt(s.nextLine());\n for (int i = 0; i < runs; i++) {\n double result = Volumetrics.oilInPlaceMCCast(parameters);\n results.add(result);\n System.out.printf(\"%,.2f%n\", result);\n }\n Collections.sort(results);\n System.out.print(\"P50 value of results: \");\n System.out.printf(\"%,.2f%n\",results.get(results.size() / 2));\n }",
"public static void main(String[] args) {\n\t\tint[] array = {10,12,13,11,15,16,14};\r\n\t\tfloat total = MyMath.total(array);\r\n\t\tfloat ave = MyMath.ave(array);\r\n\t\tfloat var = MyMath.variance(array);\r\n\t\tfloat stdev = MyMath.stdev(array);\r\n\t\t\r\n\t\tSystem.out.println(\"입력값\\t: \" + Arrays.toString(array));\r\n\t\tSystem.out.println(\"총점\\t: \" + total);\r\n\t\tSystem.out.println(\"평균\\t: \" + ave);\r\n\t\tSystem.out.println(\"분산\\t: \" + var);\r\n\t\tSystem.out.println(\"표준편차\\t: \" + stdev);\r\n\t}",
"private double[] evaluateProbability(double[] data) {\n\t\tdouble[] prob = new double[m_NumClasses], v = new double[m_NumClasses];\n\n\t\t// Log-posterior before normalizing\n\t\tfor (int j = 0; j < m_NumClasses - 1; j++) {\n\t\t\tfor (int k = 0; k <= m_NumPredictors; k++) {\n\t\t\t\tv[j] += m_Par[k][j] * data[k];\n\t\t\t}\n\t\t}\n\t\tv[m_NumClasses - 1] = 0;\n\n\t\t// Do so to avoid scaling problems\n\t\tfor (int m = 0; m < m_NumClasses; m++) {\n\t\t\tdouble sum = 0;\n\t\t\tfor (int n = 0; n < m_NumClasses - 1; n++)\n\t\t\t\tsum += Math.exp(v[n] - v[m]);\n\t\t\tprob[m] = 1 / (sum + Math.exp(-v[m]));\n\t\t\tif (prob[m] == 0)\n\t\t\t\tprob[m] = 1.0e-20;\n\t\t}\n\n\t\treturn prob;\n\t}",
"public double[] getAllOutputValues(){\r\n\t\treturn realValues[1];\r\n\t}",
"public void compute() {}",
"public static void main(String[] args) {\n\r\n\t\tint [] vectorInicial=new int [10];\r\n\t\tint [] vectorPares=new int [10];\r\n\t\tint [] vectorImpares=new int [10];\r\n\t\tint pares=0, impares=0;\r\n\t\t\r\n\t\tfor(int i=0;i<vectorInicial.length;i++) {\r\n\t\t\tSystem.out.println(\"Dame un valor entre 1 y 20 para la posición \"+i);\r\n\t\t\tvectorInicial[i]=Entrada.entero();\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<vectorInicial.length;i++) {\r\n\t\t\tif (vectorInicial[i]%2==0) {\r\n\t\t\t\tpares++;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\timpares++;\r\n\t\t\t\t \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tvectorPares=new int [pares];\r\n\t\tvectorImpares=new int [impares];\r\n\t\t\r\n\t\tfor(int i=0;i<vectorInicial.length;i++) {\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Hay \"+vectorPares+\" números pares.\");\r\n\t\tSystem.out.println(\"Hay \"+vectorImpares+\" números impares.\");\r\n\t}",
"public abstract int calculateOutput();",
"int[] getValues()\n {\n return values_;\n }",
"public static void main(String[] args) {\n int numeros[] = {2, 3, 4, 2, 4, 5, 6, 2, 1, 2};\n //Creamos segundo arreglo con iguall tamaño que el arreglo nùmeros\n int cuadrados[] = new int[numeros.length];\n //Arreglo para almacenar el proceso de la operación\n String procesos[] = new String[numeros.length];\n //Creamos ciclo de repeticiòn para recorrer arreglo \n for (int indice = 0; indice < numeros.length; indice++) {\n int cuadrado = numeros[indice] * numeros[indice];\n //Almacenamos el proceso de la opreaciòn en el arreglo cuadrados\n cuadrados[indice] = cuadrado;\n \n //Almacenar resultado en el arreglo procesos\n procesos[indice] = numeros[indice] + \"x\" + numeros[indice];\n }\n //Ciclo de repetición para mostrar arreglos\n String print_numeros = \"numeros - \";\n String print_cuadrados = \"cuadrados - \";\n String print_procesos = \"procesoss - \";\n for (int indice = 0; indice < numeros.length; indice++) {\n print_numeros = print_numeros + numeros[indice] + \", \";\n print_cuadrados = print_cuadrados + cuadrados[indice] + \", \";\n print_procesos = print_procesos + procesos[indice] + \", \";\n\n }\n System.out.println(print_numeros);\n System.out.println(print_cuadrados);\n System.out.println(print_procesos);\n \n //suma solo numeros pares\n int acumulador_pares=0;\n for (int indice = 0; indice < 10; indice++) {\n boolean par= detectar_par(numeros[indice]);\n if (par == true) {\n acumulador_pares = acumulador_pares + numeros[indice];\n \n }\n }\n System.out.println(\"La suma de los nùmeros pares es: \"+acumulador_pares);\n \n }",
"void calculatePR( int iteration){\n\t\t\n\t\ttotal_nodes = inlinks.size();\n\t\tfor(String page : inlinks.keySet()){\n\t\t\tPageRank.put(page, (1/(double)(total_nodes)));\n\t\t\tinit_PageRank.put(page, (1/(double)(total_nodes)));\n\t\t}\n \n double ppx = 0.0;\n boolean cond = true;\n int itr =1;\n // while(iteration >0){ //Used for Graph page rank calculation; c\n while(cond){ \n \tSystem.out.println(\"Iteration\"+itr); \n double sinkPR = 0;\n for(String s: sink){\n \tsinkPR = sinkPR + (PageRank.get(s)); //calculate total sink PR\n }\n \n double entropy = 0.0;\n \n for(String s: PageRank.keySet()){\n \tdouble newPR;\n \tnewPR = (1.0 -d)/total_nodes;\n \tnewPR = newPR + (d*sinkPR)/total_nodes;\n \tSet<String> in = inlinks.get(s); //pages pointing to P\n \tif(in != null){\n \t\tfor(String s1 : in){\n \t\t\tnewPR = newPR + d* (PageRank.get(s1)/outlinks_count.get(s1)); \t\t \n \t\t}\n \t} \n \t\tnew_PageRank.put(s, newPR);\n \t\tentropy = entropy + (newPR*(Math.log(newPR)/Math.log(2))); //entroPy calculation\n \t}\n \n PageRank.putAll(new_PageRank);\n ppx = Math.pow(2,-1*entropy);\n System.out.println(\"perplexity : \"+ ppx);\n ppx_list.add(ppx);\n if(ppx_list.size()>5) \n \tcond= !check(4);\n \n itr++;\n \t\n //\t iteration --; //Used for page Rank Calculation of Graph\n } \n\t}",
"private int[] vtinit(ProblemData a) {\r\n\r\n\r\n int[] vector = new int[a.getProcesses().length];\r\n for (int i = 0; i < a.getProcesses().length; i++) {\r\n vector[i] = a.getProcesses()[i].getWeight();\r\n }\r\n return vector;\r\n\r\n }",
"double[] calculateProbabilities(LACInstance testInstance) throws Exception\n\t{\n\t\tdouble[] probs;\n\t\tdouble[] scores = calculateScores(testInstance);\n\t\t\n\t\tif(scores != null)\n\t\t{\n\t\t\tprobs = new double[scores.length];\n\t\t\tdouble scoreSum = 0.0;\n\t\t\tfor (int i = 0; i < scores.length; i++)\n\t\t\t{\n\t\t\t\tscoreSum += scores[i];\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < scores.length; i++)\n\t\t\t{\n\t\t\t\tprobs[i] = scores[i] / scoreSum;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSet<Integer> allClasses = trainingSet.getAllClasses();\n\t\t\tprobs = new double[allClasses.size()];\n\t\t\tfor (Integer clazz : allClasses) \n\t\t\t{\n\t\t\t\tdouble count = trainingSet.getInstancesOfClass(clazz).size();\n\t\t\t\tprobs[clazz] = (count / ((double) trainingSet.length()));\n\t\t\t}\n\t\t}\n\n\t\treturn probs ;\n\t}",
"private void calculations() {\n\t\tSystem.out.println(\"Starting calculations\\n\");\n\t\tcalcMedian(myProt.getChain(requestedChain));\n\t\tcalcZvalue(myProt.getChain(requestedChain));\n\t\tcalcSVMweightedZvalue(myProt.getChain(requestedChain));\n\t}",
"@Test\n public void testP() {\n System.out.println(\"p\");\n NegativeBinomialDistribution instance = new NegativeBinomialDistribution(3, 0.3);\n instance.rand();\n assertEquals(0.027, instance.p(0), 1E-7);\n assertEquals(0.0567, instance.p(1), 1E-7);\n assertEquals(0.07938, instance.p(2), 1E-7);\n assertEquals(0.09261, instance.p(3), 1E-7);\n assertEquals(0.05033709, instance.p(10), 1E-7);\n }",
"public Polynomial add(Polynomial p){\n\t\t Polynomial sum = new Polynomial();\n\t\t \n\t\t for( int i=0; i < p.maxindex; i++) {\n\t\t // if (p.data[i] != 0)\n\t\t sum.setCoefficient(i, this.data[i]+p.data[i]);\n\t\t \n\t\t }\n\t\t if(this.maxindex>p.maxindex)\n\t\t {\n\t\t\t for(int i=p.maxindex-1;i<this.maxindex;i++)\n\t\t\t\t sum.setCoefficient(i, this.data[i]);\n\t\t\t \n\t\t }\n\t\t \n\t\t return sum;\n\t\t\n\t}",
"private void getPoints()\n\t{\n\t\ttotalEntered = statsCollector.getTotalEnteredPoints();\n\t\taverageWait = statsCollector.getAverageWaitPoints();\n\t\tmaxWait = statsCollector.getMaxWaitPoints();\n\t\ttimeAlive = statsCollector.getTimeAlivePoints();\n\t}",
"@Override\n public Tuple<Double, DoubleVector> call() throws Exception {\n for (int particleIndex = range.getStart(); particleIndex < range.getEnd(); particleIndex++) {\n DoubleVector currentPosition = particlePositions[particleIndex];\n DoubleVector currentBest = particlePersonalBestPositions[particleIndex];\n DenseDoubleVector vec = new DenseDoubleVector(dim);\n for (int index = 0; index < vec.getDimension(); index++) {\n double value = (phi * currentPosition.get(index)) // inertia\n + (alpha * random.nextDouble() * (currentBest.get(index) - currentPosition\n .get(index))) // personal memory\n + (beta * random.nextDouble() * (globalBestPosition.get(index) - currentPosition\n .get(index))); // group memory\n vec.set(index, value);\n }\n particlePositions[particleIndex] = vec;\n double cost = f.evaluateCost(vec).getCost();\n // check if we have a personal best\n if (cost < particlePersonalBestCost[particleIndex]) {\n particlePersonalBestCost[particleIndex] = cost;\n particlePersonalBestPositions[particleIndex] = vec;\n // if we had a personal best, do we have a better global?\n if (cost < globalCost) {\n globalCost = cost;\n globalBestPosition = vec;\n }\n }\n }\n return new Tuple<>(globalCost, globalBestPosition);\n }",
"public BigInteger getP() {return(p);}",
"public static void main(String[] args) {\n CPI cpi = new CPI();\r\n cpi.entra(3);\r\n cpi.entra(6);\r\n cpi.entra(4);\r\n cpi.resta();\r\n cpi.multiplica();\r\n cpi.entra(5);\r\n cpi.suma();\r\n System.out.println(\"Resultado \" + cpi.getResultado ());\r\n }",
"public interface IOptAlgorithm {\n\n\t/**\n\t * @return Array of weights.\n\t */\n\tpublic double[] run();\n}",
"private Pares(){\n\t\t\tprimero=null;\n\t\t\tsegundo=null;\n\t\t\tdistancia=0;\n\t\t}",
"public abstract void calculate();"
] |
[
"0.6647686",
"0.6492568",
"0.6284755",
"0.62144345",
"0.62026733",
"0.6034248",
"0.59066856",
"0.5896022",
"0.5854201",
"0.58227277",
"0.5808583",
"0.5800804",
"0.5786006",
"0.57755667",
"0.57717824",
"0.5768721",
"0.5754083",
"0.57521904",
"0.57477087",
"0.5739037",
"0.57364124",
"0.5734953",
"0.5733765",
"0.5715749",
"0.5698405",
"0.5689039",
"0.5659786",
"0.5647749",
"0.5629474",
"0.5618663",
"0.5613042",
"0.56015646",
"0.55928004",
"0.55905235",
"0.55823267",
"0.55787736",
"0.5574414",
"0.55637705",
"0.55617124",
"0.5560391",
"0.55544466",
"0.5541274",
"0.55411005",
"0.55399364",
"0.5537206",
"0.5536019",
"0.55340046",
"0.5533557",
"0.5527427",
"0.55255747",
"0.5523922",
"0.5518656",
"0.5513908",
"0.54841983",
"0.5483065",
"0.54632145",
"0.546274",
"0.5446072",
"0.5440804",
"0.54294366",
"0.54235774",
"0.54230756",
"0.54207134",
"0.5414017",
"0.54129684",
"0.5408692",
"0.54021484",
"0.5400961",
"0.5399979",
"0.53910416",
"0.539042",
"0.5389529",
"0.53883976",
"0.5384396",
"0.5383452",
"0.5381423",
"0.5376427",
"0.5374332",
"0.5372851",
"0.5372557",
"0.53683054",
"0.53632164",
"0.53603053",
"0.5352636",
"0.5346592",
"0.53461266",
"0.53445745",
"0.5344535",
"0.53406304",
"0.53355694",
"0.5334538",
"0.53309655",
"0.5329587",
"0.53281665",
"0.5328154",
"0.53268653",
"0.5326601",
"0.53250325",
"0.5324569",
"0.53238285",
"0.53230315"
] |
0.0
|
-1
|
getter to get the floor no
|
public int getFloor() {
return floor;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getFloor();",
"public int floorNumber() {\n return _number;\n }",
"public int getFloorNumber(){\r\n\t\treturn iFloorNumber;\r\n\t}",
"public int getMinFloor();",
"public int getCurrentFloor();",
"public String getFloor() {\n return this.floor;\n }",
"public String getFloor() {\n\t\treturn floor;\n\t}",
"public int currentFloor(){\n return currentFloor;\n }",
"public Floor floor() {\r\n\t\treturn this.floor;\r\n\t}",
"public int getGotoFloor();",
"public int getMaxFloor();",
"public int getCurrentFloor() {\n return currentFloor;\n }",
"public int getCurrentFloor() {\n return currentFloor;\n }",
"public int getCurrentFloor() {\n\t\treturn currentFloor;\n\t}",
"@JSProperty(\"floor\")\n double getFloor();",
"public java.lang.String getFloorLimit() {\r\n return floorLimit;\r\n }",
"public java.lang.String getFLOOR()\n {\n \n return __FLOOR;\n }",
"public void setFloor(int floor) {\n this.floor = floor;\n }",
"public int getDestinationFloor(){\n return destinationFloor;\n }",
"@Nullable\n/* */ public Floor getFloor(int floorLevel) {\n/* 6423 */ if (this.floors != null)\n/* */ {\n/* 6425 */ for (Floor floor : this.floors) {\n/* */ \n/* 6427 */ if (floor.getFloorLevel() == floorLevel)\n/* 6428 */ return floor; \n/* */ } \n/* */ }\n/* 6431 */ return null;\n/* */ }",
"public int getCurrentFloorId() {\n\t\treturn currentFloorId;\n\t}",
"@Override\n\tpublic int calledByFloorNumber() {\n\t\treturn this.lastStoppedFloor;\n\t}",
"public void setFloor(String floor) {\n\t\tthis.floor = floor;\n\t}",
"public int getCustomerMaxTargetFloor();",
"@JSProperty(\"floor\")\n void setFloor(double value);",
"public int getCurrentFloorForElevator(int elevator) {\r\n \r\n int i = currentFloor;\r\n return i;\r\n }",
"public String floorName() {\n return _name;\n }",
"private static int fastfloor(double x){\n\t\tint xi=(int)x;\n\t\treturn x<xi?xi-1:xi;\n\t}",
"private static int fastfloor(final double x) {\n int floorX = (int) x;\n if (x < floorX) {\n return floorX - 1;\n } else {\n return floorX;\n }\n }",
"public int distanceFromFloor(int floor) {\n\t\treturn Math.abs(this.floor - floor);\n\t}",
"public void setFloor(double input) {\r\n floor=input;\r\n }",
"private static int floor(final double d) {\r\n return (int)Math.floor(d);\r\n }",
"public static double floor(double a) {\t\n\t\treturn ((a<0)?(int)(a-1):(int)a);\t\n\t}",
"public int getCurrentFloorForElevator(int elevator) {\t\t\n\t\treturn elevators.get(elevator).getCurrentFloor();\n\t}",
"protected String getFloorDescription(int floorNumber) {\n return \"Floor \" + (floorNumber + 1);\n }",
"public final int getDropFloorLevel(int maxFloorLevel) {\n/* 3138 */ int toRet = 0;\n/* 3139 */ if (this.floors != null)\n/* */ {\n/* 3141 */ for (Floor f : this.floors) {\n/* */ \n/* 3143 */ if (f.isSolid()) {\n/* */ \n/* 3145 */ if (f.getFloorLevel() == maxFloorLevel)\n/* */ {\n/* 3147 */ return maxFloorLevel;\n/* */ }\n/* 3149 */ if (f.getFloorLevel() < maxFloorLevel && f.getFloorLevel() > toRet)\n/* */ {\n/* 3151 */ toRet = f.getFloorLevel();\n/* */ }\n/* */ } \n/* */ } \n/* */ }\n/* 3156 */ return toRet;\n/* */ }",
"public Integer getDestinationFloor() {\n return switch (this.currentState){\n case UP -> this.jobs.isEmpty() ? this.currentFloor : this.jobs.last();\n case DOWN -> this.jobs.isEmpty() ? this.currentFloor : this.jobs.first();\n case IDLE -> null;\n };\n }",
"public K floor(K key);",
"public void setCurrentFloor(int i);",
"float getLt();",
"public Floor nextFloorUp() {\n Floor next = Floor.FIRST; // default value\n switch(_number){\n case 1: next = Floor.SECOND;\n break;\n case 2: next = Floor.THIRD;\n break;\n case 3: next = Floor.FOURTH;\n break;\n case 4: next = Floor.FIFTH;\n break;\n case 5: next = Floor.SIXTH;\n break;\n case 6: next = Floor.SEVENTH;\n break;\n\n }\n return next;\n }",
"public void setActualFloor(int _actualFloor) {\n\t\tactualFloor = _actualFloor;\n\t}",
"FloorType createFloorType();",
"public int getFloorsNo() {\n return floorsNo;\n }",
"public int getNround()\n {\n \treturn this.nround;\n }",
"public Floor nextFloorDown() {\n Floor next = Floor.FIRST; // default value\n switch(_number){\n case 2: next = Floor.FIRST;\n break;\n case 3: next = Floor.SECOND;\n break;\n case 4: next = Floor.THIRD;\n break;\n case 5: next = Floor.FOURTH;\n break;\n case 6: next = Floor.FIFTH;\n break;\n case 7: next = Floor.SIXTH;\n break;\n\n }\n return next;\n\n }",
"double getElevationWithFlooring();",
"private IFloor getFloor(int floorId) {\n \tIFloor floor = null;\n \tfor(int i=0;i<floors.size();i++) {\n \t\tif(floors.get(i).getFloorID() == floorId) {\n \t\t\tfloor = floors.get(i);\n \t\t\tbreak;\n \t\t}\n \t}\n \treturn floor;\n }",
"public long getNumerator();",
"@Nullable\n protected abstract Map.Entry<K, V> onGetFloorEntry(@Nullable final K key);",
"public int getNumberOfPeopleWaitingAtFloor(int floor) {\r\n return personCount.get(floor);\r\n }",
"public int getExitedCountAtFloor(int floor) {\n\t\tif(floor < getNumberOfFloors()) {\n\t\t\treturn exitedCount.get(floor);\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}",
"public static int floor(double d)\n {\n return (int) Math.floor(d);\n }",
"public int floorDistance(MovingSprite s) {\n\t\treturn 0;\n\t}",
"public final int getFourPerTileCount(int floorLevel) {\n/* 4859 */ if (this.vitems == null)\n/* 4860 */ return 0; \n/* 4861 */ return this.vitems.getFourPerTileCount(floorLevel);\n/* */ }",
"public static int part1(double num)\r\n {\r\n \r\n //Math.floor extract the integer part, then substract it from the original one \r\n int firstNum=(int)Math.floor(num);\r\n double secondNum=num-firstNum;\r\n return firstNum;\r\n \r\n }",
"public int getPlat()\n {\n return plat;\n }",
"private void getTileNumber() {\r\n int xtile = (int) Math.floor((coordinates.getLon() + 180) / 360 * (1 << zoom));\r\n int ytile = (int) Math.floor((1 - Math.log(Math.tan(Math.toRadians(coordinates.getLat())) + 1 / Math.cos(Math.toRadians(coordinates.getLat()))) / Math.PI) / 2 * (1 << zoom));\r\n\r\n if (xtile < 0) xtile = 0;\r\n\r\n if (xtile >= (1 << zoom)) xtile = ((1 << zoom) - 1);\r\n\r\n if (ytile < 0) ytile = 0;\r\n\r\n if (ytile >= (1 << zoom)) ytile = ((1 << zoom) - 1);\r\n\r\n this.xtile = xtile;\r\n this.ytile = ytile;\r\n }",
"java.lang.String getNumber();",
"java.lang.String getNumber();",
"java.lang.String getNumber();",
"public FloorController getFloor(int number) {\n \treturn floorControllerList.get(number);\n }",
"double getLeft(double min);",
"public int getRoundNumber() {\n return roundNumber;\n }",
"@JSProperty(\"ceiling\")\n double getCeiling();",
"private Boolean floorVerfication(int floor){\n \n if(Elevator.MIN_FLOOR <= floor && floor <= Elevator.MAX_FLOOR)\n return true;\n else \n return false;\n }",
"private static final long floorDivide(long n, long d) {\n\treturn ((n >= 0) ? \n\t\t(n / d) : (((n + 1L) / d) - 1L));\n }",
"public int getRoomNumber() {\n\t\treturn number; // Replace with your code\n\t}",
"protected String getFloorShortDescription(int floorNumber) {\n return \"\" + (floorNumber + 1);\n }",
"public int getRound()\r\n\t{\r\n\t\treturn this.round;\r\n\t}",
"public int intX()\n {\n return (int) Math.floor(this.x);\n }",
"public Floor getFloor(String buildingName, int floorNum){\n // TODO: Replace return statement of getFloorByBuilding with actual get method from server\n try {\n return demoFloors.get(buildingName)[floorNum];\n } catch (Exception e){\n return null;\n }\n }",
"public boolean goTo(int floor);",
"public int getRound() {\n return round;\n }",
"public K floor(K key) {\n if (root == null)\n return null;\n else {\n Node tmp = null;\n Node curr = root;\n while (true) {\n if (curr == null) {\n if (tmp != null)\n return tmp.key;\n return null;\n }\n int cmp = key.compareTo(curr.key);\n if (cmp == 0)\n return curr.key;\n else if (cmp < 0)\n curr = curr.left;\n else {\n tmp = curr;\n curr = curr.right;\n }\n }\n }\n }",
"protected byte[] getMeasuredFloorTemperature() {return null;}",
"public synchronized int setDestinationFloor(){\n\t\tint randomFloor = random.nextInt((10-1)+1)+0;\n\t\twhile(this.arrivalFloor == randomFloor){\n\t\t\trandomFloor = random.nextInt((10-1)+1)+0;\n\t\t}\n\t\t\n\t\treturn randomFloor; \n\t}",
"public double getLow() {return low;}",
"public void setFloorLimit(java.lang.String floorLimit) {\r\n this.floorLimit = floorLimit;\r\n }",
"@Test\n public void test_floor_Integer_Collection3() {\n populate_i3();\n int actual = Selector.floor(i3, 9, new CompareIntegerAscending());\n int expected = 8;\n Assert.assertEquals(\"Did not find floor value\", expected, actual);\n }",
"public int getFloorCount() { return this.upQueues == null ? 0 : this.upQueues.length; }",
"private void drawFloorName(Graphics page){\r\n\t\tint iHeightOffSet = 3;\r\n\t\t\r\n\t\tint iSingleDigitOffSet = 15;\r\n\t\tint iDoubleDigitOffSet = 18;\r\n\t\t\r\n\t\tif(iFloorNumber + 1 < 10){\r\n\t\t\tpage.drawString(Integer.toString(iFloorNumber + 1), xStart - iSingleDigitOffSet, this.ypoints[0] - iHeightOffSet);\r\n\t\t}else{\r\n\t\t\tpage.drawString(Integer.toString(iFloorNumber + 1), xStart - iDoubleDigitOffSet, this.ypoints[0] - iHeightOffSet);\r\n\t\t}\r\n\t}",
"public double getLow() {\n return low;\n }",
"public double toNumber() {\n\t\treturn high * 4.294967296E9 + (this.low & 0x00000000FFFFFFFFL);\n\t}",
"public int mo35057e() {\n return this.f30701f;\n }",
"private static int getNumber() {\n LOG.info(\"Generating Value\");\n return 1 / 0;\n }",
"@Test\n public void test_floor_Integer_Collection1() {\n populate_i1();\n int actual = Selector.floor(i1, 6, new CompareIntegerAscending());\n int expected = 4;\n Assert.assertEquals(\"Did not find floor value\", expected, actual);\n }",
"private Node floor(Node x, int key) {\n if (x == null)\n return null;\n int cmp = key - x.key;\n if (cmp == 0)\n return x;\n if (cmp < 0)\n return floor(x.left, key);\n Node t = floor(x.right, key);\n if (t != null)\n return t;\n else\n return x;\n }",
"public int getLevelNo() {\n return levelNo;\n }",
"public Getter reqGetMeasuredFloorTemperature() {\n\t\t\treqGetProperty(EPC_MEASURED_FLOOR_TEMPERATURE);\n\t\t\treturn this;\n\t\t}",
"long getNumericField();",
"private boolean isFloorValid(int floor)\n\t{\n\t\treturn floor >= 0 && floor < this.getFloorCount();\n\t}",
"long getMinor();",
"public int mo12197i() {\n return this.f10960o;\n }",
"public static IntValueSelector mid_value_selector(boolean floor) {\n return new IntDomainMiddle(floor);\n }",
"public final Item getOnePerTileItem(int floorLevel) {\n/* 4872 */ if (this.vitems == null)\n/* 4873 */ return null; \n/* 4874 */ return this.vitems.getOnePerTileItem(floorLevel);\n/* */ }",
"protected int moveDownFloor() {\n delayElevator();\n return currentFloor.decrementAndGet();\n }",
"public final int mo5177c() {\n return Math.round(this.f9483e);\n }",
"String getElevationWithFlooringAsString();",
"public Key floor(Key key)\t\t\t\t//largest key less than or equal to the given key\n\t{\n\t\tNode x=floor(root,key);\n\t\tif(x!=null)\n\t\t\treturn x.key;\n\t\telse return null;\n\t}"
] |
[
"0.8682251",
"0.85237145",
"0.8303229",
"0.8246069",
"0.8212596",
"0.8126441",
"0.795754",
"0.7720608",
"0.77045757",
"0.76983786",
"0.7622778",
"0.7556989",
"0.7556989",
"0.73866355",
"0.7374261",
"0.7178058",
"0.7040549",
"0.6983032",
"0.69504637",
"0.68401545",
"0.67175025",
"0.6711522",
"0.6694949",
"0.66011685",
"0.6541738",
"0.6539572",
"0.6531061",
"0.641447",
"0.6392417",
"0.63793844",
"0.63279647",
"0.63132966",
"0.6291226",
"0.6264673",
"0.62597656",
"0.6249461",
"0.61982363",
"0.6170283",
"0.6133738",
"0.61082315",
"0.60806185",
"0.6041121",
"0.60380787",
"0.6029991",
"0.60050887",
"0.59714735",
"0.5918582",
"0.5907328",
"0.5906917",
"0.5898876",
"0.58914644",
"0.58695567",
"0.58591896",
"0.5858742",
"0.58568764",
"0.5855016",
"0.5849747",
"0.58331096",
"0.5826777",
"0.5826777",
"0.5826777",
"0.5802441",
"0.5798409",
"0.5781732",
"0.5775476",
"0.57681197",
"0.57659894",
"0.57630587",
"0.57264036",
"0.572352",
"0.57168126",
"0.5685414",
"0.5681715",
"0.5676068",
"0.5675925",
"0.5674763",
"0.56740695",
"0.56724286",
"0.56692946",
"0.5664991",
"0.5663222",
"0.5659445",
"0.56389195",
"0.56178325",
"0.56076384",
"0.55924356",
"0.5586152",
"0.5583492",
"0.557082",
"0.55651224",
"0.5556157",
"0.55557007",
"0.55403626",
"0.5519593",
"0.5516838",
"0.5514145",
"0.5508846",
"0.550491",
"0.5499694",
"0.5492972"
] |
0.85768986
|
1
|
setter to set the floor no
|
public void setFloor(int floor) {
this.floor = floor;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setFloor(String floor) {\n\t\tthis.floor = floor;\n\t}",
"public void setFloor(double input) {\r\n floor=input;\r\n }",
"public int getFloorNumber(){\r\n\t\treturn iFloorNumber;\r\n\t}",
"public void setCurrentFloor(int i);",
"public int getFloor() {\n return floor;\n }",
"public String getFloor() {\n return this.floor;\n }",
"public void setCurrentFloor(int currentFloor) {\n this.currentFloor = currentFloor;\n }",
"public String getFloor() {\n\t\treturn floor;\n\t}",
"public void setDefault(int floorNum) {\n\t\t\n\t\tDEFAULT = floorNum;\n\t\tcurrFloor = DEFAULT;\n\t}",
"public void setFloorLimit(java.lang.String floorLimit) {\r\n this.floorLimit = floorLimit;\r\n }",
"public int floorNumber() {\n return _number;\n }",
"public void setActualFloor(int _actualFloor) {\n\t\tactualFloor = _actualFloor;\n\t}",
"public Floor(int floorNum)\n { System.out.print(\"Initializing Floor #\" + floorNum + \"...\\n\");\n this.floorNum= floorNum;\n this.occupants=0;\n }",
"@JSProperty(\"floor\")\n void setFloor(double value);",
"public void setDestinationFloor(int destinationFloor){\n this.destinationFloor=destinationFloor;\n }",
"public int getFloor();",
"public int currentFloor(){\n return currentFloor;\n }",
"public void setFloor() {\n if (!onFloor.isEmpty()) {\n onFloor.clear();\n selectable.clear();\n boxScrollStart.getChildren().clear();\n boxScrollDestination.getChildren().clear();\n }\n\n selectable.clear();\n selectable.addAll(getNodesOnFloor());\n\n populateScrollPanes(selectable);\n filterStartMenuButton.setText(\"Current Floor\");\n }",
"public int getCurrentFloor();",
"public java.lang.String getFloorLimit() {\r\n return floorLimit;\r\n }",
"public void setFLOOR(java.lang.String value)\n {\n if ((__FLOOR == null) != (value == null) || (value != null && ! value.equals(__FLOOR)))\n {\n _isDirty = true;\n }\n __FLOOR = value;\n }",
"public Floor floor() {\r\n\t\treturn this.floor;\r\n\t}",
"public synchronized int setDestinationFloor(){\n\t\tint randomFloor = random.nextInt((10-1)+1)+0;\n\t\twhile(this.arrivalFloor == randomFloor){\n\t\t\trandomFloor = random.nextInt((10-1)+1)+0;\n\t\t}\n\t\t\n\t\treturn randomFloor; \n\t}",
"public int getCurrentFloor() {\n return currentFloor;\n }",
"public int getCurrentFloor() {\n return currentFloor;\n }",
"public void setFloorsNo(int value) {\n this.floorsNo = value;\n }",
"public void setCurrentFloorId(int currentFloorId) {\n\t\tthis.currentFloorId = currentFloorId;\n\t}",
"public void setLand(int value);",
"public int getMinFloor();",
"public int getCurrentFloor() {\n\t\treturn currentFloor;\n\t}",
"protected String getFloorDescription(int floorNumber) {\n return \"Floor \" + (floorNumber + 1);\n }",
"public int getDestinationFloor(){\n return destinationFloor;\n }",
"public Elevator(int floorCnt) {\n\t\tthis.floorCnt = floorCnt;\n\t\tinitialize();\n\t}",
"public int getCurrentFloorId() {\n\t\treturn currentFloorId;\n\t}",
"public int getGotoFloor();",
"private void drawFloorName(Graphics page){\r\n\t\tint iHeightOffSet = 3;\r\n\t\t\r\n\t\tint iSingleDigitOffSet = 15;\r\n\t\tint iDoubleDigitOffSet = 18;\r\n\t\t\r\n\t\tif(iFloorNumber + 1 < 10){\r\n\t\t\tpage.drawString(Integer.toString(iFloorNumber + 1), xStart - iSingleDigitOffSet, this.ypoints[0] - iHeightOffSet);\r\n\t\t}else{\r\n\t\t\tpage.drawString(Integer.toString(iFloorNumber + 1), xStart - iDoubleDigitOffSet, this.ypoints[0] - iHeightOffSet);\r\n\t\t}\r\n\t}",
"public String floorName() {\n return _name;\n }",
"@Override\n\tpublic int edit(Floor floor) {\n\t\treturn floorDao.edit(floor);\n\t}",
"public void setFloors(int floors);",
"public void setDrawerNumber(int nr) {\r\n\t\ttxtNumber.setText(\"\" + nr);\r\n\t}",
"FloorType createFloorType();",
"public final void addFloor(Floor floor) {\n/* 6453 */ if (this.floors == null)\n/* 6454 */ this.floors = new HashSet<>(); \n/* 6455 */ this.floors.add(floor);\n/* 6456 */ if (floor.isStair())\n/* */ {\n/* 6458 */ Stairs.addStair(hashCode(), floor.getFloorLevel());\n/* */ }\n/* 6460 */ if (this.vitems != null)\n/* */ {\n/* 6462 */ for (Item pile : this.vitems.getPileItems())\n/* */ {\n/* 6464 */ pile.updatePosZ(this);\n/* */ }\n/* */ }\n/* 6467 */ if (this.watchers != null)\n/* */ {\n/* 6469 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 6473 */ vz.updateFloor(this.structure.getWurmId(), floor);\n/* */ }\n/* 6475 */ catch (Exception e) {\n/* */ \n/* 6477 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }\n/* */ }",
"@JSProperty(\"floor\")\n double getFloor();",
"public void moveTo(int floor) {\n if ( floor > TOP_FLOOR || floor < BOTTOM_FLOOR)\n return;\n while (currentFloor.get() != floor) {\n if (currentFloor.get() < floor) {\n direction.lazySet(Status.UP);\n moveUpFloor();\n }\n if (currentFloor.get() > floor) {\n direction.lazySet(Status.DOWN);\n moveDownFloor();\n }\n }\n }",
"public abstract void setLOD(int lod);",
"private Boolean floorVerfication(int floor){\n \n if(Elevator.MIN_FLOOR <= floor && floor <= Elevator.MAX_FLOOR)\n return true;\n else \n return false;\n }",
"public void setRoomNumber (int n) {\r\n\t\tthis.roomNumber = n;\r\n\t}",
"public void advanceFloor(){\n //TODO: write method to move onto next floor\n }",
"public Room(int noOfWindows) {\n\t\tthis.windows = noOfWindows;\n\t\tthis.floor=\"\";\n\t\tthis.wall=\"\";\n\t}",
"private void openDoor(int floor){\r\n\t\tfor(int i = 0; i <1000; i++){\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"Elevator no. \"+ id+ \" Door opened at floor \"+ floor);\r\n\t}",
"@Override\r\n\tpublic void setRound(int x) {\n\t\troundNum = x;\r\n\t\tupdate();\r\n\t}",
"private void setBuildingNumber(String number) {\n buildingNumber = number;\n }",
"public Floor() {\r\n\t\tRoom[][] rooms = new Room[Constants.WIDTH][Constants.LENGTH];\r\n\t\tfor (int i = 0; i < Constants.WIDTH; i++) {\r\n\t\t\tfor (int j = 0; j < Constants.LENGTH; j++) {\r\n\t\t\t\trooms[i][j] = GenerationUtilities.randomRoom(i, j);\r\n\t\t\t\trooms[i][j].setFloor(this);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.rooms = rooms;\r\n\t\tthis.length = rooms.length;\r\n\t\tthis.width = rooms[0].length;\r\n\t\tGenerationUtilities.placeRandomItems(this);\r\n\t\tenemies = new ArrayList<>();\r\n\t}",
"public void makeRequest(int floor) {\n }",
"public void clearGotoFloor();",
"public void setRound(final int value) {\n round = value;\n }",
"void setRoom(int inRoom) {\n \t\tgraphics.setRoom(inRoom);\n \t}",
"public void setRoof(Building building);",
"public void setOridestId(Number value) {\n setAttributeInternal(ORIDESTID, value);\n }",
"public void setNum(int num) {\r\n this.num = num;\r\n }",
"public void setBuildingNumber(String buildingNumber);",
"private void setRoomId(long value) {\n \n roomId_ = value;\n }",
"public void setUnitID(int num) {\n m_UnitID = num;\n // setChanged(true);\n }",
"public void setWareHouseNumber(int arg)\n\t{\n\t\tsetValue(WAREHOUSENUMBER, new Integer(arg));\n\t}",
"public void setOrdem(long value) {\n this.ordem = value;\n }",
"public TileStoneFloor(int id, String name, int index)\n\t{\n\t\tsuper(id, name, index);\n\t}",
"public int getMaxFloor();",
"public void setWinnumber(int Number) {\n\t\tif (Number != 0) {\n\t\t\tthis.winnumber = winnumber + Number;\n\t\t} else {\n\t\t\tthis.winnumber = 0;\n\t\t}\n\t}",
"public void setRoomID(int value) {\n this.roomID = value;\n }",
"public Builder setAreaNo(int value) {\n \n areaNo_ = value;\n onChanged();\n return this;\n }",
"private void setDirection() {\r\n\t\tif (destinationFloor > initialFloor){\r\n\t\t\tdirection = 1;\r\n\t\t} else {\r\n\t\t\tdirection = -1;\r\n\t\t}\r\n\t}",
"public void setBuildingArea(Number value) {\n setAttributeInternal(BUILDINGAREA, value);\n }",
"@Override\n\tpublic int calledByFloorNumber() {\n\t\treturn this.lastStoppedFloor;\n\t}",
"public void setWHStationNumberGroup(int num)\n\t{\n\t\tsetGroup(_Prefix + HardZone.WHSTATIONNUMBER.toString(), num);\n\t}",
"public Request(int floorIn) throws InvalidParamException {\n if (floorIn < 1 || floorIn > Building.getInstance().getNumFloors()) {\n throw new InvalidParamException(\"Invalid floorIn in Request c'tor\");\n }\n floor = floorIn;\n direction = null;\n }",
"public void setWHStationNumber(String arg) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.WHSTATIONNUMBER.toString(), arg);\n\t}",
"public void set(int value) {\n\t\ttem = value;\n\t\tSystem.out.println(\"\\tAir conditioner is set to \" + tem +\" degrees\");\n\t}",
"public TileFloor(int x, int y)\r\n {\r\n random = new Random(12345);\r\n ROWS = DEFAULT_ROWS;\r\n COLUMNS= DEFAULT_COLUMNS;\r\n this.x = x;\r\n this.y = y;\r\n }",
"public java.lang.String getFLOOR()\n {\n \n return __FLOOR;\n }",
"protected String getFloorShortDescription(int floorNumber) {\n return \"\" + (floorNumber + 1);\n }",
"protected void setNumbertoZero() {\n\t\tnumber = 0;\n\t}",
"public void setRoundNum(int roundNum){\n gameRounds = roundNum;\n }",
"public int getRoomNumber() {\n\t\treturn number; // Replace with your code\n\t}",
"void setNumber(int num) {\r\n\t\tnumber = num;\r\n\t}",
"public void mo12203o() {\n this.f10960o = 0;\n }",
"@Override\n protected void setPatchNum(int patchNum) {\n }",
"public void setRollNo ( int rollno ) {\n\t\tthis.rollno = rollno;\t\n\t}",
"public void setNumDigits(int digits) {\r\n \r\n //Set Value\r\n numDigits = digits;\r\n \r\n }",
"@Override\n public void update() {\n if (oldFloorIndex != root.floorsController.getCurrentFloor()) {\n view.floorTitle.setText(\"Floor: \" + root.floorsController.getCurrentFloor());\n oldFloorIndex = root.floorsController.getCurrentFloor();\n }\n }",
"public Room() {\n\t\twall=\"\";\n\t\tfloor=\"\";\n\t\twindows=0;\n\t}",
"public int getCurrentFloorForElevator(int elevator) {\r\n \r\n int i = currentFloor;\r\n return i;\r\n }",
"public void setNoOfFloors(Number value) {\n setAttributeInternal(NOOFFLOORS, value);\n }",
"public int getFloorsNo() {\n return floorsNo;\n }",
"void setRandomNo() {\n\t\tno = 10000000 + (int) (Math.random() * 90000000);\n\t}",
"public void setNum(int num) {\n\t\tthis.num = num;\n\t}",
"private void setMin(int min) { this.min = new SimplePosition(false,false,min); }",
"private void closeDoor(int floor){\r\n\t\tfor(int i = 0; i <1000; i++){\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"Elevator no. \"+ id+ \" Door closed at floor \"+ floor);\r\n\t}",
"public void setNumber(int number) {\r\n\t\tthis.num = number;\r\n\t}",
"public void setNorth(int north) {\n this.north = north;\n }",
"public void setBoundary(int value) {\n this.boundary = value;\n }"
] |
[
"0.79123104",
"0.77127004",
"0.7453427",
"0.73799217",
"0.7299498",
"0.71406645",
"0.713216",
"0.7103111",
"0.7086118",
"0.7023915",
"0.69941247",
"0.69129086",
"0.68884134",
"0.6861204",
"0.6752084",
"0.67046803",
"0.64557356",
"0.6405869",
"0.640485",
"0.6393532",
"0.63370055",
"0.6320076",
"0.62937254",
"0.62576294",
"0.62576294",
"0.62465936",
"0.6231683",
"0.614674",
"0.61324084",
"0.6059932",
"0.6028011",
"0.60230714",
"0.59637696",
"0.591812",
"0.5917608",
"0.5911321",
"0.5907734",
"0.5881377",
"0.58689225",
"0.58688986",
"0.5819421",
"0.57928103",
"0.5792265",
"0.5707085",
"0.5703109",
"0.56950414",
"0.5663667",
"0.56518185",
"0.56449986",
"0.563665",
"0.5630433",
"0.56250244",
"0.56205744",
"0.5618947",
"0.55893964",
"0.55481064",
"0.55456066",
"0.55422866",
"0.5539296",
"0.55299914",
"0.5514793",
"0.55076855",
"0.5503048",
"0.54995495",
"0.54984766",
"0.54792696",
"0.54652274",
"0.54639643",
"0.5463503",
"0.54600435",
"0.54425627",
"0.5440523",
"0.5432441",
"0.5411936",
"0.540041",
"0.53977764",
"0.5389042",
"0.53881466",
"0.5387811",
"0.5377842",
"0.53679967",
"0.5360962",
"0.5355436",
"0.53470093",
"0.53433686",
"0.53309745",
"0.53281575",
"0.532238",
"0.53167385",
"0.53080565",
"0.5305236",
"0.5302936",
"0.52923346",
"0.52832687",
"0.5268827",
"0.5265041",
"0.52627873",
"0.5261947",
"0.52577126",
"0.52517885"
] |
0.8508503
|
0
|
getter to get the latest reading
|
public SensorBean getLatestReading() {
return latestReading;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public long getLastReadTime() {\n return LAST_READ_TIME;\n }",
"boolean hasGetLatestReading();",
"public double getReadingOnce() {\n return this.getDataRef().getOnce();\n }",
"public Date getReadTime() {\n return readTime;\n }",
"org.naru.park.ParkController.CommonAction getGetLatestReading();",
"public Reading get_reading () {\n if (!this.on) {\n return null;\n }\n\n Instant instant = Instant.now();\n return new Reading(\n (float) instant.getEpochSecond(),\n this.currentSensorValue,\n this.stationName,\n this.stationLocation\n );\n }",
"public boolean hasGetLatestReading() {\n return getLatestReading_ != null;\n }",
"public Date getReadTime() {\n\t\treturn readTime;\n\t}",
"public org.naru.park.ParkController.CommonAction getGetLatestReading() {\n return getLatestReading_ == null ? org.naru.park.ParkController.CommonAction.getDefaultInstance() : getLatestReading_;\n }",
"public double getReading() {\n return this.getDataRef().get();\n }",
"public boolean hasGetLatestReading() {\n return getLatestReadingBuilder_ != null || getLatestReading_ != null;\n }",
"long getLastAccessed( );",
"public org.naru.park.ParkController.CommonAction getGetLatestReading() {\n if (getLatestReadingBuilder_ == null) {\n return getLatestReading_ == null ? org.naru.park.ParkController.CommonAction.getDefaultInstance() : getLatestReading_;\n } else {\n return getLatestReadingBuilder_.getMessage();\n }\n }",
"private static long getLastReadTime() throws IOException {\n if (isFirstLaunch()) {\n return -1;\n } else {\n List<String> line = FileUtils.readLines(new File(\"couchbase-sync.state\"));\n return Long.parseLong(line.get(0).split(\"\\t\")[1]);\n }\n }",
"public LocalDateTime getReadTime() {\n\t\treturn readTime;\n\t}",
"public Object get() {\n while(isLocked() ) {\n try {\n Thread.sleep(10);\n }\n catch(InterruptedException ie) {\n // do nothing\n }\n }\n \n Object retVal = getHead();\n LAST_READ_TIME = now();\n return retVal;\n }",
"public long currentReadBytes()\r\n/* 209: */ {\r\n/* 210:398 */ return this.currentReadBytes.get();\r\n/* 211: */ }",
"public long lastReadThroughput()\r\n/* 189: */ {\r\n/* 190:370 */ return this.lastReadThroughput;\r\n/* 191: */ }",
"public Date getTimeRead() {\n\t\treturn new Date(timeRead.getTime());\n\t}",
"public long getReadCounter () {\n\t\treturn readCounter;\n\t}",
"public long lastReadLength() {\n return lastReadLength;\n }",
"public long lastReadBytes()\r\n/* 199: */ {\r\n/* 200:384 */ return this.lastReadBytes;\r\n/* 201: */ }",
"private com.google.protobuf.SingleFieldBuilderV3<\n org.naru.park.ParkController.CommonAction, org.naru.park.ParkController.CommonAction.Builder, org.naru.park.ParkController.CommonActionOrBuilder> \n getGetLatestReadingFieldBuilder() {\n if (getLatestReadingBuilder_ == null) {\n getLatestReadingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n org.naru.park.ParkController.CommonAction, org.naru.park.ParkController.CommonAction.Builder, org.naru.park.ParkController.CommonActionOrBuilder>(\n getGetLatestReading(),\n getParentForChildren(),\n isClean());\n getLatestReading_ = null;\n }\n return getLatestReadingBuilder_;\n }",
"public boolean getForRead() {\n return forRead_;\n }",
"public long get() {\n return stamp;\n }",
"boolean getForRead();",
"org.naru.park.ParkController.CommonActionOrBuilder getGetLatestReadingOrBuilder();",
"public Integer getLastUpdate() {\n return lastUpdate;\n }",
"public boolean getForRead() {\n return forRead_;\n }",
"org.naru.park.ParkController.CommonAction getGetLatestSensorReadingForUser();",
"public org.naru.park.ParkController.CommonActionOrBuilder getGetLatestReadingOrBuilder() {\n return getGetLatestReading();\n }",
"public long getLastUsed() {\n \t\treturn this.lastUsed;\n \t}",
"public long readLong() {\n while (isEmpty()) {\n }\n Timing.waitSyncLocal();\n readEnable.setNow(1);\n Timing.waitClockLocal();\n return (readData.getLong());\n }",
"public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }",
"public org.naru.park.ParkController.CommonAction.Builder getGetLatestReadingBuilder() {\n \n onChanged();\n return getGetLatestReadingFieldBuilder().getBuilder();\n }",
"@Override\n \tpublic long getLatestSequenceNumber() {\n \t\tsharedLock.lock();\n \t\ttry {\n \t\t\treturn sequenceNumber;\n \t\t} finally {\n \t\t\tsharedLock.unlock();\n \t\t}\n \t}",
"public boolean getRead() {\n\t\treturn read;\n\t}",
"public E pollLast();",
"boolean hasGetLatestSensorReadingForUser();",
"long getLastAccessAt();",
"public boolean getRead()\n\t{\n\t\treturn this.read;\n\t}",
"public Boolean getIsRead() {\n return isRead;\n }",
"public org.naru.park.ParkController.CommonActionOrBuilder getGetLatestReadingOrBuilder() {\n if (getLatestReadingBuilder_ != null) {\n return getLatestReadingBuilder_.getMessageOrBuilder();\n } else {\n return getLatestReading_ == null ?\n org.naru.park.ParkController.CommonAction.getDefaultInstance() : getLatestReading_;\n }\n }",
"public boolean read() {\n return this.read;\n }",
"public long getLastUpdate() {\n return this.lastUpdate;\n }",
"public V getLatest() {\n return lastItemOfList(versions);\n }",
"public boolean getRead() {\n return read_;\n }",
"long getUpdated();",
"public synchronized long getPosition() {\n\t\treturn m_read;\n\t}",
"private long getNow()\n {\n // no need to convert to collection if had an Iterables.max(), but not present in standard toolkit, and not worth adding\n List<SSTableReader> list = new ArrayList<>();\n Iterables.addAll(list, cfs.getSSTables(SSTableSet.LIVE));\n if (list.isEmpty())\n return 0;\n return Collections.max(list, (o1, o2) -> Long.compare(o1.getMaxTimestamp(), o2.getMaxTimestamp()))\n .getMaxTimestamp();\n }",
"@Override\r\n\tpublic E pollLast() {\n\t\treturn null;\r\n\t}",
"public Date getLastUsed() {\r\n\t\treturn lastUsed;\r\n\t}",
"T latest();",
"public boolean getRead() {\n return read_;\n }",
"public Snapshot getLatestSnapshot() {\r\n return isSnapshot? null: snapshot;\r\n }",
"Book getLatestBook();",
"ZonedDateTime lastRefTimestamp() {\n ArticleRef last = buffer.peekLast();\n if(last == null) {\n return null;\n }\n return last.getTimestamp();\n }",
"public int getReadStatus() {\n return (readStatus.getUnsignedInt());\n }",
"public process get_last() {\n\t\treturn queue.getLast();\n\t}",
"public List<Double> getPreviousReadings() {\n return unmodifiableReadings;\n }",
"public int[] getCurrentReading() {\n\t\tint[] ret = obsMatrix.getSensorReading();\n\t\tif (ret[0] == -1 || ret[1] == -1) {\n\t\t\treturn null;\n\t\t}\n\n\t\tint[] reading = { ret[1], ret[0] };\n\t\treturn reading;\n\t}",
"@JsonIgnore\n\tpublic Date getLatestUpdate()\n\t{\n\t\treturn latestUpdate;\n\t}",
"public SimpleLock readLock() {\n\n\t\treturn readerLock;\n\t}",
"@java.lang.Override\n public long getLastAccessAt() {\n return lastAccessAt_;\n }",
"public long getCurrent() {\n return current;\n }",
"public boolean isRead(){\n \treturn isRead;\n }",
"public long getLastPlayed ( ) {\n\t\treturn extract ( handle -> handle.getLastPlayed ( ) );\n\t}",
"public int getNbr_read() {\r\n\t\treturn nbrRead;\r\n\t}",
"public boolean wasRead(){\n return isRead==null || isRead;\n }",
"private void readPref() {\n // get the last update; if not set, lastUpdate gets 31/12/69\n lastUpdate = sp.getLong(UPDATE, 0); \n System.out.println(\"Time of last update: \" + getDateFromLong(lastUpdate));\n }",
"@JsonSerialize(using=AfJson.CalendarSerializer.class)\n public Long getLastScan()\n {\n return _lastScan;\n }",
"long getLastAccessedTime();",
"public long getContainNReadNum() {\n return containNReadNum;\n }",
"org.naru.park.ParkController.CommonActionOrBuilder getGetLatestSensorReadingForUserOrBuilder();",
"public int getLatestWeather() { //This function goes through the readings Arraylist and gets the most recent weather Code and returns it.\n int code;\n code = readings.get(readings.size() - 1).code;\n return code;\n }",
"public boolean read() {\n return so;\n }",
"public long getReadPointer();",
"public long getDateRecordLastUpdated(){\n return dateRecordLastUpdated;\n }",
"@java.lang.Override\n public long getLastAccessAt() {\n return lastAccessAt_;\n }",
"boolean getRead();",
"public long getLastUpdateTime() {\n return this.lastUpdateTime;\n }",
"public String fetchRecentChange(){\n\t\treturn recentChange;\n\t}",
"long getLastWriteAccess();",
"public long lastTime()\r\n/* 219: */ {\r\n/* 220:412 */ return this.lastTime.get();\r\n/* 221: */ }",
"public long cumulativeReadBytes()\r\n/* 229: */ {\r\n/* 230:426 */ return this.cumulativeReadBytes.get();\r\n/* 231: */ }",
"@Override\r\n\tpublic long getCurrent() {\n\t\treturn 0;\r\n\t}",
"public int getthelastupdate() {\n\t\treturn this.getthelastupdate();\n\t}",
"long getLastChanged();",
"public double getReading() {\r\n\t\tresult = clicks;\r\n\t\tif(metric) result *= 0.2;\r\n\t\telse result *= 0.01;\r\n\t\treturn result;\r\n\t\t\r\n\t}",
"public DateAdp Modified_latest() {return modified_latest;}",
"long get();",
"public void setLatestReading(SensorBean latestReading) {\n this.latestReading = latestReading;\n }",
"public ReadablePartial getLastAccess() {\n\t\treturn null;\n\t}",
"boolean hasForRead();",
"public long readLongNonBlock() {\n Timing.throughputLocal(0);\n readEnable.setNow(1);\n Timing.waitClockLocal();\n return (readData.getLong());\n }",
"public boolean isLatest() {\n return latest;\n }",
"public synchronized Object get() {\n try {\n Object obj = queue.take().getElement();\n\n // set next offset\n delayOffset = System.currentTimeMillis();\n\n return obj;\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n return null;\n }",
"public String getLatestMessage() {\n return mLastMessage;\n }",
"synchronized public long peek() {\n return currValue;\n }",
"public Builder clearGetLatestReading() {\n if (getLatestReadingBuilder_ == null) {\n getLatestReading_ = null;\n onChanged();\n } else {\n getLatestReading_ = null;\n getLatestReadingBuilder_ = null;\n }\n\n return this;\n }"
] |
[
"0.7393708",
"0.7281485",
"0.7033829",
"0.6997039",
"0.69685155",
"0.69648564",
"0.69348174",
"0.6918619",
"0.67952794",
"0.67935884",
"0.67304236",
"0.6660114",
"0.66382664",
"0.66355747",
"0.6603236",
"0.65966624",
"0.65748876",
"0.65519726",
"0.65170723",
"0.6506466",
"0.64825827",
"0.6445229",
"0.6410691",
"0.64035994",
"0.6379323",
"0.6374459",
"0.6346892",
"0.6342445",
"0.6334693",
"0.63199824",
"0.6319515",
"0.6314412",
"0.626077",
"0.6260367",
"0.62446",
"0.6233956",
"0.62085176",
"0.62034845",
"0.6200213",
"0.617962",
"0.616949",
"0.6157868",
"0.6149215",
"0.6142989",
"0.61402583",
"0.61384183",
"0.61198014",
"0.61181605",
"0.61030436",
"0.60972303",
"0.60888004",
"0.60778713",
"0.6069525",
"0.6060572",
"0.6053052",
"0.6052864",
"0.60436034",
"0.60334563",
"0.6017507",
"0.60174686",
"0.59970456",
"0.59928674",
"0.5975891",
"0.5972426",
"0.59681207",
"0.59609956",
"0.59582806",
"0.5957047",
"0.5949913",
"0.5946641",
"0.59440833",
"0.594028",
"0.5936497",
"0.59112644",
"0.5903569",
"0.58979267",
"0.58963007",
"0.5895996",
"0.5880635",
"0.5880195",
"0.5880171",
"0.5879371",
"0.5872734",
"0.58724433",
"0.5868942",
"0.5854143",
"0.585402",
"0.5853452",
"0.5852952",
"0.5841301",
"0.583383",
"0.5829893",
"0.5827154",
"0.5823713",
"0.58096105",
"0.58002853",
"0.57964194",
"0.5793807",
"0.5793033",
"0.57779765"
] |
0.7748904
|
0
|
setter to set the latest reading
|
public void setLatestReading(SensorBean latestReading) {
this.latestReading = latestReading;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setRead(){\n \tthis.isRead = true;\n }",
"public void read() {\n\t\tthis.isRead = true;\n\t}",
"public Builder clearGetLatestReading() {\n if (getLatestReadingBuilder_ == null) {\n getLatestReading_ = null;\n onChanged();\n } else {\n getLatestReading_ = null;\n getLatestReadingBuilder_ = null;\n }\n\n return this;\n }",
"public void setReadLatestOfTable()\n {\n \t m_acl = \tm_acl | (1<<5);\n }",
"public SensorBean getLatestReading() {\n return latestReading;\n }",
"private static void setLastReadTime() throws IOException {\n final File stateFile = new File(\"couchbase-sync.state\");\n if (!stateFile.exists()) {\n if (!stateFile.createNewFile()) {\n LOGGER.error(\"Failed to create .state file!\");\n }\n }\n try (BufferedWriter writer = new BufferedWriter(new FileWriter(stateFile))) {\n writer.write(tapName + \"\\t\" + DateTime.now(DateTimeZone.UTC).getMillis());\n writer.newLine();\n }\n\n }",
"public void setTicks(int readSoFar) {\n\t\t\n\t}",
"protected final boolean didRead (boolean value) { return didRead = value;}",
"public void setReadTime(Date readTime) {\n this.readTime = readTime;\n }",
"private void setThisRead()\n {\n justOpened = false;\n FirebaseFirestore.getInstance().collection(\"chats\").document(thisUid).get().addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>()\n {\n @Override\n public void onSuccess(DocumentSnapshot documentSnapshot)\n {\n if (documentSnapshot.exists() && documentSnapshot.getData().get(otherUid) != null)\n {\n ChatData thisData = new ChatData((HashMap<String, Object>) documentSnapshot.getData().get(otherUid));\n if (thisData.isRead())\n return;\n \n HashMap<String, ChatData> mapThis = new HashMap<>();\n thisData.setRead(true);\n mapThis.put(otherUid, thisData);\n FirebaseFirestore.getInstance().collection(\"chats\").document(thisUid).set(mapThis, SetOptions.merge());\n }\n }\n });\n }",
"public void setReadTime(Date readTime) {\n\t\tthis.readTime = readTime;\n\t}",
"@Override public void checkpointReadLockTimeout(long val) {\n checkpointReadLockTimeout = val;\n }",
"public long getLastReadTime() {\n return LAST_READ_TIME;\n }",
"public void lastReaderAdded(){\r\n\t\tdoneAddingReaders = true;\r\n\t}",
"public void setRead(boolean read)\n\t{\n\t\tthis.read = read;\n\t}",
"public void resetRead() {\r\n\t\t// don't do anything if heartbeats are not expected\r\n\t\tif (this.readDelay == null) return;\r\n\r\n\t\tif (this.read != null)\r\n\t\t\tthis.read.cancel(false);\r\n\t\tthis.read = this.scheduler.schedule(new ReadHeartBeatTimeOut(), this.readDelay, TimeUnit.MILLISECONDS);\r\n\t}",
"public void setLastUse() {\n\t\t_lastused = System.currentTimeMillis();\n\t}",
"public void update() {\n\t\tmLast = mNow;\n\t\tmNow = get();\n\t}",
"public void setIsRead(Boolean isRead) {\n this.isRead = isRead;\n }",
"void mark(@Nonnegative int readLimit);",
"public BrowseHistoryContentValues putLastReadTime(long value) {\n mContentValues.put(BrowseHistoryColumns.LAST_READ_TIME, value);\n return this;\n }",
"public void setIsRead(boolean isRead) {\n mIsRead = isRead;\n }",
"public Builder setGetLatestReading(\n org.naru.park.ParkController.CommonAction.Builder builderForValue) {\n if (getLatestReadingBuilder_ == null) {\n getLatestReading_ = builderForValue.build();\n onChanged();\n } else {\n getLatestReadingBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"public Builder clearGetLatestSensorReadingForUser() {\n if (getLatestSensorReadingForUserBuilder_ == null) {\n getLatestSensorReadingForUser_ = null;\n onChanged();\n } else {\n getLatestSensorReadingForUser_ = null;\n getLatestSensorReadingForUserBuilder_ = null;\n }\n\n return this;\n }",
"public boolean hasGetLatestReading() {\n return getLatestReading_ != null;\n }",
"public void setLatest(boolean latest) {\n this.latest = latest;\n }",
"@JsonDeserialize(using=AfJson.CalendarDeserializer.class)\n public void setLastScan(Long lastScan)\n {\n if (null == lastScan) {\n _lastScan = AfCalendar.NEVER;\n } else {\n _lastScan = lastScan;\n }\n }",
"public synchronized void reset() throws IOException {\n super.reset();\n if(!iMaxSet) {\n iMaximum = available();\n }\n iRemainder = iMaximum;\n }",
"void setReadPosition(int minus) {\n/* 159 */ this.pos -= minus;\n/* 160 */ this.readerIndex = getReadPosition(this.pos);\n/* 161 */ this.buffer.readerIndex(this.readerIndex);\n/* */ }",
"public Builder setRead(boolean value) {\n bitField0_ |= 0x00000008;\n read_ = value;\n onChanged();\n return this;\n }",
"public void setReadTime(LocalDateTime readTime) {\n\t\tthis.readTime = readTime;\n\t}",
"private void setLast() { this._last = true; }",
"public long lastReadLength() {\n return lastReadLength;\n }",
"public synchronized void mark(int readlimit) {\n if(!data.isEmpty()) {\n data.getFirst().mark();\n }\n if(marked) {\n clearResetCache();\n }\n marked = true;\n resetCache = new LinkedList<IoBuffer>();\n }",
"private void readPref() {\n // get the last update; if not set, lastUpdate gets 31/12/69\n lastUpdate = sp.getLong(UPDATE, 0); \n System.out.println(\"Time of last update: \" + getDateFromLong(lastUpdate));\n }",
"public void setNextToRead(int nextToRead) {\n\t\t// Overrides\n\t}",
"public double getReadingOnce() {\n return this.getDataRef().getOnce();\n }",
"@Override\n\tpublic IFieldComparator<Long> setNextReader(IAtomicReaderRef context) throws IOException {\n\t\tmCurrentReaderValues = FieldCache.DEFAULT.getLongs(\n\t\t\t\tcontext.getReader(), mField, mParser, mMissingValue != null);\n\t\treturn super.setNextReader(context);\n\t}",
"public Date getReadTime() {\n return readTime;\n }",
"private void set(){\n resetBuffer();\n }",
"public void setLastLogin() {\r\n game.settings.setLastSeen(strDate);\r\n }",
"public boolean hasGetLatestReading() {\n return getLatestReadingBuilder_ != null || getLatestReading_ != null;\n }",
"public void setLastUpdated(long lastUpdated) {\n\t\tassert lastUpdated > this.lastUpdated; \n\t\tthis.lastUpdated = lastUpdated;\n\t}",
"public boolean read() {\n return this.read;\n }",
"public void setLastUpdate(Integer lastUpdate) {\n this.lastUpdate = lastUpdate;\n }",
"public void setCollectionReader(BaseCollectionReader aCollectionReader) {\n collectionReader = aCollectionReader;\n if (collectionReader != null) {\n if (collectionReader.getProcessingResourceMetaData().getConfigurationParameterSettings()\n .getParameterValue(\"fetchSize\") != null) {\n try {\n readerFetchSize = (Integer) collectionReader.getProcessingResourceMetaData()\n .getConfigurationParameterSettings().getParameterValue(\"fetchSize\");\n } catch (NumberFormatException nfe) {\n readerFetchSize = 1; // restore default\n }\n }\n if (checkpointData != null && checkpointData.getSynchPoint() != null) {\n try {\n if (collectionReader instanceof RecoverableCollectionReader) {\n // Let the CollectionReader do the synchronization to the last known (good) read point\n ((RecoverableCollectionReader) collectionReader).moveTo(checkpointData.getSynchPoint());\n String readerName = collectionReader.getProcessingResourceMetaData().getName();\n if (readerName != null) {\n restoreFromCheckpoint(readerName, \"COLLECTION READER PROCESSING TIME\");\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }",
"boolean hasGetLatestReading();",
"public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }",
"@Override\n public void mark(final int readlimit) {\n input.mark();\n }",
"void setNewerRevisionSeen() {\n\n // If we have previously written something, then we've detected a write conflict; fail early.\n if ( !this.versionedItemsWritten.isEmpty() ) {\n throw new WriteConflictException();\n }\n\n // Track the newer revision number to fail early if we subsequently write something.\n this.newerRevisionSeen = true;\n\n }",
"@Override\n\tpublic synchronized void mark(int readlimit) {\n\t\tiOBuffer.mark();\n\t}",
"void setLastUpdatedTime();",
"public boolean read() {\n return so;\n }",
"public boolean getForRead() {\n return forRead_;\n }",
"public void set_reading(int value) {\n setUIntBEElement(offsetBits_reading(), 16, value);\n }",
"public Builder setForRead(boolean value) {\n bitField0_ |= 0x00000002;\n forRead_ = value;\n onChanged();\n return this;\n }",
"public Date getReadTime() {\n\t\treturn readTime;\n\t}",
"public boolean isRead(){\n \treturn isRead;\n }",
"public void setLast_seen(Date last_seen) {\n this.last_seen = last_seen;\n }",
"void setLastAccessDate();",
"public void setLastHeardTimeStamp() {\n\t\tlastHeardTimeStamp = System.currentTimeMillis();\n\t}",
"public boolean wasRead(){\n return isRead==null || isRead;\n }",
"public Boolean getIsRead() {\n return isRead;\n }",
"public Reading get_reading () {\n if (!this.on) {\n return null;\n }\n\n Instant instant = Instant.now();\n return new Reading(\n (float) instant.getEpochSecond(),\n this.currentSensorValue,\n this.stationName,\n this.stationLocation\n );\n }",
"public boolean getRead() {\n\t\treturn read;\n\t}",
"public boolean getForRead() {\n return forRead_;\n }",
"public synchronized void finishReading() {\n readerNumber--;\n if (readerNumber == 0) {\n this.notifyAll(); // notify possible waiting writers \n }\n }",
"public void setReadState(NewsData data,Long userId) ;",
"public boolean getRead() {\n return read_;\n }",
"private void setLastCacheUpdateTimeMillis() {\n long currentMillis = System.currentTimeMillis();\n this.fileManager.writeToPreferences(this.context, SETTINGS_KEY, currentMillis);\n }",
"@Override\r\n\t\t\tpublic void progressMade() {\n\t\t\t\twriteReadSemaphore.refreshReadLock(lockKey, readToken, lockTimeoutSec);\r\n\t\t\t}",
"boolean getForRead();",
"@Override\n\tpublic void read() {\n\n\t}",
"void unlockRead(long stamp);",
"public void setSingleReads(boolean singleReads) {\n\t\tthis.singleReads = singleReads;\n\t}",
"public Builder setLastAccessAt(long value) {\n\n lastAccessAt_ = value;\n bitField0_ |= 0x00000008;\n onChanged();\n return this;\n }",
"public void setNbr_read(int nbr_read) {\r\n\t\tthis.nbrRead = nbr_read;\r\n\t}",
"public synchronized void setChanged() {\n super.setChanged();\n }",
"public void lock_read() {\n boolean update = false;\n logger.log(Level.INFO,\"lock_read()\"+this.lockState);\n lock.lock();\n logger.log(Level.INFO,\"lock_read : taking mutex : \"+this.lockState);\n \t\tswitch(this.lockState){\n \t\t\tcase RLC :\n \t\t\t\tthis.lockState=State.RLT;\n logger.log(Level.INFO,\"reading in cache\");\n \t\t\tbreak;\n \t\t\tcase WLC:\n \t\t\t\tthis.lockState=State.RLT_WLC;\n \t\t\t\tlogger.log(Level.INFO,\"reading in cache as previous writer\");\n \t\t\tbreak;\n \t\t\tdefault:\n update = true;\n \t\t\tbreak;\t\t\t\t\t\n \t\t}\n lock.unlock();\n logger.log(Level.FINE,\"lock_read : release the lock with :\"+lockState+\".\");\n if(update){\n logger.log(Level.INFO,\"Updating lockState to RLT\");\n \tthis.lockState=State.RLT;\n logger.log(Level.INFO,\"Lockstate was updated to \"+lockState);\n if(this.lockState!=State.RLT){\n logger.log(Level.SEVERE,\"Lock = \"+lockState+\" instead of RLT\");\n }\n this.obj = client.lock_read(this.id);\n if(this.lockState!=State.RLT){\n logger.log(Level.SEVERE,\"Lock = \"+lockState+\" instead of RLT\");\n }\n logger.log(Level.INFO,\"lock_read(): end with \"+lockState);\n }\n \t}",
"public void setLastUpdate(long lastUpdate) {\n this.lastUpdate = lastUpdate;\n }",
"default void refreshStream() {}",
"public int read() throws IOException {\n int result = super.read();\n if(iMaxSet) {\n iRemainder--;\n } else {\n iRemainder = available();\n }\n return result;\n }",
"public void setDatasetLastAddedToNow() {\n this.datasetLastAdded = new Date();\n }",
"public boolean getRead() {\n return read_;\n }",
"private void setRead() {\n db = handler.getReadableDatabase();\n }",
"public long get() {\n return stamp;\n }",
"protected void checkpoint() {\n checkpoint = internalBuffer().readerIndex();\n }",
"@Override\r\n\tpublic void read() {\n\r\n\t}",
"public void setLastUsed(Date lastUsed) {\r\n\t\tthis.lastUsed = lastUsed;\r\n\t}",
"protected final void lockRead() {\n m_lock.readLock().lock();\n }",
"public void loadLastReadPage(){\n \t\t\tlastReadLoaded = false;//recalculate and jump to the last read page\n \t\t\tpageHasChanged = false;//navigating between pages causes the view to jump to top of page, this'll reset that\n \t\t\tloadPage(false, null);\n \t\t}",
"private void setLastUpdateTime(long lastUpdateTime) {\n this.lastUpdateTime = lastUpdateTime;\n }",
"@Override\n public void setLastModified(long time) {\n }",
"@Override\r\n public void set(E e) {\r\n if (lastRetrieved == null) {\r\n throw new IllegalStateException();\r\n }\r\n if (e == null) {\r\n throw new NullPointerException();\r\n }\r\n\r\n lastRetrieved.data = e;\r\n }",
"@Test\n public void testSetMostRecentFirst() {\n System.out.println(\"setMostRecentFirst\");\n boolean mostRecentFirst = false;\n BMIReadings instance = new BMIReadings();\n instance.setMostRecentFirst(mostRecentFirst);\n // TODO review the generated test code and remove the default call to fail.\n assertEquals(false, instance.isMostRecentFirst());\n }",
"public ReadLociSetter() {\n super(\"org.tair.db.locusdetail\", 2147483647);\n }",
"public boolean getRead()\n\t{\n\t\treturn this.read;\n\t}",
"public SocketChannelConfig setAutoRead(boolean autoRead)\r\n/* 326: */ {\r\n/* 327:316 */ super.setAutoRead(autoRead);\r\n/* 328:317 */ return this;\r\n/* 329: */ }",
"private void populatePreviousODOReading() {\n\n fuelViewModel.getAllFuel()\n .observe(getActivity(), new Observer<List<Fuel>>() {\n @Override\n public void onChanged(List<Fuel> fuels) {\n\n // if list is not empty\n if (!fuels.isEmpty()){\n\n Log.d(TAG, \"onChanged: fuels.size() = \" + fuels.size());\n\n // fuels.size()-1 displayed last item in the list, so I tested and found that 0 item is the first item\n Fuel mostRecentFuel = fuels.get(0); // most recent item is zero item on the list means first item\n Log.d(TAG, \"onChanged: mostRecentFuel.getFuelID() = \" + mostRecentFuel.getFuelID());\n\n lastODOreading = mostRecentFuel.getCurrentKm();\n tin_startingKm.setText(String.valueOf(lastODOreading));\n\n }\n\n\n }\n });\n\n }",
"void set(long newValue);"
] |
[
"0.6716578",
"0.6457937",
"0.6315138",
"0.6202737",
"0.6163249",
"0.6145941",
"0.60741985",
"0.6065747",
"0.6052548",
"0.59838593",
"0.5951517",
"0.5945977",
"0.5905267",
"0.59031844",
"0.5887809",
"0.58744586",
"0.58554196",
"0.577157",
"0.5708302",
"0.568025",
"0.56763387",
"0.56568944",
"0.5654114",
"0.56371975",
"0.5611843",
"0.5582102",
"0.5571143",
"0.5570966",
"0.5569332",
"0.5562873",
"0.555989",
"0.5547025",
"0.55466557",
"0.554521",
"0.55397415",
"0.55102205",
"0.5508221",
"0.55077434",
"0.55024934",
"0.5496798",
"0.5468217",
"0.5467286",
"0.544453",
"0.54430085",
"0.544154",
"0.54306203",
"0.54290557",
"0.5416671",
"0.54025584",
"0.5401042",
"0.5400292",
"0.53962445",
"0.5388959",
"0.5377632",
"0.5372593",
"0.537044",
"0.53640455",
"0.5359114",
"0.5349169",
"0.5346163",
"0.5342474",
"0.53219664",
"0.52981067",
"0.5291974",
"0.52911097",
"0.52881277",
"0.52857",
"0.5274285",
"0.5269524",
"0.5259722",
"0.5256432",
"0.52533174",
"0.5244959",
"0.52430165",
"0.5233386",
"0.52333677",
"0.5228137",
"0.5226321",
"0.5225482",
"0.52193713",
"0.5213976",
"0.52039266",
"0.5200943",
"0.5199736",
"0.51969826",
"0.51779425",
"0.5171308",
"0.5157",
"0.5153429",
"0.5151593",
"0.51509684",
"0.514883",
"0.51418465",
"0.51381797",
"0.51364577",
"0.5125959",
"0.5121419",
"0.5116044",
"0.5115484",
"0.51046056"
] |
0.68592554
|
0
|
display latest reading with floor number
|
@Override
public String toString() {
return "Reading of the Sensor\n"
+ "Floor ID is: " + floor + "\nLatest Reading is: " + latestReading;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int floorNumber() {\n return _number;\n }",
"public int getCurrentFloor();",
"public String getFloor() {\n return this.floor;\n }",
"public int getFloor() {\n return floor;\n }",
"protected String getFloorDescription(int floorNumber) {\n return \"Floor \" + (floorNumber + 1);\n }",
"public int getFloor();",
"public String getFloor() {\n\t\treturn floor;\n\t}",
"public int currentFloor(){\n return currentFloor;\n }",
"public int getFloorNumber(){\r\n\t\treturn iFloorNumber;\r\n\t}",
"protected String getFloorShortDescription(int floorNumber) {\n return \"\" + (floorNumber + 1);\n }",
"public void setFloor(int floor) {\n this.floor = floor;\n }",
"public void setFloor(String floor) {\n\t\tthis.floor = floor;\n\t}",
"public int getCurrentFloor() {\n return currentFloor;\n }",
"public int getCurrentFloor() {\n return currentFloor;\n }",
"public int getCurrentFloor() {\n\t\treturn currentFloor;\n\t}",
"public int getGotoFloor();",
"public Floor floor() {\r\n\t\treturn this.floor;\r\n\t}",
"public int getMinFloor();",
"public int readDisplay() {\n\t\treturn payStation.getTimeBoughtInMinutes();\n\t}",
"private void drawFloorName(Graphics page){\r\n\t\tint iHeightOffSet = 3;\r\n\t\t\r\n\t\tint iSingleDigitOffSet = 15;\r\n\t\tint iDoubleDigitOffSet = 18;\r\n\t\t\r\n\t\tif(iFloorNumber + 1 < 10){\r\n\t\t\tpage.drawString(Integer.toString(iFloorNumber + 1), xStart - iSingleDigitOffSet, this.ypoints[0] - iHeightOffSet);\r\n\t\t}else{\r\n\t\t\tpage.drawString(Integer.toString(iFloorNumber + 1), xStart - iDoubleDigitOffSet, this.ypoints[0] - iHeightOffSet);\r\n\t\t}\r\n\t}",
"public java.lang.String getFloorLimit() {\r\n return floorLimit;\r\n }",
"public int getMaxFloor();",
"public void setFloor(double input) {\r\n floor=input;\r\n }",
"public String floorName() {\n return _name;\n }",
"public double getNumber () throws IOException, ArithmeticException\n {\n\tdouble z = 0;\n\n\tif (Uniform() > p)\n\t z = Mean/(1.0-p);\n\telse\n\t z = Mean/p;\n\t\n\treturn -0.5*z*Math.log(Uniform());\n }",
"@Override\n\tpublic int calledByFloorNumber() {\n\t\treturn this.lastStoppedFloor;\n\t}",
"public void printPerFloorLine() {\r\n\t\tgetPerFloor();\r\n\t\tgetPerLine();\r\n\t\tprintPerFloor();\r\n\t\tSystem.out.println(\"\");\r\n\t\tprintPerLine();\r\n\t}",
"@JSProperty(\"floor\")\n double getFloor();",
"public void setCurrentFloor(int i);",
"public java.lang.String getFLOOR()\n {\n \n return __FLOOR;\n }",
"@Override\n public void update() {\n if (oldFloorIndex != root.floorsController.getCurrentFloor()) {\n view.floorTitle.setText(\"Floor: \" + root.floorsController.getCurrentFloor());\n oldFloorIndex = root.floorsController.getCurrentFloor();\n }\n }",
"org.naru.park.ParkController.CommonAction getGetLatestSensorReadingForUser();",
"public void floorOutline() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"Floor : \" + floor + \"\\n\");\n\t\tsb.append(\"Total area: \" + area + \"m�\"+ \"\\n\");\n\t\tsb.append(\"Circulation area: \" + circulation + \"m�\"+ \"\\n\");\n\t\tsb.append(\"Useable area: \" + useableArea + \"m�\"+ \"\\n\");\n\t\tsb.append(\"Area left: \" + getRestArea() + \"m�\"+ \"\\n\");\n\t\tsb.append(\"--------------------------------\"+ \"\\n\");\n\t\tfor (int i=0; i<flatList.size(); i++) {\n\t\t\tsb.append(flatList.get(i).toString()+ \"\\n\");\n\t\t\tsb.append(\"--------------------------------\"+ \"\\n\");\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}",
"private void displayFloorImage() {\n SitumSdk.communicationManager().fetchFloorsFromBuilding(selectedBuilding, new Handler<Collection<Floor>>() {\n @Override\n public void onSuccess(Collection<Floor> floors) {\n Log.i(TAG, \"onSuccess: received levels: \" + floors.size());\n Floor floor = new ArrayList<>(floors).get(0);\n //Get the floor image bitmap\n SitumSdk.communicationManager().fetchMapFromFloor(floor, new Handler<Bitmap>() {\n @Override\n public void onSuccess(Bitmap bitmap) {\n imageViewLevel.setImageBitmap(bitmap);\n }\n\n @Override\n public void onFailure(Error error) {\n Log.e(TAG, \"onFailure: fetching floor map: \" + error);\n }\n });\n }\n\n @Override\n public void onFailure(Error error) {\n Log.e(TAG, \"onFailure: fetching floors: \" + error);\n }\n });\n }",
"public String roundDown(){\n return \"Numero original: \" + this._X + \" numero redondeado hacia abajo \" + (int)Math.floor(this._X);\n }",
"@CrossOrigin(origins = \"*\")\n @GetMapping(\"/buildings/{building_id}/floors/latestInstall/{floor_id}\")\n public Date latestInstallTime(@PathVariable final long building_id,\n @PathVariable final long floor_id) {\n return sensorService.latestInstallTime(floor_id, building_id);\n }",
"@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n if (this.high.compareTo(low) == -1) {\n return \"\";\n }\n Note temLow = new Note(this.low.getDuration(), this.low.getOctave(),\n this.low.getStartMeasure(), this.low.getPitch(), this.low.getIsHead(),\n this.low.getInstrument(), this.low.getVolume());\n builder.append(\" \");\n for (int i = 0; this.high.compareTo(temLow) != -1; i++) {\n if (temLow.toString().length() == 3) {\n builder.append(temLow.toString());\n } else {\n builder.append(\" \" + temLow.toString());\n }\n temLow.up();\n }\n builder.append(\"\\n\");\n\n for (int i = 0; i < this.sheet.size(); i++) {\n if (i < 10) {\n builder.append(i + \" \");\n } else {\n builder.append(i);\n }\n List<Note> list = new ArrayList<Note>(this.sheet.get(i));\n Collections.sort(list);\n int listIndex = 0;\n Note comparator = new Note(this.low.getDuration(), this.low.getOctave(),\n this.low.getStartMeasure(), this.low.getPitch(), this.low.getIsHead(),\n this.low.getInstrument(), this.low.getVolume());\n\n // when the measure is empty.\n if (list.size() == 0) {\n builder.append(\" \");\n }\n for (int j = 0; listIndex < list.size() && j <= this.high.howFarUp(this.low); j++) {\n if (list.get(listIndex).compareTo(comparator) == 0) {\n if (list.get(listIndex).getIsHead()) {\n builder.append(\" X \");\n listIndex++;\n } else {\n builder.append(\" | \");\n listIndex++;\n }\n } else {\n builder.append(\" \");\n }\n comparator.up();\n }\n builder.append(\"\\n\");\n }\n return builder.toString();\n }",
"@Override\n\tpublic int edit(Floor floor) {\n\t\treturn floorDao.edit(floor);\n\t}",
"@Override\n\tpublic Object Display() {\n\t\treturn \"Avg/Max/Min temperature = \" + RoundFloatToString(temperatureSum / numReadings) + \"F/\" + maxTemp + \"F/\" + minTemp + \"F\";\n\t}",
"org.naru.park.ParkController.CommonAction getGetLatestReading();",
"public String getLow() {\n return this.low.toString();\n }",
"protected void onGetMeasuredFloorTemperature(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}",
"@Nullable\n/* */ public Floor getFloor(int floorLevel) {\n/* 6423 */ if (this.floors != null)\n/* */ {\n/* 6425 */ for (Floor floor : this.floors) {\n/* */ \n/* 6427 */ if (floor.getFloorLevel() == floorLevel)\n/* 6428 */ return floor; \n/* */ } \n/* */ }\n/* 6431 */ return null;\n/* */ }",
"public int getCurrentFloorForElevator(int elevator) {\r\n \r\n int i = currentFloor;\r\n return i;\r\n }",
"public int getLine_number_display_digits() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 40);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 40);\n\t\t}\n\t}",
"public int getCurrentFloorId() {\n\t\treturn currentFloorId;\n\t}",
"public void setActualFloor(int _actualFloor) {\n\t\tactualFloor = _actualFloor;\n\t}",
"public int getNumberOfPeopleWaitingAtFloor(int floor) {\r\n return personCount.get(floor);\r\n }",
"private void populatePreviousODOReading() {\n\n fuelViewModel.getAllFuel()\n .observe(getActivity(), new Observer<List<Fuel>>() {\n @Override\n public void onChanged(List<Fuel> fuels) {\n\n // if list is not empty\n if (!fuels.isEmpty()){\n\n Log.d(TAG, \"onChanged: fuels.size() = \" + fuels.size());\n\n // fuels.size()-1 displayed last item in the list, so I tested and found that 0 item is the first item\n Fuel mostRecentFuel = fuels.get(0); // most recent item is zero item on the list means first item\n Log.d(TAG, \"onChanged: mostRecentFuel.getFuelID() = \" + mostRecentFuel.getFuelID());\n\n lastODOreading = mostRecentFuel.getCurrentKm();\n tin_startingKm.setText(String.valueOf(lastODOreading));\n\n }\n\n\n }\n });\n\n }",
"int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }",
"public double lastNum() {\n // Variable of support.\n double supp = this.num;\n while (supp > 10) {\n supp = supp - 10;\n }\n return supp;\n }",
"private String tempConversion() {\n int reading = ((record[17] & 255) + ((record[21] & 0x30) << 4));\n\n double voltage = (reading * 3.3) / 1024;\n return formatter.format((voltage - .6) / .01);\n\n }",
"public void displayFloorStatus(Map<Integer, Floor> floors) {\n\t\tfloors.forEach((k, v) -> {\n\t\t\tSystem.out.println(v.getStatus(k));\n\t\t});\n\t}",
"public int getRoomNumber() {\n\t\treturn number; // Replace with your code\n\t}",
"private float getLatestOvers() {\n // return 10.2 for simplicity\n return (float) 10.2;\n }",
"public int getLatestWeather() { //This function goes through the readings Arraylist and gets the most recent weather Code and returns it.\n int code;\n code = readings.get(readings.size() - 1).code;\n return code;\n }",
"public int getDestinationFloor(){\n return destinationFloor;\n }",
"public int lightreading() {\n\t\tLSvalue = lightSensor.lightreading(); \t\t\t\t\t\t\t\t\t\n\t\treturn LSvalue;\n\t}",
"public double getLow() {return low;}",
"public SensorBean getLatestReading() {\n return latestReading;\n }",
"java.lang.String getNumber();",
"java.lang.String getNumber();",
"java.lang.String getNumber();",
"int getChargerCurrentRaw();",
"public void setFloorLimit(java.lang.String floorLimit) {\r\n this.floorLimit = floorLimit;\r\n }",
"private void openDoor(int floor){\r\n\t\tfor(int i = 0; i <1000; i++){\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"Elevator no. \"+ id+ \" Door opened at floor \"+ floor);\r\n\t}",
"public void getInfo () {\n int[] info = elevator.getInfo ();\n currFloor = info[0];\n maxCap = info[2];\n numFloors = info[3];\n currCap = info[5];\n state = info[6];\n }",
"public double get_thermal_reading() {\n\t\t\n\t\treturn 0;\n\t}",
"protected byte[] getMeasuredFloorTemperature() {return null;}",
"private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.minute_text_view);\n quantityTextView.setText(\"\" + number);\n\n }",
"private String lightConversion() {\n int reading = ((record[16] & 255) + ((record[21] & 0xC0) << 2));\n //return reading + \"\";\n return formatter.format(((reading * reading) * (-.0009)) + (2.099 * reading));\n }",
"private void updateReadingTime(long time) {\n \t\treadingTimeView.setText(String.format(readingTimeFormat, TimeUtils.formatTime(time)));\n \t}",
"public Floor nextFloorUp() {\n Floor next = Floor.FIRST; // default value\n switch(_number){\n case 1: next = Floor.SECOND;\n break;\n case 2: next = Floor.THIRD;\n break;\n case 3: next = Floor.FOURTH;\n break;\n case 4: next = Floor.FIFTH;\n break;\n case 5: next = Floor.SIXTH;\n break;\n case 6: next = Floor.SEVENTH;\n break;\n\n }\n return next;\n }",
"public Reading get_reading () {\n if (!this.on) {\n return null;\n }\n\n Instant instant = Instant.now();\n return new Reading(\n (float) instant.getEpochSecond(),\n this.currentSensorValue,\n this.stationName,\n this.stationLocation\n );\n }",
"public void setCurrentFloor(int currentFloor) {\n this.currentFloor = currentFloor;\n }",
"public String toStringConsole() {\n\t\treturn \" SoilMoisture Sensor Read [ \" \n\t\t\t\t+ \"Temperature= \" + getTemperature() \n\t\t\t\t+ \"°C,\\t Lux= \" + getLux() \n\t\t\t\t+ \"%,\\t Moisture=\" + getMoisture() \n\t\t\t\t+ \"%,\\t Read Time= \" + readTime + \" ]\";\n\t}",
"public double getHigh() { return high;}",
"public Floor nextFloorDown() {\n Floor next = Floor.FIRST; // default value\n switch(_number){\n case 2: next = Floor.FIRST;\n break;\n case 3: next = Floor.SECOND;\n break;\n case 4: next = Floor.THIRD;\n break;\n case 5: next = Floor.FOURTH;\n break;\n case 6: next = Floor.FIFTH;\n break;\n case 7: next = Floor.SIXTH;\n break;\n\n }\n return next;\n\n }",
"public double getRoll() { return _rss==null? 0 : _rss.roll; }",
"public String getHigh() {\n return this.high.toString();\n }",
"private String altitudeConversion() {\n int reading = ((record[9] & 255) << 8) + (record[8] & 255);\n if (reading == 60000) {\n return \" \";\n } else {\n return reading + \"\";\n }\n }",
"@JSProperty(\"floor\")\n void setFloor(double value);",
"private Boolean floorVerfication(int floor){\n \n if(Elevator.MIN_FLOOR <= floor && floor <= Elevator.MAX_FLOOR)\n return true;\n else \n return false;\n }",
"public int getCustomerMaxTargetFloor();",
"protected final int calculateInterst1(int pr){\n\t\t return pr*10*1/100;\n\t }",
"public void cal_FireLoadRating(){\r\n\tFLOAD=1.75*Math.log10(TIMBER)+0.32*Math.log10(BUO)-1.640;\r\n\t//ensure that FLOAD is greater than 0, otherwise set it to 0;\r\n\tif (FLOAD<0){FLOAD=0;\r\n\t\t}else{FLOAD=Math.pow(10, FLOAD);\r\n\t}\r\n}",
"public void simulate(){\n \t System.out.print(\"Floor: \");//formatting\n if(stdin.hasNextInt()){//chckes if the inputted value will be an integer\n \t int floor = stdin.nextInt();\n if(floor<=MAX_FLOORS&&floor>0){//checks if input is within range\n if(floor!=13){//checks if input is 13 (because floor 13 doesn't exist)\n \t if(floor<13){//if input is more than 13 subtract 1 from floor sicne floor 13 doesn't exist\n \t \tSystem.out.println(\"Thank you, I will take you to the actual floor \"+floor);//if input is below 13\n \t }else{\n \t\t System.out.println(\"Thank you, I will take you to the actual floor \"+(floor-1));//if input is above 13\n \t }\n } else{\n System.out.println(\"Error: There is no thirteenth floor\");//input was 13\n }\n } else{\n System.out.println(\"Error: The floor must be between 1 and 20\");//input was out of range\n }\n } else {\n System.out.println(\"Error: Not an integer\");//input was not an integer\n }\n }",
"void milestone2(double num){\n System.out.println(\"Integer part: \" + (int)num);\n double fractionPart = num - (int)num;\n fractionPart *= 100;\n System.out.println(\"Fractional part: \" + (int)fractionPart);\n }",
"float getRoll();",
"float getRoll();",
"private static int getNumber() {\n LOG.info(\"Generating Value\");\n return 1 / 0;\n }",
"public Floor(int floorNum)\n { System.out.print(\"Initializing Floor #\" + floorNum + \"...\\n\");\n this.floorNum= floorNum;\n this.occupants=0;\n }",
"@CrossOrigin\n\t@GetMapping(\"/INSA/{building}/{room}/floor\")\n\tpublic List<String> getRoomFloor(@PathVariable String building, @PathVariable String room) {\n\t\tList<String> returned = new ArrayList<>();\t\n\t\t\n\t\tfor (Room aRoom : roomDB) {\n\t\t\tif (aRoom.getName().equals(room) && aRoom.getBuilding().equals(building)) {\n\t\t\t\tswitch (aRoom.getFloor()) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\treturned.add(\"rdc\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\treturned.add(\"1st\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\treturned.add(\"2nd\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\treturned.add(\"3rd\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\treturned.add(aRoom.getFloor() + \"th\"); \t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (returned.size() == 0) \n\t\t\treturned.add(\"404\");\n\t\treturn returned;\n\t}",
"public static void main(String[] args) {\n Integer arr[] = new Integer[]{1, 1, 1, 2, 2, 2, 2, 2, 4, 4, 5, 5, 5, 6, 6, 6};\n for (int i = 0; i <= 8; i++) {\n\n int floorIndex = floor(arr, i);\n System.out.println(\"the floor index of \" + i + \" is \" + floorIndex + \".\");\n if (floorIndex >= 0 && floorIndex < arr.length)\n System.out.println(\"The value is \" + arr[floorIndex] + \".\");\n System.out.println();\n\n int ceilIndex = ceil(arr, i);\n System.out.println(\"the ceil index of \" + i + \" is \" + ceilIndex + \".\");\n if (ceilIndex >= 0 && ceilIndex < arr.length)\n System.out.println(\"The value is \" + arr[ceilIndex] + \".\");\n System.out.println();\n\n System.out.println();\n }\n }",
"@Override\n public String toString() {\n return \"Floor: \" + floor + \" Total Price: \" + price + \" Vehicle Type: \" + vehicleType + \" Hours: \" + hours; \n }",
"public void advanceFloor(){\n //TODO: write method to move onto next floor\n }",
"@Override\r\n public String toString() {\r\n if (value == (long) value) {\r\n //if the number`s decimal is 0 will print it like a long one\r\n return super.toString() + \":\" + String.format(\"%d\",(long)value);\r\n } else\r\n return super.toString() + \":\" + value;\r\n }",
"public String getFromLog(int nbr) {\n StringBuffer sb = new StringBuffer();\n try {\n for (int i = 0; i < n && i < nbr; i++) {\n String[] split = history[i].split(\";\");\n String ms = split[2].trim();\n int millis = Integer.parseInt(ms);\n float s = ((float) millis / 1000); // turn ms to s\n sb.append(split[0] + \";\" + split[1] + \"; \" + s + \";\" + split[3] + \"\\n\");\n }\n }\n catch (Exception e) {\n // TODO: Catch the right type of exception\n }\n return sb.toString();\n }",
"public double getCurrentGeneration() throws IOException{\n\t\tint minute = TimeSlice.getCurrentMinute();\n\t\tif((minute<6*60)||(minute>18*60))\n\t\t\treturn Math.random();\t// at night, return a noise near to 0\n\t\tWebWeather webWeather = (new WebWeather()).getCurrentDay();\n\t\tint dayText = webWeather.getDayText();\n\t\tdouble level = normalPower*dayText/3.5;\n\t\tdouble d = (Math.random()-0.5)/0.5;\n\t\tdouble ratio = 0.1;\t\t// 波动方差\n\t\tdouble noise = ratio*level;\n\t\treturn level*Math.cos((minute-12*60)/12/60*Math.PI)+noise; \t\n\t}",
"float getTimeRecord();"
] |
[
"0.67572504",
"0.66986656",
"0.6515981",
"0.64909875",
"0.64315385",
"0.6380665",
"0.6295278",
"0.6286017",
"0.6263574",
"0.6173925",
"0.6073221",
"0.60615516",
"0.60433877",
"0.60433877",
"0.5828733",
"0.5793193",
"0.57507515",
"0.5740562",
"0.5719446",
"0.5612775",
"0.5607348",
"0.56031466",
"0.5486867",
"0.54509974",
"0.54504955",
"0.5403396",
"0.5320392",
"0.5310457",
"0.5306164",
"0.5289594",
"0.5271089",
"0.52674663",
"0.5253458",
"0.52526456",
"0.52395856",
"0.5233425",
"0.5229849",
"0.52114713",
"0.5205787",
"0.5203647",
"0.51921564",
"0.51857185",
"0.5158243",
"0.5157073",
"0.5135653",
"0.5129579",
"0.51047415",
"0.5099126",
"0.5086183",
"0.50775987",
"0.5072332",
"0.50704724",
"0.5067971",
"0.5065246",
"0.5059792",
"0.5054136",
"0.5053709",
"0.5051553",
"0.5046497",
"0.5029396",
"0.50147897",
"0.50147897",
"0.50147897",
"0.501336",
"0.5012489",
"0.499878",
"0.49915424",
"0.49762657",
"0.4973175",
"0.4970602",
"0.49501",
"0.49498007",
"0.49414492",
"0.49349314",
"0.49330774",
"0.49258146",
"0.49080133",
"0.49048927",
"0.490418",
"0.49018744",
"0.48980722",
"0.4897152",
"0.48967576",
"0.489095",
"0.48754779",
"0.48734888",
"0.48732594",
"0.4872719",
"0.48712873",
"0.48712873",
"0.48601025",
"0.48553678",
"0.48522344",
"0.48511967",
"0.48386517",
"0.48346627",
"0.48257852",
"0.4819503",
"0.48049828",
"0.4798996"
] |
0.6852506
|
0
|
/ 1 continue 0 draw 1 player1 win 2 player2 win
|
public int gameOver(){
for(int i=0;i<3;i++){
if(banmen[i][0]==1&&banmen[i][1]==1&&banmen[i][2]==1){
return 1;
}
if(banmen[0][i]==1&&banmen[1][i]==1&&banmen[2][i]==1){
return 1;
}
if(banmen[i][0]==2&&banmen[i][1]==2&&banmen[i][2]==2){
return 2;
}
if(banmen[0][i]==2&&banmen[1][i]==2&&banmen[2][i]==2){
return 2;
}
}
if(banmen[0][0]==1&&banmen[1][1]==1&&banmen[2][2]==1){
return 1;
}
if(banmen[0][2]==1&&banmen[1][1]==1&&banmen[2][0]==1){
return 1;
}
if(banmen[0][0]==2&&banmen[1][1]==2&&banmen[2][2]==2){
return 2;
}
if(banmen[0][2]==2&&banmen[1][1]==2&&banmen[2][0]==2){
return 2;
}
for(int i=0;i<3;i++){
for(int j=0;j<3;j++){
if(banmen[i][j]==0){
return -1;
}
}
}
return 0;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void playMatch() {\n while (!gameInformation.checkIfSomeoneWonGame() && gameInformation.roundsPlayed() < 3) {\n gameInformation.setMovesToZeroAfterSmallMatch();\n playSmallMatch();\n }\n String winner = gameInformation.getWinner();\n if(winner.equals(\"DRAW!\")){\n System.out.println(messageProvider.provideMessage(\"draw\"));\n }else {\n System.out.println(messageProvider.provideMessage(\"winner\")+\" \"+winner+\"!\");\n }\n }",
"public static void decidedWinner(){\n if(playerOneWon == true ){\n//\n// win.Fill(\"Player One Has Won !\");\n// new WinnerWindow().setVisible(true);\n }\n else if (playerTwoWon == true){\n// win.Fill(\"Player Two Has Won !\");\n// new WinnerWindow().setVisible(true);\n }\n else\n {\n// win.Fill(\"Match Has been Tied !\");\n// new WinnerWindow().setVisible(true);\n }\n }",
"public void winGame() {\r\n if (data.gameState == 3) \r\n data.winner = 1;\r\n else if (data.gameState == 4) \r\n data.winner = 2;\r\n data.victoryFlag = true;\r\n data.gameState = 5;\r\n }",
"public void win() {\n if (turn == 1) {\n p1.incrementLegs();\n if (p1.getLegs() == 5) {\n p1.incrementSets();\n p1.setLegs(0);\n p2.setSets(0);\n\n }\n if (p1LastScore > p1.getHighout()) {\n p1.setHighout(p1LastScore);\n\n }\n\n if (p1.getHighout() > OVERALL_HIGH_OUT) {\n OVERALL_HIGH_OUT = p1.getHighout();\n }\n } else if (turn == 2) {\n p2.incrementLegs();\n if (p2.getLegs() == 5) {\n p2.incrementSets();\n p2.setLegs(0);\n p1.setSets(0);\n\n }\n if (p2LastScore > p2.getHighout()) {\n p2.setHighout(p2LastScore);\n }\n\n if (p2.getHighout() > OVERALL_HIGH_OUT) {\n OVERALL_HIGH_OUT = p2.getHighout();\n }\n\n\n\n }\n changeFirstTurn();\n win = true;\n\n\n\n }",
"void next() {\n\tcheckWinCondition();\n\tnew ClientServer(arr);\n\tif (!win) {\n\t\tchangePlayer();\n\t\tP2P.yourTurn = false;\n\t\tP2P.displayTextChanger(Display.txt1, \"Opponents turn!\", Color.lightGray);\n\t} else {\n\t\tgameEnder();\n\t\tEndScreen.showEndGameWindow();\n\tif (curPlayer == 1)\n\t\tEndScreen.infoWindow.setText(\"<html><center><b><font size=25 color=black> Red player won! </font></b></center></html>\");\n\telse\n\t\tEndScreen.infoWindow.setText(\"<html><center><b><font size=25 color=black> Black player won! </font></b></center></html>\");\n\t\tP2P.displayTextChanger(Display.txt1, \"Game has ended!\", Color.blue);\n\t\tP2P.yourTurn = false;\n\t}\n}",
"private void win(int winner)\n {\n switch (winner) {\n case PLAYER_1_FLAG:\n player1.gameOver(RESULT_WIN);\n player2.gameOver(RESULT_LOSS);\n winSend.close();\n break;\n case PLAYER_2_FLAG:\n player1.gameOver(RESULT_LOSS);\n player2.gameOver(RESULT_WIN);\n \n winSend.close();\n break;\n }\n }",
"public void checkWin(){\n boolean result = false;\n if(game.getTurn() > 3){\n Player currentPlayer = game.getPlayerTurn();\n int playernumber = currentPlayer.getPlayericon();\n result = game.winChecker(game.getBored(),playernumber);\n if(result == true) {\n setWinMsgBox(currentPlayer.getPlayerName() + \" Is victorious :)\",\"WIN\");\n }else if(game.getTurn() == 8 && result == false){\n setWinMsgBox(\"Too bad it is a draw, No one out smarted the other -_-\",\"DRAW\");\n }else{}\n }else{\n result = false;\n }\n }",
"void win(Player player);",
"void gameWin(Player player);",
"public void displayWin()\n {\n if(player1 instanceof GameController){\n player1.gameOver(1);\n } else {\n player2.gameOver(1);\n }\n }",
"public static void checkWinCondition() {\n\t\twin = false;\n\t\tif (curPlayer == 1 && arrContains(2, 4))\n\t\t\twin = true;\n\t\telse if (curPlayer == 2 && arrContains(1, 3))\n\t\t\twin = true;\n\t\tif (curPlayer == 2 && !gameLogic.Logic.arrContains(2, 4))\n\t\t\tP2P.gameLost = true;\n\t\telse if (gameLogic.Logic.curPlayer == 1 && !gameLogic.Logic.arrContains(1, 3))\n\t\t\tP2P.gameLost = true;\n\t\tif (P2P.gameLost == true) {\n\t\t\tif (gameLogic.Logic.curPlayer == 1)\n\t\t\t\tEndScreen.infoWindow.setText(\"<html><center><b><font size=25 color=black> Black player won! </font></b></center></html>\");\n\t\t\telse\n\t\t\t\tEndScreen.infoWindow.setText(\"<html><center><b><font size=25 color=black> Red player won! </font></b></center></html>\");\n\t\t}\n\t\telse\n\t\t\twin = false;\n\t}",
"public void checkIfWinOrDraw() {\r\n\t\tif (theModel.getIsDraw() == true) {\r\n\t\t\tDrawNum++;\r\n\t\t\tactivePlayer = winningPlayer;\r\n\t\t\t// cards go to communalPile\r\n\r\n\t\t} else {\r\n\t\t\ttheModel.winningCard(winningPlayer);\r\n\t\t\ttheModel.transferWinnerCards(winningPlayer);\r\n\t\t}\r\n\r\n\t}",
"private void paintWin(Graphics g) {\n\t\tif (gameWon){\n\t\t\tFont textFont = new Font(\"Monotype Corsiva\", Font.PLAIN, 30);\n\t\t\tg.setFont(textFont);\n\t\t\tif (winningPlayer == USER){\n\t\t\t\t//If player won\n\t\t\t\tg.drawString(\"You WON!\", DIMENSIONS_SIZE/2 - 50, DIMENSIONS_SIZE/2);\n\t\t\t\tplayerWins++;\n\t\t\t}\n\t\t\tif (winningPlayer == AI){\n\t\t\t\t//If player lost\n\t\t\t\tg.drawString(\"You LOST!\", DIMENSIONS_SIZE/2 - 50, DIMENSIONS_SIZE/2);\n\t\t\t\taiWins++;\n\t\t\t}\n\t\t}\n\t\tif (gameTie){\n\t\t\t//If it's a tie\n\t\t\tFont textFont = new Font(\"Monotype Corsiva\", Font.PLAIN, 30);\n\t\t\tg.setFont(textFont);\n\t\t\tg.drawString(\"It's a tie!\", DIMENSIONS_SIZE/2 - 50, DIMENSIONS_SIZE/2);\n\t\t\ttieGames++;\n\t\t}\n\t}",
"private Boolean win(int counter) {\n \n winner = false;\n //if the counter is greater than 8, recognizes that it is a draw\n if (counter >= 8) {\n announce.setText(\"Draw\");\n turn.setText(\"\"); //game ends and is no ones turn\n }\n //list of all of the winning options\n if ((tBoard[0] == tBoard[1] && tBoard[1] == tBoard[2] && tBoard[0] != 2)\n || (tBoard[0] == tBoard[3] && tBoard[3] == tBoard[6] && tBoard[0] != 2)\n || (tBoard[3] == tBoard[4] && tBoard[4] == tBoard[5] && tBoard[3] != 2)\n || (tBoard[6] == tBoard[7] && tBoard[7] == tBoard[8] && tBoard[6] != 2)\n || (tBoard[1] == tBoard[4] && tBoard[4] == tBoard[7] && tBoard[1] != 2)\n || (tBoard[2] == tBoard[5] && tBoard[5] == tBoard[8] && tBoard[2] != 2)\n || (tBoard[0] == tBoard[4] && tBoard[4] == tBoard[8] && tBoard[0] != 2)\n || (tBoard[2] == tBoard[4] && tBoard[4] == tBoard[6] && tBoard[2] != 2)) {\n //if counter is even then recognizes that it is the person who has the X symbol and knows that X won \n if (counter % 2 == 0) {\n announce.setText(\"X is the Winner\"); //announces that X has won\n turn.setText(\"\"); //no ones turn anymore\n } //if it is not X, O has won the game and recognizes\n else {\n announce.setText(\"O is the Winner\"); //announces that O has won\n turn.setText(\"\"); //no ones turn anymore\n\n }\n //winner is set to true and stops allowing user to press other squares through pressed method\n winner = true;\n\n }\n //returns winner\n return winner;\n\n }",
"public void winGame() {\n this.isWinner = true;\n }",
"public static void playGame(String player1, String player2 ) {\n // no need for an iterator, as with random rollDice we never run out of values\n int player1Dice;\n int player2Dice;\n\n do {\n // no need for the other player.dice != 0 condition because of the correct dice roll simulation that never returns 0\n // player 1 roll\n player1Dice = rollDice();\n System.out.print(player1 + \" rolled \" + player1Dice + \", \");\n // player 2 roll\n player2Dice = rollDice();\n System.out.println(player2 + \" rolled \" + player2Dice);\n } while(isDraw(player1Dice, player2Dice));\n\n // announcing a winner (no draw here, because we never get out of dice rolls)\n if(player1Dice > player2Dice) {\n System.out.println(\"Round over. \" + player1 + \" is the winner\");\n } else if(player2Dice > player1Dice){\n System.out.println(\"Round over. \" + player2 + \" is the winner\");\n }\n }",
"@Test\n public final void testPlayer1Win() {\n checkPlayerWin(player1);\n }",
"public void play() {\r\n int ii = 0;\r\n\r\n System.out.println(\"****************************************************************\");\r\n System.out.println(\"Play game: a move is expressed as \\\"row#,col#\\\", such as \\\"1,2\\\"\");\r\n System.out.println(\"Computer: X Person: O\");\r\n System.out.println(\"****************************************************************\");\r\n while(!isGameEnded()) {\r\n if (ii >= MAX_MOVE_NUMBER) {\r\n\tbreak;\r\n }\r\n\r\n nextMove();\r\n ii++;\r\n }\r\n\r\n if (isPersonWin()) {\r\n System.out.println(\"Person Wins!\");\r\n saveLoseRecord();\r\n }\r\n else if (isComputerWin()) {\r\n System.out.println(\"Computer Wins!\");\r\n }\r\n else {\r\n System.out.println(\"Tie!\");\r\n }\r\n\r\n }",
"public void playTheGame() {\n\t\tint column;\n\t\ttry {\n\t\t\tboolean gameIsOver = false;\n\t\t\tfor (int count = 0; count < thePlayers.length; count++)\n\t\t\t\tthePlayers[count].getView().showOutput(\n\t\t\t\t\t\taConnect4Field.toString());\n\n\t\t\tdo {\n\t\t\t\tfor (int index = 0; index < thePlayers.length; index++) {\n\t\t\t\t\t// thePlayers[index].getView().showOutput(aConnect4Field.toString());\n\t\t\t\t\tif (aConnect4Field.isItaDraw()) {\n\t\t\t\t\t\tfor (int count = 0; count < thePlayers.length; count++)\n\t\t\t\t\t\t\tthePlayers[count].getView().showOutput(\"Draw\");\n\t\t\t\t\t\tgameIsOver = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthePlayers[index].getView().showOutput(\n\t\t\t\t\t\t\t\tthePlayers[index].getName()\n\t\t\t\t\t\t\t\t\t\t+ \" it's Your Turn! play your move\");\n\t\t\t\t\t\tcolumn = thePlayers[index].nextMove();\n\t\t\t\t\t\twhile (!aConnect4Field\n\t\t\t\t\t\t\t\t.checkIfPiecedCanBeDroppedIn(column)) {\n\t\t\t\t\t\t\tthePlayers[index].getView().showOutput(\n\t\t\t\t\t\t\t\t\t\"Invalid Turn Try again\");\n\t\t\t\t\t\t\tcolumn = thePlayers[index].nextMove();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\taConnect4Field.dropPieces(column,\n\t\t\t\t\t\t\t\tthePlayers[index].getGamePiece());\n\t\t\t\t\t\tfor (int count = 0; count < thePlayers.length; count++)\n\t\t\t\t\t\t\tthePlayers[count].getView().showOutput(\n\t\t\t\t\t\t\t\t\taConnect4Field.toString());\n\t\t\t\t\t\tif (aConnect4Field.error != \"\") {\n\n\t\t\t\t\t\t\tthePlayers[index].getView().showOutput(\n\t\t\t\t\t\t\t\t\taConnect4Field.error);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (aConnect4Field.didLastMoveWin()) {\n\t\t\t\t\t\t\t\tgameIsOver = true;\n\t\t\t\t\t\t\t\t// all player get to know\n\t\t\t\t\t\t\t\tfor (int count = 0; count < thePlayers.length; count++)\n\t\t\t\t\t\t\t\t\tthePlayers[count].getView().showOutput(\n\t\t\t\t\t\t\t\t\t\t\t\"The winner is: \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ thePlayers[index]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getName());\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t} while (!gameIsOver);\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"private boolean checkGameStatus() {\n int res = model.getWinner();\n if (res == Model.DRAW) {\n draw();\n return false;\n } else if (res == Model.WHITE) {\n whiteScore++;\n view.getPrompt().setText(whiteName + \" win!\");\n prepareRestart();\n return false;\n } else if (res == Model.BLACK) {\n blackScore++;\n view.getPrompt().setText(blackName + \" win!\");\n prepareRestart();\n return false;\n }\n return true;\n }",
"public void play() {\r\n\r\n gamestate.startGame();\r\n\r\n while (!quit) {\r\n\r\n if (newGame) {\r\n gamestate.startGame();\r\n turn = 0;\r\n finished = true;\r\n newGame = false;\r\n }\r\n\r\n while (!gamestate.gameOver()) {\r\n\r\n if (newGame) {\r\n break;\r\n }\r\n\r\n turn++;\r\n display.displayBoard();\r\n\r\n if (turn % 2 == 1) {\r\n player1.makeMove(gamestate);\r\n } else {\r\n player2.makeMove(gamestate);\r\n }\r\n\r\n }\r\n\r\n if (finished) {\r\n\r\n display.displayBoard();\r\n\r\n switch (gamestate.getWinner()) {\r\n case Connect4GameState.RED:\r\n System.out.println(\"R wins\");\r\n break;\r\n case Connect4GameState.YELLOW:\r\n System.out.println(\"Y wins\");\r\n break;\r\n default:\r\n System.out.println(\"No one wins\");\r\n }\r\n\r\n finished = false;\r\n\r\n }\r\n\r\n if (display instanceof Connect4ConsoleDisplay) {\r\n quit = true;\r\n }\r\n\r\n }\r\n\r\n }",
"@Override\n public void playWithTwoPlayers(Player player1, Player player2) {\n int[] combinationPlayer;\n int counter = config.getMaxTries();\n config.getMsgInfo().choiceGameBonus();\n config.getMsgInfo().counter(counter);\n\n // initialize a random number that both players will try to find\n IAPlayer ia = new IAPlayer(config);\n int[] defenseCombination = ia.initialiseCombination();\n if (config.isDevMode())\n config.getMsgCombination().devMode(defenseCombination);\n config.getMsgInfo().computer();\n\n // Proposition player1\n config.getMsgInfo().player1();\n combinationPlayer = player1.research(null);\n config.getMsgCombination().newAnswer(combinationPlayer);\n String[] clues = ia.clues(combinationPlayer);\n if (IsWin.winIf(clues)) {\n config.getMsgInfo().isWin();\n return;\n }\n config.getMsgCombination().cluesAre(clues);\n\n // Proposition player2\n config.getMsgInfo().player2();\n combinationPlayer = player2.research(null);\n config.getMsgCombination().newAnswer(combinationPlayer);\n String[] clews = ia.clues(combinationPlayer);\n if (IsWin.winIf(clews)) {\n config.getMsgInfo().isWin();\n return;\n }\n config.getMsgCombination().cluesAre(clews);\n\n counter--;\n config.getMsgInfo().counterLess(counter);\n\n do {\n // Proposition player1\n config.getMsgInfo().player1();\n combinationPlayer = player1.research(clues);\n config.getMsgCombination().newAnswer(combinationPlayer);\n clues = ia.clues(combinationPlayer);\n if (IsWin.winIf(clues)) {\n config.getMsgInfo().isWin();\n return;\n } else if (counter > 1) {\n config.getMsgCombination().cluesAre(clues);\n } else if (counter == 1) {\n if (!Arrays.equals(combinationPlayer, defenseCombination))\n config.getMsgInfo().notGood();\n }\n\n // Proposition player2\n config.getMsgInfo().player2();\n combinationPlayer = player2.research(clews);\n config.getMsgCombination().newAnswer(combinationPlayer);\n clews = ia.clues(combinationPlayer);\n if (IsWin.winIf(clews)) {\n config.getMsgInfo().isWin();\n return;\n } else if (counter > 1) {\n config.getMsgCombination().cluesAre(clews);\n } else if (counter == 1) {\n if (!Arrays.equals(combinationPlayer, defenseCombination))\n config.getMsgInfo().notGood();\n }\n\n counter--;\n if (counter >= 1)\n config.getMsgInfo().counterLess(counter);\n else {\n config.getMsgInfo().endGameDuel();\n config.getMsgCombination().finallyRevealSecretCombination(defenseCombination);\n break;\n }\n } while (true);\n }",
"private boolean winner() {\n\t\t\n\t\tif(( gameBoard[TOP_LEFT] + gameBoard[TOP_CENTER] + gameBoard[TOP_RIGHT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[CTR_LEFT] + gameBoard[CTR_CENTER] + gameBoard[CTR_RIGHT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[BTM_LEFT] + gameBoard[BTM_CENTER] + gameBoard[BTM_RIGHT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[CTR_LEFT] + gameBoard[BTM_LEFT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[TOP_CENTER] + gameBoard[CTR_CENTER] + gameBoard[BTM_CENTER]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[TOP_RIGHT] + gameBoard[CTR_RIGHT] + gameBoard[BTM_RIGHT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[CTR_CENTER] + gameBoard[BTM_RIGHT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[TOP_RIGHT] + gameBoard[CTR_CENTER] + gameBoard[BTM_LEFT]) == P1_WINNER){\n\t\t\t//player 1 winner\n\t\t\twinner = P1_WINNER;\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[TOP_CENTER] + gameBoard[TOP_RIGHT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[CTR_LEFT] + gameBoard[CTR_CENTER] + gameBoard[CTR_RIGHT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[BTM_LEFT] + gameBoard[BTM_CENTER] + gameBoard[BTM_RIGHT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[CTR_LEFT] + gameBoard[BTM_LEFT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[TOP_CENTER] + gameBoard[CTR_CENTER] + gameBoard[BTM_CENTER]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[TOP_RIGHT] + gameBoard[CTR_RIGHT] + gameBoard[BTM_RIGHT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[CTR_CENTER] + gameBoard[BTM_RIGHT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if((gameBoard[TOP_RIGHT] + gameBoard[CTR_CENTER] + gameBoard[BTM_LEFT]) == P2_WINNER){\n\t\t\t//player 2 winner\n\t\t\twinner = P2_WINNER;\n\t\t}else if(gameBoard[TOP_LEFT] + gameBoard[TOP_CENTER] + gameBoard[TOP_RIGHT] + \n\t\t\t\t gameBoard[CTR_LEFT] + gameBoard[CTR_CENTER] + gameBoard[CTR_RIGHT] +\n\t\t\t\t gameBoard[BTM_LEFT] + gameBoard[BTM_CENTER] + gameBoard[BTM_RIGHT] == CAT){\n\t\t\t//cat winner player_1 goes first\n\t\t\twinner = CAT;\n\t\t}else if(gameBoard[TOP_LEFT] + gameBoard[TOP_CENTER] + gameBoard[TOP_RIGHT] + \n\t\t\t\t gameBoard[CTR_LEFT] + gameBoard[CTR_CENTER] + gameBoard[CTR_RIGHT] +\n\t\t\t\t gameBoard[BTM_LEFT] + gameBoard[BTM_CENTER] + gameBoard[BTM_RIGHT] == (CAT + 3)){\n\t\t\t//cat winner player_2 goes first\n\t\t\twinner = CAT;\n\t\t} \n\t\t\n\t\tif(winner > 0){\n\t\t\treturn true;//there is a winner\n\t\t}else{\n\t\t\treturn false;//still no winner yet\n\t\t}\t\n\t}",
"private void battle(String playerchoice, String player2choice){\n for(int i = 1; i<4; i++){\n if (choice(playerchoice) == i && choice(player2choice) == i){\n System.out.println(\"tie\");\n break;\n }\n else if(i + 1 == 4) {\n System.out.println(\"i + 1 = 4\");\n System.out.println(choice(playerchoice) + \" player 1 choice\");\n System.out.println(choice(player2choice) + \" player 2 choice\");\n if(choice(playerchoice) == 1 && choice(player2choice) == 3){\n System.out.println(\"player 1 wins\");\n break;\n }\n System.out.println(\"player 2 wins\");\n wins(player2);\n break;\n }\n if(choice(playerchoice) == i && choice(player2choice) == i+1){\n System.out.println(choice(playerchoice) + \" player 1 choice\");\n System.out.println(choice(player2choice) + \" player 2 choice\");\n System.out.println(\"player2 wins\");\n wins(player2);\n break;\n }\n else if(choice(playerchoice) == i+1 && choice(player2choice) == i){\n System.out.println(choice(playerchoice) + \" player 1 choice\");\n System.out.println(choice(player2choice) + \" player 2 choice\");\n System.out.println(\"player1 wins\");\n wins(player1);\n break;\n }\n }\n }",
"public int startGame() {\n\t\tint counter = 0;\n\t\twhile (true) {\n\t\t\t\n\t\t\tPlayer current = (counter % 2 == 0) ? getPlayer1() : getPlayer2();\n\t\t\tint column = current.play(getGameBoard());\n\t\t\t\n\t\t\t// Check input validity:\n\t\t\t\n\t\t\tif(column < 0) {\n\t\t\t\tSystem.out.println(current.getName()+\" tries to play a negative column number -> disqualification.\");\n\t\t\t\treturn (current == player1)? 2 : 1;\n\t\t\t}\n\t\t\t\n\t \tif(isColumnFull(column, current)) {\n\t \t\tSystem.out.println(current.getName()+\" tries to play an already full column -> disqualification.\");\n\t \t\treturn (current == player1)? 2 : 1;\n\t \t}\n\t\t\t\n\t\t\tplayColumn(column, current);\n\t\t\tcounter++;\n\t\t\t\n\t\t\tif (isGameDrawn()) {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\t// For Player 1:\n\t\t\tif (hasWon(getPlayer1())) {\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\t// For Player 2:\n\t\t\tif (hasWon(getPlayer2())) {\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\t\n\t\t\t// continue ...\n\t\t}\n\t}",
"private void checkWin() {\n // Check if a dialog is already displayed\n if (!this.gameOverDisplayed) {\n // Check left paddle\n if (Objects.equals(this.scoreL.currentScore, this.winCount) && (this.scoreL.currentScore != 0)) {\n if (twoUser) {\n gameOver(GeneralFunctions.TWO_1_WIN);\n } else {\n gameOver(GeneralFunctions.ONE_LOSE);\n }\n // Right paddle\n } else if (Objects.equals(this.scoreR.currentScore, this.winCount) && (this.scoreR.currentScore != 0)) {\n if (twoUser) {\n gameOver(GeneralFunctions.TWO_2_WIN);\n } else {\n gameOver(GeneralFunctions.ONE_WIN);\n }\n }\n }\n }",
"private void wins(Player player){\n int win = 1;\n player.setWins(win);\n }",
"public static void interactivePlay() {\r\n\t\tint[][] board = createBoard();\r\n\t\tshowBoard(board);\r\n\r\n\t\tSystem.out.println(\"Welcome to the interactive Checkers Game !\");\r\n\r\n\t\tint strategy = getStrategyChoice();\r\n\t\tSystem.out.println(\"You are the first player (RED discs)\");\r\n\r\n\t\tboolean oppGameOver = false;\r\n\t\twhile (!gameOver(board, RED) && !oppGameOver) {\r\n\t\t\tboard = getPlayerFullMove(board, RED);\r\n\r\n\t\t\toppGameOver = gameOver(board, BLUE);\r\n\t\t\tif (!oppGameOver) {\r\n\t\t\t\tEnglishCheckersGUI.sleep(200);\r\n\r\n\t\t\t\tboard = getStrategyFullMove(board, BLUE, strategy);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint winner = 0;\r\n\t\tif (playerDiscs(board, RED).length == 0 | playerDiscs(board, BLUE).length == 0){\r\n\t\t\twinner = findTheLeader(board);\r\n\t\t}\r\n\r\n\t\tif (winner == RED) {\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"\\t *************************\");\r\n\t\t\tSystem.out.println(\"\\t * You are the winner !! *\");\r\n\t\t\tSystem.out.println(\"\\t *************************\");\r\n\t\t}\r\n\t\telse if (winner == BLUE) {\r\n\t\t\tSystem.out.println(\"\\n======= You lost :( =======\");\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"\\n======= DRAW =======\");\r\n\t}",
"public void win() {\n JOptionPane.showConfirmDialog(null, \"You won! You got out with \" + this.player.getGold() + \" gold!\", \"VICTORY!\", JOptionPane.OK_OPTION);\n this.saveScore();\n this.updateScores();\n this.showTitleScreen();\n }",
"@Test\n public final void testPlayer2Win() {\n checkPlayerWin(player2);\n }",
"public void drawGameCompleteScreen() {\r\n PennDraw.clear();\r\n\r\n if (didPlayerWin()) {\r\n PennDraw.text(width / 2, height / 2, \"You Win!\");\r\n } else if (didPlayerLose()) {\r\n PennDraw.text(width / 2, height / 2, \"You have lost...\");\r\n }\r\n\r\n PennDraw.advance();\r\n }",
"void win() {\n if (_game.isWon()) {\n showMessage(\"Congratulations you win!!\", \"WIN\", \"plain\");\n }\n }",
"void playGame() {\n boolean done = false;\n\n printIntro();\n addPlayers();\n\n while (!done && !hasWinner()) {\n for (Player player : list) {\n Card nextCard = draw();\n nextRoll++;\n\n if (nextCard != null) {\n System.out.println(player + \" roll \" + nextCard);\n board.move(player, nextCard);\n } else {\n done = true;\n break;\n }\n }\n }\n if (!hasWinner()) {\n System.out.println(\"No winner\");\n } else {\n System.out.println(determineWinner());\n }\n }",
"boolean winGame();",
"private void checkVictory() {\n\t\tboolean currentWin = true;\n\t\t\n\t\t//Vertical win\n\t\tfor (int i = 0; i<DIVISIONS; i++){\n\t\t\tif (gameArray[i][yGuess] != currentPlayer){\n\t\t\t\tcurrentWin = false;\n\t\t\t}\n\t\t}\n\t\tif (currentWin){\n\t\t\tgameWon = true;\n\t\t}\n\t\t\n\t\t//Horizontal win\n\t\tcurrentWin = true;\n\t\tfor (int i = 0; i<DIVISIONS; i++){\n\t\t\tif (gameArray[xGuess][i] != currentPlayer){\n\t\t\t\tcurrentWin = false;\n\t\t\t}\n\t\t}\n\t\tif (currentWin){\n\t\t\tgameWon = true;\n\t\t}\n\t\t\n\t\t//Top left bottom right diagonal win\n\t\tcurrentWin = true;\n\t\tif (xGuess == yGuess){\n\t\tfor (int i = 0; i<DIVISIONS; i++){\n\t\t\tif (gameArray[i][i] != currentPlayer){\n\t\t\t\tcurrentWin = false;\n\t\t\t}\n\t\t}\n\t\tif (currentWin){\n\t\t\tgameWon = true;\n\t\t}\n\t\t}\n\t\t\n\t\t//Bottom left top right diagonal win\n\t\tcurrentWin = true;\n\t\tif (yGuess + xGuess == DIVISIONS - 1){\n\t\t\tfor (int i = 0; i<DIVISIONS; i++){\n\t\t\t\tif (gameArray[i][(DIVISIONS - 1) -i] != currentPlayer){\n\t\t\t\t\tcurrentWin = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (currentWin){\n\t\t\t\tgameWon = true;\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"private boolean winGame() {\n if (model.isCompleted()) {\n win.message(\"Winner\");\n return true;\n }\n return false;\n }",
"@Test\n @DisplayName(\"After one player makes one move, verify conditions for next player toggle\")\n void doesPlayerContinue() {\n Player player = playerService.getP1();\n Pit pit = boardService.getPitByID(0);\n Move move = new Move(player, pit);\n boardService.updateBoardForMove(move);\n Assert.assertTrue(boardService.doesPlayerContinue());\n\n // For the next move, if player 1 moves from pit 1, player will not continue\n pit = boardService.getPitByID(1);\n move = new Move(player, pit);\n boardService.updateBoardForMove(move);\n Assert.assertFalse(boardService.doesPlayerContinue());\n }",
"private void myTurn()\n\t{\n\t\t\n\t\tif (canPlay())\n\t\t{\n\t\t\tif (isTop())\n\t\t\t{\n\t\t\t\traise();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tequal();\n\t\t\t}\n\t\t}\n\t\ttable.nextPlayer();\n\t\t\n\t}",
"public final boolean checkForWin() {\r\n boolean result = false;\r\n String player = \"\";\r\n \r\n for (Rail rail : rails) {\r\n if (rail.isWinner()) {\r\n result = true;\r\n for(Tile tile : rail.getTiles()) {\r\n tile.setBackground(Color.GREEN);\r\n player = tile.getText();\r\n }\r\n if (player.equals(\"X\")) {\r\n winningPlayer = \"X\";\r\n this.xWins++;\r\n } else if (player.equals(\"0\")) {\r\n winningPlayer = \"0\";\r\n this.oWins++;\r\n }\r\n break;\r\n }\r\n }\r\n \r\n return result;\r\n }",
"public void playRoundOne() {\r\n\t\t\r\n\t\twhile (!theModel.isGameOver()) {\r\n\t\t\tif (theModel.chooseFirstActivePlayer() == true) {\r\n\t\t\t\t// theModel.selectCategory();\r\n\t\t\t\t// so at this point we have returned strings?\r\n\t\t\t\twinningPlayer = theModel.compareCards(theModel.getSelectedCategory(theModel.selectCategory()));\r\n\t\t\t\tcheckIfWinOrDraw();\r\n\r\n\t\t\t\tSystem.out.println(\"this should be the human\");\r\n\r\n\t\t\t\tplayRound();\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\twinningPlayer = theModel.compareCards(theModel.getSelectedCategory(theModel.autoCategory()));\r\n\t\t\t\tcheckIfWinOrDraw();\r\n\r\n\t\t\t\t// theModel.displayTopCard();\r\n\t\t\t\tSystem.out.println(\"this should be the ai\");\r\n\t\t\t\tplayRound();\r\n\t\t\t\t// return true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (theModel.isGameOver()) {\r\n\t\t\tsql.setGameDataToSQL(GameID, RoundID, winningPlayer.getName(), DrawNum, theModel.humanIsActivePlayer);\r\n\t\t}\r\n\t}",
"public int checkWin() {\r\n\t int diagSum1 = 0;\r\n\t int diagSum2 = 0;\r\n\t int colSum = 0;\r\n\t int rowSum = 0;\r\n\t int j = 0;\r\n\t String winner = \"\";\r\n\t \r\n\t \r\n\r\n\t diagSum1 = buttons[0][2].getValue() + buttons[1][1].getValue() + buttons[2][0].getValue();\r\n\t diagSum2 = buttons[0][0].getValue() + buttons[1][1].getValue() + buttons[2][2].getValue();\r\n\r\n\t if(diagSum1 == 3 || diagSum2 == 3) {\r\n\t winner = \"computer\";\r\n\t \t message.setText(\"COMPUTER WINS!\");\r\n\t setPanelEnabled(board, false);\r\n\t\t aiscore.setText(Integer.toString(computerscore+=2));\r\n\t\t restart.setVisible(true);\r\n\t\t j=1;\r\n\r\n\t }\r\n\t if(diagSum1 == -3 || diagSum2 == -3) {\r\n\t winner = \"you win\";\r\n\t setPanelEnabled(board, false);\r\n\t \tmessage.setText(\"YOU WIN\");\r\n\t humanscore.setText(Integer.toString(playerscore+=2));\r\n\t restart.setVisible(true);\r\n\t j=1;\r\n\t }\r\n\r\n\t for(int x = 0; x<3; x++) {\r\n\t for(int y = 0; y<3; y++) {\r\n\t rowSum += buttons[x][y].getValue(); \r\n\t colSum += buttons[y][x].getValue();\r\n\t }\r\n\t if(rowSum == 3 || colSum == 3 && winner.equals(\"\")) { \r\n\t setPanelEnabled(board, false);\r\n\t restart.setVisible(true);\r\n\t\t // frame.add(better);\r\n\t winner = \"Computer wins!\";\r\n\t \t message.setText(\"COMPUTER WINS!\");\r\n\t\t\t aiscore.setText(Integer.toString(computerscore+=2));\r\n\t\t\t j=1;\r\n\t }\r\n\t else if(rowSum == -3 || colSum == -3 && winner.equals(\"\")) {\r\n\t setPanelEnabled(board, false);\r\n\t\t // frame.add(restart);\r\n\t winner = \"You win\";\r\n\t \tmessage.setText(\"YOU WIN\");\r\n\t\t humanscore.setText(Integer.toString(playerscore+=2));\r\n\t\t restart.setVisible(true);\r\n\t\t // frame.add(better);\r\n\t\t j=1;\r\n\t }\r\n\t rowSum = 0;\r\n\t colSum = 0;\r\n\t }\r\n\t \r\n\t if(clicks >= 9 && winner.equals(\"\")) {\r\n winner = \"draw\";\r\n\t setPanelEnabled(board, false);\r\n\t restart.setVisible(true);\r\n\t // frame.add(better);\r\n\t message.setText(\"IT'S A DRAW!\");\r\n\t humanscore.setText(Integer.toString(playerscore+=1));\r\n\t\t aiscore.setText(Integer.toString(computerscore+=1));\r\n\t\t j=1;\r\n\t }\r\n\t return j;\r\n\t }",
"public void startGame() {\n\n // Initialize both players\n players[0] = new Player(\"Paras\", true);\n players[1] = new Player(\"Computer\", false);\n\n // Initialize ChessBoard\n board = new ChessBoard(8);\n movesPlayed = new ArrayList<>();\n\n // Keep playing game until GameStatus is BLACK_WIN or WHITE_WIN\n while (true) {\n\n processTurn(players[0]);\n if (this.status == GameStatus.WHITE_WIN) {\n System.out.println(\"P1 win!\");\n break;\n }\n\n processTurn(players[1]);\n if (this.status == GameStatus.BLACK_WIN) {\n System.out.println(\"P2 win!\");\n break;\n }\n }\n\n }",
"public static void stageFour() {\n Scanner console = new Scanner(System.in);\n coar_maze1.partner = true;\n status.restart();\n if (play) {\n if (coar_maze1.china) {\n space_maze.ending3_china();\n } else if (coar_maze1.amazon_forest) {\n space_maze.ending3_amazon();\n }\n status.print_status();\n }\n\n while (play) {\n space_maze.fight();\n if (status.getBoss_health() > 0) {\n space_maze.boss_attack();\n }\n status.print_health();\n //win\n if (status.getBoss_health() < 0) {\n space_maze.win();\n play = false;\n }\n quit();\n }\n }",
"public void win(int player)\r\n\t{\r\n\t\taccountValue[player]+=pool;\r\n\t\tendRund();\r\n\t}",
"private void playTurns(int countTurns, int buttonNumber, JButton buttonText) {\n //allows both players to choose a button\n pressed(countTurns, buttonNumber, buttonText);\n //when winner is not found yet, continues to check for the winner and increases the count\n if (!winner) {\n winner = win(counter); //checks for a winner\n counter++;\n }\n }",
"private void playerTurns()\r\n\t{\r\n\t\t// Setting up user input\r\n\t\tScanner key = new Scanner(System.in);\r\n\t\tString choice = \"\";\r\n\t\t\r\n\t\t// continues turn until win/loss or player chooses to stand\r\n\t\twhile ( !player1.getStand() && !endGame )\r\n\t\t{\r\n\t\t\t// Promps user for input\r\n\t\t\tSystem.out.println(\"Do you wish to hit or stand? (1 = Hit, 2 = Stand)\");\r\n\t\t\t\r\n\t\t\t// Accepts user input as string\r\n\t\t\tchoice = key.nextLine();\r\n\t\t\t\r\n\t\t\t// Only accepts input of 1 or 2\r\n\t\t\tif (choice.equals(\"1\"))\r\n\t\t\t{\r\n\t\t\t\t// adds card to player1 hand from cardDeck object\r\n\t\t\t\tSystem.out.println(\"Hitting...\");\r\n\t\t\t\tplayer1.hit( cardDeck.draw() );\r\n\t\t\t}\r\n\t\t\telse if (choice.equals(\"2\"))\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Passing...\");\r\n\t\t\t\tplayer1.stand();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"That input was not recognized.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// displays current player hand\r\n\t\t\tdisplayPlayerCards(PLAYER1_ID);\r\n\t\t\t\r\n\t\t\t// evaluates win conditions\r\n\t\t\tevaluateWin(false);\r\n\t\t} // end while\r\n\t}",
"private void printO() {\n String[] players = {\"O\", \"X\"};\n boolean flag = false;\n\n for (int player = 0; player < 2; player++) {\n if (!flag && (id00.getText().isEmpty() ^ id01.getText().isEmpty() ^ id02.getText().isEmpty())\n && !(id00.getText().isEmpty() && id01.getText().isEmpty() && id02.getText().isEmpty())) {\n if (id00.getText().isEmpty() && id01.getText().equals(id02.getText()) && players[player].equals(id01.getText())) {\n pauseAndPlay(id00);\n flag = true;\n } else if (id01.getText().isEmpty() && id00.getText().equals(id02.getText()) && players[player].equals(id00.getText())) {\n pauseAndPlay(id01);\n flag = true;\n } else if (id02.getText().isEmpty() && id00.getText().equals(id01.getText()) && players[player].equals(id00.getText())) {\n pauseAndPlay(id02);\n flag = true;\n }\n\n }\n\n if (!flag && (id00.getText().isEmpty() ^ id10.getText().isEmpty() ^ id20.getText().isEmpty())\n && !(id00.getText().isEmpty() && id10.getText().isEmpty() && id20.getText().isEmpty())) {\n if (id00.getText().isEmpty() && id10.getText().equals(id20.getText()) && players[player].equals(id10.getText())) {\n pauseAndPlay(id00);\n flag = true;\n } else if (id10.getText().isEmpty() && id00.getText().equals(id20.getText()) && players[player].equals(id00.getText())) {\n pauseAndPlay(id10);\n flag = true;\n } else if (id20.getText().isEmpty() && id00.getText().equals(id10.getText()) && players[player].equals(id00.getText())) {\n pauseAndPlay(id20);\n flag = true;\n }\n\n }\n\n if (!flag && (id00.getText().isEmpty() ^ id11.getText().isEmpty() ^ id22.getText().isEmpty())\n && !(id00.getText().isEmpty() && id11.getText().isEmpty() && id22.getText().isEmpty())) {\n if (id00.getText().isEmpty() && id11.getText().equals(id22.getText()) && players[player].equals(id11.getText())) {\n pauseAndPlay(id00);\n flag = true;\n } else if (id11.getText().isEmpty() && id00.getText().equals(id22.getText()) && players[player].equals(id00.getText())) {\n pauseAndPlay(id11);\n flag = true;\n } else if (id22.getText().isEmpty() && id00.getText().equals(id11.getText()) && players[player].equals(id00.getText())) {\n pauseAndPlay(id22);\n flag = true;\n }\n }\n\n if (!flag && (id11.getText().isEmpty() ^ id10.getText().isEmpty() ^ id12.getText().isEmpty())\n && !(id11.getText().isEmpty() && id10.getText().isEmpty() && id12.getText().isEmpty())) {\n if (id10.getText().isEmpty() && id11.getText().equals(id12.getText()) && players[player].equals(id11.getText())) {\n pauseAndPlay(id10);\n flag = true;\n } else if (id11.getText().isEmpty() && id10.getText().equals(id12.getText()) && players[player].equals(id12.getText())) {\n pauseAndPlay(id11);\n flag = true;\n } else if (id12.getText().isEmpty() && id10.getText().equals(id11.getText()) && players[player].equals(id11.getText())) {\n pauseAndPlay(id12);\n flag = true;\n }\n }\n\n if (!flag && (id11.getText().isEmpty() ^ id01.getText().isEmpty() ^ id21.getText().isEmpty())\n && !(id11.getText().isEmpty() && id01.getText().isEmpty() && id21.getText().isEmpty())) {\n if (id01.getText().isEmpty() && id11.getText().equals(id21.getText()) && players[player].equals(id11.getText())) {\n pauseAndPlay(id01);\n flag = true;\n } else if (id11.getText().isEmpty() && id01.getText().equals(id21.getText()) && players[player].equals(id21.getText())) {\n pauseAndPlay(id11);\n flag = true;\n } else if (id21.getText().isEmpty() && id01.getText().equals(id11.getText()) && players[player].equals(id11.getText())) {\n pauseAndPlay(id21);\n flag = true;\n }\n }\n\n if (!flag && (id11.getText().isEmpty() ^ id02.getText().isEmpty() ^ id20.getText().isEmpty())\n && !(id11.getText().isEmpty() && id02.getText().isEmpty() && id20.getText().isEmpty())) {\n if (id02.getText().isEmpty() && id11.getText().equals(id20.getText()) && players[player].equals(id11.getText())) {\n pauseAndPlay(id02);\n flag = true;\n } else if (id11.getText().isEmpty() && id02.getText().equals(id20.getText()) && players[player].equals(id02.getText())) {\n pauseAndPlay(id11);\n flag = true;\n } else if (id20.getText().isEmpty() && id02.getText().equals(id11.getText()) && players[player].equals(id11.getText())) {\n pauseAndPlay(id20);\n flag = true;\n }\n }\n\n if (!flag && (id22.getText().isEmpty() ^ id02.getText().isEmpty() ^ id12.getText().isEmpty())\n && !(id22.getText().isEmpty() && id02.getText().isEmpty() && id12.getText().isEmpty())) {\n if (id02.getText().isEmpty() && id22.getText().equals(id12.getText()) && players[player].equals(id22.getText())) {\n pauseAndPlay(id02);\n flag = true;\n } else if (id22.getText().isEmpty() && id02.getText().equals(id12.getText()) && players[player].equals(id02.getText())) {\n pauseAndPlay(id22);\n flag = true;\n } else if (id12.getText().isEmpty() && id02.getText().equals(id22.getText()) && players[player].equals(id22.getText())) {\n pauseAndPlay(id12);\n flag = true;\n }\n }\n\n if (!flag && (id22.getText().isEmpty() ^ id20.getText().isEmpty() ^ id21.getText().isEmpty())\n && !(id22.getText().isEmpty() && id20.getText().isEmpty() && id21.getText().isEmpty())) {\n if (id20.getText().isEmpty() && id22.getText().equals(id21.getText()) && players[player].equals(id22.getText())) {\n pauseAndPlay(id20);\n flag = true;\n } else if (id22.getText().isEmpty() && id20.getText().equals(id21.getText()) && players[player].equals(id20.getText())) {\n pauseAndPlay(id22);\n flag = true;\n } else if (id21.getText().isEmpty() && id20.getText().equals(id22.getText()) && players[player].equals(id22.getText())) {\n pauseAndPlay(id21);\n flag = true;\n }\n }\n }\n\n if (!flag) {\n if (id22.getText().isEmpty()) {\n pauseAndPlay(id22);\n } else if (id12.getText().isEmpty()) {\n pauseAndPlay(id12);\n } else if (id11.getText().isEmpty()) {\n pauseAndPlay(id11);\n } else if (id10.getText().isEmpty()) {\n pauseAndPlay(id10);\n } else if (id01.getText().isEmpty()) {\n pauseAndPlay(id01);\n } else if (id21.getText().isEmpty()) {\n pauseAndPlay(id21);\n } else if (id00.getText().isEmpty()) {\n pauseAndPlay(id00);\n } else if (id02.getText().isEmpty()) {\n pauseAndPlay(id02);\n } else if (id20.getText().isEmpty()) {\n pauseAndPlay(id20);\n }\n }\n }",
"public void win() {\n displayErrorMessage(\"You Win!\");\n if(controller.aiGame && !controller.loggedIn()){\n controller.switchToLogin();\n }\n else\n controller.switchToLobby();\n }",
"public void checkWin() \n {\n if (lWin ==8)\n {\n Greenfoot.playSound(\"finalWin.wav\");\n setLocation(getWorld().getWidth() / 2, getWorld().getHeight() / 2);\n setImage(win);\n Greenfoot.stop();\n \n \n }\n \n if (rWin ==8)\n {\n \n \n Greenfoot.playSound(\"finalWin.wav\");\n setLocation(getWorld().getWidth() / 2, getWorld().getHeight() / 2);\n setImage(win);\n \n Greenfoot.stop();\n \n \n \n \n \n }\n \n }",
"public static void twoPlayers() {\r\n\t\tint[][] board = createBoard();\r\n\t\tshowBoard(board);\r\n\r\n\t\tSystem.out.println(\"Welcome to the 2-player Checkers Game !\");\r\n\r\n\t\tboolean oppGameOver = false;\r\n\t\twhile (!gameOver(board, RED) & !oppGameOver) {\r\n\t\t\tSystem.out.println(\"\\nRED's turn\");\r\n\t\t\tboard = getPlayerFullMove(board, RED);\r\n\r\n\t\t\toppGameOver = gameOver(board, BLUE);\r\n\t\t\tif (!oppGameOver) {\r\n\t\t\t\tSystem.out.println(\"\\nBLUE's turn\");\r\n\t\t\t\tboard = getPlayerFullMove(board, BLUE);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint winner = 0;\r\n\t\tif (playerDiscs(board, RED).length == 0 | playerDiscs(board, BLUE).length == 0)\r\n\t\t\twinner = findTheLeader(board);\r\n\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"\\t ************************************\");\r\n\t\tif (winner == RED)\r\n\t\t\tSystem.out.println(\"\\t * The red player is the winner !! *\");\r\n\t\telse if (winner == BLUE)\r\n\t\t\tSystem.out.println(\"\\t * The blue player is the winner !! *\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"\\t * DRAW !! *\");\r\n\t\tSystem.out.println(\"\\t ************************************\");\r\n\t}",
"public static void main(String[] args){\n //welcome message\n System.out.println(\" ☺ Welcome to Nora's Tic-Tac-Toe program! ☺ \");\n System.out.println(\" \");\n System.out.println(\"In this game, the player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.\");\n System.out.println(\"You and your friends will enter numbers(1-9) as shown below, which refers to each empty sqaure.\");\n printGameBoard(gameBoard1to9);\n System.out.println(\" \");\n System.out.println(\"KEEP IN MIND:\");\n System.out.println(\"✰ Player 0 always owns mark 'O'\");\n System.out.println(\"✰ Player 1 always owns mark 'X'\");\n System.out.println(\"✰ If you want to continue playing, please don't switch players.\");\n System.out.println(\"\");\n System.out.println(\"Now, enjoy your game!\");\n System.out.println(\"\");\n System.out.println(\"━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\");\n System.out.println(\"\");\n \n activateGame(gameBoard);\n while(playAgain){ //re-activate the game as long as the userwants to play it agian.\n playAgain = false;\n activateGame(gameBoard);\n }\n System.out.println(\"\");\n \n //Game Summary\n System.out.println(\"------------------------------------------------------------------\");\n System.out.println(\"Check out your GAME RECORD!\");\n System.out.println(\"\");\n System.out.println(\"✱ Your guys has played for \"+countRound+\" round(s).\" );\n System.out.println(\"✱ Player 0 wins for \"+player0win+ \" round(s).\");\n System.out.println(\"✱ Player 1 wins for \"+player1win+ \" round(s).\");\n System.out.println(\"\");\n if (player0win > player1win){\n System.out.println(\"❀❀❀ Congratulations to our ultimate winner: player 0! ❀❀❀\");\n }else if (player1win > player0win){\n System.out.println(\"❀❀❀ Congratulations to our ultimate winner: player 1! ❀❀❀\");\n }else{\n System.out.println(\"Good news! You're all winners! ( • ̀ω•́ )✧\");\n }\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n \n }",
"public void displayMessage()\n{\n // game should continue\n if ( gameStatus == CONTINUE )\n showStatus( \"Roll again.\" );\n\n // game won or lost\n else {\n\n if ( gameStatus == WON )\n showStatus( \"Player wins. \" +\n \"Click Roll Dice to play again.\" );\n else \n showStatus( \"Player loses. \" + \n \"Click Roll Dice to play again.\" );\n \n // next roll is first roll of new game\n firstRoll = true; \n }\n}",
"@Override\n public void play(){\n \n // while neither player is dead\n while (continueGame()) {\n \n // both player and cpu draw a card and display the card\n player.play();\n System.out.printf(\"%s has drawn %s \\n\", player.getPlayerID(), \n player.getCard());\n cpu.play();\n System.out.printf(\"%s has drawn %s \\n\", cpu.getPlayerID(), \n cpu.getCard());\n \n // checks if the player wins the round\n if (winRound(player, cpu)) {\n // adds the cards to the gamedeck then the game deck to the\n // player deck\n winner(player, cpu, gameDeck);\n player.getWinningsPile().addCards(gameDeck.showCards().subList(0\n , gameDeck.getSize()));\n // empties the game deck\n gameDeck.showCards().clear();\n System.out.printf(\"%s wins round\\n\", player.getPlayerID());\n } else if (winRound(cpu, player)) { // if the cpu wins\n // adds the cards to the gamedeck then the game deck to the\n // cpu deck\n winner(cpu, player, gameDeck);\n cpu.getWinningsPile().addCards(gameDeck.showCards().subList(0, \n gameDeck.getSize()));\n // empties the game deck\n gameDeck.showCards().clear();\n System.out.println(\"CPU wins round\");\n } else {\n // if its a draw, check to see if either the cpu or player is\n // dying, if so, dont add the card to the gameDeck\n if (!(player.isDying())) {\n gameDeck.addCard(player.getCard());\n player.clearCard();\n }\n if (!(cpu.isDying())) {\n gameDeck.addCard(cpu.getCard());\n cpu.clearCard();\n }\n System.out.println(\"DRAW\");\n }\n // shows the current status of the game\n System.out.printf(\"%s's deck: %d winnings: %d \\n\", \n player.getPlayerID(), player.getDeck().getSize(), \n player.getWinningsPile().getSize());\n System.out.printf(\"CPU deck: %d winnings: %d \\n\", \n cpu.getDeck().getSize(), \n cpu.getWinningsPile().getSize());\n System.out.println(\"Press Enter to go to the next round\");\n in.nextLine();\n }\n //display the winner\n declareWinner();\n }",
"public void tellPlayerResult(int winner) {\n\t}",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int[][] board = {{4,4,4},{4,4,4},{4,4,4}};\n int player = 1;\n while (whoWin(board) == -1) {\n displayBoard(board);\n System.out.printf(\"Enter a row (0, 1, or 2) for player %c: \", (player == 0) ? 'O' : 'X');\n int row = input.nextInt();\n System.out.printf(\"Enter a column (0, 1, or 2) for player %c: \", (player == 0) ? 'O' : 'X');\n int column = input.nextInt();\n board[row][column] = player;\n player = (player + 1) % 2;\n }\n displayBoard(board);\n player = whoWin(board);\n if (player == 1) {\n System.out.println(\"X player won\");\n }\n else if (player == 0) {\n System.out.println(\"O player won\");\n }\n else {\n System.out.println(\"It is a draw\");\n }\n }",
"@Override\n\tpublic void win() {\n\t\t\n\t\tfround[fighter1]++;\n\t fplatz[fighter1]=Math.round((float)fplatz[fighter1]/2); \n\t \n\t\tnextRound();\n\t}",
"private boolean draw(Board board)\n {\n return full(board) && !computerWin(board) && playerWin(board);\n }",
"private void scoregain() {\n \tif (playerturn%2==0) {\n \tscoreplayer1 = scoreplayer1+2;}\n if(playerturn%2==1) {\n \tscoreplayer2 = scoreplayer2+2;\n }\n }",
"@Override\n public boolean gameOver() {\n return player1Wins() || player2Wins();\n }",
"public static void main(String[] args) {\n\n\n while (gameStatus) {\n if(checkRowGameWin(1) || checkColumnGameWin(1) || checkRowGameWin(2) || checkColumnGameWin(2)){\n System.out.println(\"hurray!!!!! \"+ Winplayer + \" win the game\");\n gameStatus = false;\n }else{\n getinput();\n }\n\n\n }\n }",
"private synchronized void sendAdvance(){\r\n\t\t\tfor(PrintWriter p : players){\r\n\t\t\t\tif(p != null){\r\n\t\t\t\t\tp.println(\"5\");\r\n\t\t\t\t\tp.println(Integer.toString(x));\r\n\t\t\t\t\tp.println(Integer.toString(y));\r\n\t\t\t\t\tp.flush();\r\n\t\t\t\t}else{\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\t\r\n\t\t\t}\t\r\n\t\t}",
"private void NextTurn() {\n\t\tTextView tvStatus = (TextView) findViewById(R.id.tvStatus);\n\t\t\n\t\t\tif(player_1){\n\t\t\t\tplayer_1 = false;\n\t\t\t\tif(players == 1){ \n\t\t\t\t\ttvStatus.setText(\"Android Nole's turn\");\n\t\t\t\t\tLog.i(\"TEST\",\"Android turn\");\n\t\t\t\t\tAndroidTurn();\n\t\t\t\t}else{\n\t\t\t\t\ttvStatus.setText(\"Nole's turn\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tplayer_1 = true;\n\t\t\t\ttvStatus.setText(\"Gator's turn\");\n\t\t\t}\n\t\t}",
"public static void gameOn() {\n String player1 = \"Odd number player\", player2 = \"Even number player\";\n int numberOfPlayer;\n\n System.out.print(\"\\n\\t Start!\\n\");\n\n //Print the board that is initialized by clearBoard(); in main function\n printBoard();\n\n System.out.print(\"\\nHow many players?: \");\n numberOfPlayer = input.nextInt();\n // If the user enters number other than 1 and 2, this while loop will ask the user to input just 1 or 2\n while (numberOfPlayer < 1 || numberOfPlayer > 2) {\n System.out.print(\"Invalid amount of players. Please enter 1 or 2: \");\n numberOfPlayer = input.nextInt();\n }\n\n // If 1 is entered, the user will be playing with the computer\n if (numberOfPlayer == 1) {\n do {\n turnOfComp();\n if (isBingo()) {\n printLineBingo();\n System.out.print(\" The Computer has WON!\");\n break;\n } else if (isFull()) {\n System.out.print(\"\\nIt's a DRAW! Game Over!\");\n break;\n }\n\n turnOfEven(player2);\n if (isBingo()) {\n printLineBingo();\n System.out.print(\" You have WON!\");\n break;\n }\n } while (isBingo() == false);\n } // If 2 is entered, there will be two players\n else if (numberOfPlayer == 2) {\n do {\n turnOfOdd(player1);\n if (isBingo()) {\n printLineBingo();\n System.out.print(\" \" + player1 + \" has WON!\");\n break;\n } else if (isFull()) {\n System.out.print(\"\\nIt's a DRAW! Game Over!\");\n break;\n }\n\n turnOfEven(player2);\n if (isBingo()) {\n printLineBingo();\n System.out.print(\" \" + player2 + \" has WON!\");\n break;\n }\n } while (isBingo() == false);\n }\n }",
"@Override\n\tpublic void win() {\n\t\t\n\t}",
"public String win() {\r\n\t\tint blackCount = 0;\r\n\t\tint whiteCount = 0;\r\n\t\tfor (int i=0; i<piece.size(); i++) {\r\n\t\t\tif (piece.get(order[i]).chessPlayer.equals(\"black\")) {\r\n\t\t\t\tblackCount++;\r\n\t\t\t} else if (piece.get(order[i]).chessPlayer.equals(\"white\")) {\r\n\t\t\t\twhiteCount++;\r\n\t\t\t} else continue;\r\n\t\t}\r\n\t\tif (blackCount == 0) {\r\n\t\t\treturn \"white\";\r\n\t\t} else if (whiteCount == 0) {\r\n\t\t\treturn \"black\";\r\n\t\t} else return null;\r\n\t}",
"void win() {\n\t\t_money += _bet * 2;\n\t\t_wins++;\n\t\tclearHand();\n\t\t_bet = 0;\n\t}",
"private GameResponse playNextRound() {\n if(gameResponse.getPoint() == 0) {\n gameResponse.setMessage(null);\n roll();\n gameResponse.setPoint(currentRoll);\n if (WINS.contains(gameResponse.getPoint())) {\n completeRound(GameEnum.WON);\n return gameResponse;\n } else if (LOSES.contains(gameResponse.getPoint())) {\n completeRound(GameEnum.LOST);\n return gameResponse;\n }\n } else {\n roll();\n if (currentRoll == gameResponse.getPoint()) {\n completeRound(GameEnum.WON);\n return gameResponse;\n } else if (currentRoll == 7) {\n completeRound(GameEnum.LOST);\n return gameResponse;\n }\n }\n return gameResponse;\n }",
"public boolean playerWonGame(Player player) {\n if (playerWonGameWithDiagonalLine(player) || playerWonGameWithHorizontalLine(player)\n || playerWonGameWithVerticalLine(player)) {\n return true; \n }\n return false; \n \n }",
"private boolean player1Wins() {\n\n boolean p1inTriangle = false;\n int target[] = new int[]{53, 61, 62, 69, 70, 71, 77, 78, 79, 80};\n for (int i : target) { \n if (board[i] == 0)\n return false;\n if (board[i] == 1)\n p1inTriangle = true;\n }\n\n return p1inTriangle;\n }",
"private void playSmallMatch() {\n boolean haveSmallMatchWinner = false;\n boardOperationsAPI.printBoard();\n while (!haveSmallMatchWinner) {\n System.out.println(messageProvider.provideMessage(\"provideMove\"));\n System.out.println(gameInformation.getPlayerName());\n MoveCoordinates validMove = validateMoveAPI.getValidMove();\n if(validMove==null){\n messageProvider.provideMessage(\"goodbye\");\n System.exit(0);\n }\n boolean winner = boardOperationsAPI.makeMove(validMove);\n if (winner) {\n gameInformation.addScore();\n printRoundWinner();\n showGameScore();\n gameInformation.nextRound();\n gameInformation.setMovesToZeroAfterSmallMatch();\n\n haveSmallMatchWinner = true;\n if (gameInformation.getScore() == 6) {\n gameInformation.setWinner();\n }\n }\n gameInformation.increaseMove();\n if (gameInformation.getMovesNumber() == boardOperationsAPI.boardSize()) {\n gameInformation.draw();\n messageProvider.provideMessage(\"drawInRound\");\n showGameScore();\n haveSmallMatchWinner=true;\n }\n gameInformation.changePlayer();\n }\n boardOperationsAPI.clear();\n }",
"private void winConditionCheck()\r\n {\r\n boolean win;\r\n char mark;\r\n for(int row = 0; row < 3; row++)\r\n {\r\n win = true;\r\n mark = buttons[row][0].getText().charAt(0);\r\n if(mark != ' ')\r\n {\r\n for(int column = 0; column < 3; column++)\r\n {\r\n if(mark != buttons[row][column].getText().charAt(0))\r\n {\r\n win = false;\r\n break;\r\n }\r\n }\r\n if(win)\r\n {\r\n gameEnd(mark);\r\n }\r\n }\r\n }\r\n for(int column = 0; column < 3; column++)\r\n {\r\n win = true;\r\n mark = buttons[0][column].getText().charAt(0);\r\n if(mark != ' ')\r\n {\r\n for(int row = 0; row < 3; row++)\r\n {\r\n if(mark != buttons[row][column].getText().charAt(0))\r\n {\r\n win = false;\r\n }\r\n }\r\n if(win)\r\n {\r\n gameEnd(mark);\r\n }\r\n }\r\n }\r\n win = false;\r\n mark = buttons[0][0].getText().charAt(0);\r\n if(mark != ' ')\r\n {\r\n for(int i = 0; i < 3; i++)\r\n {\r\n if(buttons[i][i].getText().charAt(0) != mark)\r\n {\r\n win = false;\r\n break;\r\n }\r\n else\r\n {\r\n win = true;\r\n }\r\n }\r\n if(win)\r\n {\r\n gameEnd(mark);\r\n }\r\n }\r\n mark = buttons[1][1].getText().charAt(0);\r\n if((buttons[0][2].getText().charAt(0) == buttons[1][1].getText().charAt(0)) && (buttons[1][1].getText().charAt(0) == buttons[2][0].getText().charAt(0)) && (buttons[1][1].getText().charAt(0) != ' '))\r\n {\r\n gameEnd(mark);\r\n }\r\n }",
"public void win()\r\n\t{\r\n\t\tmWon = true;\r\n\t}",
"public boolean playerOneWin()\n\t{\n\t\tif( (board[ 1 ] == \"X\") && (board[ 2 ] == \"X\") && (board[ 3 ] == \"X\") )\n\t\t{\n\t\t\treturn true;\n\t\t} // end of if( (board[ 1 ] == \"X\") && (board[ 2 ] == \"X\") && (board[ 3 ] == \"X\") )\n\t\t\n\t\telse if( (board[ 4 ] == \"X\") && (board[ 5 ] == \"X\") && (board[ 6 ] == \"X\") )\n\t\t{\n\t\t\treturn true;\n\t\t} // end of if( (board[ 4 ] == \"X\") && (board[ 5 ] == \"X\") && (board[ 6 ] == \"X\") ) \n\t\t\n\t\telse if( (board[ 7 ] == \"X\") && (board[ 8 ] == \"X\") && (board[ 9 ] == \"X\") )\n\t\t{\n\t\t\treturn true;\n\t\t} // end of if( (board[ 7 ] == \"X\") && (board[ 8 ] == \"X\") && (board[ 9 ] == \"X\") )\n\t\t\n\t\telse if( (board[ 1 ] == \"X\") && (board[ 4 ] == \"X\") && (board[ 7 ] == \"X\") )\n\t\t{\n\t\t\treturn true;\n\t\t} // end of if( (board[ 1 ] == \"X\") && (board[ 4 ] == \"X\") && (board[ 7 ] == \"X\") )\n\t\t\n\t\telse if( (board[ 2 ] == \"X\") && (board[ 5 ] == \"X\") && (board[ 8 ] == \"X\") )\n\t\t{\n\t\t\treturn true;\n\t\t} // end of if( (board[ 2 ] == \"X\") && (board[ 5 ] == \"X\") && (board[ 8 ] == \"X\") )\n\t\t\n\t\telse if( (board[ 3 ] == \"X\") && (board[ 6 ] == \"X\") && (board[ 9 ] == \"X\") )\n\t\t{\n\t\t\treturn true;\n\t\t} // end of if( (board[ 3 ] == \"X\") && (board[ 6 ] == \"X\") && (board[ 9 ] == \"X\") )\n\t\t\n\t\telse if( (board[ 1 ] == \"X\") && (board[ 5 ] == \"X\") && (board[ 9 ] == \"X\") )\n\t\t{\n\t\t\treturn true;\n\t\t}// end of if( (board[ 1 ] == \"X\") && (board[ 5 ] == \"X\") && (board[ 9 ] == \"X\") )\n\t\t\n\t\telse if( (board[ 7 ] == \"X\") && (board[ 5 ] == \"X\") && (board[ 9 ] == \"X\") )\n\t\t{\n\t\t\treturn true;\n\t\t} // end of if( (board[ 7 ] == \"X\") && (board[ 5 ] == \"X\") && (board[ 9 ] == \"X\") )\n\t\t\n\t\treturn false;\n\t}",
"private void doMatch() {\n // Remember how many games in this session\n mGameCounter++;\n\n PebbleDictionary resultDict = new PebbleDictionary();\n\n switch (mChoice) {\n case Keys.CHOICE_ROCK:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n case Keys.CHOICE_PAPER:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN); // Inform Pebble of opposite result\n break;\n case Keys.CHOICE_SCISSORS:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n }\n break;\n case Keys.CHOICE_PAPER:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n case Keys.CHOICE_PAPER:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n case Keys.CHOICE_SCISSORS:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN);\n break;\n }\n break;\n case Keys.CHOICE_SCISSORS:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN);\n break;\n case Keys.CHOICE_PAPER:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n case Keys.CHOICE_SCISSORS:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n }\n break;\n }\n\n // Inform Pebble of result\n PebbleKit.sendDataToPebble(getApplicationContext(), APP_UUID, resultDict);\n\n // Finally reset both\n mChoice = Keys.CHOICE_WAITING;\n mP2Choice = Keys.CHOICE_WAITING;\n\n // Leave announcement for 5 seconds\n mHandler.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n updateUI();\n }\n\n }, 5000);\n }",
"public static void win()\n\t{\n\t\tGame.setMoney(Game.getMoney()+bet);\n\t\tremainingMoneyN.setText(String.valueOf(Game.getMoney()));\n\t\tbet=0;\n\t\ttfBet.setText(\"0\");\n\t\tif(Game.getMoney()>Game.getHighScore())\n\t\t{\n\t\t\tGame.setHighScore(Game.getMoney());\n\t\t\tlblHighScore.setText(String.valueOf(Game.getHighScore()));\n\t\t}\n\t\tlblUpdate.setText(\"You win!\");\n\n\t}",
"private boolean player2Wins() {\n\n boolean p2inTriangle = false;\n int target[] = new int[]{0, 1, 2, 3, 9, 10, 11, 18, 19, 27};\n for (int i : target) {\n if (board[i] == 0)\n return false;\n if (board[i] == 2)\n p2inTriangle = true;\n }\n\n return p2inTriangle;\n }",
"private void continueGame() {\n System.out.println(\"\\n\" + \"Do you want to play more games or quit?\\n\" + \"1. Lotto\\n\" + \"2. Small Lotto\\n\" + \"3. Quit\");\n input = scanner.next();\n changeGame();\n }",
"@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\tif(match.getMatchStatus() != MatchStatus.ENDED) {\r\n\t\t\t\t\t\t\tmatch.simMatch(); \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (p1==match.getWinner()) { \r\n\t\t\t\t\t\t\t\tPlayer1.setForeground(Color.GREEN);\r\n\t\t\t\t\t\t\t\tPlayer2.setForeground(Color.red); \r\n\t\t\t\t\t\t\t}else { \r\n\t\t\t\t\t\t\t\tPlayer2.setForeground(Color.green);\r\n\t\t\t\t\t\t\t\tPlayer1.setForeground(Color.red); \r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\tmatchStatus.setText(\" Ended\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}",
"public void advanceGame() {\n\t\tthis.status = Status.Active;\n\t\tthis.currentSuggestion = null;\n\t\tfor(User u : this.players) {\n\t\t\tu.availableActions.remove(ACTION.Wait);\n\t\t\tu.availableActions.remove(ACTION.Disprove);\n\t\t}\n\t\t\n\t\t// Next player can always move\n\t\tUser nextPlayer = null;\n\t\tdo {\n\t\t\tnextPlayer = getFollowingPlayer(this, this.getCurrentPlayer());\n\t\t\tif (nextPlayer.isActive) {\n\t\t\t\tnextPlayer.availableActions.add(ACTION.Move);\n\t\t\t\tif (this.board.getLocation(nextPlayer.character).isRoom) {\n\t\t\t\t\tnextPlayer.availableActions.add(ACTION.Accuse);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcurrentMove++;\n\t\t} while (!nextPlayer.isActive);\n\t\t\n\t\tif (activeUserCount(this) == 1) {\n\t\t\t// Last player remaining is the winner (by default)\n\t\t\tthis.status = Status.Complete;\n\t\t\tmessages.add(String.format(\"[ %s ] has won the game (by default)!\", nextPlayer.name));\n\t\t}\n\t}",
"private void checkForWin()\n\t\t\t{\n\t\t\t\tfor (j = 0; j < 8; ++j)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (win[j] == 3)\n\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tbugflag = true;\n\t\t\t\t\t\t\t\tresult = j;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tIntent it1 = new Intent(Main.this, Result.class);\n\t\t\t\t\t\t\t\tBundle b = new Bundle();\n\t\t\t\t\t\t\t\tb.putString(\"result\",\n\t\t\t\t\t\t\t\t\t\t\"You were lucky this time \" + name\n\t\t\t\t\t\t\t\t\t\t\t\t+ \". You won!\");\n\t\t\t\t\t\t\t\tit1.putExtras(b);\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\tstartActivity(it1);\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t}",
"public void next_player() {\n\t\tthis.nb_turn++;\n\t\tthis.player_turn++;\n\t\tthis.same_dice_in_a_row = 0;\n\t\tif (player_turn == this.players.size()) {\n\t\t\tthis.player_turn = 0;\n\t\t}\n\n\t\tif (get_player_from_turn().get_surrend()) {\n\t\t\tthis.nb_turn--;\n\t\t\tif (get_player_in_game() > 0) {\n\t\t\t\tthis.next_player();\n\t\t\t}\n\t\t}\n\t}",
"private void playGame() {\n drawBricks();\n for (int i = 1; i <= NTURNS; i++) {\n setBallSpeed();\n GOval ball = drawBall();\n paddle = drawPaddle();\n showLabel(\"ROUND \" + i, Color.ORANGE);\n waitForClick();\n playRound(ball);\n }\n showLabel(\"GAME OVER\", Color.BLACK);\n }",
"public void checkWinner(){\n \n if ((board[0][0] == 'X' && board[0][1] == 'X' && board[0][2] == 'X')||(board[1][0] == 'X' && board[1][1] == 'X' && board[1][2] == 'X')||(board[2][0] == 'X' && board[2][1] == 'X' && board[2][2] == 'X')){\n winner();\n }\n else if ((board[0][0] == 'X' && board[1][0] == 'X' && board[2][0] == 'X')||(board[0][1] == 'X' && board[1][1] == 'X' && board[2][1] == 'X')||(board[0][2] == 'X' && board[1][2] == 'X' && board[2][2] == 'X')){\n winner();\n }\n else if ((board[0][0] == 'X' && board[1][1] == 'X' && board[2][2] == 'X')||(board[0][2] == 'X' && board[1][1] == 'X' && board[2][0] == 'X')){\n winner();\n }\n else if ((board[0][0] == 'O' && board[0][1] == 'O' && board[0][2] == 'O')||(board[1][0] == 'O' && board[1][1] == 'O' && board[1][2] == 'O')||(board[2][0] == 'O' && board[2][1] == 'O' && board[2][2] == 'O')){\n winner();\n }\n else if ((board[0][0] == 'O' && board[1][0] == 'O' && board[2][0] == 'O')||(board[0][1] == 'O' && board[1][1] == 'O' && board[2][1] == 'O')||(board[0][2] == 'O' && board[1][2] == 'O' && board[2][2] == 'O')){\n winner();\n }\n else if ((board[0][0] == 'O' && board[1][1] == 'O' && board[2][2] == 'O')||(board[0][2] == 'O' && board[1][1] == 'O' && board[2][0] == 'O')){\n winner();\n }\n \n }",
"public final boolean checkForDraw() {\r\n boolean result = false;\r\n String player = \"\";\r\n \r\n for (Rail rail : rails) {\r\n if (rail.isWinner()) {\r\n return false;\r\n }\r\n }\r\n \r\n if (tilesPlayed == 9) {\r\n draws++;\r\n // window.getStatusMsg().setText(DRAW_MSG); \r\n result = true;\r\n }\r\n \r\n return result;\r\n }",
"public void Tapped(View view) {\r\n\r\n ImageView v = (ImageView) view;\r\n TextView v1=(TextView)findViewById(R.id.textView4);\r\n TextView v2=(TextView)findViewById(R.id.textView5);\r\n\r\n MediaPlayer m1=MediaPlayer.create(this,R.raw.win);\r\n MediaPlayer m2=MediaPlayer.create(this,R.raw.moves);\r\n\r\n\r\n int tag = Integer.parseInt(v.getTag().toString());\r\n\r\n if (GameStatus[tag] == 2) {\r\n v.setTranslationY(-2000f);\r\n GameStatus[tag] = counter;\r\n if (counter == 0) {\r\n counter = 1;\r\n v.setImageResource(R.drawable.yellow);\r\n } else {\r\n counter = 0;\r\n v.setImageResource(R.drawable.red);\r\n }\r\n\r\n v.animate().translationYBy(2000f).rotation(3600).setDuration(200);\r\n m2.start();\r\n\r\n //Here Detecting that a player has won\r\n for (int[] winningPosition : WinningPosition) {\r\n if (GameStatus[winningPosition[0]] == GameStatus[winningPosition[1]] && GameStatus[winningPosition[1]] == GameStatus[winningPosition[2]] && GameStatus[winningPosition[0]] != 2) {\r\n //Dection for winner will be done.\r\n m1.start();\r\n GameStatus = new int[]{3, 3, 3, 3, 3, 3, 3, 3, 3};\r\n if (counter == 1) {\r\n Toast.makeText(this, \"PONITS!! Player 1\", Toast.LENGTH_SHORT).show();\r\n p1++;\r\n String score=String.valueOf(p1);\r\n v1.setText(score);\r\n } else {\r\n Toast.makeText(this, \"POINTS!! Player 2\", Toast.LENGTH_SHORT).show();\r\n p2++;\r\n String score1=String.valueOf(p2);\r\n\r\n v2.setText(\" \" + score1);\r\n }\r\n\r\n }\r\n\r\n }\r\n }\r\n else if(GameStatus[tag] == 3){\r\n Toast.makeText(this, \"Match Over!! ReDraw the Board!!\", Toast.LENGTH_LONG).show();\r\n }\r\n else\r\n {\r\n Toast.makeText(this, \"Invalid Move!!\", Toast.LENGTH_SHORT).show();\r\n MediaPlayer m =MediaPlayer.create(this,R.raw.invalid);\r\n m.start();\r\n }\r\n }",
"private void win() {\r\n Player winner = board.win();\r\n if (winner == null)\r\n return;\r\n\r\n int winner_number;\r\n Label winner_info;\r\n Label loser_info;\r\n if (winner.getId() == 'U') {\r\n winner_info = player1info;\r\n loser_info = player2info;\r\n winner_number = 1;\r\n }\r\n else {\r\n winner_info = player2info;\r\n loser_info = player1info;\r\n winner_number = 2;\r\n }\r\n\r\n winner_info.setFont(new Font(\"Segoe UI Semibold\", 20));\r\n winner_info.setText(\"You Won!!\");\r\n loser_info.setFont(new Font(\"Segoe UI Semibold\", 20));\r\n loser_info.setText(\"You Lost :)\");\r\n\r\n for (int i = 0; i < 17; ++i)\r\n for (int j = 0; j < 17; j++) {\r\n String id = \"#cell\" + ((i < 10) ? \"0\" + i : i) + ((j < 10) ? \"0\" + j : j);\r\n AnchorPane cell = (AnchorPane) (play.getScene().lookup(id));\r\n // remove functionality\r\n cell.setOnMouseClicked(null);\r\n cell.setOnMouseEntered(null);\r\n cell.setOnMouseExited(null);\r\n if (!cup_is_on) {\r\n if (i == 6) {\r\n if (j == 6) {\r\n cell.setStyle(\"-fx-background-color: mediumaquamarine\");\r\n Label label = new Label(\"try\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n else if (j == 8) {\r\n cell.setStyle(\"-fx-background-color: mediumaquamarine\");\r\n Label label = new Label(\"again?\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n }\r\n else if(i == 8) {\r\n if (j == 6) {\r\n cell.setStyle(\"-fx-background-color: limegreen\");\r\n Label label = new Label(\"YES\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n label.setOnMouseClicked(event -> {\r\n try {\r\n gotoNewGame(new Player(board.getPlayer1().getName(), 'U', 10),\r\n new Player(board.getPlayer2().getName(), 'D', 10));\r\n } catch (IOException ioException) { ioException.printStackTrace(); }\r\n });\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n else if (j == 8) {\r\n cell.setStyle(\"-fx-background-color: red\");\r\n Label label = new Label(\"NO\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n label.setOnMouseClicked(event -> {\r\n try { gotoGameModes(); } catch (IOException ioException) {\r\n ioException.printStackTrace();\r\n }\r\n });\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (cup_is_on)\r\n cupOptimizer(winner_number);\r\n }",
"public void youWin();",
"@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tif(match.getMatchStatus() != MatchStatus.ENDED) {\r\n\t\t\t\tmatch.simMatch(); \r\n\t\t\t\t\r\n\t\t\t\tif (p1==match.getWinner()) { \r\n\t\t\t\t\tPlayer1.setForeground(Color.GREEN);\r\n\t\t\t\t\tPlayer2.setForeground(Color.red); \r\n\t\t\t\t}else { \r\n\t\t\t\t\tPlayer2.setForeground(Color.green);\r\n\t\t\t\t\tPlayer1.setForeground(Color.red); \r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tmatchStatus.setText(\" Ended\");\r\n\t\t\t\t}\r\n\t\t\t\t}",
"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 }",
"private void checkWinner() {\n if (btn_0.getText() == \"X\" && btn_1.getText() == \"X\" && btn_2.getText() == \"X\") {\n Toast.makeText(MainActivity.this, \"Player One Wins!!\", Toast.LENGTH_SHORT).show();\n disablingALLbuttons();\n player_1_score++;\n View color = this.getWindow().getDecorView();\n color.setBackgroundColor(blue);\n\n\n }\n if (btn_0.getText() == \"O\" && btn_1.getText() == \"O\" && btn_2.getText() == \"O\") {\n Toast.makeText(MainActivity.this, \"Player Two Wins!!\", Toast.LENGTH_SHORT).show();\n disablingALLbuttons();\n player_2_score++;\n View color = this.getWindow().getDecorView();\n color.setBackgroundColor(red);\n }\n\n// Second Row Checker Boxes 3 , 4 , 5\n if (btn_3.getText() == \"X\" && btn_4.getText() == \"X\" && btn_5.getText() == \"X\") {\n Toast.makeText(MainActivity.this, \"Player One Wins!!\", Toast.LENGTH_SHORT).show();\n disablingALLbuttons();\n player_1_score++;\n View color = this.getWindow().getDecorView();\n color.setBackgroundColor(blue);\n\n }\n if (btn_3.getText() == \"O\" && btn_4.getText() == \"O\" && btn_5.getText() == \"O\") {\n Toast.makeText(MainActivity.this, \"Player Two Wins!!\", Toast.LENGTH_SHORT).show();\n disablingALLbuttons();\n player_2_score++;\n View color = this.getWindow().getDecorView();\n color.setBackgroundColor(red);\n }\n\n// Third Row Checker Boxes 6, 7, 8\n if (btn_6.getText() == \"X\" && btn_7.getText() == \"X\" && btn_8.getText() == \"X\") {\n Toast.makeText(MainActivity.this, \"Player One Wins!!\", Toast.LENGTH_SHORT).show();\n disablingALLbuttons();\n player_1_score++;\n View color = this.getWindow().getDecorView();\n color.setBackgroundColor(blue);\n\n }\n if (btn_6.getText() == \"O\" && btn_7.getText() == \"O\" && btn_8.getText() == \"O\") {\n Toast.makeText(MainActivity.this, \"Player Two Wins!!\", Toast.LENGTH_SHORT).show();\n disablingALLbuttons();\n player_2_score++;\n View color = this.getWindow().getDecorView();\n color.setBackgroundColor(red);\n }\n\n// 1st Column Checker Boxes 0, 3, 6\n if (btn_0.getText() == \"X\" && btn_3.getText() == \"X\" && btn_6.getText() == \"X\") {\n Toast.makeText(MainActivity.this, \"Player One Wins!!\", Toast.LENGTH_SHORT).show();\n disablingALLbuttons();\n player_1_score++;\n View color = this.getWindow().getDecorView();\n color.setBackgroundColor(blue);\n }\n if (btn_0.getText() == \"O\" && btn_3.getText() == \"O\" && btn_6.getText() == \"O\") {\n Toast.makeText(MainActivity.this, \"Player Two Wins!!\", Toast.LENGTH_SHORT).show();\n disablingALLbuttons();\n player_2_score++;\n View color = this.getWindow().getDecorView();\n color.setBackgroundColor(red);\n }\n\n// Second Column Checker 1, 4, 7\n if (btn_1.getText() == \"X\" && btn_4.getText() == \"X\" && btn_7.getText() == \"X\") {\n Toast.makeText(MainActivity.this, \"Player One Wins!!\", Toast.LENGTH_SHORT).show();\n disablingALLbuttons();\n player_1_score++;\n View color = this.getWindow().getDecorView();\n color.setBackgroundColor(blue);\n }\n if (btn_1.getText() == \"O\" && btn_4.getText() == \"O\" && btn_7.getText() == \"O\") {\n Toast.makeText(MainActivity.this, \"Player Two Wins!!\", Toast.LENGTH_SHORT).show();\n disablingALLbuttons();\n player_2_score++;\n View color = this.getWindow().getDecorView();\n color.setBackgroundColor(red);\n }\n\n// Third Row Checker 2 , 5 , 8\n if (btn_2.getText() == \"X\" && btn_5.getText() == \"X\" && btn_8.getText() == \"X\") {\n Toast.makeText(MainActivity.this, \"Player One Wins!!\", Toast.LENGTH_SHORT).show();\n disablingALLbuttons();\n player_1_score++;\n View color = this.getWindow().getDecorView();\n color.setBackgroundColor(blue);\n }\n if (btn_2.getText() == \"O\" && btn_5.getText() == \"O\" && btn_8.getText() == \"O\") {\n Toast.makeText(MainActivity.this, \"Player Two Wins!!\", Toast.LENGTH_SHORT).show();\n disablingALLbuttons();\n player_2_score++;\n View color = this.getWindow().getDecorView();\n color.setBackgroundColor(red);\n }\n// First Diagonal Checker 0 , 4, 8\n if (btn_0.getText() == \"X\" && btn_4.getText() == \"X\" && btn_8.getText() == \"X\") {\n Toast.makeText(MainActivity.this, \"Player One Wins!!\", Toast.LENGTH_SHORT).show();\n disablingALLbuttons();\n player_1_score++;\n View color = this.getWindow().getDecorView();\n color.setBackgroundColor(blue);\n }\n if (btn_0.getText() == \"O\" && btn_4.getText() == \"O\" && btn_8.getText() == \"O\") {\n Toast.makeText(MainActivity.this, \"Player Two Wins!!\", Toast.LENGTH_SHORT).show();\n disablingALLbuttons();\n player_2_score++;\n View color = this.getWindow().getDecorView();\n color.setBackgroundColor(red);\n }\n// Second Diagonal Checker 2, 4, 6\n if (btn_2.getText() == \"X\" && btn_4.getText() == \"X\" && btn_6.getText() == \"X\") {\n Toast.makeText(MainActivity.this, \"Player One Wins!!\", Toast.LENGTH_SHORT).show();\n disablingALLbuttons();\n player_1_score++;\n View color = this.getWindow().getDecorView();\n color.setBackgroundColor(blue);\n }\n if (btn_2.getText() == \"O\" && btn_4.getText() == \"O\" && btn_6.getText() == \"O\") {\n Toast.makeText(MainActivity.this, \"Player Two Wins!!\", Toast.LENGTH_SHORT).show();\n disablingALLbuttons();\n player_2_score++;\n View color = this.getWindow().getDecorView();\n color.setBackgroundColor(red);\n }\n }",
"int checkGameWon(){\n int sx,sy,ex,ey;\n Point size = new Point();\n //get the size of current window\n Display display = getWindowManager().getDefaultDisplay();\n display.getSize(size);\n int width = size.x;\n int height = size.y;\n\n //win first row\n if (gameBoard[0] != 0 && gameBoard[0] == gameBoard[1] && gameBoard[0] == gameBoard[2]){\n sx = 0;\n sy =(int) (height * .30);\n\n ex = width;\n ey = (int) (height * .30);\n drawLine(sx,sy,ex,ey,imageView10);\n return gameBoard[0];\n }\n //win second row\n else if (gameBoard[3] != 0 && gameBoard[3] == gameBoard[4] && gameBoard[3] == gameBoard[5]){\n sx = 0;\n sy = (int) (height * .54);\n ex = width;\n ey = (int) (height * .54);\n\n drawLine(sx,sy,ex,ey,imageView10);\n return gameBoard[3];\n }\n //win third row\n else if (gameBoard[6] != 0 && gameBoard[6] == gameBoard[7] && gameBoard[6] == gameBoard[8]){\n sx = 0;\n sy = (int) (height * .77);\n\n ex = width;\n ey = (int) (height * .77);\n\n drawLine(sx,sy,ex,ey,imageView10);\n return gameBoard[6];\n }\n //win first colum\n else if (gameBoard[0] != 0 && gameBoard[0] == gameBoard[3] && gameBoard[0] == gameBoard[6]){\n sx = (int) (width *.15);\n sy = (int) (height * .18);\n ex = (int) (width * .15);\n ey=(int) (height * .89);\n\n drawLine(sx,sy,ex,sy,imageView10);\n return gameBoard[0];\n }\n //win second colum\n else if (gameBoard[1] != 0 && gameBoard[1] == gameBoard[4] && gameBoard[1] == gameBoard[7]){\n sx = (int) (width * .50);\n sy = (int) (height * .18);\n\n ex = (int) (width * .50);\n ey = (int) (height * .89);\n\n drawLine(sx,sy,ex,ey,imageView10);\n return gameBoard[1];\n }\n //win third colum\n else if (gameBoard[2] != 0 && gameBoard[2] == gameBoard[5] && gameBoard[2] == gameBoard[8]){\n sx = (int) (width * .85);\n sy = (int) (height * .18);\n\n ex = (int) (width * .85);\n ey = (int) (height * .89);\n\n drawLine(sx,sy,ex,ey,imageView10);\n return gameBoard[2];\n }\n else{\n //game not won\n return 0;\n }\n }",
"public boolean winner(){\n\t\treturn goals1 > goals2;\n\t}",
"private void checkForPlayerChance()\n\t\t\t{\n\t\t\t\tf = false;\n\t\t\t\tfor (j = 0; j < 8; ++j)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (win[j] == 2 && lose[j] == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tf = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\tif (f == false)\n\t\t\t\t\tj = 10;\n\n\t\t\t}",
"@Override\n public void onClick(View v) {\n if (!((Button) v).getText().toString().equals(\"\")) {\n return;\n }\n\n if (player1Turn) {\n ((Button) v).setText(\"X\");\n ((Button) v).setTextColor(this.getResources().getColor(R.color.darkpink));\n //textViewPlayer1.setTextColor(this.getResources().getColor(R.color.darkpink));\n\n } else {\n ((Button) v).setText(\"O\");\n //textViewPlayer2.setTextColor(this.getResources().getColor(R.color.appblue));\n ((Button) v).setTextColor(this.getResources().getColor(R.color.appblue));\n }\n\n //Increment Round Count\n roundCount++;\n\n //Implement Boolean, check for player win\n if (checkForWin()) {\n if (player1Turn) {\n player1Wins();\n } else {\n player2Wins();\n }\n\n //If 9 rounds are over we will know it is a draw\n } else if (roundCount == 9) {\n draw();\n } else {\n player1Turn = !player1Turn;\n }\n\n }",
"public void incrementWin(){wins += 1;}",
"public void win()\r\n {\n Actor win;\r\n win=getOneObjectAtOffset(0,0,Goal.class);\r\n if (win !=null)\r\n {\r\n World myWorld=getWorld();\r\n Congrats cong=new Congrats();\r\n myWorld.addObject(cong,myWorld.getWidth()/2,myWorld.getHeight()/2); //(Greenfoot,2013) \r\n \r\n Greenfoot.stop();\r\n Greenfoot.playSound(\"finish.wav\"); //(Sound-Ideas,2014)\r\n \r\n }\r\n }",
"@Override\n\tpublic boolean nextPlayersTurn(int currentTurn, int startRow, int startCol, int endRow, int endCol) {\n\t\tif (currentTurn % player2.turn == 0) {\n\t\t\tSystem.out.println(\"****YEE-HAW! ITS PLAYER 2'S TURN*****\");\n\t\t\texecuteMove(player2, player1, state.gameBoard, currentTurn, startRow, startCol, endRow, endCol);\n\t\t} else {\n\t\t\tSystem.out.println(\"****YEE-HAW! ITS PLAYER 2'S TURN*****\");\n\t\t\texecuteMove(player1, player2, state.gameBoard, currentTurn, startRow, startCol, endRow, endCol);\n\t\t}\n\t\treturn continueGame;\n}",
"public void youWin(Graphics g, int x, int y, int moves) {\n String youWin = \"YOU WIN!\";\n String finalMoves;\n String perfect = \"Perfect!\";\n \n g.setColor(Color.black);\n g.setFont(new Font(\"Helvetica\", Font.BOLD, 60));\n g.drawString(youWin, 77, 175);\n \n if (game.n==5) {\n finalMoves = \"Moves: \" + Integer.toString(moves) + \"/25\";\n g.setFont(new Font(\"Helvetica\", Font.BOLD, 25));\n if (moves==25) {\n g.drawString(perfect, 175, 260); \n } else {\n g.setColor(Color.red);\n }\n\n }\n else if (game.n==6) {\n finalMoves = \"Moves: \" + Integer.toString(moves) + \"/36\";\n g.setFont(new Font(\"Helvetica\", Font.BOLD, 25));\n if (moves==36) {\n g.drawString(perfect, 175, 260);\n } \n else {\n g.setColor(Color.red);\n }\n }\n\n else {\n finalMoves = \"Moves: \" + Integer.toString(moves) + \"/49\";\n g.setFont(new Font(\"Helvetica\", Font.BOLD, 25));\n if (moves==49) {\n g.drawString(perfect, 175, 260);\n }\n else {\n g.setColor(Color.red);\n }\n\n }\n g.setFont(new Font(\"Helvetica\", Font.BOLD, 40));\n g.drawString(finalMoves, 100, 225);\n }",
"public boolean isWin(Player player, Point p) {\n if (p.getX() == 0 && p.getY() == 0) {\n return false;\n }\n if (player == P1) {\n if (p.getY() >= 9) {\n winner = P1;\n return true;\n }\n return false;\n }\n else {\n if (p.getY() <= 1) {\n winner = P2;\n return true;\n }\n return false;\n }\n }",
"private boolean checkPlayerOneWin()\n {\n boolean playerOneWin = false;\n \n if( board[0][0] == \"X\" && board[0][1] == \"X\" && board[0][2] == \"X\" )\n {\n playerOneWin = true;\n }\n else if( board[1][0] == \"X\" && board[1][1] == \"X\" && board[1][2] == \"X\" )\n {\n playerOneWin = true;\n }\n else if( board[2][0] == \"X\" && board[2][1] == \"X\" && board[2][2] == \"X\" )\n {\n playerOneWin = true;\n }\n else if( board[0][0] == \"X\" && board[1][0] == \"X\" && board[2][0] == \"X\" )\n {\n playerOneWin = true;\n }\n else if( board[0][1] == \"X\" && board[1][1] == \"X\" && board[2][1] == \"X\" )\n {\n playerOneWin = true;\n }\n else if( board[2][0] == \"X\" && board[2][1] == \"X\" && board[2][2] == \"X\" )\n {\n playerOneWin = true;\n }\n else if( board[0][0] == \"X\" && board[1][1] == \"X\" && board[2][2] == \"X\" )\n {\n playerOneWin = true;\n }\n else if( board[0][2] == \"X\" && board[1][1] == \"X\" && board[2][0] == \"X\" )\n {\n playerOneWin = true;\n }\n \n return playerOneWin;\n }",
"private void win() throws IOException {\n // get the color who wins\n int color = fromServer.readInt();\n\n if(color == this.color){\n playSound(WIN_SOUND);\n setMsgText(\"You win!\");\n } else if (color == this.opponentColor){\n // opponent wins\n setMsgText(\"You lose.\");\n } else {\n playSound(WIN_SOUND);\n // if the client is a viewer\n if(color == BLACK){\n setMsgText(\"BLACK wins!\");\n }else{\n setMsgText(\"WHITE wins!\");\n }\n }\n\n // end game\n endGame();\n }"
] |
[
"0.7276277",
"0.7216513",
"0.7052808",
"0.69825065",
"0.6963451",
"0.69589496",
"0.69589156",
"0.6954501",
"0.6951083",
"0.6899616",
"0.6895147",
"0.6802646",
"0.6798887",
"0.67905676",
"0.67817193",
"0.675566",
"0.66903824",
"0.6687427",
"0.6665983",
"0.66588295",
"0.66104555",
"0.66101164",
"0.6601341",
"0.6590044",
"0.65879047",
"0.65698844",
"0.6544043",
"0.6539006",
"0.6532815",
"0.6508968",
"0.6507713",
"0.65057075",
"0.6502792",
"0.65023655",
"0.6493215",
"0.64817345",
"0.6472703",
"0.645716",
"0.645428",
"0.64429307",
"0.64263195",
"0.641972",
"0.6411243",
"0.64110744",
"0.64044523",
"0.6401075",
"0.6398732",
"0.6391745",
"0.6391095",
"0.63812643",
"0.6380813",
"0.6368919",
"0.6360902",
"0.63552773",
"0.63478124",
"0.6347364",
"0.6342348",
"0.6340336",
"0.6337223",
"0.6332159",
"0.63301057",
"0.6313904",
"0.63127255",
"0.6312427",
"0.6310566",
"0.63085157",
"0.63079166",
"0.62897384",
"0.6288283",
"0.62875885",
"0.62829685",
"0.6271776",
"0.62695116",
"0.6260331",
"0.62569106",
"0.6250265",
"0.6242125",
"0.6236528",
"0.6229843",
"0.62256706",
"0.6222512",
"0.6220436",
"0.6218889",
"0.62164044",
"0.6210538",
"0.6205831",
"0.62039304",
"0.62023395",
"0.6202311",
"0.6201022",
"0.6193422",
"0.61924934",
"0.6190272",
"0.6186702",
"0.61784333",
"0.6177169",
"0.6174989",
"0.6173763",
"0.6172711",
"0.6170193",
"0.6165871"
] |
0.0
|
-1
|
Interface for encapsulating API path and query parameters. Author: M. Munoz
|
public interface ApiEndPointsAndPatameters {
// /** Resource path for api resources */
// String API_PREFIX = "/api";
//
/** Resource path for API version 1 */
String API_VERSION_1 = "/v1";
//
// /** Resource path to get available power plants. */
// String POWER_PLANT_PATH = "/powerPlant";
//
// /** Resource path to get power plant data for a given power plant id. */
// String POWER_PLANT_DATA_PATH = "/{id}";
//
// String POWER_PLANT_DETAILS = "/details";
//
// String POWER_PLANT_DATA_SUM_BY_DAY = "/sumByDay";
//
// String POWER_PLANT_DATA_SUM_BY_WEEK = "/sumByWeek";
//
// String POWER_PLANT_DATA_SUM_BY_MONTH = "/sumByMonth";
//
// String POWER_PLANT_DATA_SUM_BY_YEAR = "/sumByYear";
//
// String POWER_PLANT_DATA_NEXT_HOUR_FORECAST = "/nextHourForecast";
//
// String POWER_PLANT_DATA_NEXT_DAY_FORECAST = "/nextDayForecast";
//
// /** Query parameter for filtering by start date. */
// String QUERY_PARAMETER_START_DATE = "startDate";
//
// /** Query parameter for filtering by end date. */
// String QUERY_PARAMETER_END_DATE = "endDate";
//
// /** Query parameter for filtering by power plant data type. */
// String QUERY_PARAMETER_DATA_TYPE = "dataType";
//
//
/** Query parameter for filtering by power plant data type. */
String QUERY_AUTHENTICATION_ID = "Authentication-ID";
/** Query parameter for filtering by power plant data type. */
String QUERY_USER_PASSWORD = "UserPassword";
/** Query parameter for filtering by power plant data type. */
String QUERY_AUTHORISATION_ID = "authorisation-id";
/** Resource path to get a list to the components a User has access to. */
String USER_COMPONENT_LIST = "/UserComponentLists";
/** Resource path to get a list of available resources for a component. */
String DATA_LIST = "/DataLists";
/** Resource path to authenticate. */
String AUTHENTICATION = "/authentication";
/** Resource path to logout. */
String LOGOUT = "/logout";
/** Resource path to get power plant data for a given power plant id. */
String COMPONENT_ID_PATH = "/{cId}";
/** Resource path to get power plant data for a given power plant id. */
String SIDE_PATH = "/{side}";
/** Resource path to get power plant data for a given power plant id. */
String TYPE_PATH = "/{type}";
/** Resource path to get power plant data for a given power plant id. */
String DATE_PATH = "/{date}";
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public interface IDynamicRequestGET {\n public MultivaluedMap<String, String> getPathParams();\n public ContainerRequestContext getRequestContext();\n}",
"public interface Api {\n\n\n @GET(\"users?site=stackoverflow\")\n Call<UserResponse> getUser(@Query(\"pagesize\")int size,@Query(\"sort\")String sort);\n\n @GET(\"comments?site=stackoverflow\")\n Call<CommentsResponse> getComments(@Query(\"order\")String order,@Query(\"sort\")String votes,@Query(\"pagesize\")int size,@Query(\"min\")int min);\n\n @GET(\"posts/{ids}?site=stackoverflow\")\n Call<PostResponse> getPostResponseCall(@Path(\"ids\") long id);\n @GET(\"users/{ids}/questions?site=stackoverflow\")\n Call<QuestionsResponse> getQuestionsResponseCall (@Path(\"ids\")long id),@Query(\"sort\")String votes,\n}",
"public interface ApiInterface {\n @GET(\"api/place/nearbysearch/json?rankby=distance&sensor=false\")\n Call<CityPlacesResponse> getNearPlaces(@Query(\"location\") String ltlng,@Query(\"types\") String type,@Query(\"key\") String key);\n\n @GET(\"api/place/details/json?\")\n Call<PlaceDetailsResponse> getDetailsPlace(@Query(\"placeid\") String placeId, @Query(\"key\") String key);\n\n @GET(\"api/directions/json?&units=metric\")\n Call<DistanceResponse> getWay(@Query(\"origin\") String ltlng, @Query(\"destination\") String pltplng, @Query(\"sensor\") boolean sensor, @Query(\"language\") String language, @Query(\"key\") String key);\n}",
"public interface APIClient {\n\n\t// regular expression to parse the action name\n\tPattern actionNamePattern = Pattern.compile(\"violet\\\\.([\\\\w]+)\\\\.([\\\\w]+)\");\n\n\t/**\n\t * The simplest type of call when only one parameter is needed Works only if\n\t * Action type is GET (no side effects)\n\t * \n\t * @param actionName\n\t * @param inMainParamValue\n\t * @return the POJO response\n\t * @throws APIException\n\t */\n\tObject executeMethodCall(String actionName, String inMainParamValue) throws APIException;\n\n\t/**\n\t * A more sophisticated call when multiple structured parameters must be\n\t * passed\n\t * \n\t * @param actionName\n\t * @param inParam\n\t * @return the POJO response\n\t * @throws APIException\n\t */\n\tObject executeMethodCall(ActionType actionType, String actionName, Map<String, Object> inParams) throws APIException;\n\n}",
"public interface RequestServes {\n @GET(\"PlayVideo/{firstVideoId}\")\n Call<JsonElement> getPlayVideo(@Path(\"firstVideoId\") String firstVideoId);\n @GET\n Call<JsonElement> getData(@Url String url);\n @GET(\"{test}\")\n Call<ResponseBody> getString(@Path(\"test\") String test);\n\n @GET(\"users/{user}/repos\")\n Call<ResponseBody> listRepos(@Path(\"user\") String user);\n\n}",
"public interface DetailMovie {\n @GET(\"{id}\")\n Call<DetailMovies> getData(@Path(\"id\") int id,\n @Query(\"api_key\") String api_key,\n @Query(\"language\") String language,\n @Query(\"append_to_response\") String append_to_response\n );\n}",
"public interface ServerApi {\n @GET(\"qqluck/query\")\n Call<Qq> getQq1(@Query(\"appkey\")String appkey, @Query(\"qq\") String qq);//第一种查询方法\n\n\n @GET(\"qqluck/query\")\n Call<Qq> getQq2(@QueryMap Map<String,String> map);//第二种查询方法\n @GET(\"qqluck/{q}\")\n Call<Qq> getQq3(@Path(\"q\") String q,@QueryMap Map<String,String> map);\n}",
"public interface ServiceApi\n{\n @GET(\"{list}\")\n Call<ResponseBody> request(@Path(\"list\") String postfix, @QueryMap HashMap<String, Object> params);\n}",
"public interface ApiService {\n\n @GET(\"datacatalog?format=json\")\n Call<Catalog> getTopCatalog();\n\n\n/* @GET(\"item/{storyid}.json\")\n Call<StoryResponse> getStoryDetails(@Path(\"storyid\") String storyid);\n\n @GET(\"autocomplete/json\")\n Call<AutoCompleteGooglePlaces> getAutoCompleteResults(@Query(\"key\") String API_KEY,\n @Query(\"input\") String encode);\n\n @GET(\"nearbysearch/json\")\n Call<GetPlacesResponse> getPlaceDetails(@Query(\"location\") String location,\n @Query(\"radius\") int radius,\n @Query(\"key\") String key);*/\n}",
"public interface APIInterface {\n @GET(\"/data/price\")\n Call<Object> compareCurrency(@Query(\"fsym\")String fsym, @Query(\"tsyms\") String tsyms);\n @GET(\"/api/data/coinlist/\")\n Call<CurrencyResource> CoinsList();\n}",
"public interface IApiService {\n\n @GET(\"/its/master_halte/{id}\")\n public Data<Station> getSynchListStation(@Path(\"id\") String id);\n\n @GET(\"/its/eta/{koridor}/{id}\")\n public Data<Incoming> getSynchListIncoming(@Path(\"koridor\") String koridor,@Path(\"id\") String id);\n}",
"public abstract String getRequestPathInfo();",
"public interface ApiInterface {\n @GET(\"books/v1/volumes\")\n Call<JsonResponse> getBook(@Query(\"q\") String isbn, @Query(\"key\") String key );\n}",
"public interface ApiInterface {\n @GET(\"movie/top_rated\")\n Call<MoviesResponse> getTopRatedMovies(@Query(\"api_key\") String apiKey);\n\n @GET(\"movie/{id}\")\n Call<MoviesResponse> getMovieDetails(@Path(\"id\") int id, @Query(\"api_key\") String apiKey);\n\n}",
"public interface APIInterface {\r\n @GET(\"api.php/action=query&format=json&prop=pageimages%7Cpageterms&generator=prefixsearch&redirects=1&formatversion=2&piprop=thumbnail&pithumbsize=50&pilimit=10&wbptterms=description\")\r\n Call<SearchResponseModel> getDataList(@Query(\"gpssearch\") String name , @Query(\"gpslimit\") String gpsLimit);\r\n}",
"public interface ApiMovieService {\n\n @GET(\"{filter}\")\n Call<MoviesResponse> getListMovies(@Path(\"filter\") String filter,\n @Query(\"page\") int page,\n @Query(\"api_key\") String apiKey);\n\n @GET(\"{id}\")\n Call<MovieResponse> getMovieDetail(@Path(\"id\") long id, @Query(\"api_key\") String apiKey);\n}",
"public interface WayMapAPI {\n @GET(\"maps/api/directions/json?\")\n Call<WayPoints> getWayFromCoordinate(@Query(\"origin\")String from, @Query(\"destination\") String to, @Query(\"key\") String api_key);\n\n\n}",
"public interface EndpointsApi {\n\n @GET(ConstantesRestApi.URL_GET_FOLOWS_MEDIA_RECENT)\n Call<MascotasResponse> getRecentMedia(@Path(\"user-id\") String id);\n\n @GET(ConstantesRestApi.URL_GET_PROFILE_USER_WITH_ID)\n Call<MascotasResponse> getProfile(@Path(\"user-id\") String id);\n\n @GET(ConstantesRestApi.URL_GET_FOLLOWS)\n Call<MascotasResponse> getFollows();\n\n @GET(ConstantesRestApi.URL_GET_FOLOWS_MEDIA_RECENT)\n Call<MascotasResponse> getFollowsMediaRecent(@Path(\"user-id\") String id);\n}",
"public interface ApiInterface {\n String HOST = \"http://fanyi.youdao.com/\";\n String IMG_HOST = \"http://www.bing.com/\";\n\n @GET(\"openapi.do\")\n Observable<Translation> getTranslation(@Query(\"keyfrom\") String keyfrom,\n @Query(\"key\") String key,\n @Query(\"type\") String type,\n @Query(\"doctype\") String doctype,\n @Query(\"version\") String version,\n @Query(\"q\") String q);\n\n @GET(\"HPImageArchive.aspx\")\n Observable<BackImg> getBackgroundImg(@Query(\"format\") String format,\n @Query(\"idx\") int idx,\n @Query(\"n\") int n);\n\n\n\n}",
"public interface HttpService {\n//banner/query?type=1\n // public static final String BASE_URL=\"http://112.124.22.238:8081/course_api/\";\n @GET(\"banner/query\")\n Call<List<HeaderBean>> getHeaderData(@Query(\"type\") String type);\n @GET(\"campaign/recommend\")\n Call<List<RecommendBean>> getRecommendData();\n}",
"public interface ApiInterface {\n\n @GET(\"status.txt\")\n Call<Integer> getStatus();\n\n @GET(\"login.php\")\n Call<LoginModel> login(@Query(\"phone\") String phone);\n\n @GET(\"verify.php\")\n Call<LoginModel> verify(@Query(\"phone\") String phone, @Query(\"code\") String code);\n}",
"public interface SaavnApi\n{\n @GET(\"/api.php\")\n Call<List<Song>> makeSongRequest(\n @QueryMap(encoded=true) Map<String, String> options\n );\n\n @GET(\"/api.php\")\n Call<SongList> makePlaylistRequest(\n @QueryMap(encoded=true) Map<String, String> options\n );\n\n @GET(\"/api.php\")\n Call<Show> makeShowRequest(\n @QueryMap(encoded=true) Map<String, String> options\n );\n\n @GET(\"/api.php\")\n Call<Song> makeEpisodeRequest(\n @QueryMap(encoded=true) Map<String, String> options\n );\n}",
"public interface FindUserRequest\n{\n @GET(\"/dataTest/findUserByCode/{userCode}\")\n UserInfoResponse getUserInfo(@Path(\"userCode\") String userCode);\n\n @GET(\"/dataTest/findUserBySearch/{search}\")\n UserSearchResponse searchUsers(@Path(\"search\") String search);\n}",
"public interface RequestAPI {\n @GET(\"group\")\n Call<ListWeatherDTO> getDataWeather(@Query(\"id\") String id,\n @Query(\"appid\") String appId);\n\n @GET(\"weather\")\n Call<WeatherDTO> getDataByLocation(@Query(\"lat\") double lat,\n @Query(\"lon\") double lon,\n @Query(\"appid\") String appId);\n}",
"public interface RestApi {\n\n @GET(\"/ride.asp\")\n Call<List<Model>> getData (@Query(\"userid\") int userId,\n @Query(\"from_name\") String fromName,\n @Query(\"from_lat\") double lat,\n @Query(\"from_lng\") double lng,\n @Query(\"to_name\") String toName,\n @Query(\"to_lat\") double toLat,\n @Query(\"to_lng\") double toLng,\n @Query(\"time\") long time);\n}",
"public interface ResultsHelper {\n\n public static final String api_key = \"ENTER_API_KEY_HERE\";\n\n @GET(\"/discover/movie\")\n public void discoverMovie(@Query(\"api_key\") String api_key,\n @Query(\"sort_by\") String sort_by,\n Callback<ResultsPage> response);\n\n}",
"@DebugLog\npublic interface ApiService {\n final static String APPSETTINGS = \"/application_settings.json\";\n final static String MOVIES = \"/in_theaters.json\";\n\n // APPLICATION SETTINGS\n @Headers(\"Cache-Control: no-cache\")\n @GET(APPSETTINGS)\n void getApplicationSettings(Callback<ApplicationSettings> cb);\n\n // IN THEATERS\n @GET(MOVIES)\n void getMovies(@Query(\"apikey\") String key, @Query(\"page\") int page, @Query(\"page_limit\") int page_limit, Callback<Movies> cb);\n}",
"public interface IteBooksApi {\n\n @GET(\"search/{query}\")\n Observable<SearchBookResult> getBooksByCategory(@Path(\"query\") String query);\n\n @GET(\"search/{query}/page/{number}\")\n Observable<SearchBookResult> getBooksByPage(@Path(\"query\") String query, @Path(\"number\") String number);\n\n @GET(\"book/{id}\")\n Observable<BookDetailResult> getBookDetail(@Path(\"id\") String id);\n}",
"public interface ApiInterface {\n\n @GET(\"v1/volumes\")\n Call<ResponseBody> getlist(@Query(\"q\") String str);\n\n}",
"public interface Api {\n @GET(\"ikds.do\")\n Call<List<Movie>> getMovies(@Query(\"since\") int since, @Query(\"pagesize\") int pagesize);\n}",
"public interface Service {\n\n @GET(\"search?show-fields=thumbnail\")\n Call<SearchResponseObject> getContent(@Query(\"page\") long page);\n\n @GET(\"search?show-fields=thumbnail\")\n Call<SearchResponseObject> getContent(@Query(\"section\") String filter, @Query(\"page\") long page);\n\n @GET(\"sections\")\n Call<SectionResponseObject> getSections();\n}",
"public interface UserApi {\n\n\n @GET(\"/user/\")\n User getUser(@Query(\"username\") String username);\n\n @POST(\"/user/\")\n User login(@Query(\"username\") String username, @Query(\"password\") String password);\n\n}",
"public interface BeaconQuestService {\n\n @GET(\"/beaconQuest/index/takeChallenge/{accountId}/{beaconId}\")\n Call<ResponseBody> takeChallenge (@Path(\"accountId\") String accountId,\n @Path(\"beaconId\") String beaconId\n );\n\n @GET(\"beaconQuest/index/challengeAnswer/{accountId}/{beaconId}/{answer}\")\n Call<ResponseBody> challengeAnswer(@Path(\"accountId\") String userid,\n @Path(\"beaconId\") String beaconid,\n @Path(\"answer\") String answer\n );\n\n @GET(\"beaconQuest/index//challengeCancel/{accountId}/{beaconId}\")\n Call<ResponseBody> challengeAnswer(@Path(\"accountId\") String userid,\n @Path(\"beaconId\") String beaconid\n );\n\n @GET(\"beaconQuest/index//register/{username}/{password}\")\n Call<ResponseBody> registerAccount(@Path(\"username\") String username,\n @Path(\"password\") String password\n );\n\n @GET(\"beaconQuest/index//login/{username}/{password}/\")\n Call<ResponseBody> login(@Path(\"username\") String username,\n @Path(\"password\") String password\n );\n}",
"public interface IEndpoint\n{\n @GET(Contract.PATH_POPULAR_MOVIE)\n Call<MovieResponse> getPopularMovies(@Query(\"api_key\") String apiKey);\n\n @GET(Contract.PATH_TOP_RATED_MOVIE)\n Call<MovieResponse> getTopRatedMovies(@Query(\"api_key\") String apiKey);\n\n @GET(\"movie/{id}/videos\")\n Call<MovieTrailer> getMovieTrailer(@Path(\"id\") int id,\n @Query(\"api_key\") String apiKey);\n\n @GET(\"movie/{id}/reviews\")\n Call<MovieReview> getMovieReview(@Path(\"id\") int id,\n @Query(\"api_key\") String apiKey);\n\n @GET(Contract.SIZE_MOBILE + \"{posterImagePath}\")\n Call<ResponseBody> getPosterImage(\n @Path(value = \"posterImagePath\", encoded = true)\n String posterImagePath);\n\n @GET(\"w780{backdropImagePath}\")\n Call<ResponseBody> getBackdropImage(\n @Path(value = \"backdropImagePath\", encoded = true)\n String backdropImagePath);\n}",
"public interface ApiService {\n @POST(\"/AutoComplete/autocomplete/json\")\n void placeAuto(@Query(\"input\") String input, @Query(\"key\") String key, Callback<AutoComplete> callback);\n\n @POST(\"/geocode/json\")\n void getLatLng(@Query(\"address\") String address, @Query(\"key\") String key, Callback<GeocodingMain> callback);\n\n @POST(\"/directions/json\")\n void getroute(@Query(\"origin\") String origin, @Query(\"destination\") String destination, @Query(\"key\") String key, Callback<Directions> callback);\n\n @POST(\"/geocode/json\")\n void reverseGeoCoding(@Query(\"latlng\") String latLng, @Query(\"key\") String key, Callback<RevGeocodingMain> callback);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n}",
"public interface QueryService {\n @GET(API.URL_CLOCK)\n Call<String> query(@Path(\"page\") int page);\n\n @GET(API.URL_LEAVE)\n Call<String> getLeaveData();\n\n @GET(API.URL_BROADCAST_DETAIL)\n Call<String> getBroadcastData(@Query(\"mid\") String mid);\n}",
"public interface AppAPI {\n\n @GET(\"weather\")\n Call<WeatherInfo> getCurrentWeather(@Query(\"id\") long cityId,\n @Query(\"units\") String units,\n @Query(\"appid\") String appId);\n\n @GET(\"forecast\")\n Call<Forecast> getForecast3hrs(@Query(\"id\") long cityId,\n @Query(\"units\") String units,\n @Query(\"appid\") String appId);\n\n @GET(\"find\")\n Call<CityResult> findCity(@Query(\"q\") String cityName,\n @Query(\"type\") String type,\n @Query(\"sort\") String sort,\n @Query(\"cnt\") int cnt,\n @Query(\"appid\") String appId);\n}",
"public interface API {\n @GET(\"today\")\n Observable<RecommendBean> getRecommendData();\n\n @GET(\"search/query/listview/category/{category}/count/10/page/{page}\")\n Observable<SearchBean> getSearchData(@Path(\"category\") String category, @Path(\"page\") int page);\n\n @GET(\"xiandu/categories\")\n Observable<Categories> getCategoriesData();\n\n @GET(\"xiandu/category/{type}\")\n Observable<Category> getCategoryData(@Path(\"type\") String type);\n}",
"public interface StarWarsAPI {\r\n\r\n @GET\r\n Call<Character> getCharacter(@Url String url);\r\n\r\n @GET\r\n Call<Film> getFilm(@Url String url);\r\n}",
"public interface WarsawApiInterface {\n\n @GET(\"/api/action/wfsstore_get\")\n Call<WarsawResult> getPlacesByType(@Query(\"id\") String id, @Query(\"circle\") String circle, @Query(\"apikey\") String apikey);\n}",
"public interface FoodApiInterface {\n\n @GET(\"/api/search\")\n Call<RecipeResponse> getRecipes(@QueryMap Map<String, String> params);\n}",
"public interface ApiInterface {\n\n @POST(\"/request/getAll\")\n Call<List<Request>> getRequest(@Body Location location);\n\n @POST(\"/request/create\")\n Call<Request> createRequest(@Body Request request);\n\n @POST(\"/deliver/accept/\")\n Call<Request> acceptRequest(@Query(\"id\") String requestId);\n\n}",
"public void getRequest_withHeader_QueryParms() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n scenario.write(\"Request query parameters are :-\");\n String[] queryParameters = {\"grant_type\"};\n setQueryParameters(queryParameters);\n String[] headerParameters = {\"content-type\"};\n setHeaderParameters(headerParameters);\n }",
"public interface MyApi {\n\n\t@GET(\"/v3/search/feeds\")\n\tCall<SearchModel> getSearchResult(@Query(\"q\") String search, @Query(\"n\") String count);\n\n\t@GET(\"/v3/streams/contents\")\n\tCall<NewsModel> getRSSData(@Query(\"streamId\") String streamId, @Query(\"count\") String count);\n\n}",
"public interface NewsAPI {\n\n// @GET(\"1.json ?api-key= b6075f230e154c32accba228515bdce5\")\n @GET(\"home.json?api-key=b6075f230e154c32accba228515bdce5\")\n Call<NewsModel>getNewsModel();\n\n\n //Dynamic method\n //use if you would like user to alter the information returned from api call\n //\n// @GET(\"{section}.{format}\")\n// Call<NewsModel>test(@Path(\"section\") String s, @Path(\"format\") String f);\n\n\n}",
"public interface API {\n @GET(\"api/v1.5/tr.json/translate\")\n Call<Resp> Translate(@QueryMap Map<String, String> parameters);\n\n}",
"public interface ApiService {\n\n @GET(\"109-35\")\n Observable<DataResponse> getHomeDatas(@QueryMap Map<String, Object> options);\n\n}",
"public interface AApi {\n //Post示例 http://www.apic.in/anime/33089.htm\n @GET(\"{type}/page/{page}/\")\n Observable<ResponseBody> getPosts(@Path(\"type\") String type, @Path(\"page\") int page);\n\n @GET(\"/{post}/{page}\")\n Observable<ResponseBody> getPictures(@Path(\"post\") String postUrl, @Path(\"page\") int page);\n\n}",
"public interface Service {\n\n\n @GET(\"/3/search/movie\")\n Call<Lista> getSearch(@Query(\"api_key\") String apiKey, @Query(\"query\") String queryString);\n\n}",
"public interface InterfaceReTrofits {\n\n @GET(\"{viewname}?name=101020100&id=11\")\n Call<String> fundGETRequest(@Path(\"viewname\") String viewname);\n\n @GET(\"{viewname}?id=12\")\n Call<BaseCallBean> fundGETRequestForBean(@Path(\"viewname\") String viewname);\n\n\n Call<BaseCallBean> fundGETRequest(@Url String url, @QueryMap Map<String, String> queryMaps);\n\n\n}",
"public interface ApiService {\n\n @GET(\"classify\")\n Call<GalleryClassResult> getGalleryClassList();\n\n @GET(\"list\")\n Call<GalleryResult> getGalleryList(@Query(\"page\") int page, @Query(\"rows\") int rows, @Query(\"id\") int id);\n\n @GET(\"show\")\n Call<PictureResult> getPictureList(@Query(\"id\") long id);\n\n}",
"public interface APIEndpoints {\n\n @GET(\"user/{id}\")\n Call<User> getUser(@Path(\"id\") String userId);\n\n @GET(\"user\")\n Call<List<User>> getUsers();\n\n @POST(\"user\")\n Call<User> createUser(@Body User user);\n\n @PATCH(\"user/{id}\")\n Call<User> updateUser(@Body User user, @Path(\"id\") String userId);\n\n @DELETE\n Call<User> deleteUser(@Path(\"id\") String userID);\n\n @GET(\"challenge\")\n Call<List<Challenge>> getChallenges();\n\n @GET(\"challenge/{id}\")\n Call<Challenge> getChallenge(@Path(\"id\") String challengeID);\n\n @POST(\"challenge\")\n Call<User> createChallenge(@Body Challenge challenge);\n\n @PATCH(\"challenge/{id}\")\n Call<Challenge> updateChallenge(@Body Challenge challenge, @Path(\"id\") String challengeID);\n\n @DELETE\n Call<User> deleteChallenge(@Path(\"id\") String challengeID);\n\n @GET(\"issue\")\n Call<List<Issue>> getIssues();\n\n @GET(\"issue/{id}\")\n Call<Issue> getIssue(@Path(\"id\") String issueId);\n\n @POST(\"issue\")\n Call<Issue> createIssue(@Body Issue issue);\n\n @PUT(\"issue/{id}\")\n Call<Issue> updateIssue(@Body Issue issue, @Path(\"id\") String issueId);\n\n @DELETE(\"issue/{id}\")\n Call<Issue> deleteIssue(@Path(\"id\") String issueId);\n\n}",
"public interface WallpaperApi {\n @GET(\"api.php?latest\")\n Call<ImageList> getLastest();\n\n @GET(\"api.php?cat_list\")\n Call<CategoryList> getCategory();\n\n @GET(\"api.php\")\n Call<ImageList> getCategoryItem(@Query(\"cat_id\") String catId);\n}",
"interface ApiService {\n\n @GET(\"users/{user}/repos\")\n Call<List<FlickR>> getFlickRItems(@Path(\"user\") String user);\n\n @GET(\"users/{user}\")\n Call<Owner> getFlickRMedia(@Path(\"user\") String user);\n\n }",
"public interface UserApi {\n @GET(\"/users/{username}\")\n Call<User> getUserInfo(@Path(\"username\")String name);\n}",
"public interface Service {\n\n @GET(\"movie/{sub_type}\")\n Call<MovieResponse> getMovie(@Path(\"sub_type\")String sub_type, @Query(\"api_key\")String api_key, @Query(\"language\")String language, @Query(\"page\")int page);\n\n @GET(\"tv/{sub_type}\")\n Call<TvShowResponse> getTvShow(@Path(\"sub_type\")String sub_type, @Query(\"api_key\")String api_key, @Query(\"language\")String language, @Query(\"page\")int page);\n\n @GET(\"movie/{movie_id}/recommendations\")\n Call<MovieResponse> getMovieRecommendations(@Path(\"movie_id\")int movie_id,@Query(\"api_key\")String api_key, @Query(\"language\")String language,@Query(\"page\")int page);\n\n @GET(\"tv/{tv_id}/recommendations\")\n Call<TvShowResponse> getTvShowRecommendations(@Path(\"tv_id\")int tv_id, @Query(\"api_key\")String api_key, @Query(\"language\")String language, @Query(\"page\")int page);\n\n @GET(\"search/movie\")\n Call<MovieResponse> getMovieSearch(@Query(\"query\")String query,@Query(\"api_key\")String api_key, @Query(\"language\")String language,@Query(\"page\")int page);\n\n @GET(\"search/tv\")\n Call<TvShowResponse> getTvShowSearch(@Query(\"query\")String query, @Query(\"api_key\")String api_key, @Query(\"language\")String language, @Query(\"page\")int page);\n\n}",
"public interface UrlConnector {\n /**\n * Obtains an HTTP GET request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpGet getRequest(HttpServletRequest request, String address) throws IOException;\n\n /**\n * Obtains an HTTP PUT request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpPut putRequest(HttpServletRequest request, String address) throws IOException;\n\n /**\n * Obtains an HTTP POST request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpPost postRequest(HttpServletRequest request, String address) throws IOException;\n\n /**\n * Obtains an HTTP DELETE request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpDelete deleteRequest(HttpServletRequest request, String address) throws IOException;\n\n /**\n * Obtains an HTTP PATCH request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpPatch patchRequest(HttpServletRequest request, String address) throws IOException;\n}",
"public interface RequestServiceMzitu {\n\n @GET(\"{number}\")\n Observable<String> getDetialData(@Path(\"number\") String number, @Query(\"time\") long time);\n\n @GET(\"page/{pageNumber}\")\n Observable<String> getIndexMoreData(@Path(\"pageNumber\") int pageNumber, @Query(\"time\") long time);\n\n @GET(UrlPath.BaseUrlRequestServiceMzitu)\n Observable<String> getIndexData(@Query(\"time\") long time);\n\n @GET(\"/tag/{path}\")\n Observable<String> getTagData(@Path(\"path\") String path, @Query(\"time\") long time);\n\n @GET(\"/tag/{path}/page/{pageNumber}\")\n Observable<String> getTagMoreData(@Path(\"path\") String path, @Path(\"pageNumber\") int pageNumber, @Query(\"time\") long time);\n}",
"public interface RequestService {\n //http://gank.io/api/data/Android/10/1\n /*@GET(\"api/data/Android/10/1\")\n Call<ResponseBody> getAndroidInfo();*/\n @GET(\"api/data/Android/10/1\")\n Call<GankBean> getAndroidInfo();\n @GET(\"api/data/Android/10/{page}\")\n Call<GankBean> getAndroidInfo(@Path(\"page\") int page);\n @GET(\"api/data/query?cityname=深圳\")\n Call<ResponseBody> getWeather(@Query(\"key\") String key,@Query(\"area\") String area);\n @GET(\"group/{id}/users\")\n Call<List<User2>> groupList(@Field(\"id\") int groupId, @QueryMap Map<String,String> options);\n @GET\n Call<GankBean> getAndroid2Info(@Url String url);\n\n}",
"@Test\n\tpublic void testWithPathParameters() {\n\t\tgiven().accept(ContentType.JSON).and().params(\"limit\",100)\n\t\t.and().pathParams(\"id\", 110)\n\t\t.when().get(ConfigurationReader.getProperty(\"hrapp.baseurl\")+\"/employees/{id}\") //when we send e request this id will be replaced with 110\n\t\t.then().statusCode(200)\n\t\t.and().assertThat().contentType(ContentType.JSON)\n\t\t.and().body(\"employee_id\", equalTo(110),\n\t\t\t\t\"first_name\",equalTo(\"John\"),\n\t\t\t\t\"last_name\",equalTo(\"Chen\"),\n\t\t\t\t\"email\",equalTo(\"JCHEN\"));\n\t\t\n\t}",
"public interface Requests {\n // API To fetch movies\n @GET(\"list_movies.json\")\n Call<MoviesResponse> getMoviesList(\n @Query(\"genre\") String genre,\n @Query(\"sort_by\") String sortBy,\n @Query(\"page\") int page);\n\n // API to search movies\n @GET(\"list_movies.json\")\n Call<MoviesResponse> searchMovie(@Query(\"query_term\") String queryTerm);\n\n // API To fetch movie details\n @GET(\"movie_details.json?with_cast=true&with_images=true\")\n Call<MovieDetailsResponse> getMovieDetails(@Query(\"movie_id\") String id);\n\n // API to get similar movies\n @GET(\"movie_suggestions.json\")\n Call<MoviesResponse> getSimilarMovies(@Query(\"movie_id\") String id);\n}",
"public interface KanazawaApi {\n /*@以降は用途に合わせて Get Post Put Delete を用いる\n @Pathは{}内の物を照会\n @Queryを用いることでよくあるevent.json?1d=19などを簡単に記述できる\n 例 getEvent(@Query(\"id\"));\n */\n\n @GET(\"/{name}.json\")// 「/」から開始しないとはじかれる\n public Observable<KanazawaEntity> getEvent(@Path(\"name\")String url);\n}",
"public interface MovieService {\n @GET(\"movie/{type}\")\n Observable<MovieGsonResponse> getMovieData(@Path(\"type\")String sortType,\n @Query(\"api_key\")String api);\n}",
"public interface ApiInterFace {\n @GET(\"restaurants\")\n Call<Restaurant_model> getRestaurants();\n\n @POST(\"/profile\")\n @FormUrlEncoded\n Call<LoginFragment.UserSentResponse> sendUserData(@Field(\"name\") String name, @Field(\"picUrl\") String picUrl, @Field(\"email\") String email);\n\n\n @GET(\"/search/{keyword}\")\n Call<SearchModel> search(@Path(\"keyword\") String keyword);\n\n @GET(\"/profile/{id}\")\n Call<UserProfile_model> getUserInfo(@Path(\"id\") String id);\n\n @GET(\"/meal/{id}\")\n Call<RestaurantMealResponse> getRestaurantMeal(@Path(\"id\") int id);\n\n @GET(\"/restaurant/{id}\")\n Call<RestaurantDetailResponse> getRestaurantDetailResponse(@Path(\"id\") int id);\n}",
"public interface CliApi {\n\n @GET(\"/api/ping\")\n Pong ping();\n\n /**\n * Fetch and note by type.\n * <p>\n * <code>\n * http://localhost:5050/cli/cmd/update_docker?k=label&n=2\n * </code>\n *\n * @param key key for the fetching\n * @param keyType type of the key, default is 'id', could be 'id' or 'label'\n * @param num number of articles to return, default is 1\n * @return the note resource\n */\n @GET(\"/cli/cmd/{key}\")\n PagedResponse<NoteResult> getNote(@Path(\"key\") String key, @Query(\"k\") String keyType, @Query(\"n\") int num);\n\n @POST(\"/cli/cmd\")\n SaveCmdResponse saveCmd(@Body SaveCmdRequest request);\n\n @DELETE(\"/cli/cmd/{id}\")\n IdResponse deleteItem(@Path(\"id\") String id);\n\n @POST(\"/cli/search\")\n PagedResponse<NoteResult> search(@Body CliSearchRequest request);\n\n}",
"public interface ApiInterface {\n\n @GET(\"/users/{user}/repos\")\n Observable<List<Repository>> repositories(\n @Path(\"user\") String user\n );\n}",
"public interface ApiInterface {\n @GET(\"articles?source=hacker-news&sortBy=top\")\n Call<ResponseModel> getTopArticles(@Query(\"apiKey\") String ApiKey);\n @GET(\"articles?source=hacker-news&sortBy=lates\")\n Call<ResponseModel> getLatestArticles(@Query(\"apiKey\") String ApiKey);\n\n}",
"public interface ApiServices {\n\n @GET(ApiUrl.ENDPOINT)\n Observable<Response<String>> getGame(@QueryMap()Map<String, Object> params);\n\n}",
"public interface IBooksRestModel {\n\n @GET(\"volumes\")\n public Call<Volumes> searchBook(@Query(\"q\") String query);\n\n}",
"public interface RestCall {\n\n String query();\n\n String delete();\n\n String put();\n\n String get();\n\n String keys();\n\n}",
"public interface PersonApi {\n\n // results=[int]\n // gender=[male|female]\n // page=[int]\n // seed=[string]\n // nat=[AU|BR|CA|CH|DE|DK|ES|FI|FR|GB|IE|IR|NL|NZ|TR|US|...]\n @GET(\"/api\")\n Call<PersonQuery> getPerson(\n @Query(\"results\") int results,\n @Nullable @Query(\"gender\") String gender,\n @Nullable @Query(\"seed\") String seed,\n @Nullable @Query(\"nat\") String nationality,\n @Nullable @Query(\"page\") String page\n );\n}",
"public interface MovieApiService {\n\n @GET(\"movie/upcoming\")\n Call<JsonRequestDiscoverMovieResult> getDiscoverMovieFeed(\n @Query(\"api_key\") String apiKey\n );\n\n// @GET(\"movie/{id}/videos\")\n// Call<JsonRequestMovieVideoResult> getMovieVideoFeed(\n// @Path(\"id\") String movieId,\n// @Query(\"api_key\") String apiKey\n// );\n}",
"public interface NewsApi {\n\n @GET(\"top-headlines\")\n Call<ApiResponse> getRandom(@Query(\"country\") String random);\n\n @GET(\"everything\")\n Call<ApiResponse> getArticles(@Query(\"q\") String q);\n}",
"public interface RestApis {\n\n @POST(Constants.ApiMethods.REGISTER_URL)\n Call<RegisterResponse> registerUser(@Body RegisterRequest aRegisterRequest);\n\n @POST(Constants.ApiMethods.LOGIN_URL)\n Call<LoginResponse> loginUser(@Body LoginRequest aRequest);\n\n @GET(Constants.ApiMethods.USER_LIST_URL)\n Call<BaseResponse<List<UserModel>>> getUserList(@Query(\"page\") int pageId);\n\n @GET(Constants.ApiMethods.ALBUM_LIST_URL)\n Call<List<AlbumModel>> getAlbumList();\n\n}",
"public interface AppApi {\n @GET(\"/\")\n Observable<MovieModel> getMovie(@Query(\"apikey\") String apiKey,@Query(\"t\") String mSearhMovie,@Query(\"plot\") String mPlot);\n}",
"public interface ApiInterface {\n @GET(\"http://wthrcdn.etouch.cn/weather_mini\") //get temp,temp up,temp down and type\n Call<EtouchWeatherResponse> getWeatherByCity(@Query(\"city\") String city);\n\n// @GET(\"http://wthrcdn.etouch.cn/weather_mini\")\n// Call<EtouchWeatherResponse> getWeatherByCityKey(@Query(\"citykey\") String citykey);\n\n @GET(\"http://api.help.bj.cn/apis/weather/\")//get windspeed and humidity\n Call<HelpWeatherResponse> getWeather(@Query(\"id\") String city);\n\n\n\n}",
"public interface RuangguruApiClient {\n\n // TODO: 3/3/17 change this as desired request\n\n @GET(\"/login\")\n Call<LoginResponse> loginRequest(@Path(\"username\") String username\n , @Path(\"password\") String password);\n}",
"interface APIInterface {\n\n @POST(\"/EmployeeApi/v1/Api.php?apicall=createemployee\")\n Call<JsonObject> createEmployee(@QueryMap Map<String, String> options);\n\n @POST(\"/EmployeeApi/v1/Api.php?apicall=updateemployee\")\n Call<JsonObject> updateEmployee(@QueryMap Map<String, String> options);\n\n @GET(\"/EmployeeApi/v1/Api.php?apicall=getemployee\")\n Call<JsonObject> getEmployee();\n\n @GET(\"/EmployeeApi/v1/Api.php?apicall=searhemployee\")\n Call<JsonObject> searchEmployee();\n\n @GET(\"/EmployeeApi/v1/Api.php?apicall=deleteemployee\")\n Call<JsonObject> deleteEmployee(@Field(\"prefix\") String prefix) ;\n\n}",
"public interface RestAPI {\n String API_PROTOCOL = \"https://\";\n\n String API_URL = \".fusion-universal.com\";\n\n String API_SEARCH_COMPANY = \"/api/v1/company.json\";\n\n\n Observable<CompanyEntity> companySearch(final String companyName);\n}",
"public interface WeatherInterface {\n\n /*@GET(\"weather?\")\n Call<WeatherResponse> getWeatherFromZip(\n @Query(\"zip\") String zip,\n @Query(\"APPID\") String appId\n );*/\n\n @GET(\"{api_key}/conditions/q/Mexico/Mexico_City.json\")\n Call<WeatherResponse> getWeatherFromSanFrancisco(\n @Path(\"api_key\") String apiKey\n );\n}",
"public interface UdonShopApi {\n @GET(\"/RestSearchAPI/20150630/\")\n public Observable<UdonShopEntity> getUdonShops(@Query(\"keyid\") final String keyid,\n @Query(\"format\") final String format,\n @Query(\"category_l\") final String category_l,\n @Query(\"category_s\") final String category_s,\n @Query(\"input_coordinates_mode\") final String input_coordinates_mode,\n @Query(\"latitude\") final String latitude,\n @Query(\"longitude\") final String longitude,\n @Query(\"range\") final String range,\n @Query(\"hit_per_page\") final String hit_per_page);\n\n}",
"public interface TeasAPI {\n\n @GET(URLConfig.Path.GET_NEW)\n Call<TeaBean> getNews(@QueryMap() Map<String ,String> params);\n\n}",
"public interface FundService {\n\n String BASE_URL = \"http://fund.eastmoney.com/f10/\";\n\n @GET(\"F10DataApi.aspx\")\n Observable<GetFundResponse> api(@Query(\"type\") String type, @Query(\"code\") String code, @Query(\"page\") int page, @Query(\"per\") int per);\n}",
"public interface ApiInterface {\n\n\n @Headers({\"Content-Type: application/json\",})\n @POST(\"transport/public/registrations\")\n Call<Void> Register(@Body User user);\n\n\n //loginProcess\n @GET(\"user\")\n @Headers({\"Content-Type: application/json\"})\n Call<cUser> postWithFormParams();\n\n\n //userMe\n @GET(\"transport/user/me\")\n @Headers({\"Content-Type: application/json\"})\n Call<JsonObject> UserMe();\n\n\n\n //drivers\n @GET(\"transport/drivers\")\n @Headers({\"Content-Type: application/json\"})\n Call<JsonObject> drivers(\n @Query(\"latitud\") double latitud,\n @Query(\"longitud\") double longitud);\n\n\n}",
"public interface SparePartApiService {\n\n @GET(\"/hibbiz-api/api/spareparts/search\")\n void searchSpareParts(@Query(\"page\")Integer page,\n @Query(\"size\")Integer size,\n @Query(\"sort\")String sort,\n @EncodedQueryMap Map<String, String> sdesc,\n Callback<Page<SparePart>> callback);\n\n @GET(\"/hibbiz-api/api/spareparts\")\n void getSpareParts(@Query(\"page\") Integer page,\n @Query(\"size\") Integer size,\n @Query(\"sort\")String sort,\n Callback<Page<SparePart>> callback);\n}",
"public interface RestConstants {\n\n /**\n * Base for rest api requests\n */\n String BASE = \"/api\";\n\n /**\n * end-point for calculating an area\n */\n String CALCULATE_AREA = \"/area\";\n /**\n * end-point for calculating a volume\n */\n String CALCULATE_VOLUME = \"/volume\";\n /**\n * end-point for calculating a light to area ratio\n */\n String CALCULATE_LIGHT_TO_AREA = \"/light-area\";\n /**\n * end-point for calculating an energy to volume ratio\n */\n String CALCULATE_ENERGY_TO_VOLUME = \"/energy-volume\";\n /**\n * end-point for finding rooms above provided norm\n */\n String GET_ROOMS_ABOVE_ROOM = \"/norm-check\";\n /**\n * end-point for calculating penalty for rooms above norm\n */\n String CALCULATE_PENALTY = \"/penalty\";\n}",
"public interface NearByInfoApi {\n @GET(\"home/get_single\")\n public Call<NearByInfo> getNearbyInfo(@QueryMap ArrayMap<String,String> params);\n}",
"public interface ZhuanLanApi {\n @GET(\"/api/columns/{user} \")\n Call<ZhuanLanAuthor> getAuthor(@Path(\"user\") String user);\n}",
"public interface MovieApiService {\n\n @GET(\"movie/popular\")\n Call<MoviesResponse> getPopularMovies(@Query(\"page\") int page);\n\n @GET(\"movie/top_rated\")\n Call<MoviesResponse> getTopRatedMovies(@Query(\"page\") int page);\n\n @GET(\"movie/{id}\")\n Call<MoviesResponse> getMovieDetails(@Path(\"id\") long id);\n}",
"public interface StrockIndexApiService {\r\n// @Headers(GlobalContants.HeadsSet)\r\n// @GET(\"?key=a23cd4983655b336fbd1f440acfb1152\")\r\n// Call<StrockIndexBean> getStrockIndex(\r\n// @Query(\"type\") int type\r\n// );\r\n}",
"public interface ArticleAPI {\n\n @GET(\"svc/search/v2/articlesearch.json\")\n Call<SearchAPIResponse> getSearchAPIResponse(@Query(\"q\") String searchTerm);\n\n}",
"public interface IServicoPrivadoClienteSemPropostaAPI {\n\n public static final String PATH = \"ServicoPrivadoClienteSemProposta/\";\n\n\n @GET(PATH)\n Call<List<ServicoOfertaPrivada>> getAll(\n @Query(\"idUsuarioCliente\") String idUsuarioCliente\n );\n}",
"public interface TngouService {\n\n @GET(\"/tnfs/api/list\")\n Observable<PhotoModel> getPhotoList(@Query(\"id\") int id, @Query(\"page\") int page, @Query(\"rows\") int rows);\n\n\n// @GET(\"api/data/福利/10/{page}\")\n// Observable<PhotoModel> getPhotoList(@Path(\"page\") int page);\n\n}",
"public interface MovieDatabaseService {\n\n @GET(\"3/movie/{sort_by}\")\n Call<Movies> fetchMovies(@Path(\"sort_by\") String sortBy, @Query(\"api_key\") String apiKey);\n\n @GET(\"3/movie/{id}/videos\")\n Call<Trailers> findTrailersById(@Path(\"id\") long movieId, @Query(\"api_key\") String apiKey);\n\n @GET(\"3/movie/{id}/reviews\")\n Call<Reviews> findReviewsById(@Path(\"id\") long movieId, @Query(\"api_key\") String apiKey);\n}",
"public interface AdApiInterface {\n\n @GET(Request.VALUE_YOUR_CAR)\n Observable<Response> valueYourCar();\n\n @GET(Request.GET_CAR_DETAIL)\n Observable<Response> getCarDetail();\n\n interface Request {\n String VALUE_YOUR_CAR = \"ValuationData?v=2&api_nullitems=1&auth_apikey=ac3f0001-4f94-4c53-987c-e481980d4bbd&user_tag=&key_VRM=\" + ConstUtils.VRM + \"&key_mileage=\" + ConstUtils.Mileage;\n String GET_CAR_DETAIL = ConstUtils.URL + ConstUtils.VRM;\n }\n}",
"public interface RestInterface {\n\n @GET(\"{currency}/\")\n Call<List<ResponseModel>> geCurrency(@Path(\"currency\") String currency);\n}",
"public interface IWeather {\n // Request method and URL specified in the annotation\n // Callback for the parsed response is the last parameter\n\n @GET(\"/v3/weather/now.json\")\n Call<City> getCity(@Query(\"key\")String key,@Query(\"location\")String location);\n\n @GET(\"/v3/location/search.json\")\n Call<City> weather(@Query(\"key\")String key,@Query(\"q\")String location);\n}",
"public interface Api {\n\n// root url after add multiple servlets\n\n String BASE_URL = \"https://simplifiedcoding.net/demos/\";\n\n @GET(\"marvel\")\n Call<List<Modelclass>> getmodelclass();\n\n\n\n}",
"public interface Api {\n @GET(\"v2/book/search\")\n Observable<BaseApi<List<Book>>> searchBook(@Query(\"q\") String bookName);\n}",
"public interface StoryRestServer {\n\n @GET(\"/story\")\n public Story.StoryList stories(@Query(\"start\") long start, @Query(\"end\") long end);\n\n @GET(\"/story/sex\")\n public Story.StoryList sexStories(@Query(\"page\") long page, @Query(\"limit\") long limit);\n}"
] |
[
"0.6912523",
"0.6878142",
"0.68450874",
"0.6830125",
"0.6782505",
"0.67241484",
"0.671368",
"0.66812617",
"0.6671544",
"0.66612613",
"0.66611993",
"0.6658956",
"0.6652582",
"0.6649049",
"0.66166013",
"0.6615813",
"0.6589644",
"0.6588657",
"0.6556241",
"0.65467656",
"0.6502015",
"0.6486464",
"0.6486263",
"0.64716476",
"0.6450176",
"0.6449807",
"0.6448717",
"0.6445609",
"0.64417017",
"0.6435244",
"0.64311105",
"0.64260507",
"0.64237905",
"0.6417405",
"0.64152956",
"0.641385",
"0.6400478",
"0.6388269",
"0.6381088",
"0.6375384",
"0.636514",
"0.6358792",
"0.6354898",
"0.6347286",
"0.6339561",
"0.6332749",
"0.6324207",
"0.63134253",
"0.630393",
"0.6296282",
"0.6286185",
"0.62845707",
"0.6283746",
"0.6275674",
"0.62731457",
"0.6269115",
"0.6268206",
"0.6255989",
"0.6253739",
"0.6247871",
"0.62453747",
"0.6241813",
"0.6228565",
"0.6223984",
"0.62196285",
"0.6217302",
"0.62126493",
"0.62116885",
"0.621108",
"0.62104994",
"0.62082875",
"0.6207919",
"0.62022424",
"0.61870474",
"0.61814773",
"0.61805224",
"0.61790395",
"0.61780673",
"0.6175778",
"0.61574143",
"0.615439",
"0.6151881",
"0.61498773",
"0.61495256",
"0.6144418",
"0.61433375",
"0.61390495",
"0.6132648",
"0.6131239",
"0.61290425",
"0.6119957",
"0.6118838",
"0.611655",
"0.6116271",
"0.6115855",
"0.61146265",
"0.61138403",
"0.6113239",
"0.6110973",
"0.6110249"
] |
0.7185408
|
0
|
Get question and answer regular expressions
|
public void initialize(UimaContext aContext) throws ResourceInitializationException {
super.initialize(aContext);
// Get config. parameter values
questionPattern = Pattern.compile((String) aContext.getConfigParameterValue("questionPattern"));
answerPattern = Pattern.compile((String) aContext.getConfigParameterValue("answerPattern"));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getRegEx();",
"java.lang.String getRegex();",
"java.lang.String getRegex();",
"public static String[] stringByQuestionInExamParameters(String str) {\n\t\treturn str.split(\n\t\t\t\t\"questionID: |points: |commentForTeacher: |commentForStudent: |examID: |]+\");\n\t}",
"public static void main(String[] args) {\n Pattern p = Pattern.compile(\"2*5?$\");\n Matcher m = p.matcher(regex1);\n if (m.matches()) {\n System.out.println(\"YES ¦ \");\n } else {\n System.out.println(\"NO\");\n }\n\n }",
"public String getRegex();",
"public interface RegExp {\n String NUMBER_OF_COMPOSITION = \"^[1-2][0-9]|[1-9]$\";\n String BREAK_DATE_BY_DOT = \"[.]\";\n String IDENTIFY_BUMDLE = \"^([E|e][N|n])|[У|у][К|к][Р|р]$\";\n String DURATION = \"^[1-9]|[1-9][0-9]|[1-4][0-9][0-9]$\";\n}",
"public interface RegExp {\n String NAME_REGEXP = \"^[А-Я][а-я]{2,30}$\";\n String AGE_REGEXP = \"^((1[012][0-9])|([1-9][0-9]))$\";\n String EMAIL_REGEXP = \"^[-z0-9_.]{1,30}@([A-z]+[A-z0-9]{1,15}.){1,2}([A-z]+[A-z0-9]{1,15})$\";\n String CELL_PHONE_REGEXP = \"([\\\\+]\\\\d{2}\\\\s?)?(([\\\\(\\\\s]\\\\d{3}[\\\\)\\\\s])|\" +\n \"(\\\\d{3}))[\\\\s-]?\\\\d{3}[\\\\s-]?\\\\d{2}[\\\\s-]?\\\\d{2}$\";\n String CELL_PHONE_OPTIONAL_REGEXP = \"^(([\\\\+]\\\\d{2}\\\\s?)?(([\\\\(\\\\s]\\\\d{3}[\\\\)\\\\s])|\" +\n \"(\\\\d{3}))[\\\\s-]?\\\\d{3}[\\\\s-]?\\\\d{2}[\\\\s-]?\\\\d{2})?\";\n String LOCAL_PHONE_REGEXP = \"^([\\\\+]\\\\d{2}\\\\s?)?(([\\\\(\\\\s]\\\\d{3}[\\\\)\\\\s])|(\\\\d{3}))?[\\\\s-]?\\\\d{3}[\\\\s-]?\\\\d{3}$\";\n String COMMENT_REGEXP = \"^([\\\\d\\\\s\\\\w\\\\.\\\\,\\\\!]){0,127}$\";\n String GROUP_REGEXP = \"^[А-я]{4,10}$\";\n String SKYPE_NICK_REGEXP = \"^[\\\\w\\\\d\\\\_]{3,20}$\";\n String INDEX_REGEXP = \"^[\\\\d]{8}$\";\n String CITY_STREET_REGEXP = \"^[А-Я][а-я]{3,20}$\";\n String BUILDING_REGEXP = \"^[\\\\d]{1,3}[\\\\w]?$\";\n String FLAT_REGEXP = \"^[\\\\d]{1,3}$\";\n}",
"static String question(String sentence) {\r\n\t\tString result = null;\r\n\t\tif (sentence.contains(\"can you tell me\")) {\r\n\t\t\tint index = sentence.indexOf(\"can you tell me\");\r\n\t\t\tString search = sentence.substring(index + 15);\r\n\t\t\tresult = googleFind(search);\r\n\t\t} else if (sentence.contains(\"do you know\")) {\r\n\t\t\tint index = sentence.indexOf(\"do you know\");\r\n\t\t\tString search = sentence.substring(index + \"do you know\".length());\r\n\t\t\tresult = googleFind(search);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"java.lang.String getCorrectAnswer();",
"public String checkRegularExpression(String input) {\n String actualResult=\"\";\n String pattern=\".*harry*\";\n boolean value= Pattern.matches(pattern,input);\n actualResult+=\"Is harry there?\"+value;\n return actualResult;\n\n }",
"private void SolveCondition() {\n Pattern pt = Pattern.compile(\"(?<!\\\")\\\\[(.*?)\\\\](?<!\\\")\");\n //another greedy matching will be \\[([^}]+)\\]\n Matcher ma = pt.matcher(Input);\n while(ma.find()) {\n if(ma.groupCount()>0){\n System.out.println(ma.group(1));\n }\n }\n\n }",
"@Test\n\tvoid testFormattedRE() {\n\t\tRegularLanguage rl[] = new RegularLanguage[lengthToFormatRE]; \n\t\tint i = 0;\n\t\tfor (String re : toFormatRE) {\n\t\t\trl[i++] = RegularExpression.isValidRE(re);\n\t\t}\n\t\t// Verify if all objects were created\n\t\tfor (RegularLanguage re : rl) {\n\t\t\tif (re.equals(null)) {\n\t\t\t\tfail(); // object couldn't be created\n\t\t\t}\n\t\t}\n\n\t\t// a***** -> a*\n\t\tassertEquals(\"a*\", rl[0].getRE().getFormattedRegex());\n\t\t// aa????? -> a?\n\t\tassertEquals(\"a?\", rl[1].getRE().getFormattedRegex());\n\t\t// a+++++ -> a+\n\t\tassertEquals(\"a+\", rl[2].getRE().getFormattedRegex());\n\t\t// a?*?*?***???* -> a*\n\t\tassertEquals(\"a*\", rl[3].getRE().getFormattedRegex());\n\t\t// a?+?+?+++???+ -> a*\n\t\tassertEquals(\"a*\", rl[4].getRE().getFormattedRegex());\n\t\t// a*+*+*++++***+* -> a*\n\t\tassertEquals(\"a*\", rl[5].getRE().getFormattedRegex());\n\t\t// a?+*?+?***???+++***?+?*+* -> a*\n\t\tassertEquals(\"a*\", rl[6].getRE().getFormattedRegex());\n\t\t\t\n\t}",
"public MAidQuestion(String s) {\n\t\tScanner sc = new Scanner(s);\n\t\tSystem.err.println(\"s: \"+s);\n //test if there is an integer\n\t\ttry {\n\t\t\tsc.nextInt();\n\t\t\tsc.next();\n\t\t} catch (Exception e) {\n\t\t\tsc.next();\n\t\t}\n\t\t\n //tests if there is one and only one question mark\n\t\ts = \"\";\n\t\twhile (sc.hasNextLine()){\n\t\t\ts = s+sc.nextLine().trim()+\" \";\n\t\t}\n\t\ts = s.trim();\n\t\tint lq = s.lastIndexOf('?');\n\t\tint fq = s.indexOf('?');\n\t\tif (fq != lq){\n\t\t\tSystem.out.println(\"bad question:\\n\"+s);\n\t\t\treturn;\n\t\t}\n \n\t\tquestion = s.substring(0,lq+1);\n\t\t//validate the answer\n s = s.substring(lq+1).trim();\n\t\tSystem.out.println(\"ans s: \"+s);\n\t\tint f_ = s.indexOf('_');\n\t\ts = s.substring(0,f_);\n\t\tsc = new Scanner(s);\n\t\tString numS = Util.dollarProcess(sc.next()); //process currency quantity\n\t\ttry {\n\t\t\tanswerNum = Double.parseDouble(numS); //gets answer as a number if possible\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tgoodQ = false; //if we can't represent the answer as a number, badness results\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tanswerObj = sc.nextLine();\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t}\n\t\t\n\t\tif (sc.hasNext()){\n\t\t\tSystem.out.println(\"bad end \"+question+\" \"+answerNum);\n\t\t\tgoodQ = false;\n\t\t}\n\t\tgoodQ = true;\n\t}",
"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 }",
"protected abstract Regex pattern();",
"public static void TestRegex()\n\t{\n\t String line = \" if( aaa&&(ypbreg))\";\n\t String pattern = \"(&&)\\\\s*\\\\(*\\\\s*!?ypbreg\\\\)*\";\n\t // Create a Pattern object\n\t Pattern r = Pattern.compile(pattern);\n\t System.out.println(line.contains(pattern));\n\t // Now create matcher object.\n\t Matcher m = r.matcher(line);\n\t if (m.find( )) {\n\t // System.out.println(\"Found value: \" + m.group(0) );\n\t int count = m.groupCount();\n\t System.out.println(\"group count is \"+count);\n\t for(int i=0;i<count;i++){\n\t System.out.println(m.group(i));\n\t }\n\t // System.out.println(line.replaceFirst(BregPattern.pEqualTrue1, \"!$1\"));\n\n\t } else {\n\t System.out.println(\"NO MATCH\");\n\t }\n\t}",
"public String getPromptRegex() {\r\n\t\treturn null;\r\n\t}",
"public String checkNewQuestions() {\n\t\tint numAnswers = testGenerator.getNumAnswers(questionNo);\n\t\tString question = \"\";\n\n\t\tquestion += testGenerator.getQuestionText(questionNo);\n\t\tquestion += testGenerator.getAnswerText(questionNo, 1);\n\t\tquestion += testGenerator.getAnswerText(questionNo, 2);\n\n\t\tif(numAnswers >= 3) {\n\t\t\tquestion += testGenerator.getAnswerText(questionNo, 3);\n\t\t} \n\t\tif(numAnswers == 4) {\n\t\t\tquestion += testGenerator.getAnswerText(questionNo, 4);\n\t\t}\n\t\treturn question;\n\t}",
"public static String find_a(String question)\n\t{\n\t\t\n\t\tint first_par = 0;\n\t\tint second_par = 0;\n\t\t\n\t\tString a = \"\";\n\t\t\n\t\tfirst_par = question.indexOf(\"(\");\n\t\tsecond_par = question.indexOf(\")\");\n\t\t\n\t\ta = question.substring(first_par+1,second_par);\n\t\t\n\t\t\n\t\treturn a;\n\t}",
"public static void main(String[] args) {\r\n\t\t boolean matches_1 = Pattern.matches(\"[a-zA-Z0-9]{4}\", \"0Aa1\");\r\n\t\t boolean matches_2 = Pattern.matches(\"[a-zA-Z0-9]{4}\", \"0A@a1\");\r\n\t\t\t System.out.println(\"Regular Expression is \"+matches_1 +\" for given string(0Aa1)\");\r\n\t\t\t System.out.println(\"Regular Expression is \"+matches_2 +\" for given string(0A@a1)\");\r\n\t}",
"public String returnRegex() {\n\t\tString chosenRegex;\n\t\tSystem.out.println(\"selectedRegex value is: \" + selectedRegex);\n\t\tswitch (selectedRegex) {\n\t\tcase 1:\n\t\t\tchosenRegex = \"(\\\\&?\\\\??t=\\\\d*?[h]?\\\\d*[m]?\\\\d*[s]|\\\\&t=\\\\d*)\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tchosenRegex = \"(\\\\&list=[a-zA-Z 0-9 -]+\\\\&?index=?\\\\d+?)\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tchosenRegex = \"(\\\\&feature=youtu.be)\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tchosenRegex = \"\\\\?t.*|\\\\&t.*|\\\\&l.*|\\\\&f.*\"; // alternative:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// (\\\\&?\\\\??t=\\\\d*?[h]?\\\\d*[m]?\\\\d*[s]|\\\\&t=\\\\d*|\\\\&list=[a-zA-Z\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0-9 -]*)\n\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(chosenRegex);\n\t\treturn chosenRegex;\n\t}",
"public static String getQuestion() {\n\t\treturn \"3) A line in the xy-plane passes through the origin and has a slope of 1/7. Which of \\\\n\"+\"the following points lies on the line?\";\n\t}",
"public String getRegularExpression() {\n\t\treturn enteredText;\n\t}",
"private String[] getPatterns(StreamTokenizer st) throws IOException {\n\t\t// get language\n\t\tString lang = getLanguageFromTokenizer(st);\n\n\t\tif (st.nextToken() != StreamTokenizer.TT_EOF)\n\t\t\tthrow new IOException(\n\t\t\t\t\t\"PATTERNS takes exactly one (language) or no arguments (default language)!\");\n\n\t\treturn ng.getPatterns(lang);\n\t}",
"public MyStringBuilder2 [] regMatch(String [] pats)\n\t{\n\t\t//System.out.print(\"hi\");\n\t\t\tMyStringBuilder2[] answers = new MyStringBuilder2[pats.length];\n\t\t\tMyStringBuilder2[] finals = new MyStringBuilder2[pats.length];\n\t\t\tfinals = recursiveArrayAdd(finals, pats, 0);\n\t\t\tif(finals[0] == null) {\n\t\t\t\tfinals = null;\n\t\t\t}\n\t\t\treturn finals;\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\t\n\t\t //1.Write a regex to split String by new line?\n\t\t String regex=\" \";\n\t\t String regex1=\"\\\\n+\"; //Split by new line\n\t\t \n\t\t String regex2=\"\\\\r?\"; //Split by new line also called carraiage return\n\t\t String regex3=\"\\\\r?\\\\n\";//Answer\n\t\t String s =\"subhash is \\n good \\n\\n boy\";\n\t\t String s1 =\"subhash is \\r good boy\";\n\t\t System.out.println(s1);\n\t\t String[] string = s.split(\"\\\\n\");\n\t\t String[] string1 = s.split(\"\\\\n?\");\n\t\t String[] string2 = s.split(\"\\\\n*\");\n\t\t String[] string3 = s.split(\"\\\\n+\");\n\t\t \n\t\t String[] string4 = s.split(\"\\\\n??\");\n\t\t String[] string5 = s.split(\"\\\\n*?\");\n\t\t String[] string6 = s.split(\"\\\\n+?\");\n\t\t \n\t\t String[] string7 = s.split(\"\\\\n?+\");\n\t\t String[] string8 = s.split(\"\\\\n*+\");\n\t\t String[] string9 = s.split(\"\\\\n++\");\n\t\t \n\t\t \n\t\t for(String ss: string)\n\t\t\t System.out.print(ss);\n\t\t \n\t\t //2.What is use of Dot(.) symbol in Java Regex? . represents any number of any characters\n\t\t \n\t\t //3. How to extract a substring using regex ? Example - String test = \"This is a test String and 'This is data we want'\"\n\t\t \n\t\t String input =\"This is a test String and 'This is data we want'\";\n\t\t Pattern pattern = Pattern.compile(\"(')(.*?)(')\");//reluctant quantifier\n\t\t Matcher matcher = pattern.matcher(input);\n\t\t \n\t\t while(matcher.find())\n\t\t {\n\t\t\t System.out.println(matcher.group(1)+matcher.group(2)+matcher.group(3));\n\t\t\t //'This is data we want'\n\t\t }\n\t\t \n\t\t /*\n\t\t \t\n\t\t \t*\t\t\tZero or more occurrences\t\t\t\t\t. * - Any sequence\n\t\t\t?\t\t\tZero or one occurrences(Optional)\t\t\t[0-9]? - Any optional digit\n\t\t\t+\t\t\tOne or more occurrences\t\t\t\t\t\t[0-9]+ - One or more digit\n\t\t\t{x}\t\t\tx instance of occurrences\t\t\t\t\tm{5} - Five instances of the letter m\n\t\t\t{x,y}\t\tbetween x and y instances of occurrences\t[0-9]{13,19} - Between 13 and 19 occurrences\n\t\t\t{x,}\t\tat least x instances of occurrences\t\t\t.{8,} - At least 8 characters\n\t\t \n\t\t \n\t\t */\n\t\t \n\t\t //4. What is difference between matches() and find() in Java Regex?\n\t\t //matches() returns true only if the whole string matches the specified pattern while find() returns trues even if a substring matches the pattern.\n\t\t \n\t\t \n\t\t //5.How to replace all non-alphanumeric characters with empty strings?\n\t\t \n\t\t \n\t\t System.out.println(\"a1A*()\".replaceAll(\"(?i)[a-z0-9]\",\"\"));//*()\n\t\t System.out.println(\"a1A*()\".replaceAll(\"[a-z0-9A-Z]\",\"\"));//*()\n\t\t \n\t\t \n\t\t \n\t\t //How to replace 2 or more spaces with single space in string and delete leading and trailing spaces?\n\t\t System.out.println(\"a b c \".replaceAll(\"\\\\s{1,}\",\" \").trim());\n\t\t \n\t\t //Create a regular expression that accepts alphanumeric characters only. Its length must be five characters long only\n\t\t System.out.println(Pattern.matches(\"(?i)[a-z0-9]{5}\",\"java1\"));//true- Matches check for the whole of input with the regex\n\t\t System.out.println(Pattern.matches(\"(?i)[a-z0-9]{5}\",\"subhad\"));//false\n\t\t \n\t\t //Create a regular expression that accepts 10 digit numeric characters starting with 1, 2 or 3 only.\n\t\t System.out.println(Pattern.matches(\"[123][0-9]{9}\", \"\"));\n\t\t System.out.println(Pattern.matches(\"[123]{1}[0-9]{9}\",\"\"));\n\t\t System.out.println(Pattern.matches(\"[123]{1}[\\\\d]{9}\",\"\"));\n\t\t \n\t\t \n\t\t //How to extract nos from a string\n\t\t List<Integer> list = new ArrayList<>();\n\t\t Pattern pattern1 = Pattern.compile(\"\\\\d+\");\n\t\t Matcher matcher1 = pattern1.matcher(\"1234dfdf4573dfdf5555d2fdf5555df55dfdfd513\");\n\t\t while(matcher1.find())\n\t\t {\n\t\t\t list.add(Integer.parseInt(matcher1.group()));\n\t\t }\n\t\t System.out.println();\n\t\t list.forEach(e->System.out.print(e+\":\"));// 1234:4573:5555:2:5555:55:513: one or more occurrence are grouped together \n\t\t System.out.println();\n\t\t \n\t\t //Pattern pattern1 = Pattern.compile(\"\\\\d\"); will print 1:2:3:4:4:5:7:3:5:5:5:5:2:5:5:5:5:5:5:5:1:3:\n\t\t \n\t\t \n\t\t System.out.println(\"***********\");\n\t\t //\tHow to split Java String by newlines?\n\t\t //\t\\r and \\n CR and LF used in windows\n\t\t \n\t\t \n\t\t String lines[]= \"lk\\r\\rdfdf\\nsd\\rfsdf\\nzsff\".split(\"[\\\\r?\\\\n]\");\n\t\t // lk::dfdf:sd:fsdf:zsff: this will check for each match of \\r or \\n and insert empty lines if there are consecutive line separators\n\t\t \n\t\t lines= \"lk\\r\\rdfdf\\nsd\\rfsdf\\nzsff\".split(\"[\\\\r\\\\n]+\");\n\t\t //lk:dfdf:sd:fsdf:zsff: - if you do not want empty lines\n\t\t \n\t\t //Importance of Pattern.compile()\n\t\t /*\n\t\t A regular expression, specified as a string, must first be compiled into an instance of Pattern class. \n\t\t Pattern.compile() method is the only way to create a instance of object. A typical invocation sequence is thus\n\t\t */\n\n\t\t \n\t\t \n\t\t System.out.println(Pattern.matches(\".s\", \"as\"));//true (2nd char is s) \n\t\t System.out.println(Pattern.matches(\".s\", \"mk\"));//false (2nd char is not s) \n\t\t System.out.println(Pattern.matches(\".s\", \"mst\"));//false (has more than 2 char) \n\t\t System.out.println(Pattern.matches(\".s\", \"amms\"));//false (has more than 2 char) \n\t\t System.out.println(Pattern.matches(\"..s\", \"mas\"));//true (3rd char is s) \n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t}",
"boolean hasRegex();",
"@BeforeEach\n\tvoid setUpValidRE(){\n\t\tvalidRE= new String[lengthValid];\n\t\t// ab\n\t\tvalidRE[0] = \"ab\";\n\t\t// (ab)\n\t\tvalidRE[1] = \"(ab)\";\n\t\t//(ab)*\n\t\tvalidRE[2] = \"(ab)*\";\n\t\t// a???\n\t\tvalidRE[3] = \"a???\";\n\t\t// a***\n\t\tvalidRE[4] = \"a***\";\n\t\t// a+++\n\t\tvalidRE[5] = \"a+++\";\n\t\t// (((a)))\n\t\tvalidRE[6] = \"(((a)))\";\n\t\t// (a | ab | c*)*\n\t\tvalidRE[7] = \"(a | ab | c*)*\";\n\t\t// (a | ab | c*)**??\n\t\tvalidRE[8] = \"(a | ab | c*)*??\";\n\t\t// ( a | (ab | cd)+ )+\n\t\tvalidRE[9] = \"(a | (ab | cd)+)+\";\n\t\t// 0 (01 | (02) * | (03)++) | (1?01?)\n\t\tvalidRE[10] = \"0 (01 | (02) * | (03)++) | (a?01?)\";\n\t\t// a | &\n\t\tvalidRE[11] = \"a | &\";\n\t\t// &*\n\t\tvalidRE[12] = \"&*\";\n\t\t// (())* (empty language)\n\t\tvalidRE[13] = \"(())*\";\n\t\t// (a*b)*\n\t\tvalidRE[14] = \"(a*b)*\";\n\t\t// (a | & | a*b?c+)*\n\t\tvalidRE[15] = \"(a | & | a*b?c+)*\";\n\t}",
"public static void main(String[] args) {\n String myRegExString = \"[a-zA-Z\\\\s]+\";\n\n // This is the string we will check to see if our regex matches:\n String myString = \"The quick brown fox jumped over the lazy dog...\";\n\n // Create a Pattern object (compiled RegEx) and save it as 'p'\n Pattern p = Pattern.compile(myRegExString);\n\n // We need a Matcher to match our compiled RegEx to a String\n Matcher m = p.matcher(myString);\n\n // if our Matcher finds a match\n if (m.find()) {\n // Print the match\n System.out.println(m.group());\n }\n\n String s = \"Hello, Goodbye, Farewell\";\n Pattern p1 = Pattern.compile(\"\\\\p{Alpha}+\");\n Matcher m1 = p1.matcher(s);\n\n while( m.find() ){\n System.out.println(m1.group());\n }\n\n String s1 = \"Hello, Goodbye, Farewell\";\n String s2 = \"Hola, Adios, Hasta Luego\";\n\n String myDelimiter = \", \";\n\n String[] s1array = s1.split(myDelimiter);\n String[] s2array = s2.split(myDelimiter);\n\n System.out.println(\"s1array[0]: \" + s1array[0]);\n System.out.println(\"s1array[1]: \" + s1array[1]);\n System.out.println(\"s1array[2]: \" + s1array[2]);\n System.out.println(\"s2array[0]: \" + s2array[0]);\n System.out.println(\"s2array[1]: \" + s2array[1]);\n System.out.println(\"s2array[2]: \" + s2array[2]);\n\n }",
"com.google.privacy.dlp.v2.CustomInfoType.Regex getRegex();",
"private String getMatchPattern(String pattern) {\n String mandatoryPart = pattern.trim().replaceAll(\"(\\\\s+?)\\\\[.+?\\\\]\", \"($1.+?(\\\\\\\\s|\\\\$))*\");\n mandatoryPart = mandatoryPart.replaceAll(\"\\\\s+\", \"\\\\\\\\s+\");\n return mandatoryPart.replaceAll(\"<.+?>\", \".+?\");\n }",
"public void setQuestions() {\n\t\tString question1 = str1 + _QwdQuestionFst;\n\t\tSpannableString sb1 = new SpannableString(question1);\n\t\tsb1.setSpan(new ForegroundColorSpan(Color.BLACK), str1.length() ,\n\t\t\t\tsb1.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);\n\t\t_FPTV_Question_1.setText(sb1);\n\n\t\tString question2 = str2 + _QwdQuestionSec;\n\t\tSpannableString sb2 = new SpannableString(question2);\n\t\tsb2.setSpan(new ForegroundColorSpan(Color.BLACK), str2.length() ,\n\t\t\t\tsb2.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);\n\t\t_FPTV_Question_2.setText(sb2);\n\t}",
"public String corrector () {\n String aux = tabla_lexica.peek();\n \n if (aux.equals(\"$\") || aux.equals(\".\") || aux.equals(\"(\") || aux.equals(\")\") || aux.equals(\",\") || aux.equals(\"'\") || aux.equals(\"+\") || aux.equals(\"-\") || aux.equals(\"*\") || aux.equals(\"/\") || aux.equals(\"r\") || aux.equals(\"i\") || aux.equals(\"d\") || aux.equals(\"a\")) {\n return aux;\n } \n \n Pattern p1 = Pattern.compile(\"(([>\\\\<])+([=])|[(\\\\)\\\\;\\\\+\\\\-\\\\–\\\\*\\\\/\\\\'\\\\’\\\\‘\\\\,\\\\.\\\\>\\\\<\\\\=]|([@0-9A-Za-z]*)+([#\\\\.\\\\%\\\\_\\\\-]*)?[0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)\"\n + \"|([@A-Za-z]*)+([#\\\\%\\\\_\\\\-]*)?[A-Za-z0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)|[!\\\\$\\\\%\\\\&\\\\?\\\\¿\\\\¡\\\\_]|[a-zA-Z])\");\n \n Matcher m2 = p1.matcher(aux);\n while (m2.find()) {\n if(m2.group().matches(\"SELECT|FROM|WHERE|IN|AND|OR|CREATE|TABLE|CHAR|NUMERIC|NOT|NULL|CONSTARINT|KEY|PRIMARY|FOREIGN|REFERENCES|INSERT|INTO|VALUES|GO|CREATE|PROCEDURE|VARCHAR\"\n + \"|AS|IF|EXISTS|BEGIN|PRINT|END|ELSE\")) //Palabras reservadas\n {\n String pal = m2.group();\n switch (pal) {\n case \"SELECT\": aux = \"s\";\n auxLinea = m2.group();\n break;\n case \"FROM\": aux = \"f\";\n auxLinea = m2.group();\n break;\n case \"WHERE\": aux = \"w\";\n auxLinea = m2.group();\n break;\n case \"IN\": aux = \"n\";\n auxLinea = m2.group();\n break;\n case \"AND\": aux = \"y\";\n auxLinea = m2.group();\n break;\n case \"OR\": aux = \"o\";\n auxLinea = m2.group();\n break;\n case \"CREATE\": aux = \"c\";\n auxLinea = m2.group();\n break;\n case \"TABLE\": aux = \"t\";\n auxLinea = m2.group();\n break;\n case \"CHAR\": aux = \"h\";\n auxLinea = m2.group();\n break;\n case \"NUMERIC\": aux = \"u\";\n auxLinea = m2.group();\n break;\n case \"NOT\": aux = \"e\";\n auxLinea = m2.group();\n break;\n case \"NULL\": aux = \"g\";\n auxLinea = m2.group();\n break;\n case \"CONSTRAINT\": aux = \"b\";\n auxLinea = m2.group();\n break;\n case \"KEY\": aux = \"k\";\n auxLinea = m2.group();\n break;\n case \"PRIMARY\": aux = \"p\";\n auxLinea = m2.group();\n break;\n case \"FOREIGN\": aux = \"j\";\n auxLinea = m2.group();\n break;\n case \"REFERENCES\": aux = \"l\";\n auxLinea = m2.group();\n break;\n case \"INSERT\": aux = \"m\";\n auxLinea = m2.group();\n break;\n case \"INTO\": aux = \"q\";\n auxLinea = m2.group();\n break;\n case \"VALUES\": aux = \"v\";\n auxLinea = m2.group();\n break;\n }\n } else {\n \n }\n }\n return aux;\n }",
"public String[] getAnswers()\n\t{\n\t\treturn answers;\t\n\t}",
"private void detectQuestionType(String userMessage) {\n String firstWord = firstWord(userMessage).toLowerCase();\n List<String> answer;\n if (firstWord.equals(\"where\")) {\n answer = additionalDB.get(\"where\");\n } else if (firstWord.equals(\"when\")) {\n answer = additionalDB.get(\"when\");\n }else {\n \tanswer = additionalDB.get(\"ques\");\n }\n responsesList.add(new Response(getRandomElementFromList(answer)));\n }",
"public String validateRegexFormat(String input) {\n String regexFootball = \"^(.+?)(\\\\d+)-(\\\\d+)(.+?)$\";\n // Regex to check valid tennis game.\n String regexTennis = \"^(.+?) (\\\\W)(\\\\d+)(\\\\W) (\\\\d+) (.{2,})-(.{2,}) (\\\\W)(\\\\d+)(\\\\W) (.+?)$\";\n // Regex to check valid american football game.\n String regexAmericanFootball = \"^(.+?) (\\\\d+)-(\\\\d+) (.+) (.+(?= Quarter)) (Quarter)$\";\n\n\n if (input.matches(regexAmericanFootball)) {\n return this.getAmericanFootballResult(input);\n } else if (input.matches(regexTennis)) {\n return this.getTennisResult(input);\n } else if (input.matches(regexFootball)) {\n return this.getFootballResult(input);\n } else {\n return \"Format not detected! Verify the input text.\";\n }\n\n }",
"public static void main(String[] args) {\n\t\tString str = \"32+5*2-40/3\";\r\n\t\t/*\r\n\t\tPattern p = Pattern.compile(\"(([0-9]+)(\\\\+\\\\-\\\\*\\\\/)?)+\");\r\n\t\tMatcher m = p.matcher(str);\r\n\t\tSystem.out.println(m.find());\r\n\t\tSystem.out.println(m.groupCount());\r\n\t\tSystem.out.println(m.group(1));\r\n\t\tSystem.out.println(m.group(2));\r\n\t\tSystem.out.println(m.group(3));\r\n\t\t*/\r\n\t\tString[] sub = str.split(\"\\\\+|\\\\-|\\\\*|\\\\/\");\r\n\t\tfor(String s : sub) {\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\t\r\n\t}",
"public String getQuestionStr(Node q) {\n \n \t\tString s;\n \n \t\ts = q.getMinStr();\n \t\tif (s != null)\n \t\t\tq.setMinDatum(parser.parse(evidence,s));\n \t\telse\n \t\t\tq.setMinDatum(null);\n \n \t\ts = q.getMaxStr();\n \t\tif (s != null)\n \t\t\tq.setMaxDatum(parser.parse(evidence,s));\n \t\telse\n \t\t\tq.setMaxDatum(null);\n \n \t\tq.createParseRangeStr();\n \n \t\tq.setQuestionAsAsked(parser.parseJSP(evidence, q.getQuestionOrEval()) + q.getQuestionMask());\n \t\treturn q.getQuestionAsAsked();\n \t}",
"private String parseRegExp(String exp) throws Exception {\r\n\t\treturn RegexpTranslationHelper.translateANTLRToAutomatonStyle(exp);\r\n\t}",
"String getAnswerResponse();",
"@NonNull\n public String[] getPossibleAnswers() {\n return new String[]{firstAnswer, secondAnswer, thirdAnswer, fourthAnswer};\n }",
"public java.util.List<java.lang.CharSequence> getAnswers() {\n return Answers;\n }",
"private Annotation[] testRegEx(String regEx) {\n\t\tQueriableAnnotation data = this.parent.getActiveDocument();\n\t\treturn ((data == null) ? null : Gamta.extractAllMatches(data, regEx, 64));\n\t}",
"public Pattern getValidStringPattern();",
"public boolean match( DataExp p ) { return false; }",
"@Test\n public void testPatter(){\n String str = \"select * from t_user where deletea dropa\";\n str = str.toUpperCase();\n // String re = \"(update|delete|insert|drop|alter)\";\n // String re = \"(update\\\\b)|(delete\\\\b)|(insert)|(drop)|(alter)\";\n // String re = \"\\\\b[(update)|(delete)|(insert)|(drop)|(alter)\\\\b\";\n // System.out.println(str.indexOf(\"updatea\"));\n // System.out.println(\"update\".matches(str));\n // System.out.println(str.matches(re));\n /* System.out.println(re.matches(str));\n String[] ss = str.split(re);\n System.out.println(ss.length);\n for(String s: ss){\n System.out.println(s);\n }*/\n\n String re =\"(\\\\bupdate\\\\b)|(\\\\bdelete\\\\b)|(\\\\binsert\\\\b)|(\\\\bdrop\\\\b)|(\\\\balter\\\\b)\";\n Pattern p = Pattern.compile(re,Pattern.CASE_INSENSITIVE );\n Matcher m = p.matcher(str);\n System.out.println(m.find());\n\n }",
"public java.util.List<java.lang.CharSequence> getAnswers() {\n return Answers;\n }",
"public static String[] randomQuestions(String op){\r\n String question = \"\";\r\n String ansStr = \"\";\r\n \r\n int part1 = randomNumber();\r\n int part2 = randomNumber();\r\n int ans = 0;\r\n double roundAns = 0.0;\r\n \r\n if (op.equals(\"^\")){\r\n //Round to Closest Whole Number\r\n roundAns = (randomDecimal());\r\n double k = Math.round(roundAns);\r\n \r\n question = Double.toString(roundAns);\r\n ansStr = Double.toString(k);\r\n }\r\n else if (op.equals(\"Alg\")){\r\n //Algebraic Formula - Find x/y\r\n int coeff = randomNumberAlg();\r\n int layout = randomNumber();\r\n part1 = randomNumberAlg();\r\n part2 = randomNumberAlg();\r\n \r\n if (layout < 3){\r\n //?x = int\r\n ans = part1 * coeff;\r\n \r\n question = coeff+\"x = \"+ ans;\r\n ansStr = Integer.toString(part1);\r\n \r\n } else if (layout > 3 && layout <= 7){\r\n //?x+num = int || ?x-num = int\r\n if (layout == 4||layout == 5){\r\n ans = (part1 * coeff) + part2;\r\n \r\n question = coeff+\"x + \"+part2+\" = \"+ans;\r\n ansStr = Integer.toString(part1);\r\n } else if (layout == 6||layout == 7){\r\n ans = (part1 * coeff) - part2;\r\n \r\n question = coeff+\"x - \"+part2+\" = \"+ans;\r\n ansStr = Integer.toString(part1);\r\n } \r\n } else if (layout > 7 && layout <= 10){\r\n //?x/num = int \r\n ans = (part1 * coeff)/part2;\r\n \r\n question = coeff+\"x/\"+part2+\" = \"+ ans;\r\n ansStr = Integer.toString(part1);\r\n } \r\n }\r\n else if (op.equals(\"%\")){\r\n //Precentages - Covert Fraction to Percentage\r\n int div = HCF(part1, part2);\r\n int finalp1 = part1 % div;\r\n int finalp2 = part2 % div;\r\n \r\n if (finalp1 == 0){\r\n finalp1 = randomNumberRatio();\r\n }\r\n if (finalp2 == 0){\r\n finalp2 = randomNumberRatio();\r\n }\r\n \r\n double fract = finalp1/finalp2;\r\n \r\n if (finalp1>finalp2){\r\n fract = finalp1/finalp2;\r\n question = finalp1+\"/\"+finalp2;\r\n }\r\n else {\r\n fract = finalp2/finalp1;\r\n question = finalp2+\"/\"+finalp1;\r\n }\r\n \r\n double perc = fract * 100;\r\n \r\n ansStr = Double.toString(perc);\r\n \r\n }\r\n else if (op.equals(\":\")){\r\n //Ratio - Simplifying\r\n part1 = randomNumberRatio();\r\n part2 = randomNumberRatio();\r\n int div = HCF(part1, part2);\r\n int finalp1 = part1 / div;\r\n int finalp2 = part2 / div;\r\n \r\n question = part1+\":\"+part2;\r\n ansStr = finalp1+\":\"+finalp2;\r\n }\r\n\r\n else if (op.equals(\"//\")){\r\n //Fractions - Simplifying\r\n int div = HCF(part1, part2);\r\n int finalp1 = part1 % div;\r\n int finalp2 = part2 % div;\r\n \r\n question = part1+\"/\"+part2;\r\n ansStr = finalp1+\"/\"+finalp2;\r\n \r\n }\r\n \r\n String x[] = new String[2];\r\n x[0] = question;\r\n x[1] = ansStr;\r\n \r\n return x;\r\n }",
"@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}",
"public String getAnswer(String question) {\n for (Map.Entry<String, String> entry : questions.entrySet()) {\n if(question.matches(entry.getKey())) {\n if(!answers.containsKey(entry.getValue())) {\n logger.warning(\"Question matches, but we don't have answer ID \" + entry.getValue());\n break;\n }\n\n return answers.get(entry.getValue());\n }\n }\n return null;\n }",
"public static String find_b(String question)\n\t{\n\t\tint first_par = 0;\n\t\tint second_par = 0;\n\t\tint third_par = 0;\n\t\tint fourth_par = 0;\n\t\tString b = \"\";\n\t\t\n\t\tfirst_par = question.indexOf(\"(\");\n\t\tsecond_par = question.indexOf(\")\");\n\t\t\n\t\t\n\t\tthird_par = question.indexOf(\"(\", second_par+1);\n\t\tfourth_par = question.indexOf(\")\", second_par+1);\n\t\t\n\t\tb = question.substring(third_par + 1,fourth_par);\n\t\t\n\t\treturn b;\n\t}",
"public static String getRegularExpressionHelpHtml() {\n\t\treturn L10n.getInstance().getString(\"regexHelp\");\n\t}",
"public ArrayList<Query> processQuery(String[] questionQueryLines){\r\n\t\t\r\n\t\tArrayList<Query> queryReplyList = new ArrayList<Query>();\r\n\t\tfor (String query : questionQueryLines) {\r\n\t\t\t\r\n\t\t\tif (query.toLowerCase().startsWith(galacticToRomanQry)){\r\n\t\t\t\tQuery galacticToRomanQuery = QueryFactory.GalacticToRomanQuery(query);\r\n\t\t\t\tqueryReplyList.add(galacticToRomanQuery);\r\n\t\t\t}\r\n\t\t\telse if (query.toLowerCase().startsWith(metalPriceQry)){\r\n\t\t\t\tQuery metalPriceQuery = QueryFactory.MetalPriceQuery(query);\r\n\t\t\t\tqueryReplyList.add(metalPriceQuery);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn queryReplyList;\r\n\t}",
"@Override\n public boolean isCorrect() {\n //if we're ignoring spaces, remove them from the accepted answers as well when checking\n for(String correctAnswer: correctAnswers) {\n if(ignoreSpace) {\n //create a regex based on this possible correct answer.\n final StringBuilder regexBuilder = new StringBuilder();\n //split up the answer between the 'words'\n String[] splitAnswer = correctAnswer.split(\"\\\\s+\"); //split on spaces (on ignorable spaces)\n for(String part: splitAnswer) {\n regexBuilder.append(Pattern.quote(part)).append(\" *\");\n }\n regexBuilder.setLength(regexBuilder.length()-2); //cut last unnecessary \" *\"\n String answerRegexString = regexBuilder.toString().replaceAll(DO_NOT_IGNORE_SPACE, \" \");\n //compile regex pattern\n Pattern answerRegex;\n if(ignoreCase) {\n answerRegex = Pattern.compile(answerRegexString, Pattern.CASE_INSENSITIVE);\n } else {\n answerRegex = Pattern.compile(answerRegexString);\n }\n //possible case insensitivity is taken care of\n if(answerRegex.matcher(enteredAnswer).matches()) return true;\n } else {\n if(ignoreCase) {\n if(correctAnswer.equalsIgnoreCase(enteredAnswer)) return true;\n } else {\n if(correctAnswer.equals(enteredAnswer)) return true;\n }\n }\n }\n return false;\n }",
"private void printAnswerResults(){\n\t\tSystem.out.print(\"\\nCorrect Answer Set: \" + q.getCorrectAnswers().toString());\n\t\tSystem.out.print(\"\\nCorrect Answers: \"+correctAnswers+\n\t\t\t\t\t\t \"\\nWrong Answers: \"+wrongAnswers);\n\t}",
"public static void main(String[] args) {\n String s = \"acdcb\", p = \"a*?b\";//true\n System.out.println(isMatch(s, p));\n }",
"public void readQuestion()\n\t{\n\t\tnumLines = (int)numScan.nextDouble();\n\t\tquestion = stringScan.nextLine();\n\t}",
"public static void main(String[] args) {\n String regex = \"[1-3[5-7]]\";\n String input = \"1234567890\";\n\n // Compiles the given regular expression into a pattern.\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(input);\n\n // Find matches and print it\n while (matcher.find()) {\n System.out.format(\"Text \\\"%s\\\" found at %d to %d.%n\",\n matcher.group(), matcher.start(),\n matcher.end());\n }\n }",
"Match getMatches();",
"public static String[] extractMultipleChoices(String answer) {\n if (answer == null) {\n return new String[]{};\n }\n return answer.split(ANSWER_DELIMITER);\n }",
"public String printOutQuestion()\n\t{\n\t\tRandom rand = new Random();\n\t\tString[] answers = new String[4];\n\t\tString returnString;\n\t\tanswers[0] = answer;\n\t\tanswers[1] = falseAnswers[0];\n\t\tanswers[2] = falseAnswers[1];\n\t\tanswers[3] = falseAnswers[2];\n\t\tString firstAns = \"\", secondAns = \"\", thirdAns = \"\", fourthAns = \"\";\n\t\t\n\t\twhile(firstAns == secondAns || firstAns == thirdAns || firstAns == fourthAns || secondAns == thirdAns || secondAns == fourthAns || thirdAns == fourthAns)\n\t\t{\n\t\t\tfirstAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(firstAns); Used for debugging\n\t\t\tsecondAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(secondAns); Used for debugging\n\t\t\tthirdAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(thirdAns); Used for debugging\n\t\t\tfourthAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(fourthAns); Used for debugging\n\t\t}\n\t\t\n\t\tanswerA = firstAns;\n\t\tanswerB = secondAns;\n\t\tanswerC = thirdAns;\n\t\tanswerD = fourthAns;\n\t\t//System.out.println(questionString + \"Answer A: \" + firstAns + \"Answer B: \" + secondAns + \"Answer C: \" + thirdAns + \"Answer D: \" + fourthAns); Used for debugging\n\t\treturnString = questionString + \"?\"; \n\t\tSystem.out.println(\"Actual Answer is: \" + answer);\n\t\treturn returnString;\n\t}",
"public String getRegEx() {\r\n return regex;\r\n }",
"public static String addPuctuation(String input) {\n // Sentence Openers \n input = input.replace(\"hello\", \"hello,\");\n input = input.replace(\"hi\", \"hi!\");\n input = input.replace(\"heya\", \"heya!\");\n input = input.replace(\"hey\", \"hey,\");\n input = input.replace(\"greetings\", \"greetings,\");\n input = input.replace(\"good morning\", \"good morning,\");\n input = input.replace(\"good evening\", \"good evening,\");\n input = input.replace(\"good afternoon\", \"good afternoon!\");\n \n\n // Words ending in nt \n input = input.replace(\"isnt\", \"isn't\");\n input = input.replace(\"cant\", \"can't\");\n input = input.replace(\"wont\" , \"won't\");\n input = input.replace(\"dont\" , \"don't\");\n input = input.replace(\"would\", \"wouldn't\");\n input = input.replace(\"hadnt\", \"hadn't\");\n input = input.replace(\"aint\", \"ain't\");\n input = input.replace(\"arent\", \"aren't\");\n input = input.replace(\"didnt\", \"didn't\");\n input = input.replace(\"doesnt\" , \"doesn't\");\n input = input.replace(\"dont\" , \"don't\");\n input = input.replace(\"dont\", \"don't\");\n input = input.replace(\"hasnt\", \"hasn't\");\n input = input.replace(\"shoudlnt\", \"shouldn't\");\n input = input.replace(\"couldnt\", \"couldn't\");\n input = input.replace(\"wasnt\", \"wasn't\");\n input = input.replace(\"werent\" , \"were't\");\n input = input.replace(\"wouldnt\" , \"wouldn't\");\n\n //Questions\n String q1 = \"what\";\n String q2 = \"when\";\n String q3 = \"where\";\n String q4 = \"which\";\n String q5 = \"who\";\n String q6 = \"whom\";\n String q7 = \"whose\";\n String q8 = \"why\";\n String q9 = \"how\";\n\n if (input.contains(q1) || input.contains(q2) || input.contains(q3) \n || input.contains(q4) || input.contains(q5) || input.contains(q6) \n || input.contains(q7) || input.contains(q8) || input.contains(q9)) \n {\n input = input + \"?\";\n }\n\n else\n {\n input = input + \".\";\n }\n\n\n //Other\n input = input.replace(\"however\", \"however,\");\n input = input.replace(\"ill\" , \"i'll\");\n input = input.replace(\"im\", \"i'm\");\n return input;\n }",
"public static void main2(String args[]) {\n String s1 = \"2009-03-10T16:08:55.184 -0600 [ 16621850][ 162233] INFO - thredds.server.opendap.NcDODSServlet - Remote host: 128.117.140.71 - Request: \\\"GET /thredds/dodsC/model/NCEP/NAM/CONUS_80km/NAM_CONUS_80km_20090309_0000.grib1.dods?Geopotential_height%5B7:1:7%5D%5B0:10:10%5D%5B0:1:64%5D%5B0:1:92%5D HTTP/1.1\\\"\";\r\n // 1 2 3 4 5 6 7 8 9\r\n Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n\r\n show(s1, p1);\r\n\r\n // 1 2 3 4 5 6 7 8 9\r\n String s2 = \"2009-03-10T16:08:54.617 -0600 [ 16621283][ 162230] INFO - thredds.server.opendap.NcDODSServlet - Request Completed - 200 - -1 - 47\";\r\n // 1 2 3 4 5 6 7 8 9\r\n Pattern p2 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Request Completed - (\\\\d+) - (.*) - (.*)\");\r\n// Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n\r\n show(s2, p2);\r\n\r\n// Pattern p2 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Request Completed - (\\\\d+) - (.*) - (.*)\");\r\n// Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n Pattern p3 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - (.*)\");\r\n\r\n show(s1, p3);\r\n show(s2, p3);\r\n\r\n }",
"public static String produceAnswer(String input) {\n // TODO: Implement this function to produce the solution to the input\n \n // Parsing one line of input\n int space = input.indexOf(\" \"); // find the index of the first space\n String operandOne = input.substring(0, space); // substring of beginning to space before operator\n \n String newString1 = input.substring(space + 1, input.length());\n int space2 = newString1.indexOf(\" \"); // find the index of the second space\n String operator = newString1.substring(0, space2); // operator is between the first space and the second space\n \n String newString2 = newString1.substring(space2, newString1.length());\n String operandTwo = newString2.substring(space2, newString2.length()); // substring of space after operator to the end\n \n \n // Multiple operations\n while (operandTwo.indexOf(\" \") > 0) {\n int space3 = operandTwo.indexOf(\" \");\n String value = operandTwo.substring(0, space3);\n String new_String3 = operandTwo.substring(space3 + 1, operandTwo.length());\n int space4 = new_String3.indexOf(\" \");\n String operator2 = new_String3.substring(space4 - 1, space4);\n operandTwo = new_String3.substring(space4 + 1, new_String3.length());\n String new_equation = operandOne + \" \" + operator + \" \" + value;\n operandOne = produceAnswer(new_equation);\n operator = operator2;\n }\n \n // Parsing fractions: Operand 1\n String whole1 = operandOne; // hi_\n String num1 = \"\";\n String denom1 = \"\";\n int slash1 = operandOne.indexOf(\"/\");\n \n if (slash1 > 0) {\n int underscore1 = operandOne.indexOf(\"_\");\n if (underscore1 > 0) {\n whole1 = operandOne.substring(0, underscore1);\n num1 = operandOne.substring(underscore1 + 1, slash1);\n denom1 = operandOne.substring(slash1 + 1, operandOne.length());\n } else {\n whole1 = \"0\";\n num1 = operandOne.substring(underscore1 + 1, slash1);\n denom1 = operandOne.substring(slash1 + 1, operandOne.length());\n }\n \n } else {\n num1 = \"0\";\n denom1 = \"1\";\n }\n \n // Parsing fractions: Operand 2\n String whole2 = operandTwo;\n String num2 = \"\";\n String denom2 = \"\";\n int slash2 = operandTwo.indexOf(\"/\");\n \n if (slash2 > 0) {\n int underscore2 = operandTwo.indexOf(\"_\");\n if (underscore2 > 0) {\n whole2 = operandTwo.substring(0, underscore2);\n num2 = operandTwo.substring(underscore2 + 1, slash2);\n denom2 = operandTwo.substring(slash2 + 1, operandTwo.length());\n } else {\n whole2 = \"0\";\n num2 = operandTwo.substring(underscore2 + 1, slash2);\n denom2 = operandTwo.substring(slash2 + 1, operandTwo.length());\n }\n \n } else {\n num2 = \"0\";\n denom2 = \"1\";\n }\n \n \n // change strings to integers\n int intwhole1 = Integer.parseInt(whole1);\n int intnum1 = Integer.parseInt(num1);\n int intdenom1 = Integer.parseInt(denom1);\n \n int intwhole2 = Integer.parseInt(whole2);\n int intnum2 = Integer.parseInt(num2);\n int intdenom2 = Integer.parseInt(denom2);\n \n // convert to improper fraction\n intnum1 += intdenom1 * Math.abs(intwhole1);\n if (intwhole1 < 0) {\n intnum1 *= -1;\n }\n \n intnum2 += intdenom2 * Math.abs(intwhole2);\n if (intwhole2 < 0) {\n intnum2 *= -1;\n }\n \n int finalnum = 0;\n int finaldenom = 0;\n int finalwhole = 0;\n \n // if denominator equals 0, quit\n if (intdenom1 == 0 || intdenom2 == 0) {\n return \"Invalid\";\n }\n \n // if operator is incorrect, quit\n if (operator.length() > 1) {\n return \"Invalid\";\n }\n \n // addition calculation\n // multiply whole values to fraction to get a common denominator\n if (operator.equals(\"+\")) {\n intnum1 *= intdenom2;\n intnum2 *= intdenom1;\n finalnum = intnum1 + intnum2;\n finaldenom = intdenom1 * intdenom2;\n }\n \n // subtraction calculation\n if (operator.equals(\"-\")) {\n intnum1 *= intdenom2;\n intnum2 *= intdenom1;\n finalnum = intnum1 - intnum2;\n finaldenom = intdenom1 * intdenom2;\n }\n \n // multiplication calculation\n if (operator.equals(\"*\")) {\n finalnum = intnum1 * intnum2;\n finaldenom = intdenom1 * intdenom2;\n if (intnum1 == 0 || intnum2 == 0) {\n return 0 + \"\";\n }\n }\n \n // division calculation\n if (operator.equals(\"/\")) {\n finalnum = intnum1 * intdenom2;\n finaldenom = intdenom1 * intnum2;\n }\n \n // make numerator negative instead of the denominator\n if (finaldenom < 0 && finalnum > 0) {\n finaldenom *= -1;\n finalnum *= -1;\n }\n \n // convert to mixed fraction if numerator is positive\n while (finalnum / finaldenom >= 1) {\n finalnum -= finaldenom;\n finalwhole += 1;\n }\n \n // convert to mixed fraction if numerator is negative\n while (finalnum / finaldenom <= -1) {\n finalnum += finaldenom;\n finalwhole -= 1;\n }\n \n // remove signs from numerator and denominator if there is a whole number\n if (finalwhole != 0) {\n finalnum = Math.abs(finalnum);\n finaldenom = Math.abs(finaldenom);\n }\n \n // reduce fraction\n int gcd = 1;\n for (int i = 1; i <= Math.abs(finalnum) && i <= Math.abs(finaldenom); i++) {\n if (finalnum % i == 0 && finaldenom % i == 0)\n gcd = i;\n }\n finalnum /= gcd;\n finaldenom /= gcd;\n \n // final output\n if (finalwhole == 0) {\n if (finalnum == 0) {\n return \"0\";\n } else {\n return finalnum + \"/\" + finaldenom;\n }\n } else if (finalnum == 0 || finaldenom == 1) {\n return finalwhole + \"\";\n } else {\n return finalwhole + \"_\" + finalnum + \"/\" + finaldenom;\n }\n }",
"public abstract AnswerStatus checkAnswer(String answer) throws SyntaxException;",
"@Test\n public void testOptimise_5() throws InvalidRegexpException {\n BasicRegexp re1 = BasicRegexp.parseRegexp(\"a*b*\");\n BasicRegexp re2 = BasicRegexp.parseRegexp(\"a*b?\");\n BasicRegexp re3 = BasicRegexp.parseRegexp(\"a?b*\");\n BasicRegexp re4 = BasicRegexp.parseRegexp(\"a?a?b?a?a*\");\n BasicRegexp re5 = BasicRegexp.parseRegexp(\"a?a*a*a?a*b?a?a?a*b*a?a*a?\");\n\n assertEquals(re1.optimise(BasicRegexp.OPTIMISE_ALL, -1).toString(),\n \"a*b*\");\n assertEquals(re2.optimise(BasicRegexp.OPTIMISE_ALL, -1).toString(),\n \"a*b?\");\n assertEquals(re3.optimise(BasicRegexp.OPTIMISE_ALL, -1).toString(),\n \"a?b*\");\n assertEquals(re4.optimise(BasicRegexp.OPTIMISE_ALL, -1).toString(),\n \"a?a?b?a*\");\n assertEquals(re5.optimise(BasicRegexp.OPTIMISE_ALL, -1).toString(),\n \"a*b?a*b*a*\");\n }",
"public static String[] parseEquation(String equation) {\n\t\tString[] result = equation.split(\"(?<=[-+*/])|(?=[-+*/])\");\n\t\treturn result;\n\t}",
"public ArticleForAnnotation FindFekRegex(ArticleForAnnotation curArticle) throws Exception {\n // Regular expression to be matched\n// Pattern FekPattern = Pattern.compile(\"((\\\\d+\\\\w{1,2}? +)?[νΝ]\\\\. ?\\\\d+/\\\\d+( *\\\\([Α-Ωα-ω]{1,2}[΄΄'’]? ?\\\\d+\\\\))?)\", Pattern.UNICODE_CASE);\n // Matches Laws and POs (ΠΔ)\n// Pattern FekPattern = Pattern.compile(\"(((([Νν][όο]μ)[α-ω]{0,3}|[νΝ])\\\\.?|([Ππ]\\\\.?[Δδ]\\\\.?)) ?\\\\d+\\\\/\\\\d+( *\\\\((ΦΕΚ )?[Α-Ωα-ω]{1,2}[΄`΄'’]? ?\\\\d+((\\\\/|, ?)(\\\\d|\\\\.|-)*)?\\\\))?)\", Pattern.UNICODE_CASE);\n Pattern FekPattern = Pattern.compile(\"(((άρθ[α-ω\\\\.]{0,} ?\\\\d+,? [Α-Ωα-ω0-9, ]*παρ[α-ωά\\\\.]{0,} ?\\\\d+,? [Α-Ωα-ω0-9, ]*)|(παρ[α-ωά\\\\.]{0,} ?\\\\d+,? [Α-Ωα-ω0-9, ]*άρθ[α-ω\\\\.]{0,4} ?\\\\d+,? [Α-Ωα-ω0-9, ]*))?((([Νν][όο]μ)[α-ω]{0,3}|[νΝ])\\\\.?|([Ππ]\\\\.?[Δδ]\\\\.?)) ?\\\\d+\\\\/\\\\d+( *\\\\((ΦΕΚ )?[Α-Ωα-ω]{1,2}[΄`΄'’]? ?\\\\d+((\\\\/|, ?)(\\\\d|\\\\.|-)*)?\\\\))?)\", Pattern.UNICODE_CASE);\n Pattern LawPattern = Pattern.compile(\"((([Νν][όο]μ)[α-ω]{0,3}|[νΝ])\\\\.?|([Ππ]\\\\.?[Δδ]\\\\.?)) ?\\\\d+\\\\/\\\\d+\", Pattern.UNICODE_CASE);\n // Start searching article text\n String articText = curArticle.articleText;\n Matcher m = FekPattern.matcher(articText);\n while (m.find()) {\n String entityFound = m.group(0);\n\n Matcher mLaw = LawPattern.matcher(entityFound);\n if (!mLaw.find()) {\n continue;\n }\n String entityLaw = mLaw.group(0);\n\n String[] FEKparts = entityFound.split(\"/\", 2);\n int startIndex = m.start();\n int endIndex = m.end();\n String FEK_year = \"\";\n String FEK_issue = \"\";\n String FEK_number = null;\n String urlpdf = \"\";\n String entity_Type = \"fek\";\n\n // Get the second part from a FEK annotation (e.g. from ν. 2873/2000 (Α’ 285) the 2000 (Α’ 285) part)\n // and check if FEK issue and number exist (inside parenthesis)\n if (FEKparts[1].contains(\"(\")) {\n // Check inside that part for mached accent characters (΄ or ' or ’)\n // and if so, we get from this string the FEK issue (e.g. A) and FEK number\n FEK_year = FEKparts[1].substring(0, FEKparts[1].lastIndexOf(\"(\")).trim();\n if (FEKparts[1].contains(\"΄\")) {\n FEK_issue = FEKparts[1].substring(FEKparts[1].lastIndexOf(\"(\"), FEKparts[1].lastIndexOf(\"΄\")).trim().replace(\"(\", \"\");\n FEK_number = FEKparts[1].substring(FEKparts[1].lastIndexOf(\"΄\"), FEKparts[1].lastIndexOf(\")\")).replace(\"΄\", \"\").trim();\n } else if (FEKparts[1].contains(\"'\")) {\n FEK_issue = FEKparts[1].substring(FEKparts[1].lastIndexOf(\"(\"), FEKparts[1].lastIndexOf(\"'\")).trim().replace(\"(\", \"\");\n FEK_number = FEKparts[1].substring(FEKparts[1].lastIndexOf(\"'\"), FEKparts[1].lastIndexOf(\")\")).replace(\"'\", \"\").trim();\n } else if (FEKparts[1].contains(\"’\")) {\n FEK_issue = FEKparts[1].substring(FEKparts[1].lastIndexOf(\"(\"), FEKparts[1].lastIndexOf(\"’\")).trim().replace(\"(\", \"\");\n FEK_number = FEKparts[1].substring(FEKparts[1].lastIndexOf(\"’\"), FEKparts[1].lastIndexOf(\")\")).replace(\"’\", \"\").trim();\n } else if (FEKparts[1].contains(\"`\")) {\n FEK_issue = FEKparts[1].substring(FEKparts[1].lastIndexOf(\"(\"), FEKparts[1].lastIndexOf(\"`\")).trim().replace(\"(\", \"\");\n FEK_number = FEKparts[1].substring(FEKparts[1].lastIndexOf(\"`\"), FEKparts[1].lastIndexOf(\")\")).replace(\"`\", \"\").trim();\n } else {\n // If doesn't contain on of these characters then we check for space\n // else we get the first character as the FEK issue (e.g. A, B etc)\n FEK_issue = FEKparts[1].substring(FEKparts[1].lastIndexOf(\"(\"), FEKparts[1].lastIndexOf(\")\")).trim().replace(\"(\", \"\").replace(\")\", \"\");\n if (FEK_issue.startsWith(\"ΦΕΚ \")) {\n FEK_issue = FEK_issue.substring(4);\n } else if (FEK_issue.startsWith(\"ΦΕΚ\")) {\n FEK_issue = FEK_issue.substring(3);\n }\n\n if (FEK_issue.contains(\" \")) {\n String[] splitedIssue = FEK_issue.split(\" \");\n FEK_issue = splitedIssue[0];\n FEK_number = splitedIssue[1];\n } else {\n FEK_number = FEK_issue.substring(1);\n FEK_issue = FEK_issue.substring(0, 1);\n }\n }\n if (FEK_issue.startsWith(\"ΦΕΚ \")) {\n FEK_issue = FEK_issue.substring(4);\n }\n String[] FEK_num_tokens = FEK_number.split(\"(\\\\/|-| |,)\");\n\n FEK_number = FEK_num_tokens[0];\n\n // Set the corresponding issue checkbox based on the FEK issue retrieved above\n String checkBoxIssue = \"\";\n switch (FEK_issue) {\n case \"Α\":\n checkBoxIssue = \"chbIssue_1\";\n break;\n case \"Β\":\n checkBoxIssue = \"chbIssue_2\";\n break;\n case \"Γ\":\n checkBoxIssue = \"chbIssue_3\";\n break;\n case \"Δ\":\n checkBoxIssue = \"chbIssue_4\";\n break;\n case \"\":\n checkBoxIssue = \"\";\n break;\n }\n\n // Perform the POST request\n PostRequestFEK httpRequest = new PostRequestFEK();\n // Get the corresponding pdf url of the FEK\n urlpdf = httpRequest.sendPost3(FEK_year, FEK_issue, FEK_number, checkBoxIssue);\n// if (urlpdf.length() == 0) {\n// urlpdf = \"-1\";\n// }\n } else {\n FEK_year = FEKparts[1];\n String[] toks = entityLaw.split(\"(\\\\.|,| |\\\\/)\");\n if (entityLaw.toLowerCase().startsWith(\"ν\")) {\n entity_Type = \"law\";\n } else if (entityLaw.toLowerCase().startsWith(\"π\")) {\n entity_Type = \"pd\";\n }\n String item_number = toks[toks.length - 2];\n PostRequestFEK httpRequest = new PostRequestFEK();\n urlpdf = httpRequest.sendPost4(FEK_year, item_number, entity_Type);\n }\n // Add the current annotation found into the current article's annotations list\n Annotation currentAnnotation = new Annotation(entityFound, startIndex, endIndex, urlpdf, entity_Type, entityLaw);\n curArticle.annotations.add(currentAnnotation);\n }\n // Return the article back to the process\n return curArticle;\n }",
"@Test\n public void testOptimise_3() throws InvalidRegexpException {\n BasicRegexp re1 = BasicRegexp.parseRegexp(\"a*a*\");\n BasicRegexp re2 = BasicRegexp.parseRegexp(\"a*a?\");\n BasicRegexp re3 = BasicRegexp.parseRegexp(\"a?a*\");\n BasicRegexp re4 = BasicRegexp.parseRegexp(\"a?a?a?a?a*\");\n BasicRegexp re5 = BasicRegexp.parseRegexp(\"a?a*a*a?a*a?a?a?a*a*a?a*a?\");\n\n assertEquals(re1.optimise(BasicRegexp.OPTIMISE_ALL, -1).toString(),\n \"a*\");\n assertEquals(re2.optimise(BasicRegexp.OPTIMISE_ALL, -1).toString(),\n \"a*\");\n assertEquals(re3.optimise(BasicRegexp.OPTIMISE_ALL, -1).toString(),\n \"a*\");\n assertEquals(re4.optimise(BasicRegexp.OPTIMISE_ALL, -1).toString(),\n \"a*\");\n assertEquals(re5.optimise(BasicRegexp.OPTIMISE_ALL, -1).toString(),\n \"a*\");\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(\"Plate number exercise\");\r\n\t\tSystem.out.println(\"------------------------------------------------------\");\r\n\t\tString ABC1234aaa = \"ABC1234aaa\";\r\n\t\tSystem.out.println(\"Is ABC1234aaa valid? -- \" + ABC1234aaa.matches(PLATE_NUMBER_FORMAT));\r\n\t\t\r\n\t\tString AB1234DF= \"AB1234DF\";\r\n\t\tSystem.out.println(\"Is AB1234DF valid? -- \" + AB1234DF.matches(PLATE_NUMBER_FORMAT));\r\n\t\t\r\n\t\t\r\n\t\tString AB1234DFG = \"AB1234DFG\";\r\n\t\tSystem.out.println(\"Is AB1234DFG valid? -- \" + AB1234DFG.matches(PLATE_NUMBER_FORMAT));\r\n\r\n\t\tSystem.out.println(\"------------------------------------------------------\");\r\n\t\t\r\n\t\tSystem.out.println(\"Replace All exercise\");\r\n\t\tSystem.out.println(\"------------------------------------------------------\");\r\n\t\t\r\n\t\tString str1 = \"123458\";\r\n\t\t\r\n\t\tSystem.out.println(str1 + \" replace 8 with 'eight' \\t\" +str1.replaceAll(\"8\", EIGHT));\r\n\t\t\r\n\t\tString str2 = \"ABC82348GHIJ8\";\r\n\t\tSystem.out.println(str2 + \" replace 8 with 'eight' \\t\" +str2.replaceAll(\"8\", EIGHT));\r\n\t\t\r\n\t\tSystem.out.println(\"Regular Expression exercise\");\r\n\t\t\r\n\t\tSystem.out.println(\"Count words exercise\");\r\n\t\tSystem.out.println(\"------------------------------------------------------\");\r\n\t\t\r\n\t\tString myString = \"I am currently very hungry.\";\r\n\t\t\r\n\t\tSystem.out.println(\"Word count: \" + myString.split(WORD).length);\r\n\t\t\r\n\t\tSystem.out.println(\"Check area code exercise\");\r\n\t\tSystem.out.println(\"------------------------------------------------------\");\r\n\t\t\r\n\t\tString phone1 = \"651-345-6789\";\r\n\t\tString phone2 = \"641-451-3222\";\r\n\t\tString phone3 = \"231-651-3442\";\r\n\t\t\r\n\t\tSystem.out.println(\"Is phone number: \" + phone1 + \" from IA?\\t\" + phone1.matches(IA_AREA_CODE) );\r\n\t\tSystem.out.println(\"Is phone number: \" + phone2 + \" from IA?\\t\" + phone2.matches(IA_AREA_CODE) );\r\n\t\tSystem.out.println(\"Is phone number: \" + phone3 + \" from IA?\\t\" + phone3.matches(IA_AREA_CODE) );\r\n\t\t\r\n\t\tSystem.out.println(\"Email address format checker\");\r\n\t\tSystem.out.println(\"------------------------------------------------------\");\r\n\t\t\r\n\t\tString email1 = \"[email protected]\";\r\n\t\tString email2 = \"[email protected]\";\r\n\t\tString email3 = \"abc.def*gmail.com\";\r\n\t\t\r\n\t\tSystem.out.println(\"Is email address: \" + email1 + \" valid?\\t\" + email1.matches(EMAIL_ADDRESS_FORMAT));\r\n\t\tSystem.out.println(\"Is email address: \" + email2 + \" valid?\\t\" + email2.matches(EMAIL_ADDRESS_FORMAT));\r\n\t\tSystem.out.println(\"Is email address: \" + email3 + \" valid?\\t\" + email3.matches(EMAIL_ADDRESS_FORMAT));\r\n\t\t\r\n\t\tSystem.out.println(\"======================================================\\n\");\r\n\t\tSystem.out.println(\"Using Pattern and Matcher Classes\");\r\n\t\t\r\n\t\tMatcher matcher;\r\n\t\tPattern pattern = Pattern.compile(PLATE_NUMBER_FORMAT);\r\n\t\t\r\n\t\tmatcher = pattern.matcher(ABC1234aaa);\r\n\t\tSystem.out.println(\"Is ABC1234aaa valid? -- \" + matcher.matches());\r\n\t\t\r\n\t\tmatcher = pattern.matcher(AB1234DF);\r\n\t\tSystem.out.println(\"Is AB1234DF valid? -- \" + matcher.matches());\r\n\t\t\r\n\t\tmatcher = pattern.matcher(AB1234DFG);\r\n\t\tSystem.out.println(\"Is AB1234DFG valid? -- \" + matcher.matches());\r\n\t\t\r\n\t\tSystem.out.println(\"======================================================\");\r\n\t\tpattern = Pattern.compile(\"8\");\r\n\t\tmatcher = pattern.matcher(str1);\r\n\t\t\r\n\t\tSystem.out.println(str1 + \" replace 8 with 'eight' \\t\" +matcher.replaceAll(EIGHT));\r\n\t\t\r\n\t\tmatcher = pattern.matcher(str2);\r\n\t\tSystem.out.println(str2 + \" replace 8 with 'eight' \\t\" +matcher.replaceAll(EIGHT));\r\n\t\t\r\n\t\t\r\n\t}",
"public abstract String promptSelectionFromAnswers(final String question, final List<String> answers) throws JVMIOException;",
"int getWrongAnswers();",
"@Override\n public String ask(String question) {\n return answers[position++];\n }",
"public String askSomething(String question, String titel);",
"public String wild(String text, String pattern)\n {\n\t\tString result = \"\";\n\t\tif(pattern.contains(\"*\"))\n\t\t{\n\t\t\t\tArrayList<String> sb = new ArrayList<String>();\n\t\n\t\t\tString [] cards = pattern.split(\"\\\\*\");\n\t\t\tfor(int i=0;i<cards.length;i++)\n\t\t\t{\n\t\t\t\tif(!\"\".equalsIgnoreCase(cards[i]))\n\t\t\t\t\tsb.add(cards[i]);\n\t\t\t}\n\t\t\tboolean st=false,en=false;\n\t\n\t\t\tfor (String card : cards)\n\t\t\t{\n\t\t\t\tst = text.startsWith(card);\n\t\n\t\t\t\ten = text.endsWith(card);\n\t\t\t}\n\t\n\t\t\tif(st == true && sb.size() == 1)\n\t\t\t\ten = true;\n\t\t\tif(en == true && sb.size() == 1)\n\t\t\t\tst = true;\n\t\t\tif(st && en)\n\t\t\t\t//System.out.println(text);\n\t\t\t\tresult = text;\n\t\t}\n\t\telse if(pattern.contains(\"?\"))\n\t\t{\n\t\t\t\n\t\t\t//System.out.println(\"???\");\n\t\t\tint i=0;\n\t\t\tchar[] temp = pattern.toCharArray();\n\t\t\tString temp1=\"\",temp3=\"\";\n\t\t\t\n\t\t\tfor(char c : temp)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif(c == '?')\n\t\t\t\t\tbreak;\n\t\t\t\t\ti++;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(i>0)\n\t\t\t{\n\t\t\t\ttemp1 = pattern.substring(0,i-1);\n\t\t\t\ttemp3 = pattern.charAt(i-1)+\"\";\n\t\t\t\t\t//System.out.println(temp1+\" ff \"+temp3);\n\t\t\t\t\t\n\t\t\t\t\tif(text.startsWith(temp1))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!\"\".equalsIgnoreCase(temp3))\n\t\t\t\t\t\t\t//System.out.println(text);\n\t\t\t\t\t\t\tresult = text;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t//System.out.println(text);\n\t\t\t\t\t\t\tresult = text;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\n\t\t\t\ttemp3 = pattern.charAt(i+1)+\"\";\n\t\t\t\tif((i+2)<pattern.length())\n\t\t\t\t\ttemp1 = pattern.substring(i+2,pattern.length());\n\t\t\t\t//System.out.println(temp1+\" \"+temp3);\n\t\t\t\tif(text.startsWith(temp1))\n\t\t\t\t{\n\t\t\t\t\tif(!\"\".equalsIgnoreCase(temp3))\n\t\t\t\t\t\t//System.out.println(text);\n\t\t\t\t\t\tresult = text;\n\t\t\t\t\telse\n\t\t\t\t\t\tresult = text;\n\t\t\t\t\t//System.out.println(text);\n\t\t\t\t}\n\t\t\t\t//System.out.println(temp1);\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(text.equalsIgnoreCase(pattern))\n\t\t\t\t\t//System.out.println(text);\n\t\t\t\t\tresult = text;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\treturn result;\n\t\t}",
"private String extractSecurityAnswer() {\n return SwingUtil.extract(securityAnswerJTextField, Boolean.TRUE);\n }",
"public String getCrrAnswerString() {\n if (type.equals(\"txt\")) {\n return getTextCrrAnswer();\n }\n else {\n return answers[mcCrrAnswer - 1];\n }\n }",
"public static String[] stringByExamParameters(String str) {\n\t\treturn str.split(\n\t\t\t\t\"examID: |dateOfExam: |examDuration: |examComposer: |examSubject: |examCourse: |startingTime: |]+\");\n\t}",
"private static String adaptRegEx(Mode mode, String regex, int flagMask, boolean removeWhitespace)\n throws QueryException {\n StringBuilder sb = new StringBuilder();\n boolean escaped = false;\n boolean groupStart = false;\n int completeGroups = 0;\n int backRef = 0;\n int charClassDepth = 0;\n int groupDepth = 0;\n\n for (char c : regex.toCharArray()) {\n if (escaped) {\n if (backRef == 0 && c == '0') {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION, \"Reference to group 0 not allowed\");\n } else if (c >= '0' && c <= '9') {\n if (charClassDepth > 0) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION,\n \"Back references in character class expressions\" + \" are disallowed.\");\n }\n backRef = backRef * 10 + Integer.parseInt(Character.toString(c));\n continue;\n }\n }\n\n if (backRef > 0) {\n // Check back reference that just ended\n if (backRef > completeGroups) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION,\n \"Back reference to nonexisting or unfinished group.\");\n } else {\n backRef = 0;\n escaped = false;\n }\n }\n\n if (c == '\\\\' && !escaped) {\n // Not preceded by backslash\n escaped = true;\n groupStart = false;\n continue;\n }\n\n if (c == '(' && !escaped) {\n groupStart = true;\n groupDepth++;\n escaped = false;\n continue;\n }\n\n if (c == '?' && !escaped && groupStart) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION,\n \"Pure groups are not supported in XQuery regular expressions.\");\n } else if (c == ')' && !escaped) {\n if (--groupDepth < 0) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION, \"Invalid sequence of brackets.\");\n }\n completeGroups++;\n } else if (c == '[' && !escaped) {\n charClassDepth++;\n } else if (c == ']' && !escaped) {\n if (--charClassDepth < 0) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION, \"Invalid sequence of brackets.\");\n }\n } else if (removeWhitespace) {\n // Remove whitespace outside of character classes\n if (charClassDepth == 0 && WHITESPACE.contains(c)) {\n // Don't touch boolean flags\n continue;\n }\n\n sb.append(c);\n }\n\n groupStart = false;\n escaped = false;\n }\n\n // Check for trailing '\\' (only valid with subsequent characters)\n if (escaped && backRef == 0) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION, \"Trailing backslash character in pattern.\");\n }\n\n // Check back reference if that was last token in pattern\n if (backRef > 0 && backRef > completeGroups) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION,\n \"Back reference to nonexisting or unfinished group.\");\n }\n\n // Check for dangling brackets\n if (charClassDepth != 0 || groupDepth != 0) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION, \"Pattern contains dangling brackets.\");\n }\n\n if (!removeWhitespace) {\n sb.append(regex);\n }\n\n if (mode == Mode.MATCH) {\n // Adapt for XQuery substring matching by extending pattern\n if (sb.charAt(0) != '^' || ((flagMask & Pattern.MULTILINE) == Pattern.MULTILINE)) {\n if ((flagMask & Pattern.DOTALL) == Pattern.DOTALL) {\n sb.insert(0, \".*\");\n } else {\n sb.insert(0, \"(?s:.*)\");\n }\n }\n\n if (sb.charAt(sb.length() - 1) != '$' || ((flagMask & Pattern.MULTILINE) == Pattern.MULTILINE)) {\n if ((flagMask & Pattern.DOTALL) == Pattern.DOTALL) {\n sb.append(\".*\");\n } else {\n sb.append(\"(?s:.*)\");\n }\n }\n }\n\n return sb.toString();\n }",
"@Override\n\tpublic String getQuestion() {\n\n\t\treturn \"http://leetcode.com/onlinejudge#question_11\";\n\t}",
"@Test\n public void testGroups() {\n assertThat(regex(or(e(\"0\"), e(\"1\"), e(\"2\")))).isEqualTo(\"0|1|2\");\n // Optional groups always need parentheses.\n assertThat(regex(opt(e(\"0\"), e(\"1\"), e(\"2\")))).isEqualTo(\"(?:0|1|2)?\");\n // Once a group has prefix or suffix, parentheses are needed.\n assertThat(regex(\n seq(\n or(e(\"0\"), e(\"1\")),\n e(\"2\"))))\n .isEqualTo(\"(?:0|1)2\");\n }",
"public static void main(String[] args) {\n\t\t Pattern p = Pattern.compile(\"(a+)\");\r\n\t\t Matcher m = p.matcher(\"aaaaaba\");\r\n\t\t //System.out.println(m.matches())\r\n\t\t m.find();\t\t \r\n\t\t m.find();\r\n\t\t System.out.println(\"grCount \"+m.groupCount());\t \r\n\t\t MatchResult mr = m.toMatchResult();\r\n\t\t \r\n\t\t System.out.println(m.end());\r\n\t\t System.out.println(\"'\"+mr.group()+\"'\");\r\n\t\t System.out.println(\"start \"+mr.start(1));\r\n\t\t \r\n\t}",
"public String check(String string) {\n if (string.equals(\"{QUESTION=2} -> {QUESTION=1}\"))\n return \"Base Production\";\n else\n return string;\n }",
"public String getKeyword(String question)\n\t{\n\t\tString answer = \"\";\n\t\ttry \n\t\t{\n\t\t\tCorpus corpus = (Corpus) Factory.createResource(\"gate.corpora.CorpusImpl\");\n\t\t\tgate.Document doc = gate.Factory.newDocument(question);\n\t\t\tcorpus.add(doc);\n\t\t\tctrl.setCorpus(corpus);\n\t\t\tctrl.execute();\n\t\t\t\n\t\t\tcorpus.clear();\n\t\t\t\n\t\t\tArrayList<gate.Annotation> annList = new ArrayList<gate.Annotation>();\n\t\t\t//Add whatever annotations you are interested in processing further\n\t\t\t//to annList--questions, requests, instructions, etc.\n\t\t\tannList.addAll(doc.getAnnotations().get(\"question\"));\n\n\t\t for(gate.Annotation ann:annList)\n\t\t {\n\t\t \tanswer += ann.getFeatures().toString();\n\t\t }\n\t\t // REALLY important to release doc and coprpus after processing each request, \n\t\t // question, instruction, etc., or your program will quickly run out of heap space.\n\t\t Factory.deleteResource(doc);\n\t\t Factory.deleteResource(corpus);\n\t\t} catch (Exception e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\treturn answer;\n\t}",
"public static void main(String[] args) throws Exception {\n String patronA = \"[0-5]\";\n\n // conjunto de letras de \"a\" a \"c\"\n String patronB = \"[a-c]\";\n\n // conjunto de todas las letras minusculas\n String patronC = \"[a-z]\";\n\n // conjunto de numeros\n String patronD = \"[0-9]\";\n\n // ejemplo con tipo de dato string\n String textoAlfanumerico = \"0123aaaa\";\n System.out.println(\"Texto alfanumerico:\" + textoAlfanumerico);\n\n String replace1 = textoAlfanumerico.replaceAll(patronA, \"X\");\n System.out.println(\"Reemplazo de numeros con X: \" + replace1);\n\n String replace2 = textoAlfanumerico.replaceAll(patronB, \"X\");\n System.out.println(\"Reemplazo de letras con X: \" + replace2);\n\n\n //[0-5][a-c];\n //String patronComplejo = patronA + patronB;\n\n //[a-c]*[0-5]*\n //String patronComplejo = patronA + \"*\" + patronB + \"*\";\n\n //\"[a-z]+\"\n\n // + = una coincidencia\n // * = ninguna o muchas\n\n //String patronComplejo = \"(\" + patronA + patronC + \")+\";\n String patronComplejo = \"(\" + patronC + \")+\";\n\n String texto = \"hola, aacc este bbcc es mi 55222aaa texto 2663aaaa blah blah\";\n System.out.println(\"patron complejo:\" + patronComplejo);\n System.out.println(texto);\n\n Pattern pattern = Pattern.compile(patronComplejo);\n Matcher matcher = pattern.matcher(texto);\n\n // buscar ocurrencias\n while (matcher.find()) {\n System.out.println(\"Encontrado:\" + matcher.group());\n }\n\n\n }",
"private NFA regEx() {\n NFA term = term();\n\n //If the regex requires a union operation\n if (more() && peek() == '|') {\n\n eat('|');\n NFA regex = regEx();\n return union(term, regex);\n //If no union is needed, just return the NFA\n } else {\n return term;\n }\n }",
"protected abstract String answer();",
"public static String function_2(String question)\n\t{\n\t\t//int first_par = 0;\n\t\t//int second_par = question.indexOf(\")\");\n\t\t//int third_par = question.indexOf(\"(\", second_par);\n\t\t\n\t\t\n\t\tString function_2 = question.substring(find_par(2,question)+1,find_par(3,question));\n\t\t\n\t\treturn function_2;\n\t}",
"private void parseQuestions()\n\t{\n\t\tlog.info(\"Parsing questions\");\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Element> questions_list = doc.selectNodes(\"//document/questions/rows/row\");\n\t\tq_l10ns_node = doc.selectSingleNode(\"//document/question_l10ns/rows\");\n\t\tsq_node = doc.selectSingleNode(\"//document/subquestions/rows\");\n\t\tq_node = doc.selectSingleNode(\"//document/questions/rows\");\n\t\ta_node = doc.selectSingleNode(\"//document/answers/rows\");\n\n\t\tfor (Element question : questions_list) {\n\t\t\tString qid = question.element(\"qid\").getText();\n\t\t\tlog.debug(\"Working on question: \" + qid);\n\t\t\tQuestion q = new Question(qid,\n\t\t\t\t\t\t\t\t\t Integer.parseInt(question.element(\"gid\").getText()),\n\t\t\t\t\t\t\t\t\t question.element(\"type\").getText(),\n\t\t\t\t\t\t\t\t\t q_l10ns_node.selectSingleNode(\"row[qid=\" + qid + \"]/question\").getText(),\n\t\t\t\t\t\t\t\t\t question.element(\"title\").getText(),\n\t\t\t\t\t\t\t\t\t question.element(\"mandatory\").getText().equals(\"N\") ? \"No\" : \"Yes\",\n\t\t\t\t\t\t\t\t\t q_l10ns_node.selectSingleNode(\"row[qid=\" + qid + \"]/language\").getText());\n\n\t\t\t// Add a description, if there is one\n\t\t\tNode desc = q_l10ns_node.selectSingleNode(\"row[qid=\" + q.getQid() + \"]/help\");\n\t\t\tif (desc != null) {\n\t\t\t\tq.setDescription(desc.getText());\n\t\t\t}\n\n\t\t\taddCondition(q);\n\n\t\t\tswitch (q.type) {\n\t\t\t\t// Normal Text Fields\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"T\":\n\t\t\t\tcase \"U\":\n\t\t\t\t\tq.setType(\"T\");\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Date/Time\n\t\t\t\tcase \"D\":\n\t\t\t\t\tdate_time_qids.add(q.getQid());\n\t\t\t\t\tbreak;\n\t\t\t\t// Numeric Input\n\t\t\t\tcase \"N\":\n\t\t\t\t\tif (check_int_only(q)) {\n\t\t\t\t\t\tq.setType(\"I\");\n\t\t\t\t\t}\n\t\t\t\t\tadd_range(q);\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Single 5-Point Choice\n\t\t\t\tcase \"5\":\n\t\t\t\t\tq.setType(\"A\");\n\t\t\t\t\tq.setAnswers(new AnswersList(\"5pt.cl\", ClGenerator.getIntCl(5), \"string\", true));\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Yes/No\n\t\t\t\tcase \"Y\":\n\t\t\t\t\tq.setType(\"A\");\n\t\t\t\t\tq.setAnswers(new AnswersList(\"YN.cl\", ClGenerator.getYNCl(), \"string\", false));\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Gender\n\t\t\t\tcase \"G\":\n\t\t\t\t\tq.setType(\"A\");\n\t\t\t\t\tq.setAnswers(new AnswersList(\"Gender.cl\", ClGenerator.getGenderCl(), \"string\", false));\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// List with comment\n\t\t\t\tcase \"O\":\n\t\t\t\t\taddComment(q);\n\t\t\t\t// Radio List\n\t\t\t\tcase \"L\":\n\t\t\t\t// Dropdown List\n\t\t\t\tcase \"!\":\n\t\t\t\t\tboolean oth = question.elementText(\"other\").equals(\"Y\");\n\t\t\t\t\tif(oth) {\n\t\t\t\t\t\taddOtherQuestion(q);\n\t\t\t\t\t}\n\t\t\t\t\tq.setType(\"A\");\n\t\t\t\t\tq.setAnswers(new AnswersList(q.getQid() + \".cl\", getAnswerCodesByID(q.getQid(), oth), \"string\", false));\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Multiple Texts\n\t\t\t\t// Input On Demand\n\t\t\t\tcase \"Q\":\n\t\t\t\t\taddSubquestions(q, \"T\");\n\t\t\t\t\tbreak;\n\t\t\t\t// Multiple Numeric Inputs\n\t\t\t\tcase \"K\":\n\t\t\t\t\tadd_range(q);\n\t\t\t\t\tif (check_int_only(q)){\n\t\t\t\t\t\taddSubquestions(q, \"I\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\taddSubquestions(q, \"N\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Dual scale array\n\t\t\t\tcase \"1\":\n\t\t\t\t\tHashMap<String, String>[] code_lists = ClGenerator.getDualScaleCls(q.getQid(), getAnswerIdsByID(q.getQid()), a_node);\n\t\t\t\t\taddSubquestionsWithCL(q, q.getQid() + \".0\", code_lists[0], \"string\", false, \"-0\");\n\t\t\t\t\taddSubquestionsWithCL(q, q.getQid() + \".1\", code_lists[1], \"string\", false, \"-1\");\n\t\t\t\t\tbreak;\n\t\t\t\t// Array by column\n\t\t\t\tcase \"H\":\n\t\t\t\t// Flexible Array\n\t\t\t\tcase \"F\":\n\t\t\t\t\taddSubquestionsWithCL(q, q.getQid().concat(\".cl\"), getAnswerCodesByID(q.getQid(), false), \"string\", false, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// 5pt Array\n\t\t\t\tcase \"A\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"5pt.cl\", ClGenerator.getIntCl(5), \"integer\", true, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// 10pt Array\n\t\t\t\tcase \"B\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"10pt.cl\", ClGenerator.getIntCl(10), \"integer\", true, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// Increase/Same/Decrease Array\n\t\t\t\tcase \"E\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"ISD.cl\", ClGenerator.getISDCL(), \"string\", false, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// 10pt Array\n\t\t\t\tcase \"C\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"YNU.cl\", ClGenerator.getYNUCL(), \"string\", false, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// Matrix with numerical input\n\t\t\t\tcase \":\":\n\t\t\t\t\tq.setType(\"N\");\n\t\t\t\t\taddQuestionMatrix(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Matrix with text input\n\t\t\t\tcase \";\":\n\t\t\t\t\tq.setType(\"T\");\n\t\t\t\t\taddQuestionMatrix(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Multiple Choice (Normal, Bootstrap, Image select)\n\t\t\t\tcase \"M\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"MC.cl\", ClGenerator.getMCCL(), \"string\", false, \"\");\n\t\t\t\t\tif (question.elementTextTrim(\"other\").equals(\"Y\")) {\n\t\t\t\t\t\tq.setQid(q.getQid().concat(\"other\"));\n\t\t\t\t\t\tq.setType(\"T\");\n\t\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// MC with comments\n\t\t\t\tcase \"P\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"MC.cl\", ClGenerator.getMCCL(), \"string\", false, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tlog.error(\"Question type not supported: \" + q.type);\n\t\t\t}\n\t\t}\n\t}",
"public final EObject ruleMultipleChoice_Impl() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_isMandatory_1_0=null;\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_7=null;\n AntlrDatatypeRuleToken lv_questionText_2_0 = null;\n\n AntlrDatatypeRuleToken lv_min_4_0 = null;\n\n AntlrDatatypeRuleToken lv_max_6_0 = null;\n\n EObject lv_answers_8_0 = null;\n\n EObject lv_answers_9_0 = null;\n\n\n enterRule(); \n \n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:703:28: ( (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' ( (lv_min_4_0= ruleEInt ) ) otherlv_5= '-' ( (lv_max_6_0= ruleEInt ) ) otherlv_7= ']' ( (lv_answers_8_0= ruleAnswer ) ) ( (lv_answers_9_0= ruleAnswer ) )* ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:704:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' ( (lv_min_4_0= ruleEInt ) ) otherlv_5= '-' ( (lv_max_6_0= ruleEInt ) ) otherlv_7= ']' ( (lv_answers_8_0= ruleAnswer ) ) ( (lv_answers_9_0= ruleAnswer ) )* )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:704:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' ( (lv_min_4_0= ruleEInt ) ) otherlv_5= '-' ( (lv_max_6_0= ruleEInt ) ) otherlv_7= ']' ( (lv_answers_8_0= ruleAnswer ) ) ( (lv_answers_9_0= ruleAnswer ) )* )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:704:3: otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' ( (lv_min_4_0= ruleEInt ) ) otherlv_5= '-' ( (lv_max_6_0= ruleEInt ) ) otherlv_7= ']' ( (lv_answers_8_0= ruleAnswer ) ) ( (lv_answers_9_0= ruleAnswer ) )*\n {\n otherlv_0=(Token)match(input,25,FollowSets000.FOLLOW_25_in_ruleMultipleChoice_Impl1441); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getMultipleChoice_ImplAccess().getQKeyword_0());\n \n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:708:1: ( (lv_isMandatory_1_0= '*' ) )?\n int alt15=2;\n int LA15_0 = input.LA(1);\n\n if ( (LA15_0==26) ) {\n alt15=1;\n }\n switch (alt15) {\n case 1 :\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:709:1: (lv_isMandatory_1_0= '*' )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:709:1: (lv_isMandatory_1_0= '*' )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:710:3: lv_isMandatory_1_0= '*'\n {\n lv_isMandatory_1_0=(Token)match(input,26,FollowSets000.FOLLOW_26_in_ruleMultipleChoice_Impl1459); \n\n newLeafNode(lv_isMandatory_1_0, grammarAccess.getMultipleChoice_ImplAccess().getIsMandatoryAsteriskKeyword_1_0());\n \n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getMultipleChoice_ImplRule());\n \t }\n \t\tsetWithLastConsumed(current, \"isMandatory\", true, \"*\");\n \t \n\n }\n\n\n }\n break;\n\n }\n\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:723:3: ( (lv_questionText_2_0= ruleEString ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:724:1: (lv_questionText_2_0= ruleEString )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:724:1: (lv_questionText_2_0= ruleEString )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:725:3: lv_questionText_2_0= ruleEString\n {\n \n \t newCompositeNode(grammarAccess.getMultipleChoice_ImplAccess().getQuestionTextEStringParserRuleCall_2_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleMultipleChoice_Impl1494);\n lv_questionText_2_0=ruleEString();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getMultipleChoice_ImplRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"questionText\",\n \t\tlv_questionText_2_0, \n \t\t\"EString\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,20,FollowSets000.FOLLOW_20_in_ruleMultipleChoice_Impl1506); \n\n \tnewLeafNode(otherlv_3, grammarAccess.getMultipleChoice_ImplAccess().getLeftSquareBracketKeyword_3());\n \n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:745:1: ( (lv_min_4_0= ruleEInt ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:746:1: (lv_min_4_0= ruleEInt )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:746:1: (lv_min_4_0= ruleEInt )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:747:3: lv_min_4_0= ruleEInt\n {\n \n \t newCompositeNode(grammarAccess.getMultipleChoice_ImplAccess().getMinEIntParserRuleCall_4_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_ruleEInt_in_ruleMultipleChoice_Impl1527);\n lv_min_4_0=ruleEInt();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getMultipleChoice_ImplRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"min\",\n \t\tlv_min_4_0, \n \t\t\"EInt\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,27,FollowSets000.FOLLOW_27_in_ruleMultipleChoice_Impl1539); \n\n \tnewLeafNode(otherlv_5, grammarAccess.getMultipleChoice_ImplAccess().getHyphenMinusKeyword_5());\n \n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:767:1: ( (lv_max_6_0= ruleEInt ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:768:1: (lv_max_6_0= ruleEInt )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:768:1: (lv_max_6_0= ruleEInt )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:769:3: lv_max_6_0= ruleEInt\n {\n \n \t newCompositeNode(grammarAccess.getMultipleChoice_ImplAccess().getMaxEIntParserRuleCall_6_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_ruleEInt_in_ruleMultipleChoice_Impl1560);\n lv_max_6_0=ruleEInt();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getMultipleChoice_ImplRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"max\",\n \t\tlv_max_6_0, \n \t\t\"EInt\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n otherlv_7=(Token)match(input,22,FollowSets000.FOLLOW_22_in_ruleMultipleChoice_Impl1572); \n\n \tnewLeafNode(otherlv_7, grammarAccess.getMultipleChoice_ImplAccess().getRightSquareBracketKeyword_7());\n \n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:789:1: ( (lv_answers_8_0= ruleAnswer ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:790:1: (lv_answers_8_0= ruleAnswer )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:790:1: (lv_answers_8_0= ruleAnswer )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:791:3: lv_answers_8_0= ruleAnswer\n {\n \n \t newCompositeNode(grammarAccess.getMultipleChoice_ImplAccess().getAnswersAnswerParserRuleCall_8_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_ruleAnswer_in_ruleMultipleChoice_Impl1593);\n lv_answers_8_0=ruleAnswer();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getMultipleChoice_ImplRule());\n \t }\n \t\tadd(\n \t\t\tcurrent, \n \t\t\t\"answers\",\n \t\tlv_answers_8_0, \n \t\t\"Answer\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:807:2: ( (lv_answers_9_0= ruleAnswer ) )*\n loop16:\n do {\n int alt16=2;\n int LA16_0 = input.LA(1);\n\n if ( (LA16_0==19) ) {\n alt16=1;\n }\n\n\n switch (alt16) {\n \tcase 1 :\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:808:1: (lv_answers_9_0= ruleAnswer )\n \t {\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:808:1: (lv_answers_9_0= ruleAnswer )\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:809:3: lv_answers_9_0= ruleAnswer\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getMultipleChoice_ImplAccess().getAnswersAnswerParserRuleCall_9_0()); \n \t \t \n \t pushFollow(FollowSets000.FOLLOW_ruleAnswer_in_ruleMultipleChoice_Impl1614);\n \t lv_answers_9_0=ruleAnswer();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getMultipleChoice_ImplRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"answers\",\n \t \t\tlv_answers_9_0, \n \t \t\t\"Answer\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop16;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public String dispaly(String result, String which) {\n String fword=\"\";\n String dump=result;\n Log.i(\"result \"+which,result);\n if(result!=null){\n result=result.replaceAll(\"lang=en\",\"\");\n String ts;\n if(result.contains(\"[[\")||result.contains(\"{{\"))\n {\tdump=dump.replaceAll(\"[^a-zA-Z0-9.\\\\[\\\\]|,;}\\\\s+]\", \"\").trim();\n if(dump.startsWith(\"[[\"))\n {\n int i=result.indexOf(\"[[\");\n int j=result.indexOf(\"]]\");\n fword=result.substring(i,j);\n int k=fword.indexOf('|');\n fword=fword.substring(k+1);\n //System.out.println(\"First Word \"+fword);\n //System.out.println(\"FIND \"+result);\n result=result.substring(j+2);\n //\tSystem.out.println(\"FIND \"+result);\n result=fword.concat(result);\n result=result.replace('|',' ');\n\n }\n else\n {\n System.out.println(\"Esle called \"+result);\n dump=dump.replaceAll(\"[^a-zA-Z0-9.\\\\[\\\\]|,;}\\\\s+]\", \"\").trim();\n String arr[]=dump.split(\" \");\n for(int aa=0;aa<arr.length;aa++)\n {\n\n if(arr[aa].contains(\"[[\")&&arr[aa].contains(\"|\"))\n {\n //System.out.println(arr[aa]);\n String min=arr[aa];\n //System.out.println(\"MINNN \"+min);\n int x=min.indexOf(\"[[\");\n int y=min.indexOf(\"|\");\n min=min.substring(y+1);\n //System.out.println(min);\n result=result.replace(arr[aa], min);\n }\n }\n result=result.replace('|',' ');\n }\n }\n //if(result.matches(\"[[[a-zA-Z|]\"))\n send+=\"<h3>\"+which+\"</h3>\"+\"\\n\";\n // System.out.println(\"Meaning for \"+which);\n if(result.contains(\"}}\"))\n {\n int resultindex=result.indexOf(\"}}\");\n //\t System.out.println(resultindex);\n result=result.substring(resultindex);\n }\n\n result = result.replaceAll(\"[^a-zA-Z0-9.,;\\\\s+]\", \"\");\n result=result.replaceAll(\";\",\".\\n\");\n\n // result.endsWith(\".\");\n // System.out.println(result);\n int newline=0;\n for(int i=0;i<result.length();i++)\n {\n if(result.charAt(i)=='\\n')\n {\n newline++;\n }\n }\n\n // System.out.println(\"New Line \"+newline);\n for(int i=0;i<newline;i++)\n {\n int nn=result.indexOf(\"\\n\");\n // System.out.println(\"First line \"+nn);\n String res=result.substring(0,nn);\n result=result.substring(nn+1);\n // System.out.println(res);\n send+=res+\"\\n\";\n }\n int nn=result.indexOf(\"\\n\");\n\n\n result=result.substring(nn+1);\n send+=result+\"\\n\";\n // System.out.println(result);\n /* fword=fword.trim();\n if(!fword.isEmpty())\n {\n\n fword=fword.concat(\" \");\n // send=fword+send;\n send=fword.concat(send);\n\n // System.out.println(\"Called\");\n return send;\n }*/\n\n\n\n }\n /*else {\n result1.setText(\"Wrorng\");\n send+=\"Enter Correct word\";\n // System.out.println(\"Enter correct word\");\n return \"Wrong\";\n }*/\n\n return send;\n }",
"Match getResultMatch();",
"@Test\n public void macroParseTest1() throws TapisException\n {\n var s = \"$varname\";\n var m = _pattern.matcher(s);\n var b = m.matches();\n Assert.assertEquals(b, true, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.groupCount(), 3, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(1), s, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(3), null, \"Failed on \\\"\"+ s + \"\\\"\");\n \n s = \"varname\";\n m = _pattern.matcher(s);\n b = m.matches();\n Assert.assertEquals(b, true, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.groupCount(), 3, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(1), s, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(3), null, \"Failed on \\\"\"+ s + \"\\\"\");\n \n s = \"$varname,/path/name\";\n m = _pattern.matcher(s);\n b = m.matches();\n Assert.assertEquals(b, true, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.groupCount(), 3, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(1), \"$varname\", \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(3), \"/path/name\", \"Failed on \\\"\"+ s + \"\\\"\");\n \n s = \"$varname ,/path/name\";\n m = _pattern.matcher(s);\n b = m.matches();\n Assert.assertEquals(b, true, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.groupCount(), 3, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(1), \"$varname\", \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(3), \"/path/name\", \"Failed on \\\"\"+ s + \"\\\"\");\n \n s = \"$varname , /path/name\";\n m = _pattern.matcher(s);\n b = m.matches();\n Assert.assertEquals(b, true, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.groupCount(), 3, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(1), \"$varname\", \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(3), \"/path/name\", \"Failed on \\\"\"+ s + \"\\\"\");\n \n s = \"$varname , /path/name \";\n m = _pattern.matcher(s);\n b = m.matches();\n Assert.assertEquals(b, true, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.groupCount(), 3, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(1), \"$varname\", \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(3), \"/path/name\", \"Failed on \\\"\"+ s + \"\\\"\");\n \n s = \"$varname \";\n m = _pattern.matcher(s);\n b = m.matches();\n Assert.assertEquals(b, true, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.groupCount(), 3, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(1), \"$varname\", \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(3), null, \"Failed on \\\"\"+ s + \"\\\"\");\n\n s = \"$varname,\";\n m = _pattern.matcher(s);\n b = m.matches();\n Assert.assertEquals(b, false, \"Failed on \\\"\"+ s + \"\\\"\");\n \n s = \"$varname /path/name\";\n m = _pattern.matcher(s);\n b = m.matches();\n Assert.assertEquals(b, false, \"Failed on \\\"\"+ s + \"\\\"\");\n }",
"public void showQuestion()\n\t{\n\t\tSystem.out.println(ans);\n\t\tfor(int k = 0; k<numAns; k++)\n\t\t{\n\t\t\tSystem.out.println(k+\". \"+answers[k]);\n\t\t}\n\t}",
"Question(String ques, String opt1, String opt2, String opt3, String opt4) {\n this.ques = ques;\n this.opt1 = opt1;\n this.opt2 = opt2;\n this.opt3 = opt3;\n this.opt4 = opt4;\n }",
"public static String function_1(String question)\n\t{\n\t\t\n\t\tint first_par = question.indexOf(\"(\");\n\t\t\n\t\tString function_1 = question.substring(0, first_par);\n\t\t\n\t\treturn function_1;\n\t}",
"@Test\r\n public void testSubtractionAsReversion() {\r\n Application.loadQuestions();\r\n assertTrue(Application.allQuestions.contains(\"21 - 7 = ?\") || Application.allQuestions.contains(\"21 - 14 = ?\"));\r\n }",
"public static void main(String[] args)\n {\n Pattern pattern = Pattern.compile(\"aba\");\n Matcher m = pattern.matcher(\"abababa\");\n //boolean find()//return true if found the pattern and go to the next sub sequence\n while(m.find()){\n System.out.print(m.start());//0 and 4 but not 2!\n System.out.print(m.end());//3 and 7 (return the position of the last char matched + 1)\n System.out.print(m.group());// = s.substring(m.start(), m.end());\n System.out.print(\"\\n\");\n }\n //what's append?\n //first occurence starts at 0, ends at 2 and aba\n //search for the second occurence from 3\n //second occurence starts at 4, ends at 6 and aba\n //search for the thrid occurence from 7\n \n System.out.print(\"========\\n\");\n \n //0-length matches\n Pattern pattern2 = Pattern.compile(\"a?\");\n Matcher m2 = pattern2.matcher(\"aba\");\n while(m2.find()){\n System.out.print(m2.start());//the char a is or not is at position 0,1,2 and 3\n System.out.print(m2.end());//1,1,3,3 ==> ?? @see page 500\n System.out.print(\"\\n\");\n }\n \n /** Expressions **/\n // \\d digit\n // \\s whitespace\n // \\w letters, digits or _\n // [abc] searching for a, b or c\n // [a-f] searching for a letter to f lettre included\n // [A-F] searching for A letter to F lettre included\n // [a-fA-F] search for a letter to f or A letter to F lettre included\n // 0 [x-X] search for 0 followed by x or X\n /** quantifiers **/\n //? Zero or one\n //* Zero or more\n //+ One or more\n// 0[x-X]+ => 0 followed by one x or one X\n// (0[x-X])+ => 0 followed by x or X one time\n \n //. = any char (whitespace is a char)\n //Escaping special char !!! . = any char, \\. = compilator error, \\\\. = .\n }",
"speech.multilang.Params.MultiRecognizerGrammarMatchList.MultiRecognizerGrammarMatch getGrammarMatch(int index);"
] |
[
"0.58994925",
"0.5776607",
"0.5776607",
"0.5563406",
"0.55589056",
"0.55515295",
"0.546821",
"0.5335469",
"0.53330326",
"0.52904683",
"0.5285954",
"0.5215027",
"0.52143073",
"0.5189149",
"0.51811326",
"0.5130996",
"0.51145124",
"0.51121444",
"0.5000611",
"0.4997968",
"0.49963224",
"0.49860963",
"0.498469",
"0.49707773",
"0.49598145",
"0.4951998",
"0.494793",
"0.4934773",
"0.49216056",
"0.49048662",
"0.48877874",
"0.48808625",
"0.48547503",
"0.48318413",
"0.48296428",
"0.47932172",
"0.47859567",
"0.47823238",
"0.4777363",
"0.47769904",
"0.4773612",
"0.4772369",
"0.47717735",
"0.47692707",
"0.47629064",
"0.4762666",
"0.47550765",
"0.47441426",
"0.47304487",
"0.47282296",
"0.47247937",
"0.47230342",
"0.47164094",
"0.47162703",
"0.4715177",
"0.4695065",
"0.46874553",
"0.46611267",
"0.46575907",
"0.46572474",
"0.46546978",
"0.46532917",
"0.46530107",
"0.46494508",
"0.46468621",
"0.46392635",
"0.4632081",
"0.4623052",
"0.4618647",
"0.4617538",
"0.4614886",
"0.46120355",
"0.46088243",
"0.45990273",
"0.45911768",
"0.4583387",
"0.45830217",
"0.4576351",
"0.4565848",
"0.45564798",
"0.45554852",
"0.4541104",
"0.45391554",
"0.4534452",
"0.45288813",
"0.4525495",
"0.45227307",
"0.45216286",
"0.45207477",
"0.450895",
"0.4504748",
"0.45002604",
"0.4496541",
"0.44959658",
"0.4486382",
"0.44846058",
"0.44824025",
"0.44812694",
"0.44775844",
"0.44736716",
"0.44727394"
] |
0.0
|
-1
|
write your code in Java SE 8
|
public int solution(int[] a) {
int max = 0;
int min = Integer.MIN_VALUE;
for (int i=0;i<a.length;i++) {
if (i == 0) {
min = a[i];
} else if (a[i] > min) {
max = Math.max(a[i] - min, max);
} else if (a[i] < min) {
min = a[i];
}
}
return max;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void main(String[] args) {\n\t\tnew Action() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void execute(String content) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(content);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}.execute(\"jdk1.8之前匿名内部类实现方式\");\r\n\t\t\r\n\t\t\r\n\t\t//lambda\r\n\t\tAction login=(String content)->{\r\n\t\t\tSystem.out.println(\"jdk1.8的lambda语法实现\");\r\n\t\t};\r\n\t\tlogin.execute(\"jdk1.8的lambda语法实现\");\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tnew Thread(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tSystem.out.println(\"Before JAVA 8, too much code for too little to do\");\r\n\t\t\t}\r\n\t\t}).start();\r\n\t\t\r\n\t\t// Java 8 way:\r\n\t\t\r\n\t\tnew Thread( () -> System.out.println(\"In Java 8, Lambda Expression rocks !!\") ).start();\r\n\t\t\r\n\t\tSystem.out.println(\"-----------*************************-------------\");\r\n\t\t\r\n\t\t// Iterating Over List Using Lambda Expressions\r\n\t\t\r\n\t\tList features = Arrays.asList(\"Lambdas\",\"Default Method\",\"Stream API\",\"DAte and Time API\");\r\n\t\t\r\n\t\tfeatures.forEach(n -> System.out.println(n));\r\n\r\n\t\tSystem.out.println(\"-----------*************************-------------\");\r\n\t\t\t\t\r\n\t\t// Even better use method reference feature of Java 8\r\n\t\t// method reference is denoted by :: ****double colon***** operator\r\n\t\t// looks similar to scope resolution operator of C++\r\n\t\t\r\n\t\tfeatures.forEach(System.out::println);\r\n\r\n\t}",
"public static void main(String[] args) {\r\n\t\tSomeJava8Features obj = new SomeJava8Features();\r\n\r\n\t\t// StringJoiner\r\n\t\texampleStringJoiner();\r\n\t\t\r\n\t\t// Default\r\n\t\tint ary[] = {3,6,8,9,0};\r\n\t\tSystem.out.println(\"\\nsumOfGivenIntArray ... \" + obj.sumOfGivenIntArray(ary));\r\n\t\tobj.sayMore(\"Hello Rohini\");\r\n\t\t\r\n\t\t// ForEach & Lambda Expression\r\n\t\texampleForEach_FindMaximum(ary);\r\n\t\t\r\n\r\n\t}",
"@Deprecated\n\tprivate void oldCode()\n\t{\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"private void level7() {\n }",
"Compatibility compatibility();",
"@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}",
"public static void main(String[] args) {\n throw new NotImplementedException();\n }",
"public static void main(String[] args) {\n Foo foo = new Java8Default();\n foo.sumDefault(2,4);\n\n }",
"@Test\n public void source8() throws Exception {\n ImmutableList<String> options = (GeneratedAnnotationsTest.isJdk9OrLater()) ? ImmutableList.of(\"--release\", \"8\") : ImmutableList.of(\"-source\", \"8\", \"-target\", \"8\");\n String generated = runProcessor(options, null);\n assertThat(generated).contains(GeneratedAnnotationsTest.JAVAX_ANNOTATION_GENERATED);\n assertThat(generated).doesNotContain(GeneratedAnnotationsTest.JAVAX_ANNOTATION_PROCESSING_GENERATED);\n }",
"void compileToJava();",
"public static void main(String args[]) throws Exception\n {\n \n \n \n }",
"public final void mo8775b() {\n }",
"public static void main(String[] args) {\n\t\t//Até o java 7\n\t\tnew Thread(new Runnable() {\n\n\t\t @Override\n\t\t public void run() {\n\t\t System.out.println(\"Executando um Runnable\");\n\t\t }\n\n\t\t}).start();\n\t\t//A partir do java 8\n\t\tnew Thread(() -> System.out.println(\"Executando um Runnable\")).start();\n\t\t\n\t\t//iterando com java 8: classe anonima\n\t\ttexto.forEach(new Consumer<String>() {\n\t\t public void accept(String s) {\n\t\t System.out.println(s);\n\t\t }\n\t\t});\n\t\t//iterando com java 8: lambda\n\t\t//Essa sintaxe funciona para qualquer interface \n\t\t//que tenha apenas um método abstrato\n\t\ttexto.forEach((String s) -> {\n\t\t System.out.println(s);\n\t\t});\n\t\t//ou\n\t\ttexto.forEach((s) -> {\n\t\t System.out.println(s);\n\t\t});\n\t\t//ou\n\t\ttexto.forEach(s -> {\n\t\t System.out.println(s);\n\t\t});\n\t\t//ou\n\t\ttexto.forEach(s -> System.out.println(s));\n\t\t// Uma interface que possui apenas um método abstrato \n\t\t//é agora conhecida como interface funcional e pode ser utilizada dessa forma\n\t\t\n\t\t//Outro exemplo é o próprio Comparator. Se utilizarmos a forma \n\t\t//de classe anônima, teremos essa situação: \n\t\ttexto.sort(new Comparator<String>() {\n\t\t public int compare(String s1, String s2) {\n\t\t if (s1.length() < s2.length())\n\t\t return -1;\n\t\t if (s1.length() > s2.length())\n\t\t return 1;\n\t\t return 0;\n\t\t }\n\t\t});\n\t\t//ou com lambda\n\t\ttexto.sort((s1, s2) -> {\n\t\t if (s1.length() < s2.length())\n\t\t return -1;\n\t\t if (s1.length() > s2.length())\n\t\t return 1;\n\t\t return 0;\n\t\t});\n\t\t//ou\n\t\ttexto.sort((s1, s2) -> {\n\t\t return Integer.compare(s1.length(), s2.length());\n\t\t});\n\t\t//ou como há apenas um único statement, podemos remover as chaves\n\t\ttexto.sort((s1, s2) -> Integer.compare(s1.length(), s2.length()));\n\t}",
"public void mo38117a() {\n }",
"void mo57277b();",
"public static void main(String[] args) {\n version1WhileLoop();\n version1DoWhileLoop();\n version1ForLoop();\n version2ForLoop();\n version3ForLoop();\n }",
"public abstract boolean mo2163j();",
"public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"private NativeSupport() {\n\t}",
"private static IRIProvider makeProviderJDK() { return new IRIProviderJDK(); }",
"public void mo21785J() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"public static void generateCode()\n {\n \n }",
"private UsingSwig() {\n\t}",
"public static void main(String[] args) {\n\t\tlanceur8();\n\t}",
"void mo1941j();",
"public abstract void mo2624j();",
"private final boolean updateState(java.lang.Object r7, java.lang.Object r8) {\n /*\n // Method dump skipped, instructions count: 101\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlinx.coroutines.flow.StateFlowImpl.updateState(java.lang.Object, java.lang.Object):boolean\");\n }",
"void mo72113b();",
"static void feladat7() {\n\t}",
"void mo28306a();",
"private static void cajas() {\n\t\t\n\t}",
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public static void main(String[] args) {\n\n\t\tUnaryOperator<Integer> func=x->x*7;\t\t\n\t\tint num=func.apply(10);\n\t\tSystem.out.println(num);\n\t\t\n\t\tFunction<Integer, Integer> func1=x->x*10;\n\t\tSystem.out.println(func1.apply(10));\n\t\t\n\t\tList<String> langList=new ArrayList<String>();\n\t\tlangList.add(\"Java\");\n\t\tlangList.add(\"Ruby\");\n\t\tlangList.add(\"Python\");\n\t\t\n\t\tSystem.out.println(langList);\n\t\t\n\t\tlangList.replaceAll(ele -> ele +\" Deeps\");\n\t\tSystem.out.println(langList);\n\t}",
"void mo57278c();",
"interface DefaultMethod extends SingleMethod {\r\n\tdefault public void myMethod() {\r\n\t\tSystem.out.println(\"from Java 1.8 version can have method with a body\");\r\n}\r\n}",
"void mo80457c();",
"public void mo21792Q() {\n }",
"public static void main(String[] args) {\n \n }",
"public static void main(String[] args) {\n \n }",
"public static void main(String[] args) {\n \n }",
"public static void main(String[] args) {\n \n }",
"public static void main(String[] args) {\n \n }",
"public static void main(String[] args) {\n \n }",
"public void mo21787L() {\n }",
"public void method_4270() {}",
"static void feladat8() {\n\t}",
"public static void main() {\n \n }",
"private void level6() {\n }",
"void mo57275a();",
"void mo80452a();",
"private Quantify()\n {\n throw new UnsupportedOperationException(\"Instantiation of utility classes is not supported.\");\n }",
"public void m9741j() throws cf {\r\n }",
"@Before\n public void setUp() {\n Assume.assumeThat(JavaVersion.getMajorVersion(), Matchers.lessThanOrEqualTo(8));\n }",
"private stendhal() {\n\t}",
"void mo41083a();",
"public static void main(String[] args) {\n\t\tisPolindrom(\"abcd\");\r\n\t\tfibJava8(2);\r\n\t\tfactJava8(5);\r\n\t}",
"void m8368b();",
"@Override\n\tpublic void implementionSeven(String[] args) throws Exception {\n\n\t}",
"public void mo6081a() {\n }",
"java.lang.String getS8();",
"public void mo21879u() {\n }",
"void mo119582b();",
"public abstract void mo27385c();",
"public abstract void mo70713b();",
"public void mo21781F() {\n }",
"public interface AnonymousClass1lE {\n void A7X(String str, String str2, String str3);\n\n void A7Z(String str, String str2, @Nullable Map<String, String> map);\n\n void A7b(String str, String str2, Throwable th, @Nullable Map<String, String> map);\n\n void A7d(String str, String str2, @Nullable Map<String, String> map);\n\n void A7f(String str, String str2);\n\n void A8G(String str, String str2, boolean z);\n\n boolean A9J(String str);\n}",
"void mo41086b();",
"public static void main(String[] args) {\n\n // Creating object of class in main() method\n JEP306_StritfpSample t = new JEP306_StritfpSample();\n\n // Here we have error of putting strictfp and\n // error is not found public static void main method\n System.out.println(t.sum());\n }",
"public static void main(String[] args) {\n \n \n }",
"public static void main(String[] args) {\n \n \n }",
"private void kk12() {\n\n\t}",
"public static void main(String[] args) {\n //Ersetzt jetzt mal unseren Parser, Stell Dir vor\n // das Ding liest das Beispiel da oben ^^.\n final StatementNode[] statementNodes = readStatements();\n \n //Zustände:\n // - FillSymbolTable (was für Symbole [variablen, ...] gibt es)\n // - TypInferenz (Was für Typen haben die Expressions und sind die eingaben semantisch korrekt)\n // - CodeGenerierung oder Ausführung (ersetzen wir mit \"schreibe die Werte aller Variablen nach Ende der Ausführung\")\n \n \n final SymbolTabelle symbolTabelle = new SymbolTabelle();\n //IDEE 2:\n //Ich gebe Statements und Expressions nur eine Methode mit Visitor als Callback\n final StatementVisitorSymbolTabelle statementVisitorSymbolTabelle = new StatementVisitorSymbolTabelle(symbolTabelle);\n for(StatementNode statementNode : statementNodes) {\n statementNode.accept(statementVisitorSymbolTabelle);\n }\n \n final StatementVisitorTypInferenz statementVisitorTypInferenz = new StatementVisitorTypInferenz(symbolTabelle);\n for(StatementNode statementNode : statementNodes) {\n statementNode.accept(statementVisitorTypInferenz);\n }\n \n PseudoLaufContext laufContext = new PseudoLaufContext();\n final StatementVisitorCodeGen statementVisitorCodeGen = new StatementVisitorCodeGen(laufContext);\n for(StatementNode statementNode : statementNodes) {\n statementNode.accept(statementVisitorCodeGen);\n }\n \n laufContext.druckeVariablen();\n \n //Zusammenfassung:\n //Reduktion des Problems darauf, den Code nur noch von einem Abhängig zu machen\n //Jetzt nur noch abhängig vom Typ des Statements\n \n \n //Problem hierbei:\n //Ich muss selbst angeben, in welchem Zustand ich bin\n //Code-Duplizierung\n }",
"public static void main(String[] args) {\n \n \n \n\t}",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"void mo80455b();",
"interface C15937b {\n /* renamed from: a */\n void mo13368a();\n\n /* renamed from: a */\n void mo13369a(int i, int i2, int i3, boolean z);\n\n /* renamed from: a */\n void mo13370a(int i, int i2, List<C15929a> list) throws IOException;\n\n /* renamed from: a */\n void mo13371a(int i, long j);\n\n /* renamed from: a */\n void mo13372a(int i, ErrorCode errorCode);\n\n /* renamed from: a */\n void mo13373a(int i, ErrorCode errorCode, ByteString byteString);\n\n /* renamed from: a */\n void mo13374a(boolean z, int i, int i2);\n\n /* renamed from: a */\n void mo13375a(boolean z, int i, int i2, List<C15929a> list);\n\n /* renamed from: a */\n void mo13376a(boolean z, int i, BufferedSource bufferedSource, int i2) throws IOException;\n\n /* renamed from: a */\n void mo13377a(boolean z, C15943j c15943j);\n }",
"void mo88521a();",
"void mo20141a();",
"public static void main(String[] args) {\n \n \n \n \n }",
"public final void mo51373a() {\n }",
"private final boolean shouldProposeGenerics(IJavaProject project) {\n\t\treturn true;\n\t\t/*\n\t\tString sourceVersion;\n\t\tif (project != null)\n\t\t\tsourceVersion= project.getOption(JavaCore.COMPILER_SOURCE, true);\n\t\telse\n\t\t\tsourceVersion= JavaCore.getOption(JavaCore.COMPILER_SOURCE);\n\n\t\treturn sourceVersion != null && JavaCore.VERSION_1_5.compareTo(sourceVersion) <= 0;\n\t\t*/\n\t}",
"public static void main(String[] args) {\n way8();\n }",
"private JacobUtils() {}",
"void mo60893b();",
"public interface JavaCode {\n\n /**\n * Get an unique identification code for an object\n * TODO: This method is not reliable as hash codes are not unique, should use an UUID generator singleton instead.\n *\n * @param obj the object\n * @return the unique identification code\n */\n static int getUniqueID(Object obj) {\n return obj.hashCode();\n }\n\n /**\n * Compiles this code. If an object implements both {@link JavaCode}\n * and {@link JavaExpression}, only one of this method and\n * {@link JavaExpression#compileExpression(Subroutine, JavaScope)} should be called.\n *\n * @param subroutine the subroutine which this code belongs to\n * @param parent the parent scope of this code\n * @throws JTAException if an error occurs\n */\n void compileCode(Subroutine subroutine, JavaScope parent) throws JTAException;\n}",
"public void mo8738a() {\n }",
"public void mo1972o() throws cf {\r\n }",
"public static void main (String[] args) {import java.util.*;%>\n//&&&staticSymbol&&&<%import org.eclipse.emf.codegen.ecore.genmodel.*;%>\n//&&&staticSymbol&&&<%\n\n/**\n * Copyright (c) 2002-2010 IBM Corporation and others.\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors:\n * IBM - Initial API and implementation\n */\n\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nGenPackage genPackage = (GenPackage)((Object[])argument)[0]; GenModel genModel=genPackage.getGenModel(); /* Trick to import java.util.* without warnings */Iterator.class.getName();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nboolean isInterface = Boolean.TRUE.equals(((Object[])argument)[1]); boolean isImplementation = Boolean.TRUE.equals(((Object[])argument)[2]);\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nString publicStaticFinalFlag = isImplementation ? \"public static final \" : \"\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%include(\"../Header.javajetinc\");%>\n//&&&staticSymbol&&&<%\nif (isInterface || genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&package <%\n//&&&staticSymbol&&&=genPackage.getReflectionPackageName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&package <%\n//&&&staticSymbol&&&=genPackage.getClassPackageName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addPseudoImport(\"org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addPseudoImport(\"org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container.Dynamic\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addImport(\"org.eclipse.emf.ecore.EClass\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addImport(\"org.eclipse.emf.ecore.EObject\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!genPackage.hasJavaLangConflict() && !genPackage.hasInterfaceImplConflict() && !genPackage.getClassPackageName().equals(genPackage.getInterfacePackageName())) genModel.addImport(genPackage.getInterfacePackageName() + \".*\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.markImportLocation(stringBuffer);\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (isInterface) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&/**\n//&&&staticSymbol&&& * <!-- begin-user-doc -->\n//&&&staticSymbol&&& * The <b>Factory</b> for the model.\n//&&&staticSymbol&&& * It provides a create method for each non-abstract class of the model.\n//&&&staticSymbol&&& * <!-- end-user-doc -->\n//&&&staticSymbol&&&<%\nif (!genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& * @see <%\n//&&&staticSymbol&&&=genPackage.getQualifiedPackageInterfaceName()\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& * @generated\n//&&&staticSymbol&&& */\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&/**\n//&&&staticSymbol&&& * <!-- begin-user-doc -->\n//&&&staticSymbol&&& * An implementation of the model <b>Factory</b>.\n//&&&staticSymbol&&& * <!-- end-user-doc -->\n//&&&staticSymbol&&& * @generated\n//&&&staticSymbol&&& */\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&public class <%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%> extends <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.impl.EFactoryImpl\")\n//&&&staticSymbol&&&%><%\nif (!genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%> implements <%\n//&&&staticSymbol&&&=genPackage.getImportedFactoryInterfaceName()\n//&&&staticSymbol&&&%><%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&public interface <%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%><%\nif (!genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%> extends <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EFactory\")\n//&&&staticSymbol&&&%><%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&{\n//&&&staticSymbol&&&<%\nif (genModel.hasCopyrightField()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.String\")\n//&&&staticSymbol&&&%> copyright = <%\n//&&&staticSymbol&&&=genModel.getCopyrightFieldLiteral()\n//&&&staticSymbol&&&%>;<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation && (genModel.isSuppressEMFMetaData() || genModel.isSuppressInterfaces())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%> eINSTANCE = init();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isInterface && genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%> INSTANCE = <%\n//&&&staticSymbol&&&=genPackage.getQualifiedFactoryClassName()\n//&&&staticSymbol&&&%>.eINSTANCE;\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n} else if (isInterface && !genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%> eINSTANCE = <%\n//&&&staticSymbol&&&=genPackage.getQualifiedFactoryClassName()\n//&&&staticSymbol&&&%>.init();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Creates the default factory implementation.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&<%\nString factoryType = genModel.isSuppressEMFMetaData() ? genPackage.getFactoryClassName() : genPackage.getImportedFactoryInterfaceName();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic static <%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%> init()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t<%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%> the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%> = (<%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EPackage\")\n//&&&staticSymbol&&&%>.Registry.INSTANCE.getEFactory(<%\n//&&&staticSymbol&&&=genPackage.getPackageInterfaceName()\n//&&&staticSymbol&&&%>.eNS_URI);\n//&&&staticSymbol&&&\t\t\tif (the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%> != null)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (Exception exception)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.plugin.EcorePlugin\")\n//&&&staticSymbol&&&%>.INSTANCE.log(exception);\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genPackage.getImportedFactoryClassName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Creates an instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tsuper();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic EObject create(EClass eClass)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eClass.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!genClass.isAbstract()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genClass.getClassifierID()\n//&&&staticSymbol&&&%>: return <%\n//&&&staticSymbol&&&*%%storeSymbol%%*0\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The class '\" + eClass.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (!genPackage.getAllGenDataTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic Object createFromString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, String initialValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eDataType.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getClassifierID()\n//&&&staticSymbol&&&%>:\n//&&&staticSymbol&&&\t\t\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>FromString(eDataType, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The datatype '\" + eDataType.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic String convertToString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, Object instanceValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eDataType.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getClassifierID()\n//&&&staticSymbol&&&%>:\n//&&&staticSymbol&&&\t\t\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>ToString(eDataType, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The datatype '\" + eDataType.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (!genClass.isAbstract()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genClass.getTypeParameters()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genClass.isDynamic()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%> = <%\n//&&&staticSymbol&&&=genClass.getCastFromEObject()\n//&&&staticSymbol&&&%>super.create(<%\n//&&&staticSymbol&&&=genClass.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genClass.getImportedClassName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getClassTypeArguments()\n//&&&staticSymbol&&&%> <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%> = new <%\n//&&&staticSymbol&&&=genClass.getImportedClassName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getClassTypeArguments()\n//&&&staticSymbol&&&%>()<%\nif (genModel.isSuppressInterfaces() && !genPackage.getReflectionPackageName().equals(genPackage.getInterfacePackageName())) {\n//&&&staticSymbol&&&%>{}<%\n}\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) { String eDataType = genDataType.getQualifiedClassifierAccessor();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useGenerics() && genDataType.isUncheckedCast() && !genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>final <%\n}\n//&&&staticSymbol&&&%>String <%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>it<%\n} else {\n//&&&staticSymbol&&&%>literal<%\n}\n//&&&staticSymbol&&&%>)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getCreatorBody(genModel.getIndentation(stringBuffer))\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%>.get(literal);\n//&&&staticSymbol&&&\t\tif (result == null) throw new IllegalArgumentException(\"The value '\" + literal + \"' is not a valid enumerator of '\" + <%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>.getName() + \"'\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(3)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); boolean isPrimitiveConversion = !genDataType.isPrimitiveType() && genBaseType.isPrimitiveType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genBaseType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (literal == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.ArrayList\")\n//&&&staticSymbol&&&%><%\nif (genModel.useGenerics()) {\n//&&&staticSymbol&&&%><<%=genItemType.getObjectType().getImportedParameterizedInstanceClassName()%>><%\n}\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%> stringTokenizer = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%>(literal); stringTokenizer.hasMoreTokens(); )\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (String item : split(literal))\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString item = stringTokenizer.nextToken();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>(item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage().isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>(item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (literal == null) return <%\n//&&&staticSymbol&&&=genDataType.getStaticValue(null)\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=genDataType.getStaticValue(null)\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\tRuntimeException exception = null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { if (!genDataType.isPrimitiveType()) genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = (<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { if (!genDataType.isPrimitiveType()) genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = (<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (<%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>result != null && <%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.util.Diagnostician\")\n//&&&staticSymbol&&&%>.INSTANCE.validate(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, <%\nif (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(result)<%\n} else {\n//&&&staticSymbol&&&%>result<%\n}\n//&&&staticSymbol&&&%>, null, null))\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn result;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (RuntimeException e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\texception = e;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>result != null || <%\n}\n//&&&staticSymbol&&&%>exception == null) return result;\n//&&&staticSymbol&&& \n//&&&staticSymbol&&&\t\tthrow exception;\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn (<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)super.createFromString(literal);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else if (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn ((<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)super.createFromString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, literal)).<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (!genPackage.isDataTypeConverters() && genModel.useGenerics() && genDataType.isUncheckedCast() && !genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, String initialValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=((GenEnum)genDataType).getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=((GenEnum)genDataType).getImportedInstanceClassName()\n//&&&staticSymbol&&&%>.get(initialValue);\n//&&&staticSymbol&&&\t\tif (result == null) throw new IllegalArgumentException(\"The value '\" + initialValue + \"' is not a valid enumerator of '\" + eDataType.getName() + \"'\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(3)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.getObjectInstanceClassName().equals(genBaseType.getObjectInstanceClassName())) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (initialValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.ArrayList\")\n//&&&staticSymbol&&&%><%\nif (genModel.useGenerics()) {\n//&&&staticSymbol&&&%><<%=genItemType.getObjectType().getImportedParameterizedInstanceClassName()%>><%\n}\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%> stringTokenizer = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%>(initialValue); stringTokenizer.hasMoreTokens(); )\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (String item : split(initialValue))\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString item = stringTokenizer.nextToken();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\nif (!genItemType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (initialValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%> result = null;\n//&&&staticSymbol&&&\t\tRuntimeException exception = null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\nif (!genDataType.isObjectType() && !genDataType.getObjectInstanceClassName().equals(genMemberType.getObjectInstanceClassName())) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (result != null && <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.util.Diagnostician\")\n//&&&staticSymbol&&&%>.INSTANCE.validate(eDataType, result, null, null))\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn result;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (RuntimeException e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\texception = e;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (result != null || exception == null) return result;\n//&&&staticSymbol&&& \n//&&&staticSymbol&&&\t\tthrow exception;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(initialValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(eDataType, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) { String eDataType = genDataType.getQualifiedClassifierAccessor();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic String convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>final <%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%> <%\nif (genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>it<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getConverterBody(genModel.getIndentation(stringBuffer))\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : instanceValue.toString();\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); boolean isPrimitiveConversion = !genDataType.isPrimitiveType() && genBaseType.isPrimitiveType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genBaseType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genBaseType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedFactoryInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&&\t\tif (instanceValue.isEmpty()) return \"\";\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nString item; if (!genModel.useGenerics()) { item = \"i.next()\"; \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.Iterator\")\n//&&&staticSymbol&&&%> i = instanceValue.iterator(); i.hasNext(); )\n//&&&staticSymbol&&& <%\n} else { item = \"item\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.Object\")\n//&&&staticSymbol&&&%> item : instanceValue)\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage().isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(' ');\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result.substring(0, result.length() - 1);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>.isInstance(instanceValue))\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\ttry\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getQualifiedInstanceClassName().equals(genDataType.getQualifiedInstanceClassName())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (genMemberType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(((<%\n//&&&staticSymbol&&&=genMemberType.getObjectType().getImportedInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue).<%\n//&&&staticSymbol&&&=genMemberType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>());\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genMemberType.getObjectType().getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage().isDataTypeConverters()) { genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue)<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue)<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tthrow new IllegalArgumentException(\"Invalid value: '\"+instanceValue+\"' for datatype :\"+<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>.getName());\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else if (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useGenerics() && (genDataType.getItemType() != null || genDataType.isUncheckedCast()) && (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic String convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, Object instanceValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : instanceValue.toString();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else { final String singleWildcard = genModel.useGenerics() ? \"<?>\" : \"\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.List\")\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=singleWildcard\n//&&&staticSymbol&&&%> list = (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.List\")\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=singleWildcard\n//&&&staticSymbol&&&%>)instanceValue;\n//&&&staticSymbol&&&\t\tif (list.isEmpty()) return \"\";\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nString item; if (!genModel.useGenerics()) { item = \"i.next()\"; \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.Iterator\")\n//&&&staticSymbol&&&%> i = list.iterator(); i.hasNext(); )\n//&&&staticSymbol&&& <%\n} else { item = \"item\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.Object\")\n//&&&staticSymbol&&&%> item : list)\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(' ');\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result.substring(0, result.length() - 1);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(((<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue)<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>.isInstance(instanceValue))\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\ttry\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tthrow new IllegalArgumentException(\"Invalid value: '\"+instanceValue+\"' for datatype :\"+eDataType.getName());\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>(<%\n}\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>).<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(eDataType, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genClass.hasFactoryInterfaceCreateMethod()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns a new object of class '<em><%\n//&&&staticSymbol&&&=genClass.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @return a new object of class '<em><%\n//&&&staticSymbol&&&=genClass.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genClass.getTypeParameters()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns an instance of data type '<em><%\n//&&&staticSymbol&&&=genDataType.getFormattedName()\n//&&&staticSymbol&&&%></em>' corresponding the given literal.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @param literal a literal of the data type.\n//&&&staticSymbol&&&\t * @return a new instance value of the data type.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(String literal);\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns a literal representation of an instance of data type '<em><%\n//&&&staticSymbol&&&=genDataType.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @param instanceValue an instance value of the data type.\n//&&&staticSymbol&&&\t * @return a literal representation of the instance value.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tString convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%> instanceValue);\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!isImplementation && !genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns the package supported by this factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @return the package supported by this factory.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genPackage.getPackageInterfaceName()\n//&&&staticSymbol&&&%> get<%\n//&&&staticSymbol&&&=genPackage.getBasicPackageName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n} else if (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%> get<%\n//&&&staticSymbol&&&=genPackage.getBasicPackageName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\treturn (<%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>)getEPackage();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @deprecated\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Deprecated\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic static <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%> getPackage()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.eINSTANCE;\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&} //<%\n//&&&staticSymbol&&&*%%storeSymbol%%*1\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.emitSortedImports();\n//&&&staticSymbol&&&%>\n\n}",
"static void feladat9() {\n\t}",
"@Override\n public boolean isVersionCodeCompatible(int version) {\n return true;\n }",
"public void mo4359a() {\n }",
"private static List<String> getJavasSourceCodeFiels(Map<String,Object> map){\r\n \t\t\r\n \t\t\r\n \t\tSystem.out.println(\"............\");\r\n \t\tLinkedList<String> list = new LinkedList<String>();\r\n \t\tfor(String key : map.keySet()){\r\n \t\t\tObject o = map.get(key);\r\n \r\n \t\t\t//package...\r\n \t\t\tif(o instanceof IPackageFragment){\r\n \t\t\t\t//System.out.println(\"Package --> \" + key);\r\n \t\t\t\tkey = key.substring(0,key.indexOf('[')).trim();\r\n \t\t\t\tkey = PACKAGE + \"(\" + key + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}\r\n \t\t\t//class...\r\n \t\t\tif(o instanceof ICompilationUnit){\r\n \t\t\t\t//System.out.println(\"Class --> \" + key);\r\n \t\t\t\tString classname = key.substring(0,key.indexOf('[')).trim();\r\n \t\t\t\tString packagename = key.substring(key.indexOf(PACKAGE),key.indexOf('\\n',key.indexOf(PACKAGE)));\r\n \t\t\t\tkey = CLASS_WITH_MEMBERS + \"(\" + packagename + \",\" + classname + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}//method\r\n \t\t\tif(o instanceof IMethod){\r\n \t\t\t\tSystem.out.println(\"Methode --> \" + key);\r\n \t\t\t\tkey = METHOD + \"(\" + getQueryFromMethod((IMethod)o) + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(o instanceof IField){\r\n \t\t\t\tSystem.out.println(\"Attribut --> \" + key);\r\n \t\t\t\tkey = FIELD + \"(\" + getQueryFromField((IField)o) + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn list;\r\n \t\t\r\n \t\t\r\n \t\t/*\r\n \t\tfor(String key : map.keySet()){\r\n \t\t\tObject o = map.get(key);\r\n \t\t\t//if(o instanceof ISourceAttribute)\r\n \t\t\t\t//System.out.println(\"attribute\");\r\n \t\t\t//if(o instanceof ISourceMethod)\r\n \t\t\t\t//System.out.println(\"methode\");\r\n \t\t\tif(o instanceof IPackageFragment) \r\n \t\t\t\tSystem.out.println(\"Package\");\r\n \t\t\tif(o instanceof ICompilationUnit)\r\n \t\t\t\tSystem.out.println(\"sour code file\");\r\n \t\t\t\t\r\n \t\t\t//\"oldquery or class('voller packagename', klassenname)\"\r\n \t\t\t\t\r\n \t\t\t\t\r\n \t\t\tif(o instanceof IField)\r\n \t\t\t\tSystem.out.println(\"Attribut\");\r\n \t\t\tif(o instanceof IType)\r\n \t\t\t\tSystem.out.println(\"classe also class ... in einem file\");\r\n \t\t\tif(o instanceof IMethod)\r\n \t\t\t\tSystem.out.println(\"Methode\");\r\n \t\t\tif(o instanceof IPackageFragmentRoot) \r\n \t\t\t\tSystem.out.println(\"jar package / src Ordner\");\r\n \t\t\tif(o instanceof IProject)\r\n \t\t\t\tSystem.out.println(\"Projekt Ordner\");\r\n \t\t\tif(o instanceof IClassFile)\r\n \t\t\t\tSystem.out.println(\"ClassFile\");\r\n \t\t\tif(o instanceof IAdaptable) //trieft auch auf viele ander sachen zu\r\n \t\t\t\tSystem.out.println(\"Libaraycontainer\");\r\n \t\t\tif(o instanceof IFile)\r\n \t\t\t\tSystem.out.println(\"file\"); //je nach ausgewlter ansicht knnen file auch *.java datein sein\r\n \t\t\tif(o instanceof IFolder)\r\n \t\t\t\tSystem.out.println(\"folder\");\r\n \t\t\tSystem.out.println(o.getClass());\r\n \t\t\t\r\n \t\r\n \t\t}\r\n \t\treturn null;\r\n \t\t*/\r\n \t}",
"public void mo1531a() {\n }",
"public void mo1976s() throws cf {\r\n }",
"void mo119581a();",
"static void feladat6() {\n\t}",
"private void generateSolution() {\n\t\t// TODO\n\n\t}"
] |
[
"0.5890391",
"0.58054996",
"0.57008785",
"0.56167847",
"0.54946315",
"0.54761344",
"0.524263",
"0.52340496",
"0.5233149",
"0.52029705",
"0.5160466",
"0.51574665",
"0.5143396",
"0.5094738",
"0.5084682",
"0.5069909",
"0.50661004",
"0.50645214",
"0.5064437",
"0.50475377",
"0.5041245",
"0.5039573",
"0.5037435",
"0.50317824",
"0.5007829",
"0.500209",
"0.49986184",
"0.4996393",
"0.49733046",
"0.49654463",
"0.49482828",
"0.49374196",
"0.49367213",
"0.49362347",
"0.4931423",
"0.49300268",
"0.49164099",
"0.49096605",
"0.4893169",
"0.48904118",
"0.4883474",
"0.4883474",
"0.4883474",
"0.4883474",
"0.4883474",
"0.4883474",
"0.4869394",
"0.48675945",
"0.4863796",
"0.4849808",
"0.48444158",
"0.48439786",
"0.48421556",
"0.4838581",
"0.48383453",
"0.4837389",
"0.4833218",
"0.48310906",
"0.4830076",
"0.4827487",
"0.481306",
"0.48097232",
"0.4807137",
"0.48028547",
"0.4801506",
"0.47964317",
"0.47952133",
"0.479351",
"0.4792214",
"0.4791279",
"0.47875714",
"0.47851777",
"0.47851777",
"0.47834784",
"0.47784257",
"0.47747812",
"0.47722042",
"0.47722042",
"0.47719148",
"0.47705945",
"0.47705132",
"0.47681588",
"0.47653475",
"0.47629744",
"0.47611335",
"0.47570732",
"0.47566834",
"0.47548115",
"0.4751401",
"0.47484854",
"0.47464594",
"0.47460574",
"0.47457317",
"0.4742769",
"0.47399607",
"0.47344413",
"0.47313395",
"0.47252822",
"0.47233605",
"0.4721698",
"0.47122636"
] |
0.0
|
-1
|
Resets the "selected" attribute of any parent Entity controllers.
|
public void resetParents() {
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void resetParents() {\n businessentityController.setSelected(null);\n }",
"public void resetParents() {\n oferenteController.setSelected(null);\n expedienteprocesoController.setSelected(null);\n }",
"public void resetParents() {\n idEmpleadoController.setSelected(null);\n idEquipoController.setSelected(null);\n idUsuarioController.setSelected(null);\n }",
"public void resetParents() {\r\n servicioIdController.setSelected(null);\r\n }",
"public void resetParents() {\n frecuenciaServicioIdPeriodoController.setSelected(null);\n frecuenciaServicioIdServicioController.setSelected(null);\n frecuenciaServicioIdTipoDemandaController.setSelected(null);\n frecuenciaServicioIdTipoDiaController.setSelected(null);\n }",
"public void resetParents() {\n manufacturerIdController.setSelected(null);\n productCodeController.setSelected(null);\n }",
"public void resetParents() {\n idemenController.setSelected(null);\n }",
"public void resetParents() {\n idDepartamentoController.setSelected(null);\n }",
"public void resetParents() {\n seguimientoController.setSelected(null);\n programaAnoController.setSelected(null);\n }",
"public void resetParents() {\n hospitalOperationController.setSelected(null);\n }",
"public void resetParents() {\n stateProvinceIDController.setSelected(null);\n }",
"public void resetParents() {\n seqTurnoController.setSelected(null);\n seqPessoaController.setSelected(null);\n seqEscolaController.setSelected(null);\n seqAnoController.setSelected(null);\n }",
"public void resetParents() {\n trabajadorAdicionalSaludIdMonedaController.setSelected(null);\n trabajadorAdicionalSaludIdTrabajadorController.setSelected(null);\n }",
"public void resetSelectPresentation();",
"public void resetSelection(IClientContext context) throws Exception;",
"public void clearEntityTagsForSelectedEntities() {\n getRTParent().clearEntityTagsForSelectedEntities();\n }",
"public void resetSelectedCases() {\n Component[] contenu = this.getComponents();\n for (int i = 0; i < contenu.length; i++) {\n if (contenu[i].getClass().equals(CaseJeu.class)) {\n CaseJeu c = (CaseJeu) contenu[i];\n if (c.getEtat().equals(Case.Etat.SELECTIONE)) {\n c.setEtat(Case.Etat.RIEN);\n }\n }\n }\n }",
"@Override\n\tpublic Object getModelSelected() {\n\t\treturn null;\n\t}",
"public void reset() {\r\n availableOptionsModel.getObject().clear();\r\n selectedOptionsModel.getObject().clear();\r\n paletteForm.visitChildren(FormComponent.class, new IVisitor<Component>() {\r\n @Override\r\n public Object component(Component component) {\r\n ((FormComponent<?>) component).clearInput();\r\n return Component.IVisitor.CONTINUE_TRAVERSAL;\r\n }\r\n });\r\n paletteForm.getModelObject().setSearchString(\"\");\r\n }",
"@Listen(\"onClick = #selectTree\")\n\tpublic void select(){\n\t\ttreeModel.setOpenObjects(treeModel.getRoot().getChildren());\n\t\tTreeitem[] items = tree.getItems().toArray(new Treeitem[0]);\n\t\ttree.setSelectedItem(items[items.length - 1]);\n\t}",
"@Listen(\"onClick = #selectModel\")\n\tpublic void selectModel(){\n\t\ttreeModel.setOpenObjects(List.of(treeModel.getRoot().getChildren().get(path[0])));\n\t\ttreeModel.addToSelection(treeModel.getChild(path));\n\t}",
"public void resetForm() {\n selectedTipo = null;\n }",
"public void undo() {\n\t\tparent.requestChange(new ModelChangeRequest(this.getClass(), parent,\n\t\t\t\t\"create\") {\n\t\t\t@Override\n\t\t\tprotected void _execute() throws Exception {\n\t\t\t\teditor.selectPage((CompositeActor) parent);\n\t\t\t\tif (child instanceof NamedObj) {\n\t\t\t\t\tComponentUtility.setContainer(child, null);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public void reset() {\n\t\t// set any default values\n\t\t// setDefaultController() ???\n\t}",
"public void setSelectedEntities(List<BasicEntity> selectedEntities) {\n this.selectedEntities = selectedEntities;\n }",
"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 resetWidget() {\n\t\tif (!modelList.isEmpty()) {\n\t\t\tthis.setSelectedIndex(0);\n\t\t}\n\t}",
"protected void restoreTreeSelection() {\n _spTree.setIgnoreSelection(true);\n tree.setSelectionPaths(selections);\n\n // Restore the lead selection\n if (leadSelection != null) {\n tree.removeSelectionPath(leadSelection);\n tree.addSelectionPath(leadSelection);\n }\n\n _spTree.setIgnoreSelection(false);\n }",
"@Override\n\tpublic void setModel() {\n\t\tsuper.setModel();\n\t\tclear();\n\t}",
"void resetSelectedDevice() {\n selectedDevice = null;\n userSelectedDevice = null;\n }",
"public void itemsSelected() {\n getEntitySelect().close();\n Collection<T> selectedValues = getEntitySelect().getResults().getSelectedValues();\n setReferencesToParentAndPersist((T[]) selectedValues.toArray());\n showAddSuccessful();\n }",
"@Override\n\tpublic ODocument getModelSelected() {\n\t\treturn null;\n\t}",
"private void setSelectedSetting(Parent parent) {\n localSettings = AppSettings.getSettings();\n selectedSetting.getChildren().removeAll(selectedSetting.getChildren());\n selectedSetting.getChildren().add(parent);\n }",
"@Override\n public void undo(){\n this.parent.getSelectedArea().clear();\n }",
"public void clearTableSelectedSet(){\n\t\tselectionModel.clear();\n\t}",
"public void onSelectedFromReset() {\n\t\tfilterName = null;\n\t\tfilterState = null;\n\t\tfilterVariant = null;\n\t\tfilterAcquisition = null;\n\t\tfilterLiquidation = null;\n\t\tfilterLocation = null;\n\t\tfilterComment = null;\n\t\tledger.reset();\n\t\t// ... then just fall through to the success action.\n\t}",
"@FXML\n public void limpaCidade(){\n \ttxtNome.setText(\"\");\n \ttxtUf.getSelectionModel().clearSelection();\n }",
"public void resetSelectedSensors(){\n kFrontLeft.setSelectedSensorPosition(0,PID_IDX,0);\n kRearLeft.setSelectedSensorPosition(0,PID_IDX,0);\n kFrontRight.setSelectedSensorPosition(0,PID_IDX,0);\n kRearRight.setSelectedSensorPosition(0,PID_IDX,0);\n }",
"public void prepareOferente(ActionEvent event) {\n if (this.getSelected() != null && oferenteController.getSelected() == null) {\n oferenteController.setSelected(this.getSelected().getOferente());\n }\n }",
"void reset() {\n colorSelectedList = new HashSet<>();\n }",
"@Override\n public void deselectGolem() {\n }",
"abstract public void cabMultiselectPrimaryAction();",
"public void clearAllSelected() {\n getSelectHelper().clearAllSelected();\n }",
"@Override\npublic void setUIComponentDeselected(ObjectAdapter[] child) {\n\t\n}",
"public void resetSelectIds() {\n calendarId = new SelectId<>(null, SelectId.AHasPrecedence);\n locId = new SelectId<>(null, SelectId.AHasPrecedence);\n ctctId = new SelectId<>(null, SelectId.AHasPrecedence);\n }",
"@Override\n\tpublic int getSelectedNavigationIndex() {\n\t\treturn 0;\n\t}",
"public abstract void clearAllSelections();",
"public void resetSelected(){\n\t\tfor(int x =0; x<9; x++){\n\t\t\tClientWindow.retButtons()[x].setBackground(Color.LIGHT_GRAY);\n\t\t}\n\t}",
"public void resetSelections()\n {\n for(Node child: gridpane.getChildren())\n {\n Button randButton = (Button) child;\n\n // set all buttons to have default background\n randButton.setStyle(null);\n }\n }",
"public void setSelectedItem( final T selectedEntity ) {\n this.selectedEntity = selectedEntity;\n }",
"@Override\n\tpublic void deleteSelected() {\n\n\t}",
"public void setSelectedEntities(Entity[] newEntities) {\n\t\tselectedEntities = newEntities;\n\t}",
"public void prepareIdEmpleado(ActionEvent event) {\n Rentadevolucion selected = this.getSelected();\n if (selected != null && idEmpleadoController.getSelected() == null) {\n idEmpleadoController.setSelected(selected.getIdEmpleado());\n }\n }",
"private void syncNodeSelection() {\r\n\t\tGraphNode node = ((AbstractGraph)graphController.getGraph()).getFirstSelectedNode();\r\n\t\tif(node != null) {\r\n\t\t\tcancelSelectionUpdate = true;\r\n\t\t\tsetGlobalSelection((OWLEntity)node.getUserObject());\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void cleanup() {\r\n\t\tlevelList.setSelectedIndex(0);\t\t\r\n\t}",
"public void setSelectedItems( final Set<T> selectedEntities ) {\n this.selectedEntities = selectedEntities;\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}",
"public void prepareBusinessentity(ActionEvent event) {\n if (this.getSelected() != null && businessentityController.getSelected() == null) {\n businessentityController.setSelected(this.getSelected().getBusinessentity());\n }\n }",
"public void Reset()\r\n\t{\r\n\t\tif(!levelEditingMode)//CAN ONLY RESET IN LEVEL EDITING MODE\r\n\t\t{\r\n\t\t\tgrid.clearUserObjects();\r\n\t\t\tmenu = new SpriteMenu(listFileName, playButton);\r\n\t\t}\r\n\t}",
"public void resetSearchSelection() {\n this.quantSearchSelection = null;\n SelectionChanged(\"reset_quant_searching\");\n }",
"@FXML\n private void resetFilters() {\n regionFilterComboBox.getSelectionModel().select(regionString);\n organFilterComboBox.getSelectionModel().select(organString);\n }",
"@VisibleForTesting\n protected void applyProvisionalSelection() {\n mSelection.addAll(mProvisionalSelection);\n mProvisionalSelection.clear();\n }",
"public void setParentController(HomeController parent) {\n\t\tthis.parent = parent;\n\t}",
"@Override\r\n\tpublic void setSelection(List<EObject> selection) {\r\n\t\tthis.selection = selection;\r\n\t\tthis.refactoringProcessor = \r\n\t\t\t\tnew InternalRefactoringProcessor(this.selection);\r\n\t}",
"public synchronized void reset() {\n for (TreeManagementModel model : mgrModels.values()) {\n model.reset();\n }\n }",
"public void initializeAll() {\n getConsole_inclusionFactor().getSelectionModel().selectFirst();\n getConsole_sortingDirection().getSelectionModel().selectFirst();\n getConsole_firstSortingFactor().getSelectionModel().selectFirst();\n getConsole_secondSortingFactor().getSelectionModel().selectFirst();\n getAction_inclusionFactor().getSelectionModel().selectFirst();\n getAction_sortingDirection().getSelectionModel().selectFirst();\n getAction_firstSortingFactor().getSelectionModel().selectFirst();\n getAction_secondSortingFactor().getSelectionModel().selectFirst();\n getAction_Status().getSelectionModel().selectFirst();\n getAction_Member().getSelectionModel().selectFirst();\n getAction_Team().getSelectionModel().selectFirst();\n \n }",
"public void resetCurrentlySelectedObject() {\n this.currentlySelectedObject.setTransparency(255);\n this.currentlySelectedObject = null;\n }",
"@Override\n\tprotected void cmdClearWidgetSelected() {\n\t\tclearMode();\n\n\t}",
"public void deselectAll() {\n\t\tselected.clear();\n\t}",
"public void setSelected(boolean newSelected) {\n \t\tboolean oldSelected = selected;\n \t\tselected = newSelected;\n \t\tif (oldSelected != newSelected && parentSelection != null)\n \t\t\tparentSelection.setModified(true);\n \t}",
"public void selectAgent(int selected) {\n this.selected = selected;\n }",
"public void setParentMenu(String name);",
"@Override\n\tpublic void setSelected(boolean selected) {\n\t\t\n\t}",
"@Override\n public void reset() {\n model.reset();\n view.resetView();\n }",
"public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }",
"public void reset()\n\t{\n\t\tthis.resetSelected();\n\t\tthis.clearMsgArea();\n\t}",
"public void filterOutSelection() {\n RenderContext myrc = (RenderContext) rc; if (myrc == null) return;\n Set<String> sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n if (sel == null || sel.size() == 0) { getRTParent().pop(); repaint(); return; }\n Set<Bundle> new_bundles = new HashSet<Bundle>();\n if (sel != null && sel.size() > 0) {\n new_bundles.addAll(myrc.bs.bundleSet());\n Iterator<String> it = sel.iterator();\n\twhile (it.hasNext()) new_bundles.removeAll(myrc.entity_counter_context.getBundles(it.next()));\n getRTParent().setSelectedEntities(new HashSet<String>());\n\tgetRTParent().push(myrc.bs.subset(new_bundles));\n repaint();\n }\n }",
"@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 }",
"@Override\r\n\tprotected void ResetBaseObject() {\r\n\t\tsuper.ResetBaseObject();\r\n\r\n\t\t// new Base Object\r\n\t\tbaseEntity = new Chooseval();\r\n\r\n\t\t// new other Objects and set them into Base object\r\n\r\n\t\t// refresh Lists\r\n\t\tbaseEntityList = ChoosevalService.FindAll(\"id\", JPAOp.Asc);\r\n\t}",
"private void resetAll() {\n\t\tif(mu1 != null)\n\t\t\tmodel.getView().reset(mu1);\n\t\tmu1 = null;\n\t\t\n\t\tif(mu2 != null)\n\t\t\tmodel.getView().reset(mu2);\n\t\tmu2 = null;\n\t\t\n\t\tif(functionWord != null)\n\t\t\tmodel.getView().reset(functionWord);\n\t\tfunctionWord = null;\n\t\t\n\t\tmodel.getSGCreatingMenu().reset();\n\t}",
"@Override\n\tprotected void selectedProductChanged()\n\t{\n\t\tgetController().selectedProductChanged();\n\t}",
"@FXML\n public void allSelected() {\n this.populateListInterview(this.interviewer.getPendingInterviews());\n }",
"public void clearChoiceSelect() {\n choiceSelect = -1;\n }",
"public void prepareServicioId(ActionEvent event) {\r\n if (this.getSelected() != null && servicioIdController.getSelected() == null) {\r\n servicioIdController.setSelected(this.getSelected().getServicioId());\r\n }\r\n }",
"public void clearChoiceSelect() {\n choiceSelect = -1;\n }",
"@Override\n\tpublic void unselect() {\n\t}",
"void setSelectedItems(ValueType selectedItems);",
"public void setParent(MenuTree parent){\n this.parentMenuTree = parent;\n }",
"public void setParent(int id);",
"public void setParent(@CheckForNull final OtuSet parent) {\n\t\tthis.parent = parent;\n\t}",
"@Override\n\tpublic List<Tmenu> selectParentMenu() {\n\t\treturn menuMapper.selectParentMenu();\n\t}",
"protected void reinitialize() {\n \n TTSelectTargetModel m = new TTSelectTargetModel(source, targetFilter);\n \n targetTree.setTreeTableModel( m );\n \n expandAll(new TreePath(m.getRoot()));\n \n // Clear any old listeners by creating a new listener list.\n listenerList = new EventListenerList();\n \n setPresetTarget(false);\n \n setAdditionalNotes(null);\n }",
"private void resetApp() {\n\t\tthis.panelTags.setVisible(false);\n\t\tthis.panelMenu.setVisible(true);\n\t\tthis.model.clear();\n\t\tthis.btnClearAll.doClick(0);\n\t\t// textDestination jest czyszczony osobno, po JOptionPane\n\t\t// this.textDestination.setText(null);\n\t\tthis.btnDeleteAll.setEnabled(false);\n\t\tthis.btnDelete.setEnabled(false);\n\t}",
"public void resetSelectedDate() {\r\n selectedDate = null;\r\n }",
"public static void reset() {\n\t\tselectedAtts.clear();\n\t}",
"@Override\npublic void setUIComponentSelected(ObjectAdapter[] child) {\n\t\n}",
"private SelectEntityAction(){\r\n\t\tobservers = new ArrayList<IObserver>();\r\n\t\tselectedEntity = null;\r\n\t}",
"public void clearComponentSelection(){\r\n ComponentSelectionTree.clearSelection();\r\n }",
"public void prepareSeguimiento(ActionEvent event) {\n if (this.getSelected() != null && seguimientoController.getSelected() == null) {\n seguimientoController.setSelected(this.getSelected().getSeguimiento());\n }\n }",
"protected void resetValue(ActionEvent ae) {\n\t\tsearchClassNameTextField.setText(\"\");\r\n\t}"
] |
[
"0.76650393",
"0.7534451",
"0.74119014",
"0.73539287",
"0.7280383",
"0.72471625",
"0.7238065",
"0.7206758",
"0.7148984",
"0.71272284",
"0.7003519",
"0.69074196",
"0.6807132",
"0.5925203",
"0.5890661",
"0.5857201",
"0.5826842",
"0.57976145",
"0.5762226",
"0.56932205",
"0.56463844",
"0.5639663",
"0.559153",
"0.55159116",
"0.55144185",
"0.5506411",
"0.544653",
"0.542658",
"0.54091346",
"0.53989905",
"0.53774583",
"0.5366348",
"0.5353321",
"0.53410846",
"0.53277737",
"0.53190196",
"0.5294386",
"0.52777535",
"0.52588326",
"0.5249921",
"0.5245618",
"0.52400327",
"0.52383524",
"0.5235479",
"0.5232081",
"0.5210731",
"0.52097887",
"0.5209427",
"0.5209144",
"0.519625",
"0.51853096",
"0.5170202",
"0.51630247",
"0.5158152",
"0.51578337",
"0.5141467",
"0.5139717",
"0.51345736",
"0.5128066",
"0.51126856",
"0.5099658",
"0.5091055",
"0.50903404",
"0.50843465",
"0.50679255",
"0.5066619",
"0.5063645",
"0.5062795",
"0.5061837",
"0.50593954",
"0.50536495",
"0.5052795",
"0.50275755",
"0.5025619",
"0.5024892",
"0.50233555",
"0.5019541",
"0.5015448",
"0.5014378",
"0.5013694",
"0.5010534",
"0.50097984",
"0.50012356",
"0.4998096",
"0.49970698",
"0.49940944",
"0.49928707",
"0.49907225",
"0.49861076",
"0.49830115",
"0.49802554",
"0.49787024",
"0.49611515",
"0.49582842",
"0.49573734",
"0.4956395",
"0.49375704",
"0.4935955",
"0.49319327",
"0.49295878"
] |
0.52648455
|
38
|
Sets the "items" attribute with a collection of FichaGeneralEmpleado entities that are retrieved from Ubigeo?cap_first and returns the navigation outcome.
|
public String navigateFichaGeneralEmpleadoList() {
if (this.getSelected() != null) {
FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put("FichaGeneralEmpleado_items", this.getSelected().getFichaGeneralEmpleadoList());
}
return "/fichaGeneralEmpleado/index";
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String navigatePartidoCollection1() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Partido_items\", this.getSelected().getPartidoCollection1());\n }\n return \"/partido/index\";\n }",
"@Override\r\n\tpublic List<Item> getAllHomework() {\n\t\t\r\n\t\treturn itemdao.find(\"from Item\");\r\n\t}",
"public String navigateFechamentoList() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Fechamento_items\", this.getSelected().getFechamentoList());\n }\n return \"/pages/prime/fechamento/index\";\n }",
"public String navigatePartidoCollection() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Partido_items\", this.getSelected().getPartidoCollection());\n }\n return \"/partido/index\";\n }",
"Collection<Item> getInventory();",
"@Override\n\tpublic CollectionItem getItem() {\n\t\treturn manga;\n\t}",
"public String navigatePartidoCollection3() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Partido_items\", this.getSelected().getPartidoCollection3());\n }\n return \"/partido/index\";\n }",
"public Item getItems() {\n return items;\n }",
"public void setItems(Item items) {\n this.items = items;\n }",
"public void fetcherLesEo() {\r\n\t\r\n\t// Commence par fetcher les params ... et si Ok, fetche les EO !\r\n\tif (recupererValParams() && valParams != null) {\r\n\r\n\t NSArray bindings = new NSArray(valParams);\r\n\t EOQualifier qualifier = EOQualifier.qualifierWithQualifierFormat(chaineQualif, bindings);\r\n\t EOFetchSpecification fetchSpec = new EOFetchSpecification(nomEntite,qualifier, eoSortOrderings);\r\n\r\n\t fetchSpec.setRefreshesRefetchedObjects(true);\r\n\r\n\t NSArray res = null;\r\n\t res = monEc.objectsWithFetchSpecification(fetchSpec);\r\n\t listeEOFetches = res;\r\n\t \r\n\t // si on demande � ce qu'� l'init il n'y ait pas de ligne s�lectionn�e par d�faut, alors pas d'Item choisi (en cascade)\r\n\t if (noSelectionPossible) setItemChoisi(null);\r\n\t else {\r\n\t\tif (listeEOFetches != null && listeEOFetches.count() > 0)\r\n\t\t setItemChoisi((EOGenericRecord)listeEOFetches.objectAtIndex(0));\r\n\t\telse setItemChoisi(null);\r\n\t }\r\n\t}\r\n\t// les parametres n'ont pu être récupérés : vider le popUp...\r\n\telse {\r\n listeEOFetches = null;\r\n // pas d'Item choisi (en cascade)\r\n setItemChoisi(null);\r\n\t}\r\n }",
"public String navigatePartidoCollection2() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Partido_items\", this.getSelected().getPartidoCollection2());\n }\n return \"/partido/index\";\n }",
"public void setItems(ItemList items) {\r\n this.items = items;\r\n }",
"public String navigateRutaCollection() {\n Municipio selected = this.getSelected();\n if (selected != null) {\n MunicipioFacade ejbFacade = (MunicipioFacade) this.getFacade();\n Collection<Ruta> selectedRutaCollection = ejbFacade.findRutaCollection(selected);\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Ruta_items\", selectedRutaCollection);\n }\n return \"/app/ruta/index\";\n }",
"public void populate() {\n populate(this.mCurItem);\n }",
"@Override\r\n\tpublic void setInventoryItems() {\n\t\t\r\n\t}",
"@Override\n //Metodo para retornar una lista de los equipos que avanzan\n public List<Equipo> getEquiposQueAvanzan(){\n List<Equipo> equipos = new ArrayList<>();\n //Recorremos la lista de partidos de la etapa mundial\n for (Partido partidito : getPartidos()){\n /*Si en el partido que estamos parados gano el local, agregamos ese equipo\n local a la lista de equipos*/\n if (partidito.getResultado().ganoLocal()){\n equipos.add(partidito.getLocal());\n }\n /*Si NO gano el local, agregamos el equipo visitante a la lista de equipos*/\n if (!partidito.getResultado().ganoLocal()){\n equipos.add(partidito.getVisitante());\n }\n }\n //Retornamos la nueva lista con los equipos que avanzan\n return equipos;\n }",
"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 }",
"public Set<IS> getFreItemSet();",
"public Item[] getItems()\n {\n return items;\n }",
"public ArrayList<Collectable> getItems(){\n return items;\n }",
"@Override\n\tpublic List<Marca> listaporitem() {\n\t\treturn marcadao.listaporitem();\n\t}",
"public FoodItem getFooditem() {\n return fooditem;\n }",
"@Override\n\tpublic List<Fournisseur> getFourniseur() {\n\t\treturn dao.getFourniseur();\n\t}",
"public void navigateBusinessentityaddressList() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Businessentityaddress_items\", this.getSelected().getBusinessentityaddressList());\n }\n menuController.setPageLink(\"/businessentityaddress/index\");\n }",
"private void actualizarEnemigosItems() {\n if(estadoMapa== EstadoMapa.RURAL || estadoMapa== EstadoMapa.RURALURBANO ){\n moverCamionetas();\n moverAves();\n }\n if(estadoMapa== EstadoMapa.URBANO || estadoMapa == EstadoMapa.URBANOUNIVERSIDAD){\n moverCarroLujo();\n moverAves();\n }\n if(estadoMapa== EstadoMapa.UNIVERSIDAD){\n moverCarritoGolf();\n moverAves();\n }\n if (estadoMapa == EstadoMapa.SALONES){\n moverLamparas();\n moverSillas();\n }\n actualizaPuntuacion();\n moverTareas();\n moverItemCorazon();\n verificarColisiones();\n verificarMuerte();\n moverItemRayo();\n /*\n IMPLEMENTAR\n\n //moverPajaro();\n //etc\n */\n }",
"public String navigateDetalleofertaCollection() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Detalleoferta_items\", this.getSelected().getDetalleofertaCollection());\n }\n return \"/detalleoferta/index\";\n }",
"@Override\r\n\t\tpublic List<Item> getItems() {\n\t\t\treturn null;\r\n\t\t}",
"public String navigateDocenteCollection() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Docente_items\", this.getSelected().getDocenteCollection());\n }\n return this.mobilePageController.getMobilePagesPrefix() + \"/docente/index\";\n }",
"private static void customItems(ItemDefinition itemDef) {\n\n\t\tswitch (itemDef.id) {\n\n\t\tcase 11864:\n\t\tcase 11865:\n\t\tcase 19639:\n\t\tcase 19641:\n\t\tcase 19643:\n\t\tcase 19645:\n\t\tcase 19647:\n\t\tcase 19649:\n\t\tcase 23073:\n\t\tcase 23075:\n\t\t\titemDef.equipActions[2] = \"Log\";\n\t\t\titemDef.equipActions[1] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 13136:\n\t\t\titemDef.equipActions[2] = \"Elidinis\";\n\t\t\titemDef.equipActions[1] = \"Kalphite Hive\";\n\t\t\tbreak;\n\t\tcase 2550:\n\t\t\titemDef.equipActions[2] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 1712:\n\t\tcase 1710:\n\t\tcase 1708:\n\t\tcase 1706:\n\t\t\titemDef.equipActions[1] = \"Edgeville\";\n\t\t\titemDef.equipActions[2] = \"Karamja\";\n\t\t\titemDef.equipActions[3] = \"Draynor\";\n\t\t\titemDef.equipActions[4] = \"Al-Kharid\";\n\t\t\tbreak;\n\n\t\tcase 22000:\n\t\t\titemDef.name = \"Lava partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 22001:\n\t\t\titemDef.name = \"Infernal partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 2552:\n\t\tcase 2554:\n\t\tcase 2556:\n\t\tcase 2558:\n\t\tcase 2560:\n\t\tcase 2562:\n\t\tcase 2564:\n\t\tcase 2566: // Ring of duelling\n\t\t\titemDef.equipActions[2] = \"Shantay Pass\";\n\t\t\titemDef.equipActions[1] = \"Clan wars\";\n\t\t\tbreak;\n\n\t\tcase 21307:\n\t\t\titemDef.name = \"Pursuit crate\";\n\t\t\tbreak;\n\n\t\tcase 12792:\n\t\t\titemDef.name = \"Graceful recolor kit\";\n\t\t\tbreak;\n\n\t\tcase 12022:\n\t\t\titemDef.name = \"Bandos Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Bandos gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12024:\n\t\t\titemDef.name = \"Armadyl Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Armadyl gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12026:\n\t\t\titemDef.name = \"Saradomin Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Saradomin gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12028:\n\t\t\titemDef.name = \"Zamorak Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Zamorak gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 964:\n\t\t\titemDef.name = \"Pet Petie\";\n\t\t\tbreak;\n\n\t\tcase 20853:\n\t\t\titemDef.name = \"Deep Sea Bait\";\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\t/*\n\t\t * case 17014: itemDef.name = \"Dragon flail\"; itemDef.modelId = 50083;\n\t\t * itemDef.modelZoom = 1440; itemDef.modelRotation2 = 272;\n\t\t * itemDef.modelRotation1 = 352; itemDef.modelOffset1 = 32;\n\t\t * //itemDef.modelOffset2 = 0; itemDef.maleModel = 50083; itemDef.femaleModel =\n\t\t * 50083; itemDef.anInt164 = -1; itemDef.anInt188 = -1; itemDef.aByte205 = -8;\n\t\t * itemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t * itemDef.inventoryOptions = new String[] { \"Wear\", null, null, null, \"Drop\" };\n\t\t * itemDef.description = \"An Ancient Dragon Flail.\"; break;\n\t\t */\n\n\t\tcase 33272:\n\t\t\titemDef.name = \"Justiciar's Longsword\";\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modelId = 65472;\n\t\t\titemDef.modelZoom = 1726;\n\t\t\titemDef.modelRotation1 = 1576;\n\t\t\titemDef.modelRotation2 = 242;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\t// itemDef.anInt204 = 0;\n\t\t\t// itemDef.aByte205 = -12;\n\t\t\t// itemDef.aByte154 = 0;\n\t\t\titemDef.maleModel = 65465;\n\t\t\titemDef.femaleModel = 65465;\n\t\t\titemDef.description = \"An ancient longsword received from the Trial of Flames.\";\n\t\t\tbreak;\n\n\t\tcase 33168:\n\t\t\titemDef.name = \"Justiciar kiteshield\";\n\t\t\titemDef.modelId = 65471;\n\t\t\titemDef.modelZoom = 1600;\n\t\t\titemDef.modelRotation2 = 250;\n\t\t\titemDef.modelRotation1 = 300;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.maleModel = 65473;\n\t\t\titemDef.femaleModel = 65474;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An ancient kiteshield. Part of the Justiciar set.\";\n\t\t\tbreak;\n\n\t\tcase 2996:\n\t\t\titemDef.name = \"PKP Ticket\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"Exchange this for a PK Point.\";\n\t\t\tbreak;\n\t\tcase 13226:\n\t\t\titemDef.name = \"Herb Sack\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"A sack for storing grimy herbs.\";\n\t\t\tbreak;\n\t\tcase 13346:\n\t\t\titemDef.name = \"Raid Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Open for chances to receive Raid items & other awesome rewards.\";\n\t\t\tbreak;\n\t\tcase 8800:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 31624;\n\t\t\t// itemDef.stackAmounts = new int[] { 2, 3, 50, 100, 500000, 1000000, 2500000,\n\t\t\t// 10000000, 100000000, 0 };//amount the model will change at\n\t\t\t// itemDef.stackIDs = new int[] { 8801, 8802, 8803, 8804, 8805, 8806, 8807,\n\t\t\t// 8808, 8809, 0 };//new item id to grab the model from\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 853;\n\t\t\titemDef.modelRotation2 = 1885;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8801:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15344;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8802:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15345;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8803:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15346;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8804:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15347;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8805:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15348;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8806:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15349;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8807:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15350;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8808:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15351;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8809:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15352;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 15098:\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.description = \"A 100-sided dice.\";\n\t\t\titemDef.modelId = 31223;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation2 = 215;\n\t\t\titemDef.modelRotation1 = 94;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modelOffset1 = -18;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Public-roll\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.anInt196 = 15;\n\t\t\titemDef.anInt184 = 25;\n\t\t\tbreak;\n\n\t\tcase 32991:\n\t\t\titemDef.name = \"Divine spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with an divine sigil attached to it.\";\n\t\t\titemDef.modelId = 50001;\n\t\t\titemDef.maleModel = 50002;\n\t\t\titemDef.femaleModel = 50002;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32992:\n\t\t\titemDef.name = \"Rainbow spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with all 4 sigils attached to it.\";\n\t\t\titemDef.modelId = 50004;\n\t\t\titemDef.maleModel = 50005;\n\t\t\titemDef.femaleModel = 50005;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32993:\n\t\t\titemDef.name = \"Divine sigil\";\n\t\t\titemDef.description = \"A sigil in the shape of a divine symbol.\";\n\t\t\titemDef.modelId = 50003;\n\t\t\titemDef.modelZoom = 848;\n\t\t\titemDef.modelRotation1 = 267;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33060:\n\t\t\titemDef.name = \"Barrows Sword\";\n\t\t\titemDef.description = \"A sword glowing with otherworldy energy.\";\n\t\t\titemDef.modelId = 22325;\n\t\t\titemDef.maleModel = 50010;\n\t\t\titemDef.femaleModel = 50010;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32994:\n\t\t\titemDef.name = \"Statius's platebody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42602;\n\t\t\titemDef.maleModel = 35951;\n\t\t\titemDef.femaleModel = 35964;\n\t\t\titemDef.modelZoom = 1312;\n\t\t\titemDef.modelRotation1 = 272;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 39;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32995:\n\t\t\titemDef.name = \"Statius's platelegs\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42590;\n\t\t\titemDef.maleModel = 35947;\n\t\t\titemDef.femaleModel = 35961;\n\t\t\titemDef.modelZoom = 1625;\n\t\t\titemDef.modelRotation1 = 355;\n\t\t\titemDef.modelRotation2 = 2046;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32996:\n\t\t\titemDef.name = \"Statius's full helm\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42596;\n\t\t\titemDef.maleModel = 35943;\n\t\t\titemDef.femaleModel = 35958;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 2039;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32997:\n\t\t\titemDef.name = \"Statius's warhammer\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42577;\n\t\t\titemDef.maleModel = 35968;\n\t\t\titemDef.femaleModel = 35968;\n\t\t\titemDef.modelZoom = 1360;\n\t\t\titemDef.modelRotation1 = 507;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32998:\n\t\t\titemDef.name = \"Vesta's chainbody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42593;\n\t\t\titemDef.maleModel = 35953;\n\t\t\titemDef.femaleModel = 35965;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32999:\n\t\t\titemDef.name = \"Vesta's plateskirt\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42581;\n\t\t\titemDef.maleModel = 35950;\n\t\t\titemDef.femaleModel = 35960;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33000:\n\t\t\titemDef.name = \"Vesta's longsword\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42597;\n\t\t\titemDef.maleModel = 35969;\n\t\t\titemDef.femaleModel = 35969;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 738;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33001:\n\t\t\titemDef.name = \"Vesta's spear\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42599;\n\t\t\titemDef.maleModel = 35973;\n\t\t\titemDef.femaleModel = 35973;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 480;\n\t\t\titemDef.modelRotation2 = 15;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33002:\n\t\t\titemDef.name = \"Morrigan's leather body\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42578;\n\t\t\titemDef.maleModel = 35954;\n\t\t\titemDef.femaleModel = 35963;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33003:\n\t\t\titemDef.name = \"Morrigan's leather chaps\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42603;\n\t\t\titemDef.maleModel = 35948;\n\t\t\titemDef.femaleModel = 35959;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 482;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33004:\n\t\t\titemDef.name = \"Morrigan's coif\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42583;\n\t\t\titemDef.maleModel = 35945;\n\t\t\titemDef.femaleModel = 35956;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 537;\n\t\t\titemDef.modelRotation2 = 5;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33005:\n\t\t\titemDef.name = \"Morrigan's javelin\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42592;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42613;\n\t\t\titemDef.femaleModel = 42613;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 282;\n\t\t\titemDef.modelRotation2 = 2009;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33006:\n\t\t\titemDef.name = \"Morrigan's throwing axe\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42582;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42611;\n\t\t\titemDef.femaleModel = 42611;\n\t\t\titemDef.modelZoom = 976;\n\t\t\titemDef.modelRotation1 = 672;\n\t\t\titemDef.modelRotation2 = 2024;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33007:\n\t\t\titemDef.name = \"Zuriels robe top\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42591;\n\t\t\titemDef.maleModel = 35952;\n\t\t\titemDef.femaleModel = 35966;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 373;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33008:\n\t\t\titemDef.name = \"Zuriels robe bottom\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42588;\n\t\t\titemDef.maleModel = 35949;\n\t\t\titemDef.femaleModel = 35962;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33009:\n\t\t\titemDef.name = \"Zuriels hood\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42604;\n\t\t\titemDef.maleModel = 35944;\n\t\t\titemDef.femaleModel = 35957;\n\t\t\titemDef.modelZoom = 720;\n\t\t\titemDef.modelRotation1 = 28;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33010:\n\t\t\titemDef.name = \"Zuriels staff\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42595;\n\t\t\titemDef.maleModel = 35971;\n\t\t\titemDef.femaleModel = 35971;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 366;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33011:\n\t\t\titemDef.name = \"Craw's bow (u)\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35768;\n\t\t\titemDef.femaleModel = 35768;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33012:\n\t\t\titemDef.name = \"Craw's bow\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35769;\n\t\t\titemDef.femaleModel = 35769;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33013:\n\t\t\titemDef.name = \"Thammaron's sceptre (u)\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35772;\n\t\t\titemDef.femaleModel = 35772;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33014:\n\t\t\titemDef.name = \"Thammaron's sceptre\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35773;\n\t\t\titemDef.femaleModel = 35773;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33015:\n\t\t\titemDef.name = \"Viggora's chainmace (u)\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35770;\n\t\t\titemDef.femaleModel = 35770;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33016:\n\t\t\titemDef.name = \"Viggora's chainmace\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35771;\n\t\t\titemDef.femaleModel = 35771;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33018:\n\t\t\titemDef.name = \"Amulet of avarice\";\n\t\t\titemDef.description = \"A hauntingly beautiful amulet bearing the shape of a skull.\";\n\t\t\titemDef.modelId = 35779;\n\t\t\titemDef.maleModel = 35766;\n\t\t\titemDef.femaleModel = 35766;\n\t\t\titemDef.modelZoom = 420;\n\t\t\titemDef.modelRotation1 = 191;\n\t\t\titemDef.modelRotation2 = 86;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33019:\n\t\t\titemDef.name = \"Completionist cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65270;\n\t\t\titemDef.maleModel = 65297;\n\t\t\titemDef.femaleModel = 65316;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33020:\n\t\t\titemDef.name = \"Completionist cape (t)\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65258;\n\t\t\titemDef.maleModel = 65295;\n\t\t\titemDef.femaleModel = 65328;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33021:\n\t\t\titemDef.name = \"Torva full helm\";\n\t\t\titemDef.description = \"An ancient warrior's full helm.\";\n\t\t\titemDef.modelId = 62714;\n\t\t\titemDef.maleModel = 62738;\n\t\t\titemDef.femaleModel = 62738;\n\t\t\titemDef.modelZoom = 672;\n\t\t\titemDef.modelRotation1 = 85;\n\t\t\titemDef.modelRotation2 = 1867;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33022:\n\t\t\titemDef.name = \"Torva platebody\";\n\t\t\titemDef.description = \"An ancient warrior's platebody.\";\n\t\t\titemDef.modelId = 62699;\n\t\t\titemDef.maleModel = 62746;\n\t\t\titemDef.femaleModel = 62746;\n\t\t\titemDef.modelZoom = 1506;\n\t\t\titemDef.modelRotation1 = 473;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33023:\n\t\t\titemDef.name = \"Torva platelegs\";\n\t\t\titemDef.description = \"An ancient warrior's platelegs.\";\n\t\t\titemDef.modelId = 62701;\n\t\t\titemDef.maleModel = 62740;\n\t\t\titemDef.femaleModel = 62740;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 474;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33024:\n\t\t\titemDef.name = \"Pernix cowl\";\n\t\t\titemDef.description = \"An ancient warrior's cowl.\";\n\t\t\titemDef.modelId = 62693;\n\t\t\titemDef.maleModel = 62739;\n\t\t\titemDef.femaleModel = 62739;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 532;\n\t\t\titemDef.modelRotation2 = 14;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33025:\n\t\t\titemDef.name = \"Pernix body\";\n\t\t\titemDef.description = \"An ancient warrior's leather body.\";\n\t\t\titemDef.modelId = 62709;\n\t\t\titemDef.maleModel = 62744;\n\t\t\titemDef.femaleModel = 62744;\n\t\t\titemDef.modelZoom = 1378;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33026:\n\t\t\titemDef.name = \"Pernix chaps\";\n\t\t\titemDef.description = \"An ancient warrior's chaps.\";\n\t\t\titemDef.modelId = 62695;\n\t\t\titemDef.maleModel = 62741;\n\t\t\titemDef.femaleModel = 62741;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 504;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33027:\n\t\t\titemDef.name = \"Virtus mask\";\n\t\t\titemDef.description = \"An ancient warrior's mask.\";\n\t\t\titemDef.modelId = 62710;\n\t\t\titemDef.maleModel = 62736;\n\t\t\titemDef.femaleModel = 62736;\n\t\t\titemDef.modelZoom = 928;\n\t\t\titemDef.modelRotation1 = 406;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33028:\n\t\t\titemDef.name = \"Virtus robe top\";\n\t\t\titemDef.description = \"An ancient warrior's robe top.\";\n\t\t\titemDef.modelId = 62704;\n\t\t\titemDef.maleModel = 62748;\n\t\t\titemDef.femaleModel = 62748;\n\t\t\titemDef.modelZoom = 1122;\n\t\t\titemDef.modelRotation1 = 488;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33029:\n\t\t\titemDef.name = \"Virtus robe legs\";\n\t\t\titemDef.description = \"An ancient warrior's robe legs.\";\n\t\t\titemDef.modelId = 62700;\n\t\t\titemDef.maleModel = 62742;\n\t\t\titemDef.femaleModel = 62742;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33030:\n\t\t\titemDef.name = \"Zaryte bow\";\n\t\t\titemDef.description = \"An ancient warrior's bow.\";\n\t\t\titemDef.modelId = 62692;\n\t\t\titemDef.maleModel = 62750;\n\t\t\titemDef.femaleModel = 62750;\n\t\t\titemDef.modelZoom = 1703;\n\t\t\titemDef.modelRotation1 = 221;\n\t\t\titemDef.modelRotation2 = 404;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33083:\n\t\t\titemDef.name = \"Tokhaar-kal\";\n\t\t\titemDef.description = \"\tA cape made of ancient, enchanted obsidian.\";\n\t\t\titemDef.modelId = 52073;\n\t\t\titemDef.maleModel = 52072;\n\t\t\titemDef.femaleModel = 52071;\n\t\t\titemDef.modelZoom = 1615;\n\t\t\titemDef.modelRotation1 = 339;\n\t\t\titemDef.modelRotation2 = 192;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33089:\n\t\t\titemDef.name = \"Chaotic maul\";\n\t\t\titemDef.description = \"A maul used to claim life from those who don't deserve it.\";\n\t\t\titemDef.modelId = 54286;\n\t\t\titemDef.maleModel = 56294;\n\t\t\titemDef.femaleModel = 56294;\n\t\t\titemDef.modelZoom = 1447;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33094:\n\t\t\titemDef.name = \"Chaotic crossbow\";\n\t\t\titemDef.description = \"A small crossbow, only effective at short distance.\";\n\t\t\titemDef.modelId = 54331;\n\t\t\titemDef.maleModel = 56307;\n\t\t\titemDef.femaleModel = 56307;\n\t\t\titemDef.modelZoom = 1028;\n\t\t\titemDef.modelRotation1 = 249;\n\t\t\titemDef.modelRotation2 = 2021;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -54;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33095:\n\t\t\titemDef.name = \"Chaotic staff\";\n\t\t\titemDef.description = \"This staff makes destructive spells more powerful.\";\n\t\t\titemDef.modelId = 54367;\n\t\t\titemDef.maleModel = 56286;\n\t\t\titemDef.femaleModel = 56286;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33096:\n\t\t\titemDef.name = \"Chaotic kiteshield\";\n\t\t\titemDef.description = \"A large metal shield.\";\n\t\t\titemDef.modelId = 54358;\n\t\t\titemDef.maleModel = 56038;\n\t\t\titemDef.femaleModel = 56038;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 276;\n\t\t\titemDef.modelRotation2 = 1101;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33031:\n\t\t\titemDef.name = \"Chaotic rapier\";\n\t\t\titemDef.description = \"A razor-sharp rapier.\";\n\t\t\titemDef.modelId = 54197;\n\t\t\titemDef.maleModel = 56252;\n\t\t\titemDef.femaleModel = 56252;\n\t\t\titemDef.modelZoom = 1425;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 1370;\n\t\t\titemDef.modelOffset1 = 9;\n\t\t\titemDef.modelOffset2 = 13;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33032:\n\t\t\titemDef.name = \"Chaotic longsword\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 54204;\n\t\t\titemDef.maleModel = 56237;\n\t\t\titemDef.femaleModel = 56237;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33097:\n\t\t\titemDef.name = \"Sword of Onyxia\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 53091;\n\t\t\titemDef.maleModel = 53092;\n\t\t\titemDef.femaleModel = 53092;\n\t\t\titemDef.modelZoom = 2007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33098:\n\t\t\titemDef.name = \"Onyxia longsword\";\n\t\t\titemDef.description = \"A razor-sharp 2h sword.\";\n\t\t\titemDef.modelId = 53093;\n\t\t\titemDef.maleModel = 53094;\n\t\t\titemDef.femaleModel = 53094;\n\t\t\titemDef.modelZoom = 4007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33099:\n\t\t\titemDef.name = \"White scimitar\";\n\t\t\titemDef.description = \"A razor-sharp scimitar.\";\n\t\t\titemDef.modelId = 53097;\n\t\t\titemDef.maleModel = 53098;\n\t\t\titemDef.femaleModel = 53098;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 312;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33100:\n\t\t\titemDef.name = \"White kiteshield\";\n\t\t\titemDef.description = \"a heavy kiteshield.\";\n\t\t\titemDef.modelId = 53095;\n\t\t\titemDef.maleModel = 53096;\n\t\t\titemDef.femaleModel = 53096;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 303;\n\t\t\titemDef.modelRotation2 = 180;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33033:\n\t\t\titemDef.name = \"Agility master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 677, 801, 43540, 43543, 43546, 43549, 43550, 43552, 43554, 43558,\n\t\t\t\t\t43560, 43575 };\n\t\t\titemDef.modelId = 50030;\n\t\t\titemDef.maleModel = 50031;\n\t\t\titemDef.femaleModel = 50031;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33034:\n\t\t\titemDef.name = \"Attack master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 7104, 9151, 911, 914, 917, 920, 921, 923, 925, 929, 931, 946 };\n\t\t\titemDef.modelId = 50032;\n\t\t\titemDef.maleModel = 50033;\n\t\t\titemDef.femaleModel = 50033;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33035:\n\t\t\titemDef.name = \"Construction master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6061, 5945, 6327, 6330, 6333, 6336, 6337, 6339, 6341, 6345, 6347,\n\t\t\t\t\t6362 };\n\t\t\titemDef.modelId = 50034;\n\t\t\titemDef.maleModel = 50035;\n\t\t\titemDef.femaleModel = 50035;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33036:\n\t\t\titemDef.name = \"Cooking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 920, 920, 51856, 51859, 51862, 51865, 51866, 51868, 51870, 51874,\n\t\t\t\t\t51876, 51891 };\n\t\t\titemDef.modelId = 50036;\n\t\t\titemDef.maleModel = 50037;\n\t\t\titemDef.femaleModel = 50037;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33037:\n\t\t\titemDef.name = \"Crafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9142, 9152, 4511, 4514, 4517, 4520, 4521, 4523, 4525, 4529, 4531,\n\t\t\t\t\t4546 };\n\t\t\titemDef.modelId = 50038;\n\t\t\titemDef.maleModel = 50039;\n\t\t\titemDef.femaleModel = 50039;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33038:\n\t\t\titemDef.name = \"Defence master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 10460, 10473, 41410, 41413, 41416, 41419, 41420, 41422, 41424,\n\t\t\t\t\t41428, 41430, 41445 };\n\t\t\titemDef.modelId = 50040;\n\t\t\titemDef.maleModel = 50041;\n\t\t\titemDef.femaleModel = 50041;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33039:\n\t\t\titemDef.name = \"Farming master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 14775, 14792, 22026, 22029, 22032, 22035, 22036, 22038, 22040,\n\t\t\t\t\t22044, 22046, 22061 };\n\t\t\titemDef.modelId = 50042;\n\t\t\titemDef.maleModel = 50043;\n\t\t\titemDef.femaleModel = 50043;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33040:\n\t\t\titemDef.name = \"Firemaking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8125, 9152, 4015, 4018, 4021, 4024, 4025, 4027, 4029, 4033, 4035,\n\t\t\t\t\t4050 };\n\t\t\titemDef.modelId = 50044;\n\t\t\titemDef.maleModel = 50045;\n\t\t\titemDef.femaleModel = 50045;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33041:\n\t\t\titemDef.name = \"Fishing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9144, 9152, 38202, 38205, 38208, 38211, 38212, 38214, 38216,\n\t\t\t\t\t38220, 38222, 38237 };\n\t\t\titemDef.modelId = 50046;\n\t\t\titemDef.maleModel = 50047;\n\t\t\titemDef.femaleModel = 50047;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33042:\n\t\t\titemDef.name = \"Fletching master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6067, 9152, 33670, 33673, 33676, 33679, 33680, 33682, 33684,\n\t\t\t\t\t33688, 33690, 33705 };\n\t\t\titemDef.modelId = 50048;\n\t\t\titemDef.maleModel = 50049;\n\t\t\titemDef.femaleModel = 50049;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33043:\n\t\t\titemDef.name = \"Herblore master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9145, 9156, 22414, 22417, 22420, 22423, 22424, 22426, 22428,\n\t\t\t\t\t22432, 22434, 22449 };\n\t\t\titemDef.modelId = 50050;\n\t\t\titemDef.maleModel = 50051;\n\t\t\titemDef.femaleModel = 50051;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33044:\n\t\t\titemDef.name = \"Hitpoints master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 818, 951, 8291, 8294, 8297, 8300, 8301, 8303, 8305, 8309, 8311,\n\t\t\t\t\t8319 };\n\t\t\titemDef.modelId = 50052;\n\t\t\titemDef.maleModel = 50053;\n\t\t\titemDef.femaleModel = 50053;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\titemDef.femaleOffset = 4;\n\t\t\tbreak;\n\t\tcase 33045:\n\t\t\titemDef.name = \"Hunter master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 5262, 6020, 8472, 8475, 8478, 8481, 8482, 8484, 8486, 8490, 8492,\n\t\t\t\t\t8507 };\n\t\t\titemDef.modelId = 50054;\n\t\t\titemDef.maleModel = 50055;\n\t\t\titemDef.femaleModel = 50055;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33046:\n\t\t\titemDef.name = \"Magic master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 43569, 43685, 6336, 6339, 6342, 6345, 6346, 6348, 6350, 6354,\n\t\t\t\t\t6356, 6371 };\n\t\t\titemDef.modelId = 50056;\n\t\t\titemDef.maleModel = 50057;\n\t\t\titemDef.femaleModel = 50057;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33047:\n\t\t\titemDef.name = \"Mining master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 36296, 36279, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50058;\n\t\t\titemDef.maleModel = 50059;\n\t\t\titemDef.femaleModel = 50059;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33048:\n\t\t\titemDef.name = \"Prayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9163, 9168, 117, 120, 123, 126, 127, 127, 127, 127, 127, 127 };\n\t\t\titemDef.modelId = 50060;\n\t\t\titemDef.maleModel = 50061;\n\t\t\titemDef.femaleModel = 50061;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33049:\n\t\t\titemDef.name = \"Range master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 3755, 3998, 15122, 15125, 15128, 15131, 15132, 15134, 15136,\n\t\t\t\t\t15140, 15142, 15157 };\n\t\t\titemDef.modelId = 50062;\n\t\t\titemDef.maleModel = 50063;\n\t\t\titemDef.femaleModel = 50063;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33050:\n\t\t\titemDef.name = \"Runecrafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9152, 8128, 10318, 10321, 10324, 10327, 10328, 10330, 10332,\n\t\t\t\t\t10336, 10338, 10353 };\n\t\t\titemDef.modelId = 50064;\n\t\t\titemDef.maleModel = 50065;\n\t\t\titemDef.femaleModel = 50065;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33051:\n\t\t\titemDef.name = \"Slayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811 };\n\t\t\titemDef.originalModelColors = new int[] { 912, 920 };\n\t\t\titemDef.modelId = 50066;\n\t\t\titemDef.maleModel = 50067;\n\t\t\titemDef.femaleModel = 50067;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33052:\n\t\t\titemDef.name = \"Smithing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8115, 9148, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50068;\n\t\t\titemDef.maleModel = 50069;\n\t\t\titemDef.femaleModel = 50069;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33053:\n\t\t\titemDef.name = \"Strength master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 931, 27538, 27541, 27544, 27547, 27548, 27550, 27552, 27556,\n\t\t\t\t\t27558, 27573 };\n\t\t\titemDef.modelId = 50070;\n\t\t\titemDef.maleModel = 50071;\n\t\t\titemDef.femaleModel = 50071;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33054:\n\t\t\titemDef.name = \"Thieving master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 11, 0, 58779, 58782, 58785, 58788, 58789, 57891, 58793, 58797,\n\t\t\t\t\t58799, 58814 };\n\t\t\titemDef.modelId = 50072;\n\t\t\titemDef.maleModel = 50073;\n\t\t\titemDef.femaleModel = 50073;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33055:\n\t\t\titemDef.name = \"Woodcutting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 25109, 24088, 6693, 6696, 6699, 6702, 6703, 6705, 6707, 6711,\n\t\t\t\t\t6713, 6728 };\n\t\t\titemDef.modelId = 50074;\n\t\t\titemDef.maleModel = 50075;\n\t\t\titemDef.femaleModel = 50075;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33057:\n\t\t\titemDef.name = \"Abyssal Scythe\";\n\t\t\titemDef.description = \"\tA Scythe recieved from the Trials of Xeric CUSTOM RAID.\";\n\t\t\titemDef.modelId = 50081;\n\t\t\titemDef.maleModel = 50080;\n\t\t\titemDef.femaleModel = 50080;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33090:\n\t\t\titemDef.name = \"Goliath gloves (Black)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50100;\n\t\t\titemDef.femaleModel = 50101;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33091:\n\t\t\titemDef.name = \"Goliath gloves (Red)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50102;\n\t\t\titemDef.femaleModel = 50103;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33092:\n\t\t\titemDef.name = \"Goliath gloves (White)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50104;\n\t\t\titemDef.femaleModel = 50105;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33093:\n\t\t\titemDef.name = \"Goliath gloves (Yellow)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50106;\n\t\t\titemDef.femaleModel = 50107;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 12639:\n\t\tcase 12637:\n\t\tcase 12638:\n\t\t\titemDef.description = \"Provides players with infinite run energy!\";\n\t\t\tbreak;\n\t\tcase 33056:\n\t\t\titemDef.name = \"Events cape (slayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 0, 0, 0, 0 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33081:\n\t\t\titemDef.name = \"Events cape (agility)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 669, 43430, 43430, 43430, 43430 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33080:\n\t\t\titemDef.name = \"Events cape (attack)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9926, 1815, 1815, 1815, 1815 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33059:\n\t\t\titemDef.name = \"Events cape (construction)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6967, 6343, 6343, 6343, 6343 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33061:\n\t\t\titemDef.name = \"Events cape (cooking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 49685, 49685, 49685, 49685 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33062:\n\t\t\titemDef.name = \"Events cape (crafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 7994, 4516, 4516, 4516, 4516 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33063:\n\t\t\titemDef.name = \"Events cape (defence)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 39367, 10472, 10472, 10472, 10472 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33064:\n\t\t\titemDef.name = \"Events cape (farming)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10698, 19734, 19734, 19734, 19734 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33065:\n\t\t\titemDef.name = \"Events cape (firemaking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10059, 4922, 4922, 4922, 4922 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33066:\n\t\t\titemDef.name = \"Events cape (fishing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 36165, 36165, 36165, 36165 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33067:\n\t\t\titemDef.name = \"Events cape (fletching)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 31500, 31500, 31500, 31500 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33068:\n\t\t\titemDef.name = \"Events cape (herblore)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10051, 20889, 20889, 20889, 20889 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33069:\n\t\t\titemDef.name = \"Events cape (hitpoints)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1836, 8296, 8296, 8296, 8296 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33070:\n\t\t\titemDef.name = \"Events cape (hunter)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6916, 8477, 8477, 8477, 8477 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33071:\n\t\t\titemDef.name = \"Events cape (magic)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 43556, 6339, 6339, 6339, 6339 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33072:\n\t\t\titemDef.name = \"Events cape (mining)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 34111, 10391, 10391, 10391, 10391 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33073:\n\t\t\titemDef.name = \"Events cape (prayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9927, 2169, 2169, 2169, 2169 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33074:\n\t\t\titemDef.name = \"Events cape (range)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 3626, 20913, 20913, 20913, 20913 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33075:\n\t\t\titemDef.name = \"Events cape (runecrafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 10323, 10323, 10323, 10323 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33076:\n\t\t\titemDef.name = \"Events cape (smithing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10044, 5412, 5412, 5412, 5412 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33077:\n\t\t\titemDef.name = \"Events cape (strength)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 30487, 30487, 30487, 30487 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33078:\n\t\t\titemDef.name = \"Events cape (thieveing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 8, 57636, 57636, 57636, 57636 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33079:\n\t\t\titemDef.name = \"Events cape (woodcutting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 26007, 6570, 6570, 6570, 6570 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33101:\n\t\t\titemDef.name = \"Vorkath platebody\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53100;\n\t\t\titemDef.maleModel = 53099;\n\t\t\titemDef.femaleModel = 53099;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33102:\n\t\t\titemDef.name = \"Vorkath platelegs\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53102;\n\t\t\titemDef.maleModel = 53101;\n\t\t\titemDef.femaleModel = 53101;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33103:\n\t\t\titemDef.name = \"Vorkath boots\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33104:\n\t\t\titemDef.name = \"Vorkath gloves\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33105:\n\t\t\titemDef.name = \"Vorkath helmet\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53108;\n\t\t\titemDef.maleModel = 53107;\n\t\t\titemDef.femaleModel = 53107;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33106:\n\t\t\titemDef.name = \"Tekton helmet\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53118;\n\t\t\titemDef.maleModel = 53117;\n\t\t\titemDef.femaleModel = 53117;\n\t\t\titemDef.modelZoom = 724;\n\t\t\titemDef.modelRotation1 = 81;\n\t\t\titemDef.modelRotation2 = 1670;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33107:\n\t\t\titemDef.name = \"Tekton platebody\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53110;\n\t\t\titemDef.maleModel = 53109;\n\t\t\titemDef.femaleModel = 53109;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33108:\n\t\t\titemDef.name = \"Tekton platelegs\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53112;\n\t\t\titemDef.maleModel = 53111;\n\t\t\titemDef.femaleModel = 53111;\n\t\t\titemDef.modelZoom = 1550;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 186;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33109:\n\t\t\titemDef.name = \"Tekton gloves\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53116;\n\t\t\titemDef.maleModel = 53115;\n\t\t\titemDef.femaleModel = 53115;\n\t\t\titemDef.modelZoom = 830;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33110:\n\t\t\titemDef.name = \"Tekton boots\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53114;\n\t\t\titemDef.maleModel = 53113;\n\t\t\titemDef.femaleModel = 53113;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33111:\n\t\t\titemDef.name = \"Anti-santa scythe\";\n\t\t\titemDef.description = \"Legend says this is the biggest arse scratcher around.\";\n\t\t\titemDef.modelId = 57002;\n\t\t\titemDef.maleModel = 57001;\n\t\t\titemDef.femaleModel = 57001;\n\t\t\titemDef.modelZoom = 3224;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 714;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33112:\n\t\t\titemDef.name = \"Dominion staff\";\n\t\t\titemDef.description = \"Dominion staff.\";\n\t\t\titemDef.modelId = 59029;\n\t\t\titemDef.maleModel = 59305;\n\t\t\titemDef.femaleModel = 59305;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33113:\n\t\t\titemDef.name = \"Dominion sword\";\n\t\t\titemDef.description = \"Dominion sword.\";\n\t\t\titemDef.modelId = 59832;\n\t\t\titemDef.maleModel = 59306;\n\t\t\titemDef.femaleModel = 59306;\n\t\t\titemDef.modelZoom = 1829;\n\t\t\titemDef.modelRotation1 = 513;\n\t\t\titemDef.modelRotation2 = 546;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33114:\n\t\t\titemDef.name = \"Dominion crossbow\";\n\t\t\titemDef.description = \"Dominion crossbow.\";\n\t\t\titemDef.modelId = 59839;\n\t\t\titemDef.maleModel = 59304;\n\t\t\titemDef.femaleModel = 59304;\n\t\t\titemDef.modelZoom = 1490;\n\t\t\titemDef.modelRotation1 = 362;\n\t\t\titemDef.modelRotation2 = 791;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33115:\n\t\t\titemDef.name = \"Dragonfire Shield (e)\";\n\t\t\titemDef.description = \"unamed shield.\";\n\t\t\titemDef.modelId = 53120;\n\t\t\titemDef.maleModel = 53119;\n\t\t\titemDef.femaleModel = 53119;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 123;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[] { null, \"Wear\", \"Inspect\", \"Empty\", \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33116:\n\t\t\titemDef.name = \"Zilyana's longbow\";\n\t\t\titemDef.description = \"A bow belonged to Zilyana.\";\n\t\t\titemDef.modelId = 53122;\n\t\t\titemDef.maleModel = 53121;\n\t\t\titemDef.femaleModel = 53121;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33117:\n\t\t\titemDef.name = \"Black dragon hunter crossbow\";\n\t\t\titemDef.description = \"Black dragon hunter crossbow.\";\n\t\t\titemDef.modelId = 53124;\n\t\t\titemDef.maleModel = 53123;\n\t\t\titemDef.femaleModel = 53123;\n\t\t\titemDef.modelZoom = 1554;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33118:\n\t\t\titemDef.name = \"Vorkath blowpipe\";\n\t\t\titemDef.description = \"Vorkath blowpipe.\";\n\t\t\titemDef.modelId = 53126;\n\t\t\titemDef.maleModel = 53125;\n\t\t\titemDef.femaleModel = 53125;\n\t\t\titemDef.modelZoom = 1158;\n\t\t\titemDef.modelRotation1 = 768;\n\t\t\titemDef.modelRotation2 = 189;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33119:\n\t\t\titemDef.name = \"Superior twisted bow\";\n\t\t\titemDef.description = \"An upgraded twisted bow.\";\n\t\t\titemDef.modelId = 53128;\n\t\t\titemDef.maleModel = 53127;\n\t\t\titemDef.femaleModel = 53127;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\t\tcase 33123:\n\t\t\titemDef.name = \"Staff of sliske\";\n\t\t\titemDef.description = \"Staff of sliske.\";\n\t\t\titemDef.modelId = 59234;\n\t\t\titemDef.maleModel = 59233;\n\t\t\titemDef.femaleModel = 59233;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33124:\n\t\t\titemDef.name = \"Twisted crossbow\";\n\t\t\titemDef.description = \"Twisted crossbow.\";\n\t\t\titemDef.modelId = 62777;\n\t\t\titemDef.maleModel = 62776;\n\t\t\titemDef.femaleModel = 62776;\n\t\t\titemDef.modelZoom = 926;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33125:\n\t\t\titemDef.name = \"Present\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 24410 };\n\t\t\titemDef.description = \"Santa's stolen present\";\n\t\t\tbreak;\n\t\tcase 33126:\n\t\t\titemDef.name = \"Christmas tree branch\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2412;\n\t\t\titemDef.modelZoom = 940;\n\t\t\titemDef.modelRotation1 = 268;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -21;\n\t\t\titemDef.modifiedModelColors = new int[] { 11144 };\n\t\t\titemDef.originalModelColors = new int[] { 6047 };\n\t\t\titemDef.description = \"Enter examine here.\";\n\t\t\tbreak;\n\t\tcase 33127:\n\t\t\titemDef.name = \"Kbd gloves\";\n\t\t\titemDef.description = \"Kbd gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33085 };\n\t\t\titemDef.originalModelColors = new int[] { 1060 };\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33128:\n\t\t\titemDef.name = \"Kbd boots\";\n\t\t\titemDef.description = \"Kbd boots.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33198, 33202, 33206, 33215, 33210 };\n\t\t\titemDef.originalModelColors = new int[] { 1060, 1061, 1063, 1064, 1065 };\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33129:\n\t\t\titemDef.name = \"Kbd platelegs\";\n\t\t\titemDef.description = \"Kbd platelegs.\";\n\t\t\titemDef.modelId = 59994;\n\t\t\titemDef.maleModel = 59995;\n\t\t\titemDef.femaleModel = 59995;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33130:\n\t\t\titemDef.name = \"Kbd platebody\";\n\t\t\titemDef.description = \"Kbd platebody.\";\n\t\t\titemDef.modelId = 59998;\n\t\t\titemDef.maleModel = 59999;\n\t\t\titemDef.femaleModel = 59999;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33131:\n\t\t\titemDef.name = \"Kbd helmet\";\n\t\t\titemDef.description = \"Kbd helmet.\";\n\t\t\titemDef.modelId = 59996;\n\t\t\titemDef.maleModel = 59997;\n\t\t\titemDef.femaleModel = 59997;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33132:\n\t\t\titemDef.name = \"Kbd cape\";\n\t\t\titemDef.description = \"Kbd cape.\";\n\t\t\titemDef.modelId = 59992;\n\t\t\titemDef.maleModel = 59993;\n\t\t\titemDef.femaleModel = 59993;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33133:\n\t\t\titemDef.name = \"Anti-imp pet\";\n\t\t\titemDef.description = \"Anti-imp pet.\";\n\t\t\titemDef.modelId = 45294;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33134:\n\t\t\titemDef.name = \"Anti-santa pet\";\n\t\t\titemDef.description = \"Anti-santa pet.\";\n\t\t\titemDef.modelId = 29030;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 1966;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33135:\n\t\t\titemDef.name = \"Bandos mask\";\n\t\t\titemDef.description = \"Bandos helmet.\";\n\t\t\titemDef.modelId = 59987;\n\t\t\titemDef.maleModel = 59991;\n\t\t\titemDef.femaleModel = 59991;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33136:\n\t\t\titemDef.name = \"Armadyl mask\";\n\t\t\titemDef.description = \"Armadyl mask.\";\n\t\t\titemDef.modelId = 59986;\n\t\t\titemDef.maleModel = 59990;\n\t\t\titemDef.femaleModel = 59990;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33137:\n\t\t\titemDef.name = \"Zamorak mask\";\n\t\t\titemDef.description = \"Zamorak mask.\";\n\t\t\titemDef.modelId = 59985;\n\t\t\titemDef.maleModel = 59989;\n\t\t\titemDef.femaleModel = 59989;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33138:\n\t\t\titemDef.name = \"Saradomin mask\";\n\t\t\titemDef.description = \"Saradomin mask.\";\n\t\t\titemDef.modelId = 59984;\n\t\t\titemDef.maleModel = 59988;\n\t\t\titemDef.femaleModel = 59988;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33139:\n\t\t\titemDef.name = \"Zamarok godbow\";\n\t\t\titemDef.description = \"Zamarok godbow.\";\n\t\t\titemDef.modelId = 60560;//60553\n\t\t\titemDef.maleModel = 60560;\n\t\t\titemDef.femaleModel = 60560;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33140:\n\t\t\titemDef.name = \"Saradomin godbow\";\n\t\t\titemDef.description = \"Saradomin godbow.\";\n\t\t\titemDef.modelId = 60555;\n\t\t\titemDef.maleModel = 60554;\n\t\t\titemDef.femaleModel = 60554;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33141:\n\t\t\titemDef.name = \"Bandos godbow\";\n\t\t\titemDef.description = \"Bandos godbow.\";\n\t\t\titemDef.modelId = 60559;\n\t\t\titemDef.maleModel = 60558;\n\t\t\titemDef.femaleModel = 60558;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33142:\n\t\t\titemDef.name = \"Fire cape (purple)\";\n\t\t\titemDef.description = \"Fire cape (purple).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33148:\n\t\t\titemDef.name = \"Fire cape (cyan)\";\n\t\t\titemDef.description = \"Fire cape (cyan).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33144:\n\t\t\titemDef.name = \"Fire cape (green)\";\n\t\t\titemDef.description = \"Fire cape (green).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33145:\n\t\t\titemDef.name = \"Fire cape (red)\";\n\t\t\titemDef.description = \"Fire cape (red).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33143:\n\t\t\titemDef.name = \"Infernal cape (blue)\";\n\t\t\titemDef.description = \"Infernal cape (blue).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 39851, 39851, 39851, 39851 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33146:\n\t\t\titemDef.name = \"Infernal cape (green)\";\n\t\t\titemDef.description = \"Infernal cape (green).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 21167, 21167, 21167, 21167 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33147:\n\t\t\titemDef.name = \"Infernal cape (purple)\";\n\t\t\titemDef.description = \"Infernal cape (purple).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 53160, 53160, 53160, 53160 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33150:\n\t\t\titemDef.name = \"Infernal key piece 1\";\n\t\t\titemDef.description = \"Infernal key piece 1.\";\n\t\t\titemDef.modelId = 61001;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33151:\n\t\t\titemDef.name = \"Infernal key piece 2\";\n\t\t\titemDef.description = \"Infernal key piece 2.\";\n\t\t\titemDef.modelId = 61002;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33152:\n\t\t\titemDef.name = \"Infernal key piece 3\";\n\t\t\titemDef.description = \"Infernal key piece 3.\";\n\t\t\titemDef.modelId = 61003;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33153:\n\t\t\titemDef.name = \"Infernal key\";\n\t\t\titemDef.description = \"Infernal key.\";\n\t\t\titemDef.modelId = 61111;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\t\t//DOPES ITEMS NIGGAHAHAHAHAHAHAH\n\t\tcase 2749:\n\t\t\titemDef.name = \"Bloody Axe\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65495;\n\t\t\titemDef.femaleModel = 65495;\n\t\t\titemDef.maleModel = 65495;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 2750:\n\t\t\titemDef.name = \"Bloody Axe Offhand\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65496;\n\t\t\titemDef.femaleModel = 65496;\n\t\t\titemDef.maleModel = 65496;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33154:\n\t\t\titemDef.name = \"Infernal mystery box\";\n\t\t\titemDef.description = \"Infernal mystery box.\";\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33155:\n\t\t\titemDef.name = \"Ethereal sword (red)\";\n\t\t\titemDef.description = \"Ethereal sword (red).\";\n\t\t\titemDef.modelId = 61005;\n\t\t\titemDef.maleModel = 61004;\n\t\t\titemDef.femaleModel = 61004;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33156:\n\t\t\titemDef.name = \"Ethereal sword (blue)\";\n\t\t\titemDef.description = \"Ethereal sword (blue).\";\n\t\t\titemDef.modelId = 61006;\n\t\t\titemDef.maleModel = 61007;\n\t\t\titemDef.femaleModel = 61007;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33157:\n\t\t\titemDef.name = \"Ethereal sword (green)\";\n\t\t\titemDef.description = \"Ethereal sword (green).\";\n\t\t\titemDef.modelId = 61008;\n\t\t\titemDef.maleModel = 61009;\n\t\t\titemDef.femaleModel = 61009;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33158:\n\t\t\titemDef.name = \"Dagon' hai top\";\n\t\t\titemDef.description = \"An elite dark mages robes.\";\n\t\t\titemDef.modelId = 60317;\n\t\t\titemDef.maleModel = 43614;\n\t\t\titemDef.femaleModel = 43689;\n\t\t\titemDef.anInt188 = 44594;\n\t\t\titemDef.anInt164 = 43681;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33159:\n\t\t\titemDef.name = \"Dagon' hai hat\";\n\t\t\titemDef.description = \"An elite dark mages hat.\";\n\t\t\titemDef.modelId = 60319;\n\t\t\titemDef.maleModel = 60318;\n\t\t\titemDef.femaleModel = 60318;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 98;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33160:\n\t\t\titemDef.name = \"Dagon' hai robe\";\n\t\t\titemDef.description = \"An elite dark mages robe.\";\n\t\t\titemDef.modelId = 60321;\n\t\t\titemDef.maleModel = 60320;\n\t\t\titemDef.femaleModel = 60320;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 2216;\n\t\t\titemDef.modelRotation1 = 572;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33161:\n\t\t\titemDef.name = \"Blue infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Blue.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33162:\n\t\t\titemDef.name = \"Green infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33163:\n\t\t\titemDef.name = \"Purple infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33164:\n\t\t\titemDef.name = \"Purple firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33165:\n\t\t\titemDef.name = \"Cyan firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to cyan.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33166:\n\t\t\titemDef.name = \"Green firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33167:\n\t\t\titemDef.name = \"Red firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to red.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33169:\n\t\t\titemDef.name = \"K'ril robe top\";\n\t\t\titemDef.description = \"A top worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62558;\n\t\t\titemDef.maleModel = 62559;\n\t\t\titemDef.femaleModel = 62559;\n\t\t\titemDef.modelZoom = 1358;\n\t\t\titemDef.modelRotation1 = 514;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33170:\n\t\t\titemDef.name = \"K'ril robe bottom\";\n\t\t\titemDef.description = \"A robe worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62553;\n\t\t\titemDef.maleModel = 62554;\n\t\t\titemDef.femaleModel = 62554;\n\t\t\titemDef.modelZoom = 1690;\n\t\t\titemDef.modelRotation1 = 435;\n\t\t\titemDef.modelRotation2 = 9;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33171:\n\t\t\titemDef.name = \"K'ril hat\";\n\t\t\titemDef.description = \"A hat worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62551;\n\t\t\titemDef.maleModel = 62552;\n\t\t\titemDef.femaleModel = 62552;\n\t\t\titemDef.modelZoom = 1236;\n\t\t\titemDef.modelRotation1 = 118;\n\t\t\titemDef.modelRotation2 = 10;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33172:\n\t\t\titemDef.name = \"K'ril swords\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62557;\n\t\t\titemDef.femaleModel = 62557;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33173:\n\t\t\titemDef.name = \"K'ril swords (sheathed)\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62556;\n\t\t\titemDef.femaleModel = 62556;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33174:\n\t\t\titemDef.name = \"Pet demonic gorilla\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31241;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33175:\n\t\t\titemDef.name = \"Pet crawling hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5071;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33176:\n\t\t\titemDef.name = \"Pet cave bug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 23854;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33177:\n\t\t\titemDef.name = \"Pet cave crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5066;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33178:\n\t\t\titemDef.name = \"Pet banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5063;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33179:\n\t\t\titemDef.name = \"Pet cave slime\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5786;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33180:\n\t\t\titemDef.name = \"Pet rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5084;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33181:\n\t\t\titemDef.name = \"Pet cockatrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5070;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33182:\n\t\t\titemDef.name = \"Pet pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5083;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33183:\n\t\t\titemDef.name = \"Pet basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5064;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33184:\n\t\t\titemDef.name = \"Pet infernal mage\";\n\t\t\titemDef.modifiedModelColors = new int[] { -26527, -24618, -25152, -25491, 119 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 148, 0, 924, 924 };\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5047;\n\t\t\titemDef.modelZoom = 3940;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 84;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33185:\n\t\t\titemDef.name = \"Pet bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5065;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33186:\n\t\t\titemDef.name = \"Pet jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5081;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33187:\n\t\t\titemDef.name = \"Pet turoth\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5086;\n\t\t\titemDef.modelZoom = 2600;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33188:\n\t\t\titemDef.name = \"Pet aberrant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5085;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 450;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33189:\n\t\t\titemDef.name = \"Pet dust devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5076;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33190:\n\t\t\titemDef.name = \"Pet kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5082;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33191:\n\t\t\titemDef.name = \"Pet skeletal wyvern\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10350;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 27;\n\t\t\titemDef.modelRotation2 = 1634;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33192:\n\t\t\titemDef.name = \"Pet garygoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5078;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33193:\n\t\t\titemDef.name = \"Pet nechryael\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5074;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33194:\n\t\t\titemDef.name = \"Pet abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5062;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33195:\n\t\t\titemDef.name = \"Pet dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26395;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33196:\n\t\t\titemDef.name = \"Pet night beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32933;\n\t\t\titemDef.modelZoom = 7000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33197:\n\t\t\titemDef.name = \"Pet greater abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33198:\n\t\t\titemDef.name = \"Pet crushing hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32922;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33199:\n\t\t\titemDef.name = \"Pet chasm crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32918;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33200:\n\t\t\titemDef.name = \"Pet screaming banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32823;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33201:\n\t\t\titemDef.name = \"Pet twisted banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32847;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33202:\n\t\t\titemDef.name = \"Pet giant rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32919;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33203:\n\t\t\titemDef.name = \"Pet cockathrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32920;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33204:\n\t\t\titemDef.name = \"Pet flaming pyrelord\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32923;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33205:\n\t\t\titemDef.name = \"Pet monstrous basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32924;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33206:\n\t\t\titemDef.name = \"Pet malevolent mage\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32929;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33207:\n\t\t\titemDef.name = \"Pet insatiable bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33208:\n\t\t\titemDef.name = \"Pet insatiable mutated bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32925;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33209:\n\t\t\titemDef.name = \"Pet vitreous jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32852;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33210:\n\t\t\titemDef.name = \"Pet vitreous warped jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32917;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33211:\n\t\t\titemDef.name = \"Pet cave abomination\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32935;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33212:\n\t\t\titemDef.name = \"Pet abhorrent spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32930;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33213:\n\t\t\titemDef.name = \"pet repugnant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33214:\n\t\t\titemDef.name = \"Pet choke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32927;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33215:\n\t\t\titemDef.name = \"Pet king kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32934;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33217:\n\t\t\titemDef.name = \"Pet nuclear smoke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32928;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33218:\n\t\t\titemDef.name = \"Pet marble gargoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34251;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33219:\n\t\t\titemDef.name = \"Pet nechryarch\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32932;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33220:\n\t\t\titemDef.name = \"Pet Patrity\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32035;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33221:\n\t\t\titemDef.name = \"Pet xarpus\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35383;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33222:\n\t\t\titemDef.name = \"Pet nyclocas vasilias\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35182;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33223:\n\t\t\titemDef.name = \"Pet pestilent bloat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35404;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33224:\n\t\t\titemDef.name = \"Pet maiden of sugadinti\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35385;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33225:\n\t\t\titemDef.name = \"Pet lizardman shaman\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4039;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33226:\n\t\t\titemDef.name = \"Pet abyssal sire\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 29477;\n\t\t\titemDef.modelZoom = 9000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33227:\n\t\t\titemDef.name = \"Pet black demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31984;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 144;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11802:\n\t\tcase 11804:\n\t\tcase 11806:\n\t\tcase 11808:\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\tbreak;// godsword sheathing operating\n\n\t\tcase 33228:\n\t\t\titemDef.name = \"Pet greater demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33229:\n\t\t\titemDef.name = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.description = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28075;\n\t\t\titemDef.maleModel = 62683;\n\t\t\titemDef.femaleModel = 62683;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33230:\n\t\t\titemDef.name = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.description = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28059;\n\t\t\titemDef.maleModel = 62684;\n\t\t\titemDef.femaleModel = 62684;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33231:\n\t\t\titemDef.name = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.description = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28070;\n\t\t\titemDef.maleModel = 62685;\n\t\t\titemDef.femaleModel = 62685;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33232:\n\t\t\titemDef.name = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.description = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28060;\n\t\t\titemDef.maleModel = 62686;\n\t\t\titemDef.femaleModel = 62686;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33233:\n\t\t\titemDef.name = \"Pet revenant imp\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34156;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33234:\n\t\t\titemDef.name = \"Pet revenant goblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34262;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33235:\n\t\t\titemDef.name = \"Pet revenant pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34142;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33236:\n\t\t\titemDef.name = \"Pet revenant hobgoblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34157;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33237:\n\t\t\titemDef.name = \"Pet revenant cyclops\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34155;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33238:\n\t\t\titemDef.name = \"Pet revenant hellhound\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34143;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33239:\n\t\t\titemDef.name = \"Pet revenant demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modifiedModelColors = new int[] { 1690, 910, 912, 1814, 1938 };\n\t\t\titemDef.originalModelColors = new int[] { 43078, 43078, 43078, 43078, 43078, 43078 };\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33240:\n\t\t\titemDef.name = \"Pet revenant ork\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34154;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33242:\n\t\t\titemDef.name = \"Pet revenant dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34158;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33243:\n\t\t\titemDef.name = \"Pet revenant knight\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34145;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33244:\n\t\t\titemDef.name = \"Pet revenant dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34163;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33245:\n\t\t\titemDef.name = \"Pet glob\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26074;\n\t\t\titemDef.modelZoom = 10000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33246:\n\t\t\titemDef.name = \"Pet ice queen\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 104;\n\t\t\titemDef.modifiedModelColors = new int[] { 41, 61, 4550, 12224, 25238, 6798 };\n\t\t\titemDef.originalModelColors = new int[] { -22052, -26150, -24343, -22052, -22052, -23327 };\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33247:\n\t\t\titemDef.name = \"Pet enraged tarn\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60322;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33248:\n\t\t\titemDef.name = \"Pet jaltok-jad\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 33012;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33249:\n\t\t\titemDef.name = \"Pet rune dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34668;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33271:\n\t\t\titemDef.name = \"Moo\";\n\t\t\titemDef.description = \"cow goes moo.\";\n\t\t\titemDef.modelId = 23889;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33250:\n\t\t\titemDef.name = \"Swift gloves (Black)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62657;\n\t\t\titemDef.femaleModel = 62658;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33251:\n\t\t\titemDef.name = \"Swift gloves (Red)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62659;\n\t\t\titemDef.femaleModel = 62660;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33252:\n\t\t\titemDef.name = \"Swift gloves (White)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62661;\n\t\t\titemDef.femaleModel = 62662;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33253:\n\t\t\titemDef.name = \"Swift gloves (Yellow)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62663;\n\t\t\titemDef.femaleModel = 62664;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33254:\n\t\t\titemDef.name = \"Spellcaster gloves (Black)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62665;\n\t\t\titemDef.femaleModel = 62666;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33255:\n\t\t\titemDef.name = \"Spellcaster gloves (Red)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62667;\n\t\t\titemDef.femaleModel = 62668;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33256:\n\t\t\titemDef.name = \"Spellcaster gloves (White)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62669;\n\t\t\titemDef.femaleModel = 62670;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33257:\n\t\t\titemDef.name = \"Spellcaster gloves (Yellow)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62671;\n\t\t\titemDef.femaleModel = 62672;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33258:\n\t\t\titemDef.name = \"Tekton longsword\";\n\t\t\titemDef.description = \"Tekton longsword.\";\n\t\t\titemDef.modelId = 62682;\n\t\t\titemDef.maleModel = 62681;\n\t\t\titemDef.femaleModel = 62681;\n\t\t\titemDef.modelZoom = 1445;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33259:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33260:\n\t\t\titemDef.name = \"Pet drake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36160;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33261:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33262:\n\t\t\titemDef.name = \"Valentines Balloon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62766;\n\t\t\titemDef.maleModel = 62767;\n\t\t\titemDef.femaleModel = 62767;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 270;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33263:\n\t\t\titemDef.name = \"Cupid bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62768;\n\t\t\titemDef.maleModel = 62769;\n\t\t\titemDef.femaleModel = 62769;\n\t\t\titemDef.modelZoom = 1072;\n\t\t\titemDef.modelRotation1 = 127;\n\t\t\titemDef.modelRotation2 = 103;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33264:\n\t\t\titemDef.name = \"Halo and horns\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62771;\n\t\t\titemDef.maleModel = 62770;\n\t\t\titemDef.femaleModel = 62770;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 228;\n\t\t\titemDef.modelRotation2 = 141;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33265:\n\t\t\titemDef.name = \"Heart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62782;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33266:\n\t\t\titemDef.name = \"Valentines mystery box\";\n\t\t\titemDef.description = \"You make me hard.\";\n\t\t\titemDef.modelId = 62773;\n\t\t\titemDef.modelZoom = 464;\n\t\t\titemDef.modelRotation1 = 423;\n\t\t\titemDef.modelRotation2 = 1928;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33267:\n\t\t\titemDef.name = \"Staff of adoration\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62774;\n\t\t\titemDef.maleModel = 62775;\n\t\t\titemDef.femaleModel = 62775;\n\t\t\titemDef.modelZoom = 1579;\n\t\t\titemDef.modelRotation1 = 660;\n\t\t\titemDef.modelRotation2 = 48;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33268:\n\t\t\titemDef.name = \"Valentines crossbow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62778;\n\t\t\titemDef.maleModel = 62779;\n\t\t\titemDef.femaleModel = 62779;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33269:\n\t\t\titemDef.name = \"Onyxia Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 2130, 38693 };\n\t\t\titemDef.description = \"Chances at several unqiue items found only in this box! (ex: Tekton Armor)\";\n\t\t\tbreak;\n\t\tcase 33270:\n\t\t\titemDef.name = \"Dragon Hunter Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 1050 };\n\t\t\titemDef.description = \"Chances for items that give bonuses toward dragons. (ex: Dragonhunter Lance)\";\n\t\t\tbreak;\n\t\tcase 33273:\n\t\t\titemDef.name = \"Ancient sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60201;\n\t\t\titemDef.maleModel = 60200;\n\t\t\titemDef.femaleModel = 60200;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33274:\n\t\t\titemDef.name = \"Armadyl staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60203;\n\t\t\titemDef.maleModel = 60202;\n\t\t\titemDef.femaleModel = 60202;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33275:\n\t\t\titemDef.name = \"Bork axe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60205;\n\t\t\titemDef.maleModel = 60204;\n\t\t\titemDef.femaleModel = 60204;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33276:\n\t\t\titemDef.name = \"Bree bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60207;\n\t\t\titemDef.maleModel = 60206;\n\t\t\titemDef.femaleModel = 60206;\n\t\t\titemDef.modelZoom = 1700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33277:\n\t\t\titemDef.name = \"Infernal staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60209;\n\t\t\titemDef.maleModel = 60208;\n\t\t\titemDef.femaleModel = 60208;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33278:\n\t\t\titemDef.name = \"Infernal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60211;\n\t\t\titemDef.maleModel = 60210;\n\t\t\titemDef.femaleModel = 60210;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33279:\n\t\t\titemDef.name = \"Necrolord staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60213;\n\t\t\titemDef.maleModel = 60212;\n\t\t\titemDef.femaleModel = 60212;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33280:\n\t\t\titemDef.name = \"Insert name here\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60215;\n\t\t\titemDef.maleModel = 60214;\n\t\t\titemDef.femaleModel = 60214;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33281:\n\t\t\titemDef.name = \"Infernal bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60219;\n\t\t\titemDef.maleModel = 60218;\n\t\t\titemDef.femaleModel = 60218;\n\t\t\titemDef.modelZoom = 3334;\n\t\t\titemDef.modelRotation1 = 533;\n\t\t\titemDef.modelRotation2 = 1294;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33282:\n\t\t\titemDef.name = \"Infernal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60221;\n\t\t\titemDef.maleModel = 60220;\n\t\t\titemDef.femaleModel = 60220;\n\t\t\titemDef.modelZoom = 2512;\n\t\t\titemDef.modelRotation1 = 317;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = 45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33283:\n\t\t\titemDef.name = \"Imbued Porazdir's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 13263, 13014, 13243, 13000, 13275 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your strength for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33284:\n\t\t\titemDef.name = \"Imbued Justiciar's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 31661, 31418, 31661, 31167, 31445 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Defence for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32285:\n\t\t\titemDef.name = \"Imbued Derwen's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 930, 936, 940, 950 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Attack for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32286:\n\t\t\titemDef.name = \"Bronze fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 5652, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32287:\n\t\t\titemDef.name = \"Iron fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 33, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32288:\n\t\t\titemDef.name = \"Steel fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 61, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32289:\n\t\t\titemDef.name = \"Black fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32290:\n\t\t\titemDef.name = \"Mithril fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 43297, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32291:\n\t\t\titemDef.name = \"Adamant fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 21662, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32292:\n\t\t\titemDef.name = \"Rune fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 36133, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32293:\n\t\t\titemDef.name = \"Dragon fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing. Can also be used for Deep sea fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32294:\n\t\t\titemDef.name = \"Raw eel\";\n\t\t\titemDef.description = \"Slimy\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32295:\n\t\t\titemDef.name = \"Burnt eel\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8724, 3226, 9754 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32296:\n\t\t\titemDef.name = \"Eel\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 8386, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8088, 6032, 57, 2960 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32297:\n\t\t\titemDef.name = \"Raw baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 103, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 7756, 5349 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32298:\n\t\t\titemDef.name = \"Burnt baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 28, 41 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32299:\n\t\t\titemDef.name = \"Baron shark\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 8109, 4795 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32300:\n\t\t\titemDef.name = \"Raw cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60223;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32301:\n\t\t\titemDef.name = \"Burnt cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60227;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32302:\n\t\t\titemDef.name = \"Cavefish\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 60228;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32303:\n\t\t\titemDef.name = \"Dragonfire visage (e)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26456;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modifiedModelColors = new int[] { 45, 41, 33, 24, 20, 57, 22, 37 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 1, 2, 3, 4, 5, 6, 7 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33285:\n\t\t\titemDef.name = \"Easter Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"Chances for all sorts of Easter Items!\";\n\t\t\tbreak;\n\n\t\tcase 33286:\n\t\t\titemDef.name = \"Easter Cape\";\n\t\t\titemDef.inventoryOptions = new String[] { null, \"wear\", null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"An Easter Cape.\";\n\t\t\tbreak;\n\n\t\tcase 33287:\n\t\t\titemDef.name = \"Pet Easter Bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"You've captured the Easter bunny!\";\n\t\t\tbreak;\n\n\t\tcase 33288:\n\t\t\titemDef.name = \"Pet Choco\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 7079 };\n\t\t\tbreak;\n\n\t\tcase 33289:\n\t\t\titemDef.name = \"Pet Milkie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 6040 };\n\t\t\tbreak;\n\n\t\tcase 33290:\n\t\t\titemDef.name = \"Pet Goldie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"oh wow... a rare golden bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 9152 };\n\t\t\tbreak;\n\n\t\tcase 33291:\n\t\t\titemDef.name = \"Pet Blue\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"A blue bunny... kinda looks like the easter bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 35321 };\n\t\t\tbreak;\n\n\t\tcase 33292:\n\t\t\titemDef.name = \"Crazed bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 23901;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"What a bloody mess...\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5413, 5417, 5421 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 111, 127 };\n\t\t\tbreak;\n\n\t\tcase 33293:\n\t\t\titemDef.name = \"Peter Rabbit\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 28602;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"Hi Peter!\";\n\t\t\tbreak;\n\n\t\tcase 33294:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947 };\n\t\t\titemDef.originalModelColors = new int[] { 8128 };\n\t\t\tbreak;\n\n\t\tcase 33295:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 25511 };\n\t\t\tbreak;\n\n\t\tcase 33296:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 38835 };\n\t\t\tbreak;\n\n\t\tcase 33297:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 947 };\n\t\t\tbreak;\n\n\t\tcase 33305:\n\t\t\titemDef.name = \"$10 bond\";\n\t\t\titemDef.description = \"$10 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 84, 84, 84, 84, 84, 84, 84 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33306:\n\t\t\titemDef.name = \"$25 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 87, 87, 87, 87, 87, 87, 87 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33307:\n\t\t\titemDef.name = \"$50 bond\";\n\t\t\titemDef.description = \"$50 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 65, 65, 65, 65, 65, 65, 65 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33308:\n\t\t\titemDef.name = \"$100 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 75, 75, 75, 75, 75, 75, 75 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33309:\n\t\t\titemDef.name = \"$200 bond\";\n\t\t\titemDef.description = \"$200 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 88, 88, 88, 88, 88, 88, 88 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33310:\n\t\t\titemDef.name = \"$500 bond\";\n\t\t\titemDef.description = \"$500 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 85, 85, 85, 85, 85, 85, 85 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33311:\n\t\t\titemDef.name = \"$1000 bond\";\n\t\t\titemDef.description = \"$1000 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 86, 86, 86, 86, 86, 86, 86 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33312:\n\t\t\titemDef.name = \"Armadyl battlestaff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60332;\n\t\t\titemDef.maleModel = 60333;\n\t\t\titemDef.femaleModel = 60333;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 225;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33313:\n\t\t\titemDef.name = \"Colossal platebody\";\n\t\t\titemDef.description = \"Colossal platebody.\";\n\t\t\titemDef.modelId = 60323;\n\t\t\titemDef.maleModel = 60324;\n\t\t\titemDef.femaleModel = 60324;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33314:\n\t\t\titemDef.name = \"Colossal platelegs\";\n\t\t\titemDef.description = \"Colossal platelegs.\";\n\t\t\titemDef.modelId = 60325;\n\t\t\titemDef.maleModel = 60326;\n\t\t\titemDef.femaleModel = 60326;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33315:\n\t\t\titemDef.name = \"Colossal boots\";\n\t\t\titemDef.description = \"Colossal boots.\";\n\t\t\titemDef.modelId = 60329;\n\t\t\titemDef.maleModel = 60329;\n\t\t\titemDef.femaleModel = 60329;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33316:\n\t\t\titemDef.name = \"Colossal gloves\";\n\t\t\titemDef.description = \"Colossal gloves.\";\n\t\t\titemDef.modelId = 60330;\n\t\t\titemDef.maleModel = 60331;\n\t\t\titemDef.femaleModel = 60331;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33317:\n\t\t\titemDef.name = \"Colossal helmet\";\n\t\t\titemDef.description = \"Colossal helmet.\";\n\t\t\titemDef.modelId = 60327;\n\t\t\titemDef.maleModel = 60328;\n\t\t\titemDef.femaleModel = 60328;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33318:\n\t\t\titemDef.name = \"Polypore staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60334;\n\t\t\titemDef.maleModel = 60335;\n\t\t\titemDef.femaleModel = 60335;\n\t\t\titemDef.modelZoom = 3750;\n\t\t\titemDef.modelRotation1 = 1454;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33319:\n\t\t\titemDef.name = \"Ganodermic platebody\";\n\t\t\titemDef.description = \"Ganodermic platebody.\";\n\t\t\titemDef.modelId = 60338;\n\t\t\titemDef.maleModel = 60339;\n\t\t\titemDef.femaleModel = 60339;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33320:\n\t\t\titemDef.name = \"Ganodermic platelegs\";\n\t\t\titemDef.description = \"Ganodermic platelegs.\";\n\t\t\titemDef.modelId = 60340;\n\t\t\titemDef.maleModel = 60341;\n\t\t\titemDef.femaleModel = 60341;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33321:\n\t\t\titemDef.name = \"Ganodermic helmet\";\n\t\t\titemDef.description = \"Ganodermic helmet.\";\n\t\t\titemDef.modelId = 60336;\n\t\t\titemDef.maleModel = 60337;\n\t\t\titemDef.femaleModel = 60337;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33322:\n\t\t\titemDef.name = \"Grotesque platebody\";\n\t\t\titemDef.description = \"Grosteq platebody.\";\n\t\t\titemDef.modelId = 60347;\n\t\t\titemDef.maleModel = 60348;\n\t\t\titemDef.femaleModel = 60348;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33323:\n\t\t\titemDef.name = \"Grotesque platelegs\";\n\t\t\titemDef.description = \"Grosteq platelegs.\";\n\t\t\titemDef.modelId = 60349;\n\t\t\titemDef.maleModel = 60350;\n\t\t\titemDef.femaleModel = 60350;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33324:\n\t\t\titemDef.name = \"Grotesque helmet\";\n\t\t\titemDef.description = \"Grosteqc helmet.\";\n\t\t\titemDef.modelId = 60345;\n\t\t\titemDef.maleModel = 60346;\n\t\t\titemDef.femaleModel = 60346;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33325:\n\t\t\titemDef.name = \"Grotesque cape\";\n\t\t\titemDef.description = \"Grosteq cape.\";\n\t\t\titemDef.modelId = 60351;\n\t\t\titemDef.maleModel = 60352;\n\t\t\titemDef.femaleModel = 60352;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33326:\n\t\t\titemDef.name = \"Stunning Hammer\";\n\t\t\titemDef.description = \"Has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60353;\n\t\t\titemDef.maleModel = 60354;\n\t\t\titemDef.femaleModel = 60354;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33327:\n\t\t\titemDef.name = \"Stunning Katagon platebody\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60356;\n\t\t\titemDef.maleModel = 60357;\n\t\t\titemDef.femaleModel = 60357;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33328:\n\t\t\titemDef.name = \"Stunning Katagon platelegs\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60358;\n\t\t\titemDef.maleModel = 60359;\n\t\t\titemDef.femaleModel = 60359;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33329:\n\t\t\titemDef.name = \"Stunning Katagon helmet\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60360;\n\t\t\titemDef.maleModel = 60361;\n\t\t\titemDef.femaleModel = 60361;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33331:\n\t\t\titemDef.name = \"Ancient platebody\";\n\t\t\titemDef.description = \"Ancient platebody.\";\n\t\t\titemDef.modelId = 60366;\n\t\t\titemDef.maleModel = 60367;\n\t\t\titemDef.femaleModel = 60367;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33332:\n\t\t\titemDef.name = \"Ancient platelegs\";\n\t\t\titemDef.description = \"Ancient platelegs.\";\n\t\t\titemDef.modelId = 60368;\n\t\t\titemDef.maleModel = 60369;\n\t\t\titemDef.femaleModel = 60369;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33334:\n\t\t\titemDef.name = \"Ancient boots\";\n\t\t\titemDef.description = \"Ancient boots.\";\n\t\t\titemDef.modelId = 60372;\n\t\t\titemDef.maleModel = 60372;\n\t\t\titemDef.femaleModel = 60372;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33335:\n\t\t\titemDef.name = \"Ancient gloves\";\n\t\t\titemDef.description = \"Ancient gloves.\";\n\t\t\titemDef.modelId = 60370;\n\t\t\titemDef.maleModel = 60371;\n\t\t\titemDef.femaleModel = 60371;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33336:\n\t\t\titemDef.name = \"Ancient helmet\";\n\t\t\titemDef.description = \"Ancient helmet.\";\n\t\t\titemDef.modelId = 60364;\n\t\t\titemDef.maleModel = 60365;\n\t\t\titemDef.femaleModel = 60365;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33341:\n\t\t\titemDef.name = \"Vanguard helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60391;\n\t\t\titemDef.maleModel = 60392;\n\t\t\titemDef.femaleModel = 60392;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33342:\n\t\t\titemDef.name = \"Vanguard platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60393;\n\t\t\titemDef.maleModel = 60394;\n\t\t\titemDef.femaleModel = 60394;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33343:\n\t\t\titemDef.name = \"Vanguard platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60395;\n\t\t\titemDef.maleModel = 60396;\n\t\t\titemDef.femaleModel = 60396;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33344:\n\t\t\titemDef.name = \"Vanguard boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60398;\n\t\t\titemDef.maleModel = 60398;\n\t\t\titemDef.femaleModel = 60398;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33345:\n\t\t\titemDef.name = \"Vanguard gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60373;\n\t\t\titemDef.maleModel = 60397;\n\t\t\titemDef.femaleModel = 60397;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33346:\n\t\t\titemDef.name = \"Celestial staff of light\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60401;\n\t\t\titemDef.maleModel = 60402;\n\t\t\titemDef.femaleModel = 60402;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 101 };\n\t\t\titemDef.originalModelColors = new int[] { 12 };\n\t\t\titemDef.maleOffset = -6;\n\t\t\titemDef.femaleOffset = -6;\n\t\t\tbreak;\n\n\t\tcase 33347:\n\t\t\titemDef.name = \"Hood of sorrow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60438;\n\t\t\titemDef.maleModel = 60403;\n\t\t\titemDef.femaleModel = 60403;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33348:\n\t\t\titemDef.name = \"Celestial robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60404;\n\t\t\titemDef.maleModel = 60405;\n\t\t\titemDef.femaleModel = 60405;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33349:\n\t\t\titemDef.name = \"Celestial robe legs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60406;\n\t\t\titemDef.maleModel = 60407;\n\t\t\titemDef.femaleModel = 60407;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33350:\n\t\t\titemDef.name = \"Primal 2h sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60408;\n\t\t\titemDef.maleModel = 60409;\n\t\t\titemDef.femaleModel = 60409;\n\t\t\titemDef.modelZoom = 1701;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.modelRotation2 = 1529;\n\t\t\titemDef.modelRotation1 = 1713;\n\t\t\titemDef.modelRotationY = 898;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33353:\n\t\t\titemDef.name = \"Primal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60417;\n\t\t\titemDef.maleModel = 60418;\n\t\t\titemDef.femaleModel = 60418;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.modelRotation2 = 1793;\n\t\t\titemDef.modelRotation1 = 1473;\n\t\t\titemDef.modelRotationY = 1121;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33354:\n\t\t\titemDef.name = \"Primal maul\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60419;\n\t\t\titemDef.maleModel = 60420;\n\t\t\titemDef.femaleModel = 60420;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33359:\n\t\t\titemDef.name = \"Primal rapier\";\n\t\t\titemDef.description = \"Good for fighting the ...\";\n\t\t\titemDef.modelId = 60433;\n\t\t\titemDef.maleModel = 60433;\n\t\t\titemDef.femaleModel = 60433;\n\t\t\titemDef.modelZoom = 1300;\n\t\t\titemDef.modelRotation1 = 1401;\n\t\t\titemDef.modelRotation2 = 1724;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 15;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33360:\n\t\t\titemDef.name = \"Primal spear\";\n\t\t\titemDef.description = \"Good for fighting the Corperal Beast.\";\n\t\t\titemDef.modelId = 60434;\n\t\t\titemDef.maleModel = 60435;\n\t\t\titemDef.femaleModel = 60435;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -10;\n\t\t\titemDef.maleOffset = -10;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33361:\n\t\t\titemDef.name = \"Primal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60436;\n\t\t\titemDef.maleModel = 60437;\n\t\t\titemDef.femaleModel = 60437;\n\t\t\titemDef.modelZoom = 1330;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 148;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33362:\n\t\t\titemDef.name = \"Chitin helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60445;\n\t\t\titemDef.maleModel = 60446;\n\t\t\titemDef.femaleModel = 60446;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33364:\n\t\t\titemDef.name = \"Chitin platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60447;\n\t\t\titemDef.maleModel = 60448;\n\t\t\titemDef.femaleModel = 60448;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33365:\n\t\t\titemDef.name = \"Chitin platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60449;\n\t\t\titemDef.maleModel = 60450;\n\t\t\titemDef.femaleModel = 60450;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33366:\n\t\t\titemDef.name = \"Chitin cape\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60443;\n\t\t\titemDef.maleModel = 60444;\n\t\t\titemDef.femaleModel = 60444;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33367:\n\t\t\titemDef.name = \"Supreme void helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60467;\n\t\t\titemDef.maleModel = 60464;\n\t\t\titemDef.femaleModel = 60464;\n\t\t\titemDef.modelZoom = 900;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33368:\n\t\t\titemDef.name = \"Supreme void robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60468;\n\t\t\titemDef.maleModel = 60465;\n\t\t\titemDef.femaleModel = 60465;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33369:\n\t\t\titemDef.name = \"Supreme void robe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60469;\n\t\t\titemDef.maleModel = 60466;\n\t\t\titemDef.femaleModel = 60466;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33370:\n\t\t\titemDef.name = \"Korasi's sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60471;\n\t\t\titemDef.maleModel = 60470;\n\t\t\titemDef.femaleModel = 60470;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 330;\n\t\t\titemDef.modelRotation2 = 1505;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\n\t\tcase 33371:\n\t\t\titemDef.name = \"Spiked slayer helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60475;\n\t\t\titemDef.maleModel = 60476;\n\t\t\titemDef.femaleModel = 60476;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33372:\n\t\t\titemDef.name = \"Slayer platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60478;\n\t\t\titemDef.maleModel = 60479;\n\t\t\titemDef.femaleModel = 60479;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33373:\n\t\t\titemDef.name = \"Slayer platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60474;\n\t\t\titemDef.maleModel = 60477;\n\t\t\titemDef.femaleModel = 60477;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33374:\n\t\t\titemDef.name = \"Slayer boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60472;\n\t\t\titemDef.maleModel = 60473;\n\t\t\titemDef.femaleModel = 60473;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33375:\n\t\t\titemDef.name = \"Blood Justiciar helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60482;\n\t\t\titemDef.maleModel = 60483;\n\t\t\titemDef.femaleModel = 60483;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33376:\n\t\t\titemDef.name = \"Blood Justiciar platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60484;\n\t\t\titemDef.maleModel = 60485;\n\t\t\titemDef.femaleModel = 60485;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33377:\n\t\t\titemDef.name = \"Blood justiciar platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60486;\n\t\t\titemDef.maleModel = 60487;\n\t\t\titemDef.femaleModel = 60487;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33378:\n\t\t\titemDef.name = \"Blood justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60488;\n\t\t\titemDef.maleModel = 60488;\n\t\t\titemDef.femaleModel = 60488;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33379:\n\t\t\titemDef.name = \"Blood justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60489;\n\t\t\titemDef.maleModel = 60490;\n\t\t\titemDef.femaleModel = 60490;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33380:\n\t\t\titemDef.name = \"Blood scythe of vitur\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60480;\n\t\t\titemDef.maleModel = 60481;\n\t\t\titemDef.femaleModel = 60481;\n\t\t\titemDef.modelZoom = 3850;\n\t\t\titemDef.modelRotation1 = 727;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33381:\n\t\t\titemDef.name = \"Skiller cape\";\n\t\t\titemDef.description = \"Skiller cape.\";\n\t\t\titemDef.modelId = 60494;\n\t\t\titemDef.maleModel = 60493;\n\t\t\titemDef.femaleModel = 60492;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33382:\n\t\t\titemDef.name = \"Justiciar faceguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33383:\n\t\t\titemDef.name = \"Justiciar faceguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33384:\n\t\t\titemDef.name = \"Justiciar faceguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33385:\n\t\t\titemDef.name = \"Justiciar faceguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33387:\n\t\t\titemDef.name = \"Justiciar faceguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33389:\n\t\t\titemDef.name = \"Justiciar faceguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33390:\n\t\t\titemDef.name = \"Justiciar chestguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33391:\n\t\t\titemDef.name = \"Justiciar chestguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33392:\n\t\t\titemDef.name = \"Justiciar chestguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33393:\n\t\t\titemDef.name = \"Justiciar chestguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33394:\n\t\t\titemDef.name = \"Justiciar chestguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33395:\n\t\t\titemDef.name = \"Justiciar chestguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33396:\n\t\t\titemDef.name = \"Justiciar legguards (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33397:\n\t\t\titemDef.name = \"Justiciar legguards (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33398:\n\t\t\titemDef.name = \"Justiciar legguards (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33399:\n\t\t\titemDef.name = \"Justiciar legguards (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33400:\n\t\t\titemDef.name = \"Justiciar legguards (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33401:\n\t\t\titemDef.name = \"Justiciar legguards (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33402:\n\t\t\titemDef.name = \"Pet andy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 50169;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33403:\n\t\t\titemDef.name = \"Pet mod divine\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 14283;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33404:\n\t\t\titemDef.name = \"Celestial fairy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60491;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 947 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 937, 11200 };\n\t\t\titemDef.originalModelColors = new int[] { 42663, 41883 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33405:\n\t\t\titemDef.name = \"Lava partyhat (red)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33406:\n\t\t\titemDef.name = \"Lava partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33407:\n\t\t\titemDef.name = \"Lava partyhat (cyan)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33408:\n\t\t\titemDef.name = \"Lava partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33409:\n\t\t\titemDef.name = \"Infernal partyhat (blue)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33410:\n\t\t\titemDef.name = \"Infernal partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33411:\n\t\t\titemDef.name = \"Infernal partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33412:\n\t\t\titemDef.name = \"Infernal partyhat (rainbow)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33413:\n\t\t\titemDef.name = \"Celestial partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33414:\n\t\t\titemDef.name = \"Blood partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33415:\n\t\t\titemDef.name = \"Shadow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33416:\n\t\t\titemDef.name = \"Light blue partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33417:\n\t\t\titemDef.name = \"Easter partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33418:\n\t\t\titemDef.name = \"Dark sparkle partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33419:\n\t\t\titemDef.name = \"Rainbow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33420:\n\t\t\titemDef.name = \"Fire partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33421:\n\t\t\titemDef.name = \"Pet star sprite\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60506;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33422:\n\t\t\titemDef.name = \"Stargaze Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33423:\n\t\t\titemDef.name = \"Star Dust\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Exchange\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 60496;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 279;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 47;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33424:\n\t\t\titemDef.name = \"Blood twisted bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32799;\n\t\t\titemDef.maleModel = 32674;\n\t\t\titemDef.femaleModel = 32674;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10318, 10334 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66 };\n\t\t\titemDef.modifiedModelColors = new int[] { 14236, 13223 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33425:\n\t\t\titemDef.name = \"Celestial crow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60507;\n\t\t\titemDef.modelZoom = 1000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10382 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10378, 10502 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33426:\n\t\t\titemDef.name = \"Celestial penguin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60508;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10343 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 16, 12, 20, 24, 8, 10332, 10337 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33427:\n\t\t\titemDef.name = \"Celestial snake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60509;\n\t\t\titemDef.modelZoom = 1800;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10644, 10512 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78, 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10413, 10405, 10524 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33428:\n\t\t\titemDef.name = \"Celestial scorpion\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60510;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 142 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 4884, 4636, 3974, 4525, 4645 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33429:\n\t\t\titemDef.name = \"Armadyl dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\tbreak;\n\n\t\tcase 33430:\n\t\t\titemDef.name = \"Guthix dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\tbreak;\n\n\t\tcase 33431:\n\t\t\titemDef.name = \"Zamorak dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\tbreak;\n\n\t\tcase 33432:\n\t\t\titemDef.name = \"Ancient dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\tbreak;\n\n\t\tcase 33433:\n\t\t\titemDef.name = \"Bandos dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\tbreak;\n\n\t\tcase 33434:\n\t\t\titemDef.name = \"Saradomin dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\tbreak;\n\n\t\tcase 33435:\n\t\t\titemDef.name = \"Celestial egg\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 7171;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelRotation2 = 16;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 476 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Hatch\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\tcase 33436:\n\t\t\titemDef.name = \"Elite void top (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10586;\n\t\t\titemDef.maleModel = 10687;\n\t\t\titemDef.anInt188 = 10681;\n\t\t\titemDef.femaleModel = 10694;\n\t\t\titemDef.anInt164 = 10688;\n\t\t\titemDef.modelZoom = 1221;\n\t\t\titemDef.modelRotation1 = 459;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33437:\n\t\t\titemDef.name = \"Elite void robe (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60528;\n\t\t\titemDef.maleModel = 60526;\n\t\t\titemDef.femaleModel = 60527;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33438:\n\t\t\titemDef.name = \"Blood chest\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60516;\n\t\t\titemDef.modelZoom = 2640;\n\t\t\titemDef.modelRotation1 = 114;\n\t\t\titemDef.modelRotation2 = 1883;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33439:\n\t\t\titemDef.name = \"Blood bird\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60517;\n\t\t\titemDef.modelZoom = 2768;\n\t\t\titemDef.modelRotation1 = 141;\n\t\t\titemDef.modelRotation2 = 1790;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.originalTextureColors = new int[] { 1946, 2983, 6084, 2735, 5053, 6082, 4013, 2733, 4011, 2880,\n\t\t\t\t\t8150 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66 };\n\t\t\tbreak;\n\n\t\tcase 33440:\n\t\t\titemDef.name = \"Blood Death\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60441;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33442:\n\t\t\titemDef.name = \"10 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33446:\n\t\t\titemDef.name = \"10 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33450:\n\t\t\titemDef.name = \"10 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33454:\n\t\t\titemDef.name = \"10 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33458:\n\t\t\titemDef.name = \"10 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33462:\n\t\t\titemDef.name = \"10 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33443:\n\t\t\titemDef.name = \"30 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33447:\n\t\t\titemDef.name = \"30 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33451:\n\t\t\titemDef.name = \"30 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33455:\n\t\t\titemDef.name = \"30 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33459:\n\t\t\titemDef.name = \"30 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33463:\n\t\t\titemDef.name = \"30 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33444:\n\t\t\titemDef.name = \"60 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33448:\n\t\t\titemDef.name = \"60 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33452:\n\t\t\titemDef.name = \"60 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33456:\n\t\t\titemDef.name = \"60 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33460:\n\t\t\titemDef.name = \"60 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33464:\n\t\t\titemDef.name = \"60 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33445:\n\t\t\titemDef.name = \"120 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33449:\n\t\t\titemDef.name = \"120 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33453:\n\t\t\titemDef.name = \"120 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33457:\n\t\t\titemDef.name = \"120 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33461:\n\t\t\titemDef.name = \"120 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33465:\n\t\t\titemDef.name = \"120 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33466:\n\t\t\titemDef.name = \"Deathtouched dart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60534;\n\t\t\titemDef.maleModel = 60533;\n\t\t\titemDef.femaleModel = 60533;\n\t\t\titemDef.modelZoom = 1053;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33467:\n\t\t\titemDef.name = \"Justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60535;\n\t\t\titemDef.maleModel = 60535;\n\t\t\titemDef.femaleModel = 60535;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33468:\n\t\t\titemDef.name = \"Justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31022;\n\t\t\titemDef.maleModel = 31006;\n\t\t\titemDef.femaleModel = 31013;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 2015;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 123, 70 };\n\t\t\titemDef.originalModelColors = new int[] { 6736, 59441 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33469:\n\t\t\titemDef.name = \"Magic mushroom\";\n\t\t\titemDef.description = \"offers a 10% droprate increase while this pet follows you.\";\n\t\t\titemDef.modelId = 60532;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33470:\n\t\t\titemDef.name = \"Twisted staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60538;\n\t\t\titemDef.maleModel = 60539;\n\t\t\titemDef.femaleModel = 60539;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33471:\n\t\t\titemDef.name = \"Cowboy hat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60540;\n\t\t\titemDef.maleModel = 60541;\n\t\t\titemDef.femaleModel = 60541;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 108;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33472:\n\t\t\titemDef.name = \"Stick\";\n\t\t\titemDef.description = \"Careful of that chub.\";\n\t\t\titemDef.modelId = 60545;\n\t\t\titemDef.maleModel = 60545;\n\t\t\titemDef.femaleModel = 60545;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33473:\n\t\t\titemDef.name = \"#1 Tob cape\";\n\t\t\titemDef.description = \"Reward to the first to complete tob solo and in a team.\";\n\t\t\titemDef.modelId = 60551;\n\t\t\titemDef.maleModel = 60550;\n\t\t\titemDef.femaleModel = 60550;\n\t\t\titemDef.modelZoom = 2295;\n\t\t\titemDef.modelRotation1 = 367;\n\t\t\titemDef.modelRotation2 = 1212;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33474:\n\t\t\titemDef.name = \"Supreme void upgrade kit\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4847;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 163;\n\t\t\titemDef.modelRotation2 = 73;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { -32709, 10295, 10304, 10287, 10275, 10283 };\n\t\t\titemDef.originalModelColors = new int[] { 10, 10, 10, 10, 10, 10 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33475:\n\t\t\titemDef.name = \"Hunter's penguin\";\n\t\t\titemDef.description = \"the one and only's pet.\";\n\t\t\titemDef.modelId = 60548;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33476:\n\t\t\titemDef.name = \"Chef Harambe\";\n\t\t\titemDef.description = \"I like to dip my balls in a deep fryer.\";\n\t\t\titemDef.modelId = 60921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33477:\n\t\t\titemDef.name = \"Void knight champion jr\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60463;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33478:\n\t\t\titemDef.name = \"Custom pet token\";\n\t\t\titemDef.description = \"Trade this to corey after filling out a form on the forums post custom pets\";\n\t\t\titemDef.modelId = 13838;\n\t\t\titemDef.modelZoom = 530;\n\t\t\titemDef.modelRotation1 = 415;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33479:\n\t\t\titemDef.name = \"Mr jaycorr\";\n\t\t\titemDef.description = \"The autistic one.\";\n\t\t\titemDef.modelId = 60592;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33480:\n\t\t\titemDef.name = \"Broom broom\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60593;\n\t\t\titemDef.maleModel = 60593;\n\t\t\titemDef.femaleModel = 60593;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33481:\n\t\t\titemDef.name = \"Test\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11773:\n\t\tcase 11771:\n\t\tcase 11770:\n\t\tcase 11772:\n\t\t\titemDef.anInt196 += 45;\n\t\t\tbreak;\n\t\tcase 22610:\n\t\t\titemDef.name = \"Vesta's spear (deg)\";\n\t\t\tbreak;\n\t\tcase 22614:\n\t\t\titemDef.name = \"Vesta's longsword (deg)\";\n\t\t\tbreak;\n\t\tcase 22616:\n\t\t\titemDef.name = \"Vesta's chainbody (deg)\";\n\t\t\tbreak;\n\t\tcase 22619:\n\t\t\titemDef.name = \"Vesta's plateskirt (deg)\";\n\t\t\tbreak;\n\t\tcase 22622:\n\t\t\titemDef.name = \"Statius's warhammer (deg)\";\n\t\t\tbreak;\n\t\tcase 22625:\n\t\t\titemDef.name = \"Statius's full helm (deg)\";\n\t\t\tbreak;\n\t\tcase 22628:\n\t\t\titemDef.name = \"Statius's platebody (deg)\";\n\t\t\tbreak;\n\t\tcase 22631:\n\t\t\titemDef.name = \"Statius's platelegs (deg)\";\n\t\t\tbreak;\n\t\tcase 22638:\n\t\t\titemDef.name = \"Morrigan's coif (deg)\";\n\t\t\tbreak;\n\t\tcase 22641:\n\t\t\titemDef.name = \"Morrigan's leather body (deg)\";\n\t\t\tbreak;\n\t\tcase 22644:\n\t\t\titemDef.name = \"Morrigan's leather chaps (deg)\";\n\t\t\tbreak;\n\t\tcase 22647:\n\t\t\titemDef.name = \"Zuriel's staff (deg)\";\n\t\t\tbreak;\n\t\tcase 22650:\n\t\t\titemDef.name = \"Zuriel's hood (deg)\";\n\t\t\tbreak;\n\t\tcase 22653:\n\t\t\titemDef.name = \"Zuriel's robe top (deg)\";\n\t\t\tbreak;\n\t\tcase 22656:\n\t\t\titemDef.name = \"Zuriel's robe bottom (deg)\";\n\t\t\tbreak;\n\n\t\tcase 13303:\n\t\t\titemDef.name = \"Event Key (Tarn)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13302:\n\t\t\titemDef.name = \"Event Key (Graardor)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13305:\n\t\t\titemDef.name = \"Tastey-Looking Key\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 2697:\n\t\t\titemDef.name = \"$10 Scroll\";\n\t\t\titemDef.description = \"Get donor status at a cheaper cost!\";\n\t\t\tbreak;\n\t\tcase 2698:\n\t\t\titemDef.name = \"$50 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Super Donator status.\";\n\t\t\tbreak;\n\t\tcase 2699:\n\t\t\titemDef.name = \"$100 Donator\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Extreme Donator status.\";\n\t\t\tbreak;\n\t\tcase 2700:\n\t\t\titemDef.name = \"$5 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Legendary Donator status.\";\n\t\t\tbreak;\n\t\tcase 1464:\n\t\t\titemDef.name = \"Vote ticket\";\n\t\t\titemDef.description = \"This ticket can be exchanged for a voting point.\";\n\t\t\tbreak;\n\n\t\tcase 11739:\n\t\t\titemDef.name = \"Daily reward box\";\n\t\t\titemDef.description = \"Open this box for a daily reward.\";\n\t\t\tbreak;\n\n\t\tcase 13066:// super set\n\t\tcase 12873:// barrows\n\t\tcase 12875:\n\t\tcase 12877:\n\t\tcase 12879:\n\t\tcase 12881:\n\t\tcase 12883:\n\t\tcase 12789:// clue box\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}",
"public void goFiniteShopping(ArrayList<Item> items){\n for (Item item : items){\n purchasePersonalItem(item);\n }\n }",
"public Item[] getItems() {\n/* 3068 */ if (this.vitems != null) {\n/* 3069 */ return this.vitems.getAllItemsAsArray();\n/* */ }\n/* 3071 */ return emptyItems;\n/* */ }",
"public void resolveItems(View view){\n\t\t\n\t\tItem newItem1 = new Item(lostItem.getItemName(),lostItem.getItemDes(),lostItem.getReward(),\n\t\t\t\t\"Resolved\",lostItem.getDate(),lostItem.getCatagory(),lostItem.getLocation(),\n\t\t\t\tlostItem.getOwner());//recreate lost item\n\t\tItem newItem2 = new Item(matchedItem.getItemName(),matchedItem.getItemDes(),matchedItem.getReward(),\n\t\t\t\t\"Resolved\",matchedItem.getDate(),matchedItem.getCatagory(),matchedItem.getLocation(),\n\t\t\t\tmatchedItem.getOwner());//recreate found item\n\t\t\n\t\titemCollection.deleteItem(lostItem);\n\t\titemCollection.deleteItem(matchedItem);\n\t\t\n\t\titemCollection.addItem(newItem1);\n\t\titemCollection.addItem(newItem2);\n\t\t\n\t\tIntent intent = new Intent(this, TabsActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent); \n\t\t\n\t}",
"public void ParcoursInfixe(ArrayList<Item> items) {\r\n// Item[] listeItem= new Item[this.taille()];\r\n if (getGauche() != null) {\r\n getGauche().ParcoursInfixe(items);\r\n }\r\n items.add((Item) getElement());\r\n if (getDroite() != null) {\r\n getDroite().ParcoursInfixe(items);\r\n }\r\n// return listeItem;\r\n }",
"public List<Item> getItems() {\n return items;\n }",
"public List<Item> getItems() {\n return items;\n }",
"public ArrayOfItem getItem() {\r\n return localItem;\r\n }",
"public void setItems(ArrayList<Item> items) {\n\t\tthis.items = items;\n\t}",
"public HashMap<String, Item> getItemCollection(){\n \tHashMap<String, Item> result = new HashMap<String, Item>(itemCollection);\r\n \treturn result;\r\n }",
"public void modifySelectedFurniture() {\n if (!Home.getFurnitureSubList(this.home.getSelectedItems()).isEmpty()) {\n new HomeFurnitureController(this.home, this.preferences, \n this.viewFactory, this.contentManager, this.undoSupport).displayView(getView());\n }\n }",
"@Override\r\n\tpublic Warehouse_itemInformation selitemcaigoubaobiaothree(Map<String, Object> map) {\n\t\treturn who_iif.selitemcaigoubaobiaothree(map);\r\n\t}",
"public void setItems (java.util.Set<com.jspgou.cms.entity.OrderItem> items) {\r\n\t\tthis.items = items;\r\n\t}",
"@Override\n public List<Item> retrieveAllItems() throws VendingMachinePersistenceException {\n loadItemFile();\n List<Item> itemList = new ArrayList<>();\n for (Item currentItem: itemMap.values()) {\n itemList.add(currentItem);\n }\n\n return itemList;\n }",
"public void popItems() {\n\t\t\n\t\tItemList.add(HPup);\n\t\tItemList.add(SHPup);\n\t\tItemList.add(DMGup);\n\t\tItemList.add(SDMGup);\n\t\tItemList.add(EVup);\n\t\tItemList.add(SEVup);\n\t\t\n\t\trandomDrops.add(HPup);\n\t\trandomDrops.add(SHPup);\n\t\trandomDrops.add(DMGup);\n\t\trandomDrops.add(SDMGup);\n\t\trandomDrops.add(EVup);\n\t\trandomDrops.add(SEVup);\n\t\t\n\t\tcombatDrops.add(SHPup);\n\t\tcombatDrops.add(SDMGup);\n\t\tcombatDrops.add(SEVup);\n\t}",
"ICpItem getCpItem();",
"private void getItems() {\n getComputers();\n getPrinters();\n }",
"@Override\n public Set<T> getItems() {\n return items;\n }",
"public void addItems() {\r\n\t\tproductSet.add(new FoodItems(1000, \"maggi\", 12.0, 100, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1001, \"Pulses\", 55.0, 50, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1004, \"Meat\", 101.53, 5, new Date(), new Date(), \"no\"));\r\n\t\tproductSet.add(new FoodItems(1006, \"Jelly\", 30.0, 73, new Date(), new Date(), \"no\"));\r\n\t\t\r\n\t\tproductSet.add(new Apparels(1005, \"t-shirt\", 1000.0, 10, \"small\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1002, \"sweater\", 2000.0, 5,\"medium\", \"woolen\"));\r\n\t\tproductSet.add(new Apparels(1003, \"cardigan\", 1001.53,22, \"large\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1007, \"shirt\", 500.99, 45,\"large\",\"woolen\"));\r\n\t\t\r\n\t\tproductSet.add(new Electronics(1010, \"tv\", 100000.0, 13, 10));\r\n\t\tproductSet.add(new Electronics(1012, \"mobile\", 20000.0, 20,12));\r\n\t\tproductSet.add(new Electronics(1013, \"watch\", 1101.53,50, 5));\r\n\t\tproductSet.add(new Electronics(1009, \"headphones\", 300.0, 60,2));\r\n\t\t\r\n\t}",
"public void setItems(nl.webservices.www.soap.GCRItem[] items) {\n this.items = items;\n }",
"@ApiModelProperty(value = \"The items that are setup to rebill\")\r\n public List<AutoOrderItem> getItems() {\r\n return items;\r\n }",
"@Override\n public boolean onNavigationItemSelected(MenuItem item) {\n mDrawer.closeDrawer(GravityCompat.START);\n switch (item.getItemId()) {\n case R.id.nav_appeal: {\n selectItem(APPEALS_ALL);\n return true;\n }\n case R.id.nav_appeal_map: {\n setTitle(R.string.on_map_appeals);\n return true;\n }\n }\n return true;\n }",
"public List<SalesOrderItem> getItemOrFetch()\r\n throws ODataException\r\n {\r\n if (toItem == null) {\r\n toItem = fetchItem();\r\n }\r\n return toItem;\r\n }",
"public String navigateAlunoTurmaList() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"AlunoTurma_items\", this.getSelected().getAlunoTurmaList());\n }\n return \"/pages/prime/alunoTurma/index\";\n }",
"public List<BaseObject> getAllItems() {\n ArrayList<BaseObject> list = new ArrayList<BaseObject>(ufos);\n list.add(ship);\n list.addAll(bombs);\n list.addAll(rockets);\n return list;\n }",
"public NavigableSet<Groupe> getGroupes();",
"public Equipo getEquipo() {\n return equipo;\n }",
"@Override\n\tpublic List<Estadoitem> listar() {\n\t\treturn estaitemdao.listar();\n\t}",
"public void atualizaListSubEspecialidadeByEspecialidade() {\n if (tbagendamento != null) {\n if (tbagendamento.getIdespecialidade() != null) {\n listTbsubespecialidades = agendamentoLogic.findAllTbsubespecialidadesByTbespecialidade(tbagendamento.getIdespecialidade());\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Nenhuma especialidade não selecionada.\");\n }\n }\n }",
"public PageInventory withItems(Collection<ItemStack> items)\n {\n this.contents.addAll(items);\n this.recalculate();\n return this;\n }",
"@Override\n public List<Appeal> getAllAppeals(AuthContext context) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 1,3);\n List<Appeal> appeals = new ArrayList<>();\n try {\n //List<Map<String,Object>> data = get(\"SELECT * FROM TblAppeals\");\n List<Map<String,Object>> data = get(\"SELECT TblAppeals.*, TblDefendants.*, TblOfficerReport.* \" +\n \"FROM TblDefendants INNER JOIN (TblAppeals INNER JOIN TblOfficerReport ON TblAppeals.serialNum = TblOfficerReport.appeal) ON TblDefendants.ID = TblOfficerReport.defendant\");\n for(Map<String,Object> map: data) {\n Appeal appeal = new Appeal(map);\n Defendant defendant = new Defendant(map);\n Report report = new Report(map);\n\n appeal.setReport(report);\n appeal.setDefendant(defendant);\n\n appeals.add(appeal);\n }\n return appeals;\n } catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n }",
"@Override\r\n\tpublic List consultaEmpresas() {\n\t\treturn null;\r\n\t}",
"public Collection eleicoesAbertas(){\n return this.eleicaoDB.eleicoesAberta();\n }",
"@NotNull\r\n @Contract(pure = true)\r\n public abstract Collection<GuiItem> getItems();",
"public java.util.Set<com.jspgou.cms.entity.OrderItem> getItems () {\r\n\t\treturn items;\r\n\t}",
"@Override\r\n\tpublic List<Tramite_presentan_info_impacto> lista() {\n\t\treturn tramite.lista();\r\n\t}",
"@Override\n\tpublic void browseItems(Session session){\n\t\t//exception handling block\n\t\ttry{\n\t\t\tbrowseItem=mvc.browseItems(session);\n\t\t\t//displaying items from database\n\t\t\tSystem.out.println(\"<---+++---Your shopping items list here----+++--->\");\n\t\t\tSystem.out.println(\"ItemId\"+\" \"+\"ItemName\"+\" \"+\"ItemType\"+\" \"+\"ItemPrice\"+\" \"+\"ItemQuantity\");\n\t\t\tfor(int i = 0; i < browseItem.size(); i++) {\n\t System.out.println(browseItem.get(i)+\"\\t\"+\"\\t\");\n\t }\n\t System.out.println(\"<------------------------------------------------>\");\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App Exception- Browse Items: \" +e.getMessage());\n\t\t}\n\t}",
"public Enumeration getGeneralEntities() {\r\n return generalEntities.elements();\r\n }",
"@Override\n public int getItemCount() {\n return EmpireList.size();\n }",
"public String navigatePlanoEnsinoList() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"PlanoEnsino_items\", this.getSelected().getPlanoEnsinoList());\n }\n return \"/pages/prime/planoEnsino/index\";\n }",
"public void setItems(Item[] itemsIn)\n {\n items = itemsIn;\n }",
"List<InventoryItem> getInventory();",
"public void setItem(Collectable c) {\n\t\tthis.m_item = c;\n\t}",
"public List<CatalogoGeneralDTO> getItemsList() {\n\t\treturn itemsList;\n\t}",
"public EspecialidadEntity getEspecialidad ()\r\n {\r\n return this.especialidad;\r\n }",
"public ArrayList<Item> getItems()\n {\n return items;\n }",
"public Item getItem() { \n return myItem;\n }",
"private static List<Item> getItems() {\n\t\treturn items;\n\t}",
"@Override\n\tpublic List<ItemFactura> findAllItemFacturas() {\n\t\treturn itemFacturaDao.findAll();\n\t}",
"List<Especialidad> getEspecialidades();",
"@Override\n public void setEquippedItem(IEquipableItem item) {}",
"@Override\n\tpublic List<FoodItem> loadToSelectOption() {\n\t\treturn foodItemRepository.findAll();\n\t}",
"public void itemsSelected() {\n getEntitySelect().close();\n Collection<T> selectedValues = getEntitySelect().getResults().getSelectedValues();\n setReferencesToParentAndPersist((T[]) selectedValues.toArray());\n showAddSuccessful();\n }",
"@Override\n\tpublic Estadoitem getEstaItem(int idestaitem) {\n\t\treturn estaitemdao.getEstadoItem(idestaitem);\n\t}",
"@Override\r\n\tpublic void cargarSubMenuPersona() {\n\t\t\r\n\t}",
"private com.hps.july.persistence.EquipmentSetHome ejbHome() throws java.rmi.RemoteException, javax.naming.NamingException {\n return (com.hps.july.persistence.EquipmentSetHome) PortableRemoteObject.narrow(getHome(), com.hps.july.persistence.EquipmentSetHome.class);\n }",
"public void itemStateChanged(ItemEvent evenet){\n\t\t\t\tString selectedText = fortifyFrom.getSelectedItem().toString();\n\t\t\t\tCountry adj = MainPlayScreen.this.game.getBoard().getCountryByName(selectedText);\n\t\t\t\t\n\t\t\t\t//get the country armies\n\t\t\t\tint i = MainPlayScreen.this.game.countryArmies.get(adj);\n\t\t\t\t\n\t\t\t\t// array list of adjacent countries\n\t\t\t\tArrayList<Country> adjacencies = adj.getAdjacencies();\n\t\t\t\tfortifyTo.removeAllItems();\n\t\t\t\t\n\t\t\t\t// adds ajacent countries to fortifyTo JComboBox\n\t\t\t\tfor (int b = 0; b < adjacencies.size(); b++) {\n\t\t\t\t\tCountry adjacent = adjacencies.get(b);\n\t\t\t\t\tSystem.out.print(adjacent.getName());\n\t\t\t\t\tfortifyTo.addItem(adjacent.getName());\n\t\t\t\t}\t// end of for loop\n\t\t\t\n\t\t\t\t// gets country to fortify\n\t\t\t\tString A = fortifyTo.getSelectedItem().toString();\n\t\t\t\t\n\t\t\t\tCountry country1 = MainPlayScreen.this.game.getBoard().getCountryByName(A);\n\t\t\t\tint d = MainPlayScreen.this.game.countryArmies.get(country1);\n\t\t\t\t\n\t\t\t\t// adds number of countries based on country armies\n\t\t\t\tnumberOfArmies[2].removeAllItems();\n\t\t\t\t for (int a = 0; a < i; a++){\n\t\t\t\t\t numberOfArmies[2].addItem(a);\n\t\t\t\t\t System.out.print(a);\n\t\t\t\t }\n\t\t\t\t// displays whats being fortified\n\t\t\t\tJOptionPane.showMessageDialog( null, \"Country fortifing from: \" + selectedText + \" \" + i + \"armies\" + \"\\n\" + \"Country being fortified\" + A + \" \" + d + \" armies\");\n\t\t\t\t \n\t\t\t\trefresh();\t// refreshes components\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}",
"@Override\n\tpublic List<Equipo> getAll()\n\t{\n\t\treturn (ArrayList<Equipo>)equipoRepository.findAll();\n\t}",
"public List<MainItemOrdered> findAll();",
"@OneToMany(mappedBy=\"detallePuesto\", fetch=FetchType.LAZY)\r\n\tpublic List<AccionPersonal> getAccionPersonals() {\r\n\t\treturn this.accionPersonals;\r\n\t}",
"@OneToMany(mappedBy = \"estadoCivil\")\n\tpublic List<Aluno> getAlunos() {\n\t\treturn this.alunos;\n\t}",
"@Override\n public List<Item> viewAllItems() {\n // calls List<Item> itemRepo.findCatalog();\n return itemRepo.findCatalog();\n }",
"public void setItems(){\n }",
"protected void putItems() {\n\t\tlevelSetup[0][5].putItem(new Dynamite());\n\t\tlevelSetup[6][6].putItem(new Flint());\n\t\tlevelSetup[6][3].putItem(new ManaPotion());\n\t\tlevelSetup[5][0].putItem(new ManaPotion());\n\t\tlevelSetup[2][1].putItem(new HealthPotion());\n\t\tlevelSetup[3][6].putItem(new HealthPotion());\n\t\tlevelSetup[4][2].putItem(new Spinach());\n\t}",
"public void setItem(Item item) {\n this.item = item;\n }",
"public List<T> getItems() {\n if (items == null) {\n items = this.ejbFacade.findAll();\n }\n return items;\n }",
"@Override\r\n\tpublic List<Emp> getAll() {\n\t\treturn null;\r\n\t}",
"public java.util.List<io.opencannabis.schema.commerce.OrderItem.Item> getItemList() {\n return item_;\n }",
"@Override\n\tpublic List<item> findAll() {\n\t\treturn donkyClientFeign.lista().stream().map(p -> new item(p,1)).collect(Collectors.toList());\n\t}",
"protected ItemBO getSelectedInventoryForAnItem(final ItemBO anItem) {\n\t\tif (!isPartFoundInMultipleLocations(anItem)) {\n\t\t\tanItem.setInventory(shortListRelevantInventory(anItem));\n\t\t\tanItem.setAdditionalInventory(new ArrayList<InventoryBO>());\n\t\t}\n\t\t\n\t\treturn anItem;\n\t}",
"public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;",
"@RequestMapping(method=RequestMethod.GET, value = \"/item\", produces = \"application/json\")\n public List<Item> getItems()\n {\n return this.itemRepository.getItems();\n }"
] |
[
"0.5350303",
"0.53500915",
"0.52056867",
"0.5192922",
"0.5173718",
"0.51659226",
"0.513989",
"0.5113634",
"0.5086495",
"0.50804067",
"0.50731057",
"0.5036121",
"0.5028269",
"0.50074387",
"0.49381387",
"0.49169236",
"0.49047345",
"0.48940843",
"0.4870949",
"0.48517632",
"0.4846475",
"0.4826967",
"0.48149532",
"0.48131257",
"0.48071277",
"0.4794223",
"0.47821236",
"0.47798023",
"0.4742709",
"0.4732726",
"0.47279385",
"0.47231779",
"0.47216672",
"0.471849",
"0.471849",
"0.4717371",
"0.47110438",
"0.4692406",
"0.46892965",
"0.46872717",
"0.46756187",
"0.46687815",
"0.46666193",
"0.4663343",
"0.46630725",
"0.46605226",
"0.46586815",
"0.4651935",
"0.46455178",
"0.46426785",
"0.46419483",
"0.46374816",
"0.46274173",
"0.46263108",
"0.46170652",
"0.4613837",
"0.45980307",
"0.4594649",
"0.45929268",
"0.45864254",
"0.45836782",
"0.4570309",
"0.45671466",
"0.45662373",
"0.4565006",
"0.45602837",
"0.45514998",
"0.45484477",
"0.45329982",
"0.45293027",
"0.4529258",
"0.45279232",
"0.45243356",
"0.4519384",
"0.45153102",
"0.45130897",
"0.4510104",
"0.45090893",
"0.45063287",
"0.45044154",
"0.45035213",
"0.45029315",
"0.44982687",
"0.44916037",
"0.44902715",
"0.44891843",
"0.44874728",
"0.44837996",
"0.44790664",
"0.44785798",
"0.44714713",
"0.44677126",
"0.44651425",
"0.4459002",
"0.4458634",
"0.44558144",
"0.44532052",
"0.4442778",
"0.443627",
"0.44353813"
] |
0.5799223
|
0
|
TODO: Implement this method
|
@Override
public void onCreate()
{
super.onCreate();
sp = ApplicationBase.getSharedPreferences();
dsp = ApplicationBase.getDefSharedPreferences();
mRoutes = new NetworkSpace();
config = ApplicationBase.getUtils();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\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\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void anular() {\n\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"private void poetries() {\n\n\t}",
"public final void mo51373a() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"@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 public int describeContents() { return 0; }",
"@Override\n protected void initialize() {\n\n \n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\n protected void prot() {\n }",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"private void getStatus() {\n\t\t\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"private void strin() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic int describeContents() {\n\t\t\t\treturn 0;\n\t\t\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void apply() {\n\t\t\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"public void identify() {\n\n\t}",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"private static void iterator() {\n\t\t\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@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}",
"@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\tpublic void nghe() {\n\n\t}",
"@Override\n public void init() {\n }",
"@Override\n void init() {\n }",
"@Override\n\tprotected void parseResult() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void kk12() {\n\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\n public int getSize() {\n return 1;\n }",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n public int describeContents()\n {\n return 0;\n }",
"@Override\n\tprotected void prepare() {\n\t\t\n\t}",
"private void init() {\n\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}"
] |
[
"0.6146684",
"0.5972078",
"0.5951665",
"0.5893627",
"0.5893573",
"0.58674604",
"0.57714313",
"0.57463145",
"0.5679119",
"0.5679119",
"0.56602454",
"0.5640005",
"0.56188494",
"0.5614183",
"0.5613904",
"0.5604922",
"0.55885965",
"0.5585748",
"0.5544809",
"0.5542787",
"0.54606813",
"0.5445501",
"0.54429436",
"0.54366755",
"0.54366755",
"0.543285",
"0.54153913",
"0.5410616",
"0.5407727",
"0.5402224",
"0.5379201",
"0.5379201",
"0.5379201",
"0.5379201",
"0.5379201",
"0.5379201",
"0.5370941",
"0.53531456",
"0.535282",
"0.535282",
"0.5341689",
"0.53371406",
"0.5327879",
"0.53247654",
"0.53207964",
"0.53207624",
"0.53191334",
"0.5318712",
"0.5315209",
"0.5311832",
"0.5311832",
"0.53108865",
"0.53057474",
"0.5304683",
"0.53020316",
"0.5301817",
"0.5300179",
"0.5299717",
"0.5296128",
"0.52916133",
"0.5288196",
"0.52574426",
"0.52573764",
"0.5253081",
"0.52493435",
"0.52476543",
"0.52466357",
"0.52399063",
"0.52399063",
"0.5239719",
"0.5234995",
"0.5226865",
"0.52235335",
"0.5223488",
"0.5221877",
"0.5221036",
"0.5221036",
"0.5221036",
"0.5221036",
"0.5221036",
"0.521731",
"0.5216318",
"0.52158964",
"0.5210932",
"0.5210247",
"0.5200083",
"0.5197763",
"0.51970756",
"0.5196079",
"0.5196079",
"0.5196079",
"0.51960444",
"0.51916164",
"0.51869774",
"0.5186059",
"0.5183724",
"0.5178901",
"0.5177252",
"0.5174777",
"0.5169102",
"0.51684856"
] |
0.0
|
-1
|
TODO: Implement this method
|
@Override
public int onStartCommand(Intent intent, int flags, int startId)
{
String action = intent.getAction();
if (action == FLAG_VPN_START)
{
if (mThread != null)
{
mThread.interrupt();
}
mThread = new Thread(this, "myVPNThread");
mThread.start();
}
else if (action == FLAG_VPN_STOP)
{
onDisconnect();
stopSelf();
//addLog(getString(R.string.app_name) + " Disconnected");
}
return START_NOT_STICKY;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\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\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void anular() {\n\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"private void poetries() {\n\n\t}",
"public final void mo51373a() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"@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 public int describeContents() { return 0; }",
"@Override\n protected void initialize() {\n\n \n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\n protected void prot() {\n }",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"private void getStatus() {\n\t\t\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"private void strin() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic int describeContents() {\n\t\t\t\treturn 0;\n\t\t\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void apply() {\n\t\t\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"public void identify() {\n\n\t}",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"private static void iterator() {\n\t\t\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@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}",
"@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\tpublic void nghe() {\n\n\t}",
"@Override\n public void init() {\n }",
"@Override\n void init() {\n }",
"@Override\n\tprotected void parseResult() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void kk12() {\n\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\n public int getSize() {\n return 1;\n }",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n public int describeContents()\n {\n return 0;\n }",
"@Override\n\tprotected void prepare() {\n\t\t\n\t}",
"private void init() {\n\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}"
] |
[
"0.6146684",
"0.5972078",
"0.5951665",
"0.5893627",
"0.5893573",
"0.58674604",
"0.57714313",
"0.57463145",
"0.5679119",
"0.5679119",
"0.56602454",
"0.5640005",
"0.56188494",
"0.5614183",
"0.5613904",
"0.5604922",
"0.55885965",
"0.5585748",
"0.5544809",
"0.5542787",
"0.54606813",
"0.5445501",
"0.54429436",
"0.54366755",
"0.54366755",
"0.543285",
"0.54153913",
"0.5410616",
"0.5407727",
"0.5402224",
"0.5379201",
"0.5379201",
"0.5379201",
"0.5379201",
"0.5379201",
"0.5379201",
"0.5370941",
"0.53531456",
"0.535282",
"0.535282",
"0.5341689",
"0.53371406",
"0.5327879",
"0.53247654",
"0.53207964",
"0.53207624",
"0.53191334",
"0.5318712",
"0.5315209",
"0.5311832",
"0.5311832",
"0.53108865",
"0.53057474",
"0.5304683",
"0.53020316",
"0.5301817",
"0.5300179",
"0.5299717",
"0.5296128",
"0.52916133",
"0.5288196",
"0.52574426",
"0.52573764",
"0.5253081",
"0.52493435",
"0.52476543",
"0.52466357",
"0.52399063",
"0.52399063",
"0.5239719",
"0.5234995",
"0.5226865",
"0.52235335",
"0.5223488",
"0.5221877",
"0.5221036",
"0.5221036",
"0.5221036",
"0.5221036",
"0.5221036",
"0.521731",
"0.5216318",
"0.52158964",
"0.5210932",
"0.5210247",
"0.5200083",
"0.5197763",
"0.51970756",
"0.5196079",
"0.5196079",
"0.5196079",
"0.51960444",
"0.51916164",
"0.51869774",
"0.5186059",
"0.5183724",
"0.5178901",
"0.5177252",
"0.5174777",
"0.5169102",
"0.51684856"
] |
0.0
|
-1
|
TODO: Implement this method
|
@Override
public void run()
{
try
{
if (!establishVpn())
{
addLog("Failed to establish the VPN");
return;
}
connectTunnel(getLocalServerAddress(dsp.getString("local_port", "1080")), getLocalServerAddress(dsp.getString("udp_port", "7300")), true);
}
catch (Exception e)
{
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\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\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void anular() {\n\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"private void poetries() {\n\n\t}",
"public final void mo51373a() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"@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 public int describeContents() { return 0; }",
"@Override\n protected void initialize() {\n\n \n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\n protected void prot() {\n }",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"private void getStatus() {\n\t\t\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"private void strin() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic int describeContents() {\n\t\t\t\treturn 0;\n\t\t\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void apply() {\n\t\t\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"public void identify() {\n\n\t}",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"private static void iterator() {\n\t\t\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@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}",
"@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\tpublic void nghe() {\n\n\t}",
"@Override\n public void init() {\n }",
"@Override\n void init() {\n }",
"@Override\n\tprotected void parseResult() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void kk12() {\n\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\n public int getSize() {\n return 1;\n }",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n public int describeContents()\n {\n return 0;\n }",
"@Override\n\tprotected void prepare() {\n\t\t\n\t}",
"private void init() {\n\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}"
] |
[
"0.6146684",
"0.5972078",
"0.5951665",
"0.5893627",
"0.5893573",
"0.58674604",
"0.57714313",
"0.57463145",
"0.5679119",
"0.5679119",
"0.56602454",
"0.5640005",
"0.56188494",
"0.5614183",
"0.5613904",
"0.5604922",
"0.55885965",
"0.5585748",
"0.5544809",
"0.5542787",
"0.54606813",
"0.5445501",
"0.54429436",
"0.54366755",
"0.54366755",
"0.543285",
"0.54153913",
"0.5410616",
"0.5407727",
"0.5402224",
"0.5379201",
"0.5379201",
"0.5379201",
"0.5379201",
"0.5379201",
"0.5379201",
"0.5370941",
"0.53531456",
"0.535282",
"0.535282",
"0.5341689",
"0.53371406",
"0.5327879",
"0.53247654",
"0.53207964",
"0.53207624",
"0.53191334",
"0.5318712",
"0.5315209",
"0.5311832",
"0.5311832",
"0.53108865",
"0.53057474",
"0.5304683",
"0.53020316",
"0.5301817",
"0.5300179",
"0.5299717",
"0.5296128",
"0.52916133",
"0.5288196",
"0.52574426",
"0.52573764",
"0.5253081",
"0.52493435",
"0.52476543",
"0.52466357",
"0.52399063",
"0.52399063",
"0.5239719",
"0.5234995",
"0.5226865",
"0.52235335",
"0.5223488",
"0.5221877",
"0.5221036",
"0.5221036",
"0.5221036",
"0.5221036",
"0.5221036",
"0.521731",
"0.5216318",
"0.52158964",
"0.5210932",
"0.5210247",
"0.5200083",
"0.5197763",
"0.51970756",
"0.5196079",
"0.5196079",
"0.5196079",
"0.51960444",
"0.51916164",
"0.51869774",
"0.5186059",
"0.5183724",
"0.5178901",
"0.5177252",
"0.5174777",
"0.5169102",
"0.51684856"
] |
0.0
|
-1
|
/ Stops routing device traffic through the VPN.
|
public synchronized void connectTunnel(final String socksServerAddress, final String udpServerAddress, final boolean remoteUdpForwardingEnabled)
{
if (socksServerAddress == null)
{
throw new IllegalArgumentException("Must provide an IP address to a SOCKS server.");
}
if (tunFd == null)
{
throw new IllegalStateException("Must establish the VPN before connecting the tunnel.");
}
if (tun2socksThread != null)
{
throw new IllegalStateException("Tunnel already connected");
}
addLog("VPNService Connected");
isRunning = true;
//xBinary.runPdnsd(this, "8.8.8.8", "8.8.4.4");
// Disable IPv6 due to apparent lack of Happy Eyeballs fallback in the Facebook apps, when
// using Intra on IPv4-only networks.
// TODO: Re-enable IPv6 once we solve this compatibility problem. This might require swapping
// the tunfd to enable/disable v6 when moving between v4only and non-v4only networks.
tun2socksThread =
new Thread() {
public void run()
{
Tun2Socks.Start(tunFd.detachFd(),
mMtu,
mRouter,
"255.255.255.0",
socksServerAddress,
udpServerAddress,
String.valueOf(dsp.getBoolean("dns_forwarder_key", true) ? privateIpAddress + ":9395" : "0.0.0.0:0"),
remoteUdpForwardingEnabled);
}
};
tun2socksThread.start();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public synchronized void disconnectTunnel()\n\t{\n\t\taddLog(\"Stopping VPNService...\");\n\t\tif (pdnsdProcess != null)\n\t\t{\n pdnsdProcess.destroy();\n pdnsdProcess = null;\n }\n\t\tif (tun2socksThread != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t//xBinary.stopPdnsd(this);\n\t\t\t\t//Tun2SocksJni.stop();\n\t\t\t\tTun2Socks.Stop();\n\t\t\t\ttun2socksThread.join();\n\t\t\t}\n\t\t\tcatch (InterruptedException e)\n\t\t\t{\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\ttun2socksThread = null;\n\t\t\t}\n\t\t}\n\t\tif (tunFd == null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\ttry\n\t\t{\n\t\t\ttunFd.close();\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\taddLog(\"Failed to close the VPN interface file descriptor.\");\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttunFd = null;\n\t\t}\n\t\tisRunning = false;\n\t\taddLog(\"VPNService Disconnected\");\n\t}",
"public void stopNetwork();",
"public void stopInbound();",
"public static void stopNetworkVirtualization(AppiumDriver driver) {\r\n\r\n\t\t\tHashMap<Object, Object> params = new HashMap<>();\r\n\r\n\t\t\tdriver.executeScript(\"mobile:vnetwork:stop\", params);\r\n\r\n\t\t}",
"public void stopDiscoverability() {\r\n this.findableServerThread.interrupt();\r\n }",
"public void stopDevice(){\n //Stop the device.\n super.stopDevice();\n }",
"public int disconnect() {\n Log.d(TAG, \"kill start\");\n \n // TODO: check if conditionals fixes bug\n // disconnecting when bluetooth not enabeled\n for( BluetoothConnectionThread bct: bluetoothConnectionThreads ){\n if (bct != null) {\n bct.kill();\n bct = null;\n }\n }\n \n if (this.router != null) {\n this.router.stop();\n this.router = null;\n }\n \n Log.d(TAG, \"kill success\");\n return Constants.SUCCESS;\n }",
"private synchronized void stop()\n\t{\n\t\ttry\n\t\t{\n\t\t\tunregisterReceiver( mConnectivityReceiver );\n\t\t}\n\t\tcatch ( IllegalArgumentException e )\n\t\t{\n\t\t\te.printStackTrace();\n\n\t\t} // try/catch\n\n\t}",
"public LWTRTPdu disConnectRsp() throws IncorrectTransitionException;",
"@GET\n @Path(\"/stop\")\n @Produces(MediaType.TEXT_PLAIN)\n public String stop() {\n Device device = getDevice();\n try {\n transportService.stop(device.getId());\n } catch (UnknownDeviceException e) {\n return e.getMessage();\n }\n return \"Stop device:[\" + device.getId() + \"]\";\n }",
"void stopNodeAgentServices();",
"public void stop() {\n mediaController.getTransportControls().stop();\n }",
"protected void stopWifiScan() {\r\n\r\n //TERMINA LA SCANSIONE BLUETOOTH\r\n\t\thideWifiScanDialog();\r\n BeaconsMonitoringService.action.set(BeaconSession.SCANNING_OFF);\r\n\r\n /*\r\n\t\tif (wifiBroadcastReceiver != null) {\r\n\r\n\t\t\tWifiScanner.stopScanner(this, wifiBroadcastReceiver);\r\n\t\t\twifiBroadcastReceiver = null;\r\n\r\n\t\t}\r\n\t\t// stop scan\r\n\t\t// oh, wait, we can't stop the scan, it's asynchronous!\r\n\t\t// we just have to ignore the result!\r\n\t\tignoreWifiResults = true;\r\n */\r\n\t}",
"public void stop() {\n // Stop multicast daemon\n mdaemon.stopRunning();\n mdaemon= null;\n \n stop_announce_timer();\n // Clean Routing information\n if (rprocesses != null)\n rprocesses.clear();\n // Clean Routing table\n if (main_rtab != null)\n main_rtab.clear();\n // Clear Routing table window\n update_routing_window();\n\n local_name= ' ';\n neig= null;\n win= null;\n ds= null;\n tableObj= null;\n }",
"public void stop() {\n\t\tthread.requestStop = true;\n\t\tlong start = System.currentTimeMillis()+timeout;\n\t\twhile( start > System.currentTimeMillis() && thread.running )\n\t\t\tThread.yield();\n\n\t\tdevice.stopDepth();\n\t\tdevice.stopVideo();\n\t\tdevice.close();\n\t}",
"public void shutdownNetwork() {\r\n networkPlayer.stop();\r\n }",
"public void stopRinging();",
"protected void stop() {\n keepGoing = false;\n try {\n new Socket(\"localhost\", port);\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n }",
"public LWTRTPdu disConnectReq() throws IncorrectTransitionException;",
"@Override\n public void stop() {\n leftFrontDrive.setPower(0.0);\n rightFrontDrive.setPower(0.0);\n leftRearDrive.setPower(0.0);\n rightRearDrive.setPower(0.0);\n\n // Disable Tracking when we are done;\n targetsUltimateGoal.deactivate();\n\n //closes object detection to save system resouces\n if (tfod != null) {\n tfod.shutdown();\n }\n }",
"public void stopSending ();",
"public void stop(boolean purge) {\n\t\tsynchronized(this) {\n\t\t\tstopping = true;\n\t\t}\n\t\tif(announcer != null)\n\t\t\tannouncer.stop();\n\t\tcrypto.stop();\n\t\tif(purge)\n\t\t\tnode.peers.removeOpennetPeers();\n\t\tcrypto.socket.getAddressTracker().setPresumedInnocent();\n\t}",
"@Override\n public void stop() {\n\n leftDrive.setPower(0);\n rightDrive.setPower(0);\n armMotor.setPower(0);\n // extendingArm.setPower(0);\n\n telemetry.addData(\"Status\", \"Terminated Interative TeleOp Mode\");\n telemetry.update();\n\n\n }",
"@SimpleFunction(description = \"Stop the drive motors of the robot.\")\n public void Stop() {\n String functionName = \"Stop\";\n if (!checkBluetooth(functionName)) {\n return;\n }\n\n for (NxtMotorPort port : driveMotorPorts) {\n setOutputState(functionName, port, 0,\n NxtMotorMode.Brake, NxtRegulationMode.Disabled, 0, NxtRunState.Disabled, 0);\n }\n }",
"@Override\n public void disconnect() {\n getMvpView().showLoading();\n getDataManager().setSetupStatus(false);\n getDataManager().setIpAddress(\"\");\n getMvpView().setIpDetails(\"\", \"Disconnected\");\n\n new Handler().postDelayed(() -> {\n getMvpView().hideLoading();\n getMvpView().toSetupActivity();\n }, 1000);\n }",
"public void onStop() {\n connectivityMonitor.unregister();\n requestTracker.pauseRequests();\n }",
"public void resendOtp(View view) {\r\n Thread doInBack_network_operation = new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n resendOtp();\r\n }\r\n });\r\n doInBack_network_operation.start();\r\n }",
"private synchronized void stopWiperService()\n {\n Message msg = Message.obtain(mHandler, STOP_WIPER_SERVICE);\n mHandler.sendMessage(msg);\n }",
"public void stop() {\n done=true;\n bridges.forEach(Bridge::stop);\n bridges.clear();\n }",
"void connectionHandlerRequestStopScanning();",
"TerminateNetworkResponse terminateVirtualisedNetworkResource(\n TerminateNetworkRequest terminateNetworkRequest, PoP poP) throws AdapterException;",
"@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId)\n\t{\n\t\tString action = intent.getAction();\n if (action == FLAG_VPN_START)\n\t\t{\n if (mThread != null)\n\t\t\t{\n mThread.interrupt();\n }\n mThread = new Thread(this, \"myVPNThread\");\n mThread.start();\n }\n else if (action == FLAG_VPN_STOP)\n\t\t{\n onDisconnect();\n\t\t\tstopSelf();\n\t\t\t//addLog(getString(R.string.app_name) + \" Disconnected\");\n }\n\n return START_NOT_STICKY;\n\t}",
"public LWTRTPdu disConnect() throws IncorrectTransitionException;",
"@Override\n public void stop() {\n Thread t = new Thread(server::stopOrderProcess);\n t.setName(\"Server close task\");\n t.start();\n serverFrame.enableControls(false, false);\n enableControls(false, false);\n }",
"@Override\r\n\tpublic void onStop() \r\n\t{\n\t\tsuper.onStop();\r\n\r\n\t\t_pinger.stop();\r\n\t\t_hostEnumerator.stop();\r\n\t\tLog.i(TAG, \"onStop\");\r\n\t}",
"protected void stop() {\n keepGoing = false;\n // connect to myself as Client to exit\n try {\n new Socket(\"localhost\", port);\n } catch(Exception e) {\n // exception handling\n }\n }",
"@Override\n public final void stopMotor() {\n stop();\n }",
"public void stopListening();",
"public void stopTracking()\n\t{\n\t\tProcessBuilder enderProcess = new ProcessBuilder(\"ssh\", \n\t\t\t\t\t\t\t\t\t \"pi@\" + RASPBERRY_PI_LOCATION,\n\t\t\t\t\t\t\t\t\t \"\\\"/home/pi/code/stop_vision.sh\\\"\");\n\t\t\n\t\ttry \n\t\t{\n\t\t\tenderProcess.start();\n\t\t\ttracking = false;\n\t\t\tSystem.out.println(\"Stopped vision tracking on Pi\");\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\tSystem.out.println(\"Could not start process to termintate Raspberry Pi GRIP program: \");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n public boolean disconnectWifi() {\r\n nwmDevice.getDevice().Disconnect();\r\n return true;\r\n }",
"@ReactMethod\n public void stop() {\n ChirpError error = chirpConnect.stop();\n if (error.getCode() > 0) {\n onError(context, error.getMessage());\n } else {\n isStarted = false;\n }\n }",
"public void onNetDisConnect() {\n\n\t}",
"public void doUnbind(){\n\t\tboolean isBound = settings.getBoolean(\"isBound\", false);\n\t\tif(isBound){\n\t\t\tcontext.unbindService(SpeedConnection);\n\t\t\tcontext.stopService(i);\n\t\t\teditor.putBoolean(\"isBound\", false);\n\t\t\teditor.apply();\n\t\t}\n\t}",
"public void stopPropose(int instanceId, int destination);",
"@Override\n protected void onStop() {\n super.onStop();\n if (isBounded) {\n unbindService(mConnection);\n isBounded = false;\n }\n }",
"@Override\n public void onDestroy() {\n unregisterReceiver(reciever);\n mp.pause();\n mp.stop();\n mp.release();\n wifiManager.disableNetwork(wifiManager.getConnectionInfo().getNetworkId());\n wifiManager.removeNetwork(wifiManager.getConnectionInfo().getNetworkId());\n wifiManager.disconnect();\n try {\n\n serverSocket.close();\n }catch (Exception ex)\n {\n\n }\n super.onDestroy();\n\n }",
"public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }",
"protected void kill() {\n disconnect = true;\n }",
"public static void stop(){\n printStatic(\"Stopped vehicle\");\n }",
"public void stop () {\n driveRaw (0);\n }",
"public void removeDeviceServiceLink();",
"public void stopDrive() {\n\t\tdifferentialDrive.stopMotor();\n\t}",
"public void stop() {\n\t\tthis.controller.terminate();\n\t}",
"public void serverStop() {\n\t\tJOptionPane.showMessageDialog(dlg, \"与服务器失去连接\");\n\t\tserver = null;\n\t\tconnectAction.setEnabled(false);\n\t\t\n\t}",
"protected void CloseController() \n throws IOException {\n\n // log\n m_Logger.fine(\"Closing connection to the GPIB controller (GPIB_NI).\\n\");\n\n // Take controller offline\n // the second argument places the device offline (0) or online (1)\n m_gpib32.ibonl(BOARD_NR, 0);\n\n // check for errors\n String str = \"Could not close the connection to the GPIB controller\\n\";\n checkErrorGPIB(str, false);\n\n // assign null to detect any calls after I don't expect any\n m_gpib32 = null;\n \n // just in case, free resources to the ByteBuffer and start GarbageCollection\n m_ReceiveBuffer = null;\n System.gc();\n\n // In JNA it is not necessary to unload the dll\n\n }",
"private void safeStop() {\n getRobotDrive().stop();\n //pneumatics.stop();\n }",
"@Override\n\tpublic void stop() throws ConnectException {\n\t\tSystem.out.print(\"Stopping\");\n\t}",
"public void Disconnect(View view){\n Intent intent=new Intent(this,Activity_Connect.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);//clearing backstack to open connect page\n startActivity(intent);\n Toast.makeText(this, \"Device disconnected\", Toast.LENGTH_SHORT).show();\n finish();\n }",
"@Override\n public void close() {\n try {\n if (tunnelSession != null) {\n tunnelSession.close();\n tunnelSession = null;\n }\n if (sshclient != null) {\n sshclient.stop();\n sshclient = null;\n }\n } catch (final Throwable t) {\n throw new RuntimeException(t);\n }\n }",
"public void sendStop(){\n if (isNetworkGame()){\n sender.println(\"stop\");\n sender.flush();\n }\n }",
"@Override protected void pathStop() {\r\n\r\n // stop your robot here\r\n\r\n }",
"private void doStop()\r\n {\r\n requestQueue.add( new ChargerHTTPConn( weakContext,\r\n \"STOP\", \r\n null,\r\n null,\r\n null, \r\n null,\r\n false,\r\n null,\r\n null ) );\r\n }",
"public void stop()\n\t{\n\t\tupdateState( MotorPort.STOP);\n\t}",
"private void stopSnmpAdaptor() {\n if (!agentConfig.isSnmpEnabled()) {\n return;\n }\n\n // stop the SnmpAdaptor...\n try {\n getMBeanServer().invoke(getSnmpAdaptorName(), \"unbind\", new Object[0], new String[0]);\n } catch (Exception e) {\n logger.warn(e.getMessage(), e);\n }\n\n try {\n MBeanUtils.unregisterMBean(getSnmpAdaptorName());\n } catch (MalformedObjectNameException e) {\n logger.warn(e.getMessage(), e);\n }\n }",
"void onConnectToNetByIPReject();",
"protected void stopWork() {\n mAllowedToBind = false;\n\n }",
"public void kill() {\n this.server.stop();\n }",
"public void stopListening() {\n try {\n mListenerSocket.close();\n } catch (IOException e) {\n // just log\n Log.e(\"LanConnection\",\"Error closing listener socket at \" + LOCAL_PORT, e);\n }\n }",
"public void disconnect(){\n\t\tfor (NodeInfo peerInfo : peerList) {\r\n\t\t\t// send leave to peer\r\n\t\t\tsend(\"0114 LEAVE \" + ip + \" \" + port, peerInfo.getIp(), peerInfo.getPort());\r\n\t\t\t\r\n\t\t\tfor (NodeInfo peerInfo2 : peerList) {\r\n\t\t\t\tif (!peerInfo.equals(peerInfo2)) {\r\n\t\t\t\t\tString joinString = \"0114 JOIN \" + peerInfo2.getIp() + \" \" + peerInfo2.getPort();\r\n\t\t\t\t\t\r\n\t\t\t\t\tsend(joinString, peerInfo.getIp(), peerInfo.getPort());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tunRegisterBootstrapServer(serverIp, serverPort, ip, port, username);\r\n\t\t\tapp.printInfo(\"Node disconnected from server....\");\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//socket = null;\r\n\t}",
"void canceledPendingNodeStop();",
"public synchronized void stop(long timeout) throws ClassNotFoundException, IOException, InterruptedException, RemoteReadException\n\t{\n\t\t// Stop the peer. 07/05/2017, Bing Li\n\t\tif (this.peer.isStarted())\n\t\t{\n\t\t\tthis.peer.stop(timeout);\n\t\t}\n\n\t\t// Dispose the root IP address broadcast notifier. 07/05/2017, Bing Li\n\t\tthis.rootIPBroadcastNotifier.dispose();\n\t}",
"public void stop() { \r\n\t if (remoteControlClient != null) {\r\n\t remoteControlClient\r\n\t .setPlaybackState(RemoteControlClient.PLAYSTATE_STOPPED);\r\n\t } \r\n\t }",
"@Override\n\tprotected void onStop() {\n\t\tsendMessageToService(ConnectionService.STOP);\n\t\tsuper.onStop();\n\t}",
"@Override\n public void onConnectionSuspended(int i) {\n Log.e(TAG, \"onDisconnected\");\n\n stopLocationUpdates();\n stopSelf();\n }",
"public void sendUnbindRequest(Pdu packet);",
"@ZAttr(id=779)\n public void unsetReverseProxyUseExternalRoute() throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraReverseProxyUseExternalRoute, \"\");\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public void stopServer(View view) {\n stopServerService();\n }",
"private void stopSoftAp() {\n mWifiNative.teardownInterface(mApInterfaceName);\n Log.d(TAG, \"Soft AP is stopped\");\n }",
"public synchronized void stop() {\n if (mConnectThread != null) {\n mConnectThread.cancel();\n mConnectThread = null;\n }\n if (mConnectedThread != null) {\n mConnectedThread.cancel();\n mConnectedThread = null;\n }\n isConnected = false;\n }",
"public void shutdown() {\n Log.info(Log.FAC_NETMANAGER, formatMessage(\"Shutdown requested\"));\n _run = false;\n if (_periodicTimer != null) _periodicTimer.cancel();\n if (_thread != null) _thread.interrupt();\n if (null != _channel) {\n try {\n setTap(null);\n } catch (IOException io) {\n }\n try {\n _channel.close();\n } catch (IOException io) {\n }\n }\n }",
"public void quit(View view) {\n // TODO: Liberate resources and quit wifi\n myoBackgroundService = new Intent(this, MyoBackgroundService.class);\n stopService(myoBackgroundService);\n backgroundIntentService = new Intent(this, BackgroundIntentService.class);\n stopService(backgroundIntentService);\n isTextRcvData = false;\n moveTaskToBack(true);\n android.os.Process.killProcess(android.os.Process.myPid());\n }",
"@Override\n public void leave() {\n LeaveReq leaveReq = new LeaveReq(node.getCred());\n String msg = leaveReq.getMessageAsString(Constant.Action.LEAVE);\n for (Cred neighbourCred : node.getRoutingTable()) {\n String uri = Constant.HTTP + neighbourCred.getNodeIp() + \":\" + neighbourCred.getNodePort() + Constant.EndPoint.LEAVE;\n try {\n String result = restTemplate.postForObject(uri, new Gson().toJson(leaveReq), String.class);\n if (result.equals(\"200\")) {\n logMe(\"Neighbor left successfully at \" + getCurrentTime());\n }\n } catch (ResourceAccessException exception) {\n //connection refused to the api end point\n } catch (HttpServerErrorException exception){\n //\n }\n }\n }",
"protected void end() {\n \tdrivemotors.stop();\n }",
"@Override\n\t\t\tpublic void onClick(View v){\n\t\t\t\tif (receiver!=null) {\n\t\t\t\t\tmActivity.unregisterReceiver(receiver);\n\t\t\t\t\treceiver=null;\n\t\t\t\t}\n\t\t\t\tIntent intent=new Intent(mActivity,trafficMonitorService.class);\n\t\t\t\tmActivity.stopService(intent);\n\t\t\t\tToast.makeText(mActivity, \"ֹͣ\",Toast.LENGTH_SHORT).show();\n\t\t\t}",
"public void stopCommunicationServer() {\n\t\t\tthis.running = false;\n\t\t}",
"@Override\r\n\tpublic void stop() {\n\t\tthis.controller.stop();\r\n\t}",
"public void stop() {}",
"public void stopDriver();",
"protected void processDisconnection(){}",
"public void c2pStop();",
"public void stop() {\n\t\tsetPower(Motor.STOP);\r\n\t}",
"public void appiumStop() throws IOException {\n if (p != null) {\n p.destroy();\n }\n System.out.println(\"Appium server Is stopped now.\");\n }",
"@Override\r\n\tpublic void stop() {\n\t\tSystem.out.println(\"Jeep车停止\");\r\n\r\n\t}",
"private static void go_stop()throws AWTException {\n\t\ttry{\r\n\t\t\t//Robot robot = new Robot();\r\n\r\n\t\t\trobot.keyPress(KeyEvent.VK_S);\r\n\t\t\trobot.keyPress(KeyEvent.VK_S);\r\n\t\t}\r\n\t\tcatch(IllegalArgumentException e1) {\r\n\t\t\tSystem.err.println(\"Use: java Renderer <Local IPAddress> <Localport> <Remote IPAddress> <Remote Port>\");\r\n\t\t}\r\n\r\n\t}",
"public void stop() {\n try {\n mSessionBinder.stop(mContext.getPackageName(), mCbStub);\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Error calling stop.\", e);\n }\n }",
"@Override\n public void stopEndpoint() {\n if (!isRunning()) {\n return;\n }\n\n setRunning(false);\n\n try {\n try{\n if ( getServerSocket() != null ) {\n getServerSocket().close();\n }\n } catch (Throwable t){\n getLogger().log(Level.SEVERE,\n \"selectorThread.closeSocketException\", t);\n }\n\n unregisterComponents();\n\n clearTasks();\n } catch (Throwable t) {\n getLogger().log(Level.SEVERE,\"selectorThread.stopException\", t);\n }\n }",
"public void Stop_Connection(){\n keepWalking = false; //gia na stamatisei to chat alliws to thread dn ginete interrupt gt dn stamataei i liturgeia tou.\n Chat_Thread.interrupt();\n try {\n if(oos != null) oos.close();\n if(ois != null) ois.close();\n } catch (IOException ex) {\n Logger.getLogger(ChatWithCC.class.getName()).log(Level.SEVERE, null, ex);\n }\n try {\n if(socket !=null) socket.close();\n } catch (IOException ex) {\n Logger.getLogger(ChatWithCC.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void stopDtmf();",
"public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }",
"public void stop();",
"public void stop();"
] |
[
"0.6719527",
"0.6582606",
"0.65754336",
"0.6137991",
"0.6065168",
"0.5894468",
"0.5840376",
"0.5783542",
"0.57300687",
"0.5684442",
"0.5654587",
"0.5606095",
"0.5569018",
"0.5544536",
"0.5539846",
"0.5535718",
"0.55228454",
"0.55050534",
"0.5496215",
"0.5489023",
"0.5484825",
"0.5481598",
"0.5479143",
"0.5477165",
"0.5467646",
"0.54526687",
"0.54499996",
"0.5439581",
"0.54235613",
"0.54231733",
"0.54157305",
"0.5410538",
"0.5410438",
"0.53918934",
"0.5385474",
"0.5374246",
"0.5353118",
"0.5349003",
"0.53363585",
"0.5326644",
"0.53246564",
"0.5320643",
"0.53168815",
"0.53079695",
"0.53009033",
"0.5299644",
"0.52943224",
"0.52942675",
"0.5286959",
"0.5268723",
"0.5268202",
"0.52564055",
"0.5253578",
"0.5250355",
"0.5250317",
"0.52493745",
"0.5239324",
"0.5239121",
"0.5236433",
"0.5233258",
"0.5231131",
"0.5229308",
"0.5223511",
"0.521787",
"0.5208986",
"0.5206536",
"0.5199691",
"0.51979846",
"0.5195357",
"0.5192113",
"0.5187811",
"0.5187768",
"0.5186034",
"0.51798964",
"0.51796484",
"0.5178413",
"0.51658773",
"0.51634264",
"0.5159137",
"0.5158195",
"0.5157485",
"0.51570916",
"0.5153298",
"0.5150914",
"0.51388025",
"0.51371956",
"0.5136385",
"0.5129167",
"0.51291627",
"0.51252633",
"0.512391",
"0.5106684",
"0.5104606",
"0.51002777",
"0.50976956",
"0.5092129",
"0.50900894",
"0.50897247",
"0.5088527",
"0.50829387",
"0.50829387"
] |
0.0
|
-1
|
/ Disconnects a tunnel created by a previous call to |connectTunnel|.
|
public synchronized void disconnectTunnel()
{
addLog("Stopping VPNService...");
if (pdnsdProcess != null)
{
pdnsdProcess.destroy();
pdnsdProcess = null;
}
if (tun2socksThread != null)
{
try
{
//xBinary.stopPdnsd(this);
//Tun2SocksJni.stop();
Tun2Socks.Stop();
tun2socksThread.join();
}
catch (InterruptedException e)
{
Thread.currentThread().interrupt();
}
finally
{
tun2socksThread = null;
}
}
if (tunFd == null)
{
return;
}
try
{
tunFd.close();
}
catch (IOException e)
{
addLog("Failed to close the VPN interface file descriptor.");
}
finally
{
tunFd = null;
}
isRunning = false;
addLog("VPNService Disconnected");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void disconnect() {\r\n\t\tif (connected.get()) {\r\n\t\t\tserverConnection.getConnection().requestDestToDisconnect(true);\r\n\t\t\tconnected.set(false);\r\n\t\t}\r\n\t}",
"public void disconnectSSH(){\n\t log.info(\"Trying to disconnect to device \"+deviceIP+\" ...\\n\");\n\t session.disconnect();\n\t if(!session.isConnected())\n\t\t log.info(\"Successfully disconnected from device \"+deviceIP+\"\\n\");\n\t else\n\t\t log.error(\"Unable to disconnect to the device \"+deviceIP+\"\\n\");\n\t if(FETCHING_DATA_VIA_DATABASE){\n\t\t dbConnect.closeConnection();\n\t\t log.info(\"Successfully closed the database. \");\n\t }\n }",
"public void disconnect()\n\t{\n\t\tif (isConnected)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvimPort.logout(serviceContent.getSessionManager());\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tlogger.trace(\"Failed to logout esx: \" + host, e);\n\t\t\t}\n\t\t}\n\t\tisConnected = false;\n\t}",
"public void disconnect(){\n\n\t\tserverConnection.disconnect();\n\t}",
"public void disconnect() {\n SocketWrapper.getInstance(mContext).disConnect();\n }",
"public static void disconnect(){\n Session session = (Session)_sessionRef.get();\n if(session != null && session.isConnected()){\n session.disconnect();\n _sessionRef.set(null);\n }\n }",
"final public void disconnect() {\n \n _input.removeInputConnection();\n _output.removeConnection(this);\n\n \n }",
"public void disconnect ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"disconnect\", true);\n $in = _invoke ($out);\n return;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n disconnect ( );\n } finally {\n _releaseReply ($in);\n }\n }",
"public void disconnect() {}",
"public void disconnect() {\n\t\tdisconnect(null);\n\t}",
"public void disconnect()\n {\n isConnected = false;\n }",
"public void disconnect() {\n\t\tdisconnect(true);\n\t}",
"public static void disconnect() {\n \t\tconnPool.stop();\n \t}",
"public void disconnect();",
"public void disconnect();",
"public void disconnect();",
"public void disconnect();",
"@Override\n public void close() {\n try {\n if (tunnelSession != null) {\n tunnelSession.close();\n tunnelSession = null;\n }\n if (sshclient != null) {\n sshclient.stop();\n sshclient = null;\n }\n } catch (final Throwable t) {\n throw new RuntimeException(t);\n }\n }",
"public void disconnect() {\n if (connectCount.decrementAndGet() == 0) {\n LOG.trace(\"Disconnecting JGroupsraft Channel {}\", getEndpointUri());\n resolvedRaftHandle.channel().disconnect();\n }\n }",
"@Override\n public void Disconnect() {\n bReConnect = true;\n }",
"void disconnect() throws TransportException;",
"public CompletionStage<Void> disconnect() {\n\t\treturn this.finConnection.sendMessage(\"disconnect-from-channel\", FinBeanUtils.toJsonObject(this.routingInfo)).thenAccept(ack->{\n\t\t\tif (!ack.isSuccess()) {\n\t\t\t\tthrow new RuntimeException(\"error disconnecting channel client, reason: \" + ack.getReason());\n\t\t\t}\n\t\t});\n\t}",
"public LWTRTPdu disConnectRsp() throws IncorrectTransitionException;",
"public LWTRTPdu disConnect() throws IncorrectTransitionException;",
"public void disconnect()\n {\n this.uri = null;\n this.userAddress = null;\n this.password = null;\n connected = false;\n }",
"public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }",
"public void disconnect() {\n\t\ttry { \n\t\t\tif(loginInput != null) loginInput.close();\n\t\t\tif(registerInput != null) registerInput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\t\ttry {\n\t\t\tif(loginOutput != null) loginOutput.close();\n\t\t\tif(registerOutput != null) registerOutput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n try{\n\t\t\tif(loginSocket != null) loginSocket.close();\n\t\t\tif(registerSocket != null) registerSocket.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\n\t\tcg.connectionFailed();\n\t\t\t\n }",
"public void disconnect() throws IOException {\n sendMessageToServer(\"#Close connection#\");\n outputStream.close();\n inputStream.close();\n clientSocket.close();\n }",
"public void disconnect() {\n\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n\n if (outputStream != null) {\n outputStream.close();\n }\n\n if (socket != null ) {\n socket.close();\n connected = socket.isClosed();\n }\n } catch (IOException e) {\n logger.error(\"S7Client error [disconnect]: \" + e);\n }\n }",
"public void disconnect() throws IOException {\n this.session.disconnect();\n this.session = null;\n }",
"public void disconnect() {\n\t\tif (con.isConnected()) {\n\t\t\tcon.disconnect();\n\t\t}\n\t}",
"public void disconnect()\n {\n try\n {\n if ( m_wagon != null )\n {\n m_wagon.disconnect();\n }\n }\n catch ( ConnectionException e )\n {\n m_log.error( \"Error disconnecting Wagon\", e );\n }\n }",
"public void disconnect()\n {\n \tLog.d(TAG, \"disconnect\");\n\n \tif(this.isConnected) {\n \t\t// Disable the client connection if have service\n \t\tif(mLedService != null) {\n \t\t\tthis.disable();\n \t\t}\n \t\t\n \t\t// Unbind service\n mContext.unbindService(mServiceConnection);\n \n this.isConnected = false;\n \t}\n }",
"public void disconnect() {\n\t\t\n\t}",
"public void disconnect() {\n/* 244 */ this.delegate.disconnect();\n/* */ }",
"public void disconnect() {\n\t\tif (_connection != null) {\n\t\t\ttry {\n\t\t\t\twhile (!_connection.isClosed()) {\n\t\t\t\t\t_connection.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) { /* ignore close errors */\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void disconnect() {\r\n\t\tsuper.disconnect();\r\n\t}",
"private void disconnect() {\n\n if (inStream != null) {\n try {inStream.close();} catch (Exception e) { e.printStackTrace(); }\n }\n\n if (outStream != null) {\n try {outStream.close();} catch (Exception e) { e.printStackTrace(); }\n }\n\n if (socket != null) {\n try {socket.close();} catch (Exception e) { e.printStackTrace(); }\n }\n }",
"public void disconnect( ) {\n disconnect( \"\" );\n }",
"public void disconnectedFromHost();",
"public void disconnect()\r\n\t{\r\n\t\ttry {\r\n\t\t\tconnection_.close();\r\n\t\t} catch (IOException e) {} // How can closing a connection fail?\r\n\t\t\r\n\t}",
"private void disconnect() {\n activityRunning = false;\n MRTClient.getInstance().doHangup();\n MRTClient.getInstance().removeClientListener(this);\n\n finish();\n }",
"public void deconnectar() {\n connection = null;\n }",
"public void disconnect() {\n try {\n if (socket != null)\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n isConnected = false;\n }",
"public void disconnect() {\n if (logger.isActivated()) {\n logger.info(\"Network access disconnected\");\n }\n ipAddress = null;\n }",
"public void disconnect() throws OOBException {\n \t\tsession.disconnect();\n \t}",
"void disconnect();",
"void disconnect();",
"public void disconnect() {\n\t\tif (sock != null) {\n\t\t\ttry {\n\t\t\t\tsock.close();\n\t\t\t} catch (IOException ioe) {\n\t\t\t} finally {\n\t\t\t\tsock = null;\n\t\t\t}\n\t\t}\n\t\toutStream.reset();\n\t\tdisconnected();\n\t}",
"public void disconnect() {\n if (this.mIsConnected) {\n disconnectCallAppAbility();\n this.mRemote = null;\n this.mIsConnected = false;\n return;\n }\n HiLog.error(LOG_LABEL, \"Already disconnected, ignoring request.\", new Object[0]);\n }",
"public void disconnect() {\n try {\n client.disconnect(null, null);\n } catch (MqttException e) {\n Debug.logError(e, MODULE);\n }\n }",
"public void disconnect(ClientAddress clientAddress, InetSocketAddress reconnect, Integer delay);",
"public void disconnect(){\n\t\tfor (NodeInfo peerInfo : peerList) {\r\n\t\t\t// send leave to peer\r\n\t\t\tsend(\"0114 LEAVE \" + ip + \" \" + port, peerInfo.getIp(), peerInfo.getPort());\r\n\t\t\t\r\n\t\t\tfor (NodeInfo peerInfo2 : peerList) {\r\n\t\t\t\tif (!peerInfo.equals(peerInfo2)) {\r\n\t\t\t\t\tString joinString = \"0114 JOIN \" + peerInfo2.getIp() + \" \" + peerInfo2.getPort();\r\n\t\t\t\t\t\r\n\t\t\t\t\tsend(joinString, peerInfo.getIp(), peerInfo.getPort());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tunRegisterBootstrapServer(serverIp, serverPort, ip, port, username);\r\n\t\t\tapp.printInfo(\"Node disconnected from server....\");\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//socket = null;\r\n\t}",
"public void disconnect() {\n try {\n telnet.disconnect();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public Reply\tdisconnect() throws ThingsException, InterruptedException ;",
"@Override\r\n\tpublic void disconnect();",
"public void remove (Tunnel tunnel) {\r\n\t\tlog.info(\"Removing tunnel with id \"+ tunnel.getId());\r\n\t\ttunnelList.remove(tunnel);\r\n\t\tthis.save();\r\n\t}",
"public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }",
"void disconnect() throws Exception;",
"public synchronized void disconnect()\r\n\t\t{\r\n\t\tif (state == RUNNING)\r\n\t\t stop();\r\n\t\tif (state == CLOSING_DOWN)\r\n\t\t {\r\n // Close the server socket\t\t \r\n try {\r\n \t\tserverSocket.close();\r\n \t}\r\n catch (IOException e)\r\n {\r\n }\r\n \r\n \t\t// flag the server as stopped\r\n \t\tstate = STOPPED;\r\n\t\t }\r\n\t\t}",
"public static void disconnect()\n\t{\n\t\tTASK_LIST.add(ArduinoComms::disconnectInternal);\n\t\tTASK_LIST.add(ArduinoComms::notifyDisconnected);\n\t\t//TODO if waiting at socket.connect from connect() notify the tread\n\t}",
"public void disconnect() throws IOException;",
"public void disconnect() {\n\t\tMessage quitMessage = Message.makeQuitMessage(getUserName());\n\t\tsocketConnection.print(quitMessage);\n\t\tKeyboardScanner.close();\n\t}",
"@Override\n public abstract void disconnect();",
"public void disconnect() {\n\t\ttry {\n\t\t\tconn.close();\n\t\t\tSystem.out.println(\"切断された/Disconnected\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"接続エラーが発生しました/Connection Close Error Occured\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public synchronized void stop() {\n if (mConnectThread != null) {\n mConnectThread.cancel();\n mConnectThread = null;\n }\n if (mConnectedThread != null) {\n mConnectedThread.cancel();\n mConnectedThread = null;\n }\n isConnected = false;\n }",
"public void disconnect() {\n watchDog.terminate();\n synchronized (sync) {\n if (!connections.isEmpty()) {\n while (connections.size() > 0) {\n ThreadConnection tconn = connections.pop();\n try {\n tconn.conn.rollback();\n tconn.conn.close();\n } catch (SQLException e) {\n }\n }\n }\n }\n this.setChanged();\n this.notifyObservers(\"disconnect\");\n }",
"void disconnect(JShellConnection c, boolean remote) {\n LOG.log(Level.FINE, \n \"Connection closing: {0}, remove = {1}\", new Object[] {\n c, remote\n });\n synchronized (this) {\n if (c == null || !connections.contains(c)) {\n return;\n }\n this.connections.remove(c);\n }\n c.shutDown();\n if (closed) {\n // do not fire closed events after the agent was destroyed\n return;\n }\n // fire destroy if the handshake socket got closed.\n if (handshakeSocket.isClosed()) {\n // detroy the agent through the manager, removing it from the tables:\n mgr.destroyAgent(authorizationKey);\n } else {\n ShellLaunchEvent ev = new ShellLaunchEvent(mgr, c, remote);\n mgr.fire((l) -> l.connectionClosed(ev));\n }\n }",
"public static void disconnect() {\r\n if (isConnected()) {\r\n listener.interrupt();\r\n timerThread.interrupt();\r\n keepAliveThread.interrupt();\r\n db.writeDatabase();\r\n ObjectIO.writeObjectToFile(cmdPath, cmd);\r\n tc.stopCommands();\r\n ObjectIO.writeObjectToFile(tcPath, tc);\r\n try {\r\n irc.close();\r\n }\r\n catch (IOException e) { /* Shouldn't happen */ }\r\n }\r\n irc = null;\r\n }",
"public void disconnect(ClientAddress clientAddress);",
"void disconnect() {\n connector.disconnect();\n // Unregister from activity lifecycle tracking\n application.unregisterActivityLifecycleCallbacks(activityLifecycleTracker);\n getEcologyLooper().quit();\n }",
"public void disconnectSensor() {\n try {\n resultConnection.releaseAccess();\n } catch (NullPointerException ignored) {\n }\n }",
"public void disconnect() {\n\t\ttry {\n\t\t\tif(sInput != null) sInput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\n\n\t}",
"void disconnect() throws IOException;",
"public void disconnect() {\n\t\tfinal String METHOD = \"disconnect\";\n\t\tLoggerUtility.fine(CLASS_NAME, METHOD, \"Disconnecting from the IBM Watson IoT Platform ...\");\n\t\ttry {\n\t\t\tthis.disconnectRequested = true;\n\t\t\tmqttAsyncClient.disconnect();\n\t\t\tLoggerUtility.info(CLASS_NAME, METHOD, \"Successfully disconnected \"\n\t\t\t\t\t+ \"from the IBM Watson IoT Platform\");\n\t\t} catch (MqttException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void disconnect() {\n\t\t\n\t\ttry { \n\t\t\tif(sInput != null) sInput.close();\n\t\t} catch(Exception e) {} \n\t\t\n\t\t\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t} catch(Exception e) {} \n\t\t\n\t\t\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t} catch(Exception e) {}\n\t\t\n // informa ao Gui\n if(clientGui != null) clientGui.connectionFailed();\n\t\t\t\n\t}",
"private void disconnectFromServer() {\n\t\ttry {\n\t\t\tsocket.close();\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"CLIENT: Cannot disconnect from server\");\n\t\t}\n\t}",
"public void disconnect()\n\t{\n\t\toriginal = null;\n\t\tsource = null;\n\t\tl10n = null;\n\t}",
"public void disconnect()\t{\n try {\n doStream.close();\n }\tcatch (IOException\t|\tNullPointerException\te)\t{\n System.err.println(\"[DISCONNECT]\t\" + e.getMessage());\n }\n try {\n diStream.close();\n }\tcatch (IOException\t|\tNullPointerException\te)\t{\n System.err.println(\"[DISCONNECT]\t\" + e.getMessage());\n }\n try {\n sServidor.close();\n }\tcatch (IOException\t|\tNullPointerException\te)\t{\n System.err.println(\"[DISCONNECT]\t\" + e.getMessage());\n }\n }",
"@Override\n public void disconnect() {\n super.disconnect();\n if (playStateSubscription != null) {\n playStateSubscription.unsubscribe();\n playStateSubscription = null;\n }\n connected = false;\n }",
"public void disconnect(){\n\t\tif(player!=null){\n\t\t\tplayer.getConnection().close();\n\t\t\t\n\t\t\t// we get no disconnect signal if we close the connection ourself\n\t\t\tnotifyHandlers(MessageFlag.DISCONNECTED);\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void onDisconnectRemoteNode(String url) {\t\t\t\t\n\t\t\t}",
"public void disconnectFromRemoteDevice() {\n if (debugging)\n Log.d(TAG, \"disconnect FromRemote Device\");\n if (mConnectionManager != null && mConnectionManager.socketStillAlive()) {\n mConnectionManager.closeSocket();\n setState(EBluetoothStates.DISCONNECTED);\n }\n }",
"protected void disconnect() {\n try {\n if (connection != null) {\n connection.close();\n }\n connection = null;\n queryRunner = null;\n thread = null;\n queries = null;\n } catch (SQLException ex) {\n Logger.getGlobal().log(Level.WARNING, ex.getMessage(), ex);\n }\n }",
"public void disconnect() {\r\n\ttry {\r\n\r\n\t if (isConnected() && conn != null) {\r\n\t\tconn.close();\r\n\r\n\t\tif (countTables() <= 0 && conn.isClosed()) {\r\n\t\t setConnected(false);\r\n\t\t}\r\n\t }\r\n\t} catch (Exception e) {\r\n\t // nothing todo here\r\n\t}\r\n }",
"void disconnect() throws CCommException, IllegalStateException;",
"public void disconnect() throws IOException {\r\n socket.close();\r\n System.out.println(\"Disconnected\");\r\n }",
"protected final void disconnect() {\n\t\trunning = false;\n\t\ttry {\n\t\t\tif (out != null)\n\t\t\t\tout.close();\n\t\t\tif (in != null)\n\t\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {e.printStackTrace();}\n\t}",
"public void terminateLease(String sessionId, int disconnectTimeout)\n {\n }",
"private void disconnect() {\n if (mServiceConnection != null) {\n mContext.unbindService(mServiceConnection);\n }\n mServiceConnection = null;\n }",
"void dissociate(RTMPConnection rtmpConn);",
"public static void disconnect() {\n if (AppSettings.bluetoothConnection != null) \n \tAppSettings.bluetoothConnection.stop();\n\t}",
"public void disconnectTelnet() throws Exception{\n\t log.info(\"trying to disconnect to device \"+deviceIP+\" ... \\n\");\n\t try {\n\t\ttelnetClient.disconnect();\n\t\tlog.info(\"Successfully disconnected from \"+deviceIP+\" via telnet\");\n\t\tif(telnetClient.isConnected())\n\t\tlog.info(\"Still connected\\n\");\n\t\tif(FETCHING_DATA_VIA_DATABASE){\n\t\t\tdbConnect.closeConnection();\n\t\t\tlog.info(\"Successfully closed the database. \");\n\t\t}\n\t} catch (IOException e) {\n\t\tlog.error(\"Unable to disconnect to \"+deviceIP+\" via telnet\");\n\t\tthrow new Exception(\"Unable to disconnect!\");\n\t}\n }",
"public void disconnect() {\t\n\t\t\n\t\ttry {\n\t\t\tconnection.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Disconnected\");\n\t}",
"@FXML\r\n\tprivate void deconnecter()\r\n\t{\r\n\t\tchatModel.getConnectionEstablishedProperty().set(false);\r\n\t\tclient.closeClientSocket();\r\n\t\tPlatform.runLater(() -> ChatModel.getInstance().getStatusMessagesList()\r\n\t\t\t\t.add(\"Chat ended: you disconnected.\"));\r\n\t}",
"public void disconnect() {\n try {\n Socket socket = new Socket(\"127.0.0.1\",33333);\n ObjectOutputStream outputStream = new ObjectOutputStream(socket.getOutputStream());\n clientMain.clientData[1] = \"no\";\n outputStream.writeObject(clientMain.clientData);\n\n clientMain.showConnectionPage();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"protected void disconnect() {\n\t\tif (false == DOM.getElementPropertyBoolean(this.getFrame(), \"__connected\")) {\r\n\t\t\tthis.onUnableToConnect();\r\n\t\t} else {\r\n\t\t\tthis.restart();\r\n\t\t}\r\n\t}",
"public void disconnect() {\n if (serverSocket != null) {\n try {\n serverSocket.close();\n Log.i(TAG, \"ServerSocket closed\");\n } catch (IOException e) {\n Log.e(TAG, \"Error closing the serverSocket\");\n }\n }\n\n sendDisconnectionMessage();\n\n // FIXME - Change this into a message sent it listener\n // Wait 2 seconds to disconnection message was sent\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n WiFiDirectUtils.clearServiceRequest(wiFiP2PInstance);\n WiFiDirectUtils.stopPeerDiscovering(wiFiP2PInstance);\n WiFiDirectUtils.removeGroup(wiFiP2PInstance);\n\n serverSocket = null;\n isRegistered = false;\n clientsConnected.clear();\n }\n }, 2000);\n }",
"private void disconnect() {\n\t\ttry { \n\t\t\tif(sInput != null) sInput.close();\n\t\t}\n\t\tcatch(Exception e) {}\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t}\n\t\tcatch(Exception e) {}\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t}\n\t\tcatch(Exception e) {}\n\t\t\n\t\t// Notify the GUI\n \n\t\tif(cg != null)\n\t\t\tcg.connectionFailed();\n\t\t\t\n\t}",
"public void mDisconnect() {\n try {\n if (oOutput!=null){\n oOutput.close();\n oOutput=null;}\n if (oInput!=null){\n oInput.close();\n oInput=null;}\n if (oSocket!=null) {\n if (oSocket.isConnected())\n mMsgLog(5,\"Disconnected\");\n oSocket.close();\n oSocket = null;\n }\n if (oDevice!=null){\n oDevice=null;\n }\n } catch (IOException e) {\n mErrMsg(\"Err:\"+e.toString());\n }\n mStateSet(kBT_Disconnected);\n }"
] |
[
"0.6336666",
"0.6326891",
"0.6227521",
"0.62028456",
"0.6185144",
"0.61760163",
"0.6169075",
"0.61637396",
"0.60535556",
"0.6019937",
"0.60058016",
"0.6001912",
"0.59851015",
"0.5976338",
"0.5976338",
"0.5976338",
"0.5976338",
"0.59584403",
"0.5897535",
"0.58886456",
"0.58636475",
"0.58550316",
"0.5844966",
"0.5830327",
"0.58276004",
"0.5818046",
"0.5786142",
"0.57740945",
"0.57557464",
"0.57508236",
"0.574343",
"0.5742186",
"0.57273054",
"0.5718778",
"0.5706609",
"0.57039416",
"0.5702056",
"0.56993544",
"0.56750685",
"0.5673765",
"0.5673476",
"0.56703174",
"0.56542",
"0.5654159",
"0.56458515",
"0.56349117",
"0.56185794",
"0.56185794",
"0.56140995",
"0.56082356",
"0.56054467",
"0.55921155",
"0.5573528",
"0.55619866",
"0.5560846",
"0.5558763",
"0.55552095",
"0.55455977",
"0.5532682",
"0.55299145",
"0.55237323",
"0.5505607",
"0.55002624",
"0.5495343",
"0.54941684",
"0.5488276",
"0.5481393",
"0.54691875",
"0.5465283",
"0.545962",
"0.54535425",
"0.5421805",
"0.54074126",
"0.5406527",
"0.540629",
"0.54010403",
"0.5383532",
"0.5380062",
"0.53756094",
"0.5354164",
"0.53434926",
"0.5335773",
"0.5335773",
"0.5328424",
"0.53191954",
"0.5311535",
"0.53018403",
"0.5299802",
"0.5289228",
"0.5284995",
"0.52795154",
"0.52749246",
"0.52701384",
"0.5263773",
"0.526358",
"0.52631456",
"0.52615464",
"0.52554446",
"0.5254314",
"0.52527475"
] |
0.7076412
|
0
|
Get token native push service type.
|
public Type getType()
{
return type;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getPushToken() {\n }",
"public String getToken_type() {\r\n\t\treturn token_type;\r\n\t}",
"java.lang.String getRemoteToken();",
"public String getTokenType()\n {\n String tokenType = \"\";\n try\n {\n FileReader fileReader = new FileReader(getCache(\"tokenType\"));\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n tokenType = bufferedReader.readLine();\n } catch (FileNotFoundException e)\n {\n e.printStackTrace();\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n return tokenType;\n }",
"java.lang.String getChannelToken();",
"java.lang.String getChannelToken();",
"public static String getGCMToken() {\n String appVersion = AppUtils.getAppVersionName();\n String cacheKey = \"gcm_reg_id_\" + appVersion;\n return getSharedPreferences().getString(cacheKey, null);\n }",
"T getPushNotification();",
"public String getToken();",
"public String getTokenType() {\n return tokenType;\n }",
"public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n }\n }",
"public static void pushTokenStore(@NonNull Context context, @NonNull final PushTokenType type, @NonNull final String token) {\n\n JSONObject props = new JSONObject();\n\n try {\n props.put(\"token\", token);\n props.put(\"type\", type.getValue());\n props.put(\"package\", context.getPackageName());\n props.put(\"areNotificationsEnabled\", NotificationManagerCompat.from(context).areNotificationsEnabled());\n } catch (JSONException e) {\n e.printStackTrace();\n return;\n }\n\n trackEventImmediately(context, AnalyticsContract.EVENT_TYPE_PUSH_DEVICE_REGISTERED, props);\n }",
"String getPrimaryToken();",
"public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n token_ = s;\n return s;\n }\n }",
"public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n token_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@java.lang.Override\n public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n token_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n token_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getRemoteToken() {\n java.lang.Object ref = remoteToken_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n remoteToken_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public TYPE tokenType(){\n\n return currentTokenType;\n }",
"private String getTokenName(int token) {\n try {\n java.lang.reflect.Field [] classFields = sym.class.getFields();\n for (int i = 0; i < classFields.length; i++) {\n if (classFields[i].getInt(null) == token) {\n return classFields[i].getName();\n }\n }\n } catch (Exception e) {\n e.printStackTrace(System.err);\n }\n\n return \"UNKNOWN TOKEN\";\n }",
"private String getTokenName(int token) {\n try {\n java.lang.reflect.Field [] classFields = sym.class.getFields();\n for (int i = 0; i < classFields.length; i++) {\n if (classFields[i].getInt(null) == token) {\n return classFields[i].getName();\n }\n }\n } catch (Exception e) {\n e.printStackTrace(System.err);\n }\n\n return \"UNKNOWN TOKEN\";\n }",
"private String getTokenName(int token) {\n try {\n java.lang.reflect.Field [] classFields = sym.class.getFields();\n for (int i = 0; i < classFields.length; i++) {\n if (classFields[i].getInt(null) == token) {\n return classFields[i].getName();\n }\n }\n } catch (Exception e) {\n e.printStackTrace(System.err);\n }\n\n return \"UNKNOWN TOKEN\";\n }",
"public PlatformType getPlatformType();",
"int getGcmMessageType(Intent intent) {\n if (mGoogleCloudMessaging_class != null) {\n String errorMsg = null;\n Throwable throwable = null;\n try {\n Method getInstance_method = mGoogleCloudMessaging_class.getDeclaredMethod(\"getInstance\", Context.class);\n Object gcmInstance = getInstance_method.invoke(null, mContext);\n\n Method getMessageType_method = mGoogleCloudMessaging_class.getDeclaredMethod(\n \"getMessageType\", Intent.class);\n String type = (String) getMessageType_method.invoke(gcmInstance, intent);\n Log.d(TAG, \"getGcmMessageType(): completed with type=\" + type);\n if (\"deleted_messages\".equals(type)) {\n return GCM_MESSAGE_TYPE_DELETED;\n } else if (\"gcm\".equals(type)) {\n return GCM_MESSAGE_TYPE_MESSAGE;\n } else if (\"send_error\".equals(type)) {\n return GCM_MESSAGE_TYPE_SEND_ERROR;\n } else if (\"send_event\".equals(type)) {\n return GCM_MESSAGE_TYPE_SEND_EVENT;\n }\n } catch (NoSuchMethodException e) {\n // in this case\n errorMsg = \"getGcmMessageType(): Unable to find method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (InvocationTargetException e) {\n errorMsg = \"getGcmMessageType(): Unable to invoke method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (IllegalAccessException e) {\n errorMsg = \"getGcmMessageType(): Unable to access method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (Exception e) {\n errorMsg = \"getGcmMessageType(): Unknown error occurred.\";\n throwable = e;\n }\n Log.e(TAG, errorMsg, throwable);\n } else {\n Log.w(TAG, \"getGcmMessageType(): Unable to find GoogleCloudMessaging class\");\n }\n return -1;\n }",
"public byte[] getDeviceToken();",
"@java.lang.Override\n public java.lang.String getRemoteToken() {\n java.lang.Object ref = remoteToken_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n remoteToken_ = s;\n return s;\n }\n }",
"public String getTokenServiceId() {\n return tokenServiceId;\n }",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"public static String getToken() {\n String token = \"96179ce8939c4cdfacba65baab1d5ff8\";\n return token;\n }",
"public String getTokenType() {\n return scheme;\n }",
"public String getToken() {\n return token.get();\n }",
"public Integer getServiceType() {\r\n return serviceType;\r\n }",
"public static String getMessageType(TextMessage message) {\n JSONObject json = new JSONObject(message.getPayload());\n String type = json.keys().next();\n\n return type;\n }",
"protected String getAuthMethod() {\n return \"Token\" ;// TODO this.conf.getAuthMethod();\n }",
"public String getToken() {\r\n return token;\r\n }",
"public String getToken() {\r\n return token;\r\n }",
"public java.lang.Short getSipTokenType() {\r\n return sipTokenType;\r\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.ReviewServiceType getServiceType();",
"public String getToken()\n {\n return token;\n }",
"public SocketType socketType() {\n return SocketType.fromSwig(alert.getSocket_type().swigValue());\n }",
"public String getToken() {\n return token;\n }",
"public String getToken() {\n return token;\n }",
"public String getToken() {\n return token;\n }",
"public String getToken() {\n return token;\n }",
"public String getToken() {\n return token;\n }",
"String implClassNameNative() {\n return \"com.ibm.as400.access.ProfileTokenImplNative\";\n }",
"public static TokenType getType(final String token) {\n\t\tif (isFLOAT(token))\n\t\t\treturn TokenType.FLOAT;\n\t\tif (isINT(token))\n\t\t\treturn TokenType.INT;\n\t\tif (isVAR(token))\n\t\t\treturn TokenType.VAR;\n\t\treturn TokenType.INVALID;\n\t}",
"public static String getTokenName(int type) {\r\n return TokenType.getTokenName(type);\r\n }",
"com.google.protobuf.ByteString\n getRemoteTokenBytes();",
"String getToken();",
"String getToken();",
"String getToken();",
"String getToken();",
"String getToken();",
"public String getDeviceToken() {\n return FirebaseInstanceId.getInstance().getToken();\n }",
"MessageType getType();",
"public int getTokenType() {\n return type_;\n }",
"public static String getToken() {\n \treturn mToken;\n }",
"com.nhcsys.webservices.getmessages.getmessagestypes.v1.SupportMessageType.Enum getType();",
"public String getToken() {\n\t\treturn token;\n\t}",
"public String getToken() {\n\t\treturn token;\n\t}",
"Mono<GenericToken> getToken();",
"@JsProperty(name = \"msType\")\n public native String getMsType();",
"public java.lang.String getChannelToken() {\n java.lang.Object ref = channelToken_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n channelToken_ = s;\n return s;\n }\n }",
"public java.lang.String getChannelToken() {\n java.lang.Object ref = channelToken_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n channelToken_ = s;\n return s;\n }\n }",
"public String getToken()\n {\n return ssProxy.getToken();\n }",
"public String getToken() {\n return token_;\n }",
"public String getToken() {\n return token_;\n }",
"public String getToken() {\n return token_;\n }",
"public java.lang.String getChannelToken() {\n java.lang.Object ref = channelToken_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n channelToken_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getChannelToken() {\n java.lang.Object ref = channelToken_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n channelToken_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"String registerGcmNew(String senderId) {\n if (mGoogleCloudMessaging_class != null) {\n String errorMsg;\n Throwable throwable;\n try {\n Method getInstance_method = mInstanceID_class.getDeclaredMethod(\"getInstance\", Context.class);\n Object instanceIDInstance = getInstance_method.invoke(null, mContext);\n\n Method getToken_method = mInstanceID_class.getDeclaredMethod(\n \"getToken\", String.class, String.class);\n String gcmRegId = (String) getToken_method.invoke(instanceIDInstance, senderId, \"GCM\");\n Log.d(TAG, \"registerGcmNew(): completed with regId=\" + gcmRegId);\n return gcmRegId;\n } catch (NoSuchMethodException e) {\n // in this case\n errorMsg = \"registerGcmNew(): Unable to find method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (InvocationTargetException e) {\n errorMsg = \"registerGcmNew(): Unable to invoke method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (IllegalAccessException e) {\n errorMsg = \"registerGcmNew(): Unable to access method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (Exception e) {\n errorMsg = \"registerGcmNew(): Unknown error occurred.\";\n throwable = e;\n }\n Log.e(TAG, errorMsg, throwable);\n } else {\n Log.w(TAG, \"registerGcmNew(): Unable to find GoogleCloudMessaging class\");\n }\n return null;\n }",
"public String getType()\n {\n try\n {\n if (result.has(\"error\"))\n {\n Object error;\n error = result.get(\"error\");\n\n if (error instanceof String)\n {\n // OAuth 2.0 Draft 10 style\n return (String) error;\n } else if (error instanceof JSONObject)\n {\n // OAuth 2.0 Draft 00 style\n if (((JSONObject) error).has(\"type\"))\n {\n return ((JSONObject) error).getString(\"type\");\n }\n }\n }\n } catch (JSONException e)\n {\n e.printStackTrace();\n }\n\n return \"Exception\";\n }",
"public String getToken() {\n\n return this.token;\n }",
"String implClassNameRemote() {\n return \"com.ibm.as400.security.auth.ProfileTokenImplRemote\";\n }",
"org.jetbrains.kotlin.gradle.idea.proto.generated.kpm.IdeaKpmNativePlatformProto getNative();",
"public String getStringToken()\n\t{\n\t\tgetToken();\n\t\treturn token;\n\t}",
"public String getTokenKey()\r\n\t{\r\n\t\treturn TOKEN_KEY;\r\n\t}",
"public String getToken() {\n return instance.getToken();\n }",
"public String getToken() {\n return instance.getToken();\n }",
"public String getToken() {\n return instance.getToken();\n }",
"com.google.protobuf.ByteString\n getChannelTokenBytes();",
"com.google.protobuf.ByteString\n getChannelTokenBytes();",
"public byte[] getToken() {\n if (token_ != null)\n return primitiveGetToken();\n return null;\n }",
"@ApiModelProperty(value = \"The type of token eg \\\"Bearer\\\"\")\n public String getTokenType() {\n return tokenType;\n }",
"public String getToken() {\n return this.token;\n }",
"public String getToken() {\n return this.token;\n }",
"public java.lang.String getTokenId() {\n java.lang.Object ref = tokenId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n tokenId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public MessageProto.MSG getType() {\n MessageProto.MSG result = MessageProto.MSG.valueOf(type_);\n return result == null ? MessageProto.MSG.UNRECOGNIZED : result;\n }"
] |
[
"0.6740174",
"0.6497866",
"0.6271972",
"0.6033553",
"0.58648354",
"0.58648354",
"0.58276737",
"0.57803637",
"0.57454145",
"0.57349455",
"0.56309974",
"0.56309974",
"0.56309974",
"0.56309974",
"0.56121093",
"0.56097895",
"0.5602499",
"0.5602499",
"0.5602499",
"0.56007975",
"0.55935717",
"0.5590187",
"0.5585921",
"0.5585921",
"0.5544851",
"0.55424255",
"0.553745",
"0.553745",
"0.553745",
"0.5532716",
"0.55285835",
"0.5519556",
"0.550711",
"0.5469774",
"0.54695916",
"0.54695916",
"0.54695916",
"0.54695916",
"0.54695916",
"0.54695916",
"0.5441452",
"0.5439589",
"0.5431795",
"0.54140633",
"0.54089445",
"0.5400983",
"0.53900665",
"0.53900665",
"0.53897345",
"0.53872883",
"0.5377097",
"0.5371107",
"0.5366865",
"0.5366865",
"0.5366865",
"0.5366865",
"0.5366865",
"0.5363267",
"0.53522277",
"0.534107",
"0.5337346",
"0.5329712",
"0.5329712",
"0.5329712",
"0.5329712",
"0.5329712",
"0.53238326",
"0.5314594",
"0.5309091",
"0.5308466",
"0.53078645",
"0.5300821",
"0.5300821",
"0.5297424",
"0.5297371",
"0.52909225",
"0.52909225",
"0.52882326",
"0.5272732",
"0.5272732",
"0.5272732",
"0.5267864",
"0.5267864",
"0.5254339",
"0.5247375",
"0.5239869",
"0.52383393",
"0.52204674",
"0.5204022",
"0.5199834",
"0.5198308",
"0.5198308",
"0.5198308",
"0.51966065",
"0.51966065",
"0.5181838",
"0.51799643",
"0.5178295",
"0.5174644",
"0.51708",
"0.5169996"
] |
0.0
|
-1
|
Get token type from integer (enum ordinal).
|
public static Type typeFromInt(int ordinal)
{
Type[] values = Type.values();
return ordinal >= 0 && ordinal < values.length ? values[ordinal] : null;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getTokenType() {\n return type_;\n }",
"public String getTokenType() {\n return tokenType;\n }",
"public static TokenType getType(final String token) {\n\t\tif (isFLOAT(token))\n\t\t\treturn TokenType.FLOAT;\n\t\tif (isINT(token))\n\t\t\treturn TokenType.INT;\n\t\tif (isVAR(token))\n\t\t\treturn TokenType.VAR;\n\t\treturn TokenType.INVALID;\n\t}",
"public TYPE tokenType(){\n\n return currentTokenType;\n }",
"public String getToken_type() {\r\n\t\treturn token_type;\r\n\t}",
"public String getTokenType()\n {\n String tokenType = \"\";\n try\n {\n FileReader fileReader = new FileReader(getCache(\"tokenType\"));\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n tokenType = bufferedReader.readLine();\n } catch (FileNotFoundException e)\n {\n e.printStackTrace();\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n return tokenType;\n }",
"protected String getINT_TYPEToken(EObject semanticObject, RuleCall ruleCall, INode node) {\n\t\tif (node != null)\n\t\t\treturn getTokenText(node);\n\t\treturn \"i\";\n\t}",
"public static String getTokenName(int type) {\r\n return TokenType.getTokenName(type);\r\n }",
"public TokenType getType() {\n return type;\n }",
"Enum getType();",
"public TokenType getType() {\n\t\treturn type;\n\t}",
"public TokenType TokenType(){\r\n\t\tif (isSymbol) {\r\n\t\t\treturn TokenType.SYMBOL;\r\n\t\t} else if (tokenizer.ttype==StreamTokenizer.TT_WORD)\r\n\t\t{\r\n\t\t\tif (keywords.containsKey(currentToken))\r\n\t\t\t{\r\n\t\t\t\treturn TokenType.KEYWORD;\r\n\t\t\t}else{\r\n\t\t\t\treturn TokenType.IDENTIFIER;\r\n\t\t\t}\r\n\t\t}else if(tokenizer.ttype==StreamTokenizer.TT_NUMBER)\r\n\t\t\treturn TokenType.INT_CONST;\r\n\t\telse\r\n\t\t\treturn TokenType.STRING_CONST;\r\n\r\n\t}",
"public TokenType getType() {\n\t\treturn this.type;\n\t}",
"private int tokenVal()\n\t{\n\t\t//check that token is keyword or special\n\t\tif( core.containsKey(token))\t\t\t\n\t\t{ \n\t\t\t//return the value\n\t\t\treturn core.get(token); \n\t\t}\n\t\telse\n\t\t{\n\t\t\t try{ //see if token is integer\n\t\t\t\t Integer.parseInt(token);\n\t\t\t return INTEGER;\n\t\t\t }\n\t\t\t catch(NumberFormatException e){\n\t\t\t \t //token must be an identifier\n\t\t\t \t return IDENTIFIER;\t \n\t\t\t }\n\t\t}\t\n\t}",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"public String getTokenType() {\n return scheme;\n }",
"TokenReader reader(TokenType tokenType);",
"private TokenType peekType(int index) {\n return peekToken(index).type;\n }",
"@TokenizerType\n public int getTokenizerType() {\n return mBundle.getInt(TOKENIZER_TYPE_FIELD);\n }",
"public static TableSpaceType get(int value) {\n\t\tswitch (value) {\n\t\t\tcase REGULAR: return REGULAR_LITERAL;\n\t\t\tcase LOB: return LOB_LITERAL;\n\t\t\tcase SYSTEM_TEMPORARY: return SYSTEM_TEMPORARY_LITERAL;\n\t\t\tcase USER_TEMPORARY: return USER_TEMPORARY_LITERAL;\n\t\t\tcase PERMANENT: return PERMANENT_LITERAL;\n\t\t\tcase TEMPORARY: return TEMPORARY_LITERAL;\n\t\t\tcase LONG: return LONG_LITERAL;\n\t\t\tcase LARGE: return LARGE_LITERAL;\n\t\t}\n\t\treturn null;\n\t}",
"private static String tokTypeToString(int tokType) {\n\t\tString type = \"\";\n\t\tswitch (tokType) {\n\t\tcase StreamTokenizer.TT_EOF:\n\t\t\ttype = \"EOF\";\n\t\t\tbreak;\n\t\tcase StreamTokenizer.TT_EOL:\n\t\t\ttype = \"EOL\";\n\t\t\tbreak;\n\t\tcase StreamTokenizer.TT_NUMBER:\n\t\t\ttype = \"NUMBER\";\n\t\t\tbreak;\n\t\tcase StreamTokenizer.TT_WORD:\n\t\t\ttype = \"WORD\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tif (0 <= tokType && tokType <= Character.MAX_VALUE)\n\t\t\t\ttype = Character.toString((char) tokType);\n\t\t\telse\n\t\t\t\ttype = \"??? \" + tokType + \" ???\";\n\t\t}\n\t\treturn type;\n\t}",
"Uint32 getType();",
"public Token nextTokenOf(Type type){\n Token token;\n \n while((token = nextToken()) != null){\n if(token.type == type){\n break;\n }\n }\n return token;\n }",
"public int getToken() {\n\t\t//previous token remembered?\n\t\tif (token != null)\n\t\t{\t\n\t\t\treturn tokenVal(); \n\t\t}\n\t\telse //need a new token.\n\t\t{\n\t\t\t//get position of next token\n\t\t\tint tokenStart = findTokenStart();\n\t\t\t//remove leading whitespace\n\t\t\tline = line.substring(tokenStart);\n\t\t\t//create char[] representation of line\n\t\t\tchar[] characters = line.toCharArray();\n\t\t\t//get type of token\n\t\t\ttType = getType(characters[0]);\n\t\t\tif (Objects.equals(tType, \"lowercase\"))\n\t\t\t{\n\t\t\t\ttoken = getLowerToken(characters);\n\t\t\t}\n\t\t\telse if (Objects.equals(tType, \"uppercase\"))\n\t\t\t{\n\t\t\t\ttoken = getIdentifierToken(characters);\n\t\t\t}\n\t\t\telse if (Objects.equals(tType, \"int\"))\n\t\t\t{\n\t\t\t\ttoken = getIntToken(characters);\n\t\t\t}\n\t\t\telse if (Objects.equals(tType, \"special\"))\n\t\t\t{\n\t\t\t\ttoken = getSpecialToken(characters);\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tSystem.out.println(\"Error this should not be seen\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\t//token was found ok.\n\t\t\treturn tokenVal();\n\t\t}\n\t}",
"private TokenType peekType() {\n return peekType(0);\n }",
"public uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType getType() {\n @SuppressWarnings(\"deprecation\")\n uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType result = uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType.valueOf(type_);\n return result == null ? uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType.TOKEN : result;\n }",
"private String getIntToken(char[] characters) {\n\t\tString currentToken = \"\";\n\t\t//look at each character\n\t\tfor (char ch: characters)\n\t\t{\n\t\t\t//check if whitespace\n\t\t\tboolean ws = Character.isWhitespace(ch);\n\t\t\t//check type\n\t\t\tString type = getType(ch);\n\t\t\t\n\t\t\t//not whitespace and new ch is an integer.\n\t\t\tif (!ws && Objects.equals(type, \"int\"))\n\t\t\t{\n\t\t\t\tcurrentToken = currentToken.concat(String.valueOf(ch));\n\t\t\t}\n\t\t\t//not whitespace and special ch\n\t\t\telse if (!ws && Objects.equals(type, \"special\"))\n\t\t\t{\n\t\t\t\treturn currentToken;\n\t\t\t}\n\t\t\telse if ( ws )\n\t\t\t{\n\t\t\t\treturn currentToken;\n\t\t\t}\n\t\t\telse //ch type cannot follow integer \n\t\t\t{\n\t\t\t\tSystem.out.println(\"invalid type follows int\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\t//ran out of tokens to process\n\t\treturn currentToken;\n\t}",
"public int type() {\n return DIGIT;\n }",
"public char getType() {\r\n return type.charAt(1);\r\n }",
"public int getType();",
"public int getType();",
"public int getType();",
"public int getType();",
"public int getType();",
"public Token getToken(int index) {\n return Token.cast(get(index));\n }",
"public static DataType get(int value) {\n\t\tswitch (value) {\n\t\t\tcase CLASS_NAME: return CLASS_NAME_LITERAL;\n\t\t\tcase METHOD_NAME: return METHOD_NAME_LITERAL;\n\t\t\tcase METHOD_SIG: return METHOD_SIG_LITERAL;\n\t\t\tcase THIS_OBJECT: return THIS_OBJECT_LITERAL;\n\t\t\tcase ARGS: return ARGS_LITERAL;\n\t\t\tcase RETURNED_OBJECT: return RETURNED_OBJECT_LITERAL;\n\t\t\tcase IS_FINALLY: return IS_FINALLY_LITERAL;\n\t\t\tcase EXCEPTION_OBJECT: return EXCEPTION_OBJECT_LITERAL;\n\t\t\tcase STATIC_FIELD: return STATIC_FIELD_LITERAL;\n\t\t\tcase CLASS_SOURCE_FILE: return CLASS_SOURCE_FILE_LITERAL;\n\t\t\tcase METHOD_NAMES: return METHOD_NAMES_LITERAL;\n\t\t\tcase METHOD_LINE_TABLES: return METHOD_LINE_TABLES_LITERAL;\n\t\t\tcase METHOD_NUMBER: return METHOD_NUMBER_LITERAL;\n\t\t\tcase EXECUTABLE_UNIT_NUMBER: return EXECUTABLE_UNIT_NUMBER_LITERAL;\n\t\t\tcase PREVIOUS_UNIT_NUMBER: return PREVIOUS_UNIT_NUMBER_LITERAL;\n\t\t}\n\t\treturn null;\n\t}",
"public uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType getType() {\n @SuppressWarnings(\"deprecation\")\n uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType result = uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType.valueOf(type_);\n return result == null ? uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType.TOKEN : result;\n }",
"@ApiModelProperty(value = \"The type of token eg \\\"Bearer\\\"\")\n public String getTokenType() {\n return tokenType;\n }",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"public Integer getTypeCode() {\n return (Integer) getAttributeInternal(TYPECODE);\n }",
"private String getTokenName(int token) {\n try {\n java.lang.reflect.Field [] classFields = sym.class.getFields();\n for (int i = 0; i < classFields.length; i++) {\n if (classFields[i].getInt(null) == token) {\n return classFields[i].getName();\n }\n }\n } catch (Exception e) {\n e.printStackTrace(System.err);\n }\n\n return \"UNKNOWN TOKEN\";\n }",
"private String getTokenName(int token) {\n try {\n java.lang.reflect.Field [] classFields = sym.class.getFields();\n for (int i = 0; i < classFields.length; i++) {\n if (classFields[i].getInt(null) == token) {\n return classFields[i].getName();\n }\n }\n } catch (Exception e) {\n e.printStackTrace(System.err);\n }\n\n return \"UNKNOWN TOKEN\";\n }",
"private String getTokenName(int token) {\n try {\n java.lang.reflect.Field [] classFields = sym.class.getFields();\n for (int i = 0; i < classFields.length; i++) {\n if (classFields[i].getInt(null) == token) {\n return classFields[i].getName();\n }\n }\n } catch (Exception e) {\n e.printStackTrace(System.err);\n }\n\n return \"UNKNOWN TOKEN\";\n }",
"MachineType getType();",
"public static InterfaceModeType get(int value) {\n\t\tswitch (value) {\n\t\t\tcase MASTER: return MASTER_LITERAL;\n\t\t\tcase SLAVE: return SLAVE_LITERAL;\n\t\t\tcase SYSTEM: return SYSTEM_LITERAL;\n\t\t\tcase MIRRORED_MASTER: return MIRRORED_MASTER_LITERAL;\n\t\t\tcase MIRRORED_SLAVE: return MIRRORED_SLAVE_LITERAL;\n\t\t\tcase MIRRORED_SYSTEM: return MIRRORED_SYSTEM_LITERAL;\n\t\t}\n\t\treturn null;\n\t}",
"public Integer getType() {\n\t\treturn (Integer) getValue(3);\n\t}",
"public int getToken_num() {\n return this.token_num;\n }",
"java_cup.runtime.Symbol TOKEN(int code) { return TOKEN(code, yytext()); }",
"public Integer getTypeCode() {\n return typeCode;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"TokenTypes.TokenName getName();",
"public static int getType(String name) {\n if (name == null)\n return UNKNOWN_TYPE;\n Integer i = (Integer) TYPE_MAP.get(name);\n if (i != null) {\n return i.intValue();\n } else {\n return UNKNOWN_TYPE;\n }\n }",
"Set<TokenType> tokenTypes();",
"public int getTypeValue() {\n return type_;\n }",
"public abstract Enum<?> getType();",
"public int intVal(){\n\n if(currentTokenType == TYPE.INT_CONST){\n\n return Integer.parseInt(currentToken);\n }else {\n throw new IllegalStateException(\"Current token is not an integer constant!\");\n }\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public static TokenizerType getTokenizerType(Properties props) {\n String tokClass = props.getProperty(\"tokenize.class\", null);\n boolean whitespace = Boolean.valueOf(props.getProperty(\"tokenize.whitespace\", \"false\"));\n String language = props.getProperty(\"tokenize.language\", null);\n\n if(whitespace) {\n return Whitespace;\n }\n\n if (tokClass != null) {\n TokenizerType type = classToTokenizerMap.get(tokClass.toUpperCase());\n if (type == null) {\n throw new IllegalArgumentException(\"TokenizerAnnotator: unknown tokenize.class property \" + tokClass);\n }\n return type;\n }\n\n if (language != null) {\n TokenizerType type = nameToTokenizerMap.get(language.toUpperCase());\n if (type == null) {\n throw new IllegalArgumentException(\"TokenizerAnnotator: unknown tokenize.language property \" + language);\n }\n return type;\n }\n\n return Unspecified;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public E token(int n) {\n return mTokens.get(n);\n }",
"public int nextIndexOf(Type type){\n Token token;\n int tempCurrentToken = currentToken, result;\n \n nextTokenOf(type);\n result = currentToken;\n currentToken = tempCurrentToken;\n return result;\n }",
"public static JdbcTypeType get(int value) {\r\n\t\tswitch (value) {\r\n\t\t\tcase _1: return _1_LITERAL;\r\n\t\t\tcase _2: return _2_LITERAL;\r\n\t\t\tcase _3: return _3_LITERAL;\r\n\t\t\tcase _4: return _4_LITERAL;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public java.lang.Short getSipTokenType() {\r\n return sipTokenType;\r\n }",
"TokenlyBalancesType getType();",
"private Token basicNextNumberToken() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\twhile(currentIndex < data.length) {\n\t\t\t\t\n\t\t\tchar c = data[currentIndex];\n\t\t\tif(c >= '1' && c <= '9') {\n\t\t\t\tsb.append(c);\n\t\t\t\tcurrentIndex++;\n\t\t\t\t\t\n\t\t\t} else break;\t\n\t\t}\n\t\t\n\t\treturn new Token(TokenType.NUMBER, Long.parseLong(sb.toString()));\n\t }",
"private StdType stdtype() {\n String val;\n\n if ((lexer.token == Symbol.INTEGER) || (lexer.token == Symbol.REAL) || \n (lexer.token == Symbol.CHAR) || (lexer.token == Symbol.STRING)) {\n val = lexer.getStringValue();\n lexer.nextToken();\n return new StdType(val);\n }else{\n lexer.error(\"Missing Type\\n\");\n return null;\n }\n }",
"public int typeIndex();",
"TermType getTermType();",
"public int getTypeValue() {\n\t\t\treturn type_;\n\t\t}"
] |
[
"0.73551327",
"0.7170606",
"0.6946034",
"0.6916704",
"0.68653375",
"0.6648364",
"0.65874237",
"0.65100974",
"0.65071493",
"0.64814967",
"0.6435825",
"0.6420177",
"0.640126",
"0.61890656",
"0.6188854",
"0.6188854",
"0.6188854",
"0.6188854",
"0.6188854",
"0.6188854",
"0.6188854",
"0.6188854",
"0.6188854",
"0.6188854",
"0.6188854",
"0.6188854",
"0.6188854",
"0.6092604",
"0.598787",
"0.5979966",
"0.5971399",
"0.59150034",
"0.589937",
"0.5865305",
"0.58555806",
"0.5834799",
"0.578425",
"0.5739332",
"0.5710876",
"0.57079846",
"0.57071006",
"0.5704444",
"0.5704444",
"0.5704444",
"0.5704444",
"0.5704444",
"0.57017624",
"0.56880707",
"0.56780404",
"0.5668703",
"0.5644324",
"0.5644324",
"0.5644324",
"0.5644324",
"0.5644324",
"0.5644324",
"0.5644324",
"0.5644324",
"0.5625354",
"0.5604128",
"0.5604128",
"0.5604128",
"0.56001455",
"0.55995154",
"0.55993605",
"0.55840015",
"0.5579921",
"0.5570121",
"0.55521584",
"0.55521584",
"0.55521584",
"0.55521584",
"0.55521584",
"0.5535181",
"0.5535181",
"0.5535181",
"0.5535181",
"0.5535181",
"0.55342406",
"0.55219114",
"0.5518568",
"0.551342",
"0.5501443",
"0.5481868",
"0.5457389",
"0.5457389",
"0.5457389",
"0.5448637",
"0.5441272",
"0.5441272",
"0.54242384",
"0.5417716",
"0.5412215",
"0.5392449",
"0.5387281",
"0.53852016",
"0.5379772",
"0.53789514",
"0.53680074",
"0.53679043"
] |
0.5822108
|
36
|
Created by shuaizhihu on 2017/3/1.
|
@Component
public interface IDownloadService {
public boolean downLoad(DownloadContext context) throws CrawlerException, HttpProcessException;
//
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\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 public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n void init() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n }",
"@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\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"private void init() {\n\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@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 public void init() {\n\n }",
"public final void mo51373a() {\n }",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@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 getExras() {\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}",
"private void poetries() {\n\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}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"public void mo38117a() {\n }",
"@Override\n public void init() {}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n protected void init() {\n }",
"public void mo4359a() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"@Override\n public void initialize() {\n \n }",
"private void init() {\n\n\n\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n public void initialize() { \n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"public contrustor(){\r\n\t}",
"private void strin() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void einkaufen() {\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 public void init() {\n\n super.init();\n\n }",
"public void init(){\n \n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"Petunia() {\r\n\t\t}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"public void mo6081a() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}"
] |
[
"0.62093765",
"0.6143829",
"0.5912823",
"0.5896291",
"0.5889922",
"0.5889922",
"0.58614206",
"0.5861083",
"0.58435506",
"0.5824776",
"0.5813537",
"0.57725567",
"0.57604474",
"0.574948",
"0.5740098",
"0.5738866",
"0.57320094",
"0.57120985",
"0.5706609",
"0.5688772",
"0.56872916",
"0.5674805",
"0.5674805",
"0.56661135",
"0.5656482",
"0.5646764",
"0.56445044",
"0.5640987",
"0.5640987",
"0.5640987",
"0.5640987",
"0.5640987",
"0.5640987",
"0.5638204",
"0.5638204",
"0.5638204",
"0.5638204",
"0.5638204",
"0.5627239",
"0.5627239",
"0.56211954",
"0.5616835",
"0.56044143",
"0.5598153",
"0.55948305",
"0.55948305",
"0.55948305",
"0.5590855",
"0.558934",
"0.558934",
"0.558934",
"0.5580767",
"0.55656356",
"0.55656356",
"0.55656356",
"0.5555917",
"0.555383",
"0.55522877",
"0.5547707",
"0.55429286",
"0.55157644",
"0.5515074",
"0.5515074",
"0.5510344",
"0.5506434",
"0.55059236",
"0.54981107",
"0.54931486",
"0.5491998",
"0.5489583",
"0.54872495",
"0.54793584",
"0.5470021",
"0.5463993",
"0.5457822",
"0.5450974",
"0.5450586",
"0.5446021",
"0.54315007",
"0.5428176",
"0.542734",
"0.542734",
"0.542734",
"0.542734",
"0.542734",
"0.542734",
"0.542734",
"0.5420086",
"0.5419081",
"0.5417714",
"0.54111034",
"0.539858",
"0.5386214",
"0.5386214",
"0.5386214",
"0.53857464",
"0.5381812",
"0.5379491",
"0.5373784",
"0.5368338",
"0.5368338"
] |
0.0
|
-1
|
Create the usual class wrapper and main method on your own. Create a function called `factorio` that returns it's input's factorial
|
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Gimme a number: ");
int numo = scanner.nextInt();
System.out.println(factorio(numo));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Main() {\n\t\tSystem.out.println(factorial(5));\n\t}",
"public static void main(String args[])\n {\n Scanner input = new Scanner(System.in);\n //taking the number\n int num = input.nextInt();\n System.out.println(factorial(num));\n }",
"public static void main(String[] args) {\n Factorial factorial=new Factorial();\n int newnumber=factorial.Findfactorial(5);\n System.out.println(\"Factorial of 5 is : \"+newnumber);\n\n }",
"public static void main(String[] args) {\n\t\t\n\t\tint num=5;\n\t\tint fact=1;\n\t\tfor(int i=1;i<=num;i++)\n\t\t{\t \n\t\t fact=fact*i;\t\t\n\t\t}\t\t\n\t\tSystem.out.println(\"The factorial of \" + num + \" is \" + fact);\n\n\tfact obj=new fact();\n\tint a=obj.facto(num);\n\tSystem.out.println(\"The factorial of \" + num + \" is \" + a);\n}",
"public static void main(String[] args) {\n\t\tint num;long fact;\r\n\t\tSystem.out.println(\"enter number \");\r\n\t\tScanner s=new Scanner(System.in);\r\n\t\tnum=s.nextInt();\r\n\t\tQ6_factorial obj=new Q6_factorial();\r\n\t\tfact=obj.FirstFactorial(num);\r\n\t\tSystem.out.println(\"Factorial is: \"+fact);\r\n\t}",
"static void factorial(){\n\t}",
"public static void main(String[] args) {\n\t\tFactorialusingrecursion f=new Factorialusingrecursion();\n\t\tScanner input=new Scanner(System.in);\n\t\tSystem.out.println(\"enter the number to get the factorial:\");\n\t\tint a=input.nextInt();\n\t\tint ans=factorial(a);\n\t\tif(ans>=1){\n\t\tSystem.out.println(\"The factorial of\"+\" \"+a+\" \"+\"is\"+\" \"+ans);\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"please write correct number\");\n\t\t}\n\t\t\n\t\t\t\t\n\n\t}",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"enter the input:\");\n\t\tint num = scan.nextInt();\n\t\tSystem.out.println(\"factorial of a given number is :\" + Factorial(num));\n\t\tscan.close();\n\t}",
"public static void main(String[] args) {\n\t\tFactorial d=new Factorial();\r\n\t}",
"public static void main(String[] args) \r\n\t{\r\n\t\t\t\t\r\n\t\tFactorial F = new Factorial ();\r\n\t\tF.NonRecursion();\r\n\t\t\r\n\t\tF.fact( 5);\r\n\t\t\r\n\r\n\t}",
"public static void main(String[] args) {\n System.out.println(getFactorial(0));\n\n }",
"@Test\r\n\tpublic void test01_fact() {\r\n\t\tRecursiveMethods rm = new RecursiveMethods();\r\n\t\tassertEquals(1, rm.factorial(0));\r\n\t\tassertEquals(1, rm.factorial(1));\r\n\t\tassertEquals(2, rm.factorial(2));\r\n\t\tassertEquals(6, rm.factorial(3));\r\n\t\tassertEquals(24, rm.factorial(4));\r\n\t\tassertEquals(120, rm.factorial(5));\r\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Welcome, here you can calculate the factorial of a number.\");\n\t\tnb = userInputInt(\"What is your number ?\");\n\t\tSystem.out.println(\"the factorial of \" + nb + \" is : \" + calculFactorial(nb) + \".\");\n\t}",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n\n int number = in.nextInt();\n int i, fact = 1;\n\n for(i = 1; i <= number; i++){\n fact = fact * i;\n }\n\n System.out.println(\"Factorial of \" + number + \" is: \" + fact);\n }",
"public static void main(String[] args) {\n int res = factorial(5);\n System.out.println(res);\n }",
"public static void main(String[] args) {\n\t\t\t\tSystem.out.println(\" Factorial :\"+factorial(4));\np();\n}",
"public long getFactorial() \r\n\t// method body, part of method declaration after the method header\r\n\t{ \r\n\t\treturn factorial;\r\n\t}",
"public static void main(String[] args) {\n\n System.out.println(factorial(5));\n\n }",
"public static void main(String[] args) {\n\n int targetFacNum = 4;\n System.out.println(targetFacNum + \" factorial result: \");\n System.out.print(fac(targetFacNum));\n }",
"public static void main(String[] args) {\n\t\tint num =5;\n\t\tAssignment4_Q7 as = new Assignment4_Q7();\n\t\tint output = as.factorial(num);\n\t\tSystem.out.println(output);\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"enter a number: \");\n\t\t\n\t\tint n = 10; //scan.nextInt();\n\t\tint fact=1;\n\t\tint i=1;\n\t\twhile(i<=n) {\n\t\t\t\n\t\t\tfact = fact*i;\n\t\t\ti++;\n\t\t}\n\t\t\t\tSystem.out.println(\"factorial of \"+n+ \" is: \"+fact);\n\t\t\n\t\t//method2\n\t\tint fact1=1;\n\t\t\n\t\tfor(int k=1;k<=n;k++) {\n\t\t\tfact1 = fact1*k;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"factorial of \"+n+ \" is: \"+fact1);\n\t}",
"public static void main(String[] args)\n\t{\n\t\tSystem.out.println(factorial(5));\n\t\t\n\t}",
"public static void main(String[] args) {\n if(args.length != 1) {\n System.out.println(\"Incorrect number of arguments.\\nUsage java Factorial [number]\");\n }\n\n //Try to parse the number as an Integer\n int n = 0;\n try {\n n = Math.abs(Integer.parseInt(args[0]));\n } catch (Exception e) {\n //Couldn't pass number, exit\n System.out.println(\"Invalid integer as argument.\");\n return;\n }\n\n //Print factorial\n System.out.println(factorial(n));\n }",
"public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\r\n\t\tlong factorial = 1;\r\n\t\tint elec,x,y;\r\n\t\t\r\n\t\tSystem.out.println(\"menu \\r\\n\"\r\n\t\t\t\t+ \"1-suma \\r\\n\"\r\n\t\t\t\t+ \"2-resta \\r\\n\"\r\n\t\t\t\t+ \"3-multiplicar \\r\\n\"\r\n\t\t\t\t+ \"4-dividir \\r\\n\"\r\n\t\t\t\t+ \"5-factorial de tu numero\");\r\n\t\telec = input.nextInt();\r\n\t\tswitch(elec) {\r\n\t\tcase 1: \r\n\t\t\tSystem.out.println(\"Primer numero\");\r\n\t\t\tx = input.nextInt();\r\n\t\t\tSystem.out.println(\"Segundo numero\");\r\n\t\t\ty = input.nextInt();\r\n\t\t\tSystem.out.println(x+y);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"Primer numero\");\r\n\t\t\tx = input.nextInt();\r\n\t\t\tSystem.out.println(\"Segundo numeros\");\r\n\t\t\ty = input.nextInt();\r\n\t\t\tSystem.out.println(x-y);\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"Primer numero\");\r\n\t\t\tx = input.nextInt();\r\n\t\t\tSystem.out.println(\"Segundo numero\");\r\n\t\t\ty = input.nextInt();\r\n\t\t\tSystem.out.println(x*y);\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tSystem.out.println(\"Primer numero\");\r\n\t\t\tx = input.nextInt();\r\n\t\t\tSystem.out.println(\"Segundo numero\");\r\n\t\t\ty = input.nextInt();\r\n\t\t\tSystem.out.println(x/y);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tx = input.nextInt();\r\n\t\tfor (int i = x; i > 0; i--) {\r\n\t\t\tfactorial = factorial * i;\r\n\t\t}\r\n\t\tSystem.out.println(\"El factorial de \" + x + \" es: \" + factorial);\r\n\t}",
"public Factorial(int number) {\n\t\tthis.number = number;\n\t}",
"public static void main(String[] args) {\n int fact = 1; //Starting factorial\n for(int i = 1; i <= maxFactorial;i++) //Iterates over all desired factorials\n {\n fact = fact * (i); //Takes previous ( and starting) factorial and multiplies by current increment\n System.out.println(\"Factorial of \" + i + \" is \" +fact); //Prints output of each factorial\n }\n }",
"public static void main(String[] args) {\n\t\tint outcome = 0;\n\t\t\n\t\toutcome = factorial(5);\n System.out.println(outcome);\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.print(factorial(5));\n\n\t}",
"public static void main(String[] args) {\n CPI cpi = new CPI();\r\n cpi.entra(3);\r\n cpi.entra(6);\r\n cpi.entra(4);\r\n cpi.resta();\r\n cpi.multiplica();\r\n cpi.entra(5);\r\n cpi.suma();\r\n System.out.println(\"Resultado \" + cpi.getResultado ());\r\n }",
"public static void main(String args[]) {\r\n Factorial f = new Factorial();\r\n System.out.println(f.fact(5));\r\n \r\n /**\r\n * Recursive output of first n Elements\r\n */\r\n RecTest arr = new RecTest(10);\r\n arr.load(10);\r\n arr.printArray(10);\r\n }",
"public static void main(String[] args) {\n\r\n\r\n Scanner sc = new Scanner(System.in);\r\n System.out.println(\"Enter a number to find its factorial\");\r\n int n = sc.nextInt();\r\n\r\n for(int i = 1 ; i<=n; i++)\r\n {\r\n if(n % i ==0) {\r\n System.out.println(i + \" is factorial\");\r\n }\r\n }\r\n\r\n }",
"public static void main(String[] args) throws InterruptedException, ExecutionException {\n ExecutorService executorService = Executors.newSingleThreadExecutor();\n\n System.out.println(\"submitted callable task to calculate factorial of 10\");\n Future<Long> result10 = executorService.submit(new FactorialCalculator(10));\n\n System.out.println(\"submitted callable task to calculate factorial of 15\");\n Future<Long> result15 = executorService.submit(new FactorialCalculator(15));\n\n System.out.println(\"submitted callable task to calculate factorial of 20\");\n Future<Long> result20 = executorService.submit(new FactorialCalculator(20));\n\n System.out.println(\"Calling get method of FutureUsage to fetch result of factorial 10\");\n long factorialOf10 = result10.get();\n System.out.println(\"factorial of 10 is : \" + factorialOf10);\n\n System.out.println(\"Calling get method of FutureUsage to get result of factorial 15\");\n long factorialOf15 = result15.get();\n System.out.println(\"factorial of 15 is : \" + factorialOf15);\n\n System.out.println(\"Calling get method of FutureUsage to get result of factorial 20\");\n long factorialOf20 = result20.get();\n System.out.println(\"factorial of 20 is : \" + factorialOf20);\n }",
"public static void main(String[] args) {\n\n int num = 9;\n \n int factorialOf = factorial(num);\n System.out.println(\"factorialOf of \"+num+\": \" + factorialOf);\n\n factorialOf = factorialWithLoop(num);\n System.out.println(\"factorialWithLoop with \"+num+\": \" + factorialOf);\n\n int fibonacciOf = fibonacci(9);\n System.out.println(\"fibonacci of \"+num+\": \" + fibonacciOf);\n\n fibonacciOf = fibonacciWithLoop(num);\n System.out.println(\"fibonacciWithLoop of \"+num+\": \" + fibonacciOf);\n }",
"public static void main(String[] args) {\n\t\tint a=5,i,fact=1;\n\t\tfor(i=1;i<=a;i++)\n\t\t{\n\t\t\tfact=fact*i;\n\t\t}\n\t\tSystem.out.println(\"The factorial of given number 5 is : \"+fact);\n\t\t\n\t}",
"private static int factorial(int num) {\n /**\n * validation\n */\n if (num < 0) {\n throw new IllegalArgumentException(\"num is invalid\");\n }\n\n /**\n * base case\n */\n if (num == 0) {\n return 1;\n }\n\n /**\n * recursive case\n */\n\n return num * factorial(num - 1);\n }",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t // prompt for hints\n\t System.out.print(\"Enter a positive integer to calculate its factorial: \");\n\n\t try {\n\t \t// get the input as an integer\n\t \tint number = scanner.nextInt();\n\t \tif (number >= 0){\t \t\n\t\t \tBigInteger result = factorial(number);\n\t\t \t// prompt for the result\n\t\t \tSystem.out.println(String.format(\"The factorial of %d is %d\", number, result));\n\t \t} else {\n\t \t\tSystem.out.println(String.format(\"Input interger must be non-negative!\"));\n\t \t}\n\t }catch(InputMismatchException e){\n\t //executes when this exception occurs\n\t System.out.println(\"Input has to be an interger.\");\n\t }\n\t scanner.close();\n\t}",
"public static void main(String[] args) {\n\n System.out.println(fact(3));\n }",
"public static void main(String[] args) {\n long number = 100;\n System.out.println(sumOfDigitsByLooping(Count.factorialOf(number)));\n }",
"public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\tSystem.out.print(\"수? \");int n = sc.nextInt();\n\t\t\n\t\tif(n<0) break;\n\t\n\t\tSystem.out.printf(\"%d 팩토리얼값: %d\\n\\n\",n,factorial(n)); //call by value\n\t\t}\n\t\t\n\t\tSystem.out.println(\"종료\");\n\t\tsc.close();\n\n\t}",
"public static void main(String[] args) {\n\t\tCommonInterface<Integer> numericFunc = (n) -> {\n\t\t\tint result = 1;\n\t\t\tfor (int i = 1; i <= n; i++) {\n\t\t\t\tresult *= i;\n\t\t\t}\n\t\t\treturn result;\n\t\t};\n\t\tSystem.out.println(\"Factorial of 3 is: \" + numericFunc.func(3));\n\t\tSystem.out.println(\"Factorial of 5 is: \" + numericFunc.func(5));\n\t\tSystem.out.println(\"*********************************************************\");\n\n\t\t// String Reversal using Generic Functional Interface\n\t\tCommonInterface<String> stringFunc = (str) -> {\n\t\t\tString reverse = \"\";\n\t\t\tfor (int i = str.length() - 1; i >= 0; i--) {\n\t\t\t\treverse += str.charAt(i);\n\t\t\t}\n\t\t\treturn reverse;\n\t\t};\n\t\tSystem.out.println(\"The reverse of School is: \" + stringFunc.func(\"School\"));\n\t\tSystem.out.println(\"The reverse of Development is: \" + stringFunc.func(\"Development\"));\n\t\tSystem.out.println(\"*********************************************************\");\n\t}",
"public static int factorialiterativa(int n){\n if(n>0){\r\n factorialrecursiva(n-1);//LLAMO A LA RECURSIVA\r\n }else {\r\n return 1;\r\n }\r\nreturn factorialrecursiva(n-1);\r\n }",
"public static void main(String[] args) {\n\n System.out.println(\"Ingresar numero\");\n int numero = scanner.nextInt();\n long factorial = 1;\n\n int count = 1;\n\n while (count <= numero) {\n factorial = factorial * count;\n count++;\n }\n System.out.println(factorial);\n\n // for(incializacion; condicion; actualizacion) {\n // bloque de sentencias\n //}\n\n factorial = 1;\n for (int i = 1; i <= numero; i++) {\n factorial = factorial * i;\n }\n\n System.out.println(\"El factorial usando for es: \" + factorial);\n\n /* for(;;) {\n System.out.println(\"es valido, es un bucle infinito\");\n } */\n\n\n\n }",
"private long factorial(int i) {\n\t\t/*\n\t\t * if the number is greater than 1, then we continue\n\t\t * else we return our results\n\t\t */\n\t\tif(i > 1)\n\t\t\treturn factorial(i -1) * i;\n\t\treturn i;\n\t}",
"public void FactorialNumber() \r\n\t{\r\n\t\tint i,factNum=1,number;\r\n\t\tSystem.out.println(\"Enter a number\"); \r\n\t\tnumber=sc.nextInt(); //Read the number to calculate factorial\r\n\t\t\r\n\t\tfor(i=1;i<=number;i++)\r\n\t\t{\r\n\t\t\tfactNum = factNum*i;\r\n\t\t}\r\n\t\tSystem.out.println(+factNum);\r\n\t\t\r\n\t}",
"static int matterOfFactorial(int fa) {\n int outcome;\n if(fa == 1) {\n return 1;\n }\n else {\n outcome = matterOfFactorial(fa - 1) * fa;\n return outcome;\n }\n }",
"public static void main (String[] args){\n\t\tSystem.out.println(fib(5));\n\t\tSystem.out.println(\"**************\");\n\t\tSystem.out.println(fact(6));\n\t\t\n\t\t// factorial 1!=1\n\t\t//2!=2\n\t\t//3!=3*2*1=6\n\t\t//4!=4*3*2*1=24\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tMagicCalculator magic = new MagicCalculator();\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Pick a number\");\n\t\tint number = Integer.parseInt(input.nextLine());\n\t\tSystem.out.println(\"Pick another number\");\n\t\tint number2 = Integer.parseInt(input.nextLine());\n\t\tinput.close();\n\t\t\n\t\t//Uses classes inherited from parent class Calculator\n\t\tmagic.Add(number, number2);\n\t\tmagic.Subtract(number, number2);\n\t\tmagic.Multiplication(number, number2);\n\t\tmagic.Division(number, number2);\n\t\t\n\t\tmagic.SquareRoot(number);\n\t\tmagic.SquareRoot(number2);\n\t\t\n\t\t//Uses its own classes\n\t\tmagic.FindSine(number, number2);\n\t\tmagic.FindCosine(number, number2);\n\t\tmagic.FindTangent(number, number2);\n\t\t\n\t\tmagic.FindFactorial(number);\n\t\t//magic.FindFactorial(number2);\n\t\t\n\t\t\n\t}",
"public int factorial(int num) \n {\n number = num;\n f=1;\n for(i=1; i<=number; i++)\n {\n f=f*i;\n }\n return f;\n }",
"public static void m5(String[] args) {\n int number = 6;\r\n int fact = 1;\r\n for(int i = 1; i <= number; i++)\r\n {\r\n fact = fact * i;\r\n System.out.println(\"n=\"+fact);\r\n main2.gen(fact);\r\n \r\n }\r\n System.out.println(\"Factorial of \"+number+\" is: \"+fact);\r\n }",
"public void factorialNumber(int fact){\n int i = 1;\n long factorial = 1;\n while(i <= fact)\n {\n factorial *= i;\n i++;\n System.out.print(factorial+\" \");\n }\n System.out.println();\n System.out.printf(\"Factorial of %d = %d\", fact, factorial);\n }",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num, num1,num2;\n\t\tSystem.out.println(\"Eliga una opcion\");\n\t\tSystem.out.println(\"1.Primera opcion suma de dos numeros \");\n\t\tSystem.out.println(\"2.Segunda opcion resta de dos numeros\");\n\t\tSystem.out.println(\"3.Tercera opcion multiplicar dos numeros\");\n\t\tSystem.out.println(\"4.Cuarta opcion divison de dos numeros\");\n\t\tSystem.out.println(\"5.Quinta opcion factorial de un numero\");\n\n\t\tnum=sc.nextInt();\n\t\tif (num==1){\n\t\t\tSystem.out.println(\"Introduzca un numero\");\n\t\t\tnum1=sc.nextInt();\n\t\t\tSystem.out.println(\"Introduzca otro numero\");\n\t\t\tnum2=sc.nextInt();\n\t\t\tsuma(num,num1,num2);\n\t\n\t\t}\n\t\tif (num==2) {\n\t\t\tSystem.out.println(\"Introduzca un numero\");\n\t\t\tnum1=sc.nextInt();\n\t\t\tSystem.out.println(\"Introduzca otro numero\");\n\t\t\tnum2=sc.nextInt();\n\t\t\tresta(num,num1,num2);\n\t\t\t\n\t\t}\n\t\tif (num==3) {\n\t\t\tSystem.out.println(\"Introduzca un numero\");\n\t\t\tnum1=sc.nextInt();\n\t\t\tSystem.out.println(\"Introduzca otro numero\");\n\t\t\tnum2=sc.nextInt();\n\t\t\tmultiplicacion(num,num1,num2);\n\t\t\t\n\t}\n\t\tif (num==4) {\n\t\t\tSystem.out.println(\"Introduzca un numero\");\n\t\t\tnum1=sc.nextInt();\n\t\t\tSystem.out.println(\"Introduzca otro numero\");\n\t\t\tnum2=sc.nextInt();\n\t\t\tdivision(num,num1,num2);\n\t}\n\t\tif (num==5) {\n\t\t\tSystem.out.println(\"Introduzca un numero\");\n\t\t\tnum1=sc.nextInt();\n\t\t\tfactorial(num1);\n\t\t\t\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tScanner obj = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter a number\");\r\n\t\tint num =obj.nextInt();\r\n\t\tint fact = 1;\r\n\t\t\r\n\t\tfor(int i= num; i>=1; i--){\r\n\t\t fact *= i;\r\n\t\t }\r\n\t\tSystem.out.println(fact);\r\n\r\n\t}",
"public long factorial(int num){\r\n long f=1;\r\n for(int i=1;i<=num;i++)\r\n f=f*i;\r\n \r\n if(num>=1) return f;\r\n else if(num==0)return 1;\r\n \r\n return 1;\r\n }",
"private static int factorial(int n) {\n if (n == 1 || n == 0)\n return 1;\n else\n return n * factorial(n - 1);\n }",
"@Test\n public void testFactorialValid()\n {\n driver.findElement(By.linkText(\"Factorial\")).click();\n driver.findElement(By.name(\"value\")).sendKeys(\"7\");\n WebElement submit = driver.findElement(By.cssSelector(\"input\"));\n submit.sendKeys(Keys.RETURN);\n WebElement e = driver.findElement(By.className(\"jumbotron\"));\n String s1 = e.getText();\n assertTrue(s1.contains(\"5040\"));\n //NKD: Would prefer for this to be calculated by some function, rather than a magic number\n //However, java.lang.Math doesn't have fibonacci or factorial functions AFAIK\n }",
"public static void main(String[] args) {\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Informe qual inteiro deseja calcular a fatorial\");\r\n\t\tint n = input.nextInt();\r\n\t\tinput.close();\t\t//Fechando o scanner\r\n\t\t\r\n\t\tint fatorial = new calculaFatorial().fatorial(n);\t//chamando a classe do enunciado\r\n\t\t\r\n\t\tif (fatorial == -1) {\r\n\t\t\tSystem.out.println(\"Esta entrada não possui fatorial\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"O fatorial de \" + n + \" é \" + fatorial);\r\n\t}",
"int factorial(int n){\n return (n==1||n==0)?1: n*factorial(n-1);\n }",
"public static void main(String[] args) {\n\t\tint number = Integer.parseInt(args[0]);\n\t\tint factorial =1;\n\t\tint i;\n\t\t\n\t\tif(number > 1) {\n\t\t\tfor (i=1 ; i<= number; i++) {\n\t\t\t\tfactorial = factorial * i;\n\t\t\t}\n\t\t\tSystem.out.println(factorial);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Number must be upper 1\");\n\t\t}\n\t\t\n\t\t/* \n\t\t int factorial = number;\n\t\t \n\t\t for(i = number-1, i>1; i--) {\n\t\t \tfactorial*=i;\n\t\t }\n\t\t System.out.println(factorial);\n\t\t * */\n\t\t\n\t}",
"private static int factorial(int n) {\n if (n <= 0) {\n return 1;\n }\n\n return n * factorial(n - 1);\n }",
"public static int factorial(int i){\r\n\r\n\t\tif (i == 1){\r\n\t\t\treturn 1;\r\n\t\t}\t\r\n\r\n\t\tif (i >= 1){\r\n\t\t\treturn i*factorial(i-1);\r\n\t\t}\r\n\r\n\t\treturn 0;\r\n\t}",
"public static String factorial() {\n Scanner scanner = new Scanner(System.in);\n\n boolean userAgain = true;\n\n do {\n System.out.println(\"Enter a number from 1 to 59\");\n String userInput = scanner.nextLine();\n long userNum = Integer.parseInt(userInput);\n long fact = 1;\n System.out.printf(\"%s! = \", userInput);\n for (int i = 1; i <= userNum; i++) {\n fact *= i;\n if (i < userNum) {\n System.out.printf(\"%d X \", i);\n } else if (i >= userNum) {\n System.out.printf(\"%d \\t = \", i);\n }\n }\n System.out.println(fact);\n System.out.println(\"Do you want to enter another number? y/n: \");\n String yesOrNo = scanner.nextLine();\n if (yesOrNo.equals(\"n\")) {\n userAgain = false;\n }\n } while (userAgain);\n return \"Goodbye.\";\n }",
"public static long factorial(int[] mainArray) {\r\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\r\n\t\t//input\r\n\t\tSystem.out.println(\"Enter an integer: \");\r\n\t\tint integer = sc.nextInt();\r\n\r\n\t\t//variables\r\n\t\tlong factorialData = integer * (integer - 1);\r\n\r\n\t\t//loop to determine the factorial\r\n\t\tfor(int counter = integer - 2; counter != 1; counter--) {\r\n\t\t\tfactorialData = factorialData * counter;\r\n\t\t}\r\n\t\treturn factorialData;\r\n\t}",
"public static void main(String[] args) {\n Curier cr= new Curier();\n // cr.sum(20, 20);\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tFibonocciseries fibObj=new Fibonocciseries();\n\t\tList<Integer> value = fibObj.fibmeth(21);\n\t\tSystem.out.println(value.toString());\n\t\t\t\n\t\tCharacterCount charCountObj=new CharacterCount();\n\t\tString[] xyz = { \"a\",\"b\",\"a\",\"c\",\"b\",\"c\",\"b\"};\n\t\tList<Integer> result1 = charCountObj.charCount(xyz);\n\t\tSystem.out.println(result1.toString());\n\t\t\n\t\t\n\t\tFizzBuzzPgm fizzBuzzObj=new FizzBuzzPgm();\n\t\tint[] Fizzbuzzvalues = {10,3,5,15};\n\t\tList<String> fzzBuzzReuslt = fizzBuzzObj.fizzBuzzMethod(Fizzbuzzvalues);\n\t\t\n\t\tDuplicateString duplicateObj=new DuplicateString();\n\t\tString[] DuplicateValues= {\"abc\",\"mno\",\"xyz\",\"pqr\",\"xyz\",\"def\",\"mno\"};\n\t\tList<String> DuplicateResult=duplicateObj.DuplicateMethod(DuplicateValues);\n\t\tSystem.out.println(DuplicateResult.toString());\n\t\t\n\t\tPalindromePgm PalindromeObj=new PalindromePgm();\n\t\tList<String> PalindromeResult=PalindromeObj.PalindromeMethod(24);\n\t\tSystem.out.println(PalindromeResult.toString());\n\t\t\n\t\tCalculatorPgm addVal = new CalculatorPgm();\n\t\tint resultAdd = addVal.add(20,10);\n\t\tSystem.out.println(\"Calc prgm add output=\"+resultAdd);\n\t\t\n\t\tCalculatorPgm subVal = new CalculatorPgm();\n\t\tint resultsub = subVal.add(300,10);\n\t\tSystem.out.println(\"Calc prgm sub output=\"+resultsub);\n\t\t\n\t\tCalculatorPgm divVal = new CalculatorPgm();\n\t\tint resultdiv = divVal.add(400,10);\n\t\tSystem.out.println(\"Calc prgm div output=\"+resultdiv);\n\t\t\n\t\t\n\t\t\n\n\t}",
"public static void main(String[] args) {\r\n\t // Usamos un método genérico para instanciar la factoría por defecto.\r\n\t // La factoría estará definida en la configuración\r\n\t IMotorFactory factoria = MotorFactory.obtenerFactoria();\r\n\t \r\n\t // Instanciamos un motor a través de la factoría.\r\n\t // Fijémonos que únicamente tratamos con interfaces. En ningún momento\r\n\t // concretamos la clase con la que estamos trabajando\r\n\t IMotor motor = factoria.createInstance();\r\n\t \r\n\t // Finalmente, hacemos uso del motor a través de los métodos de la\r\n\t // interfaz IMotor.\r\n\t System.out.println(motor.inyectarCombustible(20));\r\n\t System.out.println(motor.consumirCombustible());\r\n\t System.out.println(motor.realizarExpansion());\r\n\t System.out.println(motor.realizarEscape());\r\n\t System.out.println();\r\n\t}",
"@Test\n public void testFactorialMin()\n {\n driver.findElement(By.linkText(\"Factorial\")).click();\n driver.findElement(By.name(\"value\")).sendKeys(\"1\");\n WebElement submit = driver.findElement(By.cssSelector(\"input\"));\n submit.sendKeys(Keys.RETURN);\n WebElement e = driver.findElement(By.className(\"jumbotron\"));\n String s1 = e.getText();\n assertTrue(s1.contains(\"1\"));\n //NKD: Would prefer for this to be calculated by some function, rather than a magic number\n //However, java.lang.Math doesn't have fibonacci or factorial functions AFAIK\n }",
"public static long factorial(int num)\n {\n if (num >= 1) {\n System.out.println(\"before num = \" + num);\n return factorial(num - 1) * num;\n\n }\n else\n return 1;\n }",
"public static void main(String[] args) {\n\t\tScanner input1 = new Scanner (System.in);\n\n\t\tSystem.out.println (\"Enter a number\");\n\n\t\tint a = input1.nextInt();\n\t\t\n\t\t// variável para ser utilizada no ciclo\n\t\tint b = a;\n\t\t\n\t\tint factorialDigit = 0;\n\t\tint factorialValue = 1;\n\t\t\n\t\t// ciclo para retirar um digito de cada vez e multiplica-lo pelo próximo\n\t\twhile (b > 0){\n\t\t\tfactorialDigit = b;\n\t\t\tfactorialValue = factorialDigit * factorialValue;\n\t\t\tb-=1;\n\t\t}\n\t\t\n\t\tSystem.out.println (a + \"!\" + \" = \" + factorialValue);\t\n\t\t\n\t}",
"public static void main(String[] args) {\nSystem.out.println(Math.PI); // pi es un atributo estatico de la clase math por lo que no requiere ser instanciado\nSystem.out.println(Math.max(200, 500)); // el metodo math.max retorna el valor mas alto de entre dos valores\n\n// paquetes \n// un paquete nos permite organizar un frupo de clases que se relacionan entre si\n// resuelven la problematica de conflicto de nombres\n// nos permiten establecer privilegios de acceso\n\n// paquetes\n// para nombrar paquetes seguiremos estas reglas\n// utilizaremos unicamente letras minusculas\n// separar con puntos\n// utilizaremos nuestro dominio o nombre al reves ex. duranalejandro\n// pondremos al final el contexto del paquete, bajo el cual agruparemos las clases\n// cada punto definira una carpeta, por eso es que es al reves\n// duran.alejandro.notasvarias\n// para hacer una carpeta en alejandro lo hariamos de esta manera\n// duran.alejandro.notasvarias2(nueva carpeta) y estaria en la misma carpeta que notasvarias \n\n// ejemplo del uso de import para la instancia de un objeto de la clase importada y el uso de sus metodos\nJava java = new Java ();\nSystem.out.println(java.getTitulo());\n\n// java lang\ndouble resultado = Math.sqrt(25);\nString mensaje = \"Resultado \" + resultado;\nSystem.out.println(mensaje);\n// las clases en el paquete java lang podran usarse sin el metodo import\n\n// protected\nJava java2 = new Java ();\nSystem.out.println(java.getTitulo());\n// nuestro metodo .getTitulo es publico actualmente, si lo cambiamos a default o protected\n// clases de otros paquetes no podran hacer uso de esos metodos, a pesar de que se utilice import\n// default o protected limitaran el acceso a clases que sean unicamente del mismo paquete\n\n\n\n\n\n\n\n\n\n\n\n }",
"public static void main(String[] args) {\n\t\t\n\t\tint sum=0;\n\t\t\n\t\tfor(int num=10; num>0; num--) {\n\t\t\tsum +=num;\n\t\t\n\t\t}\n\t\tSystem.out.println(sum);\n\t\t\n int factorial=1;\n\t\t\n\t\tfor(int num=5; num>0; --num) { // num--\n\t\tfactorial *=num;\n\t\t\n\t\t}\n\t\tSystem.out.println(factorial);\n\t\t\n\t\t//Factorial number -> 5! -> 5*4*3*2*1 -> factorial of 5\n\t}",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\r\n Function c = new Function();\r\n //System.out.print(c.PrimeMover(s.nextLine()));\r\n System.out.print(c.PrimeMover(16));\r\n }",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tif(sc.hasNext())\r\n\t\t{\r\n\t\t\tint dig=sc.nextInt();\r\n\t\t\tif(dig<0)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Factorial not defined for negative numbers\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\tSystem.out.println(factorial(dig));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public void run() {\n BigInteger answer = BigInteger.valueOf(0);\n String stringInt;\n List<Integer> list = new ArrayList<Integer>();\n int sum = 0;\n\n answer = MathFunctions.numberFactorial(100);\n\n stringInt = answer.toString();\n\n\n\n list = MathFunctions.addStringToArray(stringInt);\n\n for (int i = 0; i < list.size(); i++)\n sum += list.get(i);\n\n this.answer = sum;\n }",
"private static Long calculFactorial(Long number) {\n\t\tif (number > 1) {\n\t\t\treturn number * calculFactorial(number - 1);\n\t\t} else {\n\t\t\treturn 1L;\n\t\t}\n\t}",
"public static long factorial(int num){\n\n if(num < 0){\n throw new UnsupportedOperationException(Util.NEGATIVE_MESSAGE);\n }\n long result = 1;\n\n if(num == 0)\n return result;\n\n else{\n while(num > 0){\n result = result * num ;\n num --;\n }\n }\n\n return result;\n }",
"public static long factorialUsingRecursion (int num){\n\n if(num < 0){\n throw new UnsupportedOperationException(Util.NEGATIVE_MESSAGE);\n }\n\n if(num == 0)\n return 1;\n\n return num*factorialUsingRecursion(num-1);\n\n }",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner (System.in);\n\t\t\n\t\t\n\t\tint a = 1;\n\t\tint b = 1;\n\t\tint num;\n\t\t\n\t\t\n System.out.println(\"Digite el numero del que desea obtener el factorial: \");\n\t\t\n\t\tnum = sc.nextInt();\n\t\t\n\t\twhile (b <= num) {\n\t\t\t\n\t\t\tif (b <= num) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(b + \" * \");\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tSystem.out.println(num);\n\t\t\t}\n\t\t\t\n\t\t\ta = b * a;\n\t\t\t\n\t\t\tif (b == num ) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\" = \" + a);\n\t\t\t}\n\t\t\t\n\t\t\tb ++;\n\t\t\t\n\t\t\tsc.close();\n\t\t\t \n\t\t}\n\n\t\t\n\t}",
"public static Inatnum factorial(int n) throws Exception{\n Inatnum res = new zeronatnum().succ(); // we need to initialize res which is set as a nonzero natural number\n Inatnum dis = new zeronatnum(); for(int i=n;i>=1;i--) {dis=dis.succ();} // dis is initialized as a new non zero natural number and \n Inatnum res1 = res; Inatnum dis1 = dis; //new versions of res and dis are initiated\n while(dis1.getVal()>0) { \n res1 = res1.multiply(dis1); dis1=dis1.pred();\n }Inatnum newone = new zeronatnum(); \n while(newone.getVal()!= res1.getVal()) {\n newone = newone.succ(); // initiated newone which is the successor of newone\n }return newone; // returns newone once the loop ends\n }",
"public Integer factorial(Integer number){\n int result = 1;\n for (int i =1;i<=number;i++)\n {\n result *= i;\n }\n return result;\n }",
"public static void main(String[] args) {\n \n Ejemplo1 func=new Ejemplo1();\n Scanner sc=new Scanner(System.in);\n System.out.println(\"Primer Numero\");\n int n1=sc.nextInt();\n System.out.println(\"Segundo Numero\");\n int n2=sc.nextInt();\n \n func.sumaP(n1, n2);\n \n // Funciones Metodos e instancias Estudair concepto en java \n \n \n /*func.suma();\n func.resta();\n func.multiplicacion();\n func.sumaP(7, 10); */\n }",
"protected abstract void calculateNextFactor();",
"@Test\n /**\n * we can write a comment indicating a test's function or make its name descriptive\n */\n public void factorialOf0ShouldReturn1() {\n // longs can store more bits (64) than int (32)\n long expectedValue = 1;\n long obtainedValue = factorial.compute(0);\n\n assertEquals(expectedValue, obtainedValue);\n\n }",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\r\n RecursionProblem user = new RecursionProblem();\r\n System.out.println(\"Welcome to Jonard's factorial program!\");\r\n// This is NOT the calculation. This is only just checking to see if the user types a valid NUMBER, no letters or special characters\r\n String base = \"\";\r\n String exponent = \"\";\r\n int baseNum = 0;\r\n int expoNum = 0;\r\n // This is the prompt for both base and exponents\r\n System.out.println(\"Please type any number. This number will be the base.\\n\");\r\n base = input.nextLine();\r\n System.out.println(\"Now for the exponent. Pick a number for the exponent\\n\");\r\n exponent = input.nextLine();\r\n// THE USER BETTER ENTER AN INTEGER, NO SPECIAL CHARACTERS. IF SO, IT WILL REPEAT AND LOOP AND LOOP AND LOOP AND LOOP.\r\n while(true){\r\n try\r\n { // If the number cannot concantenate into an integer, the user did NOT type a number\r\n baseNum = Integer.parseInt(base);\r\n expoNum = Integer.parseInt(exponent);\r\n break;\r\n }\r\n catch(NumberFormatException e)\r\n {\r\n System.out.println(\"ERROR! Please type a base and exponent as NUMBERS\");\r\n base = input.nextLine();\r\n exponent = input.nextLine();\r\n\r\n }\r\n }\r\n int startTime = 0;\r\n int endTime = 0;\r\n int timeOne = 0;\r\n int timeTwo = 0;\r\n\r\n//Now I am running the code and comparing the length it took in nanoseconds\r\n//I first have to time it before AND after the method begins to get the time it took for the method to finish\r\n startTime = (int)System.nanoTime();\r\n System.out.println(user.rpow(baseNum,expoNum));\r\n endTime = (int)System.nanoTime();\r\n timeOne = endTime - startTime;\r\n System.out.println(\"The time it took for the first method to run is \" + timeOne + \" in nanoseconds\");\r\n startTime = (int)System.nanoTime();\r\n System.out.println(user.rpow2(baseNum,expoNum));\r\n endTime = (int)System.nanoTime();\r\n timeTwo = endTime - startTime;\r\n System.out.println(\"The time it took for the second method to run is \" + timeOne + \" in nanoseconds\");\r\n\r\n System.out.println(\"The time difference is \" + (timeTwo-timeOne));\r\n\r\n\r\n\r\n// LAST PART\r\n// WERE GONNA TEST THE ODDEVENFACT FUNCTION FOR BOTH\r\n// ODD AND EVEN NUMBERS\r\n System.out.println(\"5! factorial is \" + user.oddevenfact(5));\r\n System.out.println(\"6! factorial is \" + user.oddevenfact(6));\r\n }",
"static int factorial(int n, int c, int d) \n { \n System.out.println(\"Parameter added: \" + c + d);\n int res = 1, i; \n for (i=2; i<=n; i++) \n res *= i; \n return res; \n }",
"public static void main(String[] args) throws IOException {\n int target = 974;\n ArrayList<Integer> factors = new ArrayList<>();\n\n\n for (int i = 1; i <= target; i++) {\n if (target % i == 0) {\n factors.add(i);\n }\n }\n\n int total = 0;\n for (int factor : factors) {\n total += factor;\n }\n\n\n\n System.out.println(\"Result: \" + total);\n System.out.println(\"Done!\");\n }",
"private static BigInteger getFactorial(int n) {\n BigInteger fact = BigInteger.ONE;\n for (int i = n; i > 1; i--) {\n fact = fact.multiply(new BigInteger(Integer.toString(i)));\n }\n return fact;\n }",
"private int factorialUsingStreams(int n) {\r\n return IntStream.rangeClosed(1, n).reduce(1, (int x, int y) -> x * y);\r\n }",
"public static void main(String[] args) {\nAddNumbers a=new AddNumbers();\r\na.getInput();\r\na.addNumbers();\r\nint output=a.addNumbers();\r\nSystem.out.println(\"OUTPUT:\");\r\nSystem.out.println(\"The addition of n numbers is: \"+output);\r\n\t}",
"private double factorial(int n) {\n if (n < 0 || n > 32) {\n return -1;\n }\n return factorials[n];\n }",
"@Test\n public void nthFactorialOne() throws Exception {\n assertEquals(1,Factorial.nthFactorial(1));\n }",
"public static void main(String[] args) {\n \n\t\tcalculatior input=new calculatior();\n\tSystem.out.println(input.div(15, 3));\t\n\t\t\n\t}",
"public static int factorial(int n){\n if(n <= 1){\n return 1;\n }\n else{\n return n*factorial(n-1);\n }\n }",
"public Integer factorial(Integer number){\n int fact = 1;\n for (int i = number; i > 0; i--){\n fact *=i;\n }\n return fact;\n }",
"public static void main(String[] args){\n Progression prog;\n\n // testing the Arthimetic Progression subClass\n // modify the progression object to desired parameters\n System.out.println(\"Arithmetic progression with default increment: \");\n prog = new ArithmeticProgression();\n prog.printProgression(10);\n\n System.out.println(\"Arithmetic progression with a default increment of 5: \");\n prog = new ArithmeticProgression(5);\n prog.printProgression(10);\n System.out.println();\n\n // testing the Geometric\n System.out.println(\"Geometric Progression with default base: \");\n prog = new GeometricProgression();\n prog.printProgression(10);\n System.out.println(\"Geometric Progression with base 3: \");\n prog = new GeometricProgression(3);\n prog.printProgression(10);\n System.out.println();\n\n // testing Fibonacci Progression sequence\n System.out.println(\"Fibonacci Progression with default starting values: \");\n prog = new fibonacciProgression();\n prog.printProgression(10);\n\n System.out.println(\"Fibonacci Progression with starting values of 4 and 6\");\n prog = new fibonacciProgression(4,6);\n prog.printProgression(10);\n System.out.println();\n\n\n\n }",
"public static void main(String[] args) {\nint N,i,fac=1;\nScanner fn=new Scanner(System.in);\nN =fn.nextInt();\nif(N<=20) {\n\tfor(i=N;i>=1;i--) {\n\t\tfac=fac*i;\n\t}\n}\nSystem.out.println(fac);\n\t}",
"public static double factorial(int fact) {\r\n\t\t\t\r\n\t\t\tdouble aux=1;\r\n\t\t\t\r\n\t\t\tfor(int i=2; i<=fact;i++) {\r\n\t\t\t\t\r\n\t\t\t\taux*=i;\r\n\t\t\t}\r\n\t\t\treturn aux;\r\n\t\t}",
"public static void main(String[] args) {\n FunctionInJava obj=new FunctionInJava();\n //one object will be created , obj is references variable, referring to this object\n//after creating the object,the copy of the all non static methods will be give the to this object\n obj.test();\n int l=obj.pqr();\n System.out.println(l);\n String s1=obj.qa();\n System.out.println(s1);\n int div=obj.division(30,10);\n System.out.println(div);\n// main method void, never return the value\n }",
"public static void main(String[] args) {\r\n // create a scanner for user input\r\n Scanner input = new Scanner(System.in);\r\n\r\n // declare integer variable\r\n int posInt;\r\n \r\n // only allows user to enter positive integer\r\n do{\r\n // ask the user for a postivie integer\r\n System.out.println(\"Please enter a positive integer to determine its factors:\");\r\n posInt = input.nextInt();\r\n } while(posInt <= 0);\r\n\r\n // declare and initilaize counting variable\r\n int count = 1;\r\n\r\n // declare factor variable\r\n int factor;\r\n\r\n // tell the user what the factors\r\n System.out.println(\"The factors of \" + posInt + \" are:\");\r\n\r\n // goes through all values up to integer to check for factors\r\n while(count <= posInt){\r\n if( posInt%count == 0){\r\n // division to solve for factors\r\n factor = posInt/count;\r\n // prints to the user the factors\r\n System.out.println(count);\r\n }\r\n // moves up one number and loop repeats unless greater than posInt\r\n count = count + 1;\r\n }\r\n\r\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Adding: 10+20 = \" + Calculator.add(10, 20));\n\t\tSystem.out.println(\"Subtracting: 20-10 = \" + Calculator.subtract(20, 10));\n\t\tSystem.out.println(\"Multiplying: 2*10 = \"+ Calculator.multiply(2, 10));\n\t\tSystem.out.println(\"Dividing: 10 / 2 = \" + Calculator.divide(10, 2));\n\t\tSystem.out.println(\"Square root of 64 = \" + MagicCalculator.squareRoot(64));\n\t\tSystem.out.println(\"Sine of 0 = \" + MagicCalculator.sin(0));\n\t\tSystem.out.println(\"Cosine of 0 = \" + MagicCalculator.cos(0));\n\t\tSystem.out.println(\"Tangent of 0 = \" + MagicCalculator.tan(0));\n\t\tSystem.out.println(\"5! = \" + MagicCalculator.factorial(5));\n\t}",
"public static int factorial(int n) {\n int res = 0;\n if (n == 0) res = 1;\n if (n > 0) res = n*factorial(n-1);\n return res;\n }"
] |
[
"0.72416914",
"0.7157955",
"0.68486154",
"0.67616427",
"0.67130274",
"0.6623922",
"0.65747267",
"0.6572661",
"0.6571775",
"0.6539784",
"0.6473267",
"0.6447812",
"0.63403004",
"0.6304605",
"0.6275693",
"0.62656164",
"0.62266594",
"0.6222747",
"0.62170005",
"0.6199769",
"0.61224264",
"0.6093937",
"0.6076643",
"0.60473275",
"0.60472727",
"0.6006372",
"0.59791106",
"0.5947446",
"0.5942241",
"0.5938514",
"0.592578",
"0.5916412",
"0.5903451",
"0.5880866",
"0.58576035",
"0.5852661",
"0.5852551",
"0.5851391",
"0.5850184",
"0.58461446",
"0.5789776",
"0.5778498",
"0.57308143",
"0.5717747",
"0.56996274",
"0.56801724",
"0.567588",
"0.5654998",
"0.5642378",
"0.56373715",
"0.5621227",
"0.5621115",
"0.5607309",
"0.5589781",
"0.5570655",
"0.5557955",
"0.55561066",
"0.55360746",
"0.5533947",
"0.55321205",
"0.5531592",
"0.553072",
"0.55298644",
"0.5515517",
"0.5515129",
"0.5514245",
"0.55113167",
"0.55034924",
"0.54906416",
"0.5490194",
"0.548836",
"0.5484726",
"0.54804873",
"0.5468166",
"0.54658425",
"0.54633033",
"0.5457967",
"0.5457032",
"0.5452055",
"0.5437804",
"0.5433503",
"0.5423095",
"0.54208446",
"0.5403069",
"0.5401598",
"0.53889704",
"0.5388722",
"0.5378615",
"0.536981",
"0.53608114",
"0.53577554",
"0.53516376",
"0.5338192",
"0.5337261",
"0.5327709",
"0.53215075",
"0.5319636",
"0.5309152",
"0.5293562",
"0.52861255"
] |
0.6856347
|
2
|
Inflate the layout for this fragment
|
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_guia_hotelera, container, false);
expandableListView = (ExpandableListView) view.findViewById(R.id.expandableListView);
return view;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
] |
[
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
] |
0.0
|
-1
|
Toast.makeText(getActivity(),expandableListTitle.get(groupPosition) + " List Expanded.", Toast.LENGTH_SHORT).show();
|
@Override
public void onGroupExpand(int groupPosition) {
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public boolean onChildClick(ExpandableListView expandableListView, View view, int i, int i1, long l) {\n\n AlertDialog.Builder builder=new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(listDataHeader.get(i));\n builder.setMessage(listDataChild.get(listDataHeader.get(i)).get(i1));\n builder.setCancelable(true);\n builder.show();\n return false;\n }",
"@Override\r\n\t\t\t\t\tpublic void onGroupExpand(int groupPosition) {\n\t\t\t\t\t\tfor (int i = 0; i < expListAdapter.getGroupCount(); i++) {\r\n\r\n\t\t\t\t\t\t\tif (i != groupPosition) {\r\n\t\t\t\t\t\t\t\texpandablelistView.collapseGroup(i);\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n\n ExpandableListAdapter ExpandAdapter = new ExpandableListAdapter() {\n\n public TextView getTextParentView(){\n AbsListView.LayoutParams lp = new AbsListView.LayoutParams\n (ViewGroup.LayoutParams.FILL_PARENT, Constant.SCREE_MAX_Y/10);\n TextView textview = new TextView(HelpActivity.this);\n textview.setLayoutParams(lp);\n textview.setGravity(Gravity.CENTER_VERTICAL |Gravity.LEFT);\n textview.setPadding(100, 0, 0, 0);\n textview.setTextSize(20);\n\n textview.setTextColor(Color.BLACK);\n return textview;\n }\n public TextView getTextChileView(){\n AbsListView.LayoutParams lp = new AbsListView.LayoutParams\n (ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n TextView textview = new TextView(HelpActivity.this);\n textview.setLayoutParams(lp);\n textview.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT);\n textview.setPadding(35, 35, 35, 35);\n textview.setTextSize(17);\n\n return textview;\n }\n\n @Override\n public void unregisterDataSetObserver(DataSetObserver observer) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public void registerDataSetObserver(DataSetObserver observer) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public void onGroupExpanded(int groupPosition) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public void onGroupCollapsed(int groupPosition) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public boolean isEmpty() {\n // TODO Auto-generated method stub\n return false;\n }\n\n @Override\n public boolean isChildSelectable(int groupPosition, int childPosition) {\n // TODO Auto-generated method stub'\n\n return true;\n }\n\n @Override\n public boolean hasStableIds() {\n // TODO Auto-generated method stub\n return true;\n }\n\n\n\n @Override\n public View getGroupView(int groupPosition, boolean isExpanded,\n View convertView, ViewGroup parent) {\n // TODO Auto-generated method stub\n TextView GroupView=getTextParentView();\n GroupView.setText(getGroup(groupPosition).toString());\n return GroupView;\n }\n\n @Override\n public long getGroupId(int groupPosition) {\n // TODO Auto-generated method stub\n return groupPosition;\n }\n\n @Override\n public int getGroupCount() {\n // TODO Auto-generated method stub\n return Grade.length;\n }\n\n @Override\n public Object getGroup(int groupPosition) {\n // TODO Auto-generated method stub\n return Grade[groupPosition];\n }\n\n @Override\n public long getCombinedGroupId(long groupId) {\n // TODO Auto-generated method stub\n return 0;\n }\n\n @Override\n public long getCombinedChildId(long groupId, long childId) {\n // TODO Auto-generated method stub\n return 0;\n }\n\n @Override\n public int getChildrenCount(int groupPosition) {\n // TODO Auto-generated method stub\n return 1;\n }\n\n @Override\n public View getChildView(int groupPosition, int childPosition,\n boolean isLastChild, View convertView, ViewGroup parent) {\n // TODO Auto-generated method stub\n TextView ChildTextView = getTextChileView();\n ChildTextView.setText(getChild(groupPosition, childPosition).toString());\n return ChildTextView;\n }\n\n @Override\n public long getChildId(int groupPosition, int childPosition) {\n // TODO Auto-generated method stub\n return childPosition;\n }\n\n @Override\n public Object getChild(int groupPosition, int childPosition) {\n // TODO Auto-generated method stub\n return Lesson[groupPosition];\n }\n\n @Override\n public boolean areAllItemsEnabled() {\n // TODO Auto-generated method stub\n return false;\n }\n };\n\n setListAdapter(ExpandAdapter);\n\n }",
"@Override\n public void onShow() {\n mExpandableLinearLayout.expand();\n }",
"void onGroupExpanded(int groupPosition);",
"@Override\r\n public void onGroupExpand(int groupPosition) {\n }",
"@Override\n public void onGroupExpanded(int groupPosition) {\n\n }",
"@Override\n public void onGroupExpand(int groupPosition) {\n\n }",
"@Override\n public void onGroupExpand(int groupPosition) {\n }",
"@Override\n public void onGroupExpand(int groupPosition) {\n }",
"@Override\n public void onGroupExpand(int groupPosition) {\n }",
"protected void expandAll() {\n Activity a = getCurrentActivity();\n if (a instanceof SessionsExpandableListActivity) {\n SessionsExpandableListActivity sela = (SessionsExpandableListActivity) a;\n \n sela.expandAll();\n Log.i(\"expandAll()\", \"expanded!\");\n }\n \n \n // View view = mTabHost.getCurrentTabView();\n // Log.i(\"INFO: \", view.getClass().getName());\n \n \n }",
"@Override\n public boolean onChildClick(ExpandableListView parent, View v,\n int groupPosition, int childPosition, long id) {\n Toast.makeText(\n getApplicationContext(),\n listDataHeader.get(groupPosition)\n + \" : \"\n + listDataChild.get(\n listDataHeader.get(groupPosition)).get(\n childPosition), Toast.LENGTH_SHORT)\n .show();\n return false;\n }",
"@Override\n public boolean onChildClick(ExpandableListView parent, View v,\n int groupPosition, int childPosition, long id) {\n Toast.makeText(\n getApplicationContext(),\n listDataHeader.get(groupPosition)\n + \" : \"\n + listDataChild.get(\n listDataHeader.get(groupPosition)).get(\n childPosition), Toast.LENGTH_SHORT)\n .show();\n return false;\n }",
"@Override\n\t public View getGroupView(int groupPosition, boolean isExpanded,View convertView, ViewGroup parent) {\n\t \t \n\t final GroupYeild groupyeild=getGroup(groupPosition);\n\t \n\t final String ParentText = groupyeild.getTankname();\n\t final String parentText2=groupyeild.gethoc();\n\t final String parentText3=groupyeild.getharvestId();\n\t \n\t if (convertView == null) {\n\t LayoutInflater infalInflater = (LayoutInflater) this.contextyeild.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t convertView = infalInflater.inflate(R.layout.list_groupyeild, null);\n\t }\n\t \n\t final TextView lblListHeader = (TextView) convertView.findViewById(R.id.groupyeild1);\n\t lblListHeader.setTypeface(null, Typeface.BOLD);\n\t lblListHeader.setText(ParentText);\n\t // final TextView feeddate = (TextView) convertView.findViewById(R.id.groupyeild2); \n\t //feeddate.setTypeface(null, Typeface.BOLD);\n\t \n\t\t\t\t String[] splitedstr = parentText2.split(\"\\\\s\");\n\t\t\t\t\tfinal String s1=splitedstr[0];\n\t\t\t\t\tfinal String s2=splitedstr[1];\n\t\t\t\t\tfinal String s4=splitedstr[2];\n\t\t\t\t\tfinal String s5=splitedstr[3];\n\t\t\t\t\tfinal String s3=s1+\"-\"+s2;\n\t\t\t\t\t //feeddate.setText(s3);\n\t\t\t\t \n\t \n\t final ImageButton update=(ImageButton)convertView.findViewById(R.id.updateyeild);\n\t update.setOnClickListener(new OnClickListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t final Dialog dialog = new Dialog(contextyeild); \n\t\t \t dialog.setContentView(R.layout.harvestedit);\n\t\t // Set dialog title\n\t\t dialog.setTitle(\"Edit Pond\");\n\t\t dialog.show();\n\t\t final EditText shrimpharvest=(EditText)dialog.findViewById(R.id.shrimpharvest);\n\t\t final EditText harvestsize=(EditText)dialog.findViewById(R.id.harvestsize);\n\t\t try {\n\t\t\t\t\t\t \n\t\t\t\t\t\t\t helper=new DBHelper(contextyeild);\n\t\t\t\t\t\t database=helper.getReadableDatabase();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tString query = (\"select * from HarvestData where HarvestId ='\" + parentText3 + \"'\");\n\t\t\t\t\t \tCursor\tcursor = database.rawQuery(query, null);\n\t\t\t\t\t\t \n\t\t\t\t\t\t\tif(cursor != null){\n\t\t\t\t\t\t\t\tif(cursor.moveToLast()){\n\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t \n\t\t\t\t\t\t\t\t \t String tankId = cursor.getString(cursor.getColumnIndex(\"TankId\"));\n\t\t\t\t\t\t\t\t \t String harvestweight_str=cursor.getString(cursor.getColumnIndex(\"HarvestWeight\"));\n\t\t\t\t\t\t\t\t \t shrimpharvest.setText(harvestweight_str);\n\t\t\t\t\t\t\t\t \t String harvestsize_str=cursor.getString(cursor.getColumnIndex(\"HarvestSize\"));\n\t\t\t\t\t\t\t\t \tharvestsize.setText(harvestsize_str);\n\t\t\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\t cursor.moveToNext();\t \t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} \t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t \n\t\t final EditText harvestpondname=(EditText)dialog.findViewById(R.id.harvestpondname);\n\t\t harvestpondname.setText(ParentText);\n\t\t harvesttime=(TextView)dialog.findViewById(R.id.harvesttime);\n\t\t harvesttime.setText(s4+s5);\n\t\t harvestdate1=(TextView)dialog.findViewById(R.id.harvestcalendar);\n\t\t harvetimgdate=(ImageButton)dialog.findViewById(R.id.harvestimgcalendar);\n\t\t harvetimgtime=(ImageButton)dialog.findViewById(R.id.harvestimgtime);\n\t\t \n\t\t harvetimgdate.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t DatePickerDialog mDatePicker=new DatePickerDialog(contextyeild, new OnDateSetListener() { \n\t\t\t\t\t\t public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\t\t\t\t\t\t // TODO Auto-generated method stub \n\t\t\t\t\t\t /* Your code to get date and time */\n\t\t\t\t\t\t \t//final Calendar c = Calendar.getInstance();\n\t\t\t\t\t\t \t\t//\tc.set(selectedyear, selectedmonth, 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 }\n\t\t\t\t\t\t },start_year, start_month, start_day);\n\t\t\t\t\t\t mDatePicker.setTitle(\"Select date\"); \n\t\t\t\t\t\t mDatePicker.show(); \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t harvetimgtime.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t TimePickerDialog tpd = new TimePickerDialog(contextyeild, //same Activity Context like before\n\t\t\t\t\t\t\t new TimePickerDialog.OnTimeSetListener() {\n\n\t\t\t\t\t\t\t @Override\n\t\t\t\t\t\t\t public void onTimeSet(TimePicker view, int hourOfDay,int minute) {\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t hour = hourOfDay;\n\t\t\t\t\t\t\t \t\t min = minute;\n\t\t\t\t\t\t\t \t\t \n\t\t\t\t\t\t\t \t\t\t String timeSet = \"\";\n\t\t\t\t\t\t\t \t\t\t if (hour > 12) {\n\t\t\t\t\t\t\t \t\t\t hour -= 12;\n\t\t\t\t\t\t\t \t\t\t timeSet = \"PM\";\n\t\t\t\t\t\t\t \t\t\t } else if (hour == 0) {\n\t\t\t\t\t\t\t \t\t\t hour += 12;\n\t\t\t\t\t\t\t \t\t\t timeSet = \"AM\";\n\t\t\t\t\t\t\t \t\t\t } else if (hour == 12)\n\t\t\t\t\t\t\t \t\t\t timeSet = \"PM\";\n\t\t\t\t\t\t\t \t\t\t else\n\t\t\t\t\t\t\t \t\t\t timeSet = \"AM\";\n\t\t\t\t\t\t\t \t\t\t \n\t\t\t\t\t\t\t \t\t\t \n\t\t\t\t\t\t\t \t\t\t String minutes = \"\";\n\t\t\t\t\t\t\t \t\t\t if (min < 10)\n\t\t\t\t\t\t\t \t\t\t minutes = \"0\" + min;\n\t\t\t\t\t\t\t \t\t\t else\n\t\t\t\t\t\t\t \t\t\t minutes = String.valueOf(min);\n\t\t\t\t\t\t\t \t\t\t \n\t\t\t\t\t\t\t \t\t\t // Append in a StringBuilder\n\t\t\t\t\t\t\t \t\t\t String aTime = new StringBuilder().append(hour).append(':')\n\t\t\t\t\t\t\t \t\t\t .append(minutes).append(\" \").append(timeSet).toString();\n\t\t\t\t\t\t\t \t\t\t \n\t\t\t\t\t\t\t \t\t\t harvesttime.setText(aTime); \n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t }, hour, min, false);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t tpd.show();\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t harvestdate1.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t//onCreateDialog(START_DATE_DIALOG_ID);\n\t\t\t\t\t\t\t\t //showDialog(START_DATE_DIALOG_ID);\n\t\t\t\t\t\t\t\t//Toast.makeText(contextyeild, \"hi\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t//((YieldActivity)ExpandableListAdapterYeild.this.contextyeild).showDialog(START_DATE_DIALOG_ID_ADPTER);\n\t\t\t\t\t\t\t\t //harvestdate1.setText(GroupYeild.getdate());\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t DatePickerDialog mDatePicker=new DatePickerDialog(contextyeild, new OnDateSetListener() { \n\t\t\t\t\t public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\t\t\t\t\t // TODO Auto-generated method stub \n\t\t\t\t\t /* Your code to get date and time */\n\t\t\t\t\t \t//final Calendar c = Calendar.getInstance();\n\t\t\t\t\t \t\t//\tc.set(selectedyear, selectedmonth, 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 }\n\t\t\t\t\t },start_year, start_month, start_day);\n\t\t\t\t\t mDatePicker.setTitle(\"Select date\"); \n\t\t\t\t\t mDatePicker.show(); \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t harvesttime.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t//((YieldActivity)ExpandableListAdapterYeild.this.contextyeild).showDialog(TIME_DIALOG_ID);\t\t\n\t\t\t\t\t\t\t\t//final Calendar c = Calendar.getInstance();\n\t\t\t\t //int mHour = c.get(Calendar.HOUR_OF_DAY);\n\t\t\t\t // int mMinute = c.get(Calendar.MINUTE);\n\n\t\t\t\t TimePickerDialog tpd = new TimePickerDialog(contextyeild, //same Activity Context like before\n\t\t\t\t new TimePickerDialog.OnTimeSetListener() {\n\n\t\t\t\t @Override\n\t\t\t\t public void onTimeSet(TimePicker view, int hourOfDay,int minute) {\n\t\t\t\t \n\t\t\t\t hour = hourOfDay;\n\t\t\t\t \t\t min = minute;\n\t\t\t\t \t\t \n\t\t\t\t \t\t\t String timeSet = \"\";\n\t\t\t\t \t\t\t if (hour > 12) {\n\t\t\t\t \t\t\t hour -= 12;\n\t\t\t\t \t\t\t timeSet = \"PM\";\n\t\t\t\t \t\t\t } else if (hour == 0) {\n\t\t\t\t \t\t\t hour += 12;\n\t\t\t\t \t\t\t timeSet = \"AM\";\n\t\t\t\t \t\t\t } else if (hour == 12)\n\t\t\t\t \t\t\t timeSet = \"PM\";\n\t\t\t\t \t\t\t else\n\t\t\t\t \t\t\t timeSet = \"AM\";\n\t\t\t\t \t\t\t \n\t\t\t\t \t\t\t \n\t\t\t\t \t\t\t String minutes = \"\";\n\t\t\t\t \t\t\t if (min < 10)\n\t\t\t\t \t\t\t minutes = \"0\" + min;\n\t\t\t\t \t\t\t else\n\t\t\t\t \t\t\t minutes = String.valueOf(min);\n\t\t\t\t \t\t\t \n\t\t\t\t \t\t\t // Append in a StringBuilder\n\t\t\t\t \t\t\t String aTime = new StringBuilder().append(hour).append(':')\n\t\t\t\t \t\t\t .append(minutes).append(\" \").append(timeSet).toString();\n\t\t\t\t \t\t\t \n\t\t\t\t \t\t\t harvesttime.setText(aTime); \n\t\t\t\t }\n\t\t\t\t }, hour, min, false);\n\t\t\t\t \n\t\t\t\t tpd.show();\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t \n\t\t harvestdate1.setText(s3);\n\t\t \n\t\t Button update=(Button)dialog.findViewById(R.id.harvestSaveEdit);\n\t\t update.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t Button cancel=(Button)dialog.findViewById(R.id.harvestCancelEdit);\n\t\t cancel.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t \n\t\t\t\t}\n\t\t\t});\n\t final ImageButton delete=(ImageButton)convertView.findViewById(R.id.deleteyeild);\n\t delete.setOnClickListener(new OnClickListener() {\n\t \n\t public void onClick(View v) {\n\t AlertDialog.Builder builder = new AlertDialog.Builder(contextyeild);\n\t builder.setMessage(\"Do you want to delete?\");\n\t builder.setCancelable(false);\n\t builder.setPositiveButton(\"Yes\",\n\t new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t \n\t \n\t dialog.cancel();\n\t }\n\t });\n\t builder.setNegativeButton(\"No\",\n\t new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t dialog.cancel();\n\t }\n\t });\n\t AlertDialog alertDialog = builder.create();\n\t alertDialog.show();\n\t }\n\t });\n\t \n\t return convertView;\n\t }",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n Log.v(\"popwindow\",\"show the window111\");\n expandlistView.expandGroup(groupPosition);\n return true;\n }",
"@Override\r\n public void onClick(View v) {\n mMyExitDialog.dismiss();\r\n Intent intent = new Intent(KeyList.AKEY_UPDATE_EXPANDABLE_LIST);\r\n intent.putExtra(KeyList.IKEY_ELIST_GROUP_POSITION, \"\" + groupPosition);\r\n intent.putExtra(KeyList.IKEY_ELIST_CHILD_POSITION, \"\" + childPosition);\r\n context.sendBroadcast(intent);\r\n }",
"@Override\n public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent)\n {\n String title;\n title = getGroup(groupPosition).toString();\n if(convertView == null)\n {\n LayoutInflater inflater;\n inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n convertView = inflater.inflate(R.layout.parent_layout,null);\n }\n TextView textView;\n textView = (TextView) convertView.findViewById(R.id.parent_item);\n textView.setTypeface(null, Typeface.BOLD);\n textView.setText(title);\n return convertView;\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(ct,\" Blood Group \"+bloodgroup[position], Toast.LENGTH_LONG).show();\n }",
"public void initiateExpandableList()\r\n\t{\n\t\tmyList = (ExpandableListView) getView().findViewById(R.id.expandableListView1);\r\n\t\t// setPadding();\r\n\t\t// create the adapter by passing your ArrayList data\r\n\t\tlistAdapter = new FilterListAdapter(getActivity(), filterGroupList);\r\n\t\t// attach the adapter to the list\r\n\t\tmyList.setAdapter(listAdapter);\r\n\r\n\t\tLog.i(\"tag\", \"before expand all\");\r\n\t\t// expand all Groups\r\n\t\texpandAll();\r\n\r\n\t\t// add new item to the List\r\n\t\t// listener for child row click\r\n\t\tmyList.setOnChildClickListener(myListItemClicked);\r\n\t\t// listener for group heading click\r\n\t\tmyList.setOnGroupClickListener(myListGroupClicked);\r\n\r\n\t\t// add a new item to the list\r\n\t\tloadData();\r\n\t\t// notify the list so that changes can take effect\r\n\t\tlistAdapter.notifyDataSetChanged();\r\n\r\n\t\t// collapse all groups\r\n\t\t// collapseAll();\r\n\t\t// expand the group where item was just added\r\n\t\t// myList.expandGroup(groupPosition);\r\n\t\t// set the current group to be selected so that it becomes\r\n\t\t// visible\r\n\t\t// myList.setSelectedGroup(groupPosition);\r\n\t}",
"@Override\n public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) {\n GroupHolder groupHolder = null;\n if (convertView == null) {\n convertView = LayoutInflater.from(mContext).inflate(R.layout.mangement_class_activity_elv_group_item, null);\n groupHolder = new GroupHolder();\n groupHolder.groupImg = (ImageView) convertView.findViewById(R.id.mangement_class_activity_elv_group_item_class_icon_iv);\n groupHolder.groupText = (TextView) convertView.findViewById(R.id.mangement_class_activity_elv_group_item_class_name_tv);\n convertView.setTag(groupHolder);\n }else {\n groupHolder = (GroupHolder) convertView.getTag();\n }\n\n if (isExpanded) {\n groupHolder.groupImg.setImageResource(R.mipmap.down_arrow);\n }else {\n groupHolder.groupImg.setImageResource(R.mipmap.right_arraw);\n }\n\n groupHolder.groupText.setText(groupTitle.get(groupPosition));\n\n// groupButton = (Button) convertView.findViewById(R.id.btn_group_function);\n// groupButton.setOnClickListener(this);\n return convertView;\n }",
"@Override\r\n public void onGroupCollapse(int groupPosition) {\n\r\n }",
"@Override\n public View getGroupView(int groupPosition, boolean isExpanded,\n View convertView, ViewGroup parent) {\n ConvertView=convertView;\n if (ConvertView == null) {\n LayoutInflater inf = (LayoutInflater) context\n .getSystemService(context.LAYOUT_INFLATER_SERVICE);\n ConvertView = inf.inflate(R.layout.disbursement_detail_group, null);\n// ConvertView=convertView;\n }\n// new AsyncTask<Integer, Void, Integer>() {\n// @Override\n// protected Integer doInBackground(Integer... params) {\n dis = (Disbursement) getGroup(groupPosition);\n Log.i(\"AAAAAAAAAAAAAAAA\", disbursementGroups.get(groupPosition).get(\"disbursementId\").toString());\n// disbursementId=Integer.parseInt(disbursementGroups.get(groupPosition).get(\"disbursementId\").toString());\n Log.i(\"dddddddddddddddd\", Integer.toString(groupPosition));\n// disbursementItem.getDisbursementItems(disbursementId);\n// return params[0];\n// }\n//\n// @Override\n// protected void onPostExecute(Integer position) {\n deptName=(TextView)ConvertView.findViewById(R.id.dept_name);\n collectionDate=(TextView)ConvertView.findViewById(R.id.date_time);\n rep=(TextView)ConvertView.findViewById(R.id.rep_name);\n collectionpoint=(TextView)ConvertView.findViewById(R.id.collection_name);\n departmentName=dis.get(\"departmentName\").toString();\n cDate=dis.get(\"collectionDate\").toString();\n deptName.setText(departmentName);\n collectionDate.setText(cDate);\n rep.setText(dis.get(\"employeeName\").toString());\n collectionpoint.setText(dis.get(\"collectionName\").toString());\n// }\n// }.execute(groupPosition);\n\n return ConvertView;\n }",
"@Override\n public boolean onChildClick(ExpandableListView parent, View v,\n int groupPosition, int childPosition, long id) {\n switch (groupPosition) {\n\n case 3:\n switch (childPosition) {\n\n case 0:\n fragmentInvestment =\n FragmentInvestment.newInstance(DashboardActivity.this);\n fragmentManager.beginTransaction().replace(R.id.content_frame, fragmentInvestment).commit();\n getSupportActionBar().setTitle(\"Investment\");\n mExpandableListView.setItemChecked(childPosition, true);\n mExpandableListView.setSelection(childPosition);\n break;\n case 1:\n fragmentManager.beginTransaction().replace(R.id.content_frame, InvestmentReportFragment.newInstance()).commit();\n getSupportActionBar().setTitle(\"Investment Report\");\n mExpandableListView.setItemChecked(childPosition, true);\n mExpandableListView.setSelection(childPosition);\n break;\n case 2:\n fragmentManager.beginTransaction().replace(R.id.content_frame, FragmentRequestReport.newInstance()).commit();\n getSupportActionBar().setTitle(\"Investment Request Report\");\n mExpandableListView.setItemChecked(childPosition, true);\n mExpandableListView.setSelection(childPosition);\n break;\n\n }\n break;\n\n case 4:\n switch (childPosition) {\n case 0:\n fragmentManager.beginTransaction().replace(R.id.content_frame, DirectReferralIncomeReportFragment.newInstance()).commit();\n getSupportActionBar().setTitle(\"Direct Referral Income Report\");\n mExpandableListView.setItemChecked(childPosition, true);\n mExpandableListView.setSelection(childPosition);\n break;\n\n case 1:\n fragmentManager.beginTransaction().replace(R.id.content_frame, ROIReportFragment.newInstance()).commit();\n getSupportActionBar().setTitle(\"ROI Report\");\n mExpandableListView.setItemChecked(childPosition, true);\n mExpandableListView.setSelection(childPosition);\n break;\n case 2:\n fragmentManager.beginTransaction().replace(R.id.content_frame, EstimateAmountReportFragment.newInstance()).commit();\n getSupportActionBar().setTitle(\"Estimate Amount Report\");\n mExpandableListView.setItemChecked(childPosition, true);\n mExpandableListView.setSelection(childPosition);\n break;\n\n }\n break;\n\n case 5:\n switch (childPosition) {\n case 0:\n fragmentManager.beginTransaction().replace(R.id.content_frame, MakeWithdrawalFragment.newInstance()).commit();\n getSupportActionBar().setTitle(\"Make Withdraw\");\n mExpandableListView.setItemChecked(childPosition, true);\n mExpandableListView.setSelection(childPosition);\n break;\n\n case 1:\n fragmentManager.beginTransaction().replace(R.id.content_frame, PrincipleWithdrawFragment.newInstance()).commit();\n getSupportActionBar().setTitle(\"Principal Withdraw\");\n mExpandableListView.setItemChecked(childPosition, true);\n mExpandableListView.setSelection(childPosition);\n break;\n case 2:\n\n fragmentManager.beginTransaction().replace(R.id.content_frame, WithdrawReportFragment.newInstance()).commit();\n getSupportActionBar().setTitle(\"Withdrawal Report\");\n mExpandableListView.setItemChecked(childPosition, true);\n mExpandableListView.setSelection(childPosition);\n break;\n\n }\n break;\n\n\n }\n mDrawerLayout.closeDrawers();\n return false;\n\n }",
"@Override\n public View getGroupView(int groupPosition, boolean isExpanded,\n View convertView, ViewGroup parent) {\n TextView GroupView=getTextParentView();\n GroupView.setText(getGroup(groupPosition).toString());\n return GroupView;\n }",
"@Override\n\tpublic View getGroupView(int groupPosition, boolean isExpanded,\n\t\t\tView convertView, ViewGroup parent) {\n\t\tViewHolderParent viewHolder=null;\n\t\tif(convertView==null){\n\t\t\tconvertView=inflater.inflate(R.layout.plan_expand_parent, null);\n\t\t\tviewHolder=new ViewHolderParent();\n\t\t\tviewHolder.tv_parent_content=(TextView) convertView.findViewById(R.id.tv_parent_content);\n\t\t\tconvertView.setTag(viewHolder);\n\t\t}else{\n\t\t\tviewHolder=(ViewHolderParent) convertView.getTag();\n\t\t}\n\t\tString str=list.get(groupPosition);\n\t\tviewHolder.tv_parent_content.setText(str);\n\t\treturn convertView;\n\t}",
"@Override\n public void onClick(View view) {\n ExpandableListView expandableListView_t = (ExpandableListView) findViewById(R.id.main_leftList);\n //expandableListView_t.addHeaderView(header_t,null,false);\n expandableListView_t.setBackgroundResource(R.drawable.drawer_teach_list);\n ExpandListAdapter adapter_t = new ExpandListAdapter(parentItems_T,childItems_T);\n adapter_t.setInflater((LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE),MainActivity.this);\n expandableListView_t.setAdapter(adapter_t);\n }",
"@Override\n public void onClick(View view) {\n ExpandableListView expandableListView_a = (ExpandableListView) findViewById(R.id.main_leftList);\n expandableListView_a.setBackgroundResource(R.drawable.drawer_admin_list);\n //expandableListView_a.addHeaderView(header_a,null,false);\n ExpandListAdapter adapter_a = new ExpandListAdapter(parentItems_A,childItems_A);\n adapter_a.setInflater((LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE),MainActivity.this);\n expandableListView_a.setAdapter(adapter_a);\n }",
"@Override\n public boolean onChildClick(ExpandableListView expandableListView, View view, int listPos, int childPos, long l) {\n if(activeSearch){\n main.goToProjectActivity(mAdapterSearch.getChild(listPos, childPos));\n }else{\n switch (listPos){\n case 0:\n if(childPos == numToShowAces-1 && childPos != totalAces-1) {\n updateProjectList(acesList, listPos);\n isExpanded = true;\n }\n else\n main.goToProjectActivity(mAdapter.getChild(listPos, childPos));\n break;\n case 1:\n if(childPos == numToShowAws-1 && childPos != totalAws-1) {\n updateProjectList(awsList, listPos);\n isExpanded = true;\n }\n else\n main.goToProjectActivity(mAdapter.getChild(listPos, childPos));\n break;\n case 2:\n if(childPos == numToShowElse-1 && childPos != totalElse-1) {\n updateProjectList(elseList, listPos);\n isExpanded = true;\n }\n else\n main.goToProjectActivity(mAdapter.getChild(listPos, childPos));\n break;\n case 3:\n if(childPos == numToShowRcnc-1 && childPos != totalRcnc-1) {\n updateProjectList(rcncList, listPos);\n isExpanded = true;\n }\n else\n main.goToProjectActivity(mAdapter.getChild(listPos, childPos));\n break;\n }\n }\n\n\n return false;\n }",
"@Override\n public boolean onChildClick(ExpandableListView parent, View v,\n int groupPosition, int childPosition, long id) {\n\n Utilities.SetLog(\"SELECTED ASK\",expandableListDetail.get(\n expandableListTitle.get(groupPosition)).get(\n childPosition).getRespuesta(),WSkeys.log);\n\n AlertDialog.Builder builder = new AlertDialog.Builder(HelpListActivity.this);\n\n builder.setMessage(expandableListDetail.get(\n expandableListTitle.get(groupPosition)).get(\n childPosition).getRespuesta())\n .setTitle(expandableListDetail.get(\n expandableListTitle.get(groupPosition)).get(\n childPosition).getPregunta());\n\n builder.setPositiveButton(R.string.aceptar, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked OK button\n dialog.dismiss();\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n return false;\n }",
"public void expandDescription(final View v){\n if(!descriptionExpanded) {\n //Set line number to unlimited\n mDescription.setMaxLines(Integer.MAX_VALUE);\n\n //Animate expansion\n mAdditionalDetailsLayout.setVisibility(View.VISIBLE);\n\n mFAB.setImageDrawable(getResources().getDrawable(R.drawable.ic_minimize_white));\n descriptionExpanded = true;\n }else{\n //Set line limit\n mDescription.setMaxLines(getApplicationContext().getResources().getInteger(R.integer.lines));\n\n mFAB.setImageDrawable(getResources().getDrawable(R.drawable.ic_add_white));\n\n\n //Animate collapse\n mAdditionalDetailsLayout.setVisibility(View.GONE);\n\n descriptionExpanded = false;\n }\n }",
"private void expandAll()\r\n\t{\r\n\t\tint count = listAdapter.getGroupCount();\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t{\r\n\t\t\tmyList.expandGroup(i);\r\n\t\t}\r\n\t}",
"@Override\n public void onClick(View v) {\n \tSystem.out.println(\"ss1ss\");\n //Toast.makeText(ListViewActivity.this, title[mPosition], Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onGroupExpand(int groupPosition) {\n switch (headerList.get(groupPosition).getMenuName()) {\n case (\"About\"):\n fregmentContainer.removeAllViews();\n replaceFragment(new FragmentAbout());\n // getSupportFragmentManager().beginTransaction().add(R.id.fregmentContainer, new FragmentAbout()).addToBackStack(null).commit();\n //Toast.makeText(DrawerActivity.this, \"ABOUT\", Toast.LENGTH_SHORT).show();\n drawer.closeDrawers();\n break;\n case (\"Contact Us\"):\n fregmentContainer.removeAllViews();\n replaceFragment(new FragmentContactUs());\n //().beginTransaction().add(R.id.fregmentContainer, new FragmentContactUs()).addToBackStack(null).commit();\n // Toast.makeText(DrawerActivity.this, \"ABOUT\", Toast.LENGTH_SHORT).show();\n drawer.closeDrawers();\n break;\n case (\"Product Registration\"):\n fregmentContainer.removeAllViews();\n replaceFragment(new ProductRegistrationFragment());\n // getSupportFragmentManager().beginTransaction().add(R.id.fregmentContainer, new ProductRegistrationFragment()).addToBackStack(null).commit();\n //Toast.makeText(DrawerActivity.this, \"ABOUT\", Toast.LENGTH_SHORT).show();\n drawer.closeDrawers();\n break;\n\n }\n\n\n // return true;\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(context, \"You Clicked \" + titles.get(position), Toast.LENGTH_SHORT).show();\n }",
"@Override\n public View getGroupView(int pos, boolean isExpanded, View convertView, ViewGroup viewGroup) {\n if (convertView == null) {\n convertView = inflater.inflate(R.layout.view_group, viewGroup, false);\n }\n\n ((TextView) convertView.findViewById(R.id.text)).setText(data.get(pos).getTitle());\n return convertView;\n }",
"@Override\r\n public void onClick(View view) {\r\n Toast.makeText(context, \"satu\" +list_data.get(getAdapterPosition()), Toast.LENGTH_SHORT).show();\r\n\r\n }",
"@Override\n protected void onPostExecute(Void result) {\n //removes the progress dialog if it's still showing\n if (pd != null && pd.isShowing())\n pd.dismiss();\n\n //navigation buttons to reach the main activities\n Button myEvents_Button = (Button) findViewById(R.id.myEvents);\n Button EventsFestivals_Button = (Button) findViewById(R.id.button2);\n\n myEvents_Button.setVisibility(View.VISIBLE);\n EventsFestivals_Button.setVisibility(View.VISIBLE);\n\n EventsFestivals_Button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n startActivity(getIntent());\n }\n });\n\n //goes to myEvents, and checks to make sure that it doesn't spam the user with notifications\n myEvents_Button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n Intent intent = new Intent(Events_and_Festivals.this, MyEvents.class);\n startActivity(intent);\n }\n });\n\n\n expandableListView = (ExpandableListView) findViewById(R.id.expandableListView);\n\n /**Used with other commented out code. Couldn't get this to work\n //code copied from https://stackoverflow.com/questions/5800426/expandable-list-view-move-group-icon-indicator-to-right\n DisplayMetrics dm = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(dm);\n int width = dm.widthPixels;\n if(android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.JELLY_BEAN_MR2) {\n expandableListView.setIndicatorBounds(width-GetDipsFromPixel(35), width-GetDipsFromPixel(5));\n } else {\n expandableListView.setIndicatorBoundsRelative(width-GetDipsFromPixel(35), width-GetDipsFromPixel(5));\n }*/\n\n\n returnGroupedChildItems();//uses a thread function to return all children with their appropriate parents\n final ExpandableListViewAdapter expandableListViewAdapter = new ExpandableListViewAdapter(getApplicationContext(), ParentList, childContent, dataReturned);\n expandableListView.setAdapter(expandableListViewAdapter);\n\n\n //child onclick\n expandableListView.setOnChildClickListener(new ExpandableListView.OnChildClickListener() {\n @Override\n public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) {\n\n //find viewEntry that was clicked\n ViewEntry viewEntry = (ViewEntry) expandableListView.getItemAtPosition(childPosition + 1);\n\n Bundle extras = new Bundle();\n\n //array that contains all viewEntry object fields\n String[] keys = getResources().getStringArray(R.array.keys);\n\n //adds all information from the chosen viewEntry object into extras so it can be passed to Detailed_View activity\n for (String key : keys) {\n switch (key) {\n case \"unid\":\n extras.putString(key, viewEntry.unid);\n break;\n case \"Type\":\n extras.putString(key, null);\n break;\n default:\n extras.putString(key, viewEntry.getEDByName(key).getText());\n break;\n }\n }\n\n Intent intent = new Intent(Events_and_Festivals.this, Detailed_View.class);\n intent.putExtras(extras);//passes extras to activity\n startActivity(intent);\n\n return false;\n }\n });\n }",
"@Override\r\n\tpublic View getGroupView(int groupPosition, boolean isExpanded,\r\n\t\t\tView convertView, ViewGroup parent) {\n\t\tLocalInfo localInfo = localInfos.get(groupPosition);\r\n\r\n\t\tif (convertView == null) {\r\n\t\t\tconvertView = (View) layoutInflater.inflate(\r\n\t\t\t\t\tR.layout.layout_company_quality, null);\r\n\t\t\tvHolder = new ViewHolder();\r\n\t\t\t// vHolder.tvTitle = (TextView) convertView\r\n\t\t\t// .findViewById(R.id.Tv_Cultural_Title);\r\n\t\t\tvHolder.tvContent = (TextView) convertView\r\n\t\t\t\t\t.findViewById(R.id.Tv_QualityContent);\r\n\t\t\tvHolder.btnClick = (Button) convertView\r\n\t\t\t\t\t.findViewById(R.id.IvBtn_ContentThree);\r\n\t\t\tif (localInfos.size() - 1 == groupPosition) {\r\n\t\t\t\tvHolder.tvContent.setVisibility(View.VISIBLE);\r\n\t\t\t\tvHolder.btnClick.setText(null);\r\n\t\t\t\tvHolder.btnClick.setCompoundDrawables(null, null, draw, null);\r\n\t\t\t} else {\r\n\t\t\t\tvHolder.tvContent.setVisibility(View.GONE);\r\n\t\t\t}\r\n\r\n\t\t\tconvertView.setTag(vHolder);\r\n\t\t}\r\n\t\tViewHolder viewHolder = (ViewHolder) convertView.getTag();\r\n\t\tbindView(localInfo, viewHolder);\r\n\t\treturn convertView;\r\n\t}",
"@Override\n public void onGroupCollapse(int groupPosition) {\n }",
"@Override\n public boolean onChildClick(ExpandableListView parent, View v, final int groupPos, final int childPos, long id) { // functions specifies what happens upon a child element click\n final Item listGroup = item.get(groupPos);\n if(listGroup.MultiSelect) { // if group is multi select one\n if(listGroup.mSelected.contains(listGroup.elements.get(childPos))){ // if item is already selected\n listGroup.mSelected.remove(listGroup.elements.get(childPos)); // remove from selection\n }\n else {\n listGroup.mSelected.add(listGroup.elements.get(childPos)); // else add it to the selection\n }\n adapter.notifyDataSetChanged(); // inform to update the elv display\n }\n else { // if group is single select\n String[] dialogMessages = getResources().getStringArray(R.array.elvCustomDialogMessages);\n if(listGroup.elements.size()==childPos+1 && groupPos != 2) { // handle custom requests\n int inputType; // dialog input data type\n final String dialogMessage, before, after; // dialog title message, elv preview variables for custom entry\n if(groupPos==0) { // cost\n inputType = 2;\n dialogMessage = dialogMessages[0];\n before = getString(R.string.search_previewCost); after = \"\";\n }\n /*else if (groupPos==2) { // location\n inputType = 1;\n dialogMessage = dialogMessages[2];\n before = \"\"; after = \"\";\n }\n */else { // distance\n inputType = 2;\n dialogMessage = dialogMessages[3];\n before = getString(R.string.search_previewDistanceBefore); after = getString(R.string.search_previewDistanceAfter);\n }\n\n final ViewGroup nullParent = null;\n View promptsView = LayoutInflater.from(getBaseContext()).inflate(R.layout.input_prompt, nullParent); // get input_prompts.xml view\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(SearchPrefActivity.this);\n alertDialogBuilder.setView(promptsView); // set input_prompts.xml to alert dialog builder\n\n final EditText userInput = (EditText) promptsView.findViewById(R.id.InputPromptUserInput); // enable easy access to object\n userInput.setInputType(inputType); // set the dialog input data type\n TextView promptMessage = (TextView) promptsView.findViewById(R.id.InputPromptMessage);\n promptMessage.setText(dialogMessage); // set the dialog prompt message\n // create the dialog\n alertDialogBuilder\n .setCancelable(false)\n .setPositiveButton(getString(R.string.search_dialog_enter),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n listGroup.Selected = listGroup.elements.get(childPos); // update the selected child item\n listGroup.CustomValue = userInput.getText(); // get the users entered text and save it\n listGroup.CustomValuePreview = before + listGroup.CustomValue.toString() + after; // store the preview text to be shown on list group\n elv.collapseGroup(groupPos); // collapse the list view which causes the view to be regenerated and so new selected item will be shown\n }\n })\n .setNegativeButton(getString(R.string.search_dialog_cancel),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }\n });\n\n AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog\n alertDialog.show(); // show it\n }\n else { // if it's not the custom selection\n listGroup.Selected = listGroup.elements.get(childPos); // set the new selected item for single selection group\n elv.collapseGroup(groupPos); // collapse the list view which causes the view to be regenerated and so new selected item will be shown\n }\n }\n return false;\n }",
"@Override\n public boolean onChildClick(ExpandableListView parent, View v,\n int groupPosition, int childPosition, long id) {\n\n if((listDataChild.get(listDataHeader.get(groupPosition)).get(childPosition)).equals(\"My Profile\"))\n {\n loadFragment(new MyProfile(),true);\n }else if ((listDataChild.get(listDataHeader.get(groupPosition)).get(childPosition)).equals(\"Save Address\")){\n // loadFragment(new Wishlist(),true);\n }else if ((listDataChild.get(listDataHeader.get(groupPosition)).get(childPosition)).equals(\"Change Password\")){\n // loadFragment(new Wishlist(),true);\n }else if ((listDataChild.get(listDataHeader.get(groupPosition)).get(childPosition)).equals(\"Logout\")){\n //loadFragment(new Wishlist(),true);\n logout();\n }else if ((listDataHeader.get(groupPosition)).equals(\"Category\")){\n loadFragment(new Category(),true);\n }else if ((listDataHeader.get(groupPosition)).equals(\"Past Oder\")){\n loadFragment(new MyHistory(),true);\n }else if ((listDataHeader.get(groupPosition)).equals(\"Save Card\")){\n loadFragment(new Home(),true);\n }else if ((listDataHeader.get(groupPosition)).equals(\"Rate US\")){\n try {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"market://details?id=\" + getPackageName())));\n } catch (android.content.ActivityNotFoundException anfe) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://play.google.com/store/apps/details?id=\" + getPackageName())));\n }\n }else if ((listDataHeader.get(groupPosition)).equals(\"Share\")){\n shareApp();\n }else if ((listDataHeader.get(groupPosition)).equals(\"Term & Conditions\")){\n loadFragment(new TermsAndConditions(),true);\n }else if ((listDataHeader.get(groupPosition)).equals(\"Help & Support\")){\n loadFragment(new TermsAndConditions() ,true);\n }else if ((listDataHeader.get(groupPosition)).equals(\"Private Policy\")){\n loadFragment(new PrivatePolicy(),true);\n }\n return false;\n }",
"@Override\n public void onItemExpandCollapse(View view, int position, int type) {\n final int itemType = expandableListAdapter.getItemViewType(position);\n if (itemType == RoomDetailAdapter.TYPE_EXPANDABLE_BACKAUDIO) {\n initViewBackground(view, type);\n view.findViewById(R.id.rl_close_title).setVisibility(type == ExpandableListAdapter.ExpandCollapseAnimation.COLLAPSE ? View.VISIBLE : View.GONE);\n view.findViewById(R.id.tv_music_name_secondary).setVisibility(type == ExpandableListAdapter.ExpandCollapseAnimation.COLLAPSE ? View.GONE : View.VISIBLE);\n } else if (itemType == RoomDetailAdapter.TYPE_EXPANDABLE_CURTAIN || itemType == RoomDetailAdapter.TYPE_EXPANDABLE_Light) {\n initViewBackground(view, type);\n } else {\n initViewBackground(view, ExpandableListAdapter.ExpandCollapseAnimation.COLLAPSE);\n }\n }",
"@Override\n public void onExpandingClick(View v) {\n View view = v.findViewById(R.id.image);\n Travel travel = generateTravelList().get(viewPager.getCurrentItem());\n startInfoActivity(view,travel);\n }",
"public void expandCard(ArrayList<DiscoverTile> Test, int position) {\n ExpandedDiscoverTile expandedDiscoverTile = new ExpandedDiscoverTile();\n Bundle bundle = new Bundle();\n bundle.putParcelable(\"KEY\", Test.get(position));\n expandedDiscoverTile.setArguments(bundle);\n\n\n // Inflate transition to apply\n android.transition.Transition changeTransform = TransitionInflater.from(this).inflateTransition(R.transition.change_image_transform);\n android.transition.Transition explodeTransform = TransitionInflater.from(this).inflateTransition(android.R.transition.explode);\n\n // Set up exit transition on initial fragment.\n discoverTileFragment.setSharedElementReturnTransition(changeTransform); //Transition used during a pop to a back stack.\n discoverTileFragment.setExitTransition(explodeTransform); // View exiting.\n\n // Set up entry transition on new fragment.\n expandedDiscoverTile.setSharedElementEnterTransition(changeTransform);\n expandedDiscoverTile.setEnterTransition(explodeTransform);\n\n // Find the shared image.\n ImageView sharedimage = (ImageView) findViewById(R.id.locationImageFragment);\n\n // Add second fragment by replacing first.\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction()\n .replace(R.id.coordinatorlayout, expandedDiscoverTile)\n .addToBackStack(null)\n .addSharedElement(sharedimage, \"LocImageTransition\");\n\n ft.commit();\n\n\n }",
"public interface FragmentListDisplayListener {\n void updateListWithItem(long article);\n void setAdapter(SimpleCursorAdapterListArticle adapter, AdapterExpandableListArticle adapterExp);\n}",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) {\n if ( Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {\n return parent.expandGroup(groupPosition, true);\n }else\n\n return true;\n }",
"@Override\n public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) {\n if(convertView == null) {\n final ViewGroup nullParent = null;\n convertView=inflater.inflate(R.layout.searchpref_option_list_item,nullParent);\n }\n // variable declarations\n Item i=(Item) getGroup(groupPosition); // return a list group's data\n TextView optionTitle = (TextView) convertView.findViewById(R.id.search_option_list_item_text); // find the textView's on he banner to be set\n TextView selectedTitle = (TextView) convertView.findViewById(R.id.search_option_list_item_text_element);\n // data extraction\n String option = i.Option; // list group title\n String selected; // used to contain the preview selection in banner\n if(i.MultiSelect) {\n if(i.mSelected.size() > 2) { // when more than two items selected in multi-select\n selected = TextUtils.join(\", \",i.mSelected.subList(0,2)) + \", ...\"; // truncate preview\n }\n else {\n selected = TextUtils.join(\", \",i.mSelected);\n }\n }\n else { // if single selection\n if (i.elements.get(i.elements.size()-1).equals(i.Selected) && !option.equals(\"City\")) { // if it was a custom on\n selected = i.CustomValuePreview; // set the preview selection to the custom value\n }\n else {\n selected = i.Selected; // set the preview selection to the selected child name\n }\n } // list group's element selection for single selection group\n // update view\n optionTitle.setText(option); // set the banner name\n selectedTitle.setText(selected); // set preview text\n convertView.setBackgroundColor(Color.LTGRAY); // set colour of group banner\n // return the updated view\n return convertView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_fragment_search, container, false);\n final Button search = (Button) rootView.findViewById(R.id.listVse);\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setCancelable(false)\n .setView(R.layout.fragment_fragment_recipes)\n .setPositiveButton(\"ОК\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n //search.setText(selection);\n dialog.cancel();\n }\n })\n .setNegativeButton(\"Отмена\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n\n final AlertDialog listDialog = builder.create();\n\n\n search.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n listDialog.show();\n expListView = (ExpandableListView) listDialog.findViewById(R.id.expListView);\n //Это наверн не надо, но если будет надо, то раскомменть здесь + в кнопке ОК\n expListView.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() {\n\n @Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n //Установить в Selection text из этой херни.\n selection = parent.getExpandableListAdapter().getGroup(groupPosition).toString();\n return false;\n }\n });\n\n expListView.setOnChildClickListener(new ExpandableListView.OnChildClickListener() {\n\n @Override\n public boolean onChildClick(ExpandableListView parent, View v,\n int groupPosition, int childPosition, long id) {\n //Установить в Selection text из этой херни.\n selection += \": \" + parent.getExpandableListAdapter().getChild(groupPosition, childPosition).toString();\n search.setText(selection);\n listDialog.dismiss();\n return false;\n }\n });\n expListDetail = ListData.loadData();\n\n expListTitle = new ArrayList<>(expListDetail.keySet());\n expListAdapter = new ListAdapter(getContext(), expListTitle, expListDetail);\n\n expListView.setAdapter(expListAdapter);\n }\n });\n\n\n return rootView;\n }",
"@Override\r\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\r\n if (ExpandableListView.getPackedPositionType(id) == ExpandableListView.PACKED_POSITION_TYPE_CHILD) {\r\n final int groupPosition = ExpandableListView.getPackedPositionGroup(id);\r\n final int childPosition = ExpandableListView.getPackedPositionChild(id);\r\n\r\n Snackbar.make(findViewById(android.R.id.content), getResources().getString(R.string.snackbar_text_about_delete), Snackbar.LENGTH_LONG)\r\n .setAction(\"dele\", new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n mPresenter.deleteChild(groupPosition, childPosition);\r\n }\r\n })\r\n .setActionTextColor(Color.RED)\r\n .show();\r\n return true;\r\n }\r\n return false;\r\n }",
"public void expand() {\n openItems();\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_detail, container, false);\n //Loading IT list item\n mDetails = getArguments().getParcelableArrayList(ARG_DETAIL_LIST);\n mTableListLab = TableListLab.getInstance();\n //Display items in expandable recyclerview\n mExpandableView = view.findViewById(R.id.detail_expandable_view);\n for (Detail detail : mDetails) {\n switch (detail.getType()) {\n case Detail.ONLY_TEXT_TYPE:\n mExpandableView.addView(new HeadingView(getActivity(), detail.getHeaderResId()));\n mExpandableView.addView(new InfoView(getActivity(), detail));\n break;\n case Detail.IMAGE_TEXT_TYPE:\n mExpandableView.addView(new HeadingView(getActivity(), detail.getHeaderResId()));\n mExpandableView.addView(new ImageTextInfoView(getActivity(), detail));\n break;\n case Detail.ONLY_IMAGE_TYPE:\n mExpandableView.addView(new HeadingView(getActivity(), detail.getHeaderResId()));\n mExpandableView.addView(new ImageOnlyInfoView(getActivity(), detail));\n break;\n case Detail.TWO_IMAGES_TYPE:\n mExpandableView.addView(new HeadingView(getActivity(), detail.getHeaderResId()));\n mExpandableView.addView(new ImageTableInfoView(getActivity(), detail));\n break;\n case Detail.DIRECT_TEXT_TYPE:\n mExpandableView.addView(new DirectTextView(getActivity(), detail));\n break;\n case Detail.FACULTY_INFO_TYPE:\n mExpandableView.addView(new HeadingView(getActivity(), detail.getHeaderResId()));\n mExpandableView.addView(new FacultyInfoView(getActivity(), detail));\n break;\n case Detail.MAP_ADDRESS_TYPE:\n mExpandableView.addView(new MapAddressView(getActivity(), detail));\n break;\n case Detail.ONLY_TABLE_TYPE:\n mExpandableView.addView(new HeadingView(getActivity(), detail.getHeaderResId()));\n mExpandableView.addView(new TableInfoView(getActivity(), detail));\n break;\n case Detail.IMAGE_TABLE_TYPE:\n mExpandableView.addView(new HeadingView(getActivity(), detail.getHeaderResId()));\n mExpandableView.addView(new ImageTableInfoView(getActivity(), detail));\n break;\n case Detail.BODY_CHAPTERS_INFO_TYPE:\n mExpandableView.addView(new HeadingView(getActivity(), detail.getHeaderResId()));\n mExpandableView.addView(new BodyChaptersInfoView(getActivity(), detail));\n break;\n case Detail.ABOUT_DEVELOPERS_TYPE:\n mExpandableView.addView(new DevelopersInfoView());\n break;\n case Detail.TOP_RECRUITERS_TYPE:\n mExpandableView.addView(new RecruitersInfoView(getActivity(), RecruiterListLab.getInstance()));\n break;\n }\n }\n\n return view;\n }",
"@Override\n public void onGroupCollapse(int groupPosition) {\n\n }",
"public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id)\r\n\t\t{\n\t\t\tFilterGroupInfo headerInfo = filterGroupList.get(groupPosition);\r\n\t\t\t// display it or do something with it\r\n\t\t\tToast.makeText(getActivity().getApplicationContext(), \"Child on Header \" + headerInfo.getName(), Toast.LENGTH_SHORT).show();\r\n\r\n\t\t\treturn false;\r\n\t\t}",
"@Override\n public void onGroupCollapse(int groupPosition) {\n\n }",
"@Override\n public void onGroupCollapse(int groupPosition) {\n\n }",
"@Override\n public void onGroupCollapse(int groupPosition) {\n\n }",
"@Override\n public void onItemClick(AdapterView<?> a, View v, int position, long id) {\n Toast.makeText(getApplicationContext(), \"Selected :\" + \" \" + listData.get(position), Toast.LENGTH_LONG).show();\n }",
"@Override\r\n\tpublic View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) {\n\t\tGroupHolder grpHolder;\r\n\t\tString songHeader = ((SongHeader) getGroup(groupPosition)).getSongHeader();\r\n\t\tlong albumid = ((SongHeader) getGroup(groupPosition)).getAlbumid();\r\n if (convertView == null) {\r\n convertView = this.inflater.inflate(R.layout.player_group_list, null);\r\n grpHolder=new GroupHolder();\r\n grpHolder.groupText=(TextView) convertView.findViewById(R.id.groupMusicTitle);\r\n grpHolder.groupSongCount=(TextView) convertView.findViewById(R.id.groupSongCount);\r\n grpHolder.groupImage= (ImageView) convertView.findViewById(R.id.groupAlbumArt);\r\n grpHolder.dividerAbove=(View) convertView.findViewById(R.id.groupDividerAbove);\r\n //grpHolder.dividerBelow=(View) convertView.findViewById(R.id.groupDividerBelow);\r\n \r\n convertView.setTag(grpHolder);\r\n \r\n }\r\n else\r\n {\r\n \tgrpHolder=(GroupHolder)convertView.getTag();\r\n }\r\n \r\n if(groupPosition==0)\r\n {\r\n \tgrpHolder.dividerAbove.setVisibility(View.GONE);\r\n }\r\n else\r\n {\r\n \tgrpHolder.dividerAbove.setVisibility(View.VISIBLE);\r\n }\r\n \r\n grpHolder.groupText.setText(songHeader);\r\n int songCount=getChildrenCount(groupPosition)-1;\r\n grpHolder.groupSongCount.setText(songCount==1?songCount+\" song\":songCount+\" songs\");\r\n Log.d(TAG, \"album id \"+albumid);\r\n// if(albumid!=-1)\r\n// {\r\n \tgrpHolder.groupImage.setImageBitmap(MusicUtil.getArtworkQuick(this.context,albumid, 40, 40));\r\n \t\r\n // } \r\n \r\n return convertView; \r\n\t}",
"@Override\r\n public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) {\n if (convertView == null) {\r\n mViewHolder = new MainRemindViewHolder();\r\n convertView = mInflater.inflate(R.layout.view_main_remind_time_line, null);\r\n mViewHolder.setCenterIv((ImageView) convertView.findViewById(R.id.remind_top_center_iv));\r\n mViewHolder.setTimeLineTv((TextView) convertView.findViewById(R.id.main_remind_time_line_tv));\r\n convertView.setTag(mViewHolder);\r\n\r\n } else {\r\n mViewHolder = (MainRemindViewHolder) convertView.getTag();\r\n }\r\n\r\n if (groupPosition == 0) {\r\n mViewHolder.getCenterIv().setImageResource(R.drawable.main_remind_top_center);\r\n } else {\r\n mViewHolder.getCenterIv().setImageResource(R.drawable.main_remind_top_small_center);\r\n }\r\n List<Remind> list = mDataList.get(\"\" + groupPosition);\r\n String time = \"\" + list.get(0).creatTime;\r\n mViewHolder.getTimeLineTv().setText(mRemindDataHelp.getYearAndMonth(Long.parseLong(time)));\r\n convertView.setClickable(true);\r\n return convertView;\r\n }",
"@Override\n public void onLongItemClick(View view, int position) {\n }",
"@Override\n public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) {\n ViewEntry viewEntry = (ViewEntry) expandableListView.getItemAtPosition(childPosition + 1);\n\n Bundle extras = new Bundle();\n\n //array that contains all viewEntry object fields\n String[] keys = getResources().getStringArray(R.array.keys);\n\n //adds all information from the chosen viewEntry object into extras so it can be passed to Detailed_View activity\n for (String key : keys) {\n switch (key) {\n case \"unid\":\n extras.putString(key, viewEntry.unid);\n break;\n case \"Type\":\n extras.putString(key, null);\n break;\n default:\n extras.putString(key, viewEntry.getEDByName(key).getText());\n break;\n }\n }\n\n Intent intent = new Intent(Events_and_Festivals.this, Detailed_View.class);\n intent.putExtras(extras);//passes extras to activity\n startActivity(intent);\n\n return false;\n }",
"public void showEmptyListMessage() {\n Toast.makeText(getBaseContext(), \"Lista de opiniones vacia!\", Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onGroupCollapse(int groupPosition) {\n }",
"@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n Toast.makeText(getActivity(), \"You Clicked \"+position+\" item. Wait For Coming Functions\",\n Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(WearableListView.ViewHolder viewHolder) {\n\n Toast.makeText(getActivity(),\n \"Order Details\",\n Toast.LENGTH_SHORT).show();\n\n\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n\n View v = viewHolder.itemView;\n TextView name = (TextView)v.findViewById(R.id.name);\n // TextView item2 = (TextView)v.findViewById(R.id.item3);\n\n String itemName = name.getText().toString();\n // String item3 = item2.getText().toString();\n\n\n fragmentTransaction.replace(mContainerId, OrderDetailFragment.newInstance(itemName,\"\")).addToBackStack(null).commit();\n\n\n }",
"@Override\n public void onClick(View v) {\n\n String s = v.getTag().toString();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, s, duration);\n toast.show();\n }",
"@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\tString text = listview.getItemAtPosition(position)+\"\";\n\t\t\n\t\tToast.makeText(context, \"position=\"+position+\" text=\"+text, Toast.LENGTH_SHORT).show();\n\t}",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Toast.makeText(Cardio.this,cardios.get(position).getTitle(), Toast.LENGTH_SHORT).show();\n }",
"@Override\r\n public int getCount() {\r\n // contain the expand banner for user click\r\n if(isExpand){\r\n // starters only\r\n return 6;\r\n }else{\r\n // all players\r\n return playerData.size();\r\n }\r\n \r\n }",
"@Override\n public boolean onChildClick(ExpandableListView parent, View v,\n int groupPosition, int childPosition, long id) {\n\n Intent dataIntent = new Intent();\n\n String data = listDataChild.get(\n listDataHeader.get(groupPosition)).get(childPosition);\n\n dataIntent.putExtra(\"Item\", data);\n setResult(11, dataIntent);\n finish();\n return false;\n }",
"public void showDetails(View view){\n View parent=(View)view.getParent();\n taskname=(TextView)parent.findViewById(R.id.tname);\n String ts=String.valueOf(taskname.getText());\n ArrayList<String>a = help.getAllTaskDtae( ts);\n if(a.isEmpty() ) {\n // show message\n showMessage(\"Error\",\"Nothing found\");\n return;\n }\n StringBuffer buffer = new StringBuffer();\n if(a.contains(ts)) {\n buffer.append(\"Task Name :- \"+ a.get(0)+\"\\n\");\n buffer.append(\"Task Date :- \"+ a.get(1)+\"\\n\");\n buffer.append(\"Remainder Date :\"+ a.get(2)+\"\\n\\n\");\n }\n\n //Show all data\n showMessage(\"Data\",buffer.toString());\n }",
"public void expandTaskView(Object object) {\n\n if (object instanceof Task) {\n Task task = (Task) object;\n Intent intent = new Intent(getActivity(), expand_task.class);\n intent.putExtra(\"taskName\", task.getName());\n startActivity(intent);\n }\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Log.i(\"Tag\", myfamily.get(position));\n\n Toast.makeText(MainActivity.this, \"Hello \"+myfamily.get(position), Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void init(LayoutInflater inflater, ViewGroup parent) {\n mView = inflater.inflate(R.layout.project_task_layout, parent, false);\n mTaskList = (ExpandableListView) mView.findViewById(R.id.task_list);\n// mTaskList.setHasFixedSize(true);\n// final LinearLayoutManager mLayoutManager = new LinearLayoutManager(inflater.getContext());\n// mTaskList.setLayoutManager(mLayoutManager);\n mProjectName = (TextView) mView.findViewById(R.id.project_name);\n\n final LinearLayout linearLayout = (LinearLayout) mView.findViewById(R.id.collapse_layout);\n\n mProjectName.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if(linearLayout.getVisibility() == View.VISIBLE)\n collapse(linearLayout);\n else\n expand(linearLayout);\n\n }\n });\n\n mTaskList.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() {\n @Override\n public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) {\n // We call collapseGroupWithAnimation(int) and\n // expandGroupWithAnimation(int) to animate group\n // expansion/collapse.\n if ( Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {\n return parent.expandGroup(groupPosition, true);\n }else\n\n return true;\n }\n });\n\n\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n LinearLayout ll =(LinearLayout)arg0.findViewById(R.id.linearLayout22);\n task =(Task) getChild(groupPosition,childPosition);\n Log.d(\"CHILD\", task.toString());\n\t\t\t\tif(ll.getVisibility()==View.VISIBLE){\n ll.setVisibility(View.GONE);\n\t\t\t\t}else{\n linearLayout=(LinearLayout)arg0.findViewById(R.id.linearLayoutText);\n ll.setVisibility(View.VISIBLE);\n if(previosLL!=null&&previosLL.getVisibility()==View.VISIBLE&&previosLL!=ll){\n previosLL.setVisibility(View.GONE);\n }//if(previosLL!=lr)previosLL=ll;\n previosLL=ll;\n\t\t\t\t}\n\t\t\t//lr.getVisibility()=View.VISIBLE ? lr.setVisibility(Viev.GONE):lr.setVisibility(View.VISIBLE)\n\t\t\t}",
"public void expandNotification(View view){\n //Get the ID entered in the string\n int id = Integer.valueOf(notifcationIdView.getSelectedItem().toString());\n\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.monkey_notify)\n .setContentTitle(\"Not expanded\")\n .setContentText(\"This expanded notification doe!\");\n\n // Creates an explicit intent for an Activity in your app\n Intent resultIntent = new Intent(this, NotificationActivity.class);\n\n // The stack builder object will contain an artificial back stack for the\n // started Activity.\n // This ensures that navigating backward from the Activity leads out of\n // your application to the Home screen.\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n\n // Adds the back stack for the Intent (but not the Intent itself)\n stackBuilder.addParentStack(NotificationActivity.class);\n\n // Adds the Intent that starts the Activity to the top of the stack\n stackBuilder.addNextIntent(resultIntent);\n PendingIntent resultPendingIntent =\n stackBuilder.getPendingIntent(\n 0,\n PendingIntent.FLAG_UPDATE_CURRENT\n );\n mBuilder.setContentIntent(resultPendingIntent);\n\n NotificationCompat.InboxStyle inboxStyle =\n new NotificationCompat.InboxStyle();\n\n String[] events = new String[]{\"one\",\"two\",\"three\"};\n\n // Sets a title for the Inbox in expanded layout\n inboxStyle.setBigContentTitle(\"Event tracker details:\");\n\n // Moves events into the expanded layout\n for (int i=0; i < events.length; i++) {\n inboxStyle.addLine(events[i]);\n }\n\n // Moves the expanded layout object into the notification object.\n mBuilder.setStyle(inboxStyle);\n\n NotificationManager mNotificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n //Update the ID entered if it exists, create a new one if it doesn't\n mNotificationManager.notify(id, mBuilder.build());\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(context, \"You Clicked \" + result[position], Toast.LENGTH_SHORT).show();\n }",
"@Override\r\n public boolean onGroupClick(ExpandableListView parent, View v,\r\n int groupPosition, long id) {\n return false;\r\n }",
"private void setListenerToListView () {\n competitionsList.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() {\n @Override\n public boolean onGroupClick(final ExpandableListView parent, View v, final int groupPosition, long id) {\n if (parent.isGroupExpanded(groupPosition)) {\n parent.collapseGroup(groupPosition);\n } else {\n final Competition competition = (Competition) parent.getExpandableListAdapter().getGroup(groupPosition);\n if (competitionsAdapter.getTeams(competition).size() == 0) {\n //Show progress dialog\n final ProgressDialog progressDialog = ProgressDialog.show(getContext(), \"Loading...\", \"Loading, wait please\", true);\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n ArrayList<Team> teamsOfCompetition = new ArrayList<>();\n\n try {\n teamsOfCompetition = TeamController.getInstance().getTeamsOfCompetition(competition.getId(), competition.getLeague());\n } catch (ExecutionException e) {\n e.printStackTrace();\n //TODO: ERROR CONTROL\n } catch (InterruptedException e) {\n e.printStackTrace();\n //TODO: CONTROL MESSAGE\n }\n\n competitionsAdapter.addTeams(competition, teamsOfCompetition);\n\n final ArrayList<Team> finalTeamsOfCompetition = teamsOfCompetition;\n\n if (getActivity() == null)\n return;\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n //if id of team 0 is -1 or tems is empty, error message\n if (finalTeamsOfCompetition.isEmpty()) {\n errorMessage.setText(\"You have no internet connection...\");\n errorMessage.setVisibility(View.VISIBLE);\n } else if (finalTeamsOfCompetition.get(0).getId() == -1) {\n errorMessage.setText(finalTeamsOfCompetition.get(0).getName());\n errorMessage.setVisibility(View.VISIBLE);\n competitionsList.setVisibility(View.GONE);\n } else {\n competitionsList.setVisibility(View.VISIBLE);\n parent.expandGroup(groupPosition);\n //TODO: PUT A FILL STAR (FAV) TO THE TEAMS THAT ARE ALREADY ADDED AND AN EMPTY STAR TO THE OTHERS\n }\n //Hide progress bar\n progressDialog.dismiss();\n }\n });\n }\n }).start();\n } else {\n parent.expandGroup(groupPosition);\n }\n }\n\n return true;\n }\n });\n\n //OnChildClick add team clicked to my teams\n competitionsList.setOnChildClickListener(new ExpandableListView.OnChildClickListener() {\n @Override\n public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) {\n final Team team = (Team) parent.getExpandableListAdapter().getChild(groupPosition,childPosition);\n\n if (TeamController.getInstance().isTeam(getContext(), team.getId())) {\n Toast.makeText(getContext(),team.getName() + \" is already in your teams!\", Toast.LENGTH_SHORT).show();\n return true;\n }\n\n new AlertDialog.Builder(getContext())\n .setMessage(\"Do you want to add \" + team.getName() + \" to your teams?\")\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n TeamController.getInstance().storeTeam(getContext(), team);\n\n Toast.makeText(getContext(),team.getName() + \" was added to your teams!\", Toast.LENGTH_SHORT).show();\n //TODO: UPDATE LIST VIEW AFTER ADD THE TEAM, PUT STAR IN THE TEAM\n }\n }).setNegativeButton(android.R.string.no, null).show();\n\n return true;\n }\n });\n }",
"private void startEditExistingTextActivity(int whichListPosition){\n ArrayList<String> listToExpand = new ArrayList<String>();\n listToExpand = myList.get(whichListPosition);\n Intent intent = new Intent(this, EditExistingText.class);\n Bundle bundle = new Bundle();\n bundle.putStringArrayList(\"theList\", listToExpand);\n bundle.putInt(\"theListPosition\", whichListPosition);\n bundle.putInt(\"theItemPosition\", 0);\n intent.putExtras(bundle);\n startActivityForResult(intent, EDITTEXTRC);\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(RecycleTestActivity.this, pos + \"\", Toast.LENGTH_SHORT)\n .show();\n }",
"@Override\n public boolean onContextItemSelected(MenuItem item) {\n \tToast.makeText(this, item.getTitle(), Toast.LENGTH_LONG).show();\n \treturn true;\n }",
"@Override\n public void onResume() {\n super.onResume();\n // setList();\n // .makeText(context, position+\"\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void onClick(View v) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(Resume_create_employee.this);\n builder.setTitle(\"Select\");\n ListView list = new ListView(Resume_create_employee.this);\n\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(Resume_create_employee.this, R.layout.shortlistitem,\n R.id.textView1, str_exp);\n\n list.setAdapter(adapter);\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n // TODO Auto-generated method stub\n if (dialog.isShowing()) {\n\n dialog.dismiss();\n\n\n }\n res_exp.setText(str_exp[position]+ \" years\");\n res_exp.setTextColor(Color.parseColor(\"#000000\"));\n }\n });\n builder.setView(list);\n dialog = builder.create();\n dialog.show();\n }",
"@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true;\n }",
"@Override\n protected void onListItemClick(ListView l, View v, int position, long id)\n {\n String selection = l.getItemAtPosition(position).toString();\n Toast.makeText(this, selection, Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(View v) {\n if (currentDetailView == fPosition) {\n tvTitle.setSingleLine(true);\n currentDetailView = -1;\n lastDetailView = null;\n } else {\n tvTitle.setSingleLine(false);\n if (lastDetailView != null) {\n ((TextView) lastDetailView).setSingleLine(true);\n }\n lastDetailView = v;\n currentDetailView = fPosition;\n }\n Log.d(TAG, \"currentDetailView = \" + currentDetailView);\n }",
"@Override\n public void onItemLongClick(View view, int position) {\n\n }",
"private void a(ExpandableListView paramExpandableListView, int paramInt) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String SlectedCountry = countryName[+position];\n Toast.makeText(getApplicationContext(), SlectedCountry, Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n\t public View getChildView(int groupPosition, final int childPosition,boolean isLastChild, View convertView, ViewGroup parent) {\n\t \n\t final ChildYeild childyeild=getChild(groupPosition, childPosition);\n\t final String child1text1 = childyeild.getsoc();\n\t final String childtext2=childyeild.getabw();\n\t final String childtest3=childyeild.getfcr();\n\t final String childtest4=childyeild.getcumFeed();\n\t final String childtest5=childyeild.getharvSize();\n\t final String childtest6=childyeild.getharvWt();\n\t final String childtest7=childyeild.gethoc();\t \n\t \n\t if (convertView == null) {\n\t LayoutInflater infalInflater = (LayoutInflater) this.contextyeild\n\t .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t convertView = infalInflater.inflate(R.layout.list_itemyeild, null);\n\t }\n\t \n\t final TextView soc = (TextView)convertView.findViewById(R.id.yeild1);\n\t soc.setText(child1text1);\n\t \n\t final TextView abw = (TextView)convertView.findViewById(R.id.yeild2);\n\t abw.setText(childtext2);\n\t \n\t final TextView fcr = (TextView)convertView.findViewById(R.id.yeild3);\n\t fcr.setText(childtest3);\n\t \n\t final TextView cumfeed = (TextView)convertView.findViewById(R.id.yeild4);\n\t cumfeed.setText(childtest4);\n\t \n\t final TextView harvestsize = (TextView)convertView.findViewById(R.id.yeild5);\n\t harvestsize.setText(childtest5);\n\t \n\t final TextView harvestwg = (TextView)convertView.findViewById(R.id.yeild6);\n\t harvestwg.setText(childtest6);\n\t \n\t final TextView harvesthoc= (TextView)convertView.findViewById(R.id.yeild7);\n\t harvesthoc.setText(childtest7);\n\t return convertView;\n\t }",
"@Override\n public void onHide() {\n// buttom.animate()\n// .translationY(height - buttom.getHeight())\n// .setInterpolator(new AccelerateInterpolator(2))\n// .setDuration(800)\n// .start();\n// top.animate()\n// .translationY(-height)\n// .setDuration(800)\n// .setInterpolator(new AccelerateInterpolator(2))\n// .start();\n mExpandableLinearLayout.collapse();\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n\n\n ViewHolder holder = null;\n if (convertView == null) {\n holder = new ViewHolder();\n convertView = LayoutInflater.from(context).inflate(R.layout.unitfragment_item, null);\n holder.fragment_paiming = (TextView) convertView.findViewById(R.id.fragment_paiming);\n holder.fragment_xingming = (TextView) convertView.findViewById(R.id.fragment_xingming);\n holder.fragment_score = (TextView) convertView.findViewById(R.id.fragment_score);\n holder.fragment_danwei = (TextView) convertView.findViewById(R.id.fragment_danwei);\n convertView.setTag(holder);\n } else {\n holder = (ViewHolder) convertView.getTag();\n }\n\n ExamRankUnit.DataBean data = list.get(position);\n\n if (EmptyUtil.IsNotEmpty(data.getName())) {\n holder.fragment_xingming.setText(data.getName());\n }\n\n if (EmptyUtil.IsNotEmpty(this.groupid)) {\n int groupid1 = Integer.valueOf(this.groupid);\n if (groupid1 <= 0) {\n if (EmptyUtil.IsNotEmpty(data.getName())) { //list.get(position).getDepname()\n holder.fragment_xingming.setText(data.getName());\n }\n }\n }\n\n if (EmptyUtil.IsNotEmpty(String.valueOf(data.getPeople()))) {\n holder.fragment_danwei.setText(String.valueOf(data.getPeople()) + \"人\");\n }\n\n holder.fragment_score.setText(data.getResult());\n// if (EmptyUtil.IsNotEmpty(String.valueOf(list.get(position).getStages()))) {\n// float score = Float.valueOf(String.valueOf(list.get(position).getStages()));\n//\n// if (\"single\".equals(this.type)) { // 2\n// holder.fragment_score.setText(mFormat.format(score) + \"分\");\n// } else if (\"repeat\".equals(this.type) || \"accrued\".equals(this.type)) { //3 // 4\n// holder.fragment_score.setText(mFormat.format(score) + \"关\");\n// }\n// }\n holder.fragment_paiming.setText((position + 1) + \"\");\n\n return convertView;\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tToast.makeText(getActivity(), listAdapter.getItem(position), Toast.LENGTH_LONG).show();\n\t\t\t}",
"@Override\r\n\t public void onClick(View arg0) {\n\r\n\t\t String item = et.getText().toString();\r\n\t\t String price = itemprice.getText().toString();\r\n\t\t if(!item.trim().equals(\"\"))\r\n\t\t {\r\n\t\t\t et.setText(\"\");\r\n\t\t\t itemprice.setText(\"\");\r\n\t\t\t closeDialogs();\r\n\t\t addProduct(\"Uncategorized\", item,price,getActivity());\r\n\t\t\t\t //addProduct(department,product);\r\n\t\t //notify the list so that changes can take effect\r\n\t\t GamesFragment.ExpAdapter.notifyDataSetChanged();\r\n\t\t expandAll();\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\t itemprice.setText(\"\");\r\n\t\t\t Toast.makeText(getActivity(),\"Enter Item Name\",Toast.LENGTH_SHORT).show();\r\n\t\t\t// Toast.makeText(, \"Colosed\", Toast.LENGTH_SHORT).show();\r\n\t\t }\r\n\t\t // closeDialogs();\r\n\t\t // dialog.dismiss();\r\n\r\n\r\n\t }",
"@Override\n public void onListItemClicked(int position) {\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n String messageText = item.getTitle().toString();\n /*if(item.getGroupId() != 0) {\n R.id.my_group;\n }*/\n switch (item.getItemId()) {\n case R.id.first_item:\n Toast.makeText(this, item.getTitle(), Toast.LENGTH_LONG).show();\n break;\n case R.id.second_item:\n Toast.makeText(this, item.getTitle(), Toast.LENGTH_LONG).show();\n break;\n case R.id.first_in_group:\n if (item.isChecked()) {\n item.setChecked(false);\n messageText += \" unchecked\";\n } else {\n item.setChecked(true);\n messageText += \" checked\";\n }\n\n Toast.makeText(this, messageText, Toast.LENGTH_LONG).show();\n break;\n case R.id.second_in_group:\n if (item.isChecked()) {\n item.setChecked(false);\n messageText += \" unchecked\";\n } else {\n item.setChecked(true);\n messageText += \" checked\";\n }\n\n Toast.makeText(this, messageText, Toast.LENGTH_LONG).show();\n break;\n case R.id.first_in_submenu:\n if (item.isChecked()) {\n item.setChecked(false);\n messageText += \" unchecked\";\n } else {\n item.setChecked(true);\n messageText += \" checked\";\n }\n\n Toast.makeText(this, messageText, Toast.LENGTH_LONG).show();\n\n break;\n case R.id.second_in_submenu:\n Toast.makeText(this, item.getTitle(), Toast.LENGTH_LONG).show();\n break;\n }\n return true;\n }",
"private void startOneListAndItemsActivity(int whichListPosition){\n ArrayList<String> listToExpand = new ArrayList<String>();\n listToExpand = myList.get(whichListPosition);\n Intent intent = new Intent(this, OneListAndItems.class);\n Bundle bundle = new Bundle();\n bundle.putStringArrayList(\"theList\", listToExpand);\n bundle.putInt(\"theListPosition\", whichListPosition);\n bundle.putInt(\"theItemPosition\", 0);\n intent.putExtras(bundle);\n startActivityForResult(intent, ONELISTRC);\n }",
"@Override\n public View getView(int position, View view, ViewGroup parent) {\n if (view == null) {\n view = getLayoutInflater().inflate(R.layout.problem_item, null);\n }\n TextView text = MViewHolder.get(view, R.id.tvTitle);\n TextView remind = MViewHolder.get(view,R.id.item_select_number_text);\n\n //text.setText(object.optString(\"dicName\"));\n text.setText(tabList.get(position).getDicName());\n if(tabList.get(position).getItemCount() == 0){\n remind.setVisibility(View.GONE);\n }else {\n remind.setVisibility(View.VISIBLE);\n remind.setText(\"已选择\"+tabList.get(position).getItemCount()+\"项\");\n }\n view.setTag(R.id.tag_first, tabList);\n return view;\n }"
] |
[
"0.7001986",
"0.6629647",
"0.66227347",
"0.65513134",
"0.6516583",
"0.64842147",
"0.64713025",
"0.6378218",
"0.6368871",
"0.6321446",
"0.6321446",
"0.6305407",
"0.6296054",
"0.6296054",
"0.6296035",
"0.62946725",
"0.6178873",
"0.6165231",
"0.61263376",
"0.6125915",
"0.60655653",
"0.6031709",
"0.60030466",
"0.5978297",
"0.59634405",
"0.5963312",
"0.5957418",
"0.59158415",
"0.58927476",
"0.5874884",
"0.58719414",
"0.586621",
"0.5848903",
"0.58384085",
"0.5836896",
"0.58165085",
"0.5781527",
"0.5774014",
"0.5743617",
"0.5714215",
"0.56879234",
"0.5680136",
"0.5668731",
"0.5653696",
"0.56500447",
"0.5628626",
"0.5624673",
"0.5621861",
"0.5603324",
"0.5595317",
"0.5591502",
"0.5585345",
"0.55736375",
"0.55642474",
"0.55641305",
"0.55641305",
"0.55641305",
"0.55580354",
"0.55529267",
"0.5508462",
"0.54976577",
"0.5492604",
"0.54918635",
"0.5483369",
"0.5478704",
"0.5475729",
"0.54587424",
"0.5437385",
"0.5427795",
"0.54183203",
"0.54103446",
"0.54067016",
"0.54048324",
"0.53953785",
"0.5394227",
"0.53899294",
"0.538718",
"0.5375965",
"0.5359908",
"0.53502756",
"0.53446996",
"0.5333671",
"0.5322244",
"0.5313136",
"0.53068304",
"0.5293894",
"0.52930677",
"0.5292653",
"0.52893233",
"0.5286041",
"0.527932",
"0.52742386",
"0.5250764",
"0.5244853",
"0.5240656",
"0.5239898",
"0.5239337",
"0.52366215",
"0.52333236",
"0.5231639"
] |
0.64464027
|
7
|
Toast.makeText(getActivity(), expandableListTitle.get(groupPosition) + " List Collapsed.", Toast.LENGTH_SHORT).show();
|
@Override
public void onGroupCollapse(int groupPosition) {
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public boolean onChildClick(ExpandableListView expandableListView, View view, int i, int i1, long l) {\n\n AlertDialog.Builder builder=new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(listDataHeader.get(i));\n builder.setMessage(listDataChild.get(listDataHeader.get(i)).get(i1));\n builder.setCancelable(true);\n builder.show();\n return false;\n }",
"@Override\n public boolean onChildClick(ExpandableListView parent, View v,\n int groupPosition, int childPosition, long id) {\n Toast.makeText(\n getApplicationContext(),\n listDataHeader.get(groupPosition)\n + \" : \"\n + listDataChild.get(\n listDataHeader.get(groupPosition)).get(\n childPosition), Toast.LENGTH_SHORT)\n .show();\n return false;\n }",
"@Override\n public boolean onChildClick(ExpandableListView parent, View v,\n int groupPosition, int childPosition, long id) {\n Toast.makeText(\n getApplicationContext(),\n listDataHeader.get(groupPosition)\n + \" : \"\n + listDataChild.get(\n listDataHeader.get(groupPosition)).get(\n childPosition), Toast.LENGTH_SHORT)\n .show();\n return false;\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(ct,\" Blood Group \"+bloodgroup[position], Toast.LENGTH_LONG).show();\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n\n ExpandableListAdapter ExpandAdapter = new ExpandableListAdapter() {\n\n public TextView getTextParentView(){\n AbsListView.LayoutParams lp = new AbsListView.LayoutParams\n (ViewGroup.LayoutParams.FILL_PARENT, Constant.SCREE_MAX_Y/10);\n TextView textview = new TextView(HelpActivity.this);\n textview.setLayoutParams(lp);\n textview.setGravity(Gravity.CENTER_VERTICAL |Gravity.LEFT);\n textview.setPadding(100, 0, 0, 0);\n textview.setTextSize(20);\n\n textview.setTextColor(Color.BLACK);\n return textview;\n }\n public TextView getTextChileView(){\n AbsListView.LayoutParams lp = new AbsListView.LayoutParams\n (ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n TextView textview = new TextView(HelpActivity.this);\n textview.setLayoutParams(lp);\n textview.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT);\n textview.setPadding(35, 35, 35, 35);\n textview.setTextSize(17);\n\n return textview;\n }\n\n @Override\n public void unregisterDataSetObserver(DataSetObserver observer) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public void registerDataSetObserver(DataSetObserver observer) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public void onGroupExpanded(int groupPosition) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public void onGroupCollapsed(int groupPosition) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public boolean isEmpty() {\n // TODO Auto-generated method stub\n return false;\n }\n\n @Override\n public boolean isChildSelectable(int groupPosition, int childPosition) {\n // TODO Auto-generated method stub'\n\n return true;\n }\n\n @Override\n public boolean hasStableIds() {\n // TODO Auto-generated method stub\n return true;\n }\n\n\n\n @Override\n public View getGroupView(int groupPosition, boolean isExpanded,\n View convertView, ViewGroup parent) {\n // TODO Auto-generated method stub\n TextView GroupView=getTextParentView();\n GroupView.setText(getGroup(groupPosition).toString());\n return GroupView;\n }\n\n @Override\n public long getGroupId(int groupPosition) {\n // TODO Auto-generated method stub\n return groupPosition;\n }\n\n @Override\n public int getGroupCount() {\n // TODO Auto-generated method stub\n return Grade.length;\n }\n\n @Override\n public Object getGroup(int groupPosition) {\n // TODO Auto-generated method stub\n return Grade[groupPosition];\n }\n\n @Override\n public long getCombinedGroupId(long groupId) {\n // TODO Auto-generated method stub\n return 0;\n }\n\n @Override\n public long getCombinedChildId(long groupId, long childId) {\n // TODO Auto-generated method stub\n return 0;\n }\n\n @Override\n public int getChildrenCount(int groupPosition) {\n // TODO Auto-generated method stub\n return 1;\n }\n\n @Override\n public View getChildView(int groupPosition, int childPosition,\n boolean isLastChild, View convertView, ViewGroup parent) {\n // TODO Auto-generated method stub\n TextView ChildTextView = getTextChileView();\n ChildTextView.setText(getChild(groupPosition, childPosition).toString());\n return ChildTextView;\n }\n\n @Override\n public long getChildId(int groupPosition, int childPosition) {\n // TODO Auto-generated method stub\n return childPosition;\n }\n\n @Override\n public Object getChild(int groupPosition, int childPosition) {\n // TODO Auto-generated method stub\n return Lesson[groupPosition];\n }\n\n @Override\n public boolean areAllItemsEnabled() {\n // TODO Auto-generated method stub\n return false;\n }\n };\n\n setListAdapter(ExpandAdapter);\n\n }",
"@Override\r\n\t\t\t\t\tpublic void onGroupExpand(int groupPosition) {\n\t\t\t\t\t\tfor (int i = 0; i < expListAdapter.getGroupCount(); i++) {\r\n\r\n\t\t\t\t\t\t\tif (i != groupPosition) {\r\n\t\t\t\t\t\t\t\texpandablelistView.collapseGroup(i);\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n Toast.makeText(context, \"You Clicked \" + titles.get(position), Toast.LENGTH_SHORT).show();\n }",
"@Override\r\n public void onGroupCollapse(int groupPosition) {\n\r\n }",
"@Override\n public void onClick(View v) {\n \tSystem.out.println(\"ss1ss\");\n //Toast.makeText(ListViewActivity.this, title[mPosition], Toast.LENGTH_SHORT).show();\n }",
"void onGroupExpanded(int groupPosition);",
"@Override\r\n public void onGroupExpand(int groupPosition) {\n }",
"@Override\n public void onGroupExpand(int groupPosition) {\n }",
"@Override\n public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent)\n {\n String title;\n title = getGroup(groupPosition).toString();\n if(convertView == null)\n {\n LayoutInflater inflater;\n inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n convertView = inflater.inflate(R.layout.parent_layout,null);\n }\n TextView textView;\n textView = (TextView) convertView.findViewById(R.id.parent_item);\n textView.setTypeface(null, Typeface.BOLD);\n textView.setText(title);\n return convertView;\n }",
"@Override\n public void onShow() {\n mExpandableLinearLayout.expand();\n }",
"protected void expandAll() {\n Activity a = getCurrentActivity();\n if (a instanceof SessionsExpandableListActivity) {\n SessionsExpandableListActivity sela = (SessionsExpandableListActivity) a;\n \n sela.expandAll();\n Log.i(\"expandAll()\", \"expanded!\");\n }\n \n \n // View view = mTabHost.getCurrentTabView();\n // Log.i(\"INFO: \", view.getClass().getName());\n \n \n }",
"@Override\n public void onGroupExpanded(int groupPosition) {\n\n }",
"@Override\n public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) {\n GroupHolder groupHolder = null;\n if (convertView == null) {\n convertView = LayoutInflater.from(mContext).inflate(R.layout.mangement_class_activity_elv_group_item, null);\n groupHolder = new GroupHolder();\n groupHolder.groupImg = (ImageView) convertView.findViewById(R.id.mangement_class_activity_elv_group_item_class_icon_iv);\n groupHolder.groupText = (TextView) convertView.findViewById(R.id.mangement_class_activity_elv_group_item_class_name_tv);\n convertView.setTag(groupHolder);\n }else {\n groupHolder = (GroupHolder) convertView.getTag();\n }\n\n if (isExpanded) {\n groupHolder.groupImg.setImageResource(R.mipmap.down_arrow);\n }else {\n groupHolder.groupImg.setImageResource(R.mipmap.right_arraw);\n }\n\n groupHolder.groupText.setText(groupTitle.get(groupPosition));\n\n// groupButton = (Button) convertView.findViewById(R.id.btn_group_function);\n// groupButton.setOnClickListener(this);\n return convertView;\n }",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n Log.v(\"popwindow\",\"show the window111\");\n expandlistView.expandGroup(groupPosition);\n return true;\n }",
"@Override\n public View getGroupView(int groupPosition, boolean isExpanded,\n View convertView, ViewGroup parent) {\n TextView GroupView=getTextParentView();\n GroupView.setText(getGroup(groupPosition).toString());\n return GroupView;\n }",
"@Override\n public void onGroupExpand(int groupPosition) {\n }",
"@Override\n public void onGroupExpand(int groupPosition) {\n\n }",
"@Override\n public boolean onChildClick(ExpandableListView parent, View v,\n int groupPosition, int childPosition, long id) {\n switch (groupPosition) {\n\n case 3:\n switch (childPosition) {\n\n case 0:\n fragmentInvestment =\n FragmentInvestment.newInstance(DashboardActivity.this);\n fragmentManager.beginTransaction().replace(R.id.content_frame, fragmentInvestment).commit();\n getSupportActionBar().setTitle(\"Investment\");\n mExpandableListView.setItemChecked(childPosition, true);\n mExpandableListView.setSelection(childPosition);\n break;\n case 1:\n fragmentManager.beginTransaction().replace(R.id.content_frame, InvestmentReportFragment.newInstance()).commit();\n getSupportActionBar().setTitle(\"Investment Report\");\n mExpandableListView.setItemChecked(childPosition, true);\n mExpandableListView.setSelection(childPosition);\n break;\n case 2:\n fragmentManager.beginTransaction().replace(R.id.content_frame, FragmentRequestReport.newInstance()).commit();\n getSupportActionBar().setTitle(\"Investment Request Report\");\n mExpandableListView.setItemChecked(childPosition, true);\n mExpandableListView.setSelection(childPosition);\n break;\n\n }\n break;\n\n case 4:\n switch (childPosition) {\n case 0:\n fragmentManager.beginTransaction().replace(R.id.content_frame, DirectReferralIncomeReportFragment.newInstance()).commit();\n getSupportActionBar().setTitle(\"Direct Referral Income Report\");\n mExpandableListView.setItemChecked(childPosition, true);\n mExpandableListView.setSelection(childPosition);\n break;\n\n case 1:\n fragmentManager.beginTransaction().replace(R.id.content_frame, ROIReportFragment.newInstance()).commit();\n getSupportActionBar().setTitle(\"ROI Report\");\n mExpandableListView.setItemChecked(childPosition, true);\n mExpandableListView.setSelection(childPosition);\n break;\n case 2:\n fragmentManager.beginTransaction().replace(R.id.content_frame, EstimateAmountReportFragment.newInstance()).commit();\n getSupportActionBar().setTitle(\"Estimate Amount Report\");\n mExpandableListView.setItemChecked(childPosition, true);\n mExpandableListView.setSelection(childPosition);\n break;\n\n }\n break;\n\n case 5:\n switch (childPosition) {\n case 0:\n fragmentManager.beginTransaction().replace(R.id.content_frame, MakeWithdrawalFragment.newInstance()).commit();\n getSupportActionBar().setTitle(\"Make Withdraw\");\n mExpandableListView.setItemChecked(childPosition, true);\n mExpandableListView.setSelection(childPosition);\n break;\n\n case 1:\n fragmentManager.beginTransaction().replace(R.id.content_frame, PrincipleWithdrawFragment.newInstance()).commit();\n getSupportActionBar().setTitle(\"Principal Withdraw\");\n mExpandableListView.setItemChecked(childPosition, true);\n mExpandableListView.setSelection(childPosition);\n break;\n case 2:\n\n fragmentManager.beginTransaction().replace(R.id.content_frame, WithdrawReportFragment.newInstance()).commit();\n getSupportActionBar().setTitle(\"Withdrawal Report\");\n mExpandableListView.setItemChecked(childPosition, true);\n mExpandableListView.setSelection(childPosition);\n break;\n\n }\n break;\n\n\n }\n mDrawerLayout.closeDrawers();\n return false;\n\n }",
"@Override\n public boolean onChildClick(ExpandableListView parent, View v,\n int groupPosition, int childPosition, long id) {\n\n Utilities.SetLog(\"SELECTED ASK\",expandableListDetail.get(\n expandableListTitle.get(groupPosition)).get(\n childPosition).getRespuesta(),WSkeys.log);\n\n AlertDialog.Builder builder = new AlertDialog.Builder(HelpListActivity.this);\n\n builder.setMessage(expandableListDetail.get(\n expandableListTitle.get(groupPosition)).get(\n childPosition).getRespuesta())\n .setTitle(expandableListDetail.get(\n expandableListTitle.get(groupPosition)).get(\n childPosition).getPregunta());\n\n builder.setPositiveButton(R.string.aceptar, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked OK button\n dialog.dismiss();\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n return false;\n }",
"@Override\n public void onGroupExpand(int groupPosition) {\n }",
"@Override\n public void onGroupExpand(int groupPosition) {\n }",
"@Override\n public boolean onChildClick(ExpandableListView expandableListView, View view, int listPos, int childPos, long l) {\n if(activeSearch){\n main.goToProjectActivity(mAdapterSearch.getChild(listPos, childPos));\n }else{\n switch (listPos){\n case 0:\n if(childPos == numToShowAces-1 && childPos != totalAces-1) {\n updateProjectList(acesList, listPos);\n isExpanded = true;\n }\n else\n main.goToProjectActivity(mAdapter.getChild(listPos, childPos));\n break;\n case 1:\n if(childPos == numToShowAws-1 && childPos != totalAws-1) {\n updateProjectList(awsList, listPos);\n isExpanded = true;\n }\n else\n main.goToProjectActivity(mAdapter.getChild(listPos, childPos));\n break;\n case 2:\n if(childPos == numToShowElse-1 && childPos != totalElse-1) {\n updateProjectList(elseList, listPos);\n isExpanded = true;\n }\n else\n main.goToProjectActivity(mAdapter.getChild(listPos, childPos));\n break;\n case 3:\n if(childPos == numToShowRcnc-1 && childPos != totalRcnc-1) {\n updateProjectList(rcncList, listPos);\n isExpanded = true;\n }\n else\n main.goToProjectActivity(mAdapter.getChild(listPos, childPos));\n break;\n }\n }\n\n\n return false;\n }",
"public void initiateExpandableList()\r\n\t{\n\t\tmyList = (ExpandableListView) getView().findViewById(R.id.expandableListView1);\r\n\t\t// setPadding();\r\n\t\t// create the adapter by passing your ArrayList data\r\n\t\tlistAdapter = new FilterListAdapter(getActivity(), filterGroupList);\r\n\t\t// attach the adapter to the list\r\n\t\tmyList.setAdapter(listAdapter);\r\n\r\n\t\tLog.i(\"tag\", \"before expand all\");\r\n\t\t// expand all Groups\r\n\t\texpandAll();\r\n\r\n\t\t// add new item to the List\r\n\t\t// listener for child row click\r\n\t\tmyList.setOnChildClickListener(myListItemClicked);\r\n\t\t// listener for group heading click\r\n\t\tmyList.setOnGroupClickListener(myListGroupClicked);\r\n\r\n\t\t// add a new item to the list\r\n\t\tloadData();\r\n\t\t// notify the list so that changes can take effect\r\n\t\tlistAdapter.notifyDataSetChanged();\r\n\r\n\t\t// collapse all groups\r\n\t\t// collapseAll();\r\n\t\t// expand the group where item was just added\r\n\t\t// myList.expandGroup(groupPosition);\r\n\t\t// set the current group to be selected so that it becomes\r\n\t\t// visible\r\n\t\t// myList.setSelectedGroup(groupPosition);\r\n\t}",
"@Override\r\n public void onClick(View view) {\r\n Toast.makeText(context, \"satu\" +list_data.get(getAdapterPosition()), Toast.LENGTH_SHORT).show();\r\n\r\n }",
"public void showEmptyListMessage() {\n Toast.makeText(getBaseContext(), \"Lista de opiniones vacia!\", Toast.LENGTH_LONG).show();\n }",
"public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id)\r\n\t\t{\n\t\t\tFilterGroupInfo headerInfo = filterGroupList.get(groupPosition);\r\n\t\t\t// display it or do something with it\r\n\t\t\tToast.makeText(getActivity().getApplicationContext(), \"Child on Header \" + headerInfo.getName(), Toast.LENGTH_SHORT).show();\r\n\r\n\t\t\treturn false;\r\n\t\t}",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Toast.makeText(Cardio.this,cardios.get(position).getTitle(), Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onGroupCollapse(int groupPosition) {\n\n }",
"@Override\n public void onGroupCollapse(int groupPosition) {\n\n }",
"@Override\n public void onGroupCollapse(int groupPosition) {\n\n }",
"@Override\n public void onGroupCollapse(int groupPosition) {\n\n }",
"@Override\n public View getGroupView(int groupPosition, boolean isExpanded,\n View convertView, ViewGroup parent) {\n ConvertView=convertView;\n if (ConvertView == null) {\n LayoutInflater inf = (LayoutInflater) context\n .getSystemService(context.LAYOUT_INFLATER_SERVICE);\n ConvertView = inf.inflate(R.layout.disbursement_detail_group, null);\n// ConvertView=convertView;\n }\n// new AsyncTask<Integer, Void, Integer>() {\n// @Override\n// protected Integer doInBackground(Integer... params) {\n dis = (Disbursement) getGroup(groupPosition);\n Log.i(\"AAAAAAAAAAAAAAAA\", disbursementGroups.get(groupPosition).get(\"disbursementId\").toString());\n// disbursementId=Integer.parseInt(disbursementGroups.get(groupPosition).get(\"disbursementId\").toString());\n Log.i(\"dddddddddddddddd\", Integer.toString(groupPosition));\n// disbursementItem.getDisbursementItems(disbursementId);\n// return params[0];\n// }\n//\n// @Override\n// protected void onPostExecute(Integer position) {\n deptName=(TextView)ConvertView.findViewById(R.id.dept_name);\n collectionDate=(TextView)ConvertView.findViewById(R.id.date_time);\n rep=(TextView)ConvertView.findViewById(R.id.rep_name);\n collectionpoint=(TextView)ConvertView.findViewById(R.id.collection_name);\n departmentName=dis.get(\"departmentName\").toString();\n cDate=dis.get(\"collectionDate\").toString();\n deptName.setText(departmentName);\n collectionDate.setText(cDate);\n rep.setText(dis.get(\"employeeName\").toString());\n collectionpoint.setText(dis.get(\"collectionName\").toString());\n// }\n// }.execute(groupPosition);\n\n return ConvertView;\n }",
"@Override\r\n public void onClick(View v) {\n mMyExitDialog.dismiss();\r\n Intent intent = new Intent(KeyList.AKEY_UPDATE_EXPANDABLE_LIST);\r\n intent.putExtra(KeyList.IKEY_ELIST_GROUP_POSITION, \"\" + groupPosition);\r\n intent.putExtra(KeyList.IKEY_ELIST_CHILD_POSITION, \"\" + childPosition);\r\n context.sendBroadcast(intent);\r\n }",
"@Override\n\t public View getGroupView(int groupPosition, boolean isExpanded,View convertView, ViewGroup parent) {\n\t \t \n\t final GroupYeild groupyeild=getGroup(groupPosition);\n\t \n\t final String ParentText = groupyeild.getTankname();\n\t final String parentText2=groupyeild.gethoc();\n\t final String parentText3=groupyeild.getharvestId();\n\t \n\t if (convertView == null) {\n\t LayoutInflater infalInflater = (LayoutInflater) this.contextyeild.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t convertView = infalInflater.inflate(R.layout.list_groupyeild, null);\n\t }\n\t \n\t final TextView lblListHeader = (TextView) convertView.findViewById(R.id.groupyeild1);\n\t lblListHeader.setTypeface(null, Typeface.BOLD);\n\t lblListHeader.setText(ParentText);\n\t // final TextView feeddate = (TextView) convertView.findViewById(R.id.groupyeild2); \n\t //feeddate.setTypeface(null, Typeface.BOLD);\n\t \n\t\t\t\t String[] splitedstr = parentText2.split(\"\\\\s\");\n\t\t\t\t\tfinal String s1=splitedstr[0];\n\t\t\t\t\tfinal String s2=splitedstr[1];\n\t\t\t\t\tfinal String s4=splitedstr[2];\n\t\t\t\t\tfinal String s5=splitedstr[3];\n\t\t\t\t\tfinal String s3=s1+\"-\"+s2;\n\t\t\t\t\t //feeddate.setText(s3);\n\t\t\t\t \n\t \n\t final ImageButton update=(ImageButton)convertView.findViewById(R.id.updateyeild);\n\t update.setOnClickListener(new OnClickListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t final Dialog dialog = new Dialog(contextyeild); \n\t\t \t dialog.setContentView(R.layout.harvestedit);\n\t\t // Set dialog title\n\t\t dialog.setTitle(\"Edit Pond\");\n\t\t dialog.show();\n\t\t final EditText shrimpharvest=(EditText)dialog.findViewById(R.id.shrimpharvest);\n\t\t final EditText harvestsize=(EditText)dialog.findViewById(R.id.harvestsize);\n\t\t try {\n\t\t\t\t\t\t \n\t\t\t\t\t\t\t helper=new DBHelper(contextyeild);\n\t\t\t\t\t\t database=helper.getReadableDatabase();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tString query = (\"select * from HarvestData where HarvestId ='\" + parentText3 + \"'\");\n\t\t\t\t\t \tCursor\tcursor = database.rawQuery(query, null);\n\t\t\t\t\t\t \n\t\t\t\t\t\t\tif(cursor != null){\n\t\t\t\t\t\t\t\tif(cursor.moveToLast()){\n\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t \n\t\t\t\t\t\t\t\t \t String tankId = cursor.getString(cursor.getColumnIndex(\"TankId\"));\n\t\t\t\t\t\t\t\t \t String harvestweight_str=cursor.getString(cursor.getColumnIndex(\"HarvestWeight\"));\n\t\t\t\t\t\t\t\t \t shrimpharvest.setText(harvestweight_str);\n\t\t\t\t\t\t\t\t \t String harvestsize_str=cursor.getString(cursor.getColumnIndex(\"HarvestSize\"));\n\t\t\t\t\t\t\t\t \tharvestsize.setText(harvestsize_str);\n\t\t\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\t cursor.moveToNext();\t \t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} \t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t \n\t\t final EditText harvestpondname=(EditText)dialog.findViewById(R.id.harvestpondname);\n\t\t harvestpondname.setText(ParentText);\n\t\t harvesttime=(TextView)dialog.findViewById(R.id.harvesttime);\n\t\t harvesttime.setText(s4+s5);\n\t\t harvestdate1=(TextView)dialog.findViewById(R.id.harvestcalendar);\n\t\t harvetimgdate=(ImageButton)dialog.findViewById(R.id.harvestimgcalendar);\n\t\t harvetimgtime=(ImageButton)dialog.findViewById(R.id.harvestimgtime);\n\t\t \n\t\t harvetimgdate.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t DatePickerDialog mDatePicker=new DatePickerDialog(contextyeild, new OnDateSetListener() { \n\t\t\t\t\t\t public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\t\t\t\t\t\t // TODO Auto-generated method stub \n\t\t\t\t\t\t /* Your code to get date and time */\n\t\t\t\t\t\t \t//final Calendar c = Calendar.getInstance();\n\t\t\t\t\t\t \t\t//\tc.set(selectedyear, selectedmonth, 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 }\n\t\t\t\t\t\t },start_year, start_month, start_day);\n\t\t\t\t\t\t mDatePicker.setTitle(\"Select date\"); \n\t\t\t\t\t\t mDatePicker.show(); \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t harvetimgtime.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t TimePickerDialog tpd = new TimePickerDialog(contextyeild, //same Activity Context like before\n\t\t\t\t\t\t\t new TimePickerDialog.OnTimeSetListener() {\n\n\t\t\t\t\t\t\t @Override\n\t\t\t\t\t\t\t public void onTimeSet(TimePicker view, int hourOfDay,int minute) {\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t hour = hourOfDay;\n\t\t\t\t\t\t\t \t\t min = minute;\n\t\t\t\t\t\t\t \t\t \n\t\t\t\t\t\t\t \t\t\t String timeSet = \"\";\n\t\t\t\t\t\t\t \t\t\t if (hour > 12) {\n\t\t\t\t\t\t\t \t\t\t hour -= 12;\n\t\t\t\t\t\t\t \t\t\t timeSet = \"PM\";\n\t\t\t\t\t\t\t \t\t\t } else if (hour == 0) {\n\t\t\t\t\t\t\t \t\t\t hour += 12;\n\t\t\t\t\t\t\t \t\t\t timeSet = \"AM\";\n\t\t\t\t\t\t\t \t\t\t } else if (hour == 12)\n\t\t\t\t\t\t\t \t\t\t timeSet = \"PM\";\n\t\t\t\t\t\t\t \t\t\t else\n\t\t\t\t\t\t\t \t\t\t timeSet = \"AM\";\n\t\t\t\t\t\t\t \t\t\t \n\t\t\t\t\t\t\t \t\t\t \n\t\t\t\t\t\t\t \t\t\t String minutes = \"\";\n\t\t\t\t\t\t\t \t\t\t if (min < 10)\n\t\t\t\t\t\t\t \t\t\t minutes = \"0\" + min;\n\t\t\t\t\t\t\t \t\t\t else\n\t\t\t\t\t\t\t \t\t\t minutes = String.valueOf(min);\n\t\t\t\t\t\t\t \t\t\t \n\t\t\t\t\t\t\t \t\t\t // Append in a StringBuilder\n\t\t\t\t\t\t\t \t\t\t String aTime = new StringBuilder().append(hour).append(':')\n\t\t\t\t\t\t\t \t\t\t .append(minutes).append(\" \").append(timeSet).toString();\n\t\t\t\t\t\t\t \t\t\t \n\t\t\t\t\t\t\t \t\t\t harvesttime.setText(aTime); \n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t }, hour, min, false);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t tpd.show();\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t harvestdate1.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t//onCreateDialog(START_DATE_DIALOG_ID);\n\t\t\t\t\t\t\t\t //showDialog(START_DATE_DIALOG_ID);\n\t\t\t\t\t\t\t\t//Toast.makeText(contextyeild, \"hi\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t//((YieldActivity)ExpandableListAdapterYeild.this.contextyeild).showDialog(START_DATE_DIALOG_ID_ADPTER);\n\t\t\t\t\t\t\t\t //harvestdate1.setText(GroupYeild.getdate());\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t DatePickerDialog mDatePicker=new DatePickerDialog(contextyeild, new OnDateSetListener() { \n\t\t\t\t\t public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\t\t\t\t\t // TODO Auto-generated method stub \n\t\t\t\t\t /* Your code to get date and time */\n\t\t\t\t\t \t//final Calendar c = Calendar.getInstance();\n\t\t\t\t\t \t\t//\tc.set(selectedyear, selectedmonth, 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 }\n\t\t\t\t\t },start_year, start_month, start_day);\n\t\t\t\t\t mDatePicker.setTitle(\"Select date\"); \n\t\t\t\t\t mDatePicker.show(); \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t harvesttime.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t//((YieldActivity)ExpandableListAdapterYeild.this.contextyeild).showDialog(TIME_DIALOG_ID);\t\t\n\t\t\t\t\t\t\t\t//final Calendar c = Calendar.getInstance();\n\t\t\t\t //int mHour = c.get(Calendar.HOUR_OF_DAY);\n\t\t\t\t // int mMinute = c.get(Calendar.MINUTE);\n\n\t\t\t\t TimePickerDialog tpd = new TimePickerDialog(contextyeild, //same Activity Context like before\n\t\t\t\t new TimePickerDialog.OnTimeSetListener() {\n\n\t\t\t\t @Override\n\t\t\t\t public void onTimeSet(TimePicker view, int hourOfDay,int minute) {\n\t\t\t\t \n\t\t\t\t hour = hourOfDay;\n\t\t\t\t \t\t min = minute;\n\t\t\t\t \t\t \n\t\t\t\t \t\t\t String timeSet = \"\";\n\t\t\t\t \t\t\t if (hour > 12) {\n\t\t\t\t \t\t\t hour -= 12;\n\t\t\t\t \t\t\t timeSet = \"PM\";\n\t\t\t\t \t\t\t } else if (hour == 0) {\n\t\t\t\t \t\t\t hour += 12;\n\t\t\t\t \t\t\t timeSet = \"AM\";\n\t\t\t\t \t\t\t } else if (hour == 12)\n\t\t\t\t \t\t\t timeSet = \"PM\";\n\t\t\t\t \t\t\t else\n\t\t\t\t \t\t\t timeSet = \"AM\";\n\t\t\t\t \t\t\t \n\t\t\t\t \t\t\t \n\t\t\t\t \t\t\t String minutes = \"\";\n\t\t\t\t \t\t\t if (min < 10)\n\t\t\t\t \t\t\t minutes = \"0\" + min;\n\t\t\t\t \t\t\t else\n\t\t\t\t \t\t\t minutes = String.valueOf(min);\n\t\t\t\t \t\t\t \n\t\t\t\t \t\t\t // Append in a StringBuilder\n\t\t\t\t \t\t\t String aTime = new StringBuilder().append(hour).append(':')\n\t\t\t\t \t\t\t .append(minutes).append(\" \").append(timeSet).toString();\n\t\t\t\t \t\t\t \n\t\t\t\t \t\t\t harvesttime.setText(aTime); \n\t\t\t\t }\n\t\t\t\t }, hour, min, false);\n\t\t\t\t \n\t\t\t\t tpd.show();\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t \n\t\t harvestdate1.setText(s3);\n\t\t \n\t\t Button update=(Button)dialog.findViewById(R.id.harvestSaveEdit);\n\t\t update.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t Button cancel=(Button)dialog.findViewById(R.id.harvestCancelEdit);\n\t\t cancel.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t \n\t\t\t\t}\n\t\t\t});\n\t final ImageButton delete=(ImageButton)convertView.findViewById(R.id.deleteyeild);\n\t delete.setOnClickListener(new OnClickListener() {\n\t \n\t public void onClick(View v) {\n\t AlertDialog.Builder builder = new AlertDialog.Builder(contextyeild);\n\t builder.setMessage(\"Do you want to delete?\");\n\t builder.setCancelable(false);\n\t builder.setPositiveButton(\"Yes\",\n\t new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t \n\t \n\t dialog.cancel();\n\t }\n\t });\n\t builder.setNegativeButton(\"No\",\n\t new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t dialog.cancel();\n\t }\n\t });\n\t AlertDialog alertDialog = builder.create();\n\t alertDialog.show();\n\t }\n\t });\n\t \n\t return convertView;\n\t }",
"@Override\n public void onClick(View v) {\n\n String s = v.getTag().toString();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, s, duration);\n toast.show();\n }",
"@Override\n public void onItemClick(AdapterView<?> a, View v, int position, long id) {\n Toast.makeText(getApplicationContext(), \"Selected :\" + \" \" + listData.get(position), Toast.LENGTH_LONG).show();\n }",
"@Override\n\tpublic View getGroupView(int groupPosition, boolean isExpanded,\n\t\t\tView convertView, ViewGroup parent) {\n\t\tViewHolderParent viewHolder=null;\n\t\tif(convertView==null){\n\t\t\tconvertView=inflater.inflate(R.layout.plan_expand_parent, null);\n\t\t\tviewHolder=new ViewHolderParent();\n\t\t\tviewHolder.tv_parent_content=(TextView) convertView.findViewById(R.id.tv_parent_content);\n\t\t\tconvertView.setTag(viewHolder);\n\t\t}else{\n\t\t\tviewHolder=(ViewHolderParent) convertView.getTag();\n\t\t}\n\t\tString str=list.get(groupPosition);\n\t\tviewHolder.tv_parent_content.setText(str);\n\t\treturn convertView;\n\t}",
"@Override\n public void onGroupCollapse(int groupPosition) {\n }",
"@Override\n public void onClick(View view) {\n ExpandableListView expandableListView_t = (ExpandableListView) findViewById(R.id.main_leftList);\n //expandableListView_t.addHeaderView(header_t,null,false);\n expandableListView_t.setBackgroundResource(R.drawable.drawer_teach_list);\n ExpandListAdapter adapter_t = new ExpandListAdapter(parentItems_T,childItems_T);\n adapter_t.setInflater((LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE),MainActivity.this);\n expandableListView_t.setAdapter(adapter_t);\n }",
"@Override\n public boolean onContextItemSelected(MenuItem item) {\n \tToast.makeText(this, item.getTitle(), Toast.LENGTH_LONG).show();\n \treturn true;\n }",
"@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\tString text = listview.getItemAtPosition(position)+\"\";\n\t\t\n\t\tToast.makeText(context, \"position=\"+position+\" text=\"+text, Toast.LENGTH_SHORT).show();\n\t}",
"@Override\r\n\tpublic View getGroupView(int groupPosition, boolean isExpanded,\r\n\t\t\tView convertView, ViewGroup parent) {\n\t\tLocalInfo localInfo = localInfos.get(groupPosition);\r\n\r\n\t\tif (convertView == null) {\r\n\t\t\tconvertView = (View) layoutInflater.inflate(\r\n\t\t\t\t\tR.layout.layout_company_quality, null);\r\n\t\t\tvHolder = new ViewHolder();\r\n\t\t\t// vHolder.tvTitle = (TextView) convertView\r\n\t\t\t// .findViewById(R.id.Tv_Cultural_Title);\r\n\t\t\tvHolder.tvContent = (TextView) convertView\r\n\t\t\t\t\t.findViewById(R.id.Tv_QualityContent);\r\n\t\t\tvHolder.btnClick = (Button) convertView\r\n\t\t\t\t\t.findViewById(R.id.IvBtn_ContentThree);\r\n\t\t\tif (localInfos.size() - 1 == groupPosition) {\r\n\t\t\t\tvHolder.tvContent.setVisibility(View.VISIBLE);\r\n\t\t\t\tvHolder.btnClick.setText(null);\r\n\t\t\t\tvHolder.btnClick.setCompoundDrawables(null, null, draw, null);\r\n\t\t\t} else {\r\n\t\t\t\tvHolder.tvContent.setVisibility(View.GONE);\r\n\t\t\t}\r\n\r\n\t\t\tconvertView.setTag(vHolder);\r\n\t\t}\r\n\t\tViewHolder viewHolder = (ViewHolder) convertView.getTag();\r\n\t\tbindView(localInfo, viewHolder);\r\n\t\treturn convertView;\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n LinearLayout ll =(LinearLayout)arg0.findViewById(R.id.linearLayout22);\n task =(Task) getChild(groupPosition,childPosition);\n Log.d(\"CHILD\", task.toString());\n\t\t\t\tif(ll.getVisibility()==View.VISIBLE){\n ll.setVisibility(View.GONE);\n\t\t\t\t}else{\n linearLayout=(LinearLayout)arg0.findViewById(R.id.linearLayoutText);\n ll.setVisibility(View.VISIBLE);\n if(previosLL!=null&&previosLL.getVisibility()==View.VISIBLE&&previosLL!=ll){\n previosLL.setVisibility(View.GONE);\n }//if(previosLL!=lr)previosLL=ll;\n previosLL=ll;\n\t\t\t\t}\n\t\t\t//lr.getVisibility()=View.VISIBLE ? lr.setVisibility(Viev.GONE):lr.setVisibility(View.VISIBLE)\n\t\t\t}",
"@Override\n public void onGroupCollapsed(int groupPosition) {\n\n }",
"@Override\n public View getGroupView(int pos, boolean isExpanded, View convertView, ViewGroup viewGroup) {\n if (convertView == null) {\n convertView = inflater.inflate(R.layout.view_group, viewGroup, false);\n }\n\n ((TextView) convertView.findViewById(R.id.text)).setText(data.get(pos).getTitle());\n return convertView;\n }",
"@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n Toast.makeText(getActivity(), \"You Clicked \"+position+\" item. Wait For Coming Functions\",\n Toast.LENGTH_LONG).show();\n }",
"@Override\n protected void onListItemClick(ListView l, View v, int position, long id)\n {\n String selection = l.getItemAtPosition(position).toString();\n Toast.makeText(this, selection, Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(View view) {\n ExpandableListView expandableListView_a = (ExpandableListView) findViewById(R.id.main_leftList);\n expandableListView_a.setBackgroundResource(R.drawable.drawer_admin_list);\n //expandableListView_a.addHeaderView(header_a,null,false);\n ExpandListAdapter adapter_a = new ExpandListAdapter(parentItems_A,childItems_A);\n adapter_a.setInflater((LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE),MainActivity.this);\n expandableListView_a.setAdapter(adapter_a);\n }",
"void onGroupCollapsed(int groupPosition);",
"@Override\n public void onClick(View v) {\n Toast.makeText(context, \"You Clicked \" + result[position], Toast.LENGTH_SHORT).show();\n }",
"@Override\n public String toString() {\n String listChecker;\n if (status) {\n listChecker = \"[\\u2713]\";\n } else {\n listChecker = \"[x]\";\n }\n String finalString = listChecker + \" \" + getActivity();\n return finalString;\n }",
"@Override\n public void onItemExpandCollapse(View view, int position, int type) {\n final int itemType = expandableListAdapter.getItemViewType(position);\n if (itemType == RoomDetailAdapter.TYPE_EXPANDABLE_BACKAUDIO) {\n initViewBackground(view, type);\n view.findViewById(R.id.rl_close_title).setVisibility(type == ExpandableListAdapter.ExpandCollapseAnimation.COLLAPSE ? View.VISIBLE : View.GONE);\n view.findViewById(R.id.tv_music_name_secondary).setVisibility(type == ExpandableListAdapter.ExpandCollapseAnimation.COLLAPSE ? View.GONE : View.VISIBLE);\n } else if (itemType == RoomDetailAdapter.TYPE_EXPANDABLE_CURTAIN || itemType == RoomDetailAdapter.TYPE_EXPANDABLE_Light) {\n initViewBackground(view, type);\n } else {\n initViewBackground(view, ExpandableListAdapter.ExpandCollapseAnimation.COLLAPSE);\n }\n }",
"@Override\n public void onClick(View v) {\n if (currentDetailView == fPosition) {\n tvTitle.setSingleLine(true);\n currentDetailView = -1;\n lastDetailView = null;\n } else {\n tvTitle.setSingleLine(false);\n if (lastDetailView != null) {\n ((TextView) lastDetailView).setSingleLine(true);\n }\n lastDetailView = v;\n currentDetailView = fPosition;\n }\n Log.d(TAG, \"currentDetailView = \" + currentDetailView);\n }",
"@Override\n public void onGroupExpand(int groupPosition) {\n switch (headerList.get(groupPosition).getMenuName()) {\n case (\"About\"):\n fregmentContainer.removeAllViews();\n replaceFragment(new FragmentAbout());\n // getSupportFragmentManager().beginTransaction().add(R.id.fregmentContainer, new FragmentAbout()).addToBackStack(null).commit();\n //Toast.makeText(DrawerActivity.this, \"ABOUT\", Toast.LENGTH_SHORT).show();\n drawer.closeDrawers();\n break;\n case (\"Contact Us\"):\n fregmentContainer.removeAllViews();\n replaceFragment(new FragmentContactUs());\n //().beginTransaction().add(R.id.fregmentContainer, new FragmentContactUs()).addToBackStack(null).commit();\n // Toast.makeText(DrawerActivity.this, \"ABOUT\", Toast.LENGTH_SHORT).show();\n drawer.closeDrawers();\n break;\n case (\"Product Registration\"):\n fregmentContainer.removeAllViews();\n replaceFragment(new ProductRegistrationFragment());\n // getSupportFragmentManager().beginTransaction().add(R.id.fregmentContainer, new ProductRegistrationFragment()).addToBackStack(null).commit();\n //Toast.makeText(DrawerActivity.this, \"ABOUT\", Toast.LENGTH_SHORT).show();\n drawer.closeDrawers();\n break;\n\n }\n\n\n // return true;\n }",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) {\n if ( Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {\n return parent.expandGroup(groupPosition, true);\n }else\n\n return true;\n }",
"@Override\n protected void onPostExecute(Void result) {\n //removes the progress dialog if it's still showing\n if (pd != null && pd.isShowing())\n pd.dismiss();\n\n //navigation buttons to reach the main activities\n Button myEvents_Button = (Button) findViewById(R.id.myEvents);\n Button EventsFestivals_Button = (Button) findViewById(R.id.button2);\n\n myEvents_Button.setVisibility(View.VISIBLE);\n EventsFestivals_Button.setVisibility(View.VISIBLE);\n\n EventsFestivals_Button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n startActivity(getIntent());\n }\n });\n\n //goes to myEvents, and checks to make sure that it doesn't spam the user with notifications\n myEvents_Button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n Intent intent = new Intent(Events_and_Festivals.this, MyEvents.class);\n startActivity(intent);\n }\n });\n\n\n expandableListView = (ExpandableListView) findViewById(R.id.expandableListView);\n\n /**Used with other commented out code. Couldn't get this to work\n //code copied from https://stackoverflow.com/questions/5800426/expandable-list-view-move-group-icon-indicator-to-right\n DisplayMetrics dm = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(dm);\n int width = dm.widthPixels;\n if(android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.JELLY_BEAN_MR2) {\n expandableListView.setIndicatorBounds(width-GetDipsFromPixel(35), width-GetDipsFromPixel(5));\n } else {\n expandableListView.setIndicatorBoundsRelative(width-GetDipsFromPixel(35), width-GetDipsFromPixel(5));\n }*/\n\n\n returnGroupedChildItems();//uses a thread function to return all children with their appropriate parents\n final ExpandableListViewAdapter expandableListViewAdapter = new ExpandableListViewAdapter(getApplicationContext(), ParentList, childContent, dataReturned);\n expandableListView.setAdapter(expandableListViewAdapter);\n\n\n //child onclick\n expandableListView.setOnChildClickListener(new ExpandableListView.OnChildClickListener() {\n @Override\n public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) {\n\n //find viewEntry that was clicked\n ViewEntry viewEntry = (ViewEntry) expandableListView.getItemAtPosition(childPosition + 1);\n\n Bundle extras = new Bundle();\n\n //array that contains all viewEntry object fields\n String[] keys = getResources().getStringArray(R.array.keys);\n\n //adds all information from the chosen viewEntry object into extras so it can be passed to Detailed_View activity\n for (String key : keys) {\n switch (key) {\n case \"unid\":\n extras.putString(key, viewEntry.unid);\n break;\n case \"Type\":\n extras.putString(key, null);\n break;\n default:\n extras.putString(key, viewEntry.getEDByName(key).getText());\n break;\n }\n }\n\n Intent intent = new Intent(Events_and_Festivals.this, Detailed_View.class);\n intent.putExtras(extras);//passes extras to activity\n startActivity(intent);\n\n return false;\n }\n });\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(RecycleTestActivity.this, pos + \"\", Toast.LENGTH_SHORT)\n .show();\n }",
"@Override\n public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) {\n if(convertView == null) {\n final ViewGroup nullParent = null;\n convertView=inflater.inflate(R.layout.searchpref_option_list_item,nullParent);\n }\n // variable declarations\n Item i=(Item) getGroup(groupPosition); // return a list group's data\n TextView optionTitle = (TextView) convertView.findViewById(R.id.search_option_list_item_text); // find the textView's on he banner to be set\n TextView selectedTitle = (TextView) convertView.findViewById(R.id.search_option_list_item_text_element);\n // data extraction\n String option = i.Option; // list group title\n String selected; // used to contain the preview selection in banner\n if(i.MultiSelect) {\n if(i.mSelected.size() > 2) { // when more than two items selected in multi-select\n selected = TextUtils.join(\", \",i.mSelected.subList(0,2)) + \", ...\"; // truncate preview\n }\n else {\n selected = TextUtils.join(\", \",i.mSelected);\n }\n }\n else { // if single selection\n if (i.elements.get(i.elements.size()-1).equals(i.Selected) && !option.equals(\"City\")) { // if it was a custom on\n selected = i.CustomValuePreview; // set the preview selection to the custom value\n }\n else {\n selected = i.Selected; // set the preview selection to the selected child name\n }\n } // list group's element selection for single selection group\n // update view\n optionTitle.setText(option); // set the banner name\n selectedTitle.setText(selected); // set preview text\n convertView.setBackgroundColor(Color.LTGRAY); // set colour of group banner\n // return the updated view\n return convertView;\n }",
"@Override public void onClick(View v) {\n Snackbar.make(groupViewHolder.itemView, \"Group was toggled\", Snackbar.LENGTH_SHORT).show();\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tToast.makeText(getActivity(), listAdapter.getItem(position), Toast.LENGTH_LONG).show();\n\t\t\t}",
"@Override\n public boolean onChildClick(ExpandableListView parent, View v,\n int groupPosition, int childPosition, long id) {\n\n if((listDataChild.get(listDataHeader.get(groupPosition)).get(childPosition)).equals(\"My Profile\"))\n {\n loadFragment(new MyProfile(),true);\n }else if ((listDataChild.get(listDataHeader.get(groupPosition)).get(childPosition)).equals(\"Save Address\")){\n // loadFragment(new Wishlist(),true);\n }else if ((listDataChild.get(listDataHeader.get(groupPosition)).get(childPosition)).equals(\"Change Password\")){\n // loadFragment(new Wishlist(),true);\n }else if ((listDataChild.get(listDataHeader.get(groupPosition)).get(childPosition)).equals(\"Logout\")){\n //loadFragment(new Wishlist(),true);\n logout();\n }else if ((listDataHeader.get(groupPosition)).equals(\"Category\")){\n loadFragment(new Category(),true);\n }else if ((listDataHeader.get(groupPosition)).equals(\"Past Oder\")){\n loadFragment(new MyHistory(),true);\n }else if ((listDataHeader.get(groupPosition)).equals(\"Save Card\")){\n loadFragment(new Home(),true);\n }else if ((listDataHeader.get(groupPosition)).equals(\"Rate US\")){\n try {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"market://details?id=\" + getPackageName())));\n } catch (android.content.ActivityNotFoundException anfe) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://play.google.com/store/apps/details?id=\" + getPackageName())));\n }\n }else if ((listDataHeader.get(groupPosition)).equals(\"Share\")){\n shareApp();\n }else if ((listDataHeader.get(groupPosition)).equals(\"Term & Conditions\")){\n loadFragment(new TermsAndConditions(),true);\n }else if ((listDataHeader.get(groupPosition)).equals(\"Help & Support\")){\n loadFragment(new TermsAndConditions() ,true);\n }else if ((listDataHeader.get(groupPosition)).equals(\"Private Policy\")){\n loadFragment(new PrivatePolicy(),true);\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n String messageText = item.getTitle().toString();\n /*if(item.getGroupId() != 0) {\n R.id.my_group;\n }*/\n switch (item.getItemId()) {\n case R.id.first_item:\n Toast.makeText(this, item.getTitle(), Toast.LENGTH_LONG).show();\n break;\n case R.id.second_item:\n Toast.makeText(this, item.getTitle(), Toast.LENGTH_LONG).show();\n break;\n case R.id.first_in_group:\n if (item.isChecked()) {\n item.setChecked(false);\n messageText += \" unchecked\";\n } else {\n item.setChecked(true);\n messageText += \" checked\";\n }\n\n Toast.makeText(this, messageText, Toast.LENGTH_LONG).show();\n break;\n case R.id.second_in_group:\n if (item.isChecked()) {\n item.setChecked(false);\n messageText += \" unchecked\";\n } else {\n item.setChecked(true);\n messageText += \" checked\";\n }\n\n Toast.makeText(this, messageText, Toast.LENGTH_LONG).show();\n break;\n case R.id.first_in_submenu:\n if (item.isChecked()) {\n item.setChecked(false);\n messageText += \" unchecked\";\n } else {\n item.setChecked(true);\n messageText += \" checked\";\n }\n\n Toast.makeText(this, messageText, Toast.LENGTH_LONG).show();\n\n break;\n case R.id.second_in_submenu:\n Toast.makeText(this, item.getTitle(), Toast.LENGTH_LONG).show();\n break;\n }\n return true;\n }",
"@Override\n public boolean onChildClick(ExpandableListView parent, View v, final int groupPos, final int childPos, long id) { // functions specifies what happens upon a child element click\n final Item listGroup = item.get(groupPos);\n if(listGroup.MultiSelect) { // if group is multi select one\n if(listGroup.mSelected.contains(listGroup.elements.get(childPos))){ // if item is already selected\n listGroup.mSelected.remove(listGroup.elements.get(childPos)); // remove from selection\n }\n else {\n listGroup.mSelected.add(listGroup.elements.get(childPos)); // else add it to the selection\n }\n adapter.notifyDataSetChanged(); // inform to update the elv display\n }\n else { // if group is single select\n String[] dialogMessages = getResources().getStringArray(R.array.elvCustomDialogMessages);\n if(listGroup.elements.size()==childPos+1 && groupPos != 2) { // handle custom requests\n int inputType; // dialog input data type\n final String dialogMessage, before, after; // dialog title message, elv preview variables for custom entry\n if(groupPos==0) { // cost\n inputType = 2;\n dialogMessage = dialogMessages[0];\n before = getString(R.string.search_previewCost); after = \"\";\n }\n /*else if (groupPos==2) { // location\n inputType = 1;\n dialogMessage = dialogMessages[2];\n before = \"\"; after = \"\";\n }\n */else { // distance\n inputType = 2;\n dialogMessage = dialogMessages[3];\n before = getString(R.string.search_previewDistanceBefore); after = getString(R.string.search_previewDistanceAfter);\n }\n\n final ViewGroup nullParent = null;\n View promptsView = LayoutInflater.from(getBaseContext()).inflate(R.layout.input_prompt, nullParent); // get input_prompts.xml view\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(SearchPrefActivity.this);\n alertDialogBuilder.setView(promptsView); // set input_prompts.xml to alert dialog builder\n\n final EditText userInput = (EditText) promptsView.findViewById(R.id.InputPromptUserInput); // enable easy access to object\n userInput.setInputType(inputType); // set the dialog input data type\n TextView promptMessage = (TextView) promptsView.findViewById(R.id.InputPromptMessage);\n promptMessage.setText(dialogMessage); // set the dialog prompt message\n // create the dialog\n alertDialogBuilder\n .setCancelable(false)\n .setPositiveButton(getString(R.string.search_dialog_enter),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n listGroup.Selected = listGroup.elements.get(childPos); // update the selected child item\n listGroup.CustomValue = userInput.getText(); // get the users entered text and save it\n listGroup.CustomValuePreview = before + listGroup.CustomValue.toString() + after; // store the preview text to be shown on list group\n elv.collapseGroup(groupPos); // collapse the list view which causes the view to be regenerated and so new selected item will be shown\n }\n })\n .setNegativeButton(getString(R.string.search_dialog_cancel),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }\n });\n\n AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog\n alertDialog.show(); // show it\n }\n else { // if it's not the custom selection\n listGroup.Selected = listGroup.elements.get(childPos); // set the new selected item for single selection group\n elv.collapseGroup(groupPos); // collapse the list view which causes the view to be regenerated and so new selected item will be shown\n }\n }\n return false;\n }",
"@Override\n public void onExpandingClick(View v) {\n View view = v.findViewById(R.id.image);\n Travel travel = generateTravelList().get(viewPager.getCurrentItem());\n startInfoActivity(view,travel);\n }",
"@Override\r\n public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) {\n if (convertView == null) {\r\n mViewHolder = new MainRemindViewHolder();\r\n convertView = mInflater.inflate(R.layout.view_main_remind_time_line, null);\r\n mViewHolder.setCenterIv((ImageView) convertView.findViewById(R.id.remind_top_center_iv));\r\n mViewHolder.setTimeLineTv((TextView) convertView.findViewById(R.id.main_remind_time_line_tv));\r\n convertView.setTag(mViewHolder);\r\n\r\n } else {\r\n mViewHolder = (MainRemindViewHolder) convertView.getTag();\r\n }\r\n\r\n if (groupPosition == 0) {\r\n mViewHolder.getCenterIv().setImageResource(R.drawable.main_remind_top_center);\r\n } else {\r\n mViewHolder.getCenterIv().setImageResource(R.drawable.main_remind_top_small_center);\r\n }\r\n List<Remind> list = mDataList.get(\"\" + groupPosition);\r\n String time = \"\" + list.get(0).creatTime;\r\n mViewHolder.getTimeLineTv().setText(mRemindDataHelp.getYearAndMonth(Long.parseLong(time)));\r\n convertView.setClickable(true);\r\n return convertView;\r\n }",
"@Override\r\n public boolean onGroupClick(ExpandableListView parent, View v,\r\n int groupPosition, long id) {\n return false;\r\n }",
"@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tToast.makeText(this, String.format(\"Clicked on item #%d with text %s\",\n\t\t\tposition, mAdapter.getItem(position)), Toast.LENGTH_SHORT).show();\n\t}",
"public void expandDescription(final View v){\n if(!descriptionExpanded) {\n //Set line number to unlimited\n mDescription.setMaxLines(Integer.MAX_VALUE);\n\n //Animate expansion\n mAdditionalDetailsLayout.setVisibility(View.VISIBLE);\n\n mFAB.setImageDrawable(getResources().getDrawable(R.drawable.ic_minimize_white));\n descriptionExpanded = true;\n }else{\n //Set line limit\n mDescription.setMaxLines(getApplicationContext().getResources().getInteger(R.integer.lines));\n\n mFAB.setImageDrawable(getResources().getDrawable(R.drawable.ic_add_white));\n\n\n //Animate collapse\n mAdditionalDetailsLayout.setVisibility(View.GONE);\n\n descriptionExpanded = false;\n }\n }",
"@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tString text=listview.getItemAtPosition(position)+\"\";\n\t\tToast tipsToast=Toast.makeText(this, \"position+\"+position+\"text=\"+text, Toast.LENGTH_SHORT);\n\t\ttipsToast.show();\n\t}",
"@Override\r\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\r\n if (ExpandableListView.getPackedPositionType(id) == ExpandableListView.PACKED_POSITION_TYPE_CHILD) {\r\n final int groupPosition = ExpandableListView.getPackedPositionGroup(id);\r\n final int childPosition = ExpandableListView.getPackedPositionChild(id);\r\n\r\n Snackbar.make(findViewById(android.R.id.content), getResources().getString(R.string.snackbar_text_about_delete), Snackbar.LENGTH_LONG)\r\n .setAction(\"dele\", new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n mPresenter.deleteChild(groupPosition, childPosition);\r\n }\r\n })\r\n .setActionTextColor(Color.RED)\r\n .show();\r\n return true;\r\n }\r\n return false;\r\n }",
"@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position,\n long id) {\n Toast.makeText(getApplicationContext(), actorsList.get(position).getName(), Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Log.i(\"Tag\", myfamily.get(position));\n\n Toast.makeText(MainActivity.this, \"Hello \"+myfamily.get(position), Toast.LENGTH_SHORT).show();\n }",
"private void setListenerToListView () {\n competitionsList.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() {\n @Override\n public boolean onGroupClick(final ExpandableListView parent, View v, final int groupPosition, long id) {\n if (parent.isGroupExpanded(groupPosition)) {\n parent.collapseGroup(groupPosition);\n } else {\n final Competition competition = (Competition) parent.getExpandableListAdapter().getGroup(groupPosition);\n if (competitionsAdapter.getTeams(competition).size() == 0) {\n //Show progress dialog\n final ProgressDialog progressDialog = ProgressDialog.show(getContext(), \"Loading...\", \"Loading, wait please\", true);\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n ArrayList<Team> teamsOfCompetition = new ArrayList<>();\n\n try {\n teamsOfCompetition = TeamController.getInstance().getTeamsOfCompetition(competition.getId(), competition.getLeague());\n } catch (ExecutionException e) {\n e.printStackTrace();\n //TODO: ERROR CONTROL\n } catch (InterruptedException e) {\n e.printStackTrace();\n //TODO: CONTROL MESSAGE\n }\n\n competitionsAdapter.addTeams(competition, teamsOfCompetition);\n\n final ArrayList<Team> finalTeamsOfCompetition = teamsOfCompetition;\n\n if (getActivity() == null)\n return;\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n //if id of team 0 is -1 or tems is empty, error message\n if (finalTeamsOfCompetition.isEmpty()) {\n errorMessage.setText(\"You have no internet connection...\");\n errorMessage.setVisibility(View.VISIBLE);\n } else if (finalTeamsOfCompetition.get(0).getId() == -1) {\n errorMessage.setText(finalTeamsOfCompetition.get(0).getName());\n errorMessage.setVisibility(View.VISIBLE);\n competitionsList.setVisibility(View.GONE);\n } else {\n competitionsList.setVisibility(View.VISIBLE);\n parent.expandGroup(groupPosition);\n //TODO: PUT A FILL STAR (FAV) TO THE TEAMS THAT ARE ALREADY ADDED AND AN EMPTY STAR TO THE OTHERS\n }\n //Hide progress bar\n progressDialog.dismiss();\n }\n });\n }\n }).start();\n } else {\n parent.expandGroup(groupPosition);\n }\n }\n\n return true;\n }\n });\n\n //OnChildClick add team clicked to my teams\n competitionsList.setOnChildClickListener(new ExpandableListView.OnChildClickListener() {\n @Override\n public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) {\n final Team team = (Team) parent.getExpandableListAdapter().getChild(groupPosition,childPosition);\n\n if (TeamController.getInstance().isTeam(getContext(), team.getId())) {\n Toast.makeText(getContext(),team.getName() + \" is already in your teams!\", Toast.LENGTH_SHORT).show();\n return true;\n }\n\n new AlertDialog.Builder(getContext())\n .setMessage(\"Do you want to add \" + team.getName() + \" to your teams?\")\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n TeamController.getInstance().storeTeam(getContext(), team);\n\n Toast.makeText(getContext(),team.getName() + \" was added to your teams!\", Toast.LENGTH_SHORT).show();\n //TODO: UPDATE LIST VIEW AFTER ADD THE TEAM, PUT STAR IN THE TEAM\n }\n }).setNegativeButton(android.R.string.no, null).show();\n\n return true;\n }\n });\n }",
"@Override\n public void init(LayoutInflater inflater, ViewGroup parent) {\n mView = inflater.inflate(R.layout.project_task_layout, parent, false);\n mTaskList = (ExpandableListView) mView.findViewById(R.id.task_list);\n// mTaskList.setHasFixedSize(true);\n// final LinearLayoutManager mLayoutManager = new LinearLayoutManager(inflater.getContext());\n// mTaskList.setLayoutManager(mLayoutManager);\n mProjectName = (TextView) mView.findViewById(R.id.project_name);\n\n final LinearLayout linearLayout = (LinearLayout) mView.findViewById(R.id.collapse_layout);\n\n mProjectName.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if(linearLayout.getVisibility() == View.VISIBLE)\n collapse(linearLayout);\n else\n expand(linearLayout);\n\n }\n });\n\n mTaskList.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() {\n @Override\n public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) {\n // We call collapseGroupWithAnimation(int) and\n // expandGroupWithAnimation(int) to animate group\n // expansion/collapse.\n if ( Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {\n return parent.expandGroup(groupPosition, true);\n }else\n\n return true;\n }\n });\n\n\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String SlectedCountry = countryName[+position];\n Toast.makeText(getApplicationContext(), SlectedCountry, Toast.LENGTH_SHORT).show();\n\n }",
"public interface FragmentListDisplayListener {\n void updateListWithItem(long article);\n void setAdapter(SimpleCursorAdapterListArticle adapter, AdapterExpandableListArticle adapterExp);\n}",
"@Override\n public boolean onChildClick(ExpandableListView parent, View v,\n int groupPosition, int childPosition, long id) {\n\n Intent dataIntent = new Intent();\n\n String data = listDataChild.get(\n listDataHeader.get(groupPosition)).get(childPosition);\n\n dataIntent.putExtra(\"Item\", data);\n setResult(11, dataIntent);\n finish();\n return false;\n }",
"public void showDetails(View view){\n View parent=(View)view.getParent();\n taskname=(TextView)parent.findViewById(R.id.tname);\n String ts=String.valueOf(taskname.getText());\n ArrayList<String>a = help.getAllTaskDtae( ts);\n if(a.isEmpty() ) {\n // show message\n showMessage(\"Error\",\"Nothing found\");\n return;\n }\n StringBuffer buffer = new StringBuffer();\n if(a.contains(ts)) {\n buffer.append(\"Task Name :- \"+ a.get(0)+\"\\n\");\n buffer.append(\"Task Date :- \"+ a.get(1)+\"\\n\");\n buffer.append(\"Remainder Date :\"+ a.get(2)+\"\\n\\n\");\n }\n\n //Show all data\n showMessage(\"Data\",buffer.toString());\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_fragment_search, container, false);\n final Button search = (Button) rootView.findViewById(R.id.listVse);\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setCancelable(false)\n .setView(R.layout.fragment_fragment_recipes)\n .setPositiveButton(\"ОК\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n //search.setText(selection);\n dialog.cancel();\n }\n })\n .setNegativeButton(\"Отмена\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n\n final AlertDialog listDialog = builder.create();\n\n\n search.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n listDialog.show();\n expListView = (ExpandableListView) listDialog.findViewById(R.id.expListView);\n //Это наверн не надо, но если будет надо, то раскомменть здесь + в кнопке ОК\n expListView.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() {\n\n @Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n //Установить в Selection text из этой херни.\n selection = parent.getExpandableListAdapter().getGroup(groupPosition).toString();\n return false;\n }\n });\n\n expListView.setOnChildClickListener(new ExpandableListView.OnChildClickListener() {\n\n @Override\n public boolean onChildClick(ExpandableListView parent, View v,\n int groupPosition, int childPosition, long id) {\n //Установить в Selection text из этой херни.\n selection += \": \" + parent.getExpandableListAdapter().getChild(groupPosition, childPosition).toString();\n search.setText(selection);\n listDialog.dismiss();\n return false;\n }\n });\n expListDetail = ListData.loadData();\n\n expListTitle = new ArrayList<>(expListDetail.keySet());\n expListAdapter = new ListAdapter(getContext(), expListTitle, expListDetail);\n\n expListView.setAdapter(expListAdapter);\n }\n });\n\n\n return rootView;\n }",
"@Override\n public View getChildView(int pos, int childPos, boolean isExpanded, View convertView, final ViewGroup viewGroup) {\n if (convertView == null) {\n convertView = inflater.inflate(R.layout.view_group_item, viewGroup, false);\n }\n\n final Rule model = (Rule) data.get(pos).getRules().get(childPos);\n ((TextView) convertView.findViewById(R.id.text)).setText(model.getTitle());\n\n convertView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n DecisionsActivity.Companion.start(viewGroup.getContext(), model);\n }\n });\n\n return convertView;\n }",
"private void ItemFragmentDescription(String activityTitle) {\n onView(withId(R.id.description_tv)).perform(click());\n onView(withText(String.format(\"%s %s\", \"About\", activityTitle))).check(matches(isDisplayed()));\n onView(withText(R.string.points_of_interest)).check(matches(isDisplayed()));\n onView(withText(\"Close\")).perform(click()); //close the alert dialog\n }",
"@Override\n public void onListItemClicked(int position) {\n\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(mContext, \"You Clicked \" + position, Toast.LENGTH_LONG).show();\n }",
"private void updateActionText() {\n getTemplatePresentation().setText(myIsExpanded ? myToCollapseText : myToExpandText);\n }",
"private void showText(String msg)\n {\n\n popup.setText(msg);\n\n listView.animate().alpha(0.3f).setDuration(1000);\n\n popup.setVisibility(View.VISIBLE);\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n if (isChecked) {\n Toast.makeText(MainActivity.this, item[which], Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) {\n if (parent.getExpandableListAdapter().getChildrenCount(groupPosition) == 0) {\n elv.collapseGroup(groupPosition);\n }\n return false;\n }",
"@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n \tsuper.onListItemClick(l, v, position, id);\n \tLog.i(TAG, \"Position: \" + position);\n \t/*String item = (String) getListAdapter().getItem(position);\n \tnew AlertDialog.Builder(this)\n \t .setTitle(\"Test\")\n \t .setMessage(item)\n \t .setPositiveButton(\"OK\",\n \t new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int which) {}}\n \t )\n \t .show();\n \t\n Toast.makeText(this, item + \" selected\", Toast.LENGTH_LONG).show();*/\n }",
"public View getView(int position, View convertView, ViewGroup parent) {\n TextView tv = (TextView) super.getView(position, convertView, parent);\n\n // Set the text color of spinner item\n tv.setTextColor(Color.GRAY);\n tv.setText(list.get(position).getGroupName());\n Log.e(\"Group======>\", list.get(position).getGroupName());\n group = list.get(position).getGroupName();\n // Return the view\n return tv;\n }",
"@Override\n public void onClick(View v) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(Resume_create_employee.this);\n builder.setTitle(\"Select\");\n ListView list = new ListView(Resume_create_employee.this);\n\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(Resume_create_employee.this, R.layout.shortlistitem,\n R.id.textView1, str_exp);\n\n list.setAdapter(adapter);\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n // TODO Auto-generated method stub\n if (dialog.isShowing()) {\n\n dialog.dismiss();\n\n\n }\n res_exp.setText(str_exp[position]+ \" years\");\n res_exp.setTextColor(Color.parseColor(\"#000000\"));\n }\n });\n builder.setView(list);\n dialog = builder.create();\n dialog.show();\n }",
"protected void collapseAll() {\n Activity a = getCurrentActivity();\n if (a instanceof SessionsExpandableListActivity) {\n SessionsExpandableListActivity sela = (SessionsExpandableListActivity) a;\n \n sela.collapseAll();\n Log.i(\"collapseAll()\", \"collapsed!\");\n }\n }",
"@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tString selection = l.getItemAtPosition(position).toString();\n\t\tToast.makeText(this, selection, Toast.LENGTH_LONG).show();\n\t}",
"@Override\r\n public boolean onGroupClick(ExpandableListView parent, View v,\r\n int groupPosition, long id) {\n if (sign == -1) {\r\n // 展开被选的group\r\n data_list.expandGroup(groupPosition);\r\n // 设置被选中的group置于顶端\r\n data_list.setSelectedGroup(groupPosition);\r\n sign = groupPosition;\r\n } else if (sign == groupPosition) {\r\n data_list.collapseGroup(sign);\r\n sign = -1;\r\n } else {\r\n data_list.collapseGroup(sign);\r\n // 展开被选的group\r\n data_list.expandGroup(groupPosition);\r\n // 设置被选中的group置于顶端\r\n data_list.setSelectedGroup(groupPosition);\r\n sign = groupPosition;\r\n }\r\n return true;\r\n }",
"@Override\n public void onItemClicked(RecyclerView recyclerView, int position, View v) {\n Toast.makeText(getApplicationContext(), znamkyItemList.get(position).popis, Toast.LENGTH_LONG).show();\n\n }",
"@Override\n public void onClick(View v) {\n lastSelectedSpotIndex=position;\n Toast.makeText(context, \"You Clicked \"+categoryNames[position], Toast.LENGTH_LONG).show();\n }",
"public void showMessage(int i) {\n ToastHelper.showLongToast(getContext().getString(i));\n }"
] |
[
"0.68657804",
"0.6452639",
"0.6452639",
"0.6320184",
"0.6286241",
"0.62029755",
"0.6167525",
"0.6111258",
"0.6075326",
"0.60327077",
"0.60032207",
"0.59802175",
"0.5968082",
"0.59547323",
"0.59494674",
"0.5937354",
"0.5929881",
"0.59171784",
"0.5913461",
"0.5886883",
"0.5879559",
"0.5835655",
"0.5833048",
"0.58301693",
"0.58301693",
"0.58163655",
"0.5813969",
"0.57942677",
"0.57923543",
"0.5789402",
"0.57716775",
"0.5761652",
"0.5747534",
"0.5747534",
"0.5747534",
"0.57431954",
"0.57235044",
"0.57188314",
"0.5708332",
"0.56995803",
"0.56962675",
"0.5687924",
"0.56853783",
"0.56807584",
"0.56764793",
"0.56623197",
"0.56507593",
"0.56348807",
"0.5625852",
"0.5597012",
"0.55928946",
"0.5586654",
"0.55659854",
"0.5564248",
"0.5557725",
"0.5533425",
"0.5531383",
"0.55213016",
"0.5507956",
"0.5505923",
"0.54913855",
"0.5490859",
"0.5487516",
"0.5478456",
"0.5470642",
"0.5469987",
"0.54621243",
"0.5453766",
"0.5452726",
"0.54416966",
"0.5435021",
"0.5432575",
"0.54306126",
"0.54174006",
"0.5411043",
"0.5408145",
"0.5407869",
"0.54057395",
"0.54053915",
"0.5390688",
"0.53902686",
"0.5383638",
"0.5382799",
"0.5376026",
"0.53605956",
"0.535976",
"0.5358931",
"0.533619",
"0.53341615",
"0.5333893",
"0.53255475",
"0.5322588",
"0.5321004",
"0.5318469",
"0.53116155",
"0.530956",
"0.5307104",
"0.5304205",
"0.52924436",
"0.5271224"
] |
0.58932006
|
19
|
get user input and set it to result edit text
|
public void onClick(DialogInterface dialog,int id) {
Toast.makeText(EditEventDetails.this, "Event Edited!", Toast.LENGTH_LONG).show();
Intent i = new Intent(EditEventDetails.this, NavDrawer.class);
startActivity(i);
finish();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private String getAndClrInput(){\n\t\tString theReturn = userInput.getText();\n\t\tuserInput.setText(\"\");\n\t\treturn theReturn;\n\t}",
"@Override\n public void onClick(View v) {\n String inputFieldText = ((TextView) findViewById(R.id.inputField)).getText().toString();\n\n // Set text to custom text, or if custom text is empty set to default hint\n if (inputFieldText.isEmpty()) {\n ((TextView) findViewById(R.id.text)).setText(\"Enter your OWN text!\");\n } else {\n ((TextView) findViewById(R.id.text)).setText(inputFieldText);\n }\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tinput(input.getText().toString());\n\t\t\t\tshow.setText(output.toString());\n\t\t\t}",
"String userInputFromTextArea();",
"public void inputText(View v) {\n EditText textIn = (EditText) findViewById(R.id.waitingTime);\n\n TextView textOut = (TextView) findViewById(R.id.question);\n textOut.setText(textIn.getText());\n }",
"protected void saveInput() {\r\n value = valueText.getText();\r\n }",
"private void setToEdit(String input){\n ToEdit = input;\n }",
"private void getTextFromInput() {\n firstName = firstNameField.getText();\n lastName = lastNameField.getText();\n age = ageField.getText();\n email = emailField.getText().toLowerCase();\n }",
"public void onClick(View view){ // that executes the following code.\n // Take the text input to the EditText field...\n String changeText = editV.getText().toString();\n // and set the TextView to that input.\n textV.setText(changeText);\n }",
"@Override\n public void onClick(View v) {\n String inputText = inputEditText.getText().toString();\n\n // Show the user's input text\n messageTextView.setText(inputText);\n\n }",
"public void changeText()\n {\n Double base = 1.0;\n Double exponent = 0.0;\n\n try\n {\n /*get the values of the text inputs and set them to their respective variable, converting them to\n a double*/\n base = Double.parseDouble(txtBase.getText());\n exponent = Double.parseDouble(txtExponent.getText());\n }\n catch (NumberFormatException e) {\n /*On NumberFormatException, do nothing. Suppresses errors in the console which we do not need to\n know about, this is an expected and solved issue.*/\n }\n\n //calculate the new result, based on the current values of exponent and base, then set it to the output.\n Double result = Math.pow(base, exponent);\n lblResult.setText(result.toString());\n }",
"public String GetInput(JTextField textField, String text)\r\n {\r\n textField.selectAll();\r\n text = textField.getText();\r\n JOptionPane.showMessageDialog(this,\"<html><font size = 5>You enter: \\\"\"+ text+\"\\\"! \"\r\n +\"Please press \\\"OK\\\" to continue or press \\\"x\\\"\"\r\n + \" to exit</font></html>\");\r\n textField.setText(\"\");\r\n return text;\r\n }",
"public void userNameInput()\n {\n if(forgotPasswordModel.userExists(textBox1.getText())) {\n\n user = forgotPasswordModel.getUser(textBox1.getText());\n userName = false;\n secQuestion = true;\n String txt = \"Your secret question is: \" + user.getSecretQ();\n labelHeader.setText(txt);\n textBox1Label.setText(\"Answer\");\n textBox1.promptTextProperty().set(\"Security Question Answer\");\n textBox1.setText(\"\");\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setContentText(\"Username does not exist!\");\n alert.show();\n }\n }",
"public static void InputText(final Activity context, String title,String desc, String hintText, final InputResultListener listener)\n {\n final EditText input =new EditText(context);\n input.setHint(hintText);\n\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setTitle(title);\n builder.setMessage(desc);\n builder.setView(input);\n\n\n // Set up the buttons\n builder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n\n InputMethodManager imm = (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(input.getWindowToken(), 0);\n dialog.dismiss();\n String result = input.getText().toString();\n\n // MainActivity mainActivity = new MainActivity(); //MainActivity에 있는 mTodayMessageButton 과 mViewTodayMessageDivider를 전역으로 불러오기 위해서 생성.\n//\n// if(result.length() == 0) //입력된 텍스트가 하나도 없다면\n// {\n// //result = \"오늘의 화이팅 한마디\";\n// //mainActivity.txtTodayMessage.setTextColor(Color.parseColor(\"#c0c0c0\"));\n// mainActivity.mViewTodayMessageDivider.setVisibility(View.VISIBLE);\n// mainActivity.mTodayMessageButton.setVisibility(View.VISIBLE); // 오늘의 한미디 편집 아이콘 상시 노출로 수정[2019.10.17 테일러]\n// }\n// else //입력된 텍스트가 하나라도 있다면\n// {\n// mainActivity.txtTodayMessage.setTextColor(Color.parseColor(\"#ffffff\")); // 텍스트의 색상을 하얀색으로 변경\n// mainActivity.mViewTodayMessageDivider.setVisibility(View.INVISIBLE);\n// mainActivity.mTodayMessageButton.setVisibility(View.VISIBLE);\n// }\n\n listener.onInputText(result);\n\n //input.clearFocus();\n //SystemUtils.hideSoftKeyboard(context);\n\n }\n });\n\n builder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n InputMethodManager imm = (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(input.getWindowToken(), 0);\n\n dialog.cancel();\n\n //input.clearFocus();\n //SystemUtils.hideSoftKeyboard(context);\n }\n });\n\n builder.show();\n }",
"private void show_input() {\n clear();\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"ادخل رقم البطاقة\");\n\n// Set up the input\n final EditText input = new EditText(this);\n// Specify the type of input expected; this, for example, sets the input as a password, and will mask the text\n input.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_TEXT_VARIATION_PASSWORD);\n builder.setView(input);\n\n// Set up the buttons\n builder.setPositiveButton(\"تم\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n String Customer_id = input.getText().toString();\n getMenuID_Card(getCardURL, Customer_id);\n Log.d(\"karrar\", \"getMenuID_Card func \" + Customer_id);\n session.setScanfor(\"0\");\n\n }\n });\n// builder.setNegativeButton(\"الغاء\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n// dialog.cancel();\n// }\n// });\n\n builder.show();\n }",
"private void updateText()\n\t{\n\t\tlong longResult;\t\t//holds the value of result casted to type long\n\t\tif(result % 1 == 0)\n\t\t{\n\t\t\tlongResult = (long)result;\n\t\t\tupdateText += longResult;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tupdateText += result;\n\t\t}\n\t\tentry.setText (\"\");\n\t\tentry.setText (updateText);\n\t\tupdateText = \"\";\n\t\tentry.grabFocus();\n\t}",
"public static void display(String result){\n\t\tresults.setText(result);\n\t}",
"@Override\n public void onClick(View v) {\n String userEnteredText = ((EditText) findViewById(R.id.editText)).getText().toString();\n\n // If the text field is empty , update label with default text string.\n if (userEnteredText.isEmpty()) {\n textView.setText(\"Enter your own text\");\n } else {\n textView.setText(userEnteredText);\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\n String input = Text.getText().toString();\n\n Intent intent = new Intent();\n intent.putExtra(\"?\", input);\n\n setResult(RESULT_OK, intent);\n finish();\n\t\t\t}",
"@Override\n //nhan ket qua man hinh khac tra ve Main\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if (requestCode == REQUEST_CODE_EDIT && resultCode == RESULT_OK && data != null){\n String name = data.getStringExtra(\"New\");\n txtName.setText(name);\n }\n super.onActivityResult(requestCode, resultCode, data);\n }",
"String getInput();",
"private void showResult(final String textToShow) {\n // Run on UI thread as we'll updating our app UI\n runOnUiThread(\n () -> {\n // Append the result to the UI.\n resultTextView.append(textToShow);\n\n // Clear the input text.\n inputEditText.getText().clear();\n\n // Scroll to the bottom to show latest entry's classification result.\n scrollView.post(() -> scrollView.fullScroll(View.FOCUS_DOWN));\n });\n }",
"String getUserInput();",
"private void getUserTextInput() {\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n mZipcodeInput = Integer.parseInt(mBinding.fragmentSearchZipcodeTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n mCityInput = mBinding.fragmentSearchCityTxt.getText().toString().trim();\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n mMinSurfaceInput = Utils.convertAreaAccordingToPreferences(mActivity, mBinding.fragmentSearchMinSurfaceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n mMaxSurfaceInput = Utils.convertAreaAccordingToPreferences(mActivity, mBinding.fragmentSearchMaxSurfaceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n mMinPriceInput = Utils.convertPriceAccordingToPreferences(mActivity, mBinding.fragmentSearchMinPriceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n mMaxPriceInput = Utils.convertPriceAccordingToPreferences(mActivity, mBinding.fragmentSearchMaxPriceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n mFloorsInput = Integer.parseInt(mBinding.fragmentSearchMinFloorsTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchForSaleTxt.getText()))\n mForSaleDate = Converters.dateToTimestamp(Utils.convertStringToDate(mBinding.fragmentSearchForSaleTxt.getText().toString().trim()));\n if (!TextUtils.isEmpty(mBinding.fragmentSearchSoldTxt.getText()))\n mSoldDate = Converters.dateToTimestamp(Utils.convertStringToDate(mBinding.fragmentSearchSoldTxt.getText().toString().trim()));\n }",
"protected SelectionText input() {\n return inputter;\n }",
"String userInput(String question);",
"@FXML\n private void handleUserInput() {\n String input = inputTextField.getText();\n storeUserInputHistory(input);\n try {\n Command command = ParserFactory.parse(input);\n command.execute(tasks, storage, history);\n } catch (ChronologerException e) {\n e.printStackTrace();\n }\n printUserMessage(\" \" + input);\n printChronologerMessage(UiMessageHandler.getOutputForGui());\n inputTextField.clear();\n }",
"private static String inputString() {\n Scanner userInput = new Scanner(System.in);\n System.out.print(\"Insert text: \");\n String inputText = userInput.nextLine();\n return inputText;\n }",
"public static String getInputText(){\n\t\treturn textArea.getText();\n\t}",
"protected abstract void fillPromptText();",
"public abstract void showInputBox(String message, Consumer<String> resultCallback);",
"public void takeUserInput() {\n\t\t\r\n\t}",
"public String getInput() {\r\n return getText();\r\n }",
"public String getText(){\n return input.getText().toString();\n }",
"public String getAnswer(String input)\n\t{\n\t\tString answer = \"\";\n\t\t\n\t\tanswer = JOptionPane.showInputDialog(null, input);\n\t\t\n\t\treturn answer;\n\t}",
"protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }",
"private void getUserInput() {\n getUserTextInput();\n getUserPhotoChoice();\n getUserRoomChoice();\n getUserBedroomsChoice();\n getUserBathroomsChoice();\n getUserCoownerChoice();\n getUserIsSoldChoice();\n getUserTypeChoice();\n mAmenitiesInput = Utils.getUserAmenitiesChoice(mBinding.chipGroupAmenities.chipSchool,\n mBinding.chipGroupAmenities.chipShop, mBinding.chipGroupAmenities.chipTransport,\n mBinding.chipGroupAmenities.chipGarden);\n }",
"private static void showInputDialog(Context c, int titleID, int messageID, EntryType type, final IInputCallback listener){\n\t\t// Create a textview for the entry\n\t\tfinal EditText et = new EditText(c);\n\t\tswitch(type){\n\t\tcase Number:\n\t\t\tet.setInputType(EditorInfo.TYPE_CLASS_NUMBER);\n\t\t\tbreak;\n\t\tcase String:\n\t\t\tet.setInputType(EditorInfo.TYPE_CLASS_TEXT);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(\"Must supply an EntryType for the input\");\n\t\t}\n\t\t\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(c);\n\t\t\n\t\tbuilder.setTitle(titleID);\n\t\tif(messageID > -1){\n\t\t\tbuilder.setMessage(messageID);\n\t\t}\n\t\tbuilder.setView(et)\n\t\t.setPositiveButton(R.string.okay, new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tlistener.onInput(et.getText().toString());\n\t\t\t}\n\t\t})\n\t\t.setNegativeButton(R.string.close, null);\n\t\t\n\t\tbuilder.create().show();\n\t}",
"private static String getUserText()\n {\n\t// Reads the users input.\n\tBufferedReader optionReader = new BufferedReader(new InputStreamReader(System.in));\n\n\ttry\n\t {\n\t\treturn(optionReader.readLine());\n\t }\n\tcatch(Exception ex)\n\t {\n\t\treturn(null);\n\t }\n }",
"private void handleTextInputCallback(TextInputCallback tic)\n throws IOException {\n System.out.print(tic.getPrompt());\n System.out.flush();\n tic.setText((new BufferedReader\n (new InputStreamReader(System.in))).readLine());\n }",
"public final void showInput(final SimulationVersion result) {\r\n // Eingegebene Investitionen werden angezeigt\r\n verticalPanelInput = new VerticalPanel();\r\n lbResults = new Label(\"Ihre Eingabe: \");\r\n lbResults.setStyleName(\"gwt-Panel-Invest-Inputlabel\");\r\n // Ein neues Panel wird angebracht\r\n absolutePanelYear[stackYear - 1].add(lbResults, 10, 10);\r\n absolutePanelYear[stackYear - 1].add(verticalPanelInput, 10, 34);\r\n verticalPanelInput.setSize(\"154px\", \"18px\");\r\n\r\n // Labels mit den Daten befüllen\r\n lbInvestMarketing = new Label(\"Marketing: \" + result.getMarketing());\r\n lbInvestPersonal = new Label(\"Personal: \" + result.getPersonal());\r\n lbInvestPrice = new Label(\"Produktpreis: \" + result.getPrice());\r\n lbInvestMachineValue = new Label(\"Maschinenwert: \"\r\n + result.getMachineValue());\r\n lbInvestMachinesCapacity = new Label(\"Maschinenkapazit\\u00E4t: \"\r\n + result.getMachineCapacity());\r\n lbInvestMachinePersonal = new Label(\"Maschinenpersonal: \"\r\n + result.getMachineStaff());\r\n\r\n // Labels werden auf dem VerticalPanel angebracht\r\n verticalPanelInput.setSize(\"210px\", \"236px\");\r\n verticalPanelInput.add(lbInvestMarketing);\r\n verticalPanelInput.add(lbInvestPersonal);\r\n verticalPanelInput.add(lbInvestPrice);\r\n verticalPanelInput.add(lbInvestMachineValue);\r\n verticalPanelInput.add(lbInvestMachinesCapacity);\r\n verticalPanelInput.add(lbInvestMachinePersonal);\r\n }",
"private void showInputDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"App info\");\n builder.setMessage(message);\n builder.setPositiveButton(\" Done \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n builder.show();\n }",
"private void showInputDialog(TextView target, int length, String title) {\n InputDialog dialog = new InputDialog(mainActivity);\n dialog.setUp(target, length, title);\n dialog.setContents(target.getText().toString());\n dialog.show();\n }",
"public void onClick(View irrelevant)\n {\n Intent myIntent = new Intent(MainActivity.this, OptionsActivity.class);\n inputData = (EditText) findViewById(R.id.DataInput);\n String inputAddressString = inputData.getText().toString();\n\n // Create a bundle to pass in data to results activity\n Bundle infoBundle = new Bundle();\n infoBundle.putString(\"inputAddress\", inputAddressString);\n myIntent.putExtras(infoBundle);\n startActivity(myIntent);\n\n // Old code to show toast message of user input\n /*\n inputData = (EditText) findViewById(R.id.DataInput);\n Toast toast = new Toast(getApplicationContext());\n toast.setGravity(Gravity.TOP| Gravity.LEFT, 0, 0);\n toast.makeText(MainActivity.this, inputData.getText(), toast.LENGTH_SHORT).show();\n */\n }",
"public void run () {\n\t\t\t\t//This is the method that gets called everytime the GUI needs to be updated.\n\t\t\t\t\n\t\tuserText.setEditable(tof);\n\t\t\t}",
"private void updateInformation(){\n view.getPrompt().setText(getPrompt());\n view.getScore().setText(getScore());\n }",
"public void userInput() {\r\n System.out.println(\"You want to convert from:\");\r\n this.fromUnit = in.nextLine();\r\n System.out.print(\"to: \");\r\n this.toUnit = in.nextLine();\r\n System.out.print(\"The value is \");\r\n this.value = in.nextDouble();\r\n }",
"@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\ttx.setText(editText.getText().toString());\r\n\t\t\t\t\t}",
"private void updateTextBox(){\n\t\tString tmpWord = game.getTempAnswer().toString();\n\t\tString toTextBox = \"\";\n\t\tStringBuilder sb = new StringBuilder(tmpWord);\n\n\t\t//if a letter is blank in the temp answer make it an underscore. Goes for as long as the word length\n\t\tfor (int i = 0; i<tmpWord.length();i++){\n\t\t\tif(sb.charAt(i) == ' ')\n\t\t\t\tsb.setCharAt(i, '_');\n\t\t}\n\t\ttoTextBox = sb.toString();\n\t\ttextField.setText(toTextBox);\n\t\tlblWord.setText(toTextBox);\n\t}",
"public void addToTextbox(String input) {\n\t\tlabel.setText(input.trim());\n\t}",
"@Override\n public void onClick(View v) {\n\n //edittext object of the item entered\n EditText text = (EditText) findViewById(R.id.item_text);\n\n //create new intent to put the item in\n Intent data = new Intent();\n data.putExtra(\"text\", text.getText().toString());\n\n //attach data to return call and go back to main view\n setResult(RESULT_OK, data);\n finish();\n }",
"public OverviewSmallStringInputDialogOptions showInputDialog(String referenceID, String title, String textContent, String label, String initialValueText, String okText, String cancelText) {\n/*Generated! Do not modify!*/ InputDialogParameters inputDialogParameters = new InputDialogParameters();\n/*Generated! Do not modify!*/ inputDialogParameters.setReferenceID(referenceID);\n/*Generated! Do not modify!*/ inputDialogParameters.setTitle(title);\n/*Generated! Do not modify!*/ inputDialogParameters.setTextContent(textContent);\n/*Generated! Do not modify!*/ inputDialogParameters.setLabel(label);\n/*Generated! Do not modify!*/ inputDialogParameters.setInitialValueText(initialValueText);\n/*Generated! Do not modify!*/ inputDialogParameters.setOkText(okText);\n/*Generated! Do not modify!*/ inputDialogParameters.setCancelText(cancelText);\n/*Generated! Do not modify!*/ replyDTO.setInputDialogParameters(inputDialogParameters);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ \taddRecordedAction(\"showInputDialog(\" + escapeString(referenceID) + \", \" + escapeString(title) + \", \" + escapeString(textContent) \n/*Generated! Do not modify!*/ \t\t\t+ \", \" + escapeString(label) + \", \" + escapeString(initialValueText) + \", \" + escapeString(okText) \n/*Generated! Do not modify!*/ \t\t\t+ \", \" + escapeString(cancelText)+ \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ return new OverviewSmallStringInputDialogOptions(this, inputDialogParameters);\n/*Generated! Do not modify!*/ }",
"private void display() {\n TextView textview = (TextView) findViewById(R.id.textView);\n EditText editText = (EditText) findViewById(R.id.editNumber) ;\n textview.setText(\"TEXT\");\n editText.setText(\"\");\n\n }",
"public void setUserinput(String userinput){\n String[] inputs = userinput.split(\" \");\n if(inputs.length > 1){\n this.userinput_var = inputs[1];\n }\n this.userinput_command = inputs[0];\n }",
"view2() {\n Scanner input = new Scanner(System.in);\n Scanner StringInput = new Scanner(System.in);\n System.out.println(\"Calculator\");\n System.out.println(\"Enter the numbers you would like to operate on in order.\");\n System.out.print(\"Enter the first number: \");\n float first = StringInput.nextInt();\n System.out.print(\"which operation would you like to perform? ( Enter +, -, *, or / ) \");\n String operator = input.nextLine();\n System.out.print(\"Enter the second number: \");\n float second = input.nextInt();\n\n setFirstNumber(first);\n setOperator(operator);\n setSecondNumber(second);\n input.close();\n }",
"@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tString get=textField.getText();\r\n\t\t\t\t\t\ttextField_1.setText(get);\r\n\t\t\t\t\t}",
"public void showInputError() {\n\n resultLabel.setText(\"Choose another space!\");\n\n }",
"private String getInputStrings(int choice) {\n //a base string to add your choice to\n String baseInput = \"You chose option \";\n //the negative is for the introductory turn\n switch (choice) {\n case -1: return \"type 1, 2, or 3, then enter. \";\n case 0: return \"\";\n case 1: return baseInput + \"1.\";\n case 2: return baseInput + \"2.\";\n case 3: return baseInput + \"3.\";\n }\n //if value given is not found above\n return \"Error\";\n }",
"private void setupSpellHereField(){\n\t\tinput_from_user = new JTextField();\n\t\tinput_from_user.setFont(new Font(\"Calibri Light\", Font.PLAIN, 45));\n\t\tinput_from_user.setEditable(true);\n\t\tinput_from_user.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//only enable submitting if festival has finished to avoid delayed voice prompts\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t\tinput_from_user.requestFocusInWindow(); //gets focus back on the field\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tadd(input_from_user);\n\t\tinput_from_user.setBounds(374, 484, 942, 74);\n\t}",
"public void setInput(String input);",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n // TODO Auto-generated method stub\n if ((requestCode == request_code) && (resultCode == RESULT_OK)) {\n\n // Toast.makeText(this, intent.getStringExtra(\"resultado\"), Toast.LENGTH_LONG).show();\n inEquipo.setText(intent.getStringExtra(\"resultado\"));\n }\n }",
"public void onClick(DialogInterface dialog, int id) {\n edit_btn_val.clearComposingText();\n edit_btn_val.setText(userInput.getText());\n preferencesEditor.putString(sw_no,edit_btn_val.getText().toString());\n preferencesEditor.commit();\n\n }",
"public String inputSpecialized() {\n String specialized = editTextSpecial.getText().toString();\n return specialized;\n }",
"public static Optional<String> showTextInputAndGetResult(String header, String content) {\n TextInputDialog dialog = new TextInputDialog(content);\n dialog.setHeaderText(header);\n return dialog.showAndWait();\n }",
"protected void calculate(View view ){\n EditText input =(EditText) findViewById(R.id.editText );\n TextView output =(TextView) findViewById(R.id.textViewoutput);\n //process data..\n int base=Integer.valueOf(input.getText().toString());\n int result=base*base;\n String formatedResult=String.format(\"%d\",result);\n //output the result\n output.setText(\"Result:\"+ formatedResult);\n\n\n }",
"public void showText(View view) {\n EditText editText = findViewById(R.id.editText_main);\n TextView textView = findViewById(R.id.text_phonelabel);\n if (editText != null) {\n // Assign to showString both the entered string and mSpinnerLabel.\n String showString = (editText.getText().toString() +\n \" - \" + mSpinnerLabel);\n // Display a Toast message with showString\n Toast.makeText(this, showString, Toast.LENGTH_SHORT).show();\n // Set the TextView to showString.\n textView.setText(showString);\n }\n }",
"public String getInput()\t\n\t{\t//start of getInput method\n\t\treturn inputMsg;\n\t}",
"public String submitText();",
"void changeUser(){\n\t\tfinal FrameLayout fl = new FrameLayout(this);\n\n\t\tfinal EditText newUID = new EditText(this);\n\t\tfinal LinearLayout nameHolder = new LinearLayout(this);\n\t\tnameHolder.setOrientation(1);//Vertical\n//\t\tinputName.setGravity(Gravity.CENTER);\n//\t\tinputTitle.setGravity(Gravity.CENTER);\n\t\t//MAX 2 digits! HARDCODED\n\t\t//Limit them to a certain amount of digits\n\t\tInputFilter[] FilterArray = new InputFilter[1];\n\t\tFilterArray[0] = new InputFilter.LengthFilter(2);\n\t\tnewUID.setFilters(FilterArray);\n\t\t\n\t\tnameHolder.addView(newUID, new FrameLayout.LayoutParams(\n\t\t\t\tFrameLayout.LayoutParams.FILL_PARENT,\n\t\t\t\tFrameLayout.LayoutParams.WRAP_CONTENT));\n\t\t\n\t\tfl.addView(nameHolder, new FrameLayout.LayoutParams(\n\t\t\t\tFrameLayout.LayoutParams. FILL_PARENT,\n\t\t\t\tFrameLayout.LayoutParams.FILL_PARENT));\n\n\t\t// input.setText(\"Preset Text\");\n\t\tnewUID.setHint(\"NUMBER: 00-99\");\n\t\tnewUID.setInputType(InputType.TYPE_CLASS_NUMBER);\n\n\t\tAlertDialog newprojPopUp = new AlertDialog.Builder(this).create();\n\n\t\t//Show the keyboard automatically\n\t\tnewprojPopUp.setOnShowListener(new OnShowListener() {\n\n\t\t @Override\n\t\t public void onShow(DialogInterface dialog) {\n\t\t InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\t imm.showSoftInput(newUID, InputMethodManager.SHOW_FORCED);\n\t\t }\n\t\t});\n\t\t\n\t\tnewprojPopUp.setView(fl);\n\n\t\tnewprojPopUp.setTitle(\"Enter your USER ID (00-99)\");\n\n\t\t// Create Button\n\t\tnewprojPopUp.setButton(\"Enter\",\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\tpublic void onClick(\n\t\t\t\t\t\t\tfinal DialogInterface dMAIN,\n\t\t\t\t\t\t\tint which) {\n\n\t\t\t\t\t\tuserID=Integer.parseInt(newUID.getText().toString().trim());\n\t\t\t\t\t\tuserButton.setText(\"USER: \"+userIDformatter.format(userID));\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\"New User ID = \"+userID,\n\t\t\t\t\t\t\t\t1).show();\n\t\t\t\t\t\tmakeUser();\n\t\t\t\t\t\tloadUpAllPics();\n\n\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\t// Cancel Button\n\t\tnewprojPopUp.setButton2(\"Cancel\",\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface d,\n\t\t\t\t\t\t\tint which) {\n\n\t\t\t\t\t\t d.dismiss();\n\n\t\t\t\t\t}\n\n\t\t\t\t});\n\n\t\tnewprojPopUp.show();\n\t\tnewUID.requestFocus();\n\t\tnewprojPopUp\n\t\t\t\t.getWindow()\n\t\t\t\t.setSoftInputMode(\n\t\t\t\t\t\tWindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n\n\n\t\t\n\t}",
"public String onInputMessage(String userInput) throws QuitException{\n if (!userInput.equals(\"\"))\n System.out.println(userInput);\n\n //Enter data using BufferReader \n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); \n \n // Reading data using readLine\n String input; \n try {\n input = reader.readLine();\n } catch (IOException e) {\n return null;\n }\n if (input.equals(\"sortir\"))\n throw new QuitException();\n\n // Printing the read line \n return input;\n }",
"@Override\n public void onResults(Bundle results) {\n ArrayList<String> matches = results\n .getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION);\n\n //displaying the first match\n if (matches != null)\n editText.setText(matches.get(0));\n\n }",
"private void appendText()\n\t{\n\t\tString fieldText = \"\";\n\t\tString newText = \"\";\n\t\tfieldText = entry.getText();\n\t\t\n\t\tif(fieldText.equals (\"0\"))\n\t\t{\n\t\t\tnewText += append;\n\t\t\tfieldText = newText;\n\t\t\tentry.setText (fieldText);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfieldText += append;\n\t\t\tentry.setText (fieldText);\n\t\t}\n\t\t\n\t\tentry.grabFocus ( );\n\t\t\n\t}",
"@Override\n public void choiced(String result) {\n target.setText(result);\n target.setTextColor(getResources().getColor(R.color.app_color));\n }",
"private void showResult(String result) {\n TextView averageText = (TextView) findViewById(R.id.averageText);\n mUnit = getResultUnit();\n mAverageConsumption = result + \" \" + mUnit;\n\n String text = getResourceString(R.string.average) + \" \" + mAverageConsumption;\n averageText.setText(text);\n }",
"private void handleInput() {\n\n // Get the input string and check if its not empty\n String text = textInput.getText().toString();\n if (text.equals(\"\\n\")) {\n textInput.setText(\"\");\n return;\n }\n // remove empty line\n if (text.length() >= 2 && text.endsWith(\"\\n\")) text = text.substring(0, text.length() - 1);\n\n if (TextUtils.isEmpty(text)) return;\n textInput.setText(\"\");\n\n myGame.onInputString(text);\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode,\n Intent data) {\n if (requestCode == REQ_CODE_SPEECH_INPUT && resultCode == RESULT_OK) {\n List<String> results = data.getStringArrayListExtra(\n RecognizerIntent.EXTRA_RESULTS);\n String spokenText = results.get(0);\n // Do something with spokenText\n convert.setText(spokenText);\n\n }\n super.onActivityResult(requestCode, resultCode, data);\n }",
"@Override\n protected void onPostExecute(String retval) {\n super.onPostExecute(retval);\n\n etText.setValue(retval);\n butState.setValue(true);\n }",
"public void editTitle(View view) {\n Intent intent = new Intent(this, EditActivity.class);\n intent.putExtra(\"text\", title);\n startActivityForResult(intent, EDIT_TITLE);//CTRL+ALT+C per canviar de 0 a una variable\n }",
"public void search(View view){\n userinput = (EditText) findViewById(R.id.userinput);\n String input = userinput.getText().toString();\n\n if (input.isEmpty()){\n Toast.makeText(this, \"Please enter a city\", Toast.LENGTH_LONG).show();\n }\n else{\n input = input.replace(\" \", \"+\");\n\n // hide the keyboard (altough only for a short time, looks cleaner than keeping keyboard visible)\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);\n\n // create new Asynctasks, give context and user input as arguments\n new SnowAsynctasks(MainActivity.this, input).execute();\n }\n }",
"public void writeClue()\r\n {\n\r\n String s = JOptionPane.showInputDialog(\"Please enter your clue.\",\r\n selectedWord.getClue());\r\n //Word w = selectedSquare.getWord();\r\n selectedWord.setClue(s);\r\n }",
"public void updateResults() {\n\t\t// Do not update when there is no amount entered\n\t\tif (amountEdit.getText().toString().equalsIgnoreCase(\"\"))\n\t\t\treturn;\n\t\t\n\t\t// Transform .42 to 0.42\n\t\tif (amountEdit.getText().toString().equalsIgnoreCase(\".\")) {\n\t\t\tamountEdit.setText(\"0.\");\n\t\t\tamountEdit.setSelection(amountEdit.getText().length());\n\t\t}\n\t\t\t\n\t\tint from = (int) fromSpinner.getSelectedItemId();\n\t\tint to = (int) toSpinner.getSelectedItemId();\n\t\tDouble amount = Double.parseDouble(amountEdit.getText().toString());\n\t\tDouble result = exchangeRates.convert(from, to, amount);\n\t\t\n\t\t// Build results string and update the view\n\t\tString text = \"\";\n\t\ttext += exchangeRates.getCurrency(from) + \" \";\n\t\ttext += amount + \"\\n\";\n\t\ttext += exchangeRates.getCurrency(to) + \" \";\n\t\ttext += result.toString();\n\t\tresultsText.setText(text);\n\t}",
"public void getGamerInput() {\n\t\ttry {\n\t\t\tsCurrentCharInput = String.format(\"%s\", (consoleInput.readLine())).toUpperCase(Locale.getDefault());\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/* ************************************* */\n\t\tconsoleLog.println(\" \");\n\t\t// System.out.println(\" Quit readline \");\n\t\t/* ************************************* */\n\t\t// if (sCurrentCharInput.length() == 0)\n\t\t// continue;\n\n\t\t// if (sCurrentCharInput.contains(sAskedWord))\n\t\t// continue;\n\n\t}",
"private void convertion(){\n txtBox2.setText(workin.convertText(txtBox1.getText())) ; \n }",
"private void promptForSomething() {\n userInputValue = prompt(\"Please enter something: \", true);\n System.out.println(\"Thank you. You can see your input by choosing the Display Something menu\");\n }",
"public void button_proband_ok(View view){\n String codePart1 = getEditText(R.id.pc_1);\n String codePart2 = getEditText(R.id.pc_2);\n String codePart3 = getEditText(R.id.pc_3);\n String codePart4 = getEditText(R.id.pc_4);\n String codePart5 = getEditText(R.id.pc_5);\n // ToDo: check if all are actually characters\n // (and not numbers/other symbols)\n _control.newUser( codePart1+codePart2+codePart3+codePart4+codePart5 );\n setContentView(R.layout.set_time);\n }",
"public String getTextInput(){\r\n\t\treturn textInput.getText();\r\n\t}",
"private String getResult() {\n String result;\n if (location == null && requireGeolocation) {\n result = null;\n } else if (textEntry.isEnabled() && textEntry.getVisibility() == View.VISIBLE && !textEntry.getText().toString().isEmpty()\n && textEntry.getText().toString().matches(\"\\\\d+\")) {\n result = textEntry.getText().toString();\n } else if (radioButtons.getCheckedRadioButtonId() != -1) {\n result = radioButtons.getCheckedRadioButtonId() == R.id.radio_success ? \"true\" : \"false\";\n } else {\n // Result is not valid\n result = null;\n }\n return result;\n }",
"public void display(String result);",
"@Override\n public void update() {\n jTextField1.setText(mCalculator.getDisplay());\n }",
"public void Result (View v) {\n try {\n if (mIsTyping) {\n expressionView.setText(expressionView.getText() + \" \" + resultView.getText());\n calculate();\n mIsTyping = false;\n mIsCalculating = false;\n if (!mIsError) {\n savekq kq;\n kq = new savekq(expressionView.getText().toString(), Double.valueOf(resultView.getText().toString()));\n Writehistory(list, kq);\n }\n }\n } catch (Exception e) {\n Toast.makeText(this,e.toString(),Toast.LENGTH_LONG);\n }\n }",
"public static void showEnterText(Context context, String msg, final DialogResult listener) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(context);\n\t\tfinal EditText edit = new EditText(context);\n\t\t\n\t\tDialogInterface.OnClickListener clickListener = new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t switch (which){\n\t\t case DialogInterface.BUTTON_POSITIVE:\n\t\t //Yes button clicked\n\t\t \tlistener.result(true, edit.getText().toString());\n\t\t \tbreak;\n\n\t\t case DialogInterface.BUTTON_NEGATIVE:\n\t\t //No button clicked\n\t\t \tlistener.result(false, edit.getText().toString());\n\t\t break;\n\t\t }\n\t\t }\n\t\t};\n\t\t \n\t\tbuilder.setView(edit);\n\t\tbuilder.setMessage(msg)\n\t\t\t.setPositiveButton(\"Yes\", clickListener)\n\t \t.setNegativeButton(\"No\", clickListener)\n\t \t.show();\t\t\n\t}",
"public void buttonHint(View view) {\n textBoxInput = findViewById(R.id.edit_Dashes);\n\n //get user inputs with edit text\n inputLetter = textBoxInput.getText().toString().toLowerCase();\n\n String carBrandName = \"\";\n\n boolean isWrong = true;\n //get user inputs\n for (int a = 0; a < namesArray.size(); a++) {\n carBrandName = carBrandName + namesArray.get(a);\n brandName = carBrandName.toUpperCase();\n //check user input are correct\n if (inputLetter.equals(namesArray.get(a))) {\n //set input letter to dashes array\n dashesArray.set(a, inputLetter);\n isWrong = false;\n }\n }\n //calculate wrong answers submit count\n if (isWrong) {\n wrongLetterCount += 1;\n }\n\n //check wrong answers count and give chance to user submit another answer\n if(wrongLetterCount < 3) {\n String textName = \"\";\n //set user inputs and dashes to text view\n for (int b = 0; b <= dashesArray.size() - 1; b++) {\n textName = textName + dashesArray.get(b);\n textViewOutput.setText(textName.toUpperCase());\n }\n }\n //user enter 3 wrong answers\n else {\n //call wrong answers dialog box\n wrongAnswer();\n //set correct brand name to text view\n correctNameText.setText(brandName);\n\n //next button visible to user\n buttonNext.setVisibility(view.VISIBLE);\n //submit button invisible to user\n buttonSubmit.setVisibility(view.INVISIBLE);\n\n //edit text invisible to user\n textBoxInput.setVisibility(view.INVISIBLE);\n //text view visible to user\n correctNameText.setVisibility(view.VISIBLE);\n }\n\n dashesCount = 0;\n //calculate dashes count in text view to check user enter correct answer\n for (int a = 0; a < dashesArray.size(); a++) {\n if (\"-\".equals(dashesArray.get(a))) {\n dashesCount += 1;\n }\n }\n\n //if all letters submit correctly then action in below\n if (dashesCount==0){\n //call correct answer dialog box\n correctAnswer();\n\n //next button visible to user\n buttonNext.setVisibility(view.VISIBLE);\n //submit button invisible to user\n buttonSubmit.setVisibility(view.INVISIBLE);\n //edit text invisible to user\n textBoxInput.setVisibility(view.INVISIBLE);\n }\n //clear text in edit text\n textBoxInput.getText().clear();\n }",
"@Override\n public void run() {\n result.setText(\"\"+res);\n }",
"private void takeInUserInput(){\n\t\t// only take in input when it is in the ANSWERING phase\n\t\tif(spellList.status == QuizState.Answering){\n\t\t\tspellList.setAnswer(getAndClrInput());\n\t\t\tspellList.status = QuizState.Answered;\n\t\t\tansChecker=spellList.getAnswerChecker();\n\t\t\tansChecker.execute();\n\t\t}\t\n\n\t}",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t\tif( txt_showresult.getText().equals( \"0\" )){ \n\t\t\t\t\t\t\t\ttxt_showresult.setText(\"7\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// if textfield show other value , add number after the value\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\ttxt_showresult.setText( txt_showresult.getText() + \"7\");\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t}",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t\tif( txt_showresult.getText().equals( \"0\" )){ \n\t\t\t\t\t\t\t\ttxt_showresult.setText(\"9\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// if textfield show other value , add number after the value\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\ttxt_showresult.setText( txt_showresult.getText() + \"9\");\n\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t}",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t\tif( txt_showresult.getText().equals( \"0\" )){ \n\t\t\t\t\t\t\t\ttxt_showresult.setText(\"3\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// if textfield show other value , add number after the value\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\ttxt_showresult.setText( txt_showresult.getText() + \"3\");\n\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tString str = e.getActionCommand();\n\t\tString ans = resultField.getText();\n\t\tString ans2 = resultField2.getText();\n\t\tdouble result;\n\t\t\n\t\tif(str ==\"0\" || str ==\"1\" || str == \"2\"|| str== \"3\" ||\n\t\t\t\tstr == \"4\"|| str == \"5\" || str == \"6\" || str == \"7\"|| str == \"8\" || str == \"9\" || str ==\".\"){\n\t\t resultField.setText(ans + str);\n\t\t resultField2.setText(ans2 + str);\n\t\t}\n\t\tif(str == \"+\" || str == \"-\" || str == \"*\" || str == \"/\")\n\t\t{\n\t\t\toper = ans;\n\t\t\top = str;\n\t\t\tresultField.setText(\"\");\n\t\t\tresultField2.setText(ans2 + str);\n\t\t}\n\t\tif(str == \"x^2\"){\n\t\t\tresultField.setText(\"\"+Double.parseDouble(ans)*Double.parseDouble(ans));\n\t\t\tresultField2.setText(ans2 + \"^2\");\n\t\t}\n\t\tif(str == \"sqrt\")\n\t\t{\n\t\t\tresultField.setText(\"\"+Math.sqrt(Double.parseDouble(ans)));\n\t\t\tresultField2.setText(ans2 + \"^1/2\");\n\t\t}\n\t\tif(str == \"1/X\")\n\t\t{\n\t\t\tresultField.setText(\"\"+1/(Double.parseDouble(ans)));\n\t\t\tresultField2.setText(\"1/(\" + ans2 + \")\");\n\t\t}\n\t\tif(str==\"+/-\")\n\t\t{\n\t\t\tresultField.setText(\"\"+-1*(Double.parseDouble(ans)));\n\t\t\tresultField.setText(\"-1*(\"+ans2+\")\");\n\t\t}\n\n\t\tif(str==\"=\")\n\t\t{\n\t\t\tchar c=op.charAt(0);\n\t\t\tswitch(c)\n\t\t\t{\n\t\t\tcase '+':\n\t\t\t\tresult=Double.parseDouble(oper) + Double.parseDouble(ans);\n\t\t\t\tresultField.setText(\"\"+result);\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase '-':\n\t\t\t\tresult=Double.parseDouble(oper) - Double.parseDouble(ans);\n\t\t\t\tresultField.setText(\"\"+result);\n\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase '*':\n\t\t\t\tresult=Double.parseDouble(oper) * Double.parseDouble(ans);\n\t\t\t\tresultField.setText(\"\"+result);\n\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase '/':\n\t\t\t\tresult=Double.parseDouble(oper) / Double.parseDouble(ans);\n\t\t\t\tresultField.setText(\"\"+result);\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(str == \"C\")\n\t\t{\n\t\t\tresultField.setText(\"\");\n\t\t\tresultField2.setText(\"\");\n\t\t}\n\t\t\n\t\tif(str == \"Backspace\")\n\t\t{\n\t\t\tString temp=resultField.getText();\n\t\t\ttemp=temp.substring(0,temp.length()-1);\n\t\t\tresultField.setText(temp);\n\t\t\tString temp2=resultField2.getText();\n\t\t\ttemp2 = temp2.substring(0,temp2.length()-1);\n\t\t\tresultField2.setText(temp2);\n\t\t\t\n\t\t}\n\n\t}",
"private void setEditTextView(person selected_person) {\n\n textView_name = (EditText) findViewById(R.id.edit_name);\n textView_date = (EditText) findViewById(R.id.edit_date);\n textView_neck = (EditText) findViewById(R.id.edit_neck);\n textView_bust = (EditText) findViewById(R.id.edit_bust);\n textView_chest = (EditText) findViewById(R.id.edit_chest);\n textView_waist = (EditText) findViewById(R.id.edit_waist);\n textView_hip = (EditText) findViewById(R.id.edit_hip);\n textView_inseam = (EditText) findViewById(R.id.edit_inseam);\n textView_comment = (EditText) findViewById(R.id.edit_comment);\n\n String neck = selected_person.getNeck() == 0.0 ? \"\" : String.valueOf(selected_person.getNeck());\n String bust = selected_person.getBust() == 0.0 ? \"\" : String.valueOf(selected_person.getBust());\n String chest = selected_person.getChest() == 0.0 ? \"\" : String.valueOf(selected_person.getChest());\n String waist = selected_person.getWaist() == 0.0 ? \"\" : String.valueOf(selected_person.getWaist());\n String hip = selected_person.getHip() == 0.0 ? \"\" : String.valueOf(selected_person.getHip());\n String inseam = selected_person.getInseam() == 0.0 ? \"\" : String.valueOf(selected_person.getInseam());\n\n textView_name.setText(selected_person.getName());\n textView_date.setText(selected_person.getDate());\n textView_neck.setText(String.valueOf(neck));\n textView_bust.setText(String.valueOf(bust));\n textView_chest.setText(String.valueOf(chest));\n textView_waist.setText(String.valueOf(waist));\n textView_hip.setText(String.valueOf(hip));\n textView_inseam.setText(String.valueOf(inseam));\n textView_comment.setText(selected_person.getComment());\n }",
"public void inputGrade() {\n inzoo = false;\n // get prompts.xml view\n LayoutInflater li = LayoutInflater.from(context);\n View promptsView = li.inflate(R.layout.input_dialog, null);\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(\n context);\n\n // set prompts.xml to alertdialog builder\n alertDialogBuilder.setView(promptsView);\n\n final TextView promptText = (TextView) promptsView\n .findViewById(R.id.textView1);\n promptText.setText(\"Input a Grade\");\n\n final EditText userInput = (EditText) promptsView\n .findViewById(R.id.editTextDialogUserInput);\n\n // set dialog message\n alertDialogBuilder\n .setCancelable(false)\n .setPositiveButton(\"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n // get user input and use it as a grade to calculate lootcrate gain\n try {\n parseGrade(Integer.parseInt(userInput.getText().toString()));\n }\n catch(Exception e) {\n popUp(\"Please enter an integer, with no letters or symbols.\");\n }\n dialog.cancel();\n }\n })\n .setNegativeButton(\"Cancel\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }\n });\n\n // create alert dialog\n AlertDialog alertDialog = alertDialogBuilder.create();\n\n // show it\n alertDialog.show();\n }",
"public String userInputString() {\n Scanner scanner = new Scanner(System.in);\n return scanner.nextLine();\n }"
] |
[
"0.6952248",
"0.6804357",
"0.6651948",
"0.6610541",
"0.6533526",
"0.64630646",
"0.63028157",
"0.6268317",
"0.62601984",
"0.6244715",
"0.6158368",
"0.6139164",
"0.61198604",
"0.61173177",
"0.60932",
"0.60879046",
"0.6060863",
"0.60569084",
"0.60515594",
"0.6038798",
"0.60329264",
"0.60171884",
"0.5975409",
"0.59680843",
"0.5953549",
"0.59505665",
"0.59454036",
"0.5940682",
"0.59397465",
"0.5938398",
"0.59230787",
"0.59186083",
"0.59141123",
"0.58989275",
"0.58987474",
"0.5888232",
"0.5826461",
"0.58240503",
"0.5811259",
"0.58112144",
"0.58035636",
"0.57976466",
"0.57896394",
"0.5783205",
"0.57819736",
"0.5778048",
"0.5774735",
"0.5774115",
"0.57714295",
"0.5764172",
"0.5748184",
"0.5734872",
"0.57167906",
"0.57162243",
"0.57126504",
"0.57064784",
"0.57045895",
"0.56989795",
"0.5692923",
"0.5687175",
"0.568588",
"0.5685086",
"0.56798",
"0.5667331",
"0.56587327",
"0.56544197",
"0.5648279",
"0.5648268",
"0.5648218",
"0.5643881",
"0.56436735",
"0.56417394",
"0.56387985",
"0.5634021",
"0.5630241",
"0.5619774",
"0.561902",
"0.5612989",
"0.56072277",
"0.56069523",
"0.5605413",
"0.5602688",
"0.5601115",
"0.5588267",
"0.55833286",
"0.55813223",
"0.55810905",
"0.55799884",
"0.55775356",
"0.5572987",
"0.55712694",
"0.55699223",
"0.5567102",
"0.55643004",
"0.5563015",
"0.5561203",
"0.5560808",
"0.55525464",
"0.55522555",
"0.5551073",
"0.5545943"
] |
0.0
|
-1
|
This method displays the given price on the screen.
|
private void displayPrice(int number) {
TextView priceTextView = (TextView) findViewById(R.id.order_summary_text_view);
priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void displayPrice(int number) {\n }",
"public void getPrice(){\n System.out.println(\"Price: $\" + price); \n }",
"public void getPrice() {\n\t System.out.println(\"Price: $\" + price);\n }",
"private void displayPrice(int number) {\n TextView priceTextView = findViewById(R.id.textPrice);\n// priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n priceTextView.setText(\"KES \" + number);\n }",
"@Override\n\tpublic void viewPrice() {\n\t\t\n\t}",
"public void displayPrice(int price, int type) {\n\t\tif (type == Store.SNACK) \n\t\t\tsDisplay.getPriceDisplay().setValue(price + \"C\");\n\t\telse\n\t\t\tdDisplay.getPriceDisplay().setValue(price + \"C\");\n\t}",
"private void displayPrice(int number){\n TextView priceTV = (TextView) findViewById(R.id.price_tv);\n priceTV.setText(NumberFormat.getCurrencyInstance().format(number));\n }",
"private void displayPrice(double number) {\n TextView priceTextView = (TextView) findViewById(R.id.price_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n\n }",
"private void displayPrice(int number) {\n TextView priceTextView = (TextView) findViewById(R.id.price_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n }",
"@TargetApi(Build.VERSION_CODES.N)\n private void displayPrice(int number) {\n TextView priceTextView = (TextView)\n findViewById(R.id.price_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n\n }",
"@Override\n\tpublic String showPrice() {\n\t\treturn \"煎饼的价格是5元 \";\n\t}",
"private void displayPrice(int number) {\n TextView priceTextView = (TextView) findViewById(R.id.price_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance(Locale.getDefault()).format(number));\n\n }",
"public void printCost() {\r\n double cost;\r\n cost = quantity * price;\r\n System.out.printf(\"Total cost = $%.2f\", cost);\r\n }",
"public void display()\r\n\t{\r\n\t\tSystem.out.println(\"Dollar: $\"+getAmount());\r\n\t\tSystem.out.println(\"Rupiah: Rp.\"+dollarTorp());\r\n\t}",
"private void updatePriceLabel(double aPrice) {\n price = aPrice;\n String out = String.format(\"<html><b>Price</b><br>$%.2f</html>\", price);\n priceLabel.setText(out);\n }",
"private void displayTotal() {\n Log.d(\"Method\", \"displayTotal()\");\n\n TextView priceTextView = (TextView) findViewById(\n R.id.price_text_view);\n\n priceTextView.setText(NumberFormat.getCurrencyInstance().format(calculateTotal()));\n }",
"public void setPrice(int price) {\n\t\tthis.price = price;\n\t\tlbl.setText(price+\" C\");\n\t}",
"public void setPrice(float price) {\n this.price = price;\n }",
"public void setPrice(float price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(Float price) {\n this.price = price;\n }",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setPrice(Float price) {\r\n this.price = price;\r\n }",
"public void getDiscount(){\n System.out.println(\"10% off, final price: \" + price * 0.9);\n }",
"public void setPrice(double price)\n {\n this.price = price;\n }",
"public void setPrice(Double price) {\n this.price = price;\n }",
"public void setPrice(Double price) {\n this.price = price;\n }",
"public void setPrice(Double price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price)\n {\n this.price = price;\n }",
"public void printPrice(Menue m){\n System.out.println(m.getPrice());\n }",
"void display() {\n System.out.println(\"============================================================================================\");\n System.out.println(\"Name of the book:: \" + Bname);\n System.out.println(\"Price of the book:: Rs \" + price);\n System.out.println(\"============================================================================================\");\n }",
"String getPrice() {\n return Double.toString(price);\n }",
"public void setPrice(java.lang.String price) {\n this.price = price;\n }",
"void setPrice(int price) {\n mPriceTextView.setText(StoreUtils.getPriceString(price, mCurrency));\n }",
"public void setPrice(int price) {\r\n this.price = price;\r\n }",
"public void setPrice(int price) {\n this.price = price;\n }",
"@Override\n public void update(float price) {\n float newPriceForBidding = Math.round(price + (Math.random() * 100) + (Math.random() * 100));\n display(newPriceForBidding);\n }",
"private void displayBook() {\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n\n System.out.println(\"Book title: \" + getTitle());\n System.out.println(\"Book author: \" + getAuthor());\n System.out.println(\"Book description: \" + getDescription());\n System.out.println((\"The price is: \" + formatter.format(getPrice())));\n if (isInStock()) {\n System.out.println(\"Currently the book is in stock.\");\n }\n else {\n System.out.println(\"Currently the book is not in stock.\");\n }\n System.out.println();\n }",
"@Override //function was implemented as abstract in super class\n public double Display(){\n System.out.println(\"Toppings on Pizza:\");\n System.out.println(\"\\tAllergens: \" + this.Allergens);\n System.out.println(\"\\tNotes: \" + this.Notes);\n System.out.println(\"\\tDensity: \" + this.Density);\n System.out.println(\"\\tTopping: \" + this.Topping);\n System.out.println(\"\\tVegetarian: \" + this.Vegetarian);\n System.out.println();\n return this.Price;\n }",
"public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}",
"public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}",
"public void display() {\n \t\tSystem.out.printf(\"|%6s \", String.valueOf(idNumber));\n\t\tSystem.out.printf(\"|%13s |\", name);\n\t\tSystem.out.printf(\"%10s |\", quantity);\n\t\tSystem.out.printf(\"%8.2f |\", price);\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.println();\n }",
"String getPrice();",
"public void setPrice(double price) \n\t{\n\t\tthis.price = price;\n\t}",
"public String getPrice() {\n return price;\n }",
"public String getPrice() {\n return price;\n }",
"public void setPrice(String price) {\n\t\tthis.price = price;\n\t}",
"@Override\r\n\t\t\tpublic void buy(String security, double price, int volume) {\n\t\t\t\tSystem.out.println(\"buy is\"+price+volume);\r\n\t\t\t\t\r\n\t\t\t}",
"public void setPrice(Money price) {\n this.price = price;\n }",
"public void setPrice(Integer price) {\n this.price = price;\n }",
"public void setPrice(Integer price) {\n this.price = price;\n }",
"public void setPrice(Integer price) {\n this.price = price;\n }",
"public void setPrice(Integer price) {\n this.price = price;\n }",
"public void setPrice(Integer price) {\r\n this.price = price;\r\n }",
"public void setPrice(Integer price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void submitOrder() {\n int price = quantity*5;\n displayPrice(price);\n }",
"public void print() {\n System.out.println(\"Code: \"+this.productCode);\n System.out.println(\"Name: \"+ this.productName);\n System.out.println(\"Price: \"+this.price);\n System.out.println(\"Discount: \"+this.discount+\"%\");\n }",
"public void setPrice(Double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(double value) {\n this.price = value;\n }",
"public void setPrice(double value) {\n this.price = value;\n }",
"private void displayQuantity() {\n Log.d(\"Method\", \"displayQuantity()\");\n TextView quantityTextView = (TextView) findViewById(\n R.id.quantity_text_view);\n\n quantityTextView.setText(String.format(Locale.getDefault(), \"%d\", coffeeCount));\n displayTotal();\n }",
"private void display(){\n out.println(\"\\n-STOCK EXCHANGE-\");\n out.println(\"Apple - Share Price: \" + game.apple.getSharePrice() + \" [\" + game.apple.top() + \"]\");\n out.println(\"BP - Share Price: \" + game.bp.getSharePrice() + \" [\" + game.bp.top() + \"]\");\n out.println(\"Cisco - Share Price: \" + game.cisco.getSharePrice() + \" [\" + game.cisco.top() + \"]\");\n out.println(\"Dell - Share Price: \" + game.dell.getSharePrice() + \" [\" + game.dell.top() + \"]\");\n out.println(\"Ericsson - Share Price: \" + game.ericsson.getSharePrice() + \" [\" + game.ericsson.top() + \"]\");\n\n out.println(\"\\n-PLAYERS-\");\n// System.out.println(playerList.toString());\n for (Player e : playerList) {\n if (e.equals(player)) {\n out.println(e.toString() + \" (you)\");\n } else {\n out.println(e.toString());\n }\n }\n }",
"public void printOrderItem(){\r\n\t\tSystem.out.print(this.quantity+\" x \"+this.menuItem.getName()+\" ---- \");\r\n\t\tSystem.out.printf(\"$%.2f\\n\",this.calculatePrice());\r\n\t}",
"double getPrice();",
"double getPrice();",
"double getPrice();",
"public void setShopItemPrice(Double price) {\n\t\tlblPrice.setText(\"Price : \" + price + \" NTD\");\n\t}",
"public void editProductPrice(String price){\r\n\t\twdlib.waitForElement(getProductText());\r\n\t\tif(getProductText().getText().equals(\"None Included\")){\r\n\t\t\tselPproductBtn.click();\r\n\t\t\tProductsPage pdpage=new ProductsPage();\r\n\t\t\tpdpage.selectProducts();\r\n\t\t\tdriver.navigate().refresh();\r\n\t\t\tselProductOpt.click();\r\n\t\t\twdlib.waitForElement(getProductText());\r\n\t\t\teditBtn.click();\r\n\t\t\taddNewPrice(price);\r\n\t\t}\r\n\t\telse{\r\n\t\t\t\r\n\t\t\teditBtn.click();\r\n\t\t\taddNewPrice(price);\r\n\t\t}\r\n\t\tdriver.navigate().refresh();\r\n\t}",
"public void setPrice(int price) {\n this.price = (double)price;\n }",
"double computePrintingCost(double price){\n //TODO calculate price and return it\n return price * printer.countCharactersPrinted();\n }",
"public void display() {\n System.out.println(\"Title: \" + this.title);\n System.out.println(\"Description: \" + this.des);\n System.out.println(\"Price Per Night: $\" + this.price);\n System.out.println(\"Max Guests: \" + this.guests);\n System.out.println(\"Length of stay: \" + this.days + \" days\");\n System.out.println(\"Total for stay: $\" + this.total);\n System.out.println(\"-----------------------------------\");\n }",
"public void printToScreen() {\n String type = \"\";\n switch (this.type) {\n case 1:\n type = \"Fashion\";\n break;\n case 2:\n type = \"Electronic\";\n break;\n case 3:\n type = \"Consumable\";\n break;\n case 4:\n type = \"Household appliance\";\n break;\n }\n// System.out.println(\"Type : \" + type);\n System.out.printf(\"%6d%15s%6f%20s\\n\", id, name, price, type);\n }",
"public void displayPrize()\n {\n System.out.println(name + \", Worth: $\" + worth + \n \", Cost: $\" + cost);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s: $%.2f\", name, price);\n\t}",
"public void setPrice (Product product) {\n\t\tpriceLbl.setText(product.getPrice() + \"\");\n\t\tpriceLbl.repaint();\n\t}",
"public void display() throws IOException, ObjectNotFoundException,\n OperationNotPermittedException, ValidationException,\n OrganizationAuthoritiesException {\n\n VOPriceModel priceModel = model.getService().getPriceModel().getVo();\n\n ExternalPriceModelDisplayHandler displayHandler = new ExternalPriceModelDisplayHandler();\n\n displayHandler.setContent(priceModel.getPresentation());\n displayHandler.setContentType(priceModel.getPresentationDataType());\n displayHandler.display();\n }",
"public static void printOffers() {\r\n\t\tSystem.out.println(\"\\nOffers Available are:\\n\");\r\n\t\tSystem.out.println(\"If Total Price is >= 1000 then discount = 2%\");\r\n\t\tSystem.out.println(\"If Total Price is >= 2000 then discount = 4%\");\r\n\t\tSystem.out.println(\"If Total Price is >= 3000 then discount = 5%\");\r\n\t\tSystem.out.println(\"On every purcahse of 1000rs 10 points will be added to your account \");\r\n\t\tSystem.out.println();\r\n\t}",
"public void setPrice(int price) {\n\tthis.price = price;\n}",
"public Double getPrice() {\r\n return price;\r\n }",
"public double price() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public void setPrice(BigDecimal price) {\n this.price = price;\n }",
"public void setPrice(BigDecimal price) {\n this.price = price;\n }",
"public double getPrice(){\r\n\t\treturn price;\r\n\t}",
"public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }",
"public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }",
"public void setPrice(Double price);",
"public void discountPrices()\n {\n System.out.print( \"Enter amount of purchases: \" );\n int cost = scan.nextInt();\n int discount = cost - cost / 10;\n if ( cost > 1000 )\n {\n System.out.print( \"Discounted price: \" + discount );\n }\n else\n {\n System.out.print( \"Discounted price: \" + cost );\n }\n\n }",
"public void setPrice(java.math.BigDecimal price) {\n this.price = price;\n }"
] |
[
"0.7996701",
"0.7802026",
"0.76092917",
"0.755159",
"0.7483713",
"0.73746",
"0.73623556",
"0.7341348",
"0.7260348",
"0.72048396",
"0.7196749",
"0.71314055",
"0.7084698",
"0.69030136",
"0.6877945",
"0.6836073",
"0.6774688",
"0.6709811",
"0.6709811",
"0.6687164",
"0.6687164",
"0.6687164",
"0.6687164",
"0.6687164",
"0.6687164",
"0.6687164",
"0.6687091",
"0.6684692",
"0.6684692",
"0.6684692",
"0.6681832",
"0.66792405",
"0.6666472",
"0.6652273",
"0.6652273",
"0.6642464",
"0.66113466",
"0.65691614",
"0.65423036",
"0.65383947",
"0.6501761",
"0.64871347",
"0.64742434",
"0.6469119",
"0.64579207",
"0.6453048",
"0.64446634",
"0.64425415",
"0.64425415",
"0.64157873",
"0.64141124",
"0.64086616",
"0.6404403",
"0.6404403",
"0.6403788",
"0.6388368",
"0.637608",
"0.63594747",
"0.63594747",
"0.63594747",
"0.63594747",
"0.635182",
"0.635182",
"0.63395375",
"0.63395375",
"0.63395375",
"0.63258815",
"0.63100415",
"0.6286601",
"0.6285062",
"0.6285062",
"0.62824893",
"0.6280978",
"0.6277906",
"0.62637794",
"0.62637794",
"0.62637794",
"0.62571555",
"0.625339",
"0.6241759",
"0.62351376",
"0.6234718",
"0.6229035",
"0.62258416",
"0.62250644",
"0.62245274",
"0.6216665",
"0.6208507",
"0.61976826",
"0.6193703",
"0.618549",
"0.61848223",
"0.6175025",
"0.6175025",
"0.61727685",
"0.61705834",
"0.61705834",
"0.61671925",
"0.6165771",
"0.6155546"
] |
0.712433
|
12
|
Calculates the price of the order.
|
private int calculatePrice() {
int price = numberOfCoffees * 5;
return price;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"BigDecimal calculateTotalPrice(Order order);",
"public double calculatePrice(Order order){\r\n return order.quantity * order.itemPrice -\r\n Math.max(0, order.quantity - 500) * order.itemPrice * 0.05 +\r\n Math.min(order.quantity * order.itemPrice * 0.1, 100);\r\n }",
"public BigDecimal getOrderPrice() {\n return orderPrice;\n }",
"@Transient\n public Double getTotalOrderPrice() {\n double sum = 0;\n for (OrderItem oi : getOrderItems()) {\n sum += oi.getTotalPrice();\n }\n return sum;\n }",
"public double calculatePrice(){\r\n\t\treturn getBasePrice()+getBasePrice()*getVat()+(getBasePrice()+getBasePrice()*getVat())*0.3;\r\n\t}",
"private static void calculatePrice(AbstractOrder abstractOrder) {\n System.out.println(abstractOrder.getPrice());\n }",
"private double calculateTotal(){\r\n double total = 0;\r\n for(int i = 0; i < orderList.size(); i++){\r\n total += orderList.getOrder(i).calculatePrice();\r\n }\r\n return total;\r\n }",
"double calculatePrice();",
"BigDecimal getPrice();",
"public double getPrice()\n\t{\n\t\treturn this.totalPrice + this.getFlightCosts() + this.excursionSubTotal\n\t\t\t\t+ this.getLodgingCost();\n\t}",
"private double calculateTotalPrice(Order order) {\n int nights = (int)(order.getVaucher().getDateTo().getTime() - order.getVaucher().getDateFrom().getTime())/(24 * 60 * 60 * 1000);\n double totalPrice = (nights * order.getVaucher().getHotel().getPricePerDay() + order.getVaucher().getTour().getPrice()) * (100 - order.getUser().getDiscount())/100;\n return totalPrice;\n }",
"public void calculatePriceOrder() {\n log.info(\"OrdersBean : calculatePriceOrder!\");\n this.priceOrder = 0;\n for (ContractsEntity c : contractsBean.getContractsEntities()\n ) {\n this.priceOrder += c.getFinalPrice();\n }\n }",
"public double getTotalCostOfOrder() {\n double total = 0;\n for (AbstractProduct item :\n this.itemsReceived) {\n total += item.getPrice();\n }\n return total;\n }",
"public BigDecimal getPrice() {\r\n return price;\r\n }",
"public BigDecimal getPrice() {\r\n return price;\r\n }",
"public BigDecimal getPrice()\n\t{\n\t\treturn price;\n\t}",
"public double getPrice() {\n return price_;\n }",
"public double calculatePrice() {\r\n\t\treturn menuItem.getPrice() * quantity;\t\r\n\t}",
"public java.math.BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal\tgetPrice();",
"public BigDecimal getPrice() {\n BigDecimal price = BigDecimal.ZERO;\n for (int i = 0; i < flights.size(); i++) {\n price = price.add(flights.get(i).getPrice(seatClass.get(i)));\n }\n return price;\n }",
"public void setOrderPrice(BigDecimal orderPrice) {\n this.orderPrice = orderPrice;\n }",
"float calculatePrice () \n\t{\n\t\tfloat final_price = 0;\n\t\tfinal_price = (float)(price * quantity); // price * number of items\n\t\tfinal_price += final_price*(.10); // add tax\n\t\tif(perishable.equals(\"P\"))\n\t\t{\n\t\t\tfloat ship = (float)(20* weight)*quantity; // add shipping\n\t\t\tship += ship*.20;\n\t\t\tfinal_price += ship;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinal_price += (20* weight)*quantity; // add shipping\n\t\t}\n\t\treturn final_price;\n\t}",
"public double calculatePrice() {\n return 0;\n }",
"public double getPrice() {\n return price_;\n }",
"public double getPrice(){\n\t\t\treturn price;\n\t\t}",
"@Override\r\n\tpublic double getPrice() {\n\t\treturn pizza.getPrice()+ 12.88;\r\n\t}",
"public double getPrice(){\n\t\t\n\t\treturn price;\n\t}",
"private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }",
"public double price() {\n return price;\n }",
"public float calcOrderTotal()\r\n\t{\r\n\t\tOrderItem temp;\r\n\t\tfloat total = 0;\r\n\t\t\r\n\t\t//iterate through list and get quantity and unit price of each item\r\n\t\t//then multiply together and add to running total\r\n\t\tfor (int x = 0; x < orderItemList.size(); x++)\r\n\t\t{\r\n\t\t\ttemp = orderItemList.get(x);\r\n\t\t\ttotal = total + (temp.getProductQuant() * temp.getProductPrice());\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}",
"public void calculateOrderCost(){\n int tmpCost=0;\n for (Vehicle v : vehicleList){\n tmpCost+=v.getCost();\n }\n totalCost=tmpCost;\n }",
"public float calculateTotalPrice(ArrayList<Food> totalOrder) {\n totalPrice = 0.0f;\n for (Food itemOfFood : totalOrder) {\n totalPrice = totalPrice + itemOfFood.getPrice();\n }\n return totalPrice;\n }",
"public double getPrice() {\n\t\t\treturn price;\n\t\t}",
"public BigDecimal getO_price() {\n return o_price;\n }",
"@Override\n\tpublic double getPrice() {\n\t\treturn constantPO.getPrice();\n\t}",
"@Override\n\tpublic double getPrice() {\n\n\t\tfor(Car temPart:listPart){\n\t\t\tthis.totalCost +=temPart.getPrice();\n\t\t}\n\t\treturn totalCost;\n\t}",
"Price getTradePrice();",
"public float getTotalPrice(){\n return price * amount;\n }",
"public BigDecimal getPriceActual();",
"public double getPrice() {\n double price = BASE_PRICE;\n for (Topping topping : toppings) {\n if (topping.isPremium()) {\n price += 1.25;\n } else {\n price += 0.75;\n }\n }\n return price;\n }",
"public double price(){\n if (basePrice() >1000){\n return basePrice() *0.95;\n }else\n return basePrice() * 0.98;\n }",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice(){\n\n double price1 = 1/Math.pow(1+interests, payments);\n double finalPrice = coupon * (1-price1) + valueMaturity * price1;\n\n return finalPrice;\n\n }",
"public double getPrice() {\r\n\t\treturn this.price;\r\n\t}",
"public double getPrice() {\r\n\t\treturn this.price;\r\n\t}",
"public double getPrice() {\r\n\t\treturn this.price;\r\n\t}",
"public Double getPrice() {\r\n\t\treturn price;\r\n\t}",
"double purchasePrice();",
"public double getPrice(){\r\n\t\treturn price;\r\n\t}",
"public double getPrice() {\n\t\treturn this.price;\n\t}",
"public double getPrice(){\n\t\treturn this.price;\n\t}",
"@Override \r\n public double getPaymentAmount() \r\n { \r\n return getQuantity() * getPricePerItem(); // calculate total cost\r\n }",
"private void calculatePrice(int quantity) {\n int price = quantity * priceOfCoffee;\n }",
"public Double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn this.price;\n\t\t\n\t}",
"public double getPrice(){\n\t\treturn price;\n\t}",
"public double calculateCost() {\n double output = price * (1 + taxRate);\n return output;\n }",
"public double getPrice() \n\t{\n\t\treturn price;\n\t}",
"public double getPrice() \n\t{\n\t\treturn price;\n\t}",
"public double getPrice(){\n\t\treturn Price; // Return the product's price\n\t}",
"protected float getPrice() {\n\t\t\treturn price;\n\t\t}",
"public BigDecimal getpPrice() {\n return pPrice;\n }",
"public Money getPrice() {\n\t\treturn price;\n\t}",
"double ComputeCost(double order, double tipPercent, double serviceRating, double foodRating)\r\n {\r\n // kazda gwiazdka to 2 procent od sumy zamówienia\r\n return order + order * (tipPercent/100) + (serviceRating * 0.02) * order + (foodRating * 0.02) * order;\r\n }",
"public double getPrice()\n\t{\n\t\treturn this.price;\n\t}",
"public int getPrice() {\n for (Item item : items) {\n price +=item.getPrice();\n }\n return price;\n }",
"@Override\n\tpublic double getPrice() {\n\t\treturn auto.getPrice() + AC_ADDITIONAL_CHARGE;\n\t}",
"public float getPrice() {\n\t\treturn this._entree.getPriceWithAddons() + this._side.getPrice() + this._drink.getPrice() - 1f;\n\t}",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"double getPrice();",
"double getPrice();",
"double getPrice();",
"void calculateTotalPrice(){\n totalPrice = 0;\n cartContents.forEach(Product-> this.totalPrice = totalPrice + Product.getSellPrice());\n }",
"public double totalprice()\n {\n \tthis.caltotalprice();\n \tdouble res = Math.round(mTotalPrice);\n \t return res;\n }",
"private void calculatePrice(int quantity, int pricePerCup) {\n int price = quantity * pricePerCup;\n }",
"public BigDecimal calculateTotal() {\r\n BigDecimal orderTotal = BigDecimal.ZERO;\r\n \r\n final Iterator<Item> iterator = myShoppingCart.keySet().iterator();\r\n \r\n while (iterator.hasNext()) {\r\n final BigDecimal currentOrderPrice = myShoppingCart.get(iterator.next());\r\n \r\n orderTotal = orderTotal.add(currentOrderPrice);\r\n }\r\n \r\n //if membership take %10 off the total cost\r\n if (myMembership) {\r\n if (orderTotal.compareTo(new BigDecimal(\"25.00\")) == 1) { //myOrderTotal > $25\r\n final BigDecimal discount = DISCOUNT_RATE.multiply(orderTotal); \r\n orderTotal = orderTotal.subtract(discount);\r\n }\r\n }\r\n \r\n return orderTotal.setScale(2, RoundingMode.HALF_EVEN);\r\n }",
"@Override\n public double calculatePrice() {\n return getVolume() * (1.0 + (getAlcoholPercent() / 100.0)) * this.liquids.size();\n }",
"public void calculateCost(Order currentOrder) {\n\n BigDecimal area = currentOrder.getArea();\n BigDecimal materialCost = (area.multiply(currentOrder.getProduct().getCostPerSqFt())).setScale(2);\n BigDecimal laborCost = (area.multiply(currentOrder.getProduct().getLaborCostPerSqFt()));\n BigDecimal tax = laborCost.add(materialCost).multiply(currentOrder.getState().getTaxRate().movePointLeft(2));\n BigDecimal total = materialCost.add(laborCost).add(tax);\n\n //using half_up for rounding to get the (nearest neighbor)\n //Setting each price to the object\n currentOrder.setMaterialCost(materialCost.setScale(2, RoundingMode.HALF_UP));\n currentOrder.setLaborCost(laborCost.setScale(2, RoundingMode.HALF_UP));\n currentOrder.setTax(tax.setScale(2, RoundingMode.HALF_UP));\n currentOrder.setTotal(total.setScale(2, RoundingMode.HALF_UP));\n }",
"public double getPrice()\r\n\t{\r\n\t\tif(isSpecial())\r\n\t\t{\r\n\t\t\treturn price * .5;\r\n\t\t}\r\n\t\treturn price;\r\n\t}",
"public double getPrice() {\n return this.price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }"
] |
[
"0.8209991",
"0.80813664",
"0.7562016",
"0.7398714",
"0.7325486",
"0.72889525",
"0.7281115",
"0.7138571",
"0.71026284",
"0.70868766",
"0.70456463",
"0.70428175",
"0.69597787",
"0.6918364",
"0.6918364",
"0.6906151",
"0.6893011",
"0.6877235",
"0.6873886",
"0.68725383",
"0.68725383",
"0.68725383",
"0.68725383",
"0.68725383",
"0.68528235",
"0.6850601",
"0.6833613",
"0.6815647",
"0.6812954",
"0.68105215",
"0.680944",
"0.6760714",
"0.6760071",
"0.675562",
"0.6754346",
"0.67364585",
"0.6715841",
"0.67116797",
"0.67056036",
"0.67000777",
"0.66936314",
"0.66690254",
"0.664101",
"0.6640205",
"0.6637087",
"0.6626476",
"0.6622413",
"0.66162646",
"0.66162646",
"0.66162646",
"0.66162646",
"0.66162646",
"0.66088",
"0.65993565",
"0.65993565",
"0.65993565",
"0.6592955",
"0.6590254",
"0.6578789",
"0.6568959",
"0.65679663",
"0.65635383",
"0.65610635",
"0.6547033",
"0.65462303",
"0.6544523",
"0.65367377",
"0.6531589",
"0.6531589",
"0.65267605",
"0.6520353",
"0.6509826",
"0.6508874",
"0.6506499",
"0.65050673",
"0.65043133",
"0.64997673",
"0.648814",
"0.6480062",
"0.6480062",
"0.6480062",
"0.6480062",
"0.647807",
"0.647807",
"0.647807",
"0.6473164",
"0.646328",
"0.6460424",
"0.6452712",
"0.64486206",
"0.6442457",
"0.643966",
"0.64391655",
"0.6437318",
"0.6437318",
"0.6437318",
"0.6437318",
"0.6437318",
"0.6437318",
"0.6437318",
"0.6437318"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void insertJoblist(List<Job> jobs) throws Exception {
jobDao.insertJoblist(jobs);
}
|
{
"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 List<Job> findCompanynatureTotal(String cityname) throws Exception {
return jobDao.findCompanynatureTotal(cityname);
}
|
{
"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 List<Job> findScaleTotal(String cityname) throws Exception {
return jobDao.findScaleTotal(cityname);
}
|
{
"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 List<Job> findindustry(String cityname) throws Exception {
return jobDao.findindustry(cityname);
}
|
{
"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 List<Job> findpriceExp(Job job) throws Exception {
return jobDao.findpriceExp(job);
}
|
{
"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 List<Job> findpriceEducation(Job job) throws Exception {
return jobDao.findpriceEducation(job);
}
|
{
"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 List<Job> finddemandExp(Job job) throws Exception {
return jobDao.finddemandExp(job);
}
|
{
"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 List<Job> finddemandEducation(Job job) throws Exception {
return jobDao.finddemandEducation(job);
}
|
{
"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
|
Load all columns from the stream
|
void loadFromInputStream(InputStream inputStream) throws IOException;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void loadColumns() {\n\t\tif (!this.expanded) {\n\t\t\tthis.refresh();\n\t\t}\n\t}",
"public abstract void load(LongIntsCol col, DataInputStream output) throws IOException;",
"public abstract void load(IntIntsCol col, DataInputStream output) throws IOException;",
"private void addColumns() {\n\n List<Integer> colIds = new ArrayList<>();\n List<String> colNames = new ArrayList<>();\n List<ColumnDescriptor> tupleDescription = context.getTupleDescription();\n for (int i = 0; i < tupleDescription.size(); i++) {\n ColumnDescriptor col = tupleDescription.get(i);\n if (col.isProjected() && hiveIndexes.get(i) != null) {\n colIds.add(hiveIndexes.get(i));\n colNames.add(col.columnName());\n }\n }\n jobConf.set(READ_ALL_COLUMNS, \"false\");\n jobConf.set(READ_COLUMN_IDS_CONF_STR, StringUtils.join(colIds, \",\"));\n jobConf.set(READ_COLUMN_NAMES_CONF_STR, StringUtils.join(colNames, \",\"));\n }",
"public abstract void load(LongFloatsCol col, DataInputStream output) throws IOException;",
"public abstract void load(IntFloatsCol col, DataInputStream output) throws IOException;",
"private void initColumns() {\n columnNames = new LinkedList<String>();\n columnNames.add(\"table.ededb.datatable.action\");\n columnNames.add(\"table.ededb.datatable.filename\");\n columnNames.add(\"table.ededb.datatable.mime\");\n columnNames.add(\"table.ededb.datatable.size\");\n columnNames.add(\"table.ededb.datatable.localcopy\");\n }",
"public void loadData(Object[] columnData);",
"@Test\n public void testColumnStatsLoading() {\n for (FileScanTask fileTask : table.newScan().includeColumnStats().planFiles()) {\n Assert.assertNotNull(fileTask.file().valueCounts());\n Assert.assertNotNull(fileTask.file().nullValueCounts());\n Assert.assertNotNull(fileTask.file().lowerBounds());\n Assert.assertNotNull(fileTask.file().upperBounds());\n Assert.assertNotNull(fileTask.file().columnSizes());\n }\n }",
"public abstract void load(IntLongsCol col, DataInputStream output) throws IOException;",
"public abstract void load(LongLongsCol col, DataInputStream output) throws IOException;",
"public List<T> readDataFromStream(InputStream stream, boolean readFirstLine) throws IOException {\n\n List<T> typeBeans = new LinkedList<>();\n try (ICsvBeanReader beanReader = new CsvBeanReader(new BufferedReader(new InputStreamReader(stream)),\n CsvPreference.TAB_PREFERENCE)) {\n if (readFirstLine) {\n beanReader.getHeader(true);\n }\n T typeBean;\n boolean carryOn = true;\n while (carryOn) {\n try {\n typeBean = beanReader.read(clazz, headers, cellProcessors);\n if (typeBean != null) {\n typeBeans.add(typeBean);\n } else {\n carryOn = false;\n }\n } catch (SuperCsvException e) {\n // we need this as the data file MAY contain rubbish\n LOGGER.warning(\"Ignoring data error in line: \" + beanReader.getLineNumber());\n }\n\n }\n }\n return typeBeans;\n }",
"public AllByColumnsIterator() {\n\t\t\tsuper();\n\t\t\tlastIndex = numCols * numRows;\n\t\t}",
"public SampletypeBean[] loadAll() throws SQLException \n {\n Connection c = null;\n PreparedStatement ps = null;\n try \n {\n c = getConnection();\n ps = c.prepareStatement(\"SELECT \" + ALL_FIELDS + \" FROM sampletype\",ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n return loadByPreparedStatement(ps);\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }",
"private void readData () throws SQLException {\n int currentFetchSize = getFetchSize();\n setFetchSize(0);\n close();\n setFetchSize(currentFetchSize);\n moveToInsertRow();\n\n CSVRecord record;\n\n for (int i = 1; i <= getFetchSize(); i++) {\n lineNumber++;\n try {\n\n if (this.records.iterator().hasNext()) {\n record = this.records.iterator().next();\n\n for (int j = 0; j <= this.columnsTypes.length - 1; j++) {\n\n switch (this.columnsTypes[j]) {\n case \"VARCHAR\":\n case \"CHAR\":\n case \"LONGVARCHAR\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateString(j + 1, record.get(j));\n break;\n case \"INTEGER\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateInt(j + 1, Integer.parseInt(record.get(j)));\n break;\n case \"TINYINT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateByte(j + 1, Byte.parseByte(record.get(j)));\n break;\n case \"SMALLINT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateShort(j + 1, Short.parseShort(record.get(j)));\n break;\n case \"BIGINT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateLong(j + 1, Long.parseLong(record.get(j)));\n break;\n case \"NUMERIC\":\n case \"DECIMAL\":\n /*\n * \"0\" [0,0]\n * \"0.00\" [0,2]\n * \"123\" [123,0]\n * \"-123\" [-123,0]\n * \"1.23E3\" [123,-1]\n * \"1.23E+3\" [123,-1]\n * \"12.3E+7\" [123,-6]\n * \"12.0\" [120,1]\n * \"12.3\" [123,1]\n * \"0.00123\" [123,5]\n * \"-1.23E-12\" [-123,14]\n * \"1234.5E-4\" [12345,5]\n * \"0E+7\" [0,-7]\n * \"-0\" [0,0]\n */\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateBigDecimal(j + 1, new BigDecimal(record.get(j)));\n break;\n case \"DOUBLE\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateDouble(j + 1, Double.parseDouble(record.get(j)));\n break;\n case \"FLOAT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateFloat(j + 1, Float.parseFloat(record.get(j)));\n break;\n case \"DATE\":\n // yyyy-[m]m-[d]d\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateDate(j + 1, Date.valueOf(record.get(j)));\n break;\n case \"TIMESTAMP\":\n // yyyy-[m]m-[d]d hh:mm:ss[.f...]\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateTimestamp(j + 1, Timestamp.valueOf(record.get(j)));\n break;\n case \"TIME\":\n // hh:mm:ss\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateTime(j + 1, Time.valueOf(record.get(j)));\n break;\n case \"BOOLEAN\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateBoolean(j + 1, convertToBoolean(record.get(j)));\n break;\n default:\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateString(j + 1, record.get(j));\n break;\n }\n }\n\n insertRow();\n incrementRowCount();\n }\n } catch (Exception e) {\n LOG.error(\"An error has occurred reading line number {} of the CSV file\", lineNumber, e);\n throw e;\n }\n }\n\n moveToCurrentRow();\n beforeFirst(); \n }",
"Iterator<Column> baseColumns();",
"private void readHeader() throws IOException {\n\t\tString line = this.readLine();\n\t\tSystem.out.println(String.format(\"header->{%s}\", line));\n\t\tthis.columnNames = line.split(DEFAULT_DELIMITER);\n\t}",
"public IDataSet loadMaterializedDataSet(Set<FieldDescriptor> columns) throws DataSourceException;",
"private void loadAllCountData(){\n // load from csv\n try{\n FileReader file = new FileReader(\"/home/ubuntu/user_counts_small.csv\");\n //FileReader file = new FileReader(\"/Users/YHWH/Desktop/cloud computing/team project/user_counts.csv\");\n BufferedReader buff = new BufferedReader(file);\n String line = \"\";\n boolean eof = false;\n\n while(!eof){\n line = buff.readLine();\n if(line == null){\n eof = true;\n }\n else{\n String[] data = line.split(\"\\t\"); //0->id, 1->selfCount, 2->prevCount\n wholeCountData.put(data[0], Integer.parseInt(data[2]));\n }\n }\n buff.close();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n }",
"public abstract void load(LongDoublesCol col, DataInputStream output) throws IOException;",
"public abstract void load(IntDoublesCol col, DataInputStream output) throws IOException;",
"void loadAll() {\n\t\tsynchronized (this) {\n\t\t\tif (isFullyLoaded) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor (Entry<Integer, Supplier<ChunkMeta<?>>> generator : ChunkMetaFactory.getInstance()\n\t\t\t\t\t.getEmptyChunkFunctions()) {\n\t\t\t\tChunkMeta<?> chunk = generator.getValue().get();\n\t\t\t\tchunk.setChunkCoord(this);\n\t\t\t\tchunk.setPluginID(generator.getKey());\n\t\t\t\ttry {\n\t\t\t\t\tchunk.populate();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// need to catch everything here, otherwise we block the main thread forever\n\t\t\t\t\t// once it tries to read this\n\t\t\t\t\tCivModCorePlugin.getInstance().getLogger().log(Level.SEVERE, \n\t\t\t\t\t\t\t\"Failed to load chunk data\", e);\n\t\t\t\t}\n\t\t\t\taddChunkMeta(chunk);\n\t\t\t}\n\t\t\tisFullyLoaded = true;\n\t\t\tthis.notifyAll();\n\t\t}\n\t}",
"private void fetchColumnValues(int[] docIdSet, int startIndex, int length) {\n Set<String> columnsLoaded = new HashSet();\n\n for (AggregationFunctionContext aggrFuncContext : _aggrFuncContextList) {\n String[] aggrColumns = aggrFuncContext.getAggregationColumns();\n\n for (int i = 0; i < aggrColumns.length; i++) {\n String aggrColumn = aggrColumns[i];\n\n if (!columnsLoaded.contains(aggrColumn)) {\n int[] dictIdArray = _columnToDictArrayMap.get(aggrColumn);\n BlockValSet blockValSet = aggrFuncContext.getBlockValSet(i);\n\n blockValSet.readIntValues(docIdSet, startIndex, length, dictIdArray, startIndex);\n columnsLoaded.add(aggrColumn);\n\n Dictionary dictionary = aggrFuncContext.getDictionary(i);\n double[] valueArray = _columnToValueArrayMap.get(aggrColumn);\n dictionary.readDoubleValues(dictIdArray, startIndex, length, valueArray, startIndex);\n }\n }\n }\n }",
"@Override\n\tpublic Stream<Path> loadAll() {\n\t\treturn null;\n\t}",
"public void initFromRows(SimpleIterator<String> lines) {\n this.reset();\n int rowId = 0;\n Optional<String> lineOpt;\n Int2ObjectMap<IntArrayList> colsMap = new Int2ObjectOpenHashMap<>();\n int maxColId = -1;\n while (true) {\n lineOpt = lines.next();\n if (!lineOpt.isPresent()) {\n break;\n } else {\n String line = lineOpt.get().trim();\n if (!line.isEmpty()) {\n String[] tokens = line.split(\"\\\\s+\");\n int[] row = new int[tokens.length];\n for (int i = 0; i < tokens.length; i++) {\n int colId = Integer.parseInt(tokens[i]) - 1; // convert to 0-based\n if (colId < 0) {\n throw new RuntimeException(\n String.format(\n \"Column %d smaller than 1, in line number %d, line:'%s'\",\n colId + 1, rowId + 1, line\n )\n );\n }\n row[i] = colId;\n if (!colsMap.containsKey(colId)) {\n colsMap.put(colId, new IntArrayList());\n }\n colsMap.get(colId).add(rowId);\n if (colId > maxColId) {\n maxColId = colId;\n }\n }\n Arrays.sort(row);\n this.rows[rowId] = row;\n }\n rowId++;\n if (rowId > this.numRows) {\n throw new RuntimeException(\n \"More rows in input rows file than the expected \" + this.numRows\n );\n }\n }\n }\n if (maxColId > this.numCols) {\n this.numCols = maxColId + 1;\n this.cols = new IntSet[this.numCols];\n }\n for (int colId = 0; colId < this.numCols; colId++) {\n if (colsMap.containsKey(colId) && !colsMap.get(colId).isEmpty()) {\n this.cols[colId] = new IntOpenHashSet(colsMap.get(colId));\n } else {\n this.cols[colId] = new IntOpenHashSet();\n }\n }\n }",
"@Override\n\tpublic void unloadAllChunks() {\n\t\tfor (Column column : this.loadedColumns.values()) {\n\t\t\tfor (Cube cube : column.getCubes()) {\n\t\t\t\tthis.cubesToUnload.add(cube.getAddress());\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\tvoid loadData() throws IOException {\n\t\t\tsuper.loadData();\n\t\t}",
"@Override\n public final boolean loadProperties() {\n if (props == null) {\n return false;\n }\n\n if (!loadFile()) {\n return false;\n }\n\n if (!loadFields()) {\n return false;\n }\n\n if (!loadFieldWidths()) {\n return false;\n }\n\n if (!loadTableName()) {\n return false;\n }\n\n if (!loadPkey()) {\n return false;\n }\n\n loadFieldOffsets();\n\n loadBatchSize();\n\n loadColumnTypes();\n\n loadRowValidator();\n // load column names. where they follow a given pattern.\n // load table name.\n\n return true;\n }",
"public void loadData () {\n // create an ObjectInputStream for the file we created before\n ObjectInputStream ois;\n try {\n ois = new ObjectInputStream(new FileInputStream(\"DB/Guest.ser\"));\n\n int noOfOrdRecords = ois.readInt();\n Guest.setMaxID(ois.readInt());\n System.out.println(\"GuestController: \" + noOfOrdRecords + \" Entries Loaded\");\n for (int i = 0; i < noOfOrdRecords; i++) {\n guestList.add((Guest) ois.readObject());\n //orderList.get(i).getTable().setAvailable(false);\n }\n } catch (IOException | ClassNotFoundException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }",
"private void loadData(){\n\t\t \n\t\t model.getDataVector().clear();\n\t\t ArrayList<Person> personList = DataBase.getInstance().getPersonList();\n\t\t for(Person person : personList){\n\t\t\t addRow(person.toBasicInfoStringArray());\n\t\t }\n\t\t \n\t }",
"@Override\n public DataStream<Row> getDataStream(StreamExecutionEnvironment execEnv) {\n if (useExtendField) {\n metadataKeys = Arrays.stream(ReadableMetadata.values()).map(x -> x.key).collect(Collectors.toList());\n applyReadableMetadata(metadataKeys, generateProducedDataType());\n producedTypeInfo = (TypeInformation<Row>) TypeConversions.fromDataTypeToLegacyInfo(producedDataType);\n }\n\n final PulsarRowDeserializationSchema.ReadableRowMetadataConverter[] metadataConverters = metadataKeys.stream()\n .map(k ->\n Stream.of(ReadableMetadata.values())\n .filter(rm -> rm.key.equals(k))\n .findFirst()\n .orElseThrow(IllegalStateException::new))\n .map(m -> m.converter)\n .toArray(PulsarRowDeserializationSchema.ReadableRowMetadataConverter[]::new);\n\n PulsarRowDeserializationSchema pulsarDeserializationSchema =\n new PulsarRowDeserializationSchema(deserializationSchema, metadataConverters.length > 0, metadataConverters, producedTypeInfo);\n //PulsarDeserializationSchema<Row> deserializer = getDeserializationSchema();\n FlinkPulsarSource<Row> source = new FlinkPulsarSource<>(serviceUrl, adminUrl, pulsarDeserializationSchema, properties);\n //FlinkPulsarRowSource source = new FlinkPulsarRowSource(serviceUrl, adminUrl, properties, deserializer);\n switch (startupMode) {\n case EARLIEST:\n source.setStartFromEarliest();\n break;\n case LATEST:\n source.setStartFromLatest();\n break;\n case SPECIFIC_OFFSETS:\n source.setStartFromSpecificOffsets(specificStartupOffsets);\n break;\n case EXTERNAL_SUBSCRIPTION:\n MessageId subscriptionPosition = MessageId.latest;\n if (CONNECTOR_STARTUP_MODE_VALUE_EARLIEST.equals(properties.get(CONNECTOR_EXTERNAL_SUB_DEFAULT_OFFSET))) {\n subscriptionPosition = MessageId.earliest;\n }\n source.setStartFromSubscription(externalSubscriptionName, subscriptionPosition);\n }\n\n return execEnv.addSource(source).name(explainSource());\n }",
"public ColumnChunkPageReadStore.ColumnChunkPageReader readAllPages() throws IOException {\n List<DataPage> pagesInChunk = new ArrayList<DataPage>();\n DictionaryPage dictionaryPage = null;\n PrimitiveType type = getFileMetaData().getSchema()\n .getType(descriptor.col.getPath()).asPrimitiveType();\n long valuesCountReadSoFar = 0;\n while (valuesCountReadSoFar < descriptor.metadata.getValueCount()) {\n PageHeader pageHeader = readPageHeader();\n int uncompressedPageSize = pageHeader.getUncompressed_page_size();\n int compressedPageSize = pageHeader.getCompressed_page_size();\n switch (pageHeader.type) {\n case DICTIONARY_PAGE:\n // there is only one dictionary page per column chunk\n if (dictionaryPage != null) {\n throw new ParquetDecodingException(\"more than one dictionary page in column \" + descriptor.col);\n }\n DictionaryPageHeader dicHeader = pageHeader.getDictionary_page_header();\n dictionaryPage =\n new DictionaryPage(\n this.readAsBytesInput(compressedPageSize),\n uncompressedPageSize,\n dicHeader.getNum_values(),\n converter.getEncoding(dicHeader.getEncoding())\n );\n break;\n case DATA_PAGE:\n DataPageHeader dataHeaderV1 = pageHeader.getData_page_header();\n pagesInChunk.add(\n new DataPageV1(\n this.readAsBytesInput(compressedPageSize),\n dataHeaderV1.getNum_values(),\n uncompressedPageSize,\n converter.fromParquetStatistics(\n getFileMetaData().getCreatedBy(),\n dataHeaderV1.getStatistics(),\n type),\n converter.getEncoding(dataHeaderV1.getRepetition_level_encoding()),\n converter.getEncoding(dataHeaderV1.getDefinition_level_encoding()),\n converter.getEncoding(dataHeaderV1.getEncoding())\n ));\n valuesCountReadSoFar += dataHeaderV1.getNum_values();\n break;\n case DATA_PAGE_V2:\n DataPageHeaderV2 dataHeaderV2 = pageHeader.getData_page_header_v2();\n int dataSize = compressedPageSize - dataHeaderV2.getRepetition_levels_byte_length() - dataHeaderV2.getDefinition_levels_byte_length();\n pagesInChunk.add(\n new DataPageV2(\n dataHeaderV2.getNum_rows(),\n dataHeaderV2.getNum_nulls(),\n dataHeaderV2.getNum_values(),\n this.readAsBytesInput(dataHeaderV2.getRepetition_levels_byte_length()),\n this.readAsBytesInput(dataHeaderV2.getDefinition_levels_byte_length()),\n converter.getEncoding(dataHeaderV2.getEncoding()),\n this.readAsBytesInput(dataSize),\n uncompressedPageSize,\n converter.fromParquetStatistics(\n getFileMetaData().getCreatedBy(),\n dataHeaderV2.getStatistics(),\n type),\n dataHeaderV2.isIs_compressed()\n ));\n valuesCountReadSoFar += dataHeaderV2.getNum_values();\n break;\n default:\n LOG.debug(\"skipping page of type {} of size {}\", pageHeader.getType(), compressedPageSize);\n this.skip(compressedPageSize);\n break;\n }\n }\n if (valuesCountReadSoFar != descriptor.metadata.getValueCount()) {\n // Would be nice to have a CorruptParquetFileException or something as a subclass?\n throw new IOException(\n \"Expected \" + descriptor.metadata.getValueCount() + \" values in column chunk at input stream offset \"\n + descriptor.metadata.getFirstDataPageOffset() +\n \" but got \" + valuesCountReadSoFar + \" values instead over \" + pagesInChunk.size()\n + \" pages ending at file offset \" + (descriptor.fileOffset + pos()));\n }\n CodecFactory.BytesDecompressor decompressor = codecFactory.getDecompressor(descriptor.metadata.getCodec());\n return new ColumnChunkPageReadStore.ColumnChunkPageReader(decompressor, pagesInChunk, dictionaryPage);\n }",
"public static void bulkLoadFromInputStream(Connection cnn,String loadDataSql, InputStream dataStream) throws Exception {\n\t\tif(dataStream==null){\n\t\t\tLog.info(\"InputStream is null ,No data is imported\");\n\t\t\tthrow new IOException(\"inputstream is null!\");\n\t\t}\n\n\t\tStatement myStatement = (com.mysql.jdbc.Statement)cnn.createStatement();\n\n\t\tmyStatement.setLocalInfileInputStream(dataStream);\n\t\t\t\t\n\t\tmyStatement.execute(loadDataSql);\n\t}",
"Column[] getColumns() { return columns; }",
"@Override\n\tpublic void readFields(DataInput in) throws IOException {\n\t\trowOrColumn.readFields(in);\n\t\tmatrix.readFields(in);\n\n\t}",
"public static void loadDB() throws Exception {\n\t\t// Remove previously loaded data\n\t\tcolToData.clear();\n\t\t// Load dictionary from disk\n\t\tloadDictionary();\n\t\t// Collect columns to load in parallel\n\t\tList<ColumnRef> colsToLoad = new ArrayList<ColumnRef>();\n\t\tfor (TableInfo table : CatalogManager.currentDB.nameToTable.values()) {\n\t\t\tString tableName = table.name;\n\t\t\tfor (ColumnInfo column : table.nameToCol.values()) {\n\t\t\t\tString columnName = column.name;\n\t\t\t\tcolsToLoad.add(new ColumnRef(tableName, columnName));\n\t\t\t}\n\t\t}\n\t\t// Load columns\n\t\tcolsToLoad.stream().parallel().forEach((colRef) -> {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Loading column \" + colRef.toString());\n\t\t\t\tloadColumn(colRef);\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Error loading column \" + colRef.toString());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Loaded database.\");\n\t}",
"@Override\n public boolean getIncludesAllColumns() {\n return includesAllColumns_;\n }",
"private static void loadTableData() {\n\n\t\tBufferedReader in = null;\n\t\ttry {\n\t\t\tin = new BufferedReader(new FileReader(dataDir + tableInfoFile));\n\n\t\t\twhile (true) {\n\n\t\t\t\t// read next line\n\t\t\t\tString line = in.readLine();\n\t\t\t\tif (line == null) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tString[] tokens = line.split(\" \");\n\t\t\t\tString tableName = tokens[0];\n\t\t\t\tString tableFileName = tokens[1];\n\n\t\t\t\ttableNameToSchema.put(tableName, new HashMap<String, Type>());\n\t\t\t\ttableNameToOrdredSchema.put(tableName,\n\t\t\t\t\t\tnew ArrayList<ColumnInfo>());\n\n\t\t\t\t// attributes data\n\t\t\t\tfor (int i = 2; i < tokens.length;) {\n\n\t\t\t\t\tString attName = tokens[i++];\n\t\t\t\t\tString attTypeName = (tokens[i++]);\n\n\t\t\t\t\tType attType = null;\n\n\t\t\t\t\t/*\n\t\t\t\t\t * Undefined, how to represent dates, crazy longs probably\n\t\t\t\t\t * won't need this for now...\n\t\t\t\t\t */\n\t\t\t\t\tif (attTypeName.equals(\"CHAR\")) {\n\t\t\t\t\t\tattType = Types.getCharType(Integer\n\t\t\t\t\t\t\t\t.valueOf(tokens[i++]));\n\t\t\t\t\t} else if (attTypeName.equals(\"DATE\")) {\n\t\t\t\t\t\tattType = Types.getDateType();\n\t\t\t\t\t} else if (attTypeName.equals(\"DOUBLE\")) {\n\t\t\t\t\t\tattType = Types.getDoubleType();\n\t\t\t\t\t} else if (attTypeName.equals(\"FLOAT\")) {\n\t\t\t\t\t\tattType = Types.getFloatType();\n\t\t\t\t\t} else if (attTypeName.equals(\"INTEGER\")) {\n\t\t\t\t\t\tattType = Types.getIntegerType();\n\t\t\t\t\t} else if (attTypeName.equals(\"LONG\")) {\n\t\t\t\t\t\tattType = Types.getLongType();\n\t\t\t\t\t} else if (attTypeName.equals(\"VARCHAR\")) {\n\t\t\t\t\t\tattType = Types.getVarcharType();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new RuntimeException(\"Invalid type: \"\n\t\t\t\t\t\t\t\t+ attTypeName);\n\t\t\t\t\t}\n\n\t\t\t\t\ttableNameToSchema.get(tableName).put(attName, attType);\n\n\t\t\t\t\tColumnInfo ci = new ColumnInfo(attName, attType);\n\t\t\t\t\ttableNameToOrdredSchema.get(tableName).add(ci);\n\n\t\t\t\t}\n\n\t\t\t\t// at this point, table info loaded.\n\n\t\t\t\t// Create table\n\t\t\t\tmyDatabase.getQueryInterface().createTable(tableName,\n\t\t\t\t\t\ttableNameToSchema.get(tableName));\n\n\t\t\t\t// Now, load data into newly created table\n\t\t\t\treadTable(tableName, tableFileName);\n\n\t\t\t}\n\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tHelpers.print(e.getStackTrace().toString(),\n\t\t\t\t\tutil.Consts.printType.ERROR);\n\t\t}\n\n\t}",
"@Override\n public boolean getIncludesAllColumns() {\n return includesAllColumns_;\n }",
"public final Column[] getRawColumns() { return columns; }",
"public void run() {\n CsvParser parser = this.initializeParser();\n\n // Initialize data structures\n String[] firstLine = parser.parseNext();\n List<MutableRoaringBitmap> dataset = new ArrayList<>(firstLine.length);\n for (int i = 0; i < firstLine.length; i++) {\n dataset.add(new MutableRoaringBitmap());\n this.columnPlisMutable = ImmutableList.copyOf(dataset);\n }\n\n // Start parsing the file\n if (this.configuration.isNoHeader()) {\n this.addRow(firstLine);\n } else {\n this.columnIndexToNameMapping = firstLine;\n }\n\n String[] nextRow;\n while ((nextRow = parser.parseNext()) != null) {\n this.addRow(nextRow);\n this.nRows++;\n }\n\n this.transformRows();\n this.transformColumns();\n log.info(\"Deduplicated {} rows to {}, {} columns to {}\", this.nRows, this.nRowsDistinct,\n this.columnPlisMutable.size(), this.columnPlis.size());\n }",
"public void showAllColumns() {\n\t\tObject[] ids = hiddenCols.keySet().toArray();\n\t\tfor (int i = ids.length - 1; i >= 0; i--) {\n\t\t\tshowColumn(ids[i]);\n\t\t}\n\t}",
"private void loadTable(List<Functions> readAll) {\n Vector cols = new Vector();\n cols.add(\"Name\");\n cols.add(\"Description\");\n\n Vector rows = new Vector();\n for (Functions f : readAll) {\n Vector row = new Vector();\n row.add(f.getName());\n row.add(f.getDes());\n rows.add(row);\n }\n\n tblFunction.setModel(new DefaultTableModel(rows, cols));\n tblFunction.updateUI();\n spnFunction.setViewportView(this.tblFunction);\n }",
"public Column[] getColumns() {return columns;}",
"@Override\n protected void load() {\n //recordId can be null when in batchMode\n if (this.recordId != null && this.properties.isEmpty()) {\n this.sqlgGraph.tx().readWrite();\n if (this.sqlgGraph.getSqlDialect().supportsBatchMode() && this.sqlgGraph.tx().getBatchManager().isStreaming()) {\n throw new IllegalStateException(\"streaming is in progress, first flush or commit before querying.\");\n }\n\n //Generate the columns to prevent 'ERROR: cached plan must not change result type\" error'\n //This happens when the schema changes after the statement is prepared.\n @SuppressWarnings(\"OptionalGetWithoutIsPresent\")\n EdgeLabel edgeLabel = this.sqlgGraph.getTopology().getSchema(this.schema).orElseThrow(() -> new IllegalStateException(String.format(\"Schema %s not found\", this.schema))).getEdgeLabel(this.table).orElseThrow(() -> new IllegalStateException(String.format(\"EdgeLabel %s not found\", this.table)));\n StringBuilder sql = new StringBuilder(\"SELECT\\n\\t\");\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(\"ID\"));\n appendProperties(edgeLabel, sql);\n List<VertexLabel> outForeignKeys = new ArrayList<>();\n for (VertexLabel vertexLabel : edgeLabel.getOutVertexLabels()) {\n outForeignKeys.add(vertexLabel);\n sql.append(\", \");\n if (vertexLabel.hasIDPrimaryKey()) {\n String foreignKey = vertexLabel.getSchema().getName() + \".\" + vertexLabel.getName() + Topology.OUT_VERTEX_COLUMN_END;\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(foreignKey));\n } else {\n int countIdentifier = 1;\n for (String identifier : vertexLabel.getIdentifiers()) {\n PropertyColumn propertyColumn = vertexLabel.getProperty(identifier).orElseThrow(\n () -> new IllegalStateException(String.format(\"identifier %s column must be a property\", identifier))\n );\n PropertyType propertyType = propertyColumn.getPropertyType();\n String[] propertyTypeToSqlDefinition = this.sqlgGraph.getSqlDialect().propertyTypeToSqlDefinition(propertyType);\n int count = 1;\n for (String ignored : propertyTypeToSqlDefinition) {\n if (count > 1) {\n sql.append(sqlgGraph.getSqlDialect().maybeWrapInQoutes(vertexLabel.getFullName() + \".\" + identifier + propertyType.getPostFixes()[count - 2] + Topology.OUT_VERTEX_COLUMN_END));\n } else {\n //The first column existVertexLabel no postfix\n sql.append(sqlgGraph.getSqlDialect().maybeWrapInQoutes(vertexLabel.getFullName() + \".\" + identifier + Topology.OUT_VERTEX_COLUMN_END));\n }\n if (count++ < propertyTypeToSqlDefinition.length) {\n sql.append(\", \");\n }\n }\n if (countIdentifier++ < vertexLabel.getIdentifiers().size()) {\n sql.append(\", \");\n }\n }\n }\n }\n List<VertexLabel> inForeignKeys = new ArrayList<>();\n for (VertexLabel vertexLabel : edgeLabel.getInVertexLabels()) {\n sql.append(\", \");\n inForeignKeys.add(vertexLabel);\n if (vertexLabel.hasIDPrimaryKey()) {\n String foreignKey = vertexLabel.getSchema().getName() + \".\" + vertexLabel.getName() + Topology.IN_VERTEX_COLUMN_END;\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(foreignKey));\n } else {\n int countIdentifier = 1;\n for (String identifier : vertexLabel.getIdentifiers()) {\n PropertyColumn propertyColumn = vertexLabel.getProperty(identifier).orElseThrow(\n () -> new IllegalStateException(String.format(\"identifier %s column must be a property\", identifier))\n );\n PropertyType propertyType = propertyColumn.getPropertyType();\n String[] propertyTypeToSqlDefinition = this.sqlgGraph.getSqlDialect().propertyTypeToSqlDefinition(propertyType);\n int count = 1;\n for (String ignored : propertyTypeToSqlDefinition) {\n if (count > 1) {\n sql.append(sqlgGraph.getSqlDialect().maybeWrapInQoutes(vertexLabel.getFullName() + \".\" + identifier + propertyType.getPostFixes()[count - 2] + Topology.IN_VERTEX_COLUMN_END));\n } else {\n //The first column existVertexLabel no postfix\n sql.append(sqlgGraph.getSqlDialect().maybeWrapInQoutes(vertexLabel.getFullName() + \".\" + identifier + Topology.IN_VERTEX_COLUMN_END));\n }\n if (count++ < propertyTypeToSqlDefinition.length) {\n sql.append(\", \");\n }\n }\n if (countIdentifier++ < vertexLabel.getIdentifiers().size()) {\n sql.append(\", \");\n }\n }\n }\n }\n sql.append(\"\\nFROM\\n\\t\");\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(this.schema));\n sql.append(\".\");\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(EDGE_PREFIX + this.table));\n sql.append(\" WHERE \");\n //noinspection Duplicates\n if (edgeLabel.hasIDPrimaryKey()) {\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(\"ID\"));\n sql.append(\" = ?\");\n } else {\n int count = 1;\n for (String identifier : edgeLabel.getIdentifiers()) {\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(identifier));\n sql.append(\" = ?\");\n if (count++ < edgeLabel.getIdentifiers().size()) {\n sql.append(\" AND \");\n }\n\n }\n }\n if (this.sqlgGraph.getSqlDialect().needsSemicolon()) {\n sql.append(\";\");\n }\n Connection conn = this.sqlgGraph.tx().getConnection();\n if (logger.isDebugEnabled()) {\n logger.debug(sql.toString());\n }\n try (PreparedStatement preparedStatement = conn.prepareStatement(sql.toString())) {\n if (edgeLabel.hasIDPrimaryKey()) {\n preparedStatement.setLong(1, this.recordId.sequenceId());\n } else {\n int count = 1;\n for (Comparable identifierValue : this.recordId.getIdentifiers()) {\n preparedStatement.setObject(count++, identifierValue);\n }\n }\n ResultSet resultSet = preparedStatement.executeQuery();\n if (resultSet.next()) {\n loadResultSet(resultSet, inForeignKeys, outForeignKeys);\n }\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }\n }",
"@Override\n\tpublic Map<String, String[]> loadColumnMetas(String databaseName) throws SQLException {\n\t\tString sql=\"select utc.*,UCC.comments from user_tab_columns utc\\n\" + \n\t\t\t\t\"left join user_col_comments ucc on UCC.table_name=UTC.table_name and UCC.column_name=UTC.column_name\";\n\t\tMap<String, String[]> ret=new HashMap<>();\n\t\t try(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n\t \t\tResultSet resultSet=preparedStatement.executeQuery();){\n\t\t\twhile(resultSet.next()) {\n\t\t\t\tString tableName=resultSet.getString(\"TABLE_NAME\")\n\t\t\t\t\t\t,columnName=resultSet.getString(\"COLUMN_NAME\")\n\t\t\t\t\t\t,dataLength=resultSet.getString(\"DATA_LENGTH\")\n\t\t ,nullable=resultSet.getString(\"NULLABLE\")\n\t\t ,comments=resultSet.getString(\"COMMENTS\")\n\t\t\t\t\t\t;\n\t\t\t\tString key=tableName+\":\"+columnName;\n\t\t\t\tret.put(key, new String[] {dataLength,nullable,comments});\n\t\t\t\t\n\t\t\t}\n\t }\n\t\t\n\t\treturn ret;\n\t}",
"List<String> getColumns();",
"public List<Column> getColumns();",
"public void readTable() {\r\n\r\n try ( BufferedReader b = new BufferedReader(new FileReader(\"Hashdata.txt\"))) {\r\n\r\n String line;\r\n ArrayList<String> arr = new ArrayList<>();\r\n while ((line = b.readLine()) != null) {\r\n\r\n arr.add(line);\r\n }\r\n\r\n for (String str : arr) {\r\n this.load(str);\r\n }\r\n this.print();\r\n\r\n } catch (IOException e) {\r\n System.out.println(\"Unable to read file\");\r\n }\r\n\r\n this.userInterface();\r\n\r\n }",
"public void readData() throws FileNotFoundException {\n this.plane = readPlaneDimensions();\n this.groupBookingsList = readBookingsList();\n }",
"public void readData(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\r\n\r\n String line = \"\";\r\n try {\r\n while ((line = reader.readLine()) != null) {\r\n //Split line by \",\"\r\n String[] fields = line.split(\",\");\r\n //Log.d(\"csvParseFieldLength\", String.valueOf(fields.length));\r\n ArrayList<Race> races = new ArrayList<>();\r\n if (fields[9].equals(\"\"))\r\n break;\r\n else {\r\n Swimmer s = new Swimmer(fields[0],fields[10], fields[9], Integer.parseInt(fields[8]), fields[7], races);\r\n swimmers.add(s);\r\n s.addRace(new Race(Integer.parseInt(fields[2]), Integer.parseInt(fields[3]), 0, null, (fields[4] + \" \" + fields[5])));\r\n \r\n EventID e = new EventID(eventId);\r\n String b = fields[12];\r\n \r\n \r\n if (!b.equals(\" \")) \r\n \te.addNames(b);\r\n \r\n \r\n \r\n }\r\n }\r\n } catch (IOException ex) {\r\n //Log.d(\"csvParseSwim\", \"Error reading data from file on line \" + line);\r\n }\r\n }",
"public List<byte[]> getColumns(){\n List<byte[]> list = new ArrayList<byte[]>();\n Iterator<Pair<String ,byte[]>> iter =outList.iterator();\n if(iter.hasNext()){\n byte[] col = iter.next().getSecond();\n if(null != col)\n list.add(col);\n }\n return list;\n }",
"public void loadFromStream(InputStream is) throws IOException {\n\t\tfor (int i = 0; i <= mem.length; i++) {\n\t\t\tint data = is.read();\n\t\t\tif (data == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmem[i] = data;\n\t\t}\n\t\tif (is.read() != -1) {\n\t\t\tlogger.log(Level.WARNING, \"Truncating boot.rom to \" + mem.length);\n\t\t}\n\t}",
"private static List<String> readData(String path) throws IOException{\n ArrayList<String> data = new ArrayList<>();\n try (\n Reader reader = Files.newBufferedReader(Paths.get(path), StandardCharsets.UTF_8);\n CSVReader csvReader = new CSVReader(reader)\n ){\n String[] nextRecord;\n while ((nextRecord = csvReader.readNext()) != null) {\n if (nextRecord[0].contains(\"name\")){\n System.out.println(\"Skipping column headers...\");\n }else {\n data.add(nextRecord[0]);\n// System.out.println(nextRecord[0]);\n }\n }\n }\n return data;\n }",
"void write(Object... columns) throws IOException;",
"public void postParse() \r\n\t{\n\t\tcolumnMap = new HashMap<String, ColumnDefinition>();\r\n\t\t\r\n\t\tfor (ColumnDefinition def : getColumns())\r\n\t\t{\r\n\t\t\tcolumnMap.put(def.getName(), def);\r\n\t\t}\r\n\t\t\r\n\t\tfor (ColumnDefinition def : getColumns())\r\n\t\t{\r\n\t\t\tdef.postParse();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn null;\n\t}",
"@Override\n\tprotected String getColumns()\n\t{\n\t\treturn null;\n\t}",
"@Override\n public Options prepareForBulkLoad() {\n dbOptions.setMaxBackgroundFlushes(4);\n columnFamilyOptions.setDisableAutoCompactions(true);\n columnFamilyOptions.setLevel0FileNumCompactionTrigger(1 << 30);\n columnFamilyOptions.setLevel0SlowdownWritesTrigger(1 << 30);\n columnFamilyOptions.setLevel0StopWritesTrigger(1 << 30);\n return this;\n }",
"public void readSQL(SQLInput stream, String typeName) throws SQLException {\n\t\tid = Helpers.integerOrNull(stream.readBigDecimal());\n\t\trt = stream.readString();\n\t\tname = stream.readString();\n\t\tdescription = stream.readString();\n\n\t}",
"private void init() {\n\t\tmap = new LinkedHashMap<String, HeaderData>();\r\n\t\tList<HeaderData> list = config.getColumns();\r\n\t\tfor(HeaderData info: list){\r\n\t\t\tString id = info.getId();\r\n\t\t\tif(id == null) throw new IllegalArgumentException(\"Null id found for \"+info.getClass().getName());\r\n\t\t\t// Map the id to info\r\n\t\t\tmap.put(info.getId(), info);\r\n\t\t}\r\n\t}",
"boolean getIncludesAllColumns();",
"Map<String, ByteBuffer> getColumns(String columnFamily, String key, int limit, boolean reversed, String fromColumn, String toColumn);",
"private void initializeColumns() {\n\n // nameColumn\n nameColumn.setCellValueFactory(record -> new ReadOnlyStringWrapper(\n record.getValue().getFullName()\n ));\n\n // ageColumn\n organColumn.setCellValueFactory(record -> new ReadOnlyStringWrapper(\n record.getValue().getOrgan()));\n\n // genderColumn\n regionColumn.setCellValueFactory(record -> new\n ReadOnlyStringWrapper(record.getValue().getRegion()));\n\n // dateColumn. Depends on the given string\n dateColumn.setCellValueFactory(record -> new ReadOnlyStringWrapper(\n TransplantWaitingList.formatCreationDate(record.getValue().getTimestamp())));\n\n }",
"@Override\r\n\tpublic void loadData() {\r\n\t\t// Get Session\r\n\r\n\t\tSession ses = HibernateUtil.getSession();\r\n\r\n\t\tQuery query = ses.createQuery(\"FROM User\");\r\n\r\n\t\tList<User> list = null;\r\n\t\tSet<PhoneNumber> phone = null;\r\n\t\tlist = query.list();\r\n\t\tfor (User u : list) {\r\n\t\t\tSystem.out.println(\"Users are \" + u);\r\n\t\t\t// Getting phones for for a particular user Id\r\n\t\t\tphone = u.getPhone();\r\n\t\t\tfor (PhoneNumber ph : phone) {\r\n\t\t\t\tSystem.out.println(\"Phones \" + ph);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"public StaticTypeColumn[] getAllStaticColumns() { return ALL_COLUMNS; }",
"public Map<String, ColumnMetaData> getColumns();",
"private void readFields() throws IOException, ClassFormatException {\n final int fields_count = dataInputStream.readUnsignedShort();\n fields = new Field[fields_count];\n for (int i = 0; i < fields_count; i++) {\n fields[i] = new Field(dataInputStream, constant_pool);\n }\n }",
"private TableColumn<Object, ?> fillColumns() {\n\t\t\n\t\treturn null;\n\t}",
"@Override\n public void readFields(DataInput input) throws IOException {\n setPartitionKey(input.readUTF());\n setRowKey(input.readUTF());\n setTimestamp(new Date(input.readLong()));\n // Read the rest of the properties.\n int numProperties = input.readInt();\n HashMap<String, EntityProperty> properties = new HashMap<String, EntityProperty>();\n for (int i = 0; i < numProperties; i++) {\n properties.put(input.readUTF(), new EntityProperty(input.readUTF()));\n }\n setProperties(properties);\n }",
"public AllByRowsIterator() {\n\t\t\tsuper();\n\t\t\tlastIndex = numCols * numRows;\n\t\t}",
"public Cursor readAllData() {\n\n Cursor objCursor = readSQLite.query(TABLE_OFFICER, new String[]{COLUMN_ID_OFFICER, COLUMN_OFFICER, COLUMN_POSITION, COLUMN_IMAGE, COLUMN_VIDEO, COLUMN_SOUND}, null, null, null, null, null);\n\n if (objCursor != null) {\n objCursor.moveToFirst();\n }\n\n return objCursor;\n }",
"void load(String table_name, boolean read_only) throws IOException;",
"static <R,C> DataFrame<R,C> concatColumns(Stream<DataFrame<R,C>> frames) {\n return DataFrame.factory().concatColumns(frames.iterator());\n }",
"void setColumns(List<String> columns);",
"public void loadFile(File file) {\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(file));\n\t\t\t\n\t\t\t// read the column names\n\t\t\tList<String> first = stringToList(in.readLine());\n\t\t\tcolNames = first;\n\t\t\t\n\t\t\t// each line makes a row in the data model\n\t\t\tString line;\n\t\t\tdata = new ArrayList<List>();\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tdata.add(stringToList(line));\n\t\t\t}\n\t\t\t\n\t\t\tin.close();\n\t\t\t\n\t\t\t// Send notifications that the whole table is now different\n\t\t\tfireTableStructureChanged();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private Iterable<CSVRecord> obtainCsvIterable()\n throws FileNotFoundException, IOException {\n return CSVFormat.RFC4180\n .withFirstRecordAsHeader()\n .parse(this.fileReader);\n\n }",
"public void loadFromDatabase(){\r\n /**\r\n * Open the file streams to the three files\r\n * Recover the state of data structures\r\n * Close the file streams\r\n */\r\n\r\n try{\r\n //Recover the state of unfinished set from unfinished.dat\r\n unfinishedFileInputStream = new FileInputStream(UNFINISHED_FILE_PATH);\r\n unfinishedSetInputStream = new ObjectInputStream(unfinishedFileInputStream);\r\n unfinished = (Set<Task>)unfinishedSetInputStream.readObject();\r\n unfinishedSetInputStream.close();\r\n unfinishedFileInputStream.close();\r\n\r\n //Recover the state of finished list from finished.dat\r\n finishedFileInputStream = new FileInputStream(FINISHED_FILE_PATH);\r\n finishedListInputStream = new ObjectInputStream(finishedFileInputStream);\r\n finished = (ArrayList<Task>)finishedListInputStream.readObject();\r\n finishedListInputStream.close();\r\n finishedFileInputStream.close();\r\n\r\n //Recover the state of activities list from activities.dat\r\n activitiesFileInputStream = new FileInputStream(ACTIVITIES_FILE_PATH);\r\n activitiesListInputStream = new ObjectInputStream(activitiesFileInputStream);\r\n activities = (ArrayList<Activity>)activitiesListInputStream.readObject();\r\n activitiesListInputStream.close();\r\n activitiesFileInputStream.close();\r\n\r\n generateWeeklySchedule();\r\n }\r\n catch(Exception e){\r\n System.out.println(e.getMessage());\r\n }\r\n }",
"@Override\n\tpublic Column loadChunk(int cubeX, int cubeZ) {\n\t\treturn getChunk(cubeX, cubeZ);\n\t}",
"protected abstract InputStream getTableInputStream() throws IOException;",
"public PreferenceBean[] loadAll() throws SQLException \n {\n Connection c = null;\n PreparedStatement ps = null;\n try \n {\n c = getConnection();\n ps = c.prepareStatement(\"SELECT \" + ALL_FIELDS + \" FROM preference\",ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n return loadByPreparedStatement(ps);\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }",
"private void loadDataMap() throws IOException {\n\t\tDaySleepDurationMap.getInstance().clear();\n\n\t\t// List of entries\n\t\tList<SleepEntry> entries = new ArrayList<SleepEntry>();\n\t\t\n\t\t// Get CSV file\n\t\tBufferedReader br = new BufferedReader(new FileReader(new File(DATA_LOCATION)));\n\t\tString line = \"\";\n\n\t\t// Ignore the first line (CSV header)\n\t\tbr.readLine();\n\n\t\twhile (((line = br.readLine()) != null)){\n\t\t\t// Convert the line from CSV to a SleepEntry\n\t\t\tSleepEntry se = SleepEntry.parseFromCSV(line);\n\t\t\t// Add it to the entry list\n\t\t\tentries.add(se);\n\t\t}\n\t\t\n\t\tfor (SleepEntry se : entries){\n\t\t\t// Add data from list to the map\n\t\t\tDaySleepDurationMap.getInstance().addToDay(se.getEffectiveDate(), se.getDuration());\n\t\t}\n\t\t\n\n\t\tbr.close();\n\t\t\n\t}",
"public boolean areAllFetchedColumnsKnown()\n {\n return factory.areAllFetchedColumnsKnown()\n && (!type.isMultiCell() || !factory.isSimpleSelectorFactory() || (from.isTerminal() && to.isTerminal()));\n }",
"private void cargarColumnasTabla(){\n \n modeloTabla.addColumn(\"Nombre\");\n modeloTabla.addColumn(\"Telefono\");\n modeloTabla.addColumn(\"Direccion\");\n }",
"public boolean areAllFetchedColumnsKnown()\n {\n return factory.areAllFetchedColumnsKnown()\n && (!type.isMultiCell() || !factory.isSimpleSelectorFactory() || key.isTerminal());\n }",
"public DTO2RowDataMapper(List<FlinkCol> cols) {\n super(cols);\n }",
"@Override\n \tpublic DataHolder loadFile(IMonitor mon) throws ScanFileHolderException {\n \t\tBufferedReader reader = null;\n \n \t\ttry {\n \t\t\treader = new BufferedReader(new FileReader(fileName));\n \t\t\tString dataStr;\n \t\t\tString previousHeaderLine = \"\";\n \t\t\tboolean readingHeader = true;\n \t\t\tboolean readingFooter = false;\n \t\t\tList<?>[] columnData = null;\n \t\t\twhile ((dataStr = reader.readLine()) != null) {\n \n \t\t\t\t// ignore blank\n \t\t\t\tif (dataStr.isEmpty()) {\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \n \t\t\t\t// first block of commented out lines are the header\n \t\t\t\tif (dataStr.startsWith(COMMENT_PREFIX) && readingHeader) {\n \t\t\t\t\treadHeaderLine(dataStr);\n \t\t\t\t\tpreviousHeaderLine = dataStr;\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\treadingHeader = false;\n \n \t\t\t\t// next block of commented out lines after any break in comments will be the footer\n \t\t\t\tif (dataStr.startsWith(COMMENT_PREFIX) && !readingHeader) {\n \t\t\t\t\treadingFooter = true;\n \t\t\t\t\treadFooterLine(dataStr);\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \n \t\t\t\t// if get here then its data\n \t\t\t\tif (readingFooter) {\n \t\t\t\t\t// should not get here after reading a block of commented out lines for a second time: invalid\n \t\t\t\t\t// format\n \t\t\t\t\tthrow new ScanFileHolderException(\"Cannot read file\");\n \t\t\t\t}\n \n \t\t\t\t// the first time we get here, the previous line should have been the header\n \t\t\t\tif (columnData == null && datasetNames.size() == 0) {\n \t\t\t\t\tcolumnData = parseHeaderString(previousHeaderLine);\n \t\t\t\t}\n \n\t\t\t\tparseColumns(splitLine(dataStr.trim()), columnData);\n \t\t\t}\n \n \t\t\tString[] names = datasetNames.toArray(new String[]{});\n \t\t\tDataHolder result = new DataHolder();\n \t\t\ttry {\n \t\t\t\tconvertToDatasets(result, names, columnData, isStoreStringValues(), isUseImageLoaderForStrings(), (new File(this.fileName)).getParent());\n \t\t\t} catch (Exception e) {\n \t\t\t\tlogger.warn(e.getMessage());\n \t\t\t}\n \n \t\t\treturn result;\n \t\t} catch (Exception e) {\n \t\t\tthrow new ScanFileHolderException(\"XasAsciiLoader.loadFile exception loading \" + fileName, e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (reader != null)\n \t\t\t\t\treader.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tthrow new ScanFileHolderException(\"Cannot read file\", e);\n \t\t\t}\n \t\t}\n \t}",
"private void parse() {\n if (getFields() == null) {\n List<? extends StructField> fieldRefs =\n ((StructObjectInspector)getInspector()).getAllStructFieldRefs();\n setFields(new LazyObject[fieldRefs.size()]);\n for (int i = 0; i < getFields().length; i++) {\n String hbaseColumnFamily = hbaseColumnFamilies.get(i);\n String hbaseColumnQualifier = hbaseColumnQualifiers.get(i);\n\n ObjectInspector fieldObjectInspector = fieldRefs.get(i).getFieldObjectInspector();\n if (hbaseColumnQualifier == null && !HBaseSerDe.isSpecialColumn(hbaseColumnFamily)) {\n // a column family\n getFields()[i] = new LazyHBaseCellMap(\n (LazyMapObjectInspector) fieldObjectInspector);\n continue;\n }\n if(fieldObjectInspector instanceof LazyListObjectInspector) {\n \tgetFields()[i] = new LazyJsonArray((LazyListObjectInspector)fieldObjectInspector);\n \tcontinue;\n }\n\n getFields()[i] = LazyFactory.createLazyObject(fieldRefs.get(i).getFieldObjectInspector());\n }\n setFieldInited(new boolean[getFields().length]);\n }\n Arrays.fill(getFieldInited(), false);\n setParsed(true);\n }",
"@Override\n\tpublic void loadPlayerData(InputStream is) {\n\n\t}",
"private List<Column> getPayloadColumns(int payloadColumns) {\n List<Column> payloads = new ArrayList<Column>();\n\n for (int c = 0; c < payloadColumns; c++) {\n Column column = new Column(\"PAYLOAD_\" + c);\n column.setMappedType(\"VARCHAR\");\n column.setSize(\"100\");\n payloads.add(column);\n }\n\n return payloads;\n }",
"public ArrayList<ColumnInTable> getAllColumns() {\n Schema schema = Schema.getSchema();\n ArrayList<ColumnInTable> columns = new ArrayList<ColumnInTable>();\n \n for (int i = 0; i < fromTables.size(); i++) {\n Table t = schema.getTable(fromTables.get(i).first());\n for (Entry<String, Column> entry: t.getAllColumns().entrySet()) {\n columns.add(new ColumnInTable(entry.getValue(), i));\n }\n }\n \n return columns;\n }",
"void write(List<?> columns) throws IOException;",
"@Override\n\tpublic void loadPlayerData(InputStream is) {\n\t}",
"@NonNull\n Collection<TObj> getAll() {\n Collection<TObj> result = new LinkedList<>();\n for (int countR = mData.size(), i = 0; i < countR; i++) {\n int rowKey = mData.keyAt(i);\n SparseArrayCompat<TObj> columns = mData.get(rowKey);\n for (int countC = columns.size(), j = 0; j < countC; j++) {\n int key = columns.keyAt(j);\n result.add(columns.get(key));\n }\n }\n return result;\n }",
"public static void loadColumn(ColumnRef columnRef) throws Exception {\n\t\t// Check whether column is already loaded\n\t\tif (!colToData.containsKey(columnRef)) {\n\t\t\tlong startMillis = System.currentTimeMillis();\n\t\t\t// Get column information from catalog\n\t\t\tColumnInfo column = CatalogManager.getColumn(columnRef);\n\t\t\tlog(\"Loaded column meta-data: \" + column.toString());\n\t\t\t// Read generic object from file\n\t\t\tString dataPath = PathUtil.colToPath.get(column);\n\t\t\tObject object = DiskUtil.loadObject(dataPath);\t\n\t\t\t// Cast object according to column type\n\t\t\tJavaType javaType = TypeUtil.toJavaType(column.type);\n\t\t\tlog(\"Column data type:\\t\" + javaType);\n\t\t\tswitch (javaType) {\n\t\t\tcase INT:\n\t\t\t\tcolToData.put(columnRef, (IntData)object);\n\t\t\t\tbreak;\n\t\t\tcase LONG:\n\t\t\t\tcolToData.put(columnRef, (LongData)object);\n\t\t\t\tbreak;\n\t\t\tcase DOUBLE:\n\t\t\t\tcolToData.put(columnRef, (DoubleData)object);\n\t\t\t\tbreak;\n\t\t\tcase STRING:\n\t\t\t\tcolToData.put(columnRef, (StringData)object);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// Generate statistics for output\n\t\t\tif (LoggingConfig.BUFFER_VERBOSE) {\n\t\t\t\tlong totalMillis = System.currentTimeMillis() - startMillis;\n\t\t\t\tSystem.out.println(\"Loaded \" + columnRef.toString() + \n\t\t\t\t\t\t\" in \" + totalMillis + \" milliseconds\");\n\t\t\t}\n\t\t\t// Generate debugging output\n\t\t\tlog(\"*** Column \" + columnRef.toString() + \" sample ***\");\n\t\t\tint cardinality = colToData.get(columnRef).getCardinality();\n\t\t\tint sampleSize = Math.min(10, cardinality);\n\t\t\tfor (int i=0; i<sampleSize; ++i) {\n\t\t\t\tswitch (column.type) {\n\t\t\t\tcase STRING_CODE:\n\t\t\t\t\tint code = ((IntData)object).data[i];\n\t\t\t\t\tlog(dictionary.getString(code));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tlog(\"******\");\n\t\t}\n\t}",
"private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public ArrayList getColumns() {\n return columns;\n }",
"public List<String[]> fill() throws IOException {\r\n\t\tList<String[]> allRows = new ArrayList<>();\r\n\t\t// CSV setting\r\n\t\tCSVReader reader = new CSVReader(new FileReader(path), '|', '\"', 1);\r\n\t\tallRows.addAll(reader.readAll());\r\n\t\treader.close();\r\n\t\treturn allRows;\r\n\t}",
"@Override\n public java.util.List<Column> getColumnsList() {\n return columns_;\n }",
"protected void reloadAndReformatTableData()\n {\n logTable.loadAndFormatData();\n }"
] |
[
"0.6121284",
"0.578028",
"0.5764244",
"0.5731526",
"0.56607556",
"0.562949",
"0.5601201",
"0.5573179",
"0.55513287",
"0.54492164",
"0.5419537",
"0.54168206",
"0.5408036",
"0.53445053",
"0.53410363",
"0.5262529",
"0.5198488",
"0.51500124",
"0.5126436",
"0.5114705",
"0.5094241",
"0.5067936",
"0.504071",
"0.5038396",
"0.50335985",
"0.50112545",
"0.50033814",
"0.49643523",
"0.49489477",
"0.49453652",
"0.49324358",
"0.4931516",
"0.49203724",
"0.49106795",
"0.4901084",
"0.48976395",
"0.48924908",
"0.48832768",
"0.48824954",
"0.48790604",
"0.487185",
"0.4868642",
"0.48395732",
"0.4829865",
"0.4827807",
"0.4811304",
"0.47914773",
"0.4789341",
"0.47682047",
"0.47646162",
"0.47561458",
"0.4754817",
"0.47497836",
"0.47356397",
"0.47201127",
"0.4718113",
"0.47004288",
"0.47004288",
"0.46999514",
"0.4694256",
"0.46805605",
"0.46734637",
"0.46702883",
"0.4667612",
"0.4664059",
"0.46637076",
"0.4660359",
"0.46599382",
"0.46547848",
"0.46536994",
"0.46524277",
"0.4648968",
"0.46454185",
"0.4644115",
"0.46402916",
"0.46360093",
"0.4624967",
"0.46225944",
"0.46214437",
"0.46210745",
"0.46194023",
"0.46190718",
"0.46177426",
"0.46173364",
"0.46155125",
"0.4615079",
"0.46093553",
"0.46027163",
"0.45980152",
"0.45919076",
"0.45911494",
"0.458769",
"0.45840278",
"0.4583423",
"0.45802572",
"0.4577605",
"0.45763516",
"0.45718628",
"0.4567343",
"0.456598",
"0.4562336"
] |
0.0
|
-1
|
Read a boolean value from the column at the current index
|
boolean readBoolean();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Boolean getBoolean(int col_num);",
"public boolean getBoolean(int row, int column) {\n return columns[column].getBoolean(row);\n }",
"public abstract boolean read_boolean();",
"Boolean getBoolean(String col_name) throws ConnException;",
"public Boolean getBoolean(final int index) {\n Object returnable = this.get(index);\n if (returnable instanceof String) {\n returnable = Boolean.valueOf((String) returnable);\n }\n return (Boolean) returnable;\n }",
"private boolean get_BOOLEAN(int column) {\n // @AGG force Little Endian\n // @AGG In DB2 BOOLEAN columns appear to be encoded as two bytes\n if (metadata.isZos())\n return dataBuffer_.getShort(columnDataPosition_[column - 1]) != 0;\n else\n return dataBuffer_.getShortLE(columnDataPosition_[column - 1]) != 0;\n// if ( SignedBinary.getByte( dataBuffer_, columnDataPosition_[column - 1] ) == 0 )\n// { return false; }\n// else { return true; }\n }",
"public boolean getBoolean(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getBoolean\", columnIndex);\n Boolean v = get(columnIndex).getBoolean();\n return v == null ? false : v.booleanValue();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public boolean readBoolean() {\n return (((readLong() & 1) == 1) ? true : false);\n }",
"public boolean getBoolean(int columnIndex) throws SQLException\n {\n return m_rs.getBoolean(columnIndex);\n }",
"public boolean get(long index);",
"public boolean getBoolean(int index) throws ArrayIndexOutOfBoundsException\n\t{\n\t\treturn bytes[index] > 0;\n\t}",
"public boolean getBooleanColumn(String column)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n String name = canonicalize(column);\n \n if (isColumnNull(name))\n return false;\n \n Object value = data.get(name);\n \n if (value == null)\n throw new IllegalArgumentException(\"Column \" + column + \" not present\");\n if (!(value instanceof Boolean))\n throw new IllegalArgumentException(\"Value is not a boolean\");\n \n return ((Boolean) value).booleanValue();\n }",
"boolean getBoolean(int index) throws PropertyException {\n Object object = this.get(index);\n if (object.equals(Boolean.FALSE)\n || (object instanceof String && ((String) object).equalsIgnoreCase(\"false\"))) {\n return false;\n } else if (object.equals(Boolean.TRUE)\n || (object instanceof String && ((String) object).equalsIgnoreCase(\"true\"))) {\n return true;\n }\n throw new PropertyException(\"JSONArray[\" + index + \"] is not a boolean.\");\n }",
"public final synchronized boolean getBoolean(int parameterIndex) \n throws SQLException\n {\n return getCallableStatement().getBoolean(parameterIndex);\n }",
"boolean getValue();",
"public boolean getBoolean(int row, int column) {\n\t\treturn getColumn(column).getBoolean(subset[row]);\n\t}",
"boolean getBit(int index);",
"boolean getBoolValue();",
"boolean getBoolValue();",
"void setBoolean(int index, boolean value) throws SQLException;",
"public boolean getValue();",
"abstract public boolean getAsBoolean();",
"public boolean booleanValue() {\n if (originalValue instanceof Boolean) {\n return (Boolean) originalValue;\n } else if (originalValue instanceof Number) {\n return ((Number) originalValue).intValue() != 0;\n } else {\n throw new CellValueCastException();\n }\n }",
"public boolean readBoolean() throws IOException {\n\n\t\tint b = read();\n\t\tif (b == 1) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean getBoolean(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getBoolean\", columnName);\n Boolean v = get(columnName).getBoolean();\n return v == null ? false : v.booleanValue();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public Boolean getValue() {\n/* 60 */ return Boolean.valueOf(this.val);\n/* */ }",
"public boolean getBoolean(int index)\r\n/* 131: */ {\r\n/* 132:148 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 133:149 */ return super.getBoolean(index);\r\n/* 134: */ }",
"public boolean readBool() throws IOException {\n return in.readBoolean();\n }",
"DataFrame<R,C> mapToBooleans(C colKey, ToBooleanFunction<DataFrameValue<R,C>> mapper);",
"public abstract void read_boolean_array(boolean[] value, int offset, int\nlength);",
"public boolean getBoolean(String columnName) throws SQLException\n {\n return m_rs.getBoolean(columnName);\n }",
"public Boolean getValue() {\n\t\treturn b;\n\t}",
"@Override\n\tpublic boolean readBoolean() throws IOException {\n\t\treturn ( (_buff.get() & 0xFF) != 0 );\n\t}",
"boolean getBoolean(String key) throws KeyValueStoreException;",
"@Column(name = \"BOOLEAN_VALUE\", length = 20)\n/* 35 */ public String getBooleanValue() { return this.booleanValue; }",
"public Boolean getBoolean(String attr) {\n return (Boolean) super.get(attr);\n }",
"public int getBit(int columnIndex) {\n BitVector vector = (BitVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"boolean getBoolean();",
"boolean getBoolean();",
"public Boolean asBoolean();",
"public boolean getBoolean();",
"boolean shouldReadValue();",
"public Boolean getValue() {\n return value;\n }",
"DataFrame<R,C> mapToBooleans(ToBooleanFunction<DataFrameValue<R,C>> mapper);",
"public boolean getBoolean(String key) {\n return Boolean.valueOf(UnsafeUtils.cast(get(key)));\n }",
"public boolean getValor(int fila, int col) {\n\t\treturn matriz.getValor(fila, col);\n\t}",
"public boolean readBoolean() throws IOException {\n boolean bool = fDataInputStream.readBoolean();\n DebugLog.stdoutPrintln(\"Connection marshalling boolean \" + \n bool, DebugLog.BSF_LOG_L3);\n return bool;\n\t}",
"boolean getIsIndexOnValues();",
"public int getBit(String columnName) {\n BitVector vector = (BitVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public boolean readBoolean() throws IOException {\n int token = fTokenizer.nextToken();\n if (token == StreamTokenizer.TT_NUMBER)\n return ((int) fTokenizer.nval) == 1;\n\n String msg = \"Integer expected in line: \" + fTokenizer.lineno();\n throw new IOException(msg);\n }",
"@Override\n public boolean getBoolean() throws SQLException {\n if (isNull()) return BOOLEAN_NULL_VALUE;\n\n final String trimmedValue = getString().trim();\n return trimmedValue.equalsIgnoreCase(LONG_TRUE) ||\n trimmedValue.equalsIgnoreCase(SHORT_TRUE) ||\n trimmedValue.equalsIgnoreCase(SHORT_TRUE_2) ||\n trimmedValue.equalsIgnoreCase(SHORT_TRUE_3);\n }",
"boolean getForRead();",
"private native boolean Df1_Read_Boolean(String plcAddress) throws Df1LibraryNativeException;",
"private String parseBoolean () {\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n \r\n char chr=next();//get next character\r\n assert \"ft\".indexOf(chr)>=0;//assert valid boolean start character\r\n switch (chr) {//switch on first character\r\n case 'f': skip(4);//skip to last character\r\n return \"false\";\r\n case 't': skip(3);//skip to last character\r\n return \"true\";\r\n default: assert false;//assert that we do not reach this statement\r\n return null;\r\n }//switch on first character\r\n \r\n }",
"public Boolean getBoolean(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.BOOLEAN)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), Boolean.class);\n\t\treturn (Boolean)value.value;\n\t}",
"public boolean getValue() {\r\n\t\treturn this.value;\r\n\t}",
"String byteOrBooleanRead();",
"private void giveBooleanFunctionForSingleRow(int i) \r\n {\r\n// throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n if(rowBoolean[i].first==0 && rowBoolean[i].second==0)\r\n {\r\n System.out.print(\"A`\");\r\n System.out.print(\"B`\");\r\n }\r\n else if(rowBoolean[i].first==1 && rowBoolean[i].second==1)\r\n {\r\n System.out.print(\"A\");\r\n System.out.print(\"B\");\r\n }\r\n else if(rowBoolean[i].first==0 && rowBoolean[i].second==1)\r\n {\r\n System.out.print(\"A`\");\r\n System.out.print(\"B\");\r\n }\r\n else if(rowBoolean[i].first==1 && rowBoolean[i].second==0)\r\n {\r\n System.out.print(\"A\");\r\n System.out.print(\"B`\");\r\n }\r\n }",
"public void testEditBooleanCellWithOtherColumnOnSameFeatureName() throws Exception {\n final UITableRepresentation table = localSession.getLocalSessionBrowser().perCategory().selectViewpoint(\"read_only_column\").selectRepresentation(\"read_only_column\")\n .selectRepresentationInstance(\"new read_only_column\", UITableRepresentation.class).open();\n // Get the second line, which is actually the first sub-line of the first top-level line.\n SWTBotTreeItem[] items = table.getTable().getAllItems()[0].getItems();\n\n // Check the values before.\n assertEquals(\"newEReference1 : B0\", items[0].cell(0));\n assertEquals(\"false\", items[0].cell(1));\n assertEquals(\"false\", items[0].cell(2));\n\n pressKey(table.getTable(), \"arrow_down\");\n pressKey(table.getTable(), \"arrow_down\");\n pressKey(table.getTable(), \"arrow_right\");\n pressKey(table.getTable(), \"space\");\n\n table.getTable().display.syncExec(new Runnable() {\n public void run() {\n table.getTable().widget.update();\n }\n });\n \n // Check the values after: no change expected, the column through which we tried to do the edition has canEdit = <%false%>\n assertEquals(\"newEReference1 : B0\", items[0].cell(0));\n assertEquals(\"false\", items[0].cell(1));\n assertEquals(\"false\", items[0].cell(2));\n\n }",
"public Boolean getBoolean(String key) throws JsonException {\r\n\t\tObject object = get(key);\r\n\t\tBoolean result = PrimitiveDataTypeConvertor.toBoolean(object);\r\n\t\tif (result == null) {\r\n\t\t\tthrow PrimitiveDataTypeConvertor.exceptionType(key, object, \"boolean\");\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public int read(boolean[] b) throws IOException {\n\t\treturn read(b, 0, b.length);\n\t}",
"public boolean get(boolean a) {\n\t\treturn a;\r\n\t}",
"public boolean getCell(int line, int column) {\n assert isInUniverse(line, column);\n// System.out.println(line + \" | \" + column);\n return universe[line][column];\n }",
"public static boolean datoBoolean(){\n try {\n return(Boolean.parseBoolean(dato()));\n } catch (NumberFormatException error) {\n return(false);\n }\n }",
"public boolean getBoolean(String key) {\n Object value = get(key);\n return ((value instanceof Boolean) ? (Boolean)value : false);\n }",
"@Test\n\tpublic void test_TCM__boolean_getBooleanValue() {\n\t\tfinal Attribute attribute = new Attribute(\"test\", \"true\");\n\t\ttry {\n\t\t\tassertTrue(\"incorrect boolean true value\", attribute.getBooleanValue());\n\n attribute.setValue(\"false\");\n\t\t\tassertTrue(\"incorrect boolean false value\", !attribute.getBooleanValue());\n\n attribute.setValue(\"TRUE\");\n\t\t\tassertTrue(\"incorrect boolean TRUE value\", attribute.getBooleanValue());\n\n attribute.setValue(\"FALSE\");\n\t\t\tassertTrue(\"incorrect boolean FALSE value\", !attribute.getBooleanValue());\n\n attribute.setValue(\"On\");\n\t\t\tassertTrue(\"incorrect boolean TRUE value\", attribute.getBooleanValue());\n\n attribute.setValue(\"Yes\");\n\t\t\tassertTrue(\"incorrect boolean TRUE value\", attribute.getBooleanValue());\n\n attribute.setValue(\"1\");\n\t\t\tassertTrue(\"incorrect boolean TRUE value\", attribute.getBooleanValue());\n\n attribute.setValue(\"OfF\");\n\t\t\tassertTrue(\"incorrect boolean FALSE value\", !attribute.getBooleanValue());\n\n attribute.setValue(\"0\");\n\t\t\tassertTrue(\"incorrect boolean FALSE value\", !attribute.getBooleanValue());\n\n attribute.setValue(\"No\");\n\t\t\tassertTrue(\"incorrect boolean FALSE value\", !attribute.getBooleanValue());\n\n\t\t} catch (DataConversionException e) {\n\t\t\tfail(\"couldn't convert boolean value\");\n\t\t}\n\n\t\ttry {\n attribute.setValue(\"foo\");\n\t\t\tassertTrue(\"incorrectly returned boolean from non boolean value\", attribute.getBooleanValue());\n\n\t\t} catch (DataConversionException e) {\n\t\t\t// good\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Expected DataConversionException, but got \" + e.getClass().getName());\n\t\t}\n\n\n\t}",
"@Test\n public void test_column_type_detection_boolean() throws SQLException {\n testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"true\", XSDDatatype.XSDboolean), true, Types.BOOLEAN, Boolean.class.getCanonicalName());\n }",
"public boolean readBoolean()\r\n/* 381: */ {\r\n/* 382:394 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 383:395 */ return super.readBoolean();\r\n/* 384: */ }",
"@java.lang.Override\n public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }",
"public boolean isCellEditable(int row, int column)\n\t{\n\t\t// if the first column holds a boolean and it is false, it is not editable\n\t\tif (column != 0\n\t\t\t&& (getValueAt(row, 0) instanceof Boolean)\n\t\t\t&& !((Boolean)getValueAt(row, 0)).booleanValue())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t// is the column read/write?\n\t\tif (m_readWriteColumn.contains(new Integer(column)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"public Boolean getValue() {\n return this.value;\n }",
"public Boolean getValue() {\n return this.value;\n }",
"public Boolean getValue() {\n return this.value;\n }",
"public static boolean getColumnAsBoolean(final ILogger aLogger,\r\n final ResultSet aResultSet,\r\n final String aColumnName) {\r\n try {\r\n return aResultSet.getBoolean(aColumnName);\r\n }\r\n catch (SQLException ex) {\r\n error(aLogger, \"getColumnAsBoolean\", \"Can not read column \" + aColumnName, ex);\r\n return false;\r\n }\r\n }",
"public void getBit(int columnIndex, NullableBitHolder holder) {\n BitVector vector = (BitVector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }",
"@Nullable\r\n public Boolean getBoolean(String key) {\r\n return getTyped(key, Boolean.class, null);\r\n }",
"public void getBit(String columnName, NullableBitHolder holder) {\n BitVector vector = (BitVector) table.getVector(columnName);\n vector.get(rowNumber, holder);\n }",
"private boolean getBit(int index) {\n int blockIndex = index / 32;\n int bitIndex = index % 32;\n return (data[blockIndex] & (1 << bitIndex)) != 0;\n }",
"@Override\r\n\tpublic boolean evaluate(Object value, int column) throws SQLException {\n\t\treturn false;\r\n\t}",
"public Boolean booleanValue() {\n\t\tif (this.getLiteralValue() instanceof Boolean) {\n\t\t\treturn (Boolean) this.getLiteralValue();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"abstract boolean testBit(int index);",
"public Boolean getBooleanAttribute();",
"public void setBoolean(int index, boolean value) throws ArrayIndexOutOfBoundsException\n\t{\n\t\tbytes[index] = (byte) (value ? 1 : 0);\n\t}",
"protected void _setBooleanElement(int index, boolean value) {\n\t\tint bitOffset = Math.multiplyExact(index, this.step);\n\t\t// the number of the Bit in the byte it is in\n\t\tbyte bitnum = (byte) (bitOffset % Constants.BITS_PER_BYTE);\n\t\t// position of the byte in the data section\n\t\tint position = (this.ptr + bitOffset / Constants.BITS_PER_BYTE);\n\t\tbyte oldValue = this.segment.buffer.get(position);\n\t\t// the left side of the '|' zeros the selected bit; the right side sets the new value\n\t\tthis.segment.buffer.put(position, (byte) ((oldValue & (~(1 << bitnum))) | ((value ? 1 : 0) << bitnum)));\n\t}",
"public boolean readBoolean() {\n\t\tif(!isInit) return false;\n\t\tboolean result = false;\n\t\tisListening = true;\n\t\twriteLine(\"Waiting for Boolean input...\");\n\t\twhile(isListening) {\n\t\t\ttry {\n\t\t\t\tresult = Boolean.parseBoolean(inputArea.getText());\n\t\t\t} catch(NumberFormatException nfe) {\n\t\t\t\tresult= false;\n\t\t\t}\n\t\t}\n\t\tinputArea.setText(\"\");\n\t\twriteLine(\"Input: \" + result);\n\t\treturn result;\n\t}",
"public boolean getBoolean(String key)\n {\n return getBoolean(key, false);\n }",
"public boolean readBooleanNonBlock() {\n return (((readLongNonBlock() & 1) == 1) ? true : false);\n }",
"public boolean isRequiresTaxCertificate() \n{\nObject oo = get_Value(COLUMNNAME_RequiresTaxCertificate);\nif (oo != null) \n{\n if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();\n return \"Y\".equals(oo);\n}\nreturn false;\n}",
"public Boolean value() {\n return this.value;\n }",
"public Boolean value() {\n return this.value;\n }",
"public Boolean value() {\n return this.value;\n }",
"void setBit(int index, boolean value);",
"public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }",
"public boolean getBoolValue() {\n return boolValue_;\n }",
"public Boolean toBool(){\n\t\tString s = txt().trim();\n\t\tBoolean i;\n\t\ttry{\n\t\t\ti = Boolean.parseBoolean(s);\n\t\t}catch(NumberFormatException exp){\n\t\t\texp.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn i;\t\n\t}",
"public boolean getBooleanProperty(String key) {\n\t\treturn Boolean.parseBoolean(this.getProperty(key));\n\t}",
"org.apache.xmlbeans.XmlBoolean xgetStraight();",
"BooleanProperty getOn();",
"public static boolean readBoolean() {\n try {\n String token = readString();\n if (\"true\".equalsIgnoreCase(token)) return true;\n if (\"false\".equalsIgnoreCase(token)) return false;\n if (\"1\".equals(token)) return true;\n if (\"0\".equals(token)) return false;\n throw new InputMismatchException(\"attempts to read a 'boolean' value from standard input, \"\n + \"but the next token is \\\"\" + token + \"\\\"\");\n }\n catch (NoSuchElementException e) {\n throw new NoSuchElementException(\"attempts to read a 'boolean' value from standard input, \"\n + \"but no more tokens are available\");\n }\n }",
"public Boolean getABoolean()\n {\n return aBoolean;\n }"
] |
[
"0.762721",
"0.7327255",
"0.70319444",
"0.6983091",
"0.6980976",
"0.69589543",
"0.6863561",
"0.67879087",
"0.678098",
"0.6698088",
"0.6662121",
"0.6639528",
"0.6589994",
"0.6574242",
"0.65429413",
"0.6528704",
"0.64950097",
"0.6493959",
"0.6493959",
"0.6481663",
"0.6424756",
"0.64075327",
"0.64043295",
"0.63591135",
"0.63559777",
"0.6298553",
"0.62848514",
"0.6270937",
"0.6261295",
"0.62585384",
"0.6254142",
"0.6201218",
"0.61940956",
"0.61828554",
"0.61565876",
"0.60482645",
"0.60370946",
"0.6009836",
"0.6009836",
"0.60068583",
"0.60031474",
"0.6001372",
"0.5990591",
"0.59858763",
"0.5972181",
"0.59676886",
"0.5954647",
"0.59514683",
"0.5933663",
"0.59074426",
"0.59047854",
"0.5890766",
"0.5888204",
"0.58703417",
"0.58618414",
"0.58612406",
"0.58523774",
"0.58461535",
"0.583694",
"0.58352864",
"0.58194923",
"0.5791966",
"0.5791633",
"0.57884",
"0.5757823",
"0.5749284",
"0.5747992",
"0.57447183",
"0.5743559",
"0.5738421",
"0.5738172",
"0.5738172",
"0.5738172",
"0.5733619",
"0.5723899",
"0.5723021",
"0.57154804",
"0.57088625",
"0.5705383",
"0.5700816",
"0.5692265",
"0.5688359",
"0.5687007",
"0.5663769",
"0.56608194",
"0.5657781",
"0.5656757",
"0.5645112",
"0.5637663",
"0.5637663",
"0.5637663",
"0.56246865",
"0.5605062",
"0.55984205",
"0.5594506",
"0.5591358",
"0.55828536",
"0.557688",
"0.5568603",
"0.5544746"
] |
0.70151484
|
3
|
Read an byte value from the column at the current index
|
byte readByte();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public byte readScalarByte() throws java.io.IOException;",
"public byte getByte(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getByte\", columnIndex);\n return get(columnIndex).getByte();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"byte get(int index);",
"public byte getByte(int row, int column) {\n return columns[column].getByte(row);\n }",
"public byte getByte(int columnIndex) throws SQLException\n {\n return m_rs.getByte(columnIndex);\n }",
"private int readFdocaOneByte(int index) {\n\n checkForSplitRowAndComplete(1, index);\n //return dataBuffer_[position_++] & 0xff;\n return dataBuffer_.readByte();\n }",
"public final synchronized byte getByte(int parameterIndex) \n throws SQLException\n {\n return getCallableStatement().getByte(parameterIndex);\n }",
"public byte getByte(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getByte\", columnName);\n return get(columnName).getByte();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public byte readByte() {\n return ((byte) readLong());\n }",
"final byte getByte(int column) {\n switch (jdbcTypes_[column - 1]) {\n case Types.BOOLEAN:\n return CrossConverters.getByteFromBoolean(get_BOOLEAN(column));\n case Types.SMALLINT:\n int smallInt = get_SMALLINT(column);\n if (smallInt > Byte.MAX_VALUE || smallInt < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + smallInt);\n return (byte) smallInt;\n case Types.INTEGER:\n int i = get_INTEGER(column);\n if (i > Byte.MAX_VALUE || i < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + i);\n return (byte) i;\n case Types.BIGINT:\n long l = get_BIGINT(column);\n if (l > Byte.MAX_VALUE || l < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + l);\n return (byte) l;\n case Types.REAL:\n float f = get_FLOAT(column);\n if (f > Byte.MAX_VALUE || f < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + f);\n return (byte) f;\n case Types.DOUBLE:\n double d = get_DOUBLE(column);\n if (d > Byte.MAX_VALUE || d < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + d);\n return (byte) d;\n case Types.DECIMAL:\n // For performance we don't materialize the BigDecimal, but convert directly from decimal bytes to a long.\n long ld = getLongFromDECIMAL(column, \"byte\");\n if (ld > Byte.MAX_VALUE || ld < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + ld);\n return (byte) ld;\n case Types.CHAR:\n return CrossConverters.getByteFromString(get_CHAR(column));\n case Types.VARCHAR:\n case Types.LONGVARCHAR:\n return CrossConverters.getByteFromString(get_VARCHAR(column));\n default:\n throw coercionError( \"byte\", column );\n }\n }",
"@Override\r\n\tpublic byte getByte(int pos) {\n\t\treturn buffer.get(pos);\r\n\t}",
"protected byte _getByte(int index)\r\n/* 323: */ {\r\n/* 324:337 */ return HeapByteBufUtil.getByte(this.array, index);\r\n/* 325: */ }",
"public byte getByte(int index) throws ArrayIndexOutOfBoundsException\n\t{\n\t\treturn bytes[index];\n\t}",
"public Byte getByte(final int index) {\n Object returnable = this.get(index);\n if (returnable == null) {\n return null;\n }\n if (returnable instanceof String) {\n /* A String can be used to construct a BigDecimal. */\n returnable = new BigDecimal((String) returnable);\n }\n return ((Number) returnable).byteValue();\n }",
"void setByte(int index, byte value) throws SQLException;",
"protected final byte getByte(int offset)\n {\n final byte[] tableData = tables.getTablesData();\n return tableData[cursor+offset];\n }",
"@Override\n\tpublic byte readScalarByte() throws IOException {\n\t\treturn 0;\n\t}",
"public byte getByte(String columnName) throws SQLException\n {\n return m_rs.getByte(columnName);\n }",
"public final int getUByte(int index) { return bb.get(index) & 0xff; }",
"public byte getByte(int row, int column) {\n\t\treturn getColumn(column).getByte(subset[row]);\n\t}",
"private int readByte() {\n return src[srcPos++] & 0xFF;\n }",
"public byte readByte() throws IOException {\n\t\treturn (byte) read();\n\t}",
"@Override\n\tpublic byte readByte() throws IOException {\n\t\treturn (byte) (_buff.get() & 0xFF);\n\t}",
"private int readFdocaOneByte() {\n checkForSplitRowAndComplete(1);\n //return dataBuffer_[position_++] & 0xff;\n return dataBuffer_.readUnsignedByte();\n }",
"@Override\n\tpublic int ReadByte()\n\t{\n//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:\n//ORIGINAL LINE: byte[] oneByteBuffer = new byte[1];\n\t\tbyte[] oneByteBuffer = new byte[1];\n\t\tint num = Read(oneByteBuffer, 0, 1);\n\t\tif (num <= 0)\n\t\t{\n\t\t\t// return -1 to indicate that no byte was read.\n\t\t\treturn -1;\n\t\t}\n\t\treturn oneByteBuffer[0];\n\t}",
"public byte readByte() throws SerialPortException {\n\t\tif (this.available()) {\n\t\t\tbyte [] byteRead = port.readBytes(1);\n\t\t\tif(debug) {\n\t\t\t\tString byteName = String.format(\"%02x\", byteRead[0]);\n\t\t\t\tSystem.out.print(byteName + \"\\t\");;\n\t\t\t}\n\t\t\treturn byteRead[0];\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t\t\n\t}",
"public byte readByte() throws IOException {\n return in.readByte();\n }",
"public byte getByte(String key) {\n Object value = get(key);\n return ((value instanceof Long) ? (byte)((Long)value).intValue() : 0);\n }",
"public long getUInt8(int columnIndex) {\n UInt8Vector vector = (UInt8Vector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public byte getByte(int index)\r\n/* 317: */ {\r\n/* 318:331 */ ensureAccessible();\r\n/* 319:332 */ return _getByte(index);\r\n/* 320: */ }",
"public byte getTinyInt(int columnIndex) {\n TinyIntVector vector = (TinyIntVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"Object getColumnValue(int colIndex);",
"public long getUInt8(String columnName) {\n UInt8Vector vector = (UInt8Vector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public byte getAt(int fieldNumber) {\n Coordinates c = new Coordinates(fieldNumber);\n return board[c.getRow()][c.getColumn()];\n }",
"public byte read(int param1) {\n }",
"private byte nextByte(ByteBuffer inputBuffer) throws IOException {\n getAtLeastBytes(inputBuffer, 1);\n return inputBuffer.get();\n }",
"public byte getByte(int offset)\n {\n return readMode(offset + 0xA0000);\n }",
"public final int getColumn() {\n/* 368 */ return this.bufcolumn[this.bufpos];\n/* */ }",
"public int readByte() {\n waitForData();\n try {\n return m_DataInputStream.readByte();\n }\n catch (IOException e) {\n return 256;\n }\n }",
"public byte getTinyInt(String columnName) {\n TinyIntVector vector = (TinyIntVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public int readByte() {\n try {\n return in.read();\n } catch (IOException e) {\n print(\"Error reading byte from \" + portName);\n }\n return -1;\n }",
"public final int getByte() throws IOException {\r\n b3 = 0;\r\n\r\n b3 = (tagBuffer[bPtr] & 0xff);\r\n bPtr += 1;\r\n\r\n return b3;\r\n }",
"public byte getByte(int index)\r\n/* 137: */ {\r\n/* 138:154 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 139:155 */ return super.getByte(index);\r\n/* 140: */ }",
"@Override\n public byte readByte() throws IOException\n {\n if (!hasRemaining())\n {\n throw new IOException(\"End off buffer reached\");\n }\n return (byte) randomAccessRead.read();\n }",
"private int getCol(int index) {\n return index & (chunkSize - 1);\n }",
"public byte getUInt1(String columnName) {\n UInt1Vector vector = (UInt1Vector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"protected byte readByte(final int adr) {\r\n return this.memory[adr];\r\n }",
"public byte getUInt1(int columnIndex) {\n UInt1Vector vector = (UInt1Vector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public byte getValueAt(int position) {\r\n\r\n\t\tif (position >= values.length) {\r\n\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\"Index must be less than \" + values.length);\r\n\t\t}\r\n\r\n\t\treturn values[position];\r\n\t}",
"byte getEByte();",
"public byte getFieldAsByte(int tag, int index) {\n Integer i = (Integer)fieldIndex.get(tag);\n byte [] b = (fields[i]).getAsBytes();\n return b[index];\n }",
"public synchronized byte getCellValue()\n {\n return cellValue;\n }",
"public void updateByte(int columnIndex, byte x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateByte(\" + columnIndex + \", \" + x + \");\");\n }\n update(columnIndex, ValueByte.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public char getChar(int index) throws ArrayIndexOutOfBoundsException\n\t{\n\t\treturn (char) bytes[index];\n\t}",
"@Override\n public byte byteValue() {\n return value;\n }",
"public void updateByte(String columnName, byte x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateByte(\" + columnName + \", \" + x + \");\");\n }\n update(columnName, ValueByte.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void updateByte(int columnIndex, byte x) throws SQLException\n {\n m_rs.updateByte(columnIndex, x);\n }",
"public final int read() {\r\n \r\n if (cbyte == size) {\r\n return -1;\r\n }\r\n \r\n // Otherwise, the byte under the head at \"cbyte\" can be read.\r\n \r\n if (bytenum == BYTES_IN_ELEMENT) {\r\n // Read next byte\r\n offset++;\r\n elem = data[offset];\r\n bytenum = 0;\r\n }\r\n \r\n int rval = 0;\r\n rval = elem & 0xff;\r\n \r\n // increase byte position\r\n elem = elem >>> 8; // unsigned SHR\r\n bytenum++;\r\n cbyte++;\r\n \r\n return rval;\r\n }",
"protected abstract T getValue(ByteBuffer b);",
"public abstract byte read_octet();",
"public UnsignedByte read(int index) {\n if (index > -1 && index < MEMORY_LENGTH) return memory[index];\n else throw new IndexOutOfBoundsException(\"Index \" + index + \" is out of bounds (0 - \" + MEMORY_LENGTH + \")\");\n }",
"public int readValue() { \n\t\treturn (port.readRawValue() - offset); \n\t}",
"byte read()\n \tthrows IOException {\n \t//\n \t// Ensure that one byte can be read\n \tensureContinuousBlock(1);\n \t//\n \t// Simply return the byte\n \treturn _random[_o++];\n }",
"public byte readByteNonBlock() {\n return ((byte) readLongNonBlock());\n }",
"public void getUInt8(int columnIndex, NullableUInt8Holder holder) {\n UInt8Vector vector = (UInt8Vector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }",
"public byte getByte(String key)\n {\n return getByte(key, (byte) 0);\n }",
"byte peekByte() throws IOException;",
"protected abstract int readInternal(int index);",
"public byte toByte() {\n return this.toByteArray()[0];\n }",
"public void getUInt8(String columnName, NullableUInt8Holder holder) {\n UInt8Vector vector = (UInt8Vector) table.getVector(columnName);\n vector.get(rowNumber, holder);\n }",
"public void updateByte(String columnName, byte x) throws SQLException\n {\n m_rs.updateByte(columnName, x);\n }",
"public byte get_byte() {\n return local_byte;\n }",
"public static byte get(byte[] data, int index) {\n return data == null || data.length <= index ? -1 : data[index];\n }",
"public static byte get(byte[] data, int index) {\n return data == null || data.length <= index ? -1 : data[index];\n }",
"void setBytes(int index, byte[] value) throws SQLException;",
"public byte getByte(int k) {\n if (this.inByteRange(k)) return (byte) this.data.get(k);\n return 0;\n }",
"public byte[] getBytes(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getBytes\", columnIndex);\n return get(columnIndex).getBytes();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public static byte readByte(InputStream input) throws IOException {\n\n return readBytes(input, 1)[0];\n }",
"@Override\r\n\tpublic byte getSenseByte(int index) {\r\n\t\tif (index < 0 || index >= this.senseBytes.length) { return (byte)0; }\r\n\t\treturn this.senseBytes[index];\r\n\t}",
"public byte get() throws TLVEncodingException {\r\n\t\tif (cursor >= limit)\r\n\t\t\tthrow new TLVEncodingException(\"End of buffer\");\r\n\r\n\t\treturn buffer[cursor++];\r\n\t}",
"public char getUInt2(String columnName) {\n UInt2Vector vector = (UInt2Vector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public int getBit(int columnIndex) {\n BitVector vector = (BitVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public byte[] getBytes(int row, int column) {\n return columns[column].getBytes(row);\n }",
"boolean readByte(int c, String streamProvider) throws RawDataEventException ;",
"public byte[] getFixedSizeBinary(int columnIndex) {\n FixedSizeBinaryVector vector = (FixedSizeBinaryVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public static double readByte() {\n return Byte.parseByte(readString());\n }",
"public byte getValueInRowKey() {\n return valueInRowKey;\n }",
"private byte getValue() {\n\t\treturn value;\n\t}",
"public byte getByteC() {\n\t\treturn (byte) -get();\n\t}",
"public byte getByte(String name) {\n\t\tObject val = values.get(name);\n\t\tif (val == null) {\n\t\t\tthrow new IllegalArgumentException(\"Byte value required, but not specified\");\n\t\t}\n\t\tif (val instanceof Number) {\n\t\t\treturn ((Number) val).byteValue();\n\t\t}\n\t\ttry {\n\t\t\treturn Byte.parseByte((String) val);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException(\"Byte value required, but found: \" + val);\n\t\t}\n\t}",
"public byte[] getVarBinary(int columnIndex) {\n VarBinaryVector vector = (VarBinaryVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"Object getDataValue(String column, int row);",
"public char readChar() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn (char) (-1);\n\t\treturn (char) last();\n\t}",
"public byte get(int addr) {\n return data[addr - start];\n }",
"public byte[] getBytes(int columnIndex) throws SQLException\n {\n return m_rs.getBytes(columnIndex);\n }",
"public byte[] getFixedSizeBinary(String columnName) {\n FixedSizeBinaryVector vector = (FixedSizeBinaryVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"private int getColumn() {\n return binaryPartition(column);\n }",
"public int getBit(String columnName) {\n BitVector vector = (BitVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public byte[] getVarChar(int columnIndex) {\n VarCharVector vector = (VarCharVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public byte getByteA() {\n\t\treturn (byte) (get() - 128);\n\t}"
] |
[
"0.7408743",
"0.73299104",
"0.73105603",
"0.73010755",
"0.71412635",
"0.7049855",
"0.70455796",
"0.7006585",
"0.697816",
"0.6959471",
"0.68978643",
"0.6855702",
"0.68482715",
"0.6840199",
"0.683701",
"0.68010604",
"0.6766201",
"0.6756474",
"0.67428344",
"0.673591",
"0.67238253",
"0.66820705",
"0.66753757",
"0.6586755",
"0.6583042",
"0.6575582",
"0.6546662",
"0.65385455",
"0.6523502",
"0.6473052",
"0.6466511",
"0.6413573",
"0.6362683",
"0.6350674",
"0.63457733",
"0.6325407",
"0.63117945",
"0.627723",
"0.6270629",
"0.62531686",
"0.6234718",
"0.6233461",
"0.6232538",
"0.6212097",
"0.6195815",
"0.619058",
"0.6181526",
"0.61380357",
"0.6135406",
"0.6134176",
"0.6122659",
"0.6116384",
"0.6113137",
"0.6072869",
"0.60726684",
"0.60690933",
"0.6057953",
"0.60569",
"0.60480976",
"0.60378146",
"0.60375077",
"0.6035131",
"0.60319877",
"0.6028335",
"0.6017589",
"0.601561",
"0.6012139",
"0.60106754",
"0.6002526",
"0.5996515",
"0.5990993",
"0.5987204",
"0.5986941",
"0.5986941",
"0.59678906",
"0.5950585",
"0.59410286",
"0.59331226",
"0.5928322",
"0.59250695",
"0.5920953",
"0.5902123",
"0.5897787",
"0.58948284",
"0.58724266",
"0.5870099",
"0.5869294",
"0.58644885",
"0.5860619",
"0.5858312",
"0.58509856",
"0.5843889",
"0.584101",
"0.5836359",
"0.5800501",
"0.58001226",
"0.57978654",
"0.5797251",
"0.5793636",
"0.5783498"
] |
0.6864559
|
11
|
Read an short value from the column at the current index
|
short readShort();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Short getShort(int col_num) throws ConnException;",
"private final short get_SMALLINT(int column) {\n // @AGG force Little Endian\n if (metadata.isZos())\n return dataBuffer_.getShort(columnDataPosition_[column - 1]);\n else\n return dataBuffer_.getShortLE(columnDataPosition_[column - 1]);\n// return SignedBinary.getShort(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }",
"public short getShort(int row, int column) {\n return columns[column].getShort(row);\n }",
"public short getShort(int columnIndex) throws SQLException\n {\n return m_rs.getShort(columnIndex);\n }",
"public short getShort(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getShort\", columnIndex);\n return get(columnIndex).getShort();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public short getSmallInt(int columnIndex) {\n SmallIntVector vector = (SmallIntVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public abstract short read_short();",
"@Override\n\tpublic short readScalarShort() throws IOException {\n\t\treturn 0;\n\t}",
"public short readShort() {\n return ((short) readLong());\n }",
"Short getValue();",
"public short getShort(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getShort\", columnName);\n return get(columnName).getShort();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"abstract int readShort(int start);",
"public short readShort() throws IOException;",
"void setShort(int index, short value) throws SQLException;",
"public short getShort(int row, int column) {\n\t\treturn getColumn(column).getShort(subset[row]);\n\t}",
"public short getShort(String columnName) throws SQLException\n {\n return m_rs.getShort(columnName);\n }",
"public short getSmallInt(String columnName) {\n SmallIntVector vector = (SmallIntVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public short getElement_data(int index1) {\n return (short)getUIntBEElement(offsetBits_data(index1), 8);\n }",
"short readShort() throws IOException;",
"private int getShort() {\n shortBuffer.rewind();\n archive.read(shortBuffer);\n shortBuffer.flip();\n return (int) shortBuffer.getShort();\n }",
"@Override\r\n\tpublic short getShort(int pos) {\n\t\treturn buffer.getShort(pos);\r\n\t}",
"protected final short getShort(int offset)\n {\n final byte[] tableData = tables.getTablesData();\n return Bytes.getShort(tableData, cursor+offset);\n }",
"public short readShortNonBlock() {\n return ((short) readLongNonBlock());\n }",
"String shortRead();",
"public final synchronized short getShort(int parameterIndex) \n throws SQLException\n {\n return getCallableStatement().getShort(parameterIndex);\n }",
"public short getShort(int index)\r\n/* 328: */ {\r\n/* 329:342 */ ensureAccessible();\r\n/* 330:343 */ return _getShort(index);\r\n/* 331: */ }",
"public short readVarShort() throws IOException {\n return readVarShort(7);\n }",
"public Short getShort(final int index) {\n Object returnable = this.get(index);\n if (returnable == null) {\n return null;\n }\n if (returnable instanceof String) {\n /* A String can be used to construct a BigDecimal. */\n returnable = new BigDecimal((String) returnable);\n }\n return ((Number) returnable).shortValue();\n }",
"public short getShort(int pos) {\n return Tuples.toShort(getObject(pos));\n }",
"public short getValue() {\n return value;\n }",
"public static double readShort() {\n return Short.parseShort(readString());\n }",
"public abstract short read_ushort();",
"protected short _getShort(int index)\r\n/* 334: */ {\r\n/* 335:348 */ return HeapByteBufUtil.getShort(this.array, index);\r\n/* 336: */ }",
"public short getShort(String key) {\n Object value = get(key);\n return ((value instanceof Long) ? (short)((Long)value).intValue() : 0);\n }",
"public abstract void read_short_array(short[] value, int offset, int\nlength);",
"public short readShort()\r\n/* 399: */ {\r\n/* 400:412 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 401:413 */ return super.readShort();\r\n/* 402: */ }",
"protected int readShort(BinaryDataReader dataReader) throws IOException\n\t{\n\t\t// convert tag value to long offset for reading large buffer\n\t\tlong offset = ((long) this.value) & 0xffffffffL;\n\n\t\tlong pos0 = dataReader.getFilePointer();\n\t\tdataReader.seek(offset);\n\t\tint result = dataReader.readShort();\n\t\tdataReader.seek(pos0);\n\t\treturn result;\n\t}",
"public short getValue() {\n return value;\n }",
"public short readShort() throws IOException {\n\n\t\tif (read(bb, 0, 2) < 2) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\tshort s = (short) (bb[0] << 8 | (bb[1] & 0xFF));\n\t\treturn s;\n\t}",
"public short getShort(int index)\r\n/* 149: */ {\r\n/* 150:166 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 151:167 */ return super.getShort(index);\r\n/* 152: */ }",
"private short readShort(SeekableStream stream)\n throws IOException {\n if (isBigEndian) {\n return stream.readShort();\n } else {\n return stream.readShortLE();\n }\n }",
"public short toShort() {\n return this.toShortArray()[0];\n }",
"public short readShortLE()\r\n/* 817: */ {\r\n/* 818:826 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 819:827 */ return super.readShortLE();\r\n/* 820: */ }",
"int processFirstShort(int index) {\n\t\t// process the first Short integer in the Key Entry Set\n\t\treturn (int) keyEntrySet.get(index);\n\t}",
"public void updateShort(int columnIndex, short x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateShort(\" + columnIndex + \", (short) \" + x + \");\");\n }\n update(columnIndex, ValueShort.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"@Test\n public void testReadWriteShort() {\n System.out.println(\"readShort\");\n ByteArray instance = new ByteArray();\n \n instance.writeShort((short) 12, 0);\n instance.writeShort((short) 15, 2);\n instance.writeShort((short) 13, instance.compacity());\n \n assertEquals(12, instance.readShort(0));\n assertEquals(15, instance.readShort(2));\n assertEquals(13, instance.readShort(instance.compacity() - 2));\n \n instance.writeShort((short) 14, 2);\n assertEquals(14, instance.readShort(2));\n }",
"public static short getShort(byte bc[], int index) {\n short s, bh, bl;\n bh = (bc[index]);\n bl = (bc[index + 1]);\n s = (short) (((bh << 8) & 0xff00) | (bl & 0xff));\n // s = (short)((int)(bc[index])<<8 + bc[index+1]);\n return s;\n }",
"public void updateShort(int columnIndex, short x) throws SQLException\n {\n m_rs.updateShort(columnIndex, x);\n }",
"public short getShort(String key)\n {\n return getShort(key, (short) 0);\n }",
"public short get_short() {\n return local_short;\n }",
"public short getShortLE(int index)\r\n/* 339: */ {\r\n/* 340:353 */ ensureAccessible();\r\n/* 341:354 */ return _getShortLE(index);\r\n/* 342: */ }",
"void writeShort(short value);",
"public short readVarShort(int optimal) throws IOException {\n int[] varShortDepths = {optimal, 16};\n final int type = (int) this.read(1).toLong();\n return (short) this.read(varShortDepths[type]).toLong();\n }",
"private int getCol(int index) {\n return index & (chunkSize - 1);\n }",
"public int read(short[] s) throws IOException {\n\t\treturn read(s, 0, s.length);\n\t}",
"protected short _getShortLE(int index)\r\n/* 345: */ {\r\n/* 346:359 */ return HeapByteBufUtil.getShortLE(this.array, index);\r\n/* 347: */ }",
"public void getSmallInt(int columnIndex, NullableSmallIntHolder holder) {\n SmallIntVector vector = (SmallIntVector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }",
"int processSecondShort(int index) {\n\t\t// process the second Short integer in the Key Entry Set\n\t\treturn (int) keyEntrySet.get(index + 1);\n\t}",
"public short getShortLE(int index)\r\n/* 751: */ {\r\n/* 752:760 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 753:761 */ return super.getShortLE(index);\r\n/* 754: */ }",
"public short getShortA() {\n\t\tint i = (payload.get() & 0xFF) << 8 | payload.get() - 128 & 0xFF;\n\t\tif (i > 32767) {\n\t\t\ti -= 0x10000;\n\t\t}\n\t\treturn (short) i;\n\t}",
"public void setShort(short data, int row, int column) {\n\t\tcolumns[column].setShort(data, subset[row]);\n\t}",
"protected void _setShort(int index, int value)\r\n/* 435: */ {\r\n/* 436:449 */ HeapByteBufUtil.setShort(this.array, index, value);\r\n/* 437: */ }",
"public synchronized void read( int readIndex, short[] array,\n\t\t\tint firstIndex, int numShorts )\n\t{\n\t\tint numShortsLeft = numShorts;\n\t\tint shortsInBuffer = buffer.length >> 1;\n\t\tint shortIndex = firstIndex;\n\t\tint byteReadIndex = readIndex << 1;\n\t\twhile( numShortsLeft > 0 )\n\t\t{\n\t\t\tint numShortsToRead = (numShortsLeft < shortsInBuffer) ? numShortsLeft\n\t\t\t\t\t: shortsInBuffer;\n\n\t\t\t// Shift by one to convert numShorts to numBytes.\n\t\t\tint numBytesToRead = (numShortsToRead << 1);\n\t\t\tbyteArray.read( byteReadIndex, buffer, 0, numBytesToRead );\n\t\t\tbyteReadIndex += numBytesToRead;\n\n\t\t\tint byteIndex = 0;\n\t\t\tfor( int i = 0; i < numShortsToRead; i++ )\n\t\t\t{\n\t\t\t\tint loByte = buffer[byteIndex++];\n\t\t\t\tint hiByte = buffer[byteIndex++];\n\n\t\t\t\tint sample = (hiByte << 8) | (loByte & 0x00FF);\n\t\t\t\tarray[shortIndex++] = (short) sample;\n\t\t\t}\n\t\t\tnumShortsLeft -= numShortsToRead;\n\t\t}\n\t}",
"public ByteBuf setShort(int index, int value)\r\n/* 277: */ {\r\n/* 278:292 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 279:293 */ return super.setShort(index, value);\r\n/* 280: */ }",
"public void updateShort(String columnName, short x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateShort(\" + quote(columnName) + \", (short) \" + x + \");\");\n }\n update(columnName, ValueShort.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void updateShort(String columnName, short x) throws SQLException\n {\n m_rs.updateShort(columnName, x);\n }",
"public void getSmallInt(String columnName, NullableSmallIntHolder holder) {\n SmallIntVector vector = (SmallIntVector) table.getVector(columnName);\n vector.get(rowNumber, holder);\n }",
"public ByteBuf setShort(int index, int value)\r\n/* 428: */ {\r\n/* 429:442 */ ensureAccessible();\r\n/* 430:443 */ _setShort(index, value);\r\n/* 431:444 */ return this;\r\n/* 432: */ }",
"public byte getTinyInt(int columnIndex) {\n TinyIntVector vector = (TinyIntVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public int getUnsignedShort(int index)\r\n/* 155: */ {\r\n/* 156:172 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 157:173 */ return super.getUnsignedShort(index);\r\n/* 158: */ }",
"private short toDec(byte[] source, short index){\r\n \treturn (short)(source[index] - (short)48);\r\n }",
"private int readFdocaOneByte(int index) {\n\n checkForSplitRowAndComplete(1, index);\n //return dataBuffer_[position_++] & 0xff;\n return dataBuffer_.readByte();\n }",
"public String get(int idx) {\n return (String) columns.get(idx);\n }",
"short getDQ1( byte[] buffer, short offset );",
"public short getIndex()\n {\n return index;\n }",
"public String getShort() { \n\t\treturn getShortElement().getValue();\n\t}",
"abstract public int getFromU16SingleLead(char c);",
"void writeShort(int v) throws IOException;",
"public short toShort()\n\t{\n\t\treturn (short)this.ordinal();\n\t}",
"protected void _setShortLE(int index, int value)\r\n/* 447: */ {\r\n/* 448:461 */ HeapByteBufUtil.setShortLE(this.array, index, value);\r\n/* 449: */ }",
"public short getLEShort() {\n\t\tint i = payload.get() & 0xFF | (payload.get() & 0xFF) << 8;\n\t\tif (i > 32767) {\n\t\t\ti -= 0x10000;\n\t\t}\n\t\treturn (short) i;\n\t}",
"public ByteBuf setShortLE(int index, int value)\r\n/* 793: */ {\r\n/* 794:802 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 795:803 */ return super.setShortLE(index, value);\r\n/* 796: */ }",
"public int readUnsignedShort()\r\n/* 405: */ {\r\n/* 406:418 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 407:419 */ return super.readUnsignedShort();\r\n/* 408: */ }",
"Object getColumnValue(int colIndex);",
"public static final short getShort(ClassFile cf, short cpiIndex) {\n IntegerInfo ii = (IntegerInfo) cf.getCpInfo(cpiIndex);\n return (short) ii.bytes;\n }",
"protected abstract int readInternal(int index);",
"public String getShort() {\n return m_short;\n }",
"public int readUnsignedShort() throws IOException {\n\n\t\tif (read(bb, 0, 2) < 2) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\treturn (bb[0] & 0xFF) << 8 | (bb[1] & 0xFF);\n\t}",
"public Short getShortAttribute();",
"public short readAsShort(int nrBits) {\n return readAsShort(bitPos, nrBits, ByteOrder.BigEndian);\n }",
"public short getElement_infos_metadata(int index1) {\n return (short)getUIntBEElement(offsetBits_infos_metadata(index1), 8);\n }",
"public short get_source() {\n return (short)getUIntElement(offsetBits_source(), 8);\n }",
"public short get_dataType() {\n return (short)getUIntBEElement(offsetBits_dataType(), 8);\n }",
"byte get(int index);",
"public static short getShort(byte[] buffer, int index, int len) {\n switch (len) {\n case 0: return (short) 0xFFFF;\n case 1: return (short) (0xFFFFFF00 | _getByte(buffer, index, 1));\n case 2: return _getShort(buffer, index, 2);\n default: throw new IllegalArgumentException(\"len is out of range: \" + len);\n }\n }",
"public ByteBuf setShortLE(int index, int value)\r\n/* 440: */ {\r\n/* 441:454 */ ensureAccessible();\r\n/* 442:455 */ _setShortLE(index, value);\r\n/* 443:456 */ return this;\r\n/* 444: */ }",
"public short getUnsignedByte(int index)\r\n/* 143: */ {\r\n/* 144:160 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 145:161 */ return super.getUnsignedByte(index);\r\n/* 146: */ }",
"public short getElement_entries_id(int index1) {\n return (short)getUIntElement(offsetBits_entries_id(index1), 8);\n }",
"@Test\n public void testShort() {\n assertEquals(\"32767\", hiveTypeToJson(new MyHiveType(new ShortWritable(Short.MAX_VALUE), shortTypeInfo)));\n }",
"public void onReadShortBegin(ICPU cpu, int addr) {\n\t}"
] |
[
"0.7825952",
"0.7377047",
"0.7343696",
"0.732063",
"0.72282434",
"0.7224577",
"0.717116",
"0.7141723",
"0.70663846",
"0.7008318",
"0.69359475",
"0.68786556",
"0.6874169",
"0.6860374",
"0.6845417",
"0.682599",
"0.6821875",
"0.67624575",
"0.67563456",
"0.6670051",
"0.66560155",
"0.6645803",
"0.6605993",
"0.65864104",
"0.65618795",
"0.65297526",
"0.646299",
"0.6456627",
"0.6432391",
"0.6429454",
"0.6387366",
"0.6386504",
"0.63586867",
"0.63543713",
"0.63322586",
"0.6314857",
"0.6313913",
"0.6308938",
"0.62869287",
"0.6242331",
"0.62033033",
"0.61670655",
"0.614993",
"0.61042047",
"0.6087899",
"0.6072844",
"0.6030928",
"0.5996696",
"0.5976542",
"0.59463483",
"0.5919819",
"0.59098923",
"0.5901626",
"0.5891054",
"0.58889383",
"0.5887393",
"0.5885789",
"0.58580756",
"0.5858057",
"0.5837072",
"0.5813993",
"0.5799468",
"0.5797134",
"0.5770078",
"0.57699686",
"0.5762557",
"0.5759276",
"0.5758956",
"0.5750338",
"0.5746026",
"0.5739443",
"0.572892",
"0.5727471",
"0.572558",
"0.5718805",
"0.57184345",
"0.57141227",
"0.57087725",
"0.5700398",
"0.56928337",
"0.5686339",
"0.5672165",
"0.5672082",
"0.5669016",
"0.5665655",
"0.564199",
"0.5639937",
"0.5635413",
"0.5634333",
"0.5620058",
"0.56171256",
"0.5599598",
"0.55995643",
"0.5595454",
"0.55902773",
"0.55784184",
"0.5569709",
"0.5557248",
"0.55561286",
"0.5553875"
] |
0.7033037
|
9
|
Read an char value from the column at the current index
|
char readChar();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public char readChar() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn (char) (-1);\n\t\treturn (char) last();\n\t}",
"public char getChar(int row, int column) {\n return columns[column].getChar(row);\n }",
"public char getChar(int index) throws ArrayIndexOutOfBoundsException\n\t{\n\t\treturn (char) bytes[index];\n\t}",
"public char readChar() {\n return ((char) readLong());\n }",
"public char get(final int row, final int col) {\r\n // TODO your job\r\n return mazeData [row][col] ;\r\n\r\n\r\n }",
"public char readChar() {\n return readNextLine().charAt(0);\n }",
"public char charAt(int index);",
"public abstract char read_char();",
"public char getChar()\n throws IOException\n {\n return (char) lineNumberReader.read();\n }",
"public char getChar(int row, int column) {\n\t\treturn getColumn(column).getChar(subset[row]);\n\t}",
"public char getChar() throws IOException {\r\n\t\treturn (char)lineReader.read();\r\n\t}",
"public char read() {\n char ch = this.peek();\n this.index++;\n return ch;\n }",
"private char readChar() {\r\n\t\tInputStream in = System.in;\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n\t\tString line = null;\r\n\r\n\t\ttry {\r\n\t\t\tline = br.readLine();\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\treturn line.toLowerCase().charAt(0);\r\n\t}",
"public static char readChar()\n {\n \tString ch = scanner.next();\n \treturn ch.charAt(0);\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }",
"public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }",
"public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }",
"public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }",
"public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }",
"public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }",
"@Override\r\n\tpublic char charAt(int index) {\n\t\treturn chars[index];\r\n\t}",
"public char charAt(int index)\n\t{\n\t\tif (index < 0 || index > (length - 1))\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\tCNode character = getCNodeAt(index, firstC);\n\t\treturn character.data;\n\t}",
"private char getChar() {\n\t\t//Must declare as int, because -1 in char is 65535\n\t\tint c = '\\0';\n\t\ttry {\n\t\t\tc = inFile.read();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error occurred when trying to read characters\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (c == -1) {\n\t\t\teof = true;\n\t\t\treturn EndOfFile;\n\t\t} else if (c == '\\n' || c == '\\r') {\n\t\t\tlineNumber++;\n\t\t}\n\t\treturn (char) c;\t\n\t}",
"char getChar(int offset) throws BadLocationException;",
"public final char yycharat(int pos) {\n return zzBuffer[zzStartRead + pos];\n }",
"public char getChar(int pos)\n {\n if (pos < 0) {\n if(this.post_comma_digits >= -pos)\n return this.raw_value[this.pre_comma()-1-pos];\n else return '0';\n } else {\n if(pos < this.pre_comma())\n return this.raw_value[this.pre_comma()-1-pos];\n else return '0';\n }\n }",
"public char charAt(int index) throws stackException\n {\n char ans;\n if(index >= 0 && index < numNodes)\n {\n Node n = this.get(index);\n ans = n.item;\n return ans;\n }\n else\n {\n throw new stackException(\"Index Is Out Of Bounds\");\n }\n }",
"final public char yycharat(int pos) {\n return yy_buffer[yy_startRead+pos];\n }",
"final public char yycharat(int pos) {\n return yy_buffer[yy_startRead+pos];\n }",
"public char charAt(int pos) {\n return content.charAt(pos);\n }",
"public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }",
"public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }",
"public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }",
"public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }",
"public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }",
"public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }",
"public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }",
"public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }",
"public static char getChar() throws IOException {\n\t\nString s = getString();\nreturn s.charAt(0);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Returns the first letter of the string, to help idiot proof it.\n\n}",
"public final char yycharat(int pos) {\n\t\treturn zzBuffer[zzStartRead+pos];\n\t}",
"public char charAt(int anIndex)\n {\n return _xstr.charAt(_start + anIndex);\n }",
"public char charAt(int charOffset);",
"public final int getColumn() {\n/* 368 */ return this.bufcolumn[this.bufpos];\n/* */ }",
"public char readChar(){\n\t\tscanner.useDelimiter(EMPTY_PATTERN);\n\t\ttry {\n\t\t\tString ch=scanner.next();\n\t\t\tassert ch.length()==1:\"In.readChar() error\";\n\t\t\tscanner.useDelimiter(WHITESPACE_PATTERN);\n\t\t\treturn ch.charAt(0);\n\t\t}catch (NoSuchElementException e){\n\t\t\tthrow new NoSuchElementException(\"noSuchElement\");\n\t\t}\n\t}",
"String getColumn(int index);",
"String getColumn(int index);",
"public String get(int idx) {\n return (String) columns.get(idx);\n }",
"char getChar () { \n return m_pos < m_len ? m_buffer.charAt (m_pos) : '\\0';\n }",
"public final char yycharat(int pos) {\n return input.readText().charAt(pos);\n }",
"public char getChar();",
"public final char yycharat(int pos) {\n return zzBufferArray != null ? zzBufferArray[zzStartRead+pos]:zzBuffer.charAt(zzStartRead+pos);\n }",
"public final char yycharat(int pos) {\n return zzBufferArray != null ? zzBufferArray[zzStartRead+pos]:zzBuffer.charAt(zzStartRead+pos);\n }",
"public char readChar() throws IOException {\n\t\tbyte[] b = new byte[2];\n\n\t\tif (read(b, 0, 2) < 2) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\tchar c = (char) (b[0] << 8 | (b[1] & 0xFF));\n\t\treturn c;\n\t}",
"char toChar(int index) {\n return _chars.charAt(index);\n }",
"char getReadChar();",
"Object getColumnValue(int colIndex);",
"public char at(int pos) {\r\n return fCharBuffer.at(pos);\r\n }",
"private String getCharacter(final int index) {\n String s = null;\n try {\n s = document.getText(index, 1);\n } catch (final BadLocationException e) {\n }\n return s;\n }",
"@Override\n\tpublic char charAt(int index) {\n\t\tif (index >= this.size()) throw new IndexOutOfBoundsException(\"out of bounds gah\");\n\t\tif (index<0) throw new IndexOutOfBoundsException(\"invalid index\");\n\n\t\tif (index<myIndex) {\n\t\t\tmyIndex = 0;\n\t\t\tmyLocalIndex=0;\n\t\t\tmyCurrent = myFirst;\n\t\t}\n\t\twhile (myIndex != index) {\n\n\t\t\tmyIndex++;\n\t\t\tmyLocalIndex++;\n\t\t\t\n\t\t\tif (myLocalIndex >= myCurrent.info.length()) {\n\t\t\t\tmyLocalIndex = 0;\n\t\t\t\t\n\t\t\t\tif (myCurrent.next.info == null) throw new IndexOutOfBoundsException(\"out of nodes\");\n\t\t\t\tmyCurrent = myCurrent.next;\n\t\t\t\t\n\t\t\t}\n\t\t}\n return myCurrent.info.charAt(myLocalIndex);\n }",
"String getValue(String column, int row);",
"public char getChar(int index)\r\n/* 191: */ {\r\n/* 192:208 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 193:209 */ return super.getChar(index);\r\n/* 194: */ }",
"public char readChar(String message) {\r\n\t\tSystem.out.println(message);\r\n\t\treturn scanner.nextLine().charAt(0);\r\n\t}",
"private String get_CHAR(int column) {\n if (ccsid_[column - 1] == 1200) {\n return getStringWithoutConvert(columnDataPosition_[column - 1], columnDataComputedLength_[column - 1]);\n }\n\n // check for null encoding is needed because the net layer\n // will no longer throw an exception if the server didn't specify\n // a mixed or double byte ccsid (ccsid = 0). this check for null in the\n // cursor is only required for types which can have mixed or double\n // byte ccsids.\n if (charset_[column - 1] == null) {\n throw new IllegalStateException(\"SQLState.CHARACTER_CONVERTER_NOT_AVAILABLE\");\n }\n\n int dataLength = columnDataComputedLength_[column - 1];\n if (maxFieldSize_ != 0 && maxFieldSize_ < dataLength)\n dataLength = maxFieldSize_;\n return dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n dataLength, charset_[column - 1]).toString();\n// String tempString = new String(dataBuffer_,\n// columnDataPosition_[column - 1],\n// columnDataComputedLength_[column - 1],\n// charset_[column - 1]);\n// return (maxFieldSize_ == 0) ? tempString :\n// tempString.substring(0, Math.min(maxFieldSize_,\n// tempString.length()));\n }",
"public char currentChar() throws Exception {\n // first line?\n if (currentPos == -2) {\n readLine();\n return nextChar();\n }\n\n // at end of file?\n if (line == null) {\n return PascalToken.EOF_CHAR;\n }\n\n // at end of line?\n if (currentPos == -1 || currentPos == line.length()) {\n return PascalToken.EOL_CHAR;\n }\n\n // Need to read next line?\n if (currentPos > line.length()) {\n readLine();\n return nextChar();\n }\n // return char at current pos\n return line.charAt(currentPos);\n }",
"public char getChar( String name )\n {\n char value = 0;\n if ( config != null )\n {\n value = ( char ) config.getProperty( name );\n LOG.debug( \"getChar name [{}] value [{}]\", name, value );\n }\n else\n {\n LOG.warn( \"getChar invalid config, can't read prop [{}]\", name );\n }\n return value;\n }",
"public static char readChar()\n \n {\n char c='0';\n String wort=\"xxxx\";\n try {\n wort=eingabe.readLine();\n c=wort.charAt(0);\n } catch(IOException e1) {\n System.out.println(\"Eingabefehler, bitte noch einmal!\");\n c=readChar();\n } catch(NumberFormatException e2) {\n if(wort.equals(\"\"))\n System.out.println(\"Bitte etwas eingeben, noch einmal:\");\n else {\n System.out.print(\"Fehler beim Format, \");\n System.out.println(\"bitte noch einmal!\");}\n c=readChar();\n }\n return c;\n }",
"char getPreviousReadChar();",
"public char charAt(int index) {\n/* 121 */ return this.m_str.charAt(index);\n/* */ }",
"private int readCharBackward() {\r\n \t\tif (--index < 0 || \r\n \t\t\t\tdocumentContent == null ||\r\n \t\t\t\tdocumentContent.length() <= index)\r\n \t\t\treturn -1;\r\n \r\n \t\ttry {\r\n \t\t\treturn documentContent.charAt(index);\r\n \t\t} catch (StringIndexOutOfBoundsException e) {\r\n \t\t\treturn -1;\r\n \t\t}\r\n \t}",
"char toChar(int index) {\n if (index >= 0 && index < size()) {\n return _chars[index];\n } else {\n throw new EnigmaException(\"Index out of bounds.\");\n }\n }",
"private int getChar() {\n\n\t\ttry {\n\t\t\treturn stream.read();\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.print(e.getMessage());\n\t\t\tSystem.err.println(\"IOException occured in Lexer::getChar()\");\n\t\t\treturn -1;\n\t\t}\n\n\t}",
"public int get_char() {\n return local_char;\n }",
"private int readChar(boolean movePointer) throws Exception {\n if (_bi >= _blen) {\n _blen = _reader.read(_buf, 0, 2048);\n if (log) {\n StringBuffer sbBuffer = new StringBuffer();\n for (int i = 0; i < 300; i++) {\n sbBuffer.append(_buf[i]);\n }\n }\n log = false;\n\n _bi = 0;\n if (_blen < 0)\n return -1;\n }\n char ret = _buf[_bi];\n if (movePointer)\n _bi++;\n return ret;\n }",
"private int toColChar(int column)\n\t{\n\t\tint theCol;\n\t\tswitch (column)\n\t\t{\n\t\tcase 0: theCol = 1; break;\n\t\tcase 1: theCol = 2; break;\n\t\tcase 2: theCol = 3; break;\n\t\tdefault: theCol = -1;\n\t\t}\n\t\t\n\t\treturn theCol;\n\t}",
"public abstract String getString(int columnIndex);",
"public char charAt(int index)\r\n/* 31: */ {\r\n/* 32: 44 */ if (index > this.pos) {\r\n/* 33: 45 */ throw new IndexOutOfBoundsException();\r\n/* 34: */ }\r\n/* 35: 47 */ return this.chars[index];\r\n/* 36: */ }",
"public char get_char(int k) throws Exception {\r\n\t\tif (k < 0 || k >= text.length())\r\n\t\t\tthrow new IndexOutOfBoundsException(\"Invalid index: \" + k);\r\n\t\telse\r\n\t\t\treturn text.charAt(k);\r\n\t}",
"public char Get() {\n\t\treturn myChar;\n\t}"
] |
[
"0.7233143",
"0.7173885",
"0.7071917",
"0.69846493",
"0.6896788",
"0.6893841",
"0.68412495",
"0.6801344",
"0.6775315",
"0.675987",
"0.6736697",
"0.6659324",
"0.6647097",
"0.6646577",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6638455",
"0.6631253",
"0.6631253",
"0.6631253",
"0.6631253",
"0.6631253",
"0.6627743",
"0.6616732",
"0.65637636",
"0.65395737",
"0.65384525",
"0.65362316",
"0.651008",
"0.64937556",
"0.64937556",
"0.6491832",
"0.6491231",
"0.6491231",
"0.6491231",
"0.6491231",
"0.6491231",
"0.6491231",
"0.6491231",
"0.6491231",
"0.6481228",
"0.6478408",
"0.6476348",
"0.64756495",
"0.6471449",
"0.64274585",
"0.6421324",
"0.6421324",
"0.6398628",
"0.6392483",
"0.63806725",
"0.6372013",
"0.6355385",
"0.6355385",
"0.63466495",
"0.6344437",
"0.6343922",
"0.63427615",
"0.6302875",
"0.6291796",
"0.62773925",
"0.6274565",
"0.6262659",
"0.62558943",
"0.62220806",
"0.6222064",
"0.6197164",
"0.6166135",
"0.61551213",
"0.61498606",
"0.61484414",
"0.61395854",
"0.61336476",
"0.6106195",
"0.6099785",
"0.6090467",
"0.6085891",
"0.6069581",
"0.606953",
"0.6064153"
] |
0.6540388
|
45
|
Read an int from the column at the current index
|
int readInt();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getInt(String columnName) {\n IntVector vector = (IntVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public int getInt(int columnIndex) {\n IntVector vector = (IntVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public abstract Number getNumber(int columnIndex);",
"public int getInt(int row, int column) {\n return columns[column].getInt(row);\n }",
"protected abstract int readInternal(int index);",
"public int getIntColumn(String column)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n String name = canonicalize(column);\n \n if (isColumnNull(name))\n return -1;\n \n Object value = data.get(name);\n \n if (value == null)\n throw new IllegalArgumentException(\"Column \" + column + \" not present\");\n if (!(value instanceof Integer))\n throw new IllegalArgumentException(\"Value for \" + column + \" is not an integer\");\n \n return ((Integer) value).intValue();\n }",
"public int getValue(int row, int column);",
"protected final int get_INTEGER(int column) {\n // @AGG had to get integer as Little Endian\n if (metadata.isZos())\n return dataBuffer_.getInt(columnDataPosition_[column - 1]);\n else\n return dataBuffer_.getIntLE(columnDataPosition_[column - 1]);\n// return SignedBinary.getInt(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }",
"private int getCol(int index) {\n return index & (chunkSize - 1);\n }",
"public int getInt(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getInt\", columnIndex);\n return get(columnIndex).getInt();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"private int intValue(String columnName) {\r\n int value = 0;\r\n try {\r\n if ((rowSet != null) && selectContactInRowSet()) {\r\n value = rowSet.getInt(columnName);\r\n }\r\n } catch (SQLException sqlex) {\r\n sqlex.printStackTrace();\r\n }\r\n return value;\r\n }",
"int atColumn();",
"public int getColumn(){ return (Integer)args[1]; }",
"public int getInt(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getInt\", columnName);\n return get(columnName).getInt();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"Object getColumnValue(int colIndex);",
"public int getInt(int columnIndex) throws SQLException\n {\n return m_rs.getInt(columnIndex);\n }",
"public static int readCellAsInt(final ILogger aLogger,\r\n final String aTableName,\r\n final String aColumnName,\r\n final String aWhere,\r\n final Statement aStatement) {\r\n String s= readCellAsString(aLogger, aTableName, aColumnName, aWhere, aStatement);\r\n if (s==null) return -1;\r\n if (s.length()==0) return 0;\r\n if (! StringUtility.isNumeric(s)) return -1;\r\n return Integer.parseInt(s);\r\n }",
"int getColumn();",
"public void getInt(String columnName, NullableIntHolder holder) {\n IntVector vector = (IntVector) table.getVector(columnName);\n vector.get(rowNumber, holder);\n }",
"int getColumnIndex();",
"int getColumnIndex();",
"int getColumnIndex();",
"private int getColumn() {\n return binaryPartition(column);\n }",
"public int getRow(){ return (Integer)args[0]; }",
"protected final int getInt(int offset)\n {\n final byte[] tableData = tables.getTablesData();\n return Bytes.getInt(tableData, cursor+offset);\n }",
"public final int getColumn() {\n/* 368 */ return this.bufcolumn[this.bufpos];\n/* */ }",
"public int getInt(String columnName) throws SQLException\n {\n return m_rs.getInt(columnName);\n }",
"public int i(int index) {\n if (get(index) == null) return 0;\n return this.adapter.get(index).intValue();\n }",
"public int getInt(int row, int column) {\n\t\treturn getColumn(column).getInt(subset[row]);\n\t}",
"public int getColumn();",
"int getInt(int index) throws PropertyException {\n return this.getNumber(index).intValue();\n }",
"public static int readCellAsInt(final ILogger aLogger,\r\n final String aSql,\r\n final Connection aConnection) {\r\n String r= readCellAsString(aLogger, aSql, aConnection);\r\n if (r==null) return -1;\r\n if (r.length()==0) return 0;\r\n if (! StringUtility.isNumeric(r)) return -1;\r\n return Integer.parseInt(r);\r\n }",
"public Integer getInteger(final int index) {\n Object returnable = this.get(index);\n if (returnable == null) {\n return null;\n }\n if (returnable instanceof String) {\n /* A String can be used to construct a BigDecimal. */\n returnable = new BigDecimal((String) returnable);\n }\n return ((Number) returnable).intValue();\n }",
"@Override\r\n\tpublic int getInt(int pos) {\n\t\treturn buffer.getInt(pos);\r\n\t}",
"int getCol();",
"private int getColumn(char columnName) {\r\n\t\tint result = -1;\r\n\t\tif (columnName > 64 && columnName < 91) {\r\n\t\t\tresult = columnName - 65;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"@Override\n\tpublic int readScalarInt() throws IOException {\n\t\treturn 0;\n\t}",
"public int readValue() { \n\t\treturn (port.readRawValue() - offset); \n\t}",
"public void getInt(int columnIndex, NullableIntHolder holder) {\n IntVector vector = (IntVector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }",
"public int getDigit(int index) {\n\t\tif(index >= 0&&index < data.length) {\n\t\t\treturn data[index];\n\t\t}else {\n\t\t\tSystem.out.println(\" the index is out of bounds\");\n\t\t\treturn 0;\n\t\t}\n\t}",
"int getColumnIndex (String columnName);",
"private int queryNumberChar() throws IOException {\n\t\tbrin.mark(2);\n\t\treturn brin.read();\n\t}",
"int getNumber (int col, int row) {\n\t\treturn boardArray[col][row];\n\t}",
"private int getCodigoVistoBueno(int columna){\n int intCodVisBue=0;\n int w=0;\n int intCol=columna;\n int intVecCol=0;\n try{\n do{\n intVecCol=Integer.parseInt(strVecDat[w][2]);\n if(intCol==intVecCol){\n intCodVisBue=Integer.parseInt(strVecDat[w][0]);\n break;\n }\n else{\n w++;\n }\n }while(strVecDat[w][2]!=null);\n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(this, e);\n \n }\n return intCodVisBue;\n }",
"public int toInt() {\n return this.toIntArray()[0];\n }",
"int readerIndex();",
"private int getRow(int index) {\n return index >> divShift;\n }",
"String getColumn(int index);",
"String getColumn(int index);",
"public int obtenerValor(int fila, int columna){\n return tablero[fila][columna];\n }",
"public int getDigit(int index){\n\t\tif (index+1 > data.length){\n\t\t\tSystem.out.println(\"index out of bounds\");\n\t\t}\n\t\treturn index;\n\t\t\n\t}",
"public int getProbeColumn(int column, int row);",
"public int getAccessibleColumn(int index) {\n try {\n return unoAccessibleTable.getAccessibleColumn(index);\n } catch (com.sun.star.lang.IndexOutOfBoundsException e) {\n return -1;\n } catch (com.sun.star.uno.RuntimeException e) {\n return -1;\n }\n }",
"public int getDataIndexAndIncrement() {\n\t\tint x = dataIndex;\n\t\tnext();\n\t\treturn x;\n\t}",
"int atRow();",
"int getIntArgument() throws Exception {\n return Integer.parseInt(this.readLine().split(\"\\\\s+\", 2)[1]);\n }",
"private int getDigit(int index) {\n return getDigit(number, index);\n }",
"private int read_int(RandomAccessFile file) throws IOException {\n int number = 0;\n for (int i = 0; i < 4; ++i) {\n number += (file.readByte() & 0xFF) << (8 * i);\n }\n return number;\n }",
"public int read(int i);",
"protected int _getInt(int index)\r\n/* 378: */ {\r\n/* 379:392 */ return HeapByteBufUtil.getInt(this.array, index);\r\n/* 380: */ }",
"public int read() {\n return (readInt());\n }",
"public abstract int getColumn();",
"public int getAsInt(int index) {\n switch (type) {\n case TIFFTag.TIFF_BYTE: case TIFFTag.TIFF_UNDEFINED:\n return ((byte[])data)[index] & 0xff;\n case TIFFTag.TIFF_SBYTE:\n return ((byte[])data)[index];\n case TIFFTag.TIFF_SHORT:\n return ((char[])data)[index] & 0xffff;\n case TIFFTag.TIFF_SSHORT:\n return ((short[])data)[index];\n case TIFFTag.TIFF_SLONG:\n return ((int[])data)[index];\n case TIFFTag.TIFF_LONG: case TIFFTag.TIFF_IFD_POINTER:\n return (int)((long[])data)[index];\n case TIFFTag.TIFF_FLOAT:\n return (int)((float[])data)[index];\n case TIFFTag.TIFF_DOUBLE:\n return (int)((double[])data)[index];\n case TIFFTag.TIFF_SRATIONAL:\n int[] ivalue = getAsSRational(index);\n return (int)((double)ivalue[0]/ivalue[1]);\n case TIFFTag.TIFF_RATIONAL:\n long[] lvalue = getAsRational(index);\n return (int)((double)lvalue[0]/lvalue[1]);\n case TIFFTag.TIFF_ASCII:\n String s = ((String[])data)[index];\n return (int)Double.parseDouble(s);\n default:\n throw new ClassCastException();\n }\n }",
"public final synchronized int getInt(int parameterIndex) \n throws SQLException\n {\n return getCallableStatement().getInt(parameterIndex);\n }",
"public int getElement(Pair<Integer, Integer> cell){\n\t\treturn numbers[cell.getFirst()][cell.getSecond()];\n\t}",
"public int integerVarAt(int index) {\n\t\treturn storage[index];\n\t}",
"public abstract void load(IntIntsCol col, DataInputStream output) throws IOException;",
"public static int readCellAsInt(final ILogger aLogger,\r\n final String aTableName,\r\n final String aColumnName,\r\n final String aWhere,\r\n final Connection aConnection) {\r\n if (aConnection==null) return -1;\r\n Statement stm= getStatement(aLogger, aConnection);\r\n int r= readCellAsInt(aLogger, aTableName, aColumnName, aWhere, stm);\r\n close(aLogger, stm);\r\n return r;\r\n }",
"public int read() throws IOException {\n ensureOpen();\n return read(singleByteBuf, 0, 1) == -1 ? -1 : Byte.toUnsignedInt(singleByteBuf[0]);\n }",
"public int get(int index) {\n\t\treturn r[index];\n\t}",
"public int get(int index);",
"private int getStat(int index) {\n return Integer.parseInt(getStringStat(index));\n }",
"public int getCol(){\r\n\t\treturn this.column;\r\n\t}",
"int getRow();",
"public int getColumnNumber()\n {\n return parser.getColumnNumber();\n }",
"public int get(int index) {\n\t\treturn nodeAt(index).data;\n\t}",
"private int getRow() {\n return binaryPartition(row);\n }",
"public int getCol() { return _col; }",
"public int getDigit(int index) {\n\t\tif (index < 0 || index > data.length - 1) {\n\t\t\tSystem.out.println(\"cease this buffoonery.\");\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\treturn data[index];\n\t}",
"public long getBigInt(int columnIndex) {\n BigIntVector vector = (BigIntVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public int readInt() {\n return ((int) readLong());\n }",
"Short getShort(int col_num) throws ConnException;",
"public int getValueAt(int row, int column) {\n\t\tif (_board[row][column] == null)\n\t\t\treturn 0;\n\t\t\n\t\treturn _board[row][column];\n\t}",
"public int getColumnNumber() {\n return column;\n }",
"int get(int index)\n\t{\n\t\treturn inputArray[index];\n\t}",
"public int getInteger(int pos) {\n return Tuples.toInteger(getObject(pos));\n }",
"public int getDataFromGivenIndex(int index){\n //Index validation\n checkIndex(index);\n return getNodeFromGivenIndex(index).data;\n }",
"public long get(int i) {\n return read(i);\n }",
"public int getValue() {\r\n return index;\r\n }",
"public int maDBCursorGetColumnInt(\n \t\tint cursorHandle,\n \t\tint columnIndex,\n \t\tint intValueAddress,\n \t\tMoSyncThread mosync)\n \t{\n \t\tif (!hasCursor(cursorHandle))\n \t\t{\n \t\t\treturn MA_DB_ERROR;\n \t\t}\n \n \t\ttry\n \t\t{\n \t\t\t// Check for NULL value.\n \t\t\tif (getCursor(cursorHandle).isNull(columnIndex))\n \t\t\t{\n \t\t\t\treturn MA_DB_NULL;\n \t\t\t}\n \n \t\t\t// Get data as an int value.\n \t\t\tint value = getCursor(cursorHandle).getInt(columnIndex);\n \n\t\t\t// Write to MoSync memory. Size of an int is 4 - take care of endianess\n \t\t\t// TODO: Replace with high-level call to write int.\n\t\t\tByteBuffer buffer = mosync.getMemorySlice(intValueAddress, 4).order(null);\n \t\t\tbuffer.putInt(value);\n \n \t\t\treturn MA_DB_OK;\n \t\t}\n \t\tcatch (CursorIndexOutOfBoundsException ex1)\n \t\t{\n \t\t\tlogStackTrace(ex1);\n \t\t}\n \t\tcatch (SQLException ex2)\n \t\t{\n \t\t\tlogStackTrace(ex2);\n \t\t}\n \n \t\treturn MA_DB_ERROR;\n \t}",
"public int getInt(int index) throws ArrayIndexOutOfBoundsException\n\t{\n\t\treturn bytes[index] & 0xFF;\n\t}",
"protected RColumn getRColumn (int col)\n\t{\n\t\tif (col < 0 || col > m_data.cols.size())\n\t\t\tthrow new java.lang.IllegalArgumentException(\"Column invalid\");\n\t\treturn (RColumn)m_data.cols.get(col);\n\t}",
"public int getColumn(){\n return this.column;\n }",
"public long getElementAt(int row, int column) {\n\t\treturn _value[(row * _columnCount) + column];\n\t}",
"public int getColumn()\t \t\t{ return column; \t}",
"public static int readIntFromIndex(File file, String index) {\n if(!file.exists()) return -1;\n String[] lines = getFileLines(file);\n for(String line : lines) {\n if(line.startsWith(index)) {\n line = line.replace(index,\"\");\n try{\n return Integer.parseInt(line);\n } catch (Exception e) { //continues looking for another index\n e.printStackTrace();\n ZmdbLogger.log(\"Unable to get integer from index \" + index + \" from file \" + file.getPath() + \". Continuing to look for another index.\");\n }\n }\n }\n //if nothing was found or Integer.parseInt failed\n return -1;\n }",
"public int getColumn() {\n // YOUR CODE HERE\n return this.column;\n }",
"public static int getIntAt(int number, int index){\n\n String numberString = Integer.toString(number);\n int digitAtIndex = Integer.parseInt(Character.toString(numberString.charAt(index)));\n return digitAtIndex;\n }",
"public int getCol() {\n return this.col; \n }",
"public long getBigInt(String columnName) {\n BigIntVector vector = (BigIntVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"protected int getCol() {\r\n\t\treturn this.col;\r\n\t}"
] |
[
"0.6997222",
"0.6982545",
"0.69802725",
"0.6955312",
"0.6863193",
"0.67312914",
"0.67098016",
"0.66861427",
"0.664359",
"0.66286594",
"0.66061044",
"0.6558295",
"0.6555269",
"0.6475501",
"0.644969",
"0.64116395",
"0.63649464",
"0.63530326",
"0.6335004",
"0.63187325",
"0.63187325",
"0.63187325",
"0.62893325",
"0.62704074",
"0.626382",
"0.6203745",
"0.6203242",
"0.6195555",
"0.6163515",
"0.6154146",
"0.61427385",
"0.6141972",
"0.6126104",
"0.6102297",
"0.60841835",
"0.60721284",
"0.6069463",
"0.60516775",
"0.60319334",
"0.6026491",
"0.6023802",
"0.6022538",
"0.60222113",
"0.60040754",
"0.5995293",
"0.5986024",
"0.5982614",
"0.5981139",
"0.5981139",
"0.5964128",
"0.5946513",
"0.5945527",
"0.5938332",
"0.59337837",
"0.5924629",
"0.5913422",
"0.5907295",
"0.5881198",
"0.5859982",
"0.5848041",
"0.5846441",
"0.58411473",
"0.5841135",
"0.58359903",
"0.58339345",
"0.58248013",
"0.58215165",
"0.5816274",
"0.5810986",
"0.58092993",
"0.5809008",
"0.58049816",
"0.5797966",
"0.57966936",
"0.5793631",
"0.5788337",
"0.5788165",
"0.5787717",
"0.578442",
"0.5771228",
"0.576195",
"0.5755407",
"0.5753394",
"0.5743562",
"0.5741767",
"0.57363373",
"0.57333755",
"0.5732475",
"0.5726906",
"0.5720495",
"0.5719577",
"0.57175344",
"0.5703975",
"0.57037944",
"0.5698296",
"0.56854683",
"0.56828296",
"0.5679718",
"0.5661632",
"0.56609625",
"0.5660285"
] |
0.0
|
-1
|
Read an long from the column at the current index
|
long readLong();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public long getLong(int row, int column) {\n return columns[column].getLong(row);\n }",
"public long readLong() throws IOException;",
"public abstract int read_long();",
"long readLong() throws IOException;",
"private long read_long(MappedByteBuffer buff) throws IOException {\n long number = 0;\n for (int i = 0; i < 8; ++i) {\n number += ((long) (buff.get() & 0xFF)) << (8 * i);\n }\n return number;\n }",
"@Override\n\tpublic long readScalarLong() throws IOException {\n\t\treturn 0;\n\t}",
"private final long get_BIGINT(int column) {\n // @AGG force Little Endian\n if (metadata.isZos())\n return dataBuffer_.getLong(columnDataPosition_[column - 1]);\n else\n return dataBuffer_.getLongLE(columnDataPosition_[column - 1]);\n// return SignedBinary.getLong(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }",
"@Override\r\n\tpublic long getLong(int pos) {\n\t\treturn buffer.getLong(pos);\r\n\t}",
"public java.lang.Long getColumnLong() {\n return columnLong;\n }",
"public java.lang.Long getColumnLong() {\n\t throw new java.lang.UnsupportedOperationException(\"Get is not supported on tombstones\");\n\t }",
"public long getValue(int index) {\n return value_.getLong(index);\n }",
"public long getLong(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getLong\", columnIndex);\n return get(columnIndex).getLong();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public java.lang.Long getColumnLong() {\n return columnLong;\n }",
"public long getElementAt(int row, int column) {\n\t\treturn _value[(row * _columnCount) + column];\n\t}",
"public long getLong(int index)\r\n/* 394: */ {\r\n/* 395:408 */ ensureAccessible();\r\n/* 396:409 */ return _getLong(index);\r\n/* 397: */ }",
"public abstract long read_longlong();",
"public static long readlong()\n\t{\n\t\treturn sc.nextLong();\n\t}",
"public long getValue(int index) {\n return value_.getLong(index);\n }",
"public long getLongColumn(String column)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n String name = canonicalize(column);\n \n if (isColumnNull(name))\n return -1;\n \n Object value = data.get(name);\n \n if (value == null)\n throw new IllegalArgumentException(\"Column \" + column + \" not present\");\n if (!(value instanceof Long))\n throw new IllegalArgumentException(\"Value is not an long\");\n \n return ((Long) value).longValue();\n }",
"public long getBigInt(int columnIndex) {\n BigIntVector vector = (BigIntVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public long getLong(int row, int column) {\n\t\treturn getColumn(column).getLong(subset[row]);\n\t}",
"private long read_long(RandomAccessFile file) throws IOException {\n long number = 0;\n for (int i = 0; i < 8; ++i) {\n number += ((long) (file.readByte() & 0xFF)) << (8 * i);\n }\n return number;\n }",
"public long readLong() {\n while (isEmpty()) {\n }\n Timing.waitSyncLocal();\n readEnable.setNow(1);\n Timing.waitClockLocal();\n return (readData.getLong());\n }",
"public long readLong() throws IOException {\n return in.readLong();\n }",
"public long getLong(int columnIndex) throws SQLException\n {\n return m_rs.getLong(columnIndex);\n }",
"protected long _getLong(int index)\r\n/* 400: */ {\r\n/* 401:414 */ return HeapByteBufUtil.getLong(this.array, index);\r\n/* 402: */ }",
"public static long readCellAsLong(final ILogger aLogger,\r\n final String aTableName,\r\n final String aColumnName,\r\n final String aWhere,\r\n final Statement aStatement) {\r\n String s= readCellAsString(aLogger, aTableName, aColumnName, aWhere, aStatement);\r\n if (s==null) return -1;\r\n if (s.length()==0) return 0;\r\n if (! StringUtility.isNumeric(s)) return -1;\r\n return Long.parseLong(s);\r\n }",
"public Long getLong(final int index) {\n Object returnable = this.get(index);\n if (returnable == null) {\n return null;\n }\n if (returnable instanceof String) {\n /* A String can be used to construct a BigDecimal. */\n returnable = new BigDecimal((String) returnable);\n }\n return ((Number) returnable).longValue();\n }",
"public long getLong(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getLong\", columnName);\n return get(columnName).getLong();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public long getBigInt(String columnName) {\n BigIntVector vector = (BigIntVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"String longRead();",
"private long getLongFromDECIMAL(int column, String targetType) {\n try {\n return Decimal.getLong(dataBuffer_,\n columnDataPosition_[column - 1],\n getColumnPrecision(column - 1),\n getColumnScale(column - 1));\n } catch (ArithmeticException | IllegalArgumentException e) {\n throw new IllegalArgumentException(\"SQLState.LANG_OUTSIDE_RANGE_FOR_DATATYPE \" + targetType, e);\n }\n }",
"public long retrieve(long record) {\n return (record & MASK) >>> OFFSET;\n }",
"public abstract void load(IntLongsCol col, DataInputStream output) throws IOException;",
"void setLong(int index, long value) throws SQLException;",
"public long getLong(int index)\r\n/* 185: */ {\r\n/* 186:202 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 187:203 */ return super.getLong(index);\r\n/* 188: */ }",
"public long getAsLong(int index) {\n switch (type) {\n case TIFFTag.TIFF_BYTE: case TIFFTag.TIFF_UNDEFINED:\n return ((byte[])data)[index] & 0xff;\n case TIFFTag.TIFF_SBYTE:\n return ((byte[])data)[index];\n case TIFFTag.TIFF_SHORT:\n return ((char[])data)[index] & 0xffff;\n case TIFFTag.TIFF_SSHORT:\n return ((short[])data)[index];\n case TIFFTag.TIFF_SLONG:\n return ((int[])data)[index];\n case TIFFTag.TIFF_LONG: case TIFFTag.TIFF_IFD_POINTER:\n return ((long[])data)[index];\n case TIFFTag.TIFF_SRATIONAL:\n int[] ivalue = getAsSRational(index);\n return (long)((double)ivalue[0]/ivalue[1]);\n case TIFFTag.TIFF_RATIONAL:\n long[] lvalue = getAsRational(index);\n return (long)((double)lvalue[0]/lvalue[1]);\n case TIFFTag.TIFF_ASCII:\n String s = ((String[])data)[index];\n return (long)Double.parseDouble(s);\n default:\n throw new ClassCastException();\n }\n }",
"public long readLongNonBlock() {\n Timing.throughputLocal(0);\n readEnable.setNow(1);\n Timing.waitClockLocal();\n return (readData.getLong());\n }",
"public long getFieldAsLong(int tag, int index) {\n Integer i = (Integer)fieldIndex.get(tag);\n return (fields[i]).getAsLong(index);\n }",
"public abstract void load(LongIntsCol col, DataInputStream output) throws IOException;",
"public long get(int i) {\n return read(i);\n }",
"protected long _getLongLE(int index)\r\n/* 411: */ {\r\n/* 412:425 */ return HeapByteBufUtil.getLongLE(this.array, index);\r\n/* 413: */ }",
"public long getLong(String columnName) throws SQLException\n {\n return m_rs.getLong(columnName);\n }",
"public long toLong() {\n return this.toLongArray()[0];\n }",
"public long getValue();",
"public String getLong(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\tString[] array = dataBase.readLine().split(\"\\\\|\");\n\t\treturn array[8];\n\t}",
"long fetch64(BytesStore bytes, @NonNegative long off) throws IllegalStateException, BufferUnderflowException {\n return bytes.readLong(off);\n }",
"private long getLong() {\n longBuffer.rewind();\n archive.read(longBuffer);\n longBuffer.flip();\n return longBuffer.getLong();\n }",
"public long readLong()\r\n/* 435: */ {\r\n/* 436:448 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 437:449 */ return super.readLong();\r\n/* 438: */ }",
"private synchronized long readLong(int len) throws IOException {\n\t\tread(bytes, len);\n\t\treturn readLong(bytes, 0, len);\n\t}",
"protected final long getLong(int offset)\n {\n final byte[] tableData = tables.getTablesData();\n return Bytes.getLong(tableData, cursor+offset);\n }",
"public int read(long[] l) throws IOException {\n\t\treturn read(l, 0, l.length);\n\t}",
"public abstract long read_ulonglong();",
"public final synchronized long getLong(int parameterIndex) \n throws SQLException\n {\n return getCallableStatement().getLong(parameterIndex);\n }",
"long getLongValue();",
"long getLongValue();",
"public static long readCellAsLong(final ILogger aLogger,\r\n final String aTableName,\r\n final String aColumnName,\r\n final String aWhere,\r\n final Connection aConnection) {\r\n if (aConnection==null) return -1;\r\n Statement stm= getStatement(aLogger, aConnection);\r\n long r= readCellAsLong(aLogger, aTableName, aColumnName, aWhere, stm);\r\n close(aLogger, stm);\r\n return r;\r\n }",
"public long[] read();",
"public long getLong(int pos) {\n return Tuples.toLong(getObject(pos));\n }",
"public long getLongLE(int index)\r\n/* 405: */ {\r\n/* 406:419 */ ensureAccessible();\r\n/* 407:420 */ return _getLongLE(index);\r\n/* 408: */ }",
"private long getNumberBufAsLong(ByteOrder byteOrder, int nrReadBytes,\n int firstBytePos) {\n\n long result = 0L;\n long bytePortion = 0L;\n for (int i = 0; i < nrReadBytes; i++) {\n bytePortion = 0xFF & (byteBuffer.get(firstBytePos++));\n\n if (byteOrder == ByteOrder.LittleEndian)\n // reshift bytes\n result = result | bytePortion << (i << 3);\n else\n result = bytePortion << ((nrReadBytes - i - 1) << 3) | result;\n }\n\n return result;\n }",
"public abstract void load(LongLongsCol col, DataInputStream output) throws IOException;",
"public static double readLong() {\n return Long.parseLong(readString());\n }",
"public static long getColumnAsLong(final ILogger aLogger,\r\n final ResultSet aResultSet,\r\n final String aColumnName) {\r\n try {\r\n return aResultSet.getLong(aColumnName);\r\n }\r\n catch (SQLException ex) {\r\n error(aLogger, \"getColumnAsLong\", \"Can not read column \" + aColumnName, ex);\r\n return -1;\r\n }\r\n }",
"public abstract long getValue();",
"public abstract long getValue();",
"public long getLongValue() {\n if (getValueIndex() <= 0)\n return 0L;\n return ((LongEntry) getPool().getEntry(getValueIndex())).getValue();\n }",
"protected final int get_INTEGER(int column) {\n // @AGG had to get integer as Little Endian\n if (metadata.isZos())\n return dataBuffer_.getInt(columnDataPosition_[column - 1]);\n else\n return dataBuffer_.getIntLE(columnDataPosition_[column - 1]);\n// return SignedBinary.getInt(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }",
"@Override\r\n public long longValue() {\r\n return (long) this.m_current;\r\n }",
"public static long readLong(byte[] source, int position) {\n return makeLong(source[position], source[position + 1], source[position + 2], source[position + 3],\n source[position + 4], source[position + 5], source[position + 6], source[position + 7]);\n }",
"public long get() {\n\t\t\treturn get(1);\n\t\t}",
"private String getLongString(ResultSet rs, int index) throws SQLException {\n StringBuffer buffer = new StringBuffer();\n Reader reader = null;\n try {\n reader = getReader(rs, index);\n if (reader == null) {\n Log.warning(\"null long value\", this, \"getLongString\");\n } else {\n char[] array = new char[1000000];\n int nRead = 0;\n while (nRead != -1) {\n nRead = reader.read(array);\n if (nRead > 0) {\n buffer.append(array, 0, nRead);\n }\n }\n array = null;\n }\n } catch (IOException e) {\n Log.exception(e, this, \"getLongString\");\n } finally {\n SystemUtilities.close(reader);\n }\n String s = buffer.toString();\n buffer = null;\n return s.trim();\n }",
"public long readLongLE()\r\n/* 853: */ {\r\n/* 854:862 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 855:863 */ return super.readLongLE();\r\n/* 856: */ }",
"public long longValue() {\n if (originalValue instanceof Long) {\n return (Long) originalValue;\n } else if (originalValue instanceof Number) {\n return ((Number) originalValue).longValue();\n } else if (originalValue instanceof String) {\n final String originalString = (String) this.originalValue;\n\n try {\n return Long.parseLong(originalString);\n } catch (NumberFormatException e1) {\n try {\n return (long) Double.parseDouble(originalString);\n } catch (NumberFormatException e2) {\n // it will be more reasonable to throw an exception which\n // indicates that the conversion to long has failed\n e1.addSuppressed(e2);\n throw new CellValueCastException(e1);\n }\n }\n } else {\n throw new CellValueCastException();\n }\n }",
"DataFrame<R,C> mapToLongs(C colKey, ToLongFunction<DataFrameValue<R,C>> mapper);",
"public abstract Number getNumber(int columnIndex);",
"public long getLong() throws NoSuchElementException,\n\t NumberFormatException\n {\n\tString s = tokenizer.nextToken();\n\treturn Long.parseLong(s);\n }",
"@Field(2) \n\tpublic long Value() {\n\t\treturn this.io.getLongField(this, 2);\n\t}",
"private int getCol(int index) {\n return index & (chunkSize - 1);\n }",
"public abstract void load(LongFloatsCol col, DataInputStream output) throws IOException;",
"public long [] getData(Long index);",
"public abstract void read_longlong_array(long[] value, int offset, int\nlength);",
"public abstract void read_long_array(int[] value, int offset, int\nlength);",
"public Long getLong(String attr) {\n return (Long) super.get(attr);\n }",
"long readS64LE()\n throws IOException, EOFException;",
"public long getDateMilli(String columnName) {\n DateMilliVector vector = (DateMilliVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public Long getLong(String key) throws JsonException {\r\n\t\tObject object = get(key);\r\n\t\tLong result = PrimitiveDataTypeConvertor.toLong(object);\r\n\t\tif (result == null) {\r\n\t\t\tthrow PrimitiveDataTypeConvertor.exceptionType(key, object, \"Long\");\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public long getUInt8(String columnName) {\n UInt8Vector vector = (UInt8Vector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"protected abstract int readInternal(int index);",
"public int getTimeMilli(int columnIndex) {\n TimeMilliVector vector = (TimeMilliVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public long getDateMilli(int columnIndex) {\n DateMilliVector vector = (DateMilliVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public int getTimeMilli(String columnName) {\n TimeMilliVector vector = (TimeMilliVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public long readVarLong() throws IOException {\n final int type = (int) this.read(2).toLong();\n return this.read(BitOutputStream.varLongDepths[type]).toLong();\n }",
"public long getValueAsLongValue() throws DataFieldException {\n\t\ttry {\n\t\t\treturn Long.parseLong(this.value);\n\t\t} catch (NumberFormatException nfe) {\n\t\t\tthrow new DataFieldException(\n\t\t\t\t\t\"Couldn't parse value into a long. Value: \" + this.value,\n\t\t\t\t\tnfe);\n\t\t}\n\t}",
"@Override\n public long readSInt64() throws IOException {\n long value = decoder.readVarint64();\n return (value >>> 1) ^ -(value & 1);\n }",
"public long longValue(final int i) {\n if (isInteger(i)) {\n return values[i];\n }\n throw new ClassCastException(\"value #\" + i + \" is not a long in \" + this);\n }",
"public long longValue() {\n return number;\n }",
"public static long getLong(final byte[] buffer, final int index, final int len) {\n switch (len) {\n case 0: return 0xFFFFFFFF_FFFFFFFFL;\n case 1: return 0xFFFFFFFF_FFFFFF00L | _getByte(buffer, index, 1);\n case 2: return 0xFFFFFFFF_FFFF0000L | _getShort(buffer, index, 2);\n case 3: return 0xFFFFFFFF_FF000000L | _getInt(buffer, index, 3);\n case 4: return 0xFFFFFFFF_00000000L | _getInt(buffer, index, 4);\n case 5: return 0xFFFFFF00_00000000L | _getLong(buffer, index, 5);\n case 6: return 0xFFFF0000_00000000L | _getLong(buffer, index, 6);\n case 7: return 0xFF000000_00000000L | _getLong(buffer, index, 7);\n case 8: return _getLong(buffer, index, 8);\n default: throw new IllegalArgumentException(\"len is out of range: \" + len);\n }\n }",
"public long longValue() {\n\t\treturn getSection().longValue();\n\t}",
"public long getElem(int index) {\r\n return a[index];\r\n }"
] |
[
"0.722327",
"0.70879847",
"0.70361143",
"0.6938213",
"0.6894507",
"0.68929136",
"0.68769526",
"0.67746955",
"0.67536944",
"0.67461544",
"0.67399347",
"0.6721502",
"0.6710746",
"0.6703445",
"0.670063",
"0.66963494",
"0.66890126",
"0.66849655",
"0.66720986",
"0.66656363",
"0.66509855",
"0.66335917",
"0.663279",
"0.662331",
"0.6614592",
"0.66093445",
"0.65536046",
"0.6523051",
"0.650326",
"0.648582",
"0.6464001",
"0.64117086",
"0.63835907",
"0.63788074",
"0.6378451",
"0.63762295",
"0.6372332",
"0.6371545",
"0.63713855",
"0.63108975",
"0.63071096",
"0.629331",
"0.6292357",
"0.6267815",
"0.62615246",
"0.62414634",
"0.62126255",
"0.6205793",
"0.6202071",
"0.61489755",
"0.61484176",
"0.6123061",
"0.6103235",
"0.6089069",
"0.60875404",
"0.60875404",
"0.60773927",
"0.60752463",
"0.6074535",
"0.6043008",
"0.6036216",
"0.6023573",
"0.60130566",
"0.6011906",
"0.5938758",
"0.5938758",
"0.5935496",
"0.5925907",
"0.59256905",
"0.5924397",
"0.5913875",
"0.590922",
"0.59090006",
"0.5902046",
"0.5879578",
"0.5872599",
"0.5872326",
"0.58700675",
"0.586968",
"0.5858851",
"0.5853001",
"0.5849924",
"0.58471996",
"0.5836181",
"0.5820854",
"0.58089316",
"0.58008707",
"0.57942617",
"0.57905746",
"0.5788445",
"0.57791686",
"0.5765478",
"0.57584035",
"0.57573444",
"0.57571226",
"0.574376",
"0.57335496",
"0.5723905",
"0.5698635",
"0.5698146"
] |
0.7121057
|
1
|
Read an float from the column at the current index
|
float readFloat();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private final float get_FLOAT(int column) {\n // @AGG force Little Endian\n if (metadata.isZos()) {\n byte[] bytes = new byte[4];\n dataBuffer_.getBytes(columnDataPosition_[column - 1], bytes);\n return FloatingPoint.getFloat_hex(bytes, 0);\n// return dataBuffer_.getFloat(columnDataPosition_[column - 1]);\n } else {\n return dataBuffer_.getFloatLE(columnDataPosition_[column - 1]);\n// return FloatingPoint.getFloat(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }\n }",
"public float getFloat(int row, int column) {\n return columns[column].getFloat(row);\n }",
"public float getFloat(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getFloat\", columnIndex);\n return get(columnIndex).getFloat();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public float getFloat(int columnIndex) throws SQLException\n {\n return m_rs.getFloat(columnIndex);\n }",
"float get(int idx);",
"public abstract float read_float();",
"public float readFloat() throws IOException {\n return in.readFloat();\n }",
"float getIn(int index);",
"public float readFloat() {\n return Float.parseFloat(readNextLine());\n }",
"public double getFloat8(int columnIndex) {\n Float8Vector vector = (Float8Vector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"@Override\r\n\tpublic float getFloat(int pos) {\n\t\treturn buffer.getFloat(pos);\r\n\t}",
"public float get(int index) {\r\n RangeCheck(index);\r\n return elementData[index];\r\n }",
"public float getFloat(int row, int column) {\n\t\treturn getColumn(column).getFloat(subset[row]);\n\t}",
"public float getVal() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 8);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 8);\n\t\t}\n\t}",
"@Override\n\tpublic float readScalarFloat() throws IOException {\n\t\treturn 0;\n\t}",
"String floatRead();",
"public double getFloat8(String columnName) {\n Float8Vector vector = (Float8Vector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public float getFloat(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getFloat\", columnName);\n return get(columnName).getFloat();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public final synchronized float getFloat(int parameterIndex) \n throws SQLException\n {\n return getCallableStatement().getFloat(parameterIndex);\n }",
"public float leerFloat() throws IOException\r\n {\r\n return maestro.readFloat(); \r\n }",
"void setFloat(int index, float value) throws SQLException;",
"public float getFloat(String column)\n {\n return FloatType.instance.compose(get(column));\n }",
"public float readFloat() throws IOException {\n\n\t\tif (read(bb, 0, 4) < 4) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\tint i = bb[0] << 24 | (bb[1] & 0xFF) << 16 | (bb[2] & 0xFF) << 8\n\t\t\t\t| (bb[3] & 0xFF);\n\t\treturn Float.intBitsToFloat(i);\n\n\t}",
"float readFloat() {\n try {\n return in.readFloat();\n } catch (IOException ex) {\n return DisasmError();\n }\n }",
"public float getAsFloat(int index) {\n switch (type) {\n case TIFFTag.TIFF_BYTE: case TIFFTag.TIFF_UNDEFINED:\n return ((byte[])data)[index] & 0xff;\n case TIFFTag.TIFF_SBYTE:\n return ((byte[])data)[index];\n case TIFFTag.TIFF_SHORT:\n return ((char[])data)[index] & 0xffff;\n case TIFFTag.TIFF_SSHORT:\n return ((short[])data)[index];\n case TIFFTag.TIFF_SLONG:\n return ((int[])data)[index];\n case TIFFTag.TIFF_LONG: case TIFFTag.TIFF_IFD_POINTER:\n return ((long[])data)[index];\n case TIFFTag.TIFF_FLOAT:\n return ((float[])data)[index];\n case TIFFTag.TIFF_DOUBLE:\n return (float)((double[])data)[index];\n case TIFFTag.TIFF_SRATIONAL:\n int[] ivalue = getAsSRational(index);\n return (float)((double)ivalue[0]/ivalue[1]);\n case TIFFTag.TIFF_RATIONAL:\n long[] lvalue = getAsRational(index);\n return (float)((double)lvalue[0]/lvalue[1]);\n case TIFFTag.TIFF_ASCII:\n String s = ((String[])data)[index];\n return (float)Double.parseDouble(s);\n default:\n throw new ClassCastException();\n }\n }",
"public static double readFloat() {\n return Float.parseFloat(readString());\n }",
"public Float getFloat(final int index) {\n Object returnable = this.get(index);\n if (returnable == null) {\n return null;\n }\n if (returnable instanceof String) {\n /* A String can be used to construct a BigDecimal. */\n returnable = new BigDecimal((String) returnable);\n }\n return ((Number) returnable).floatValue();\n }",
"public float getFloat(String columnName) throws SQLException\n {\n return m_rs.getFloat(columnName);\n }",
"public float get(int index) {\n return storage[index];\n }",
"public float getFloat4(String columnName) {\n Float4Vector vector = (Float4Vector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public float toFloat() {\n return this.toFloatArray()[0];\n }",
"final float getFloatPropertyValue(int index) {\n return mFloatValues[index];\n }",
"public float unpackFloat() {\n return buffer.getFloat();\n }",
"float readFloat(int start)\n {\n int bits = readInt(start);\n\n return Float.intBitsToFloat(bits);\n }",
"public float get (int idx)\n {\n switch (idx) {\n case 0: return x;\n case 1: return y;\n }\n throw new IndexOutOfBoundsException(Integer.toString(idx));\n }",
"float getValue();",
"float getValue();",
"float getValue();",
"@Override\r\n\tpublic double getValue(int index) {\n\t\tif (data==null) return 0;\r\n\t\t\r\n\t\tdouble d = 0;\r\n\t\tint begin=index+pos;\r\n\t\tif (begin<0) begin=0;\r\n\t\tif (begin>data.size()-1) begin = data.size()-1;\r\n\t\td = data.get(begin).getOpen();\r\n\t\t\r\n\t\treturn d;\r\n\t}",
"public abstract double readAsDbl(int offset);",
"public abstract Number getNumber(int columnIndex);",
"public abstract void load(IntFloatsCol col, DataInputStream output) throws IOException;",
"private native float Df1_Read_Float(String plcAddress) throws Df1LibraryNativeException;",
"public float getFloat() throws NoSuchElementException,\n\t NumberFormatException\n {\n\tString s = tokenizer.nextToken();\n\treturn Float.parseFloat(s);\n }",
"public float getFieldAsFloat(int tag, int index) {\n Integer i = (Integer)fieldIndex.get(tag);\n return fields[i].getAsFloat(index);\n }",
"public float getFloat4(int columnIndex) {\n Float4Vector vector = (Float4Vector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"private float getVal(float[] buffer, int col, int row) {\r\n float rtnVal;\r\n if (col < 0) col = 0;\r\n if (col >= xDim) col = xDim - 1;\r\n if (row < 0) row = 0;\r\n if (row >= yDim) row = yDim - 1;\r\n rtnVal = buffer[row * xDim + col];\r\n return rtnVal;\r\n }",
"public float getFloat(String key)\n {\n return getFloat(key, 0);\n }",
"double get(int row,int col);",
"public float readFloat() {\n\t\tif(!isInit) return 0F;\n\t\tfloat result = 0F;\n\t\tisListening = true;\n\t\twriteLine(\"Waiting for Float input...\");\n\t\twhile(isListening) {\n\t\t\ttry {\n\t\t\t\tresult = Float.parseFloat(inputArea.getText());\n\t\t\t} catch(NumberFormatException nfe) {\n\t\t\t\tresult= 0F;\n\t\t\t}\n\t\t}\n\t\tinputArea.setText(\"\");\n\t\twriteLine(\"Input: \" + result);\n\t\treturn result;\n\t}",
"public float approach_x_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 41, 4))); }",
"double readDouble();",
"public float readFloat()\r\n/* 447: */ {\r\n/* 448:460 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 449:461 */ return super.readFloat();\r\n/* 450: */ }",
"public float getFloat(int index)\r\n/* 197: */ {\r\n/* 198:214 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 199:215 */ return super.getFloat(index);\r\n/* 200: */ }",
"public abstract float getasFloat(int tuple, int val);",
"double readDouble() throws IOException;",
"public float getFloat(int pos) {\n return Tuples.toFloat(getObject(pos));\n }",
"public void updateFloat(int columnIndex, float x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateFloat(\" + columnIndex + \", \" + x + \"f);\");\n }\n update(columnIndex, ValueFloat.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public Float getFloatData(String key) {\n return pref.getFloat(key, 0);\n }",
"public void setFloat(float data, int row, int column) {\n\t\tcolumns[column].setFloat(data, subset[row]);\n\t}",
"@Override\n\tpublic double readScalarDouble() throws IOException {\n\t\treturn 0;\n\t}",
"private final double get_DOUBLE(int column) {\n if (metadata.isZos()) {\n byte[] bytes = new byte[8];\n dataBuffer_.getBytes(columnDataPosition_[column - 1], bytes);\n return FloatingPoint.getDouble_hex(bytes, 0);\n //return dataBuffer_.getDouble(columnDataPosition_[column - 1]);\n } else {\n return dataBuffer_.getDoubleLE(columnDataPosition_[column - 1]);\n// return FloatingPoint.getDouble(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }\n }",
"public Float getFloat(String attr) {\n return (Float) super.get(attr);\n }",
"@Override\r\n\tpublic double getDouble(int pos) {\n\t\treturn buffer.getDouble(pos);\r\n\t}",
"public abstract float getValue();",
"public void getFloat8(int columnIndex, NullableFloat8Holder holder) {\n Float8Vector vector = (Float8Vector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }",
"public float approach_x_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 40, 4))); }",
"public void updateFloat(int columnIndex, float x) throws SQLException\n {\n m_rs.updateFloat(columnIndex, x);\n }",
"public abstract void read_float_array(float[] value, int offset, int\nlength);",
"private float getValue(Matrix matrix, int whichValue) {\n matrix.getValues(mMatrixValues);\n return mMatrixValues[whichValue];\n }",
"@Override\r\n public float floatValue() {\r\n return (float) this.m_current;\r\n }",
"public ArrowBuf getDecimal(int columnIndex) {\n DecimalVector vector = (DecimalVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public double get(int index) {\n\t\treturn 0;\n\t}",
"public void getFloat8(String columnName, NullableFloat8Holder holder) {\n Float8Vector vector = (Float8Vector) table.getVector(columnName);\n vector.get(rowNumber, holder);\n }",
"public static final float getFloat(ClassFile cf, short cpiIndex) {\n FloatInfo fi = (FloatInfo) cf.getCpInfo(cpiIndex);\n return Float.intBitsToFloat(fi.bytes);\n }",
"Object getColumnValue(int colIndex);",
"public void visitColumn(double val);",
"private float getVal(float[] buffer, int col, int row, int slice) {\r\n float rtnVal;\r\n if (col < 0) col = 0;\r\n if (col >= xDim) col = xDim - 1;\r\n if (row < 0) row = 0;\r\n if (row >= yDim) row = yDim - 1;\r\n if (slice < 0) slice = 0;\r\n if (slice >= zDim) slice = zDim - 1;\r\n rtnVal = buffer[slice * yDim * xDim + row * xDim + col];\r\n return rtnVal;\r\n }",
"public int read(float[] f) throws IOException {\n\t\treturn read(f, 0, f.length);\n\t}",
"public static float readFloat()\n \n {\n float f=0.0f;\n String wort=\"xxxx\";\n try {\n wort=eingabe.readLine();\n f=Float.valueOf(wort).floatValue() ;\n } catch(IOException e1) {\n System.out.println(\"Eingabefehler, bitte noch einmal!\");\n f=readFloat();\n } catch(NumberFormatException e2) {\n if(wort.equals(\"\"))\n System.out.println(\"Bitte etwas eingeben, noch einmal:\");\n else {\n System.out.print(\"Fehler beim Format, \");\n System.out.println(\"bitte noch einmal!\");}\n f=readFloat();\n }\n return f;\n }",
"public void getFloat4(String columnName, NullableFloat4Holder holder) {\n Float4Vector vector = (Float4Vector) table.getVector(columnName);\n vector.get(rowNumber, holder);\n }",
"public static float datofloat(){\n try {\n return(Integer.parseInt(dato()));\n } catch (NumberFormatException error) {\n return(Integer.MIN_VALUE);\n }\n }",
"float getEFloat();",
"public abstract double read_double();",
"public Float getFloat(String key)\n\t{\n\t\tDouble d = getDouble(key);\n\t\tif(d == null)\n\t\t\treturn null;\n\t\treturn d.floatValue();\n\t}",
"protected abstract float getValue(Entity e,FloatTrait t);",
"public Number getValue(int row, int column) { return this.underlying.getValue(row, column + this.firstCategoryIndex); }",
"@Override\n\tpublic Double getFrom(int index) {\n\t\treturn null;\n\t}",
"public float getFloatValue() {\n if (getValueIndex() <= 0)\n return 0F;\n return ((FloatEntry) getPool().getEntry(getValueIndex())).getValue();\n }",
"public float getFieldAsFloat(int tag) {\n return getFieldAsFloat(tag, 0);\n }",
"public float get(int i) {\r\n\t\tswitch (i) {\r\n\t\tcase 0:\r\n\t\t\treturn x;\r\n\t\tcase 1:\r\n\t\t\treturn y;\r\n\t\tcase 2:\r\n\t\t\treturn z;\r\n\t\tdefault:\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t}\r\n\t}",
"double getValueAt(int x, int y);",
"public double getValue(int row, int col) {\n return data[row][col];\n }",
"public static float getValueFloat()\n {\n return Util.valueFloat;\n }",
"public static float readFloatFromBytes(byte[] data) {\n return ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN).getFloat();\n }",
"public double[] readVector(String line, int index) {\n\n String[] list = line.split(\" \");\n int numColumns = Integer.parseInt(list[index]);\n double[] res = new double[numColumns];\n\n int num = index + 1;\n for (int j = 0; j < numColumns; j++) {\n res[j] = Double.parseDouble(list[num]);\n num++;\n }\n return res;\n }",
"public abstract float[] getasFloat(int tuple);",
"@Nullable\r\n public Float getFloat(String key) {\r\n return getFloat(key, null);\r\n }",
"public float evaluateAsFloat();",
"public void getFloat4(int columnIndex, NullableFloat4Holder holder) {\n Float4Vector vector = (Float4Vector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }"
] |
[
"0.72631145",
"0.71903855",
"0.7084484",
"0.707072",
"0.6891707",
"0.6823699",
"0.682316",
"0.6741815",
"0.6710681",
"0.6670275",
"0.6669324",
"0.66169745",
"0.660879",
"0.6604828",
"0.65863043",
"0.6570713",
"0.6561893",
"0.65327775",
"0.6504778",
"0.649049",
"0.6482902",
"0.64733887",
"0.64473903",
"0.64187753",
"0.63995266",
"0.63862365",
"0.637832",
"0.6376008",
"0.6342363",
"0.63262814",
"0.6325595",
"0.63107306",
"0.6310236",
"0.6280068",
"0.6231221",
"0.6218687",
"0.6218687",
"0.6218687",
"0.62073845",
"0.6182596",
"0.6159346",
"0.61441725",
"0.6134132",
"0.61115503",
"0.6109795",
"0.6102659",
"0.6096321",
"0.6093131",
"0.60809594",
"0.6051161",
"0.60487026",
"0.6021094",
"0.60147876",
"0.60147417",
"0.6006104",
"0.59692353",
"0.5949303",
"0.5948504",
"0.5942087",
"0.5935868",
"0.5915389",
"0.5912261",
"0.59072584",
"0.5906698",
"0.589933",
"0.5894359",
"0.5893905",
"0.588587",
"0.5877527",
"0.5843284",
"0.5815249",
"0.5809162",
"0.57891357",
"0.5786108",
"0.57481617",
"0.5745495",
"0.57411027",
"0.57409114",
"0.5739928",
"0.57354003",
"0.57334024",
"0.5723705",
"0.57196",
"0.5705426",
"0.5704344",
"0.56701976",
"0.5669442",
"0.56600076",
"0.564497",
"0.5637356",
"0.5636707",
"0.56324184",
"0.5628386",
"0.5622895",
"0.5618266",
"0.5610437",
"0.560843",
"0.5606194",
"0.5600302",
"0.5595807"
] |
0.72554195
|
1
|
Read an double from the column at the current index
|
double readDouble();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract double readAsDbl(int offset);",
"private final double get_DOUBLE(int column) {\n if (metadata.isZos()) {\n byte[] bytes = new byte[8];\n dataBuffer_.getBytes(columnDataPosition_[column - 1], bytes);\n return FloatingPoint.getDouble_hex(bytes, 0);\n //return dataBuffer_.getDouble(columnDataPosition_[column - 1]);\n } else {\n return dataBuffer_.getDoubleLE(columnDataPosition_[column - 1]);\n// return FloatingPoint.getDouble(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }\n }",
"double readDouble() throws IOException;",
"@Override\r\n\tpublic double getDouble(int pos) {\n\t\treturn buffer.getDouble(pos);\r\n\t}",
"public double getDouble(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getDouble\", columnIndex);\n return get(columnIndex).getDouble();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"double readDouble()\n throws IOException {\n return Double.longBitsToDouble( readLong() );\n }",
"public double getDouble(int row, int column) {\n return columns[column].getDouble(row);\n }",
"private double readDouble() throws IOException {\n\t\treturn (isBigEndian ? ioReadDouble() : Double.longBitsToDouble(readLELong()));\n\t}",
"public Double getDouble(final int index) {\n Object returnable = this.get(index);\n if (returnable == null) {\n return null;\n }\n if (returnable instanceof String) {\n /* A String can be used to construct a BigDecimal. */\n returnable = new BigDecimal((String) returnable);\n }\n return ((Number) returnable).doubleValue();\n }",
"public double getDouble(int columnIndex) throws SQLException\n {\n return m_rs.getDouble(columnIndex);\n }",
"public double readDouble() throws IOException {\n return in.readDouble();\n }",
"public abstract double read_double();",
"public double readDouble() throws IOException {\n\n\t\tif (read(bb, 0, 8) < 8) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\tint i1 = bb[0] << 24 | (bb[1] & 0xFF) << 16 | (bb[2] & 0xFF) << 8\n\t\t\t\t| (bb[3] & 0xFF);\n\t\tint i2 = bb[4] << 24 | (bb[5] & 0xFF) << 16 | (bb[6] & 0xFF) << 8\n\t\t\t\t| (bb[7] & 0xFF);\n\n\t\treturn Double.longBitsToDouble(((long) i1) << 32\n\t\t\t\t| ((long) i2 & 0x00000000ffffffffL));\n\t}",
"public double getAsDouble(int index) {\n switch (type) {\n case TIFFTag.TIFF_BYTE: case TIFFTag.TIFF_UNDEFINED:\n return ((byte[])data)[index] & 0xff;\n case TIFFTag.TIFF_SBYTE:\n return ((byte[])data)[index];\n case TIFFTag.TIFF_SHORT:\n return ((char[])data)[index] & 0xffff;\n case TIFFTag.TIFF_SSHORT:\n return ((short[])data)[index];\n case TIFFTag.TIFF_SLONG:\n return ((int[])data)[index];\n case TIFFTag.TIFF_LONG: case TIFFTag.TIFF_IFD_POINTER:\n return ((long[])data)[index];\n case TIFFTag.TIFF_FLOAT:\n return ((float[])data)[index];\n case TIFFTag.TIFF_DOUBLE:\n return ((double[])data)[index];\n case TIFFTag.TIFF_SRATIONAL:\n int[] ivalue = getAsSRational(index);\n return (double)ivalue[0]/ivalue[1];\n case TIFFTag.TIFF_RATIONAL:\n long[] lvalue = getAsRational(index);\n return (double)lvalue[0]/lvalue[1];\n case TIFFTag.TIFF_ASCII:\n String s = ((String[])data)[index];\n return Double.parseDouble(s);\n default:\n throw new ClassCastException();\n }\n }",
"public double getDouble(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getDouble\", columnName);\n return get(columnName).getDouble();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public double readDouble() throws IOException {\n int token = fTokenizer.nextToken();\n if (token == StreamTokenizer.TT_NUMBER)\n return fTokenizer.nval;\n\n String msg = \"Double expected in line: \" + fTokenizer.lineno();\n throw new IOException(msg);\n }",
"public double getDouble(int index)\r\n/* 203: */ {\r\n/* 204:220 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 205:221 */ return super.getDouble(index);\r\n/* 206: */ }",
"public double readDouble() {\n\t\tString read;\n\t\ttry {\n\t\t\tread = myInput.readLine();\n\t\t\tdouble num = Double.parseDouble(read);\n\t\t\treturn num;\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Input failed!\\n\");\n\t\t\treturn -1;\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"Not a valid selection!\\n\");\n\t\t\treturn -1;\n\t\t}\n\t}",
"void setDouble(int index, double value) throws SQLException;",
"static double readDouble() throws Exception {\n\t\treturn Double.parseDouble(readString());\n\t}",
"private double getDoubleFromDECIMAL(int column) {\n return Decimal.getDouble(dataBuffer_,\n columnDataPosition_[column - 1],\n getColumnPrecision(column - 1),\n getColumnScale(column - 1));\n }",
"public double getFieldAsDouble(int tag, int index) {\n Integer i = (Integer)fieldIndex.get(tag);\n return fields[i].getAsDouble(index);\n }",
"@Override\n\tpublic double readScalarDouble() throws IOException {\n\t\treturn 0;\n\t}",
"public final synchronized double getDouble(int parameterIndex) \n throws SQLException\n {\n return getCallableStatement().getDouble(parameterIndex);\n }",
"public double unpackDouble() {\n return buffer.getDouble();\n }",
"double getDouble(String key) throws KeyValueStoreException;",
"public double getDouble(String key)\n {\n return getDouble(key, 0);\n }",
"public double get(int index) {\n\t\treturn 0;\n\t}",
"public static double readDouble() {\n return Double.parseDouble(readString());\n }",
"public double getDouble(int row, int column) {\n\t\treturn getColumn(column).getDouble(subset[row]);\n\t}",
"public double readDouble()\r\n/* 453: */ {\r\n/* 454:466 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 455:467 */ return super.readDouble();\r\n/* 456: */ }",
"public double getDouble(String columnName) throws SQLException\n {\n return m_rs.getDouble(columnName);\n }",
"public double getDouble(int pos) {\n return Tuples.toDouble(getObject(pos));\n }",
"double get(int row,int col);",
"String doubleRead();",
"@Override\r\n\tpublic double getValue(int index) {\n\t\tif (data==null) return 0;\r\n\t\t\r\n\t\tdouble d = 0;\r\n\t\tint begin=index+pos;\r\n\t\tif (begin<0) begin=0;\r\n\t\tif (begin>data.size()-1) begin = data.size()-1;\r\n\t\td = data.get(begin).getOpen();\r\n\t\t\r\n\t\treturn d;\r\n\t}",
"public double get(Double[] ipos);",
"public double get(int index) {\n\t\treturn attrs.getQuick(index);\n\t}",
"public abstract void read_double_array(double[] value, int offset, int\nlength);",
"public double toDouble() {\n return this.toDoubleArray()[0];\n }",
"public ArrowBuf getDecimal(int columnIndex) {\n DecimalVector vector = (DecimalVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public double get(int i, int j) {\n return data[i][j];\n }",
"public double getValueCurrentRow(final int column) {\r\n return getLogicalValueAt(currentRow, column);\r\n }",
"public double get(int row, int col){\n \treturn array[row-1][col-1];\n }",
"@Override\n\tpublic Double getFrom(int index) {\n\t\treturn null;\n\t}",
"public double getValue(int row, int col) {\n return data[row][col];\n }",
"public double get(int i, int j) {\n\t\treturn data[i][j];\n\t}",
"public double get(int row, int col) {\n if (row >= 0 && row < this.rows && col >= 0 && col < this.cols)\n return data[row][col];\n else\n throw new ArrayIndexOutOfBoundsException();\n }",
"public double readDouble() {\n\t\tif(!isInit) return 0D;\n\t\tdouble result = 0D;\n\t\tisListening = true;\n\t\twriteLine(\"Waiting for Double input...\");\n\t\twhile(isListening) {\n\t\t\ttry {\n\t\t\t\tresult = Double.parseDouble(inputArea.getText());\n\t\t\t} catch(NumberFormatException nfe) {\n\t\t\t\tresult= 0D;\n\t\t\t}\n\t\t}\n\t\tinputArea.setText(\"\");\n\t\twriteLine(\"Input: \" + result);\n\t\treturn result;\n\t}",
"public double readDouble() throws NumberFormatException {\r\n\t\treturn Double.parseDouble(scanner.nextLine());\r\n\t}",
"public int maDBCursorGetColumnDouble(\n \t\tint cursorHandle,\n \t\tint columnIndex,\n \t\tint doubleValueAddress,\n \t\tMoSyncThread mosync)\n \t{\n \t\tif (!hasCursor(cursorHandle))\n \t\t{\n \t\t\treturn MA_DB_ERROR;\n \t\t}\n \n \t\ttry\n \t\t{\n \t\t\t// Check for NULL value.\n \t\t\tif (getCursor(cursorHandle).isNull(columnIndex))\n \t\t\t{\n \t\t\t\treturn MA_DB_NULL;\n \t\t\t}\n \n \t\t\t// Get data as a float value.\n \t\t\tdouble value = getCursor(cursorHandle).getDouble(columnIndex);\n \n\t\t\t// Write to MoSync memory. Size of a double is 8 - take care of endianess\n \t\t\t// TODO: Replace with high-level call to write double.\n\t\t\tByteBuffer buffer = mosync.getMemorySlice(doubleValueAddress, 8).order(null);\n \t\t\tbuffer.putLong(Double.doubleToLongBits(value));\n \n \t\t\treturn MA_DB_OK;\n \t\t}\n \t\tcatch (CursorIndexOutOfBoundsException ex1)\n \t\t{\n \t\t\tlogStackTrace(ex1);\n \t\t}\n \t\tcatch (SQLException ex2)\n \t\t{\n \t\t\tlogStackTrace(ex2);\n \t\t}\n \n \t\treturn MA_DB_ERROR;\n \t}",
"public double d(int index) {\n if (get(index) == null) return Double.NaN;\n return this.adapter.get(index).doubleValue();\n }",
"public double getDouble(String key) {\n\t\treturn Double.parseDouble(get(key));\n\t}",
"Double getValue();",
"public ByteBuf setDouble(int index, double value)\r\n/* 313: */ {\r\n/* 314:328 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 315:329 */ return super.setDouble(index, value);\r\n/* 316: */ }",
"public double get(int index) {\n\t\treturn _elements.getOrDefault(index, 0.0);\n\t}",
"private double convertDouble()\n\t{\n\t\tString val = tokens[10];\n\t\tdouble value = 0.0;\n\t\ttry {\n\t\t\tvalue = Double.parseDouble(tokens[10]);\n\t\t}\n\t\tcatch(NumberFormatException e) {\n\t\t\tSystem.err.print(\"\");\n\t\t}\n\t\treturn value;\n\t}",
"public double getFloat8(String columnName) {\n Float8Vector vector = (Float8Vector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public Double getDouble(String attr) {\n return (Double) super.get(attr);\n }",
"public static double readByte() {\n return Byte.parseByte(readString());\n }",
"public Double getDouble(String key) throws JsonException {\r\n\t\tObject object = get(key);\r\n\t\tDouble result = PrimitiveDataTypeConvertor.toDouble(object);\r\n\t\tif (result == null) {\r\n\t\t\tthrow PrimitiveDataTypeConvertor.exceptionType(key, object, \"Double\");\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public double get( int index ) {\n MatrixType type = mat.getType();\n\n if (type.isReal()) {\n if (type.getBits() == 64) {\n return ((DMatrixRMaj)mat).data[index];\n } else {\n return ((FMatrixRMaj)mat).data[index];\n }\n } else {\n throw new IllegalArgumentException(\"Complex matrix. Call get(int,Complex64F) instead\");\n }\n }",
"public static double readDouble() {\n try {\n return scanner.nextDouble();\n }\n catch (InputMismatchException e) {\n String token = scanner.next();\n throw new InputMismatchException(\"attempts to read a 'double' value from standard input, \"\n + \"but the next token is \\\"\" + token + \"\\\"\");\n }\n catch (NoSuchElementException e) {\n throw new NoSuchElementException(\"attempts to read a 'double' value from standard input, \"\n + \"but no more tokens are available\");\n }\n }",
"public double getFloat8(int columnIndex) {\n Float8Vector vector = (Float8Vector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public void visitColumn(double val);",
"public abstract void writeAsDbl(int offset, double d);",
"public abstract double getasDouble(int tuple, int val);",
"public abstract Number getNumber(int columnIndex);",
"public double[] readVector(String line, int index) {\n\n String[] list = line.split(\" \");\n int numColumns = Integer.parseInt(list[index]);\n double[] res = new double[numColumns];\n\n int num = index + 1;\n for (int j = 0; j < numColumns; j++) {\n res[j] = Double.parseDouble(list[num]);\n num++;\n }\n return res;\n }",
"double getValueAt(int x, int y);",
"public double doubleValue() {\n if (originalValue instanceof Double) {\n return (Double) originalValue;\n } else if (originalValue instanceof Number) {\n return ((Number) originalValue).doubleValue();\n } else if (originalValue instanceof String) {\n try {\n return Double.parseDouble((String) originalValue);\n } catch (NumberFormatException e) {\n throw new CellValueCastException(e);\n }\n } else {\n throw new CellValueCastException();\n }\n }",
"public double asDouble() {\r\n\t\tif (this.what == SCALARTYPE.Integer || this.what == SCALARTYPE.Float) {\r\n\t\t\treturn (new BigDecimal(this.scalar)).doubleValue();\r\n\t\t} else\r\n\t\t\treturn 0; // ritorna un valore di default\r\n\t}",
"Double getDoubleValue();",
"public ArrowBuf getDecimal(String columnName) {\n DecimalVector vector = (DecimalVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public Double\n getDoubleValue() \n {\n return ((Double) getValue());\n }",
"public Double getDouble(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.DOUBLE)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), Double.class);\n\t\treturn (Double)value.value;\n\t}",
"public static double getDouble(Key key) {\n return getDouble(key, 0);\n }",
"public double get( int row , int column )\n\t{\n\t\tdouble\tresult\t= 0.0D;\n\n\t\tif\t(\t( row > 0 ) && ( row <= rows() ) &&\n\t\t ( columns > 0 ) && ( columns <= columns() ) )\n\t\t{\n\t\t\tresult\t= matrixData[ row - 1 ][ column - 1 ];\n\t\t}\n\n\t\treturn result;\n\t}",
"public double parseDouble()\r\n {\r\n String str = feed.findWithinHorizon( REAL_PATTERN, 0 );\r\n \r\n if( str == null )\r\n throw new NumberFormatException( \"[Line \" + lineNum + \"] Input did not match a real number\" );\r\n else if( str.length() == 0 )\r\n throw new NumberFormatException( \"[Line \" + lineNum + \"] Input did not match a real number\" );\r\n \r\n return Double.parseDouble( str );\r\n }",
"public double getDoubleValue() {\n if (getValueIndex() <= 0)\n return 0D;\n return ((DoubleEntry) getPool().getEntry(getValueIndex())).getValue();\n }",
"public Number getValue(int row, int column) { return this.underlying.getValue(row, column + this.firstCategoryIndex); }",
"public double getDouble() {\r\n\t\treturn (value.getDouble());\r\n\t}",
"public double getValue(Cell cell) {\n\t\treturn cell.value;\n\t}",
"public double get(int idx) {\n\t\tswitch (idx) {\n\t\tcase 0: \n\t\t\treturn x;\n\t\tcase 1: \n\t\t\treturn y;\n\t\tcase 2:\n\t\t\treturn z;\n\t\tcase 3: \n\t\t\treturn w;\n\t\tdefault:\t\n\t\t\tthrow new IndexOutOfBoundsException(\"index must be between 0 and 3, got \" + idx);\n\t\t}\n\t}",
"public double doubleValue(final int i) {\n if (!isInteger(i)) {\n return Float.intBitsToFloat((int) values[i]);\n }\n throw new ClassCastException(\"value #\" + i + \" is not a float in \" + this);\n }",
"public void updateDouble(int columnIndex, double x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateDouble(\" + columnIndex + \", \" + x + \"d);\");\n }\n update(columnIndex, ValueDouble.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"@Override\r\n public double doubleValue() {\r\n return this.m_current;\r\n }",
"public static double[] readDoubles() {\n return readAllDoubles();\n }",
"public double getDataPoint(int i) {\n\t\treturn data[i];\n\t}",
"public double getFieldAsDouble(int tag) {\n return getFieldAsDouble(tag, 0);\n }",
"float get(int idx);",
"public double getDouble();",
"public double getDoubleValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a double.\");\n }",
"public double getDouble(String name) {\n Enumeration enumer = DOUBLES.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectDoubleItem item = (SimpleMessageObjectDoubleItem) enumer.nextElement();\n if(item.getName().compareTo(name) == 0) {\n return item.getValue();\n }\n }\n return -1D;\n }",
"public void updateDouble(int columnIndex, double x) throws SQLException\n {\n m_rs.updateDouble(columnIndex, x);\n }",
"public static final Double getDouble(ClassFile cf, short cpiIndex) {\n DoubleInfo di = (DoubleInfo) cf.getCpInfo(cpiIndex);\n return Double.longBitsToDouble(((long) di.highBytes << 32) | (0xffffffffL & di.lowBytes));\n }",
"float getIn(int index);",
"@Override\n public double nextDouble() {\n return super.nextDouble();\n }",
"public double getDouble(String name)\r\n throws NumberFormatException\r\n {\r\n return Double.parseDouble(getString(name));\r\n }",
"public double[] getData(int index) {\n\t\treturn m_Data[index];\n\t}"
] |
[
"0.7545856",
"0.7511722",
"0.74918467",
"0.72448033",
"0.7229514",
"0.71776843",
"0.71620005",
"0.710723",
"0.70431703",
"0.70257676",
"0.6993552",
"0.6993003",
"0.6864906",
"0.6860246",
"0.68113434",
"0.6797022",
"0.67667985",
"0.67659104",
"0.67249346",
"0.67127943",
"0.66488725",
"0.66468155",
"0.65981436",
"0.6591461",
"0.6571549",
"0.656387",
"0.6562173",
"0.6551458",
"0.65385765",
"0.653641",
"0.64983124",
"0.6494752",
"0.6480085",
"0.6468029",
"0.64652836",
"0.64616126",
"0.64572155",
"0.64533657",
"0.63911957",
"0.6381955",
"0.6374213",
"0.6366108",
"0.63204914",
"0.63182247",
"0.6306578",
"0.6306037",
"0.6301008",
"0.6297372",
"0.62812805",
"0.6278417",
"0.6275436",
"0.62618995",
"0.6254952",
"0.62427235",
"0.62280303",
"0.62241393",
"0.6211424",
"0.6191958",
"0.6187107",
"0.6156378",
"0.61562866",
"0.6153729",
"0.6137146",
"0.6131188",
"0.6115562",
"0.6108544",
"0.6104594",
"0.61028236",
"0.60980505",
"0.60837406",
"0.6083245",
"0.60646236",
"0.6045614",
"0.6041445",
"0.60381275",
"0.60370904",
"0.6035171",
"0.602633",
"0.6023899",
"0.6019172",
"0.60180885",
"0.6016086",
"0.6010678",
"0.6006049",
"0.59830827",
"0.5981587",
"0.5965703",
"0.59531903",
"0.5950373",
"0.594922",
"0.59464633",
"0.59191036",
"0.59022784",
"0.58993125",
"0.5886013",
"0.5875641",
"0.5867722",
"0.5864974",
"0.58443373",
"0.58345103"
] |
0.728096
|
3
|
Read bytes from the column at the current index
|
byte[] readBytes();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int readFdocaOneByte(int index) {\n\n checkForSplitRowAndComplete(1, index);\n //return dataBuffer_[position_++] & 0xff;\n return dataBuffer_.readByte();\n }",
"public final int getColumn() {\n/* 368 */ return this.bufcolumn[this.bufpos];\n/* */ }",
"private int readFdocaOneByte() {\n checkForSplitRowAndComplete(1);\n //return dataBuffer_[position_++] & 0xff;\n return dataBuffer_.readUnsignedByte();\n }",
"protected byte _getByte(int index)\r\n/* 323: */ {\r\n/* 324:337 */ return HeapByteBufUtil.getByte(this.array, index);\r\n/* 325: */ }",
"protected abstract int readInternal(int index);",
"private int getCol(int index) {\n return index & (chunkSize - 1);\n }",
"public byte[] getBytes(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getBytes\", columnIndex);\n return get(columnIndex).getBytes();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"private int readByte() {\n return src[srcPos++] & 0xFF;\n }",
"@Override\r\n\tpublic byte getByte(int pos) {\n\t\treturn buffer.get(pos);\r\n\t}",
"public int getBytes(int index, FileChannel out, long position, int length)\r\n/* 889: */ throws IOException\r\n/* 890: */ {\r\n/* 891:898 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 892:899 */ return super.getBytes(index, out, position, length);\r\n/* 893: */ }",
"@Override\n\tpublic byte readByte() throws IOException {\n\t\treturn (byte) (_buff.get() & 0xFF);\n\t}",
"protected final byte getByte(int offset)\n {\n final byte[] tableData = tables.getTablesData();\n return tableData[cursor+offset];\n }",
"com.google.protobuf.ByteString\n getRowsBytes(int index);",
"public byte getByte(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getByte\", columnIndex);\n return get(columnIndex).getByte();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public byte getByte(int index) throws ArrayIndexOutOfBoundsException\n\t{\n\t\treturn bytes[index];\n\t}",
"public int getBytes(int index, FileChannel out, long position, int length)\r\n/* 190: */ throws IOException\r\n/* 191: */ {\r\n/* 192:217 */ ensureAccessible();\r\n/* 193:218 */ return getBytes(index, out, position, length, false);\r\n/* 194: */ }",
"private int getBytes(int index, FileChannel out, long position, int length, boolean internal)\r\n/* 211: */ throws IOException\r\n/* 212: */ {\r\n/* 213:233 */ ensureAccessible();\r\n/* 214:234 */ ByteBuffer tmpBuf = internal ? internalNioBuffer() : ByteBuffer.wrap(this.array);\r\n/* 215:235 */ return out.write((ByteBuffer)tmpBuf.clear().position(index).limit(index + length), position);\r\n/* 216: */ }",
"byte get(int index);",
"public byte readScalarByte() throws java.io.IOException;",
"@Override\n public byte readByte() throws IOException\n {\n if (!hasRemaining())\n {\n throw new IOException(\"End off buffer reached\");\n }\n return (byte) randomAccessRead.read();\n }",
"@Override\n\tpublic byte readScalarByte() throws IOException {\n\t\treturn 0;\n\t}",
"public byte[] getBytes(int columnIndex) throws SQLException\n {\n return m_rs.getBytes(columnIndex);\n }",
"public int read() throws IOException {\n/* 173 */ long next = this.pointer + 1L;\n/* 174 */ long pos = readUntil(next);\n/* 175 */ if (pos >= next) {\n/* 176 */ byte[] buf = this.data.get((int)(this.pointer >> 9L));\n/* */ \n/* 178 */ return buf[(int)(this.pointer++ & 0x1FFL)] & 0xFF;\n/* */ } \n/* 180 */ return -1;\n/* */ }",
"com.google.protobuf.ByteString getContentsBytes(int index);",
"public final synchronized byte[] getBytes(int parameterIndex) \n throws SQLException\n {\n return getCallableStatement().getBytes(parameterIndex);\n }",
"public byte[] getBytes(int row, int column) {\n return columns[column].getBytes(row);\n }",
"@Override\n public int read() throws IOException {\n if (pos >= count) {\n fill();\n if (pos >= count) {\n return -1;\n }\n }\n checkIfClosed();\n return buf[pos++] & 0xFF;\n }",
"public int getBytes(int index, GatheringByteChannel out, int length)\r\n/* 252: */ throws IOException\r\n/* 253: */ {\r\n/* 254:268 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 255:269 */ return super.getBytes(index, out, length);\r\n/* 256: */ }",
"byte readByte();",
"public ByteBuffer read(int location)\n throws DataOrderingException;",
"private byte[] readFdocaBytes(int length) {\n\n checkForSplitRowAndComplete(length);\n\n byte[] b = new byte[length];\n dataBuffer_.readBytes(b);\n// System.arraycopy(dataBuffer_, position_, b, 0, length);\n// position_ += length;\n//\n return b;\n }",
"public byte getByte(int row, int column) {\n return columns[column].getByte(row);\n }",
"public int getBytes(int index, GatheringByteChannel out, int length)\r\n/* 183: */ throws IOException\r\n/* 184: */ {\r\n/* 185:211 */ ensureAccessible();\r\n/* 186:212 */ return getBytes(index, out, length, false);\r\n/* 187: */ }",
"int read(long pos, byte[] buf)throws IOException;",
"com.google.protobuf.ByteString getData(int index);",
"com.google.protobuf.ByteString getData(int index);",
"private int getBytes(int index, GatheringByteChannel out, int length, boolean internal)\r\n/* 197: */ throws IOException\r\n/* 198: */ {\r\n/* 199:222 */ ensureAccessible();\r\n/* 200: */ ByteBuffer tmpBuf;\r\n/* 201: */ ByteBuffer tmpBuf;\r\n/* 202:224 */ if (internal) {\r\n/* 203:225 */ tmpBuf = internalNioBuffer();\r\n/* 204: */ } else {\r\n/* 205:227 */ tmpBuf = ByteBuffer.wrap(this.array);\r\n/* 206: */ }\r\n/* 207:229 */ return out.write((ByteBuffer)tmpBuf.clear().position(index).limit(index + length));\r\n/* 208: */ }",
"public byte getByte(int columnIndex) throws SQLException\n {\n return m_rs.getByte(columnIndex);\n }",
"public byte readByte() throws IOException {\n\t\treturn (byte) read();\n\t}",
"public byte[] getFixedSizeBinary(int columnIndex) {\n FixedSizeBinaryVector vector = (FixedSizeBinaryVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"void readBytes(byte[] into, int offset, int toRead) throws IOException;",
"public final synchronized byte getByte(int parameterIndex) \n throws SQLException\n {\n return getCallableStatement().getByte(parameterIndex);\n }",
"public byte readByte() {\n return ((byte) readLong());\n }",
"protected final int readBytesAt(int offset)\n throws IOException\n {\n // shouldn't modify mBytePtr, assumed to be 'offset'\n if (_inputSource != null) {\n int count = _inputSource.read(_inputBuffer, offset, _inputBuffer.length - offset);\n if (count > 0) {\n _inputEnd += count;\n }\n return count;\n }\n return -1;\n }",
"public byte getByte(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getByte\", columnName);\n return get(columnName).getByte();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"int getBytesRead() {\n \treturn _read + _o;\n }",
"public byte[] getBytes(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getBytes\", columnName);\n return get(columnName).getBytes();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public byte getByte(int index)\r\n/* 317: */ {\r\n/* 318:331 */ ensureAccessible();\r\n/* 319:332 */ return _getByte(index);\r\n/* 320: */ }",
"byte[] readPiece(int index){\n return Arrays.copyOfRange(file_pieces,index*piece_size,piece_size*(index+1)-1);\n }",
"public byte[] getFixedSizeBinary(String columnName) {\n FixedSizeBinaryVector vector = (FixedSizeBinaryVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public long currentReadBytes()\r\n/* 209: */ {\r\n/* 210:398 */ return this.currentReadBytes.get();\r\n/* 211: */ }",
"public byte getByte(int index)\r\n/* 137: */ {\r\n/* 138:154 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 139:155 */ return super.getByte(index);\r\n/* 140: */ }",
"private byte nextByte(ByteBuffer inputBuffer) throws IOException {\n getAtLeastBytes(inputBuffer, 1);\n return inputBuffer.get();\n }",
"public byte readByte() throws SerialPortException {\n\t\tif (this.available()) {\n\t\t\tbyte [] byteRead = port.readBytes(1);\n\t\t\tif(debug) {\n\t\t\t\tString byteName = String.format(\"%02x\", byteRead[0]);\n\t\t\t\tSystem.out.print(byteName + \"\\t\");;\n\t\t\t}\n\t\t\treturn byteRead[0];\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t\t\n\t}",
"public int read() throws IOException {\n if (!_open)\n return -1;\n long _here = position();\n int val = _backing.read();\n if (val >= 0) {\n val = _head.crypt((byte) val, _here);\n }\n return val;\n }",
"@Override\r\n\tpublic void read(IByteBuffer source, long offset) {\n\r\n\t}",
"public byte[] readBytes() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn null;\n\n\t\tsynchronized (buffer) {\n\t\t\tint length = bufferLast - bufferIndex;\n\t\t\tbyte outgoing[] = new byte[length];\n\t\t\tSystem.arraycopy(buffer, bufferIndex, outgoing, 0, length);\n\n\t\t\tbufferIndex = 0; // rewind\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}",
"public ByteBuf getBytes(int index, OutputStream out, int length)\r\n/* 245: */ throws IOException\r\n/* 246: */ {\r\n/* 247:262 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 248:263 */ return super.getBytes(index, out, length);\r\n/* 249: */ }",
"public UnsignedByte read(int index) {\n if (index > -1 && index < MEMORY_LENGTH) return memory[index];\n else throw new IndexOutOfBoundsException(\"Index \" + index + \" is out of bounds (0 - \" + MEMORY_LENGTH + \")\");\n }",
"@Override\n\tpublic int read() throws IOException {\n\t\tif (buf.isReadable()) {\n return buf.readByte() & 0xff;\n }\n return -1;\n\t}",
"public int read() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn -1;\n\n\t\tsynchronized (buffer) {\n\t\t\tint outgoing = buffer[bufferIndex++] & 0xff;\n\t\t\tif (bufferIndex == bufferLast) { // rewind\n\t\t\t\tbufferIndex = 0;\n\t\t\t\tbufferLast = 0;\n\t\t\t}\n\t\t\treturn outgoing;\n\t\t}\n\t}",
"public byte[] getBytes(String columnName) throws SQLException\n {\n return m_rs.getBytes(columnName);\n }",
"public byte[] read();",
"public Byte getByte(final int index) {\n Object returnable = this.get(index);\n if (returnable == null) {\n return null;\n }\n if (returnable instanceof String) {\n /* A String can be used to construct a BigDecimal. */\n returnable = new BigDecimal((String) returnable);\n }\n return ((Number) returnable).byteValue();\n }",
"@Override\n\tpublic int ReadByte()\n\t{\n//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:\n//ORIGINAL LINE: byte[] oneByteBuffer = new byte[1];\n\t\tbyte[] oneByteBuffer = new byte[1];\n\t\tint num = Read(oneByteBuffer, 0, 1);\n\t\tif (num <= 0)\n\t\t{\n\t\t\t// return -1 to indicate that no byte was read.\n\t\t\treturn -1;\n\t\t}\n\t\treturn oneByteBuffer[0];\n\t}",
"Object getColumnValue(int colIndex);",
"com.google.protobuf.ByteString\n getColumnBytes();",
"public byte readByte() throws IOException {\n return in.readByte();\n }",
"public final int getUByte(int index) { return bb.get(index) & 0xff; }",
"int atColumn();",
"final byte getByte(int column) {\n switch (jdbcTypes_[column - 1]) {\n case Types.BOOLEAN:\n return CrossConverters.getByteFromBoolean(get_BOOLEAN(column));\n case Types.SMALLINT:\n int smallInt = get_SMALLINT(column);\n if (smallInt > Byte.MAX_VALUE || smallInt < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + smallInt);\n return (byte) smallInt;\n case Types.INTEGER:\n int i = get_INTEGER(column);\n if (i > Byte.MAX_VALUE || i < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + i);\n return (byte) i;\n case Types.BIGINT:\n long l = get_BIGINT(column);\n if (l > Byte.MAX_VALUE || l < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + l);\n return (byte) l;\n case Types.REAL:\n float f = get_FLOAT(column);\n if (f > Byte.MAX_VALUE || f < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + f);\n return (byte) f;\n case Types.DOUBLE:\n double d = get_DOUBLE(column);\n if (d > Byte.MAX_VALUE || d < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + d);\n return (byte) d;\n case Types.DECIMAL:\n // For performance we don't materialize the BigDecimal, but convert directly from decimal bytes to a long.\n long ld = getLongFromDECIMAL(column, \"byte\");\n if (ld > Byte.MAX_VALUE || ld < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + ld);\n return (byte) ld;\n case Types.CHAR:\n return CrossConverters.getByteFromString(get_CHAR(column));\n case Types.VARCHAR:\n case Types.LONGVARCHAR:\n return CrossConverters.getByteFromString(get_VARCHAR(column));\n default:\n throw coercionError( \"byte\", column );\n }\n }",
"public byte[] read(long pos) {\n final long tic = System.nanoTime();\n if (log.isTraceEnabled()) log.trace(\"read mapped from {} @ {}\", virtualFileNumber, pos);\n int size = readInt(pos);\n byte[] buf = new byte[size];\n super.read(pos + 4, buf);\n if (log.isTraceEnabled()) log.trace(\"read mapped {} bytes from {} @ {}\", size, virtualFileNumber, pos);\n\n blobStoreMetricsAdders.readCounter.increment();\n blobStoreMetricsAdders.bytesRead.add(recordSize(buf));\n blobStoreMetricsAdders.readTimer.add(System.nanoTime() - tic);\n return buf;\n }",
"private int getColumn() {\n return binaryPartition(column);\n }",
"@Override\n public int readUnsignedByte() throws IOException\n {\n if (!hasRemaining())\n {\n throw new IOException(\"End off buffer reached\");\n }\n return randomAccessRead.read();\n }",
"public int getCurrentColumn() {\n return buffer.columnNumber();\n }",
"@Override\n public int read() throws IOException {\n int r = -1;\n \n if (encryptedDataBuffer!=null && pos>=encryptedDataBuffer.length && !closed)\n fillBuffer();\n \n if (encryptedDataBuffer!=null && pos<encryptedDataBuffer.length)\n r = (int)encryptedDataBuffer[pos++]; // next element in the buffer\n return r;\n }",
"void setBytes(int index, byte[] value) throws SQLException;",
"public byte read(int offset) throws IOException {\n\t\tif (ensureBuffer(offset, 1) > 0) {\n\t\t\tthis.pos = offset + 1;\n\t\t\treturn this.buffer[offset];\n\t\t}\n\t\tthrow new EOFException();\n\t}",
"int read(byte[] buffer, int bufferOffset, int length) throws IOException;",
"public final int read() {\r\n \r\n if (cbyte == size) {\r\n return -1;\r\n }\r\n \r\n // Otherwise, the byte under the head at \"cbyte\" can be read.\r\n \r\n if (bytenum == BYTES_IN_ELEMENT) {\r\n // Read next byte\r\n offset++;\r\n elem = data[offset];\r\n bytenum = 0;\r\n }\r\n \r\n int rval = 0;\r\n rval = elem & 0xff;\r\n \r\n // increase byte position\r\n elem = elem >>> 8; // unsigned SHR\r\n bytenum++;\r\n cbyte++;\r\n \r\n return rval;\r\n }",
"public byte getByte(String columnName) throws SQLException\n {\n return m_rs.getByte(columnName);\n }",
"public com.google.protobuf.ByteString\n getRowsBytes(int index) {\n return rows_.getByteString(index);\n }",
"public int readBytes(FileChannel out, long position, int length)\r\n/* 228: */ throws IOException\r\n/* 229: */ {\r\n/* 230:248 */ checkReadableBytes(length);\r\n/* 231:249 */ int readBytes = getBytes(this.readerIndex, out, position, length, true);\r\n/* 232:250 */ this.readerIndex += readBytes;\r\n/* 233:251 */ return readBytes;\r\n/* 234: */ }",
"public int setBytes(int index, FileChannel in, long position, int length)\r\n/* 283: */ throws IOException\r\n/* 284: */ {\r\n/* 285:299 */ ensureAccessible();\r\n/* 286: */ try\r\n/* 287: */ {\r\n/* 288:301 */ return in.read((ByteBuffer)internalNioBuffer().clear().position(index).limit(index + length), position);\r\n/* 289: */ }\r\n/* 290: */ catch (ClosedChannelException ignored) {}\r\n/* 291:303 */ return -1;\r\n/* 292: */ }",
"public int readByte() {\n waitForData();\n try {\n return m_DataInputStream.readByte();\n }\n catch (IOException e) {\n return 256;\n }\n }",
"byte read()\n \tthrows IOException {\n \t//\n \t// Ensure that one byte can be read\n \tensureContinuousBlock(1);\n \t//\n \t// Simply return the byte\n \treturn _random[_o++];\n }",
"private int readChar(boolean movePointer) throws Exception {\n if (_bi >= _blen) {\n _blen = _reader.read(_buf, 0, 2048);\n if (log) {\n StringBuffer sbBuffer = new StringBuffer();\n for (int i = 0; i < 300; i++) {\n sbBuffer.append(_buf[i]);\n }\n }\n log = false;\n\n _bi = 0;\n if (_blen < 0)\n return -1;\n }\n char ret = _buf[_bi];\n if (movePointer)\n _bi++;\n return ret;\n }",
"public long getUInt8(int columnIndex) {\n UInt8Vector vector = (UInt8Vector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"@Override\n\tpublic int read() {\n\t\treturn super.read();\n\t}",
"public com.google.protobuf.ByteString\n getRowsBytes(int index) {\n return rows_.getByteString(index);\n }",
"public Column getColumn(int pos) { return columns[pos]; }",
"public byte readByteNonBlock() {\n return ((byte) readLongNonBlock());\n }",
"public int read()\n throws IOException\n {\n if ( position == this.buffer.length() )\n {\n return -1;\n }\n\n return this.buffer.charAt( this.position++ );\n }",
"Column getColumns(int index);",
"protected final int readBytes()\n throws IOException\n {\n _inputPtr = 0;\n _inputEnd = 0;\n if (_inputSource != null) {\n int count = _inputSource.read(_inputBuffer, 0, _inputBuffer.length);\n if (count > 0) {\n _inputEnd = count;\n }\n return count;\n }\n return -1;\n }",
"private int readCharBackward() {\r\n \t\tif (--index < 0 || \r\n \t\t\t\tdocumentContent == null ||\r\n \t\t\t\tdocumentContent.length() <= index)\r\n \t\t\treturn -1;\r\n \r\n \t\ttry {\r\n \t\t\treturn documentContent.charAt(index);\r\n \t\t} catch (StringIndexOutOfBoundsException e) {\r\n \t\t\treturn -1;\r\n \t\t}\r\n \t}",
"public int readByte() {\n try {\n return in.read();\n } catch (IOException e) {\n print(\"Error reading byte from \" + portName);\n }\n return -1;\n }",
"public byte read(int param1) {\n }",
"com.google.protobuf.ByteString getColumnBytes();",
"public long getUInt8(String columnName) {\n UInt8Vector vector = (UInt8Vector) table.getVector(columnName);\n return vector.get(rowNumber);\n }"
] |
[
"0.6869857",
"0.65386826",
"0.6354843",
"0.6301527",
"0.6283497",
"0.62787485",
"0.6184708",
"0.6172885",
"0.6155919",
"0.6155426",
"0.6148582",
"0.611902",
"0.6079297",
"0.6072854",
"0.60261613",
"0.60159683",
"0.6008716",
"0.5997478",
"0.59869266",
"0.594639",
"0.5945739",
"0.5943036",
"0.5942387",
"0.5934406",
"0.59233356",
"0.5920491",
"0.5920488",
"0.590957",
"0.5884196",
"0.58802915",
"0.58694077",
"0.58606213",
"0.58456767",
"0.5840642",
"0.583413",
"0.583413",
"0.5834008",
"0.58235925",
"0.5821776",
"0.58045256",
"0.5804456",
"0.5798366",
"0.57914865",
"0.5782311",
"0.5767502",
"0.57529086",
"0.5743168",
"0.57302",
"0.57242715",
"0.57091486",
"0.5707517",
"0.5694433",
"0.56840503",
"0.56720257",
"0.567009",
"0.56686914",
"0.5665108",
"0.5652883",
"0.5646634",
"0.5639139",
"0.562799",
"0.5618879",
"0.5617609",
"0.55982965",
"0.55951566",
"0.5593447",
"0.5591139",
"0.55893886",
"0.55860335",
"0.55784607",
"0.5572732",
"0.55721134",
"0.5569295",
"0.55654037",
"0.55639553",
"0.55575526",
"0.55562836",
"0.55561554",
"0.55534405",
"0.55534285",
"0.55512303",
"0.5539672",
"0.5537447",
"0.55360025",
"0.55334604",
"0.55295056",
"0.5514163",
"0.5507933",
"0.550328",
"0.54964626",
"0.5495042",
"0.54837877",
"0.5479667",
"0.54616743",
"0.54497504",
"0.5447556",
"0.5444728",
"0.54370964",
"0.5432723",
"0.5432328"
] |
0.574765
|
46
|
Read a string from the column at the current index
|
String readString();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract String getString(int columnIndex);",
"public String get(int idx) {\n return (String) columns.get(idx);\n }",
"String getColumn(int index);",
"String getColumn(int index);",
"public String getString(int index);",
"String getValue(String column, int row);",
"java.lang.String getColumn();",
"public String getString(int row, int column) {\n return columns[column].getString(row);\n }",
"public String getAsString(int index) {\n return ((String[])data)[index];\n }",
"String get(int index);",
"String getColumn();",
"public static String ReadCell(int column,int row)\r\n\t{\r\n\t\treturn wrksheet.getCell(column,row).getContents();\r\n\t}",
"public String getCellText(int row, int col) {\n\t\treturn input.get(row).get(col);\n\t}",
"Object getColumnValue(int colIndex);",
"public String getString(int index) throws IOException {\n\t\t\tInputStream in = newInputStream(index);\n\t\t\treturn in != null ? inputStreamToString(in) : null;\n\t\t}",
"public static String readCell(int row, int column)\n\t{\n\t\treturn wrksheet.getCell(row, column).getContents();\n\t}",
"protected abstract int readInternal(int index);",
"String getRawCellAt(Coord coord);",
"private String stringValue(String columnName) {\r\n String value = null;\r\n try {\r\n if ((rowSet != null) && selectContactInRowSet()) {\r\n value = rowSet.getString(columnName);\r\n }\r\n } catch (SQLException sqlex) {\r\n sqlex.printStackTrace();\r\n }\r\n return value;\r\n }",
"public final int getColumn() {\n/* 368 */ return this.bufcolumn[this.bufpos];\n/* */ }",
"private int readCharBackward() {\r\n \t\tif (--index < 0 || \r\n \t\t\t\tdocumentContent == null ||\r\n \t\t\t\tdocumentContent.length() <= index)\r\n \t\t\treturn -1;\r\n \r\n \t\ttry {\r\n \t\t\treturn documentContent.charAt(index);\r\n \t\t} catch (StringIndexOutOfBoundsException e) {\r\n \t\t\treturn -1;\r\n \t\t}\r\n \t}",
"public String getString(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getString\", columnIndex);\n return get(columnIndex).getString();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"private String getCharacter(final int index) {\n String s = null;\n try {\n s = document.getText(index, 1);\n } catch (final BadLocationException e) {\n }\n return s;\n }",
"java.lang.String getContents(int index);",
"public Object getValueForColumnIndex(int _index) {\n Object value = null;\n if ( this.attData != null ) {\n int count = -1;\n String lastRetValue = null;\n Iterator<String> it = this.attData.keySet().iterator();\n while ((it.hasNext()) && (_index != count)) {\n lastRetValue = (String)it.next();\n count++;\n }\n value = this.attData.get(lastRetValue);\n }\n return value;\n }",
"public static List<String> readColumn(File inFile, String string) throws IOException {\n List<String> retVal = new ArrayList<String>(100);\n try (TabbedLineReader inStream = new TabbedLineReader(inFile)) {\n int inCol = inStream.findField(string);\n for (TabbedLineReader.Line line : inStream)\n retVal.add(line.get(inCol));\n }\n return retVal;\n }",
"public String getValueAt(int rowIndex, int columnIndex);",
"public String getStringColumn(String column)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n String name = canonicalize(column);\n \n if (isColumnNull(name))\n return null;\n \n Object value = data.get(name);\n \n if (value == null)\n throw new IllegalArgumentException(\"Column \" + column + \" not present\");\n if (!(value instanceof String))\n throw new IllegalArgumentException(\"Value is not an string\");\n \n return (String) value;\n }",
"public Object getValueAt( int row, int column ) \r\n throws IllegalStateException\r\n {\r\n if ( !connectedToDatabase ) \r\n throw new IllegalStateException( \"Not Connected to Database\" );\r\n try \r\n {\r\n resultSet.absolute( row + 1 );\r\n return resultSet.getObject( column + 1 );\r\n }\r\n catch ( SQLException sqlException ) \r\n {\r\n sqlException.printStackTrace();\r\n }\r\n \r\n return \"\";\r\n }",
"int getColumnPosition(String path);",
"public String get(int position)\n\t{\n\t\treturn data[position];\n\t}",
"int atColumn();",
"int getColumnIndex();",
"int getColumnIndex();",
"int getColumnIndex();",
"public static String getCellData(int rowIndex, int colIndex) {\n\t\treturn sheet.getRow(rowIndex).getCell(colIndex).toString();\n\t}",
"public CharSequence get(int index) {\n return getString(index);\n }",
"public String readColumnData(String fieldname, String inputsheet) throws IOException {\r\n\t\tFile inputWorkbook = new File(inputFile);\r\n\t\tWorkbook w;\r\n\t\tString cellData = null;\r\n\t\ttry {\r\n\t\t\tw = Workbook.getWorkbook(inputWorkbook);\r\n\t\t\t// Get the first sheet\r\n\t\t\tSheet sheet = w.getSheet(inputsheet);\r\n\t\t\t// Loop over first 10 column and lines\r\n\t\t\t\r\n\t\t\tfor (int j = 0; j < sheet.getColumns(); j++) {\t\t\t\t\r\n\t\t\t\tCell cell = sheet.getCell(j, 0);\t\t\t\t\r\n\t\t\t\tif (cell.getContents().equals(fieldname)) {\t\t\t\t\t\r\n\t\t\t\t\tcellData = sheet.getCell(j, 1).getContents();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\t\t\r\n\t\t} catch (BiffException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t\treturn cellData;\r\n\t}",
"Object getDataValue(String column, int row);",
"int getColumnIndex(String name);",
"public char get(final int row, final int col) {\r\n // TODO your job\r\n return mazeData [row][col] ;\r\n\r\n\r\n }",
"public Column getColumn(int pos) { return columns[pos]; }",
"public String getNString(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getNString\", columnIndex);\n return get(columnIndex).getString();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public char getChar(int row, int column) {\n return columns[column].getChar(row);\n }",
"public String getText(T anItem, int aCol) { return getText(anItem); }",
"public String getString(int columnIndex) throws SQLException\n {\n return m_rs.getString(columnIndex);\n }",
"public String getString(String columnLabel) throws SQLException;",
"int getColumnIndex (String columnName);",
"public native String getItem(Number index);",
"@Override\n public String getColumn() {\n Object ref = column_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n column_ = s;\n return s;\n }\n }",
"public char read() {\n char ch = this.peek();\n this.index++;\n return ch;\n }",
"public char readChar() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn (char) (-1);\n\t\treturn (char) last();\n\t}",
"@Override\n\tpublic String getElementAt(int index) {\n\t\treturn datas.get(index);\n\t}",
"int indexOf(String column);",
"int indexOf(String column);",
"int getColumn();",
"private static int getColumn(String s) {\n int i = -1;\n try {\n i = Integer.parseInt(s);\n } catch (Exception e) {\n return -1;\n }\n if (i>GameBoardMainArea.NUMCOLS) {\n return -1;\n }\n if (i<1) {\n return -1;\n }\n return i;\n }",
"public String getString(int row, int column) {\n\t\treturn getColumn(column).getString(subset[row]);\n\t}",
"private int readChar(boolean movePointer) throws Exception {\n if (_bi >= _blen) {\n _blen = _reader.read(_buf, 0, 2048);\n if (log) {\n StringBuffer sbBuffer = new StringBuffer();\n for (int i = 0; i < 300; i++) {\n sbBuffer.append(_buf[i]);\n }\n }\n log = false;\n\n _bi = 0;\n if (_blen < 0)\n return -1;\n }\n char ret = _buf[_bi];\n if (movePointer)\n _bi++;\n return ret;\n }",
"public String readString (int dim) throws IOException {\n char campo[] = new char[dim];\n for (int i=0; i<dim; i++) campo[i] = readChar();\n return new String(campo).replace('\\0',' ');\n }",
"@Override\n\tpublic String getColumnName(int col) throws SQLException {\n\t\tif (col <= this.width && col >= 1) {\n\n\t\t\tcol--;\n\t\t\tString str = table[0][col];\n\t\t\tStringTokenizer token = new StringTokenizer(str, \",\");\n\t\t\tString label = token.nextToken();\n\n\t\t\treturn label;\n\n\t\t} else\n\t\t\tthrow new SQLException(\"column requested out of table bounds \");\n\t}",
"public String getString(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getString\", columnName);\n return get(columnName).getString();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"private String readFdocaString(int length, Charset encoding) {\n if (length == 0) {\n return null;\n }\n\n checkForSplitRowAndComplete(length);\n\n return dataBuffer_.readCharSequence(length, encoding).toString();\n// String s = new String(dataBuffer_, position_, length, encoding);\n// position_ += length;\n// return s;\n }",
"public char charAt(int anIndex)\n {\n return _xstr.charAt(_start + anIndex);\n }",
"public char charAt(int index);",
"private String getString( Object[] row, String rrName ) {\n return (String) getEntry( row, rrName );\n }",
"private String getStringStat(int index) {\n String[] scores = readFromFile().split(\"\\n\");\n String[] stats = scores[currPlayer].split(\",\");\n return stats[index];\n }",
"char getChar(int offset) throws BadLocationException;",
"public String getValueAt(int row, int attributeIndex) {\n\t\treturn source.getValueAt(map[row],attributeIndex);\t\t\t\t\t\t\t\t\t\t\t//returns the value at located in matrix at row map[row] and column attributeIndex\n\t}",
"public char readChar() {\n return readNextLine().charAt(0);\n }",
"private String readVarchar() throws IOException {\r\n // First int tells us the length of the string\r\n int n = getReader().read();\r\n\r\n // Read n bytes into the buffer\r\n getReader().read(mBuffer, 0, n);\r\n\r\n // Create string from buffer\r\n String s = new String(mBuffer, 0, n, StandardCharsets.UTF_8);\r\n\r\n return s;\r\n }",
"public String getNString(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getNString\", columnName);\n return get(columnName).getString();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"Piece get(String sq) {\n return get(col(sq), row(sq));\n }",
"Piece get(String sq) {\n return get(col(sq), row(sq));\n }",
"private int readFdocaOneByte(int index) {\n\n checkForSplitRowAndComplete(1, index);\n //return dataBuffer_[position_++] & 0xff;\n return dataBuffer_.readByte();\n }",
"void setString(int index, String value) throws SQLException;",
"DataFrameColumn<R,C> colAt(int colIOrdinal);",
"public static String getCellStringData(int rowNum, int cellNum){\n String cellData=null;\n try {\n cellData = sheet.getRow(rowNum).getCell(cellNum).getStringCellValue();\n System.out.println(cellData);\n\n }catch(Exception e){\n System.out.println(e.getMessage());\n System.out.println(e.getCause());\n e.printStackTrace();\n }\n return cellData;\n }",
"@Override\n\tpublic String getElementAt(int index) {\n\t\tif (index < contents.length)\n\t\t\treturn contents[index++];\n\t\telse\n\t\t\treturn null;\n\t}",
"public int getColumn();",
"private String get_CHAR(int column) {\n if (ccsid_[column - 1] == 1200) {\n return getStringWithoutConvert(columnDataPosition_[column - 1], columnDataComputedLength_[column - 1]);\n }\n\n // check for null encoding is needed because the net layer\n // will no longer throw an exception if the server didn't specify\n // a mixed or double byte ccsid (ccsid = 0). this check for null in the\n // cursor is only required for types which can have mixed or double\n // byte ccsids.\n if (charset_[column - 1] == null) {\n throw new IllegalStateException(\"SQLState.CHARACTER_CONVERTER_NOT_AVAILABLE\");\n }\n\n int dataLength = columnDataComputedLength_[column - 1];\n if (maxFieldSize_ != 0 && maxFieldSize_ < dataLength)\n dataLength = maxFieldSize_;\n return dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n dataLength, charset_[column - 1]).toString();\n// String tempString = new String(dataBuffer_,\n// columnDataPosition_[column - 1],\n// columnDataComputedLength_[column - 1],\n// charset_[column - 1]);\n// return (maxFieldSize_ == 0) ? tempString :\n// tempString.substring(0, Math.min(maxFieldSize_,\n// tempString.length()));\n }",
"private String getLine(final int index) {\n Element elem = TextUtils.getParagraphElement(document, index);\n if (elem == null) {\n return null;\n }\n int start = elem.getStartOffset();\n int length = elem.getEndOffset() - start;\n String result = null;\n try {\n result = document.getText(start, length);\n } catch (final BadLocationException e) {\n }\n return result;\n }",
"String getRows(int index);",
"public int locateRow(String val, int col);",
"public String getColumn() {\n Object ref = column_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n column_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"private int getColumn(char columnName) {\r\n\t\tint result = -1;\r\n\t\tif (columnName > 64 && columnName < 91) {\r\n\t\t\tresult = columnName - 65;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"private int getCol(int index) {\n return index & (chunkSize - 1);\n }",
"@Override\n\tpublic String readScalarString() throws IOException {\n\t\treturn null;\n\t}",
"public Object read(int index) throws IOException, ArrayIndexOutOfBoundsException {\r\n if (line == null) {\r\n throw new IOException(\"No content available - did you remeber to call next?\");\r\n }\r\n\r\n AttributeDescriptor attType = type.getDescriptor(index);\r\n\r\n String stringValue = null;\r\n boolean isEmpty = \"\".equals(stringValue);\r\n try {\r\n // read the value\r\n stringValue = text[index];\r\n } catch (RuntimeException e1) {\r\n e1.printStackTrace();\r\n stringValue = null;\r\n }\r\n // check for special <null> flag\r\n if (\"<null>\".equals(stringValue)) {\r\n stringValue = null;\r\n isEmpty = true;\r\n }\r\n if (stringValue == null) {\r\n if (attType.isNillable()) {\r\n return null; // it was an explicit \"<null>\"\r\n }\r\n }\r\n // Use of Converters to convert from String to requested java binding\r\n Object value = Converters.convert(stringValue, attType.getType().getBinding());\r\n\r\n if (attType.getType() instanceof GeometryType) {\r\n // this is to be passed on in the geometry objects so the srs name gets encoded\r\n CoordinateReferenceSystem crs = ((GeometryType) attType.getType())\r\n .getCoordinateReferenceSystem();\r\n if (crs != null) {\r\n // must be geometry, but check anyway\r\n if (value != null && value instanceof Geometry) {\r\n ((Geometry) value).setUserData(crs);\r\n }\r\n }\r\n }\r\n return value;\r\n }",
"public int getColumn(){ return (Integer)args[1]; }",
"private String getItemAt(String s, int index) {\n\t\tString temp = new String();\n\t\tStringTokenizer st = new StringTokenizer(s);\n\t\t\n\t\tif(index > st.countTokens()) {\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\tfor(int j = 1; j<=index; j++) {\n\t\t\ttemp = st.nextToken();\n\t\t}\n\t\t\n\t\treturn temp;\n\t}",
"public Object getValueAt(int row, int column) {\n\t\tString[] rowValues = this.records.get(row);\n return rowValues[column];\n\t}",
"public String getFieldText(String fieldName, int index);",
"public char charAt(int index) {\n/* 121 */ return this.m_str.charAt(index);\n/* */ }",
"public char getChar(int index) throws ArrayIndexOutOfBoundsException\n\t{\n\t\treturn (char) bytes[index];\n\t}",
"public static String readCellAsString(final ILogger aLogger,\r\n final String aSql,\r\n final Statement aStatement) {\r\n if (aStatement==null || StringUtility.isBlank(aSql)) return null;\r\n ResultSet rs = read(aLogger, aSql, aStatement);\r\n if (rs==null) return null;\r\n\r\n try {\r\n String r= StringUtility.EMPTY;\r\n if (rs.next()) r= StringUtility.defaultString(rs.getString(1));\r\n return r;\r\n }\r\n catch (SQLException ex) {\r\n error(aLogger, \"readCellAsString\", \"Failed reading from ResultSet.\", ex);\r\n return null;\r\n }\r\n finally {\r\n close(aLogger, rs);\r\n }\r\n }",
"public String colToString(int col) {\r\n if (!isValid(col)) {\r\n return INDEX_ERROR_MESSAGE;\r\n }\r\n StringBuilder sb = new StringBuilder();\r\n for (int i = 0; i < dimension; i++) {\r\n sb.append(stateToString(i, col)).append(\" \");\r\n }\r\n //remove the last unnecessary white space from the string.\r\n return sb.toString().substring(0, sb.length() - 1);\r\n }",
"public final synchronized String getString(int parameterIndex) \n throws SQLException\n {\n return getCallableStatement().getString(parameterIndex);\n }",
"java.lang.String getStrValues(int index);",
"public Object getCell(int column) {\r\n switch (column) {\r\n case 0:\r\n return _internalEvent.getDate() ;\r\n case 1:\r\n return _internalEvent.getFileName() ;\r\n case 2:\r\n return new Integer(_internalEvent.getEventCode()) ;\r\n case 3:\r\n return _internalEvent.getEventDescription() ;\r\n case 4:\r\n return _internalEvent.getExtendedMessage() ;\r\n default:\r\n return \"\" ;\r\n }\r\n }",
"public int getColumn()\t \t\t{ return column; \t}"
] |
[
"0.70924795",
"0.7029072",
"0.6838081",
"0.6838081",
"0.6428664",
"0.6340844",
"0.62688696",
"0.6249011",
"0.62304103",
"0.61896557",
"0.6116622",
"0.60838604",
"0.6006301",
"0.59852374",
"0.5977658",
"0.59341806",
"0.5894357",
"0.58857703",
"0.5880377",
"0.5820816",
"0.5805111",
"0.5792735",
"0.57646334",
"0.57619333",
"0.57321304",
"0.57202816",
"0.5664247",
"0.565238",
"0.5628296",
"0.56254053",
"0.5619043",
"0.56161344",
"0.5605575",
"0.5605575",
"0.5605575",
"0.55953467",
"0.5581364",
"0.5564395",
"0.55571115",
"0.55556744",
"0.55519533",
"0.55492973",
"0.5548374",
"0.5538672",
"0.55098504",
"0.54896504",
"0.54772073",
"0.5471121",
"0.54710984",
"0.5462543",
"0.54548156",
"0.54537183",
"0.54489326",
"0.5442865",
"0.5442865",
"0.5436874",
"0.5430846",
"0.5426977",
"0.54266304",
"0.5426284",
"0.54079777",
"0.5404943",
"0.53995353",
"0.53992015",
"0.53834724",
"0.53799987",
"0.5379965",
"0.53717923",
"0.5368302",
"0.5361048",
"0.53429663",
"0.53399867",
"0.53387046",
"0.53387046",
"0.53358024",
"0.53351253",
"0.5334223",
"0.5333257",
"0.5320424",
"0.5318914",
"0.5316619",
"0.53029454",
"0.5299953",
"0.5295774",
"0.5294949",
"0.5293551",
"0.52907705",
"0.52901703",
"0.52886903",
"0.5282803",
"0.5266501",
"0.52560145",
"0.5243469",
"0.52427596",
"0.5240085",
"0.52349323",
"0.5234621",
"0.5230599",
"0.52300566",
"0.5223519",
"0.52191293"
] |
0.0
|
-1
|
Read the null marker at the current index. Do not call on nonnullable columns
|
boolean shouldReadValue();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected Object calcRightNullRow()\n {\n return null;\n }",
"boolean isNullValue(int colIndex);",
"@Override\n public Watermark getNullableResult(CallableStatement cs, int columnIndex) throws SQLException {\n return new Watermark();\n }",
"void setNull(int index, int sqlType) throws SQLException;",
"@Override\n\tpublic int isNullable(int arg0) throws SQLException {\n\t\treturn tMeta[0].isNullable(columns[arg0-1])?columnNullable:columnNoNulls;\n\t}",
"@Override\n public Watermark getNullableResult(ResultSet rs, int columnIndex) throws SQLException {\n return new Watermark();\n }",
"@Test\n public void testAllNulls() throws Exception {\n compareParquetReadersColumnar(\"c_varchar, c_integer, c_bigint, c_float, c_double, c_date, c_time, c_timestamp, c_boolean\", \"cp.`parquet/all_nulls.parquet`\");\n }",
"private SimpleHashtable.TableEntry<K, V> findNextNonNullTableRowEntry() {\r\n\t\t\tcurrentRow++;\r\n\r\n\t\t\twhile (currentRow < table.length) {\r\n\t\t\t\tif (table[currentRow] != null) {\r\n\t\t\t\t\treturn table[currentRow];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcurrentRow++;\r\n\t\t\t}\r\n\r\n\t\t\treturn null;\r\n\t\t}",
"default Integer getXOffset() {\n return null;\n }",
"String getColumnField(String javaField) throws NullPointerException;",
"@Override\n public boolean supportsNonNullableColumns() {\n return false;\n }",
"public Boolean getColNull() {\r\n\t\treturn colNull;\r\n\t}",
"public ResultSetRow getAt(int ind) throws SQLException {\n/* 138 */ notSupported();\n/* */ \n/* 140 */ return null;\n/* */ }",
"@Override\n protected JsonNode _at(JsonPointer ptr) {\n return null;\n }",
"@Override\n public final JsonNode get(int index) { return null; }",
"private String parseNull () {\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n char chr=next();//get next character\r\n assert chr=='n';//assert correct first character\r\n skip(3);//skip to end of null token\r\n \r\n return \"null\";//return string representation of null\r\n \r\n }",
"@Override\n\tprotected Serializable parseDataCursor(Cursor cursor) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Cell getCell(int arg0, MissingCellPolicy arg1) {\n\t\treturn null;\n\t}",
"public String getNullColumnString() {\n \t\treturn \"\";\n \t}",
"@Override\n\tpublic int[] read() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic int[] read() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic int[] read() {\n\t\treturn null;\n\t}",
"@Nullable\n public abstract IndexEntry getIndexEntry();",
"@Override\r\n\tpublic Nationals getOffset(MeDataSource meDataSource, long offset) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic String readScalarString() throws IOException {\n\t\treturn null;\n\t}",
"@Override\n\tprotected String getColumn()\n\t{\n\t\treturn null;\n\t}",
"@Test\n\tpublic void retrieve_null_value() throws Exception {\n\t\tif (dialect instanceof DerbyDialect) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tjdbcExecutor_test_null(Long.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Integer.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Short.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Byte.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Double.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Float.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Boolean.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(String.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Character.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Date.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Time.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Timestamp.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(java.util.Date.class, \"select ? from jdbc_test\", (Object)null);\n\t\t\n\t\tjdbcExecutor_test_null(byte[].class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Clob.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Blob.class, \"select ? from jdbc_test\", (Object)null);\n\t\n\t}",
"@Test\n public void testIncorrectNullability() throws Exception {\n ResultSetUtility.MockResultSetMetaData.MockColumnMetaData columnMetaData =\n ResultSetUtility.MockResultSetMetaData.MockColumnMetaData.builder()\n .index(1)\n .sqlType(Types.INTEGER)\n .nullable(ResultSetMetaData.columnNoNulls)\n .build();\n ResultSetMetaData metadata = new ResultSetUtility.MockResultSetMetaData(Collections.singletonList(columnMetaData));\n final ResultSetUtility.MockResultSet.Builder resultSetBuilder = ResultSetUtility.MockResultSet.builder()\n .setMetaData(metadata)\n .addDataElement(new ResultSetUtility.MockDataElement(1024, Types.INTEGER))\n .finishRow()\n .addDataElement(new ResultSetUtility.MockDataElement(null, Types.INTEGER))\n .finishRow();\n final Schema notNullSchema = new Schema(\n Collections.singletonList(Field.notNullable(/*name=*/null, new ArrowType.Int(32, true))));\n final Schema nullSchema = new Schema(\n Collections.singletonList(Field.nullable(/*name=*/null, new ArrowType.Int(32, true))));\n\n try (final ResultSet rs = resultSetBuilder.build()) {\n JdbcToArrowConfig config = new JdbcToArrowConfigBuilder(\n allocator, JdbcToArrowUtils.getUtcCalendar(), /* include metadata */ false)\n .setReuseVectorSchemaRoot(reuseVectorSchemaRoot)\n .build();\n try (ArrowVectorIterator iter = JdbcToArrow.sqlToArrowVectorIterator(rs, config)) {\n assertTrue(iter.hasNext());\n final VectorSchemaRoot root = iter.next();\n // The wrong data is returned here\n assertEquals(notNullSchema, root.getSchema());\n assertEquals(2, root.getRowCount());\n final IntVector ints = (IntVector) root.getVector(0);\n assertEquals(1024, ints.get(0));\n assertFalse(ints.isNull(1));\n assertFalse(iter.hasNext());\n root.close();\n }\n\n rs.beforeFirst();\n\n // Override the nullability to get the correct result\n final Map<Integer, JdbcFieldInfo> typeMapping = new HashMap<>();\n JdbcFieldInfo realFieldInfo = new JdbcFieldInfo(\n Types.INTEGER, ResultSetMetaData.columnNullable, /*precision*/0, /*scale*/0);\n typeMapping.put(1, realFieldInfo);\n config = new JdbcToArrowConfigBuilder(\n allocator, JdbcToArrowUtils.getUtcCalendar(), /* include metadata */ false)\n .setReuseVectorSchemaRoot(reuseVectorSchemaRoot)\n .setExplicitTypesByColumnIndex(typeMapping)\n .build();\n try (ArrowVectorIterator iter = JdbcToArrow.sqlToArrowVectorIterator(rs, config)) {\n assertTrue(iter.hasNext());\n final VectorSchemaRoot root = iter.next();\n assertEquals(nullSchema, root.getSchema());\n assertEquals(2, root.getRowCount());\n final IntVector ints = (IntVector) root.getVector(0);\n assertEquals(1024, ints.get(0));\n assertTrue(ints.isNull(1));\n assertFalse(iter.hasNext());\n root.close();\n }\n\n rs.beforeFirst();\n\n // columnNullableUnknown won't override the metadata\n realFieldInfo = new JdbcFieldInfo(\n Types.INTEGER, ResultSetMetaData.columnNullableUnknown, /*precision*/0, /*scale*/0);\n typeMapping.put(1, realFieldInfo);\n config = new JdbcToArrowConfigBuilder(\n allocator, JdbcToArrowUtils.getUtcCalendar(), /* include metadata */ false)\n .setReuseVectorSchemaRoot(reuseVectorSchemaRoot)\n .setExplicitTypesByColumnIndex(typeMapping)\n .build();\n try (ArrowVectorIterator iter = JdbcToArrow.sqlToArrowVectorIterator(rs, config)) {\n assertTrue(iter.hasNext());\n final VectorSchemaRoot root = iter.next();\n assertEquals(notNullSchema, root.getSchema());\n assertEquals(2, root.getRowCount());\n final IntVector ints = (IntVector) root.getVector(0);\n assertEquals(1024, ints.get(0));\n assertFalse(ints.isNull(1));\n assertFalse(iter.hasNext());\n root.close();\n }\n }\n }",
"protected byte[] getBlobOrNull(Cursor c, int col) {\n\t\treturn c.isNull(col) ? null : c.getBlob(col);\n\t}",
"T getNullValue();",
"@Override\n\tpublic E get(int index) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Object getValueAt(int arg0, int arg1) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Object getValueAt(int arg0, int arg1) {\n\t\treturn null;\n\t}",
"@Override\n public Watermark getNullableResult(ResultSet rs, String columnName) throws SQLException {\n return new Watermark();\n }",
"private void setColumnNullInternal(String column)\n {\n data.put(canonicalize(column), NULL_OBJECT);\n }",
"protected void writeNullValue() throws IOException {\n _generator.writeNull();\n }",
"public void getFloat8(int columnIndex, NullableFloat8Holder holder) {\n Float8Vector vector = (Float8Vector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }",
"public void updateNull(int columnIndex) throws SQLException\n {\n m_rs.updateNull(columnIndex);\n }",
"float getNullValues(Object elementID) throws Exception;",
"@Override\n\tpublic void flagNull() {\n\t\t\n\t}",
"@Override\n\tpublic int isNullable(int arg0) throws SQLException {\n\t\treturn 0;\n\t}",
"@Override\r\n public ParaMap index(ParaMap inMap) throws Exception {\n return null;\r\n }",
"private String getNullValueText() {\n return getNull();\n }",
"public java.lang.Long getUnionDefNull() {\n\t throw new java.lang.UnsupportedOperationException(\"Get is not supported on tombstones\");\n\t }",
"@Test\n\tpublic void retrieve_literal_null_value() throws Exception {\n\t\tif (configuration.startsWith(\"derby\")) return;\n\t\t\n\t\t\n\t\tjdbcExecutor_test_null(Long.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Integer.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Short.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Byte.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Double.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Float.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Boolean.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(String.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Character.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Date.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Time.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Timestamp.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(java.util.Date.class, \"select null from jdbc_test\");\n\t\t\n\t\tjdbcExecutor_test_null(byte[].class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Clob.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Blob.class, \"select null from jdbc_test\");\n\t\n\t}",
"public void updateNull(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"updateNull\", columnIndex);\n update(columnIndex, ValueNull.INSTANCE);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"@Override\n\tpublic Objet Retrieve(int indice) {\n\t\treturn null;\n\t}",
"public Integer getOffset();",
"@Override\n public boolean isIgnorable() {\n return columnInfo.isIgnorable();\n }",
"R getFirstRowOrThrow();",
"public String getNullAttribute();",
"@Override\n\tprotected PO wrapperPO(ResultSet rs, int idx) {\n\t\treturn null;\n\t}",
"public Data getUndefinedDataAt(Address addr);",
"@Override\n\tpublic Object getValueAt(int rowIndex, int columnIndex) {\n\t\treturn null;\n\t}",
"private boolean hasNonNullableColumn (ForeignKeyElement fk)\n\t\t\t{\n\t\t\t\tColumnElement[] localColumns = fk.getLocalColumns();\n\t\t\t\tint count = ((localColumns != null) ? localColumns.length : 0);\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < count; i++)\n\t\t\t\t{\n\t\t\t\t\tif (!localColumns[i].isNullable())\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\treturn false;\n\t\t\t}",
"void setNull(int index, int sqlType, String typeName)\n throws SQLException;",
"public String getColumnForPrimaryKey() {\n return null;\n }",
"@Override\n\tpublic String getColumnName(int arg0) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getColumnName(int arg0) {\n\t\treturn null;\n\t}",
"public void getTimeStampNano(int columnIndex, NullableTimeStampNanoHolder holder) {\n TimeStampNanoVector vector = (TimeStampNanoVector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }",
"@KeepForSdk\n public String getChildDataMarkerColumn() {\n return null;\n }",
"public boolean isNull(int index) {\n\t\treturn JSONNull.NULL.equals(this.getObj(index));\n\t}",
"@KeepForSdk\n public abstract String getPrimaryDataMarkerColumn();",
"@Override\r\n\tprotected PO wrapperPO(ResultSet rs, int idx) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tprotected PO wrapperPO(ResultSet rs, int idx) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tprotected PO wrapperPO(ResultSet rs, int idx) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tprotected PO wrapperPO(ResultSet rs, int idx) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tprotected PO wrapperPO(ResultSet rs, int idx) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tprotected PO wrapperPO(ResultSet rs, int idx) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tprotected PO wrapperPO(ResultSet rs, int idx) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic Chromosome getNullableResult(CallableStatement cs, int columnIndex)\n\t throws SQLException\n\t{\n\t\tint i = cs.getInt(columnIndex);\n\t\tif(cs.wasNull())\n\t\t{\n\t\t\treturn null;\n\t\t} else\n\t\t{\n//\t\t\taccording to the value of databose, find the Chromosome type\n\t\t\treturn locateChromosome(i);\n\t\t}\n\t}",
"public Cursor getCursorWithRowsAsNull() {\n Cursor cursor = new SimpleCursor(Query.QueryResult.newBuilder()\n .addFields(Query.Field.newBuilder().setName(\"col1\").setType(Query.Type.INT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col2\").setType(Query.Type.UINT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col3\").setType(Query.Type.INT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col4\").setType(Query.Type.UINT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col5\").setType(Query.Type.INT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col6\").setType(Query.Type.UINT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col7\").setType(Query.Type.INT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col8\").setType(Query.Type.UINT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col9\").setType(Query.Type.INT64).build())\n .addFields(Query.Field.newBuilder().setName(\"col10\").setType(Query.Type.UINT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col11\").setType(Query.Type.FLOAT32).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col12\").setType(Query.Type.FLOAT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col13\").setType(Query.Type.TIMESTAMP).build())\n .addFields(Query.Field.newBuilder().setName(\"col14\").setType(Query.Type.DATE).build())\n .addFields(Query.Field.newBuilder().setName(\"col15\").setType(Query.Type.TIME).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col16\").setType(Query.Type.DATETIME).build())\n .addFields(Query.Field.newBuilder().setName(\"col17\").setType(Query.Type.YEAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col18\").setType(Query.Type.DECIMAL).build())\n .addFields(Query.Field.newBuilder().setName(\"col19\").setType(Query.Type.TEXT).build())\n .addFields(Query.Field.newBuilder().setName(\"col20\").setType(Query.Type.BLOB).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col21\").setType(Query.Type.VARCHAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col22\").setType(Query.Type.VARBINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col23\").setType(Query.Type.CHAR).build())\n .addFields(Query.Field.newBuilder().setName(\"col24\").setType(Query.Type.BINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col25\").setType(Query.Type.BIT).build())\n .addFields(Query.Field.newBuilder().setName(\"col26\").setType(Query.Type.ENUM).build())\n .addFields(Query.Field.newBuilder().setName(\"col27\").setType(Query.Type.SET).build())\n .addRows(Query.Row.newBuilder().addLengths(\"-50\".length()).addLengths(\"50\".length())\n .addLengths(\"-23000\".length()).addLengths(\"23000\".length())\n .addLengths(\"-100\".length()).addLengths(\"100\".length()).addLengths(\"-100\".length())\n .addLengths(\"100\".length()).addLengths(\"-1000\".length()).addLengths(\"1000\".length())\n .addLengths(\"24.52\".length()).addLengths(\"100.43\".length())\n .addLengths(\"2016-02-06 14:15:16\".length()).addLengths(\"2016-02-06\".length())\n .addLengths(\"12:34:56\".length()).addLengths(\"2016-02-06 14:15:16\".length())\n .addLengths(\"2016\".length()).addLengths(\"1234.56789\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"N\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"1\".length()).addLengths(\"val123\".length()).addLengths(-1).setValues(\n ByteString.copyFromUtf8(\n \"-5050-2300023000-100100-100100-1000100024.52100.432016-02-06 \" +\n \"14:15:162016-02-0612:34:562016-02-06 14:15:1620161234.56789HELLO TDS TEAMHELLO TDS \"\n +\n \"TEAMHELLO TDS TEAMHELLO TDS TEAMNHELLO TDS TEAM1val123\"))).build());\n return cursor;\n }",
"public void setNull (JaqyPreparedStatement stmt, int column, ParameterInfo paramInfo) throws Exception;",
"public void getTimeStampNanoTZ(int columnIndex, NullableTimeStampNanoTZHolder holder) {\n TimeStampNanoTZVector vector = (TimeStampNanoTZVector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }",
"@Override\r\n\tpublic IBytecodeItem get(int index) {\n\t\treturn null;\r\n\t}",
"public boolean supportNullRowForAggregateFunctions() {\n return true;\n }",
"@Override\n\tprotected String getColumns()\n\t{\n\t\treturn null;\n\t}",
"private void nullColumns(List columns)\n {\n for (Iterator iterator = columns.iterator(); iterator.hasNext(); )\n {\n setColumnNullInternal((String) iterator.next());\n }\n }",
"private int getNIdx() {\n return this.colStartOffset + 7;\n }",
"@Override\n\tpublic E get(int i) throws IndexOutOfBoundsException {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void visit(Null n) {\n\t\t\n\t}",
"@Override\n\tpublic Double getFrom(int index) {\n\t\treturn null;\n\t}",
"@Override\n public void writeNull(FieldDefinition di) {\n if (inArray) {\n arr.addNull();\n } else if (writeNulls) {\n obj.putNull(di.getName());\n }\n }",
"int getRawOffset();",
"@Override\n\t\t\tpublic View getInfoContents(Marker arg0) {\n\t\t\t\treturn null;\n\t\t\t}",
"public void getFloat8(String columnName, NullableFloat8Holder holder) {\n Float8Vector vector = (Float8Vector) table.getVector(columnName);\n vector.get(rowNumber, holder);\n }",
"private TableColumn<Object, ?> fillColumns() {\n\t\t\n\t\treturn null;\n\t}",
"public boolean getNullsSupported() {\r\n\t\treturn fieldNullsSupported;\r\n\t}",
"public void getInt(int columnIndex, NullableIntHolder holder) {\n IntVector vector = (IntVector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }",
"@Override\n\tpublic boolean getIncludesNull() {\n\t\treturn false;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t\tpublic T next() throws NoSuchElementException {\n\t\t\ttry {\n//\t\t\t\tT object = (T)data[cursor * numCols + pinnedColumn];\n\t\t\t\tT object = get(cursor, pinnedColumn);\n\t\t\t\tlastRet = cursor++;\n\t\t\t\treturn object;\n\t\t\t} catch ( IndexOutOfBoundsException e ) {\n\t\t\t\tthrow new NoSuchElementException( \"You have iterated past the last element.\" + e.toString() );\n\t\t\t}\n\t\t}",
"public String getV(int nIndex) {\n\treturn null;\n}",
"public abstract int getRawOffset();",
"public abstract int getRawOffset();",
"private void scanFields(TupleAccessor tuple) {\n for ( int i = 0; i < fieldCount; i++ ) {\n FieldAccessor field = tuple.getField( i );\n isNull[i] = field.isNull();\n }\n }",
"@Override\n\tpublic IBlob getBlob(int arg0) throws OdaException {\n\t\treturn null;\n\t}",
"org.apache.xmlbeans.XmlInt xgetRawOffset();",
"public Object get(int row) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String sqlSlice(long limit, long offset) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Chromosome getNullableResult(ResultSet rs, int columnIndex)\n\t throws SQLException\n\t{\n\t\tint i = rs.getInt(columnIndex);\n\t\tif (rs.wasNull())\n\t\t{\n\t\t\treturn null;\n\t\t} else\n\t\t{\n//\t\t\taccording to the value of database, find the Chromosome type\n\t\t\treturn locateChromosome(i);\n\t\t}\n\t}",
"boolean getSearchValueNull();"
] |
[
"0.6236084",
"0.5966828",
"0.58449566",
"0.5661521",
"0.56214875",
"0.5580809",
"0.55215204",
"0.55057204",
"0.55015945",
"0.5500263",
"0.5485377",
"0.5477577",
"0.54339045",
"0.5432181",
"0.5416046",
"0.540343",
"0.5369391",
"0.53459895",
"0.5302672",
"0.5297565",
"0.5297565",
"0.5297565",
"0.5293286",
"0.5288711",
"0.52880955",
"0.5276371",
"0.5256759",
"0.5250372",
"0.52470773",
"0.524403",
"0.52438885",
"0.5242632",
"0.5242632",
"0.52270645",
"0.52260137",
"0.52204275",
"0.52124083",
"0.5205978",
"0.5187494",
"0.5180589",
"0.5161347",
"0.51468575",
"0.5143591",
"0.51352555",
"0.5132526",
"0.5115559",
"0.511252",
"0.5100837",
"0.508408",
"0.5081281",
"0.50715214",
"0.50704545",
"0.50602007",
"0.5054652",
"0.50373584",
"0.5015953",
"0.5005579",
"0.5004849",
"0.5004849",
"0.5004109",
"0.50017965",
"0.50014436",
"0.4994018",
"0.49916235",
"0.49916235",
"0.49916235",
"0.49916235",
"0.49916235",
"0.49916235",
"0.49916235",
"0.4987904",
"0.49860263",
"0.49836525",
"0.4981008",
"0.49629083",
"0.49621224",
"0.4951393",
"0.49472502",
"0.49462798",
"0.4938797",
"0.49336883",
"0.49231356",
"0.49123377",
"0.49086797",
"0.49080673",
"0.48997578",
"0.48889613",
"0.488076",
"0.48775542",
"0.48706",
"0.48695356",
"0.48691064",
"0.48614576",
"0.48614576",
"0.4856875",
"0.4852194",
"0.48462656",
"0.48408294",
"0.48394305",
"0.48380068",
"0.4833079"
] |
0.0
|
-1
|
Get the current page header
|
PageHeader getPageHeader();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected String getPageHeader()\n {\n if (this.pageHeader == null) {\n String title = (this.privateLabel != null)? this.privateLabel.getPageTitle() : \"\";\n StringBuffer sb = new StringBuffer();\n sb.append(\"<center>\");\n sb.append(\"<span style='font-size:14pt;'><b>\" + title + \"</b></span>\");\n sb.append(\"<hr>\");\n sb.append(\"</center>\");\n this.pageHeader = sb.toString();\n }\n return this.pageHeader;\n }",
"public String getHeader()\r\n\t{\r\n\t\treturn header;\r\n\t}",
"public String getPageHeaderParagraph() {\r\n\t\treturn controls.getText(\"eVisit\", \"CSS_header_paragraph\");\r\n\t}",
"public static String getPageTitle() {\n\t\tLOG.info(\"Reading current page title.\");\n\t\treturn Constants.driver.getTitle();\n\n\t}",
"public String getHeader() {\n\t\treturn _header;\n\t}",
"private PageId getHeaderPage(RelationInfo relInfo) {\n\t\treturn new PageId(0, relInfo.getFileIdx());\n\t}",
"public String getHeader() {\n\t\t\treturn header;\n\t\t}",
"public String getHeader() {\n return header;\n }",
"public String getHeader() {\n return header;\n }",
"public String getHeader() {\n\t\tif (null != this.header) {\n\t\t\treturn this.header;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"header\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public String getHeader();",
"public String getHeader() {\n\t\treturn header.toString();\n\t}",
"public Object getHeader() {\n return header;\n }",
"public PHeader getHeader() {\n\t\treturn header;\n\t}",
"public String getHeader() {\n\t\tString item_text = getQuantityString(getCount());\n\t\tString header = getActivity().getString(R.string.browse_items_text, item_text, getCount());\n\t\treturn header;\n\t}",
"public String getCurrentPageTitle() {\n return driver.getTitle();\n }",
"public String getPageHeader(int pageNumber) {\n pageNumber++;\n String header = \"%%Page: \" + pageNumber + \" \" + pageNumber + \"\\n\" +\n \"%%BeginPageSetup\\n\" +\n \"/pagelevel save def\\n\";\n// \"90 rotate\\n\";\n header += \"%%EndPageSetup\\n\";\n return header;\n }",
"public abstract String header();",
"String getStartpage();",
"public Pattern getPageHeader() {\r\n return pattern_headerAttribute;\r\n }",
"public Header getHeader() {\n\t\treturn this.header;\n\t}",
"public String getCurrentPageTitle() {\n return webDriver.getTitle();\n }",
"public String getbyHeader(){\n String byHed=driver.findElement(byHeader).getText();\n return byHed;\n }",
"int getCurrentPage();",
"public String getHeaderText(){\n\t\treturn headerText.toString();\n\t}",
"public Class<?> header() {\n return header;\n }",
"public String getHeader() {\n String header = FxSharedUtils.getHeader();\n if (header.indexOf(\"$user$\") > 0)\n header = header.replaceAll(\"\\\\$user\\\\$\", getRequest().getUserTicket().getUserName());\n return header;\n }",
"public int getCurrentPage();",
"public PageFrame getHeadFrame() {\n return ram[head][0];\n }",
"public String getHeaderLine() {\r\n\t\tif(header == null)return \"\";\r\n\t\treturn header;\r\n\t}",
"public String getPageTitle() {\r\n\t\treturn this.pageTitle;\r\n\t}",
"private String collectHeading(Document doc) {\n String heading = doc.select(\"[class^=header1 style]\").first().text();\r\n\r\n return heading;\r\n }",
"com.didiyun.base.v1.Header getHeader();",
"org.apache.xmlbeans.XmlString xgetHeader();",
"protected ResponseHeader getHeader() {\n return this.header;\n }",
"public String getCurrentPage(){\n\t\treturn sCurrentPage;\n\t}",
"public String getHeaderName() {\n\tString value = getString(ATTR_HEADER_NAME, null);\n\treturn value;\n }",
"public String getFileHeaderInfo() {\n return this.fileHeaderInfo;\n }",
"public String getHttpHeader() {\n return httpHeader;\n }",
"private String readHeader(RoutingContext ctx) {\n String tok = ctx.request().getHeader(XOkapiHeaders.TOKEN);\n if (tok != null && ! tok.isEmpty()) {\n return tok;\n }\n return null;\n }",
"public String homePageTitle() {\n\t\tString title=driver.getTitle();\n\t\treturn title;\n\t}",
"public java.lang.String getHeaderName() {\r\n return headerName;\r\n }",
"public String getPageTitle() {\n\t\treturn pageTitle;\n\t}",
"String getPageName();",
"@Override\n\tpublic Map<String, String> getHeader() {\n\t\treturn this.header;\n\t}",
"public final String getPageTitle() {\n\t\treturn pageTitle;\n\t}",
"public Integer getCurrentPage();",
"public int getHeading()\n\t{\n\t\treturn heading;\n\t}",
"public VCFHeader getHeader();",
"public String getHomePageTitle() {\n\t\t//instantiate a web element and have the driver get it\n\t\t//WebElement homePageTitle = driver.findElement(By.xpath(\"//div[@id='bodyContent']//h1\"));\n\t\t//System.out.println(\"Home page title text \" + homePageTitle.getText());\n\t\tlogger.info(\"Home Page Title text is: \" + homePageTitle.getText());\n\t\treturn homePageTitle.getText();//homePageTitle is a PageFactory Element, see above. \n\t}",
"public java.lang.String getHeaderName () {\n\t\treturn headerName;\n\t}",
"String getResponseHeader();",
"public String getHomePageTitle()\n\t{\n\t\treturn elementUtils.getWebPageTitle();\n\t}",
"public String getPageTitle()\n {\n return page == null ? StringUtils.EMPTY : page.getElementInfo().getTitle();\n }",
"public String getWantedProductHeader()throws Exception{\r\n SearchPageFactory pageFactory = new SearchPageFactory(driver);\r\n String listedItemHeader = getElementText(pageFactory.listedItemHeader);\r\n return listedItemHeader;\r\n }",
"public static String getHeader() {\n return \"S I R\";\n }",
"public String getCallHeader(DatabasePlatform platform) {\r\n return platform.getFunctionCallHeader();\r\n }",
"String getHeader(String headerName);",
"public ElementHeader getCurrentStep()\n {\n return currentStep;\n }",
"java.lang.String getHeader();",
"private org.gwtbootstrap3.client.ui.PageHeader get_f_PageHeader3() {\n return build_f_PageHeader3();\n }",
"public String getpagetittle() {\n\t\t\n\t\tString tittle = elementutil.getTittleExplicit(Constants.Login_PAGE_TITLE, 15);\n\t\tSystem.out.println(\"Login page tittle : \"+ tittle);\n\t\treturn tittle;\t\n\t}",
"public String getTitle(){\n\t\tlog.debug(\"Getting title of Cruises page\");\n\t\tString title = driver.getTitle();\n\t\tlog.info(\"Title of Cruises page is: \"+title);\n\t\treturn title;\n\t}",
"public Number getHeaderId() {\n return (Number)getAttributeInternal(HEADERID);\n }",
"public Number getHeaderId() {\n return (Number)getAttributeInternal(HEADERID);\n }",
"public String headerLine() {\n return headerLine;\n }",
"ComponentHeaderType getHeader();",
"@Test \n\tpublic void homePageHeaderTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// Validate page header \n\t\tString header = homePage.getHeader();\n\t\tAssert.assertTrue(header.equals(\"\"));\n\n\t\t// Fetch latin quote: \n\t\tString latinQuote = homePage.getQuote(\"latin\");\n\t\tAssert.assertEquals(\"\\\"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...\\\"\", latinQuote);\n\n\t\t// Fetch english quote, which is: \n\t\tString englishQuote = homePage.getQuote(\"english\"); \n\t\tAssert.assertEquals(\"\\\"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain...\\\"\",englishQuote); \n\t}",
"public static String getCurrentPage() throws ConfigurationException, IOException {\r\n return GetRunTimeData(\"currentPage\");\r\n }",
"public String getWatchListPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(otherPageTitle).getText();\n\n }",
"public String getCustomHeader() {\n return this.customHeader;\n }",
"public byte[] getHeader() {\n\treturn header;\n }",
"String getOssHomepage();",
"public boolean getHeader() {\n return isHeader;\n }",
"public WebElement getSearchPageHeaderText()\n{\n\treturn driver.findElement(headertext);\n}",
"private static String header() {\r\n String output = \"\";\r\n output += \"\\\\documentclass[a4paper,10pt]{article}\\n\";\r\n output += \"\\\\title{Wilcoxon Signed Ranks test.}\\n\";\r\n output += \"\\\\date{\\\\today}\\n\\\\author{KEEL non-parametric statistical module}\\n\\\\begin{document}\\n\\n\\\\pagestyle{empty}\\n\\\\maketitle\\n\\\\thispagestyle{empty}\\n\\n\";\r\n\r\n return output;\r\n\r\n }",
"public SSLHeadingWidgetComponent getHeading()\r\n\t{\r\n\t\treturn getHeading( getSession().getSessionContext() );\r\n\t}",
"public String getHeading() {\n return heading;\n }",
"public String getHeading() {\n return heading;\n }",
"private static String getHTTPHeader(PortletRequest request, String name) {\n String value = null;\n String portalInfo = request.getPortalContext().getPortalInfo()\n .toLowerCase();\n if (portalInfo.contains(\"liferay\")) {\n value = getLiferayHTTPHeader(request, name);\n } else if (portalInfo.contains(\"gatein\")) {\n value = getGateInHTTPHeader(request, name);\n }\n return value;\n }",
"public String getMainPage() {\n return (String)getAttributeInternal(MAINPAGE);\n }",
"public final native int getHeading() /*-{\n return this.getHeading() || 0;\n }-*/;",
"public String getPageTitle() {\n return driver.get().getTitle();\n }",
"public static HeaderMyAccountPO getHeaderMyAccountPage(WebDriver driver) {\n\t\treturn null;\r\n\t}",
"public String getHeader(final Header header) {\n return headers.get(header.toString());\n }",
"public String getPageTitle()\n\t{\n\t\treturn driver.getTitle();\n\t}",
"public String getHead(Handler handler)\n {\n return \"<html><head><title>Logging: \" \n + getTime(System.currentTimeMillis()) + \"</title></head><body><pre>\\n\";\n }",
"public String getPageTitle() {\n\t\treturn driver.getTitle();\n\t}",
"public int getStartingPage() {\n return startingPage;\n }",
"@Override\n public String getServletInfo() {\n return PAGE_NAME;\n }",
"public NetFlowHeader getHeader() throws IOException {\n if (header == null) {\n header = prepareHeader();\n }\n\n return header;\n }",
"public void generateGetHeader (\n HttpServletRequest request, HttpServletResponse response)\n throws IOException\n {\n BuildHtmlHeader(new PrintWriter (response.getOutputStream()), getTitle());\n }",
"public void setPageHeader(String header)\n {\n // ignore\n }",
"public String getHeadIncludes() {\n return (String) get(\"head_includes\");\n }",
"public Direction getCurrentHeading()\r\n\t{\r\n\t\treturn this.currentDirection;\r\n\t\t\r\n\t}",
"public String getTitle() {\n return find(by.tagName(\"h1\")).getText();\n }",
"public String getHeader() {\n\t\tString header = \"id\" + \",\" + \"chrId\" + \",\" + \"strand\" + \",\" + \"TSS\" + \",\" + \"PolyASite\"\n\t\t\t\t\t\t+ \",\" + \"5SSPos\" + \",\" + \"3SSPos\" + \",\" + \"intronLength\" + \",\" + \"terminalExonLength\"\n\t\t\t\t\t\t+ \",\" + \"BPS_3SS_distance\" + \",\" + \"PolyPyGCContent\" + \",\" + \"IntronGCContent\" + \",\" + \"terminalExonGCContent\"\n\t\t\t\t\t\t+ \",\" + \"5SS\" + \",\" + \"3SS\" + \",\" + \"BPS\"\n\t\t\t\t\t\t+ \",\" + \"5SSRank\" + \",\" + \"3SSRank\" + \",\" + \"BPSRank\"\n\t\t\t\t\t\t+ \",\" + \"5SSLevenshteinDistance\" + \",\" + \"3SSLevenshteinDistance\" + \",\" + \"BPSLevenshteinDistance\";\n\t\treturn header; \n\t}",
"public String getHeader1() {\n return header1;\n }",
"@Override\r\n\tpublic String getPageTitle() {\t\r\n\t\treturn getTranslation(Routes.getPageTitleKey(Routes.REPORT));\r\n\t}"
] |
[
"0.75885576",
"0.6873771",
"0.68080676",
"0.6785389",
"0.67611164",
"0.67542565",
"0.6708846",
"0.66651475",
"0.66651475",
"0.6654606",
"0.66137177",
"0.65819204",
"0.6553534",
"0.6540666",
"0.6492826",
"0.64890736",
"0.64776826",
"0.6471099",
"0.6429757",
"0.6422599",
"0.6399475",
"0.6322426",
"0.6298238",
"0.62918353",
"0.62742877",
"0.62257355",
"0.62135273",
"0.62006307",
"0.61962944",
"0.6186092",
"0.6186077",
"0.6182102",
"0.61580884",
"0.6150338",
"0.6124623",
"0.611624",
"0.6113904",
"0.6099144",
"0.6083511",
"0.60722476",
"0.605902",
"0.6058533",
"0.60481715",
"0.604554",
"0.6043471",
"0.6040689",
"0.6014899",
"0.5991375",
"0.59869313",
"0.59767866",
"0.59746116",
"0.5967203",
"0.5960449",
"0.5939952",
"0.5934322",
"0.5930724",
"0.59301424",
"0.5925839",
"0.59248555",
"0.5913611",
"0.5903566",
"0.58916426",
"0.58883643",
"0.58837754",
"0.58837754",
"0.5869684",
"0.58323073",
"0.5829567",
"0.5823232",
"0.58208996",
"0.5812852",
"0.58120865",
"0.5806925",
"0.5786579",
"0.57758087",
"0.5753145",
"0.5743838",
"0.5743157",
"0.5743157",
"0.57410365",
"0.5732058",
"0.57109344",
"0.5708896",
"0.5695039",
"0.5694348",
"0.56935084",
"0.5675556",
"0.5675427",
"0.5651659",
"0.563935",
"0.56365585",
"0.5630262",
"0.56259376",
"0.5602026",
"0.5593696",
"0.5593106",
"0.5590804",
"0.5578472",
"0.5572874"
] |
0.7940461
|
0
|
Set the current page header
|
void setPageHeader(PageHeader pageHeader);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setPageHeader(String header)\n {\n // ignore\n }",
"protected void updateHeader() {\n\t}",
"void setHeader(HttpServletResponse response, String name, String value);",
"PageHeader getPageHeader();",
"PageHeader getPageHeader();",
"public void setHeader(String header) {\n\t\tthis.header = header;\n\t\tthis.handleConfig(\"header\", header);\n\t}",
"public void setCurrentStep(ElementHeader currentStep)\n {\n this.currentStep = currentStep;\n }",
"public void setHeader() {\n tvHeader.setText(getResources().getString(R.string.text_skill));\n tvDots.setVisibility(View.INVISIBLE);\n }",
"private static void outputHeaderMainPage(SimpleWriter out) {\n out.print(\"<html>\\n\" + \"<head>\\n\" + \"\\t<title>\" + \"Index\" + \"</title>\\n\"\n + \"<font size = '10' >\" + \"Glossary Homepage\" + \"</font>\"\n + \"</head>\\n\" + \"<body>\\n\" + \"<head>\\n\" + \"\\t<h1>\\n\"\n + \"<font size = '6' >\" + \"Index\" + \"</font>\" + \"\\t</h1>\\n\"\n + \"</head>\\n\" + \"</body>\\n\" + \"</html>\");\n }",
"protected String getPageHeader()\n {\n if (this.pageHeader == null) {\n String title = (this.privateLabel != null)? this.privateLabel.getPageTitle() : \"\";\n StringBuffer sb = new StringBuffer();\n sb.append(\"<center>\");\n sb.append(\"<span style='font-size:14pt;'><b>\" + title + \"</b></span>\");\n sb.append(\"<hr>\");\n sb.append(\"</center>\");\n this.pageHeader = sb.toString();\n }\n return this.pageHeader;\n }",
"void setHeader(java.lang.String header);",
"@Override\n public void setHeader(String name, String value) {\n this._getHttpServletResponse().setHeader(name, value);\n }",
"public void setHeader(String header, String value)\n\t{\n\t\tif (httpServletResponse != null)\n\t\t{\n\t\t\thttpServletResponse.setHeader(header, value);\n\t\t}\n\t}",
"public void setHeader(String header) {\n\t\t_header = header;\n\t}",
"void setHeader(String headerName, String headerValue);",
"public void setHeader(String header) {\n\t\tthis.header = header;\n\t}",
"void setPageStart(short start);",
"public void setHeader(String header) {\n this.header = header;\n }",
"private void rewriteRepHeader() {\r\n\t\t// assume that the value of headVersionNum has been \r\n\t\t// incremented before coming here\r\n\t\ttry {\r\n\t\t\t// 1. delete current header\r\n\t\t\tif (client==null) this.initAnnoteaClient();\r\n\t\t\tclient.delete(this.repHeaderLoc);\r\n\t\t\t// 2. post new header\r\n\t\t\tDescription header = new Description();\r\n\t\t\tURI[] headerURI = new URI[1];\r\n\t\t\theaderURI[0] = new URI(this.repositoryURI.toString() + \"#header\");\r\n\t\t\theader.setAnnotates(headerURI);\r\n\t\t\theader.setAuthor(this.repositoryAuthor);\r\n\t\t\theader.setCreated(this.reposityCreatedDate);\r\n\t\t\theader.setAnnotatedEntityDefinition(this.baseOntologyURI.toString());\r\n\t\t\theader.setBody(String.valueOf(this.headVersionNumber));\r\n\t\t\theader.setBodyType(\"text/html\");\r\n\t\t\theader.setAnnotationType(this.annotType);\r\n\t\t\t// 3. update new header location URL\r\n\t\t\trepHeaderLoc = client.post(header);\r\n\t\t\t// 4. update value in versionDescriptions array and update swoopModel' versionRepository\r\n\t\t\tthis.versionDescriptions[0] = header;\r\n\t\t\tswoopModel.updateVersionRepository(this.repositoryURI, versionDescriptions);\r\n\t\t}\r\n\t\tcatch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}",
"abstract public void header();",
"public void setPageInfo(){\n\t\tif(AllP>=1){\n\t\t\tPageInfo=\"<table border='0' cellpadding='3'><tr><td>\";\n\t\t\tPageInfo+=\"Show: \"+PerR+\"/\"+AllR+\" Records! \";\n\t\t\tPageInfo+=\"Current page: \"+CurrentP+\"/\"+AllP;\n\t\t\tPageInfo+=\"</td></tr></table>\";\t\t\t\n\t\t}\t\t\t\t\n\t}",
"public void setHeader(String _header) {\n\t\tthis.header = _header;\n\t}",
"public void setDateHeader(String header, long date)\n\t{\n\t\tif (httpServletResponse != null)\n\t\t{\n\t\t\thttpServletResponse.setDateHeader(header, date);\n\t\t}\n\t}",
"public String getPageHeader(int pageNumber) {\n pageNumber++;\n String header = \"%%Page: \" + pageNumber + \" \" + pageNumber + \"\\n\" +\n \"%%BeginPageSetup\\n\" +\n \"/pagelevel save def\\n\";\n// \"90 rotate\\n\";\n header += \"%%EndPageSetup\\n\";\n return header;\n }",
"public void setHeading(final SessionContext ctx, final SSLHeadingWidgetComponent value)\r\n\t{\r\n\t\tsetProperty(ctx, HEADING,value);\r\n\t}",
"void addHeader(HttpServletResponse response, String name, String value);",
"public void setHeader(final Header header) {\n mHeader=header;\n updateFields();\n }",
"@Override\n public void setHeader(String arg0, String arg1) {\n\n }",
"public void writeHeader(PrintWriter out, RequestProperties reqState)\n throws IOException\n {\n out.write(this.getPageHeader());\n }",
"public void setResponseHeader(Response.Header header, String value) {\n setNonStandardHeader(header.code, value);\n }",
"public void setHeader(boolean isHeader) {\n this.isHeader = isHeader;\n }",
"public static void header(String s) {\n\t\t// header2.set(s);\n\t}",
"public void setCurrentPage(int pageNumber) {\n\t\t\n\t}",
"public void setHeading(final SSLHeadingWidgetComponent value)\r\n\t{\r\n\t\tsetHeading( getSession().getSessionContext(), value );\r\n\t}",
"public void start() {\n \tupdateHeader();\n }",
"public void setHeader(String key, String value) {\n\t\tmHeaderParams.put(key, value);\n\t}",
"public void changeHeading(int newHeading)\n\t{\n\t\theading = newHeading;\n\t}",
"public void setRequestHeader(Header header) {\n \n Header[] headers = getRequestHeaderGroup().getHeaders(header.getName());\n \n for (int i = 0; i < headers.length; i++) {\n getRequestHeaderGroup().removeHeader(headers[i]);\n }\n \n getRequestHeaderGroup().addHeader(header);\n \n }",
"@Override\n public void setHeading(String heading) {\n }",
"public void updateHeader() {\n if (this.mBarState == 1) {\n updateHeaderKeyguardAlpha();\n }\n updateQsExpansion();\n }",
"void xsetHeader(org.apache.xmlbeans.XmlString header);",
"public void setupHistoTableHeader() {\r\n\t\tif (this.histoTableTabItem != null && !this.histoTableTabItem.isDisposed()) this.histoTableTabItem.setHeader();\r\n\t}",
"public void setHeader(ResChunkHeader header) {\n this.header = header;\n }",
"public void setCurrentPage(String sCurrentPage){\n\t\tthis.sCurrentPage = sCurrentPage;\n\t}",
"void setHeaderInfo(float rFree, float rWork, float resolution, String title, String depositionDate, \n\t\t\tString releaseDate, String[] experimnetalMethods);",
"public int setHeading(int i) {\n\t\theading = i;\n\t\t//Returning the heading\n\t\treturn heading;\n\t}",
"private PageId getHeaderPage(RelationInfo relInfo) {\n\t\treturn new PageId(0, relInfo.getFileIdx());\n\t}",
"@Override\n public void setDateHeader(String name, long date) {\n this._getHttpServletResponse().setDateHeader(name, date);\n }",
"private void updateHeader() {\n this.mViewHolder.imageView = findViewById(R.id.image_header);\n this.mViewHolder.textHeader = findViewById(R.id.text_nav_header);\n\n this.mViewHolder.textHeader.setText(_NAME);\n\n Glide.with(this).load(user.getPhotoUrl()).into(this.mViewHolder.imageView);\n\n }",
"void setStockHeader(stockFilePT102.StockHeaderDocument.StockHeader stockHeader);",
"@Override\n public void setIntHeader(String name, int value) {\n this._getHttpServletResponse().setIntHeader(name, value);\n }",
"public void onHeaderRefresing();",
"public final native void setHeading(int heading) /*-{\n this.setHeading(heading);\n }-*/;",
"protected void setColumnHeader(final BaseColumn modelColumn,\n final String header) {\n modelColumn.setHeader(header);\n final int iModelColumn = model.getExpandedColumns().indexOf(modelColumn);\n uiModel.getColumns().get(iModelColumn).getHeaderMetaData().get(0).setTitle(header);\n }",
"public void yieldHead(PageContext pageContext) throws IOException\n {\n yield(\"head\", pageContext);\n }",
"public void setHeaderLabel() {\n\t\t\tlblGameBoard\n\t\t\t\t\t.setText(LABEL);\n\t}",
"@Override\r\n\tpublic void loadHeader() {\n\r\n\t}",
"@Override\n public void renderHead(final IHeaderResponse response) {\n // select bootstrap tab for current theme selected\n int selectedTab = this.getSelectedTab();\n response.render(OnDomReadyHeaderItem.forScript(\"$('#themes li:eq(\"\n + selectedTab + \") a').tab('show');\"));\n }",
"private void resetHeaderSmoothly() {\n if (null != mViewHandler) {\n isChanging = true;\n Message message = new Message();\n message.what = ViewHandler.SMOOTH_CHANGE_START;\n message.arg1 = ViewHandler.SMOOTH_TYPE_HEADER;\n mViewHandler.sendMessage(message);\n } else\n resetHeaderState();\n }",
"public void changeHeaderFile(){\n if ( changedAttr.isEmpty() ) return;\n else {\n Set<Object> tmpAttr = changedAttr.keySet();\n Object[] attributes = tmpAttr.toArray(new Object[tmpAttr.size()]);\n for (int i = 0; i < attributes.length; i++){\n if ( headerFile.containsKey(attributes[i]) ) {\n headerFile.put(attributes[i], changedAttr.get(attributes[i]));\n // DeidData.imageHandler.findImageByDisplayName(curimage.getImageDisplayName())\n // .getHeader().put(attributes[i], changedAttr.get(attributes[i]));\n curimage.getHeader().put(attributes[i], changedAttr.get(attributes[i]));\n //System.out.println(curimage.getHeader().get(attributes[i]));\n }\n }\n curimage.changeHeader();\n \n }\n }",
"private void loadNavHeader() {\n\t\t// name, Email\n\t\ttxtName.setText(\"Tester\");\n\t\ttxtEmail.setText(\"[email protected]\");\n\t}",
"public void setColumnHeader(int columnIndex, String header) {\n\t\tcheckColumnIndex(columnIndex);\n\t\ttableViewer.getTable().getColumn(columnIndex).setText(header);\n\t}",
"@Override\n protected void setPageHeading(TextView headingField) {\n }",
"@Test \n\tpublic void homePageHeaderTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// Validate page header \n\t\tString header = homePage.getHeader();\n\t\tAssert.assertTrue(header.equals(\"\"));\n\n\t\t// Fetch latin quote: \n\t\tString latinQuote = homePage.getQuote(\"latin\");\n\t\tAssert.assertEquals(\"\\\"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...\\\"\", latinQuote);\n\n\t\t// Fetch english quote, which is: \n\t\tString englishQuote = homePage.getQuote(\"english\"); \n\t\tAssert.assertEquals(\"\\\"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain...\\\"\",englishQuote); \n\t}",
"public void generateGetHeader (\n HttpServletRequest request, HttpServletResponse response)\n throws IOException\n {\n BuildHtmlHeader(new PrintWriter (response.getOutputStream()), getTitle());\n }",
"public HttpsConnection setHeader(final String key, final String value) {\n log.log(Level.INFO, \"Set Header: \" + key + \": \" + value);\n this.mHeaders.put(key, value);\n return this;\n }",
"private void setHeaderText(String text) {\n if (!TextUtils.isEmpty(mLayout.getHeaderText())\n && mLayout.getHeaderText().toString().equals(text)) {\n return;\n }\n mLayout.setHeaderText(text);\n }",
"private void manageHeaderView() {\n PickupBoyDashboard.getInstance().manageHeaderVisibitlity(false);\n HeaderViewManager.getInstance().InitializeHeaderView(null, view, manageHeaderClick());\n HeaderViewManager.getInstance().setHeading(true, mActivity.getResources().getString(R.string.bokings));\n HeaderViewManager.getInstance().setLeftSideHeaderView(true, R.drawable.left_arrow);\n HeaderViewManager.getInstance().setRightSideHeaderView(false, R.drawable.left_arrow);\n HeaderViewManager.getInstance().setLogoView(false);\n HeaderViewManager.getInstance().setProgressLoader(false, false);\n\n }",
"public void generatePostHeader (\n HttpServletRequest request, HttpServletResponse response)\n throws IOException\n {\n request.getParameter(\"Blabbo\"); // Dummy read to send continue back to the client.\n BuildHtmlHeader(new PrintWriter (response.getOutputStream()), getTitle());\n }",
"private static void\n headersWrite (final Map.Entry <String, VersionedValue> entry, Hello self)\n {\n self.putString (entry.getKey ());\n self.putNumber4 (entry.getValue ().getVersion ());\n self.putString (entry.getValue ().getValue ());\n }",
"public void setHeaderText(String headerText) {\n this.headerText = headerText;\n }",
"public void processInstance(Instance current) {\n m_header.add(current);\n }",
"private static String header() {\r\n String output = \"\";\r\n output += \"\\\\documentclass[a4paper,10pt]{article}\\n\";\r\n output += \"\\\\title{Wilcoxon Signed Ranks test.}\\n\";\r\n output += \"\\\\date{\\\\today}\\n\\\\author{KEEL non-parametric statistical module}\\n\\\\begin{document}\\n\\n\\\\pagestyle{empty}\\n\\\\maketitle\\n\\\\thispagestyle{empty}\\n\\n\";\r\n\r\n return output;\r\n\r\n }",
"void setHeader(@NonNull String name, @Nullable String value) {\n if (value == null) {\n removeHeader(name);\n } else {\n headers.put(name, value);\n }\n }",
"private void writeHEADER() throws IOException {\n\t\tmeta.compute_checksum();\n\t\tmeta.write();\n\t\t\n\t\t// We could also generate a non-aldus metafile :\n\t\t// writeClipboardHeader(meta);\n\t\t\n\t\t// Generate the standard header common to all metafiles.\n\t\thead.write();\n\t}",
"void setOssHomepage(String ossHomepage);",
"public static void setHeaderText(Text headerText) {\n headerText.setFont(Font.font(\"Verdana\", FontWeight.EXTRA_BOLD, 30));\n }",
"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}",
"public void setHeader(String header) {\n this.header = header == null ? null : header.trim();\n }",
"public void setPlayerListHeader ( String header ) {\n\t\texecute ( handle -> handle.setPlayerListHeader ( header ) );\n\t}",
"public void setPage(Page page) {this.page = page;}",
"void setHeaderMargin(double headermargin);",
"public void setMainPage(String value) {\n setAttributeInternal(MAINPAGE, value);\n }",
"public void setDateHeader(FullHttpResponse response) {\r\n SimpleDateFormat dateFormatter = new SimpleDateFormat(HTTP_DATE_FORMAT, Locale.US);\r\n dateFormatter.setTimeZone(TimeZone.getTimeZone(HTTP_DATE_GMT_TIMEZONE));\r\n\r\n Calendar time = new GregorianCalendar();\r\n response.headers().set(HttpHeaders.Names.DATE, dateFormatter.format(time.getTime()));\r\n }",
"public void setHeaderFlag(boolean flag) {\n configuration.put(ConfigTag.HEADER, flag);\n }",
"public void setHeaderId(Number value) {\n setAttributeInternal(HEADERID, value);\n }",
"public void setHeaderId(Number value) {\n setAttributeInternal(HEADERID, value);\n }",
"@Override\r\n\t\tpublic PageDescription setPageEnv(HttpServletRequest request) {\n\t\t\tList<PubItem> pubItem = PubDataReader.getPubItems(dbValue, nation);\r\n\t\t\trequest.setAttribute(\"PUB_TITLE\", dbValue + \":\" + nation);\r\n\t\t\trequest.setAttribute(\"PUBCONTENTS\", pubItem);\r\n\t\t\treturn new PubPageDesc(dbValue + \":\" + nation);\r\n\t\t}",
"public void resetCurrentProcessListHeaders() {\r\n currentListHeaders = processModel\r\n .getRowTemplate(currentRole, getLanguage());\r\n }",
"public static void setDateHeader(HttpResponse response) {\n\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(HTTP_DATE_FORMAT, Locale.US);\n\t\tdateFormatter.setTimeZone(TimeZone.getTimeZone(HTTP_DATE_GMT_TIMEZONE));\n\n\t\tCalendar time = new GregorianCalendar();\n\t\tresponse.setHeader(HttpHeaders.Names.DATE, dateFormatter.format(time.getTime()));\n\t}",
"public void setHeader(JMSControl.HeaderType type,Object value);",
"protected void initializeHeader() throws PiaRuntimeException, IOException{\n try{\n super.initializeHeader();\n if( firstLineOk && headersObj == null ){\n\t// someone just give us the first line\n\theadersObj = new Headers();\n }\n }catch(PiaRuntimeException e){\n throw e;\n }catch(IOException ioe){\n throw ioe;\n }\n }",
"protected void writeHeader() throws IOException {\n _baos = new ByteArrayOutputStream();\n _dos = new DataOutputStream(_baos);\n _dos.write(PushCacheProtocol.instance().header(), 0, PushCacheProtocol.instance().header().length);\n }",
"public abstract String header();",
"@attribute(value = \"\", required = false, defaultValue = \"default value is false\")\r\n\tpublic void setHeader(Boolean isHeader) {\r\n\t\tthis.header = isHeader;\r\n\t}",
"@Override\n public void addHeader(String name, String value) {\n this._getHttpServletResponse().addHeader(name, value);\n }",
"private void setBottomSheetHeader(View child) {\n if (child instanceof BottomSheetBehaviorView) {\n View view = child.findViewWithTag(BottomSheetHeaderView.TAG);\n if (view != null && view instanceof BottomSheetHeaderView) {\n BottomSheetBehaviorView b = (BottomSheetBehaviorView) child;\n RNBottomSheetBehavior behavior = b.behavior;\n headerView = (BottomSheetHeaderView) view;\n headerView.registerFields();\n headerView.toggle(behavior.getState() == RNBottomSheetBehavior.STATE_COLLAPSED);\n behavior.setHeader(headerView);\n }\n }\n }",
"private void setActionBar() {\n\t\tString text=\"\";\n\t\tif(isBindEmail){\n\t\t\ttext=\"修改邮箱\";\n\t\t\tvalidateUser();\n\t\t}else{\n\t\t\ttext=\"绑定邮箱\";\n\t\t\tbindPhone(AppContext.getInstance().getLocalUserInfo(mContext).id);\n\t\t}\n\t\theadView.setText(text);\n\t\theadView.setGobackVisible();\n\t\theadView.setRightGone();\n\t}",
"@Override\n public void setHeaderIndices() {\n }"
] |
[
"0.77700186",
"0.6706179",
"0.65665007",
"0.64241385",
"0.64241385",
"0.63887197",
"0.6282552",
"0.6265763",
"0.6254114",
"0.6204983",
"0.618697",
"0.61502755",
"0.61345726",
"0.6113927",
"0.6083309",
"0.6062315",
"0.6060419",
"0.6044488",
"0.60196966",
"0.5990037",
"0.596379",
"0.5952759",
"0.5934778",
"0.5907613",
"0.5905219",
"0.5900839",
"0.5866092",
"0.585867",
"0.5835966",
"0.58285236",
"0.57882136",
"0.57353777",
"0.5729688",
"0.57053643",
"0.57007164",
"0.5682897",
"0.56826407",
"0.5663467",
"0.5643422",
"0.56361824",
"0.5608584",
"0.5595085",
"0.55945814",
"0.55906135",
"0.558754",
"0.55720115",
"0.5567004",
"0.556124",
"0.55382097",
"0.55059683",
"0.54958856",
"0.54870486",
"0.54746205",
"0.5459905",
"0.54558355",
"0.5442814",
"0.54358906",
"0.542813",
"0.54240227",
"0.5419122",
"0.5401159",
"0.53992766",
"0.53947407",
"0.53908736",
"0.538759",
"0.53797567",
"0.5374061",
"0.53646356",
"0.5355292",
"0.534897",
"0.5347198",
"0.53403246",
"0.53377396",
"0.5335164",
"0.5328711",
"0.53267777",
"0.5312082",
"0.53103876",
"0.5309878",
"0.5309472",
"0.53037715",
"0.53032917",
"0.52971894",
"0.5297124",
"0.5293193",
"0.5292709",
"0.5292709",
"0.5292673",
"0.52920777",
"0.5281511",
"0.5280321",
"0.5279141",
"0.5269976",
"0.52675164",
"0.5266331",
"0.5266264",
"0.5254584",
"0.5253154",
"0.524669"
] |
0.7877582
|
0
|
Increment to the next column
|
void incrementColumnIndex();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void forward() {\n index++;\n column++;\n if(column == linecount + 1) {\n line++;\n column = 0;\n linecount = content.getColumnCount(line);\n }\n }",
"public void incrementRow() {\n setRowAndColumn(row + 1, column);\n }",
"public void incremetColumn() {\n setRowAndColumn(row, column + 1);\n }",
"@Override\n protected void moveToNextRow(){\n incrementRow();\n resetXPos();\n if(getRow()%2 == 1){\n incrementYPos(getHeight()+getHeight());\n }\n resetCol();\n setPointDirection();\n }",
"public final void nextRow() {\n this.line++;\n }",
"void incrementColumnIndex(int size);",
"void incrementColumnIndex(int size);",
"private void moveNext(PositionTracker tracker) {\n\t\t \n\t\t //initiate if-else statement\n\t\t if(tracker.getExactColumn() == (tracker.getMaxColumns() - 1)) {\n\t\t\t \n\t\t\t //invoke the setExactRow method\n\t\t\t tracker.setExactRow(tracker.getExactRow() + 1);\n\t\t\t \n\t\t\t //invoke the setExactColumn method\n\t\t\t tracker.setExactColumn(0);\n\t\t\t \n\t\t }else {\n\t\t\t \n\t\t\t //invoke the setExactColumn method\n\t\t\t tracker.setExactColumn(tracker.getExactColumn() + 1);\n\t\t }//end if-else\n\t }",
"public CellCoord nextColumn() {\n return new CellCoord(column + 1, row);\n }",
"private void advanceRow(){\n\t\tfaceBackwards();\n\t\twhile(frontIsClear()){\n\t\t\tmove();\n\t\t}\n\t\tturnRight();\n\t\tif(frontIsClear()){\n\t\t\tmove();\n\t\t\tturnRight();\n\t\t}\n\t}",
"public void moveUp()\n\t{\n\t\trow++;\n\t}",
"public void absIncrementRowAt(int index) {\n int lastIndex = getModel().getRowCount() - 1;\n if ((index < 0) || (index >= lastIndex)) {\n return;\n }\n\n Vector[] va = getAllRowsData();\n\n Vector vTemp = va[index];\n va[index] = va[index + 1];\n va[index + 1] = vTemp;\n\n setRows(va);\n }",
"public void incrementIndex() {\n\t\tindex++;\n\t\tif (nextItem != null) {\n\t\t\tnextItem.incrementIndex();\n\t\t}\n\t}",
"public void moveNext() {\n\t\tcurrentElement++;\n\t}",
"public CellCoord nextRow() {\n return new CellCoord(column, row + 1);\n }",
"public void setNextCell(Cell next)\r\n {\r\n this.next = next;\r\n }",
"@Override\n public int nextIndex()\n {\n return idx+1; \n }",
"private void advance() {\n if (currColumn == 8) {\n currColumn = 0;\n currRow++;\n }\n else {\n currColumn++;\n }\n if (!(currRow == 9 && currColumn == 0)) {\n if (startingBoard[currRow][currColumn] != 0) {\n advance();\n }\n }\n }",
"@Override\n\tpublic void addRow() {\n\t\tif(this.numCols == 0){\n\t\t\tthis.numCols++;\n\t\t}\n\t\tthis.numRows++;\n\t}",
"public void incrementCurrentIndex() {\n currentIndex++;\n }",
"@Override\n\tpublic void addCol() {\n\t\tif(this.numRows == 0){\n\t\t\tthis.numRows++;\n\t\t}\n\t\tthis.numCols++;\n\t}",
"private boolean moveToNextCell() {\r\n positionInArray++;\r\n while (positionInArray < data.length && data[positionInArray] == null) {\r\n positionInArray++;\r\n }\r\n return positionInArray < data.length;\r\n }",
"public void setNextColumn() {\n if (nextSelectedCarTitleLabel.getText().isEmpty()) {\n setNextColumnTitle();\n } else {\n nextSelectedCarTitleLabel.setText(\"\");\n setNextColumnTitle();\n }\n\n }",
"void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}",
"public int nextOffset(int curr) {\n return curr + 1;\n }",
"private XSSFCell getNextCell() {\r\n\r\n if (currColNum - firstcol + 1 == taskconfig.colNum) {\r\n currColNum = firstcol;\r\n currRowNum++;\r\n } else {\r\n currColNum++;\r\n }\r\n\r\n cell = getCell(currRowNum, currColNum);\r\n if (cell.getCellTypeEnum()==CellType.STRING && cell.getStringCellValue().contains(\"-\")) {\r\n getNextCell();\r\n ;\r\n }\r\n \r\n\r\n return cell;\r\n }",
"public void next(){\n\t\tboundIndex = (boundIndex+1)%buttonBounds.length;\n\t\tupdateButtonBounds();\n\t}",
"public void moveRight()\n\t{\n\t\tcol++;\n\t}",
"public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }",
"private int jumpCursor() {\n if (cc == columns) {\n if (cl + 1 == lines)\n cl = 0;\n else\n ++cl;\n\n cc = 0;\n }\n\n return cc++;\n }",
"public int nextIndex() {\n\t\t\treturn cursor;\n\t\t}",
"public void inc(){\n this.current += 1;\n }",
"public void Next(View view)\n {\n increaseNum();\n }",
"public void increment() {\n increment(1);\n }",
"public int getDataIndexAndIncrement() {\n\t\tint x = dataIndex;\n\t\tnext();\n\t\treturn x;\n\t}",
"public void incOffset( Integer increment ) {\n offset += increment;\n }",
"private void inc_x()\n {\n synchronized(mLock_IndexX) { set_x(get_x() + 1); }\n }",
"public void incrementCell(Label prediction, Label real){\n\t\tint rowIx = resolveIndex(prediction);\n\t\tint colIx = resolveIndex(real);\n\n\t\tInteger cell = matrix.get(rowIx).get(colIx);\n\t\tInteger newValue = cell+1;\n\t\tmatrix.get(rowIx).set(colIx, newValue);\n\n\t}",
"private void nextChar() {\n\t\tif (this.c >= 0) {\n\t\t\ttry {\n\t\t\t\tif (this.c == '\\n') {\n\t\t\t\t\tthis.line++;\n\t\t\t\t\tthis.column = 0;\n\t\t\t\t}\n\t\t\t\tthis.c = this.input.read();\n\t\t\t\tthis.column++;\n\t\t\t} catch (final IOException e) {\n\t\t\t\tthis.c = -1;\n\t\t\t}\n\t\t}\n\t}",
"public void advance()\n\t{\n\t\t//calling copy function\n\t\tcopy(); \n\t\t//for loop for row \n\t\tfor(int row =0; row<this.currentVersion.length; row++)\n\t\t{\t//for loop for column\n\t\t\tfor(int column =0; column<this.currentVersion[row].length; column++)\n\t\t\t{\n\t\t\t\t//if statements to implement 2D CA rules\n\t\t\t\tif (column == 0 && row == 0)\n\t\t\t\t{\n\t\t\t\t\tif(currentVersion[row+1][column] == currentVersion[row][column] + 1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row+1][column];\n\t\t\t\t\telse if(currentVersion[row][column+1] == currentVersion[row][column] +1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column +1];\n\t\t\t\t\telse if (currentVersion[row][column] == 0)\n\t\t\t\t\t\tnextVersion[row][column] = 1; \n\t\t\t\t\telse if (currentVersion[row][column] == state-1)\n\t\t\t\t\t\tnextVersion[row][column] = 0; \n\t\t\t\t\telse if(currentVersion[row][column] == state-2)\n\t\t\t\t\t\tnextVersion[row][column] = (byte) (state-1);\n\t\t\t\t}\n\t\t\t\tif (row == 0 && column == currentVersion.length-1)\n\t\t\t\t{\n\t\t\t\t\tif(currentVersion[row][column - 1] == currentVersion[row][column] +1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column - 1];\n\t\t\t\t\telse if (currentVersion[row+1][column] == currentVersion [row][column] +1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row+1][column];\n\t\t\t\t\telse if (currentVersion[row][column] == 0)\n\t\t\t\t\t\tnextVersion[row][column] = 1; \n\t\t\t\t\telse if (currentVersion[row][column] == state-1)\n\t\t\t\t\t\tnextVersion[row][column] = 0; \n\t\t\t\t\telse if(currentVersion[row][column] == state-2)\n\t\t\t\t\t\tnextVersion[row][column] = (byte) (state-1);\n\t\t\t\t}\n\t\t\t\tif (row == 0 && column > 0 && column < currentVersion.length-1)\n\t\t\t\t{\n\t\t\t\t\tif(currentVersion[row][column-1] == currentVersion[row][column] + 1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column-1];\n\t\t\t\t\telse if(currentVersion[row+1][column] == currentVersion[row][column] + 1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row+1][column];\n\t\t\t\t\telse if(currentVersion[row][column+1] == currentVersion[row][column] +1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column+1];\n\t\t\t\t\telse if (currentVersion[row][column] == 0)\n\t\t\t\t\t\tnextVersion[row][column] = 1; \n\t\t\t\t\telse if (currentVersion[row][column] == state-1)\n\t\t\t\t\t\tnextVersion[row][column] = 0; \n\t\t\t\t\telse if(currentVersion[row][column] == state-2)\n\t\t\t\t\t\tnextVersion[row][column] = (byte) (state-1);\n\t\t\t\t}\n\t\t\t\tif (row == currentVersion.length-1 && column == 0)\n\t\t\t\t{\n\t\t\t\t\tif(currentVersion[row-1][column] == currentVersion[row][column] + 1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row -1][column]; \n\t\t\t\t\telse if(currentVersion[row][column+1] == currentVersion[row][column] + 1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column+1];\n\t\t\t\t\telse if (currentVersion[row][column] == 0)\n\t\t\t\t\t\tnextVersion[row][column] = 1; \n\t\t\t\t\telse if (currentVersion[row][column] == state-1)\n\t\t\t\t\t\tnextVersion[row][column] = 0; \n\t\t\t\t\telse if(currentVersion[row][column] == state-2)\n\t\t\t\t\t\tnextVersion[row][column] = (byte) (state-1);\n\t\t\t\t}\n\t\t\t\tif (row > 0 && column ==0 && row < currentVersion.length-1)\n\t\t\t\t{\n\t\t\t\t\tif(currentVersion[row+1][column] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row+1][column];\n\t\t\t\t\tif(currentVersion[row][column+1] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column+1];\n\t\t\t\t\telse if (currentVersion[row][column] == 0)\n\t\t\t\t\t\tnextVersion[row][column] = 1; \n\t\t\t\t\telse if (currentVersion[row][column] == state-1)\n\t\t\t\t\t\tnextVersion[row][column] = 0; \n\t\t\t\t\telse if(currentVersion[row][column] == state-2)\n\t\t\t\t\t\tnextVersion[row][column] = (byte) (state-1);\n\t\t\t\t}\n\t\t\t\tif(row == currentVersion.length-1 && column == currentVersion.length-1)\n\t\t\t\t{\n\t\t\t\t\tif(currentVersion[row-1][column] == currentVersion[row][column] +1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row-1][column];\n\t\t\t\t\telse if(currentVersion[row][column-1] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column-1];\n\t\t\t\t\telse if (currentVersion[row][column] == 0)\n\t\t\t\t\t\tnextVersion[row][column] = 1; \n\t\t\t\t\telse if (currentVersion[row][column] == state-1)\n\t\t\t\t\t\tnextVersion[row][column] = 0; \n\t\t\t\t\telse if(currentVersion[row][column] == state-2)\n\t\t\t\t\t\tnextVersion[row][column] = (byte) (state-1);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(row == currentVersion.length-1 && column > 0 && column < currentVersion.length-1)\n\t\t\t\t{\n\t\t\t\t\tif(currentVersion[row-1][column] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row-1][column];\n\t\t\t\t\telse if(currentVersion[row][column-1] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column-1]; \n\t\t\t\t\telse if(currentVersion[row][column+1] == currentVersion[row][column] +1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column+1];\n\t\t\t\t\telse if (currentVersion[row][column] == 0)\n\t\t\t\t\t\tnextVersion[row][column] = 1; \n\t\t\t\t\telse if (currentVersion[row][column] == state-1)\n\t\t\t\t\t\tnextVersion[row][column] = 0; \n\t\t\t\t\telse if(currentVersion[row][column] == state-2)\n\t\t\t\t\t\tnextVersion[row][column] = (byte) (state-1);\n\t\t\t\t}\t\n\t\t\t\tif(row>0 && row < currentVersion.length-1 && column == currentVersion.length-1)\n\t\t\t\t{\n\t\t\t\t\tif (currentVersion[row-1][column] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row-1][column];\n\t\t\t\t\telse if(currentVersion[row+1][column] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row+1][column]; \n\t\t\t\t\telse if(currentVersion[row][column-1] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column-1];\n\t\t\t\t\telse if (currentVersion[row][column] == 0)\n\t\t\t\t\t\tnextVersion[row][column] = 1; \n\t\t\t\t\telse if (currentVersion[row][column] == state-1)\n\t\t\t\t\t\tnextVersion[row][column] = 0; \n\t\t\t\t\telse if(currentVersion[row][column] == state-2)\n\t\t\t\t\t\tnextVersion[row][column] = (byte) (state-1);\n\t\t\t\t}\n\t\t\t\tif(row>0 && row < currentVersion.length-1 && column > 0 && column < currentVersion.length-1)\n\t\t\t\t{\n\t\t\t\t\tif (currentVersion[row-1][column] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row-1][column];\n\t\t\t\t\telse if(currentVersion[row+1][column] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row+1][column]; \n\t\t\t\t\telse if(currentVersion[row][column-1] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column-1];\n\t\t\t\t\telse if(currentVersion[row][column+1] == currentVersion[row][column]+1)\n\t\t\t\t\t\tnextVersion[row][column] = currentVersion[row][column+1];\n\t\t\t\t\telse if (currentVersion[row][column] == 0)\n\t\t\t\t\t\tnextVersion[row][column] = 1; \n\t\t\t\t\telse if (currentVersion[row][column] == state-1)\n\t\t\t\t\t\tnextVersion[row][column] = 0;\n\t\t\t\t\telse if(currentVersion[row][column] == state-2)\n\t\t\t\t\t\tnextVersion[row][column] = (byte) (state-1);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t//passing new nextVersion array to currentVersion array\n\tsetUniverse(nextVersion);\n\t}",
"protected final void moveToNextIndex() {\n\t\t\t// doing the assignment && < 0 in one line shaves\n\t\t\t// 3 opcodes...\n\t\t\tif ( (_index = nextIndex()) < 0 ) { throw new NoSuchElementException(); }\n\t\t}",
"public static int getNextTabColumn(BaseDocument doc, int offset)\n throws BadLocationException {\n int col = getVisualColumn(doc, offset);\n int tabSize = doc.getFormatter().getSpacesPerTab();\n return (col + tabSize) / tabSize * tabSize;\n }",
"@Override\n\t\tpublic int next() {\n\t\t\treturn current++;\n\t\t}",
"public int getNextFieldIndex () {\n return labelStart;\n }",
"public void nextTurn(){\n\t\tplayers[currentPlayer].setNotCurrentPlayer();\n\t\t\n\t\t//increment current player to advance to next player\n\t\tcurrentPlayer = (currentPlayer + 1) % players.length;\n\t\t\n\t\t//update the new current player\n\t\tupdateCurrentPlayerView();\n\t}",
"public void increment() {\n\t\tif (m_bYear) {\n\t\t\tm_value++;\n\t\t\tif (m_value > 9999)\n\t\t\t\tm_value = 0;\n\t\t} else {\n\t\t\tm_value++;\n\t\t\tif (m_value > 11)\n\t\t\t\tm_value = 0;\n\n\t\t}\n\t\trepaint();\n\t}",
"@Override\n public void advance() {\n if (isCurrent()) {\n prev = cursor;\n cursor = cursor.getNext();\n } else {\n throw new IllegalStateException(\"There is no current element.\");\n }\n }",
"public void increase()\n {\n setCount(getCount() + 1);\n }",
"public int getRowNo() {\n return rowIndex+1;\n }",
"private void incr() {\n Move tempMove = null;\n Piece t1, t2;\n while (_r <= M) {\n t1 = Board.this._turn;\n t2 = Board.this.get(_c, _r);\n if (t1 == t2) {\n break;\n } else {\n nextPiece();\n }\n }\n if (_r > M) {\n _move = null;\n return;\n }\n int c1, r1, count3;\n Piece temp1, temp2;\n Board tempBoard;\n _dir = _dir.succ();\n while (_dir != null) {\n count3 = pieceCountAlong(_c, _r, _dir);\n c1 = _c + _dir.dc * count3;\n r1 = _r + _dir.dr * count3;\n tempMove = Move.create(_c, _r, c1, r1, Board.this);\n if (tempMove == null) {\n _dir = _dir.succ();\n continue;\n }\n if (isLegal(tempMove)) {\n _move = tempMove;\n break;\n }\n _dir = _dir.succ();\n }\n if (_dir == null) {\n _dir = NOWHERE;\n nextPiece();\n incr();\n }\n }",
"public void next(){\n\t\tif(generated)\n\t\t\tcurr++;\n\t}",
"public void jumpToNextLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == textBuffer.getMaxLine()-1) {\n textBuffer.setCurToTail();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo+1);\n lineJumpHelper(curX);\n }",
"public void setNextWidth(int w) {\n\t\tnextWidth = w;\n\t}",
"public abstract int getNumberOfColumnsInCurrentRow();",
"public void increment() {\n this.data++;\n }",
"public int getNextWidth() {\n\t\treturn nextWidth;\n\t}",
"public int nextIndex() {\n return curIndex;\n }",
"public int nextIndex(int i) {\n\t\treturn (i + 1) % data.length;\n\t}",
"static void nextIteration(Configuration conf) {\n conf.setInt(STEP_PROP, getCurrentIteration(conf)+1);\n }",
"public void rotateNextPlayer(){\n\t\t\n\t\tif(this.toRight)\n\t\t\tthis.nextElem = (this.nextElem + 1) % players.size();\n\t\telse\t\t\t\n\t\t\tthis.nextElem = (this.nextElem - 1 + players.size()) % players.size();\n\t}",
"private int plusOne(int i) {\n return (i + 1) % capacity;\n }",
"public static void move() {\r\n\t\t\r\n\t\tif (ths.page == 1) {\r\n\t\t\tths.page++;\r\n\t\t}\r\n\t}",
"public Index next() {\n return Index.valueOf(value + 1);\n }",
"private int forwardPosition() {\n\t\treturn (position + 1) % (maxPosition + 1);\n\t}",
"public Cell getNext()\n { return next; }",
"private void doNextRow(){\n\t\tmove();\n\t\twhile (frontIsClear()){\n\t\t\talternateBeeper();\n\t\t}\n\t\tcheckPreviousSquare();\t\n\t}",
"public void handleNextCode() {\n setCurrentCode((currentIndex + 1) % codeCount);\n }",
"void setNext(Cell next) {\n if (this.next == null) {\n this.next = next;\n }\n }",
"public static void chartNext() {\n\t\tchartId = (chartId+(hsPage = 1)) % chary.length;\n\t}",
"public void advance( )\r\n {\r\n\t if(isCurrent() != true){// Implemented by student.\r\n\t throw new IllegalStateException(\"no current element\");\r\n\t }\r\n\t else\r\n\t \t precursor = cursor;\r\n\t \t cursor = cursor.getLink(); // Implemented by student.\r\n }",
"public int getNext() {\n return value++;\n }",
"private void advance(final ResultSet rs, final RowSelection selection)\n \t\t\tthrows SQLException {\n \n-\t\tfinal int firstRow = getFirstRow( selection );\n+\t\tfinal int firstRow = LimitHelper.getFirstRow( selection );\n \t\tif ( firstRow != 0 ) {\n \t\t\tif ( getFactory().getSettings().isScrollableResultSetsEnabled() ) {\n \t\t\t\t// we can go straight to the first required row\n \t\t\t\trs.absolute( firstRow );\n \t\t\t}\n \t\t\telse {\n \t\t\t\t// we need to step through the rows one row at a time (slow)\n \t\t\t\tfor ( int m = 0; m < firstRow; m++ ) rs.next();\n \t\t\t}\n \t\t}\n \t}",
"@Override\n\t\tpublic int nextIndex() {\n\t\t\treturn 0;\n\t\t}",
"private void nextTurn(){\n\t\tint[] currentTurnInfo = mTurnIndicator.nextTurn(); \n\t\tif(currentTurnInfo[TurnView.TURN_POSITION] > -1){\n\t\t\t// highlight the current player\n\t\t\tCombatAdapter adapter = (CombatAdapter) getList().getAdapter();\n\t\t\tadapter.setCurrentTurn(currentTurnInfo[TurnView.TURN_POSITION]);\n\t\t\t// change the turn in the game table\n\t\t\tGameTable.setTurn(GameSQLDataSource.getDatabase(getActivity()), mEncounterRowID, currentTurnInfo[TurnView.TURN_POSITION]);\n\t\t\t// set the label\n\t\t\tmTurn.setText(currentTurnInfo[TurnView.TURN_INIT] + \"\");\n\t\t\t// increment the round if necessary\n\t\t\tif(currentTurnInfo[TurnView.TURN_POSITION] == 0){\n\t\t\t\tint round = GameTable.addRound(GameSQLDataSource.getDatabase(getActivity()), mEncounterRowID);\n\t\t\t\tmRound.setText(round + \"\");\n\t\t\t}\n\t\t}\n\t}",
"private int getNextLine() {\n return peekToken().location.start.line;\n }",
"protected void resetNextAdvanceLineNumber() {\n this.nextAdvanceLineNumber = new Integer(1);\n }",
"public static void rowPlus() {\n\t\tnRow++;\n\t\tbuildBoard();\n\t\tfor (int c = 0; c < nCol; c++)\n\t\t\tboard[c][nRow - 1] = pItem.getItem(rnd[c][nRow - 1] = random.nextDouble());\n\t\tRightPanel.updateTextBoardInfo();\n\t}",
"private void getNext() {\n Node currNode = getScreenplayElem().getChildNodes().item(currPos++);\n while (currNode.getNodeType() != Node.ELEMENT_NODE) {\n currNode = getScreenplayElem().getChildNodes().item(currPos++);\n }\n currElem = (Element) currNode;\n }",
"private void increaseCurrentPlayerIndex() {\n\t\tcurrentPlayer++;\n\t\tif(currentPlayer>3)\n\t\t\tcurrentPlayer=0;\n\t}",
"public void nextTurn(){\n\t\tthis.setCurrentElement(this.getCurrentElement().getNext());\n\t}",
"public void nextIteration()\n {\n actuelIteration++;\n }",
"public void switchNextTabulator() {\r\n\t\tCTabItem[] tabItems = this.displayTab.getItems();\r\n\t\tfor (int i = 0; i < tabItems.length; i++) {\r\n\t\t\tCTabItem tabItem = tabItems[i];\r\n\t\t\tif (tabItem.getControl().isVisible()) {\r\n\t\t\t\tif (i + 1 <= tabItems.length - 1)\r\n\t\t\t\t\ttabItem.getParent().setSelection(i + 1);\r\n\t\t\t\telse\r\n\t\t\t\t\ttabItem.getParent().setSelection(0);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void updateNbCol() {\r\n\t\treturn;\r\n\t}",
"protected void nextDirection()\n {\n if (this.lastKeyDirection == Canvas.LEFT)\n {\n this.lastKeyDirection = keyDirection = Canvas.RIGHT;\n xTotalDistance = 0;\n //yTotalDistance = 0;\n }\n else if (this.lastKeyDirection == Canvas.RIGHT)\n {\n this.lastKeyDirection = keyDirection = Canvas.LEFT;\n xTotalDistance = 0;\n //yTotalDistance = 0;\n }\n }",
"public int resetToNextPoint() {\n if (curPointIndex + 1 >= numPoints)\n return ++curPointIndex;\n int diff = curPointIndex ^ (curPointIndex + 1);\n int pos = 0; // Position of the bit that is examined.\n while ((diff >> pos) != 0) {\n if (((diff >> pos) & 1) != 0) {\n cachedCurPoint[0] ^= 1 << (outDigits - numCols + pos);\n for (int j = 1; j <= dim; j++)\n cachedCurPoint[j] ^= genMat[(j-1) * numCols + pos];\n }\n pos++;\n }\n curCoordIndex = 0;\n return ++curPointIndex;\n }",
"public void next()\n {\n if (mHistoryIdx == mCommandList.size()) {\n return;\n }\n\n mCommandList.get(mHistoryIdx++).redo();\n this.setChanged();\n this.notifyObservers(mHistoryIdx);\n }",
"@Override\n public void updateToNextDoc() {\n if(idx < postingList.size())\n idx += postingList.get(idx+1)+2;\n }",
"public void nextFrame() {\r\n if (frame < maxFrames - 1) {\r\n frame++;\r\n } else {\r\n frame = 0;\r\n }\r\n }",
"private Row nextRow() {\n\t\tRow row = (nextRow == null) ? getStarts().next() : nextRow;\n\n\t\ttry {\n\t\t\tnextRow = getStarts().next();\n\t\t} catch (NoSuchElementException e) {\n\t\t\tnextRow = null;\n\t\t}\n\n\t\treturn row;\n\t}",
"public void increase() {\r\n\r\n\t\tincrease(1);\r\n\r\n\t}",
"public void nextRow(int minimumOffset) {\n\t\tarrangeCurrentRow();\n\n\t\t// Step 4 : Profit\n\n\t\t// Increment the Y position\n\t\tSystem.out.println(this.currentYPosition);\n\t\tsetCurrentYPosition(Math.max(this.currentYPosition + minimumOffset,\n\t\t\t\tthis.currentYPosition + getCurrentRowHeight()));\n\t\tSystem.out.println(this.currentYPosition);\n\n\t\t// Clear current row buffer\n\t\tthis.currentRow.clear();\n\n\t\tint theoreticalMaxWidth = 99999999;\n\n\t\t// Update left and right offsets occupied by previous floats for this\n\t\t// row, as well as the row max width\n\t\tint x = this.box.getAbsoluteX() + this.box.marginLeft + this.box.paddingLeft;\n\t\tint y = this.box.getAbsoluteY() + getCurrentY() + this.box.marginTop\n\t\t\t\t+ this.box.paddingTop;\n\t\tint currentRowAbsoluteY = this.box.getAbsoluteY() + this.currentYPosition\n\t\t\t\t+ this.box.marginTop + this.box.paddingTop;\n\t\tint workMaxWidth = this.box.parent.contentWidth - this.box.marginLeft\n\t\t\t\t- this.box.marginRight - this.box.paddingLeft - this.box.paddingRight;\n\n\t\tif (this.box.contentWidth > 0) {\n\t\t\tworkMaxWidth = this.box.contentWidth;\n\t\t}\n\n\t\tthis.currentRowLeftFloatOccupiedSpace = this.floats.leftIntersectionPoint(x,\n\t\t\t\tcurrentRowAbsoluteY, workMaxWidth, this.box);\n\t\tint rightPoint = this.floats.rightIntersectionPoint(x, currentRowAbsoluteY,\n\t\t\t\tworkMaxWidth, this.box);\n\t\tthis.currentRowRightFloatOccupiedSpace = workMaxWidth - rightPoint;\n\t\t// currentRowMaxWidth = rightPoint - currentRowLeftFloatOccupiedSpace ;\n\t\tthis.currentRowMaxWidth = getMaxRowWidth(this.currentYPosition);\n\n\t\t// Other init stuff\n\t\tthis.startXPosition = this.floats.leftIntersectionPoint(x, y,\n\t\t\t\ttheoreticalMaxWidth, this.box);\n\t\tthis.currentXPosition = this.startXPosition;\n\n\t\tthis.rowHeightFloats = Integer.MAX_VALUE;\n\t\tthis.rowHeightNoFloats = 0;\n\n\t\tthis.leftFloatsCount = this.rightFloatsCount = 0;\n\t\tthis.hasClearRight = false;\n\n\t\tthis.nextChildFromSavedElements = true;\n\t\tthis.currentRowHasOnlyFloats = true;\n\n\t\tSystem.out.println(\"THIS ROW WIDTH: \" + this.currentRowMaxWidth);\n\n\t}",
"int atRow();",
"public final void incrementRowsReadEvent() {\n rowsRead_++;\n }",
"private void backward() {\n index--;\n if(column == 0) {\n line--;\n linecount = column = content.getColumnCount(line);\n }else{\n column--;\n }\n }",
"public void goNextLine () throws IOException {\n\t\treader.goNextLine();\n\t\tcurrentLine = reader.getCurrentLine();\n\t}",
"public void nextMove(Field field) {\n for (int i = 1; i <= 9; i++) {\n if (field.setMarker(i, marker)) {\n break;\n }\n }\n }",
"public void incrank() {\n\t\trank++;\n\t}",
"public void incValue(){\n\t\tif(this.value < 9){\n\t\t\tthis.value++;\n\t\t}\n\t\telse{\n\t\t\tthis.value = 0;\n\t\t}\n\t}",
"private void nextPiece() {\n if (_c == M && _r <= M) {\n _c = 1;\n _r++;\n } else if (_r > M) {\n _move = null;\n } else {\n _c++;\n }\n }"
] |
[
"0.7767003",
"0.7692597",
"0.7558846",
"0.75156575",
"0.750813",
"0.69457644",
"0.69457644",
"0.6912579",
"0.66178334",
"0.65910304",
"0.6582868",
"0.6529609",
"0.6479504",
"0.6478086",
"0.64185977",
"0.6362338",
"0.62526196",
"0.6250103",
"0.6207667",
"0.61800385",
"0.61738104",
"0.61580336",
"0.61563575",
"0.614214",
"0.61203426",
"0.6098616",
"0.6086706",
"0.607594",
"0.6056947",
"0.6033879",
"0.6029454",
"0.595183",
"0.5940292",
"0.5919433",
"0.59119105",
"0.59049976",
"0.58997875",
"0.58932394",
"0.5871069",
"0.58679193",
"0.58432734",
"0.5839718",
"0.5827871",
"0.58220834",
"0.5817723",
"0.58171386",
"0.58136356",
"0.57897794",
"0.5782236",
"0.5775371",
"0.5761975",
"0.5757575",
"0.57442075",
"0.572687",
"0.5702412",
"0.5686367",
"0.5674143",
"0.5670139",
"0.56693614",
"0.5662699",
"0.56626487",
"0.5655767",
"0.56555545",
"0.5652782",
"0.5650811",
"0.5646826",
"0.56433403",
"0.5638255",
"0.5631243",
"0.5630027",
"0.5622727",
"0.5621463",
"0.56161344",
"0.560124",
"0.55934995",
"0.55851376",
"0.5570575",
"0.5565023",
"0.55600744",
"0.5555691",
"0.55501115",
"0.55448824",
"0.5542883",
"0.553842",
"0.5535079",
"0.55207664",
"0.55035585",
"0.55008405",
"0.5499953",
"0.54987746",
"0.5495725",
"0.549326",
"0.548753",
"0.5483207",
"0.54806924",
"0.5474108",
"0.5473926",
"0.54738975",
"0.54637206"
] |
0.7378536
|
5
|
Increment by multiple columns
|
void incrementColumnIndex(int size);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void incrementColumnIndex();",
"void incrementColumnIndex();",
"public void incrementRow() {\n setRowAndColumn(row + 1, column);\n }",
"public void incOffset( Integer increment ) {\n offset += increment;\n }",
"public UpdateValues inc(String column, Object value) {\n return this.add(column, UpdateType.INC, value);\n }",
"public void incremetColumn() {\n setRowAndColumn(row, column + 1);\n }",
"public DocumentMutation increment(FieldPath path, byte inc);",
"public abstract void increment(int delta);",
"public void increment() {\n increment(1);\n }",
"public void absIncrementRowAt(int index) {\n int lastIndex = getModel().getRowCount() - 1;\n if ((index < 0) || (index >= lastIndex)) {\n return;\n }\n\n Vector[] va = getAllRowsData();\n\n Vector vTemp = va[index];\n va[index] = va[index + 1];\n va[index + 1] = vTemp;\n\n setRows(va);\n }",
"void add(int idx, float incr);",
"@Override\n protected void moveToNextRow(){\n incrementRow();\n resetXPos();\n if(getRow()%2 == 1){\n incrementYPos(getHeight()+getHeight());\n }\n resetCol();\n setPointDirection();\n }",
"public void increment() {\n\t\tif (m_bYear) {\n\t\t\tm_value++;\n\t\t\tif (m_value > 9999)\n\t\t\t\tm_value = 0;\n\t\t} else {\n\t\t\tm_value++;\n\t\t\tif (m_value > 11)\n\t\t\t\tm_value = 0;\n\n\t\t}\n\t\trepaint();\n\t}",
"private void inc_x()\n {\n synchronized(mLock_IndexX) { set_x(get_x() + 1); }\n }",
"public void increment(){\n value+=1;\n }",
"public void increase(int row, int column) {\n ImmutablePair<Integer, Integer> from = new ImmutablePair<Integer, Integer>(row, column);\n // Step 2. Generating increase event\n IncreaseChipAction action = new IncreaseChipAction(getPlayer(), from);\n // Step 3. Actually performing action\n perform(action);\n }",
"public abstract void incrementXPos(double delta) throws SlickException;",
"public void inc(){\n this.current += 1;\n }",
"public void setIncrement(double increment) {\n this.increment = increment;\n }",
"public void increment(double n) {\r\n\t\tthis.value += n;\r\n\t}",
"public void increment() {\n this.data++;\n }",
"void setUnitIncrement(Adjustable adj, int u);",
"public static void incrInsertions() { ++insertions; }",
"void increase();",
"void increase();",
"public void setIncrement(Integer increment) {\n this.increment = increment;\n }",
"public abstract void rowsUpdated(int firstRow, int endRow, int column);",
"public static boolean incrementCell(final ILogger aLogger,\r\n final String aTableName,\r\n final String aColumnName,\r\n final String aWhere,\r\n final int aIncrement,\r\n final Statement aStatement) {\r\n if (aIncrement==0) return true;\r\n if (aStatement == null) return false;\r\n\r\n StringBuffer b= new StringBuffer(64);\r\n b.append(pSQL_UPDATE).append(aTableName);\r\n b.append(pSQL_SET);\r\n b.append(aColumnName).append('=');\r\n b.append(aColumnName);\r\n b.append(aIncrement>0 ? '+' : '-');\r\n b.append(Math.abs(aIncrement));\r\n appendWhere(b, aWhere);\r\n\r\n return write(aLogger, b.toString(), aStatement);\r\n }",
"public void update(final long key, final long increment) {\n this.update_sum += increment;\n for (int i = 0; i < this.rows; i++) {\n final int index = indexForKey(key, i);\n counts[index] += increment;\n }\n }",
"public void incrementCell(Label prediction, Label real){\n\t\tint rowIx = resolveIndex(prediction);\n\t\tint colIx = resolveIndex(real);\n\n\t\tInteger cell = matrix.get(rowIx).get(colIx);\n\t\tInteger newValue = cell+1;\n\t\tmatrix.get(rowIx).set(colIx, newValue);\n\n\t}",
"public void increment() {\n items++;\n }",
"public void increment() {\n sync.increment();\n }",
"void increaseStarsBy(final int amount);",
"public void inc() {\n inc(1);\n }",
"void increment(String[] tags, Double amount, String name, String description);",
"public static boolean incrementCell(final ILogger aLogger,\r\n final String aTableName,\r\n final String aColumnName,\r\n final String aWhere,\r\n final int aIncrement,\r\n final Connection aConnection) {\r\n if (aIncrement==0) return true;\r\n if (aConnection==null) return false;\r\n Statement stm= getStatement(aLogger, aConnection);\r\n boolean r= incrementCell(aLogger, aTableName, aColumnName, aWhere, aIncrement, stm);\r\n close(aLogger, stm);\r\n return r;\r\n }",
"public void increasePaymentCounter() throws SQLException{\n\t\tConnection conn = DataSource.getConnection();\n\t\ttry{\n\t\n\t\t\tString query = \"Update loan \"\n\t\t\t\t\t\t+ \" SET current_payment_counter = current_payment_counter+1\"\n\t\t\t\t\t\t+ \" WHERE client_id = '\"+this.client_id+\"' AND start_date = '\"+this.start_date+\"';\";\n\t\t\tStatement stat = conn.createStatement();\n\t\t\tstat.execute(query);\n\t\t\t\n\t\t}finally{\n\t\t\tconn.close();\n\t\t}\n\t}",
"public void renumberCells() {\r\n int num = 1;\r\n for (Cell cell : cells) {\r\n cell.updateCellNum(num);\r\n num++;\r\n }\r\n }",
"public final void nextRow() {\n this.line++;\n }",
"void incrementCount();",
"public void increase() {\r\n\r\n\t\tincrease(1);\r\n\r\n\t}",
"long getNextChangeAddSeqByTableName(String tableName, int increment, Object dbContext)\n throws SQLException;",
"private void increment() {\r\n salary = (int) (salary + salary * 0.2);\r\n }",
"private int[] inc(int[] a)\n {\n int tI = a.length - 1;\n long m = 0;\n\n m = (((long)a[tI]) & IMASK) + 1L;\n a[tI--] = (int)m;\n m >>>= 32;\n\n while (tI >= 0 && m != 0)\n {\n m += (((long)a[tI]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n return a;\n }",
"private int[] inc(int[] a)\n {\n int tI = a.length - 1;\n long m = 0;\n\n m = (((long)a[tI]) & IMASK) + 1L;\n a[tI--] = (int)m;\n m >>>= 32;\n\n while (tI >= 0 && m != 0)\n {\n m += (((long)a[tI]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n return a;\n }",
"public void increment(int bin) {\n this.increment(bin, 1);\n }",
"static void increment() {\r\n\t\tfor (double i =2.4; i<=8.8; i=i+0.2) { \r\n\t\t\tSystem.out.format(\"%.1f %n \",i); //%.1f: to 1 decimal place. %n: print on a new line\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void addRow() {\n\t\tif(this.numCols == 0){\n\t\t\tthis.numCols++;\n\t\t}\n\t\tthis.numRows++;\n\t}",
"public void incrementScore(int inc){\n\t\tscoreboard.incrementScore(inc);\n\t}",
"public void incrementAll( Collection<K> keys ) {\n for ( K key : keys ) {\n increment( key );\n }\n }",
"public void increment(Object incValue) {\r\n\t\t\r\n\t\tNumberOperation operator = new NumberOperation(this.value, incValue) {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic Number doAnOperation() {\r\n\t\t\t\tTypeEnum typeOfResult = getFinalType();\r\n\t\t\t\tif(typeOfResult == TypeEnum.TYPE_INTEGER) {\r\n\t\t\t\t\treturn getO1().intValue() + getO2().intValue();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn getO1().doubleValue() + getO2().doubleValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tthis.value = operator.doAnOperation();\r\n\t}",
"public void IncrementCounter()\r\n {\r\n \tsetCurrentValue( currentValue.add(BigInteger.ONE)); \r\n \r\n log.debug(\"counter now: \" + currentValue.intValue() );\r\n \r\n }",
"public void increase()\n {\n setCount(getCount() + 1);\n }",
"public abstract void rowsUpdated(int firstRow, int endRow);",
"@Override\n\tpublic void addCol() {\n\t\tif(this.numRows == 0){\n\t\t\tthis.numRows++;\n\t\t}\n\t\tthis.numCols++;\n\t}",
"private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }",
"public void change(double increment)\n\t{\n\t\tthis.accumulation += increment;\n\t}",
"private void moveNext(PositionTracker tracker) {\n\t\t \n\t\t //initiate if-else statement\n\t\t if(tracker.getExactColumn() == (tracker.getMaxColumns() - 1)) {\n\t\t\t \n\t\t\t //invoke the setExactRow method\n\t\t\t tracker.setExactRow(tracker.getExactRow() + 1);\n\t\t\t \n\t\t\t //invoke the setExactColumn method\n\t\t\t tracker.setExactColumn(0);\n\t\t\t \n\t\t }else {\n\t\t\t \n\t\t\t //invoke the setExactColumn method\n\t\t\t tracker.setExactColumn(tracker.getExactColumn() + 1);\n\t\t }//end if-else\n\t }",
"private void writeIncViaBatchWritable(Cube cube, String measureName, long ts,\n long value, String... dims) throws Exception {\n cube.write(null, getFact(measureName, ts, value, MeasureType.COUNTER, dims));\n }",
"public void incrementDelayCounter(int increment) {\n delayCounter += increment;\n }",
"@Override\n public void visitIINC(IINC obj) {\n int v = obj.getIndex();\n int amount = obj.getIncrement();\n ConstantFrame f = getFrame();\n Constant c = f.getValue(v);\n if (c.isConstantInteger())\n f.setValue(v, new Constant(c.getConstantInt() + amount));\n else\n f.setValue(v, Constant.NOT_CONSTANT);\n // System.out.println(\"after iinc: \" + getFrame());\n }",
"public void increment(int symbol);",
"protected void computeIncrement()\r\n\t{\r\n\t\tsuper.increment = this.userDefinedIncrement;\r\n\r\n\t\tdouble powerOfTen = Math.pow( 10, Math.abs( this.getRoundingPowerOfTen() ) );\r\n\r\n\t\t//---round the increment according to user defined power\r\n\t\tsuper.increment = super.round( super.increment, powerOfTen );\r\n\r\n\t\t//---if we round this down to zero, force it to the power of ten.\r\n\t\t//---for example, round to nearest 100, value = 35...would push down to 0 which is illegal.\r\n\t\tif( super.increment == 0 )\r\n\t\t{\r\n\t\t\tsuper.increment = powerOfTen;\r\n\t\t}\r\n\r\n\t\tsuper.setMinValue( super.round( this.userDefinedMinimum, powerOfTen ) );\r\n\t\tsuper.setMaxValue( super.getMinValue() + ( super.increment * super.getNumberOfScaleItems() ) );\r\n\r\n\t}",
"public static void increment(VectorClock clock, int... nodes) {\n for(int n: nodes)\n clock.incrementVersion((short) n, clock.getTimestamp());\n }",
"private void forward() {\n index++;\n column++;\n if(column == linecount + 1) {\n line++;\n column = 0;\n linecount = content.getColumnCount(line);\n }\n }",
"public void incValue(){\n\t\tif(this.value < 9){\n\t\t\tthis.value++;\n\t\t}\n\t\telse{\n\t\t\tthis.value = 0;\n\t\t}\n\t}",
"public void increaseCounter(UltraSearchSessions.Session session,\n HugeType type, long increment) {\n\n\n JSONObject result = session.get(TABLE, type.name());\n if(null == result){\n putCounter(session, type, increment);\n return;\n }\n\n\n JSONObject obj = new JSONObject();\n\n JSONObject fields = new JSONObject();\n JSONObject id = new JSONObject();\n id.put(\"increment\", increment);\n fields.put(\"ID\", id);\n\n obj.put(\"fields\", fields);\n session.putDoc(TABLE, type.name(), obj.toString());\n\n\n }",
"@Override\n\tpublic void computeColSums(double[] c, int nRows) {\n\t\tsuper.computeColSums(c, nRows);\n\t\t// and add reference multiplied with number of rows.\n\t\tfor(int i = 0; i < _colIndexes.length; i++)\n\t\t\tc[_colIndexes[i]] += _reference[i] * nRows;\n\t}",
"public int getDataIndexAndIncrement() {\n\t\tint x = dataIndex;\n\t\tnext();\n\t\treturn x;\n\t}",
"public static void increase(){\n c++;\n }",
"static int incBy1AndMul(int x, int y)\r\n\t{\r\n\t\treturn Math.multiplyExact((x+1), y);\r\n\t}",
"public void incrementScore(int increment) {\n score = score + increment;\n }",
"private synchronized void increment() {\n count++;\n atomicInteger.incrementAndGet();\n }",
"public void inc(String key) {\n int val = 0;\n\n if (!m.containsKey(key)) {\n m.put(key, val + 1);\n } else {\n val = m.get(key);\n m.put(key, val + 1);\n delete(key, val);\n }\n\n insert(key, val + 1);\n }",
"public static void rowPlus() {\n\t\tnRow++;\n\t\tbuildBoard();\n\t\tfor (int c = 0; c < nCol; c++)\n\t\t\tboard[c][nRow - 1] = pItem.getItem(rnd[c][nRow - 1] = random.nextDouble());\n\t\tRightPanel.updateTextBoardInfo();\n\t}",
"public void incdrum(String quantity1, String capacity) {\nString countQuery = \"SELECT \"+Drum_Quantity + \" FROM \" + DATABASE_TABLE4+\" WHERE \"+Drum_Capacity+\" ='\"+capacity+\"'\";\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t int d=cursor.getColumnIndex(Drum_Quantity);\n\t\tString cbal=null;\n\t\tfor(cursor.moveToFirst();!cursor.isAfterLast();cursor.moveToNext()){\n\t\t\tcbal=cursor.getString(d);\n\t\t\t\n\t\t}\n\t\tint cur=Integer.parseInt(cbal);\n\t\tcur=cur+Integer.parseInt(quantity1);\n\t ContentValues up=new ContentValues();\n\t up.put(Drum_Quantity, cur);\n\t\tourDatabase.update(DATABASE_TABLE4, up, Drum_Capacity+\" = '\"+capacity+\"'\", null);\n\t\t\n\t}",
"public void moveUp()\n\t{\n\t\trow++;\n\t}",
"private void incr() {\n Move tempMove = null;\n Piece t1, t2;\n while (_r <= M) {\n t1 = Board.this._turn;\n t2 = Board.this.get(_c, _r);\n if (t1 == t2) {\n break;\n } else {\n nextPiece();\n }\n }\n if (_r > M) {\n _move = null;\n return;\n }\n int c1, r1, count3;\n Piece temp1, temp2;\n Board tempBoard;\n _dir = _dir.succ();\n while (_dir != null) {\n count3 = pieceCountAlong(_c, _r, _dir);\n c1 = _c + _dir.dc * count3;\n r1 = _r + _dir.dr * count3;\n tempMove = Move.create(_c, _r, c1, r1, Board.this);\n if (tempMove == null) {\n _dir = _dir.succ();\n continue;\n }\n if (isLegal(tempMove)) {\n _move = tempMove;\n break;\n }\n _dir = _dir.succ();\n }\n if (_dir == null) {\n _dir = NOWHERE;\n nextPiece();\n incr();\n }\n }",
"public void incrementIndex() {\n\t\tindex++;\n\t\tif (nextItem != null) {\n\t\t\tnextItem.incrementIndex();\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void rowsUpdated(int firstRow, int endRow, int column) {\n\n\t\t\t\t}",
"public interface Incrementor {\n\t\tpublic void incrementTransition (TransitionIterator ti, double count);\n\t\tpublic void incrementInitialState (State s, double count);\n\t\tpublic void incrementFinalState (State s, double count);\n\t}",
"private void incrementarPuntaje(int puntos) {\n // TODO implement here\n }",
"@Override\r\n\tpublic void updateNbCol() {\r\n\t\treturn;\r\n\t}",
"public static void method1(int numRows) {\n List<List<Integer>> pt = new ArrayList<>();\n List<Integer> row, pre = null;\n for (int i = 0; i < numRows; ++i) {\n row = new ArrayList<>();\n for (int j = 0; j <= i; ++j) {\n if (j == 0 || j == i) {\n row.add(1);\n } else {\n row.add(pre.get(j - 1) + pre.get(j));\n }\n }\n pre = row;\n pt.add(row);\n }\n\n for (List<Integer> a : pt) {\n for (int i: a) {\n System.out.print(i + \" \");\n }\n System.out.println();\n }\n }",
"public void increment(){\n\t\twordCount += 1;\n\t}",
"public void increment(int i, ArrayList<Split> s)\n\t{\n\t\tthis.iValue += i;\n\t\t\n\t\tfor(int counter = 0; counter < s.size(); counter ++)\n\t\t{\n\t\t\tthis.incrementSplit(s.get(counter));\n\t\t}\n\t}",
"public void incrementRefusals() {\n\t}",
"Post incrementRatio(Long id);",
"private void incrementCounter()\r\n\t{\r\n\t\tthis.counter++;\r\n\t}",
"public void inc(String name) {\n inc(name, 1);\n }",
"public void incrementAmount() { amount++; }",
"@Override\n public int incrementSecondValue(int key, int delta) {\n return array.incrementEntry((key << 1) + 1, delta);\n }",
"public void incrementCount () {\n count = count + 1; // == count++ == count += 1 \n if (count == modulus) {\n count = 0;\n }\n }",
"private int increaseBy() {\n\t\tif (increaseBy == null) {\n\t\t\tincreaseBy = Integer.valueOf(ERXProperties.intForKeyWithDefault(\"er.extensions.ERXLongPrimaryKeyFactory.increaseBy\", 1000));\n\t\t}\n\t\treturn increaseBy.intValue();\n\t}",
"private void increaseCurrentPlayerIndex() {\n\t\tcurrentPlayer++;\n\t\tif(currentPlayer>3)\n\t\t\tcurrentPlayer=0;\n\t}",
"private int plusOne(int i) {\n return (i + 1) % capacity;\n }",
"public void moveRowRelative(int rows) throws SQLException {\n/* 327 */ notSupported();\n/* */ }",
"public void incrementCurrentIndex() {\n currentIndex++;\n }",
"public final void incrementRowsReadEvent() {\n rowsRead_++;\n }"
] |
[
"0.7630653",
"0.7630653",
"0.69591993",
"0.62721294",
"0.6267479",
"0.615973",
"0.6146269",
"0.609685",
"0.60864896",
"0.60815537",
"0.5959841",
"0.5842158",
"0.5790316",
"0.576958",
"0.574637",
"0.5737621",
"0.56976235",
"0.5691772",
"0.5689144",
"0.56826615",
"0.56673217",
"0.56501365",
"0.5638609",
"0.56055343",
"0.56055343",
"0.56000596",
"0.55904377",
"0.5589349",
"0.5580683",
"0.5574007",
"0.55715626",
"0.5557696",
"0.554877",
"0.55464685",
"0.54912573",
"0.5488536",
"0.54810697",
"0.5465084",
"0.54550284",
"0.5449047",
"0.54379416",
"0.5420337",
"0.5417383",
"0.5406917",
"0.5406917",
"0.5403804",
"0.54016095",
"0.54003626",
"0.5395615",
"0.5394135",
"0.5391228",
"0.5382784",
"0.5376078",
"0.5372893",
"0.53618884",
"0.53615963",
"0.53542745",
"0.5347485",
"0.5343817",
"0.5343099",
"0.5338656",
"0.5333649",
"0.5305253",
"0.52877074",
"0.5270821",
"0.52583617",
"0.5257048",
"0.5244859",
"0.5237531",
"0.52203906",
"0.5219399",
"0.52116513",
"0.51948994",
"0.5188086",
"0.51846653",
"0.51732683",
"0.51657766",
"0.51625824",
"0.51523226",
"0.5148668",
"0.51435965",
"0.5143051",
"0.5142849",
"0.5137662",
"0.51323086",
"0.51313347",
"0.5130717",
"0.51261663",
"0.51231337",
"0.5114169",
"0.5112987",
"0.51063985",
"0.5105922",
"0.510555",
"0.5100026",
"0.5098054",
"0.5094867",
"0.5094265",
"0.50931716"
] |
0.7110397
|
3
|
Get the current column index
|
int getColumnIndex();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getCurrentColumn() {\n return buffer.columnNumber();\n }",
"public Integer getColIndex() {\r\n\t\treturn colIndex;\r\n\t}",
"public int getColIndex() {\r\n\t\treturn colIndex;\r\n\t}",
"public int getColumnIndex() {\n return table.findColumnIndex(getName());\n }",
"public int getColumn();",
"int getColumnIndex (String columnName);",
"public int getCol() {\n\t\treturn j;\n\t}",
"int getColumn();",
"public int getColumnNumber() {\n return column;\n }",
"public int getCol(){\r\n\t\treturn this.column;\r\n\t}",
"public int getColumn()\r\n\t{\r\n\t\treturn this.column;\r\n\t}",
"int getCol();",
"public int getColumn() {\r\n\t\treturn this.col;\r\n\t}",
"public int getCol() {\n\t\treturn column; \n\t}",
"public int getColumn() {\n return this.column;\n }",
"int atColumn();",
"public int getColumn(){\n return this.column;\n }",
"public final int getColumn() {\n/* 368 */ return this.bufcolumn[this.bufpos];\n/* */ }",
"public int getCol() {\r\n return this.col;\r\n }",
"protected int getCol() {\r\n\t\treturn this.col;\r\n\t}",
"public int getCol() {\n return col;\n }",
"int getColumnIndex(String name);",
"public int col() {\r\n\t\treturn col;\r\n\t}",
"public int getColumn() {\n\t\treturn column;\n\t}",
"public int getColumn() {\n return mCol;\n }",
"public int getColumn()\n\t{\n\t\treturn col;\n\t}",
"public int getColumn() {\r\n\t\treturn column;\r\n\t}",
"public int getColumn()\n\t\t{\n\t\t\treturn m_col;\n\t\t}",
"public int getColumn() {\n return col;\n }",
"public int getCol() { return _col; }",
"public int getColumn() {\r\n return column;\r\n }",
"public int getColumn() {\r\n return column;\r\n }",
"public int getColumn() {\n\t\t\treturn column;\n\t\t}",
"public int col() {\r\n return col;\r\n }",
"private int getColumnIndex(Cursor cursor, String columnName) {\n return cursor.getColumnIndexOrThrow(columnName);\n }",
"public int getColumn() {\n // YOUR CODE HERE\n return this.column;\n }",
"public int getColumn()\n {\n return column;\n }",
"public int getColumn() {\n return column;\n }",
"public int getColumn() {\n return column;\n }",
"public int getColumn() {\n return column;\n }",
"public final int getColumn() {\n return column;\n }",
"public int getRealColIndex() {\n return realColIndex;\n }",
"public int getColumn()\t \t\t{ return column; \t}",
"@Override\r\n public int getCol() {\r\n return this.col;\r\n }",
"public int getCol()\n\t{\n\t\treturn col;\n\t}",
"public int getCol()\n\t{\n\t\treturn col;\n\t}",
"private int getColumn() {\n return binaryPartition(column);\n }",
"public int getColumnNumber()\n {\n return parser.getColumnNumber();\n }",
"public abstract int getColumn();",
"public int getCol() {\n\t\t\treturn col;\n\t\t}",
"public int getColumn()\n {\n return col;\n }",
"public int getCol() {\n return this.col; \n }",
"public int getColumnIndex (String columnName)\n\t{\n\t\tif (columnName == null || columnName.length() == 0)\n\t\t\treturn -1;\n\t\t//\n\t\tfor (int i = 0; i < m_data.cols.size(); i++)\n\t\t{\n\t\t\tRColumn rc = (RColumn)m_data.cols.get(i);\n\t\t//\tlog.fine( \"Column \" + i + \" \" + rc.getColSQL() + \" ? \" + columnName);\n\t\t\tif (rc.getColSQL().startsWith(columnName))\n\t\t\t{\n\t\t\t\tlog.fine( \"Column \" + i + \" \" + rc.getColSQL() + \" = \" + columnName);\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"private int getNIdx() {\n return this.colStartOffset + 7;\n }",
"public int getIndex() { \n\t\t\treturn currIndex;\n\t\t}",
"public int getBeginColumnNumber() {\n return this.beginColumn;\n }",
"@Override\n\tpublic int getColumn() {\n\t\treturn delegate.getColumn();\n\t}",
"public int getPositionColumn(){return this.positionColumn;}",
"public int getColumnIndex(Comparable key) {\n/* 174 */ int index = this.underlying.getColumnIndex(key);\n/* 175 */ if (index >= this.firstCategoryIndex && index <= lastCategoryIndex()) {\n/* 176 */ return index - this.firstCategoryIndex;\n/* */ }\n/* 178 */ return -1;\n/* */ }",
"String getColumn();",
"public char getColumn() {\n\t\treturn column;\n\t}",
"public Column getColumn(int pos) { return columns[pos]; }",
"String getColumn(int index);",
"String getColumn(int index);",
"public int getIndx() {\n return this.indx;\n }",
"public int getColumn(){ return (Integer)args[1]; }",
"final int getColumnIdx( int column ) throws SQLException{\n\t\tif(column < 1 || column > columns.size())\n\t\t\tthrow SmallSQLException.create( Language.COL_IDX_OUT_RANGE, String.valueOf(column));\n\t\treturn column-1;\n\t}",
"public int markedCol() {\r\n return markedCol;\r\n }",
"public int getOrigCol() {\n return origCol;\n }",
"public int getColumna(){\n\t\treturn columna;\n\t}",
"public int getColumna() {\n\t\treturn columna;\n\t}",
"public int getColumna() {\r\n\t\treturn columna;\r\n\t}",
"private int getCol(int index) {\n return index & (chunkSize - 1);\n }",
"public int[] getNeighborColIndex() {\n if (myRow % 2 == 0) {\n return neighborEvenColIndex;\n } else {\n return neighborOddColIndex;\n }\n }",
"public int getColumn() { return cc; }",
"public abstract int getNumberOfColumnsInCurrentRow();",
"int index(){\n\n\t\t\n\t\tif (cursor == null) \n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn index;\n\t}",
"private int getColumn(char columnName) {\r\n\t\tint result = -1;\r\n\t\tif (columnName > 64 && columnName < 91) {\r\n\t\t\tresult = columnName - 65;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"protected Integer getColumnIndex(String header){\n for (Map.Entry<String, Integer> entry: headerMap.entrySet()){\n if (header.toLowerCase().equals(entry.getKey().toLowerCase())) return entry.getValue();\n }\n return -1;\n }",
"public int getCurrentIdx() {\n\t\treturn this.currentIdx;\n\t}",
"public int[] getCol() { return _col; }",
"public int getColumnIndex() {\n return 57;\n }",
"public int getIndex() {\r\n return ordinal();\r\n }",
"@Override\n\tpublic String getColumnName(int arg0) throws SQLException {\n\t\treturn columns[arg0-1];\n\t}",
"public int getLoopStartColumn() {\n\t\treturn loopStartColumn;\n\t}",
"public Integer getIdx() {\r\n\t\treturn idx;\r\n\t}",
"public int getIntialSortedColumn()\n { \n return 0; \n }",
"public int getCurrentIdx() {\n\t\treturn currentIdx;\n\t}",
"public int getCurrentPawnColumn(){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\tPlayer white = currentGame.getWhitePlayer();\n\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\treturn curPos.getWhitePosition().getTile().getColumn();\n\t\t\n\t\t} else {\n\t\t\treturn curPos.getBlackPosition().getTile().getColumn();\n\t\t}\r\n }",
"public int getColumn() { \n\t// * JFlex starts in zero\n\treturn yycolumn+1;\n}",
"public int getColumnNumber() {\n return rows;\n }",
"public int getCurIdx() {\n\t\treturn dDisplay.getCurIdx();\n\t}",
"int getRowIndex();",
"public int getIdx() {\n return idx;\n }",
"public int getX() {\r\n return ix % numCols;\r\n }",
"@Override\n public int getColChange() {\n return colChange;\n }",
"public Number getIdx() {\n return (Number)getAttributeInternal(IDX);\n }",
"public ColumnIdentifier getColumn() {\n return this.column;\n }"
] |
[
"0.8258108",
"0.77217907",
"0.7638073",
"0.7551421",
"0.7459667",
"0.7446432",
"0.7446013",
"0.74126625",
"0.73955446",
"0.73557836",
"0.73222536",
"0.73072624",
"0.7293419",
"0.72922087",
"0.72728413",
"0.7271175",
"0.7269182",
"0.7260658",
"0.7250369",
"0.7249859",
"0.72065777",
"0.72026145",
"0.72017395",
"0.7198662",
"0.7192468",
"0.7190065",
"0.71809864",
"0.71762604",
"0.71629643",
"0.71600217",
"0.7158044",
"0.7158044",
"0.71535116",
"0.7144572",
"0.71436936",
"0.71421516",
"0.71413755",
"0.71389866",
"0.71389866",
"0.71389866",
"0.7134301",
"0.712356",
"0.710683",
"0.71046346",
"0.7101438",
"0.7101438",
"0.7086535",
"0.69990665",
"0.69451016",
"0.69440836",
"0.690354",
"0.6891182",
"0.68351835",
"0.6821913",
"0.6821736",
"0.6809614",
"0.6808688",
"0.67915905",
"0.6788787",
"0.6778809",
"0.6778052",
"0.6777575",
"0.6766658",
"0.6766658",
"0.67581594",
"0.67554307",
"0.6753979",
"0.67401534",
"0.6739269",
"0.67306477",
"0.67271036",
"0.6720512",
"0.6716655",
"0.66886485",
"0.6684058",
"0.666993",
"0.6668294",
"0.66606265",
"0.66285586",
"0.6596595",
"0.6585741",
"0.65660685",
"0.65585685",
"0.6537392",
"0.6534372",
"0.6505444",
"0.64989805",
"0.6483286",
"0.64830154",
"0.64780027",
"0.6477497",
"0.64742714",
"0.6473931",
"0.6470948",
"0.64662975",
"0.64466166",
"0.6439425",
"0.6438033"
] |
0.814212
|
3
|
Set this index as the current column
|
void setColumnIndex(int newIndex);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setColumnIndex(int index);",
"Table setColumn(int index, String name);",
"@Override\n\tpublic void setColumn(int x) {\n\t\tdelegate.setColumn(x);\n\t}",
"public void setCol(int value) {\n this.col = value;\n }",
"public void setCol(int newCol) {\n this.col = newCol;\n }",
"void incrementColumnIndex();",
"void incrementColumnIndex();",
"public void setColIndex(Integer colIndex) {\r\n\t\tthis.colIndex = colIndex;\r\n\t}",
"public void setCol(int column) {\n\t\tthis.column = column; \n\t}",
"public void setColIndex(int colIndex) {\r\n\t\tthis.colIndex = colIndex;\r\n\t}",
"void setColumnValue(int colIndex, Object value);",
"void setColumn(Column newColumn, int pos) { columns[pos] = newColumn; }",
"public int getCurrentColumn() {\n return buffer.columnNumber();\n }",
"public int getCol() { return _col; }",
"protected void setCurrentColumnValue(String currentColumnValue) {\r\n this.currentColumnValue = currentColumnValue;\r\n }",
"public void setCol(final int newJ) {\n\t\tthis.j = newJ;\n\t}",
"@Override\n\t\tpublic void setValueColumn(int columnIndex) {\n\t\t\tthis.valueColumn = columnIndex;\n\t\t}",
"public void setCol(int c) {\n\t\tthis.col = c;\n\t}",
"public void setCol(int col)\n\t{\n\t\tthis.col = col;\n\t}",
"public void setCol(int col)\n\t{\n\t\tthis.col = col;\n\t}",
"public void setColorColumn (int modelIndex)\n\t{\n\t\tm_colorColumnIndex = modelIndex;\n\t}",
"public int getColumn(){\n return this.column;\n }",
"public int getColumn() {\n // YOUR CODE HERE\n return this.column;\n }",
"@Override\r\n public int getCol() {\r\n return this.col;\r\n }",
"public Col getCol() {\n\treturn new Col(colIndex); \n }",
"public int getCol(){\r\n\t\treturn this.column;\r\n\t}",
"public int getColIndex() {\r\n\t\treturn colIndex;\r\n\t}",
"public void incremetColumn() {\n setRowAndColumn(row, column + 1);\n }",
"public void setColumn(int column) {\n\t\tthis.column = column;\n\t}",
"public int getCol() {\r\n return this.col;\r\n }",
"protected int getCol() {\r\n\t\treturn this.col;\r\n\t}",
"public int getCol() {\n return this.col; \n }",
"public Integer getColIndex() {\r\n\t\treturn colIndex;\r\n\t}",
"@Override\n public void alterColumnByIndex(int index, XPropertySet descriptor) throws SQLException, IndexOutOfBoundsException {\n \n }",
"public int getColumn()\t \t\t{ return column; \t}",
"public void setPositionColumn(int value){this.positionColumn = value;}",
"public int getCol() {\n return col;\n }",
"public int getColumn() {\n return this.column;\n }",
"public void setColumnName (String ColumnName);",
"public int getCol() {\n\t\treturn column; \n\t}",
"public int getColumn()\n {\n return col;\n }",
"public void setNextColumn() {\n if (nextSelectedCarTitleLabel.getText().isEmpty()) {\n setNextColumnTitle();\n } else {\n nextSelectedCarTitleLabel.setText(\"\");\n setNextColumnTitle();\n }\n\n }",
"public int getColumn()\r\n\t{\r\n\t\treturn this.column;\r\n\t}",
"public int getColumn()\n {\n return column;\n }",
"void incrementColumnIndex(int size);",
"void incrementColumnIndex(int size);",
"public int getColumn() {\r\n\t\treturn this.col;\r\n\t}",
"public int getColumn() {\r\n return column;\r\n }",
"public int getColumn() {\r\n return column;\r\n }",
"public int col() {\r\n return col;\r\n }",
"public int getCol()\n\t{\n\t\treturn col;\n\t}",
"public int getCol()\n\t{\n\t\treturn col;\n\t}",
"public int getCol() {\n\t\treturn j;\n\t}",
"public int getColumn() {\n return column;\n }",
"public int getColumn() {\n return column;\n }",
"public int getColumn() {\n return column;\n }",
"public void setCurrentCell(\n\t\t\tint index )\n\t{\n\t}",
"public int getColumn() {\n return col;\n }",
"public int getCol() {\n\t\t\treturn col;\n\t\t}",
"public int getColumn() {\n return mCol;\n }",
"public void setColumnName(String columnName);",
"public void setColumn(int column) {\n setRowAndColumn(row, column);\n }",
"public int getOrigCol() {\n return origCol;\n }",
"public int[] getCol() { return _col; }",
"public int getColumn() {\n\t\t\treturn column;\n\t\t}",
"public void setColumn(char column) {\n\t\tthis.column = column;\n\t}",
"public abstract int getColumn();",
"public int getColumn() {\r\n\t\treturn column;\r\n\t}",
"public final int getColumn() {\n return column;\n }",
"public int getColumn();",
"public int getColumn() {\n\t\treturn column;\n\t}",
"public int col() {\r\n\t\treturn col;\r\n\t}",
"@Override\n\tpublic void addCol() {\n\t\tif(this.numRows == 0){\n\t\t\tthis.numRows++;\n\t\t}\n\t\tthis.numCols++;\n\t}",
"@Override\n\tpublic int getColumn() {\n\t\treturn delegate.getColumn();\n\t}",
"public int getColumn()\n\t{\n\t\treturn col;\n\t}",
"public void setColumnName(String newVal) {\n if ((newVal != null && this.columnName != null && (newVal.compareTo(this.columnName) == 0)) || \n (newVal == null && this.columnName == null && columnName_is_initialized)) {\n return; \n } \n this.columnName = newVal; \n\n columnName_is_modified = true; \n columnName_is_initialized = true; \n }",
"public int getRealColIndex() {\n return realColIndex;\n }",
"int atColumn();",
"public abstract void newColumn();",
"public int getColumnNumber() {\n return column;\n }",
"public int markedCol() {\r\n return markedCol;\r\n }",
"Column getCol();",
"public int getPositionColumn(){return this.positionColumn;}",
"public Builder setColumn(\n int index, com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column value) {\n if (columnBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureColumnIsMutable();\n column_.set(index, value);\n onChanged();\n } else {\n columnBuilder_.setMessage(index, value);\n }\n return this;\n }",
"@Override\n public int getColChange() {\n return colChange;\n }",
"public String getColumnone() {\n return columnone;\n }",
"public void setColumn(String column, int i)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n data.put(canonicalize(column), new Integer(i));\n }",
"@Override\n\tpublic void setColumnForMove(int col) {\n\t\tthis.dropCol = col;\n\t}",
"int getCol();",
"public int getColumn()\n\t\t{\n\t\t\treturn m_col;\n\t\t}",
"public String getColumnName() {\n return this.columnName;\n }",
"@Override\r\n\tpublic void updateNbCol() {\r\n\t\treturn;\r\n\t}",
"private void updateCurrentColumns(int oldIndex, int newIndex) {\r\n TableColumn movedColumn = tableColumns.elementAt(oldIndex);\r\n int oldPosition = currentColumns.indexOf(movedColumn);\r\n TableColumn targetColumn = tableColumns.elementAt(newIndex);\r\n int newPosition = currentColumns.indexOf(targetColumn);\r\n currentColumns.remove(oldPosition);\r\n currentColumns.add(newPosition, movedColumn);\r\n \r\n }",
"int getColumn();",
"public void setColumn(ColumnIdentifier column) {\n this.column = column;\n }",
"public void setXColumn(int columnIndex) {\n\t\t\tthis.xColumn = columnIndex;\n\t\t}",
"public void setIndex(int rowOrCol) {\n index = rowOrCol;\n }",
"public String getColumnName() {\n return columnName; \n }",
"public void setColumns(ArrayList tmp) {\n this.columns = tmp;\n }",
"protected void setTableColumn(String column)\n\t\t{\n\t\t\tColumn = column ;\n\t\t}"
] |
[
"0.6965139",
"0.68579876",
"0.6799187",
"0.6651481",
"0.66236967",
"0.6484741",
"0.6484741",
"0.64512247",
"0.64483756",
"0.64241326",
"0.6389189",
"0.6379283",
"0.63568085",
"0.6350424",
"0.63226503",
"0.63154244",
"0.63127977",
"0.63090444",
"0.62848216",
"0.62848216",
"0.62384486",
"0.6223661",
"0.6219019",
"0.62085116",
"0.61878496",
"0.6183482",
"0.6181865",
"0.6159959",
"0.61418676",
"0.6118687",
"0.60889626",
"0.6074382",
"0.6062049",
"0.6050678",
"0.6047996",
"0.60196996",
"0.60187644",
"0.5992089",
"0.5989226",
"0.59709674",
"0.59478766",
"0.5929198",
"0.5904295",
"0.5890901",
"0.58797634",
"0.58797634",
"0.58717066",
"0.58700484",
"0.58700484",
"0.58373237",
"0.58368874",
"0.58368874",
"0.5835989",
"0.58334464",
"0.58334464",
"0.58334464",
"0.58299446",
"0.5829818",
"0.58292544",
"0.58175427",
"0.5813884",
"0.57947564",
"0.578632",
"0.57820976",
"0.5780775",
"0.5776726",
"0.57756215",
"0.5768028",
"0.57570446",
"0.57537836",
"0.5747153",
"0.57340705",
"0.572459",
"0.5716906",
"0.571445",
"0.570906",
"0.56679654",
"0.5660575",
"0.5638648",
"0.56312233",
"0.56043166",
"0.55929667",
"0.55805945",
"0.55793047",
"0.55768394",
"0.5556953",
"0.5545206",
"0.5536835",
"0.5531939",
"0.5514674",
"0.55124843",
"0.55106056",
"0.5504594",
"0.5498128",
"0.5496639",
"0.5495348",
"0.54952025",
"0.54949623",
"0.54840165",
"0.54769886"
] |
0.67756426
|
3
|
Read the type for a column at the current index. Do not call on columns that do not require types.
|
Class<?> readConcreteType();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic int getColumnType(int col) throws SQLException {\n\n\t\tif (col <= width && col >= 1) {\n\t\t\tcol--;\n\n\t\t\tString str = table[0][col];\n\t\t\tStringTokenizer token = new StringTokenizer(str, \",\");\n\t\t\tString name = token.nextToken();\n\t\t\tString type = token.nextToken();\n\t\t\t/*\n\t\t\t * possible errors here according . we should check accurately the\n\t\t\t * name of types returned by amr to make sure they match the words\n\t\t\t * here . anyway I wrote them now and can be modified in\n\t\t\t * logartithmic time easily :P :D\n\t\t\t */\n\n\t\t\tif (type.equals(\"double\"))\n\t\t\t\treturn java.sql.Types.DOUBLE;\n\t\t\telse if (type.equals(\"integer\"))\n\t\t\t\treturn java.sql.Types.INTEGER;\n\t\t\telse if (type.equals(\"string\"))\n\t\t\t\treturn java.sql.Types.VARCHAR;\n\t\t\telse if (type.equals(\"boolean\"))\n\t\t\t\treturn java.sql.Types.BOOLEAN;\n\t\t\telse if (type.equals(\"date\"))\n\t\t\t\treturn java.sql.Types.DATE;\n\t\t\telse\n\t\t\t\treturn java.sql.Types.NULL;\n\n\t\t} else\n\t\t\tthrow new SQLException(\"column requested out of table bounds\");\n\n\t}",
"public Column.Type getType();",
"public DataType getColDataType(String columnName) {\n final ColumnDefinition x = this.columns.get(columnName.toLowerCase());\n\n return (x == null) ? null\n : x.getDataType();\n }",
"public StrColumn getType() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"type\", StrColumn::new) :\n getBinaryColumn(\"type\"));\n }",
"public String getColumnDataType(String columnname){\r\n\t\tSystem.out.println(\"getColumnDataType, column name = \"+columnname);\r\n\t\tStatement st = null;\r\n\t\tString result = null;\r\n\t\ttry {\r\n\t\t\tst = conn.createStatement();\r\n\t\t\t\r\n\t\t\tString query = \"select data_type from information_schema.columns where table_name='sales' and column_name = '\"+columnname+\"'\";\r\n\t\t\tResultSet rs = st.executeQuery(query);\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tresult = rs.getString(1);\r\n\t\t\t\tSystem.out.println(\"getColumnDataType, result=\"+result);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\treturn result;\r\n\t\t}\r\n\t\tcatch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tif(st!=null){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tst.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public static int getDataType(int nColIndex)\r\n\t{\r\n\t\treturn m_nDataType[nColIndex];\r\n\t}",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"private ColumnType typeOf(DataType type) {\n switch (type) {\n case _class:\n return ColumnType.nominal;\n case _float:\n return ColumnType.continuous;\n case _order:\n return ColumnType.ordinal;\n default:\n throw new IllegalArgumentException(\"Unknown type: \" + type);\n }\n }",
"public static PDataType getIndexColumnDataType(PColumn dataColumn) throws SQLException {\n PDataType type = getIndexColumnDataType(dataColumn.isNullable(),dataColumn.getDataType());\n if (type == null) {\n throw new SQLExceptionInfo.Builder(SQLExceptionCode.CANNOT_INDEX_COLUMN_ON_TYPE).setColumnName(dataColumn.getName().getString())\n .setMessage(\"Type=\"+dataColumn.getDataType()).build().buildException();\n }\n return type;\n }",
"public int getColumnType(int position) {\n return columns[position].getType();\n }",
"protected abstract DTDataTypes52 getDataType(C column);",
"public Object getExtensionType(String columnName) {\n FieldVector vector = table.getVector(columnName);\n return vector.getObject(rowNumber);\n }",
"public String getType(int fieldIndex)\t// fieldIndex same as column number in file\n\t{\n\t\treturn recordMap.get(fieldIndex).type;\n\t}",
"@Override\n\tpublic String getColumnTypeName(int arg0) throws SQLException {\n\t\treturn tMeta[0].colType(arg0);\n\t}",
"@Override\r\n\tpublic String getType() {\n\t\treturn \"column\";\r\n\t}",
"private static String getColumnType(String columnValue) {\n\t\ttry {\r\n\t\t\tInteger.parseInt(columnValue);\r\n\t\t\treturn \"INTEGER\";\r\n\t\t} catch (Throwable error) {}\r\n\t\t// then, try to parse it as a float\r\n\t\ttry {\r\n\t\t\tDouble.parseDouble(columnValue);\r\n\t\t\treturn \"REAL\";\r\n\t\t} catch (Throwable error) {}\r\n\t\t// otherwise, it's a text column\r\n\t\treturn \"TEXT\";\r\n\t}",
"public Class<?>[] getColumnTypes();",
"public String getColumnType(int column_id) {\n\t\t// Start of user code for method getColumnType\n\t\tString getColumnType = \"\";\n\t\treturn getColumnType;\n\t\t// End of user code\n\t}",
"public String getColType() {\r\n\t\treturn colType;\r\n\t}",
"RelDataType getColumnType(String sql);",
"public Type getFieldType(int i) throws NoSuchElementException {\n if(i < 0 || i >= getNumFields()) {\n throw new NoSuchElementException();\n }\n return columns.get(i).getType();\n }",
"@Override\n\tpublic int getType() {\n\t\treturn _expandoColumn.getType();\n\t}",
"@Override\r\n public Class getColumnClass(int column) {\r\n return getValueAt(0, column).getClass();\r\n }",
"public LuaObject getcoltypes() throws SQLException\n {\n L.newTable();\n LuaObject table = L.getLuaObject(-1);\n \n ResultSetMetaData md = rs.getMetaData();\n \n for (int i = 1; i <= md.getColumnCount(); i++)\n {\n String name = md.getColumnTypeName(i);\n \n L.pushNumber(i);\n L.pushString(name);\n L.setTable(-3);\n }\n L.pop(1);\n \n return table;\n }",
"public Class<?> getColumnClass(int columnIndex) {\r\n return this.table.getSchema().getColumnType(columnIndex);\r\n }",
"public int getType(int index) {\n return typeOffsetList.get(index).type;\n }",
"public char returnCellType(int row, int column) {\n return myMatrix[row][column];\n }",
"public int getColumnType(Connection con, String table) throws SQLException {\r\n if (databaseColumnType == Types.NULL) {\r\n // For the sake of compatibility, always retrieve meta data with capitalized table and column names\r\n // first and afterwards (for Postgres) with lower-cased names\r\n try {\r\n databaseColumnType = selectDataType(con, table.toUpperCase(), databaseFieldName.toUpperCase());\r\n }\r\n catch(SQLException sqlx) {\r\n databaseColumnType = selectDataType(con, table.toLowerCase(), databaseFieldName.toLowerCase());\r\n }\r\n }\r\n return databaseColumnType;\r\n }",
"public Class getColumnClass(int column)\n\t {\n\t return getValueAt(0, column).getClass();\n\t }",
"@Override\r\n\t\t\tpublic Class getColumnClass(int column)\r\n\t\t\t{\r\n\t\t\t\treturn getValueAt(0, column).getClass();\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic Class getColumnClass(int column)\r\n\t\t\t{\r\n\t\t\t\treturn getValueAt(0, column).getClass();\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic Class getColumnClass(int column)\r\n\t\t\t{\r\n\t\t\t\treturn getValueAt(0, column).getClass();\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic Class getColumnClass(int column)\r\n\t\t\t{\r\n\t\t\t\treturn getValueAt(0, column).getClass();\r\n\t\t\t}",
"public static int getColumnType(String colClassName) {\n\t\tint type = 0;\n\n\t\tif (colClassName.equals(\"java.util.Date\")) {\n\t\t\treturn 3;\n\t\t}\n\t\tif (colClassName.equals(\"java.sql.Date\")) {\n\t\t\treturn 3;\n\t\t}\n\t\tif (colClassName.equals(\"java.sql.Timestamp\")) {\n\t\t\treturn 3;\n\t\t}\n\t\tif (colClassName.equals(\"java.sql.Time\")) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tif (colClassName.equals(\"java.lang.Number\")) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (colClassName.equals(\"java.math.BigDecimal\")) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (colClassName.equals(\"java.math.BigInteger\")) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (colClassName.equals(\"java.lang.Byte\")) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (colClassName.equals(\"java.lang.Double\")) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (colClassName.equals(\"java.lang.Float\")) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (colClassName.equals(\"java.lang.Integer\")) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (colClassName.equals(\"java.lang.Long\")) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (colClassName.equals(\"java.lang.Short\")) {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn type;\n\t}",
"@Override\r\n\t@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tpublic Class getColumnClass(int columna) {\r\n\t\treturn getValueAt(0, columna).getClass();\r\n\t}",
"public int getType(int index) {\n\treturn(type[index]);\n }",
"com.google.cloud.datacatalog.FieldType getType();",
"public static PDataType getIndexColumnDataType(boolean isNullable, PDataType dataType) {\n if (dataType == null || !isNullable || !dataType.isFixedWidth()) {\n return dataType;\n }\n // for fixed length numeric types and boolean\n if (dataType.isCastableTo(PDecimal.INSTANCE)) {\n return PDecimal.INSTANCE;\n }\n // for CHAR\n if (dataType.isCoercibleTo(PVarchar.INSTANCE)) {\n return PVarchar.INSTANCE;\n }\n\n if (PBinary.INSTANCE.equals(dataType)) {\n return PVarbinary.INSTANCE;\n }\n throw new IllegalArgumentException(\"Unsupported non nullable type \" + dataType);\n }",
"ColumnAffinityType getColumnType();",
"public final void mT__83() throws RecognitionException {\n try {\n int _type = T__83;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:53:7: ( 'show-type-for-column' )\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:53:9: 'show-type-for-column'\n {\n match(\"show-type-for-column\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public int getType() throws SQLException {\n\n try {\n debugCodeCall(\"getType\");\n checkClosed();\n return stat == null ? ResultSet.TYPE_FORWARD_ONLY : stat.resultSetType;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public int getColumnType() {\n return (this.option >> 6) & 3;\n }",
"@Override public Class<?> getColumnClass(int iColumnIndex)\r\n {\r\n Class<?> cReturn = String.class;\r\n\r\n return cReturn;\r\n }",
"public Class<?> getPropertyType(int row) {\n return tableModel.getPropertyType(row);\n }",
"public int getFieldType(int nFieldIndex) {\n\treturn 0;\n}",
"public int getFieldType( String fsDocComp, String fsDocFld )\n {\n VSMetaQuery loMetaQry ;\n Session loSession = getSession() ;\n\n try\n {\n loMetaQry = AMSDataObject.constructMetaQueryFromMetaInfoTable( fsDocComp, loSession ) ;\n } /* end try */\n catch( Exception foExp )\n {\n loMetaQry = null ;\n loMetaQry = getMetaQuery( fsDocComp, loSession.getPackageName() ) ;\n } /* end catch( Exception foExp ) */\n\n if ( loMetaQry != null )\n {\n VSMetaColumn loMetaCol = loMetaQry.getMetaColumn( fsDocFld ) ;\n\n if ( loMetaCol != null )\n {\n return loMetaCol.getColumnType() ;\n } /* end if ( loMetaCol != null ) */\n } /* end if ( loMetaQry != null ) */\n\n return DataConst.NULL ;\n }",
"@Override\n\tpublic String getColumnClassName(int arg0) throws SQLException {\n\t\treturn tMeta[0].colType(arg0-1);\n\t}",
"public TypeColis getTypeColis() {\r\n\t\treturn typeColis;\r\n\t}",
"public String getIndexType()\n {\n if (this.indexType == null) {\n try {\n this.getMySQLTableStatus();\n } catch (DBException dbe) {\n // continue below\n }\n // \"this.indexType\" should be set (but possibly \"?\" if error)\n if (this.indexType == null) {\n // still null? set to \"?\"\n this._setIndexType(\"?\");\n }\n }\n return this.indexType;\n }",
"public Class<?> getColumnClass(int column) {\r\n if (_debugTable == null) {\r\n return String.class ;\r\n } else {\r\n return getValueAt(0, column).getClass();\r\n }\r\n }",
"public String getSQLDataType(int displayType, String columnName, int fieldLength) {\n\t\treturn null;\n\t}",
"@Override\n public Class getColumnClass(int c) {\n return getValueAt(0, c).getClass();\n }",
"public Type getFieldType(String name) throws NoSuchElementException {\n return getFieldType(getIndexFromName(name));\n }",
"protected static int columnFromString(String sType)\n {\n if (sType.equals(VALUE_GLOBAL))\n {\n return COL_GLOBAL;\n }\n else if (sType.equals(VALUE_COLCALC))\n {\n return COL_CALC;\n }\n else if (sType.equals(VALUE_METHOD))\n {\n return COL_METHOD;\n }\n else if (sType.equals(VALUE_KEY))\n {\n return COL_KEY;\n }\n else if (sType.equals(\"\"))\n {\n return COL_ATTRIB;\n }\n else if (sType.equals(VALUE_ATTRIB))\n {\n return COL_ATTRIB;\n }\n return COL_ERR;\n }",
"public void setColType(String colType) {\r\n\t\tthis.colType = colType == null ? null : colType.trim();\r\n\t}",
"public String getCellType() {\n return this.cellType;\n }",
"private int getLikelyDataType(int[][] typeCounts, int colNum) {\n int[] colArray = typeCounts[colNum];\n int maxIndex = 0;\n int i = 1;\n for (; i < colArray.length; i++) {\n if (colArray[i] > colArray[maxIndex])\n maxIndex = i;\n }\n\n return maxIndex;\n }",
"Object getColumnValue(int colIndex);",
"public Class<?> getColumnClass(int column) {\r\n\tswitch (column){\r\n\t\tcase COLUMN_NAME:{\r\n\t\t\treturn String.class;\r\n\t\t}\r\n\t\tcase COLUMN_DESCRIPTION:{\r\n\t\t\treturn String.class;\r\n\t\t}\r\n\t\tcase COLUMN_UNIT:{\r\n\t\t\treturn String.class;\r\n\t\t}\r\n\t\tcase COLUMN_VALUE:{\r\n\t\t\treturn ScopedExpression.class;\r\n\t\t}\r\n\t\tdefault:{\r\n\t\t\treturn Object.class;\r\n\t\t}\r\n\t}\r\n}",
"java.lang.String getDataType();",
"public Class<?> getFieldType( int i ) {\n return entityMetaData.getFieldType( i );\n }",
"@Override\n public Class<?> getColumnClass(int columnIndex) {\n switch(columnTypes[columnIndex]) {\n case TEXT_COL:\n return String.class;\n\n case CURR0_COL:\n case CURR2_COL:\n return Double.class;\n\n case PERCENT_COL:\n return Double.class;\n\n default:\n return String.class;\n }\n }",
"@Override\n public Class getColumnClass(int c) {\n // has any data ?\n // if not, return String class as default\n if (this.getRowCount()==0){\n return String.class;\n }\n \n return getValueAt(0, c).getClass();\n }",
"AlgDataType getRowType();",
"public TaskPage checkTypColumn() throws InterruptedException, IOException {\n\n List<WebElement> totalRows = driver.findElements(By.xpath(\"//*[@id='grid']//table//tr[*]/td[9]\"));\n waitUntilListIsLoaded(totalRows);\n\n for (int row = 1; row <= totalRows.size(); row++) {\n // Fetch the text of 'typ' column\n String typ = driver.findElement(By.xpath(\"//*[@id='grid']//table//tr[\"+row+\"]/td[9]\")).getText();\n Assert.assertEquals(typ,\"Bug\");\n System.out.println(\"Row \"+row+\" data is \"+typ);\n }\n\n return this;\n }",
"public static void loadColumn(ColumnRef columnRef) throws Exception {\n\t\t// Check whether column is already loaded\n\t\tif (!colToData.containsKey(columnRef)) {\n\t\t\tlong startMillis = System.currentTimeMillis();\n\t\t\t// Get column information from catalog\n\t\t\tColumnInfo column = CatalogManager.getColumn(columnRef);\n\t\t\tlog(\"Loaded column meta-data: \" + column.toString());\n\t\t\t// Read generic object from file\n\t\t\tString dataPath = PathUtil.colToPath.get(column);\n\t\t\tObject object = DiskUtil.loadObject(dataPath);\t\n\t\t\t// Cast object according to column type\n\t\t\tJavaType javaType = TypeUtil.toJavaType(column.type);\n\t\t\tlog(\"Column data type:\\t\" + javaType);\n\t\t\tswitch (javaType) {\n\t\t\tcase INT:\n\t\t\t\tcolToData.put(columnRef, (IntData)object);\n\t\t\t\tbreak;\n\t\t\tcase LONG:\n\t\t\t\tcolToData.put(columnRef, (LongData)object);\n\t\t\t\tbreak;\n\t\t\tcase DOUBLE:\n\t\t\t\tcolToData.put(columnRef, (DoubleData)object);\n\t\t\t\tbreak;\n\t\t\tcase STRING:\n\t\t\t\tcolToData.put(columnRef, (StringData)object);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// Generate statistics for output\n\t\t\tif (LoggingConfig.BUFFER_VERBOSE) {\n\t\t\t\tlong totalMillis = System.currentTimeMillis() - startMillis;\n\t\t\t\tSystem.out.println(\"Loaded \" + columnRef.toString() + \n\t\t\t\t\t\t\" in \" + totalMillis + \" milliseconds\");\n\t\t\t}\n\t\t\t// Generate debugging output\n\t\t\tlog(\"*** Column \" + columnRef.toString() + \" sample ***\");\n\t\t\tint cardinality = colToData.get(columnRef).getCardinality();\n\t\t\tint sampleSize = Math.min(10, cardinality);\n\t\t\tfor (int i=0; i<sampleSize; ++i) {\n\t\t\t\tswitch (column.type) {\n\t\t\t\tcase STRING_CODE:\n\t\t\t\t\tint code = ((IntData)object).data[i];\n\t\t\t\t\tlog(dictionary.getString(code));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tlog(\"******\");\n\t\t}\n\t}",
"private Class[] typifyCells() {\n int ncol = ((List) rows.get( 0 )).size();\n int nrow = rows.size();\n Class[] classes = new Class[ ncol ];\n \n /* For each column in the table, go through each row and see what\n * is the most restrictive datatype that all rows are compatible \n * with. */\n for ( int icol = 0; icol < ncol; icol++ ) {\n boolean maybeBoolean = true;\n boolean maybeInteger = true;\n boolean maybeFloat = false;\n boolean maybeDouble = true;\n boolean maybeLong = true;\n for ( Iterator it = rows.iterator(); it.hasNext(); ) {\n List row = (List) it.next();\n String value = (String) row.get( icol );\n if ( value == null || value.length() == 0 ) {\n continue;\n }\n boolean done = false;\n if ( ! done && maybeBoolean ) {\n if ( value.equalsIgnoreCase( \"false\" ) ||\n value.equalsIgnoreCase( \"true\" ) ||\n value.equalsIgnoreCase( \"f\" ) ||\n value.equalsIgnoreCase( \"t\" ) ) {\n done = true;\n }\n else {\n maybeBoolean = false;\n }\n }\n if ( ! done && maybeInteger ) {\n try {\n Integer.parseInt( value );\n done = true;\n }\n catch ( NumberFormatException e ) {\n maybeInteger = false;\n }\n }\n if ( ! done && maybeFloat ) {\n try {\n Float.parseFloat( value );\n done = true;\n }\n catch ( NumberFormatException e ) {\n maybeFloat = false;\n }\n }\n if ( ! done && maybeDouble ) {\n try {\n Double.parseDouble( value );\n done = true;\n }\n catch ( NumberFormatException e ) {\n maybeDouble = false;\n }\n }\n if ( ! done && maybeLong ) {\n try {\n Long.parseLong( value );\n done = true;\n }\n catch ( NumberFormatException e ) {\n maybeLong = false;\n }\n }\n }\n \n /* Set the type we will use, and an object which can convert from\n * a string to the type in question. */\n abstract class Converter {\n abstract Object convert( String value);\n }\n Converter conv;\n Class clazz;\n if ( maybeBoolean ) {\n clazz = Boolean.class;\n conv = new Converter() {\n Object convert( String value ) {\n char v1 = value.charAt( 0 );\n return ( v1 == 't' || v1 == 'T' ) ? Boolean.TRUE \n : Boolean.FALSE;\n }\n };\n }\n else if ( maybeInteger ) {\n clazz = Integer.class;\n conv = new Converter() {\n Object convert( String value ) {\n return new Integer( Integer.parseInt( value ) );\n }\n };\n }\n else if ( maybeFloat ) {\n clazz = Float.class;\n conv = new Converter() {\n Object convert( String value ) {\n return new Float( Float.parseFloat( value ) );\n }\n };\n }\n else if ( maybeDouble ) {\n clazz = Double.class;\n conv = new Converter() {\n Object convert( String value ) {\n return new Double( Double.parseDouble( value ) );\n }\n };\n }\n else if ( maybeLong ) {\n clazz = Long.class;\n conv = new Converter() {\n Object convert( String value ) {\n return new Long( Long.parseLong( value ) );\n }\n };\n }\n else {\n clazz = String.class;\n conv = new Converter() {\n Object convert( String value ) {\n return value;\n }\n };\n }\n classes[ icol ] = clazz;\n \n /* Do the conversion for each row. */\n for ( Iterator it = rows.iterator(); it.hasNext(); ) {\n List row = (List) it.next();\n String value = (String) row.get( icol );\n if ( value == null || value.length() == 0 ) {\n row.set( icol, null );\n }\n else {\n row.set( icol, conv.convert( value ) );\n }\n }\n }\n \n /* Return the types. */\n return classes;\n }",
"@Override\n public Class<?> getColumnClass(int aColumn) {\n return model.getColumnClass(aColumn); \n }",
"public Map<String, Integer> getColumnTypesForQuery(String query) {\n LOG.error(\"This database does not support free-form query column types.\");\n return null;\n }",
"public Class getColumnClass(int column) throws IllegalStateException{\n \n if(!connectedToDatabase)\n throw new IllegalStateException(\"Not Connected to database\");\n \n //determine Java class of column\n try\n {\n String className = metaData.getColumnClassName(column+1);\n \n //return Class object that represents classname\n return Class.forName(className);\n \n }catch(Exception exception){\n exception.printStackTrace();\n }\n \n return Object. class;//if problems occur above, assume type Objevt \n }",
"int getDataType();",
"public Type get(int index);",
"IndexType type();",
"public FieldType getType();",
"void checkType(int i, DataType.Name name) {\n DataType defined = getType(i);\n if (name != defined.getName())\n throw new InvalidTypeException(String.format(\"Column %s is of type %s\", getName(i), defined));\n }",
"public String getType() {\n return types.get(index);\n }",
"public CellDataTypeEnum getDataType() {\n return dataType;\n }",
"@Override\n public String getTypeName(String name) {\n boolean isArray = true;\n if (name.startsWith(\"$\")) {\n isArray = false;\n name = name.substring(1);\n }\n int col = Util.findColumn(model, name);\n if (col == -1) {\n return null;\n }\n\n if (!isArray && Number.class.isAssignableFrom(model.getColumnClass(col))) {\n return \"Number\";\n }\n if (isArray && Number.class.isAssignableFrom(model.getColumnClass(col))) {\n return \"NumberArray\";\n }\n if (!isArray && model.getColumnClass(col) == String.class) {\n return \"String\";\n }\n if (isArray && model.getColumnClass(col) == String.class) {\n return \"StringArray\";\n }\n return null;\n }",
"public int typeIndex();",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\t\tpublic Class getColumnClass(int c) {\n return getValueAt(0, c).getClass();\n }",
"public Class getColumnClass(int c) {\r\n return getValueAt(0, c).getClass();\r\n }",
"private Object get_UDT(int column) {\n byte[] bytes;\n int columnLength =\n (maxFieldSize_ == 0) ? columnDataComputedLength_[column - 1] - 2 :\n Math.min(maxFieldSize_, columnDataComputedLength_[column - 1] - 2);\n bytes = new byte[columnLength];\n //System.arraycopy(dataBuffer_, columnDataPosition_[column - 1] + 2, bytes, 0, bytes.length);\n dataBuffer_.getBytes(columnDataPosition_[column - 1] + 2, bytes);\n\n try {\n ByteArrayInputStream bais = new ByteArrayInputStream( bytes );\n ObjectInputStream ois = new ObjectInputStream( bais );\n return ois.readObject();\n } catch (IOException | ClassNotFoundException e) {\n throw new IllegalStateException(\"SQLState.NET_MARSHALLING_UDT_ERROR\", e);\n }\n }",
"public final void mT__126() throws RecognitionException {\n try {\n int _type = T__126;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:96:8: ( 'column-meta-type' )\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:96:10: 'column-meta-type'\n {\n match(\"column-meta-type\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public boolean isSetColType() {\n return this.colType != null;\n }",
"java.lang.String getColumn();",
"private TokenType peekType(int index) {\n return peekToken(index).type;\n }",
"public int getDataType();",
"public ScGridColumn<AcActionAutoCorrectedLog> newActualTypeColumn()\n {\n return newActualTypeColumn(\"Actual Type\");\n }",
"public abstract Map<String, Integer> getColumnTypes(String tableName);",
"protected AbstractType parseType(String type) throws IOException\n {\n try\n {\n // always treat counters like longs, specifically CCT.compose is not what we need\n if (type != null && type.equals(\"org.apache.cassandra.db.marshal.CounterColumnType\"))\n return LongType.instance;\n return TypeParser.parse(type);\n }\n catch (ConfigurationException e)\n {\n throw new IOException(e);\n }\n catch (SyntaxException e)\n {\n throw new IOException(e);\n }\n }",
"Column getCol();",
"void checkColumnType(\n String sql,\n String expected);",
"private native int getIndexType(long cObject);",
"@Override\n\tpublic void setType(int type) {\n\t\t_expandoColumn.setType(type);\n\t}",
"public int getType() throws SQLException\n {\n return m_rs.getType();\n }",
"public int findDataColumnIndex(String varName) throws NoSuchFieldException {\n\t\tint columnIdx = -1;\n\t\tfor (int i = 0; i < numDataCols; i++ ) {\n\t\t\tif ( dataTypes[i].typeNameEquals(varName)) {\n\t\t\t\tcolumnIdx = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n//\t\tif ( columnIdx == -1 ) {\n//\t\t\tthrow new NoSuchFieldException(\"No standard type found for \" + varName);\n//\t\t}\n\t\treturn columnIdx;\n\t}",
"public Object getExtensionType(int vectorIndex) {\n FieldVector vector = table.getVector(vectorIndex);\n return vector.getObject(rowNumber);\n }",
"public static String getTypeFromUri(Uri uri) {\n String s = uri.getQueryParameter(COLUMN_TYPE);\n return s;\n }",
"public interface Column extends Field {\n\n\t/**\n\t * Get the index of the column within the tabular data set. This is\n\t * always 1 based. If a value of 0 is returned that is interpreted as\n\t * this column does not a fixed position and will be assigned an index.\n\t * \n\t * @return The index.\n\t */\n\tpublic int getIndex();\n\t\n}",
"public int getFieldType(String strFieldName) {\n\treturn 0;\n}"
] |
[
"0.7202591",
"0.71767557",
"0.6646776",
"0.66139096",
"0.6606232",
"0.656847",
"0.65040344",
"0.65040344",
"0.64212793",
"0.63784194",
"0.62745476",
"0.62600034",
"0.620192",
"0.6191813",
"0.618557",
"0.61560786",
"0.6094033",
"0.60898256",
"0.6020581",
"0.60053974",
"0.59860235",
"0.58942384",
"0.58877844",
"0.58866817",
"0.58239436",
"0.5816127",
"0.5787984",
"0.57804453",
"0.57675153",
"0.57285833",
"0.5727716",
"0.5727716",
"0.5727716",
"0.5727716",
"0.57142943",
"0.57002085",
"0.568042",
"0.5655592",
"0.5639735",
"0.5633855",
"0.5629494",
"0.56205237",
"0.5576969",
"0.55680466",
"0.5557058",
"0.55468404",
"0.5541788",
"0.55056",
"0.55050594",
"0.54981387",
"0.54957587",
"0.54853785",
"0.5473767",
"0.54659665",
"0.5455766",
"0.5453762",
"0.54299617",
"0.5416471",
"0.539543",
"0.5393547",
"0.537785",
"0.5368629",
"0.53485507",
"0.53336966",
"0.5329334",
"0.53074443",
"0.53069896",
"0.5305408",
"0.5293788",
"0.5289237",
"0.5283015",
"0.52577364",
"0.5250066",
"0.5245017",
"0.524386",
"0.52398",
"0.5236665",
"0.52249414",
"0.5224075",
"0.5223548",
"0.5220205",
"0.52002776",
"0.51929444",
"0.51918083",
"0.51856565",
"0.5181442",
"0.5174075",
"0.5172694",
"0.5165818",
"0.5164604",
"0.51577836",
"0.51545787",
"0.5154228",
"0.5151211",
"0.5151007",
"0.51494604",
"0.5148024",
"0.5134361",
"0.5130244",
"0.5129856",
"0.51199764"
] |
0.0
|
-1
|
Read the current repetition count at the current index.
|
int readRepetitionCount();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void writeRepetitionCount(int count);",
"int getRepeatCount();",
"public int currentCount () {\n return count;\n }",
"public int getRepeatCount()\n\t{\n\t\treturn repeatCnt;\n\t}",
"public int countRess()\n {\n int nbRess = 0;\n pw.println(13);\n try\n {\n nbRess = Integer.parseInt(bis.readLine()) ;\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return nbRess ;\n }",
"public int getNbr_read() {\r\n\t\treturn nbrRead;\r\n\t}",
"public int getCount(){\r\n return sequence.getValue();\r\n }",
"public long getReadCounter () {\n\t\treturn readCounter;\n\t}",
"public synchronized int getCount () {\n int c = count;\n count = 0;\n return c;\n }",
"@java.lang.Override\n public int getRepeatCount() {\n return repeatCount_;\n }",
"@java.lang.Override\n public int getRepeatCount() {\n return repeatCount_;\n }",
"public int getcounter() {\n\t\treturn counter;\r\n\t}",
"public long getCount() {\n return counter.get();\n }",
"public int counter (){\n return currentID;\n }",
"public int GetNewIndex() {\n int count = 0;\n try {\n Statement stmt = Con.createStatement();\n String query = \"SELECT COUNT(qora) AS REGULAR_COUNT FROM dqs_qanda WHERE LENGTH(content) < 2\";\n ResultSet rs = stmt.executeQuery(query);\n while(rs.next()) {\n count = rs.getInt(\"REGULAR_COUNT\");\n }\n }\n catch (Exception e) {\n System.out.println(e.getMessage());\n }\n return count;\n }",
"public abstract int getCntRod();",
"public int getCount()\r\n {\r\n return counts.peekFirst();\r\n }",
"@Override\n\tpublic int getCounter() {\n\t\treturn counter;\n\t}",
"public int getRepeat() {\n return repeat;\n }",
"public int getCounter() {\r\n return counter;\r\n }",
"protected abstract int readInternal(int index);",
"public int getCounter() {\n return counter;\n }",
"void incrementLinesRead();",
"public int counter()\n {\n if(count<=825){\n return count++;\n }\n else{ \n count = 0;\n return count;\n }\n }",
"public int getCount() {\n lock.lock();\n try {\n System.out.println(Thread.currentThread().getName() + \" gets Count: \" + count.incrementAndGet());\n return count.intValue();\n } finally {\n lock.unlock();\n }\n }",
"int readerIndex();",
"public static int getCounter() {return counter;}",
"public int getCounter()\n {\n return counter;\n }",
"public synchronized int getCount()\n\t{\n\t\treturn count;\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 String getCounter() {\n counter = Integer.valueOf(counterInt++).toString();\n return counter;\n }",
"public int nextInt() {\n int temp = results.get(index);\n index = index + 1;\n System.out.println(index);\n return temp;\n }",
"public int getCount(int i){\n int c = 0;\n if(this.counts.size() >= i){\n c = Integer.parseInt(this.counts.get(i));\n }\n return c;\n }",
"public Integer getCounter() {\n return counter;\n }",
"public int getCurrentCounter() {\n return currentCounter;\n }",
"static IterV<String, Integer> counter() {\n return cont(count.f(0));\n }",
"public void incrementCount() {\n count++;\n }",
"int getReaultCount();",
"public int getRemaining(){\n\t\treturn count+1;\n\t}",
"public long getNumberOfPatternOccurrences() {\n if(!hasFinished()) {\n throw new IllegalArgumentException(\"the recompression is not jet ready.\");\n }\n\n S terminal = slp.get(getPattern().getLeft(), 1);\n return getPatternOccurrence(terminal).get(getText());\n }",
"public void incrementCount() {\n\t\tcount++;\n\t}",
"protected long getRecordNumber() {\n\t\treturn _nextRecordNumber.getAndIncrement();\n\t}",
"int getInCount();",
"void incrementCount();",
"@Override\n public Integer get() {\n return ++counter;\n }",
"public synchronized int getCount(){\n return count;\n }",
"public int getRetryCounter() {\n return retryCounter;\n }",
"public int count() {\n return this.count;\n }",
"public Integer getCount() {\n return count;\n }",
"public String getCount() {\r\n\t\treturn this.count;\r\n\t}",
"public int getCurrRuptures();",
"int count() {\n return index.capacity() / 24;\n }",
"public long getCount() {\n return count_;\n }",
"public Integer getCount() {\n return this.count;\n }",
"public Integer getCount() {\n\t\treturn count;\n\t}",
"public Integer getCount() {\n\t\treturn count;\n\t}",
"public int count() throws TrippiException {\n try {\n int n = 0;\n while (hasNext()) {\n next();\n n++;\n }\n return n;\n } finally {\n close();\n }\n }",
"public long getCount() {\n return count.get();\n }",
"public int repeated() {\n this.order();\n int counter = 1;\n int currentCounter = 1;\n for (int i = 0; i < this.size() - 1; i++) {\n if(this.getListaAt(i).x == this.getListaAt(i + 1).x) {\n currentCounter += 1;\n }\n else {\n if (currentCounter > counter) {\n counter = currentCounter;\n }\n currentCounter = 1;\n }\n }\n if (currentCounter > counter) {\n counter = currentCounter;\n }\n return counter;\n }",
"private int getNum() {\r\n int i = currentNum.incrementAndGet();\r\n if (i < 0)\r\n i = -i;\r\n return i % n;\r\n }",
"public int currentChannelIndex() {\n int i = 0;\n for (YouTubeData data : mChannels) {\n if (data.mChannel.equals(mCurrentChannelID))\n return i;\n\n i++;\n }\n\n DUtils.log(\"should not get here: \" + DUtils.currentMethod());\n return 0;\n }",
"public int getCurSeq() {\n\t\t\n\t\tint seq_read_book = readBookDao.getCurSeq();\n\t\treturn seq_read_book;\n\t}",
"public Integer getCount() {\n return count;\n }",
"public Integer getCount() {\n return count;\n }",
"public Integer getCount() {\n return count;\n }",
"public Integer getCount() {\n return count;\n }",
"public Integer getCount() {\n return count;\n }",
"public Integer getCount() {\n return count;\n }",
"private int nextIndex() {\n return ThreadLocalRandom.current().nextInt(currentIndex, tracks.size());\n }",
"int readCurrentTrackData(int position) {\n return currentTrackData[position].read(position);\n }",
"String getCountInt();",
"private long getSeqNum() throws Exception {\n\t\tSystem.out.println(\"seq: \" + seq);\n\t\tif (seq == 256) {\n\t\t\tseq = 0;\n\t\t}\n\t\treturn seq++;\n\t}",
"public static int returnCount()\n {return counter;}",
"private static void setCounter() {++counter;}",
"public int Rear() {\n if (isEmpty()) {\n return -1;\n }\n return nums[(rear + n - 1) % n];\n }",
"int reps() {\n\tint b[] = new int[64];\n\tint c = 0; /*\n\t* count of squares that are different from the current\n\t* position\n\t*/\n\tint r = 0; /* number of repetitions */\n\n\t/* is a repetition impossible? */\n\tif (fifty <= 3)\n\treturn 0;\n\n\t/* loop through the reversible moves */\n\tfor (int i = hply - 1; i >= hply - fifty - 1; --i) {\n\tif (++b[histDat[i].m.getFrom()] == 0)\n\t--c;\n\telse\n\t++c;\n\tif (--b[histDat[i].m.getTo()] == 0)\n\t--c;\n\telse\n\t++c;\n\tif (c == 0)\n\t++r;\n\t}\n\n\treturn r;\n\t}",
"public void incCount() { }",
"public long getCount()\n\t{\n\t\treturn count;\n\t}",
"public int getOccurNumber() {\n return occurNumber;\n }",
"public void incrementCount(){\n count+=1;\n }",
"public int Rear() {\n if (isEmpty())\n return -1;\n return buf[e];\n }",
"public int read() throws IOException {\n int result = super.read();\n if(iMaxSet) {\n iRemainder--;\n } else {\n iRemainder = available();\n }\n return result;\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}",
"private int calculate(int index) {\n return (head + index) % data.length;\n }",
"public int getRecommentPatientID() {\r\n\t\tint nextPatientID=1000;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tString query= \"SELECT * FROM patients \";\r\n\t\t\tStatement stm= super.getConnection().createStatement();\r\n\t\t\tResultSet results= stm.executeQuery(query);\r\n\t\t\twhile(results.next()) {\r\n\t\t\t\tresults.last();\r\n\t\t\t\tnextPatientID= results.getInt(1);\r\n\t\t\t}\r\n\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\tnextPatientID++;\r\n\t\treturn nextPatientID;\r\n\t}",
"public int getN() {\n return writeResult.getN();\n }",
"public int getCounter(){\n return counter;\n }",
"public long getCount() {\n return count_;\n }",
"public Integer getScannedCount() {\n return this.scannedCount;\n }",
"public int nextValue() {\n\t\tint temp = counter;\n\t\tcounter++;\n\t\treturn temp;\n\t}",
"public int retry() {\r\n\t\treturn ++retryCount;\r\n\t}",
"public int read(int i);",
"public long count() {\n/* 154 */ return this.count;\n/* */ }",
"public int getOCCURSNR() {\n return occursnr;\n }",
"public long count() {\n return this.count;\n }",
"public int getCount() {\n\t\treturn this.countRound;\n\t}",
"public int getMatchIncrement() {\n return getIntegerProperty(\"Increment\");\n }",
"public int count() {\r\n return count;\r\n }",
"public static long count(String path) throws IOException {\n\n Configuration conf = NutchConfiguration.create();\n FileSystem fs = FileSystem.get(conf);\n\n Path file = new Path(path);\n System.out.println(file);\n\n SequenceFile.Reader reader = new SequenceFile.Reader(conf, SequenceFile.Reader.file(file));\n\n Writable key = (Writable)\n ReflectionUtils.newInstance(reader.getKeyClass(), conf);\n Writable value = (Writable)\n ReflectionUtils.newInstance(reader.getValueClass(), conf);\n\n\n //skip rows\n long i = 0;\n\n\n while(reader.next(key, value)) {\n i += 1;\n }\n return i;\n }",
"public long getCount() {\r\n return count;\r\n }"
] |
[
"0.64831483",
"0.62074685",
"0.61263907",
"0.6070297",
"0.591523",
"0.58759665",
"0.5854444",
"0.5818803",
"0.5803186",
"0.57933325",
"0.5783961",
"0.5782083",
"0.5731132",
"0.5705388",
"0.56880397",
"0.5656052",
"0.56450516",
"0.5609614",
"0.5595003",
"0.5551898",
"0.552062",
"0.550739",
"0.5496489",
"0.5494743",
"0.5479608",
"0.5479273",
"0.5473223",
"0.54723996",
"0.54528046",
"0.5452576",
"0.54468495",
"0.5414227",
"0.5392832",
"0.53893983",
"0.5382879",
"0.53797656",
"0.5346445",
"0.5337538",
"0.5329209",
"0.5309525",
"0.52929395",
"0.5289167",
"0.526401",
"0.52600634",
"0.525586",
"0.52456015",
"0.5236613",
"0.52127993",
"0.52074534",
"0.52001554",
"0.52000344",
"0.5198012",
"0.5187132",
"0.51741445",
"0.51724684",
"0.51724684",
"0.51702535",
"0.5168651",
"0.5168607",
"0.5157856",
"0.5150821",
"0.5150102",
"0.5148678",
"0.5148678",
"0.5148678",
"0.5148678",
"0.5148678",
"0.5148678",
"0.5147633",
"0.51420915",
"0.51378596",
"0.51292366",
"0.5127833",
"0.51269364",
"0.5126234",
"0.51254916",
"0.5120377",
"0.5119864",
"0.5117485",
"0.5116056",
"0.5114833",
"0.5113778",
"0.5107465",
"0.5106581",
"0.5099808",
"0.5097397",
"0.5094654",
"0.5091437",
"0.5087075",
"0.50855845",
"0.5085342",
"0.5075578",
"0.5072543",
"0.5071601",
"0.5068956",
"0.50655466",
"0.50648695",
"0.5059763",
"0.50576854",
"0.5056125"
] |
0.79204196
|
0
|
Write bool to current column
|
void writeBool(boolean value);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setBoolean(int index, boolean value) throws SQLException;",
"void writeBoolean(boolean v) throws IOException;",
"@Column(name = \"BOOLEAN_VALUE\", length = 20)\n/* 35 */ public String getBooleanValue() { return this.booleanValue; }",
"public void setColumn(String column, boolean b)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n data.put(canonicalize(column), b ? Boolean.TRUE : Boolean.FALSE);\n }",
"Boolean getBoolean(int col_num);",
"public void updateBoolean(int columnIndex, boolean x) throws SQLException\n {\n m_rs.updateBoolean(columnIndex, x);\n }",
"public void setRequiresTaxCertificate (boolean RequiresTaxCertificate)\n{\nset_Value (COLUMNNAME_RequiresTaxCertificate, Boolean.valueOf(RequiresTaxCertificate));\n}",
"@Override\n public void setBoolean(boolean value) throws SQLException {\n if (possibleCharLength > 4) {\n setString(value ? LONG_TRUE : LONG_FALSE);\n } else if (possibleCharLength >= 1) {\n setString(value ? SHORT_TRUE : SHORT_FALSE);\n }\n }",
"public TupleDesc addBoolean(String name) {\n columns.add(new TupleDescItem(Type.BOOLEAN, name));\n return this;\n }",
"public void updateBoolean(int columnIndex, boolean x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateBoolean(\" + columnIndex + \", \" + x + \");\");\n }\n update(columnIndex, ValueBoolean.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"Boolean getBoolean(String col_name) throws ConnException;",
"public void updateBoolean(String columnName, boolean x) throws SQLException\n {\n m_rs.updateBoolean(columnName, x);\n }",
"protected void writeBooleanValue(boolean v) throws IOException {\n _generator.writeBoolean(v);\n }",
"public void updateBoolean(String columnName, boolean x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateBoolean(\" + quote(columnName) + \", \" + x + \");\");\n }\n update(columnName, ValueBoolean.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void write(boolean b) {\n write(b ? 1 : 0);\n }",
"public boolean getBoolean(int row, int column) {\n return columns[column].getBoolean(row);\n }",
"public void writeBoolean(boolean bool) throws IOException {\n DebugLog.stdoutPrintln(\"\tmarshalling bool\" + bool, DebugLog.BSF_LOG_L3);\n fDataOutputStream.writeBoolean(bool);\n\t}",
"void setBoolean(boolean value);",
"private boolean get_BOOLEAN(int column) {\n // @AGG force Little Endian\n // @AGG In DB2 BOOLEAN columns appear to be encoded as two bytes\n if (metadata.isZos())\n return dataBuffer_.getShort(columnDataPosition_[column - 1]) != 0;\n else\n return dataBuffer_.getShortLE(columnDataPosition_[column - 1]) != 0;\n// if ( SignedBinary.getByte( dataBuffer_, columnDataPosition_[column - 1] ) == 0 )\n// { return false; }\n// else { return true; }\n }",
"public void setTallied(java.lang.Boolean value);",
"public void setBoolean(boolean data, int row, int column) {\n\t\tcolumns[column].setBoolean(data, subset[row]);\n\t}",
"public DBBoolean(Boolean bool) {\n\t\tsuper(bool);\n\t}",
"public void setInDatabase(boolean b) {\n \n }",
"public boolean getBoolean(int columnIndex) throws SQLException\n {\n return m_rs.getBoolean(columnIndex);\n }",
"String byteOrBooleanWrite();",
"void setBoolean(String key, boolean val);",
"public BooleanColumn mapToBooleanColumn(\n String name, Function<? super T, ? extends Boolean> function) {\n BooleanColumn newColumn = BooleanColumn.create(name, size());\n mapInto(function, newColumn);\n return newColumn;\n }",
"boolean getBoolValue();",
"boolean getBoolValue();",
"private void saveBoolean(String paramString, boolean paramBoolean) {\n }",
"public boolean getBoolean();",
"public boolean getBooleanColumn(String column)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n String name = canonicalize(column);\n \n if (isColumnNull(name))\n return false;\n \n Object value = data.get(name);\n \n if (value == null)\n throw new IllegalArgumentException(\"Column \" + column + \" not present\");\n if (!(value instanceof Boolean))\n throw new IllegalArgumentException(\"Value is not a boolean\");\n \n return ((Boolean) value).booleanValue();\n }",
"DataFrame<R,C> mapToBooleans(C colKey, ToBooleanFunction<DataFrameValue<R,C>> mapper);",
"@Override\n\t\tpublic BooleanType toBooleanType() {\n\t\t\treturn new BooleanType(false);\n\t\t}",
"@Override\n\t\tpublic BooleanType toBooleanType() {\n\t\t\treturn new BooleanType(false);\n\t\t}",
"private native void Df1_Write_Boolean(String plcAddress,boolean value) throws Df1LibraryNativeException;",
"public boolean isWritable(int column) throws SQLException {\n\t\t\treturn false;\n\t\t}",
"abstract public boolean getAsBoolean();",
"public boolean getBoolean(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getBoolean\", columnIndex);\n Boolean v = get(columnIndex).getBoolean();\n return v == null ? false : v.booleanValue();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"DataFrame<R,C> mapToBooleans(ToBooleanFunction<DataFrameValue<R,C>> mapper);",
"public void testEditBooleanCellWithOtherColumnOnSameFeatureName() throws Exception {\n final UITableRepresentation table = localSession.getLocalSessionBrowser().perCategory().selectViewpoint(\"read_only_column\").selectRepresentation(\"read_only_column\")\n .selectRepresentationInstance(\"new read_only_column\", UITableRepresentation.class).open();\n // Get the second line, which is actually the first sub-line of the first top-level line.\n SWTBotTreeItem[] items = table.getTable().getAllItems()[0].getItems();\n\n // Check the values before.\n assertEquals(\"newEReference1 : B0\", items[0].cell(0));\n assertEquals(\"false\", items[0].cell(1));\n assertEquals(\"false\", items[0].cell(2));\n\n pressKey(table.getTable(), \"arrow_down\");\n pressKey(table.getTable(), \"arrow_down\");\n pressKey(table.getTable(), \"arrow_right\");\n pressKey(table.getTable(), \"space\");\n\n table.getTable().display.syncExec(new Runnable() {\n public void run() {\n table.getTable().widget.update();\n }\n });\n \n // Check the values after: no change expected, the column through which we tried to do the edition has canEdit = <%false%>\n assertEquals(\"newEReference1 : B0\", items[0].cell(0));\n assertEquals(\"false\", items[0].cell(1));\n assertEquals(\"false\", items[0].cell(2));\n\n }",
"public void sendBool(boolean b) {\n try {\n dOut.writeBoolean(b);\n dOut.flush();\n } catch (IOException e) {\n System.out.println(\"Could not send boolean\");\n e.printStackTrace();\n }\n }",
"@Test\n public void test_column_type_detection_boolean() throws SQLException {\n testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"true\", XSDDatatype.XSDboolean), true, Types.BOOLEAN, Boolean.class.getCanonicalName());\n }",
"public void set(boolean bol);",
"void set(boolean value);",
"void setBit(int index, boolean value);",
"public void putBooleanData(String key, Boolean value) {\n editor.putBoolean(key, value);\n editor.apply();\n }",
"boolean getBoolean();",
"boolean getBoolean();",
"BooleanProperty getOn();",
"public void setProcessed (boolean Processed)\n{\nset_Value (\"Processed\", new Boolean(Processed));\n}",
"boolean boolField(String name, boolean isDefined, boolean value)\n throws NullField, InvalidFieldValue;",
"public void onChanged(Boolean bool) {\n if (bool != null) {\n C41389o oVar = this.f107704a;\n C7573i.m23582a((Object) bool, \"it\");\n oVar.mo102021a(bool.booleanValue());\n }\n }",
"public void setColumnIsScalar(boolean value, int index) {\n columns[index].setIsScalar(value);\n }",
"@Override\n public boolean getBoolean() throws SQLException {\n if (isNull()) return BOOLEAN_NULL_VALUE;\n\n final String trimmedValue = getString().trim();\n return trimmedValue.equalsIgnoreCase(LONG_TRUE) ||\n trimmedValue.equalsIgnoreCase(SHORT_TRUE) ||\n trimmedValue.equalsIgnoreCase(SHORT_TRUE_2) ||\n trimmedValue.equalsIgnoreCase(SHORT_TRUE_3);\n }",
"public BooleanValue(boolean bool) {\r\n this.val = bool;\r\n }",
"public String getBoolput() {\n return boolput;\n }",
"@Specialization(guards = \"isBooleanOrIllegal(frame)\")\n protected boolean writeBoolean(VirtualFrame frame, boolean value) {\n it.getSlot().setKind(FrameSlotKind.Boolean);\n\n frame.setBoolean(it.getSlot(), value);\n return value;\n }",
"public void append(boolean bool)\n\t{\n\t\t// determine the byte to append\n\t\tbyte b = (bool ? TRUE : FALSE);\n\t\t\n\t\t// append the byte\n\t\tappend(b);\n\t}",
"public static void writeBoolean(DataOutputStream dos,Boolean data) throws IOException{\r\n\t\tif(data != null){\r\n\t\t\tdos.writeBoolean(true);\r\n\t\t\tdos.writeBoolean(data.booleanValue());\r\n\t\t}\r\n\t\telse\r\n\t\t\tdos.writeBoolean(false);\r\n\t}",
"public void setBool(String parName, boolean parVal) throws HibException;",
"public void setInverse(Boolean bool) throws IOException {\n writer.write(0x1D);\n writer.write(\"B\");\n writer.write((int) (bool ? 1 : 0));\n writer.flush();\n }",
"public Boolean getSaveByCell() throws IllegalStateException {\r\n errorIfNotCreated(\"saveByCell\");\r\n return getAttributeAsBoolean(\"saveByCell\");\r\n }",
"public Boolean getBooleanAttribute();",
"public void setBoolean(int parameterIndex, boolean x) throws SQLException {\n currentPreparedStatement.setBoolean(parameterIndex, x);\n }",
"public ByteBuf writeBoolean(boolean value)\r\n/* 527: */ {\r\n/* 528:538 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 529:539 */ return super.writeBoolean(value);\r\n/* 530: */ }",
"public ByteBuf setBoolean(int index, boolean value)\r\n/* 265: */ {\r\n/* 266:280 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 267:281 */ return super.setBoolean(index, value);\r\n/* 268: */ }",
"public void updateOrderBoolean(int orderId, String column, boolean newValue) {\r\n int bToInt = 0;\r\n if (newValue)\r\n bToInt = 1;\r\n \r\n String sqlQuery = \"UPDATE orders SET \" + column + \"=?\" + \" WHERE id=?;\";\r\n \r\n System.out.println(sqlQuery);\r\n try {\r\n PreparedStatement p = myConn.prepareStatement(sqlQuery);\r\n \r\n p.setInt(1, bToInt);\r\n p.setInt(2, orderId);\r\n \r\n p.executeUpdate();\r\n } catch(SQLException e) {\r\n System.out.println(e.toString());\r\n }\r\n }",
"void setBooleanProperty(Object name, boolean b) throws JMSException;",
"@Override\n\tpublic void setBool(boolean bool) {\n\t\t/*\n\t\t * Handles the translation of boolean to the internal representation (Color, int, whatever we decide)\n\t\t */\n\t\tint BLACK = 0x000000;\n\t\tint WHITE = 0xFFFFFF;\n\t\tcolor = bool ? BLACK : WHITE;\n\n\t}",
"public void setBoolean(int index, boolean value) throws ArrayIndexOutOfBoundsException\n\t{\n\t\tbytes[index] = (byte) (value ? 1 : 0);\n\t}",
"void setNeedColumnInfo(boolean needColumnInfo);",
"public boolean getBoolean(String columnName) throws SQLException\n {\n return m_rs.getBoolean(columnName);\n }",
"public Boolean asBoolean();",
"public void setShowColumn(Boolean value) {\n this.showColumn = value;\n }",
"private void setIsBinary(boolean value) {\r\n\t \t_isBinary = value;\r\n\t }",
"public String toString() { return this.booleanValue; }",
"public void addColumn(boolean value)\n {\n addColumn(value ? \"X\" : \"\", Element.ALIGN_CENTER, Color.WHITE);\n }",
"private void giveBooleanFunctionForSingleRow(int i) \r\n {\r\n// throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n if(rowBoolean[i].first==0 && rowBoolean[i].second==0)\r\n {\r\n System.out.print(\"A`\");\r\n System.out.print(\"B`\");\r\n }\r\n else if(rowBoolean[i].first==1 && rowBoolean[i].second==1)\r\n {\r\n System.out.print(\"A\");\r\n System.out.print(\"B\");\r\n }\r\n else if(rowBoolean[i].first==0 && rowBoolean[i].second==1)\r\n {\r\n System.out.print(\"A`\");\r\n System.out.print(\"B\");\r\n }\r\n else if(rowBoolean[i].first==1 && rowBoolean[i].second==0)\r\n {\r\n System.out.print(\"A\");\r\n System.out.print(\"B`\");\r\n }\r\n }",
"void xsetString(org.apache.xmlbeans.XmlBoolean string);",
"@Override\n\tpublic boolean isWritable(int arg0) throws SQLException {\n\n\t\treturn true;\n\t}",
"public BooleanPhenotype() {\n dataValues = new ArrayList<Boolean>();\n }",
"public void setBooleanValue(String booleanValue) { this.booleanValue = booleanValue; }",
"@JsProperty void setChecked(boolean value);",
"void setNullable(boolean nullable);",
"private void giveBooleanFunctionForSingleColoumn(int j)\r\n {\r\n// throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n if(coloumnBoolean[j].first==0 && coloumnBoolean[j].second==0)\r\n {\r\n System.out.print(\"C`\");\r\n System.out.print(\"D`\");\r\n }\r\n else if(coloumnBoolean[j].first==1 && coloumnBoolean[j].second==1)\r\n {\r\n System.out.print(\"C\");\r\n System.out.print(\"D\");\r\n }\r\n else if(coloumnBoolean[j].first==0 && coloumnBoolean[j].second==1)\r\n {\r\n System.out.print(\"C`\");\r\n System.out.print(\"D\");\r\n }\r\n else if(coloumnBoolean[j].first==1 && coloumnBoolean[j].second==0)\r\n {\r\n System.out.print(\"C\");\r\n System.out.print(\"D`\");\r\n }\r\n }",
"public boolean getBoolValue() {\n return boolValue_;\n }",
"public Literal setLiteralBoolean(Boolean literalData);",
"public boolean getBoolValue() {\n return boolValue_;\n }",
"boolean readBoolean();",
"public void setMyBool(boolean myBoolIn) {\n myBool = myBoolIn;\n }",
"public boolean getBoolean(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getBoolean\", columnName);\n Boolean v = get(columnName).getBoolean();\n return v == null ? false : v.booleanValue();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public abstract boolean read_boolean();",
"@Override\n public Boolean generateColumn() {\n presenter.appendColumn(editingWrapper().getActionCol52());\n\n return true;\n }",
"public void setValue(boolean value) {\n this.value = value;\n }",
"public String toBooleanValueString(boolean bool) {\n \t\treturn bool ? \"1\" : \"0\";\n \t}",
"@Override\n public boolean getAsBoolean() {\n return this.persistenceCheck.getAsBoolean();\n }",
"public void bindBoolStmt(boolean data, int order) {\n\t\ttry {\n\t\t\tpstmt.setBoolean(order, data);\n\t\t} catch (SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t}\n\t}",
"@Override\n public boolean flag() {\n cell.setState(cell.getFlaggedState());\n return true;\n }",
"void xsetStraight(org.apache.xmlbeans.XmlBoolean straight);"
] |
[
"0.7353457",
"0.6884396",
"0.68000114",
"0.6755161",
"0.66802025",
"0.666419",
"0.6592356",
"0.6591083",
"0.6565173",
"0.6561093",
"0.64967275",
"0.64933276",
"0.646947",
"0.64612436",
"0.64368576",
"0.6436095",
"0.64192873",
"0.6385998",
"0.6385696",
"0.63644075",
"0.63595366",
"0.635311",
"0.6286707",
"0.62025136",
"0.61963177",
"0.6194184",
"0.61800855",
"0.6176597",
"0.6176597",
"0.6170046",
"0.61634254",
"0.6122175",
"0.60863096",
"0.608431",
"0.608431",
"0.6079083",
"0.6071147",
"0.60585207",
"0.6052498",
"0.60512954",
"0.6043649",
"0.6037166",
"0.60351497",
"0.6030322",
"0.6006451",
"0.60014117",
"0.5998558",
"0.599828",
"0.599828",
"0.5997651",
"0.5991601",
"0.59867626",
"0.5983291",
"0.59829324",
"0.597672",
"0.5956271",
"0.595421",
"0.5943189",
"0.5942558",
"0.59424853",
"0.5937109",
"0.5932149",
"0.5925821",
"0.5913457",
"0.59068173",
"0.5888012",
"0.5882052",
"0.5881686",
"0.5880604",
"0.5877922",
"0.5872852",
"0.5865189",
"0.58594203",
"0.583563",
"0.58125687",
"0.58080626",
"0.5807511",
"0.5805298",
"0.5800795",
"0.5793096",
"0.57875425",
"0.5782593",
"0.57815516",
"0.5777816",
"0.57700014",
"0.5765357",
"0.574689",
"0.57395107",
"0.57348",
"0.5729325",
"0.57199025",
"0.57160276",
"0.5712186",
"0.5707407",
"0.5703513",
"0.5698418",
"0.56952596",
"0.5694264",
"0.5687839",
"0.56764823"
] |
0.7298082
|
1
|
Write byte to current column
|
void writeByte(byte value);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setByte(int index, byte value) throws SQLException;",
"public void updateByte(int columnIndex, byte x) throws SQLException\n {\n m_rs.updateByte(columnIndex, x);\n }",
"@Override\n public void setByte(byte value) throws SQLException {\n setString(Byte.toString(value));\n }",
"public void updateByte(String columnName, byte x) throws SQLException\n {\n m_rs.updateByte(columnName, x);\n }",
"@Override\n public void write(int b) throws IOException {\n byte ib = (byte) b;\n long p = df.position();\n // If not at the end yet,\n if (p < df.size()) {\n // Get the current value,\n byte cur_b = df.get();\n // If the value we are inserting is different,\n if (cur_b != ib) {\n // Reposition and put the new value,\n df.position(p);\n df.put(ib);\n// ++change_count;\n }\n }\n // At the end so write the byte,\n else {\n df.put(ib);\n }\n }",
"public void updateByte(int columnIndex, byte x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateByte(\" + columnIndex + \", \" + x + \");\");\n }\n update(columnIndex, ValueByte.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public abstract void writeByte(byte b) throws IOException;",
"public void updateByte(String columnName, byte x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateByte(\" + columnName + \", \" + x + \");\");\n }\n update(columnName, ValueByte.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void setByte(byte data, int row, int column) {\n\t\tcolumns[column].setByte(data, subset[row]);\n\t}",
"void writeByte(int v) throws IOException;",
"private void writeByte(int val) {\n dest[destPos++] = (byte) val;\n }",
"public void updateBytes(int columnIndex, byte x[]) throws SQLException\n {\n m_rs.updateBytes(columnIndex, x);\n }",
"void setBytes(int index, byte[] value) throws SQLException;",
"private void writeByteAt(int pos, int val) {\n dest[pos] = (byte) val;\n }",
"void writeByte(byte[] header, int index, int data) {\n header[index] = (byte) data;\n }",
"public void setByte(int parameterIndex, byte x) throws SQLException {\n currentPreparedStatement.setByte(parameterIndex, x);\n }",
"public void updateBytes(String columnName, byte x[]) throws SQLException\n {\n m_rs.updateBytes(columnName, x);\n }",
"@Override\n public void write(final int byteVal) throws IOException {\n write(new byte[] { (byte) (byteVal & 0xFF) });\n }",
"public void updateBytes(int columnIndex, byte[] x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateBytes(\" + columnIndex + \", x);\");\n }\n update(columnIndex, x == null ? (Value) ValueNull.INSTANCE : ValueBytes.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"@Override\n\tpublic void writeByte(int b) throws IOException {\n\t\t\n\t}",
"@Override\r\n\tpublic Buffer setByte(int pos, byte b) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void WriteByte(byte value)\n\t{\n\t\tthrow new UnsupportedOperationException(\"TarInputStream WriteByte not supported\");\n\t}",
"public abstract void save(LongLongsCol col, DataOutputStream output) throws IOException;",
"public void write(int b) throws IOException {\n/* 54 */ this.appendable.append((char)b);\n/* */ }",
"private static void writeByte(boolean rs, int data) {\n int highData = ((data >>> NIBBLE_SIZE) & NIBBLE_MASK); //Parte Alta do data\n int lowData = (data & NIBBLE_MASK); //Parte Baixa do data\n writeNibble(rs,highData);\n writeNibble(rs,lowData);\n Time.sleep(WRITEBYTE_SLEEP_TIME);\n }",
"void writeChar(char value);",
"@Override\n\tpublic void showByteWrite(ByteBuffer data)\n\t{\n\n\t}",
"public void setColumn(char column) {\n\t\tthis.column = column;\n\t}",
"protected void _setByte(int index, int value)\r\n/* 423: */ {\r\n/* 424:437 */ HeapByteBufUtil.setByte(this.array, index, value);\r\n/* 425: */ }",
"public void updateBytes(String columnName, byte[] x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateBytes(\" + quote(columnName) + \", x);\");\n }\n update(columnName, x == null ? (Value) ValueNull.INSTANCE : ValueBytes.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public boolean writeByte(byte val) {\n try {\n m_DataOutputStream.writeByte(val);\n }\n catch (IOException e) {\n return false;\n }\n return true;\n }",
"@Override\n\tpublic void write(int b) throws IOException{\n\t\tconsoleStream.append(String.valueOf((char)b));\n\t\tconsoleStream.setCaretPosition(consoleStream.getDocument().getLength());\n\t\t\n\t}",
"public void write(int index, UnsignedByte unsignedByte) {\n memory[index] = unsignedByte;\n }",
"public abstract void save(IntIntsCol col, DataOutputStream output) throws IOException;",
"public abstract void save(IntFloatsCol col, DataOutputStream output) throws IOException;",
"@Override\n public void btPutChar(int value) {\n }",
"public void set_byte(byte param) {\n this.local_byte = param;\n }",
"@Override\n public com.google.protobuf.ByteString\n getColumnBytes() {\n Object ref = column_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n column_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public abstract void save(LongIntsCol col, DataOutputStream output) throws IOException;",
"@Override\r\n\tpublic Buffer setUnsignedByte(int pos, short b) {\n\t\treturn null;\r\n\t}",
"private byte[] get_VARCHAR_FOR_BIT_DATA(int column) {\n byte[] bytes;\n int columnLength =\n (maxFieldSize_ == 0) ? columnDataComputedLength_[column - 1] - 2 :\n Math.min(maxFieldSize_, columnDataComputedLength_[column - 1] - 2);\n bytes = new byte[columnLength];\n// System.arraycopy(dataBuffer_, columnDataPosition_[column - 1] + 2, bytes, 0, bytes.length);\n dataBuffer_.getBytes(columnDataPosition_[column - 1] + 2, bytes);\n return bytes;\n }",
"public void setByte(int offset, byte data)\n {\n writeMode(offset + 0xA0000, data);\n }",
"@Override\n protected void writeInternal(int index, int value) {\n\n }",
"@Override\n protected void writeInternal(int index, int value) {\n\n }",
"public byte getByte(int row, int column) {\n return columns[column].getByte(row);\n }",
"@Override\r\n\tpublic synchronized void write(int b)\r\n\t{\r\n\t}",
"public void writedata(byte b) throws Exception{\n ByteBuffer byteBuffer = ByteBuffer.wrap(\"hello\".getBytes(\"UTF-8\"));\n// byteBuffer.flip();\n client.write(byteBuffer);\n byteBuffer.clear();\n client.close();\n\n }",
"public void setBytes(byte[] data, int row, int column) {\n\t\tcolumns[column].setBytes(data, subset[row]);\n\t}",
"public byte getByte(int columnIndex) throws SQLException\n {\n return m_rs.getByte(columnIndex);\n }",
"BinaryArrayReadWrite set(int index, byte x);",
"@Override\r\n\t\t\tpublic void write(int b) throws IOException {\n\t\t\t}",
"final byte getByte(int column) {\n switch (jdbcTypes_[column - 1]) {\n case Types.BOOLEAN:\n return CrossConverters.getByteFromBoolean(get_BOOLEAN(column));\n case Types.SMALLINT:\n int smallInt = get_SMALLINT(column);\n if (smallInt > Byte.MAX_VALUE || smallInt < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + smallInt);\n return (byte) smallInt;\n case Types.INTEGER:\n int i = get_INTEGER(column);\n if (i > Byte.MAX_VALUE || i < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + i);\n return (byte) i;\n case Types.BIGINT:\n long l = get_BIGINT(column);\n if (l > Byte.MAX_VALUE || l < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + l);\n return (byte) l;\n case Types.REAL:\n float f = get_FLOAT(column);\n if (f > Byte.MAX_VALUE || f < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + f);\n return (byte) f;\n case Types.DOUBLE:\n double d = get_DOUBLE(column);\n if (d > Byte.MAX_VALUE || d < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + d);\n return (byte) d;\n case Types.DECIMAL:\n // For performance we don't materialize the BigDecimal, but convert directly from decimal bytes to a long.\n long ld = getLongFromDECIMAL(column, \"byte\");\n if (ld > Byte.MAX_VALUE || ld < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + ld);\n return (byte) ld;\n case Types.CHAR:\n return CrossConverters.getByteFromString(get_CHAR(column));\n case Types.VARCHAR:\n case Types.LONGVARCHAR:\n return CrossConverters.getByteFromString(get_VARCHAR(column));\n default:\n throw coercionError( \"byte\", column );\n }\n }",
"public abstract void save(LongFloatsCol col, DataOutputStream output) throws IOException;",
"void setColumn(Column newColumn, int pos) { columns[pos] = newColumn; }",
"public abstract void write(byte[] b);",
"public void writeByte(byte b) throws SerialPortException {\n\t\tport.writeByte(b);\n\t\tif(debug) {\n\t\t\tSystem.out.println(\"<0x\"+ b + \">\");\n\t\t}\n\t\t\n\t}",
"void writeChar(final char result) throws WriterException;",
"@Override\n public void write(int b) {\n try {\n out.write(b);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void writeByte(int value)\n throws java.io.IOException {\n\n outputStream.writeByte(value);\n }",
"private void byteOut(){\n if(nrOfWrittenBytes >= 0){\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n b=c>>>20;\n c &= 0xFFFFF;\n cT=7;\n }\n else if(c < 0x8000000){\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n b=c>>>19;\n c &= 0x7FFFF;\n cT=8;\n }\n else{\n b++;\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n c &= 0x7FFFFFF;\n b=c>>>20;\n c &= 0xFFFFF;\n cT=7;\n }\n else{\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n b=((c>>>19)&0xFF);\n c &= 0x7FFFF;\n cT=8;\n }\n }\n }\n else {\n // NOTE: carry bit can never be set if the byte buffer was empty\n b= (c>>>19);\n c &= 0x7FFFF;\n cT=8;\n nrOfWrittenBytes++;\n }\n }",
"public com.google.protobuf.ByteString\n getColumnBytes() {\n Object ref = column_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n column_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"void write(byte b[]) throws IOException;",
"private void saveByte(int inputByte) throws IOException {\n if (byteBuffer != null) {\n if (bufferPointer == maxBytesInMemory) {\n // Need to switch to file\n storeFile = Files.createTempFile(\"TIKA_streamstore_\", \".tmp\").toFile();\n storeOutputStream = new BufferedOutputStream(new FileOutputStream(storeFile));\n // Save what we have so far in buffer\n storeOutputStream.write(byteBuffer, 0, bufferPointer);\n // Write the new byte\n storeOutputStream.write(inputByte);\n byteBuffer = null; // release for garbage collection\n } else {\n // Continue writing to buffer\n byteBuffer[bufferPointer++] = (byte) inputByte;\n }\n } else {\n storeOutputStream.write(inputByte);\n }\n }",
"public void write(int b) throws IOException;",
"public void setBytes(int parameterIndex, byte[] x) throws SQLException {\n currentPreparedStatement.setBytes(parameterIndex, x);\n }",
"public void write( int b ) throws IOException {\n\t\tthis.oneBuf[0] = (byte) b;\n\t\tthis.write( this.oneBuf, 0, 1 );\n\t\t}",
"@Override\n\t\tpublic void setValueColumn(int columnIndex) {\n\t\t\tthis.valueColumn = columnIndex;\n\t\t}",
"private void writeChar(byte[] bytes) {\n // let terminal do auto wrap around. \n term.writeChar(bytes);\n\n // update cursor \n //int x=term.getCursorX(); \n //int y=term.getCursorY();\n //term.putChar(bytes, x, y);\n // increment: let terminal do auto wrap around. \n //term.moveCursor(1,0); \n\n }",
"void write(ByteBuffer b, int off, int len) throws IOException;",
"String byteOrBooleanWrite();",
"public void updateBlob(int columnIndex, InputStream x) throws SQLException {\n\n updateBlob(columnIndex, x, -1);\n }",
"void setColumnValue(int colIndex, Object value);",
"public void write(int datum) throws IOException {\n if (!_open)\n return;\n datum &= 0xff;\n long _here = position();\n\n // Are we synced up?\n if (_here == _digestvalidto) {\n\n // Yes, digest the byte and move the valid to pointer.\n _digest.update((byte) datum);\n _digestvalidto++; // JMC: Was missing.\n\n } // Otherwise, advancing of the position will destroy the digest sync.\n\n datum = _head.crypt((byte) datum, _here);\n _backing.write(datum);\n }",
"public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {\n\n updateBinaryStream(columnIndex, x, -1);\n }",
"public void write(int b) \r\n {\r\n \tint newcount = count + 1;\r\n \tif (newcount > buf.length) \r\n \t{\r\n \t\tbyte newbuf[] = new byte[Math.max(buf.length << 1, newcount)];\r\n \t\tSystem.arraycopy(buf, 0, newbuf, 0, count);\r\n \t\tbuf = newbuf;\r\n \t}\r\n \tbuf[count] = (byte)b;\r\n \tcount = newcount;\r\n }",
"public void write(byte b[]) throws IOException;",
"public abstract void save(IntLongsCol col, DataOutputStream output) throws IOException;",
"public Builder setColumnBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n column_ = value;\n onChanged();\n return this;\n }",
"public int writeByte(byte src) {\n try {\n out.write(src);\n return 0;\n } catch (IOException e) {\n print(\"Error writing byte to \" + portName);\n }\n return -1;\n }",
"int changeTile(int column, char playerChar) throws ColumnFullException {\n int line;\n if(column == 0 || column > this.columns|| !this.columnIsFree(column)) throw new ColumnFullException(\"Column full\");\n else{\n line = insertOnColumn(column,playerChar);\n }\n\n return line;\n }",
"public void write() {\n/* 1062 */ this.cbSize = size();\n/* 1063 */ super.write();\n/* */ }",
"public byte getByte(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getByte\", columnIndex);\n return get(columnIndex).getByte();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"void write (char ch, int offset);",
"@Override\n public String getColumn() {\n Object ref = column_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n column_ = s;\n return s;\n }\n }",
"@Override\n\tpublic void setByteAtPos(int x, int y, byte byteP) {\n\t\tmapGrid[x][y] = byteP;\n\t}",
"public final void write(int c) {\r\n if (cbyte == size) {\r\n throw new ArrayIndexOutOfBoundsException(String.format(\"%d\", cbyte));\r\n }\r\n \r\n // Append the input byte to the data element.\r\n elem |= (c & 0xff) << (bytenum << 3);\r\n \r\n bytenum++;\r\n cbyte++;\r\n if (bytenum == BYTES_IN_ELEMENT) {\r\n // Write the data\r\n data[offset] = elem;\r\n // Increase offset\r\n offset++;\r\n // Reset current element\r\n elem = 0;\r\n // Reset bytenum\r\n bytenum = 0;\r\n }\r\n }",
"public ByteBuf writeByte(int value)\r\n/* 533: */ {\r\n/* 534:544 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 535:545 */ return super.writeByte(value);\r\n/* 536: */ }",
"void writeBit(int bit) throws IOException;",
"com.google.protobuf.ByteString\n getColumnBytes();",
"public void write(byte[] data, long offset);",
"public void write(int b) throws IOException {\n baos.write(b);\n }",
"void writeBytes(byte[] value);",
"protected abstract void writeInternal(int index, int value);",
"@Override\n public void write(byte[] byteMaze){\n int rowSize = ((byteMaze[0] & 0xFF) <<8) | (byteMaze[1] & 0xFF);\n int colSize = ((byteMaze[2] & 0xFF) <<8) | (byteMaze[3] & 0xFF);\n if (rowSize*colSize>= 170*170) { // Threshold between big and small mazes\n write(1); //first byte - tells the decompressor which method was used\n writeBig(byteMaze);\n }\n else {\n write(0);\n writeSmall(byteMaze);\n }\n }",
"com.google.protobuf.ByteString getColumnBytes();",
"public static void lcd_WriteChar ( int data) {\n lcd_RawWrite( Rs | (data & 0xF0));\n lcd_RawWrite( Rs | ((data <<4 ) & 0xF0));\n }",
"@Override\n public void write(int i) throws IOException {\n if (pos == BUFFER_SIZE) {\n flush();\n }\n buffer[pos++] = (byte)i;\n }",
"void incrementColumnIndex();",
"void incrementColumnIndex();",
"public void setCol(int column) {\n\t\tthis.column = column; \n\t}"
] |
[
"0.7304723",
"0.699666",
"0.69659066",
"0.6839962",
"0.6832866",
"0.67913544",
"0.67056817",
"0.6664669",
"0.6575265",
"0.6489398",
"0.6464217",
"0.63716286",
"0.6340187",
"0.6333079",
"0.6314566",
"0.63111657",
"0.62999034",
"0.628501",
"0.6268965",
"0.62578255",
"0.62320805",
"0.61402",
"0.6136748",
"0.6135144",
"0.6099569",
"0.60702944",
"0.6051332",
"0.60353315",
"0.6024672",
"0.6021826",
"0.597439",
"0.5959056",
"0.5950097",
"0.593092",
"0.59259826",
"0.5853839",
"0.5851841",
"0.5842806",
"0.5838985",
"0.5817501",
"0.58142537",
"0.5807086",
"0.5805081",
"0.5805081",
"0.5777512",
"0.57698447",
"0.5754931",
"0.57514066",
"0.57359177",
"0.5734863",
"0.57074744",
"0.5700582",
"0.56973094",
"0.5692777",
"0.5692727",
"0.5677618",
"0.5673697",
"0.5668841",
"0.5660161",
"0.56593156",
"0.5650283",
"0.56468976",
"0.56433773",
"0.5635996",
"0.56195855",
"0.5605414",
"0.55976033",
"0.55957365",
"0.5592024",
"0.55890995",
"0.55751467",
"0.5574837",
"0.55654484",
"0.55390173",
"0.5535296",
"0.55342776",
"0.5530155",
"0.5518568",
"0.55016744",
"0.5501496",
"0.54906714",
"0.5488567",
"0.5484354",
"0.5476549",
"0.5475624",
"0.54704916",
"0.5467003",
"0.5459993",
"0.54579437",
"0.544971",
"0.54468834",
"0.54458034",
"0.5445426",
"0.5432088",
"0.54205006",
"0.5418128",
"0.5412957",
"0.54127264",
"0.54127264",
"0.540254"
] |
0.7143165
|
1
|
Write char to current column
|
void writeChar(char value);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void writeChar(final char result) throws WriterException;",
"@Override\n public void write (final int c)\n {\n if (text != null)\n {\n text.append (String.valueOf ((char) c));\n if (++col > wrap)\n println ();\n }\n else\n super.write (c);\n }",
"public void setChar(char data, int row, int column) {\n\t\tcolumns[column].setChar(data, subset[row]);\n\t}",
"String charWrite();",
"@Override\n public void btPutChar(int value) {\n }",
"public void setColumn(char column) {\n\t\tthis.column = column;\n\t}",
"public void putc(int achar){\n if(view!=null) {\n if (achar >= 0) {\n StringBuilder arf = new StringBuilder(1);\n arf.append((char) achar);\n view.append(arf);\n } else {\n //is return code from a failed stream read\n }\n }\n }",
"void write (char ch, int offset);",
"private int insertOnColumn(int column, char playerChar){\n int lineOfLastColumnFree = 0;\n for(int i = 0; i < this.lines; i++){\n if(i + 1 < this.lines && this.tiles[i + 1][column - 1] == 'O' ){\n lineOfLastColumnFree++;\n }\n else{\n break;\n }\n }\n\n this.tiles[lineOfLastColumnFree][column - 1] = playerChar;\n return lineOfLastColumnFree;\n }",
"protected static char columnToChar(int c) {\n if (c < 0 || c > 7) throw new IllegalArgumentException(c + \" is not a valid column.\");\n return (char) (97 + c);\n }",
"private char convertSeatColToString(int col) {\n return ((char) (col + CONVERT_NUM_TO_CHAR));\n }",
"public void putc(char c);",
"private void writeChar(byte[] bytes) {\n // let terminal do auto wrap around. \n term.writeChar(bytes);\n\n // update cursor \n //int x=term.getCursorX(); \n //int y=term.getCursorY();\n //term.putChar(bytes, x, y);\n // increment: let terminal do auto wrap around. \n //term.moveCursor(1,0); \n\n }",
"public static void lcd_WriteChar ( int data) {\n lcd_RawWrite( Rs | (data & 0xF0));\n lcd_RawWrite( Rs | ((data <<4 ) & 0xF0));\n }",
"int changeTile(int column, char playerChar) throws ColumnFullException {\n int line;\n if(column == 0 || column > this.columns|| !this.columnIsFree(column)) throw new ColumnFullException(\"Column full\");\n else{\n line = insertOnColumn(column,playerChar);\n }\n\n return line;\n }",
"@Override\n\tpublic void write(int b) throws IOException{\n\t\tconsoleStream.append(String.valueOf((char)b));\n\t\tconsoleStream.setCaretPosition(consoleStream.getDocument().getLength());\n\t\t\n\t}",
"protected final void write(char c) throws IOException {\n\t\toutput.write(c);\n\t}",
"public void write(char c){\n\t\tbuffer[bufferPos++] = c;\n\n\t\tif(bufferPos == limit) flush();\n\t}",
"public int putChar(char c, int pos)\n {\n if (pos < 0) {\n if(this.post_comma_digits >= -pos)\n this.raw_value[this.pre_comma()-1-pos] = c;\n else return -2;\n } else {\n if(pos < this.pre_comma())\n this.raw_value[this.pre_comma()-1-pos] = c;\n else return -1;\n }\n return 0;\n }",
"public void insert( final char c ) {\n\t\tbuffer.insert( cursor++, c );\n\t}",
"@Override\n\tpublic void write(int b) throws IOException {\n\tchar a=(char) b;\n\tString s=String.valueOf(a);\n\t//add new output at the end of previous text\n text.append(s);\n\t//keeps reaching at the end of text area\n text.setCaretPosition(text.getDocument().getLength());\n\t}",
"public void Insert(char ch) {\n sb.append(ch);\n }",
"public void appendChar(char c){\n\t\ttimer.stop();\n\t\tcursorVisible = false;\n\t\tsetText(getText()+c);\n\t\ttimer.start();\n\t}",
"public void write(char c) throws XMLStreamException {\n try {\n this.writer.write(c);\n } catch (IOException e) {\n throw new XMLStreamException((Throwable) e);\n }\n }",
"private int toColChar(int column)\n\t{\n\t\tint theCol;\n\t\tswitch (column)\n\t\t{\n\t\tcase 0: theCol = 1; break;\n\t\tcase 1: theCol = 2; break;\n\t\tcase 2: theCol = 3; break;\n\t\tdefault: theCol = -1;\n\t\t}\n\t\t\n\t\treturn theCol;\n\t}",
"private StringBuffer appendColumnString(StringBuffer newLine, int columnIndex, Object plaintext) {\n if (columnIndex != 0){\n newLine.append(\";\");\n }\n newLine.append(plaintext.toString());\n return newLine;\n }",
"public void setCol(int c) {\n\t\tthis.col = c;\n\t}",
"public void insert(char i);",
"@Override\n public void write (final char buf[], final int off, final int len)\n {\n if (text != null)\n {\n text.append (new String (buf, off, len));\n if ((col += len) > wrap)\n println ();\n }\n else\n super.write (buf, off, len);\n }",
"public void set_char(_char param) {\n this.local_char = param;\n }",
"public void setChar(Character c) {\n setText(String.valueOf(c));\n }",
"private boolean update_cell(int row, int col) {\n if (this.cells[row][col].hasNumericValue()) {\n int val = (int)this.cells[row][col].getValue()+1;\n this.cells[row][col].setValue((char)val);\n return true;\n }\n return false;\n }",
"protected final void putChar(char c)\n\t{\n\t\tif (showCaret)\n\t\t{\n\t\t\tif (displayingCaret)\n\t\t\t\ttext.setText(text.getText().substring(0, text.getText().length() - 1) + c + \"|\");\n\t\t\telse text.setText(text.getText().substring(0, text.getText().length() - 1) + c + \" \");\n\t\t}\n\t\telse text.setText(text.getText() + c);\n\t}",
"CharacterTarget put(char symbol) throws PrintingException;",
"public void write(int b) throws IOException {\n/* 54 */ this.appendable.append((char)b);\n/* */ }",
"public void setChars(char[] data, int row, int column) {\n\t\tcolumns[column].setChars(data, subset[row]);\n\t}",
"public void write( int b ) throws IOException {\r\n // append the data as characters to the JTextArea control\r\n textControl.append( String.valueOf( ( char )b ) );\r\n textControl.setCaretPosition(textControl.getText().length());\r\n }",
"public void addChar(char ch){\n\t\tvalue.append(ch);\n\t}",
"public void Insert(char ch) {\n s.append(ch);\n }",
"public void set_char(int param) {\n this.local_char = param;\n }",
"public char getChar(int row, int column) {\n return columns[column].getChar(row);\n }",
"@Override\n public void convertCharacter(char character, StringBuilder outputTextBuilder) {\n }",
"void setColumn(Column newColumn, int pos) { columns[pos] = newColumn; }",
"public ByteBuf setChar(int index, int value)\r\n/* 301: */ {\r\n/* 302:316 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 303:317 */ return super.setChar(index, value);\r\n/* 304: */ }",
"public void updateChar(int c) {\n\t\tchars = c;\n\t}",
"public abstract void add(final double col, final double row, final Character.Type type) throws Exception;",
"public void sendCell(String c) {\n sendMessage(Prefix.CELL, c);\n }",
"void draw_char(int x, int y, char[][] _display, char c) {\n _display[x][y] = c;\n }",
"public char getColumn() {\n\t\treturn column;\n\t}",
"public ByteBuf writeChar(int value)\r\n/* 563: */ {\r\n/* 564:574 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 565:575 */ return super.writeChar(value);\r\n/* 566: */ }",
"private void writeColumnSpace(BufferedWriter writer, int totalSpace)\n\tthrows IOException\n {\n\tfor(int i = 0; i < totalSpace; i++) \n {\n\t\twriter.write(\" \");\n\t}\n }",
"public boolean setCell(int row, int col, char value) {\n if (this.cells[row][col] instanceof Cell == false) return false;\n this.cells[row][col].setValue(value);\n return true;\n }",
"void incrementColumnIndex();",
"void incrementColumnIndex();",
"public void write(int c) throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n getBuffer().append((char)c);\r\n }",
"@Override\n\tpublic void write(int b) throws IOException {\n jTextArea1.append(String.valueOf((char)b));\n // scrolls the text area to the end of data\n jTextArea1.setCaretPosition(jTextArea1.getDocument().getLength());\n\t}",
"public char toChar() {\r\n//\t\t//Ant\r\n//\t\tif(hasAnt()){\r\n//\t\t\tif(this.ant.getColour() == 0){\r\n//\t\t\t\treturn '=';\r\n//\t\t\t}\r\n//\t\t\tif(this.ant.getColour() == 1){\r\n//\t\t\t\treturn '|';\r\n//\t\t\t}\r\n//\t\t}\r\n\t\t\r\n\t\t//Rock\r\n\t\tif(this.rocky){\r\n\t\t\treturn '#';\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//Food\r\n\t\tif(this.food > 0){\r\n\t\t\t//Prints the food value,\r\n\t\t\t//if it is > 9, prints 9 instead\r\n\t\t\tif(this.anthill == 0){ //0 to 9\r\n\t\t\t\tif(this.food > 9){\r\n\t\t\t\t\treturn 48 + 9;\r\n\t\t\t\t}\r\n\t\t\t\treturn (char) (this.food + 48);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Otherwise, food must be in an anthill\r\n\t\t\t//so give unique char value that acknowledges this\r\n\t\t\t//Greek isn't recognised by Notepad or the console (prints '?' instead)\r\n\t\t\t//Minimum food value is 1, so -1 from ascii codes\r\n\t\t\tif(this.anthill == 1){ //Upper case, 65 for Latin, 913 for Greek\r\n\t\t\t\tif(this.food > 9){\r\n\t\t\t\t\treturn (char) (64 + 9);\r\n\t\t\t\t}\r\n\t\t\t\treturn (char) (64 + this.food);\r\n\t\t\t}\r\n\t\t\tif(this.anthill == 2){ //Lower case, 97 for Latin, 945 for Greek\r\n\t\t\t\tif(this.food > 9){\r\n\t\t\t\t\treturn (char) (96 + 9);\r\n\t\t\t\t}\r\n\t\t\t\treturn (char) (96 + this.food);\r\n\t\t\t}\r\n\t\t\t//Else error, cannot be less than 0 or more than 2 anthills\r\n\t\t\tLogger.log(new WarningEvent(\"Cell anthill value not 0, 1 or 2\"));\r\n\t\t\treturn 0;\t//Null char value\r\n\t\t}\r\n\t\t\r\n\t\t//Anthill\r\n\t\tif(this.anthill > 0){\r\n\t\t\tif(this.anthill == 1){\r\n\t\t\t\treturn '+';\r\n\t\t\t}\r\n\t\t\tif(this.anthill == 2){\r\n\t\t\t\treturn '-';\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n//\t\t//Markers\r\n//\t\tfor(int i = 0; i < this.markers.length; i++){\r\n//\t\t\tfor(boolean marker : this.markers[i]){\r\n//\t\t\t\tif(marker){\r\n//\t\t\t\t\tif(i == 0){\r\n//\t\t\t\t\t\treturn '[';\r\n//\t\t\t\t\t}else if(i == 1){\r\n//\t\t\t\t\t\treturn ']';\r\n//\t\t\t\t\t}else{\r\n//\t\t\t\t\t\treturn '?';\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n//\t\t\t}\t\t\r\n//\t\t}\r\n\t\t\r\n\t\treturn '.';\r\n\t}",
"public void incremetColumn() {\n setRowAndColumn(row, column + 1);\n }",
"@Override\r\n public void write(int b) throws IOException {\n textArea.append(String.valueOf((char)b));\r\n // scrolls the text area to the end of data\r\n //textArea.setCaretPosition(textArea.getDocument().getLength());\r\n }",
"public void updateCharacterStream(int columnIndex, Reader x) throws SQLException {\n\n updateCharacterStream(columnIndex, x, -1);\n }",
"final void put(Piece p, char col, char row) {\r\n put(p, sq(col - 'a', row - '1'));\r\n }",
"protected void setCell(char c) throws IllegalArgumentEvent {\r\n\t\tif(c > 48 && c < 58){ //'0 to 9' in ascii\r\n\t\t\tthis.rocky = false;\r\n\t\t\tthis.food = c - 48;\r\n\t\t\tthis.anthill = 0;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tswitch(c) {\r\n\t\tcase '#':\r\n\t\t\tthis.rocky = true;\r\n\t\t\tthis.food = 0;\r\n\t\t\tthis.anthill = 0;\r\n\t\t\tbreak;\r\n\t\tcase '.':\r\n\t\t\tthis.rocky = false;\r\n\t\t\tthis.food = 0;\r\n\t\t\tthis.anthill = 0;\r\n\t\t\tbreak;\r\n\t\tcase '+':\r\n\t\t\tthis.rocky = false;\r\n\t\t\tthis.food = 0;\r\n\t\t\tthis.anthill = 1;\r\n\t\t\tbreak;\r\n\t\tcase '-':\r\n\t\t\tthis.rocky = false;\r\n\t\t\tthis.food = 0;\r\n\t\t\tthis.anthill = 2;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tthrow new IllegalArgumentEvent(\"Illegal argument in Cell setCell\");\r\n\t\t}\r\n\t}",
"void setCharacter(int c) {\n setStat(c, character);\n }",
"public void set(char c, int line, int column, Color bgColor, Color fgColor) {\n if (c == '\\n') {\n cc = 0;\n ++cl;\n return;\n }\n\n if (hasComponent(line, column)) {\n DisplayComponent dc = components[line][column];\n if (dc instanceof CharComponent) {\n CharComponent charc = (CharComponent) components[line][column];\n charc.setBackground(bgColor);\n charc.setForeground(fgColor);\n charc.set(c);\n } else {\n components[line][column] = new CharComponent(c, bgColor, fgColor);\n }\n } else {\n components[line][column] = new CharComponent(c, bgColor, fgColor);\n }\n\n repaint(column * fontSize, line * fontSize, fontSize, fontSize);\n }",
"public char getChar();",
"public HiveChar getHiveChar() {\n return new HiveChar(value.toString(), -1);\n }",
"public void insertChar(int index, String charToInsert) {\r\n\t\tcommandsQueue.add(new String[] { \"insert\", \"\" + index, charToInsert });\r\n\t}",
"public abstract void save(LongLongsCol col, DataOutputStream output) throws IOException;",
"public char drawCell ()\n {\n final char ALIVE_SYMBOL = '\\u25A0';\n final char DEAD_SYMBOL = '\\u25A1';\n if (cellStatus)\n {\n return ALIVE_SYMBOL;\n }\n else\n {\n return DEAD_SYMBOL;\n }// end of if (cellStatus)\n }",
"public void setValue(char value)\n\t{\n\t\tthis.value = value;\n\t}",
"public void Insert(char ch)\n {\n sb.insert(str.length(),ch);\n }",
"public static void writeOnBoard(char[][] a, char letter, int x, int y){\r\n //first check if valid\r\n int rowNumber = a.length;\r\n int colNumber = a[0].length;\r\n if (colNumber<=x || rowNumber<=y || x<0 || y<0){\r\n throw new IllegalArgumentException(\"Point out of the span. Please re-enter a new point.\");\r\n }\r\n if (!spotIsEmpty(a[x][y])){\r\n throw new IllegalArgumentException(\"This spot has already been taken! Please re-enter a new point.\");\r\n }\r\n a[x][y] = letter;\r\n \r\n }",
"private void writeKeyPressed(String key){\r\n if(btSocket == null || isBtConnected){\r\n\r\n try {\r\n OutputStream btSocketOutputStream = btSocket.getOutputStream();\r\n char charToWrite='0';\r\n switch (key){\r\n case \"txt_1\":\r\n charToWrite='A';\r\n break;\r\n case \"txt_2\":\r\n charToWrite='B';\r\n break;\r\n case \"txt_3\":\r\n charToWrite='C';\r\n break;\r\n case \"txt_4\":\r\n charToWrite='D';\r\n break;\r\n\r\n }\r\n btSocketOutputStream.write((byte)charToWrite);\r\n btSocketOutputStream.flush();\r\n Log.e(\"Output\",key);\r\n\r\n } catch (IOException e) {\r\n Log.e(\"ERROR\",e.getMessage(),e);\r\n }\r\n\r\n }\r\n\r\n }",
"public void Insert(char ch)\n {\n if (map[ch] == -1) {\n map[ch] = pos;\n }\n else {\n map[ch] = -2;\n } \n pos ++;\n }",
"private char getColumnName(int column) {\r\n\t\tchar result = '0';\r\n\t\tif (column >= 0 && column <= playBoard[0].length) {\r\n\t\t\tresult = (char) (column + 65);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public void storePlay(int row, int col, char symbol){\n this.gameBoard[row][col] = symbol;\n }",
"public void Insert(char ch)\n {\n if(stringstream.contains(ch)){\n rep.add(ch);\n }\n stringstream.add(ch);\n \n }",
"public void write(int c) throws IOException {\n ensureOpen();\n out.write(c);\n }",
"public void addCell(int row, int col, char value) {\n this.cells[row][col] = new Cell(value);\n }",
"@Override\n public void write(int b) throws IOException {\n byte ib = (byte) b;\n long p = df.position();\n // If not at the end yet,\n if (p < df.size()) {\n // Get the current value,\n byte cur_b = df.get();\n // If the value we are inserting is different,\n if (cur_b != ib) {\n // Reposition and put the new value,\n df.position(p);\n df.put(ib);\n// ++change_count;\n }\n }\n // At the end so write the byte,\n else {\n df.put(ib);\n }\n }",
"public void append(char c)\n {\n JspWriter writer = _jspC.getOut();\n try {\n writer.print(c);\n }\n catch (IOException e) {\n if (_jspC instanceof PageContext)\n RequestUtils.saveException((PageContext) _jspC, e);\n logger.error(Bundle.getString(\"Tags_WriteException\"), e);\n }\n }",
"public void updateByte(int columnIndex, byte x) throws SQLException\n {\n m_rs.updateByte(columnIndex, x);\n }",
"public void Insert(char ch)\n {\n arr[ch]++;\n }",
"@Override\n public void writeCell(String name, Object value, int depth) throws IOException {\n this.write(this.getNewline()+this.makeTabs(depth)+\"<\"+name+\">\");\n if (value != null) {\n this.write(Val.escapeXml(value.toString()));\n }\n this.write(\"</\"+name+\">\");\n }",
"void setByte(int index, byte value) throws SQLException;",
"public int getColumn()\t \t\t{ return column; \t}",
"void writeChars(char[] c, int off, int len) throws IOException;",
"public void Insert_1(char ch){\n sb.append(ch);\n if(chs[ch] == 0){\n chs[ch] = 1;\n }else{\n chs[ch]++;\n }\n }",
"private String toRowChar(int row)\n\t{\n\t\tString theRow;\n\t\t\n\t\tswitch (row)\n\t\t{\n\t\tcase 0: theRow = \"A\"; break;\n\t\tcase 1: theRow = \"B\"; break;\n\t\tcase 2: theRow = \"C\"; break;\n\t\tdefault: theRow = \" \";\n\t\t}\n\t\t\n\t\treturn theRow;\n\t}",
"public void writeTest() throws IOException {\n comUtils.writeChar('H');\n\n }",
"public char get(final int row, final int col) {\r\n // TODO your job\r\n return mazeData [row][col] ;\r\n\r\n\r\n }",
"public final int getColumn() {\n/* 368 */ return this.bufcolumn[this.bufpos];\n/* */ }",
"public void moveRight()\n\t{\n\t\tcol++;\n\t}",
"public void Insert(char ch) {\n s.append(ch);\n hashtable[ch]++;\n }",
"public void setCol(int newCol) {\n this.col = newCol;\n }",
"public int getColumn()\n {\n return col;\n }",
"public void print(char someChar) {\r\n print(someChar + \"\");\r\n }",
"public void print(char c) {\n\n if(c == '\\n') {\n x = 0;\n if(++y >= ROWS)\n y = 0;\n return;\n } else if(c == '\\t') {\n print(' ');\n print(' ');\n print(' ');\n print(' ');\n return;\n }\n\n int value = calculateMemValue(c);\n content[y][x] = value;\n\n if(focused == this) {\n int index = (y * Terminal.COLS) + x;\n if(0 <= index && index < (COLS * ROWS))\n mem.screen[index] = (short) value;\n }\n\n if(++x >= COLS) {\n x = 0;\n if(++y >= ROWS)\n y = 0;\n }\n }",
"public void setChar(int wordIndex, int charIndex, char newChar) {\n\n int startIndex = 0;\n int remainderIndex = charIndex + 1;\n\n String oldWord = this.words.get(wordIndex);\n String newWord = oldWord.substring(startIndex, charIndex) + newChar + oldWord.substring(remainderIndex);\n\n this.words.remove(wordIndex);\n this.words.add(wordIndex, newWord);\n }",
"public void draw(int row, int col, char c) {\n if(row>=height || col>=width) {\n throw new IllegalArgumentException(\"Char located outside of canvas\"); \n }\n char previous = drawingArray[row][col]; // stores the previous value locally \n drawingArray[row][col] = c; // assigns the new char to the array\n undoStack.push(new DrawingChange(row, col, previous, c)); // pushes a DrawingChange object\n DrawingStackIterator iter = new DrawingStackIterator(redoStack);\n while(!redoStack.isEmpty()) { // loops through redoStack and removes all objects\n redoStack.pop();\n }\n }"
] |
[
"0.6913226",
"0.68350375",
"0.66177124",
"0.6575567",
"0.6499277",
"0.64939076",
"0.64843845",
"0.64514905",
"0.6438518",
"0.6332197",
"0.6300776",
"0.6286202",
"0.6259403",
"0.62343043",
"0.6234214",
"0.6223571",
"0.62200093",
"0.6205115",
"0.61222744",
"0.6057574",
"0.6041771",
"0.60252064",
"0.599068",
"0.59891385",
"0.59875315",
"0.5962148",
"0.58817375",
"0.58129543",
"0.5811147",
"0.580788",
"0.5807487",
"0.57885695",
"0.57850707",
"0.57794774",
"0.5772255",
"0.57530385",
"0.57496774",
"0.5742413",
"0.5739094",
"0.5713793",
"0.570159",
"0.5678121",
"0.5672408",
"0.5658291",
"0.5654711",
"0.5652779",
"0.5652422",
"0.5647793",
"0.5640308",
"0.56399965",
"0.5637961",
"0.5634788",
"0.562073",
"0.562073",
"0.5620062",
"0.56185657",
"0.5614122",
"0.56067103",
"0.56001407",
"0.5547122",
"0.55443287",
"0.55439276",
"0.55342084",
"0.5498685",
"0.547604",
"0.54691553",
"0.5460431",
"0.5451242",
"0.5446322",
"0.5445328",
"0.5442419",
"0.5440601",
"0.54401904",
"0.54377884",
"0.54339963",
"0.5419281",
"0.5412507",
"0.5408721",
"0.53991413",
"0.53964317",
"0.53942335",
"0.5377506",
"0.5370579",
"0.5368642",
"0.53600925",
"0.5355871",
"0.5350766",
"0.5342241",
"0.53416604",
"0.534128",
"0.5338735",
"0.5336318",
"0.5336033",
"0.5324328",
"0.5317758",
"0.53118914",
"0.53061205",
"0.5299626",
"0.5299122",
"0.528029"
] |
0.7456558
|
0
|
Write short to current column
|
void writeShort(short value);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setShort(int index, short value) throws SQLException;",
"public void updateShort(int columnIndex, short x) throws SQLException\n {\n m_rs.updateShort(columnIndex, x);\n }",
"public void updateShort(int columnIndex, short x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateShort(\" + columnIndex + \", (short) \" + x + \");\");\n }\n update(columnIndex, ValueShort.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void updateShort(String columnName, short x) throws SQLException\n {\n m_rs.updateShort(columnName, x);\n }",
"public void setShort(short data, int row, int column) {\n\t\tcolumns[column].setShort(data, subset[row]);\n\t}",
"public short getShort(int row, int column) {\n return columns[column].getShort(row);\n }",
"public short getShort(int columnIndex) throws SQLException\n {\n return m_rs.getShort(columnIndex);\n }",
"void writeShort(int v) throws IOException;",
"public void updateShort(String columnName, short x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateShort(\" + quote(columnName) + \", (short) \" + x + \");\");\n }\n update(columnName, ValueShort.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"Short getShort(int col_num) throws ConnException;",
"@Override\r\n\tpublic Buffer setShort(int pos, short s) {\n\t\treturn null;\r\n\t}",
"public short getShort(String columnName) throws SQLException\n {\n return m_rs.getShort(columnName);\n }",
"public short getShort(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getShort\", columnIndex);\n return get(columnIndex).getShort();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public ShortColumn mapToShortColumn(String name, Function<? super T, ? extends Short> function) {\n ShortColumn newColumn = ShortColumn.create(name, size());\n mapInto(function, newColumn);\n return newColumn;\n }",
"String shortWrite();",
"public short getShort(int row, int column) {\n\t\treturn getColumn(column).getShort(subset[row]);\n\t}",
"public void writeShort(short i) throws IOException {\n\t\twriteByte((byte) (i >> 8));\n\t\twriteByte((byte) i);\n\t}",
"public short getShort(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getShort\", columnName);\n return get(columnName).getShort();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public ByteBuf writeShort(int value)\r\n/* 539: */ {\r\n/* 540:550 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 541:551 */ return super.writeShort(value);\r\n/* 542: */ }",
"protected void _setShort(int index, int value)\r\n/* 435: */ {\r\n/* 436:449 */ HeapByteBufUtil.setShort(this.array, index, value);\r\n/* 437: */ }",
"public void setShort(int parameterIndex, short x) throws SQLException {\n currentPreparedStatement.setShort(parameterIndex, x);\n }",
"public ByteBuf setShort(int index, int value)\r\n/* 428: */ {\r\n/* 429:442 */ ensureAccessible();\r\n/* 430:443 */ _setShort(index, value);\r\n/* 431:444 */ return this;\r\n/* 432: */ }",
"public ByteBuf setShort(int index, int value)\r\n/* 277: */ {\r\n/* 278:292 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 279:293 */ return super.setShort(index, value);\r\n/* 280: */ }",
"private final short get_SMALLINT(int column) {\n // @AGG force Little Endian\n if (metadata.isZos())\n return dataBuffer_.getShort(columnDataPosition_[column - 1]);\n else\n return dataBuffer_.getShortLE(columnDataPosition_[column - 1]);\n// return SignedBinary.getShort(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }",
"protected final short getShort(int offset)\n {\n final byte[] tableData = tables.getTablesData();\n return Bytes.getShort(tableData, cursor+offset);\n }",
"void writeShorts(short[] s, int off, int len) throws IOException;",
"@Override\r\n\tpublic Buffer appendUnsignedShort(int s) {\n\t\treturn null;\r\n\t}",
"protected void _setShortLE(int index, int value)\r\n/* 447: */ {\r\n/* 448:461 */ HeapByteBufUtil.setShortLE(this.array, index, value);\r\n/* 449: */ }",
"public StreamWriter write(short value)\r\n {\r\n \tif(order() == ByteOrder.LITTLE_ENDIAN){\r\n\t\t\t_buffer[0] = (byte) (value & 0xFF);\r\n\t\t\t_buffer[1] = (byte) ((value & 0xFF00) >> 8);\r\n \t}else{\r\n _buffer[0] = (byte)(value >> 8);\r\n _buffer[1] = (byte)value;\r\n \t}\r\n _stream.write(_buffer,0,2);\r\n\t\treturn this;\r\n }",
"public void onWriteShortBegin(ICPU cpu, int addr) {\n\t}",
"void setValue(Short value);",
"@Override\r\n\tpublic Buffer setUnsignedShort(int pos, int s) {\n\t\treturn null;\r\n\t}",
"public abstract void save(LongLongsCol col, DataOutputStream output) throws IOException;",
"public ByteBuf setShortLE(int index, int value)\r\n/* 793: */ {\r\n/* 794:802 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 795:803 */ return super.setShortLE(index, value);\r\n/* 796: */ }",
"public short toShort()\n\t{\n\t\treturn (short)this.ordinal();\n\t}",
"public ByteBuf writeShortLE(int value)\r\n/* 859: */ {\r\n/* 860:868 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 861:869 */ return super.writeShortLE(value);\r\n/* 862: */ }",
"public ByteBuf setShortLE(int index, int value)\r\n/* 440: */ {\r\n/* 441:454 */ ensureAccessible();\r\n/* 442:455 */ _setShortLE(index, value);\r\n/* 443:456 */ return this;\r\n/* 444: */ }",
"public short getSmallInt(int columnIndex) {\n SmallIntVector vector = (SmallIntVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public void setValue(short value) {\n this.value = value;\n }",
"public ElementDefinitionDt setShort(StringDt theValue) {\n\t\tmyShort = theValue;\n\t\treturn this;\n\t}",
"public void toMinion(BufferedWriter b, boolean bool_context) throws IOException\n\t{\n\t assert bool_context;\n\t \n\t if(getChild(1) instanceof CompoundMatrix || getChild(1) instanceof EmptyMatrix) {\n\t ASTNode cmat=getChild(1);\n\t \n\t b.append(\"**SHORTTUPLELIST**\\n\");\n b.append(\"tableshort\");\n b.append(String.valueOf(shorttablecount));\n \n b.append(\" \");\n b.append(String.valueOf(cmat.numChildren()-1));\n b.append(\"\\n\");\n \n for(int i=1; i<cmat.numChildren(); i++) {\n b.append(\"[\");\n ASTNode tup=cmat.getChild(i);\n for(int j=1; j<cmat.getChild(i).numChildren(); j++) {\n long var=tup.getChild(j).getChild(1).getValue();\n long val=tup.getChild(j).getChild(2).getValue();\n b.append(\"(\");\n b.append(String.valueOf(var-1)); // Minion indexes variables from 0, SR from 1.\n b.append(\",\");\n b.append(String.valueOf(val));\n b.append(\"),\");\n }\n b.append(\"]\\n\");\n }\n \n b.append(\"**CONSTRAINTS**\\n\");\n\t b.append(\"shortstr2(\");\n getChild(0).toMinion(b, false);\n b.append(\", tableshort\");\n b.append(String.valueOf(shorttablecount));\n b.append(\")\");\n \n shorttablecount++;\n\t }\n\t else {\n\t // The table is an identifier\n\t b.append(\"shortstr2(\");\n getChild(0).toMinion(b, false);\n b.append(\", \");\n getChild(1).toMinion(b, false);\n b.append(\")\");\n\t }\n\t}",
"public Short getShortAttribute();",
"@Override\r\n\tpublic Buffer appendUnsignedByte(short b) {\n\t\tbuffer.putShort((short) (b & 0xff));\r\n\t\treturn this;\r\n\t}",
"public void setValue(short value) {\n this.value = value;\n }",
"public void set_short(short param) {\n this.local_short = param;\n }",
"@Override\r\n\tpublic short getShort(int pos) {\n\t\treturn buffer.getShort(pos);\r\n\t}",
"public void onWriteShortEnd(ICPU cpu, int addr) {\n\t}",
"public String getShort() {\n return m_short;\n }",
"public final void writeShort(final short data, final boolean endianess) throws IOException {\r\n\r\n if (endianess == FileDicomBaseInner.BIG_ENDIAN) {\r\n byteBuffer2[0] = (byte) (data >>> 8);\r\n byteBuffer2[1] = (byte) (data & 0xff);\r\n } else {\r\n byteBuffer2[0] = (byte) (data & 0xff);\r\n byteBuffer2[1] = (byte) (data >>> 8);\r\n }\r\n\r\n raFile.write(byteBuffer2);\r\n }",
"void incrementColumnIndex();",
"void incrementColumnIndex();",
"public void writeNumber(short s)\n/* */ throws IOException\n/* */ {\n/* 602 */ _verifyValueWrite(\"write a number\");\n/* 603 */ if (this._cfgNumbersAsStrings) {\n/* 604 */ _writeQuotedShort(s);\n/* 605 */ return;\n/* */ }\n/* */ \n/* 608 */ if (this._outputTail + 6 >= this._outputEnd) {\n/* 609 */ _flushBuffer();\n/* */ }\n/* 611 */ this._outputTail = NumberOutput.outputInt(s, this._outputBuffer, this._outputTail);\n/* */ }",
"int changeTile(int column, char playerChar) throws ColumnFullException {\n int line;\n if(column == 0 || column > this.columns|| !this.columnIsFree(column)) throw new ColumnFullException(\"Column full\");\n else{\n line = insertOnColumn(column,playerChar);\n }\n\n return line;\n }",
"public abstract void setHabilitado(java.lang.Short newHabilitado);",
"@Test\n public void testReadWriteShort() {\n System.out.println(\"readShort\");\n ByteArray instance = new ByteArray();\n \n instance.writeShort((short) 12, 0);\n instance.writeShort((short) 15, 2);\n instance.writeShort((short) 13, instance.compacity());\n \n assertEquals(12, instance.readShort(0));\n assertEquals(15, instance.readShort(2));\n assertEquals(13, instance.readShort(instance.compacity() - 2));\n \n instance.writeShort((short) 14, 2);\n assertEquals(14, instance.readShort(2));\n }",
"public void setShortDes(String shortDes) {\n this.shortDes = shortDes;\n }",
"public void setShortID(String shortID) {\n this.shortID = shortID;\n }",
"@Test\n public void testShort() {\n assertEquals(\"32767\", hiveTypeToJson(new MyHiveType(new ShortWritable(Short.MAX_VALUE), shortTypeInfo)));\n }",
"public void write(long time, short value) {\n timeEncoder.encode(time, timeOut);\n valueEncoder.encode(value, valueOut);\n statistics.update(time, value);\n }",
"int setShort(int num, int a_short, int which)\n {\n return ((num & (0b1111111111111111 << ((~which) << 4))) | (a_short << (which << 4)));\n }",
"ColumnFull createColumnFull();",
"@DerivedProperty\n\tString getShortRepresentation();",
"public void send(short b) {\n\t\t// If we're using send to send 255, we need to escape it.\n\t\tif (b == IAC) {\n\t\t\toutWriter.write(new short[] {IAC, IAC});\n\t\t} else {\n\t\t\ttry {\n\t\t\t\toutWriter.write(b);\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tSystem.err.println(ioe.toString());\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void write (final int c)\n {\n if (text != null)\n {\n text.append (String.valueOf ((char) c));\n if (++col > wrap)\n println ();\n }\n else\n super.write (c);\n }",
"public static int writeShort(OutputStream target, short value) throws IOException {\n target.write((byte) (value >>> 8 & 255));\n target.write((byte) (value & 255));\n return Short.BYTES;\n }",
"public static final SourceModel.Expr showShort(SourceModel.Expr s) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showShort), s});\n\t\t}",
"public void setColumn(char column) {\n\t\tthis.column = column;\n\t}",
"public short getShort(int pos) {\n return Tuples.toShort(getObject(pos));\n }",
"private String getShortInstruction(int nextVal) {\n\t\toldvar = nextVal;\n\t\treturn Character.toString((char) nextVal);\n\t}",
"@Override\n\tpublic short readScalarShort() throws IOException {\n\t\treturn 0;\n\t}",
"private static void writeLength(ByteBuffer buffer, int length) {\n RuntimeAssertionError.assertTrue(length <= (int)Short.MAX_VALUE);\n buffer.putShort((short)length);\n }",
"public void writeUnsignedShortLittleEndian(int i) throws IOException {\r\n\t\tshort s = (short) (i & 0x0000ffff);\r\n\t\tthis.writeShort(Short.reverseBytes(s));\r\n\t}",
"void writeChar(char value);",
"public short get_short() {\n return local_short;\n }",
"@OfMethod({\"setShort(java.lang.String,short)\", \"setShort(int,short)\"})\n public void testSetShort() throws Exception {\n CallableStatement instance = newClosedCall();\n\n try {\n instance.setShort(getParameterName(), (short) 0);\n fail(\"Allowed set byte by parameter name after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setShort(getParameterIndex(), (short) 0);\n fail(\"Allowed set short by parameter index after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n }",
"public final synchronized short getShort(int parameterIndex) \n throws SQLException\n {\n return getCallableStatement().getShort(parameterIndex);\n }",
"public short getSmallInt(String columnName) {\n SmallIntVector vector = (SmallIntVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public ElementDefinitionDt setShort( String theString) {\n\t\tmyShort = new StringDt(theString); \n\t\treturn this; \n\t}",
"public short toShort() {\n return this.toShortArray()[0];\n }",
"public short readShort() {\n return ((short) readLong());\n }",
"void incrementColumnIndex(int size);",
"void incrementColumnIndex(int size);",
"public void write( short[] array, int firstIndex, int numShorts )\n\t{\n\t\tint numShortsLeft = numShorts;\n\t\tint shortsInBuffer = buffer.length >> 1;\n\t\tint shortIndex = firstIndex;\n\t\twhile( numShortsLeft > 0 )\n\t\t{\n\t\t\tint numShortsToWrite = (numShortsLeft < shortsInBuffer) ? numShortsLeft\n\t\t\t\t\t: shortsInBuffer;\n\n\t\t\tint byteIndex = 0;\n\t\t\tfor( int i = 0; i < numShortsToWrite; i++ )\n\t\t\t{\n\t\t\t\tshort sample = array[shortIndex++];\n\t\t\t\tbuffer[byteIndex++] = (byte) (sample);\n\t\t\t\tbuffer[byteIndex++] = (byte) (sample >> 8);\n\t\t\t}\n\t\t\tnumShortsLeft -= numShortsToWrite;\n\n\t\t\t// Shift by one to convert shorts to bytes.\n\t\t\tbyteArray.write( buffer, 0, byteIndex );\n\t\t}\n\t}",
"@Override\n public Boolean generateColumn() {\n presenter.appendColumn(editingWrapper().getActionCol52());\n\n return true;\n }",
"public ColumnOutput setPad() throws IOException {\r\n\t\t\r\n\t\tStringBuilder p = new StringBuilder((getWidth() == UnlimitedWidth)?b.length():getWidth());\r\n\t\tsendToOutput(p);\r\n\t\tpad = p.toString().subSequence(0, p.length());\r\n\t\t\r\n\t\treturn this;\r\n\t}",
"T print(short data) throws PrintingException;",
"public void setShowColumn(Boolean value) {\n this.showColumn = value;\n }",
"private char convertSeatColToString(int col) {\n return ((char) (col + CONVERT_NUM_TO_CHAR));\n }",
"public void setShortName(String shortName) { this.shortName = shortName; }",
"public void sendCommand(short b) {\n\t\tsendCommand(new short[] {b});\n\t}",
"private void writeColumnSpace(BufferedWriter writer, int totalSpace)\n\tthrows IOException\n {\n\tfor(int i = 0; i < totalSpace; i++) \n {\n\t\twriter.write(\" \");\n\t}\n }",
"public StringDt getShortElement() { \n\t\tif (myShort == null) {\n\t\t\tmyShort = new StringDt();\n\t\t}\n\t\treturn myShort;\n\t}",
"public void setShort(int addr, short val) throws ProgramException {\n setLittleEndian(addr, Short.BYTES, val);\n }",
"public boolean columnFull(int column);",
"public abstract String toString_short();",
"public void setAnyShortExces(long value) {\n this.anyShortExces = value;\n }",
"public short readShortNonBlock() {\n return ((short) readLongNonBlock());\n }",
"public String getShort() { \n\t\treturn getShortElement().getValue();\n\t}",
"public void mo30a(jda jda) {\n jda.writeShort(mo5075h());\n }",
"@Override\n\tpublic void showByteWrite(ByteBuffer data)\n\t{\n\n\t}"
] |
[
"0.70962524",
"0.68961316",
"0.68272555",
"0.67569005",
"0.67381334",
"0.6630909",
"0.66119665",
"0.6526019",
"0.6522147",
"0.65077716",
"0.63031745",
"0.6302865",
"0.62800026",
"0.6223683",
"0.61805695",
"0.61304677",
"0.61146116",
"0.6109739",
"0.60658264",
"0.6014154",
"0.5997603",
"0.59723973",
"0.5951902",
"0.58934015",
"0.58840877",
"0.5856628",
"0.57586116",
"0.57540417",
"0.57405436",
"0.5731646",
"0.57196486",
"0.56696135",
"0.5650451",
"0.5637187",
"0.56238776",
"0.561459",
"0.5593426",
"0.5589374",
"0.55789906",
"0.55624664",
"0.5548018",
"0.54956174",
"0.5495223",
"0.5493951",
"0.5488907",
"0.5470285",
"0.54662603",
"0.5461073",
"0.54457736",
"0.5437326",
"0.5437326",
"0.54222566",
"0.54064906",
"0.5389051",
"0.5388244",
"0.5363834",
"0.53544235",
"0.53494513",
"0.534777",
"0.534162",
"0.53299695",
"0.5328415",
"0.53213966",
"0.5297916",
"0.52859235",
"0.52819973",
"0.5258839",
"0.5243253",
"0.5226522",
"0.520346",
"0.51964706",
"0.5191653",
"0.517767",
"0.5174739",
"0.5171532",
"0.5164326",
"0.5164267",
"0.51557153",
"0.5153909",
"0.51523805",
"0.51408565",
"0.51408565",
"0.51290613",
"0.5124674",
"0.510575",
"0.51038164",
"0.50975996",
"0.50858104",
"0.5082879",
"0.5080589",
"0.50761336",
"0.5072932",
"0.5068696",
"0.5059613",
"0.5055897",
"0.50553936",
"0.50448644",
"0.50358355",
"0.50331104",
"0.5025081"
] |
0.71176314
|
0
|
Write int to current column
|
void writeInt(int value);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract void save(IntIntsCol col, DataOutputStream output) throws IOException;",
"void setInt(int index, int value) throws SQLException;",
"void incrementColumnIndex();",
"void incrementColumnIndex();",
"@Override\n protected void writeInternal(int index, int value) {\n\n }",
"@Override\n protected void writeInternal(int index, int value) {\n\n }",
"public void setCol(int value) {\n this.col = value;\n }",
"private void write(int i) {\n\t\tEditor edit = preticketint.edit();\r\n\t\tedit.putInt(\"ticketint\", i);\r\n\t\tedit.commit();\r\n\t}",
"public void setColumn(String column, int i)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n data.put(canonicalize(column), new Integer(i));\n }",
"public abstract void save(LongIntsCol col, DataOutputStream output) throws IOException;",
"public abstract void save(IntFloatsCol col, DataOutputStream output) throws IOException;",
"protected abstract void writeInternal(int index, int value);",
"void writeInt(int v) throws IOException;",
"public void updateInt(int columnIndex, int x) throws SQLException\n {\n m_rs.updateInt(columnIndex, x);\n }",
"public abstract void save(IntLongsCol col, DataOutputStream output) throws IOException;",
"public void updateInt(int columnIndex, int x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateInt(\" + columnIndex + \", \" + x + \");\");\n }\n update(columnIndex, ValueInt.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void setInt(int data, int row, int column) {\n\t\tcolumns[column].setInt(data, subset[row]);\n\t}",
"@Override\n\t\tpublic void setValueColumn(int columnIndex) {\n\t\t\tthis.valueColumn = columnIndex;\n\t\t}",
"void setColumnValue(int colIndex, Object value);",
"public void updateInt(String columnName, int x) throws SQLException\n {\n m_rs.updateInt(columnName, x);\n }",
"protected abstract void write( int value ) throws IOException;",
"public void updateInt(String columnName, int x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateInt(\" + quote(columnName) + \", \" + x + \");\");\n }\n update(columnName, ValueInt.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"@Override\n public void write(int b) throws IOException {\n byte ib = (byte) b;\n long p = df.position();\n // If not at the end yet,\n if (p < df.size()) {\n // Get the current value,\n byte cur_b = df.get();\n // If the value we are inserting is different,\n if (cur_b != ib) {\n // Reposition and put the new value,\n df.position(p);\n df.put(ib);\n// ++change_count;\n }\n }\n // At the end so write the byte,\n else {\n df.put(ib);\n }\n }",
"void writeInt(int i) throws IOException;",
"public void setCol(int c) {\n\t\tthis.col = c;\n\t}",
"public void incremetColumn() {\n setRowAndColumn(row, column + 1);\n }",
"void incrementColumnIndex(int size);",
"void incrementColumnIndex(int size);",
"public void setCol(int column) {\n\t\tthis.column = column; \n\t}",
"public void setCol(int col)\n\t{\n\t\tthis.col = col;\n\t}",
"public void setCol(int col)\n\t{\n\t\tthis.col = col;\n\t}",
"public void setCol(int newCol) {\n this.col = newCol;\n }",
"void writeNumber(Number num);",
"public void setPositionColumn(int value){this.positionColumn = value;}",
"void setColumnIndex(int index);",
"@Override\n\tpublic void write(DataOutput dout) throws IOException {\n\t\tdout.writeLong(this.time);\n\t\tdout.writeInt(this.intVal);\n\t}",
"public abstract void save(LongLongsCol col, DataOutputStream output) throws IOException;",
"String intWrite();",
"Table setColumn(int index, String name);",
"int atColumn();",
"public void writeInt(int i) throws IOException {\n\t\twriteByte((byte) (i >> 24));\n\t\twriteByte((byte) (i >> 16));\n\t\twriteByte((byte) (i >> 8));\n\t\twriteByte((byte) i);\n\t}",
"public Column(int num)\n {\n colNum = num;\n }",
"@Override\r\n\tpublic void updateNbCol() {\r\n\t\treturn;\r\n\t}",
"public void writeInt(String actionName, Integer value) throws IllegalStateException {\n\t\tif (!canPerformAction(actionName, Action.ACTION_WRITE, Value.VALUE_INTEGER)) {\n\t\t\tthrow new IllegalStateException(\"\\twriteInt in \" + this.name + \" is not supported\");\n\t\t}\n\t\tNetworkClient.getInstance().writeInt(this.name, actionName, value);\n\t}",
"public void setColumn(int column) {\n\t\tthis.column = column;\n\t}",
"public void writeNumber(int row, int column, int value){\n if(!checkInput(row, column, value)) return;\n\n //Tile must be instance of Guess\n if (gameField[row][column] instanceof Guess) {\n\n if (gameState == GameState.PAUSED) {\n if (row == usedRow && column == usedColumn) {\n\n ((Guess) gameField[row][column]).setValue(value);\n\n gameState = GameState.PLAYING;\n usedRow = -1;\n usedColumn = -1;\n } else {\n //if game is PAUSED and player tries to change different Tile\n return;\n }\n } else {\n gameField[row][column].setTileState(TileState.GUESSING);\n ((Guess) gameField[row][column]).setValue(value);\n }\n\n //add record\n recordsList.add(new Record(row, column, value, gameField));\n\n //check for if is number already used\n if(isNumberUsed(row, column, value)){\n this.gameState = GameState.PAUSED;\n return;\n }\n\n if(isSolved()) this.gameState = GameState.SOLVED;\n }\n }",
"public static void writeInteger(DataOutputStream dos,Integer data) throws IOException{\r\n\t\tif(data != null){\r\n\t\t\tdos.writeBoolean(true);\r\n\t\t\tdos.writeInt(data.intValue());\r\n\t\t}\r\n\t\telse\r\n\t\t\tdos.writeBoolean(false);\r\n\t}",
"public abstract void save(IntDoublesCol col, DataOutputStream output) throws IOException;",
"@Override\n public void setValue (int newValue){\n super.setValue(newValue);\n updateChildesValues(newValue);\n\n }",
"@Override\n\tpublic void setColumn(int x) {\n\t\tdelegate.setColumn(x);\n\t}",
"public int getCol() { return _col; }",
"public int getCol() {\n return this.col; \n }",
"public int getCol(){\r\n\t\treturn this.column;\r\n\t}",
"public IntColumn getSeqNum() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"seq_num\", IntColumn::new) :\n getBinaryColumn(\"seq_num\"));\n }",
"public abstract void save(LongFloatsCol col, DataOutputStream output) throws IOException;",
"@Override\n public int intValue(int numId) {\n return 0;\n }",
"public int getColumnNumber() {\n return column;\n }",
"protected final int get_INTEGER(int column) {\n // @AGG had to get integer as Little Endian\n if (metadata.isZos())\n return dataBuffer_.getInt(columnDataPosition_[column - 1]);\n else\n return dataBuffer_.getIntLE(columnDataPosition_[column - 1]);\n// return SignedBinary.getInt(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }",
"public int getColumn() {\n // YOUR CODE HERE\n return this.column;\n }",
"private int getColumn() {\n return binaryPartition(column);\n }",
"public void write(int b) throws IOException;",
"@Override\n\tpublic void write(int value) {\n\t\tint lowByte = getFirstArg();\n\t\tint highByte = getSecondArg();\n\t\tint address = highByte;\n\t\taddress = address << 8;\n\t\taddress |= lowByte;\n\t\tCpuMem.getInstance().writeMem(address, value);\n\t}",
"int getColumn();",
"public IntColumn mapToIntColumn(String name, Function<? super T, ? extends Integer> function) {\n IntColumn newColumn = IntColumn.create(name, size());\n mapInto(function, newColumn);\n return newColumn;\n }",
"public void putIntegerData(String key, Integer value) {\n editor.putInt(key, value);\n editor.apply();\n }",
"public void write(int c) throws IOException {\n ensureOpen();\n out.write(c);\n }",
"public void setIdAlumno(int value) {\n this.idAlumno = value;\n }",
"@Override\n public void write(final int byteVal) throws IOException {\n write(new byte[] { (byte) (byteVal & 0xFF) });\n }",
"public void setRow(int value) {\n this.row = value;\n }",
"@Override\n\tpublic void setIntHeader(String name, int value) {\n\t}",
"public void saveDataInt(String clave, int valor){\r\n editor.putInt(clave, valor);\r\n editor.commit();\r\n }",
"public abstract void setCellValue(int cellValue, int row, int col);",
"@Override\n public void setField(int id, int value) {\n \n }",
"public IntColumn getOrdinal() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"ordinal\", IntColumn::new) :\n getBinaryColumn(\"ordinal\"));\n }",
"public IntColumn getOrdinal() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"ordinal\", IntColumn::new) :\n getBinaryColumn(\"ordinal\"));\n }",
"public int getColumn();",
"void xsetValue(org.apache.xmlbeans.XmlInt value);",
"public int getColumn(){\n return this.column;\n }",
"@Override\n\tpublic void setType(int type) {\n\t\t_expandoColumn.setType(type);\n\t}",
"public void setIntValue(int newValue){\n value = newValue; //set value to newValue\n }",
"private int toColChar(int column)\n\t{\n\t\tint theCol;\n\t\tswitch (column)\n\t\t{\n\t\tcase 0: theCol = 1; break;\n\t\tcase 1: theCol = 2; break;\n\t\tcase 2: theCol = 3; break;\n\t\tdefault: theCol = -1;\n\t\t}\n\t\t\n\t\treturn theCol;\n\t}",
"void setLong(int index, long value) throws SQLException;",
"public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}",
"@Override\r\n\tpublic Buffer setInt(int pos, int i) {\n\t\treturn null;\r\n\t}",
"void setColumnIndex(int newIndex);",
"void setColumn(Column newColumn, int pos) { columns[pos] = newColumn; }",
"public int getCol() {\r\n return this.col;\r\n }",
"@Override\n\tpublic void addIntHeader(String name, int value) {\n\t}",
"@Override\r\n\tpublic synchronized void write(int b)\r\n\t{\r\n\t}",
"public abstract int getColumn();",
"void writeByte(int v) throws IOException;",
"@Override\r\n public int getCol() {\r\n return this.col;\r\n }",
"public abstract Number getNumber(int columnIndex);",
"public void setColumn(int column) {\n setRowAndColumn(row, column);\n }",
"public void setInt(int parameterIndex, int x) throws SQLException {\n currentPreparedStatement.setInt(parameterIndex, x);\n\n }",
"public static void setColumnNumber(Configuration conf, int columnNum) {\n\t\tassert columnNum > 0;\n\t\tconf.setInt(RCFile.COLUMN_NUMBER_CONF_STR, columnNum);\n\t}",
"public int getIntialSortedColumn()\n { \n return 0; \n }",
"public int getColumn()\t \t\t{ return column; \t}",
"void setByte(int index, byte value) throws SQLException;",
"@Override\n\tpublic void outAIntegerExpr(AIntegerExpr node) {\n\t\til.append(new PUSH(cp, Integer.valueOf(node.getNumber().getText()))); \n\n\t}"
] |
[
"0.68554664",
"0.6626854",
"0.6584909",
"0.6584909",
"0.6580571",
"0.6580571",
"0.64940864",
"0.645178",
"0.6318457",
"0.6269721",
"0.6234741",
"0.6205794",
"0.6181956",
"0.6164435",
"0.61596614",
"0.6103343",
"0.6037345",
"0.60343695",
"0.6026672",
"0.60244256",
"0.59884745",
"0.5970986",
"0.5955927",
"0.5947683",
"0.59471065",
"0.5944353",
"0.5904296",
"0.5904296",
"0.5854542",
"0.58414793",
"0.58414793",
"0.5809578",
"0.58073014",
"0.5782865",
"0.57716566",
"0.5756879",
"0.5736",
"0.5733039",
"0.57224536",
"0.56794477",
"0.56691533",
"0.56577843",
"0.56347626",
"0.56292003",
"0.56195056",
"0.56135803",
"0.56118685",
"0.56066144",
"0.5602192",
"0.55966854",
"0.55731535",
"0.5569495",
"0.55541235",
"0.55464685",
"0.5540434",
"0.5537708",
"0.5536543",
"0.55330884",
"0.55154026",
"0.55083036",
"0.5489721",
"0.54889166",
"0.5479673",
"0.546993",
"0.5468666",
"0.54651314",
"0.54627407",
"0.5460259",
"0.5459348",
"0.545921",
"0.5458281",
"0.54581374",
"0.5450626",
"0.5418543",
"0.5418543",
"0.5411474",
"0.54004836",
"0.53978145",
"0.53933376",
"0.5390634",
"0.5378154",
"0.53769666",
"0.53729755",
"0.5371168",
"0.5368838",
"0.5367878",
"0.5360825",
"0.53604233",
"0.5358196",
"0.5355661",
"0.5354832",
"0.535394",
"0.53520644",
"0.5347531",
"0.5338437",
"0.5337217",
"0.5332755",
"0.532464",
"0.53228736",
"0.53213817"
] |
0.6644689
|
1
|
Write long to current column
|
void writeLong(long value);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract void save(LongLongsCol col, DataOutputStream output) throws IOException;",
"public abstract void save(IntLongsCol col, DataOutputStream output) throws IOException;",
"public abstract void save(LongIntsCol col, DataOutputStream output) throws IOException;",
"public abstract void save(LongFloatsCol col, DataOutputStream output) throws IOException;",
"String longWrite();",
"void setLong(int index, long value) throws SQLException;",
"void writeLong(long v) throws IOException;",
"public void setColumnLong(java.lang.Long value) {\n this.columnLong = value;\n setDirty(2);\n }",
"public java.lang.Long getColumnLong() {\n return columnLong;\n }",
"public abstract void save(LongDoublesCol col, DataOutputStream output) throws IOException;",
"public java.lang.Long getColumnLong() {\n return columnLong;\n }",
"public java.lang.Long getColumnLong() {\n\t throw new java.lang.UnsupportedOperationException(\"Get is not supported on tombstones\");\n\t }",
"public void setColumnLong(java.lang.Long value) {\n\t throw new java.lang.UnsupportedOperationException(\"Set is not supported on tombstones\");\n\t }",
"public org.apache.gora.cascading.test.storage.TestRow.Builder setColumnLong(java.lang.Long value) {\n validate(fields()[2], value);\n this.columnLong = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public void setColumn(String column, long l)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n data.put(canonicalize(column), new Long(l));\n }",
"public void updateLong(int columnIndex, long x) throws SQLException\n {\n m_rs.updateLong(columnIndex, x);\n }",
"public void setLong(long data, int row, int column) {\n\t\tcolumns[column].setLong(data, subset[row]);\n\t}",
"private final long get_BIGINT(int column) {\n // @AGG force Little Endian\n if (metadata.isZos())\n return dataBuffer_.getLong(columnDataPosition_[column - 1]);\n else\n return dataBuffer_.getLongLE(columnDataPosition_[column - 1]);\n// return SignedBinary.getLong(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }",
"public void updateLong(String columnName, long x) throws SQLException\n {\n m_rs.updateLong(columnName, x);\n }",
"public void writeLong(long i) throws IOException {\n\t\twriteInt((int) (i >> 32));\n\t\twriteInt((int) i);\n\t}",
"public void updateLong(int columnIndex, long x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateLong(\" + columnIndex + \", \" + x + \"L);\");\n }\n update(columnIndex, ValueLong.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public abstract void load(LongLongsCol col, DataInputStream output) throws IOException;",
"public ByteBuf writeLong(long value)\r\n/* 557: */ {\r\n/* 558:568 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 559:569 */ return super.writeLong(value);\r\n/* 560: */ }",
"public void updateLong(String columnName, long x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateLong(\" + quote(columnName) + \", \" + x + \"L);\");\n }\n update(columnName, ValueLong.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public abstract void load(IntLongsCol col, DataInputStream output) throws IOException;",
"public org.apache.gora.cascading.test.storage.TestRow.Builder clearColumnLong() {\n columnLong = null;\n fieldSetFlags()[2] = false;\n return this;\n }",
"public long getLong(int row, int column) {\n return columns[column].getLong(row);\n }",
"public abstract void save(IntIntsCol col, DataOutputStream output) throws IOException;",
"public abstract void load(LongIntsCol col, DataInputStream output) throws IOException;",
"@Override\r\n\tpublic Buffer setLong(int pos, long l) {\n\t\treturn null;\r\n\t}",
"DataFrame<R,C> mapToLongs(C colKey, ToLongFunction<DataFrameValue<R,C>> mapper);",
"public ByteBuf setLong(int index, long value)\r\n/* 295: */ {\r\n/* 296:310 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 297:311 */ return super.setLong(index, value);\r\n/* 298: */ }",
"public abstract void save(IntFloatsCol col, DataOutputStream output) throws IOException;",
"public ByteBuf writeLongLE(long value)\r\n/* 877: */ {\r\n/* 878:886 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 879:887 */ return super.writeLongLE(value);\r\n/* 880: */ }",
"long getLongValue();",
"long getLongValue();",
"public abstract void load(LongFloatsCol col, DataInputStream output) throws IOException;",
"public ByteBuf setLong(int index, long value)\r\n/* 500: */ {\r\n/* 501:514 */ ensureAccessible();\r\n/* 502:515 */ _setLong(index, value);\r\n/* 503:516 */ return this;\r\n/* 504: */ }",
"void setLong(String key, long val);",
"public void setLongValue(long v)\n {\n this.setValue(String.valueOf(v));\n }",
"public void setMyLong(long myLongIn) {\n myLong = myLongIn;\n }",
"public abstract void save(IntDoublesCol col, DataOutputStream output) throws IOException;",
"@Override\n\tpublic void serializeTo(DataOutputStream output) throws IOException\n\t{\n\t\toutput.writeLong(value);\n\t}",
"public BinaryEncoder writeLong(long l) throws IOException {\n // Compute the zig-zag value. First double the value and flip the bit if the input is negative.\n long val = (l << 1) ^ (l >> 63);\n\n if ((val & ~0x7f) != 0) {\n output.write((int) (0x80 | val & 0x7f));\n val >>>= 7;\n while (val > 0x7f) {\n output.write((int) (0x80 | val & 0x7f));\n val >>>= 7;\n }\n }\n output.write((int) val);\n\n return this;\n }",
"public long getLong(int columnIndex) throws SQLException\n {\n return m_rs.getLong(columnIndex);\n }",
"void writeLongs(long[] l, int off, int len) throws IOException;",
"public void setData(long value) {\n this.data = value;\n }",
"public long getBigInt(int columnIndex) {\n BigIntVector vector = (BigIntVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public long longValue() {\n return number;\n }",
"public boolean hasColumnLong() {\n return fieldSetFlags()[2];\n }",
"public void write(long l) {\n while (isFull()) {\n }\n Timing.waitSyncLocal();\n writeEnable.setNow(1);\n writeData.setNow(l);\n Timing.waitClockLocal();\n }",
"@Override\n\tpublic long readScalarLong() throws IOException {\n\t\treturn 0;\n\t}",
"public abstract void load(LongDoublesCol col, DataInputStream output) throws IOException;",
"public long longValue() {\n return value;\n }",
"protected void _setLong(int index, long value)\r\n/* 507: */ {\r\n/* 508:521 */ HeapByteBufUtil.setLong(this.array, index, value);\r\n/* 509: */ }",
"long readLong();",
"public long getLongColumn(String column)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n String name = canonicalize(column);\n \n if (isColumnNull(name))\n return -1;\n \n Object value = data.get(name);\n \n if (value == null)\n throw new IllegalArgumentException(\"Column \" + column + \" not present\");\n if (!(value instanceof Long))\n throw new IllegalArgumentException(\"Value is not an long\");\n \n return ((Long) value).longValue();\n }",
"public void setLong(int parameterIndex, long x) throws SQLException {\n currentPreparedStatement.setLong(parameterIndex, x);\n\n }",
"public void print(long someLong) {\r\n print(someLong + \"\");\r\n }",
"public Long getLongAttribute();",
"public long longValue() {\n return this.value;\n }",
"public long getLong(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getLong\", columnIndex);\n return get(columnIndex).getLong();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"@Override\n\tpublic void write(DataOutput dout) throws IOException {\n\t\tdout.writeLong(this.time);\n\t\tdout.writeInt(this.intVal);\n\t}",
"public void setLong(String parName, long parVal) throws HibException;",
"public abstract long read_longlong();",
"public void printLongBinary(long l) {\n\t}",
"public boolean isColumnLongDirty(java.lang.Long value) {\n\t throw new java.lang.UnsupportedOperationException(\"IsDirty is not supported on tombstones\");\n\t }",
"public void setLongValue(long value) {\n setValueIndex(getPool().findLongEntry(value, true));\n }",
"public long getLong(int row, int column) {\n\t\treturn getColumn(column).getLong(subset[row]);\n\t}",
"public void set_long(long param) {\n this.local_long = param;\n }",
"@Override\n\tpublic void setColumnId(long columnId) {\n\t\t_expandoColumn.setColumnId(columnId);\n\t}",
"@Override\r\n public long longValue() {\r\n return (long) this.m_current;\r\n }",
"private void printLongField(String name, long value, String groupName, String units) {\n sendToGanglia(name, GANGLIA_INT_TYPE, String.format(locale, \"%d\", value), groupName, units);\n }",
"void set(long newValue);",
"public long longValue() {\n\t\treturn (long) mDouble;\n\t}",
"public void setValue(long value) {\n\t this.value = value;\n\t }",
"public long getLongValue() {\n return longValue_;\n }",
"public ByteBuf setLongLE(int index, long value)\r\n/* 811: */ {\r\n/* 812:820 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 813:821 */ return super.setLongLE(index, value);\r\n/* 814: */ }",
"public LongColumn mapToLongColumn(String name, Function<? super T, ? extends Long> function) {\n LongColumn newColumn = LongColumn.create(name, size());\n mapInto(function, newColumn);\n return newColumn;\n }",
"public long getBigInt(String columnName) {\n BigIntVector vector = (BigIntVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"@Override\n public void set(Object bean, Object value) throws IOException {\n _propertyMutator.longSetter(bean, ((Number) value).longValue());\n }",
"public void write(long time, long value) {\n timeEncoder.encode(time, timeOut);\n valueEncoder.encode(value, valueOut);\n statistics.update(time, value);\n }",
"public static int writeLong(OutputStream target, long value) throws IOException {\n target.write((byte) (value >>> 56));\n target.write((byte) (value >>> 48));\n target.write((byte) (value >>> 40));\n target.write((byte) (value >>> 32));\n target.write((byte) (value >>> 24));\n target.write((byte) (value >>> 16));\n target.write((byte) (value >>> 8));\n target.write((byte) value);\n return Long.BYTES;\n }",
"public long getLongValue() {\n return longValue_;\n }",
"public static void writeLongToFile(String executionCursorFile, long value) throws IOException {\n PrintWriter out = null;\n try {\n File f = getFile(executionCursorFile);\n out = new PrintWriter(new FileWriter(f));\n out.println(Long.toString(value));\n } finally {\n if (out != null) {\n out.close();\n }\n }\n }",
"public long longValue()\n\t\t{\n\t\t\treturn (long) doubleValue();\n\t\t}",
"@Override\n public final void setValue(Long value) {\n setValue(value, true);\n }",
"public long getLong(String columnName) throws SQLException\n {\n return m_rs.getLong(columnName);\n }",
"private void serializeLong(final long number, final StringBuffer buffer)\n {\n if ((number >= Integer.MIN_VALUE) && (number <= Integer.MAX_VALUE))\n {\n buffer.append(\"i:\");\n }\n else\n {\n buffer.append(\"d:\");\n }\n buffer.append(number);\n buffer.append(';');\n }",
"public long getLong(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getLong\", columnName);\n return get(columnName).getLong();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public abstract void setAtiempo(java.lang.Long newAtiempo);",
"private String getLongString(ResultSet rs, int index) throws SQLException {\n StringBuffer buffer = new StringBuffer();\n Reader reader = null;\n try {\n reader = getReader(rs, index);\n if (reader == null) {\n Log.warning(\"null long value\", this, \"getLongString\");\n } else {\n char[] array = new char[1000000];\n int nRead = 0;\n while (nRead != -1) {\n nRead = reader.read(array);\n if (nRead > 0) {\n buffer.append(array, 0, nRead);\n }\n }\n array = null;\n }\n } catch (IOException e) {\n Log.exception(e, this, \"getLongString\");\n } finally {\n SystemUtilities.close(reader);\n }\n String s = buffer.toString();\n buffer = null;\n return s.trim();\n }",
"public void setLongStat(MetricDef metric, long value){\n longMetrics.put(metric.metricId(), value);\n }",
"public abstract int read_long();",
"public long toLong() {\n return this.toLongArray()[0];\n }",
"DataFrame<R,C> mapToLongs(ToLongFunction<DataFrameValue<R,C>> mapper);",
"public long getValue();",
"public abstract void setLongImpl(String str, double d, Resolver<Void> resolver);",
"public void addLongStat(MetricDef metric, long value){\n longMetrics.putOrAdd(metric.metricId(), value, value);\n }",
"public void a(long j) {\n this.d = j;\n this.a.getStorage().set(\"plannedFlushTime\", Long.toString(j, 10));\n }"
] |
[
"0.7440352",
"0.738327",
"0.7322916",
"0.7005859",
"0.6953019",
"0.6924903",
"0.6910393",
"0.68808335",
"0.6753487",
"0.6714574",
"0.67136264",
"0.6598619",
"0.6518758",
"0.6499959",
"0.6397911",
"0.62423366",
"0.62330955",
"0.6231596",
"0.6189122",
"0.6136869",
"0.613336",
"0.6112051",
"0.6075975",
"0.6039423",
"0.6026325",
"0.6006958",
"0.5934879",
"0.58804715",
"0.5849916",
"0.5843719",
"0.58000237",
"0.5783075",
"0.5744837",
"0.57372856",
"0.57362235",
"0.57362235",
"0.57039005",
"0.5696193",
"0.5671679",
"0.56485045",
"0.5640137",
"0.5630169",
"0.562413",
"0.55762345",
"0.5568728",
"0.5558465",
"0.55542207",
"0.5546929",
"0.5536823",
"0.55354095",
"0.55160826",
"0.5492784",
"0.5478816",
"0.544214",
"0.54197377",
"0.54013133",
"0.5388202",
"0.5388078",
"0.53783095",
"0.53697616",
"0.53679264",
"0.5364362",
"0.5359329",
"0.53544396",
"0.534824",
"0.53392845",
"0.5334399",
"0.5332655",
"0.53318304",
"0.53288746",
"0.53285927",
"0.5327027",
"0.5314495",
"0.5307959",
"0.52849656",
"0.52794296",
"0.52741313",
"0.5272147",
"0.5268816",
"0.52687925",
"0.5260204",
"0.5258723",
"0.5237512",
"0.52343696",
"0.5227356",
"0.52194875",
"0.52177864",
"0.521688",
"0.5191237",
"0.51774883",
"0.5176437",
"0.51751685",
"0.5160853",
"0.515769",
"0.51522845",
"0.5150691",
"0.5138986",
"0.5136677",
"0.5126042",
"0.5120521"
] |
0.7334834
|
2
|
Write float to current column
|
void writeFloat(float value);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setFloat(int index, float value) throws SQLException;",
"void writeFloat(float v) throws IOException;",
"String floatWrite();",
"public abstract void save(IntFloatsCol col, DataOutputStream output) throws IOException;",
"public void updateFloat(int columnIndex, float x) throws SQLException\n {\n m_rs.updateFloat(columnIndex, x);\n }",
"public void updateFloat(int columnIndex, float x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateFloat(\" + columnIndex + \", \" + x + \"f);\");\n }\n update(columnIndex, ValueFloat.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public abstract void save(LongFloatsCol col, DataOutputStream output) throws IOException;",
"public void setFloat(float data, int row, int column) {\n\t\tcolumns[column].setFloat(data, subset[row]);\n\t}",
"protected void writeE(float value)\n\t{\n\t\t_buf.putFloat(value);\n\t}",
"public void write(float f) {\n write(String.valueOf(f));\n }",
"public void updateFloat(String columnName, float x) throws SQLException\n {\n m_rs.updateFloat(columnName, x);\n }",
"public abstract void save(IntDoublesCol col, DataOutputStream output) throws IOException;",
"public void updateFloat(String columnName, float x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateFloat(\" + quote(columnName) + \", \" + x + \"f);\");\n }\n update(columnName, ValueFloat.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"private final float get_FLOAT(int column) {\n // @AGG force Little Endian\n if (metadata.isZos()) {\n byte[] bytes = new byte[4];\n dataBuffer_.getBytes(columnDataPosition_[column - 1], bytes);\n return FloatingPoint.getFloat_hex(bytes, 0);\n// return dataBuffer_.getFloat(columnDataPosition_[column - 1]);\n } else {\n return dataBuffer_.getFloatLE(columnDataPosition_[column - 1]);\n// return FloatingPoint.getFloat(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }\n }",
"public float getFloat(int columnIndex) throws SQLException\n {\n return m_rs.getFloat(columnIndex);\n }",
"public abstract void save(LongDoublesCol col, DataOutputStream output) throws IOException;",
"public ByteBuf writeFloat(float value)\r\n/* 569: */ {\r\n/* 570:580 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 571:581 */ return super.writeFloat(value);\r\n/* 572: */ }",
"public void setFloat(int parameterIndex, float x) throws SQLException {\n currentPreparedStatement.setFloat(parameterIndex, x);\n\n }",
"private native void Df1_Write_Float(String plcAddress,float value) throws Df1LibraryNativeException;",
"public float getFloat(int row, int column) {\n return columns[column].getFloat(row);\n }",
"@Override\r\n\tpublic Buffer setFloat(int pos, float f) {\n\t\treturn null;\r\n\t}",
"public void visitColumn(double val);",
"public float getFloat(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getFloat\", columnIndex);\n return get(columnIndex).getFloat();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"void writeDouble(double value);",
"public void putFloatData(String key, Float value) {\n editor.putFloat(key, value);\n editor.apply();\n }",
"public ByteBuf setFloat(int index, float value)\r\n/* 307: */ {\r\n/* 308:322 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 309:323 */ return super.setFloat(index, value);\r\n/* 310: */ }",
"public void setVal(float val) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 8, val);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 8, val);\n\t\t}\n\t}",
"@Override\n public String getFormattedValue(float value, Entry entry, int dataSetIndex, ViewPortHandler viewPortHandler) {\n return \"\";\n }",
"public FloatLiteral(float val,int my_line, int my_column){\n\t\trawValue = Float.toString(val); // Will convert to int value in semantic check\n\t\tvalue = val;//Returns a new float with value represented by the String val\n\t\tlineNumber= my_line;\n\t\tcolNumber=my_column;\n\t}",
"protected abstract void setValue(Entity e,FloatTrait t,float value);",
"float readFloat();",
"public abstract void load(IntFloatsCol col, DataInputStream output) throws IOException;",
"public float getFloat(String column)\n {\n return FloatType.instance.compose(get(column));\n }",
"public void grabarFloat(float x) throws IOException\r\n {\r\n maestro.writeFloat(x); \r\n }",
"float put(int idx, float val);",
"public FloatArrayWritable() {\n super(FloatWritable.class);\n }",
"void writeFloats(float[] f, int off, int len) throws IOException;",
"public abstract void writeAsDbl(int offset, double d);",
"private static void setValueFloat(float value)\n {\n Util.valueFloat = value;\n }",
"public float getFloat(String columnName) throws SQLException\n {\n return m_rs.getFloat(columnName);\n }",
"public float toFloat() {\n return this.toFloatArray()[0];\n }",
"public void saveFloat(String key,float value)\n {\n preference.edit().putFloat(key,value).apply();\n }",
"@Test\n public void test_column_type_detection_float() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"12.3e4\", XSDDatatype.XSDfloat), true, Types.FLOAT, Float.class.getCanonicalName());\n Assert.assertEquals(7, info.getScale());\n Assert.assertEquals(15, info.getPrecision());\n Assert.assertTrue(info.isSigned());\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"float\";\r\n\t}",
"public void _setValue(float val)\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n setValue((int) (val * 100));\r\n } else\r\n {\r\n setValue((int) val);\r\n }\r\n }",
"T println(float data) throws PrintingException;",
"public FloatType asFloat() {\n return TypeFactory.getIntType(toInt(this.getValue())).asFloat();\n }",
"@Override\r\n public float floatValue() {\r\n return (float) this.m_current;\r\n }",
"public abstract void setValue(double fltValue);",
"public void print(float someFloat) {\r\n print(someFloat + \"\");\r\n }",
"public float getFloat(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getFloat\", columnName);\n return get(columnName).getFloat();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public double getFloat8(int columnIndex) {\n Float8Vector vector = (Float8Vector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"protected void outputFloat(int number) {\r\n if (number == 0) {\r\n buf.write(NUMBERS[0]);\r\n return;\r\n }\r\n final int dec = outputInt(Math.abs(number % 1000));\r\n for (int i = dec; i < 3; ++i) {\r\n buf.write(NUMBERS[0]);\r\n }\r\n buf.write(DOT);\r\n final int floor = number / 1000;\r\n if (floor == 0) {\r\n buf.write(NUMBERS[0]);\r\n if (number < 0) {\r\n buf.write(DASH);\r\n }\r\n } else {\r\n outputInt(floor);\r\n }\r\n }",
"public float getFloat(int row, int column) {\n\t\treturn getColumn(column).getFloat(subset[row]);\n\t}",
"void writeDouble(double v) throws IOException;",
"public float floatValue()\n\t\t{\n\t\t\treturn (float) doubleValue();\n\t\t}",
"public final void writeNumeric(double[] data) {\n myRow.setNumeric(data);\n writeRow(myRow);\n }",
"@Override\n\tpublic void write(FileWriter writer) {\n\t\ttry {\n\t\t\twriter.writeFloat(this.width);\n\t\t\twriter.writeFloat(this.height);\n\t\t} catch (IOException exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}",
"@OfMethod({\"setFloat(java.lang.String,float)\", \"setFloat(int,float)\"})\n public void testSetFloat() throws Exception {\n CallableStatement instance = newClosedCall();\n\n try {\n instance.setFloat(getParameterName(), 0F);\n fail(\"Allowed set float by parameter name after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setFloat(getParameterIndex(), 0F);\n fail(\"Allowed set float by parameter index after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n }",
"protected void writeFloatArray( DataOutput out, float[] array ) throws IOException {\n\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n DataOutputStream dataOut = new DataOutputStream( byteStream );\n\n dataOut.writeInt( array.length );\n for(int i=0; i<array.length; i++)\n dataOut.writeFloat( array[i] );\n dataOut.close();\n\n out.writeInt( byteStream.size() );\n out.write( byteStream.toByteArray() );\n }",
"public void setFloatValue(float v)\n {\n this.setValue(String.valueOf(v));\n }",
"float getValue();",
"float getValue();",
"float getValue();",
"public abstract void setFloatImpl(String str, double d, Resolver<Void> resolver);",
"public void setE(java.lang.Float value) {\n this.e = value;\n }",
"public float floatValue() {\n\t\treturn (float) mDouble;\n\t}",
"float getEFloat();",
"public Float getFloatAttribute();",
"T print(float data) throws PrintingException;",
"@Override\n\tpublic boolean put(Float value) {\n\t\tif (bufferCount < BUFFER_SIZE) {\n\t\t\tbuffer[bufferCount++] = value;\n\t\t} else {\n\t\t\twriteBufferToOCL();\n\t\t\tput(value);\n\t\t}\n\t\treturn true;\n\t}",
"public void setAfloat(boolean x){\r\n \tafloat = x;\r\n }",
"public FloatLiteral(String val,int my_line, int my_column){\n\t\trawValue = val; // Will convert to int value in semantic check\n\t\tvalue = Float.parseFloat(val);//Returns a new float with value represented by the String val\n\t\tlineNumber= my_line;\n\t\tcolNumber=my_column;\n\t}",
"@Override\n\tpublic void fishfloat()\n\t{\n\t\tSystem.out.println(super.getName() + \" is floating\");\n\n\t}",
"public void set_float(float param) {\n this.local_float = param;\n }",
"public double value(){\n\t return (double) this.f;\n }",
"public void setfVal(float value){\n this.fVal = value;\n }",
"@Override\r\n\tpublic float getFloat(int pos) {\n\t\treturn buffer.getFloat(pos);\r\n\t}",
"double getFloatingPointField();",
"public void setValue(float value)\n {\n if(this.valueFloat == value)\n {\n return;\n }\n this.valueFloat = value;\n treeModel.nodeChanged(this.treeNode);\n }",
"public void setValue(float value) {\n\t\tthis.value = value;\n\t\tthis.rawValue=Float.toString(value);\n\t}",
"@Override\n public float nextFloat() {\n return super.nextFloat();\n }",
"@Override\r\n\tpublic boolean isFloat() {\r\n\t\treturn isFloatType;\r\n\t}",
"public void setValue(float value) {\n this.value = value;\n }",
"public abstract void load(LongFloatsCol col, DataInputStream output) throws IOException;",
"Double getFreeFloat();",
"public abstract void save(IntIntsCol col, DataOutputStream output) throws IOException;",
"public void putFloat (JSONObject target , String key , Float value){\r\n\t\tif ( value==null){\r\n\t\t\ttarget.put(key, JSONNull.getInstance());\r\n\t\t\treturn ; \r\n\t\t}\r\n\t\ttarget.put(key, new JSONNumber(value));\r\n\t}",
"public double getFloat8(String columnName) {\n Float8Vector vector = (Float8Vector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public void flt()\n\t{\n\t\tupdateState( MotorPort.FLOAT);\n\t}",
"@Override\n\tpublic float readScalarFloat() throws IOException {\n\t\treturn 0;\n\t}",
"@Override\n public String getFormattedValue(float value, Entry entry, int dataSetIndex, ViewPortHandler viewPortHandler) {\n return mFormat.format((int)value) + \" kcal\"; // e.g. append a dollar-sign\n }",
"public void setValue(float value)\r\n {\r\n getSemanticObject().setFloatProperty(swps_floatValue, value);\r\n }",
"void setDouble(int index, double value) throws SQLException;",
"double floatField(String name, boolean isDefined, double value,\n FloatSpecification spec) throws NullField, InvalidFieldValue;",
"@Override\n public float nextFloat() {\n nextState();\n return outputFloat();\n }",
"public static float getValueFloat()\n {\n return Util.valueFloat;\n }",
"public float floatValue() {\n return (float) value;\n }",
"public void setFloat(String plcAddress,float value) throws Df1LibraryNativeException\n\t{\n\t\tDf1_Write_Float(plcAddress,value);\n\t}",
"@Override\n public void saveFloat(String key, float value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putFloat(key, value);\n prefs.commit();\n }"
] |
[
"0.72567797",
"0.70169574",
"0.6990744",
"0.6958092",
"0.67561686",
"0.670343",
"0.6590098",
"0.65636045",
"0.6547231",
"0.6535484",
"0.6462228",
"0.636788",
"0.63552666",
"0.63091856",
"0.6227595",
"0.6140209",
"0.61321086",
"0.6108402",
"0.6034055",
"0.5997571",
"0.5992203",
"0.59646714",
"0.5925569",
"0.58895177",
"0.58510363",
"0.582947",
"0.58146816",
"0.58076805",
"0.5793229",
"0.57906324",
"0.5769047",
"0.57463217",
"0.57281965",
"0.57213676",
"0.5717566",
"0.57100785",
"0.56926495",
"0.5674651",
"0.5664172",
"0.56131756",
"0.5591636",
"0.5570356",
"0.55683476",
"0.55401695",
"0.5536481",
"0.5520194",
"0.5519132",
"0.55085945",
"0.54934436",
"0.5491439",
"0.5481357",
"0.5479145",
"0.5477937",
"0.5471785",
"0.5471645",
"0.5454549",
"0.5452981",
"0.54446304",
"0.54441154",
"0.5428433",
"0.5422465",
"0.54210174",
"0.54210174",
"0.54210174",
"0.5412329",
"0.5407927",
"0.5405785",
"0.5402619",
"0.5383925",
"0.53755605",
"0.5367833",
"0.53599143",
"0.5359252",
"0.53579724",
"0.5354339",
"0.5350398",
"0.53487104",
"0.5342439",
"0.5338761",
"0.5334689",
"0.53281885",
"0.5327947",
"0.5326248",
"0.5310132",
"0.5306342",
"0.53039086",
"0.530304",
"0.52996296",
"0.52914965",
"0.529119",
"0.52904874",
"0.52851605",
"0.52778655",
"0.52746296",
"0.52720326",
"0.52659774",
"0.52655095",
"0.5257472",
"0.5256993",
"0.5256838"
] |
0.74482036
|
0
|
Write double to current column
|
void writeDouble(double value);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setDouble(int index, double value) throws SQLException;",
"void writeDouble(double v) throws IOException;",
"public abstract void writeAsDbl(int offset, double d);",
"public abstract void save(IntDoublesCol col, DataOutputStream output) throws IOException;",
"public void updateDouble(int columnIndex, double x) throws SQLException\n {\n m_rs.updateDouble(columnIndex, x);\n }",
"public void updateDouble(int columnIndex, double x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateDouble(\" + columnIndex + \", \" + x + \"d);\");\n }\n update(columnIndex, ValueDouble.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public abstract void save(LongDoublesCol col, DataOutputStream output) throws IOException;",
"public ByteBuf writeDouble(double value)\r\n/* 575: */ {\r\n/* 576:586 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 577:587 */ return super.writeDouble(value);\r\n/* 578: */ }",
"private final double get_DOUBLE(int column) {\n if (metadata.isZos()) {\n byte[] bytes = new byte[8];\n dataBuffer_.getBytes(columnDataPosition_[column - 1], bytes);\n return FloatingPoint.getDouble_hex(bytes, 0);\n //return dataBuffer_.getDouble(columnDataPosition_[column - 1]);\n } else {\n return dataBuffer_.getDoubleLE(columnDataPosition_[column - 1]);\n// return FloatingPoint.getDouble(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }\n }",
"public void updateDouble(String columnName, double x) throws SQLException\n {\n m_rs.updateDouble(columnName, x);\n }",
"public void updateDouble(String columnName, double x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateDouble(\" + quote(columnName) + \", \" + x + \"d);\");\n }\n update(columnName, ValueDouble.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void visitColumn(double val);",
"public final void writeNumeric(double[] data) {\n myRow.setNumeric(data);\n writeRow(myRow);\n }",
"public void setDouble(double data, int row, int column) {\n\t\tcolumns[column].setDouble(data, subset[row]);\n\t}",
"public ByteBuf setDouble(int index, double value)\r\n/* 313: */ {\r\n/* 314:328 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 315:329 */ return super.setDouble(index, value);\r\n/* 316: */ }",
"public double getDouble(int columnIndex) throws SQLException\n {\n return m_rs.getDouble(columnIndex);\n }",
"String doubleWrite();",
"public TupleDesc addDouble(String name) {\n columns.add(new TupleDescItem(Type.DOUBLE, name));\n return this;\n }",
"@Override\r\n\tpublic Buffer setDouble(int pos, double d) {\n\t\treturn null;\r\n\t}",
"public double getDouble(int row, int column) {\n return columns[column].getDouble(row);\n }",
"public double getDouble(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getDouble\", columnIndex);\n return get(columnIndex).getDouble();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void setDouble(int parameterIndex, double x) throws SQLException {\n currentPreparedStatement.setDouble(parameterIndex, x);\n }",
"void setDouble(String key, double val);",
"void writeDoubles(double[] d, int off, int len) throws IOException;",
"public void set(int row, int col, double value){\n \tarray[row-1][col-1] = value;\n }",
"private double getDoubleFromDECIMAL(int column) {\n return Decimal.getDouble(dataBuffer_,\n columnDataPosition_[column - 1],\n getColumnPrecision(column - 1),\n getColumnScale(column - 1));\n }",
"public double getDouble();",
"public Double\n getDoubleValue() \n {\n return ((Double) getValue());\n }",
"public double getDouble(String columnName) throws SQLException\n {\n return m_rs.getDouble(columnName);\n }",
"@Override\r\n public double doubleValue() {\r\n return this.m_current;\r\n }",
"public double doubleValue() {\n\t\treturn mDouble;\n\t}",
"public abstract void save(IntFloatsCol col, DataOutputStream output) throws IOException;",
"public double getDouble(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"getDouble\", columnName);\n return get(columnName).getDouble();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public final void writeDouble(final double data, final boolean endianess) throws IOException {\r\n\r\n long tmpLong;\r\n\r\n tmpLong = Double.doubleToLongBits(data);\r\n writeLong(tmpLong, endianess);\r\n }",
"public double getDouble() {\r\n\t\treturn (value.getDouble());\r\n\t}",
"public void set( int row, int column, double value )\n\t{\n\t\tmatrixData[ row - 1 ][ column - 1 ]\t= value;\n\t}",
"protected void writeDoubleArray( DataOutput out, double[] array ) throws IOException {\n\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n DataOutputStream dataOut = new DataOutputStream( byteStream );\n\n dataOut.writeInt( array.length );\n for(int i=0; i<array.length; i++)\n dataOut.writeDouble( array[i] );\n dataOut.close();\n\n out.writeInt( byteStream.size() );\n out.write( byteStream.toByteArray() );\n }",
"public void setValue(int row, int col, double value) {\n data[row][col] = value;\n }",
"public void addColumn(double value)\n {\n addColumn(getDetailCell(value));\n }",
"public void set_double(double param) {\n this.local_double = param;\n }",
"@Override\r\n\tpublic double getDouble(int pos) {\n\t\treturn buffer.getDouble(pos);\r\n\t}",
"public int maDBCursorGetColumnDouble(\n \t\tint cursorHandle,\n \t\tint columnIndex,\n \t\tint doubleValueAddress,\n \t\tMoSyncThread mosync)\n \t{\n \t\tif (!hasCursor(cursorHandle))\n \t\t{\n \t\t\treturn MA_DB_ERROR;\n \t\t}\n \n \t\ttry\n \t\t{\n \t\t\t// Check for NULL value.\n \t\t\tif (getCursor(cursorHandle).isNull(columnIndex))\n \t\t\t{\n \t\t\t\treturn MA_DB_NULL;\n \t\t\t}\n \n \t\t\t// Get data as a float value.\n \t\t\tdouble value = getCursor(cursorHandle).getDouble(columnIndex);\n \n\t\t\t// Write to MoSync memory. Size of a double is 8 - take care of endianess\n \t\t\t// TODO: Replace with high-level call to write double.\n\t\t\tByteBuffer buffer = mosync.getMemorySlice(doubleValueAddress, 8).order(null);\n \t\t\tbuffer.putLong(Double.doubleToLongBits(value));\n \n \t\t\treturn MA_DB_OK;\n \t\t}\n \t\tcatch (CursorIndexOutOfBoundsException ex1)\n \t\t{\n \t\t\tlogStackTrace(ex1);\n \t\t}\n \t\tcatch (SQLException ex2)\n \t\t{\n \t\t\tlogStackTrace(ex2);\n \t\t}\n \n \t\treturn MA_DB_ERROR;\n \t}",
"@Override\n public void onChanged(Double aDouble) {\n if (aDouble*1000 < 1) {\n etOutputValue.setText(\"0.0\");\n } else {\n DecimalFormat decimalFormat = new DecimalFormat(\"#,##0.###\");\n etOutputValue.setText(decimalFormat.format(aDouble));\n }\n }",
"public void setValueCurrentRow(final int column, final double value) {\r\n setValue(currentRow, column, value);\r\n }",
"public void setDoubleValue(double newDouble) {\n\t\tmDouble = newDouble;\n\t}",
"public void putDouble(String key, double value) {\n String doubleAsString = Double.toString(value);\n\n put(key, doubleAsString);\n }",
"Double getDoubleValue();",
"public void addColumn(Double value)\n {\n if (value != null)\n {\n addColumn(getDetailCell(value.doubleValue()));\n }\n else\n {\n addColumn(getDetailCell(\"\", Element.ALIGN_LEFT));\n }\n }",
"public abstract void save(LongFloatsCol col, DataOutputStream output) throws IOException;",
"@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}",
"public void setDoubleValue(double v)\n {\n this.setValue(String.valueOf(v));\n }",
"public double doubleValue() {\n return (double) value;\n }",
"public abstract double readAsDbl(int offset);",
"public double getDoubleValue() {\n\t\treturn value;\r\n\t}",
"public double doubleValue() {\n return this.value;\n }",
"public void addDoubleStat(MetricDef metric, double value){\n doubleMetrics.putOrAdd(metric.metricId(), value, value);\n }",
"double readDouble() throws IOException;",
"double readDouble()\n throws IOException {\n return Double.longBitsToDouble( readLong() );\n }",
"@Override\n public DisplayColumn createRenderer(ColumnInfo colInfo)\n {\n assert colInfo.getJdbcType() == JdbcType.DOUBLE;\n return new DisplayColumnDecorator(_factory.createRenderer(colInfo))\n {\n {\n _textAlign = \"right\";\n }\n\n @Override\n public void renderGridCellContents(RenderContext ctx, Writer out) throws IOException\n {\n Object o = getValue(ctx);\n\n if (null == o)\n {\n super.renderGridCellContents(ctx, out);\n }\n else\n {\n String formatted = ModuleContext.formatVersion((double)o);\n out.write(formatted);\n }\n }\n };\n }",
"public void write(long time, double value) {\n timeEncoder.encode(time, timeOut);\n valueEncoder.encode(value, valueOut);\n statistics.update(time, value);\n }",
"public double toDouble() {\n return this.toDoubleArray()[0];\n }",
"public MyDouble(double val) {\n this.setValue(val);\n }",
"double readDouble();",
"public void setDoubleValue(double value) {\n setValueIndex(getPool().findDoubleEntry(value, true));\n }",
"public void add(final Double e) {\n data.add(e);\n }",
"String floatWrite();",
"public double getDoubleValue()\n {\n return (double) getValue() / (double) multiplier;\n }",
"void writeEntry(String key, Double value, Unit unit, boolean mandatory) throws IOException;",
"public void set(double val);",
"public Double getDoubleAttribute();",
"public double getDouble(int row, int column) {\n\t\treturn getColumn(column).getDouble(subset[row]);\n\t}",
"void setValue(double value);",
"public double getDoubleValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a double.\");\n }",
"@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}",
"public void printDoubleArrayOnFile(double[][] b,int row, int col, PrintWriter printwriter){\r\n\t\tSystem.out.println(\"go to file to see array:\");\r\n\t\tfor(int i=0;i<row;i++){\r\n\t\t\tfor(int j=0;j<col;j++){\r\n\t\t\t\tprintwriter.print(b[i][j]);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tprintwriter.println();\r\n\t\t}\r\n\t\tprintwriter.flush();\r\n\t\tprintwriter.close();\r\n\t}",
"public double doubleValue() {\r\n return (double) intValue();\r\n }",
"private void writeOutput( final PrintWriter writer ) throws InterruptedException, IOException {\n double[][] numbers = new double[DATA_ROWS][DATA_COLUMNS];\r\n for(int irow = 0; irow < DATA_ROWS; irow++) {\r\n for(int icol = 0; icol < DATA_COLUMNS; icol++) {\r\n //double number = rnd.nextDouble();\r\n double number = irow + ( (double) icol ) / 10. + ( (double) icol ) / 100. + ( (double) icol ) / 1000. + ( (double) icol ) / 10000. + ( (double) icol ) / 100000.;\r\n Thread.sleep( SLEEP_BETWEEN_COLUMNS ); //simulating a program that's doing some other work like db retrieval\r\n writer.print( number );\r\n writer.print( '\\t' );\r\n numbers[irow][icol] = number;\r\n }\r\n writer.println();\r\n System.out.println( \"wrote row \" + irow );\r\n }\r\n writer.flush();\r\n writer.close();\r\n checkOutput( numbers );\r\n }",
"public double doubleValue() {\n return (double) m_value;\n }",
"void writeEntry(String key, double value, Unit unit, boolean mandatory) throws IOException;",
"public Double toDouble() {\n\t\treturn this.getValue().doubleValue();\n\t}",
"public double doubleValue() {\n if (originalValue instanceof Double) {\n return (Double) originalValue;\n } else if (originalValue instanceof Number) {\n return ((Number) originalValue).doubleValue();\n } else if (originalValue instanceof String) {\n try {\n return Double.parseDouble((String) originalValue);\n } catch (NumberFormatException e) {\n throw new CellValueCastException(e);\n }\n } else {\n throw new CellValueCastException();\n }\n }",
"@Override\n public void setValueAt (Object value, int row, int col) {\n SecurityRow secRow = allSecurities.get(row);\n if (col == NEW_PRICE_COLUMN) {\n if(value==null) {\n secRow.newPrice = null;\n } else if(value instanceof Double) {\n secRow.newPrice = (Double)value;\n } else {\n double d = StringUtils.parseRate(String.valueOf(value), decimalChar);\n secRow.newPrice = d==0 ? null : d;\n }\n fireTableCellUpdated (row, col);\n }\n }",
"public void addDouble(String name, double value) {\n DOUBLES.add(new SimpleMessageObjectDoubleItem(name, value));\n }",
"public abstract void load(IntDoublesCol col, DataInputStream output) throws IOException;",
"public double set(int i, int j, double value) {\n\t\tdata[i][j] = value;\n\t\treturn value;\n\t}",
"public void setDoubleStat(MetricDef metric, double value){\n doubleMetrics.put(metric.metricId(), value);\n }",
"public DoubleValue(int n) {\n\t\ttimesToWrite = n;\n\t}",
"public double get_double() {\n return local_double;\n }",
"public void putDouble (JSONObject target , String key , Double value){\r\n\t\tif ( value==null){\r\n\t\t\ttarget.put(key, JSONNull.getInstance());\r\n\t\t\treturn ; \r\n\t\t}\r\n\t\ttarget.put(key, new JSONNumber(value));\r\n\t}",
"public void set(double d);",
"public abstract double read_double();",
"public BinaryDouble(double value) {\n\t\tthis.value = value;\n\t}",
"@Test\n public void test_column_type_detection_double() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"12.3e4\", XSDDatatype.XSDdouble), true, Types.DOUBLE, Double.class.getCanonicalName());\n Assert.assertEquals(16, info.getScale());\n Assert.assertEquals(16, info.getPrecision());\n Assert.assertTrue(info.isSigned());\n }",
"public Double getDouble(String attr) {\n return (Double) super.get(attr);\n }",
"@Override\n public Double getDoubleValue()\n {\n return aggVal;\n }",
"@Override\n public Class getValueType() {\n return Double.class;\n }",
"Double getValue();",
"public DoubleValue(double num) {\n this.num = num;\n }",
"public void updateFloat(int columnIndex, float x) throws SQLException\n {\n m_rs.updateFloat(columnIndex, x);\n }",
"private void serializeDouble(final double number, final StringBuffer buffer)\n {\n buffer.append(\"d:\");\n buffer.append(number);\n buffer.append(';');\n }"
] |
[
"0.7255905",
"0.7114854",
"0.71003175",
"0.6952673",
"0.6930975",
"0.6861801",
"0.6828485",
"0.6732862",
"0.6680771",
"0.667898",
"0.6594261",
"0.6512892",
"0.6429127",
"0.642082",
"0.6402146",
"0.6364042",
"0.6334898",
"0.63276756",
"0.61658555",
"0.6165365",
"0.61510646",
"0.61078304",
"0.5993518",
"0.59741193",
"0.59381956",
"0.59269",
"0.5911011",
"0.58950067",
"0.5863313",
"0.5853187",
"0.5836648",
"0.5823613",
"0.5819821",
"0.5813826",
"0.58006775",
"0.57894784",
"0.577579",
"0.5748845",
"0.5743456",
"0.57373726",
"0.5722818",
"0.57062745",
"0.5687305",
"0.56871635",
"0.56854844",
"0.568532",
"0.5678926",
"0.5678055",
"0.567235",
"0.56538194",
"0.5643891",
"0.5633332",
"0.5632396",
"0.5632289",
"0.5621043",
"0.5612491",
"0.55978215",
"0.5592938",
"0.5592935",
"0.55796033",
"0.55706114",
"0.5568277",
"0.55669934",
"0.5549472",
"0.5545601",
"0.554066",
"0.55369824",
"0.5536537",
"0.55322826",
"0.552948",
"0.55289733",
"0.552853",
"0.5524412",
"0.55198956",
"0.5508264",
"0.55044085",
"0.5494949",
"0.5494294",
"0.54916745",
"0.54890996",
"0.5476689",
"0.5473552",
"0.5472023",
"0.54681903",
"0.5464822",
"0.54476446",
"0.54426765",
"0.5432061",
"0.54318815",
"0.5420027",
"0.5415908",
"0.5400517",
"0.5392697",
"0.5386349",
"0.53713584",
"0.5369913",
"0.536414",
"0.5363597",
"0.53631467",
"0.53619426"
] |
0.75381374
|
0
|
Write bytes to current column
|
void writeBytes(byte[] value);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void updateBytes(int columnIndex, byte x[]) throws SQLException\n {\n m_rs.updateBytes(columnIndex, x);\n }",
"void setBytes(int index, byte[] value) throws SQLException;",
"@Override\n public void write(int b) throws IOException {\n byte ib = (byte) b;\n long p = df.position();\n // If not at the end yet,\n if (p < df.size()) {\n // Get the current value,\n byte cur_b = df.get();\n // If the value we are inserting is different,\n if (cur_b != ib) {\n // Reposition and put the new value,\n df.position(p);\n df.put(ib);\n// ++change_count;\n }\n }\n // At the end so write the byte,\n else {\n df.put(ib);\n }\n }",
"public void updateBytes(String columnName, byte x[]) throws SQLException\n {\n m_rs.updateBytes(columnName, x);\n }",
"void setByte(int index, byte value) throws SQLException;",
"public void updateBytes(int columnIndex, byte[] x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateBytes(\" + columnIndex + \", x);\");\n }\n update(columnIndex, x == null ? (Value) ValueNull.INSTANCE : ValueBytes.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public abstract void save(LongLongsCol col, DataOutputStream output) throws IOException;",
"void writeByte(byte value);",
"public abstract void writeByte(byte b) throws IOException;",
"@Override\n\tpublic void showByteWrite(ByteBuffer data)\n\t{\n\n\t}",
"public void updateBytes(String columnName, byte[] x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateBytes(\" + quote(columnName) + \", x);\");\n }\n update(columnName, x == null ? (Value) ValueNull.INSTANCE : ValueBytes.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"@Override\n public void setByte(byte value) throws SQLException {\n setString(Byte.toString(value));\n }",
"public void updateByte(int columnIndex, byte x) throws SQLException\n {\n m_rs.updateByte(columnIndex, x);\n }",
"public void write() {\n/* 1062 */ this.cbSize = size();\n/* 1063 */ super.write();\n/* */ }",
"public abstract void save(IntFloatsCol col, DataOutputStream output) throws IOException;",
"public abstract void save(LongIntsCol col, DataOutputStream output) throws IOException;",
"public abstract void write(byte[] b);",
"public void write(byte[] data, long offset);",
"public abstract void save(IntIntsCol col, DataOutputStream output) throws IOException;",
"public abstract void save(LongFloatsCol col, DataOutputStream output) throws IOException;",
"private void writeByteAt(int pos, int val) {\n dest[pos] = (byte) val;\n }",
"public void setBytes(byte[] data, int row, int column) {\n\t\tcolumns[column].setBytes(data, subset[row]);\n\t}",
"void write(ByteBuffer b, int off, int len) throws IOException;",
"public void updateByte(int columnIndex, byte x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateByte(\" + columnIndex + \", \" + x + \");\");\n }\n update(columnIndex, ValueByte.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"void writeByte(byte[] header, int index, int data) {\n header[index] = (byte) data;\n }",
"public void writedata(byte b) throws Exception{\n ByteBuffer byteBuffer = ByteBuffer.wrap(\"hello\".getBytes(\"UTF-8\"));\n// byteBuffer.flip();\n client.write(byteBuffer);\n byteBuffer.clear();\n client.close();\n\n }",
"public void updateByte(String columnName, byte x) throws SQLException\n {\n m_rs.updateByte(columnName, x);\n }",
"public void setByte(byte data, int row, int column) {\n\t\tcolumns[column].setByte(data, subset[row]);\n\t}",
"private void writeChar(byte[] bytes) {\n // let terminal do auto wrap around. \n term.writeChar(bytes);\n\n // update cursor \n //int x=term.getCursorX(); \n //int y=term.getCursorY();\n //term.putChar(bytes, x, y);\n // increment: let terminal do auto wrap around. \n //term.moveCursor(1,0); \n\n }",
"public void write(byte b[]) throws IOException;",
"void write(byte b[]) throws IOException;",
"public void write(int b) throws IOException {\n/* 54 */ this.appendable.append((char)b);\n/* */ }",
"public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {\n\n updateBinaryStream(columnIndex, x, -1);\n }",
"public void updateBlob(int columnIndex, InputStream x) throws SQLException {\n\n updateBlob(columnIndex, x, -1);\n }",
"public void setBytes(int parameterIndex, byte[] x) throws SQLException {\n currentPreparedStatement.setBytes(parameterIndex, x);\n }",
"private void writeBytes() {\n\t\tint needToWrite = rawBytes.length - bytesWritten;\n\t\tint actualWrit = line.write(rawBytes, bytesWritten, needToWrite);\n\t\t// if the total written is not equal to how much we needed to write\n\t\t// then we need to remember where we were so that we don't read more\n\t\t// until we finished writing our entire rawBytes array.\n\t\tif (actualWrit != needToWrite) {\n\t\t\tCCSoundIO.debug(\"writeBytes: wrote \" + actualWrit + \" of \" + needToWrite);\n\t\t\tshouldRead = false;\n\t\t\tbytesWritten += actualWrit;\n\t\t} else {\n\t\t\t// if it all got written, we should continue reading\n\t\t\t// and we reset our bytesWritten value.\n\t\t\tshouldRead = true;\n\t\t\tbytesWritten = 0;\n\t\t}\n\t}",
"@Override\n public void write(final int byteVal) throws IOException {\n write(new byte[] { (byte) (byteVal & 0xFF) });\n }",
"void write(Object... columns) throws IOException;",
"private void writeByte(int val) {\n dest[destPos++] = (byte) val;\n }",
"public void updateByte(String columnName, byte x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateByte(\" + columnName + \", \" + x + \");\");\n }\n update(columnName, ValueByte.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void write(byte[] buffer);",
"private void byteOut(){\n if(nrOfWrittenBytes >= 0){\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n b=c>>>20;\n c &= 0xFFFFF;\n cT=7;\n }\n else if(c < 0x8000000){\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n b=c>>>19;\n c &= 0x7FFFF;\n cT=8;\n }\n else{\n b++;\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n c &= 0x7FFFFFF;\n b=c>>>20;\n c &= 0xFFFFF;\n cT=7;\n }\n else{\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n b=((c>>>19)&0xFF);\n c &= 0x7FFFF;\n cT=8;\n }\n }\n }\n else {\n // NOTE: carry bit can never be set if the byte buffer was empty\n b= (c>>>19);\n c &= 0x7FFFF;\n cT=8;\n nrOfWrittenBytes++;\n }\n }",
"public abstract void writeBytes(byte[] b, int offset, int length) throws IOException;",
"@Override\r\n\tpublic void write(IByteBuffer target, long offset) {\n\r\n\t}",
"public Builder setColumnBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n column_ = value;\n onChanged();\n return this;\n }",
"private byte[] get_VARCHAR_FOR_BIT_DATA(int column) {\n byte[] bytes;\n int columnLength =\n (maxFieldSize_ == 0) ? columnDataComputedLength_[column - 1] - 2 :\n Math.min(maxFieldSize_, columnDataComputedLength_[column - 1] - 2);\n bytes = new byte[columnLength];\n// System.arraycopy(dataBuffer_, columnDataPosition_[column - 1] + 2, bytes, 0, bytes.length);\n dataBuffer_.getBytes(columnDataPosition_[column - 1] + 2, bytes);\n return bytes;\n }",
"@Override\n public com.google.protobuf.ByteString\n getColumnBytes() {\n Object ref = column_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n column_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public abstract void save(IntLongsCol col, DataOutputStream output) throws IOException;",
"@Override\n public void write(byte[] buf) throws IOException;",
"void writeByte(int v) throws IOException;",
"public void write(byte[] b) throws IOException\n {\n for(int i = 0; i < 12; i++) // write the first 12 bytes to the OutPutStream [row, row, column, column, S(r), S(r), S(c), S(c), G(r), G(r), G(c), G(c), ..]\n {\n this.out.write(b[i]);\n }\n int counter = 0;\n String s = \"\";\n int lastIter = 7;\n for(int i = 12; i < b.length; i++)\n {\n s += b[i];\n counter++;\n if((counter == 7) || (i == b.length - 1))\n {\n if(i == b.length - 1)\n {\n lastIter = counter;\n }\n byte binaryByte = (byte)(int)Integer.valueOf(s, 2);\n this.out.write(binaryByte);\n counter = 0;\n s = \"\";\n }\n }\n this.out.write(lastIter);\n }",
"private void writeBytes( ByteBuffer byteBuffer, byte[] bytes, int len )\n {\n if ( null == bytes )\n {\n bytes = new byte[]\n {};\n }\n\n byteBuffer.put( bytes, 0, Math.min( len, bytes.length ) );\n\n // pad as necessary\n int remain = len - bytes.length;\n\n while ( remain-- > 0 )\n {\n byteBuffer.put( ( byte ) 0 );\n }\n }",
"@Override\r\n\tpublic synchronized void write(byte[] b, int off, int len)\r\n\t{\r\n\t}",
"@Override\r\n\tpublic Buffer setByte(int pos, byte b) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Buffer setBytes(int pos, ByteBuffer b) {\n\t\treturn null;\r\n\t}",
"protected void _setByte(int index, int value)\r\n/* 423: */ {\r\n/* 424:437 */ HeapByteBufUtil.setByte(this.array, index, value);\r\n/* 425: */ }",
"@Override\n\tpublic void writeByte(int b) throws IOException {\n\t\t\n\t}",
"@Override\r\n\tpublic Buffer setBytes(int pos, byte[] b) {\n\t\treturn null;\r\n\t}",
"public void write(ByteBuffer buffer){\r\n\t\tbuffer.putInt(type.ordinal());\r\n\t\tbuffer.putInt(dataSize);\r\n\t\tbuffer.put(data);\r\n\t}",
"private void writeBlob(ObjectOutput out) throws IOException\n\t{\n try {\n int len = getBlobLength();\n InputStream is = _blobValue.getBinaryStream();\n \n writeLength( out, len );\n \n int bytesRead = 0;\n int numOfBytes = 0;\n byte[] buffer = new byte[Math.min(len, LEN_OF_BUFFER_TO_WRITE_BLOB)];\n \n while(bytesRead < len) {\n numOfBytes = is.read(buffer);\n \n if (numOfBytes == -1) {\n throw new DerbyIOException(\n MessageService.getTextMessage(\n SQLState.SET_STREAM_INEXACT_LENGTH_DATA),\n SQLState.SET_STREAM_INEXACT_LENGTH_DATA);\n }\n \n out.write(buffer, 0, numOfBytes);\n bytesRead += numOfBytes; \n }\n }\n catch (StandardException se) { throw new IOException( se.getMessage() ); }\n catch (SQLException se) { throw new IOException( se.getMessage() ); }\n }",
"public void updateBinaryStream(String columnName, InputStream x) throws SQLException {\n\n updateBinaryStream(columnName, x, -1);\n }",
"@Override\n public void write(byte[] byteMaze){\n int rowSize = ((byteMaze[0] & 0xFF) <<8) | (byteMaze[1] & 0xFF);\n int colSize = ((byteMaze[2] & 0xFF) <<8) | (byteMaze[3] & 0xFF);\n if (rowSize*colSize>= 170*170) { // Threshold between big and small mazes\n write(1); //first byte - tells the decompressor which method was used\n writeBig(byteMaze);\n }\n else {\n write(0);\n writeSmall(byteMaze);\n }\n }",
"@Override\n public void write(int i) throws IOException {\n if (pos == BUFFER_SIZE) {\n flush();\n }\n buffer[pos++] = (byte)i;\n }",
"public void updateBinaryStream(String columnName,\n java.io.InputStream x,\n int length) throws SQLException\n {\n m_rs.updateBinaryStream(columnName, x, length);\n }",
"public void write(int index, UnsignedByte unsignedByte) {\n memory[index] = unsignedByte;\n }",
"@Override\n public void write(byte[] buf, int offset, int size) throws IOException;",
"public void write(byte b[], int off, int len) throws IOException;",
"public void updateBinaryStream(int columnIndex,\n java.io.InputStream x,\n int length) throws SQLException\n {\n m_rs.updateBinaryStream(columnIndex, x, length);\n }",
"void setColumn(Column newColumn, int pos) { columns[pos] = newColumn; }",
"@Override\n\tpublic void write(int b) throws IOException{\n\t\tconsoleStream.append(String.valueOf((char)b));\n\t\tconsoleStream.setCaretPosition(consoleStream.getDocument().getLength());\n\t\t\n\t}",
"void write(List<?> columns) throws IOException;",
"public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException {\n\n updateBinaryStream(columnIndex, x, (long) length);\n }",
"public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException {\n\n updateAsciiStream(columnIndex, x, -1);\n }",
"com.google.protobuf.ByteString\n getColumnBytes();",
"@Override\n public void write() {\n\n }",
"@Override\r\n\tpublic void write() {\n\t\t\r\n\t}",
"@Override\r\n public void write(int b) throws IOException {\n textArea.append(String.valueOf((char)b));\r\n // scrolls the text area to the end of data\r\n //textArea.setCaretPosition(textArea.getDocument().getLength());\r\n }",
"public void updateBlob(int columnIndex, InputStream x, long length) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateBlob(\" + columnIndex + \", x, \" + length + \"L);\");\n }\n checkClosed();\n Value v = conn.createBlob(x, length);\n update(columnIndex, v);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException {\n\n updateBinaryStream(columnName, x, (long) length);\n }",
"@Override\n protected void writeInternal(int index, int value) {\n\n }",
"@Override\n protected void writeInternal(int index, int value) {\n\n }",
"private static void writeByte(boolean rs, int data) {\n int highData = ((data >>> NIBBLE_SIZE) & NIBBLE_MASK); //Parte Alta do data\n int lowData = (data & NIBBLE_MASK); //Parte Baixa do data\n writeNibble(rs,highData);\n writeNibble(rs,lowData);\n Time.sleep(WRITEBYTE_SLEEP_TIME);\n }",
"com.google.protobuf.ByteString getColumnBytes();",
"public com.google.protobuf.ByteString\n getColumnBytes() {\n Object ref = column_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n column_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\r\n\t\t\tpublic void write(int b) throws IOException {\n\t\t\t}",
"@Override\n\tpublic void WriteByte(byte value)\n\t{\n\t\tthrow new UnsupportedOperationException(\"TarInputStream WriteByte not supported\");\n\t}",
"public void updateBlob(String columnName, InputStream x) throws SQLException {\n\n updateBlob(columnName, x, -1);\n }",
"@Override\r\n\tpublic Buffer setBytes(int pos, byte[] b, int offset, int len) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeInt(bytes);\n\t\tout.write(buffer);\t\t\n\t}",
"void write(String... columns) throws IOException;",
"void write(byte[] buffer, int bufferOffset, int length) throws IOException;",
"@Override\r\n\tpublic synchronized void write(int b)\r\n\t{\r\n\t}",
"@Override\n public void write(int b) {\n try {\n out.write(b);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void write(ByteBuffer b, int off, int len)\n throws IOException {\n byteBufferStreamOutput.write(b, off, len);\n }",
"public abstract void write(int rowCount) throws IOException;",
"@Override public void write(byte[] bytes) throws RobotCoreException\n {\n byte bCommand = bytes[2];\n this.cbExpected = bCommand==0 ? 0/*write*/ : bytes[4] /*read*/;\n }",
"public void setInto(PreparedStatement ps, int position) throws SQLException, StandardException {\n\n ps.setBytes(position, getBytes());\n }",
"@Override\n\tpublic int WriteToByteArray(byte[] data, int pos) {\n\t\treturn 0;\n\t}",
"public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateBinaryStream(\" + columnIndex + \", x, \" + length + \"L);\");\n }\n checkClosed();\n Value v = conn.createBlob(x, length);\n update(columnIndex, v);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"BinaryArrayReadWrite set(int index, byte x);"
] |
[
"0.66227216",
"0.66032684",
"0.6551935",
"0.64778197",
"0.6402246",
"0.6388923",
"0.6321584",
"0.6283716",
"0.6131687",
"0.61226016",
"0.6103187",
"0.6081881",
"0.60592127",
"0.60348356",
"0.60312545",
"0.6005774",
"0.59989697",
"0.5969051",
"0.5951282",
"0.5948064",
"0.59310836",
"0.5929013",
"0.59222263",
"0.59165424",
"0.5885647",
"0.58694375",
"0.58646",
"0.5847429",
"0.5841174",
"0.580223",
"0.5798491",
"0.5784581",
"0.5767425",
"0.57659197",
"0.57596165",
"0.5754728",
"0.5754394",
"0.5742372",
"0.5737344",
"0.57319516",
"0.57023007",
"0.5701058",
"0.5700181",
"0.56983453",
"0.5692448",
"0.56795913",
"0.56731576",
"0.5668852",
"0.5668589",
"0.5660254",
"0.5636399",
"0.5633732",
"0.56291616",
"0.56235564",
"0.562303",
"0.55989724",
"0.55940914",
"0.55777365",
"0.5560696",
"0.55506146",
"0.55470735",
"0.5546279",
"0.5545879",
"0.55449",
"0.55290323",
"0.5526851",
"0.5517538",
"0.5516114",
"0.5511965",
"0.5505426",
"0.55030346",
"0.5491765",
"0.54844576",
"0.54780084",
"0.5472411",
"0.5456698",
"0.54538196",
"0.54532695",
"0.5453243",
"0.5443292",
"0.5443292",
"0.54403585",
"0.54400456",
"0.543623",
"0.5435446",
"0.5432894",
"0.5429808",
"0.5424397",
"0.5422973",
"0.5418095",
"0.54118556",
"0.54039407",
"0.54014724",
"0.5400728",
"0.53933555",
"0.53926826",
"0.53885674",
"0.53637135",
"0.53599507",
"0.5359521"
] |
0.6017798
|
15
|
Write string to current column
|
void writeString(String value);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private StringBuffer appendColumnString(StringBuffer newLine, int columnIndex, Object plaintext) {\n if (columnIndex != 0){\n newLine.append(\";\");\n }\n newLine.append(plaintext.toString());\n return newLine;\n }",
"void write(String... columns) throws IOException;",
"public void writeBlock(String s) {\n\t\tuncheckedWrite(s);\n\t\t_column += s.length();\n\t}",
"public void setColumn(String column, String s)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n data.put(canonicalize(column), s == null ? NULL_OBJECT : s);\n }",
"private void Write(String text, HSSFCell cell, HSSFCellStyle style) {\n\n\t\tHSSFRichTextString strRT = new HSSFRichTextString(text);\n\t\tcell.setCellValue(strRT);\n\t\tcell.setCellStyle(style);\n\n\t}",
"void setString(int index, String value) throws SQLException;",
"String escapeFlatStorageColumn(String column);",
"public <E extends Writeable> void write(String sql);",
"@Override\n public Class getColumnClass(int columnIndex) {\n return String.class;\n }",
"public void updateString(int columnIndex, String x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateString(\" + columnIndex + \", \" + quote(x) + \");\");\n }\n update(columnIndex, x == null ? (Value) ValueNull.INSTANCE : ValueString.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void updateString(int columnIndex, String x) throws SQLException\n {\n m_rs.updateString(columnIndex, x);\n }",
"private String addFieldValuesToRow(String row, MapWritable mapw, String columnName) {\n Object valueObj = (Object) mapw.get(new Text(columnName));\n row += valueObj.toString() + \"|\";\n return row;\n }",
"public void setValue(String column, String value) {\n Collection<Column> cols = source.getColumn(column);\n Column col = cols.iterator().next();\n setValue(col, value);\n }",
"@SuppressWarnings(\"unchecked\")\n public void writeString(String x) throws SQLException{\n //System.out.println(\"Adding :\"+x);\n attribs.add(x);\n }",
"@Override\n public String getColumn() {\n Object ref = column_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n column_ = s;\n return s;\n }\n }",
"public void setString(String data, int row, int column) {\n\t\tcolumns[column].setString(data, subset[row]);\n\t}",
"public abstract void save(LongLongsCol col, DataOutputStream output) throws IOException;",
"public void updateNString(int columnIndex, String x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateNString(\" + columnIndex + \", \" + quote(x) + \");\");\n }\n update(columnIndex, x == null ? (Value) ValueNull.INSTANCE : ValueString.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"@Override\n public void write (final String s, final int off, final int len)\n {\n if (text != null)\n {\n text.append (s.substring (off, off + len));\n if ((col += len) > wrap)\n println ();\n }\n else\n {\n super.write (s, off, len);\n flush ();\n }\n }",
"java.lang.String getColumn();",
"DataFrameWrite<R,C> write();",
"@Override\n public void writeCell(String name, Object value, int depth) throws IOException {\n this.write(this.getNewline()+this.makeTabs(depth)+\"<\"+name+\">\");\n if (value != null) {\n this.write(Val.escapeXml(value.toString()));\n }\n this.write(\"</\"+name+\">\");\n }",
"public void write(String str) throws IOException {\n\t\toffset = dataBase.getFilePointer();\n\t\tdataBase.writeBytes(str + \"\\n\");\n\t}",
"public final void writeText(String[] data) {\n myRow.setText(data);\n writeRow(myRow);\n }",
"void write(Object... columns) throws IOException;",
"void setColumnValue(int colIndex, Object value);",
"void editCell(Coord coord, String string);",
"void write(List<?> columns) throws IOException;",
"private void write(String s) {\n _writer.print(s);\n _writer.flush(); // This is need to actually write the data.\n\n _index += s.length();\n }",
"public void updateString(String columnName, String x) throws SQLException\n {\n m_rs.updateString(columnName, x);\n }",
"Table setColumn(int index, String name);",
"void writeChar(char value);",
"void write (String s, int offset);",
"@Override\n public void write(String text) {\n }",
"@Override\n public void write(String str) {\n BufferedWriter writer;\n try {\n String path = FileManager.getInstance().getPath();\n writer = new BufferedWriter(new FileWriter(path, true));\n writer.write(str);\n writer.newLine();\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void write (final char buf[], final int off, final int len)\n {\n if (text != null)\n {\n text.append (new String (buf, off, len));\n if ((col += len) > wrap)\n println ();\n }\n else\n super.write (buf, off, len);\n }",
"void writeLine(Object... columns) throws IOException;",
"public void updateString(String columnName, String x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateString(\" + quote(columnName) + \", \" + quote(x) + \");\");\n }\n update(columnName, x == null ? (Value) ValueNull.INSTANCE : ValueString.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void setCellText(int row, int col, String text) {\n\t\tcheckColumnIndex(col);\n\t\tif(row >= input.size()){\n\t\t\tfor(int i=input.size(); i<=row; i++){\n\t\t\t\tString[] array = new String[getColumnCount()];\n\t\t\t\tArrays.fill(array, \"\"); //$NON-NLS-1$\n\t\t\t\tinput.add(new ArrayList<String>(Arrays.asList(array)));\n\t\t\t}\n\t\t\ttableViewer.refresh();\n\t\t}\n\t\tinput.get(row).set(col, text);\n\t\ttableViewer.getTable().getItem(row).setText(col, text);\n\t\tfireTableModified();\n\t}",
"public Class<?> getColumnClass(int column) {\n return String.class;\n }",
"protected void setCurrentColumnValue(String currentColumnValue) {\r\n this.currentColumnValue = currentColumnValue;\r\n }",
"public static void setData(String rowData) {\n data.append(rowData);\n }",
"public void appendToCells(String value) {\n\t \n\t\tString[] ca = new String[cell.length + 1];\n\t\tca[0] = value;\n\t\t\n\t\tfor (int i=0; i < cell.length; i++) {\n\t\t\tca[i+1] = cell[i];\n\t\t}\n\t\t\n\t\tcell = ca;\n }",
"public void textSaver(BufferedWriter writer)throws IOException{\r\n\t\tfor(int i=0;i<getColumn();i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<getRow();j++)\r\n\t\t\t\twriter.write(warehouse[i][j].getChar());\r\n\t\twriter.newLine();\r\n\r\n\t\t}\r\n\t\t\r\n\t}",
"public Class getColumnClass (int index) {\n return String.class;\n }",
"public void setColumn(char column) {\n\t\tthis.column = column;\n\t}",
"public void setValueAt(Object value, int row, int col) {\n if(row < getRowCount()){\n if (DEBUG) {\n System.out.println(\"Setting value at \" + row + \",\" + col\n + \" to \" + value\n + \" (an instance of \"\n + value.getClass() + \")\");\n }\n String[] r = data.get(row);\n r[col] = (String) value;\n fireTableCellUpdated(row, col);\n\n if (DEBUG) {\n System.out.println(\"New value of data:\");\n printDebugData();\n }\n }\n }",
"public abstract void addColumn(Column c);",
"void setColumn(Column newColumn, int pos) { columns[pos] = newColumn; }",
"public void setChar(char data, int row, int column) {\n\t\tcolumns[column].setChar(data, subset[row]);\n\t}",
"public StringColumn mapToStringColumn(\n String name, Function<? super T, ? extends String> function) {\n StringColumn newColumn = StringColumn.create(name, size());\n mapInto(function, newColumn);\n return newColumn;\n }",
"public String getAddColumnString() {\n \t\tthrow new UnsupportedOperationException( \"No add column syntax supported by \" + getClass().getName() );\n \t}",
"public void write(String value){\r\n for(int i=0; i<value.length(); i++){\r\n mBufferData.add(value.charAt(i));\r\n }\r\n }",
"@Override\n public void write (final int c)\n {\n if (text != null)\n {\n text.append (String.valueOf ((char) c));\n if (++col > wrap)\n println ();\n }\n else\n super.write (c);\n }",
"Column(String column) {\n this.column = column;\n }",
"Column(String column) {\n this.column = column;\n }",
"public void updateNString(String columnName, String x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateNString(\" + quote(columnName) + \", \" + quote(x) + \");\");\n }\n update(columnName, x == null ? (Value) ValueNull.INSTANCE : ValueString.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public Class getColumnClass(int index) {\r\n return String.class;\r\n }",
"@Override\n public void writeRow(final Object... columnData) {\n TextOutputFormat outputFormat = this.outputFormat;\n if (outputFormat == TextOutputFormat.text) {\n outputFormat = TextOutputFormat.tsv;\n }\n final Tag row = tableRow().make();\n for (final Object element : columnData) {\n final TagBuilder tableCell = tableCell().withEscapedText(toString(element));\n if (element == null) {\n tableCell.withStyleClass(\"data_null\");\n } else if (element instanceof BinaryData) {\n tableCell.withStyleClass(\"data_binary\");\n } else if (element instanceof Number) {\n tableCell.withStyleClass(\"data_number\");\n }\n row.addInnerTag(tableCell.make());\n }\n\n out.println(row.render(TagOutputFormat.valueOf(outputFormat.name())));\n }",
"@Override\n\t\tpublic void setValueColumn(int columnIndex) {\n\t\t\tthis.valueColumn = columnIndex;\n\t\t}",
"public void write_line(String string)\n {\n String[] current = read();\n\n try\n {\n dir = new File(contextRef.getFilesDir(), filename);\n PrintWriter writer = new PrintWriter(dir);\n\n for (int i = 0; i < current.length; i++)\n {\n String line = current[i];\n if (line != null)\n {\n writer.println(line);\n }\n }\n writer.println(string);\n writer.close();\n }catch (Exception ex)\n {\n debug = \"test write failure\";\n }\n }",
"private void writeColumnSpace(BufferedWriter writer, int totalSpace)\n\tthrows IOException\n {\n\tfor(int i = 0; i < totalSpace; i++) \n {\n\t\twriter.write(\" \");\n\t}\n }",
"private static void appendColumns(StringBuilder s, String[] columns) {\n int n = columns.length;\n\n for (int i = 0; i < n; i++) {\n String column = columns[i];\n\n if (column != null) {\n if (i > 0) {\n s.append(\", \");\n }\n s.append(column);\n }\n }\n s.append(' ');\n }",
"private void setValue(int columnIndex, String value) throws Exception {\n //TODO Take into account the possiblity of a collision, and notify listeners if necessary\n if (wasNull || value == null) {\n rowValues[columnIndex - 1] = null;\n } else {\n switch (metaData.getColumnType(columnIndex)) {\n case Types.TINYINT:\n rowValues[columnIndex - 1] = Byte.valueOf(value.trim());\n break;\n case Types.SMALLINT:\n rowValues[columnIndex - 1] = Short.valueOf(value.trim());\n break;\n case Types.INTEGER:\n rowValues[columnIndex - 1] = Integer.valueOf(value.trim());\n break;\n case Types.BIGINT:\n rowValues[columnIndex - 1] = Long.valueOf(value.trim());\n break;\n case Types.REAL:\n rowValues[columnIndex - 1] = Float.valueOf(value.trim());\n break;\n case Types.FLOAT:\n case Types.DOUBLE:\n rowValues[columnIndex - 1] = Double.valueOf(value.trim());\n break;\n case Types.DECIMAL:\n case Types.NUMERIC:\n rowValues[columnIndex - 1] = new BigDecimal(value.trim());\n break;\n case Types.BOOLEAN:\n case Types.BIT:\n rowValues[columnIndex - 1] = Boolean.valueOf(value.trim());\n break;\n case Types.CHAR:\n case Types.VARCHAR:\n case Types.LONGVARCHAR:\n rowValues[columnIndex - 1] = value;\n break;\n case Types.VARBINARY:\n case Types.LONGVARBINARY:\n case Types.BINARY:\n byte[] bytes = Base64.decode(value);\n rowValues[columnIndex - 1] = bytes;\n break;\n case Types.DATE:\n case Types.TIME:\n case Types.TIMESTAMP:\n rowValues[columnIndex - 1] = new Timestamp(Long.parseLong(value.trim()));\n break;\n case Types.ARRAY:\n case Types.BLOB:\n case Types.CLOB:\n case Types.DATALINK:\n case Types.DISTINCT:\n case Types.JAVA_OBJECT:\n case Types.OTHER:\n case Types.REF:\n case Types.STRUCT:\n //what to do with this?\n break;\n default :\n //do nothing\n }\n }\n }",
"public void write(String str) {\n Log.d(TAG, \"-> \"+str);\n mmOutStream.println(str);\n mmOutStream.flush();\n }",
"private int insertOnColumn(int column, char playerChar){\n int lineOfLastColumnFree = 0;\n for(int i = 0; i < this.lines; i++){\n if(i + 1 < this.lines && this.tiles[i + 1][column - 1] == 'O' ){\n lineOfLastColumnFree++;\n }\n else{\n break;\n }\n }\n\n this.tiles[lineOfLastColumnFree][column - 1] = playerChar;\n return lineOfLastColumnFree;\n }",
"void addCellContent(Cell cell, String content);",
"public Builder setColumn(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n column_ = value;\n onChanged();\n return this;\n }",
"private static void writeDataLog(String string, String result) throws IOException {\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new File(string), true));\n\t\tbw.write(result);\n\t\tbw.newLine();\n\t\tbw.flush();\n\t\tbw.close();\n\t}",
"public abstract void save(IntIntsCol col, DataOutputStream output) throws IOException;",
"private void addColumnElement(String p_element, String p_value)\n {\n incrementIndent();\n addIndent();\n openStartTag(p_element);\n closeTag(false);\n addString(escapeString(p_value));\n openEndTag(p_element);\n closeTag();\n decrementIndent();\n }",
"public abstract void save(IntFloatsCol col, DataOutputStream output) throws IOException;",
"public abstract void save(LongIntsCol col, DataOutputStream output) throws IOException;",
"void write(String text);",
"public Class<?> getColumnClass(int columnIndex)\r\n {\r\n return String.class;\r\n }",
"public abstract String getString(int columnIndex);",
"public void writeStringDB(String string, String location) {\n // Write to the database\n FirebaseDatabase mDatabase = FirebaseDatabase.getInstance();\n DatabaseReference mDbRef = mDatabase.getReference(location);\n mDbRef.setValue(string).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) { // Error msg in Logcat in case the writing procedure fails\n Log.d(TAG, e.getLocalizedMessage());\n }\n });\n }",
"String charWrite();",
"void insert(int column, String color);",
"public void setValue(int col, String value) {\n\t\tint row = rowList.getSelectedIndex();\n\t\tdm.setValue(col, row, value);\n\t}",
"void incrementColumnIndex();",
"void incrementColumnIndex();",
"@Override\r\n\t\t\tpublic void modifyText(ModifyEvent me) {\n\t\t\t\tString newValue = newEditor.getText();\r\n\t\t\t\teditor.getItem().setText(VALUE_COLUMN_NO, newValue);\r\n\t\t\t\t//isEditorModify = true;\r\n\t\t\t\t//propertyInfo.setValue(newValue);\r\n\t\t\t}",
"public static void storeFxString(FxString[] string, Connection con, String table, String[] dataColumn,\n String idColumn, long id) throws SQLException {\n PreparedStatement ps = null;\n if (string.length != dataColumn.length)\n throw new SQLException(\"string.length != dataColumn.length\");\n for (FxString param : string) {\n if (!param.isMultiLanguage()) {\n throw new FxInvalidParameterException(\"string\", LOG, \"ex.db.fxString.store.multilang\", table).asRuntimeException();\n }\n }\n try {\n ps = con.prepareStatement(\"DELETE FROM \" + table + ML + \" WHERE \" + idColumn + \"=?\");\n ps.setLong(1, id);\n ps.execute();\n \n //find languages to write\n List<Long> langs = new ArrayList<Long>(5);\n for (FxString curr : string)\n for (long currLang : curr.getTranslatedLanguages())\n if (curr.translationExists(currLang)) {\n if (!langs.contains(currLang))\n langs.add(currLang);\n }\n if (langs.size() > 0) {\n StringBuffer sql = new StringBuffer(300);\n sql.append(\"INSERT INTO \").append(table).append(ML + \"(\").append(idColumn).append(\",LANG\");\n for (String dc : dataColumn)\n sql.append(',').append(dc).append(',').append(dc).append(\"_MLD\");\n sql.append(\")VALUES(?,?\");\n //noinspection UnusedDeclaration\n for (FxString aString : string) sql.append(\",?,?\");\n sql.append(')');\n ps.close();\n ps = con.prepareStatement(sql.toString());\n boolean hasData;\n for (long lang : langs) {\n hasData = false;\n ps.setLong(1, id);\n ps.setInt(2, (int) lang);\n for (int i = 0; i < string.length; i++) {\n if (FxString.EMPTY.equals(string[i].getTranslation(lang))) {\n ps.setNull(3 + i*2, java.sql.Types.VARCHAR);\n ps.setBoolean(3 + 1 + i*2, false);\n } else {\n ps.setString(3 + i*2, string[i].getTranslation(lang)); //get translation or empty string\n ps.setBoolean(3 + 1 + i*2, string[i].isDefaultLanguage(lang));\n hasData = true;\n }\n }\n if (hasData)\n ps.executeUpdate();\n }\n }\n } finally {\n if (ps != null)\n ps.close();\n }\n }",
"public abstract void save(LongFloatsCol col, DataOutputStream output) throws IOException;",
"@Override public Class<?> getColumnClass(int iColumnIndex)\r\n {\r\n Class<?> cReturn = String.class;\r\n\r\n return cReturn;\r\n }",
"public void addColumn(String columnName);",
"public void add(String data) {\n columns.add(data);\n }",
"public synchronized void write(String data){\n\t\tlog.debug(\"[SC] Writing \"+data, 4);\n\t\twriteBuffer.add(data.getBytes());\n\t}",
"public abstract void write(ResultSet rs,String...widths) throws IOException, SQLException;",
"public String getColumn() {\n Object ref = column_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n column_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"@Override\n\tpublic void setValueAt(Object value, int row, int column) {\n\t\tswitch (column) {\n\t\tcase 0:\n\t\t\tString expr = value.toString();\n\t\t\texpressions.set(row, expr);\n\t\t\tString result = executeExpr(expr, row);\n\n\t\t\tvalues.set(row, result);\n\t\t\tupdateModel();\n\t\t\tif (row + 1 == expressions.size()) {\n\t\t\t\texpressions.add(\"\");\n\t\t\t\tvalues.add(\"\");\n\t\t\t\tfireTableRowsInserted(row + 1, row + 1);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\t// just reset column 2; ignore edits\n\t\t\tfireTableDataChanged();\n\t\t}\n\t}",
"@Override\n\tpublic void WriteData(String obj) {\n\t\t\n\t}",
"public void setString(int parameterIndex, String x) throws SQLException {\n currentPreparedStatement.setString(parameterIndex, x);\n }",
"private char convertSeatColToString(int col) {\n return ((char) (col + CONVERT_NUM_TO_CHAR));\n }",
"public void setColumn(String column, int i)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n data.put(canonicalize(column), new Integer(i));\n }",
"@Override\n\tpublic void write(int b) throws IOException {\n\tchar a=(char) b;\n\tString s=String.valueOf(a);\n\t//add new output at the end of previous text\n text.append(s);\n\t//keeps reaching at the end of text area\n text.setCaretPosition(text.getDocument().getLength());\n\t}",
"String getColumn();",
"public void writeRow(Object[] colValues) throws IOException;",
"public abstract void save(IntDoublesCol col, DataOutputStream output) throws IOException;"
] |
[
"0.67713326",
"0.6387694",
"0.6174399",
"0.60714954",
"0.60693353",
"0.6005309",
"0.5978391",
"0.59056246",
"0.58248305",
"0.5802427",
"0.5801144",
"0.5777791",
"0.57122743",
"0.5708118",
"0.5706618",
"0.5675843",
"0.5650489",
"0.5630057",
"0.5618972",
"0.5598631",
"0.5595137",
"0.5579709",
"0.55632913",
"0.5545344",
"0.5523139",
"0.551846",
"0.54998076",
"0.54729164",
"0.5467438",
"0.5428849",
"0.5407433",
"0.5401247",
"0.53956753",
"0.5393738",
"0.5386504",
"0.5365439",
"0.5364952",
"0.5361185",
"0.53374773",
"0.5329763",
"0.5317126",
"0.53142834",
"0.53099746",
"0.529742",
"0.52779967",
"0.5277919",
"0.5274321",
"0.5269253",
"0.5260064",
"0.5246289",
"0.52425814",
"0.52334046",
"0.52231216",
"0.52087355",
"0.5208104",
"0.5208104",
"0.52063584",
"0.52038926",
"0.519989",
"0.5184614",
"0.51693285",
"0.51691425",
"0.5166329",
"0.51660913",
"0.5164721",
"0.5158943",
"0.5157856",
"0.5157807",
"0.51569545",
"0.5155467",
"0.5152469",
"0.51494557",
"0.5148896",
"0.5148043",
"0.51475745",
"0.51431185",
"0.5139774",
"0.51373905",
"0.5129817",
"0.5128208",
"0.5116511",
"0.5116511",
"0.51094884",
"0.5103473",
"0.5100602",
"0.509933",
"0.5099288",
"0.50983906",
"0.5094442",
"0.50840765",
"0.50802124",
"0.5076883",
"0.50744265",
"0.5073716",
"0.50723654",
"0.50722694",
"0.5064395",
"0.50633043",
"0.50623727",
"0.5056565"
] |
0.5584206
|
21
|
If the value is null, write a null marker
|
<T> boolean shouldWriteValue(T value);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected void writeNullValue() throws IOException {\n _generator.writeNull();\n }",
"private void serializeNull(final StringBuffer buffer)\n {\n buffer.append(\"N;\");\n }",
"@Override\n public void writeNull(FieldDefinition di) {\n if (inArray) {\n arr.addNull();\n } else if (writeNulls) {\n obj.putNull(di.getName());\n }\n }",
"void writeNullObject() throws SAXException {\n workAttrs.clear();\n addIdAttribute(workAttrs, \"0\");\n XmlElementName elemName = uimaTypeName2XmiElementName(\"uima.cas.NULL\");\n startElement(elemName, workAttrs, 0);\n endElement(elemName);\n }",
"@Override\n\tpublic void flagNull() {\n\t\t\n\t}",
"private final void _writeNull()\n/* */ throws IOException\n/* */ {\n/* 1610 */ if (this._outputTail + 4 >= this._outputEnd) {\n/* 1611 */ _flushBuffer();\n/* */ }\n/* 1613 */ int ptr = this._outputTail;\n/* 1614 */ char[] buf = this._outputBuffer;\n/* 1615 */ buf[ptr] = 'n';\n/* 1616 */ buf[(++ptr)] = 'u';\n/* 1617 */ buf[(++ptr)] = 'l';\n/* 1618 */ buf[(++ptr)] = 'l';\n/* 1619 */ this._outputTail = (ptr + 1);\n/* */ }",
"static public void emitNullableString(RowEmitter outputEmitter, String value) {\r\n\t\tif(value != null)\r\n\t\t\toutputEmitter.addString(value);\r\n\t\telse\r\n\t\t\toutputEmitter.addNull();\r\n\t}",
"public static String formatNull() {\n\t\treturn \"null\";\n\t}",
"@Override\n\tpublic void visit(NullValue arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void visit(NullValue arg0) {\n\n\t}",
"@Override\n public void write() {\n MDC.put(this.key, this.value!=null ? this.value : \"?\");\n }",
"private String getNullValueText() {\n return getNull();\n }",
"@Override\r\n public String toString() {\r\n return (value == null) ? \"\" : value;\r\n }",
"private void writeNullCommitMetaData() {\n writer.println(\"commit_NULL:\");\n writeSpacesCorrespondingToNestedLevel(COMMIT_METADATA_NEST_LEVEL);\n writer.println(\"author:\");\n writeSpacesCorrespondingToNestedLevel(COMMIT_METADATA_NEST_LEVEL);\n writer.println(\"modified:\");\n writeSpacesCorrespondingToNestedLevel(COMMIT_METADATA_NEST_LEVEL);\n writer.println(\"removed:\");\n }",
"public String replaceMissingWithNull(String value);",
"private String notNull(String value) {\n return value != null ? value : \"\";\n }",
"static public void emitNullableInteger(RowEmitter outputEmitter, long value, long nullValue) {\r\n\t\tif(value != nullValue)\r\n\t\t\toutputEmitter.addLong(value);\r\n\t\telse\r\n\t\t\toutputEmitter.addNull();\r\n\t}",
"static public void emitNullableTimestamp(RowEmitter outputEmitter, long value, long nullValue) {\r\n\t\tif(value != nullValue) {\r\n\t\t\tCalendar creationTimestamp = Calendar.getInstance();\r\n\t\t\tcreationTimestamp.setTimeInMillis(value);\r\n\t\t\toutputEmitter.addTimestamp(new Timestamp(\r\n\t\t\t\t\tSqlType.getType(\"timestamp with time zone\"),\r\n\t\t\t\t\tcreationTimestamp.get(Calendar.YEAR),\r\n\t\t\t\t\tcreationTimestamp.get(Calendar.MONTH)+1,\r\n\t\t\t\t\tcreationTimestamp.get(Calendar.DAY_OF_MONTH),\r\n\t\t\t\t\tcreationTimestamp.get(Calendar.HOUR_OF_DAY),\r\n\t\t\t\t\tcreationTimestamp.get(Calendar.MINUTE),\r\n\t\t\t\t\tcreationTimestamp.get(Calendar.SECOND),\r\n\t\t\t\t\tcreationTimestamp.get(Calendar.MILLISECOND)*1000000));\r\n\t\t}\r\n\t\telse\r\n\t\t\toutputEmitter.addNull();\r\n\t}",
"@Override\n public void setNull() {\n\n }",
"@Override\n public String Inject(String value, SchemaBuilder schema)\n {\n return \"ReplaceWithNull\";\n }",
"@Override\n\tpublic void visit(Null n) {\n\t\t\n\t}",
"private String replaceNull(Time s) {\n\t\treturn s == null ? \"--\" : s.toString();\n\t}",
"public String NullSave()\n {\n return \"null\";\n }",
"@Override\n\tpublic String display() {\n\t\treturn \"null\";\n\t}",
"public void setValueNull()\n\t{\n\t\tallValues.clear();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn getValue() != null ? getValue().toString() : \"null\";\n\t}",
"@Override\n public String visit(MarkerAnnotationExpr n, Object arg) {\n return null;\n }",
"NullValue createNullValue();",
"NullValue createNullValue();",
"private void putOwnerAndNull() {\n\n visitInsn(DUP2_X1);\n\n //Stack = valueHigh, valueLow, owner, valueHigh, valueLow\n\n visitInsn(POP2);\n\n //Stack = valueHigh, valueLow, owner\n\n visitInsn(DUP_X2);\n\n //Stack = owner, valueHigh, valueLow, owner\n\n visitInsn(Opcodes.ACONST_NULL);\n }",
"@NotNull\n protected String format(@NotNull final Object value) {\n return value != null\n ? value.toString()\n : \"\";\n }",
"public static String toString(Object value) {\n if (value != null)\n return value.toString();\n else\n return null;\n }",
"@Impure\n public abstract void encodeNull(int typeCode) throws DatabaseException;",
"private static String getValue(Object o) {\n if (o != null) {\n return o.toString();\n }\n return \"null\";\n }",
"private V isertNullKey(K key, V value) {\n return value;\n }",
"@Test\r\n public void testAllowNulls() {\r\n MapJsonRenderer renderer = new MapJsonRenderer(true);\r\n JSONStringer jsonWriter = new JSONStringer();\r\n jsonWriter.addRenderer(renderer);\r\n Map<String, Object> map = new LinkedHashMap<String, Object>();\r\n map.put(\"ff\", null);\r\n jsonWriter.value(map);\r\n\r\n assertEquals(jsonWriter.toString(), \"{\\\"ff\\\":null}\");\r\n }",
"void setNilValue();",
"T getNullValue();",
"String getDefaultNull();",
"@Override\r\n\tpublic void visit(NullExpression nullExpression) {\n\r\n\t}",
"@Override\n public String visit(NullLiteralExpr n, Object arg) {\n return null;\n }",
"@Override\n\tpublic Value apprise() {\n\t\treturn null;\n\t}",
"public static String convertNULLtoString(Object object) {\n return object == null ? EMPTY : object.toString();\n }",
"public M cssePersonNull(){if(this.get(\"cssePersonNot\")==null)this.put(\"cssePersonNot\", \"\");this.put(\"cssePerson\", null);return this;}",
"public String getNullAttribute();",
"public M csmiPlaceNull(){if(this.get(\"csmiPlaceNot\")==null)this.put(\"csmiPlaceNot\", \"\");this.put(\"csmiPlace\", null);return this;}",
"public static String nullConv(String value){\r\n\t\tif(value==null){\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\treturn value;\r\n\t}",
"T getNullRepresentation();",
"protected Object atInsert(Object value) {\n return null;\n }",
"public static String null2String(Object obj) {\n\t\treturn obj == null ? \"\" : obj.toString();\n\t}",
"@Override\r\n\tpublic String encode() {\n\t\treturn null;\r\n\t}",
"public static Value makeNull() {\n return theNull;\n }",
"private Optional() {\r\n\t\tthis.value = null;\r\n\t}",
"private String bindNull() {\n String op;\n \n if (operator == null) {\n op = null;\n } else if (operator.equals(\"=\")) {\n op = \"IS\";\n } else if (operator.equals(\"!=\")) {\n op = \"IS NOT\";\n } else {\n op = operator;\n }\n if (column != null && skipNulls) {\n return \"1 = 1\";\n } else {\n return cond(column, op, \"NULL\");\n }\n }",
"@Override\n\tpublic String getValue() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getValue() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getValue() {\n\t\treturn null;\n\t}",
"public void setNull (JaqyPreparedStatement stmt, int column, ParameterInfo paramInfo) throws Exception;",
"public void visitACONST_NULL(ACONST_NULL o){\n\t\t// Nothing needs to be done here.\n\t}",
"@Override\n\tpublic String toStringDebug() {\n\t\treturn null;\n\t}",
"Object setValue(Object value) throws NullPointerException;",
"public M csmiPersonNull(){if(this.get(\"csmiPersonNot\")==null)this.put(\"csmiPersonNot\", \"\");this.put(\"csmiPerson\", null);return this;}",
"private String toString(Object value) {\n if (value == null) return \"null\";\n // TODO: handle arrays in a nicer way.\n return value.toString();\n }",
"private static String addNull(String bitDisk) {\n\t\tbitDisk = \"0\" + bitDisk;\n\t\treturn bitDisk;\n\t}",
"boolean isNullOmittable();",
"private void setColumnNullInternal(String column)\n {\n data.put(canonicalize(column), NULL_OBJECT);\n }",
"@Override\n SerializerElem preValueWrite(String key, Object value, boolean withNsPrefix, Class<?> rootClass) {\n return null;\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\tif (value != null)\r\n\t\t\treturn String.format(\"Optional[%s]\", value);\r\n\t\telse\r\n\t\t\treturn \"Optional.empty\";\r\n\t}",
"private String parseNull () {\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n char chr=next();//get next character\r\n assert chr=='n';//assert correct first character\r\n skip(3);//skip to end of null token\r\n \r\n return \"null\";//return string representation of null\r\n \r\n }",
"@Override\n protected <T> T replaceIfNotNull(T previousVal, T newVal) {\n return newVal;\n }",
"protected void changeNulls(String[] line) {\n if (line[airlineID].equals(\"\\\\N\")) {\n line[airlineID] = \"0\";\n }\n\n if (line[sourceAirportID].equals(\"\\\\N\")) {\n line[sourceAirportID] = \"0\";\n }\n\n if (line[destinationAirportID].equals(\"\\\\N\")) {\n line[destinationAirportID] = \"0\";\n }\n }",
"public M csseAddressNull(){if(this.get(\"csseAddressNot\")==null)this.put(\"csseAddressNot\", \"\");this.put(\"csseAddress\", null);return this;}",
"public M csmiAddressNull(){if(this.get(\"csmiAddressNot\")==null)this.put(\"csmiAddressNot\", \"\");this.put(\"csmiAddress\", null);return this;}",
"@Override\r\n\tpublic String serialize(Annotation annotation) {\n\t\treturn null;\r\n\t}",
"public M csmiContactNull(){if(this.get(\"csmiContactNot\")==null)this.put(\"csmiContactNot\", \"\");this.put(\"csmiContact\", null);return this;}",
"@Test(timeout = 4000)\n public void test014() throws Throwable {\n String string0 = JSONObject.valueToString((Object) null, (-732), (-732));\n assertEquals(\"null\", string0);\n }",
"@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}",
"@Override\n protected void onNullNonKeyAttribute(String attributeName) {\n /* When doing a force put, we can safely ignore the null-valued attributes. */\n return;\n }",
"private void checkLabelValue()\n\t{\n\t\tif(labelValue != null && !\"\".equals(labelValue))\n\t\t{\n\t\t\tlabelValue += \": \";\n\t\t}\n\t}",
"@Override\n\tpublic void visit(IsNullExpression arg0) {\n\t\t\n\t}",
"@Override\r\n\tpublic String toInfoString() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void visit(IsNullExpression arg0) {\n\n\t}",
"public static String checkNullObject(Object val) {\n\n if (val != null) {\n if (\"\".equals(val.toString().trim())) {\n return \"\";\n }\n return val.toString();\n } else {\n return \"\";\n }\n }",
"public JsonWriter valueLiteral(CharSequence value) {\n startValue();\n\n if (value == null) {\n writer.write(kNull);\n } else {\n writer.write(value.toString());\n }\n return this;\n }",
"public String toString() {\n return \"[ \" + nullCheck.toString() + \" is null ]\";\n }",
"public M csmiSexNull(){if(this.get(\"csmiSexNot\")==null)this.put(\"csmiSexNot\", \"\");this.put(\"csmiSex\", null);return this;}",
"public M cssePostionNull(){if(this.get(\"cssePostionNot\")==null)this.put(\"cssePostionNot\", \"\");this.put(\"cssePostion\", null);return this;}",
"String objectOut (JField jf, Object value, MarshalContext context) {\n\t\tString result = value.toString ();\n\t\tif (jf.isDate ()) {\n\t\t\tSimpleDateFormat sdf = context.getDateFormat ();\n\t\t\tif (sdf == null) // the usuals seconds ..\n\t\t\t\tresult = ((java.sql.Timestamp)value).getTime() + \"\";\n\t\t\telse\n\t\t\t\tresult = sdf.format ((java.sql.Timestamp)value);\n\t\t}\n\t\telse if (jf.getObjectType ().equals (\"char\") && result.charAt (0) == (char)0)\n\t\t\tresult = \"\";\n\t\telse if (jf.getObjectType ().equals (\"double\") && result.equals (\"NaN\"))\n\t\t\tresult = \"\";\n\t\treturn result;\n }",
"private void createNullSet()\n\t{\n\t\tm_values = null;\n\t}",
"public void setGenerateNull(boolean generateNull){\n mGenerateNull = generateNull;\n }",
"private void replaceNullKeyWithEmptyString(PFXExtensionType extensionType, ObjectNode node) {\n Set<String> existingFields = getExistingFields(node);\n\n Set<String> missingFields = extensionType.getBusinessKeys();\n missingFields.removeAll(existingFields);\n\n for (String missingField : missingFields) {\n if (node.get(missingField) == null || node.get(missingField).isMissingNode() ||\n node.get(missingField).textValue() == null) {\n node.put(missingField, StringUtils.EMPTY);\n }\n }\n }",
"private String getStringOrNull (String value) {\n if (value == null || value.isEmpty()) value = null;\n return value;\n }",
"public void testGetNullValue() {\n ValueString vs = new ValueString();\n\n assertNull(vs.getString());\n assertEquals(0.0D, vs.getNumber(), 0.0D);\n assertNull(vs.getDate());\n assertEquals(false, vs.getBoolean());\n assertEquals(0, vs.getInteger());\n assertEquals(null, vs.getBigNumber());\n assertNull(vs.getSerializable());\n }",
"@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}",
"@Test(timeout = 4000)\n public void test039() throws Throwable {\n String string0 = JSONObject.valueToString((Object) null);\n assertEquals(\"null\", string0);\n }",
"@Test(timeout = 4000)\n public void test008() throws Throwable {\n String string0 = SQLUtil.renderValue((Object) null);\n assertEquals(\"null\", string0);\n }",
"@Override\n public String visit(MemberValuePair n, Object arg) {\n return null;\n }",
"@org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }",
"public M csolRemarkNull(){if(this.get(\"csolRemarkNot\")==null)this.put(\"csolRemarkNot\", \"\");this.put(\"csolRemark\", null);return this;}"
] |
[
"0.73376477",
"0.7025353",
"0.6795356",
"0.6697754",
"0.66676795",
"0.6565222",
"0.6558449",
"0.6444029",
"0.63424385",
"0.63334185",
"0.63223374",
"0.6279279",
"0.6249001",
"0.6175279",
"0.61216986",
"0.60925066",
"0.6070028",
"0.60286474",
"0.5985645",
"0.59850097",
"0.5920224",
"0.5882496",
"0.58726484",
"0.58587986",
"0.58553076",
"0.584911",
"0.58119607",
"0.5789465",
"0.5789465",
"0.5789442",
"0.57617724",
"0.56761706",
"0.5652873",
"0.56503946",
"0.56310093",
"0.55958474",
"0.55938923",
"0.5584292",
"0.55661637",
"0.5564947",
"0.5541736",
"0.5530354",
"0.55203336",
"0.55127764",
"0.55097604",
"0.5476426",
"0.54746974",
"0.5465261",
"0.5444539",
"0.54415196",
"0.5430278",
"0.54288185",
"0.5421783",
"0.5403603",
"0.54005736",
"0.54005736",
"0.54005736",
"0.5385976",
"0.5370863",
"0.5369793",
"0.53616315",
"0.535173",
"0.53443396",
"0.5340167",
"0.5338927",
"0.53340673",
"0.5331464",
"0.532936",
"0.5328412",
"0.53147197",
"0.53128546",
"0.530514",
"0.5302678",
"0.53025293",
"0.52958596",
"0.5293771",
"0.5291325",
"0.5291325",
"0.5291325",
"0.5286493",
"0.52832896",
"0.5282973",
"0.5280354",
"0.52791244",
"0.5275569",
"0.5275115",
"0.52719486",
"0.5271157",
"0.526369",
"0.52629817",
"0.52547026",
"0.52518076",
"0.52480626",
"0.5240548",
"0.52384067",
"0.5234661",
"0.52279925",
"0.5219306",
"0.5216461",
"0.5209627",
"0.5208654"
] |
0.0
|
-1
|
Get the current column index
|
int getColumnIndex();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getCurrentColumn() {\n return buffer.columnNumber();\n }",
"public Integer getColIndex() {\r\n\t\treturn colIndex;\r\n\t}",
"public int getColIndex() {\r\n\t\treturn colIndex;\r\n\t}",
"public int getColumnIndex() {\n return table.findColumnIndex(getName());\n }",
"public int getColumn();",
"int getColumnIndex (String columnName);",
"public int getCol() {\n\t\treturn j;\n\t}",
"int getColumn();",
"public int getColumnNumber() {\n return column;\n }",
"public int getCol(){\r\n\t\treturn this.column;\r\n\t}",
"public int getColumn()\r\n\t{\r\n\t\treturn this.column;\r\n\t}",
"int getCol();",
"public int getColumn() {\r\n\t\treturn this.col;\r\n\t}",
"public int getCol() {\n\t\treturn column; \n\t}",
"public int getColumn() {\n return this.column;\n }",
"int atColumn();",
"public int getColumn(){\n return this.column;\n }",
"public final int getColumn() {\n/* 368 */ return this.bufcolumn[this.bufpos];\n/* */ }",
"public int getCol() {\r\n return this.col;\r\n }",
"protected int getCol() {\r\n\t\treturn this.col;\r\n\t}",
"public int getCol() {\n return col;\n }",
"int getColumnIndex(String name);",
"public int col() {\r\n\t\treturn col;\r\n\t}",
"public int getColumn() {\n\t\treturn column;\n\t}",
"public int getColumn() {\n return mCol;\n }",
"public int getColumn()\n\t{\n\t\treturn col;\n\t}",
"public int getColumn() {\r\n\t\treturn column;\r\n\t}",
"public int getColumn()\n\t\t{\n\t\t\treturn m_col;\n\t\t}",
"public int getColumn() {\n return col;\n }",
"public int getCol() { return _col; }",
"public int getColumn() {\r\n return column;\r\n }",
"public int getColumn() {\r\n return column;\r\n }",
"public int getColumn() {\n\t\t\treturn column;\n\t\t}",
"public int col() {\r\n return col;\r\n }",
"private int getColumnIndex(Cursor cursor, String columnName) {\n return cursor.getColumnIndexOrThrow(columnName);\n }",
"public int getColumn() {\n // YOUR CODE HERE\n return this.column;\n }",
"public int getColumn()\n {\n return column;\n }",
"public int getColumn() {\n return column;\n }",
"public int getColumn() {\n return column;\n }",
"public int getColumn() {\n return column;\n }",
"public final int getColumn() {\n return column;\n }",
"public int getRealColIndex() {\n return realColIndex;\n }",
"public int getColumn()\t \t\t{ return column; \t}",
"@Override\r\n public int getCol() {\r\n return this.col;\r\n }",
"public int getCol()\n\t{\n\t\treturn col;\n\t}",
"public int getCol()\n\t{\n\t\treturn col;\n\t}",
"private int getColumn() {\n return binaryPartition(column);\n }",
"public int getColumnNumber()\n {\n return parser.getColumnNumber();\n }",
"public abstract int getColumn();",
"public int getCol() {\n\t\t\treturn col;\n\t\t}",
"public int getColumn()\n {\n return col;\n }",
"public int getCol() {\n return this.col; \n }",
"public int getColumnIndex (String columnName)\n\t{\n\t\tif (columnName == null || columnName.length() == 0)\n\t\t\treturn -1;\n\t\t//\n\t\tfor (int i = 0; i < m_data.cols.size(); i++)\n\t\t{\n\t\t\tRColumn rc = (RColumn)m_data.cols.get(i);\n\t\t//\tlog.fine( \"Column \" + i + \" \" + rc.getColSQL() + \" ? \" + columnName);\n\t\t\tif (rc.getColSQL().startsWith(columnName))\n\t\t\t{\n\t\t\t\tlog.fine( \"Column \" + i + \" \" + rc.getColSQL() + \" = \" + columnName);\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"private int getNIdx() {\n return this.colStartOffset + 7;\n }",
"public int getIndex() { \n\t\t\treturn currIndex;\n\t\t}",
"public int getBeginColumnNumber() {\n return this.beginColumn;\n }",
"@Override\n\tpublic int getColumn() {\n\t\treturn delegate.getColumn();\n\t}",
"public int getPositionColumn(){return this.positionColumn;}",
"public int getColumnIndex(Comparable key) {\n/* 174 */ int index = this.underlying.getColumnIndex(key);\n/* 175 */ if (index >= this.firstCategoryIndex && index <= lastCategoryIndex()) {\n/* 176 */ return index - this.firstCategoryIndex;\n/* */ }\n/* 178 */ return -1;\n/* */ }",
"String getColumn();",
"public char getColumn() {\n\t\treturn column;\n\t}",
"public Column getColumn(int pos) { return columns[pos]; }",
"String getColumn(int index);",
"String getColumn(int index);",
"public int getIndx() {\n return this.indx;\n }",
"public int getColumn(){ return (Integer)args[1]; }",
"final int getColumnIdx( int column ) throws SQLException{\n\t\tif(column < 1 || column > columns.size())\n\t\t\tthrow SmallSQLException.create( Language.COL_IDX_OUT_RANGE, String.valueOf(column));\n\t\treturn column-1;\n\t}",
"public int markedCol() {\r\n return markedCol;\r\n }",
"public int getOrigCol() {\n return origCol;\n }",
"public int getColumna(){\n\t\treturn columna;\n\t}",
"public int getColumna() {\n\t\treturn columna;\n\t}",
"public int getColumna() {\r\n\t\treturn columna;\r\n\t}",
"private int getCol(int index) {\n return index & (chunkSize - 1);\n }",
"public int[] getNeighborColIndex() {\n if (myRow % 2 == 0) {\n return neighborEvenColIndex;\n } else {\n return neighborOddColIndex;\n }\n }",
"public int getColumn() { return cc; }",
"public abstract int getNumberOfColumnsInCurrentRow();",
"int index(){\n\n\t\t\n\t\tif (cursor == null) \n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn index;\n\t}",
"private int getColumn(char columnName) {\r\n\t\tint result = -1;\r\n\t\tif (columnName > 64 && columnName < 91) {\r\n\t\t\tresult = columnName - 65;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"protected Integer getColumnIndex(String header){\n for (Map.Entry<String, Integer> entry: headerMap.entrySet()){\n if (header.toLowerCase().equals(entry.getKey().toLowerCase())) return entry.getValue();\n }\n return -1;\n }",
"public int getCurrentIdx() {\n\t\treturn this.currentIdx;\n\t}",
"public int[] getCol() { return _col; }",
"public int getColumnIndex() {\n return 57;\n }",
"public int getIndex() {\r\n return ordinal();\r\n }",
"@Override\n\tpublic String getColumnName(int arg0) throws SQLException {\n\t\treturn columns[arg0-1];\n\t}",
"public int getLoopStartColumn() {\n\t\treturn loopStartColumn;\n\t}",
"public Integer getIdx() {\r\n\t\treturn idx;\r\n\t}",
"public int getIntialSortedColumn()\n { \n return 0; \n }",
"public int getCurrentIdx() {\n\t\treturn currentIdx;\n\t}",
"public int getCurrentPawnColumn(){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\tPlayer white = currentGame.getWhitePlayer();\n\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\treturn curPos.getWhitePosition().getTile().getColumn();\n\t\t\n\t\t} else {\n\t\t\treturn curPos.getBlackPosition().getTile().getColumn();\n\t\t}\r\n }",
"public int getColumn() { \n\t// * JFlex starts in zero\n\treturn yycolumn+1;\n}",
"public int getColumnNumber() {\n return rows;\n }",
"public int getCurIdx() {\n\t\treturn dDisplay.getCurIdx();\n\t}",
"int getRowIndex();",
"public int getIdx() {\n return idx;\n }",
"public int getX() {\r\n return ix % numCols;\r\n }",
"@Override\n public int getColChange() {\n return colChange;\n }",
"public Number getIdx() {\n return (Number)getAttributeInternal(IDX);\n }",
"public ColumnIdentifier getColumn() {\n return this.column;\n }"
] |
[
"0.8258108",
"0.77217907",
"0.7638073",
"0.7551421",
"0.7459667",
"0.7446432",
"0.7446013",
"0.74126625",
"0.73955446",
"0.73557836",
"0.73222536",
"0.73072624",
"0.7293419",
"0.72922087",
"0.72728413",
"0.7271175",
"0.7269182",
"0.7260658",
"0.7250369",
"0.7249859",
"0.72065777",
"0.72026145",
"0.72017395",
"0.7198662",
"0.7192468",
"0.7190065",
"0.71809864",
"0.71762604",
"0.71629643",
"0.71600217",
"0.7158044",
"0.7158044",
"0.71535116",
"0.7144572",
"0.71436936",
"0.71421516",
"0.71413755",
"0.71389866",
"0.71389866",
"0.71389866",
"0.7134301",
"0.712356",
"0.710683",
"0.71046346",
"0.7101438",
"0.7101438",
"0.7086535",
"0.69990665",
"0.69451016",
"0.69440836",
"0.690354",
"0.6891182",
"0.68351835",
"0.6821913",
"0.6821736",
"0.6809614",
"0.6808688",
"0.67915905",
"0.6788787",
"0.6778809",
"0.6778052",
"0.6777575",
"0.6766658",
"0.6766658",
"0.67581594",
"0.67554307",
"0.6753979",
"0.67401534",
"0.6739269",
"0.67306477",
"0.67271036",
"0.6720512",
"0.6716655",
"0.66886485",
"0.6684058",
"0.666993",
"0.6668294",
"0.66606265",
"0.66285586",
"0.6596595",
"0.6585741",
"0.65660685",
"0.65585685",
"0.6537392",
"0.6534372",
"0.6505444",
"0.64989805",
"0.6483286",
"0.64830154",
"0.64780027",
"0.6477497",
"0.64742714",
"0.6473931",
"0.6470948",
"0.64662975",
"0.64466166",
"0.6439425",
"0.6438033"
] |
0.814212
|
2
|
Set the column index to a given value
|
void setColumnIndex(int index);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Table setColumn(int index, String name);",
"void setColumnIndex(int newIndex);",
"void setColumnValue(int colIndex, Object value);",
"public void setCol(int value) {\n this.col = value;\n }",
"void setInt(int index, int value) throws SQLException;",
"public void set(int rowIndex, int columnIndex, int value) { target.set(index.get(rowIndex), columnIndex, value); }",
"public void setColumn(String column, int i)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n data.put(canonicalize(column), new Integer(i));\n }",
"public void set(long index);",
"public void setIdx(Number value) {\n setAttributeInternal(IDX, value);\n }",
"void setColumn(Column newColumn, int pos) { columns[pos] = newColumn; }",
"void incrementColumnIndex();",
"void incrementColumnIndex();",
"void setIdx(int i);",
"@Override\n\t\tpublic void setValueColumn(int columnIndex) {\n\t\t\tthis.valueColumn = columnIndex;\n\t\t}",
"public void setIndex(int value) {\n\t\tthis.index = value;\r\n\t}",
"void incrementColumnIndex(int size);",
"void incrementColumnIndex(int size);",
"void set(int idx, int val);",
"public void setIndex(int value) {\n this.index = value;\n }",
"private void setHIndex(int rowIndex, String value) {\n\t\ttable.setString(rowIndex, H_INDEX_COLUMN_NAME, value);\n\t}",
"public void setIndex(int value) {\n\t\tthis.index = value;\n\t}",
"@Override\n\tpublic void setValueIndex(int index) {\n\t\t\n\t}",
"public void setColIndex(Integer colIndex) {\r\n\t\tthis.colIndex = colIndex;\r\n\t}",
"public void setIndex(int rowOrCol) {\n index = rowOrCol;\n }",
"public synchronized void setIndex(final int value) {\r\n if (value < 0)\r\n throw new IllegalArgumentException(\"illegal index: \" + value);\r\n f_index = value;\r\n }",
"@Override\n\tpublic void setColumn(int x) {\n\t\tdelegate.setColumn(x);\n\t}",
"public void setValueAt(Object aValue, int row, int column)\n {\n\n }",
"public void setIndex(int index) { this.index = index; }",
"public void setPositionColumn(int value){this.positionColumn = value;}",
"private void setIndex(int index){\n\t\tthis.index = index;\n\t}",
"public abstract <T> void set(int index, T value);",
"void set(int index, int value) {\n array[index] = value;\n }",
"public void setValueAt(Object val, int row, int col) {\r\n }",
"public void setCol(int c) {\n\t\tthis.col = c;\n\t}",
"public void setColIndex(int colIndex) {\r\n\t\tthis.colIndex = colIndex;\r\n\t}",
"@Override\n public void setValueAt( Object aValue, Object node, int column )\n {\n }",
"public final void setColumn(int column, Vector3f v) {\n\tif (column == 0) {\n\t m00 = v.x;\n\t m10 = v.y;\n\t m20 = v.z;\n\t} else if (column == 1) {\n\t m01 = v.x;\n\t m11 = v.y;\n\t m21 = v.z;\n\t} else if (column == 2) {\n\t m02 = v.x;\n\t m12 = v.y;\n\t m22 = v.z;\n\t} else {\n\t throw new ArrayIndexOutOfBoundsException(\"column must be 0 to 2 and is \" + column);\n\t}\n }",
"private void setI10Index(int rowIndex, String value) {\n\t\ttable.setString(rowIndex, I10_INDEX_COLUMN_NAME, value);\n\t}",
"void set(int index, T data);",
"public void setIndex(int index){\r\n \tthis.index = index;\r\n }",
"public void setColorColumn (int modelIndex)\n\t{\n\t\tm_colorColumnIndex = modelIndex;\n\t}",
"public Builder setColumn(\n int index, com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column value) {\n if (columnBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureColumnIsMutable();\n column_.set(index, value);\n onChanged();\n } else {\n columnBuilder_.setMessage(index, value);\n }\n return this;\n }",
"public void setColumnArray(int i, com.guidewire.datamodel.ColumnDocument.Column column)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.ColumnDocument.Column target = null;\r\n target = (com.guidewire.datamodel.ColumnDocument.Column)get_store().find_element_user(COLUMN$0, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n target.set(column);\r\n }\r\n }",
"void setObject(int index, Object value) throws SQLException;",
"public abstract void setCellValue(int cellValue, int row, int col);",
"public void setValueAt(Object value, int row, int column){\n dataEntries[row][column] = value;\n }",
"public final void setColumn(int column, float v[]) {\n\tif (column == 0) {\n\t m00 = v[0];\n\t m10 = v[1];\n\t m20 = v[2];\n\t} else if (column == 1) {\n\t m01 = v[0];\n\t m11 = v[1];\n\t m21 = v[2];\n\t} else if (column == 2) {\n\t m02 = v[0];\n\t m12 = v[1];\n\t m22 = v[2];\n\t} else {\n\t throw new ArrayIndexOutOfBoundsException(\"column must be 0 to 2 and is \" + column);\n\t}\n }",
"public Builder setIndex(int value) {\n \n index_ = value;\n onChanged();\n return this;\n }",
"public void setIndex(int i){\n\t\tthis.index = i;\r\n\t}",
"@Override\n public E set(int index, E value) {\n // todo: Students must code\n checkRange(index);\n int pos = calculate(index);\n E oldVal = data[pos];\n data[pos] = value;\n return oldVal;\n }",
"public Builder setIndex(int value) {\n\n index_ = value;\n onChanged();\n return this;\n }",
"public Builder setIndex(int value) {\n\n index_ = value;\n onChanged();\n return this;\n }",
"public Builder setIndex(int value) {\n\n index_ = value;\n onChanged();\n return this;\n }",
"public void setIndex(int index) {\n _index = index;\n }",
"@Override\n public void setValueAt(Object value, int row, int column) {\n this.data[row][column] = value;\n fireTableDataChanged();\n }",
"private void setStat(int value, int index) {\n setStringStat(String.valueOf(value), index);\n }",
"@Override\n public void setValueAt(Object aValue, int aRow, int aColumn) {\n model.setValueAt(aValue, aRow, aColumn); \n }",
"public void setIndex(int index)\n/* */ {\n/* 39 */ this.index = index;\n/* */ }",
"void setArray(int index, Array value) throws SQLException;",
"void setByte(int index, byte value) throws SQLException;",
"public void setTargetValue(int idx, Object value);",
"public final void setColumn(int column, float x, float y, float z) {\n\tif (column == 0) {\n\t m00 = x;\n\t m10 = y;\n\t m20 = z;\n\t} else if (column == 1) {\n\t m01 = x;\n\t m11 = y;\n\t m21 = z;\n\t} else if (column == 2) {\n\t m02 = x;\n\t m12 = y;\n\t m22 = z;\n\t} else {\n\t throw new ArrayIndexOutOfBoundsException(\"column must be 0 to 2 and is \" + column);\n\t}\n }",
"public void setIndex(int ind){\n\t\tindex = ind;\n\t}",
"void setDate(int index, Date value) throws SQLException;",
"public void set(int index, int value) {\n\t\t\tcheckIndex(index);\n\t\t\telementData[index] = value;\n\t\t}",
"protected void setIndex(Expression expr)\n {\n index = expr;\n }",
"public void setIdx(Integer idx) {\r\n\t\tthis.idx = idx;\r\n\t}",
"@Override\n public void alterColumnByIndex(int index, XPropertySet descriptor) throws SQLException, IndexOutOfBoundsException {\n \n }",
"public void SelectIndexByName(String Name, int Value) {\n\t\t\r\n\t}",
"public void setCol(int column) {\n\t\tthis.column = column; \n\t}",
"public void setValueAt(Object value, int row, int column)\n\t{\n\t\tgetModel().setDataAt(value, row, convertColumnIndexToModel(column));\n\t}",
"public abstract void setIndex(int i, boolean b);",
"public void setIndex(int index){\n\t\tthis.index = index;\n\t}",
"public void set(int idx, E value) {\n assert idx >= 0;\n \n checkgrow(idx);\n \n\tarray[idx] = value;\n\t\n }",
"public void setIndex(int i) {\n\t\t\n\t}",
"@ZenCodeType.Method\n @ZenCodeType.Operator(ZenCodeType.OperatorType.INDEXSET)\n default void put(String index, @ZenCodeType.Nullable IData value) {\n \n notSupportedOperator(OperatorType.INDEXSET);\n }",
"public void setIndx(int indx){\n this.indx = indx;\n }",
"public void setCol(int newCol) {\n this.col = newCol;\n }",
"public void setColumn( int column, int startRow, double... values ) {\n ops.setColumn(mat, column, startRow, values);\n }",
"public void setColArray(int i, com.walgreens.rxit.ch.cda.StrucDocCol col)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocCol target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocCol)get_store().find_element_user(COL$2, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.set(col);\n }\n }",
"protected void setIndex(int index) {\n\t\tthis.index = index;\n\t}",
"public void setIndex(Integer index) {\n this.index = index;\n }",
"public void setIndex(Integer index) {\n this.index = index;\n }",
"public Builder setIndex(int value) {\n \n index_ = value;\n onChanged();\n return this;\n }",
"public void setValue(int col, String value) {\n\t\tint row = rowList.getSelectedIndex();\n\t\tdm.setValue(col, row, value);\n\t}",
"public Vector<T> set(int aIndex, T aValue);",
"public void setValueAt(Object value, int row, int col) {\n\t\t// data[row][col] = value;\n\t\tfireTableCellUpdated(row, col);\n\t}",
"public void setElement(final int columnIndex, final int rowIndex,\n final int value) throws MatrixException {\n if (checkRange(columnIndex, rowIndex)) {\n values[columnIndex][rowIndex] = value;\n } else {\n throw new MatrixException(\"Выход за пределы массива.\");\n }\n }",
"public void setIndex(int index) {\r\n this.index = index;\r\n }",
"public void setCol(int col)\n\t{\n\t\tthis.col = col;\n\t}",
"public void setCol(int col)\n\t{\n\t\tthis.col = col;\n\t}",
"public Builder setIndex(int value) {\n bitField0_ |= 0x00000002;\n index_ = value;\n onChanged();\n return this;\n }",
"public Builder setIndex(int value) {\n bitField0_ |= 0x00000002;\n index_ = value;\n onChanged();\n return this;\n }",
"public Builder setIndex(int value) {\n bitField0_ |= 0x00000002;\n index_ = value;\n onChanged();\n return this;\n }",
"public Builder setIndex(int value) {\n bitField0_ |= 0x00000002;\n index_ = value;\n onChanged();\n return this;\n }",
"public Builder setIndex(int value) {\n bitField0_ |= 0x00000002;\n index_ = value;\n onChanged();\n return this;\n }",
"@Override\n public void setValueAt(Object value, int row, int column) { data[row][column] = value; }",
"public Builder setData(\n int index, int value) {\n ensureDataIsMutable();\n data_.set(index, value);\n onChanged();\n return this;\n }",
"public void setInt(int parameterIndex, int x) throws SQLException {\n currentPreparedStatement.setInt(parameterIndex, x);\n\n }",
"public Builder setColumn(\n int index, com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column.Builder builderForValue) {\n if (columnBuilder_ == null) {\n ensureColumnIsMutable();\n column_.set(index, builderForValue.build());\n onChanged();\n } else {\n columnBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }"
] |
[
"0.7813593",
"0.778438",
"0.7721675",
"0.734514",
"0.7260096",
"0.71265393",
"0.7098345",
"0.70345277",
"0.6997963",
"0.6952827",
"0.6945812",
"0.6945812",
"0.6938756",
"0.68168974",
"0.6809741",
"0.6788667",
"0.6788667",
"0.67692965",
"0.6755938",
"0.6716727",
"0.6673736",
"0.6596622",
"0.6576603",
"0.656946",
"0.6561329",
"0.65165687",
"0.6491356",
"0.6485264",
"0.6448589",
"0.6428384",
"0.63949245",
"0.639032",
"0.6390276",
"0.6389632",
"0.63760847",
"0.6365255",
"0.6317718",
"0.62996024",
"0.6296718",
"0.6286056",
"0.6275291",
"0.6271079",
"0.62541294",
"0.62530655",
"0.6245661",
"0.62205535",
"0.6218067",
"0.62166226",
"0.62118375",
"0.621016",
"0.6205993",
"0.6205993",
"0.6205993",
"0.6181201",
"0.6180092",
"0.6172406",
"0.61700946",
"0.61685586",
"0.6151255",
"0.61468893",
"0.6143078",
"0.6142018",
"0.6132801",
"0.6116744",
"0.6114647",
"0.61143726",
"0.61126137",
"0.6107677",
"0.60888255",
"0.60772836",
"0.607715",
"0.6056609",
"0.6053868",
"0.6053748",
"0.6044562",
"0.6044262",
"0.6036945",
"0.6032261",
"0.60288644",
"0.60265714",
"0.60264796",
"0.6024064",
"0.6024064",
"0.60176045",
"0.6008069",
"0.60012764",
"0.5990499",
"0.59798807",
"0.59707576",
"0.59637135",
"0.59637135",
"0.5959416",
"0.5958194",
"0.5958194",
"0.5958194",
"0.5958194",
"0.5952834",
"0.595096",
"0.5941175",
"0.5933306"
] |
0.8248484
|
0
|
Increment the column index by one
|
void incrementColumnIndex();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void incrementColumnIndex(int size);",
"void incrementColumnIndex(int size);",
"public void incremetColumn() {\n setRowAndColumn(row, column + 1);\n }",
"public void incrementRow() {\n setRowAndColumn(row + 1, column);\n }",
"public void absIncrementRowAt(int index) {\n int lastIndex = getModel().getRowCount() - 1;\n if ((index < 0) || (index >= lastIndex)) {\n return;\n }\n\n Vector[] va = getAllRowsData();\n\n Vector vTemp = va[index];\n va[index] = va[index + 1];\n va[index + 1] = vTemp;\n\n setRows(va);\n }",
"public void incrementIndex() {\n\t\tindex++;\n\t\tif (nextItem != null) {\n\t\t\tnextItem.incrementIndex();\n\t\t}\n\t}",
"private void forward() {\n index++;\n column++;\n if(column == linecount + 1) {\n line++;\n column = 0;\n linecount = content.getColumnCount(line);\n }\n }",
"@Override\n\tpublic void addCol() {\n\t\tif(this.numRows == 0){\n\t\t\tthis.numRows++;\n\t\t}\n\t\tthis.numCols++;\n\t}",
"public int getDataIndexAndIncrement() {\n\t\tint x = dataIndex;\n\t\tnext();\n\t\treturn x;\n\t}",
"private void inc_x()\n {\n synchronized(mLock_IndexX) { set_x(get_x() + 1); }\n }",
"public void incrementCurrentIndex() {\n currentIndex++;\n }",
"void setColumnIndex(int newIndex);",
"int getColumnIndex();",
"int getColumnIndex();",
"int getColumnIndex();",
"private int plusOne(int index) {\n if (index + 1 >= array.length) {\n return 0;\n } else {\n return index + 1;\n }\n }",
"@Override\r\n\tpublic void updateNbCol() {\r\n\t\treturn;\r\n\t}",
"public void increment() {\n increment(1);\n }",
"int atColumn();",
"private int increment(int index) {\n\t\treturn (++index < this.capacity) ? index : 0;\n\t}",
"void setColumnIndex(int index);",
"public int getRowNo() {\n return rowIndex+1;\n }",
"public void increase()\n {\n setCount(getCount() + 1);\n }",
"public final void nextRow() {\n this.line++;\n }",
"Table setColumn(int index, String name);",
"@Override\n\tpublic void addRow() {\n\t\tif(this.numCols == 0){\n\t\t\tthis.numCols++;\n\t\t}\n\t\tthis.numRows++;\n\t}",
"public void incOffset( Integer increment ) {\n offset += increment;\n }",
"@Override\n public int nextIndex()\n {\n return idx+1; \n }",
"@Override\n public int incrementFirstValue(int key) {\n return array.incrementEntry(key << 1, 1);\n }",
"public void incrementCell(Label prediction, Label real){\n\t\tint rowIx = resolveIndex(prediction);\n\t\tint colIx = resolveIndex(real);\n\n\t\tInteger cell = matrix.get(rowIx).get(colIx);\n\t\tInteger newValue = cell+1;\n\t\tmatrix.get(rowIx).set(colIx, newValue);\n\n\t}",
"public void inc(){\n this.current += 1;\n }",
"public void increment() {\n this.data++;\n }",
"public void increase() {\r\n\r\n\t\tincrease(1);\r\n\r\n\t}",
"public DocumentMutation increment(FieldPath path, byte inc);",
"int getColumnIndex (String columnName);",
"void add(int idx, float incr);",
"public CellCoord nextColumn() {\n return new CellCoord(column + 1, row);\n }",
"int getColumn();",
"public int getColumnNumber() {\n return column;\n }",
"private int plusOne(int i) {\n return (i + 1) % capacity;\n }",
"public void inc(String key) {\n int val = 0;\n\n if (!m.containsKey(key)) {\n m.put(key, val + 1);\n } else {\n val = m.get(key);\n m.put(key, val + 1);\n delete(key, val);\n }\n\n insert(key, val + 1);\n }",
"public UpdateValues inc(String column, Object value) {\n return this.add(column, UpdateType.INC, value);\n }",
"public void increment(){\n\t\twordCount += 1;\n\t}",
"public void IncrementCounter()\r\n {\r\n \tsetCurrentValue( currentValue.add(BigInteger.ONE)); \r\n \r\n log.debug(\"counter now: \" + currentValue.intValue() );\r\n \r\n }",
"@Override\n protected void moveToNextRow(){\n incrementRow();\n resetXPos();\n if(getRow()%2 == 1){\n incrementYPos(getHeight()+getHeight());\n }\n resetCol();\n setPointDirection();\n }",
"public int getColumn();",
"public void increment(){\n value+=1;\n }",
"int atRow();",
"int getColumnIndex(String name);",
"void setColumn(Column newColumn, int pos) { columns[pos] = newColumn; }",
"public void increment() {\n\t\tif (m_bYear) {\n\t\t\tm_value++;\n\t\t\tif (m_value > 9999)\n\t\t\t\tm_value = 0;\n\t\t} else {\n\t\t\tm_value++;\n\t\t\tif (m_value > 11)\n\t\t\t\tm_value = 0;\n\n\t\t}\n\t\trepaint();\n\t}",
"private int getCol(int index) {\n return index & (chunkSize - 1);\n }",
"public Index next() {\n return Index.valueOf(value + 1);\n }",
"public void inc() {\n inc(1);\n }",
"public static boolean incrementCell(final ILogger aLogger,\r\n final String aTableName,\r\n final String aColumnName,\r\n final String aWhere,\r\n final int aIncrement,\r\n final Connection aConnection) {\r\n if (aIncrement==0) return true;\r\n if (aConnection==null) return false;\r\n Statement stm= getStatement(aLogger, aConnection);\r\n boolean r= incrementCell(aLogger, aTableName, aColumnName, aWhere, aIncrement, stm);\r\n close(aLogger, stm);\r\n return r;\r\n }",
"private void incrementCounter()\r\n\t{\r\n\t\tthis.counter++;\r\n\t}",
"private int getColumn() {\n return binaryPartition(column);\n }",
"@Override\n\tpublic void setColumn(int x) {\n\t\tdelegate.setColumn(x);\n\t}",
"public GridBagPanel incrementGridx()\n {\n myGBC.gridx++;\n return this;\n }",
"public static boolean incrementCell(final ILogger aLogger,\r\n final String aTableName,\r\n final String aColumnName,\r\n final String aWhere,\r\n final int aIncrement,\r\n final Statement aStatement) {\r\n if (aIncrement==0) return true;\r\n if (aStatement == null) return false;\r\n\r\n StringBuffer b= new StringBuffer(64);\r\n b.append(pSQL_UPDATE).append(aTableName);\r\n b.append(pSQL_SET);\r\n b.append(aColumnName).append('=');\r\n b.append(aColumnName);\r\n b.append(aIncrement>0 ? '+' : '-');\r\n b.append(Math.abs(aIncrement));\r\n appendWhere(b, aWhere);\r\n\r\n return write(aLogger, b.toString(), aStatement);\r\n }",
"public void increment(int index) {\n // int prevVal = registers.get(index);\n int prevVal = this.registers[index];\n if (prevVal == 255) {\n // this.registers.set(index, 0);\n this.registers[index] = 0;\n } else {\n // this.registers.set(index, prevVal + 1);\n this.registers[index]++;\n }\n }",
"@Override\r\n\tpublic void increaseViewCnt(int no) {\n\t\tsqlSession.update(namespace + \".increaseViewCnt\", no);\r\n\t}",
"public void setColumn(String column, int i)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n data.put(canonicalize(column), new Integer(i));\n }",
"public void increment() {\n sync.increment();\n }",
"public int increase()\n {\n return this.increase(1);\n }",
"@Override\n\t\tpublic int getColumnCount() {\n\t\t\treturn app.graph.verticesCount + 1;\n\t\t}",
"public void inc(int index) {\r\n\t\tthis.vclock.set(index, this.vclock.get(index)+1);\r\n\t}",
"private void increaseCurrentPlayerIndex() {\n\t\tcurrentPlayer++;\n\t\tif(currentPlayer>3)\n\t\t\tcurrentPlayer=0;\n\t}",
"public void incrank() {\n\t\trank++;\n\t}",
"void setInt(int index, int value) throws SQLException;",
"public abstract int getColumn();",
"public int nextIndex() {\n\t\t\treturn cursor;\n\t\t}",
"public int getColumnCount() {\r\n return NUM_COL + 1;\r\n }",
"@Override\r\n\tpublic void increaseViewcnt(int r_idx) {\n\r\n\t}",
"public void setCol(int newCol) {\n this.col = newCol;\n }",
"public boolean incrementX()\n {\n return setPosition(this.position.getXPosition() + 1, this.position.getYPosition());\n }",
"public int increase() {\r\n return ++value;\r\n }",
"public int row();",
"private int getNIdx() {\n return this.colStartOffset + 7;\n }",
"public void inc(String name) {\n inc(name, 1);\n }",
"public void incValue(){\n\t\tif(this.value < 9){\n\t\t\tthis.value++;\n\t\t}\n\t\telse{\n\t\t\tthis.value = 0;\n\t\t}\n\t}",
"public void increase(int row, int column) {\n ImmutablePair<Integer, Integer> from = new ImmutablePair<Integer, Integer>(row, column);\n // Step 2. Generating increase event\n IncreaseChipAction action = new IncreaseChipAction(getPlayer(), from);\n // Step 3. Actually performing action\n perform(action);\n }",
"public void updateInt(int columnIndex, int x) throws SQLException\n {\n m_rs.updateInt(columnIndex, x);\n }",
"public void increment() {\n items++;\n }",
"public void increment(int symbol);",
"public int inc(Object key)\r\n {\r\n return add(key, 1);\r\n }",
"public abstract void incrementXPos(double delta) throws SlickException;",
"public int getStartRow();",
"private int newIndex() {\n //return indexes.remove(0);\n return random.nextInt(81);\n }",
"public void setNextColumn() {\n if (nextSelectedCarTitleLabel.getText().isEmpty()) {\n setNextColumnTitle();\n } else {\n nextSelectedCarTitleLabel.setText(\"\");\n setNextColumnTitle();\n }\n\n }",
"public int getInputPositionIncrement () { return 1; }",
"public void setIncrement(double increment) {\n this.increment = increment;\n }",
"private int ufindex(int row, int col) {\n return grid.length * (row - 1) + col - 1;\n }",
"private int getIndex(int row, int col) {\n return (row - 1) * getSize() + col;\n }",
"public void setCol(int c) {\n\t\tthis.col = c;\n\t}",
"public int getIntialSortedColumn()\n { \n return 0; \n }",
"public abstract int getNumberOfColumnsInCurrentRow();",
"@Override\n\t\tpublic int nextIndex() {\n\t\t\treturn 0;\n\t\t}",
"public void updateInt(String columnName, int x) throws SQLException\n {\n m_rs.updateInt(columnName, x);\n }"
] |
[
"0.79313385",
"0.79313385",
"0.73031",
"0.713621",
"0.6649842",
"0.64889157",
"0.6488578",
"0.6461156",
"0.6420492",
"0.6386742",
"0.63613206",
"0.6333419",
"0.62955105",
"0.62955105",
"0.62955105",
"0.6171393",
"0.6087986",
"0.6084656",
"0.6059984",
"0.6047068",
"0.6005743",
"0.59911144",
"0.59491765",
"0.5946569",
"0.5943396",
"0.5941925",
"0.59194994",
"0.5868517",
"0.5856486",
"0.5822042",
"0.5812497",
"0.58123714",
"0.57825154",
"0.57811135",
"0.5777218",
"0.5749083",
"0.57357156",
"0.5717418",
"0.56837356",
"0.5665546",
"0.56641734",
"0.5660653",
"0.56513363",
"0.562643",
"0.56114906",
"0.5604166",
"0.5600557",
"0.559005",
"0.5586357",
"0.55758053",
"0.55746883",
"0.555696",
"0.5546714",
"0.5541406",
"0.5535644",
"0.55337805",
"0.5520136",
"0.55184704",
"0.5512813",
"0.55033904",
"0.5490437",
"0.5483872",
"0.5483706",
"0.54794675",
"0.5472268",
"0.54651624",
"0.5457045",
"0.5448367",
"0.5435958",
"0.5425228",
"0.54119384",
"0.54094845",
"0.540667",
"0.5401319",
"0.5399575",
"0.5371163",
"0.5367524",
"0.536499",
"0.53598475",
"0.5350825",
"0.5350572",
"0.53459996",
"0.53409165",
"0.5330969",
"0.53217983",
"0.5321154",
"0.5316417",
"0.5313677",
"0.53126734",
"0.53083205",
"0.53076285",
"0.5306317",
"0.5304818",
"0.53036165",
"0.53011924",
"0.5296235",
"0.52941",
"0.5292902",
"0.5291074"
] |
0.84394604
|
1
|
Increment the column index by a given amount
|
void incrementColumnIndex(int size);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void incrementColumnIndex();",
"void incrementColumnIndex();",
"public void incremetColumn() {\n setRowAndColumn(row, column + 1);\n }",
"public void incrementRow() {\n setRowAndColumn(row + 1, column);\n }",
"public void absIncrementRowAt(int index) {\n int lastIndex = getModel().getRowCount() - 1;\n if ((index < 0) || (index >= lastIndex)) {\n return;\n }\n\n Vector[] va = getAllRowsData();\n\n Vector vTemp = va[index];\n va[index] = va[index + 1];\n va[index + 1] = vTemp;\n\n setRows(va);\n }",
"void setColumnIndex(int newIndex);",
"void add(int idx, float incr);",
"private void inc_x()\n {\n synchronized(mLock_IndexX) { set_x(get_x() + 1); }\n }",
"public void incrementIndex() {\n\t\tindex++;\n\t\tif (nextItem != null) {\n\t\t\tnextItem.incrementIndex();\n\t\t}\n\t}",
"public void incOffset( Integer increment ) {\n offset += increment;\n }",
"void setColumnIndex(int index);",
"Table setColumn(int index, String name);",
"private void forward() {\n index++;\n column++;\n if(column == linecount + 1) {\n line++;\n column = 0;\n linecount = content.getColumnCount(line);\n }\n }",
"private int increment(int index) {\n\t\treturn (++index < this.capacity) ? index : 0;\n\t}",
"public <T> void increment(MDSKey id, long amount) {\n try {\n table.increment(id.getKey(), COLUMN, amount);\n } catch (Exception e) {\n throw Throwables.propagate(e);\n }\n }",
"public void incrementCurrentIndex() {\n currentIndex++;\n }",
"public void increase(int row, int column) {\n ImmutablePair<Integer, Integer> from = new ImmutablePair<Integer, Integer>(row, column);\n // Step 2. Generating increase event\n IncreaseChipAction action = new IncreaseChipAction(getPlayer(), from);\n // Step 3. Actually performing action\n perform(action);\n }",
"void increaseStarsBy(final int amount);",
"public void incrementAmount() { amount++; }",
"public int increase(int amount)\n {\n this.setCount(this.getCount() + amount);\n return this.getCount();\n }",
"public DocumentMutation increment(FieldPath path, byte inc);",
"private int adjustIndex(int index)\n {\n int max = values.length;\n return ((index % max) + max) % max;\n }",
"private long moveOn(int amount) {\n\t\t\tthis.position += amount;\n\t\t\treturn amount;\n\t\t}",
"public UpdateValues inc(String column, Object value) {\n return this.add(column, UpdateType.INC, value);\n }",
"@Override\n\tpublic void addCol() {\n\t\tif(this.numRows == 0){\n\t\t\tthis.numRows++;\n\t\t}\n\t\tthis.numCols++;\n\t}",
"@Override\r\n\tpublic void increaseViewCnt(int no) {\n\t\tsqlSession.update(namespace + \".increaseViewCnt\", no);\r\n\t}",
"@Override\r\n\tpublic void updateNbCol() {\r\n\t\treturn;\r\n\t}",
"public void increaseQuantity(int amount) {\n this.currentQuantity += amount;\n }",
"void setInt(int index, int value) throws SQLException;",
"public void increment(double n) {\r\n\t\tthis.value += n;\r\n\t}",
"private int plusOne(int index) {\n if (index + 1 >= array.length) {\n return 0;\n } else {\n return index + 1;\n }\n }",
"int atColumn();",
"public void updateInt(int columnIndex, int x) throws SQLException\n {\n m_rs.updateInt(columnIndex, x);\n }",
"public void inc(int index) {\r\n\t\tthis.vclock.set(index, this.vclock.get(index)+1);\r\n\t}",
"public int getDataIndexAndIncrement() {\n\t\tint x = dataIndex;\n\t\tnext();\n\t\treturn x;\n\t}",
"public void incrank() {\n\t\trank++;\n\t}",
"@Override\n protected void moveToNextRow(){\n incrementRow();\n resetXPos();\n if(getRow()%2 == 1){\n incrementYPos(getHeight()+getHeight());\n }\n resetCol();\n setPointDirection();\n }",
"public void increase()\n {\n setCount(getCount() + 1);\n }",
"public void increment() {\n\t\tif (m_bYear) {\n\t\t\tm_value++;\n\t\t\tif (m_value > 9999)\n\t\t\t\tm_value = 0;\n\t\t} else {\n\t\t\tm_value++;\n\t\t\tif (m_value > 11)\n\t\t\t\tm_value = 0;\n\n\t\t}\n\t\trepaint();\n\t}",
"public abstract void incrementXPos(double delta) throws SlickException;",
"public void updateInt(String columnName, int x) throws SQLException\n {\n m_rs.updateInt(columnName, x);\n }",
"private int plusOne(int i) {\n return (i + 1) % capacity;\n }",
"private void adjustColumnOffsetsForColumnsPreviouslyCalculated(int index) {\n for (int j = 0; j <= index; j++) {\n columnDataPosition_[j] -= currentRowPosition_;\n }\n }",
"private void increaseCurrentPlayerIndex() {\n\t\tcurrentPlayer++;\n\t\tif(currentPlayer>3)\n\t\t\tcurrentPlayer=0;\n\t}",
"public static boolean incrementCell(final ILogger aLogger,\r\n final String aTableName,\r\n final String aColumnName,\r\n final String aWhere,\r\n final int aIncrement,\r\n final Statement aStatement) {\r\n if (aIncrement==0) return true;\r\n if (aStatement == null) return false;\r\n\r\n StringBuffer b= new StringBuffer(64);\r\n b.append(pSQL_UPDATE).append(aTableName);\r\n b.append(pSQL_SET);\r\n b.append(aColumnName).append('=');\r\n b.append(aColumnName);\r\n b.append(aIncrement>0 ? '+' : '-');\r\n b.append(Math.abs(aIncrement));\r\n appendWhere(b, aWhere);\r\n\r\n return write(aLogger, b.toString(), aStatement);\r\n }",
"void setColumn(Column newColumn, int pos) { columns[pos] = newColumn; }",
"public void incrementScore(int amount){\n\t\tthis.score += amount;\n\t}",
"public void increase() {\r\n\r\n\t\tincrease(1);\r\n\r\n\t}",
"public void increment() {\n increment(1);\n }",
"public Integer mutate(int index);",
"public void incValue(){\n\t\tif(this.value < 9){\n\t\t\tthis.value++;\n\t\t}\n\t\telse{\n\t\t\tthis.value = 0;\n\t\t}\n\t}",
"public void increaseStarsBy(final int amount) {\n stars += amount;\n }",
"private void addNumber(WritableSheet sheet, int column, int row, Double amt)\n\t\t\t\tthrows WriteException, RowsExceededException {\n\t\t\tNumber headingNumberFormat;\n\t\t\theadingNumberFormat = new Number(column, row, amt, numberFormat);\n\t\t\tsheet.addCell(headingNumberFormat);\n\t\t}",
"void increase();",
"void increase();",
"public void incValue(final float amount) {\r\n\t\tthis.value += amount;\r\n\t}",
"void incrementCardPositionsInArgumentAtOrPastIndex(@NonNull UUID argumentId, short index);",
"@Override\r\n\tpublic void increaseViewcnt(int r_idx) {\n\r\n\t}",
"public void increment(int symbol);",
"@Override\n\tpublic void addRow() {\n\t\tif(this.numCols == 0){\n\t\t\tthis.numCols++;\n\t\t}\n\t\tthis.numRows++;\n\t}",
"public void setColumn(String column, int i)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n data.put(canonicalize(column), new Integer(i));\n }",
"@Override\n\tpublic void setColumn(int x) {\n\t\tdelegate.setColumn(x);\n\t}",
"public void inc(){\n this.current += 1;\n }",
"public void increment(int index) {\n // int prevVal = registers.get(index);\n int prevVal = this.registers[index];\n if (prevVal == 255) {\n // this.registers.set(index, 0);\n this.registers[index] = 0;\n } else {\n // this.registers.set(index, prevVal + 1);\n this.registers[index]++;\n }\n }",
"public void increasePaymentCounter() throws SQLException{\n\t\tConnection conn = DataSource.getConnection();\n\t\ttry{\n\t\n\t\t\tString query = \"Update loan \"\n\t\t\t\t\t\t+ \" SET current_payment_counter = current_payment_counter+1\"\n\t\t\t\t\t\t+ \" WHERE client_id = '\"+this.client_id+\"' AND start_date = '\"+this.start_date+\"';\";\n\t\t\tStatement stat = conn.createStatement();\n\t\t\tstat.execute(query);\n\t\t\t\n\t\t}finally{\n\t\t\tconn.close();\n\t\t}\n\t}",
"public void increaseStartPos(int num) {\r\n this.startPos += num;\r\n }",
"public void increment(){\n value+=1;\n }",
"public void setIncrement(double increment) {\n this.increment = increment;\n }",
"int getColumnIndex();",
"int getColumnIndex();",
"int getColumnIndex();",
"public void incrementCell(Label prediction, Label real){\n\t\tint rowIx = resolveIndex(prediction);\n\t\tint colIx = resolveIndex(real);\n\n\t\tInteger cell = matrix.get(rowIx).get(colIx);\n\t\tInteger newValue = cell+1;\n\t\tmatrix.get(rowIx).set(colIx, newValue);\n\n\t}",
"public final void nextRow() {\n this.line++;\n }",
"public void incrementStatistic ( Statistic statistic , int amount ) throws IllegalArgumentException {\n\t\texecute ( handle -> handle.incrementStatistic ( statistic , amount ) );\n\t}",
"public static boolean incrementCell(final ILogger aLogger,\r\n final String aTableName,\r\n final String aColumnName,\r\n final String aWhere,\r\n final int aIncrement,\r\n final Connection aConnection) {\r\n if (aIncrement==0) return true;\r\n if (aConnection==null) return false;\r\n Statement stm= getStatement(aLogger, aConnection);\r\n boolean r= incrementCell(aLogger, aTableName, aColumnName, aWhere, aIncrement, stm);\r\n close(aLogger, stm);\r\n return r;\r\n }",
"public abstract void increment(int delta);",
"public void inc(String key) {\n int val = 0;\n\n if (!m.containsKey(key)) {\n m.put(key, val + 1);\n } else {\n val = m.get(key);\n m.put(key, val + 1);\n delete(key, val);\n }\n\n insert(key, val + 1);\n }",
"private int calculateNewIndex(float x, float y) {\n final float cellWidth = mGrid.getWidth() / mGrid.getColumnCount();\n final int column = (int)(x / cellWidth);\n\n // calculate which row to move to\n final float cellHeight = mGrid.getHeight() / mGrid.getRowCount();\n final int row = (int)Math.floor(y / cellHeight);\n\n // the items in the GridLayout is organized as a wrapping list\n // and not as an actual grid, so this is how to get the new index\n int index = row * mGrid.getColumnCount() + column;\n if (index >= mGrid.getChildCount()) {\n index = mGrid.getChildCount() - 1;\n }\n\n return index;\n }",
"public void increment() {\n items++;\n }",
"public GridBagPanel incrementGridx()\n {\n myGBC.gridx++;\n return this;\n }",
"public void increaseStat(Stat stat, int amount) {\n int actualValue = getStat(stat);\n stats.put(stat, actualValue + amount);\n }",
"public void moveUp()\n\t{\n\t\trow++;\n\t}",
"public void increment() {\n this.data++;\n }",
"public void updateInt(int columnIndex, int x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateInt(\" + columnIndex + \", \" + x + \");\");\n }\n update(columnIndex, ValueInt.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void setIncrementAmount(int incrementAmount) throws DfException {\n\t\tobject.setInt(INCREMENT_AMOUNT, incrementAmount);\n\t}",
"public void increaseUnits(int amount) {\n\t\tcreateUnit(amount);\n\t\tunits += amount;\n\t}",
"int atRow();",
"void setUnitIncrement(Adjustable adj, int u);",
"private void setComponentsOfIndex() {\n\t\tint t = this.numbersIdex + 1;\n\t\tif (t == NUMBEROFEACHCARD) {\n\t\t\tthis.numbersIdex = 0;\n\t\t\tsetColorIndex();\n\t\t} else {\n\t\t\tthis.numbersIdex = t;\n\t\t}\n\t}",
"@Override\n public void visitIINC(IINC obj) {\n int v = obj.getIndex();\n int amount = obj.getIncrement();\n ConstantFrame f = getFrame();\n Constant c = f.getValue(v);\n if (c.isConstantInteger())\n f.setValue(v, new Constant(c.getConstantInt() + amount));\n else\n f.setValue(v, Constant.NOT_CONSTANT);\n // System.out.println(\"after iinc: \" + getFrame());\n }",
"public void increaseVictoriesBy(final int amount) {\n victories += amount;\n }",
"public int getRowNo() {\n return rowIndex+1;\n }",
"public void updateInt(String columnName, int x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateInt(\" + quote(columnName) + \", \" + x + \");\");\n }\n update(columnName, ValueInt.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void increase() {\n balance.multiply(1.001);\n }",
"private int calculateNewIndex(float x, float y) {\n final float cellWidth = homeViewForAdapter.getWidth() / homeViewForAdapter.getColumnCount();\n final int column = (int) (x / cellWidth);\n\n // calculate which row to move to\n final float cellHeight = homeViewForAdapter.getHeight() / homeViewForAdapter.getRowCount();\n final int row = (int) Math.floor(y / cellHeight);\n\n // the items in the GridLayout is organized as a wrapping list\n // and not as an actual grid, so this is how to get the new index\n int index = row * homeViewForAdapter.getColumnCount() + column;\n if (index >= homeViewForAdapter.getChildCount()) {\n index = homeViewForAdapter.getChildCount() - 1;\n }\n\n return index;\n }",
"public void setPositionColumn(int value){this.positionColumn = value;}",
"public abstract void updateIndex();",
"public void inc(String name) {\n inc(name, 1);\n }",
"void setColumnValue(int colIndex, Object value);"
] |
[
"0.8057734",
"0.8057734",
"0.69982874",
"0.678258",
"0.66835374",
"0.63435066",
"0.63428724",
"0.6184274",
"0.61094654",
"0.603407",
"0.5960208",
"0.59578454",
"0.5953077",
"0.5877098",
"0.58688277",
"0.5814482",
"0.5761653",
"0.57444",
"0.57347506",
"0.57173884",
"0.5715682",
"0.5684457",
"0.56779873",
"0.56466943",
"0.56199735",
"0.5589252",
"0.55803096",
"0.55763113",
"0.55749893",
"0.5574359",
"0.55626965",
"0.555719",
"0.55563736",
"0.5536878",
"0.5525073",
"0.5502422",
"0.54979175",
"0.54969364",
"0.5496608",
"0.5483506",
"0.5481503",
"0.54793334",
"0.54667807",
"0.54489625",
"0.5428201",
"0.54226065",
"0.54132175",
"0.53965354",
"0.5390482",
"0.5384785",
"0.5384765",
"0.5362773",
"0.53618026",
"0.5359045",
"0.5359045",
"0.53573763",
"0.53443086",
"0.53352094",
"0.532901",
"0.53218096",
"0.5316001",
"0.5313529",
"0.5309577",
"0.5302605",
"0.52985835",
"0.5298017",
"0.52899927",
"0.5285486",
"0.5270584",
"0.5270584",
"0.5270584",
"0.52598083",
"0.5257648",
"0.5257382",
"0.5235901",
"0.5234114",
"0.52337146",
"0.522052",
"0.5212389",
"0.52100605",
"0.5205002",
"0.518215",
"0.51805997",
"0.5179301",
"0.5176759",
"0.5175986",
"0.51646006",
"0.5163192",
"0.5161786",
"0.5152817",
"0.5152528",
"0.5148407",
"0.51327974",
"0.5124122",
"0.5119391",
"0.51165533",
"0.51137996",
"0.5105879",
"0.5089942"
] |
0.79230404
|
2
|
Get the current page header
|
PageHeader getPageHeader();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected String getPageHeader()\n {\n if (this.pageHeader == null) {\n String title = (this.privateLabel != null)? this.privateLabel.getPageTitle() : \"\";\n StringBuffer sb = new StringBuffer();\n sb.append(\"<center>\");\n sb.append(\"<span style='font-size:14pt;'><b>\" + title + \"</b></span>\");\n sb.append(\"<hr>\");\n sb.append(\"</center>\");\n this.pageHeader = sb.toString();\n }\n return this.pageHeader;\n }",
"public String getHeader()\r\n\t{\r\n\t\treturn header;\r\n\t}",
"public String getPageHeaderParagraph() {\r\n\t\treturn controls.getText(\"eVisit\", \"CSS_header_paragraph\");\r\n\t}",
"public static String getPageTitle() {\n\t\tLOG.info(\"Reading current page title.\");\n\t\treturn Constants.driver.getTitle();\n\n\t}",
"public String getHeader() {\n\t\treturn _header;\n\t}",
"private PageId getHeaderPage(RelationInfo relInfo) {\n\t\treturn new PageId(0, relInfo.getFileIdx());\n\t}",
"public String getHeader() {\n\t\t\treturn header;\n\t\t}",
"public String getHeader() {\n return header;\n }",
"public String getHeader() {\n return header;\n }",
"public String getHeader() {\n\t\tif (null != this.header) {\n\t\t\treturn this.header;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"header\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public String getHeader();",
"public String getHeader() {\n\t\treturn header.toString();\n\t}",
"public Object getHeader() {\n return header;\n }",
"public PHeader getHeader() {\n\t\treturn header;\n\t}",
"public String getHeader() {\n\t\tString item_text = getQuantityString(getCount());\n\t\tString header = getActivity().getString(R.string.browse_items_text, item_text, getCount());\n\t\treturn header;\n\t}",
"public String getCurrentPageTitle() {\n return driver.getTitle();\n }",
"public String getPageHeader(int pageNumber) {\n pageNumber++;\n String header = \"%%Page: \" + pageNumber + \" \" + pageNumber + \"\\n\" +\n \"%%BeginPageSetup\\n\" +\n \"/pagelevel save def\\n\";\n// \"90 rotate\\n\";\n header += \"%%EndPageSetup\\n\";\n return header;\n }",
"public abstract String header();",
"String getStartpage();",
"public Pattern getPageHeader() {\r\n return pattern_headerAttribute;\r\n }",
"public Header getHeader() {\n\t\treturn this.header;\n\t}",
"public String getCurrentPageTitle() {\n return webDriver.getTitle();\n }",
"public String getbyHeader(){\n String byHed=driver.findElement(byHeader).getText();\n return byHed;\n }",
"int getCurrentPage();",
"public String getHeaderText(){\n\t\treturn headerText.toString();\n\t}",
"public Class<?> header() {\n return header;\n }",
"public String getHeader() {\n String header = FxSharedUtils.getHeader();\n if (header.indexOf(\"$user$\") > 0)\n header = header.replaceAll(\"\\\\$user\\\\$\", getRequest().getUserTicket().getUserName());\n return header;\n }",
"public int getCurrentPage();",
"public PageFrame getHeadFrame() {\n return ram[head][0];\n }",
"public String getHeaderLine() {\r\n\t\tif(header == null)return \"\";\r\n\t\treturn header;\r\n\t}",
"public String getPageTitle() {\r\n\t\treturn this.pageTitle;\r\n\t}",
"private String collectHeading(Document doc) {\n String heading = doc.select(\"[class^=header1 style]\").first().text();\r\n\r\n return heading;\r\n }",
"com.didiyun.base.v1.Header getHeader();",
"org.apache.xmlbeans.XmlString xgetHeader();",
"protected ResponseHeader getHeader() {\n return this.header;\n }",
"public String getCurrentPage(){\n\t\treturn sCurrentPage;\n\t}",
"public String getHeaderName() {\n\tString value = getString(ATTR_HEADER_NAME, null);\n\treturn value;\n }",
"public String getFileHeaderInfo() {\n return this.fileHeaderInfo;\n }",
"public String getHttpHeader() {\n return httpHeader;\n }",
"private String readHeader(RoutingContext ctx) {\n String tok = ctx.request().getHeader(XOkapiHeaders.TOKEN);\n if (tok != null && ! tok.isEmpty()) {\n return tok;\n }\n return null;\n }",
"public String homePageTitle() {\n\t\tString title=driver.getTitle();\n\t\treturn title;\n\t}",
"public java.lang.String getHeaderName() {\r\n return headerName;\r\n }",
"public String getPageTitle() {\n\t\treturn pageTitle;\n\t}",
"String getPageName();",
"@Override\n\tpublic Map<String, String> getHeader() {\n\t\treturn this.header;\n\t}",
"public final String getPageTitle() {\n\t\treturn pageTitle;\n\t}",
"public Integer getCurrentPage();",
"public int getHeading()\n\t{\n\t\treturn heading;\n\t}",
"public VCFHeader getHeader();",
"public String getHomePageTitle() {\n\t\t//instantiate a web element and have the driver get it\n\t\t//WebElement homePageTitle = driver.findElement(By.xpath(\"//div[@id='bodyContent']//h1\"));\n\t\t//System.out.println(\"Home page title text \" + homePageTitle.getText());\n\t\tlogger.info(\"Home Page Title text is: \" + homePageTitle.getText());\n\t\treturn homePageTitle.getText();//homePageTitle is a PageFactory Element, see above. \n\t}",
"public java.lang.String getHeaderName () {\n\t\treturn headerName;\n\t}",
"String getResponseHeader();",
"public String getHomePageTitle()\n\t{\n\t\treturn elementUtils.getWebPageTitle();\n\t}",
"public String getPageTitle()\n {\n return page == null ? StringUtils.EMPTY : page.getElementInfo().getTitle();\n }",
"public String getWantedProductHeader()throws Exception{\r\n SearchPageFactory pageFactory = new SearchPageFactory(driver);\r\n String listedItemHeader = getElementText(pageFactory.listedItemHeader);\r\n return listedItemHeader;\r\n }",
"public static String getHeader() {\n return \"S I R\";\n }",
"public String getCallHeader(DatabasePlatform platform) {\r\n return platform.getFunctionCallHeader();\r\n }",
"String getHeader(String headerName);",
"public ElementHeader getCurrentStep()\n {\n return currentStep;\n }",
"java.lang.String getHeader();",
"private org.gwtbootstrap3.client.ui.PageHeader get_f_PageHeader3() {\n return build_f_PageHeader3();\n }",
"public String getpagetittle() {\n\t\t\n\t\tString tittle = elementutil.getTittleExplicit(Constants.Login_PAGE_TITLE, 15);\n\t\tSystem.out.println(\"Login page tittle : \"+ tittle);\n\t\treturn tittle;\t\n\t}",
"public String getTitle(){\n\t\tlog.debug(\"Getting title of Cruises page\");\n\t\tString title = driver.getTitle();\n\t\tlog.info(\"Title of Cruises page is: \"+title);\n\t\treturn title;\n\t}",
"public Number getHeaderId() {\n return (Number)getAttributeInternal(HEADERID);\n }",
"public Number getHeaderId() {\n return (Number)getAttributeInternal(HEADERID);\n }",
"public String headerLine() {\n return headerLine;\n }",
"ComponentHeaderType getHeader();",
"@Test \n\tpublic void homePageHeaderTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// Validate page header \n\t\tString header = homePage.getHeader();\n\t\tAssert.assertTrue(header.equals(\"\"));\n\n\t\t// Fetch latin quote: \n\t\tString latinQuote = homePage.getQuote(\"latin\");\n\t\tAssert.assertEquals(\"\\\"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...\\\"\", latinQuote);\n\n\t\t// Fetch english quote, which is: \n\t\tString englishQuote = homePage.getQuote(\"english\"); \n\t\tAssert.assertEquals(\"\\\"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain...\\\"\",englishQuote); \n\t}",
"public static String getCurrentPage() throws ConfigurationException, IOException {\r\n return GetRunTimeData(\"currentPage\");\r\n }",
"public String getWatchListPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(otherPageTitle).getText();\n\n }",
"public String getCustomHeader() {\n return this.customHeader;\n }",
"public byte[] getHeader() {\n\treturn header;\n }",
"String getOssHomepage();",
"public boolean getHeader() {\n return isHeader;\n }",
"public WebElement getSearchPageHeaderText()\n{\n\treturn driver.findElement(headertext);\n}",
"private static String header() {\r\n String output = \"\";\r\n output += \"\\\\documentclass[a4paper,10pt]{article}\\n\";\r\n output += \"\\\\title{Wilcoxon Signed Ranks test.}\\n\";\r\n output += \"\\\\date{\\\\today}\\n\\\\author{KEEL non-parametric statistical module}\\n\\\\begin{document}\\n\\n\\\\pagestyle{empty}\\n\\\\maketitle\\n\\\\thispagestyle{empty}\\n\\n\";\r\n\r\n return output;\r\n\r\n }",
"public SSLHeadingWidgetComponent getHeading()\r\n\t{\r\n\t\treturn getHeading( getSession().getSessionContext() );\r\n\t}",
"public String getHeading() {\n return heading;\n }",
"public String getHeading() {\n return heading;\n }",
"private static String getHTTPHeader(PortletRequest request, String name) {\n String value = null;\n String portalInfo = request.getPortalContext().getPortalInfo()\n .toLowerCase();\n if (portalInfo.contains(\"liferay\")) {\n value = getLiferayHTTPHeader(request, name);\n } else if (portalInfo.contains(\"gatein\")) {\n value = getGateInHTTPHeader(request, name);\n }\n return value;\n }",
"public String getMainPage() {\n return (String)getAttributeInternal(MAINPAGE);\n }",
"public final native int getHeading() /*-{\n return this.getHeading() || 0;\n }-*/;",
"public String getPageTitle() {\n return driver.get().getTitle();\n }",
"public static HeaderMyAccountPO getHeaderMyAccountPage(WebDriver driver) {\n\t\treturn null;\r\n\t}",
"public String getHeader(final Header header) {\n return headers.get(header.toString());\n }",
"public String getPageTitle()\n\t{\n\t\treturn driver.getTitle();\n\t}",
"public String getHead(Handler handler)\n {\n return \"<html><head><title>Logging: \" \n + getTime(System.currentTimeMillis()) + \"</title></head><body><pre>\\n\";\n }",
"public String getPageTitle() {\n\t\treturn driver.getTitle();\n\t}",
"public int getStartingPage() {\n return startingPage;\n }",
"@Override\n public String getServletInfo() {\n return PAGE_NAME;\n }",
"public NetFlowHeader getHeader() throws IOException {\n if (header == null) {\n header = prepareHeader();\n }\n\n return header;\n }",
"public void generateGetHeader (\n HttpServletRequest request, HttpServletResponse response)\n throws IOException\n {\n BuildHtmlHeader(new PrintWriter (response.getOutputStream()), getTitle());\n }",
"public void setPageHeader(String header)\n {\n // ignore\n }",
"public String getHeadIncludes() {\n return (String) get(\"head_includes\");\n }",
"public Direction getCurrentHeading()\r\n\t{\r\n\t\treturn this.currentDirection;\r\n\t\t\r\n\t}",
"public String getTitle() {\n return find(by.tagName(\"h1\")).getText();\n }",
"public String getHeader() {\n\t\tString header = \"id\" + \",\" + \"chrId\" + \",\" + \"strand\" + \",\" + \"TSS\" + \",\" + \"PolyASite\"\n\t\t\t\t\t\t+ \",\" + \"5SSPos\" + \",\" + \"3SSPos\" + \",\" + \"intronLength\" + \",\" + \"terminalExonLength\"\n\t\t\t\t\t\t+ \",\" + \"BPS_3SS_distance\" + \",\" + \"PolyPyGCContent\" + \",\" + \"IntronGCContent\" + \",\" + \"terminalExonGCContent\"\n\t\t\t\t\t\t+ \",\" + \"5SS\" + \",\" + \"3SS\" + \",\" + \"BPS\"\n\t\t\t\t\t\t+ \",\" + \"5SSRank\" + \",\" + \"3SSRank\" + \",\" + \"BPSRank\"\n\t\t\t\t\t\t+ \",\" + \"5SSLevenshteinDistance\" + \",\" + \"3SSLevenshteinDistance\" + \",\" + \"BPSLevenshteinDistance\";\n\t\treturn header; \n\t}",
"public String getHeader1() {\n return header1;\n }",
"@Override\r\n\tpublic String getPageTitle() {\t\r\n\t\treturn getTranslation(Routes.getPageTitleKey(Routes.REPORT));\r\n\t}"
] |
[
"0.75885576",
"0.6873771",
"0.68080676",
"0.6785389",
"0.67611164",
"0.67542565",
"0.6708846",
"0.66651475",
"0.66651475",
"0.6654606",
"0.66137177",
"0.65819204",
"0.6553534",
"0.6540666",
"0.6492826",
"0.64890736",
"0.64776826",
"0.6471099",
"0.6429757",
"0.6422599",
"0.6399475",
"0.6322426",
"0.6298238",
"0.62918353",
"0.62742877",
"0.62257355",
"0.62135273",
"0.62006307",
"0.61962944",
"0.6186092",
"0.6186077",
"0.6182102",
"0.61580884",
"0.6150338",
"0.6124623",
"0.611624",
"0.6113904",
"0.6099144",
"0.6083511",
"0.60722476",
"0.605902",
"0.6058533",
"0.60481715",
"0.604554",
"0.6043471",
"0.6040689",
"0.6014899",
"0.5991375",
"0.59869313",
"0.59767866",
"0.59746116",
"0.5967203",
"0.5960449",
"0.5939952",
"0.5934322",
"0.5930724",
"0.59301424",
"0.5925839",
"0.59248555",
"0.5913611",
"0.5903566",
"0.58916426",
"0.58883643",
"0.58837754",
"0.58837754",
"0.5869684",
"0.58323073",
"0.5829567",
"0.5823232",
"0.58208996",
"0.5812852",
"0.58120865",
"0.5806925",
"0.5786579",
"0.57758087",
"0.5753145",
"0.5743838",
"0.5743157",
"0.5743157",
"0.57410365",
"0.5732058",
"0.57109344",
"0.5708896",
"0.5695039",
"0.5694348",
"0.56935084",
"0.5675556",
"0.5675427",
"0.5651659",
"0.563935",
"0.56365585",
"0.5630262",
"0.56259376",
"0.5602026",
"0.5593696",
"0.5593106",
"0.5590804",
"0.5578472",
"0.5572874"
] |
0.7940461
|
1
|
Set the current page header
|
void setPageHeader(PageHeader pageHeader);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setPageHeader(String header)\n {\n // ignore\n }",
"protected void updateHeader() {\n\t}",
"void setHeader(HttpServletResponse response, String name, String value);",
"PageHeader getPageHeader();",
"PageHeader getPageHeader();",
"public void setHeader(String header) {\n\t\tthis.header = header;\n\t\tthis.handleConfig(\"header\", header);\n\t}",
"public void setCurrentStep(ElementHeader currentStep)\n {\n this.currentStep = currentStep;\n }",
"public void setHeader() {\n tvHeader.setText(getResources().getString(R.string.text_skill));\n tvDots.setVisibility(View.INVISIBLE);\n }",
"private static void outputHeaderMainPage(SimpleWriter out) {\n out.print(\"<html>\\n\" + \"<head>\\n\" + \"\\t<title>\" + \"Index\" + \"</title>\\n\"\n + \"<font size = '10' >\" + \"Glossary Homepage\" + \"</font>\"\n + \"</head>\\n\" + \"<body>\\n\" + \"<head>\\n\" + \"\\t<h1>\\n\"\n + \"<font size = '6' >\" + \"Index\" + \"</font>\" + \"\\t</h1>\\n\"\n + \"</head>\\n\" + \"</body>\\n\" + \"</html>\");\n }",
"protected String getPageHeader()\n {\n if (this.pageHeader == null) {\n String title = (this.privateLabel != null)? this.privateLabel.getPageTitle() : \"\";\n StringBuffer sb = new StringBuffer();\n sb.append(\"<center>\");\n sb.append(\"<span style='font-size:14pt;'><b>\" + title + \"</b></span>\");\n sb.append(\"<hr>\");\n sb.append(\"</center>\");\n this.pageHeader = sb.toString();\n }\n return this.pageHeader;\n }",
"void setHeader(java.lang.String header);",
"@Override\n public void setHeader(String name, String value) {\n this._getHttpServletResponse().setHeader(name, value);\n }",
"public void setHeader(String header, String value)\n\t{\n\t\tif (httpServletResponse != null)\n\t\t{\n\t\t\thttpServletResponse.setHeader(header, value);\n\t\t}\n\t}",
"public void setHeader(String header) {\n\t\t_header = header;\n\t}",
"void setHeader(String headerName, String headerValue);",
"public void setHeader(String header) {\n\t\tthis.header = header;\n\t}",
"void setPageStart(short start);",
"public void setHeader(String header) {\n this.header = header;\n }",
"private void rewriteRepHeader() {\r\n\t\t// assume that the value of headVersionNum has been \r\n\t\t// incremented before coming here\r\n\t\ttry {\r\n\t\t\t// 1. delete current header\r\n\t\t\tif (client==null) this.initAnnoteaClient();\r\n\t\t\tclient.delete(this.repHeaderLoc);\r\n\t\t\t// 2. post new header\r\n\t\t\tDescription header = new Description();\r\n\t\t\tURI[] headerURI = new URI[1];\r\n\t\t\theaderURI[0] = new URI(this.repositoryURI.toString() + \"#header\");\r\n\t\t\theader.setAnnotates(headerURI);\r\n\t\t\theader.setAuthor(this.repositoryAuthor);\r\n\t\t\theader.setCreated(this.reposityCreatedDate);\r\n\t\t\theader.setAnnotatedEntityDefinition(this.baseOntologyURI.toString());\r\n\t\t\theader.setBody(String.valueOf(this.headVersionNumber));\r\n\t\t\theader.setBodyType(\"text/html\");\r\n\t\t\theader.setAnnotationType(this.annotType);\r\n\t\t\t// 3. update new header location URL\r\n\t\t\trepHeaderLoc = client.post(header);\r\n\t\t\t// 4. update value in versionDescriptions array and update swoopModel' versionRepository\r\n\t\t\tthis.versionDescriptions[0] = header;\r\n\t\t\tswoopModel.updateVersionRepository(this.repositoryURI, versionDescriptions);\r\n\t\t}\r\n\t\tcatch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}",
"abstract public void header();",
"public void setPageInfo(){\n\t\tif(AllP>=1){\n\t\t\tPageInfo=\"<table border='0' cellpadding='3'><tr><td>\";\n\t\t\tPageInfo+=\"Show: \"+PerR+\"/\"+AllR+\" Records! \";\n\t\t\tPageInfo+=\"Current page: \"+CurrentP+\"/\"+AllP;\n\t\t\tPageInfo+=\"</td></tr></table>\";\t\t\t\n\t\t}\t\t\t\t\n\t}",
"public void setHeader(String _header) {\n\t\tthis.header = _header;\n\t}",
"public void setDateHeader(String header, long date)\n\t{\n\t\tif (httpServletResponse != null)\n\t\t{\n\t\t\thttpServletResponse.setDateHeader(header, date);\n\t\t}\n\t}",
"public String getPageHeader(int pageNumber) {\n pageNumber++;\n String header = \"%%Page: \" + pageNumber + \" \" + pageNumber + \"\\n\" +\n \"%%BeginPageSetup\\n\" +\n \"/pagelevel save def\\n\";\n// \"90 rotate\\n\";\n header += \"%%EndPageSetup\\n\";\n return header;\n }",
"public void setHeading(final SessionContext ctx, final SSLHeadingWidgetComponent value)\r\n\t{\r\n\t\tsetProperty(ctx, HEADING,value);\r\n\t}",
"void addHeader(HttpServletResponse response, String name, String value);",
"public void setHeader(final Header header) {\n mHeader=header;\n updateFields();\n }",
"@Override\n public void setHeader(String arg0, String arg1) {\n\n }",
"public void writeHeader(PrintWriter out, RequestProperties reqState)\n throws IOException\n {\n out.write(this.getPageHeader());\n }",
"public void setResponseHeader(Response.Header header, String value) {\n setNonStandardHeader(header.code, value);\n }",
"public void setHeader(boolean isHeader) {\n this.isHeader = isHeader;\n }",
"public static void header(String s) {\n\t\t// header2.set(s);\n\t}",
"public void setCurrentPage(int pageNumber) {\n\t\t\n\t}",
"public void setHeading(final SSLHeadingWidgetComponent value)\r\n\t{\r\n\t\tsetHeading( getSession().getSessionContext(), value );\r\n\t}",
"public void start() {\n \tupdateHeader();\n }",
"public void setHeader(String key, String value) {\n\t\tmHeaderParams.put(key, value);\n\t}",
"public void changeHeading(int newHeading)\n\t{\n\t\theading = newHeading;\n\t}",
"public void setRequestHeader(Header header) {\n \n Header[] headers = getRequestHeaderGroup().getHeaders(header.getName());\n \n for (int i = 0; i < headers.length; i++) {\n getRequestHeaderGroup().removeHeader(headers[i]);\n }\n \n getRequestHeaderGroup().addHeader(header);\n \n }",
"@Override\n public void setHeading(String heading) {\n }",
"public void updateHeader() {\n if (this.mBarState == 1) {\n updateHeaderKeyguardAlpha();\n }\n updateQsExpansion();\n }",
"void xsetHeader(org.apache.xmlbeans.XmlString header);",
"public void setupHistoTableHeader() {\r\n\t\tif (this.histoTableTabItem != null && !this.histoTableTabItem.isDisposed()) this.histoTableTabItem.setHeader();\r\n\t}",
"public void setHeader(ResChunkHeader header) {\n this.header = header;\n }",
"public void setCurrentPage(String sCurrentPage){\n\t\tthis.sCurrentPage = sCurrentPage;\n\t}",
"void setHeaderInfo(float rFree, float rWork, float resolution, String title, String depositionDate, \n\t\t\tString releaseDate, String[] experimnetalMethods);",
"public int setHeading(int i) {\n\t\theading = i;\n\t\t//Returning the heading\n\t\treturn heading;\n\t}",
"private PageId getHeaderPage(RelationInfo relInfo) {\n\t\treturn new PageId(0, relInfo.getFileIdx());\n\t}",
"@Override\n public void setDateHeader(String name, long date) {\n this._getHttpServletResponse().setDateHeader(name, date);\n }",
"private void updateHeader() {\n this.mViewHolder.imageView = findViewById(R.id.image_header);\n this.mViewHolder.textHeader = findViewById(R.id.text_nav_header);\n\n this.mViewHolder.textHeader.setText(_NAME);\n\n Glide.with(this).load(user.getPhotoUrl()).into(this.mViewHolder.imageView);\n\n }",
"void setStockHeader(stockFilePT102.StockHeaderDocument.StockHeader stockHeader);",
"@Override\n public void setIntHeader(String name, int value) {\n this._getHttpServletResponse().setIntHeader(name, value);\n }",
"public void onHeaderRefresing();",
"public final native void setHeading(int heading) /*-{\n this.setHeading(heading);\n }-*/;",
"protected void setColumnHeader(final BaseColumn modelColumn,\n final String header) {\n modelColumn.setHeader(header);\n final int iModelColumn = model.getExpandedColumns().indexOf(modelColumn);\n uiModel.getColumns().get(iModelColumn).getHeaderMetaData().get(0).setTitle(header);\n }",
"public void yieldHead(PageContext pageContext) throws IOException\n {\n yield(\"head\", pageContext);\n }",
"public void setHeaderLabel() {\n\t\t\tlblGameBoard\n\t\t\t\t\t.setText(LABEL);\n\t}",
"@Override\r\n\tpublic void loadHeader() {\n\r\n\t}",
"@Override\n public void renderHead(final IHeaderResponse response) {\n // select bootstrap tab for current theme selected\n int selectedTab = this.getSelectedTab();\n response.render(OnDomReadyHeaderItem.forScript(\"$('#themes li:eq(\"\n + selectedTab + \") a').tab('show');\"));\n }",
"private void resetHeaderSmoothly() {\n if (null != mViewHandler) {\n isChanging = true;\n Message message = new Message();\n message.what = ViewHandler.SMOOTH_CHANGE_START;\n message.arg1 = ViewHandler.SMOOTH_TYPE_HEADER;\n mViewHandler.sendMessage(message);\n } else\n resetHeaderState();\n }",
"public void changeHeaderFile(){\n if ( changedAttr.isEmpty() ) return;\n else {\n Set<Object> tmpAttr = changedAttr.keySet();\n Object[] attributes = tmpAttr.toArray(new Object[tmpAttr.size()]);\n for (int i = 0; i < attributes.length; i++){\n if ( headerFile.containsKey(attributes[i]) ) {\n headerFile.put(attributes[i], changedAttr.get(attributes[i]));\n // DeidData.imageHandler.findImageByDisplayName(curimage.getImageDisplayName())\n // .getHeader().put(attributes[i], changedAttr.get(attributes[i]));\n curimage.getHeader().put(attributes[i], changedAttr.get(attributes[i]));\n //System.out.println(curimage.getHeader().get(attributes[i]));\n }\n }\n curimage.changeHeader();\n \n }\n }",
"private void loadNavHeader() {\n\t\t// name, Email\n\t\ttxtName.setText(\"Tester\");\n\t\ttxtEmail.setText(\"[email protected]\");\n\t}",
"public void setColumnHeader(int columnIndex, String header) {\n\t\tcheckColumnIndex(columnIndex);\n\t\ttableViewer.getTable().getColumn(columnIndex).setText(header);\n\t}",
"@Override\n protected void setPageHeading(TextView headingField) {\n }",
"@Test \n\tpublic void homePageHeaderTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// Validate page header \n\t\tString header = homePage.getHeader();\n\t\tAssert.assertTrue(header.equals(\"\"));\n\n\t\t// Fetch latin quote: \n\t\tString latinQuote = homePage.getQuote(\"latin\");\n\t\tAssert.assertEquals(\"\\\"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...\\\"\", latinQuote);\n\n\t\t// Fetch english quote, which is: \n\t\tString englishQuote = homePage.getQuote(\"english\"); \n\t\tAssert.assertEquals(\"\\\"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain...\\\"\",englishQuote); \n\t}",
"public void generateGetHeader (\n HttpServletRequest request, HttpServletResponse response)\n throws IOException\n {\n BuildHtmlHeader(new PrintWriter (response.getOutputStream()), getTitle());\n }",
"public HttpsConnection setHeader(final String key, final String value) {\n log.log(Level.INFO, \"Set Header: \" + key + \": \" + value);\n this.mHeaders.put(key, value);\n return this;\n }",
"private void setHeaderText(String text) {\n if (!TextUtils.isEmpty(mLayout.getHeaderText())\n && mLayout.getHeaderText().toString().equals(text)) {\n return;\n }\n mLayout.setHeaderText(text);\n }",
"private void manageHeaderView() {\n PickupBoyDashboard.getInstance().manageHeaderVisibitlity(false);\n HeaderViewManager.getInstance().InitializeHeaderView(null, view, manageHeaderClick());\n HeaderViewManager.getInstance().setHeading(true, mActivity.getResources().getString(R.string.bokings));\n HeaderViewManager.getInstance().setLeftSideHeaderView(true, R.drawable.left_arrow);\n HeaderViewManager.getInstance().setRightSideHeaderView(false, R.drawable.left_arrow);\n HeaderViewManager.getInstance().setLogoView(false);\n HeaderViewManager.getInstance().setProgressLoader(false, false);\n\n }",
"public void generatePostHeader (\n HttpServletRequest request, HttpServletResponse response)\n throws IOException\n {\n request.getParameter(\"Blabbo\"); // Dummy read to send continue back to the client.\n BuildHtmlHeader(new PrintWriter (response.getOutputStream()), getTitle());\n }",
"private static void\n headersWrite (final Map.Entry <String, VersionedValue> entry, Hello self)\n {\n self.putString (entry.getKey ());\n self.putNumber4 (entry.getValue ().getVersion ());\n self.putString (entry.getValue ().getValue ());\n }",
"public void setHeaderText(String headerText) {\n this.headerText = headerText;\n }",
"public void processInstance(Instance current) {\n m_header.add(current);\n }",
"private static String header() {\r\n String output = \"\";\r\n output += \"\\\\documentclass[a4paper,10pt]{article}\\n\";\r\n output += \"\\\\title{Wilcoxon Signed Ranks test.}\\n\";\r\n output += \"\\\\date{\\\\today}\\n\\\\author{KEEL non-parametric statistical module}\\n\\\\begin{document}\\n\\n\\\\pagestyle{empty}\\n\\\\maketitle\\n\\\\thispagestyle{empty}\\n\\n\";\r\n\r\n return output;\r\n\r\n }",
"void setHeader(@NonNull String name, @Nullable String value) {\n if (value == null) {\n removeHeader(name);\n } else {\n headers.put(name, value);\n }\n }",
"private void writeHEADER() throws IOException {\n\t\tmeta.compute_checksum();\n\t\tmeta.write();\n\t\t\n\t\t// We could also generate a non-aldus metafile :\n\t\t// writeClipboardHeader(meta);\n\t\t\n\t\t// Generate the standard header common to all metafiles.\n\t\thead.write();\n\t}",
"void setOssHomepage(String ossHomepage);",
"public static void setHeaderText(Text headerText) {\n headerText.setFont(Font.font(\"Verdana\", FontWeight.EXTRA_BOLD, 30));\n }",
"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}",
"public void setHeader(String header) {\n this.header = header == null ? null : header.trim();\n }",
"public void setPlayerListHeader ( String header ) {\n\t\texecute ( handle -> handle.setPlayerListHeader ( header ) );\n\t}",
"public void setPage(Page page) {this.page = page;}",
"void setHeaderMargin(double headermargin);",
"public void setMainPage(String value) {\n setAttributeInternal(MAINPAGE, value);\n }",
"public void setDateHeader(FullHttpResponse response) {\r\n SimpleDateFormat dateFormatter = new SimpleDateFormat(HTTP_DATE_FORMAT, Locale.US);\r\n dateFormatter.setTimeZone(TimeZone.getTimeZone(HTTP_DATE_GMT_TIMEZONE));\r\n\r\n Calendar time = new GregorianCalendar();\r\n response.headers().set(HttpHeaders.Names.DATE, dateFormatter.format(time.getTime()));\r\n }",
"public void setHeaderFlag(boolean flag) {\n configuration.put(ConfigTag.HEADER, flag);\n }",
"public void setHeaderId(Number value) {\n setAttributeInternal(HEADERID, value);\n }",
"public void setHeaderId(Number value) {\n setAttributeInternal(HEADERID, value);\n }",
"@Override\r\n\t\tpublic PageDescription setPageEnv(HttpServletRequest request) {\n\t\t\tList<PubItem> pubItem = PubDataReader.getPubItems(dbValue, nation);\r\n\t\t\trequest.setAttribute(\"PUB_TITLE\", dbValue + \":\" + nation);\r\n\t\t\trequest.setAttribute(\"PUBCONTENTS\", pubItem);\r\n\t\t\treturn new PubPageDesc(dbValue + \":\" + nation);\r\n\t\t}",
"public void resetCurrentProcessListHeaders() {\r\n currentListHeaders = processModel\r\n .getRowTemplate(currentRole, getLanguage());\r\n }",
"public static void setDateHeader(HttpResponse response) {\n\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(HTTP_DATE_FORMAT, Locale.US);\n\t\tdateFormatter.setTimeZone(TimeZone.getTimeZone(HTTP_DATE_GMT_TIMEZONE));\n\n\t\tCalendar time = new GregorianCalendar();\n\t\tresponse.setHeader(HttpHeaders.Names.DATE, dateFormatter.format(time.getTime()));\n\t}",
"public void setHeader(JMSControl.HeaderType type,Object value);",
"protected void initializeHeader() throws PiaRuntimeException, IOException{\n try{\n super.initializeHeader();\n if( firstLineOk && headersObj == null ){\n\t// someone just give us the first line\n\theadersObj = new Headers();\n }\n }catch(PiaRuntimeException e){\n throw e;\n }catch(IOException ioe){\n throw ioe;\n }\n }",
"protected void writeHeader() throws IOException {\n _baos = new ByteArrayOutputStream();\n _dos = new DataOutputStream(_baos);\n _dos.write(PushCacheProtocol.instance().header(), 0, PushCacheProtocol.instance().header().length);\n }",
"public abstract String header();",
"@attribute(value = \"\", required = false, defaultValue = \"default value is false\")\r\n\tpublic void setHeader(Boolean isHeader) {\r\n\t\tthis.header = isHeader;\r\n\t}",
"@Override\n public void addHeader(String name, String value) {\n this._getHttpServletResponse().addHeader(name, value);\n }",
"private void setBottomSheetHeader(View child) {\n if (child instanceof BottomSheetBehaviorView) {\n View view = child.findViewWithTag(BottomSheetHeaderView.TAG);\n if (view != null && view instanceof BottomSheetHeaderView) {\n BottomSheetBehaviorView b = (BottomSheetBehaviorView) child;\n RNBottomSheetBehavior behavior = b.behavior;\n headerView = (BottomSheetHeaderView) view;\n headerView.registerFields();\n headerView.toggle(behavior.getState() == RNBottomSheetBehavior.STATE_COLLAPSED);\n behavior.setHeader(headerView);\n }\n }\n }",
"private void setActionBar() {\n\t\tString text=\"\";\n\t\tif(isBindEmail){\n\t\t\ttext=\"修改邮箱\";\n\t\t\tvalidateUser();\n\t\t}else{\n\t\t\ttext=\"绑定邮箱\";\n\t\t\tbindPhone(AppContext.getInstance().getLocalUserInfo(mContext).id);\n\t\t}\n\t\theadView.setText(text);\n\t\theadView.setGobackVisible();\n\t\theadView.setRightGone();\n\t}",
"@Override\n public void setHeaderIndices() {\n }"
] |
[
"0.77700186",
"0.6706179",
"0.65665007",
"0.64241385",
"0.64241385",
"0.63887197",
"0.6282552",
"0.6265763",
"0.6254114",
"0.6204983",
"0.618697",
"0.61502755",
"0.61345726",
"0.6113927",
"0.6083309",
"0.6062315",
"0.6060419",
"0.6044488",
"0.60196966",
"0.5990037",
"0.596379",
"0.5952759",
"0.5934778",
"0.5907613",
"0.5905219",
"0.5900839",
"0.5866092",
"0.585867",
"0.5835966",
"0.58285236",
"0.57882136",
"0.57353777",
"0.5729688",
"0.57053643",
"0.57007164",
"0.5682897",
"0.56826407",
"0.5663467",
"0.5643422",
"0.56361824",
"0.5608584",
"0.5595085",
"0.55945814",
"0.55906135",
"0.558754",
"0.55720115",
"0.5567004",
"0.556124",
"0.55382097",
"0.55059683",
"0.54958856",
"0.54870486",
"0.54746205",
"0.5459905",
"0.54558355",
"0.5442814",
"0.54358906",
"0.542813",
"0.54240227",
"0.5419122",
"0.5401159",
"0.53992766",
"0.53947407",
"0.53908736",
"0.538759",
"0.53797567",
"0.5374061",
"0.53646356",
"0.5355292",
"0.534897",
"0.5347198",
"0.53403246",
"0.53377396",
"0.5335164",
"0.5328711",
"0.53267777",
"0.5312082",
"0.53103876",
"0.5309878",
"0.5309472",
"0.53037715",
"0.53032917",
"0.52971894",
"0.5297124",
"0.5293193",
"0.5292709",
"0.5292709",
"0.5292673",
"0.52920777",
"0.5281511",
"0.5280321",
"0.5279141",
"0.5269976",
"0.52675164",
"0.5266331",
"0.5266264",
"0.5254584",
"0.5253154",
"0.524669"
] |
0.7877582
|
1
|
Flush all columns to the output stream
|
void flushToOutputStream(OutputStream outputStream) throws IOException;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void flush() {\n if (outputEnabled)\n out.flush();\n }",
"@Override\r\n\tpublic void flushAll() {\n\t\t\r\n\t}",
"public void flush() {\n\t\t\n\t}",
"public void flush() {\n writer.flush();\n }",
"public void flush() {\n flushed = true;\n }",
"public void flushAllTables() {\n\t}",
"private void flush() {\n\t\ttry {\n\t\t\tif (mResultSet != null) {\n\t\t\t\tmResultSet.close();\n\t\t\t}\n\n\t\t\tif (mStatement != null) {\n\t\t\t\tmStatement.close();\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}",
"private void flush() {\n try {\n output.write(digits);\n } catch (IOException e) {\n throw new RuntimeException(e.toString());\n }\n digits = 0;\n numDigits = 0;\n }",
"public void flush() {\r\n\t\ttry {\r\n\t\t\tdos.flush();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void flush() throws IOException;",
"public void flush() throws IOException;",
"public void flush() throws IOException;",
"public void flush() throws IOException\n {\n getStream().flush();\n }",
"@Override\r\n\tpublic void flush() {\n\t\t\r\n\t}",
"@Override\n public void flush() throws IOException {\n byteBufferStreamOutput.flush();\n }",
"public void flush() {\n\t//Gets os name\n\tString os = System.getProperty(\"os.name\");\n\t//Checks if system is Windows\n\ttry {\n\t if (System.getProperty(\"os.name\").startsWith(\"Windows\")) {\n\t\tString[] clear = {\"cmd\", \"/c\", \"cls\"};\n\t\tRuntime.getRuntime().exec(clear);\n\t } else {\n\t\tSystem.out.println(\"\\033[2J\");\n\t }\n\t} catch (Exception e) {\n\t System.out.println(\"Nope\");\n\t}\n }",
"public synchronized void flush() {\n\t\ttry {\n\t\t\tcloseWriter();\n\t\t} catch(IOException ioe ) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\topenWriter(true);\n\t\t} catch(IOException ioe ) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}",
"public void flush() {\n\r\n int inflatedSize = buffer.position();\r\n deflator.setInput(buffer.getBuffer(), 0, inflatedSize);\r\n deflator.finish();\r\n int deflatedSize = deflator.deflate(compressionBuffer.array());\r\n deflator.reset();\r\n\r\n try {\r\n outputStream.writeInt(deflatedSize);\r\n outputStream.writeInt(inflatedSize);\r\n outputStream.write(compressionBuffer.array(), 0, deflatedSize);\r\n }\r\n catch (IOException e) {\r\n throw new RuntimeException(\"Failed to write compressed data to stream\", e);\r\n }\r\n\r\n buffer.clear();\r\n compressionBuffer.clear();\r\n }",
"public void flush() throws IOException {\n mPrintWriter.flush();\n }",
"public void flush();",
"public void flush();",
"public void flush();",
"public void flush();",
"@Override\n\tpublic void flush() {\n\t\t\n\t}",
"@Override\n\tpublic void flush() {\n\t\t\n\t}",
"@Override\n\tpublic void flush() {\n\t\t\n\t}",
"@Override\n\tpublic void flush() {\n\t\t\n\t}",
"@Override\r\n\tpublic void flush() {\n\t}",
"@Override\r\n public void flush ()\r\n {\r\n }",
"@Override\n public void flush() throws IOException {\n }",
"@Override\n public void flush() {\n }",
"@Override\n public void flush() {\n }",
"@Override\n public void flush() {\n }",
"public void flush() throws IOException {\n dos.flush();\n }",
"void flush() throws IOException;",
"void flush() throws IOException;",
"void flush() throws IOException;",
"public void flush() throws IOException {\n\t\t// TODO implement me\n\t}",
"static public void flushPrintStream() {\n \t out.flush();\n }",
"@Override\n\tpublic void flush() {\n\t}",
"public abstract void flush();",
"public void flush() throws IOException {\n try {\n out.flush();\n } catch (IOException ioe) {\n String msg = \"Failed to flush \" + this;\n LOG.error(msg, ioe);\n throw new IOException(msg, ioe);\n }\n }",
"public void flush()\n/* */ throws IOException\n/* */ {\n/* 833 */ _flushBuffer();\n/* 834 */ if ((this._writer != null) && \n/* 835 */ (isEnabled(JsonGenerator.Feature.FLUSH_PASSED_TO_STREAM))) {\n/* 836 */ this._writer.flush();\n/* */ }\n/* */ }",
"public void flush() throws Exception{\r\n\tout.flush();\r\n}",
"public void flush() {\n wasFlushed = true;\n }",
"@Override\n public void flush()\n {\n }",
"@Override\n public void close() throws IOException {\n flush();\n }",
"boolean flush_all();",
"public void flush(){\r\n mBufferData.clear();\r\n }",
"@Override\n public void flush () throws IOException\n {\n if ((null == _topParts) || (null == _mmDelimiter))\n throw new EOFException(\"No parsing in progress to flush\");\n if (null == this.out)\n throw new EOFException(\"No underlying output stream to flush\");\n this.out.flush();\n }",
"void flush() throws EDIStreamException;",
"void flushBatch();",
"void flushExistingText( final PdfOutfile outfile )\r\n {\r\n outfile.addColumnsContentToDocument();\r\n }",
"void flush();",
"void flush();",
"void flush();",
"void flush();",
"void flush();",
"void flush();",
"void flush();",
"void flush();",
"@Override\n\t\tpublic void flush() throws IOException {\n\t\t\twriteBlock(true);\n\t\t\tout.flush();\n\n\t\t\t// it's a bit nasty if an exception is thrown from the log,\n\t\t\t// but ignoring it can be nasty as well, so it is decided to\n\t\t\t// let it go so there is feedback about something going wrong\n\t\t\t// it's a bit nasty if an exception is thrown from the log,\n\t\t\t// but ignoring it can be nasty as well, so it is decided to\n\t\t\t// let it go so there is feedback about something going wrong\n\t\t\tif (debug) {\n\t\t\t\tlog.flush();\n\t\t\t}\n\t\t}",
"void flush() throws Exception;",
"public void flush() {\n\t\tif ( !printing_status() ) {\n\t\t\tint sz = _platform_io.size_text( _current_word.toString() );\n\t\t\tif ( _last_column + sz >= _wrap_column ) {\n\t\t\t\tinc_line();\n\t\t\t}\n\n\t\t\t_last_column += sz;\n\t\t\t_platform_io.print_text( _current_word.toString() );\n\t\t\t_current_word.setLength( 0 );\n\t\t} else {\n\t\t\t_status_line.append( _current_word.toString() );\n\t\t\t_current_word.setLength( 0 );\n\t\t}\n\t}",
"public void flush()\r\n\tthrows IOException\r\n\t{\r\n\tgetWriter().flush();\r\n\treturn;\r\n\t}",
"public void flush() throws IOException {\n\t\tif ((buffer.length - cursor) > 50000) {\n\t\t\tSystem.out.println(\"WASTED: \" + (buffer.length - cursor));\n\t\t}\n\t}",
"public void close() {\n this.output.flush();\n this.output.close();\n }",
"void write(Object... columns) throws IOException;",
"public void flush() throws IOException {\n if (firstMessage != null) {\n writer.messageWrite(firstMessage);\n }\n firstMessage = null;\n }",
"void write(List<?> columns) throws IOException;",
"public synchronized void flush() throws IOException {\n\t\tcheckNotClosed();\n\t\ttrimToSize();\n\t\tjournalWriter.flush();\n\t}",
"@Override\n\tpublic void flushBuffer() throws IOException {\n\t}",
"private void flushData()\n {\n try\n {\n while(state.get().ordinal() < SimulationState.TEARING_DOWN.ordinal() || !flushing.isEmpty())\n {\n ICardinality cardinality = flushing.poll(1, TimeUnit.MILLISECONDS);\n if (cardinality == null)\n continue;\n\n long numToFlush = cardinality.cardinality();\n counters.numFlushed.addAndGet(numToFlush);\n generateSSTables(cardinality, numToFlush, partitioner.getMinimumToken(), partitioner.getMaximumToken(), \"flushing\", true);\n }\n }\n catch (InterruptedException e)\n {\n logger.error(\"Exception happen during flushing\", e);\n }\n }",
"@Override\n public void flush() throws IOException {\n checkStreamState();\n flushIOBuffers();\n }",
"public void forceFlush() throws IOException {\n flushCurrentIndexBlock();\n }",
"public void flushStreamSpecs();",
"public void flush() throws IOException { \r\n\t \r\n\t \r\n\t synchronized(this) { \r\n\t super.flush(); \r\n\t record = this.toString(); \r\n\t super.reset(); \r\n\t \r\n\t if (record.length() == 0 || record.equals(lineSeparator)) { \r\n\t // avoid empty records \r\n\t return; \r\n\t } \r\n\t if (!PlatformUI.getWorkbench().getDisplay().isDisposed()){\r\n\t\t PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {\r\n\t\t \tpublic void run() {\r\n\t\t\t\t\t\t\tif ((console != null) && (!console.isDisposed()) && doLog){\r\n\t\t\t\t\t\t\t\tconsole.append(record);\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 }\r\n\t } \r\n\t }",
"public void flush() throws IOException {\n\t\tmFile.seek(mOffset);\n\t\tmWriter.write(mBuffer, 0, mBufferLength);\n\t\tmOffset += mBufferLength;\n\t\tmBufferLength = 0;\n\t}",
"public void close() {\n if (this.out == null) {\n return;\n }\n try {\n this.out.flush();\n this.out.close();\n this.out = null;\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void close() {\n try { out.flush(); } catch (Exception e) {}; // just to be sure\n \n cleanup();\n }",
"public void endTable() throws IOException;",
"@Override\n public void flush() throws IOException {\n ConsoleRedirect.this.flush(buffer, 0, pos);\n pos = 0;\n }",
"@Override\r\n public synchronized void flush() throws IOException {\r\n\t\tif ( count != 0 ) {\r\n\t\t writeBuffer(buf, 0, count );\r\n\t\t count = 0;\r\n\t\t}\r\n\t}",
"@Override\n public void flush() throws IOException{\n HBasePlatformUtils.flush(region);\n }",
"@Override\n public void flush()\n throws XMLStreamException\n {\n try {\n mWriter.flush();\n } catch (IOException ie) {\n throw new WstxIOException(ie);\n }\n }",
"public void flush() {\r\n // Flushing is required only if there are written bytes in\r\n // the current data element.\r\n if (bytenum != 0) {\r\n data[offset] = elem;\r\n }\r\n }",
"public void flush() {\n trans.set(kernel.get().asArray());\n actions.forEach(Runnable::run);\n actions.clear();\n kernel.free();\n kernel = Matrix4F.ident();\n }",
"@Override\n public void flushBuffer() throws IOException {\n\n }",
"@Override\r\n public void flush() {\n\r\n }",
"public void outputByCols(String filename) throws IOException {\n BufferedWriter colsWriter = new BufferedWriter(new FileWriter(new File(filename)));\n for (int k = 0; k < this.numCols; k++) {\n int j = 0;\n for (int member : this.getColumn(k)) {\n if (j > 0) {\n colsWriter.write(\" \");\n }\n j++;\n colsWriter.write(Integer.toString(member + 1)); // Add 1 to get back 1-indexing\n }\n colsWriter.newLine();\n }\n colsWriter.close();\n }",
"public void flush(long offset) {\n if (offset < 0) {\n throw new IllegalArgumentException(\"Invalid offset: \" + offset);\n }\n // TODO: Once we persisted stream type, we should check the call can only be issued on BUFFERED\n // stream here.\n Storage.FlushRowsRequest request =\n Storage.FlushRowsRequest.newBuilder().setWriteStream(streamName).setOffset(offset).build();\n stub.flushRows(request);\n // TODO: We will verify if the returned offset is equal to requested offset.\n }",
"@Override\r\n public void flush() {\n\r\n }",
"public void flush()\r\n {\r\n if ( content != null )\r\n {\r\n content.flush();\r\n }\r\n }",
"@Override\r\n\tpublic void flushAll(Date date) {\n\t\t\r\n\t}",
"public boolean flushPipelinedData() throws IOException {\n if (buffer == null || (buffer.getBuffer().position() == 0 && allAreClear(state, FLUSHING))) {\n return next.flush();\n }\n return flushBuffer();\n }",
"public final void flushRows() {\n if (myRowCount > 0) {\n Object[][] array = new Object[myRowCount][];\n for (int i = 0; i < array.length; i++) {\n array[i] = myLoadArray[i];\n }\n Object[][] temp = myLoadArray;\n // this changes myLoadArray to array for loading\n loadArray(array);\n // now change it back for future loading\n myLoadArray = temp;\n myRowCount = 0;\n // now clear the array\n for (int i = 0; i < myMaxRowsInBatch; i++) {\n myLoadArray[i] = null;\n }\n }\n }",
"private static void closeAll() {\n try {\n outputFileBuffer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Encog.getInstance().shutdown();\n }",
"public void close() throws IOException {\n\t\tout.flush();\n\t\tout.close();\n\t}",
"public void closeCsvFile()\n{\n try {\n \n fileWriter.flush(); \n fileWriter.close(); \n \n } catch (IOException e) { \n \n System.out.println(\"Error while flushing/closing fileWriter !!!\"); \n e.printStackTrace(); \n } \n \n}",
"@Override\n public void flush() throws IOException {\n FileDescriptor myFd = fd;\n if (myFd == null) throw new IOException(\"socket closed\");\n\n // Loop until the output buffer is empty.\n Int32Ref pending = new Int32Ref(0);\n while (true) {\n try {\n // See linux/net/unix/af_unix.c\n Os.ioctlInt(myFd, OsConstants.TIOCOUTQ, pending);\n } catch (ErrnoException e) {\n throw e.rethrowAsIOException();\n }\n\n if (pending.value <= 0) {\n // The output buffer is empty.\n break;\n }\n\n try {\n Thread.sleep(10);\n } catch (InterruptedException ie) {\n break;\n }\n }\n }"
] |
[
"0.66213673",
"0.6430017",
"0.6381974",
"0.638178",
"0.63396716",
"0.6321066",
"0.62389505",
"0.62207687",
"0.6198696",
"0.618205",
"0.618205",
"0.618205",
"0.61493963",
"0.6147786",
"0.6125725",
"0.612223",
"0.6098188",
"0.6090842",
"0.60715705",
"0.6060078",
"0.6060078",
"0.6060078",
"0.6060078",
"0.60569125",
"0.60569125",
"0.60569125",
"0.60569125",
"0.60544574",
"0.6035337",
"0.60265154",
"0.5999574",
"0.5999574",
"0.5999574",
"0.5992881",
"0.5984558",
"0.5984558",
"0.5984558",
"0.59800315",
"0.5967852",
"0.59552264",
"0.5946815",
"0.5937924",
"0.5937484",
"0.5931197",
"0.5894881",
"0.5893772",
"0.58852327",
"0.5884917",
"0.587905",
"0.58552307",
"0.5829791",
"0.58274233",
"0.58237046",
"0.5804653",
"0.5804653",
"0.5804653",
"0.5804653",
"0.5804653",
"0.5804653",
"0.5804653",
"0.5804653",
"0.5803522",
"0.57925117",
"0.577513",
"0.5758934",
"0.57589215",
"0.57365966",
"0.5719715",
"0.5713868",
"0.5710545",
"0.57043165",
"0.5699343",
"0.56971276",
"0.5649525",
"0.5628954",
"0.55982226",
"0.55910265",
"0.5565822",
"0.55525196",
"0.5548308",
"0.5514973",
"0.5508728",
"0.55045646",
"0.5482812",
"0.5465614",
"0.5448613",
"0.54482955",
"0.5439097",
"0.5436277",
"0.54330736",
"0.5426101",
"0.54196405",
"0.5395239",
"0.53761005",
"0.53741664",
"0.53578633",
"0.5347414",
"0.5346572",
"0.5329383",
"0.53226805"
] |
0.55956656
|
76
|
Write the concrete type
|
void writeConcreteType(Class<?> type);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected void writeType ()\n {\n stream.println (\" public org.omg.CORBA.TypeCode _type ()\");\n stream.println (\" {\");\n stream.println (\" return \" + helperClass + \".type ();\");\n stream.println (\" }\");\n stream.println ();\n }",
"private void _writeType(final Typed typed) throws IOException {\n _writeKeyValue(\"type\", _topicRef(typed.getType()));\n }",
"@Override\n\tprotected void write(ObjectOutput out) throws IOException {\n\t\t\n\t}",
"private void saveDataType(int type) throws IOException {\r\n FileWriter fileWriter = new FileWriter(\"././ressources/datatype.txt\");\r\n BufferedWriter writer = new BufferedWriter(fileWriter);\r\n writer.write(type + \"\\n\");\r\n writer.close();\r\n fileWriter.close();\r\n }",
"@Override\n public void write() {\n\n }",
"@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeShort(this.classType);\r\n\t\tout.writeShort(this.skinType);\r\n\t}",
"private String genWriteCode(String name, String type) {\n\n if (type.equals(\"char\")) {\n return OUTSTREAM_VAR_NAME + \".writeChar( \" + name + \" );\";\n } else if (type.equals(\"short\")) {\n return OUTSTREAM_VAR_NAME + \".writeShort( \" + name + \" );\";\n } else if (type.equals(\"int\")) {\n return OUTSTREAM_VAR_NAME + \".writeInt( \" + name + \" );\";\n } else if (type.equals(\"float\")) {\n return OUTSTREAM_VAR_NAME + \".writeFloat( \" + name + \" );\";\n } else if (type.equals(\"double\")) {\n return OUTSTREAM_VAR_NAME + \".writeDouble( \" + name + \" );\";\n } else if (type.equals(\"std::string\")) {\n return OUTSTREAM_VAR_NAME + \".writeString( \" + name + \" );\";\n } else if (type.equals(\"bool\")) {\n return OUTSTREAM_VAR_NAME + \".writeBoolean( \" + name + \" );\";\n } else {\n throw new IllegalArgumentException(\"unknown primitive type=\" + type);\n }\n }",
"protected abstract void write (Object val);",
"@Override\r\n\tpublic void write() {\n\t\t\r\n\t}",
"public void writeObject ();",
"String objectWrite();",
"protected void writeWrite ()\n {\n stream.println (\" public void _write (org.omg.CORBA.portable.OutputStream o)\");\n stream.println (\" {\");\n if (entry instanceof ValueBoxEntry)\n {\n TypedefEntry member = ((InterfaceState) ((ValueBoxEntry) entry).state ().elementAt (0)).entry;\n SymtabEntry mType = member.type ();\n if (mType instanceof StringEntry)\n stream.println (\" o.write_string (value);\");\n\n else if (mType instanceof PrimitiveEntry)\n {\n String name = entry.name ();\n stream.println (\" \" + name + \" vb = new \" + name + \" (value);\");\n stream.println (\" \" + helperClass + \".write (o, vb);\");\n }\n\n else\n stream.println (\" \" + helperClass + \".write (o, value);\");\n }\n else\n stream.println (\" \" + helperClass + \".write (o, value);\");\n stream.println (\" }\");\n stream.println ();\n }",
"public interface Output {\n\n void putString(String string);\n\n // Basic Data Types\n /**\n * Write number\n *\n * @param num\n * Number\n */\n void writeNumber(Number num);\n\n /**\n * Write boolean\n *\n * @param bol\n * Boolean\n */\n void writeBoolean(Boolean bol);\n\n /**\n * Write string\n *\n * @param string\n * String\n */\n void writeString(String string);\n\n /**\n * Write date\n *\n * @param date\n * Date\n */\n void writeDate(Date date);\n\n void writeNull();\n\n /**\n * Write array.\n *\n * @param array\n * Array to write\n */\n void writeArray(Collection<?> array);\n\n /**\n * Write array.\n *\n * @param array\n * Array to write\n */\n void writeArray(Object[] array);\n\n /**\n * Write primitive array.\n *\n * @param array\n * Array to write\n */\n void writeArray(Object array);\n\n /**\n * Write map.\n *\n * @param map\n * Map to write\n */\n void writeMap(Map<Object, Object> map);\n\n /**\n * Write array as map.\n *\n * @param array\n * Array to write\n */\n void writeMap(Collection<?> array);\n\n /**\n * Write object.\n *\n * @param object\n * Object to write\n */\n void writeObject(Object object);\n\n /**\n * Write map as object.\n *\n * @param map\n * Map to write\n */\n void writeObject(Map<Object, Object> map);\n\n /**\n * Write recordset.\n *\n * @param recordset\n * Recordset to write\n */\n void writeRecordSet(RecordSet recordset);\n\n /**\n * Write XML object\n *\n * @param xml\n * XML document\n */\n void writeXML(Document xml);\n\n /**\n * Write ByteArray object (AMF3 only).\n *\n * @param array\n * object to write\n */\n void writeByteArray(ByteArray array);\n\n /**\n * Write a Vector<int>.\n *\n * @param vector\n * vector\n */\n void writeVectorInt(Vector<Integer> vector);\n\n /**\n * Write a Vector<uint>.\n *\n * @param vector\n * vector\n */\n void writeVectorUInt(Vector<Long> vector);\n\n /**\n * Write a Vector<Number>.\n *\n * @param vector\n * vector\n */\n void writeVectorNumber(Vector<Double> vector);\n\n /**\n * Write a Vector<Object>.\n *\n * @param vector\n * vector\n */\n void writeVectorObject(Vector<Object> vector);\n\n /**\n * Write reference to complex data type\n *\n * @param obj\n * Referenced object\n */\n void writeReference(Object obj);\n\n /**\n * Whether object is custom\n *\n * @param custom\n * Object\n * @return true if object is of user type, false otherwise\n */\n boolean isCustom(Object custom);\n\n /**\n * Write custom (user) object\n *\n * @param custom\n * Custom data type object\n */\n void writeCustom(Object custom);\n\n /**\n * Clear references\n */\n void clearReferences();\n}",
"void writeCustom(Object custom);",
"@Override\n public void write(DataWriter out) throws IOException {\n if (versionInfo.getAssetVersion() >= 7) {\n out.writeStringNull(versionInfo.getUnityRevision().toString());\n out.writeInt(attributes);\n }\n \n if (versionInfo.getAssetVersion() >= 14) {\n // TODO\n throw new UnsupportedOperationException();\n } else {\n int numBaseClasses = classes.size();\n out.writeInt(numBaseClasses);\n\n for (TypeClass bc : classes) {\n int classID = bc.getClassID();\n out.writeInt(classID);\n\n TypeNode node = bc.getTypeTree();\n writeFieldTypeNodeOld(out, node);\n }\n\n // padding\n if (versionInfo.getAssetVersion() >= 7) {\n out.writeInt(0);\n }\n }\n }",
"@Override abstract public String type();",
"private void writeType( TypeItem t, XMLWriter out ) {\n\t\tType[] is = (Type[])t.interfaces.toArray(new Type[0]);\n\t\tfor( int i=0; i<is.length; i++ )\n\t\t\tout.element(\"implements\",\n\t\t\t\tnew String[]{\"name\",is[i].getTypeName()});\n\t\t\n\t\tString[] fnames = (String[])t.fields.keySet().toArray(new String[0]);\n\t\tfor( int i=0; i<fnames.length; i++ ) {\n\t\t\tfinal FieldUse fu = (FieldUse)t.fields.get(fnames[i]);\n\t\t\tout.start(\"field\",\n\t\t\t\tnew String[]{\n\t\t\t\t\t\"name\",fu.name,\n\t\t\t\t\t\"itemType\",fu.type.getTypeName(),\n\t\t\t\t\t\"minOccurs\",Integer.toString(fu.multiplicity.min),\n\t\t\t\t\t\"maxOccurs\",\n\t\t\t\t\t\t(fu.multiplicity.max==null)?\"unbounded\":fu.multiplicity.max.toString()} );\n\t\t\t\n\t\t\tIterator itr = fu.items.iterator();\n\t\t\twhile( itr.hasNext() ) {\n\t\t\t\tfinal FieldItem fi = (FieldItem)itr.next();\n\t\t\t\tout.element(\"symbol\",\n\t\t\t\t\tnew String[]{\"name\",symbolizer.getId(fi)});\n\t\t\t}\n\t\t\t\n\t\t\tout.end(\"field\");\n\t\t}\n\t}",
"void writeObject(OutputSerializer out) throws java.io.IOException;",
"void emit(DataOutputStream out, ConstantPool cp) throws IOException, ClassException {\n out.write(getType());\n // The rest is dependent on what type of constant this is.\n emit2(out, cp);\n }",
"public abstract void write(T dataElement);",
"@Override\n public String toString ()\n {\n return \"type = \" + type;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn type;\n\t}",
"private void _writeDatatypeAware(final DatatypeAware datatyped) throws IOException {\n final String datatype = datatyped.getDatatype().getReference();\n String value = XSD.ANY_URI.equals(datatype) ? datatyped.locatorValue().toExternalForm()\n : datatyped.getValue();\n _writeKeyValue(\"value\", value);\n if (!XSD.STRING.equals(datatype)) {\n _writeKeyValue(\"datatype\", datatyped.getDatatype().toExternalForm());\n }\n }",
"public abstract <T> SerializationStream writeObject(T t);",
"@Override\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn type;\n\t\t}",
"private void write( TypeItem type ) throws SAXException, IOException {\n\t\t\t\t\n\t\tDocumentHandler outHandler = new XMLSerializer(\n\t\t\tcontroller.getOutput(type),\n\t\t\tnew OutputFormat(\"xml\",null,true) );\n\t\tXMLWriter out = new XMLWriter(outHandler);\n\t\t\t\t\n\t\toutHandler.setDocumentLocator( new LocatorImpl() );\n\t\toutHandler.startDocument();\n\t\toutHandler.processingInstruction(\"xml-stylesheet\",\n\t\t\t\"type='text/xsl' href='classFileDebug.xsl'\");\n\t\twriteClass( type, out );\n\t\toutHandler.endDocument();\n\t}",
"public void writeValue(Object value) throws IOException\n {\n if (value == null) {\n writeNullValue();\n return;\n }\n _writeValue(value, _writerLocator.findSerializationType(value.getClass()));\n }",
"public abstract void write(O value) throws IOException;",
"void writeObj(MyAllTypesSecond aRecord, StrategyI xmlStrat);",
"@Override\n\tpublic JavaType getOutputType(TypeFactory typeFactory) {\n\t\treturn null;\n\t}",
"void writeObj(MyAllTypesFirst myFirst, StrategyI xmlStrat);",
"public void buildTypeParamInfo() {\n\t\twriter.writeTypeParamInfo();\n\t}",
"@Override\n @SuppressWarnings(\"unchecked\")\n public void serialize(OutputStream stream, BaseType o) throws IOException {\n Class c = o.getClass();\n val si = this.serializersByType.get(c);\n ensureCondition(si != null, \"No serializer found for %s.\", c.getName());\n si.serializer.beforeSerialization(o);\n\n // Encode the Serialization Format Version.\n stream.write(SERIALIZER_VERSION);\n\n // Encode the Object type; this will be used upon deserialization.\n stream.write(si.id);\n\n // Write contents.\n si.serializer.serializeContents(stream, o);\n }",
"@Override\n\tpublic void generate() {\n\t\tJavaObject object = new JavaObject(objectType);\n\n\t\t// Fields\n\t\taddFields(object);\n\n\t\t// Empty constructor\n\t\taddEmptyConstructor(object);\n\n\t\t// Types constructor\n\t\taddTypesConstructor(object);\n\n\t\t// Clone constructor\n\t\taddCloneConstructor(object);\n\n\t\t// Setters\n\t\taddSetters(object);\n\n\t\t// Build!\n\t\taddBuild(object);\n\n\t\t// Done!\n\t\twrite(object);\n\t}",
"private static void writeType(XMLStreamWriter w, RepositoryConnection con, IRI uri, IRI type) \n\t\tthrows XMLStreamException {\n\t\tif (con.hasStatement(uri, RDF.TYPE, type, true)) {\n\t\t\tw.writeEmptyElement(\"rdf:type\");\n\t\t\tw.writeAttribute(\"rdf:resource\", type.stringValue());\n\t\t}\n\t}",
"abstract public String getType();",
"public <T> void serialize(T obj, Class<T> type, OutputStream os) throws SerializationException;",
"public abstract void setType();",
"@Override\r\n\tpublic void write(CEntity entity) {\n\t\tentity.write(writer);\t\t\r\n\t}",
"private void emitType (Type t) {\r\n if (t == PrimitiveType.BYTE || t == PrimitiveType.CHAR ||\r\n\tt == PrimitiveType.SHORT || t == PrimitiveType.INT) \r\n Emitter.emit (\"Integer\");\r\n else if (t == PrimitiveType.LONG) \r\n Emitter.emit (\"Long\");\r\n else if (t == PrimitiveType.FLOAT) \r\n Emitter.emit (\"Float\");\r\n else if (t == PrimitiveType.DOUBLE) \r\n Emitter.emit (\"Double\");\r\n else if (t == PrimitiveType.BOOL) \r\n Emitter.emit (\"Boolean\");\r\n }",
"protected abstract String getType();",
"private static void writeGenericInfo(XMLStreamWriter w, RepositoryConnection con, IRI iri) throws XMLStreamException {\n\t\twriteReferences(w, con, iri, DCTERMS.TYPE, \"dct:type\");\n\t\twriteLiterals(w, con, iri, DCTERMS.TITLE, \"dct:title\");\n\t\twriteLiterals(w, con, iri, DCTERMS.DESCRIPTION, \"dct:description\");\n\t\twriteLiterals(w, con, iri, RDFS.LABEL, \"rdfs:label\");\n\t\twriteLiterals(w, con, iri, SKOS.NOTATION, \"skos:notation\");\n\t\twriteLiterals(w, con, iri, DCAT.BBOX, \"dcat:bbox\");\n\t}",
"private void writeClass( TypeItem type, XMLWriter out ) {\n\t\t\n\t\tout.start(\n\t\t\t(type instanceof ClassItem)?\"class\":\"interface\",\n\t\t\tnew String[]{\"name\",type.name});\n\t\t\n\t\tif( type.getSuperType()!=null )\n\t\t\tout.element(\"extends\",\n\t\t\t\tnew String[]{\"name\",type.getSuperType().getTypeName()});\n\t\t\n\t\twriteType( type, out );\n\n\t\t\n\t\t// output miscellaneous information which may be useful.\n\t\tout.start(\"info\");\n\t\tout.start(\"derivedTypes\");\n\t\twriteDerivedTypes(\"class\",type,grammar.iterateClasses(),out);\n\t\twriteDerivedTypes(\"interface\",type,grammar.iterateInterfaces(),out);\n\t\tout.end(\"derivedTypes\");\n\t\tout.end(\"info\");\n\t\t\n\t\t\n\t\tout.end(\"class\");\n\t}",
"@Override\r\n\tpublic String typeV() {\n\t\treturn hio.TyreType();\r\n\t}",
"Write createWrite();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract void write(Entity entity, Writer out) throws IOException;",
"public abstract void write(DataOutput out) throws IOException;",
"public String toString() {\n return type;\n }",
"@Override\n public String getType(){\n return Type;\n }",
"public void writeObject(Object obj) throws IOException\n\t{\n\t\tif (obj == null) {\n\t\t\twriteMark(Ion.NULL);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof IonBinary) {\n\t\t\tfinal IonBinary iObj = (IonBinary) obj;\n\t\t\t\n\t\t\twriteMark(Ion.getMark(obj));\n\t\t\tiObj.save(this);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof IonBundled) {\n\t\t\tfinal IonBundled iObj = (IonBundled) obj;\n\t\t\t\n\t\t\twriteMark(Ion.getMark(obj));\n\t\t\t\n\t\t\tfinal IonDataBundle bundle = new IonDataBundle();\n\t\t\tiObj.save(bundle);\n\t\t\twriteBundle(bundle);\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (Ion.isObjectIndirectBundled(obj)) {\n\t\t\tfinal IonizerBundled<?> ionizer = Ion.getIonizerBundledForClass(obj.getClass());\n\t\t\t\n\t\t\twriteMark(Ion.getMark(obj));\n\t\t\t\n\t\t\tfinal IonDataBundle bundle = new IonDataBundle();\n\t\t\tionizer._save(obj, bundle);\n\t\t\twriteBundle(bundle);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (Ion.isObjectIndirectBinary(obj)) {\n\t\t\tfinal IonizerBinary<?> ionizer = Ion.getIonizerBinaryForClass(obj.getClass());\n\t\t\t\n\t\t\twriteMark(Ion.getMark(obj));\n\t\t\t\n\t\t\tionizer._save(obj, this);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Map) {\n\t\t\twriteMark(Ion.MAP);\n\t\t\twriteMap((Map<?, ?>) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Collection) {\n\t\t\twriteMark(Ion.SEQUENCE);\n\t\t\twriteSequence((Collection<?>) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Boolean) {\n\t\t\twriteMark(Ion.BOOLEAN);\n\t\t\twriteBoolean((Boolean) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Byte) {\n\t\t\twriteMark(Ion.BYTE);\n\t\t\twriteByte((Byte) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Character) {\n\t\t\twriteMark(Ion.CHAR);\n\t\t\twriteChar((Character) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Short) {\n\t\t\twriteMark(Ion.SHORT);\n\t\t\twriteShort((Short) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Integer) {\n\t\t\twriteMark(Ion.INT);\n\t\t\twriteInt((Integer) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Long) {\n\t\t\twriteMark(Ion.LONG);\n\t\t\twriteLong((Long) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Float) {\n\t\t\twriteMark(Ion.FLOAT);\n\t\t\twriteFloat((Float) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Double) {\n\t\t\twriteMark(Ion.DOUBLE);\n\t\t\twriteDouble((Double) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof String) {\n\t\t\twriteMark(Ion.STRING);\n\t\t\twriteString((String) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof boolean[]) {\n\t\t\twriteMark(Ion.BOOLEAN_ARRAY);\n\t\t\twriteBooleans((boolean[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof byte[]) {\n\t\t\twriteMark(Ion.BYTE_ARRAY);\n\t\t\twriteBytes((byte[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof char[]) {\n\t\t\twriteMark(Ion.CHAR_ARRAY);\n\t\t\twriteChars((char[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof short[]) {\n\t\t\twriteMark(Ion.SHORT_ARRAY);\n\t\t\twriteShorts((short[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof int[]) {\n\t\t\twriteMark(Ion.INT_ARRAY);\n\t\t\twriteInts((int[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof long[]) {\n\t\t\twriteMark(Ion.LONG_ARRAY);\n\t\t\twriteLongs((long[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof float[]) {\n\t\t\twriteMark(Ion.FLOAT_ARRAY);\n\t\t\twriteFloats((float[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof double[]) {\n\t\t\twriteMark(Ion.DOUBLE_ARRAY);\n\t\t\twriteDoubles((double[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof String[]) {\n\t\t\twriteMark(Ion.STRING_ARRAY);\n\t\t\twriteStrings((String[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Object[]) {\n\t\t\twriteMark(Ion.OBJECT_ARRAY);\n\t\t\twriteObjects((Object[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tthrow new IOException(\"Object \" + obj + \" could not be be written to stream.\");\n\t}",
"@Override\n\tpublic void write() {\n\t\tSystem.out.println(\"使用xml方式存储\");\n\t}",
"protected static boolean writeCustomType(Output out, Object obj) {\n if (out.isCustom(obj)) {\n // Write custom data\n out.writeCustom(obj);\n return true;\n } else {\n return false;\n }\n }",
"public void writeObject( DataOutput out ) throws IOException {\n boolean sgIO = node instanceof eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO;\n out.writeBoolean( sgIO );\n out.writeInt( symbol.nodeID );\n\n\n int nodeClassID = control.getNodeClassID( node );\n\n out.writeShort( nodeClassID );\n\n if (nodeClassID==-1)\n out.writeUTF( nodeClassName );\n\n writeConstructorParams( out );\n\n if (sgIO) {\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n\t DataOutputStream tmpOut = new DataOutputStream( byteStream );\n ((eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO)node).writeSceneGraphObject( tmpOut );\n\t tmpOut.close();\n\t out.writeInt( byteStream.size() );\n\t out.write( byteStream.toByteArray() );\n }\n\n writeUserData( out );\n writeString(node.getName(), out);\n\n writeCapabilities( out );\n }",
"private void close() throws IOException {\n if (parentItemsArchetypeNodeId != null)\n writer.name(I_DvTypeAdapter.ARCHETYPE_NODE_ID).value(parentItemsArchetypeNodeId);\n if (parentItemsType != null)\n writer.name(I_DvTypeAdapter.AT_CLASS).value(parentItemsType);\n }",
"public String toString() {\n return type.toString();\n }",
"abstract public Type type();",
"private void _writeTypeInstance(final Topic type, final Topic instance) throws IOException {\n _out.startObject();\n _writeKeyValue(\"type\", _TMDM_TYPE_INSTANCE);\n _out.key(\"roles\");\n _out.startArray();\n _out.startObject();\n _writeKeyValue(\"type\", _TMDM_TYPE);\n _writeKeyValue(\"player\", _topicRef(type));\n _out.endObject();\n _out.startObject();\n _writeKeyValue(\"type\", _TMDM_INSTANCE);\n _writeKeyValue(\"player\", _topicRef(instance));\n _out.endObject();\n _out.endArray();\n _out.endObject();\n }",
"@Override\n public String toString() {\n return value + symbol(this.type);\n }",
"void write();",
"@Override\n public String toString() {\n return metaObject.getType().toString();\n }",
"@Override\n public void setOutputType(TypeInformation<T> outTypeInfo, ExecutionConfig executionConfig) {\n Preconditions.checkState(\n elements != null,\n \"The output type should've been specified before shipping the graph to the cluster\");\n checkIterable(elements, outTypeInfo.getTypeClass());\n TypeSerializer<T> newSerializer = outTypeInfo.createSerializer(executionConfig);\n if (Objects.equals(serializer, newSerializer)) {\n return;\n }\n serializer = newSerializer;\n try {\n serializeElements();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"@Override\n\tpublic String type() {\n\t\treturn type;\n\t}",
"public IOutputType createOutputType(IOutputType superClass, String Id, String name, boolean isExtensionElement);",
"public abstract void writeToFile( );",
"@Override\n\tpublic void type() {\n\t\t\n\t}",
"private void encodeTypeDef(Encoder encoder, TypeDef type, int size) throws IOException {\n\t\tDataType refType = type.getDataType();\n\t\tString format = null;\n\t\tint sz = refType.getLength();\n\t\tif (sz <= 0) {\n\t\t\tsz = size;\n\t\t}\n\t\tif (type.isPointer()) {\n\t\t\tif (hasUnsupportedTypedefSettings(type)) {\n\t\t\t\t// switch refType to undefined type if pointer-typedef settings are unsupported\n\t\t\t\trefType = Undefined.getUndefinedDataType(sz);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tAddressSpace space = PointerTypedefInspector.getPointerAddressSpace(type,\n\t\t\t\t\tprogram.getAddressFactory());\n\t\t\t\tlong offset = PointerTypedefInspector.getPointerComponentOffset(type);\n\t\t\t\tif (offset != 0) {\n\t\t\t\t\tencodePointerRelative(encoder, type, offset, space);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (space != null) {\n\t\t\t\t\t// Cannot use space, unless we are build an actual Pointer\n\t\t\t\t\t// Its possible that refType is still a TypeDef\n\t\t\t\t\trefType = type.getBaseDataType();\n\t\t\t\t\tencodePointer(encoder, (Pointer) refType, space, type, size);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (FormatSettingsDefinition.DEF.hasValue(type.getDefaultSettings())) {\n\t\t\t\tformat = FormatSettingsDefinition.DEF.getValueString(type.getDefaultSettings());\n\t\t\t\tif (format.length() > 4) {\n\t\t\t\t\tformat = format.substring(0, 3);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tencoder.openElement(ELEM_DEF);\n\t\tencodeNameIdAttributes(encoder, type);\n\t\tif (format != null) {\n\t\t\tencoder.writeString(ATTRIB_FORMAT, format);\n\t\t}\n\n\t\tencodeTypeRef(encoder, refType, sz);\n\t\tencoder.closeElement(ELEM_DEF);\n\t}",
"private void writeObject(\n \t\t ObjectOutputStream aOutputStream\n\t\t ) throws IOException {\n\t\t //perform the default serialization for all non-transient, non-static fields\n \t\t aOutputStream.defaultWriteObject();\n \t}",
"Coding getType();",
"@Override\n public final void writeTo(final Object object, final Class<?> type,\n final Type genericType, final Annotation[] annotations,\n final MediaType mediaType,\n final MultivaluedMap<String, Object> httpHeaders,\n final OutputStream entityStream) throws IOException {\n OutputStreamWriter writer = new OutputStreamWriter(entityStream,\n \"UTF-8\");\n try {\n Type jsonType;\n if (type.equals(genericType)) {\n jsonType = type;\n } else {\n jsonType = genericType;\n }\n getGson().toJson(object, jsonType, writer);\n } finally {\n try {\n if (writer != null) {\n writer.close();\n }\n } catch (IOException e) {\n // ignore, nothing to be done here anyway\n }\n }\n }",
"gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type addNewType();",
"@Override\n public void write() throws IOException\n {\n super.write();//Chamada para metodo da superclasse ajusta ponteiro para \n //gravacao sequencial apos posicao do ultimo registro\n //gravado\n writeString(id, TOPIC_ID_STRLENGTH);\n writeString(title, TITLE_STRLENGTH);\n writeShort(rank);\n }",
"public String type();",
"public interface JavaWriter \r\n{\r\n /**\r\n * Abstract method that takes a WSDLHolder\r\n * and returns back the Java representation.\r\n * The Java representation is returned as\r\n * a SerializedHolder array. Each element\r\n * of the array is a SerializedHolder that\r\n * contains the byte[] representing the Java\r\n * class and the name of the file in the file\r\n * system to write to.\r\n */\r\n public SerializedHolder[] toJava(WSDLHolder wsdl, Options options)\r\n throws JavaHolderException, IOException, WSDLException;\r\n \r\n}",
"private void _writeVariant(final Variant variant) throws IOException {\n _out.startObject();\n _writeReifier(variant);\n _writeItemIdentifiers(variant);\n _writeScope(variant);\n _writeDatatypeAware(variant);\n _out.endObject();\n }",
"public void writeObject( Container.ContainerOutputStream cos ) throws SerializationException;",
"@Override\n void onValueWrite(SerializerElem e, Object o) {\n\n }",
"public abstract String serialise();",
"protected abstract void _write(DataOutput output) throws IOException;",
"public void writeObject(Object obj) throws IOException;",
"public static void writeMessageType(OutputStream os, short type) throws IOException {\n os.write((byte)(type & 0xFF));\n os.write((byte)((type >> 8) & 0xFF));\n }",
"abstract public Type getType();",
"@Override\n\tpublic void write(OutStream outStream) {\n\t}",
"public void writeExternal( ObjectOutput out )\n throws IOException\n {\n if ( schemaName == null ) { out.writeUTF( unqualifiedName ); }\n else\n {\n //\n // Wrap the schema name in quotes. quotes are illegal characters in\n // basic SQL type names and in Java class names, so this will flag\n // readExternal() that this type has a 2-part name\n // (schemaName.unqualifiedName).\n //\n out.writeUTF( doubleQuote( schemaName ) );\n out.writeUTF( unqualifiedName );\n }\n }",
"@Override\n protected void writeFixed(Schema schema, Object datum, Encoder out)\n throws IOException {\n\n final byte[] bytes = ((GenericFixed) datum).bytes();\n GenericBinding.writeFixed(schema, bytes, out);\n }",
"private void _writeOccurrence(final Occurrence occ) throws IOException {\n _out.startObject();\n _writeReifier(occ);\n _writeItemIdentifiers(occ);\n _writeType(occ);\n _writeScope(occ);\n _writeDatatypeAware(occ);\n _out.endObject();\n }",
"public abstract byte getType();",
"@Override\n public String toPrintToFile() {\n return \"[T]\" + super.toString();\n }",
"@Override\r\n\t\t\tpublic void serializar() {\n\r\n\t\t\t}",
"public String type(){\n\t\treturn type;\n\t}",
"private String getType(){\r\n return type;\r\n }",
"public JavaType getType() { return _type; }",
"public String getType() {return type;}"
] |
[
"0.69594765",
"0.69513637",
"0.6591469",
"0.6521663",
"0.650258",
"0.6484984",
"0.6416852",
"0.6365537",
"0.6326693",
"0.6279402",
"0.62675476",
"0.6256194",
"0.6159055",
"0.61586833",
"0.61207557",
"0.60779047",
"0.60752404",
"0.60556513",
"0.6034798",
"0.60293615",
"0.60236526",
"0.6023172",
"0.60220206",
"0.59961563",
"0.5995754",
"0.59898293",
"0.5963287",
"0.5962862",
"0.5946715",
"0.59418935",
"0.59403634",
"0.5923877",
"0.59068",
"0.59041566",
"0.58936334",
"0.58784884",
"0.5875338",
"0.5865721",
"0.5844269",
"0.58397216",
"0.58389395",
"0.5825546",
"0.5820494",
"0.58161616",
"0.57883453",
"0.5777082",
"0.5777082",
"0.5777082",
"0.5777082",
"0.5777082",
"0.5777082",
"0.5777082",
"0.5777082",
"0.5763878",
"0.5753644",
"0.5743283",
"0.57407236",
"0.572802",
"0.57247436",
"0.5718379",
"0.5716022",
"0.5707082",
"0.5694419",
"0.5670538",
"0.5670354",
"0.56595856",
"0.56461495",
"0.56384414",
"0.5635875",
"0.56332195",
"0.562817",
"0.56182253",
"0.5611072",
"0.5608426",
"0.5595662",
"0.55893093",
"0.55729294",
"0.557238",
"0.55602974",
"0.5558764",
"0.5557435",
"0.5555619",
"0.5546624",
"0.5544918",
"0.5519395",
"0.5508074",
"0.55051064",
"0.5498028",
"0.5486689",
"0.5477934",
"0.54769987",
"0.5466569",
"0.54597056",
"0.5451382",
"0.5444272",
"0.54439056",
"0.5443072",
"0.5442129",
"0.5438654",
"0.5436135"
] |
0.7679308
|
0
|
Write the repetition count to the current column
|
void writeRepetitionCount(int count);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void drawCounter() {\n\t\tcounterColumn.clear();\n\t\tint currentRowCount = getCounter();\n\t\tfor (int i = 1; i <= currentRowCount; i++) {\n\t\t\tcounterColumn.appendText(String.valueOf(i) + \"\\n\");\n\t\t}\n\t}",
"public void addCount() {\n \t\tdupCount++;\n \t}",
"int readRepetitionCount();",
"public void outputByRows(String filename) throws IOException {\n BufferedWriter rowsWriter = new BufferedWriter(new FileWriter(new File(filename)));\n for (int i = 0; i < this.numRows; i++) {\n for (int j = 0; j < this.rows[i].length; j++) {\n if (j > 0) {\n rowsWriter.write(\" \");\n }\n // Add 1 to get back 1-indexing\n rowsWriter.write(Integer.toString(this.rows[i][j] + 1));\n }\n rowsWriter.newLine();\n }\n rowsWriter.close();\n }",
"public void count(String seq) {\n\n\t\tString sql = \"update tblNotice set viewcount = viewcount+1\" + \" where seqNotice =\" + seq;\n\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tps.executeUpdate();\n\t\t\tps.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"count : \" + e);\n\t\t}\n\t}",
"public void set_Mine_Count(int row,int col)\n{\n\tif(cell[row][col] != 9)\n\t{\n\t\tcell[row][col] += 1;\n\t}\n}",
"@Override\r\n\tpublic void updateNbCol() {\r\n\t\treturn;\r\n\t}",
"void incrementColumnIndex();",
"void incrementColumnIndex();",
"@Override\r\n\tpublic void increaseViewCnt(int no) {\n\t\tsqlSession.update(namespace + \".increaseViewCnt\", no);\r\n\t}",
"private void writeCounts(MatrixWithHeaders stats, BufferedWriter bw) throws IOException {\n\t\tfor(String columnName : stats.getColumnNames()) {\n\t\t\tbw.write(\"\\t\");\n\t\t\tbw.write(columnName);\n\t\t}\n\t\tbw.newLine();\n\t\tbw.flush();\n\t\tfor(String rowName : stats.getRowNames()) {\n\t\t\tbw.write(rowName);\n\t\t\tfor(String colName : stats.getColumnNames()) {\n\t\t\t\tbw.write(\"\\t\");\n\t\t\t\tbw.write(String.valueOf((int)stats.get(rowName, colName)));\n\t\t\t}\n\t\t\tbw.newLine();\n\t\t}\n\t}",
"public void incrementCount() {\n count++;\n }",
"public int toCount()\n {\n int count=jt.getRowCount();\n return count;\n }",
"public void printReplicateCounts(String outRoot){\n\t\ttry{\n\t\t\tString outName = outRoot+\".\"+name+\".repcounts\";\n\t\t\tFileWriter fw = new FileWriter(outName);\n\t\t\t\n\t\t\tfw.write(BindingEvent.repCountHeadString()+\"\\n\");\n\t\t\tfor(BindingEvent e : events){\n\t\t\t\tfw.write(e.getRepCountString()+\"\\n\");\n\t\t\t}\n\t\t\tfw.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void set_count(int c);",
"public void incrementCount() {\n\t\tcount++;\n\t}",
"void getCounter(){// wazifeye in mthod, shomaresh ast.\n selectedCellCounter=0;\n emptyCellCounter=0;\n charCounter=0;\n for(int i=0; i<30;i++)\n for(int j=0; j<26;j++){\n if(jtf[i][j].getText().length()==0)\n ++emptyCellCounter;\n else\n charCounter+=jtf[i][j].getText().length();\n if(jtf[i][j].getBackground()==Color.blue || jtf[i][j].getBackground()==Color.green)\n ++selectedCellCounter;\n }\n }",
"int colCount();",
"public int getRepeatCount()\n\t{\n\t\treturn repeatCnt;\n\t}",
"public int getCountCol() {\n\treturn countCol;\n}",
"public void incrementCount(){\n count+=1;\n }",
"public void addCount()\n {\n \tcount++;\n }",
"int getRepeatCount();",
"void incrementCount();",
"public void incremetColumn() {\n setRowAndColumn(row, column + 1);\n }",
"public static void incrDuplicates() { ++duplicates; }",
"@Override\r\n\tpublic void increaseReviewViewCnt(int no) {\n\t\tsqlSession.update(namespace + \".increaseReviewViewCnt\", no);\r\n\t}",
"void incrementColumnIndex(int size);",
"void incrementColumnIndex(int size);",
"public void changeCount(final int c) {\n\t\tcount += c;\n\t}",
"public String method_1457() {\r\n return String.format(\"count=%d\", new Object[]{Integer.valueOf(this.field_1677.size())});\r\n }",
"public void addOccurence() {\n\t\tcount = count + 1;\n\t}",
"public void increment() {\n\t\tsynchronized (this) {\n\t\t\tCounter.count++;\n\t\t\tSystem.out.print(Counter.count + \" \");\n\t\t}\n\t\n\t}",
"public void incCount() { }",
"@Override\npublic String toString() {\nreturn \"\" + counter;\n}",
"@java.lang.Override\n public int getRepeatCount() {\n return repeatCount_;\n }",
"@java.lang.Override\n public int getRepeatCount() {\n return repeatCount_;\n }",
"private String createNumberLine(){\n StringBuilder numberLine = new StringBuilder();\n for(int i = 0; i < this.columns; i++){\n numberLine.append(i + 1).append(\" \");\n }\n return numberLine.toString();\n }",
"public void incrementCount(View view) {\n\t\tcounterModel.incrementCounter();\n\t\tcurrentCountTextView.setText(Integer.toString(counterModel.getCount()));\n\t}",
"private void incrementCounter()\r\n\t{\r\n\t\tthis.counter++;\r\n\t}",
"private static void setCounter() {++counter;}",
"public int getCount(){\r\n return sequence.getValue();\r\n }",
"public void increasecounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, counter + 1).commit();\r\n\t}",
"public void increaseCount(View view) {\n count++;\n display(count);\n }",
"@Override\n\tpublic void addCol() {\n\t\tif(this.numRows == 0){\n\t\t\tthis.numRows++;\n\t\t}\n\t\tthis.numCols++;\n\t}",
"public void incrementa(View view) {\n TextView mensagem = findViewById(R.id.Mensagem);\n count++;\n\n Integer i = new Integer(count);\n mensagem.setText(i.toString());\n\n }",
"public void counterAddup(){\n\t\tfor (int i=0; i<window.size(); i++){\n\t\t\tif ( window.get(i).acked == false ){\n\t\t\t\twindow.get(i).counter = window.get(i).counter+1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn ;\n\t}",
"void updateFrequencyCount() {\n //Always increments by 1 so there is no need for a parameter to specify a number\n this.count++;\n }",
"@Override\n\tpublic String toString() {\n\t\tString countCell = \"\";\n\t\tfor ( int row = 0; row < gameGrid.length; row++){\n\t\t\tfor ( int column = 0; column < gameGrid[0].length; column++){\n\t\t\t\tif(gameGrid[row][column] == 1) //this represents a live cell or exist\n\t\t\t\t\tcountCell = countCell + \"0\"; \n\t\t\t\telse{\n\t\t\t\t\tcountCell = countCell + \".\";//this will create little dots if there is no live cell...\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tcountCell = countCell + \"\\n\"; //creates a new line and moves down in the array\n\t\t}\n\n\t\treturn countCell;\n\t}",
"private String getTextCount(int conut, String name) {\n for (int i = 0; i < conut; i++) {\r\n name = name + \" \";\r\n }\r\n return name;\r\n }",
"@Override\n\tpublic int withRepeatCount() {\n\t\treturn 0;\n\t}",
"private void counter(int[] a){\r\n\t\tboard[a[0]][a[1]] = 'O';\r\n\t\ta[0] = -1; \r\n\t\ta[1] = -1;\r\n\t}",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tint val = Integer.parseInt(jt.getText());\r\n\t\t\tval++;\r\n\t\t\tjt.setText(val+\"\");\r\n\t\t\t\r\n\t\t}",
"@Scheduled(cron = \"*/2 * * * * ?\")\n public void dataCount(){\n System.out.println(\"数据统计第 \" + count++ + \" 次\");\n }",
"public void printCountGrid() {\n\n System.out.println(\"AI count grid :\");\n for (int i = this.boardSize.x - 1; i >= 0; i--) {\n for (int j = 0; j < this.boardSize.y; j++) {\n System.out.print(this.countGrid[i][j] + \" \");\n }\n System.out.println(\"\");\n }\n }",
"@Override\n\tpublic void count() {\n\t\t\n\t}",
"public int getRepeat() {\n return repeat;\n }",
"public final String getCount() {\n return String.valueOf(count);\n }",
"public int counter (){\n return currentID;\n }",
"public void setCount(final int c) {\n\t\tcount = c;\n\t}",
"@Override\n public void onClick(View v) {\n count++;\n TextView countTV = activity.findViewById(R.id.countTV);\n countTV.setText(\"\"+count); // String.valueOf(count)\n }",
"int getColumnCount();",
"int getColumnCount();",
"public void updateReadCount(String num){\r\n\t\tString sql=\"update board_notice set readcount=readcount+1 where num=?\";\r\n\t\tConnection conn=null;\r\n\t\tPreparedStatement pstmt=null;\r\n\t\ttry{\r\n\t\t\tconn=DBManager.getConnection();\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, num);\r\n\t\t\tpstmt.executeUpdate();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tDBManager.close(conn,pstmt);\r\n\t\t}\r\n\t}",
"void recount();",
"public int getNcol(){\r\n \treturn this.ncol;\r\n \t}",
"public void incrementStatementCount() {\n this.statementCount++;\n }",
"private void displayCount() {\n\t\tlabel.setText(String.format(\"%2d\", game.getCount()));\n\t}",
"public void incrementCount () {\n count = count + 1; // == count++ == count += 1 \n if (count == modulus) {\n count = 0;\n }\n }",
"public void updateCounts() {\n\n Map<Feel, Integer> counts_of = new HashMap<>();\n\n for (Feel feeling : Feel.values()) {\n counts_of.put(feeling, 0);\n }\n\n for (FeelingRecord record : this.records) {\n counts_of.put(record.getFeeling(), counts_of.get(record.getFeeling()) + 1);\n }\n\n this.angry_count.setText(\"Anger: \" + counts_of.get(Feel.ANGER).toString());\n this.fear_count.setText(\"Fear: \" + counts_of.get(Feel.FEAR).toString());\n this.joyful_count.setText(\"Joy: \" + counts_of.get(Feel.JOY).toString());\n this.love_count.setText(\"Love: \" + counts_of.get(Feel.LOVE).toString());\n this.sad_count.setText(\"Sad:\" + counts_of.get(Feel.SADNESS).toString());\n this.suprise_count.setText(\"Suprise: \" + counts_of.get(Feel.SURPRISE).toString());\n }",
"public void increaseCount(){\n myCount++;\n }",
"public Flowable<Integer> counts() {\n return createFlowable(b.updateBuilder, db) //\n .flatMap(Tx.flattenToValuesOnly());\n }",
"public ScGridColumn<AcAirportProgressSummaryVo> newGiveItemCountColumn()\n {\n return newGiveItemCountColumn(\"Give Item Count\");\n }",
"public void incrementRow() {\n setRowAndColumn(row + 1, column);\n }",
"@Override\r\n\tpublic void increaseViewcnt(int r_idx) {\n\r\n\t}",
"public void outputByCols(String filename) throws IOException {\n BufferedWriter colsWriter = new BufferedWriter(new FileWriter(new File(filename)));\n for (int k = 0; k < this.numCols; k++) {\n int j = 0;\n for (int member : this.getColumn(k)) {\n if (j > 0) {\n colsWriter.write(\" \");\n }\n j++;\n colsWriter.write(Integer.toString(member + 1)); // Add 1 to get back 1-indexing\n }\n colsWriter.newLine();\n }\n colsWriter.close();\n }",
"public void incFileCount(){\n\t\tthis.num_files++;\n\t}",
"public ScGridColumn<AcAirportProgressSummaryVo> newTotalItemCountColumn()\n {\n return newTotalItemCountColumn(\"Total Item Count\");\n }",
"public String getCounter() {\n counter = Integer.valueOf(counterInt++).toString();\n return counter;\n }",
"private synchronized void updateLogCount() {\n this.logCount++;\n }",
"int fillCount();",
"public void setDataCount(TextView textView, int i) {\n textView.setText(Html.fromHtml(getContext().getString(R.string.activities_destination_record_count, new Object[]{Integer.valueOf(i)})));\n }",
"public ScGridColumn<AcAirportProgressSummaryVo> newTakeItemCountColumn()\n {\n return newTakeItemCountColumn(\"Take Item Count\");\n }",
"@Override\n public int makeIDNum() {\n int iDCount = 0;\n for (int i = 0; i < super.getTitle().length(); i++) {\n iDCount += i + (int) super.getTitle().charAt(i);\n }\n return iDCount;\n }",
"@Override\n\t\t\tpublic int getRow() {\n\t\t\t\treturn count;\n\t\t\t}",
"public void increaseTurnCount()\n\t{\n\t\tturnNumber++;\n\t\tthis.currentPlayerID++;\n\t\tthis.currentPlayerID = this.currentPlayerID % this.playerList.size();\n\t}",
"private void transformRows() {\n this.rowCounts = this.rowDeduplicator.values().toIntArray();\n }",
"public void writeNumber(int row, int column, int value){\n if(!checkInput(row, column, value)) return;\n\n //Tile must be instance of Guess\n if (gameField[row][column] instanceof Guess) {\n\n if (gameState == GameState.PAUSED) {\n if (row == usedRow && column == usedColumn) {\n\n ((Guess) gameField[row][column]).setValue(value);\n\n gameState = GameState.PLAYING;\n usedRow = -1;\n usedColumn = -1;\n } else {\n //if game is PAUSED and player tries to change different Tile\n return;\n }\n } else {\n gameField[row][column].setTileState(TileState.GUESSING);\n ((Guess) gameField[row][column]).setValue(value);\n }\n\n //add record\n recordsList.add(new Record(row, column, value, gameField));\n\n //check for if is number already used\n if(isNumberUsed(row, column, value)){\n this.gameState = GameState.PAUSED;\n return;\n }\n\n if(isSolved()) this.gameState = GameState.SOLVED;\n }\n }",
"public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}",
"@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}",
"public int getColumnCount() {\r\n return NUM_COL + 1;\r\n }",
"public void increment() {\n mNewNotificationCount.setValue(mNewNotificationCount.getValue() + 1);\n }",
"public void increase()\n {\n setCount(getCount() + 1);\n }",
"protected void setCellCount(int count) {\n this.cellCountStack.addLast(count);\n }",
"Builder addCommentCount(Integer value);",
"public void numberChapters(){\n\t\tfor(int i = 0; i< chapters.size(); i++)\n\t\t\tchapters.get(i).setNumber(i+1);\n\t}",
"public void incCounter()\n {\n counter++;\n }",
"public static void countRowCol(){\n\t String line=\"\";\n\t row=0;\n\t col=0;\n try{\n Scanner reader = new Scanner(file);\n while(reader.hasNextLine()){\n row++;\n line=reader.nextLine();\n }\n reader.close();\n }catch (FileNotFoundException e) {\n \t e.printStackTrace();\n }\n String[] seperatedRow = line.split(\"\\t\");\n col=seperatedRow.length;\n\t}",
"public void renumberCells() {\r\n int num = 1;\r\n for (Cell cell : cells) {\r\n cell.updateCellNum(num);\r\n num++;\r\n }\r\n }",
"@Override\n protected int getNumRepetitions() {\n return 1;\n }"
] |
[
"0.6367155",
"0.57733035",
"0.5706504",
"0.5553729",
"0.55477095",
"0.5538126",
"0.5505013",
"0.5503697",
"0.5503697",
"0.54713696",
"0.54643196",
"0.54582274",
"0.5429775",
"0.5414472",
"0.5414122",
"0.5403432",
"0.5400226",
"0.5391562",
"0.53637713",
"0.534407",
"0.53211516",
"0.5298519",
"0.5296991",
"0.52887565",
"0.526861",
"0.52528846",
"0.52448624",
"0.52322215",
"0.52322215",
"0.5214868",
"0.5212108",
"0.51956654",
"0.5192073",
"0.5182879",
"0.5169644",
"0.51652735",
"0.51625067",
"0.51566666",
"0.51123726",
"0.51106",
"0.5109295",
"0.5093374",
"0.50855565",
"0.506995",
"0.5063834",
"0.5054935",
"0.50519586",
"0.50471115",
"0.5033587",
"0.5028468",
"0.500524",
"0.5001037",
"0.4995479",
"0.4989879",
"0.49841624",
"0.49820954",
"0.49687225",
"0.49653637",
"0.4961566",
"0.49343476",
"0.49290198",
"0.4924247",
"0.4924247",
"0.4912099",
"0.49085698",
"0.49037972",
"0.49037156",
"0.48979154",
"0.48907676",
"0.48879138",
"0.48852244",
"0.48851934",
"0.4884853",
"0.48676926",
"0.48671892",
"0.48576307",
"0.48545635",
"0.48458442",
"0.48430473",
"0.48424107",
"0.4813237",
"0.4808879",
"0.48016134",
"0.47896317",
"0.47856668",
"0.47844133",
"0.4779391",
"0.4776361",
"0.4775533",
"0.4774332",
"0.47737557",
"0.4771032",
"0.47646463",
"0.47631544",
"0.47627518",
"0.47608685",
"0.47540402",
"0.47536147",
"0.47507447",
"0.47475547"
] |
0.7587222
|
0
|
/ Write in output file.
|
public void FPsOverlapSeperateSections(CollectionReader reader) throws IOException {
String outputfile = "./output/TermOverlap/termoverlp-FPs-config(2):seperatesections.txt";
FileOutputStream out = new FileOutputStream(outputfile);
PrintStream ps = new PrintStream(out);
/*-------------------------------------------------------------------------------*/
EvaluateResults er = new EvaluateResults();
// AnalyseFNs afn = new AnalyseFNs();
TopicsInMemory topics = new TopicsInMemory("data/CLEF-IP-2010/PAC_test/topics/PAC_topics.xml");
for(Map.Entry<String, PatentDocument> topic : topics.getTopics().entrySet()){
String queryid = topic.getKey();
String queryfile = topic.getKey() + "_" + topic.getValue().getUcid() + ".xml";
ArrayList<String> fps = er.evaluatePatents(queryid, "FP");
// ArrayList<String> enfns = afn.getEnglishFNs(queryid);
if(fps != null){
int n_fps = fps.size();
QueryGneration query = new QueryGneration(querypath + queryfile, 0, 1, 0, 0, 0, 0, true, true);
Map<String, Integer> qterms = query.getSectionTerms(queryfield);
int querysize = qterms.size();
float sum =0;
float usum =0;
float avg = 0;
float uavg = 0;
float overlapratio = 0;
float uoverlapratio = 0;
// int querydocintersection;
int querytitleoverlap;
int queryabsoverlap;
int querydescoverlap;
int queryclaimsoverlap;
int SectionsSumOverlap;
// int union;
int titleunion;
int absunion;
int descunion;
int claimsunion;
// int dminusoverlap = 0;
int titleminusoverlap;
int absminusoverlap;
int descminusoverlap;
int claimsminusoverlap;
int titlesize;
int abssize;
int descsize;
int claimssize;
if(n_fps != 0){
System.out.println(queryid);
System.out.println("---------------------------------------------------------------------------------------------------------");
// System.out.println("FN patent ID" + "\t" + "overlap" + "\t" + "|Q|" + "\t" + "|D|" + "\t" + "D-olap" + "\t" + "|Q U D|" + "\t" + "olap/|Q|" + "\t" + "olap/|Q U D|");
System.out.println("TP patent ID" + "\t" + "(qD,dT)" + "\t" + "(qD,dA)" + "\t" + "(qD,dD)" + "\t" + "(qD,dC)" + "\t" + "|Q|" + "\t" + "|D U T|" + "\t" + "|D U A|" + "\t" + "|D U D|" + "\t" + "|D U C|"+ "\t" + "|sum/Q|" + " \t" + "sum|O(docSecs)|");
System.out.println("---------------------------------------------------------------------------------------------------------");
for (String doc : fps) {
// querydocintersection = 0;
querytitleoverlap = 0;
queryabsoverlap = 0;
querydescoverlap = 0;
queryclaimsoverlap = 0;
SectionsSumOverlap = 0;
HashSet<String> titleterms = reader.getDocTerms("UN-"+doc, titlefield);
HashSet<String> absterms = reader.getDocTerms("UN-"+doc, absfield);
HashSet<String> descterms = reader.getDocTerms("UN-"+doc, descfield);
HashSet<String> claimsterms = reader.getDocTerms("UN-"+doc, claimsfield);
if(titleterms!=null){titlesize = titleterms.size();}else{titlesize=0;}
if(absterms!=null){abssize = absterms.size();}else{abssize = 0;}
if(descterms!=null){descsize = descterms.size();}else{descsize = 0;}
if(claimsterms!=null){claimssize = claimsterms.size();}else{claimssize = 0;}
for(Entry<String, Integer> t : qterms.entrySet()){
if(titleterms!=null){boolean titleexists = titleterms.contains(t.getKey());
if(titleexists){
querytitleoverlap++;}}
if(absterms!=null){boolean absexists = absterms.contains(t.getKey());
if(absexists){
queryabsoverlap++; }}
if(descterms!=null){boolean descexists = descterms.contains(t.getKey());
if(descexists){
querydescoverlap++; }}
if(claimsterms!=null){boolean claimsexists = claimsterms.contains(t.getKey());
if(claimsexists){
queryclaimsoverlap++; }}
}
SectionsSumOverlap = querytitleoverlap + queryabsoverlap
+ querydescoverlap + queryclaimsoverlap;
titleminusoverlap = titlesize - querytitleoverlap;
absminusoverlap = abssize - queryabsoverlap;
descminusoverlap = descsize - querydescoverlap;
claimsminusoverlap = claimssize - queryclaimsoverlap;
titleunion = querysize + titleminusoverlap;
absunion = querysize + absminusoverlap;
descunion = querysize + descminusoverlap;
claimsunion = querysize + claimsminusoverlap;
overlapratio = (float)SectionsSumOverlap/querysize;
/*System.out.println(querytitleoverlap + "\t"+ titleunion + "\t"+ (float)querytitleoverlap/titleunion);
System.out.println(queryabsoverlap + "\t"+ absunion+ "\t"+ (float)queryabsoverlap/absunion);
System.out.println(querydescoverlap + "\t"+ descunion+ "\t"+ (float)querydescoverlap/descunion);
System.out.println(queryclaimsoverlap + "\t"+ claimsunion+ "\t"+(float)queryclaimsoverlap/claimsunion); */
uoverlapratio = ((float)querytitleoverlap/titleunion
+(float)queryabsoverlap/absunion+(float)querydescoverlap/descunion
+(float)queryclaimsoverlap/claimsunion);
sum = sum + overlapratio;
usum = usum + uoverlapratio;
System.out.println(doc + "\t" + querytitleoverlap + "\t" + queryabsoverlap + "\t" + querydescoverlap + "\t" + queryclaimsoverlap + "\t" + querysize + "\t" +titleunion + "\t" +absunion + "\t" +descunion + "\t" + claimsunion + "\t" + overlapratio + "\t" + uoverlapratio);
}
avg = (float)sum/n_fps;
uavg = (float)usum/n_fps;
System.out.println("-----------------------------------------------------------------------------------------");
System.out.println("Average Term Overlap: " + avg);
System.out.println("Union Average Term Overlap: " + uavg);
System.out.println();
ps.println(queryid + "\t" + avg + "\t" + uavg);
}else{
System.out.println(queryid+"\t" + "No FP for this query");
ps.println(queryid+"\t"+ "No FP for this query");
}
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void write(File output) throws IOException {\n }",
"public void write(final File out) throws IOException;",
"protected abstract void writeFile();",
"private static void writeToOutput() {\r\n FileWriter salida = null;\r\n String archivo;\r\n JFileChooser jFC = new JFileChooser();\r\n jFC.setDialogTitle(\"KWIC - Seleccione el archivo de salida\");\r\n jFC.setCurrentDirectory(new File(\"src\"));\r\n int res = jFC.showSaveDialog(null);\r\n if (res == JFileChooser.APPROVE_OPTION) {\r\n archivo = jFC.getSelectedFile().getPath();\r\n } else {\r\n archivo = \"src/output.txt\";\r\n }\r\n try {\r\n salida = new FileWriter(archivo);\r\n PrintWriter bfw = new PrintWriter(salida);\r\n System.out.println(\"Índice-KWIC:\");\r\n for (String sentence : kwicIndex) {\r\n bfw.println(sentence);\r\n System.out.println(sentence);\r\n }\r\n bfw.close();\r\n System.out.println(\"Se ha creado satisfactoriamente el archivo de texto\");\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void outputToFile(String filemame)\n {\n }",
"private void outputToFile() {\n\t\tPath filePath = Paths.get(outputFile);\n\n\t\ttry (BufferedWriter writer = Files.newBufferedWriter(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tRowIterator iterator = currentGen.iterateRows();\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tElemIterator elem = iterator.next();\n\t\t\t\twhile (elem.hasNext()) {\n\t\t\t\t\tMatrixElem mElem = elem.next();\n\t\t\t\t\twriter.write(mElem.rowIndex() + \",\" + mElem.columnIndex());\n\t\t\t\t\twriter.newLine();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Unable to write to the provided file\");\n\t\t}\n\n\t}",
"public void writeToFile(byte[] output) {\r\n try {\r\n file.seek(currOffset);\r\n file.write(output);\r\n currOffset += output.length;\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public abstract void writeToFile( );",
"public void writeOutput() {\n\t\tint lineNumber = 0;\n\t\ttry {\n\t\t\tfor (; lineNumber < outputFileCont.size(); lineNumber++) {\n\t\t\t\t// pobranie i zapisanie kolejnego zapamiêtanego wiersza\n\t\t\t\tString line = (String) outputFileCont.get(lineNumber);\n\t\t\t\toutputBuffer.write(line);\n\t\t\t\t// zapisanie znaku nowego wiersza\n\t\t\t\toutputBuffer.newLine();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"B³¹d zapisu do pliku: \" + outputFileName + \" \"\n\t\t\t\t\t+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\t// niezbêdne\n\t\t\toutputBuffer.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"B³¹d zamkniêcia pliku: \" + outputFileName\n\t\t\t\t\t+ \" \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Zapisano \"\n\t\t\t\t+ lineNumber\n\t\t\t\t+ \" wiersz\"\n\t\t\t\t+ (lineNumber == 1 ? \"\"\n\t\t\t\t\t\t: (lineNumber > 1 && lineNumber < 5 ? \"e\" : \"y\"))\n\t\t\t\t+ \" do pliku \" + outputFileName);\n\t}",
"public abstract void saveToFile(PrintWriter out);",
"private void writeOutput() {\n\n textMergeScript.setCurrentDirectoryFromFile (chosenOutputFile);\n tabFileOutput = new TabDelimFile (chosenOutputFile);\n tabFileOutput.setLog (log);\n tabFileOutput.setDataLogging (false);\n boolean outputOK = true;\n try {\n tabFileOutput.openForOutput (list.getRecDef());\n } catch (IOException e) {\n outputOK = false;\n log.recordEvent (LogEvent.MEDIUM,\n \"Problem opening Output File\",\n false);\n }\n if (outputOK) {\n list.openForInput();\n DataRecord inRec;\n int count = 0;\n do {\n inRec = list.nextRecordIn ();\n if (inRec != null) {\n try {\n tabFileOutput.nextRecordOut (inRec);\n count++;\n } catch (IOException e) {\n log.recordEvent (LogEvent.MEDIUM,\n \"Problem writing to Output File\",\n true);\n }\n } // end if in rec not null\n } while (list.hasMoreRecords());\n\n list.close();\n\n try {\n tabFileOutput.close();\n } catch (IOException e) {\n }\n\n log.recordEvent(LogEvent.NORMAL,\n String.valueOf(count) + \" records output\",\n false);\n\n tabNameOutput = chosenOutputFile.getName();\n openOutputDataName.setText (tabNameOutput);\n if (usingDictionary) {\n tabFileName =\n new FileName (chosenOutputFile.getAbsolutePath());\n dictFile =\n new TabDelimFile (textMergeScript.getCurrentDirectory(),\n tabFileName.replaceExt(DICTIONARY_EXT));\n dictFile.setLog (log);\n try {\n dataDict.store (dictFile);\n } catch (IOException e) {\n log.recordEvent (LogEvent.MEDIUM,\n \"Problem writing Output Dictionary\",\n true);\n }\n } // end if using dictionary\n\n textMergeScript.recordScriptAction (\n ScriptConstants.OUTPUT_MODULE,\n ScriptConstants.OPEN_ACTION,\n ScriptConstants.NO_MODIFIER,\n ScriptConstants.NO_OBJECT,\n chosenOutputFile.getAbsolutePath());\n\n } // end if output ok\n\n }",
"public void writeFile(String filename, ArrayList<String> output)\n {\n try\n {\n PrintWriter write = new PrintWriter(filename);\n for(String out : output)\n {\n write.println(out);\n }\n write.close();\n }\n catch(FileNotFoundException exception) \n {\n String error = filename + \" not found\";\n System.out.println(error);\n }\n \n catch(IOException exception) \n {\n String error = \"Unexpected I/O error occured\";\n System.out.println(error); \n } \n }",
"public void writeToFile(File file) {\n\n\t}",
"private static void writeOutput(String text) {\n try {\n FileWriter outputWriter = new FileWriter(\"output.txt\", true);\n outputWriter.write(text);\n outputWriter.close();\n } catch (Exception e) {\n System.out.println(\"Could not write to file output.txt\");\n }\n }",
"@Override\n\tpublic void writeFile(String file_out) {\n\t\tthis.writeFile(Mode.POINT_ONLY, 0, DEFAULT_AND_LOAD_FACTOR, file_out);\n\t}",
"public void writeFile()\n\t{\n\t\t//Printwriter object\n\t\tPrintWriter writer = FileUtils.openToWrite(\"TobaccoUse.txt\");\n\t\twriter.print(\"Year, State, Abbreviation, Percentage of Tobacco Use\\n\");\n\t\tfor(int i = 0; i < tobacco.size(); i++)\n\t\t{\n\t\t\tStateTobacco state = tobacco.get(i);\n\t\t\tString name = state.getState();\n\t\t\tString abbr = state.getAbbreviation();\n\t\t\tdouble percent = state.getPercentUse();\n\t\t\tint year = state.getYear();\n\t\t\twriter.print(\"\"+ year + \", \" + name + \", \" + abbr + \", \" + percent + \"\\n\");\n\t\t} \n\t\twriter.close(); //closes printwriter object\n\t}",
"protected void writeCompareOutputFile(String outputText) {\n try {\n BufferedWriter writer = new BufferedWriter(new FileWriter(getFile(), true));\n String lineSeparator = System.getProperty(\"line.separator\");\n writer.write(outputText + lineSeparator);\n writer.flush();\n writer.close();\n } catch (IOException e) {\n System.out.println(e.toString());\n }\n }",
"private void outputFile() {\n // Define output file name\n Scanner sc = new Scanner(System.in);\n System.out.println(\"What do you want to call this file?\");\n String name = sc.nextLine();\n\n // Output to file\n Path outputFile = Paths.get(\"submissions/\" + name + \".java\");\n try {\n Files.write(outputFile, imports);\n if (imports.size() > 0)\n Files.write(outputFile, Collections.singletonList(\"\"), StandardOpenOption.APPEND);\n Files.write(outputFile, lines, StandardOpenOption.APPEND);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public static void main(String[] args) throws IOException {\n PrintWriter outputFile = new PrintWriter(\"ResultFile.txt\");\n\n outputFile.println(\"Line 1\");\n outputFile.println(\"Line 2\");\n outputFile.println(\"Line 3\");\n outputFile.println(\"Line 4\");\n\n\n outputFile.close();\n\n }",
"void write(Writer out) throws IOException;",
"public static void WriteToFile(){\r\n try {\r\n File file = new File(\"output.txt\");\r\n file.createNewFile();\r\n \r\n FileWriter fw = new FileWriter(file.getAbsoluteFile());\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n String[] FinalBoard = new String[Board.ReportBoardValues().length];\r\n FinalBoard = Board.ReportBoardValues();\r\n for(int i = 0; i < Board.ReportBoardValues().length; i++){\r\n bw.write(FinalBoard[i]);\r\n bw.newLine();\r\n }\r\n bw.close();\r\n fw.close();\r\n \r\n }\r\n catch (IOException e) {\r\n System.out.println (\"Output error\");\r\n }\r\n }",
"private void writeFile(String line, BufferedWriter theOutFile) throws Exception {\n\t\ttheOutFile.append(line);\t\t\t// write the line out\n\t\ttheOutFile.newLine();\t\t\t\t// skip to the next line\t\t\n\t}",
"static void writeToFiles() throws IOException {\n\n writeToFilePriceHistory();\n writeToFileEmployees();\n writeToFileInventory();\n writeToSaleItems();\n writeToOrder();\n writeToFileInventory();\n writeToRevenueLog();\n }",
"private void createFile(String outputData, File file) {\n try {\n FileWriter writer = new FileWriter(file);\n writer.write(outputData);\n writer.close();\n } catch (IOException e) {\n e.getSuppressed();\n }\n }",
"public void writeToFile(String s,String outFile) \n\t{\n\t\ttry \n\t\t{\n\t\t\tbw = new BufferedWriter(new FileWriter(outFile));\n\t\t\tbw.write(s);\n\t\t\tMyLogger.writeMessage(\"Results written to file\", MyLogger.DebugLevel.RESULTS);\n\t\t\tbw.close();\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.err.println(\"Exception: writing to output.txt\");\n\t\t\tSystem.err.println(\"Exiting\");\n\t\t\tSystem.err.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t}",
"protected abstract void _write(DataOutput output) throws IOException;",
"private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }",
"private static void writeToOutput(String path, Apriori apriori){\n try{\n BufferedWriter output = new BufferedWriter(new FileWriter(path, false));\n for (String s : apriori.mItemSet){\n output.write(s);\n }\n output.close();\n } catch (IOException e){\n e.printStackTrace();\n }\n }",
"private void outputToFile(String filename) throws FileNotFoundException, IOException {\n\t\tBufferedWriter writer = new BufferedWriter(\n\t\t\t\tnew FileWriter(filename+\".tmp\"));\n\t\twriter.write(VERIFY_STRING + \"\\n\");\n\n\t\t// output automata info\n\t\twriter.write(machine.getName() + \"\\n\");\n\t\twriter.write(machine.getType() + \"\\n\");\n\n\t\t// output state info\n\t\tfor (State state : machine.getStates()) {\n\t\t\twriter.write(\"STATE\\n\");\n\t\t\twriter.write(state.getName() + \"\\n\");\n\t\t\twriter.write(state.isAccept() + \" \" + state.isStart() + \" \" + \n\t\t\t\t\tstate.getID() + \" \" + state.getGraphic().getX() + \" \" + \n\t\t\t\t\tstate.getGraphic().getY() + \"\\n\");\n\n\t\t\t// output transitions\n\t\t\tfor (Transition t : state.getTransitions())\n\t\t\t\twriter.write(t.getID() + \" \" + t.getInput() + \" \" + \n\t\t\t\t\t\tt.getNext().getID() + \"\\n\");\n\t\t}\n\t\twriter.close();\n\t}",
"public void write() {\n\t\tint xDist, yDist;\r\n\t\ttry {\r\n\t\t\tif (Pipes.getPipes().get(0).getX() - b.getX() < 0) { // check if pipes are behind bird\r\n\t\t\t\txDist = Pipes.getPipes().get(1).getX() - b.getX();\r\n\t\t\t\tyDist = Pipes.getPipes().get(1).getY() - b.getY() + Pipes.height;\r\n\t\t\t} else {\r\n\t\t\t\txDist = Pipes.getPipes().get(0).getX() - b.getX();\r\n\t\t\t\tyDist = Pipes.getPipes().get(0).getY() - b.getY() + Pipes.height;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\txDist = -6969;\r\n\t\t\tyDist = -6969;\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"Pipe out of bounds\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFile file = new File(\"DATA.txt\");\r\n\t\t\tFileWriter fr = new FileWriter(file, true);\r\n\t\t\tfr.write(xDist + \",\" + yDist + \",\" + b.getYVel() + \",\" + didJump);\r\n\t\t\tfr.write(System.getProperty(\"line.separator\")); // makes a new line\r\n\t\t\tfr.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Wtrie file error\");\r\n\t\t}\r\n\t}",
"public void generateOutputFile(String inputFile) {\n\n String outputFile = properties.getProperty(\"output.directory\")\n + properties.getProperty(\"output.file.distinct\");\n\n\n try (PrintWriter out = new PrintWriter(new BufferedWriter(\n new FileWriter(outputFile)))){\n\n loopThroughTokens(out);\n\n\n } catch (FileNotFoundException fileNotFound) {\n fileNotFound.printStackTrace();\n } catch (IOException inputOutputException) {\n inputOutputException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }",
"public static void writeFile(String outFile, String text) {\n try{\n FileWriter fileWriter = new FileWriter(outFile,false);\n PrintWriter pw = new PrintWriter(fileWriter,true);\n \n if (text==null) {\n pw.println();\n }\n else\n {\n pw.println(text);\n }\n \n pw.close();\n fileWriter.close();\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n }",
"public void writeOut(PrintWriter pw){}",
"public OutputStream writeFile( String filename, FileType type );",
"private void outputfile() {\n\n ConnectDB dbconnect = new ConnectDB();\n\n try {\n PrintWriter writer = new PrintWriter(\"memberoutput.txt\");\n\n try {\n dbconnect.pst = dbconnect.con.prepareStatement(\"select * from members\");\n dbconnect.rs = dbconnect.pst.executeQuery();\n\n while (dbconnect.rs.next()) {\n writer.println(dbconnect.rs.getString(1) + \",\"\n + dbconnect.rs.getString(2) + \",\"\n + dbconnect.rs.getString(3) + \",\"\n + dbconnect.rs.getString(4) + \",\"\n + dbconnect.rs.getString(5) + \",\"\n + dbconnect.rs.getString(6) + \",\"\n + dbconnect.rs.getString(7) + \",\"\n + dbconnect.rs.getString(8) + \",\"\n + dbconnect.rs.getString(9));\n }\n\n writer.flush();\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n }\n writer.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n JOptionPane.showMessageDialog(null, \"File exported\");\n }",
"void write();",
"public abstract void writeToStream(java.io.DataOutputStream output) throws java.io.IOException;",
"public void writeOutput() {\n // Create json object to be written\n Map<String, Object> jsonOutput = new LinkedHashMap<>();\n // Get array of json output objects for consumers\n List<Map<String, Object>> jsonConsumers = writeConsumers();\n // Add array for consumers to output object\n jsonOutput.put(Constants.CONSUMERS, jsonConsumers);\n // Get array of json output objects for distributors\n List<Map<String, Object>> jsonDistributors = writeDistributors();\n // Add array for distributors to output objects\n jsonOutput.put(Constants.DISTRIBUTORS, jsonDistributors);\n // Get array of json output objects for producers\n List<Map<String, Object>> jsonProducers = writeProducers();\n // Add array for producers to output objects\n jsonOutput.put(Constants.ENERGYPRODUCERS, jsonProducers);\n // Write to output file and close\n try {\n ObjectMapper mapper = new ObjectMapper();\n ObjectWriter writer = mapper.writer(new DefaultPrettyPrinter());\n writer.writeValue(Paths.get(outFile).toFile(), jsonOutput);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void output(File outputFile){\n try {\n BufferedWriter file = new BufferedWriter(new FileWriter(outputFile));\n file.write(hashTable.length + \"\\n\");\n file.write(space() + \"\\n\");\n file.write(loadFactor + \"\\n\");\n file.write(collisionLength() + \"\\n\");\n for (int i = 0; i < hashTable.length; i++){\n if (hashTable[i] != null){\n LLNodeHash ptr = hashTable[i];\n while (ptr.getNext() != null){\n file.write(\"(\" + ptr.getKey() + \",\" + ptr.getFreq() + \") \");\n ptr = ptr.getNext();\n }\n file.write(\"(\" + ptr.getKey() + \",\" + ptr.getFreq() + \") \");\n }\n }\n file.close();\n }\n catch (IOException e){\n System.out.println(\"Cannot create new file\");\n e.printStackTrace();\n }\n }",
"public void writeOutputFile(String inputFilePath) {\n\n String outputFile = properties.getProperty(\"output.dir\") +\n properties.getProperty(\"output.file.token.size\");\n\n PrintWriter writer = null;\n try {\n writer = createOutputFile(outputFile);\n writeTotalsToFile(writer);\n writer.println();\n writer.println();\n writeHistograms(writer);\n } catch (IOException iOE) {\n System.out.println(\"Error Writing to \" + outputFile);\n iOE.printStackTrace();\n } catch (Exception exception) {\n System.out.println(\"General Error\");\n exception.printStackTrace();\n } finally {\n try {\n if (writer != null) {\n writer.close();\n }\n } catch (Exception exception) {\n\n exception.printStackTrace();\n }\n }\n }",
"protected void fileSet() throws IOException {\n//\t\tfos = new FileOutputStream(outFile, false);\n//\t\tdos = new DataOutputStream(fos);\n\t\trealWriter = new BufferedWriter(new FileWriter(outFile.getAbsolutePath()));\n\t}",
"static void Output(String filename, String message){\n FileOutputStream out;\n DataOutputStream data;\n try {\n out = new FileOutputStream(filename);\n data = new DataOutputStream(out);\n data.writeBytes(message);\n data.close();\n }\n catch (FileNotFoundException ex){\n System.out.println(\"File to open file for writing\");\n }\n catch (IOException ex) {\n System.out.println(\"RuntimeException on writing/closing file\");\n }\n }",
"public void writeFile(String data){\n\t\t\n\t\tcurrentLine = data;\n\t\t\n\t\t\ttry{ \n\t\t\t\tFile file = new File(\"/Users/bpfruin/Documents/CSPP51036/hw3-bpfruin/src/phfmm/output.txt\");\n \n\t\t\t\t//if file doesnt exists, then create it\n\t\t\t\tif(!file.exists()){\n\t\t\t\t\tfile.createNewFile();\n\t\t\t\t}\n \n\t\t\t\t//true = append file\n\t\t\t\tFileWriter fileWriter = new FileWriter(file,true);\n \t \tBufferedWriter bufferWriter = new BufferedWriter(fileWriter);\n \t \tbufferWriter.write(data);\n \t \tbufferWriter.close();\n \n \n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t\n\t}",
"private static void writeOutputFile(BufferedWriter brWr, OutputBean outBean) throws IOException, Exception {\n\t\tif(outBean != null) {\n\t\t\tif(outBean.isNoPathAvailable()) {\n\t\t\t\tbrWr.write(outBean.getExpansion());\n\t\t\t\tbrWr.newLine();\n\t\t\t\tbrWr.write(\"NoPathAvailable\");\n\t\t\t\t//System.out.println(\"NoPathAvailable\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbrWr.write(outBean.getExpansion());\n\t\t\t\tbrWr.newLine();\n\t\t\t\tbrWr.write(outBean.getOutput());\n\t\t\t\tbrWr.newLine();\n\t\t\t\tbrWr.write(String.valueOf(outBean.getPathCost()));\n\t\t\t\t//System.out.println(outBean.getExpansion());\n\t\t\t\t//System.out.println(outBean.getOutput());\n\t\t\t\t//System.out.println(outBean.getPathCost());\n\t\t\t\t}\n\t\t\t}\n\t\telse {\n\t\t\t\tSystem.out.println(\"null outbean object...Check file for validity\");\n\t\t}\n\t}",
"public static void overWriteFile(String output, String filePath,\n FileSystem fs) {\n File outFile = openFile(filePath, fs);\n if (outFile != null) {\n outFile.clearContent();\n outFile.appendContent(output);\n }\n }",
"public abstract void write(PrintWriter out)\n throws IOException;",
"public void writeMCPToFile() throws FileNotFoundException\n\t{\n\t\t try {\n\t\t\t String a = null;\n\t\t\t switch (sortingAlgorithm) {\n\t\t\t\tcase SelectionSort:\n\t\t\t\t\ta = \"SelectionSort.txt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase InsertionSort:\n\t\t\t\t\ta = \"InsertionSort.txt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase MergeSort:\n\t\t\t\t\ta = \"MergeSort.txt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase QuickSort:\n\t\t\t\t\ta = \"QuickSort.txt\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t FileWriter myWriter = new FileWriter(a);\n\t\t myWriter.write(this.toString());\n\t\t myWriter.close();\n\t\t System.out.println(\"File generated: SUCCESS\");\n\t\t } catch (IOException e) {\n\t\t System.out.println(\"File generated: ERROR\");\n\t\t e.printStackTrace();\n\t\t }\n\t}",
"public void SerialWriteFile() {\r\n\r\n PrintWriter pwrite = null;\r\n File fileObject = new File(getName());\r\n QuizPlayer q = new QuizPlayer(getName(), getNickname(), getTotalScore());\r\n\r\n try {\r\n ObjectOutputStream outputStream =\r\n new ObjectOutputStream(new FileOutputStream(fileObject));\r\n\r\n outputStream.writeObject(q); //Writes the object to the serialized file.\r\n outputStream.close();\r\n\r\n\r\n } catch (IOException e) {\r\n System.out.println(\"Problem with file output.\");\r\n }\r\n\r\n }",
"private void toFile(OutputData data) {\n if(data == null) {\r\n JOptionPane.showMessageDialog(this, \"Dane wynikowe nie zostały jeszcze umieszczone w pamieci\");\r\n return;\r\n }\r\n\r\n // Sprawdzenie sciezki zapisu\r\n String filePath = this.outputFileSelector.getPath();\r\n if(filePath.length() <= 5) {\r\n JOptionPane.showMessageDialog(this, \"Nie można zapisać wyniku w wybranej lokacji!\");\r\n return;\r\n }\r\n\r\n // Zapisujemy plik na dysk\r\n try{\r\n PrintWriter writer = new PrintWriter(filePath, \"UTF-8\");\r\n OutputDataFormatter odf = new OutputDataFormatter(this.outputData);\r\n\r\n String userPattern = this.outputFormatPanel.getPattern();\r\n writer.write(odf.getParsedString(userPattern.length() < 2 ? defaultFormatting : userPattern));\r\n\r\n writer.close();\r\n } catch (IOException e) {\r\n JOptionPane.showMessageDialog(this, \"Wystąpił błąd IO podczas zapisu.\");\r\n }\r\n\r\n }",
"public void FilesBufferWrite2Append() throws IOException {\n \ttry { \t\n \t\t\n \t \t/* This logic will check whether the file\n \t \t \t * exists or not. If the file is not found\n \t \t \t * at the specified location it would create\n \t \t \t * a new file*/\n \t \t \tif (!file.exists()) {\n \t \t\t file.createNewFile();\n \t \t \t}\n \t\t\n \t \t \t//KP : java.nio.file.Files.write - NIO is buffer oriented & IO is stream oriented!]\n \t\tString str2Write = \"\\n\" + LocalDateTime.now().toString() + \"\\t\" + outPrintLn + \"\\n\";\n \t\tFiles.write(Paths.get(outFilePath), str2Write.getBytes(), StandardOpenOption.APPEND);\n \t\t\n \t}catch (IOException e) {\n\t \t// TODO Auto-generated catch block\n\t \te.printStackTrace();\t\t\n\t\t\tSystem.out.print(outPrintLn);\n\t\t\tSystem.out.println(outPrintLn);\t\n \t}\n }",
"private void export() {\n print(\"Outputting Instructions to file ... \");\n\n // Generate instructions right now\n List<Instruction> instructions = new ArrayList<Instruction>();\n convertToInstructions(instructions, shape);\n\n // Verify Instructions\n if (instructions == null || instructions.size() == 0) {\n println(\"failed\\nNo instructions!\");\n return;\n }\n\n // Prepare the output file\n output = createWriter(\"output/instructions.txt\");\n \n // TODO: Write configuration information to the file\n \n\n // Write all the Instructions to the file\n for (int i = 0; i < instructions.size(); i++) {\n Instruction instruction = instructions.get(i);\n output.println(instruction.toString());\n }\n\n // Finish the file\n output.flush();\n output.close();\n\n println(\"done\");\n }",
"public abstract String FileOutput();",
"public void writeFile() {\n try {\n FileWriter writer = new FileWriter(writeFile, true);\n writer.write(user + \" \" + password);\n writer.write(\"\\r\\n\"); // write new line\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n }",
"void writeToFile(){\n try{\n OutputStream o = new FileOutputStream(distanceFile);\n for(int start = 1; start < 200; start++)\n for(int to = 1; to < 200; to++)\n for(int taxi = 0; taxi < 12; taxi++)\n for(int bus = 0; bus < 9; bus++)\n o.write(distance[start][to][taxi][bus]);\n o.close();\n o = new FileOutputStream(validMoveFile);\n for(int node = 1; node < 200; node++)\n for(int taxi = 0; taxi < 3; taxi++)\n for(int bus = 0; bus < 3; bus++)\n for(int underground = 0; underground < 3; underground++)\n for(int doublet = 0; doublet < 2; doublet++)\n for(int secret = 0; secret < 3; secret++)\n for(int b = 0; b < 4; b++)\n o.write((byte) (validMoves[node][taxi][bus][underground][doublet][secret] >> ((3 - b) * 8)));\n o.close();\n }\n catch (Exception e){\n System.out.println(\"Exception: \" + e);\n }\n }",
"public FileOutput(String filename) {\n\t\tthis.filename = filename;\n\t\ttry {\n\t\t\twriter = new PrintWriter(new BufferedWriter(new FileWriter(filename,false)));\n\t\t\tSystem.out.println(\"Created\\t\\\"\" + filename + \"\\\" sucessfully\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not create\\t\" + filename);\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\twriter.close();\n\t\t}\n\t\t\n\t}",
"public static void writeOut(String iFilename, String iContents)\n {\n File wFile = new File(iFilename);\n BufferedWriter bw = null;\n \n try\n {\n bw = new BufferedWriter(new FileWriter(wFile));\n bw.write(iContents);\n bw.close();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }",
"int writeTo(OutputStream out) throws IOException;",
"void output(OUT out) throws IOException;",
"public static void write() throws IOException {\n VelocityContext context = new VelocityContext();\n\n //Put the data model in context object\n context.put(\"packageName\", packageName);\n context.put(\"className\", className);\n List<Attribute> attributes = new ArrayList<>();\n attributes.add(new Attribute(\"id\", \"int\"));\n attributes.add(new Attribute(\"firstName\", \"String\"));\n attributes.add(new Attribute(\"lastName\", \"String\"));\n attributes.add(new Attribute(\"dob\", \"LocalDate\"));\n context.put(\"attributes\", attributes);\n\n //Merge the template with context data\n StringWriter stringWriter = new StringWriter();\n Velocity.mergeTemplate(\"class.vm\", context, stringWriter);\n\n //Write to file\n FileWriter fw = null;\n try {\n fw = new FileWriter(\"output/User.java\");\n fw.write(stringWriter.toString());\n } finally {\n if (fw != null) {\n fw.close();\n }\n }\n }",
"private static void writeOutput (int[][] outData) {\r\n\t\tString outFile = \"Input_\" + outData.length + \".txt\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFile fileLocation = new File(outFile);\t\t\r\n\t\t\tPrintWriter Writer = new PrintWriter(fileLocation, \"UTF-8\");\t\r\n\t\t\tfor (int i = 0; i < outData.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < outData[i].length; j++) {\r\n\t\t\t\t\tif (outData[i][j] == INFINITY) {\r\n\t\t\t\t\t\tWriter.print(\"NA\");\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tWriter.print(outData[i][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (j != outData[i].length - 1) {\r\n\t\t\t\t\t\tWriter.print(\"\\t\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tWriter.println();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tWriter.close();\r\n\t\t} catch (Exception ex) {\r\n System.out.println(ex.toString()); \r\n\t\t}\r\n\t}",
"public void output2File(String outputName, ArrayList<Integer> source){\n this.outputContent = new StringBuilder();\n Iterator<Integer> itr = source.iterator();\n\n while(itr.hasNext()){\n this.outputContent.append((itr.next().intValue()));\n this.outputContent.append(\" \");\n }\n\n try {\n FileWriter fileWriter = new FileWriter(outputName, true);\n fileWriter.write(this.outputContent.toString());\n fileWriter.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public void writer(List<String> toStore) throws IOException{\n //creates writer and clears file\n PrintWriter writer = new PrintWriter(\"output.txt\", \"UTF-8\");\n //for each loop to store all the values in the file into the file named output.txt\n for(String s : toStore)\n //stores the strings for outputting\n writer.println(s);\n //closes the writer and outputs to the file\n writer.close();\n }",
"private void writeToFile(){\n Calendar c = Calendar.getInstance();\n String dateMedTaken = DateFormat.getDateInstance(DateFormat.FULL).format(c);\n FileOutputStream fos = null;\n\n try {\n fos = openFileOutput(FILE_NAME, MODE_APPEND);\n fos.write(dateMedTaken.getBytes());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if(fos != null){\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }",
"public abstract void write(DataOutput out) throws IOException;",
"private static void textFilesOutput() {\n\n // make output directory if it doesn't already exist\n new File(\"output\").mkdirs();\n\n Output airportFlightCounter = new AirportFlightCounter(airports);\n Output flightInventory = new FlightInventory(flights);\n Output flightPassengerCounter = new FlightPassengerCounter(flights);\n Output mileageCounter = new MileageCounter(flights, airports);\n\n try {\n airportFlightCounter.toTextFile();\n flightInventory.toTextFile();\n flightPassengerCounter.toTextFile();\n mileageCounter.toTextFile();\n } catch (FileNotFoundException e) {\n logger.error(\"Could not write to one or more text files - please close any open instances of that file\");\n e.printStackTrace();\n }\n\n logger.info(\"Output to text files completed\");\n }",
"private void write(){\n\t\ttry {\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\t\n\t\t\tString pathSub = ManipXML.class.getResource(path).toString();\n\t\t\tpathSub = pathSub.substring(5, pathSub.length());\n\t\t\tStreamResult result = new StreamResult(pathSub);\n\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private static void prepareOutputFile() {\n try {\n outputFileBuffer = new BufferedWriter(new FileWriter(PATH+OUTPUT_FILE_NAME));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void saveToFile(File outputFile) throws IOException {\n PrintWriter writer = new PrintWriter(outputFile);\n\n writer.write(\"# Exported by FrogLord\" + Constants.NEWLINE);\n for (Tuple3<Float, Float, Float> vertex : this.vertices)\n writer.write(\"v \" + vertex.getA() + \" \" + vertex.getB() + \" \" + vertex.getC() + Constants.NEWLINE);\n\n for (Tuple2<Float, Float> normal : this.normals)\n writer.write(\"vt \" + normal.getA() + \" \" + normal.getB() + Constants.NEWLINE);\n\n writer.close();\n }",
"public void writeToFile(String outputName) throws Exception{\n if (trials == null || data == null) throw new Exception(\"Must read marker and data file before writing it out\");\n BufferedWriter bw = new BufferedWriter(new FileWriter(outputName));\n \n //.. write out the headers\n for (int i= FIRSTPROBEINDEX; i < header.length; i++) {\n bw.write(header[i]);\n bw.write(\",\");\n }\n \n //.. write out condition\n bw.write(\"condition\");\n \n bw.write(\"\\n\");\n int rowNum =0;\n \n //.. write out actual data\n for (String [] row : data) {\n if (row.length!= header.length) System.out.println(\"Row has \" + row.length + \" whereas header has \" + header.length);\n String label =null;\n for (int i = FIRSTPROBEINDEX; i < row.length; i++) {\n label = getLabel(rowNum); //.. will be null if it doesn't exist\n \n if (label != null ) {\n bw.write(row[i]);\n bw.write(\",\");\n }\n }\n if (label!=null) {\n //System.out.println(\"Writing \" + getLabel(rowNum));\n String condition = getLabel(rowNum);\n bw.write(condition);\n bw.write(\"\\n\");\n \n //.. this is a hack since my program gives an error if a conditon jsut has one line\n if (condition.equals(\"passed\")) duplicateLastLine(bw, row, condition,20 );\n \n }\n rowNum++;\n }\n \n bw.close();\n }",
"public void writeResultSentencesToFile(String outputFilePath) {\n writeDataToFile(reversedWrdsSentence.toCharArray(), outputFilePath);\n }",
"private void writeToFile(String outputDir, String outFilename, ArrayList<String> out) throws IOException {\n PrintWriter outf = BagFormatter.openUTF8Writer(outputDir, outFilename);\n Iterator<String> it = out.iterator();\n int lastSpaceCount = -1;\n String line;\n int spaceCount;\n while (it.hasNext()) {\n line = it.next();\n spaceCount = 0;\n while (line.charAt(spaceCount) == ' ') {\n spaceCount++;\n }\n if (spaceCount == lastSpaceCount) {\n outf.println(\",\");\n } else if (lastSpaceCount >= 0) {\n outf.println();\n }\n outf.print(line);\n lastSpaceCount = spaceCount;\n }\n outf.println();\n outf.close();\n }",
"public void toFile() throws IOException {\n toFile(null);\n }",
"private void writeToFile() throws IOException {\n\t\tFileWriter write = new FileWriter(path);\n\t\tPrintWriter print_line = new PrintWriter(write);\n\t\t\n\t\tEnumeration<String> fd_key_Enum = fileData.keys();\n\t\tEnumeration<String> fd_value_Enum = fileData.elements();\n\t\twhile (fd_key_Enum.hasMoreElements() && fd_value_Enum.hasMoreElements()) {\n\t\t\tprint_line.printf(\"%s\" + \"%n\", fd_key_Enum.nextElement() + \":\" + fd_value_Enum.nextElement());\n\t\t}\n\t\t\n\t\tprint_line.close();\n\t\twrite.close();\n\t}",
"public void writeFile(String OUTPUT_PATH, boolean header) throws IOException {\r\n\t\t\r\n\t\tif(System.getProperty(\"os.name\").contains(\"indows\")) {\r\n\t\t\t// do nothing, hopefully\r\n\t\t} else {\r\n\t\t\tOUTPUT_PATH = OUTPUT_PATH.replace(\"\\\\\", \"/\");\r\n\t\t}\r\n\t\t\r\n\t\tBufferedWriter output = null;\r\n\t\tFile file = new File(OUTPUT_PATH);\r\n\t\toutput = new BufferedWriter(new FileWriter(file));\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tif(header == true) {\r\n\t\t\tfor(int i = 0; i < this.fieldNames.length; i++) {\r\n\t\t\t\tsb.append(this.fieldNames[i]);\r\n\t\t\t\tif(i != this.fieldNames.length-1) {\r\n\t\t\t\t\tsb.append(\"\\t\");\r\n\t\t\t\t}\r\n\t\t\t} sb.append(\"\\n\");\r\n\t\t\toutput.write(sb.toString());\r\n\t\t\tsb = new StringBuilder();\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < this.nrow(); i++) {\r\n\t\t\toutput.write(String.join(\"\\t\", this.get(i)) + \"\\n\");\r\n\t\t}\r\n\t\tSystem.out.println(this.nrow());\r\n\t\toutput.close();\r\n\t}",
"public void write(String outputFileName) throws IOException {\n FileWriter fileWriter = new FileWriter(outputFileName);\n\n for (int i = 1; i < grid.length - 1; i++) {\n for (int j = 1; j < grid[i].length - 1; j++) {\n fileWriter.write(grid[i][j].toString() + \" \");\n fileWriter.flush();\n }\n fileWriter.write(\"\\n\");\n }\n // TODO\n //\n // 1. Open the file.\n //\n // 2. Write to the file. The five life forms are represented by characters\n // B, E, F, G, R. Leave one blank space in between. Examples are given in\n // the project description.\n //\n // 3. Close the file.\n\n }",
"public void writeOutputToFile(ArrayList<Object> transformNums) throws IOException {\r\n FileWriter file = new FileWriter(writeFilename);\r\n\r\n for(int i=0; i<transformNums.size(); i++){\r\n file.write(transformNums.get(i)+\" \");\r\n }\r\n\r\n file.close();\r\n\r\n }",
"public void writeToTextFile(String filename){\n try{\n FileWriter myWriter = new FileWriter(filename); \n myWriter.write(toString());\n myWriter.close();\n } \n catch(IOException e) { \n System.out.println(\"An error occurred.\"); \n e.printStackTrace();\n } \n }",
"private void writeToFile() {\n try {\n FileOutputStream fos = new FileOutputStream(f);\n String toWrite = myJSON.toString(4);\n byte[] b = toWrite.getBytes();\n fos.write(b);\n fos.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public boolean writeDataFile();",
"public static void writeFile(String inputFile, String outputFile, String[] encodings){\n File iFile = new File(inputFile);\n File oFile = new File(outputFile);\n //try catch for creating the output file\n try {\n //if it doesn't exist it creates the file. else if clears the output file\n\t if (oFile.createNewFile()){\n System.out.println(\"File is created!\");\n\t } else{\n PrintWriter writer = new PrintWriter(oFile);\n writer.print(\"\");\n writer.close();\n System.out.println(\"File cleared.\");\n\t }\n }\n catch(IOException e){\n e.printStackTrace();\n }\n //try catch to scan the input file\n try {\n Scanner scan = new Scanner(iFile);\n PrintWriter writer = new PrintWriter(oFile);\n //loop to look at each word in the file\n while (scan.hasNext()) {\n String s = scan.next();\n //loop to look at each character in the word\n for(int i = 0; i < s.length(); i++){\n if((int)s.charAt(i)-32 <= 94) {\n writer.print(encodings[(int)s.charAt(i)-32]);\n }\n }\n //gives the space between words\n writer.print(encodings[0]);\n }\n scan.close();\n }\n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"public void writer(Vector<String> toWrite, String path) throws IOException {\n file = new File(path);\n fw = new FileWriter(file);\n\n for (int i = 0; i < toWrite.size(); i++) {\n fw.write(toWrite.get(i));\n fw.write('\\n');\n fw.flush();\n }\n }",
"public static void writeToFile(String inputFilePath, String outputFilePath, boolean append) throws IOException\r\n\t{\r\n\t\tBufferedReader fileReader = new BufferedReader(new InputStreamReader(new FileInputStream(new File(inputFilePath))));\r\n\t\tPrintStream fileWriter = new PrintStream(new FileOutputStream(new File(outputFilePath), append));\r\n\t\tString curLine = null;\r\n\t\t\r\n\t\twhile ((curLine = fileReader.readLine()) != null)\r\n\t\t{\r\n\t\t\tfileWriter.println(curLine);\r\n\t\t}\r\n\t\t\r\n\t\tfileReader.close();\r\n\t\tfileWriter.close();\r\n\t}",
"public void write(String outputFolder, String name) throws IOException {\n for (Gender gender : this.keySet1()) {\n for (EventScoringTable scoreTable : this.get(gender).values()) {\n File outFile = new File(String.format(\"%s/Table %s - %s - %s.csv\",\n outputFolder,\n name,\n gender,\n scoreTable.getEvent().getIaafName()\n ));\n if (outFile.getParentFile().mkdirs()) {\n System.out.println(\"Created directory: \" + outFile.getParent());\n }\n\n FileWriter fileWriter = new FileWriter(outFile);\n fileWriter.write(String.format(\"%s,%s%n\", \"performance\", \"points\"));\n\n for (Entry<Double, Integer> score : scoreTable.getPerformancePoints().entrySet()) {\n fileWriter.write(String.format(Locale.ENGLISH,\n \"%.2f,%d%n\",\n score.getKey(),\n score.getValue()\n ));\n }\n fileWriter.close();\n }\n }\n System.out.println(\"Written conversion tables to: \" + outputFolder);\n }",
"public void writeToTxtStats() throws IOException{\n\t\tPath fileName = Path.of(\"stats.out\");\n \n\t\tString outputText = \"Day \" + day + \", Spring \" + inventory.get(0).getStock() + \", Egg \" + inventory.get(1).getStock() \n + \", Sausage \" + inventory.get(2).getStock() + \", Jelly \" + inventory.get(3).getStock()\n\t+ \", Pastry \" + inventory.get(4).getStock() + \", Outages \" + dailyDisruptions+ \"\";\n\t\toutputText = outputText + \"\\n\";\n Files.writeString(fileName, outputText, StandardOpenOption.APPEND);\n\t\t//Day x, Spring x, Egg x, Sausage x, Jelly x, Pastry x, Outages x \\n\n\t}",
"public static void writeInfoTofile() throws FileNotFoundException {\n try {\n FileOutputStream outputStream = new FileOutputStream(\"ex1.txt\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n throw e;\n }\n }",
"public void writeFile() \r\n\t{\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tfor(String str : scorers)\r\n\t\t\tbuilder.append(str).append(\",\");\r\n\t\tbuilder.deleteCharAt(builder.length() - 1);\r\n\t\t\r\n\t\ttry(DataOutputStream output = new DataOutputStream(new FileOutputStream(HIGHSCORERS_FILE)))\r\n\t\t{\r\n\t\t\toutput.writeChars(builder.toString());\r\n\t\t} \r\n\t\tcatch (FileNotFoundException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.err.println(\"[ERROR]:[FileManager] File \" + HIGHSCORERS_FILE + \" was not found \" \r\n\t\t\t\t\t+ \"while writing.\");\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.err.println(\"[ERROR]:[FileManager] Error while reading the file \" + HIGHSCORERS_FILE);\r\n\t\t}\r\n\t}",
"private void writeOutputFile(String str, String file) throws Exception {\n FileOutputStream fout = new FileOutputStream(file);\n\n fout.write(str.getBytes());\n fout.close();\n }",
"@Override\n public void writeDataToTxtFile() {\n\n }",
"protected void write(OutputStream os) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(this.filepath);\n\t\tBufferedInputStream bis = new BufferedInputStream(fis);\n\t\tbyte[] s = new byte[1024];\n\t\tint i = 0;\n\t\twhile ((i = bis.read(s)) > 0) {\n\t\t\tos.write(s, 0, i);\n\t\t}\n\t\tif (os != null) {\n\t\t\tos.flush();\n\t\t\tos.close();\n\t\t}\n\t\tif (bis != null)\n\t\t\tbis.close();\n\t\tif (fis != null)\n\t\t\tfis.close();\n\t}",
"public void printToFile(AI input) {\n\t\ttry {\n\t\t\t// Create file\n\t\t\tFileWriter fstream = new FileWriter(FILENAME);\n\t\t\tBufferedWriter out = new BufferedWriter(fstream);\n\t\t\tout.write(input.toString() + \"\\n\");\n\t\t\t// Close the output stream\n\t\t\tout.close();\n\t\t} catch (Exception e) { // Catch exception if any\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t}\n\t}",
"public void toFile(String filename) {\n\t\tsortPool();\n\t\ttry (BufferedWriter bw = new BufferedWriter(new FileWriter(filename))) {\n\t\t\tfor(int i = 0; i < genepool.size(); i++) {\n\t\t\t\tbw.write(genepool.get(i).toWrite());\n\t\t\t\tbw.newLine();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void cmdWrite(String filename) throws NoSystemException {\n MSystem system = system();\n PrintWriter out = null;\n try {\n if (filename == null)\n out = new PrintWriter(System.out);\n else {\n out = new PrintWriter(new BufferedWriter(new FileWriter(\n filename)));\n }\n out\n .println(\"-- Script generated by USE \"\n + Options.RELEASE_VERSION);\n out.println();\n system.writeSoilStatements(out);\n } catch (IOException ex) {\n Log.error(ex.getMessage());\n } finally {\n if (out != null) {\n out.flush();\n if (filename != null)\n out.close();\n }\n }\n }",
"@Override\n\tpublic void write(OutStream outStream) {\n\t}",
"public void write(File file) throws IOException {\n\t\tOutputStream out = null;\n\t\ttry {\n\t\t\tout = new FileOutputStream(file);\n\t\t\twrite(out);\n\t\t} finally {\n\t\t\tout.close();\n\t\t}\n\t}",
"public static void WriteFile()throws java.io.FileNotFoundException,java.io.IOException\n {\n FileOutputStream out1= new FileOutputStream(\"Sample.bin\") ; \n String ab=\"Welcome to sample file\";\n out1.write(ab.getBytes());\n out1.flush();\n out1.close();\n }",
"public ThingToWriteFile(String filename) { \n\t\ttry { \t\n\t\t\tout = new BufferedWriter(new FileWriter(filename));\n\t\t}\n\t\tcatch (FileNotFoundException ee){\n\t\t\tSystem.out.println(\"File \" + filename + \" not found.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tcatch (IOException e){\n\t\t\tSystem.out.println(\"File \" + filename + \" cannot be read.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public static void main(String[] args) throws IOException {\nFileInputStream fin=new FileInputStream(\"C:\\\\\\\\Users\\\\\\\\Dell\\\\\\\\Desktop\\\\\\\\input.txt\");\nFileOutputStream fout=new FileOutputStream(\"C:\\\\\\\\\\\\\\\\Users\\\\\\\\\\\\\\\\Dell\\\\\\\\\\\\\\\\Desktop\\\\\\\\\\\\\\\\output.txt\");\nint c=0;\nwhile((c=fin.read())!=-1)\n{\n\tfout.write(c);\n}\nSystem.out.println(\"written completed\");\n\t}",
"public void write(DataOutput dataOutput) throws IOException {\n }",
"public void writeGraph (String outputFileName) {\n\t\ttry\r\n\t\t{\r\n\t\t\tFileOutputStream fileOutputStream = new FileOutputStream(outputFileName);\r\n\t\t\tBufferedOutputStream bufferedOutputStream = new BufferedOutputStream(\r\n\t\t\t\t\tfileOutputStream);\r\n\t\t\tPrintStream printStream = new PrintStream(bufferedOutputStream);\r\n\r\n\r\n\t\t\tfor(Integer i : adjacencyMatrix.keySet())\r\n\t\t\t{\r\n\t\t\t\tfor(Integer j : adjacencyMatrix.get(i))\r\n\t\t\t\t{\r\n\t\t\t\t\tprintStream.println(i+\",\"+j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tprintStream.close();\r\n\t\t} \r\n\t\tcatch (IOException e) {\r\n\t\t\tSystem.out.println(\"ERROR: An io exception occurred while writing file \"+outputFileName);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\tcatch ( Exception e ){\r\n\t\t\tSystem.out.println(e.toString());\r\n\t\t\tSystem.out.println(\"ERROR: An exception occurred while writing file\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}",
"@Test\n\tpublic void testWriteToFile() {\n ArrayList<String> actualLines = new ArrayList<String>();\n\n\t\tactualLines.add(\"Course: Java\");\n\t\tactualLines.add(\"CourseID: 590\");\n\t\tactualLines.add(\"StudentName: Nikhil Kumar\");\n\t\t\n\t\t// Write to file\n\t\tmyFileWriter1.writeToFile(actualLines);\n\t\t\n\t\t// Read the written file to test its contents\n\t\tArrayList<String> expectedLines = readWrittenFile(\"output_test.txt\");\n\t\tassertEquals(expectedLines, actualLines);\n\t}",
"@Override\n\tprotected void write(ObjectOutput out) throws IOException {\n\t\t\n\t}"
] |
[
"0.8108035",
"0.7866651",
"0.7354863",
"0.7291281",
"0.71749246",
"0.71344274",
"0.70837086",
"0.69498473",
"0.68880284",
"0.68600637",
"0.68569577",
"0.6822648",
"0.6772413",
"0.6721232",
"0.671182",
"0.6618863",
"0.6617968",
"0.66087395",
"0.66002804",
"0.65970325",
"0.6570611",
"0.6539639",
"0.6531141",
"0.65212125",
"0.65208364",
"0.6520292",
"0.64984703",
"0.6452562",
"0.6451314",
"0.6443916",
"0.6433635",
"0.6422548",
"0.64176065",
"0.6416282",
"0.6414952",
"0.64148676",
"0.64076936",
"0.64037246",
"0.63978064",
"0.6370074",
"0.63619035",
"0.63581795",
"0.6343932",
"0.63438046",
"0.63418156",
"0.6329329",
"0.6329041",
"0.6327967",
"0.63270825",
"0.6316968",
"0.62952125",
"0.62932104",
"0.6289477",
"0.62666607",
"0.62645906",
"0.6261438",
"0.6256256",
"0.62527734",
"0.6250567",
"0.6249353",
"0.6247493",
"0.6235402",
"0.6233648",
"0.62322384",
"0.6231898",
"0.6230656",
"0.623006",
"0.62296224",
"0.6222068",
"0.62168956",
"0.62064517",
"0.6205843",
"0.6198378",
"0.61776435",
"0.6170866",
"0.6170688",
"0.6168616",
"0.61641806",
"0.6162976",
"0.6160261",
"0.61574614",
"0.6157456",
"0.61574256",
"0.6156854",
"0.61539346",
"0.61523056",
"0.6151847",
"0.6147561",
"0.61311543",
"0.61217517",
"0.61168134",
"0.6110849",
"0.61095184",
"0.61039525",
"0.60984784",
"0.60955197",
"0.60845083",
"0.60806894",
"0.6079711",
"0.6078038",
"0.6064394"
] |
0.0
|
-1
|
reads SMTP server setting from web.xml file
|
public void init() {
ServletContext context = getServletContext();
host = context.getInitParameter("host");
port = context.getInitParameter("port");
user = context.getInitParameter("user");
pass = context.getInitParameter("pass");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static Properties getMailServerConfig() {\n\n Properties properties = new Properties();\n properties.put(\"mail.smtp.host\", host);\n properties.put(\"mail.smtp.port\", \"2525\");\n\n return properties;\n }",
"public String getMailServer()\n {\n return _mailServer;\n }",
"public String getMailServer() {\r\n\t\treturn mailServer;\r\n\t}",
"public SMTPConfig getSmtpConfig() {\n\t\treturn smtpConfig;\n\t}",
"public String getSmtpHost() {\n return smtpHost;\n }",
"public int getSmtpPort() {\n return smtpPort;\n }",
"public static URL getEmailServer()\n {\n return emailServer;\n }",
"public String getHostSend() {\n return emailConfig.getProperty(\"mail.smtp.host\", \"\");\n }",
"protected Properties getMailProperties() {\n Properties props = System.getProperties();\n props.put(\"mail.smtp.host\", mailHost);\n props.put(\"mail.smtp.sendpartial\", \"true\");\n if (mailPort != null) {\n props.put(\"mail.smtp.port\", mailPort);\n }\n LOG.debug(\n \"mailHost is \" + mailHost + \", mailPort is \" + mailPort == null ? \"default\" : mailPort);\n if (userName != null && password != null) {\n props.put(\"mail.smtp.auth\", \"true\");\n }\n return props;\n }",
"public Integer getSmtpPort() {\n return smtpPort;\n }",
"public WebMailConfig extractConfig(String xml) throws ApsSystemException {\n \t\tWebMailConfig config = new WebMailConfig();\n \t\ttry {\n \t\t\tElement root = this.getRootElement(xml);\n \t\t\t\n \t\t\tElement domainNameElem = root.getChild(DOMAIN_ELEM);\n \t\t\tif (null != domainNameElem) {\n \t\t\t\tString domainName = domainNameElem.getText();\n \t\t\t\tconfig.setDomainName(domainName);\n \t\t\t}\n \t\t\t\n \t\t\tElement localhostElem = root.getChild(LOCALHOST_ELEM);\n \t\t\tif (null != localhostElem) {\n \t\t\t\tString localhost = localhostElem.getText();\n \t\t\t\tconfig.setLocalhost(localhost);\n \t\t\t}\n \t\t\t\n \t\t\tElement smtpElem = root.getChild(SMTP_ELEM);\n \t\t\tString debug = smtpElem.getAttributeValue(SMTP_DEBUG_ATTR);\n \t\t\tconfig.setDebug(new Boolean(debug).booleanValue());\n \t\t\t\n \t\t\tString japsUserAuth = smtpElem.getAttributeValue(SMTP_JAPS_USER_AUTH_ATTR);\n \t\t\tconfig.setSmtpJapsUserAuth(new Boolean(japsUserAuth).booleanValue());\n \t\t\t\n \t\t\tconfig.setSmtpHost(smtpElem.getChildText(SMTP_HOST_CHILD));\n \t\t\tconfig.setSmtpUserName(smtpElem.getChildText(SMTP_USER_CHILD));\n \t\t\tconfig.setSmtpPassword(smtpElem.getChildText(SMTP_PASSWORD_CHILD));\n \t\t\tString smtpPort = smtpElem.getChildText(SMTP_PORT_CHILD);\n \t\t\tInteger smtpPortValue = (smtpPort==null || smtpPort.length()==0) ? null : new Integer(smtpPort);\n \t\t\tconfig.setSmtpPort(smtpPortValue);\n \t\t\t\n \t\t\tElement certElem = root.getChild(CERTIFICATES_ELEM);\n \t\t\tString enable = certElem.getChildText(CERTIFICATES_ENABLE_CHILD);\n \t\t\tconfig.setCertificateEnable(new Boolean(enable).booleanValue());\n \t\t\tString lazyCheck = \tcertElem.getChildText(CERTIFICATES_LAZYCHECK_CHILD);\n \t\t\tconfig.setCertificateLazyCheck(new Boolean(lazyCheck).booleanValue());\n \t\t\tString certificatePath = certElem.getChildText(CERTIFICATES_CERTPATH_CHILD);\n \t\t\tconfig.setCertificatePath(certificatePath);\n \t\t\tString debugOnConsole = certElem.getChildText(CERTIFICATES_DEBUGONCONSOLE_CHILD);\n \t\t\tconfig.setCertificateDebugOnConsole(new Boolean(debugOnConsole).booleanValue());\n \t\t\t\n \t\t\tElement imapElem = root.getChild(IMAP_ELEM);\n \t\t\tconfig.setImapHost(imapElem.getChildText(IMAP_HOST_CHILD));\n \t\t\tString imapPort = imapElem.getChildText(IMAP_PORT_CHILD);\n \t\t\tInteger imapPortValue = (imapPort==null || imapPort.length()==0) ? null : new Integer(imapPort);\n \t\t\tconfig.setImapPort(imapPortValue);\n \t\t\tconfig.setImapProtocol(imapElem.getChildText(IMAP_PROTOCOL_CHILD));\n \t\t\t\n \t\t\tElement folderElem = root.getChild(FOLDER_ELEM);\n \t\t\tif (null != folderElem) {\n \t\t\t\tconfig.setTrashFolderName(folderElem.getChildText(FOLDER_TRASH_CHILD));\n \t\t\t\tconfig.setSentFolderName(folderElem.getChildText(FOLDER_SENT_CHILD));\n \t\t\t}\n \t\t} catch (Throwable t) {\n \t\t\tApsSystemUtils.logThrowable(t, this, \"extractConfig\");\n \t\t\tthrow new ApsSystemException(\"Error extracting config\", t);\n \t\t}\n \t\treturn config;\n \t}",
"private Properties getMailProperties() {\n Properties properties = new Properties();\n properties.setProperty(\"mail.transport.protocol\", \"smtp\");\n properties.setProperty(\"mail.smtps.auth\", \"true\");\n properties.setProperty(\"mail.smtp.starttls.required\", \"true\");\n properties.setProperty(\"mail.smpt.starttls.enable\", \"true\");\n properties.setProperty(\"mail.debug\", \"false\"); // set to true for debugging information\n \n return properties;\n }",
"public String getSmtpHostName() {\n return smtpHostName;\n }",
"Object getMailhost();",
"public void setMailServer(String mailServer)\n {\n _mailServer = mailServer;\n }",
"public String getSmtpHost() {\n\t\treturn _smtpHost;\n\t}",
"public String getSmtpUser() {\n return smtpUser;\n }",
"@Override\n public Properties settingProperties(MailSettings mailSettings) {\n Properties props = new Properties();\n props.put(\"mail.smtp.host\", mailSettings.getAddressSmtp());\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.port\", mailSettings.getPortSmtp());\n props.put(\"mail.smtp.socketFactory.port\", mailSettings.getPortSmtp());\n props.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\n props.put(\"mail.smtp.socketFactory.fallback\", \"false\");\n return props;\n }",
"public void setEmailServer(String host) {\n emailProperties = System.getProperties();\n emailProperties.put(\"mail.smtp.host\", host);\n emailProperties.put(\"mail.smtp.port\", 25);\n // emailProperties.put(\"mail.smtp.auth\", \"false\");\n // emailProperties.put(\"mail.smtp.starttls.enable\", \"true\");\n }",
"private Properties getSettings(String username, String password) {\n\t\tProperties p = new Properties();\n\t\n\t\tp.setProperty(\"mail.user\", username);\n\t\tp.setProperty(\"mail.address\", username + \"@bham.ac.uk\");\n\t\tp.setProperty(\"mail.password\", password);\n\t\tp.setProperty(\"mail.smtp.host\", \"auth-smtp.bham.ac.uk\");\n\t\tp.setProperty(\"mail.smtp.auth\", \"true\");\n\t\tp.setProperty(\"mail.smtp.port\", \"465\");\n\t\tp.setProperty(\"mail.smtp.socketFactory.port\", \"465\");\n\t\tp.setProperty(\"mail.smtp.socketFactory.class\",\n\t \"javax.net.ssl.SSLSocketFactory\");\n\t\treturn p;\n\t}",
"public Integer getSmtpPort() {\n\t\treturn _smtpPort;\n\t}",
"public EmailServer getServer()\r\n\t{\r\n\t\treturn server;\r\n\t}",
"public String getSmtpHostname() {\n return smtpHostname;\n }",
"public String getSmtpUserName() {\n return smtpUserName;\n }",
"public void setMailServer(String mailServer) {\r\n\t\tthis.mailServer = mailServer;\r\n\t}",
"public static void initSmtpSettings()\n\t{\n\t\tString sql = \"DELETE FROM SYSTEM_CONFIGURATION\";\n\t\tlogger.info(String.format(\"Remove smtp configuration from DB: %s\", sql));\n\t\t\n\t\tDBUtil.executeSQL(sql);\n\t\t\n\t\t//Insert SMTP settings to DB.\n\t\tStringBuilder sqlBuilder = new StringBuilder();\n\t\tsqlBuilder.append(\"INSERT INTO SYSTEM_CONFIGURATION(ID, EMAILADRSS, SMTPSERVER, SMTPPORT, MAILUSER, PASSWORD, SENDINGREPEAT, USERID) \");\n\t\tsqlBuilder.append(\"VALUES(%d, '%s', '%s', '%s', '%s', '%s', %d, %d)\");\n\n\t\tsql = String.format(sqlBuilder.toString(), 1, CommonUtil.getPropertyValue(\"smpt_sender\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"smpt_server\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"smpt_port\"),\n\t\t\t\t\t\t\t\"\", \"\", 1, 1);\n\t\t\n\t\tlogger.info(String.format(\"Insert smtp conf to DB: %s\", sql));\n\t\t\n\t\tDBUtil.executeSQL(sql);\n\t}",
"public ServerProperties getServerProperties()\n\t{\n\t\tif (serverProperties == null)\n\t\t{\n\t\t\tConfig config = configService.getConfig(\"Server\");\n\t\t\tserverProperties = (ServerConfigElement)config.getConfigElement(ServerConfigElement.CONFIG_ELEMENT_ID);\n\t\t}\n\t\treturn serverProperties;\n\t}",
"public void testUpdateConfiguration() throws ConfigurationException {\n\t\tSmtpServer smtpServer = new SmtpServer();\n\t\t\t\t\n\t\tsmtpServer.setSmtpServerEnabled(false);\n\t\tsmtpServer.setBindAddress(\"3.4.5.6:877\");\n\t\tsmtpServer.setConnectionBacklog(\"cntbacklog\");\n\t\tsmtpServer.setAuthorizedAddresses(\"a.b.c.d\");\n\t\tsmtpServer.setMaxmessagesize(\"333\");\n\t\tsmtpServer.setConnectiontimeout(\"678\");\n\t\tsmtpServer.setKeystore(\"file://mykey\");\n\t\tsmtpServer.setSecret(\"mysecret\");\n\t\tsmtpServer.setAlgorithm(\"myalgo\");\n\t\tsmtpServer.setProvider(\"org.myprovider.com\");\t\t\n\t\tsmtpServer.setHelloNameAutoDetect(false);\n\t\tsmtpServer.setHelloName(\"hellonam\");\n\t\tsmtpServer.setConnectionLimit(\"444\");\t\t\n\t\tsmtpServer.setConnectionLimitPerIP(\"555\");\t\t\n\t\tsmtpServer.setAddressBracketsEnforcement(false);\n\t\t\n\t\tsmtpServer.setSocketTls(true); //new\n\t\tsmtpServer.setStartTls(false); //new\n\t\tsmtpServer.setGreeting(\"GREAT\"); //new\n\t\t\n\t\tSystem.out.println(\"SmtpServer to store: \"+smtpServer.toString());\n\t\t\t\t\t\t\t\n\t\tsmtpServerConfigManager.updateConfiguration(smtpServer);\n\t\t\t\t\t\t\n\t\t//part 2: check previously stored configuration\n\t\tSmtpServer loadedConfig = smtpServerConfigManager.readConfiguration();\n\t\t\n\t\tSystem.out.println(\"SmtpServer loaded: \"+loadedConfig.toString());\n\t\t\t\t\t\t\n\t\tassertNotNull(loadedConfig);\t\n\t\tassertNotNull(loadedConfig.isSmtpServerEnabled());\n\t\tassertNotNull(loadedConfig.getBindAddress());\n\t\tassertNotNull(loadedConfig.getConnectionBacklog());\n\t\tassertNotNull(loadedConfig.getConnectiontimeout());\n\t\tassertNotNull(loadedConfig.isHelloNameAutoDetect());\n\t\tassertNotNull(loadedConfig.getHelloName());\n\t\tassertNotNull(loadedConfig.getConnectionLimit());\n\t\tassertNotNull(loadedConfig.getConnectionLimitPerIP());\t\n\t\tassertNotNull(loadedConfig.getAlgorithm());\n\t\tassertNotNull(loadedConfig.getKeystore());\n\t\tassertNotNull(loadedConfig.getSecret());\n\t\tassertNotNull(loadedConfig.getProvider());\n\t\tassertNotNull(loadedConfig.getAuthorizedAddresses());\n\t\tassertNotNull(loadedConfig.getMaxmessagesize());\n\t\tassertNotNull(loadedConfig.isAddressBracketsEnforcement());\n\t\t\t\t\n\t\t\t\t\n\t\tassertEquals(false,loadedConfig.isSmtpServerEnabled());\n\t\tassertEquals(\"3.4.5.6:877\",loadedConfig.getBindAddress());\n\t\tassertEquals(\"a.b.c.d\",loadedConfig.getAuthorizedAddresses());\n\t\tassertEquals(\"cntbacklog\",loadedConfig.getConnectionBacklog());\n\t\tassertEquals(\"678\",loadedConfig.getConnectiontimeout());\n\t\tassertEquals(false,loadedConfig.isHelloNameAutoDetect());\n\t\tassertEquals(\"hellonam\",loadedConfig.getHelloName());\n\t\tassertEquals(\"333\",loadedConfig.getMaxmessagesize());\n\t\tassertEquals(\"444\",loadedConfig.getConnectionLimit());\n\t\tassertEquals(\"555\",loadedConfig.getConnectionLimitPerIP());\n\t\tassertEquals(\"myalgo\",loadedConfig.getAlgorithm());\n\t\tassertEquals(\"file://mykey\",loadedConfig.getKeystore());\n\t\tassertEquals(\"mysecret\",loadedConfig.getSecret());\n\t\tassertEquals(\"org.myprovider.com\",loadedConfig.getProvider());\n\t\tassertEquals(false,loadedConfig.isAddressBracketsEnforcement());\n\t\t\n\t\tassertEquals(true,loadedConfig.isSocketTls());\n\t\tassertEquals(false,loadedConfig.isStartTls());\n\t\tassertEquals(\"GREAT\",loadedConfig.getGreeting());\t\t\n\t}",
"public static String getServerSSLConfigFileName() {\n return getSSLConfigFileName(\"ssl-server\");\n }",
"public java.lang.String getSMTP_ADDR()\n {\n \n return __SMTP_ADDR;\n }",
"private static void loadConfig()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal Properties props = ManagerServer.loadProperties(ManagerServer.class, \"/resources/conf.properties\");\n\t\t\tasteriskIP = props.getProperty(\"asteriskIP\");\n\t\t\tloginName = props.getProperty(\"userName\");\n\t\t\tloginPwd = props.getProperty(\"password\");\n\t\t\toutboundproxy = props.getProperty(\"outBoundProxy\");\n\t\t\tasteriskPort = Integer.parseInt(props.getProperty(\"asteriskPort\"));\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tLOG.error(\"IO Exception while reading the configuration file.\", ex);\n\t\t}\n\t}",
"public String getSmtpMessage() {\n return smtpMessage;\n }",
"public void setMailSmtpConfig() {\n int col = 0;\n int row = 0;\n /*\n Email SMTP Configuration\n */\n hostSmtp = new JFXTextField();\n hostSmtp.setPromptText(\"Enter the SMTP address\");\n port = new JFXTextField();\n port.setPromptText(\"Enter the SMTP Port Number\");\n fromMail = new JFXTextField();\n fromMail.setPromptText(\"Enter the Email address\");\n smtpMailPwd = new JFXPasswordField();\n smtpMailPwd.setPromptText(\"Enter the Email password\");\n socketProperty = new JFXTextField();\n socketProperty.setPromptText(\"Enter the Socket Port\");\n// smtpConfCheck = new Button(\"Test Mail\");\n\n GridPane smtpGrid = new GridPane();\n smtpGrid.setHgap(20);\n smtpGrid.setVgap(10);\n smtpGrid.setPadding(new Insets(20, 10, 10, 10));\n smtpGrid.add(new Label(\"Host SMTP Address\"), col, ++row);\n smtpGrid.add(hostSmtp, col + 1, row, 2, 1);\n smtpGrid.add(new Label(\"SMTP Port\"), col, ++row);\n\n smtpGrid.add(port, col + 1, row, 2, 1);\n smtpGrid.add(new Label(\"Socket Port\"), col, ++row);\n smtpGrid.add(socketProperty, col + 1, row);\n smtpGrid.add(new Label(\"SMTP Email\"), col, ++row);\n smtpGrid.add(fromMail, col + 1, row, 2, 1);\n smtpGrid.add(new Label(\"SMTP Email Password\"), col, ++row);\n smtpGrid.add(smtpMailPwd, col + 1, row);\n\n smtpGrid.add(new Label(\"\"), col, ++row);\n\n smtpGrid.add(new Label(\"\"), col, ++row);\n// smtpGrid.add(new Label(\"\"), col, ++row);\n// smtpGrid.add(new Label(\"\"), col, ++row);\n\n smtpConf.setContent(smtpGrid);\n }",
"HashMap getRequestingHosts()\n {\n return configfile.requesting_hosts;\n }",
"public boolean isSmtpTLS() {\n return smtpTLS;\n }",
"private TransportBean getLdapServerTransportBean()\n {\n return getLdapTransportBean( TRANSPORT_ID_LDAP );\n }",
"public String getSmtpEmailFrom() {\n return smtpEmailFrom;\n }",
"public IMailConfigurationService getMailConfigurationService() {\n\n return mailConfigurationService;\n }",
"public String getEmail(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, EMAIL);\n\t}",
"public String getEmail(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, EMAIL);\n\t}",
"public String getSERVER() {\n \t\treturn SERVER;\n \t}",
"public String getSmtpPassword() {\n return smtpPassword;\n }",
"public void setSmtpPort(Integer smtpPort) {\n this.smtpPort = smtpPort;\n }",
"ASPConfigFile getConfigFile()\n {\n return configfile;\n }",
"public void setSmtpHost(String smtpHost) {\n this.smtpHost = smtpHost;\n }",
"public String getSmtpEmailTo() {\n return smtpEmailTo;\n }",
"private void sendMailInit() {\r\n\t\tif(mailSender == null){\r\n\t\t\tmailSender = new JavaMailSenderImpl();\r\n\t\t\tmailSender.setHost(ConfigManager.getInstance().getString(\"mail.host\"));\r\n\t\t\tmailSender.setPort(ConfigManager.getInstance().getInt(\"mail.port\", 25));\r\n\t\t\tmailSender.setUsername(ConfigManager.getInstance().getString(\"mail.username\"));\r\n\t\t\tmailSender.setPassword(ConfigManager.getInstance().getString(\"mail.password\"));\r\n\t\t\tmailSender.setDefaultEncoding(\"utf-8\");\r\n\t\t\tlogger.info(\"HOST>>>>>>>>>>>>>>>Host=\" + mailSender.getHost() + \",Port=\"+ mailSender.getPort());\r\n\t\t\tProperties props = new Properties();\r\n\t\t\tprops.setProperty(\"mail.smtp.auth\", \"true\");\r\n\t\t\tprops.setProperty(\"mail.smtp.timeout\", \"0\");\r\n\t\t\tmailSender.setJavaMailProperties(props);\r\n\t\t\tthis.setMailSender(mailSender);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n ConfigHandler serverConfig = new ConfigHandler(\"../config.properties\");\n // Cast server port configuration\n int serverPort = (int) serverConfig.getProperty(\"SMTP_Server_Port\");\n\n // Start up the server\n Server smtpServer = new Server(serverPort);\n smtpServer.run();\n\n }",
"public void setSmtpTLS(boolean value) {\n this.smtpTLS = value;\n }",
"public static String getDbConfig(){\n return properties.getProperty(\"dbconfig\");\n }",
"public Integer getSmtpProtocol() {\n\t\treturn _smtpProtocol;\n\t}",
"public Integer getSmtpTimeout() {\n\t\treturn _smtpTimeout;\n\t}",
"public void setSmtpUser(String smtpUser) {\n this.smtpUser = smtpUser;\n }",
"public Optional<String> tlsServerName() {\n return Codegen.stringProp(\"tlsServerName\").config(config).get();\n }",
"@Override\n public String getMailConfigArtifactoryUrl() {\n // mail configurations is always the best match\n MutableCentralConfigDescriptor mutableCentralConfigDescriptor = centralConfigService.getMutableDescriptor();\n MailServerDescriptor mailServer = mutableCentralConfigDescriptor.getMailServer();\n if (mailServer != null && StringUtils.isNotBlank(mailServer.getArtifactoryUrl())) {\n return PathUtils.addTrailingSlash(mailServer.getArtifactoryUrl()) + HttpUtils.WEBAPP_URL_PATH_PREFIX + \"/\";\n }\n\n // request is the second best match\n HttpServletRequest request = RequestThreadLocal.getRequest();\n if (request != null) {\n String url;\n url = HttpUtils.getServletContextUrl(request);\n if (StringUtils.isNotBlank(url)) {\n return PathUtils.addTrailingSlash(url) + HttpUtils.WEBAPP_URL_PATH_PREFIX + \"/\";\n }\n }\n\n // baseUrl is the last option\n MutableCentralConfigDescriptor descriptor = centralConfigService.getMutableDescriptor();\n String urlBase = descriptor.getUrlBase();\n if (StringUtils.isNotBlank(urlBase)) {\n return PathUtils.addTrailingSlash(urlBase) + HttpUtils.WEBAPP_URL_PATH_PREFIX + \"/\";\n }\n return \"\";\n }",
"public String getMailing() {\n return mailing;\n }",
"static Buffer getASPConfigBuffer()\n {\n return ASPConfigFile.cfg;\n }",
"public String getMail() {\r\n\t\treturn mail;\r\n\t}",
"private TransportBean getLdapsServerTransportBean()\n {\n return getLdapTransportBean( TRANSPORT_ID_LDAPS );\n }",
"private static String getConfigFile() {\n\n final String sPath = getUserFolder();\n\n return sPath + File.separator + \"sextante.settings\";\n\n }",
"private static Properties init(){\n // Get a Properties object\n Properties props = System.getProperties();\n props.setProperty(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.setProperty(\"mail.smtp.socketFactory.class\", SSL_FACTORY);\n props.setProperty(\"mail.smtp.socketFactory.fallback\", \"false\");\n props.setProperty(\"mail.smtp.port\", \"465\");\n props.setProperty(\"mail.smtp.socketFactory.port\", \"465\");\n props.put(\"mail.smtp.auth\", \"true\");\n //props.put(\"mail.debug\", \"true\");\n props.put(\"mail.store.protocol\", \"pop3\");\n props.put(\"mail.transport.protocol\", \"smtp\");\n\n return props;\n }",
"public void setSmtpConfig(SMTPConfig smtpConfig) {\n\t\tthis.smtpConfig = smtpConfig;\n\t}",
"public void updateFrom(SmtpServer smtpServer)\n/* */ {\n/* 110 */ this._address = smtpServer.getAddress();\n/* 111 */ this._port = smtpServer.getPort();\n/* 112 */ this._username = smtpServer.getUsername();\n/* 113 */ this._password = smtpServer.getPassword();\n/* 114 */ this._sslEnabled = smtpServer.isSslEnabled();\n/* */ }",
"private static Settings prepareSettings() {\n final String dir = System.getProperty(JBOSS_CONFIG_DIR);\n Settings mySettings;\n\n if (dir != null) {\n final String file = dir + File.separator + PROPERTIES_FILE;\n LOG.debug(\"Reading the IWS Properties from '{}'.\", file);\n\n try (InputStream stream = new FileInputStream(file)) {\n final Properties properties = new Properties();\n properties.load(stream);\n\n mySettings = new Settings(properties);\n } catch (FileNotFoundException e) {\n LOG.warn(\"Properties file was not found, reverting to default values.\", e);\n mySettings = new Settings();\n } catch (IOException e) {\n LOG.warn(\"Properties file could not be loaded, reverting to default values.\", e);\n mySettings = new Settings();\n }\n } else {\n LOG.warn(\"Application Server Configuration Path cannot be read.\");\n mySettings = new Settings();\n }\n\n return mySettings;\n }",
"public String getServerUrl() {\n\t return Config.SERVER_URL;\n }",
"public String getSmtpPassword() {\n\t\treturn _smtpPassword;\n\t}",
"protected abstract String getXmppConfigResources();",
"public LocalServerConfig getConfig() {\n return serverConfig;\n }",
"public void setMailGeneralManager(String mailGeneralManager);",
"static Properties getConfig(final ServletContext context) {\n \n /* Validate parameters */\n if (context == null) { throw new IllegalArgumentException(\"context must be a non-empty string\"); }\n \n final Properties config;\n \n /* Validate config */\n try {\n config = (Properties) context.getAttribute(\"no.feide.moria.web.config\");\n } catch (ClassCastException e) {\n throw new IllegalStateException(\"Config is not correctly set in context. Not a java.util.Properties object.\");\n }\n \n if (config == null) { throw new IllegalStateException(\"Config is not set in context.\"); }\n \n return config;\n }",
"public final MailService getMailService() {\n return mailService;\n }",
"public java.lang.String getMail() {\n return mail;\n }",
"public String getServerName() {\n return serverName;\n }",
"public String getServerName() {\n return serverName;\n }",
"private static ServerConfigPOJO defaultServerConfig() {\n return ServerConfigParser.readServerConfig();\n }",
"protected MailConfig prepareConfig() throws ApsSystemException {\n\t\tMailConfig config = this.getMailManager().getMailConfig();\n\t\tconfig.setActive(this.isActive());\n\t\tconfig.setDebug(this.isDebug());\n\t\tconfig.setSmtpHost(this.getSmtpHost());\n\t\tconfig.setSmtpPort(this.getSmtpPort());\n\t\tconfig.setSmtpTimeout(this.getSmtpTimeout());\n\t\tconfig.setSmtpProtocol(this.getSmtpProtocol());\n\t\tif (StringUtils.isBlank(this.getSmtpUserName()) && StringUtils.isBlank(this.getSmtpPassword())) {\n\t\t\tconfig.setSmtpUserName(this.getSmtpUserName());\n\t\t\tconfig.setSmtpPassword(this.getSmtpPassword());\n\t\t} else {\n\t\t\tif (StringUtils.isNotBlank(this.getSmtpPassword())) {\n\t\t\t\tconfig.setSmtpPassword(this.getSmtpPassword());\n\t\t\t}\n\t\t\tif (!config.getSmtpUserName().equals(this.getSmtpUserName())) {\n\t\t\t\tconfig.setSmtpUserName(this.getSmtpUserName());\n\t\t\t}\n\t\t}\n\t\treturn config;\n\t}",
"public synchronized String getMail()\r\n {\r\n return mail;\r\n }",
"public void setSmtpPort(int value) {\n this.smtpPort = value;\n }",
"public Properties getProperties() {\n return this.serverProperties;\n }",
"private void loadFtpConfiguration(){\n\t\t//Get the active profile\n\t\tProfile activeProfile = settingsService.getActiveProfile();\n\t\tHOST = activeProfile.getIpNmt();\n\t\t\n\t\tString puerto = activeProfile.getFtpPort();\n\t\tif (null != puerto && !\"\".equals(puerto)){\n\t\t\tPORT = Integer.valueOf(puerto);\t\t\n\t\t} else {\n\t\t\tPORT = 21; //DEFAULT PORT\n\t\t}\n\t\tUSERNAME = activeProfile.getFtpUser();\n\t\tPASSWORD = activeProfile.getFtpPassword();\t\t\n\t}",
"public void setMailing(String mail) {\n mailing = mail;\n }",
"public static String get(String key){\n\t\tif(sys_cfg == null){\n\t\t\tsys_cfg = new Configuration(\"text.properties\");\n\t\t}\n\t\tString value = sys_cfg.getValue(key);\n\t\treturn value;\n\t}",
"private void setSysProperties() {\n Properties sysProperties = System.getProperties();\n\n // SMTP properties\n sysProperties.put(\"mail.smtp.auth\", \"true\");\n sysProperties.put(\"mail.smtp.starttls.enable\", \"true\");\n sysProperties.put(\"mail.smtp.host\", smtpHost);\n sysProperties.put(\"mail.smtp.port\", \"587\");\n\n //IMAP properties\n sysProperties.put(\"mail.store.protocol\", \"imaps\");\n\n // Credentials\n sysProperties.put(\"mail.user\", username);\n sysProperties.put(\"mail.password\", password);\n\n __logger.info(\"Set system properties\");\n }",
"@Override\n public String getEntityName() {\n return \"MailServer\";\n }",
"public String getNtpServerAddress() {\r\n return ntpServerAddress;\r\n }",
"protected MailSender getMailSender() {\n return mailSender;\n }",
"public String getConfig(String configKey) {\n\t\t// Do something if key doesn't exist\n\t\t\n\t\treturn serverOptions.get(configKey);\n\t}",
"protected final Dictionary<String, ?> getSiteConfiguration() {\n return config;\n }",
"private RemoteConfigElement getRemoteConfig()\r\n {\r\n if (this.config == null)\r\n {\r\n // retrieve the remote configuration\r\n this.config = (RemoteConfigElement)this.configService.getConfig(\"Remote\").getConfigElement(\"remote\");\r\n }\r\n \r\n return this.config;\r\n }",
"protected void setConfigs() throws KKException\n {\n fromAddressStr = getConfigurationValue(ConfigConstants.EMAIL_FROM);\n if (fromAddressStr == null)\n {\n throw new KKException(\n \"An email cannot be sent because the EMAIL_FROM configuration has not been set.\");\n }\n setFromAddressStr(fromAddressStr);\n\n replyToAddressStr = getConfigurationValue(ConfigConstants.EMAIL_REPLY_TO);\n if (replyToAddressStr == null)\n {\n replyToAddressStr = fromAddressStr;\n }\n setReplyToAddressStr(replyToAddressStr);\n\n debugEmail = getConfigurationValueAsBool(ConfigConstants.DEBUG_EMAIL_SESSIONS, false);\n\n String bccEmails = getConfigurationValue(ConfigConstants.SEND_EXTRA_EMAILS_TO);\n if (bccEmails != null && bccEmails.length() > 0)\n {\n bccEmailsStrArray = bccEmails.split(\";\");\n }\n }",
"public String getSpEmail() {\r\n return spEmail;\r\n }",
"public void initialize()\n throws EmailApplicationException {\n final String temp = null;\n emailConfig.clear();\n\n /**\n * Required by JavaMail in order to determine the message delivery\n * protocol for the session.\n */\n emailConfig.setProperty(\"mail.transport.protocol\", \"smtp\");\n \n \n\n setHostSend(\"\");\n setPortSend(25);\n setUserSend(\"\");\n setUseSSL(false);\n\n try {\n setPasswordSend(\"\");\n }\n catch (final Exception ex) {\n final String str =\n \"EmailConfiguration.initialize(): \" +\n \"Wrong UserSend=\" + getUserSend() + \" or PasswordSend=\" + temp + \",\\n\" +\n \"Exception info: \" + ex.toString();\n mLogger.severe(str);\n throw new EmailApplicationException (str);\n }\n\n /**\n * Required by JavaMail in order to determine the message retrieval\n * protocol for the session.\n */\n emailConfig.setProperty(\"mail.store.protocol\", \"pop3\");\n\n setHostRecv(\"\");\n setPortRecv(110);\n setUserRecv(\"\");\n try {\n setPasswordRecv(\"\");\n }\n catch (final Exception ex) {\n final String str =\n \"EmailConfiguration.initialize(): \" +\n \"Wrong UserRecv=\" + getUserRecv() + \" or PasswordRecv=\" + temp + \",\\n\" +\n \"Exception info:\" + ex.toString();\n mLogger.severe(str);\n throw new EmailApplicationException (str);\n }\n\n /**\n * Determine whether to perform POP3 authentication before attempting\n * SMTP transfer.\n */\n setSessionAuth(false);\n\n /**\n * Prepare for SSL\n */\n// aConfiguration.setSubSection(\"SSL\");\n// try {\n// boolean recvSSL = aConfiguration.getStringParameterValue(\"Receive/UseSSL\", \"NO\").equalsIgnoreCase(\"YES\");\n// boolean sendSSL = aConfiguration.getStringParameterValue(\"Send/UseSSL\", \"NO\").equalsIgnoreCase(\"YES\");\n\n// // Set up the TrustStore\n// if (recvSSL || sendSSL) {\n\n// if (mLogger.isDebugEnabled()) {\n// System.setProperty(\"javax.net.debug\", \"all\");\n// }\n\n// // Set up the trustore\n// aConfiguration.setSubSection(\"SSL/CACerts\");\n// String trustStore = aConfiguration.getStringParameterValue(\"TrustStore\", null);\n// if (trustStore == null || trustStore.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStore is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// String trustStoreType = aConfiguration.getStringParameterValue(\"TrustStoreType\", null);\n// if (trustStoreType == null || trustStoreType.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStoreType is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// String trustStorePass = aConfiguration.getStringParameterValue(\"TrustStorePassword\", null);\n// if (trustStorePass == null || trustStorePass.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStorePassword is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// mLogger.info (\"Using TrustStore \" + trustStore + \" of type \" + trustStoreType);\n// EmailSystemProperties.setTrustStore(trustStore);\n// EmailSystemProperties.setTrustStoreType(trustStoreType);\n// EmailSystemProperties.setTrustStorePassword(trustStorePass);\n\n// // Setup receive\n// if (recvSSL) {\n// mLogger.info (\"SSL is enabled for RECEIVE; using \" + SSL_FACTORY + \" for creating ssl sockets.\");\n// // POP3 provider\n// this.emailConfig.setProperty( \"mail.pop3.socketFactory.class\", SSL_FACTORY);\n\n// // POP3 provider - no fallback.\n// this.emailConfig.setProperty( \"mail.pop3.socketFactory.fallback\", \"false\");\n// } else {\n// mLogger.debug (\"SSL is NOT enabled for RECEIVE.\");\n// }\n\n// // Setup send\n// if (sendSSL) {\n// mLogger.info (\"SSL is enabled for SEND; using \" + SSL_FACTORY + \" for creating ssl sockets.\");\n// // SMTP provider\n// this.emailConfig.setProperty( \"mail.smtp.socketFactory.class\", SSL_FACTORY);\n\n// // SMTP provider - no fallback.\n// this.emailConfig.setProperty( \"mail.smtp.socketFactory.fallback\", \"false\");\n// } else {\n// mLogger.debug (\"SSL is NOT enabled for SEND.\");\n// }\n\n// } else {\n// mLogger.debug (\"SSL is NOT enabled.\");\n// }\n\n mLogger.fine(\"EmailConfiguration.initialize() completed successfully.\");\n }",
"public void getSendEmail() {\n driver.get(getBASE_URL() + getSendMailURL);\n }",
"public String getSmtpUserName() {\n\t\treturn _smtpUserName;\n\t}",
"public static File getSettingsfile() {\n return settingsfile;\n }",
"public String getServer()\n {\n return server;\n }",
"private static void readConfigFile() {\n\n BufferedReader input = null;\n try {\n input = new BufferedReader(new FileReader(getConfigFile()));\n String sLine = null;\n while ((sLine = input.readLine()) != null) {\n final String[] sTokens = sLine.split(\"=\");\n if (sTokens.length == 2) {\n m_Settings.put(sTokens[0], sTokens[1]);\n }\n }\n }\n catch (final FileNotFoundException e) {\n }\n catch (final IOException e) {\n }\n finally {\n try {\n if (input != null) {\n input.close();\n }\n }\n catch (final IOException e) {\n Sextante.addErrorToLog(e);\n }\n }\n\n }",
"public String getServer() {\r\n return server;\r\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getEmail() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(EMAIL_PROP.get());\n }",
"public String getServerAddress() {\r\n\t\treturn this.serverAddress;\r\n\t}",
"public String getServerName();"
] |
[
"0.7042106",
"0.6613185",
"0.64762425",
"0.63301855",
"0.614968",
"0.60543984",
"0.6032326",
"0.60215765",
"0.60075927",
"0.598051",
"0.5934768",
"0.59270364",
"0.5841315",
"0.58080816",
"0.5791524",
"0.57757086",
"0.5747089",
"0.57060486",
"0.56568015",
"0.55428916",
"0.5525389",
"0.54787976",
"0.54439217",
"0.5397711",
"0.53936404",
"0.5387757",
"0.5355456",
"0.5342273",
"0.5340155",
"0.533522",
"0.5284008",
"0.524143",
"0.52266306",
"0.5209439",
"0.52022874",
"0.5147455",
"0.51406246",
"0.51038224",
"0.509792",
"0.509792",
"0.50955385",
"0.5089283",
"0.50773287",
"0.50594324",
"0.50288844",
"0.50246227",
"0.50072426",
"0.50054365",
"0.50041616",
"0.49693254",
"0.4954476",
"0.4953981",
"0.494825",
"0.4929343",
"0.49220428",
"0.4919907",
"0.49168178",
"0.49142584",
"0.49142215",
"0.4894044",
"0.4882782",
"0.48827755",
"0.4872585",
"0.48712677",
"0.48656946",
"0.48569885",
"0.48379174",
"0.48271257",
"0.48248047",
"0.4814147",
"0.48132414",
"0.48098308",
"0.48071143",
"0.48071143",
"0.48064953",
"0.48052317",
"0.4801452",
"0.47993833",
"0.47947007",
"0.47864825",
"0.4773307",
"0.47666824",
"0.47647604",
"0.47632623",
"0.47625095",
"0.47603482",
"0.4759353",
"0.47522524",
"0.47474408",
"0.47341153",
"0.472539",
"0.47228777",
"0.47212884",
"0.47095436",
"0.46991482",
"0.46973318",
"0.46917397",
"0.46894956",
"0.46877486",
"0.46855664",
"0.46826857"
] |
0.0
|
-1
|
This is the constructor of the class that takes in the two endpoints and the busline associated with the edge
|
public GraphEdge(GraphNode u, GraphNode v, char busLine){
first = u;
second = v;
this.busLine = busLine;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public GraphEdge(GraphNode u, GraphNode v, char busLine) {\n\t\t\tstart = u;\t\t\t\n\t\t\tend = v;\n\t\t\tthis.busLine = busLine;\n\t\t}",
"public PolytopeEdge(PolytopePoint s1, PolytopePoint s2){\n\t\t\tstart = s1;\n\t\t\tend = s2;\n\t\t}",
"public Edge(Vertex in_pointOne, Vertex in_pointTwo){\n\t\tthis.pointOne = in_pointOne;\n\t\tthis.pointTwo = in_pointTwo;\n\t}",
"public EdgeCrosser(S2Point a, S2Point b) {\n init(a, b);\n }",
"public Edge() {}",
"public Edge()\r\n {\r\n }",
"public Edge(int x, int y) {\n\t\tsuper(x, y);\n\t\tthis.x2 = x;\n\t\tthis.y2 = y;\n\t}",
"public GraphEdge()\r\n {\r\n cost = 1.0;\r\n indexFrom = -1;\r\n indexTo = -1;\r\n }",
"Edge(Node from,Node to, int length){\n this.source=from;\n this.destination=to;\n this.weight=length;\n }",
"public Edge()\n {\n start = -1;\n end = -1;\n capacity = -1;\n }",
"public Edge (Vertex from, Vertex to) {\r\n this.from = from;\r\n this.to = to;\r\n capacity = 0;\r\n flow = 0;\r\n }",
"public\nBLine2D(double x2, double y2)\n{\n\tsuper (0.0, 0.0, x2, y2);\n}",
"public LineSegment( CartesianCoordinate start , CartesianCoordinate end)\n\t{\n\t\tthis.startPoint = start;\n\t\tthis.endPoint = end;\n\t}",
"public Edge(int from, int to) {\n this(from, to, null);\n }",
"public Linea2D(Punto a, Punto b)\n {\n this.a=a;\n this.b=b;\n }",
"private S2EdgeUtil() {}",
"public Edge(Vertex<VV> from, Vertex<VV> to)\r\n {\r\n this.from = from;\r\n this.to = to;\r\n from.addEdge(this);\r\n to.addEdge(this);\r\n }",
"public Line(final Line source, final Point endPoint2) {\n this.endPoint2 = endPoint2;\n }",
"public EdgeOperation(T t1, T t2) {\n\t\tthis.t1 = t1;\n\t\tthis.t2 = t2;\n\t}",
"public GeoLine( GeoPoint start, GeoPoint end ){\n this(start,DEFAULT_COLOR,end);\n }",
"Edge(Vertex first, Vertex second, Integer cost) {\n this.first = first;\n this.second = second;\n this.cost = cost;\n }",
"public BSPLine() {\n super();\n }",
"public BSPLine(float x1, float y1, float x2, float y2) {\n setLine(x1, y1, x2, y2);\n }",
"public Edge(Node from, Node to) {\n fromNode = from;\n toNode = to;\n }",
"public HalfEdge(String s, int q) { label1 = s; end = q; }",
"Edge(Vertex u, Vertex v) {\n From = u;\n To = v;\n\n }",
"public void addEdge(int start, int end);",
"public LineStroker() {\n }",
"public HalfEdge(int q) { end = q; }",
"public Edge(int start, int end, int weight) {\n this.start = start;\n this.end = end;\n this.weight = weight;\n }",
"public UndirectedEdge() {\n \tthis(null,null);\n\t}",
"public WeightedEdge(){\n\t\t\n\t}",
"KochLine(Point start, Point end){\n\t\tsuper(start,end);\n\t\tthis.p1=this.getStart();\n\t\tthis.p5=this.getEnd();\n\t\t\n\t}",
"public Edge(T node_1, T node_2,S label) {\n\t\tparent = node_1;\n\t\tchild = node_2;\n\t\tl = label;\n\t\tcheckRep();\n\t}",
"public Edge(Vertex from, Vertex to, int capacity){\r\n this.from = from;\r\n this.to = to;\r\n this.capacity = capacity;\r\n flow = 0;\r\n\r\n }",
"public Line(TwoDPoint p1, TwoDPoint p2) throws Exception\n {\n this(p1.x, p1.y, p2.x, p2.y);\n }",
"public Edge(Object vertex1, Object vertex2, int w){\n v1 = vertex1;\n v2 = vertex2;\n weight = w;\n }",
"public BSPLine(BSPPolygon poly) {\n setTo(poly);\n }",
"public Line(Point p1, Point p2) {\n super(p1, p2);\n this.p1 = p1;\n this.p2 = p2;\n }",
"TradeRoute(String aStartPoint, String anEndPoint, int anId){\n startPoint = aStartPoint;\n endPoint = anEndPoint;\n id = anId;\n }",
"public Edge build() {\n Utilities.checkArgument(this.first != null, \"First vertex cannot be null\");\n Utilities.checkArgument(this.cost != null, \"Cost of edge cannot be null\");\n\n return new Edge(this.first, this.second, this.cost);\n }",
"private Edge(int index1, int index2, float crease, boolean inFace) {\n this.index1 = index1;\n this.index2 = index2;\n this.crease = crease;\n this.inFace = inFace;\n }",
"public GeoLine(GeoPoint start, Color color, GeoPoint end ){\n super(start,color);\n this.setEnd(end);\n this.setEdgeColor(color);\n }",
"protected LineaAbstract(Point2D p1,Point2D p2){\n super(p1,p2);\n this.ColorRelleno=Color.BLACK;\n ColorRelleno=null;\n this.width=1.0F;\n isRelleno=false;\n isContinuo=true;\n isGradiente=false;\n }",
"public Edge(int start, int end, int capacity)\n {\n this.start = start;\n this.end = end;\n this.capacity = capacity;\n }",
"private TbusRoadGraph() {}",
"public Edge(int start, int end, int weight) {\n this.startVertex = start;\n this.endVertex = end;\n this.weight = weight;\n }",
"public OrderedEdge(int origin, int destination, double weight, Edge next) {\t\n\t\tsuper((origin < destination) ? origin : destination,\n\t\t\t (origin < destination) ? destination : origin,\n\t\t\t weight, next);\n\t}",
"public EdgeCrosser(S2Point a, S2Point b, S2Point c) {\n this(a, b);\n restartAt(c);\n }",
"public interface Edge\n{\n\t/**\n\t * Returns the node that the <i>head</i> of the head\n\t * is connected to.\n\t * @return The head Node.\n\t */\n\tpublic Node getHeadNode();\n\n\t/**\n\t * Returns the node that the <i>tail</i> of the edge\n\t * is connected to.\n\t * @return The tail Node.\n\t */\n\tpublic Node getTailNode();\n\n\t/**\n\t * Allows an object to be associated with the <code>Edge</code>\n\t * @param o The object to be set as the userObject\n\t */\n\tpublic void setUserObject(Object o);\n\n\t/**\n\t * Gets the userObject, previously set with <code>setUserObject(Object o)</code>\n\t * @return The userObject, or <code>null</code> if no object has been set.\n\t */\n\tpublic Object getUserObject();\n\n\t/**\n\t * Causes any information in the path that represents the <code>Egde</code>\n\t * to be cleared, such as origin location and any control points.\n\t */\n\tpublic void resetPath();\n\n\t/**\n\t * Sets the location of the start of the path that represents\n\t * the <code>Edge</code>.\n\t * @param x The horizontal location.\n\t * @param y The vertical location.\n\t */\n\tpublic void setPathOrigin(int x, int y);\n\n\t/**\n\t * Extends the <code>Edge</code> using the following control points to\n\t * form a Bezier curve extension to the end point (x3, y3).\n\t * @param x1 Horizontal location of control point 1\n\t * @param y1 Vertical location of control point 1\n\t * @param x2 Horizontal location of control point 2\n\t * @param y2 Vertical location of control point 2\n\t * @param x3 Horizontal location of the end point.\n\t * @param y3 Vertical location of the end point.\n\t */\n\tpublic void pathTo(int x1, int y1, int x2, int y2, int x3, int y3);\n\n\t/**\n\t * Extends the <code>Edge</code> to the specified location using\n\t * a straight line.\n\t * @param x The horizontal location of the end point.\n\t * @param y The vertical location of the end point.\n\t */\n\tpublic void pathTo(int x, int y);\n\n\t/**\n\t * Sets the <code>Edge's</code> arrowhead.\n\t * @param baseX The x location of the centre of the arrowhead baseline.\n\t * @param baseY The y location of the centre of the arrowhead tip.\n\t * @param tipX The x location of the tip of the arrowhead.\n\t * @param tipY The y location of the tip of the arrowhead.\n\t */\n\tpublic void setArrowHead(int baseX, int baseY, int tipX, int tipY);\n\n\t/**\n\t * Sets the <code>Edge's</code> arrowtail\n\t * @param baseX The x location of the centre of the arrowhead baseline.\n\t * @param baseY The y location of the centre of the arrowhead tip.\n\t * @param tipX The x location of the tip of the arrowhead.\n\t * @param tipY The y location of the tip of the arrowhead.\n\t */\n\tpublic void setArrowTail(int baseX, int baseY, int tipX, int tipY);\n\n\t/**\n\t * Sets the <code>Edge</code>'s label position.\n\t * @param x The horizontal location (in pixels).\n\t * @param y The vertical location (in pixels).\n\t */\n\tpublic void setLabelPosition(int x, int y);\n\n\t/**\n\t * Retrieves the position of the <code>Edge's</code> label.\n\t * @return A <code>Point</code> containing the position of\n\t * the label.\n\t */\n\tpublic Point getLabelPosition();\n\n\t/**\n\t * Gets the <code>Shape</code> that represents the <code>Edge</code>.\n\t * @return The <code>Shape</code> of the <code>Edge</code>.\n\t */\n\tpublic Shape getShape();\n\n\t/**\n\t * Gets the direction of the <code>Edge</code>. This is one of the\n\t * predefined direction from the <code>GraphModel</code> interface.\n\t * @return The direction of the <code>Edge</code>.\n\t */\n\tpublic int getDirection();\n\n\n}",
"public Edge(int w, Object a, Object b){\n\t\tweight = w;\n\t\tvertices = new VertexPair(a, b);\n\t\tpartner = null;\n\t\tnext = this;\n\t\tprev = this;\n\t}",
"public Line() {\n\t\t\n\t\tthis.point1 = null;\n\t\tthis.point2 = null;\n\t\tthis.distance = 0;\n\t}",
"public Segment2D(Point2D point1, Point2D point2) {\n this.point1 = point1;\n this.point2 = point2;\n double xr0 = point1.getX();\n double yr0 = point1.getY();\n double xr1 = point2.getX();\n double yr1 = point2.getY();\n\n // compute line equation: ax+by+c=0\n double dx = xr0 - xr1;\n double dy = yr0 - yr1;\n double ddx = (dx > 0) ? dx : -dx;\n double ddy = (dy > 0) ? dy : -dy;\n if (ddx < EPS) {\n this.a = 1.0;\n this.b = 0.0;\n this.c = -xr0;\n }\n else {\n if (ddy < EPS) {\n this.a = 0.0;\n this.b = 1.0;\n this.c = -yr0;\n }\n else {\n // real case. Let b=1.0 -> y+ax+c=0\n this.a = (yr0 - yr1) / (xr1 - xr0);\n this.b = 1.0;\n this.c = -yr0 - this.a * xr0;\n }\n }\n this.minx = Math.min(this.point1.getX(), this.point2.getX());\n this.maxx = Math.max(this.point1.getX(), this.point2.getX());\n\n this.miny = Math.min(this.point1.getY(), this.point2.getY());\n this.maxy = Math.max(this.point1.getY(), this.point2.getY());\n }",
"public Line(double x1, double y1, double x2, double y2) {\r\n this(new Point(x1, y1), new Point(x2, y2));\r\n }",
"public Edge(int from, int to, int weight) {\n this.from = from;\n this.to = to;\n this.weight = weight;\n }",
"public GraphEdge(int from, int to, double costVar)\r\n {\r\n indexFrom = from;\r\n indexTo = to;\r\n cost = costVar;\r\n }",
"public Line(Point startingPoint, Point endingPoint) {\n this.startingPoint = startingPoint;\n this.endingPoint = endingPoint;\n }",
"void setupEdge(EdgeGraph edge) {\n\n\t\tif (UserParameters.socialInteraction) updateCrowdness(edge);\n\t\tcurrentEdge = edge;\n\t\t//transform GeomPlanarGraphEdge in Linestring\n\t\tLineString line = edge.getLine();\n\t\t//index the Linestring\n\t\tsegment = new LengthIndexedLine(line);\n\t\tstartIndex = segment.getStartIndex();\n\t\tendIndex = segment.getEndIndex();\n\t\tlinkDirection = 1;\n\n\t\t// check to ensure that Agent is moving in the right direction (direction)\n\t\tdouble distanceToStart = line.getStartPoint().distance(agentLocation.geometry);\n\t\tdouble distanceToEnd = line.getEndPoint().distance(agentLocation.geometry);\n\n\t\tif (distanceToStart <= distanceToEnd) {\n\t\t\t// closer to start\n\t\t\tcurrentIndex = startIndex;\n\t\t\tlinkDirection = 1;\n\t\t}\n\t\telse if (distanceToEnd < distanceToStart) {\n\t\t\t// closer to end\n\t\t\tcurrentIndex = endIndex;\n\t\t\tlinkDirection = -1;\n\t\t}\n\n\t}",
"public Edge(int from, int to, Integer weight) {\n this.from = from;\n this.to = to;\n this.weight = weight;\n }",
"public Edge(Integer id, Vertex source, Vertex destination, double distance, double traffic) {\n this.id = id;\n this.source = source;\n this.destination = destination;\n this.distance = distance;\n this.traffic = traffic;\n }",
"public Line(Point start, Point end) {\r\n this.start = new Point(start.getX(), start.getY());\r\n this.end = new Point(end.getX(), end.getY());\r\n if (this.start.getX() > this.end.getX()) {\r\n // swap points because end is left then start\r\n Point temp = this.start;\r\n this.start = this.end;\r\n this.end = temp;\r\n }\r\n }",
"public Edge(int w, int s, int e) {\n\t\tweight = w;\n\t\tstartVertex = s;\n\t\tendVertex = e;\n\t}",
"public Edge(Edge other) {\n __isset_bitfield = other.__isset_bitfield;\n this.vertexOrigin = other.vertexOrigin;\n this.vertexDestiny = other.vertexDestiny;\n if (other.isSetDescription()) {\n this.description = other.description;\n }\n this.weight = other.weight;\n this.isDirected = other.isDirected;\n }",
"private Road()\n\t{\n\t\t\n\t}",
"public Road(Place A, Place B)\n\t{\n\t\tEmpire roadEmpire = Empire.getInstance();\n\t\t\n\t\tint intXA, intYA, intXB, intYB;\n\t\tdouble xA, yA, xB, yB;\n\t\t\n\t\tintXA = A.getXPosition();\n\t\tintYA = A.getYPosition();\n\t\tintXB = B.getXPosition();\n\t\tintYB = B.getYPosition();\n\t\t\n\t\txA = (double) intXA;\n\t\tyA = (double) intYA;\n\t\txB = (double) intXB;\n\t\tyB = (double) intYB;\n\t\t\n\t\taPoint = new Point((int) xA, (int) yA);\n\t\tbPoint = new Point((int) xB, (int) yB);\n\t\t\n\t\taName = A.getName();\n\t\tbName = B.getName();\n\t\t\n\t\tlength = Math.sqrt((((xA-xB)*(xA-xB) + (yA - yB)*(yA - yB))));\n\t\tkFactor = (yB - yA)/(xB-xA);\n\t\t\n\t\troad.add(new Point(intXA, intYA));\n\t\t\n\t\tString keyA = String.valueOf(intXA) + \"-\" + String.valueOf(intYA);\n\t\tif(!roadEmpire.POINTS.containsKey(keyA));\n\t\t{\n\t\t\tMapPoint m = new MapPoint(intXA,intYA);\n\t\t\troadEmpire.POINTS.put(keyA, m);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tif((xA == xB) && (yA == yB))\n\t\t{\n\t\t\tdirection = Direction.NONE;\n\t\t}\n\t\telse if(xA == xB)\n\t\t{\n\t\t\tif(yB > yA)\n\t\t\t{\n\t\t\t\tdirection = Direction.SOUTH;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tdirection = Direction.NORTH;\n\t\t\t}\t\t\n\t\t\t\n\t\t\tfor (int i=1; i<(int)length; i++)\n\t\t\t{\n\t\t\t\tint x = (int) xA;\n\t\t\t\tint y;\n\t\t\t\t\n\t\t\t\tif(yB > yA)\n\t\t\t\t{\n\t\t\t\t\ty = ((int)yA) + i;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ty = ((int)yA) - i;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\troad.add(new Point(x,y));\n\t\t\t\t\n\t\t\t\tString key = String.valueOf(x) + \"-\" + String.valueOf(y);\n\t\t\t\tif(!roadEmpire.POINTS.containsKey(key));\n\t\t\t\t{\n\t\t\t\t\tMapPoint m = new MapPoint(x,y);\n\t\t\t\t\troadEmpire.POINTS.put(key, m);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\telse if(yA == yB)\n\t\t{\n\t\t\tif(xB > xA)\n\t\t\t{\n\t\t\t\tdirection = Direction.EAST;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tdirection = Direction.WEST;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i=1; i<(int)length; i++)\n\t\t\t{\n\t\t\t\tint x;\n\t\t\t\tint y = (int)yA;\n\t\t\t\t\n\t\t\t\tif(xB > xA)\n\t\t\t\t{\n\t\t\t\t\tx = ((int)xA) + i;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tx = ((int)xA) - i;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\troad.add(new Point(x,y));\n\t\t\t\t\n\t\t\t\tString key = String.valueOf(x) + \"-\" + String.valueOf(y);\n\t\t\t\tif(!roadEmpire.POINTS.containsKey(key));\n\t\t\t\t{\n\t\t\t\t\tMapPoint m = new MapPoint(x,y);\n\t\t\t\t\troadEmpire.POINTS.put(key, m);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\tif((xB > xA) && (yB > yA))\n\t\t\t{\n\t\t\t\tdirection = Direction.SOUTH_EAST;\n\t\t\t}\n\t\t\telse if((xB > xA) && (yB < yA))\n\t\t\t{\t\n\t\t\t\tdirection = Direction.NORTH_EAST;\n\t\t\t}\n\t\t\telse if((xB < xA) && (yB > yA))\n\t\t\t{\n\t\t\t\tdirection = Direction.SOUTH_WEST;\n\t\t\t}\n\t\t\telse if((xB < xA) && (yB < yA))\n\t\t\t{\n\t\t\t\tdirection = Direction.NORTH_WEST;\n\t\t\t}\n\t\t\t\t\n\t\t\tfor (int i=1; i<(int)length; i++)\n\t\t\t{\n\t\t\t\tint x;\n\t\t\t\tint y;\n\t\t\t\t\n\t\t\t\tdouble c = (double) i;\n\t\t\t\tdouble a = c/(Math.sqrt((kFactor*kFactor + 1.0))); \n\t\t\t\tdouble b = Math.abs(a*kFactor);\n\t\t\t\t\n\t\t\t\tif((xB > xA) && (yB > yA))\n\t\t\t\t{\n\t\t\t\t\tx = (int)(xA + a);\n\t\t\t\t\ty = (int)(yA + b);\n\t\t\t\t}\n\t\t\t\telse if((xB > xA) && (yB < yA))\n\t\t\t\t{\n\t\t\t\t\tx = (int)(xA + a);\n\t\t\t\t\ty = (int)(yA - b);\n\t\t\t\t}\n\t\t\t\telse if((xB < xA) && (yB > yA))\n\t\t\t\t{\n\t\t\t\t\tx = (int)(xA - a);\n\t\t\t\t\ty = (int)(yA + b);\n\t\t\t\t}\n\t\t\t\telse if((xB < xA) && (yB < yA))\n\t\t\t\t{\n\t\t\t\t\tx = (int)(xA - a);\n\t\t\t\t\ty = (int)(yA - b);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tx = 100;\n\t\t\t\t\ty = 100;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\troad.add(new Point (x,y));\n\t\t\t\t\n\t\t\t\tString key = String.valueOf(x) + \"-\" + String.valueOf(y);\n\t\t\t\tif(!roadEmpire.POINTS.containsKey(key));\n\t\t\t\t{\n\t\t\t\t\tMapPoint m = new MapPoint(x,y);\n\t\t\t\t\troadEmpire.POINTS.put(key, m);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}\n\t\t}\n\t\t\n\t\troad.add(new Point(intXB, intYB));\n\t\t\n\t\tString keyB = String.valueOf(intXB) + \"-\" + String.valueOf(intYB);\n\t\tif(!roadEmpire.POINTS.containsKey(keyB));\n\t\t{\n\t\t\tMapPoint m = new MapPoint(intXB,intYB);\n\t\t\troadEmpire.POINTS.put(keyB, m);\n\t\t}\n\t}",
"public PhysicsLine(PointF start, PointF end) {\n setEndPoints(start, end);\n }",
"EndPoint createEndPoint();",
"public Edge(){\n\t\tvertices = null;\n\t\tnext = this;\n\t\tprev = this;\n\t\tpartner = null;\n\t\tweight = 0;\n\t}",
"public BoundaryEdgeAttraction(double edgeLength, Boundaries boundaries) {\n super(edgeLength);\n this.boundaries = boundaries;\n }",
"public Edge(Vertex origen, Vertex destino, double distancia){\n this.origen=origen;\n this.destino=destino;\n this.distancia=distancia;\n }",
"public Line (double x0, double y0, double x1, double y1) {\n this.x0 = x0;\n this.y0 = y0;\n this.x1 = x1;\n this.y1 = y1;\n }",
"void buildRoad(EdgeLocation edge, boolean free);",
"public RouteSegment(GeoPoint startPoint, GeoPoint endPoint,\r\n\t\t\tint maneuverType, int distance) {\r\n\t\tthis.startPoint = startPoint;\r\n\t\tthis.endPoint = endPoint;\r\n\t\tthis.maneuverType = maneuverType;\r\n\t\tthis.distance = distance;\r\n\t}",
"Arrow(double x1, double y1, double x2, double y2, double nodeRadius, boolean weighted, double weight) {\n this.x1 = x1;\n this.x2 = x2;\n this.y1 = y1;\n this.y2 = y2;\n this.weight = weight;\n\n // normalized vector calculation\n double vectorX = x2 - x1;\n double vectorY = y2 - y1;\n double length = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));\n vectorX /= length;\n vectorY /= length;\n\n // line ends coordinates\n x1 += (nodeRadius + 2) * vectorX;\n y1 += (nodeRadius + 2) * vectorY;\n x2 -= (nodeRadius + 2) * vectorX;\n y2 -= (nodeRadius + 2) * vectorY;\n mainLine = new Line(x1, y1, x2, y2);\n mainLine.setStrokeWidth(3);\n\n /*\n arrow wings coordinates calculated\n from main line end with rotation matrix\n */\n double xWproj = -ARROW_WING * vectorX;\n double yWproj = -ARROW_WING * vectorY;\n double x = xWproj * COS_WING - yWproj * SIN_WING;\n double y = xWproj * SIN_WING + yWproj * COS_WING;\n firstWing = new Line(x2, y2, x2 + x, y2 + y);\n firstWing.setStrokeWidth(2);\n\n x = xWproj * COS_WING + yWproj * SIN_WING;\n y = -xWproj * SIN_WING + yWproj * COS_WING;\n secondWing = new Line(x2, y2, x2 + x, y2 + y);\n secondWing.setStrokeWidth(2);\n\n // text configuration\n if (((vectorX >= 0) && (vectorY >= 0)) //text doesn't cross the arrow\n || ((vectorX <= 0) && (vectorY <= 0))) {\n weightText = new Text((x1 + x2) / 2., (y1 + y2) / 2.,\n String.format(\"%.2f\", weight));\n }\n else { //text crosses the arrow, need to move to the left\n weightText = new Text((x1 + x2) / 2. - 30, (y1 + y2) / 2.,\n String.format(\"%.2f\", weight));\n }\n weightText.setFont(new Font(15));\n weightText.setFill(TEXT_COLOR);\n weightText.setStroke(Color.BLACK);\n weightText.setStrokeWidth(0.5);\n\n // text is not weighted so nothig but main line should be displayed\n if (!weighted){\n firstWing.setVisible(false);\n secondWing.setVisible(false);\n weightText.setVisible(false);\n }\n\n // set initialization flag\n initialized = true;\n }",
"void addEdge(int x, int y);",
"private Builder(de.hpi.msd.salsa.serde.avro.Edge other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.userId)) {\n this.userId = data().deepCopy(fields()[0].schema(), other.userId);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.tweedId)) {\n this.tweedId = data().deepCopy(fields()[1].schema(), other.tweedId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.edgeType)) {\n this.edgeType = data().deepCopy(fields()[2].schema(), other.edgeType);\n fieldSetFlags()[2] = true;\n }\n }",
"private ArrowPoint create(double xBeg, double yBeg, double xEnd, double yEnd){\n ArrowPoint b = new ArrowPoint(xBeg, yBeg);\n ArrowPoint e = new ArrowPoint(xEnd, yEnd);\n ArrowLine l = new ArrowLine(b, e);\n e.rotateProperty().bind(l.rotateProperty());\n a.addLine(b, e, l);\n return e;\n }",
"public Graph(String start, String end) {\n findCoordinates(findTime(start, end));\n constructGraph();\n }",
"public Graph()\r\n {\r\n this( \"x\", \"y\" );\r\n }",
"public Edge(Node source, Node sink) {\n\t\tsuper();\n\t\t_source = source;\n\t\t_sink = sink;\n\t}",
"public Edge(int sv, int dv, int d) // constructor\n {\n srcVert = sv;\n destVert = dv;\n distance = d;\n }",
"public EdgeImpl(SimpleFeature lineStringFeature) {\n super((Integer) lineStringFeature.getAttribute(\"edgeId\"));\n this.displayName = (String) lineStringFeature.getAttribute(\"name\");\n this.url = (String) lineStringFeature.getAttribute(\"url\");\n this.lineString = (LineString) lineStringFeature.getDefaultGeometry();\n this.selected = false; // Default value\n this.feature = buildFeature();\n this.startNode = findNodeForPoint(lineString.getStartPoint());\n this.endNode = findNodeForPoint(lineString.getEndPoint());\n }",
"public EdgeImpl(Edge originalEdge, LineString newLineString) {\n super(originalEdge.getId());\n this.displayName = originalEdge.getDisplayName();\n this.url = originalEdge.getUrl();\n this.lineString = newLineString;\n this.selected = false;\n this.feature = buildFeature();\n }",
"public Edge(String[] details){\n\t\tthis.EDGE_ID = Integer.parseInt(details[0]);\n\t\tthis.edgeWeight = Integer.parseInt(details[1]);\n\t}",
"public void addEdge(int start, int end, double weight);",
"public Edge3D(I3DVertex start, I3DVertex end) {\r\n\t\tthis.start = start;\r\n\t\tthis.end = end;\r\n\t}",
"public SideConnection(Side side1, Side side2) {\r\n\t\tthis.side1 = side1;\r\n\t\tthis.side2 = side2;\r\n\t}",
"public Edge(L source,L target,Integer weight) {\r\n \tsou=source;\r\n \ttar=target;\r\n \twei=weight;\r\n \tcheckRep();\r\n }",
"public Line(){\n\t\t\n\t}",
"public EdgeImpl(Vertex sourceVertex, Vertex targetVertex, Graph graph) {\n this.sourceVertex = sourceVertex;\n this.targetVertex = targetVertex;\n this.graph = graph;\n }",
"Line(Dot StartDot,Dot EndDot,int index){\n \tthis.StartDot = StartDot;\n \tthis.EndDot = EndDot;\n \tthis.sx = StartDot.getX();\n \tthis.sy = StartDot.getY();\n \tthis.ex = EndDot.getX();\n \tthis.ey = EndDot.getY();\n \tthis.Angle = Math.atan2((ey - sy),(ex - sx)); \n// \tif((ey - sy) > 0 && (ex - sx) < 0) Angle += Math.PI;\n// \tif((ey - sy) < 0 && (ex - sx) < 0) Angle += Math.PI;\n// \tif((ey - sy) < 0 && (ex - sx) > 0) Angle += Math.PI * 2;\n// \tif((ex-sx) < 0) Angle += Math.PI;\n// \tif((ex - sx) > 0 && (ey - sy) < 0) Angle += Math.PI * 2;\n \tif(Angle < 0) Angle += Math.PI * 2;\n \tthis.rightPoly = null;\n \tthis.leftPoly = null;\n \tthis.index = index;\n }",
"private Bus constructBus(String line, Point point) {\n\t\t// parse the information\n\t\tStringTokenizer tokenizer = new StringTokenizer(line,\",\");\n \tint id = Integer.parseInt(tokenizer.nextToken().trim());\n \tString name = tokenizer.nextToken();\n \tif (name.startsWith(\"\\\"\")) {\n \t\twhile (!name.endsWith(\"\\\"\")) {\n \t\t\tname = name + \",\" + tokenizer.nextToken();\n \t\t}\n \t}\n \t/*int area = */Integer.parseInt(tokenizer.nextToken().trim());\n \t/*int zone = */Integer.parseInt(tokenizer.nextToken().trim());\n \tdouble voltageMagnitude = Double.parseDouble(tokenizer.nextToken().trim());\n \tdouble voltageAngle = Double.parseDouble(tokenizer.nextToken().trim());\n \tdouble baseVoltageKiloVolts = Double.parseDouble(tokenizer.nextToken().trim());\n \tdouble remoteVoltage = Double.parseDouble(tokenizer.nextToken().trim());\n \tint status = Integer.parseInt(tokenizer.nextToken().trim());\n\t\t\n \tBus bus = registerBus(id);\n bus.setAttribute(Bus.NAME_KEY,name);\n bus.setVoltagePU(voltageMagnitude);\n bus.setPhaseAngle(voltageAngle);\n bus.setSystemVoltageKV(baseVoltageKiloVolts);\n bus.setRemoteVoltagePU(remoteVoltage);\n bus.setStatus(status == 1 ? true : false);\n \tbus.setCoordinate(point == null ? new PointImpl(0,0) : point); \t\n \treturn bus;\t\t\n\t}",
"public Edge(DomainClass source, DomainClass target, EdgeType type, Direction direction) {\n this.source = source;\n this.target = target;\n this.type = type;\n this.direction = direction;\n }",
"public Edge(Cell source, Cell target) {\n\n this.source = source;\n this.target = target;\n this.addedMidPoints = false;\n midLineX = new SimpleDoubleProperty(0);\n\n DoubleBinding endX = source.translateXProperty().add(source.widthProperty().divide(2.0));\n DoubleBinding endY = source.translateYProperty().add(source.heightProperty());\n\n DoubleBinding startX = target.translateXProperty().add(target.widthProperty().divide(2.0));\n DoubleBinding startY = target.translateYProperty().add(0);\n\n path = new DirectedPath(startX, startY, endX, endY);\n checkAndAddMidPoints(startY, endY);\n path.addPoint(endX, endY.add(TreeLayout.V_SPACING / 4.));\n\n source.translateXProperty().addListener((observable, oldValue, newValue) -> {\n checkAndAddMidPoints(startY, endY);\n });\n\n target.translateYProperty().addListener((observable, oldValue, newValue) -> {\n checkAndAddMidPoints(startY, endY);\n });\n\n source.translateXProperty().addListener((observable, oldValue, newValue) -> {\n checkAndAddMidPoints(startY, endY);\n });\n target.translateYProperty().addListener((observable, oldValue, newValue) -> {\n checkAndAddMidPoints(startY, endY);\n });\n\n // Change the X of the midpoints depending on whether the target is above, below, or at the same\n // level as the source\n midLineX.bind(new When(target.rowLocationProperty.subtract(source.rowLocationProperty).lessThan(0))\n .then(new When(target.columnLocationProperty.subtract(source.columnLocationProperty).greaterThan(0))\n .then(endX.add(TreeLayout.H_SPACING / 2.))\n .otherwise(new When(target.columnLocationProperty.subtract(source.columnLocationProperty).lessThan(0))\n .then(startX.add(TreeLayout.H_SPACING / 2.))\n .otherwise(startX)))\n .otherwise(new When(target.columnLocationProperty.subtract(source.columnLocationProperty).greaterThan(0))\n .then(endX.add(TreeLayout.H_SPACING / 2.))\n .otherwise(new When(target.columnLocationProperty.subtract(source.columnLocationProperty).lessThan(0))\n .then(startX.add(TreeLayout.H_SPACING / 2.))\n .otherwise(startX))));\n\n if(source.getCellType() != Cell.CellType.BOTH || target.getCellType() != Cell.CellType.BOTH){\n path.setDashed(true);\n }\n getChildren().add(path);\n\n visible = new SimpleBooleanProperty(false);\n visibleProperty().bind(source.visibleProperty().and(target.visibleProperty())\n .and(allVisible.or(visible)));\n\n source.edges.add(this);\n target.edges.add(this);\n\n }",
"public OpenPolyLine(List<Point> points) \n\t{\n\t\tsuper(points);\n\t}",
"public EdgesRecord() {\n super(Edges.EDGES);\n }",
"public IEdge addEdge(String from, String to, Double cost);",
"public Bus(int busNo, int lastStop, int nextStop, double lastStopArrivalTime) {\r\n\t\tsuper();\r\n\t\tthis.busNo = busNo;\r\n\t\tthis.lastStop = lastStop;\r\n\t\tthis.nextStop = nextStop;\r\n\t\tthis.lastStopArrivalTime = lastStopArrivalTime;\r\n\t\tthis.busAtStop = 'N';\r\n\t\tthis.allBusesSync='Y';\r\n\t}",
"public EvolutionaryVehicleRouter() {\n super();\n initializeShippingPoints();\n individual_count = 0;\n generation_count = 0;\n }",
"public Edge(Vertex startDay, Vertex endDay, double cost, String make, String model) {\n\t\t\n\t\tthis.startDay = startDay;\n\t\tthis.endDay = endDay;\n\t\tthis.cost = cost;\n\t\tthis.make = make;\n\t\tthis.model = model;\n\t\t\n\t}"
] |
[
"0.7058547",
"0.68670356",
"0.6855506",
"0.6746196",
"0.6709936",
"0.6568107",
"0.65037596",
"0.6501183",
"0.64493114",
"0.64344877",
"0.6375939",
"0.63147455",
"0.6303185",
"0.62696695",
"0.62106806",
"0.6167767",
"0.61632514",
"0.6158235",
"0.6143336",
"0.613437",
"0.61214066",
"0.6112426",
"0.6097918",
"0.60869986",
"0.6060565",
"0.60328424",
"0.6020155",
"0.6015071",
"0.6001878",
"0.5998765",
"0.59878653",
"0.59573406",
"0.5947448",
"0.5944912",
"0.59356654",
"0.5925737",
"0.59101903",
"0.59097934",
"0.5904852",
"0.5900899",
"0.5894352",
"0.5890013",
"0.58852154",
"0.5880725",
"0.58601636",
"0.5856095",
"0.583988",
"0.58320725",
"0.5819403",
"0.5815087",
"0.57954633",
"0.5785023",
"0.5784345",
"0.57607615",
"0.575502",
"0.5741379",
"0.5732242",
"0.5717685",
"0.5713624",
"0.57075125",
"0.56879467",
"0.5679108",
"0.56750315",
"0.5673405",
"0.56678855",
"0.56664884",
"0.5659661",
"0.565577",
"0.56372",
"0.56270486",
"0.5624335",
"0.56209946",
"0.5614419",
"0.5586396",
"0.5582613",
"0.5575526",
"0.5574781",
"0.55727696",
"0.55691934",
"0.55658895",
"0.55574805",
"0.55540437",
"0.5548991",
"0.5540273",
"0.55364215",
"0.55332917",
"0.55292606",
"0.55290544",
"0.5523716",
"0.55210054",
"0.55153686",
"0.5510665",
"0.54998314",
"0.549494",
"0.54934645",
"0.54749316",
"0.5474294",
"0.5470125",
"0.5465928",
"0.54643357"
] |
0.75149894
|
0
|
These are all the getter methods for the endpoints and the busline
|
public GraphNode firstEndpoint(){
return first;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public String toString() {\n return endpoint;\n }",
"public Vertex<V>[] getEndpoints() { return endpoints; }",
"public List<Endpoint> getEndpoints()\n\t\t{\n\t\t\treturn endpointsList;\n\t\t}",
"protected abstract String getBaseEndpoint();",
"public String getEndpoint() {\n return this.endpoint;\n }",
"public String getEndpoint() {\n return this.endpoint;\n }",
"public String endpoint() {\n return this.endpoint;\n }",
"public Object getTarget() {\n return this.endpoints;\n }",
"public Map<Range, List<EndPoint>> getRangeToEndpointMap()\n {\n return ssProxy.getRangeToEndPointMap();\n }",
"Map<String, String> getEndpointMap();",
"EndpointDetails getEndpointDetails();",
"String endpoint();",
"public String getEndPoint() {\n return _endPoint;\n }",
"public EndPoint getEndPoint() {\r\n\t\treturn endPoint;\r\n\t}",
"protected abstract String getBaseEndpointPath();",
"public interface IFlightEndPoints {\n \n Integer getFlightEndPointId();\n void setFlightEndPointId(Integer flightEndPointId);\n \n String getOriginAirportShortName();\n void setOriginAirportShortName(String shortName);\n \n double getDepartureDelay();\n void setDepartureDelay(double departureDelay);\n Date getDepartureTime();\n void setDepartureTime(Date date);\n \n String getDestAirportShortName();\n void setDestAirportShortName(String shortName);\n \n double getArrivalDelay();\n void setArrivalDelay(double arrivalDelay);\n Date getArrivalTime();\n void setArrivalTime(Date date); \n}",
"public String endpointUri() {\n return this.endpointUri;\n }",
"private Future<List<Record>> getAllEndpoints() {\n Future<List<Record>> future = Future.future();\n discovery.getRecords(record -> record.getType().equals(HttpEndpoint.TYPE),\n future.completer());\n return future;\n }",
"public boolean hasEndpoint2() { return true; }",
"@Override\n public List<ServiceEndpoint> listServiceEndpoints() {\n return new ArrayList<>(serviceEndpoints.values());\n }",
"public com.quikj.server.app.EndPointInterface getEndpoint() {\n\t\treturn endpoint;\n\t}",
"@GET\n @Path(\"/endpoints\")\n @Produces(ApiOverviewRestEndpoint.MEDIA_TYPE_JSON_V1)\n @Cache\n Response getAvailableEndpoints(@Context final Dispatcher dispatcher);",
"public String getEndpoint() {\n\t\treturn null;\n\t}",
"public IEndPointData getLocalEndPoint();",
"public com.microsoft.schemas.xrm._2014.contracts.EndpointCollection getEndpoints()\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 return null;\r\n }\r\n return target;\r\n }\r\n }",
"public EndpointService endpointService() {\n return this.endpointService;\n }",
"public boolean hasEndpoint() { return true; }",
"public interface AddressEndpoint {\n\n @GET(\"addresses\")\n Observable<MultiAddressResponse> getMultiple(@Query(\"latitude\") Double latitude,\n @Query(\"longitude\") Double longitude, @Query(\"radius\") Integer radius);\n\n @GET(\"addresses\")\n Observable<SingleAddressResponse> getSingle(@Query(\"latitude\") Double latitude,\n @Query(\"longitude\") Double longitude, @Query(\"street_1\") String street1,\n @Query(\"street_2\") String street2, @Query(\"city\") String city,\n @Query(\"state_code\") String state, @Query(\"zip_code\") String zip);\n }",
"public String getEndpointInterface()\r\n {\r\n return endpointInterface;\r\n }",
"public abstract EndpointReference readEndpointReference(javax.xml.transform.Source eprInfoset);",
"public void setEndpoints(String... endpoints) {\n this.endpoints = endpoints;\n }",
"@java.lang.Override\n public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpointOrBuilder getEndpointOrBuilder() {\n return getEndpoint();\n }",
"public interface ApiEndPointsAndPatameters {\n\t\n//\t/** Resource path for api resources */\n//\tString API_PREFIX = \"/api\";\n//\n\t/** Resource path for API version 1 */\n\tString API_VERSION_1 = \"/v1\";\n//\n//\t/** Resource path to get available power plants. */\n//\tString POWER_PLANT_PATH = \"/powerPlant\";\n//\n//\t/** Resource path to get power plant data for a given power plant id. */\n//\tString POWER_PLANT_DATA_PATH = \"/{id}\";\n//\n//\tString POWER_PLANT_DETAILS = \"/details\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_DAY = \"/sumByDay\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_WEEK = \"/sumByWeek\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_MONTH = \"/sumByMonth\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_YEAR = \"/sumByYear\";\n//\t\n//\tString POWER_PLANT_DATA_NEXT_HOUR_FORECAST = \"/nextHourForecast\";\n//\t\n//\tString POWER_PLANT_DATA_NEXT_DAY_FORECAST = \"/nextDayForecast\";\n//\n//\t/** Query parameter for filtering by start date. */\n//\tString QUERY_PARAMETER_START_DATE = \"startDate\";\n//\n//\t/** Query parameter for filtering by end date. */\n//\tString QUERY_PARAMETER_END_DATE = \"endDate\";\n//\n//\t/** Query parameter for filtering by power plant data type. */\n//\tString QUERY_PARAMETER_DATA_TYPE = \"dataType\";\n//\t\n//\t\n\t\n\t\n\t/** Query parameter for filtering by power plant data type. */\n\tString QUERY_AUTHENTICATION_ID = \"Authentication-ID\";\n\t\n\t/** Query parameter for filtering by power plant data type. */\n\tString QUERY_USER_PASSWORD = \"UserPassword\";\n\t\n\t/** Query parameter for filtering by power plant data type. */\n\tString QUERY_AUTHORISATION_ID = \"authorisation-id\";\n\t\n\t/** Resource path to get a list to the components a User has access to. */\n\tString USER_COMPONENT_LIST = \"/UserComponentLists\";\n\t\n\t/** Resource path to get a list of available resources for a component. */\n\tString DATA_LIST = \"/DataLists\";\n\t\n\t/** Resource path to authenticate. */\n\tString AUTHENTICATION = \"/authentication\";\n\t\n\t/** Resource path to logout. */\n\tString LOGOUT = \"/logout\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString COMPONENT_ID_PATH = \"/{cId}\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString SIDE_PATH = \"/{side}\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString TYPE_PATH = \"/{type}\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString DATE_PATH = \"/{date}\";\n}",
"List<ManagedEndpoint> all();",
"@java.lang.Override\n public boolean hasAddressList() {\n return endpointConfigCase_ == 1;\n }",
"@Override\n public EndPointResponseDTO getEndPointLog() {\n\n //getting all called apis\n List<Logger> loggers = loggerRepository.findAll();\n List<EndPointLoggerDTO> endPointLoggerDTOs;\n ModelMapper modelMapper = new ModelMapper();\n\n //decoding header and bodies, mapping o dto class\n endPointLoggerDTOs = loggers.stream().map(n -> {\n n.setHeader(getDecod(n.getHeader()));\n n.setBody(getDecod(n.getBody()));\n return modelMapper.map(n, EndPointLoggerDTO.class);\n }).collect(Collectors.toList());\n\n //wrapping dto to response object\n EndPointResponseDTO endPointResponseDTO = new EndPointResponseDTO();\n endPointResponseDTO.setCount(endPointLoggerDTOs.size()/2);\n endPointResponseDTO.setEndPointLoggerDTOList(endPointLoggerDTOs);\n\n return endPointResponseDTO;\n }",
"public String endpointUrl() {\n return this.endpointUrl;\n }",
"public interface RealTimeTransportApi {\n\n @GET(\"busstopinformation\")\n Call<PublicStopListResponse> listAllStops(@Query(\"operator\") String operator);\n\n @GET(\"realtimebusinformation\")\n Call<RealtimeRouteResponse> getRealtimeInfo(@Query(\"stopid\") String stopId);\n\n}",
"public Set<EndpointInterface> getEndpointInterfaces() {\n return endpointInterfaces;\n }",
"@java.lang.Override\n public boolean hasAddressList() {\n return endpointConfigCase_ == 1;\n }",
"public String endpointName() {\n return this.endpointName;\n }",
"@Override\n\tpublic ArrayList<Edge<Object>> getPath(String startNode, String endNode) {\n\t\treturn null;\n\t}",
"public ArrayList<Coordinate> transportLinePath()\r\n {\r\n Coordinate next_street1 = null;\r\n Coordinate next_street2 = null;\r\n Street next_street = null;\r\n ArrayList<Coordinate> line_coordinates = new ArrayList<Coordinate>();\r\n\r\n for (int i = 0; i < getStreetsMap().size(); i++)\r\n {\r\n Street s = getStreetsMap().get(i);\r\n Coordinate this_street1 = s.getCoordinates().get(0);\r\n Coordinate this_street2 = s.getCoordinates().get(2);\r\n\r\n if (i + 1 < getStreetsMap().size())\r\n {\r\n next_street = getStreetsMap().get(i+1);\r\n next_street1 = next_street.getCoordinates().get(0);\r\n next_street2 = next_street.getCoordinates().get(2);\r\n }\r\n else\r\n {\r\n break;\r\n }\r\n\r\n for (Stop stop : getStopsMap())\r\n {\r\n if (stop.getStreet().equals(s))\r\n {\r\n line_coordinates.add(stop.getCoordinate());\r\n }\r\n }\r\n\r\n if (s.getCoordinates().get(1) != null)\r\n {\r\n line_coordinates.add(s.getCoordinates().get(1));\r\n }\r\n\r\n //11\r\n if (this_street1.getX() == next_street1.getX() && this_street1.getY() == next_street1.getY())\r\n {\r\n line_coordinates.add(this_street1);\r\n }\r\n //12\r\n else if (this_street1.getX() == next_street2.getX() && this_street1.getY() == next_street2.getY())\r\n {\r\n line_coordinates.add(this_street1);\r\n }\r\n // 21\r\n else if (this_street2.getX() == next_street1.getX() && this_street2.getY() == next_street1.getY())\r\n {\r\n line_coordinates.add(this_street2);\r\n }\r\n //22\r\n else if (this_street2.getX() == next_street2.getX() && this_street2.getY() == next_street2.getY())\r\n {\r\n line_coordinates.add(this_street2);\r\n }\r\n\r\n }\r\n\r\n line_coordinates.add(getStopsMap().get(getStopsMap().size()-1).getCoordinate());\r\n return line_coordinates;\r\n }",
"String serviceEndpoint();",
"@Override\r\n public List<PathSegment> getPathSegments() {\n return pathSegments;\r\n }",
"protected Set<Endpoint> getDiscoveredEndpoints() {\n return new HashSet<>(mDiscoveredEndpoints.values());\n }",
"public AGateway getGateway()\r\n/* 16: */ {\r\n/* 17:36 */ return this.gateway;\r\n/* 18: */ }",
"io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint getEndpoint();",
"public interface NextBusXmlFeed {\n\n @GET(\"/service/publicXMLFeed?command=agencyList\")\n Call<AgenciesResponse> agencyList();\n\n @GET(\"/service/publicXMLFeed?command=routeList\")\n Call<RoutesResponse> routeList(@Query(\"a\") final String agency);\n\n @GET(\"/service/publicXMLFeed?command=routeConfig\")\n Call<RouteConfigResponse> routeConfig(@Query(\"a\") final String agency, @Query(\"r\") final String route);\n\n @GET(\"/service/publicXMLFeed?command=predictions\")\n Call<PredictionResponse> predictions(@Query(\"a\") final String agency, @Query(\"r\") final String route, @Query(\"s\") final String stop);\n}",
"public Observable<Stop> getEndPoints() {\n return loadRoutesData()\n .flatMap(availableRoutes ->\n Observable.from(availableRoutes.routes()))\n .flatMap(route -> Observable.from(route.segments()).last())\n .map(segment -> segment.stops().get(segment.stops().size() - 1));\n\n }",
"public interface EndpointsApi {\n\n @GET(ConstantesRestApi.URL_GET_FOLOWS_MEDIA_RECENT)\n Call<MascotasResponse> getRecentMedia(@Path(\"user-id\") String id);\n\n @GET(ConstantesRestApi.URL_GET_PROFILE_USER_WITH_ID)\n Call<MascotasResponse> getProfile(@Path(\"user-id\") String id);\n\n @GET(ConstantesRestApi.URL_GET_FOLLOWS)\n Call<MascotasResponse> getFollows();\n\n @GET(ConstantesRestApi.URL_GET_FOLOWS_MEDIA_RECENT)\n Call<MascotasResponse> getFollowsMediaRecent(@Path(\"user-id\") String id);\n}",
"@BusMethod(replySignature=\"s\")\n public String GetUrl() throws BusException;",
"EndpointType endpointType();",
"public static void loadEndpoints(){\n\t\tStart.loadEndpoints();\n\t\t//add\t\t\n\t\t//e.g.: get(\"/my-endpoint\", (request, response) ->\t\tmyEndpointGet(request, response));\n\t\t//e.g.: post(\"/my-endpoint\", (request, response) ->\t\tmyEndpointPost(request, response));\n\t}",
"@Override\r\n\tpublic PointInterface[] edgeEndPoints() {\n\t\treturn p;\r\n\t}",
"public URL getEndPoint();",
"PreconfiguredEndpointInner innerModel();",
"public String getEndPoint()\n\t{\n\t\tString getEnd;\n\t\tgetEnd = (this.endPoint.xPosition + \",\" + this.endPoint.yPosition);\n\t\treturn getEnd;\n\t}",
"protected void onEndpointConnected(Endpoint endpoint) {}",
"public interface EndpointBase {\n\n boolean isIdleNow();\n\n /**\n * @param connectionTimeout\n * @param methodTimeout\n */\n void setTimeouts(int connectionTimeout, int methodTimeout);\n\n /**\n * @param alwaysMainThread\n */\n void setCallbackThread(boolean alwaysMainThread);\n\n /**\n * @param flags\n */\n void setDebugFlags(int flags);\n\n int getDebugFlags();\n\n /**\n * @param delay\n */\n void setDelay(int delay);\n\n void addErrorLogger(ErrorLogger logger);\n\n void removeErrorLogger(ErrorLogger logger);\n\n void setOnRequestEventListener(OnRequestEventListener listener);\n\n\n void setPercentLoss(float percentLoss);\n\n int getThreadPriority();\n\n void setThreadPriority(int threadPriority);\n\n\n ProtocolController getProtocolController();\n\n void setUrlModifier(UrlModifier urlModifier);\n\n /**\n * No log.\n */\n int NO_DEBUG = 0;\n\n /**\n * Log time of requests.\n */\n int TIME_DEBUG = 1;\n\n /**\n * Log request content.\n */\n int REQUEST_DEBUG = 2;\n\n /**\n * Log response content.\n */\n int RESPONSE_DEBUG = 4;\n\n /**\n * Log cache behavior.\n */\n int CACHE_DEBUG = 8;\n\n /**\n * Log request code line.\n */\n int REQUEST_LINE_DEBUG = 16;\n\n /**\n * Log request and response headers.\n */\n int HEADERS_DEBUG = 32;\n\n /**\n * Log request errors\n */\n int ERROR_DEBUG = 64;\n\n /**\n * Log cancellations\n */\n int CANCEL_DEBUG = 128;\n\n /**\n * Log cancellations\n */\n int THREAD_DEBUG = 256;\n\n /**\n * Log everything.\n */\n int FULL_DEBUG = TIME_DEBUG | REQUEST_DEBUG | RESPONSE_DEBUG | CACHE_DEBUG | REQUEST_LINE_DEBUG | HEADERS_DEBUG | ERROR_DEBUG | CANCEL_DEBUG;\n\n int INTERNAL_DEBUG = FULL_DEBUG | THREAD_DEBUG;\n\n /**\n * Created by Kuba on 17/07/14.\n */\n interface UrlModifier {\n\n String createUrl(String url);\n\n }\n\n interface OnRequestEventListener {\n\n void onStart(Request request, int requestsCount);\n\n void onStop(Request request, int requestsCount);\n\n }\n}",
"public AKeyCallPoint getEndPoint() {\n\t\t\treturn endPoint;\n\t\t}",
"public EndpointType endpointType() {\n return this.endpointType;\n }",
"@java.lang.Override\n public google.maps.fleetengine.v1.TripWaypointOrBuilder getCurrentRouteSegmentEndPointOrBuilder() {\n return getCurrentRouteSegmentEndPoint();\n }",
"public final HttpEndpoint getEndpoint( ) {\r\n\t\treturn this.endpoint;\t\t\r\n\t}",
"public ArrayList<Bus> getListOfArrivingBuses() {\r\n return listOfArrivingBuses;\r\n }",
"public String getEndpointId();",
"@Override\n\tpublic List<EndpointEntity> getAllChild() {\n\t\treturn null;\n\t}",
"void setEndpoint(String endpoint);",
"GraphNode secondEndpoint() \n\t {\n\t\treturn this.secondEndpoint;\n\t\t \n\t }",
"public String getEndpointId()\n {\n return endpointId; // Field is final; no need to sync.\n }",
"UMOEndpointURI getEndpointURI();",
"private String getEndPointUrl()\r\n\t{\r\n\t\t// TODO - Get the URL from WSRR\r\n\t\treturn \"http://localhost:8093/mockCustomerBinding\";\r\n\t}",
"public Transports getTransports();",
"public interface ApiEtherchain {\n\n @GET(\"api/blocks/count\")\n Observable<BlockCount> totalBlockCount();\n\n @GET(\"api/blocks/{offset}/{count}\")\n Observable<List<Block>> blocks(@Path(\"offset\") int offset, @Path(\"count\") int count);\n}",
"public List<Edge> segments() {\n return segments;\n }",
"@Override\r\n\t\tprotected Void doInBackground(Void... params) {\r\n\t\t\tgetBusRoutes();\r\n\t\t\treturn null;\r\n\t\t}",
"public GraphNode secondEndpoint() {\n\t\t\treturn end;\n\t\t}",
"@Override\n\tpublic Set<ServerEndpointConfig> getEndpointConfigs(Set<Class<? extends Endpoint>> arg0) {\n\t\tSet<ServerEndpointConfig> result = new HashSet<>();\n//\t\tif (arg0.contains(EchoEndpoint.class)) {\n//\t\t\tresult.add(ServerEndpointConfig.Builder.create(\n//\t\t\t\t\tEchoEndpoint.class,\n//\t\t\t\t\t\"/websocket/echoProgrammatic\").build());\n//\t\t}\n\n\t\treturn result;\t\n\t}",
"ManagedEndpoint next();",
"private EndPoint getBattlefieldFor(EndPoint server){\r\n\t\treturn new EndPoint(server.getHostName(), server.getPort(), server.getRegistryName()+\"/BATTLEFIELD\");\r\n\t}",
"public String getEndpointName() {\n return endpointName;\n }",
"public FluidRelayEndpoints fluidRelayEndpoints() {\n return this.fluidRelayEndpoints;\n }",
"@Override\n public void onEndpointConnected(String id, List<String> names) {\n Log.d(TAG, \"endpoint connected: \" + id + \" \" + names);\n }",
"@Override\n\tpublic List<CallDetail> loadEndpointRelation(long startTB, long endTB, String destEndpointId) throws IOException {\n\t\treturn null;\n\t}",
"@java.lang.Override\n public boolean hasEndpoint() {\n return endpoint_ != null;\n }",
"public interface PreconfiguredEndpoint {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the location property: The geo-location where the resource lives.\n *\n * @return the location value.\n */\n String location();\n\n /**\n * Gets the tags property: Resource tags.\n *\n * @return the tags value.\n */\n Map<String, String> tags();\n\n /**\n * Gets the description property: The description of the endpoint.\n *\n * @return the description value.\n */\n String description();\n\n /**\n * Gets the endpoint property: The endpoint that is preconfigured.\n *\n * @return the endpoint value.\n */\n String endpoint();\n\n /**\n * Gets the endpointType property: The type of endpoint.\n *\n * @return the endpointType value.\n */\n EndpointType endpointType();\n\n /**\n * Gets the backend property: The preconfigured endpoint backend.\n *\n * @return the backend value.\n */\n String backend();\n\n /**\n * Gets the inner com.azure.resourcemanager.frontdoor.fluent.models.PreconfiguredEndpointInner object.\n *\n * @return the inner object.\n */\n PreconfiguredEndpointInner innerModel();\n}",
"public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.Builder getEndpointBuilder() {\n \n onChanged();\n return getEndpointFieldBuilder().getBuilder();\n }",
"List<Transport> getTransports();",
"public String getAddresses()\n {\n return _addresses;\n }",
"protected Set<Endpoint> getConnectedEndpoints() {\n return new HashSet<>(mEstablishedConnections.values());\n }",
"ArrayList<TTC> generateSegments() {\n if ((START_STATION instanceof Station) && (endStation instanceof Station)) {\n ArrayList<TTC> route = TTC.SUBWAY_LIST.get(NUMBER);\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n return new ArrayList<>();\n }\n } else {\n ArrayList<TTC> route = TTC.BUS_MAP.get((START_STATION).getNUMBER());\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n return new ArrayList<>();\n }\n }\n }",
"public void encode() {\r\n\t\tint len=4+4;//The four bytes of the header plus the reserved and Endpoint type\r\n\r\n\t\tswitch (generalizedendpointType){\r\n\t\tcase ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_P2P:\r\n\t\t\ttry {\r\n\t\t\t\tp2pEndpoints.encode();\r\n\t\t\t} catch (PCEPProtocolViolationException 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\tlen=len+p2pEndpoints.getLength();\r\n\t\t\tbreak;\r\n\t\tcase ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_P2MP_NEW_LEAVES:\r\n\t\t\ttry {\r\n\t\t\t\tp2mpEndpoints.encode();\r\n\t\t\t} catch (PCEPProtocolViolationException 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\tlen=len+p2mpEndpoints.getLength();\r\n\t\t\tbreak;\r\n\t\tcase ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_ASSISTED_UNICAST:\r\n\t\t\ttry {\r\n\t\t\t\tassistedUnicastEndpoints.encode();\r\n\t\t\t} catch (PCEPProtocolViolationException 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\tlen=len+assistedUnicastEndpoints.getLength();\r\n\t\t\tbreak;\r\n\t\tcase ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_FULL_ANYCAST:\r\n\t\t\ttry {\r\n\t\t\t\tfullAnycastEndpoints.encode();\r\n\t\t\t} catch (PCEPProtocolViolationException 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\tlen=len+fullAnycastEndpoints.getLength();\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\r\n\r\n\t\tObjectLength=len;\r\n\t\tthis.object_bytes=new byte[ObjectLength];\r\n\t\tencode_header();\r\n\t\tthis.object_bytes[4]=0x00;\r\n\t\tthis.object_bytes[5]=0x00;\r\n\t\tthis.object_bytes[6]=(byte)((generalizedendpointType>>8)&0xFF);\r\n\t\tthis.object_bytes[7]=(byte)((generalizedendpointType)&0xFF);\r\n\t\t//log.warn(\"Generalized End Points TYPE:\"+generalizedendpointType);\r\n\t\t//log.warn(\"Generalized End Points LENGTH:\"+len);\r\n\t\t//System.arraycopy((byte)generalizedendpointType,0, this.object_bytes, 6, 2);\r\n\t\tint pos=8;\r\n\t\tif (generalizedendpointType==ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_P2P ){\r\n\t\t\tSystem.arraycopy(p2pEndpoints.getBytes(),0, this.object_bytes, pos, p2pEndpoints.getLength());\r\n\t\t\tpos=pos+p2pEndpoints.getLength();\r\n\t\t}\r\n\r\n\t\tif (generalizedendpointType==ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_P2MP_NEW_LEAVES){\r\n\t\t\tSystem.arraycopy(p2mpEndpoints.getBytes(),0, this.object_bytes, pos, p2mpEndpoints.getLength());\r\n\t\t\tpos=pos+p2mpEndpoints.getLength();\r\n\t\t}\r\n\r\n\t\tif (generalizedendpointType==ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_ASSISTED_UNICAST){\r\n\t\t\tSystem.arraycopy(assistedUnicastEndpoints.getBytes(),0, this.object_bytes, pos, assistedUnicastEndpoints.getLength());\r\n\t\t\tpos=pos+assistedUnicastEndpoints.getLength();\r\n\t\t}\r\n\r\n\t\tif (generalizedendpointType==ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_FULL_ANYCAST){\r\n\t\t\tSystem.arraycopy(fullAnycastEndpoints.getBytes(),0, this.object_bytes, pos, fullAnycastEndpoints.getLength());\r\n\t\t\tpos=pos+fullAnycastEndpoints.getLength();\r\n\t\t}\r\n\r\n\t}",
"@Override public String brokerAddress() { return brokerAddress; }",
"@java.lang.Override\n public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList getServiceList() {\n if (serviceListBuilder_ == null) {\n if (endpointConfigCase_ == 3) {\n return (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList) endpointConfig_;\n }\n return io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.getDefaultInstance();\n } else {\n if (endpointConfigCase_ == 3) {\n return serviceListBuilder_.getMessage();\n }\n return io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.getDefaultInstance();\n }\n }",
"public interface IEndpoint\n{\n @GET(Contract.PATH_POPULAR_MOVIE)\n Call<MovieResponse> getPopularMovies(@Query(\"api_key\") String apiKey);\n\n @GET(Contract.PATH_TOP_RATED_MOVIE)\n Call<MovieResponse> getTopRatedMovies(@Query(\"api_key\") String apiKey);\n\n @GET(\"movie/{id}/videos\")\n Call<MovieTrailer> getMovieTrailer(@Path(\"id\") int id,\n @Query(\"api_key\") String apiKey);\n\n @GET(\"movie/{id}/reviews\")\n Call<MovieReview> getMovieReview(@Path(\"id\") int id,\n @Query(\"api_key\") String apiKey);\n\n @GET(Contract.SIZE_MOBILE + \"{posterImagePath}\")\n Call<ResponseBody> getPosterImage(\n @Path(value = \"posterImagePath\", encoded = true)\n String posterImagePath);\n\n @GET(\"w780{backdropImagePath}\")\n Call<ResponseBody> getBackdropImage(\n @Path(value = \"backdropImagePath\", encoded = true)\n String backdropImagePath);\n}",
"@Pure\n\tST getArrivalConnection();",
"@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.EndpointInfoOrBuilder getEndpointOrBuilder() {\n if ((stepInfoCase_ == 8) && (endpointBuilder_ != null)) {\n return endpointBuilder_.getMessageOrBuilder();\n } else {\n if (stepInfoCase_ == 8) {\n return (com.google.cloud.networkmanagement.v1beta1.EndpointInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.EndpointInfo.getDefaultInstance();\n }\n }",
"io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpointOrBuilder getEndpointOrBuilder();",
"@Override\n\tpublic List<ET> getEdgeList()\n\t{\n\t\treturn new ArrayList<ET>(edgeList);\n\t}",
"public EndpointDetail() {\n }",
"public abstract String getAddressLine2();"
] |
[
"0.6799523",
"0.65268147",
"0.6459086",
"0.63433534",
"0.6241544",
"0.6241544",
"0.624054",
"0.6207304",
"0.61235815",
"0.6119356",
"0.61071193",
"0.6051756",
"0.60028446",
"0.5967394",
"0.59506243",
"0.59459555",
"0.5914358",
"0.58005816",
"0.5776468",
"0.5749877",
"0.5731658",
"0.5709221",
"0.5683716",
"0.5669461",
"0.56643623",
"0.56266236",
"0.5621619",
"0.5610936",
"0.5608906",
"0.5583091",
"0.5575539",
"0.55607414",
"0.5559218",
"0.5549437",
"0.55451477",
"0.5525304",
"0.55099905",
"0.5498885",
"0.5492572",
"0.548837",
"0.54627824",
"0.54555625",
"0.5440302",
"0.54384756",
"0.543165",
"0.5431096",
"0.54195535",
"0.54190767",
"0.5406915",
"0.5405866",
"0.540356",
"0.5398532",
"0.5397911",
"0.5395338",
"0.5391904",
"0.5383678",
"0.5378741",
"0.53726995",
"0.5372062",
"0.5371683",
"0.53669494",
"0.53620535",
"0.5359879",
"0.5356342",
"0.5355053",
"0.5354577",
"0.53476095",
"0.5341632",
"0.53416175",
"0.5315927",
"0.5300637",
"0.5298695",
"0.52985036",
"0.5293424",
"0.52800107",
"0.5271095",
"0.5270215",
"0.525664",
"0.5250906",
"0.52450913",
"0.523726",
"0.52334225",
"0.5232158",
"0.5230633",
"0.52247894",
"0.5219183",
"0.5217713",
"0.5209436",
"0.5201842",
"0.5201406",
"0.5195558",
"0.5186672",
"0.51862377",
"0.51833165",
"0.5177974",
"0.5166293",
"0.5154119",
"0.5150921",
"0.51489305",
"0.5145674",
"0.51413274"
] |
0.0
|
-1
|
Registers the debug logger to a server
|
public static void register(TurtleServer server) {
server.addListener(instance);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setupLoggingEndpoint() {\n HttpHandler handler = (httpExchange) -> {\n httpExchange.getResponseHeaders().add(\"Content-Type\", \"text/html; charset=UTF-8\");\n httpExchange.sendResponseHeaders(200, serverLogsArray.toJSONString().length());\n OutputStream out = httpExchange.getResponseBody();\n out.write(serverLogsArray.toJSONString().getBytes());\n out.close();\n };\n this.endpointMap.put(this.loggingApiEndpoint, this.server.createContext(this.loggingApiEndpoint));\n this.setHandler(this.getLoggingApiEndpoint(), handler);\n System.out.println(\"Set handler for logging\");\n this.endpointVisitFrequency.put(this.getLoggingApiEndpoint(), 0);\n }",
"protected void initLogger() {\n initLogger(\"DEBUG\");\n }",
"public void logDebug()\n\t{\n\t\tLogHandler handlerList[];\n\t\tLogHandler handler = null;\n\n\t\tSystem.out.println(\"Logger = \"+logger);\n\t\tSystem.out.println(\"Logger log level is: \"+logger.getLogLevel());\n\t\tSystem.out.println(\"Logger log filter is: \"+logger.getFilter());\n\t\thandlerList = logger.getHandlers();\n\t\tfor(int i = 0; i < handlerList.length; i++)\n\t\t{\n\t\t\thandler = handlerList[i];\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" is:\"+handler+\" and called \"+handler.getName());\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" has filter:\"+handler.getFilter());\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" has log level:\"+handler.getLogLevel());\n\t\t}\n\t}",
"public void registerServer() {\n log.info(\"Registering service {}\", serviceName);\n cancelDiscovery = discoveryService.register(\n ResolvingDiscoverable.of(new Discoverable(serviceName, httpService.getBindAddress())));\n }",
"public static void set(ServerLoggingConfiguration config) {\r\n LogImplServer.config = config;\r\n }",
"private static void defineLogger() {\n HTMLLayout layout = new HTMLLayout();\n DailyRollingFileAppender appender = null;\n try {\n appender = new DailyRollingFileAppender(layout, \"/Server_Log/log\", \"yyyy-MM-dd\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n logger.addAppender(appender);\n logger.setLevel(Level.DEBUG);\n }",
"public LogGPPServer()\n\t{\n\t\tarqConfig = ArqConfigGPPServer.getInstance();\n\t\t\n\t\t//Define o nome e a porta do servidor q serao utilizados no LOG\n\t\thostName = arqConfig.getHostGPP() + \":\" + arqConfig.getPortaGPP();\n\n\t\ttry\n\t\t{\n\t\t\t// Liga o log4j\n\t\t\tthis.ligaLog4j();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Não foi possível instanciar logger\");\n\t\t}\n\t}",
"public void setDebugServer(final boolean debugServer)\n {\n this.debugServer = debugServer;\n }",
"public void registerWithServer();",
"void setDebugPort(Integer debugPort);",
"public void logDebug(String str) {\n }",
"public static void debug(Object s) {\n\t\tif (logger != null) {\n\t\t\tlogger.log(Level.DEBUG, s);\n\t\t}\n\t}",
"public void debug(String x) {\n if (isDebugOn()) {\n String out = getClassName() + \"(\" + (new Date()) + \"): \" + x;\n getLogger().info(out);\n }\n }",
"public static void enableDebugging(){\n DEBUG = true;\n }",
"public void log(String msg) {\n if(Debug.isEnabled()){ \n filterConfig.getServletContext().log(msg); //Shows in the Tomcat logs \n Debug.println(msg);\n }\n }",
"public static void init()\n {\n debugger = new Debugger(\"log\");\n info = true;\n }",
"public void debug(String message);",
"public final void setDebug() {\r\n setLevel(org.apache.log4j.Level.DEBUG);\r\n }",
"public void debug(String msg);",
"public void enableDebug() {\n this.debug = true;\n }",
"public void enableLogging();",
"public final DebugLogger Debug() {\n return system.Debug();\n }",
"public void debug(final String s) {\n if (!configManager.isDebug()) { return; }\n this.getLogger().info(ChatColor.YELLOW + \"[Debug] \" + s);\n }",
"protected final void log(String msg)\r\n {\r\n Debug.println(\"Server: \" + msg);\r\n }",
"private void debugLog(String msg)\n {\n m_log.log(\"[\" + m_appName + \"] :\" + msg);\n }",
"private void initLoggers()\n {\n Logger.getSharedInstance();\n\n for (Logger logger : Logger.getAllLoggers())\n {\n String key = \"Loggers/\" + logger.getNamespace();\n Level desired;\n\n if (!SmartDashboard.containsKey(key))\n {\n // First time this logger has been sent to SmartDashboard\n SmartDashboard.putString(key, logger.getLogLevel().name());\n desired = Level.DEBUG;\n }\n else\n {\n String choice = SmartDashboard.getString(key, \"DEBUG\");\n Level parsed = Level.valueOf(choice);\n if (parsed == null)\n {\n m_logger.error(\"The choice '\" + choice + \"' for logger \" + logger.getNamespace() + \" isn't a valid value.\");\n desired = Level.DEBUG;\n }\n else\n {\n desired = parsed;\n }\n }\n logger.setLogLevel(desired);\n }\n }",
"static void debug() {\n ProcessRunnerImpl.setGlobalDebug(true);\n }",
"public void configLogger() {\n Logger.addLogAdapter(new AndroidLogAdapter());\n }",
"public void customLogger() {\n KOOM.getInstance().setLogger(new KLog.KLogger() {\n @Override\n public void i(String TAG, String msg) {\n //get the log of info level\n }\n\n @Override\n public void d(String TAG, String msg) {\n //get the log of debug level\n }\n\n @Override\n public void e(String TAG, String msg) {\n //get the log of error level\n }\n });\n }",
"public static void debug(String log) {\n if (debug) {\n System.out.println(\"[DEBUG] \" + log);\n }\n }",
"public static void setupLoggers() {\n SLF4JBridgeHandler.removeHandlersForRootLogger();\n\n // add SLF4JBridgeHandler to j.u.l's root logger\n SLF4JBridgeHandler.install();\n }",
"void initializeLogging();",
"public void debug() {\n\n }",
"public void register(DebugStateListener l) {\n register(l, false);\n }",
"public String debug(String packageName){\n return addConfiguration(Log4jConfiguration.DEBUG, packageName); \n\t}",
"public void start() {\n _serverRegisterProcessor = new ServerRegisterProcessor();\n _serverRegisterProcessor.start();\n }",
"private void logAdminUI() {\n\t\tString httpPort = environment.resolvePlaceholders(ADMIN_PORT);\n\t\tAssert.notNull(httpPort, \"Admin server port is not set.\");\n\t\tlogger.info(\"Admin web UI: \"\n\t\t\t\t+ String.format(\"http://%s:%s/%s\", RuntimeUtils.getHost(), httpPort,\n\t\t\t\t\t\tConfigLocations.XD_ADMIN_UI_BASE_PATH));\n\t}",
"@SuppressWarnings(\"unused\")\n protected void debug(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isDebugEnabled()) {\n this.getContainer().getLogger().debug(msg);\n }\n }",
"public void debug(String msg) {\n LOGGER_BASE.debug(msg);\n }",
"private void initLogger(BundleContext bc) {\n\t\tBasicConfigurator.configure();\r\n\t\tlogger = Logger.getLogger(Activator.class);\r\n\t\tLogger.getLogger(\"org.directwebremoting\").setLevel(Level.WARN);\r\n\t}",
"public static void debug(String msg) {\n\t\tif(DEBUG_ENABLED) {\n\t\t\tinfo(\"[DEBUG] \" + msg);\n\t\t}\n\t}",
"public static void setDebug(boolean d) {\n\t\tdebug = d;\n\t}",
"public void setDebug(boolean f) {\n debug = f;\n }",
"protected void serverStarted()\n {\n // System.out.println\n // (\"Server listening for connections on port \" + getPort());\n }",
"public void debug(Writer out) throws IOException {\n\t\tlog = out;\n\t\tdebug = true;\n\t}",
"public void debug(String loggerFqcn, Object message, Throwable t)\n/* */ {\n/* 47 */ this.logger.debug(loggerFqcn, message, t);\n/* */ }",
"protected final void setDebugLogTag(String tag) {\n this.debugLog.setTag(tag);\n }",
"@Test\n\t/**\n\t * This is in effect:\n\t * \n\t * log4j.rootLogger=DEBUG\n\t */\n\tpublic void testDebugAbove(){\n\t\tlogger.trace(\"Trace\");\n\t\t//Above Debug are all logged\n\t\tlogger.debug(\"Debug\");\n\t\tlogger.info(\"Info\");\n\t\tlogger.warn(\"Warning\");\n\t\tlogger.error(\"Error\");\n\t}",
"@Override\n\tpublic void debug(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"@Override\n\tpublic void debug(Object message) {\n\n\t}",
"@Override\n\tpublic void debug(Marker marker, String message) {\n\n\t}",
"void setDebugEnabled(boolean value) {\r\n debug_enabled = value;\r\n }",
"public interface PxVideoRecorderDebugListener {\n void debugLog(String title, String message);\n}",
"public void addServer(AbstractServer server) {\n // Iterate through all types of CorfuMsgType, registering the handler\n server.getHandler().getHandledTypes()\n .forEach(x -> {\n handlerMap.put(x, server);\n log.trace(\"Registered {} to handle messages of type {}\", server, x);\n });\n }",
"@Override\n\tpublic void debug(String message, Throwable t) {\n\n\t}",
"void debug (String channel, String msg) throws RootException;",
"private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }",
"static void registerIfAbsent(final LogContext logContext) {\n final Logger logger = logContext.getLogger(NAME);\n StatusListener listener = logger.getAttachment(STATUS_LISTENER_KEY);\n if (listener == null) {\n listener = new JBossStatusListener(logger);\n if (attachIfAbsent(logger, listener) == null) {\n StatusLogger.getLogger().registerListener(listener);\n }\n }\n }",
"private void initJulLogger() {\n SLF4JBridgeHandler.removeHandlersForRootLogger();\n SLF4JBridgeHandler.install();\n }",
"public static void debug(String arg0) {\n MDC.put(classNameProp, \"\");\n debugLogger.debug(arg0);\n }",
"protected void serverStarted()\n {\n System.out.println(\"Server listening for connections on port \" + getPort());\n }",
"void addLogger(BotLogger logger);",
"private void debug(String msg) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(msg);\r\n }\r\n }",
"@Override\n public boolean isLoggable(int priority, String tag) {\n return BuildConfig.DEBUG;\n }",
"private static void setupLogger() {\n\t\tLogManager.getLogManager().reset();\n\t\t// set the level of logging.\n\t\tlogger.setLevel(Level.ALL);\n\t\t// Create a new Handler for console.\n\t\tConsoleHandler consHandler = new ConsoleHandler();\n\t\tconsHandler.setLevel(Level.SEVERE);\n\t\tlogger.addHandler(consHandler);\n\n\t\ttry {\n\t\t\t// Create a new Handler for file.\n\t\t\tFileHandler fHandler = new FileHandler(\"HQlogger.log\");\n\t\t\tfHandler.setFormatter(new SimpleFormatter());\n\t\t\t// set level of logging\n\t\t\tfHandler.setLevel(Level.FINEST);\n\t\t\tlogger.addHandler(fHandler);\n\t\t}catch(IOException e) {\n\t\t\tlogger.log(Level.SEVERE, \"File logger not working! \", e);\n\t\t}\n\t}",
"void debug(String a, String b) {\n\t\t}",
"public void enableLogging(Logger logger) {\n m_logger = logger;\n }",
"@Override\n\tpublic void debug(String message, Object... params) {\n\n\t}",
"protected abstract void debug(String msg);",
"public void debug(Object message)\n/* */ {\n/* 118 */ if (message != null) {\n/* 119 */ getLogger().debug(String.valueOf(message));\n/* */ }\n/* */ }",
"@Override\n\tpublic void debug(Marker marker, Message msg) {\n\n\t}",
"public final static void debug(String message)\n\t{\n\t\t// TODO: Finish this method so that debugging can be disabled\n\t\tif (logger != null)\n\t\t\tlogger.info(message);\n\t}",
"public void setDebug(boolean b) { debug = b; }",
"public static void setUp() {\n Handler handler = new LoggerHandler();\n handler.setFormatter(new SimpleFormatter());\n getInstance().addHandler(handler);\n }",
"public interface DebugServer {\n\n /**\n * Tracks the execution of the given callable object in the debug server.\n *\n * @param env the Skylark execution environment\n * @param threadName the descriptive name of the thread\n * @param callable the callable object whose execution will be tracked\n * @param <T> the result type of the callable\n * @return the value returned by the callable\n */\n <T> T runWithDebugging(Environment env, String threadName, DebugCallable<T> callable)\n throws EvalException, InterruptedException;\n\n /** Represents an invocation that will be tracked as a thread by the Skylark debug server. */\n interface DebugCallable<T> {\n\n /**\n * The invocation that will be tracked.\n *\n * @return the result\n */\n T call() throws EvalException, InterruptedException;\n }\n}",
"@Override\n\tpublic void debug(Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"public void setDebugTransport(final String debugTransport)\n {\n this.debugTransport = debugTransport;\n }",
"public void debug(Object message, Throwable t)\n/* */ {\n/* 132 */ if (message != null) {\n/* 133 */ getLogger().debug(String.valueOf(message), t);\n/* */ }\n/* */ }",
"@Override\r\n\t\t\tpublic void debug(String arg) {\n\t\t\t\t\r\n\t\t\t}",
"void logHTTPRequest(HttpServletRequest request, Logger logger);",
"@Override\n\tpublic void debug(Marker marker, Object message) {\n\n\t}",
"void debug(String messageKey, Object... args);",
"@Override\n public void onRegister(String serviceName, RegisterResult result) {\n if (result == RegisterResult.FAILED && basePlugin.getEnvironment() != Environment.PRODUCTION)\n System.out.println(String.format(ConsoleColor.RED + \"Packet listener %s could not be registered\" + ConsoleColor.RESET, ConsoleColor.YELLOW + serviceName + ConsoleColor.RED));\n }",
"protected void serverStarted()\r\n {\r\n System.out.println\r\n (\"Server listening for connections on port \" + getPort());\r\n }",
"@GetMapping(\"/debu\")\n public String debug() {\n log.debug(\"log: debug\");\n return \"debug\";\n }",
"public static void logDebug(Logger logger, ServerWebExchange exchange, String msg, Object... args) {\n\n if (!logger.isDebugEnabled())\n return;\n\n if (exchange == null) {\n logger.debug(msg, args);\n } else {\n String context = exchange.getAttribute(TRACE_ID_CONTEXT_KEY);\n try (MDC.MDCCloseable cMdc = MDC.putCloseable(TRACE_ID_CONTEXT_KEY, context)) {\n logger.debug(msg, args);\n }\n }\n }",
"public void registerDebugChangeListener(PropertyChangeListener oyente) {\n\n\t\t// seteamos el oyente\n\t\tplanificador.registrarOyenteDepurador(oyente);\n\n\t}",
"public void startServer() {\n URLClassLoader loader = createClasspath(opts);\n X_Process.runInClassloader(loader, appServer\n .map(DevAppServer::doStartServer, getAppName() + \"Server\", getPort())\n .ignoreOut1().unsafe());\n }",
"@Test\r\n\tpublic void logTest() {\r\n\t\tlogger.info(\"Testando info\");\r\n\t\tlogger.debug(\"nao sera logado\" + \"Nice\");\r\n\t\tlogger.error(\"This is Error message\", new Exception(\"Testing\"));\r\n\t}",
"@Override\n\tpublic void debug(Message msg) {\n\n\t}",
"@Listener\n public void onServerStart(GameStartedServerEvent event) {\n logger.debug(\"*************************\");\n logger.debug(\"HI! MY PLUGIN IS WORKING!\");\n logger.debug(\"*************************\");\n }",
"private void debug(String str) {\n }",
"@Override\n\tpublic void debug(MessageSupplier msgSupplier) {\n\n\t}",
"@Override\n public void registerLogitowEvents() {\n //Registering the mod side bridge event.\n MinecraftForge.EVENT_BUS.register(LogitowBridgeClientEventHandler.class);\n MinecraftForge.EVENT_BUS.register(LogitowEventForwarder.class);\n MinecraftForge.EVENT_BUS.register(ClientProxy.class);\n }",
"public static void setServerInfo(String serverHost, String serverPort) {\n MDC.put(SERVER_NAME, serverHost + \":\" + serverPort);\n }",
"public void enableSDKLog() {\r\n\t\tString path = null;\r\n\t\tpath = Environment.getExternalStorageDirectory().toString() + \"/IcatchWifiCamera_SDK_Log\";\r\n\t\tEnvironment.getExternalStorageDirectory();\r\n\t\tICatchWificamLog.getInstance().setFileLogPath(path);\r\n\t\tLog.d(\"AppStart\", \"path: \" + path);\r\n\t\tif (path != null) {\r\n\t\t\tFile file = new File(path);\r\n\t\t\tif (!file.exists()) {\r\n\t\t\t\tfile.mkdirs();\r\n\t\t\t}\r\n\t\t}\r\n\t\tICatchWificamLog.getInstance().setSystemLogOutput(true);\r\n\t\tICatchWificamLog.getInstance().setFileLogOutput(true);\r\n\t\tICatchWificamLog.getInstance().setRtpLog(true);\r\n\t\tICatchWificamLog.getInstance().setPtpLog(true);\r\n\t\tICatchWificamLog.getInstance().setRtpLogLevel(ICatchLogLevel.ICH_LOG_LEVEL_INFO);\r\n\t\tICatchWificamLog.getInstance().setPtpLogLevel(ICatchLogLevel.ICH_LOG_LEVEL_INFO);\r\n\t}",
"public void startServer() {\n server.start();\n }",
"protected static void addSLF4JHandlerToLoggers(ServletContext servletContext, Class<?> bridgeHandlerClass) {\n String loggerList = servletContext.getInitParameter(BRIDGED_JUL_LOGGERS_PARAM);\n Handler bridgHandler = getSLF4JBridgeHandler(bridgeHandlerClass);\n if (loggerList != null) {\n String[] loggerNames = loggerList.split(\",\");\n for (String loggerName : loggerNames) {\n Logger logger = Logger.getLogger(loggerName);\n logger.addHandler(bridgHandler);\n logger.setUseParentHandlers(false);\n servletContext.log(\"SLF4JBridgeHandler added JUL logger '\" + loggerName + \"'\");\n }\n }\n }",
"public boolean isDebugEnabled()\n/* */ {\n/* 250 */ return getLogger().isDebugEnabled();\n/* */ }",
"private void setupLogging() {\n\t\t// Ensure all JDK log messages are deferred until a target is registered\n\t\tLogger rootLogger = Logger.getLogger(\"\");\n\t\tHandlerUtils.wrapWithDeferredLogHandler(rootLogger, Level.SEVERE);\n\n\t\t// Set a suitable priority level on Spring Framework log messages\n\t\tLogger sfwLogger = Logger.getLogger(\"org.springframework\");\n\t\tsfwLogger.setLevel(Level.WARNING);\n\n\t\t// Set a suitable priority level on Roo log messages\n\t\t// (see ROO-539 and HandlerUtils.getLogger(Class))\n\t\tLogger rooLogger = Logger.getLogger(\"org.springframework.shell\");\n\t\trooLogger.setLevel(Level.FINE);\n\t}"
] |
[
"0.6052612",
"0.59188116",
"0.5896127",
"0.5779505",
"0.5727208",
"0.5663507",
"0.56456393",
"0.5590995",
"0.55746764",
"0.53833944",
"0.53806096",
"0.537196",
"0.53598726",
"0.53456897",
"0.5282185",
"0.525484",
"0.52480125",
"0.52414954",
"0.5225767",
"0.5224561",
"0.52081174",
"0.51853573",
"0.5178374",
"0.51707417",
"0.5149292",
"0.5146096",
"0.51384515",
"0.5136546",
"0.5096784",
"0.5092278",
"0.50774914",
"0.5076591",
"0.506748",
"0.5037826",
"0.50356334",
"0.5032103",
"0.5015067",
"0.50047976",
"0.49963093",
"0.49800903",
"0.49764308",
"0.49608064",
"0.49490106",
"0.49321225",
"0.4929291",
"0.49269444",
"0.4922554",
"0.49113157",
"0.49094206",
"0.4909075",
"0.4904844",
"0.49016285",
"0.48975846",
"0.48935378",
"0.48933238",
"0.48802382",
"0.48742414",
"0.48559338",
"0.48545823",
"0.4850883",
"0.48497617",
"0.4847392",
"0.48347786",
"0.4826835",
"0.48261282",
"0.4824977",
"0.4823604",
"0.48221964",
"0.48198798",
"0.481938",
"0.48179418",
"0.48174033",
"0.48134395",
"0.48087582",
"0.48066264",
"0.48054108",
"0.48012635",
"0.48005617",
"0.47998545",
"0.47969103",
"0.47957423",
"0.4795168",
"0.47936448",
"0.47910142",
"0.47821274",
"0.47793204",
"0.47748846",
"0.47737038",
"0.47689632",
"0.4766376",
"0.47625273",
"0.47551614",
"0.474597",
"0.47440082",
"0.47375903",
"0.47371662",
"0.47365636",
"0.47271594",
"0.4723497",
"0.47225797"
] |
0.508764
|
30
|
Unregisters the debug logger from a server
|
public static void unregister(TurtleServer server) {
server.removeListener(instance);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void unRegisterLoggingMBean() throws Exception {\n MBeanServer server = ManagementFactory.getPlatformMBeanServer();\n ObjectName loggerObjectName = new ObjectName(\"com.yammer:type=Logging\");\n if (server.isRegistered(loggerObjectName)) {\n server.unregisterMBean(loggerObjectName);\n }\n }",
"public void shutdown() {\n _udpServer.stop();\n _registrationTimer.cancel();\n _registrationTimer.purge();\n }",
"public void removeServer(AbstractServer server) {\n server.getHandler().getHandledTypes()\n .forEach(x -> {\n handlerMap.remove(x, server);\n log.trace(\"Un-Registered {} to handle messages of type {}\", server, x);\n });\n }",
"void removeLogger(BotLogger logger);",
"public void shutdown() {\n\t\tinternalShutdown();\n\t\tC4JPluginLogging.getDefault().removeLogManager(this); \n\t}",
"@After\n\tpublic void reset() {\n\t\tWhitebox.setInternalState(TinylogLogger.class, ProviderRegistry.getLoggingProvider());\n\t}",
"private static void shutdownLogging() {\n if (log4j2ShutdownMethod != null) {\n try {\n // use reflection to call org.apache.logging.log4j.LogManager.shutdown()\n log4j2ShutdownMethod.invoke(null);\n } catch (IllegalAccessException | InvocationTargetException e) {\n log.error(\"Unable to call org.apache.logging.log4j.LogManager.shutdown using reflection.\", e);\n }\n }\n }",
"public void shutdown() {\n for (Entry<String,Session> entry : _sessions.entrySet())\n entry.getValue().disconnect();\n \n writeLine(\"\\nDebugServer shutting down.\");\n close();\n }",
"public void removeAllLogHandlers() {\n if ( _logger == null ) {\n return ;\n }\n Log.log(this, \"removeAllLogHandlers\");\n synchronized ( _logger ) {\n Handler[] handlers = _logger.getHandlers();\n for ( int i = 0; i < handlers.length; i++ ) {\n _logger.removeHandler( handlers[ i ] );\n }\n }\n }",
"public void desactivateConsoleMode() {\n logger.removeHandler(mConsoleHandler);\n }",
"private void deRegister() {\n\t\ttry {\n\t\t\tOverlayNodeSendsDeregistration deregister = new OverlayNodeSendsDeregistration(\n\t\t\t\t\tmyIPAddress, myServerThreadPortNum, this.myAssignedID);\n\t\t\tthis.registry.getSender().sendData(deregister.getBytes());\n\t\t} catch (UnknownHostException e1) {\n\t\t\tSystem.out.println(e1.getMessage()\n\t\t\t\t\t+ \" Trouble sending DEregistration event.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble sending DEregistration event.\");\n\t\t}\n\t}",
"@Override\n public void tearDown() {\n getLocalLogService().clear(); \n }",
"@Test public void testRestartLogserver() throws InterruptedException,IOException {\n logServer=new LogServer(host,service,null,getClass().getSimpleName());\n thread=new Thread(new Runnable() {\n @Override public void run() {\n logServer.run();\n }\n },\"log server\");\n thread.start();\n socketHandler=new SocketHandler(host,service);\n socketHandler.setLevel(Level.ALL);\n l.addHandler(socketHandler);\n l.info(expected);\n l.info(\"foo\");\n Thread.sleep(100); // need to wait a bit\n if(true) {\n Copier copier=logServer.copiers.iterator().next();\n copier.isShuttingdown=true;\n copier.flush();\n } else {\n Copier copier=logServer.copiers.iterator().next();\n copier.close();\n StringBuffer stringBuffer=new StringBuffer();\n fromFile(stringBuffer,copier.file);\n //p(\"contents of file: \"+copier.file+\": '\"+stringBuffer.toString()+\"'\");\n assertTrue(stringBuffer.toString().contains(expected));\n // how to kill socket handler?\n logServer.stop();\n }\n Thread.sleep(1_000); // at least 1 second!\n thread.join(1000);\n LogManager.getLogManager().reset();\n socketHandler=new SocketHandler(host,service);\n socketHandler.setLevel(Level.ALL);\n l.addHandler(socketHandler);\n l.info(expected);\n l.info(\"bar\");\n Thread.sleep(100); // need to wait a bit\n logServer.stop();\n thread.join(1000);\n }",
"@Deactivate\n public void deactivate() {\n loggerThread.interrupt();\n }",
"@Override\n public void onDisable() {\n try {\n System.out.println(\"Cleaning Dynamic Server System Processes.\");\n for (MinigameServer minigameServer : dynamicServerSystemManager.getServers())\n minigameServer.deleteServer();\n\n // Clean the output directory.\n FileUtils.deleteDirectory(new File(\"../minigameservers\"));\n new File(\"../minigameservers\").mkdirs();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n plugin = null;\n }",
"public void stopServers() {\n EventHandlerService.INSTANCE.reset();\n UserRegistryService.INSTANCE.reset();\n\n if ( eventDispatcher != null ) {\n eventDispatcher.shutdown();\n }\n if ( userClientDispatcher != null ) {\n userClientDispatcher.shutdown();\n }\n if ( eventDispatcherThread != null ) {\n eventDispatcherThread.interrupt();\n }\n if ( userClientDispatcherThread != null ) {\n userClientDispatcherThread.interrupt();\n }\n }",
"public static void unregister(int port) throws RemoteException,\n\t NotBoundException {\n\tRegistry r = LocateRegistry.getRegistry(port);\n\tr.unbind(REGISTRY_NAME);\n\tLOGGER.info(\"Server stopped on port \" + port);\n }",
"protected static void removeJULConsoleHandler(ServletContext servletContext) {\n Logger rootLogger = LogManager.getLogManager().getLogger(\"\");\n Handler[] handlers = rootLogger.getHandlers();\n if (handlers != null) {\n for (Handler handler : handlers) {\n if (handler instanceof ConsoleHandler) {\n servletContext.log(\"Removing java.util.logging.ConsoleHandler to avoid System.err output\");\n rootLogger.removeHandler(handler);\n }\n }\n }\n }",
"protected void unhookViewers() {\n\t}",
"@Override\n\tpublic void releaseLogger() {\n\t\t\n\t}",
"void unsubscribe(LogListener listener);",
"static void remove(final LogContext logContext) {\n final Logger logger = logContext.getLoggerIfExists(NAME);\n if (logger != null) {\n detach(logger);\n }\n }",
"public void disableLogging();",
"public void stopServer() {\n stop();\n }",
"public void destroy() {\n log = null;\n }",
"public void disableDebug() {\n this.debug = false;\n }",
"@Override\n public void contextDestroyed(ServletContextEvent sce) {\n Log.closeLogger();\n }",
"public synchronized void deRegister()\n {\n // stop the thread running...\n logger.debug(\"deregister called - invalidating session\");\n\n // remove from registered listeners and then invalidate the ScriptSession\n clients.remove(wctx.getScriptSession().getId());\n wctx.getScriptSession().invalidate();\n\n if (clients.size() == 0)\n {\n // might as well stop thread since we have no registered listeners\n this.active = false;\n }\n\n }",
"protected void unsetLogManager(ILogManager logManager) {\n \t}",
"public void unregister() {\n unregistered = true;\n }",
"void internalShutdown() {\n\t\tsynchronized(this.hookedPlugins) {\n\t\t\tIterator<String> it = this.hookedPlugins.keySet().iterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tString id = it.next(); \n\t\t\t\tPluginLogListener listener = this.hookedPlugins.get(id);\n\t\t\t\tlistener.dispose(); \n\t\t\t}\n\t\t\tthis.hookedPlugins.clear(); \n\t\t}\t\n\t\tthis.hierarchy.shutdown();\n\t}",
"public void stopServer() {\r\n\t\tserverRunning = false;\r\n\t}",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\ttry {\n\t\t\tunregisterReceiver(getServerSetting);\n\t\t\t\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public void unRegister(Context context) {\n context.unregisterReceiver(this);\n Log.d(TAG, \"ConnectionReceiver unregistered!\");\n }",
"@Override\n\tpublic void destroy() {\n\t\tlogService=null;\n\t\tnoInterceptUrlRegxList=null;\n\n\t}",
"public void DFRemoveAllMyServices() {\n try {\n DFService.deregister(this);\n } catch (FIPAException ex) {\n\n }\n }",
"void shutDownServer() throws Exception;",
"protected EnumTypeAdapterFactory suppressUnregisteredLogging(){\n\t\tlogUnregistered = false;\n\t\treturn this;\n\t}",
"public ServerInfo() {\n this.logger = null;\n }",
"public static void disableDebugging(){\n DEBUG = false;\n }",
"public static void stopServer() {\n try {\n clientListener.stopListener();\n server.close();\n connectionList.clear();\n } catch (IOException ex) {\n System.err.println(\"Error closing server: \\\"\" + ex.getMessage() + \"\\\"\");\n }\n System.out.println(\"SERVER SHUT DOWN\");\n }",
"private void stopServer() {\n\t\ttry {\n//\t\t\tserver.shutdown();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: add message in UI for user\n\t\t}\n\t}",
"void logoff();",
"private void onUnregistered() {\n setUnregisteringInProcess(false);\n C2DMSettings.clearC2DMRegistrationId(context);\n for (C2DMObserver observer : observers) {\n onUnregisteredSingleObserver(observer);\n }\n }",
"@SuppressWarnings(\"unchecked\")\n @Override\n public void unexport() {\n String protocolKey = null;\n String ipPort = url.getServerPortStr();\n\n Exporter<T> exporter = (Exporter<T>) exporterMap.remove(protocolKey);\n\n if (exporter != null) {\n exporter.destroy();\n }\n ProviderMessageRouter requestRouter = ipPort2RequestRouter.get(ipPort);\n\n if (requestRouter != null) {\n requestRouter.removeProvider(provider);\n }\n }",
"boolean k2h_unset_debug_file();",
"public static final void onExit() {\r\n isShutdown = true;\r\n if (instance != null) {\r\n if (instance.logBase.isInfoEnabled()) {\r\n instance.logBase.info(\"LogUtil.onExit : free singleton : \" + SingletonSupport.getSingletonLogName(instance));\r\n }\r\n\r\n // After the Log4J shutdown, Loggers are no more usable :\r\n\r\n // Release Log4J resources :\r\n Log4JCleaner.shutdown();\r\n\r\n // Classloader unload problem with commons-logging :\r\n LogFactory.release(Thread.currentThread().getContextClassLoader());\r\n // force GC :\r\n instance.log = null;\r\n instance.logBase = null;\r\n instance.logDev = null;\r\n instance.logs.clear();\r\n\r\n // free singleton :\r\n instance = null;\r\n }\r\n\r\n // clean up custom logger instances associated with eclipseLink :\r\n CommonsLoggingSessionLog.onExit();\r\n }",
"public void unregisterWithMasterServer() {\n //register the shipper in the master database\n Message addressMsg = new Message();\n Message unregisterMsg = new Message();\n\n //create a new register message to tell master server that this carrier\n //is now active\n unregisterMsg.setMessageType(MessageTags.UnregisterTag);\n unregisterMsg.addArgument(MessageTags.AgentTypeTag, CarrierMessage);\n\n //create a message containing the address of this carrier for use by the\n //master server\n addressMsg.setMessageType(InetAddressTag);\n\n addressMsg.addArgument(MessageTags.IPAddressTag, carrierIP);\n addressMsg.addArgument(MessageTags.PortNumberTag,\n Integer.toString(carrierPort));\n unregisterMsg.addArgument(addressMsg);\n\n //the message is to be sent to the master server\n // read message from open socket\n // parse message and return port no.\n try {\n logWriter.writeLog(\"Unregistering carrier\");\n new ThreadedClient(unregisterMsg, HermesGlobals.masterServerIP,\n this.myMasterPort);\n } catch (Exception ex) {\n System.err.print(\"Carrier unable to unregister: \" + ex);\n logWriter.writeLog(\"Carrier unable to unregister: \" + ex);\n }\n\n jbRegister.setEnabled(true);\n }",
"public static void close()\n {\n if(!info) return;\n debugger.log.close();\n }",
"public void unregisterListeners(){\n listeners.clear();\n }",
"public void resetServers() {\n EventHandlerService.INSTANCE.reset();\n UserRegistryService.INSTANCE.reset();\n }",
"@GuardedBy(\"getLockObject()\")\n private void discardDeviceWideLogsLocked() {\n mSecurityLogMonitor.discardLogs();\n if (mNetworkLogger != null) {\n mNetworkLogger.discardLogs();\n }\n // TODO: We should discard pre-boot security logs here too, as otherwise those\n // logs (which might contain data from the user just removed) will be\n // available after next boot.\n }",
"@Override\n public void onDestroy() {\n Log.d(TAG, \"Shutting Server\");\n busHandler.sendMessage(busHandler.obtainMessage(BusHandler.DISCONNECT));\n }",
"void unregister(String uuid);",
"private void stopRMIConnectorServer() {\n if (!agentConfig.isRmiEnabled()) {\n return;\n }\n\n // stop the RMI Connector server...\n try {\n rmiConnector.stop();\n } catch (Exception e) {\n logger.warn(e.getMessage(), e);\n }\n\n try {\n ObjectName rmiRegistryNamingName = getRMIRegistryNamingName();\n if (agentConfig.isRmiRegistryEnabled()\n && mBeanServer.isRegistered(rmiRegistryNamingName)) {\n String[] empty = new String[0];\n mBeanServer.invoke(rmiRegistryNamingName, \"stop\", empty, empty);\n MBeanUtils.unregisterMBean(rmiRegistryNamingName);\n }\n } catch (MalformedObjectNameException e) {\n logger.warn(e.getMessage(), e);\n } catch (InstanceNotFoundException e) {\n logger.warn(e.getMessage(), e);\n } catch (ReflectionException e) {\n logger.warn(e.getMessage(), e);\n } catch (MBeanException e) {\n logger.warn(e.getMessage(), e);\n }\n\n try {\n ObjectName rmiConnectorServerName = getRMIConnectorServerName();\n if (mBeanServer.isRegistered(rmiConnectorServerName)) {\n MBeanUtils.unregisterMBean(rmiConnectorServerName);\n }\n } catch (MalformedObjectNameException e) {\n logger.warn(e.getMessage(), e);\n }\n }",
"@Override\n protected void onUnregister() {\n Core.unregister(this);\n }",
"private void closeLogHandler() {\n\t\tif (logHandler != null) {\n\t\t\tlogger.removeHandler(logHandler);\n\t\t\tlogHandler.close();\n\t\t\tlogHandler = null;\n\t\t}\n\t}",
"public void removeServer(Identity identity);",
"public void kill() {\n this.server.stop();\n }",
"public final void onDeregistration()\n {\n onObjectDeregistration();\n this.container = null;\n }",
"public void clearCallLogs();",
"public synchronized void shutdown() {\n server.stop();\n }",
"@Override\n public void onDisconnect(BinaryLogClient client) {\n }",
"public void unregister() {\n this.dispatcher.context.unregisterReceiver(this);\n }",
"public void desactivateFileMode() {\n logger.removeHandler(mFileHandler);\n }",
"public void stop() {\n server.stop();\n }",
"@Override\n public final void contextDestroyed(final ServletContextEvent sce) {\n if (asDaemon != null) {\n asDaemon.shutdown();\n }\n\n // Unregister MySQL driver\n APIServerDaemonDB.unregisterDriver();\n\n // Notify termination\n System.out.println(\"--- APIServerDaemon Stopped ---\");\n }",
"@Override\r\n\tprotected void onStop() {\n\t\tsuper.onStop();\r\n\t\tUiUpdater.unregisterClient(handler);\r\n\t}",
"Promise<Void> unregisterHandler(String address, Handler<? extends Message> handler);",
"void unregister(Path path);",
"public void unregisterHandler(Object handler)\n {\n\n }",
"private void initJulLogger() {\n SLF4JBridgeHandler.removeHandlersForRootLogger();\n SLF4JBridgeHandler.install();\n }",
"public static void shutdown() {\n if(registry != null)\n StandardServiceRegistryBuilder.destroy(registry);\n }",
"void unregisterListeners();",
"private void stopServer() {\n if (mBluetoothGattServer == null) return;\n\n mBluetoothGattServer.close();\n }",
"public void deregisterConnection(String ID);",
"public String[] unregisterHandler(NetworkManager manager, IPacketHandler handler)\n {\n if (connections.containsKey(manager))\n {\n ConnectionInstance con = getConnection(manager);\n return con.unregisterHandler(handler);\n }\n return new String[0];\n }",
"public void removeAnalysisServerListener(AnalysisServerListener listener);",
"@After\r\n public void tearDown() throws Exception {\r\n org.apache.log4j.LogManager.shutdown();\r\n new File(TestsHelper.LOG_FILE).delete();\r\n }",
"public void shutDown()\n {\n stunStack.removeSocket(serverAddress);\n messageSequence.removeAllElements();\n localSocket.close();\n }",
"public void shutdown() {\n if (configurations.isRegisterMXBeans()) {\n JmxConfigurator.get().removeMXBean(this);\n }\n configurations.shutdown();\n }",
"public void shutdown() {\n\t\tserver.stop(0);\n\t}",
"void deregister() {\n Thread patientLoaderThread = new Thread(new RegistrationRunnable(false));\n patientLoaderThread.start();\n }",
"public void unregisterService(Registrant r) {\n namingService.unregisterService(r);\n }",
"private void m17251h() {\n this.f13994d.unregisterReceiver(this.f13995e);\n }",
"public synchronized void close() {\r\n\t\tHashSet copiedLoggers = new HashSet(this.openLoggers);\r\n\t\tfor (Iterator iterator = copiedLoggers.iterator(); iterator.hasNext();) {\r\n\t\t\tXAResourceLogger logger = (XAResourceLogger) iterator.next();\r\n\t\t\ttry {\r\n\t\t\t\tlogger.close();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t;\r\n\t\t\t}\r\n\t\t\topenLoggers.remove(logger);\r\n\t\t}\r\n\r\n\t}",
"private void deregisterBroadcastReceiver(){\n activity.unregisterReceiver(hceNotificationsReceiver);\n }",
"private void unregisterReceivers() {\n \t\t\n\t\tunregisterReceiver(newReadingsReceiver);\n\t\tunregisterReceiver(sensorStatusReceiver);\n\t\tunregisterReceiver(servalMeshStatusReceiver);\n \t}",
"@Override\n public void unpin(IObserver observer) {\n listeners.remove(observer);\n }",
"private void stopHttpAdaptor() {\n if (!agentConfig.isHttpEnabled()) {\n return;\n }\n\n // stop the adaptor...\n try {\n httpAdaptor.stop();\n } catch (Exception e) {\n logger.warn(e.getMessage(), e);\n }\n\n try {\n MBeanUtils.unregisterMBean(getHttpAdaptorName());\n MBeanUtils.unregisterMBean(getXsltProcessorName());\n } catch (MalformedObjectNameException e) {\n logger.warn(e.getMessage(), e);\n }\n }",
"void decoller();",
"protected void uninstallListeners() {\n }",
"protected void uninstallListeners() {\n }",
"public String[] unregisterAll()\n {\n String[] ret = getRegisteredChannels();\n channelToHandlers.clear();\n handlerToChannels.clear();\n return ret;\n }",
"public void disconnect() {\n if (logger.isActivated()) {\n logger.info(\"Network access disconnected\");\n }\n ipAddress = null;\n }",
"public void deregister(SvcInfo svcInfo);",
"public void stop() {\n System.err.println(\"Server will stop\");\n server.stop(0);\n }",
"@Override\n protected void onUnregistered() throws RemoteException {\n\n }",
"public void stopDiscoverability() {\r\n this.findableServerThread.interrupt();\r\n }",
"public void logPlayerOut() {\n if (sessionInfo.isPlayerInParty())\n {\n leaveParty();\n }\n LogDispatcher.getInstance().onLogRequestReceived(new ConcreteSimpleLoggingRequest(LoggingRequest.Severity.INFO, null, \"Logged out\"));\n player.resetValues();\n }"
] |
[
"0.653563",
"0.6079435",
"0.60640883",
"0.5901553",
"0.586329",
"0.57902867",
"0.57422155",
"0.573959",
"0.57339835",
"0.5668539",
"0.5562991",
"0.55379826",
"0.54937094",
"0.54832774",
"0.54788977",
"0.54436946",
"0.541998",
"0.539808",
"0.5373242",
"0.5361794",
"0.5361015",
"0.5317659",
"0.52958786",
"0.5287624",
"0.5264089",
"0.52234155",
"0.5201799",
"0.5199157",
"0.51949036",
"0.51830935",
"0.5156757",
"0.51479834",
"0.51468736",
"0.5138832",
"0.5137805",
"0.513266",
"0.5129709",
"0.51276684",
"0.51262075",
"0.51201254",
"0.51180243",
"0.5106736",
"0.5104915",
"0.51020336",
"0.50839853",
"0.5081222",
"0.5080002",
"0.50776803",
"0.5073338",
"0.5070972",
"0.50690585",
"0.50689465",
"0.50341517",
"0.5028679",
"0.5001965",
"0.50000197",
"0.49914303",
"0.49888408",
"0.4977648",
"0.4976867",
"0.49761075",
"0.49742943",
"0.49733847",
"0.4965623",
"0.4955394",
"0.4947055",
"0.49275374",
"0.49274936",
"0.492608",
"0.49193493",
"0.49166855",
"0.4913812",
"0.49019518",
"0.4898709",
"0.48972467",
"0.48936775",
"0.48930055",
"0.48868862",
"0.48843879",
"0.48808554",
"0.48767072",
"0.48711193",
"0.4865972",
"0.48638928",
"0.4860958",
"0.48552197",
"0.48507902",
"0.48455527",
"0.4844636",
"0.4840185",
"0.48359594",
"0.4829922",
"0.4829922",
"0.48284626",
"0.4827761",
"0.48255458",
"0.4824826",
"0.4824372",
"0.48231542",
"0.48188308"
] |
0.5982512
|
3
|
TODO Autogenerated method stub
|
@Override
public void onErrorResponse(VolleyError error) {
Log.d("ERROR","error => "+error.toString());
}
|
{
"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
|
Use this factory method to create a new instance of this fragment using the provided parameters.
|
public static FragmentOptions newInstance(String param1, String param2) {
FragmentOptions fragment = new FragmentOptions();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"protected abstract Fragment createFragment();",
"public void createFragment() {\n\n }",
"@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }",
"public CuartoFragment() {\n }",
"public StintFragment() {\n }",
"public ExploreFragment() {\n\n }",
"public RickAndMortyFragment() {\n }",
"public FragmentMy() {\n }",
"public LogFragment() {\n }",
"public FeedFragment() {\n }",
"public HistoryFragment() {\n }",
"public HistoryFragment() {\n }",
"public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }",
"public WkfFragment() {\n }",
"public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public ProfileFragment(){}",
"public WelcomeFragment() {}",
"public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }",
"public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public progFragment() {\n }",
"public HeaderFragment() {}",
"public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }",
"public EmployeeFragment() {\n }",
"public Fragment_Tutorial() {}",
"public NewShopFragment() {\n }",
"public FavoriteFragment() {\n }",
"public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }",
"public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }",
"public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }",
"public CreateEventFragment() {\n // Required empty public constructor\n }",
"public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }",
"public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}",
"public NoteActivityFragment() {\n }",
"public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }",
"public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }",
"public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public EventHistoryFragment() {\n\t}",
"public HomeFragment() {}",
"public PeopleFragment() {\n // Required empty public constructor\n }",
"public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public VantaggiFragment() {\n // Required empty public constructor\n }",
"public AddressDetailFragment() {\n }",
"public ArticleDetailFragment() { }",
"public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }",
"public RegisterFragment() {\n }",
"public EmailFragment() {\n }",
"public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }",
"public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }",
"public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }",
"public ForecastFragment() {\n }",
"public FExDetailFragment() {\n \t}",
"public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }",
"public TripNoteFragment() {\n }",
"public ItemFragment() {\n }",
"public NoteListFragment() {\n }",
"public CreatePatientFragment() {\n\n }",
"public DisplayFragment() {\n\n }",
"public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }",
"public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}",
"public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public ProfileFragment() {\n\n }",
"public BackEndFragment() {\n }",
"public CustomerFragment() {\n }",
"public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }",
"public ArticleDetailFragment() {\n }",
"public ArticleDetailFragment() {\n }",
"public ArticleDetailFragment() {\n }",
"public static Fragment newInstance() {\n return new SettingsFragment();\n }",
"public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }",
"public PeersFragment() {\n }",
"public TagsFragment() {\n }",
"public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }",
"public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }",
"public HomeSectionFragment() {\n\t}",
"public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }",
"public PersonDetailFragment() {\r\n }",
"public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }",
"public RegisterFragment() {\n // Required empty public constructor\n }",
"public VehicleFragment() {\r\n }",
"public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}",
"public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }",
"@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}",
"public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }",
"public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }",
"public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public PlaylistFragment() {\n }",
"public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }",
"public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }",
"public static PersonalFragment newInstance(String param1, String param2) {\n PersonalFragment fragment = new PersonalFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }"
] |
[
"0.7259329",
"0.72331375",
"0.71140355",
"0.69909847",
"0.69902235",
"0.6834592",
"0.683074",
"0.68134046",
"0.6801526",
"0.6801054",
"0.67653185",
"0.6739714",
"0.6739714",
"0.6727412",
"0.6717231",
"0.6705855",
"0.6692112",
"0.6691661",
"0.66869426",
"0.66606814",
"0.6646188",
"0.66410166",
"0.6640725",
"0.6634425",
"0.66188246",
"0.66140765",
"0.6608169",
"0.66045964",
"0.65977716",
"0.6592119",
"0.659137",
"0.65910816",
"0.65830594",
"0.65786606",
"0.6562876",
"0.65607685",
"0.6557126",
"0.65513307",
"0.65510213",
"0.65431285",
"0.6540448",
"0.65336084",
"0.6532555",
"0.6528302",
"0.6524409",
"0.652328",
"0.6523149",
"0.6516528",
"0.65049976",
"0.6497274",
"0.6497235",
"0.64949715",
"0.64944136",
"0.6484968",
"0.6484214",
"0.64805835",
"0.64784926",
"0.64755154",
"0.64710265",
"0.6466466",
"0.6457089",
"0.645606",
"0.6454554",
"0.6452161",
"0.64520335",
"0.6450325",
"0.64488834",
"0.6446765",
"0.64430225",
"0.64430225",
"0.64430225",
"0.64420956",
"0.6441306",
"0.64411277",
"0.6438451",
"0.64345145",
"0.64289486",
"0.64287597",
"0.6423755",
"0.64193285",
"0.6418699",
"0.6414679",
"0.6412867",
"0.6402168",
"0.6400724",
"0.6395624",
"0.6395109",
"0.6391252",
"0.63891554",
"0.63835025",
"0.63788056",
"0.63751805",
"0.63751805",
"0.63751805",
"0.6374796",
"0.63653135",
"0.6364529",
"0.6360922",
"0.63538784",
"0.6351111",
"0.635067"
] |
0.0
|
-1
|
Inflate the layout for this fragment
|
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_options, container, false);
//Find the +1 button
//mPlusOneButton = (PlusOneButton) view.findViewById(R.id.plus_one_button1);
//
// find the buttons and set the proper height to them
_butSet = (ImageButton)view.findViewById(R.id.settings);
_butSearch = (ImageButton)view.findViewById(R.id.search);
_butLod = (ImageButton)view.findViewById(R.id.lod);
_butVB = (ImageButton)view.findViewById(R.id.viewbox);
_butCam = (ImageButton)view.findViewById(R.id.camera);
view.findViewById(R.id.icons_parent).addOnLayoutChangeListener(new BtnLayout());
/*
_butSet.addOnLayoutChangeListener(new BtnLayout());
_butSearch.addOnLayoutChangeListener(new BtnLayout());
_butLod.addOnLayoutChangeListener(new BtnLayout());
_butVB.addOnLayoutChangeListener(new BtnLayout());
_butCam.addOnLayoutChangeListener(new BtnLayout());*/
return view;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
] |
[
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
] |
0.0
|
-1
|
TODO: Rename method, update argument and hook method into UI event
|
public void onButtonPressed(Uri uri) {
if (mListener != null) {
mListener.onFragmentInteraction(uri);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}",
"public abstract void update(UIReader event);",
"@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}",
"@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}",
"@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}",
"@Override\n\tpublic void handleUpdateUI(String text, int code) {\n\t\t\n\t}",
"@Override\n\tpublic void update(Event e) {\n\t}",
"public abstract void onInvoked(CommandSender sender, String[] args);",
"@Override\r\n public void updateUI() {\r\n }",
"@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tpublic void processEvent(Event e) {\n\n\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}",
"@Override\n\tpublic void processCommand(JMVCommandEvent arg0) {\n\t}",
"@Override\n\tpublic void inputChanged( Viewer arg0, Object arg1, Object arg2 ) {\n\t}",
"@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}",
"@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}",
"public void updateUI(){}",
"private synchronized void updateScreen(String arg){\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n setChanged();\n notifyObservers(arg);\n }\n });\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\tpublic void updateObjectListener(ActionEvent e) {\n\t\t\r\n\t}",
"Event () {\n // Nothing to do here.\n }",
"void onArgumentsChanged();",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"void eventChanged();",
"@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override public void handle(ActionEvent e)\n\t {\n\t }",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);",
"@Override\n public void actionPerformed(ActionEvent actionEvent) {\n }",
"@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n \r\n }",
"public abstract void onCommand(MessageEvent context) throws Exception;",
"@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}",
"private void addParameterEventHandler(){\n\t\t\n\t\tgetParameterNameListBox().addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\tparameterAceEditor.clearAnnotations();\n\t\t\t\tparameterAceEditor.removeAllMarkers();\n\t\t\t\tparameterAceEditor.redisplay();\n\t\t\t\tSystem.out.println(\"In addParameterEventHandler on DoubleClick isPageDirty = \" + getIsPageDirty() + \" selectedIndex = \" + getParameterNameListBox().getSelectedIndex());\n\t\t\t\tsetIsDoubleClick(true);\n\t\t\t\tsetIsNavBarClick(false);\n\t\t\t\tif (getIsPageDirty()) {\n\t\t\t\t\tshowUnsavedChangesWarning();\n\t\t\t\t} else {\n\t\t\t\t\tint selectedIndex = getParameterNameListBox().getSelectedIndex();\n\t\t\t\t\tif (selectedIndex != -1) {\n\t\t\t\t\t\tfinal String selectedParamID = getParameterNameListBox().getValue(selectedIndex);\n\t\t\t\t\t\tcurrentSelectedParamerterObjId = selectedParamID;\n\t\t\t\t\t\tif(getParameterMap().get(selectedParamID) != null){\n\t\t\t\t\t\t\tgetParameterNameTxtArea().setText(getParameterMap().get(selectedParamID).getParameterName());\n\t\t\t\t\t\t\tgetParameterAceEditor().setText(getParameterMap().get(selectedParamID).getParameterLogic());\n\t\t\t\t\t\t\tSystem.out.println(\"In Parameter DoubleClickHandler, doing setText()\");\n\t\t\t\t\t\t\t//disable parameterName and Logic fields for Default Parameter\n\t\t\t\t\t\t\tboolean isReadOnly = getParameterMap().get(selectedParamID).isReadOnly();\n\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setTitle(\"Delete\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(MatContext.get().getMeasureLockService()\n\t\t\t\t\t\t\t\t\t.checkForEditPermission()){\n\t\t\t\t\t\t\t\tsetParameterWidgetReadOnly(!isReadOnly);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// load most recent used cql artifacts\n\t\t\t\t\t\t\tMatContext.get().getMeasureService().getUsedCQLArtifacts(MatContext.get().getCurrentMeasureId(), new AsyncCallback<GetUsedCQLArtifactsResult>() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\tWindow.alert(MatContext.get().getMessageDelegate().getGenericErrorMessage());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onSuccess(GetUsedCQLArtifactsResult result) {\n\t\t\t\t\t\t\t\t\tif(result.getUsedCQLParameters().contains(getParameterMap().get(selectedParamID).getParameterName())) {\n\t\t\t\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setEnabled(false);\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\t\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\tsuccessMessageAlert.clearAlert();\n\t\t\t\t\terrorMessageAlert.clearAlert();\n\t\t\t\t\twarningMessageAlert.clearAlert();\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public void handle(Event event) {\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n public void actionPerformed(AnActionEvent e) {\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}",
"public void ImageView(ActionEvent event) {\n\t}",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"public void runInUi(ElexisEvent ev){}",
"@Override\n public void delta() {\n \n }",
"@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n }",
"@Override\n\tprotected void OnClick() {\n\t\t\n\t}",
"@Override\n public void actionPerformed(ActionEvent ev) {\n }",
"@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\n public void update(Observable o, Object arg)\n {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t}",
"@Override\r\n public void processEvent(IAEvent e) {\n\r\n }"
] |
[
"0.6619185",
"0.65246344",
"0.6473144",
"0.6473144",
"0.64351684",
"0.6325494",
"0.62368196",
"0.6189416",
"0.6158721",
"0.61455715",
"0.6123594",
"0.6107332",
"0.6101038",
"0.6092755",
"0.6049496",
"0.6049496",
"0.60442764",
"0.604003",
"0.604003",
"0.6007846",
"0.59999037",
"0.59848183",
"0.59776366",
"0.59587413",
"0.5940049",
"0.5925668",
"0.5925668",
"0.59208333",
"0.5915737",
"0.5915737",
"0.5915737",
"0.5915737",
"0.5915737",
"0.5915554",
"0.5909643",
"0.5895144",
"0.58947057",
"0.589277",
"0.58885247",
"0.58885247",
"0.58885247",
"0.58671176",
"0.58671176",
"0.58671176",
"0.58636886",
"0.5862447",
"0.5862447",
"0.58613557",
"0.5855828",
"0.5846504",
"0.5846504",
"0.5846504",
"0.5846504",
"0.5837475",
"0.58366984",
"0.5820788",
"0.58068436",
"0.58022934",
"0.5772422",
"0.57714665",
"0.5770862",
"0.5765655",
"0.5763872",
"0.57544947",
"0.57542855",
"0.57542855",
"0.57450074",
"0.57441026",
"0.57441026",
"0.57441026",
"0.5741053",
"0.574037",
"0.5739314",
"0.57367086",
"0.57367086",
"0.57367086",
"0.57322264",
"0.57322264",
"0.57322264",
"0.57322264",
"0.57322264",
"0.57322264",
"0.57322264",
"0.57235956",
"0.57232994",
"0.5721006",
"0.571978",
"0.571978",
"0.57187414",
"0.57177836",
"0.57133436",
"0.57110935",
"0.57110935",
"0.57110935",
"0.57110935",
"0.57110935",
"0.57110935",
"0.5707859",
"0.5707546",
"0.5704973",
"0.57016516"
] |
0.0
|
-1
|
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
|
public interface OnFragmentInteractionListener {
// TODO: Update argument type and name
public void onFragmentInteraction(Uri uri);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}",
"public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}",
"public interface IFragmentView {\n public Activity getActivity();\n public void onItemClick(int position);\n}",
"public interface OnFragmentInteractionListener {\n void onMainFragmentInteraction(String string);\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if (context instanceof RequestFragmentInterface) {\n mInterface = (RequestFragmentInterface) context;\n } else {\n throw new RuntimeException(context.toString()\n + \" must implement OnFragmentInteractionListener\");\n }\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onCallBellPressed(MessageReason reason);\n }",
"void onFragmentInteraction();",
"void onFragmentInteraction();",
"void onFragmentInteraction();",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n\n void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minteger, int update);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onComidaSelected(int comidaId);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Qualification q);\n }",
"public interface OnFragmentInteractionListener {\n void onReceiverAcceptRequest(int nextState, String requestId);\n }",
"public interface FragMainLife\n{\n\tpublic void onResumeFragMainLife();\n}",
"public interface OnFragmentListener {\n\n void onAction(Intent intent);\n}",
"public interface IBaseFragmentActivity {\n void onFragmentExit(BaseFragment fragment);\n\n void onFragmentStartLoading(BaseFragment fragment);\n\n void onFragmentFinishLoad(BaseFragment fragment);\n}",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String string);\n }",
"void onFragmentInteraction(Object ref);",
"public interface OnParametersFragmentInteractionListener {\n public void startTask();\n }",
"public interface OnFragmentInteractionListener {\n // Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Parcelable selectedItem);\n }",
"public interface FragmentInterface {\r\n void fragmentBecameVisible();\r\n}",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String key);\n }",
"public interface OnFragmentInteractionListener {\n void newList();\n\n void searchList();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void pasarALista();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n /**\n * This interface's single method. The hosting Activity must implement this interface and\n * provide an implementation of this method so that this Fragment can communicate with the\n * Activity.\n *\n * @param spotId\n */\n// void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(int spotId);\n// void onFragmentInteraction(LatLng spotPosition);\n\n }",
"public interface MainGameActivityCallBacks {\n public void onMsgFromFragmentToMainGame(String sender, String strValue);\n}",
"public interface IFragment {\n void onFragmentRefresh();\n\n void onMenuClick();\n}",
"public interface FragmentInterface {\n\n void onCreate();\n\n void initLayout();\n\n void updateLayout();\n\n void sendInitialRequest();\n}",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(String accessToken, String network);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(View v);\n }",
"public interface OnFragmentInteractionListener {\n void swapFragments(SetupActivity.SetupActivityFragmentType type);\n\n void addServer(String name, String ipAddress, String port);\n }",
"public interface OnFragmentInteractionListener {\n\t\tvoid restUp(IGameState gameState);\n\t\tvoid restartGame();\n\t}",
"public interface OnFragmentInteractionListener\n {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface PersonalFragmentView extends BaseMvpView {\n\n}",
"public interface OnFragmentInteractionListener {\n void onFinishCreatingRequest();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"void onFragmentInteraction(View v);",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList<Recepie> recepieList);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String id);\n }",
"void onFragmentInteractionMain();",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void showRestaurantDetail(Map<String, Object> objectMap);\n\n public void showAddRestaurantFragment(String location);\n }",
"public interface FragmentNavigator {\n\n void SwitchFragment(Fragment fragment);\n}",
"public interface FragmentModellnt {\n void FragmentM(OnFinishListener onFinishListener,String dataId);\n}",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n //void onFragmentInteraction(Uri uri);\n }",
"void onFragmentInteraction(String id);",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList naleznosci, String KLUCZ);\n }",
"public interface OnFragmentInteractionListener {\r\n // TODO: Update argument type and name\r\n void onEditFragmentInteraction(Student student);\r\n }",
"public interface OnFragmentInteractionListener {\n void onStartFragmentStarted();\n\n void onStartFragmentStartTracking();\n\n void onStartFragmentStopTracking();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n Long onFragmentInteraction();\n }",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(String id);\n}",
"public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onSocialLoginInteraction();\n }",
"public interface OnFragmentInteractionListener {\n /**\n * On fragment interaction.\n *\n * @param uri the uri\n */\n// TODO: Update argument type and name\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentListener {\n void onClick(Fragment fragment);\n}",
"public interface OnFragmentInteractionListener {\n void playGame(Uri location);\n }",
"public interface LoginFragmentListener {\n public void OnRegisterClicked();\n public void OnLoginClicked(String User, String Pass);\n}",
"public interface MoveFragment {\n\n\n public void moveFragment(Fragment selectedFragment);\n\n}",
"public interface ChangeFragmentListener {\n void changeFragment();\n}",
"public interface OnProductItemFragmentInteraction{\r\n public void itemSelected(Producto product);\r\n }",
"public interface FragmentInterface {\n public void fragmentResult(Fragment fragment, String title);\n}",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n //this registers this fragment to recieve any EventBus\n EventBus.getDefault().register(this);\n }",
"void onFragmentInteraction(int position);",
"public interface AddFarmFragmentView extends BaseView {\n\n\n}",
"void OpenFragmentInteraction();",
"public interface OnFragmentInteractionListener {\n\t\t// TODO: Update argument type and name\n\t\tpublic void onFragmentInteraction(Uri uri);\n\t}",
"public interface FragmentDataObserver {\n void getDataFromActivity(String data);\n\n}",
"public interface OnFragInteractionListener {\n\n // replace top fragment with this fragment\n interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }\n\n // interface for WifiPresenterFragment\n interface OnWifiScanFragInteractionListener {\n void onGetDataAfterScanWifi(ArrayList<WifiLocationModel> list);\n void onAllowToSaveWifiHotspotToDb(String ssid, String pass, String encryption, String bssid);\n }\n\n // interface for HistoryPresenterFragment\n interface OnHistoryFragInteractionListener {\n // get wifi info\n void onGetWifiHistoryCursor(Cursor cursor);\n // get mobile network generation\n void onGetMobileHistoryCursor(Cursor cursor);\n // get wifi state and date\n void onGetWifiStateAndDateCursor(Cursor cursor);\n }\n\n interface OnMapFragInteractionListerer {\n void onGetWifiLocationCursor(Cursor cursor);\n }\n}",
"public interface PesonageFragmentView extends MvpView {\n\n}",
"public interface OnUsersFragmentInteractionListener {\n void onListFragmentInteraction(User item);\n }",
"public interface MainScreeInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteractionMain();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onClickNextTurn();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n\n void changeBottomNavSelection(int menuItem);\n }",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n}",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentInteractionListener {\n void onSignoutClicked();\n\n void onExtraScopeRequested();\n }",
"public interface OnListFragmentInteractionListener {\n void onListFragmentInteraction(Note note);\n}",
"interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }"
] |
[
"0.7323901",
"0.720826",
"0.71346456",
"0.712432",
"0.71223646",
"0.7014406",
"0.6975986",
"0.6975986",
"0.6975986",
"0.6973731",
"0.69676983",
"0.69656146",
"0.6960717",
"0.69542384",
"0.6943149",
"0.6933716",
"0.69288176",
"0.69264686",
"0.6922715",
"0.6909953",
"0.6902666",
"0.68968815",
"0.6894074",
"0.68821484",
"0.68811965",
"0.6875028",
"0.686441",
"0.686059",
"0.68592566",
"0.68580437",
"0.68551767",
"0.6844014",
"0.6839444",
"0.68299013",
"0.681755",
"0.68166876",
"0.680979",
"0.6785827",
"0.6769247",
"0.6769247",
"0.6769247",
"0.6769247",
"0.6769247",
"0.6769247",
"0.6769247",
"0.6769247",
"0.6769247",
"0.6768809",
"0.6765993",
"0.67613",
"0.675552",
"0.6753091",
"0.6698583",
"0.66805714",
"0.6673642",
"0.6670421",
"0.66695374",
"0.66619104",
"0.6660703",
"0.66551346",
"0.665202",
"0.6643579",
"0.6643505",
"0.6643505",
"0.6643505",
"0.6643505",
"0.6643505",
"0.6643505",
"0.6643505",
"0.6643505",
"0.6643505",
"0.6643505",
"0.6643505",
"0.6638241",
"0.66361165",
"0.66311413",
"0.662524",
"0.66250277",
"0.6618358",
"0.6609611",
"0.66091406",
"0.6608578",
"0.66044116",
"0.6596916",
"0.65967715",
"0.65872806",
"0.6572124",
"0.6567792",
"0.65597993",
"0.65597713",
"0.6555063",
"0.6550386",
"0.65484476",
"0.65428716",
"0.6538933",
"0.65341264",
"0.65341264",
"0.65341264",
"0.6519295",
"0.65169215",
"0.65164673"
] |
0.0
|
-1
|
TODO: Update argument type and name
|
public void onFragmentInteraction(Uri uri);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"@Override\n public int getNumberArguments() {\n return 1;\n }",
"java.lang.String getArg();",
"@Override\n public int getArgLength() {\n return 4;\n }",
"Argument createArgument();",
"@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}",
"@Override\n protected PacketArgs.ArgumentType[] getArgumentTypes() {\n return new PacketArgs.ArgumentType[] { PacketArgs.ArgumentType.String };\n }",
"@Override\n\tpublic void traverseArg(UniArg node) {\n\t}",
"@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}",
"Object[] getArguments();",
"Object[] getArguments();",
"String getArguments();",
"@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}",
"@Override\n public final int parseArguments(Parameters params) {\n return 1;\n }",
"ArgList createArgList();",
"public Object[] getArguments() { return args;}",
"@Override\n public String getInputArg(String argName) {\n Log.w(TAG, \"Test input args is not supported.\");\n return null;\n }",
"@Override\n protected String getName() {return _parms.name;}",
"private static AbstractType<?>[] argumentsType(@Nullable StringType algorithmArgumentType)\n {\n return algorithmArgumentType == null\n ? DEFAULT_ARGUMENTS\n : new AbstractType<?>[]{ algorithmArgumentType };\n }",
"uicargs createuicargs();",
"java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();",
"java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();",
"public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}",
"@Override\r\n\tpublic int getSecondArg() {\n\t\treturn 0;\r\n\t}",
"public getType_args(getType_args other) {\n }",
"Object[] args();",
"protected void validateArguments( Object[] args ) throws ActionExecutionException {\n\n Annotation[][] annotations = method.getParameterAnnotations();\n for (int i = 0; i < annotations.length; i++) {\n\n Annotation[] paramAnnotations = annotations[i];\n\n for (Annotation paramAnnotation : paramAnnotations) {\n if (paramAnnotation instanceof Parameter) {\n Parameter paramDescriptionAnnotation = (Parameter) paramAnnotation;\n ValidationType validationType = paramDescriptionAnnotation.validation();\n\n String[] validationArgs;\n\n // if we are checking for valid constants, then the\n // args array should contain\n // the name of the array holding the valid constants\n if (validationType == ValidationType.STRING_CONSTANT\n || validationType == ValidationType.NUMBER_CONSTANT) {\n try {\n String arrayName = paramDescriptionAnnotation.args()[0];\n\n // get the field and set access level if\n // necessary\n Field arrayField = method.getDeclaringClass().getDeclaredField(arrayName);\n if (!arrayField.isAccessible()) {\n arrayField.setAccessible(true);\n }\n Object arrayValidConstants = arrayField.get(null);\n\n // convert the object array to string array\n String[] arrayValidConstatnsStr = new String[Array.getLength(arrayValidConstants)];\n for (int j = 0; j < Array.getLength(arrayValidConstants); j++) {\n arrayValidConstatnsStr[j] = Array.get(arrayValidConstants, j).toString();\n }\n\n validationArgs = arrayValidConstatnsStr;\n\n } catch (IndexOutOfBoundsException iobe) {\n // this is a fatal error\n throw new ActionExecutionException(\"You need to specify the name of the array with valid constants in the 'args' field of the Parameter annotation\");\n } catch (Exception e) {\n // this is a fatal error\n throw new ActionExecutionException(\"Could not get array with valid constants - action annotations are incorrect\");\n }\n } else {\n validationArgs = paramDescriptionAnnotation.args();\n }\n\n List<BaseType> typeValidators = createBaseTypes(paramDescriptionAnnotation.validation(),\n paramDescriptionAnnotation.name(),\n args[i], validationArgs);\n //perform validation\n for (BaseType baseType : typeValidators) {\n if (baseType != null) {\n try {\n baseType.validate();\n } catch (TypeException e) {\n throw new InvalidInputArgumentsException(\"Validation failed while validating argument \"\n + paramDescriptionAnnotation.name()\n + e.getMessage());\n }\n } else {\n log.warn(\"Could not perform validation on argument \"\n + paramDescriptionAnnotation.name());\n }\n }\n }\n }\n }\n }",
"@Test\n void getArgString() {\n }",
"@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"int getArgIndex();",
"@Override\n\tpublic void addArg(FormulaElement arg){\n\t}",
"public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }",
"@Override\n public Object[] getArguments() {\n return null;\n }",
"public login_1_argument() {\n }",
"Optional<String[]> arguments();",
"private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }",
"@Override\n\tprotected GATKArgumentCollection getArgumentCollection() {\n\t\treturn argCollection;\n\t}",
"protected void sequence_Argument(ISerializationContext context, Argument semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, TdlPackage.Literals.ARGUMENT__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TdlPackage.Literals.ARGUMENT__NAME));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getArgumentAccess().getNameSTRINGTerminalRuleCall_0_0(), semanticObject.getName());\n\t\tfeeder.finish();\n\t}",
"void setArguments(String arguments);",
"@Override\n\tpublic List<String> getArgumentDesc() {\n\t\treturn desc;\n\t}",
"OpFunctionArgAgregate createOpFunctionArgAgregate();",
"protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);",
"void visitArgument(Argument argument);",
"public Thaw_args(Thaw_args other) {\r\n }",
"@Override\r\n\tpublic List<String> getArguments()\r\n\t{\n\t\treturn null;\r\n\t}",
"private static String getArgumentString(Object arg) {\n if (arg instanceof String) {\n return \"\\\\\\\"\"+arg+\"\\\\\\\"\";\n }\n else return arg.toString();\n }",
"public interface Param {\n\n int[] args();\n String exec(ExecutePack pack);\n String label();\n}",
"@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }",
"public abstract ValidationResults validArguments(String[] arguments);",
"public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }",
"public String getArgumentString() {\n\t\treturn null;\n\t}",
"@Override\n public String kind() {\n return \"@param\";\n }",
"@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}",
"public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }",
"void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }",
"@Override\n\tprotected byte[] getArgByte() {\n\t\treturn paramsJson.getBytes();\n\t}",
"void onArgumentsChanged();",
"com.google.protobuf.ByteString\n\t\tgetArgBytes();",
"@Override public int getNumArguments()\t\t\t{ return arg_list.size(); }",
"MyArg(int value){\n this.value = value;\n }",
"public ArgList(Object arg1) {\n super(1);\n addElement(arg1);\n }",
"public Clear_args(Clear_args other) {\r\n }",
"private ParameterInformation processArgumentReference(Argument argument,\n List<NameDescriptionType> argTypeSet,\n SequenceEntryType seqEntry,\n int seqIndex)\n {\n ParameterInformation argumentInfo = null;\n\n // Initialize the argument's attributes\n String argName = argument.getName();\n String dataType = null;\n String arraySize = null;\n String bitLength = null;\n BigInteger argBitSize = null;\n String enumeration = null;\n String description = null;\n UnitSet unitSet = null;\n String units = null;\n String minimum = null;\n String maximum = null;\n\n // Step through each command argument type\n for (NameDescriptionType argType : argTypeSet)\n {\n // Check if this is the same command argument referenced in the argument list (by\n // matching the command and argument names between the two)\n if (argument.getArgumentTypeRef().equals(argType.getName()))\n {\n boolean isInteger = false;\n boolean isUnsigned = false;\n boolean isFloat = false;\n boolean isString = false;\n\n // Check if this is an array parameter\n if (seqEntry instanceof ArrayParameterRefEntryType)\n {\n arraySize = \"\";\n\n // Store the reference to the array parameter type\n ArrayDataTypeType arrayType = (ArrayDataTypeType) argType;\n argType = null;\n\n // Step through each dimension for the array variable\n for (Dimension dim : ((ArrayParameterRefEntryType) seqEntry).getDimensionList().getDimension())\n {\n // Check if the fixed value exists\n if (dim.getEndingIndex().getFixedValue() != null)\n {\n // Build the array size string\n arraySize += String.valueOf(Integer.valueOf(dim.getEndingIndex().getFixedValue()) + 1)\n + \",\";\n }\n }\n\n arraySize = CcddUtilities.removeTrailer(arraySize, \",\");\n\n // The array parameter type references a non-array parameter type that\n // describes the individual array members. Step through each data type in the\n // parameter type set in order to locate this data type entry\n for (NameDescriptionType type : argTypeSet)\n {\n // Check if the array parameter's array type reference matches the data\n // type name\n if (arrayType.getArrayTypeRef().equals(type.getName()))\n {\n // Store the reference to the array parameter's data type and stop\n // searching\n argType = type;\n break;\n }\n }\n }\n\n // Check if a data type entry for the parameter exists in the parameter type set\n // (note that if the parameter is an array the steps above locate the data type\n // entry for the individual array members)\n if (argType != null)\n {\n long dataTypeBitSize = 0;\n\n // Check if the argument is an integer data type\n if (argType instanceof IntegerArgumentType)\n {\n IntegerArgumentType icmd = (IntegerArgumentType) argType;\n\n // Get the number of bits occupied by the argument\n argBitSize = icmd.getSizeInBits();\n\n // Get the argument units reference\n unitSet = icmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (icmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n // Get the argument alarm\n IntegerArgumentType.ValidRangeSet alarmType = icmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<IntegerRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Store the minimum alarm value\n minimum = alarmRange.get(0).getMinInclusive();\n\n // Store the maximum alarm value\n maximum = alarmRange.get(0).getMaxInclusive();\n }\n }\n\n isInteger = true;\n }\n // Check if the argument is a floating point data type\n else if (argType instanceof FloatArgumentType)\n {\n // Get the float argument attributes\n FloatArgumentType fcmd = (FloatArgumentType) argType;\n dataTypeBitSize = fcmd.getSizeInBits().longValue();\n unitSet = fcmd.getUnitSet();\n\n // Get the argument alarm\n FloatArgumentType.ValidRangeSet alarmType = fcmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<FloatRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Get the minimum value\n Double min = alarmRange.get(0).getMinInclusive();\n\n // Check if a minimum value exists\n if (min != null)\n {\n // Get the minimum alarm value\n minimum = String.valueOf(min);\n }\n\n // Get the maximum value\n Double max = alarmRange.get(0).getMaxInclusive();\n\n // Check if a maximum value exists\n if (max != null)\n {\n // Get the maximum alarm value\n maximum = String.valueOf(max);\n }\n }\n }\n\n isFloat = true;\n }\n // Check if the argument is a string data type\n else if (argType instanceof StringDataType)\n {\n // Get the string argument attributes\n StringDataType scmd = (StringDataType) argType;\n dataTypeBitSize = Integer.valueOf(scmd.getStringDataEncoding()\n .getSizeInBits()\n .getFixed()\n .getFixedValue());\n unitSet = scmd.getUnitSet();\n isString = true;\n }\n // Check if the argument is an enumerated data type\n else if (argType instanceof EnumeratedDataType)\n {\n EnumeratedDataType ecmd = (EnumeratedDataType) argType;\n EnumerationList enumList = ecmd.getEnumerationList();\n\n // Check if any enumeration parameters are defined\n if (enumList != null)\n {\n // Step through each enumeration parameter\n for (ValueEnumerationType enumType : enumList.getEnumeration())\n {\n // Check if this is the first parameter\n if (enumeration == null)\n {\n // Initialize the enumeration string\n enumeration = \"\";\n }\n // Not the first parameter\n else\n {\n // Add the separator for the enumerations\n enumeration += \", \";\n }\n\n // Begin building this enumeration\n enumeration += enumType.getValue() + \" | \" + enumType.getLabel();\n }\n\n argBitSize = ecmd.getIntegerDataEncoding().getSizeInBits();\n unitSet = ecmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (ecmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n isInteger = true;\n }\n }\n\n // Get the name of the data type from the data type table that matches the base\n // type and size of the parameter\n dataType = getMatchingDataType(dataTypeBitSize / 8,\n isInteger,\n isUnsigned,\n isFloat,\n isString,\n dataTypeHandler);\n\n // Check if the description exists\n if (argType.getLongDescription() != null)\n {\n // Store the description\n description = argType.getLongDescription();\n }\n\n // Check if the argument bit size exists\n if (argBitSize != null && argBitSize.longValue() != dataTypeBitSize)\n {\n // Store the bit length\n bitLength = argBitSize.toString();\n }\n\n // Check if the units exists\n if (unitSet != null)\n {\n List<UnitType> unitType = unitSet.getUnit();\n\n // Check if the units is set\n if (!unitType.isEmpty())\n {\n // Store the units\n units = unitType.get(0).getContent();\n }\n }\n\n argumentInfo = new ParameterInformation(argName,\n dataType,\n arraySize,\n bitLength,\n enumeration,\n units,\n minimum,\n maximum,\n description,\n 0,\n seqIndex);\n }\n\n break;\n }\n }\n\n return argumentInfo;\n }",
"public abstract interface QueryArgs {\n\n /** Return the catalog associated with this object */\n public Catalog getCatalog();\n\n /** Set the value for the ith parameter */\n public void setParamValue(int i, Object value);\n\n /** Set the value for the parameter with the given label */\n public void setParamValue(String label, Object value);\n\n /** Set the min and max values for the parameter with the given label */\n public void setParamValueRange(String label, Object minValue, Object maxValue);\n\n /** Set the int value for the parameter with the given label */\n public void setParamValue(String label, int value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValue(String label, double value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValueRange(String label, double minValue, double maxValue);\n\n /** Set the array of parameter values directly. */\n public void setParamValues(Object[] values);\n\n /** Get the value of the ith parameter */\n public Object getParamValue(int i);\n\n /** Get the value of the named parameter\n *\n * @param label the parameter name or id\n * @return the value of the parameter, or null if not specified\n */\n public Object getParamValue(String label);\n\n /**\n * Get the value of the named parameter as an integer.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public int getParamValueAsInt(String label, int defaultValue);\n\n /**\n * Get the value of the named parameter as a double.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public double getParamValueAsDouble(String label, double defaultValue);\n\n /**\n * Get the value of the named parameter as a String.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public String getParamValueAsString(String label, String defaultValue);\n\n\n /**\n * Return the object id being searched for, or null if none was defined.\n */\n public String getId();\n\n /**\n * Set the object id to search for.\n */\n public void setId(String id);\n\n\n /**\n * Return an object describing the query region (center position and\n * radius range), or null if none was defined.\n */\n public CoordinateRadius getRegion();\n\n /**\n * Set the query region (center position and radius range) for\n * the search.\n */\n public void setRegion(CoordinateRadius region);\n\n\n /**\n * Return an array of SearchCondition objects indicating the\n * values or range of values to search for.\n */\n public SearchCondition[] getConditions();\n\n /** Returns the max number of rows to be returned from a table query */\n public int getMaxRows();\n\n /** Set the max number of rows to be returned from a table query */\n public void setMaxRows(int maxRows);\n\n\n /** Returns the query type (an optional string, which may be interpreted by some catalogs) */\n public String getQueryType();\n\n /** Set the query type (an optional string, which may be interpreted by some catalogs) */\n public void setQueryType(String queryType);\n\n /**\n * Returns a copy of this object\n */\n public QueryArgs copy();\n\n /**\n * Optional: If not null, use this object for displaying the progress of the background query\n */\n public StatusLogger getStatusLogger();\n}",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n\tprotected Collection<ArgumentTypeDescriptor> getArgumentTypeDescriptors() {\n\t\treturn Arrays.asList(new VCFWriterArgumentTypeDescriptor(engine, System.out, bisulfiteArgumentSources), new SAMReaderArgumentTypeDescriptor(engine),\n\t\t\t\tnew SAMFileWriterArgumentTypeDescriptor(engine, System.out), new OutputStreamArgumentTypeDescriptor(engine, System.out));\n\t}",
"@Override\n public int getArgent() {\n return _argent;\n }",
"private static @NonNull String resolveInputName(@NonNull Argument<?> argument) {\n String inputName = argument.getAnnotationMetadata().stringValue(Bindable.NAME).orElse(null);\n if (StringUtils.isEmpty(inputName)) {\n inputName = argument.getName();\n }\n return inputName;\n }",
"private Object[] getArguments (String className, Object field)\n\t{\n\t\treturn ((field == null) ? new Object[]{className} : \n\t\t\tnew Object[]{className, field});\n\t}",
"PermissionSerializer (GetArg arg) throws IOException, ClassNotFoundException {\n\tthis( \n\t create(\n\t\targ.get(\"targetType\", null, Class.class),\n\t\targ.get(\"type\", null, String.class),\n\t\targ.get(\"targetName\", null, String.class),\n\t\targ.get(\"targetActions\", null, String.class) \n\t )\n\t);\n }",
"public Type getArgumentDirection() {\n return direction;\n }",
"public String argTypes() {\n return \"I\";//NOI18N\n }",
"public static void main(String arg[]) {\n\n }",
"godot.wire.Wire.Value getArgs(int index);",
"@Override\n protected String[] getArguments() {\n String[] args = new String[1];\n args[0] = _game_file_name;\n return args;\n }",
"public void setArgs(java.lang.String value) {\n this.args = value;\n }",
"private Argument(Builder builder) {\n super(builder);\n }",
"@Override\n public void execute(String[] args) {\n\n }",
"@Override\n\tprotected final void setFromArgument(CommandContext<ServerCommandSource> context, String name) {\n\t}",
"UUID createArgument(ArgumentCreateRequest request);",
"@Override\n public void initialise(String[] arguments) {\n\n }",
"public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }",
"protected abstract void parseArgs() throws IOException;"
] |
[
"0.7164074",
"0.6946075",
"0.6714363",
"0.65115863",
"0.63969076",
"0.6375468",
"0.63481104",
"0.63162106",
"0.6260299",
"0.6208487",
"0.6208487",
"0.62070644",
"0.6197276",
"0.61806154",
"0.6177103",
"0.61530507",
"0.61472267",
"0.61243707",
"0.60771817",
"0.6054482",
"0.59906125",
"0.59906125",
"0.5984017",
"0.59791875",
"0.5977681",
"0.59532714",
"0.5946838",
"0.59457266",
"0.59452903",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.5909717",
"0.5889277",
"0.588111",
"0.5871162",
"0.5866624",
"0.58613646",
"0.58519953",
"0.58381283",
"0.58083445",
"0.58059824",
"0.5795826",
"0.57816726",
"0.57670826",
"0.57556796",
"0.57471323",
"0.57418406",
"0.5729463",
"0.57291526",
"0.5716928",
"0.5713024",
"0.56974274",
"0.56782854",
"0.56723106",
"0.5664594",
"0.5664104",
"0.5660337",
"0.5652865",
"0.5647883",
"0.5642134",
"0.5635645",
"0.5634968",
"0.562251",
"0.56210977",
"0.56167537",
"0.56138444",
"0.56044126",
"0.56044126",
"0.5602371",
"0.56012225",
"0.55986875",
"0.55893147",
"0.5588273",
"0.5583255",
"0.5582767",
"0.55681497",
"0.55626017",
"0.55577534",
"0.55524325",
"0.5549442",
"0.55378276",
"0.5536797",
"0.5527675",
"0.5511817",
"0.55099154",
"0.550257"
] |
0.0
|
-1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.